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:
gabby committed 2026-10-14 18:05:56 +00:00
1 parent bf071ee529
commit b1a7bfd272
12 files changed
+180 -59

No files matched your search

+7 -4
View File
@@ -410,8 +410,10 @@ packs/ skill packs, each cloned from its own repo (pack.<name>)
pack list lives in the semif-packs index repo (see PACKGEN.md)
scripts/ bootstrap.sh, config_merge.py, voice-*.py, systemd/*.in
requirements/ core.txt (test runner), engine.txt (local decision engine),
transports.txt (websockets/lxmf), voice.txt, browser.txt
(staging.txt = the union of the non-hardware files)
transports.txt (websockets/lxmf), voice.txt
(staging.txt = the union of the non-hardware files);
a pack's own deps live with the pack at
packs/<name>/requirements.txt
tests/ stdlib unit tests + tests/integration (real engine + LLM)
CODEGEN.md the contract fed to the skill-body codegen model
TESTGEN.md the contract fed to the test/contract codegen model
@@ -506,8 +508,9 @@ The script:
SemIf engine;
4. creates `.runtime/venv` and installs only the needed dep files:
`requirements/core.txt` always, `engine.txt` for a local engine,
`transports.txt` when a SimpleX/LXMF transport is selected (`voice.txt` /
`browser.txt` for those stacks);
`transports.txt` when a SimpleX/LXMF transport is selected (`voice.txt` for
the voice stack, and each selected pack's own `packs/<name>/requirements.txt`
— e.g. the browser pack's Playwright deps);
5. for a local engine, downloads/sha256-verifies the GGUF into `.runtime/models/`
and pre-fetches the HF tokenizer into `.runtime/hf/`;
6. downloads/sha256-verifies the pinned `simplex-chat` binary **only** when a