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

@@ -103,6 +103,13 @@ fn task import owner/repo # Import GitHub issues as tasks
fn task import owner/repo --limit 10 --labels "bug,enhancement"
```
### Agent control
```bash
fn agent stop <agent-id> # Stop (pause) a running agent
fn agent start <agent-id> # Start (resume) a stopped agent
```
### Typical workflow
```bash