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

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,162 @@
1
+ # @robota-sdk/agent-transport-acp
2
+
3
+ ## 3.0.0-beta.100
4
+ ### Patch Changes
5
+
6
+ - @robota-sdk/agent-core@3.0.0-beta.100
7
+ - @robota-sdk/agent-interface-session@3.0.0-beta.100
8
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.100
9
+ - @robota-sdk/agent-transport@3.0.0-beta.100
10
+
11
+ ## 3.0.0-beta.99
12
+ ### Patch Changes
13
+
14
+ - @robota-sdk/agent-core@3.0.0-beta.99
15
+ - @robota-sdk/agent-interface-session@3.0.0-beta.99
16
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.99
17
+ - @robota-sdk/agent-transport@3.0.0-beta.99
18
+
19
+ ## 3.0.0-beta.98
20
+ ### Patch Changes
21
+
22
+ - @robota-sdk/agent-core@3.0.0-beta.98
23
+ - @robota-sdk/agent-interface-session@3.0.0-beta.98
24
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.98
25
+ - @robota-sdk/agent-transport@3.0.0-beta.98
26
+
27
+ ## 3.0.0-beta.97
28
+ ### Minor Changes
29
+
30
+ - e5a4254: **An editor that offers its file system carries the file tools' reads and writes.**
31
+
32
+ `Read`, `Write` and `Edit` take an optional `editorFiles` port (`IEditorFileAccess`), asked at each
33
+ call. On the host, after the tool's containment check (the permission gate has already decided),
34
+ `Read` returns the editor's text, unsaved changes included, and `Write` hands the content to the
35
+ editor; `Edit` reads where `Read` reads and writes where `Write` writes. The editor's text keeps
36
+ `Read`'s byte budget, binary refusal, formatting and cancellation, and an editor failure becomes the
37
+ tool's error result. `Glob` and `Grep` still search the disk and end their result with a note saying
38
+ so while an editor is attached. A sandbox with its own filesystem still carries every file tool, and
39
+ commands never use the editor. `createDefaultTools` and `createCodingPack` pass `editorFiles` through
40
+ to those tools only.
41
+
42
+ The ACP agent transport records the editor's `clientCapabilities.fs` and, once `session/new` binds the
43
+ session, hands the host an access through the new `onEditorFileAccess` option that sends
44
+ `fs/read_text_file` and `fs/write_text_file` for that session, for what the editor offered; stopping
45
+ the transport withdraws it. `robota acp` connects the two, so Read, Write and Edit go through the
46
+ editor in an editor that offers `fs`; `terminal/*` is not used.
47
+ - 0d43f37: **An editor can reopen an earlier conversation over ACP and offer the agent's slash commands.**
48
+
49
+ `@robota-sdk/agent-transport-acp` sends `available_commands_update` once the editor holds the session
50
+ id — the runtime's commands and the user-invocable skills, each with its argument hint — and again
51
+ after a prompt that changed the list (a plugin reload, a preset). A host can supply `loadSession`;
52
+ the agent then offers `session/load`, checks it exactly like `session/new` (the served directory, no
53
+ editor MCP servers or extra roots, workspace trust), refuses it while a prompt runs, and replays the
54
+ loaded conversation — what was typed, what the agent answered, and each finished tool call, a reused
55
+ call id getting a row of its own — before it answers. The port makes the stored session current in
56
+ the object the transport was attached to, so a host attaches a forwarder such as a session slot.
57
+ The published narrow `IAcpTransportSession` contract remains supported: command listing and history
58
+ display reads are optional capabilities. Loading is offered only with both the host port and the
59
+ history read, so a session cannot be replaced without replaying its conversation.
60
+
61
+ `robota acp` supplies the load: the editor may load a stored session of the folder it serves that
62
+ this version can read, and the agent replaces its session with it and shuts the old one down. A load
63
+ is refused while the current session has work in progress, and for a stored session with an active
64
+ goal, a live loop or a schedule that restore would re-arm to fire, which would otherwise run unseen
65
+ by the editor. With `--no-session-persistence` nothing is stored, so loading is not offered.
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [c207a31]
70
+ - Updated dependencies [9b4f63b]
71
+ - Updated dependencies [7911a7d]
72
+ - Updated dependencies [23a30cd]
73
+ - @robota-sdk/agent-core@3.0.0-beta.97
74
+ - @robota-sdk/agent-transport@3.0.0-beta.97
75
+ - @robota-sdk/agent-interface-session@3.0.0-beta.97
76
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.97
77
+
78
+ ## 3.0.0-beta.96
79
+ ### Patch Changes
80
+
81
+ - @robota-sdk/agent-core@3.0.0-beta.96
82
+ - @robota-sdk/agent-interface-session@3.0.0-beta.96
83
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.96
84
+ - @robota-sdk/agent-transport@3.0.0-beta.96
85
+
86
+ ## 3.0.0-beta.95
87
+ ### Minor Changes
88
+
89
+ - 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.
90
+
91
+ New package `@robota-sdk/agent-transport-acp` provides `createAcpTransport`, the ACP `ITransportAdapter` the command uses.
92
+
93
+ `@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.
94
+ - 04719a9: **A permission request names the tool call it is about.**
95
+
96
+ `IPermissionRequestEvent` gains an optional `executionId`: the same id the call's `tool_start` and
97
+ `tool_end` carry, so a surface can hold one row from the request to the call's end. The session's
98
+ permission path carries the call's id from the tool wrapper to the prompt (`IPermissionAskContext.executionId`)
99
+ and the framework's prompt registry stamps it on the event, so it reaches every client that receives
100
+ the event, the WebSocket and HTTP `permission_request` frames included. It is present whenever the
101
+ session reports that call (its own, or an in-process background agent's) and absent for a
102
+ child-process agent's forwarded request.
103
+
104
+ The ACP agent transport keys its permission rows by that id: the request's `toolCallId` is the
105
+ call's execution id, its start and end address the same row, a denial the session decides on its
106
+ own while the editor's dialog is open closes that one row, and two same-named calls each follow
107
+ their own row whatever order the editor answers in. A request that names no call gets a row that
108
+ closes with the answer, and is closed at the end of the turn if no answer came. The name-ordered
109
+ matching is gone.
110
+ - 04a6de4: **Reasoning text a provider streams now reaches the editor as an ACP `agent_thought_chunk`, through a new `thinking_delta` session event.**
111
+
112
+ `IChatOptions.onThinkingDelta`, `IRunOptions.onThinkingDelta` and `IResumeExecutionOptions.onThinkingDelta`
113
+ (typed `TThinkingDeltaCallback`) carry reasoning text from a provider through the run, and the session
114
+ options (`ISessionOptions.onThinkingDelta`, `ICreateSessionOptions.onThinkingDelta`) hand it to the
115
+ session's owner. `InteractiveSession` emits it as `thinking_delta(delta)`, beside `text_delta`. The
116
+ text is never part of the reply: it is not appended to the conversation, not streamed through
117
+ `onTextDelta`, and the core adds no record of its own for it (no text-delta log entry, no
118
+ `provider_stream_raw_delta`); a provider's own native payload capture and response metadata keep
119
+ what the provider sent, as before. A reasoning delta counts as provider activity for the idle
120
+ timeout whether or not anyone listens to it, so a model that is only thinking is not cut off. The
121
+ existing `thinking(isThinking)` event is unchanged and remains the busy indicator. Where a provider
122
+ sends no reasoning text, nothing is emitted and nothing new is switched on.
123
+
124
+ `@robota-sdk/agent-interface-session` is a major change because a new session event name makes an
125
+ exhaustive map over the event names stop compiling until it classifies the event.
126
+
127
+ `@robota-sdk/agent-transport-acp` sends each non-empty `thinking_delta` to the editor as an
128
+ `agent_thought_chunk`, in order with the message chunks, so `robota acp` shows the model's reasoning
129
+ in the editor. A turn that streamed only thoughts still shows its result text, because only reply
130
+ text marks a turn as streamed. The WebSocket wire, the HTTP stream, headless stream-json, `query()`
131
+ and the terminal UI do not carry the new event in this change (`@robota-sdk/agent-transport` and
132
+ `@robota-sdk/agent-ui-terminal` classify it as non-surface). A forked skill and an in-process subagent
133
+ pass their reply text up but not their reasoning.
134
+
135
+ Two providers already receive reasoning text and now report it. `@robota-sdk/agent-provider-openai`
136
+ passes `response.reasoning_summary_text.delta` events of a streamed Responses call to
137
+ `onThinkingDelta`; the API sends them only when the provider profile asks for a reasoning summary, and
138
+ no request option changed; a summary streamed in several parts, and the summary of a later reasoning
139
+ item, each start on a new paragraph (`\n\n`) so the parts do not run together.
140
+ `@robota-sdk/agent-provider-openai-compatible` reports the text of Gemma's thought channel, which the
141
+ provider already removed from the reply, as it streams across chunk boundaries, with each later
142
+ channel of one reply on a new paragraph; the reply text is unchanged. No other provider reports
143
+ reasoning, and Anthropic thinking is not enabled. A model fallback chain still moves to the next model when only reasoning had streamed.
144
+
145
+ The scripted test provider (`@robota-sdk/agent-core/testing`) accepts an optional `thinking` string on
146
+ a turn and delivers it through `onThinkingDelta` before the turn's text; the scripted session harness
147
+ collects `thinking_delta` and now keeps a scripted tool-call turn's `usage`, which it used to drop.
148
+
149
+ ### Patch Changes
150
+
151
+ - 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`.
152
+ - Updated dependencies [c967c57]
153
+ - Updated dependencies [60f3965]
154
+ - Updated dependencies [115e104]
155
+ - Updated dependencies [04719a9]
156
+ - Updated dependencies [04a6de4]
157
+ - Updated dependencies [0ba247b]
158
+ - Updated dependencies [02053ec]
159
+ - @robota-sdk/agent-transport@3.0.0-beta.95
160
+ - @robota-sdk/agent-interface-session@3.0.0-beta.95
161
+ - @robota-sdk/agent-core@3.0.0-beta.95
162
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.95