mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 12:03:23 +00:00
Add ReadonlySessionManager type for hooks
Hooks now receive ReadonlySessionManager in contexts, which only exposes read methods. Writes must go through pi.sendMessage() or pi.appendEntry().
This commit is contained in:
parent
26e1c9d91c
commit
38d65dfe59
3 changed files with 39 additions and 9 deletions
|
|
@ -33,6 +33,7 @@ export type {
|
|||
HookMessageRenderOptions,
|
||||
HookUIContext,
|
||||
LsToolResultEvent,
|
||||
ReadonlySessionManager,
|
||||
ReadToolResultEvent,
|
||||
RegisteredCommand,
|
||||
SessionEvent,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue