@robota-sdk/agent-transport-acp 0.0.0-stage → 3.0.0-beta.95

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/CHANGELOG.md ADDED
@@ -0,0 +1,79 @@
1
+ # @robota-sdk/agent-transport-acp
2
+
3
+ ## 3.0.0-beta.95
4
+ ### Minor Changes
5
+
6
+ - c967c57: `robota acp` runs the agent as an Agent Client Protocol (v1) agent over stdio, so an editor that launches it (Zed, JetBrains and other ACP clients) can create a session, send prompts, see streamed replies and tool calls, approve or reject permission requests, and cancel a turn. Workspace trust, permission rules and the sandbox behave as in the terminal: the editor answers prompts and widens nothing. A folder that is not trusted yet is refused at `session/new` with the `trust` command to run, a working directory other than the one the agent was started in and any editor-supplied MCP servers or extra roots are refused, and a prompt that starts with `/` runs that command.
7
+
8
+ New package `@robota-sdk/agent-transport-acp` provides `createAcpTransport`, the ACP `ITransportAdapter` the command uses.
9
+
10
+ `@robota-sdk/agent-transport/node` gains `attachStdioCarrier`, the process-input bridge and close observation a stdio protocol carrier shares. `agent-transport-mcp` now uses it for its stdio carrier; its behavior is unchanged.
11
+ - 04719a9: **A permission request names the tool call it is about.**
12
+
13
+ `IPermissionRequestEvent` gains an optional `executionId`: the same id the call's `tool_start` and
14
+ `tool_end` carry, so a surface can hold one row from the request to the call's end. The session's
15
+ permission path carries the call's id from the tool wrapper to the prompt (`IPermissionAskContext.executionId`)
16
+ and the framework's prompt registry stamps it on the event, so it reaches every client that receives
17
+ the event, the WebSocket and HTTP `permission_request` frames included. It is present whenever the
18
+ session reports that call (its own, or an in-process background agent's) and absent for a
19
+ child-process agent's forwarded request.
20
+
21
+ The ACP agent transport keys its permission rows by that id: the request's `toolCallId` is the
22
+ call's execution id, its start and end address the same row, a denial the session decides on its
23
+ own while the editor's dialog is open closes that one row, and two same-named calls each follow
24
+ their own row whatever order the editor answers in. A request that names no call gets a row that
25
+ closes with the answer, and is closed at the end of the turn if no answer came. The name-ordered
26
+ matching is gone.
27
+ - 04a6de4: **Reasoning text a provider streams now reaches the editor as an ACP `agent_thought_chunk`, through a new `thinking_delta` session event.**
28
+
29
+ `IChatOptions.onThinkingDelta`, `IRunOptions.onThinkingDelta` and `IResumeExecutionOptions.onThinkingDelta`
30
+ (typed `TThinkingDeltaCallback`) carry reasoning text from a provider through the run, and the session
31
+ options (`ISessionOptions.onThinkingDelta`, `ICreateSessionOptions.onThinkingDelta`) hand it to the
32
+ session's owner. `InteractiveSession` emits it as `thinking_delta(delta)`, beside `text_delta`. The
33
+ text is never part of the reply: it is not appended to the conversation, not streamed through
34
+ `onTextDelta`, and the core adds no record of its own for it (no text-delta log entry, no
35
+ `provider_stream_raw_delta`); a provider's own native payload capture and response metadata keep
36
+ what the provider sent, as before. A reasoning delta counts as provider activity for the idle
37
+ timeout whether or not anyone listens to it, so a model that is only thinking is not cut off. The
38
+ existing `thinking(isThinking)` event is unchanged and remains the busy indicator. Where a provider
39
+ sends no reasoning text, nothing is emitted and nothing new is switched on.
40
+
41
+ `@robota-sdk/agent-interface-session` is a major change because a new session event name makes an
42
+ exhaustive map over the event names stop compiling until it classifies the event.
43
+
44
+ `@robota-sdk/agent-transport-acp` sends each non-empty `thinking_delta` to the editor as an
45
+ `agent_thought_chunk`, in order with the message chunks, so `robota acp` shows the model's reasoning
46
+ in the editor. A turn that streamed only thoughts still shows its result text, because only reply
47
+ text marks a turn as streamed. The WebSocket wire, the HTTP stream, headless stream-json, `query()`
48
+ and the terminal UI do not carry the new event in this change (`@robota-sdk/agent-transport` and
49
+ `@robota-sdk/agent-ui-terminal` classify it as non-surface). A forked skill and an in-process subagent
50
+ pass their reply text up but not their reasoning.
51
+
52
+ Two providers already receive reasoning text and now report it. `@robota-sdk/agent-provider-openai`
53
+ passes `response.reasoning_summary_text.delta` events of a streamed Responses call to
54
+ `onThinkingDelta`; the API sends them only when the provider profile asks for a reasoning summary, and
55
+ no request option changed; a summary streamed in several parts, and the summary of a later reasoning
56
+ item, each start on a new paragraph (`\n\n`) so the parts do not run together.
57
+ `@robota-sdk/agent-provider-openai-compatible` reports the text of Gemma's thought channel, which the
58
+ provider already removed from the reply, as it streams across chunk boundaries, with each later
59
+ channel of one reply on a new paragraph; the reply text is unchanged. No other provider reports
60
+ reasoning, and Anthropic thinking is not enabled. A model fallback chain still moves to the next model when only reasoning had streamed.
61
+
62
+ The scripted test provider (`@robota-sdk/agent-core/testing`) accepts an optional `thinking` string on
63
+ a turn and delivers it through `onThinkingDelta` before the turn's text; the scripted session harness
64
+ collects `thinking_delta` and now keeps a scripted tool-call turn's `usage`, which it used to drop.
65
+
66
+ ### Patch Changes
67
+
68
+ - 0f7d214: Name a built-in file tool's path in the permission request an editor is asked about. The title of a Read request now reads `Read: <path>` instead of the tool name alone, because the adapter takes the call's identifying argument from the shared `permissionSummaryArgument` that the MCP transport also uses, which includes `filePath`.
69
+ - Updated dependencies [c967c57]
70
+ - Updated dependencies [60f3965]
71
+ - Updated dependencies [115e104]
72
+ - Updated dependencies [04719a9]
73
+ - Updated dependencies [04a6de4]
74
+ - Updated dependencies [0ba247b]
75
+ - Updated dependencies [02053ec]
76
+ - @robota-sdk/agent-transport@3.0.0-beta.95
77
+ - @robota-sdk/agent-interface-session@3.0.0-beta.95
78
+ - @robota-sdk/agent-core@3.0.0-beta.95
79
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.95