feat(FN-986): add agent stop/start CLI commands and extension tools

- Add `fn agent stop <id>` and `fn agent start <id>` CLI commands for pausing/resuming agents
- Add `kb_agent_stop` and `kb_agent_start` tools to the pi extension for in-session agent control
- Validate state transitions using AGENT_VALID_TRANSITIONS before applying changes
- Export AgentStore from @fusion/core public API
- Add comprehensive tests for agent CLI commands (210 lines)
- Add changeset for @gsxdsm/fusion patch release
This commit is contained in:
gsxdsm
2026-04-05 16:15:22 -07:00
parent 7f68136e5b
commit 3fb3e819af
11 changed files with 498 additions and 0 deletions

View File

@@ -101,6 +101,9 @@ describe("kb pi extension", () => {
"kb_feature_add",
"kb_slice_activate",
"kb_feature_link_task",
// Agent tools
"kb_agent_stop",
"kb_agent_start",
];
for (const name of expected) {