@pstdio/pocketcoder-sdk 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/index.d.ts +2321 -89
- package/dist/index.js +1984 -380
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -39,6 +39,15 @@ terminal.onMessage((message) => {
|
|
|
39
39
|
authenticated terminal WebSocket. `client.terminals.list(id)` reads the
|
|
40
40
|
metadata-only terminal audit history.
|
|
41
41
|
|
|
42
|
+
`client.agent.interrupt(id)` stops the agent's current turn and keeps the
|
|
43
|
+
workspace and conversation. It returns `{ status: "requested" }` when it sent
|
|
44
|
+
the template's interrupt keys, or `{ status: "idle" }` when the agent was
|
|
45
|
+
already waiting for input. Stable state reports input readiness rather than a completed model turn.
|
|
46
|
+
For capable producers, observe the explicit terminal fact in
|
|
47
|
+
[conversation history](../../docs/conversation-identities.md). Wait for
|
|
48
|
+
`agent_state: "stable"` before the next
|
|
49
|
+
message.
|
|
50
|
+
|
|
42
51
|
Use `client.raw(path, init)` for endpoints not yet represented by a typed
|
|
43
52
|
resource client. API failures throw `PocketCoderError`; expired or deleted
|
|
44
53
|
conversation history throws the more specific `ConversationGoneError`.
|