Session ops and ContextPolicy in hx-core
This commit is contained in:
1 parent
69d5ae4581
commit
be74dd9fec
7 files changed
+205
-105
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user