co-mono/packages
Mario Zechner c8d9382aaa Move hook command execution to AgentSession.prompt()
Hook commands registered via pi.registerCommand() are now handled in
AgentSession.prompt() alongside file-based slash commands. This:

- Removes duplicate tryHandleHookCommand from interactive-mode and rpc-mode
- All modes (interactive, RPC, print) share the same command handling logic
- AgentSession._tryExecuteHookCommand() builds CommandContext using:
  - UI context from hookRunner (set by mode)
  - sessionManager, modelRegistry from AgentSession
  - sendMessage via sendHookMessage
  - exec via exported execCommand
- Handler returning string uses it as prompt, undefined returns early

Also:
- Export execCommand from hooks/runner.ts
- Add getUIContext() and getHasUI() to HookRunner
- Make HookRunner.emitError() public for error reporting
2025-12-30 22:42:18 +01:00
..
agent Release v0.30.2 2025-12-26 03:25:55 +01:00
ai Fix API key priority and compaction bugs 2025-12-30 22:42:17 +01:00
coding-agent Move hook command execution to AgentSession.prompt() 2025-12-30 22:42:18 +01:00
mom Session tree: simplify types, add branching API, comprehensive tests 2025-12-30 22:42:18 +01:00
pods Release v0.30.2 2025-12-26 03:25:55 +01:00
proxy Release v0.30.2 2025-12-26 03:25:55 +01:00
tui Release v0.30.2 2025-12-26 03:25:55 +01:00
web-ui Release v0.30.2 2025-12-26 03:25:55 +01:00