packs: ship python deps with the pack
A pack now owns the python deps its skills/bridge need, at packs/<name>/requirements.txt (standard pip format). SkillPack.requirements_file resolves it; the install plan lists the selected/enabled packs that ship one (setup.build_plan / plan_from_config -> pack_requirements); bootstrap installs each into .runtime/venv, so a host that never enables a pack installs nothing for it. Move the browser deps (Playwright) out of the agent repo's requirements/ into packs/browser/requirements.txt; the Playwright binary download stays a browser-specific bootstrap stage. --browser force-adds the pack's deps. Docs (PACKGEN.md, AGENTS.md, README.md) describe the pattern; tests keep every pack requirements.txt pinned and consistent with the manifest's requires.
This commit is contained in:
1 parent
bf071ee529
commit
b1a7bfd272
12 files changed
+180
-59
No files matched your search
@@ -1,21 +0,0 @@
|
||||
# Browser bridge deps (optional).
|
||||
#
|
||||
# Only needed on a host that runs the browser bridge (browser automation skills).
|
||||
# Lazy-imported by packs/browser/bridge/browser_client.py, so the core stays
|
||||
# stdlib-only and every other bridge keeps running without it. Install with
|
||||
# scripts/bootstrap.sh --browser, or:
|
||||
# .runtime/venv/bin/pip install -r requirements/browser.txt
|
||||
# PLAYWRIGHT_BROWSERS_PATH=.runtime/browser \
|
||||
# .runtime/venv/bin/python -m playwright install chromium
|
||||
#
|
||||
# The browser binaries are NOT shipped in the wheel: `playwright install`
|
||||
# downloads Chromium into PLAYWRIGHT_BROWSERS_PATH. bootstrap.sh points that at
|
||||
# the checkout's .runtime/browser (the containment rule); the bridge sets the
|
||||
# same env var at launch, so the binaries live with the rest of the stack. Add
|
||||
# `--with-deps` to the install command on a bare host to fetch the system
|
||||
# libraries Chromium needs (needs sudo).
|
||||
#
|
||||
# Only `chromium` is installed by default; switch bridges.browser.engine to
|
||||
# firefox/webkit and run `python -m playwright install firefox`/`webkit` for
|
||||
# those.
|
||||
playwright==1.63.0
|
||||
@@ -1,7 +1,9 @@
|
||||
# Core agent deps (the agent itself is stdlib-only; this is the test runner).
|
||||
#
|
||||
# Every host installs this. The decision engine, messaging transports, voice,
|
||||
# and browser stacks are separate, optional files (engine.txt, transports.txt,
|
||||
# voice.txt, browser.txt) so a host installs only what its answers require.
|
||||
# `staging.txt` includes all of them for a full provision.
|
||||
# Every host installs this. The decision engine and messaging transports are
|
||||
# separate, optional files (engine.txt, transports.txt) so a host installs only
|
||||
# what its answers require. The voice stack (voice.txt) is hardware-dependent,
|
||||
# and the browser stack ships WITH its pack (packs/browser/requirements.txt) —
|
||||
# bootstrap installs each selected pack's own requirements.txt.
|
||||
# `staging.txt` includes the repo-level files for a full provision.
|
||||
pytest
|
||||
@@ -1,13 +1,13 @@
|
||||
# Full provision: every dependency this repo can need, for a host that runs the
|
||||
# local decision engine, all messaging transports, the voice gateway, and the
|
||||
# browser bridge. This is the union of the per-concern files below; a
|
||||
# `scripts/bootstrap.sh` run installs only the subset its answers require, so
|
||||
# prefer those files (engine.txt, transports.txt, voice.txt, browser.txt) when
|
||||
# provisioning by hand.
|
||||
# Full provision: every repo-level dependency this checkout can need, for a host
|
||||
# that runs the local decision engine and all messaging transports. This is the
|
||||
# union of the per-concern files below; a `scripts/bootstrap.sh` run installs
|
||||
# only the subset its answers require, so prefer those files (engine.txt,
|
||||
# transports.txt) when provisioning by hand.
|
||||
#
|
||||
# Voice and browser stacks are hardware/optional and are NOT included here —
|
||||
# install them with `scripts/bootstrap.sh --voice` / `--browser` (or
|
||||
# `pip install -r requirements/voice.txt` / `browser.txt`).
|
||||
# Voice (voice.txt) and browser (packs/browser/requirements.txt) stacks are
|
||||
# hardware/optional. Voice is a repo file installed with
|
||||
# `scripts/bootstrap.sh --voice`; the browser deps live WITH their pack and are
|
||||
# installed by bootstrap when that pack is selected.
|
||||
-r core.txt
|
||||
-r engine.txt
|
||||
-r transports.txt
|
||||
Reference in new issue
Block a user