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
@@ -88,6 +88,7 @@ def test_minimum_plan_installs_nothing_heavy():
|
||||
assert plan["install_browser"] is False
|
||||
assert plan["install_voice"] is False
|
||||
assert plan["packs"] == ["essentials"]
|
||||
assert plan["pack_requirements"] == []
|
||||
|
||||
|
||||
# --------------------------------------------------------------------------- #
|
||||
@@ -139,6 +140,8 @@ def test_maximum_config_enables_everything():
|
||||
assert plan["install_voice"] is True
|
||||
assert plan["install_bridge_service"] is True
|
||||
assert plan["install_gateway_service"] is True
|
||||
# The browser pack ships its own python deps; the plan names it for bootstrap.
|
||||
assert plan["pack_requirements"] == ["browser"]
|
||||
|
||||
secrets = build_secrets(answers)
|
||||
assert secrets["engine_winnow_api_key"] == "wk"
|
||||
|
||||
Reference in new issue
Block a user