mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 13:03:42 +00:00
HookAPI additions: - pi.newSession(options?) - create new session with optional setup callback - pi.branch(entryId) - branch from a specific entry - pi.navigateTree(targetId, options?) - navigate the session tree HookContext additions: - ctx.isIdle() - check if agent is streaming - ctx.waitForIdle() - wait for agent to finish - ctx.abort() - abort current operation - ctx.hasQueuedMessages() - check for queued user messages These enable hooks to programmatically manage sessions (handoff, templates) and check agent state before showing interactive UI. Fixes #388 |
||
|---|---|---|
| .. | ||
| fixtures | ||
| session-manager | ||
| agent-session-branching.test.ts | ||
| agent-session-compaction.test.ts | ||
| agent-session-tree-navigation.test.ts | ||
| args.test.ts | ||
| compaction-hooks-example.test.ts | ||
| compaction-hooks.test.ts | ||
| compaction.test.ts | ||
| fuzzy.test.ts | ||
| interactive-mode-status.test.ts | ||
| model-resolver.test.ts | ||
| rpc-example.ts | ||
| rpc.test.ts | ||
| skills.test.ts | ||
| streaming-render-debug.ts | ||
| test-theme-colors.ts | ||
| tools.test.ts | ||
| truncate-to-width.test.ts | ||
| utilities.ts | ||