The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(build): accept PM musl targets in bundle inputs
JoaoMarcos44666c65c55247
diff --git a/scripts/build/inputs.py b/scripts/build/inputs.pyindex c9ebad218ac..ce1e8faff6c 100644--- a/scripts/build/inputs.py+++ b/scripts/build/inputs.py@@ -7,6 +7,8 @@ import jsonimport reimport tomllib+from pm.store import ALL_TARGETS+RESOURCE_ENV = {"skills": "HERMES_BUNDLED_SKILLS",@@ -70,7 +72,7 @@ class AgentInputs:return cls(**values)def validate(self, out: Path) -> None:- if not re.fullmatch(r"(?:(?:linux|darwin|win32)-(?:x64|arm64)|linux-arm64-bionic)", self.target):+ if self.target not in ALL_TARGETS:raise ValueError(f"unsupported target: {self.target}")if self.placement not in ("contained", "fixed", "references"):raise ValueError(f"unknown placement: {self.placement}")diff --git a/tests/scripts/test_agent_build.py b/tests/scripts/test_agent_build.pyindex 127b241c721..7256ede6b10 100644--- a/tests/scripts/test_agent_build.py+++ b/tests/scripts/test_agent_build.py@@ -67,6 +67,15 @@ def build_cli(data, out, tmp_path):)[email protected]("target", ["linux-x64-musl", "linux-arm64-musl"])+def test_agent_inputs_accept_pm_musl_targets(tmp_path, target):+ from scripts.build.inputs import AgentInputs++ out, data = inputs_fixture(tmp_path)+ data["target"] = target+ AgentInputs.from_dict(data).validate(out)++@pytest.mark.platforms("posix")def test_contained_cli_assembly_runs_after_move_and_preserves_prepared_state(tmp_path):out, data = inputs_fixture(tmp_path)