Session ops and ContextPolicy in hx-core

This commit is contained in:
hermes committed 2026-10-09 19:34:59 +00:00
1 parent 69d5ae4581
commit be74dd9fec
7 files changed
+205 -105

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ One JSON object per line on stdout. `type` is one of:
JSON-RPC 2.0, one message per line on stdin/stdout. Events arrive as `event` notifications (params = the
event object above). Methods: `prompt {text}` (replies `{message, usage}` when the run ends), `abort`,
`state`, `messages`, `fork {id}`, `clear`, `set_model {model}`, `compact`, `complete {line, cursor?}`
`state`, `messages`, `fork {id}`, `clear` (alias of `new`: new session file next to the current one), `set_model {model}`, `compact`, `complete {line, cursor?}`
(replies `{start, items: [{label, detail}]}`; `label` replaces `line[start..cursor]`, cursor is a byte
offset defaulting to the end). One prompt at a time; other methods are rejected while it runs (except
`abort` and `complete`). Sessions: `sessions {scope?: "project"|"all"}` (path, title, messages, model,