co-mono/packages
Mario Zechner ccdd7bd283 Add session management and agent state methods to hooks API
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
2026-01-01 23:56:24 +01:00
..
agent Add setEditorText/getEditorText to hook UI context, improve custom() API 2026-01-01 00:04:56 +01:00
ai WIP: Rewrite export-html with tree sidebar, client-side rendering 2026-01-01 03:36:47 +01:00
coding-agent Add session management and agent state methods to hooks API 2026-01-01 23:56:24 +01:00
mom Update mom CHANGELOG.md for unreleased changes since v0.30.2 2025-12-31 00:07:49 +01:00
pods Fix pods CLI: remove reference to non-existent stopAllModels 2025-12-30 22:42:25 +01:00
tui Fix crash on Unicode format characters in visibleWidth 2026-01-01 22:33:09 +01:00
web-ui Minor README update 2025-12-31 00:03:50 +01:00