fix: harden agent profile boundaries

This commit is contained in:
Federico Jaramillo Martinez
2026-07-13 23:39:49 +02:00
parent 97e0afc6fa
commit adc2e297a4
25 changed files with 419 additions and 150 deletions
+5
View File
@@ -68,6 +68,11 @@ describe("agentCommandForChecks", () => {
delete process.env["PI_WEB_AGENT_COMMAND"];
expect(agentCommandForChecks()).toBe("acme-agent");
expect(agentCommandForChecks({
PI_WEB_CONFIG: configPath,
PI_WEB_AGENT_COMMAND: "environment-agent",
PI_WEB_AGENT_DIR: join(dir, "environment-agent-state"),
})).toBe("environment-agent");
} finally {
rmSync(dir, { recursive: true, force: true });
}