@robota-sdk/agent-ui-terminal 3.0.0-beta.99 → 3.0.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +970 -0
  2. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,975 @@
1
1
  # @robota-sdk/agent-ui-terminal
2
2
 
3
+ ## 3.0.2
4
+ ### Patch Changes
5
+
6
+ - @robota-sdk/agent-core@3.0.2
7
+ - @robota-sdk/agent-framework@3.0.2
8
+ - @robota-sdk/agent-interface-analytics@3.0.2
9
+ - @robota-sdk/agent-interface-command@3.0.2
10
+ - @robota-sdk/agent-interface-execution@3.0.2
11
+ - @robota-sdk/agent-interface-session@3.0.2
12
+ - @robota-sdk/agent-interface-transport@3.0.2
13
+ - @robota-sdk/agent-interface-tui@3.0.2
14
+ - @robota-sdk/agent-transport@3.0.2
15
+
16
+ ## 3.0.1
17
+ ### Patch Changes
18
+
19
+ - @robota-sdk/agent-core@3.0.1
20
+ - @robota-sdk/agent-framework@3.0.1
21
+ - @robota-sdk/agent-interface-analytics@3.0.1
22
+ - @robota-sdk/agent-interface-command@3.0.1
23
+ - @robota-sdk/agent-interface-execution@3.0.1
24
+ - @robota-sdk/agent-interface-session@3.0.1
25
+ - @robota-sdk/agent-interface-transport@3.0.1
26
+ - @robota-sdk/agent-interface-tui@3.0.1
27
+ - @robota-sdk/agent-transport@3.0.1
28
+
29
+ ## 3.0.0
30
+ ### Major Changes
31
+
32
+ - ba822c1: An attached client reads a workspace entry's detail, stops a waiting self-paced loop, completes
33
+ subcommands, and sees status changes another client made.
34
+
35
+ - `agent-interface-session` (major): `IInteractiveSession` gains the required roles
36
+ `ISessionExecutionDetail` and `ISessionSelfPacedLoopControl` (`TWaitingLoopStopOutcome`), and the
37
+ exhaustively mapped event map gains `status_changed`.
38
+ - `agent-transport` (major): `IProtocolSession` gains both roles; the wire unions gain
39
+ `read-execution-detail`, `stop-waiting-loop`, `execution_detail`, `execution_detail_error` and
40
+ `waiting_loop_stop`; `status_changed` is pushed as `session_status`; `isObserverMessageType` is
41
+ exported from the root and `./client`.
42
+ - `agent-interface-command` (minor): `ICommandListEntry` gains optional `argumentHint` and
43
+ `subcommands` (`ICommandSubcommandEntry`).
44
+ - `agent-cli` (minor):
45
+ - `robota session attach` and an attach from `robota session view` open the full terminal UI,
46
+ the one `robota --attach` opens, in drive mode or, with `--observe`, read-only. The reduced
47
+ attached view is gone.
48
+ - A served runtime names each of its sessions after the session's first real turn.
49
+ - `agent-framework` (minor):
50
+ - `InteractiveSession` gains `stopWaitingSelfPacedLoop(reason?)`: it stops the one waiting loop,
51
+ or stops none and names `/loop stop` when several wait. `SessionSlot` forwards it and
52
+ `readExecutionWorkspaceDetail`.
53
+ - The session emits `status_changed` when its mode, model, effort, goal or name changes, after a
54
+ command, a turn, a rename or a goal or plan transition.
55
+ - A new option `autoName: true` makes the session name itself once, after its first turn, with its
56
+ current provider; it keeps a name it already has and lets a rename made meanwhile win. Off by
57
+ default.
58
+ - The command catalog carries each command's `argumentHint` and `subcommands`.
59
+ - `agent-ui-terminal` (major):
60
+ - The full terminal UI attached to a host's session reads a workspace entry's detail, sends input
61
+ to a background task, stops a waiting self-paced loop on Esc, and completes subcommands.
62
+ - `renderAttachedApp` takes `mode: 'drive' | 'observe'` (default `'drive'`) and `announce`. In
63
+ observe mode the terminal sends only what an observer may send, refuses prompts, host commands,
64
+ abort and loop stop with a read-only notice, still runs `/exit` and its own commands, and its
65
+ status bar says it is observing. `ITuiChannelSnapshot` gains `readOnly`.
66
+ - The in-process terminal no longer names sessions; it builds its session with `autoName: true`.
67
+ `ITuiInteractionChannelOptions.onAutoNamed` is removed.
68
+ - e82215f: **ARCH-011: replace the ambiguous transport lifecycle stub with executable conformance.**
69
+
70
+ `ITransportAdapter` now requires a frozen `service | runner` lifecycle descriptor. `start()` resolves
71
+ at the concrete transport's documented readiness boundary; start before attach and repeated active
72
+ start reject a stable lifecycle error, repeated stop is safe, and stopped adapters can reattach and
73
+ restart.
74
+
75
+ Runner adapters launch separately and expose a typed terminal outcome through
76
+ `waitForCompletion()`. The registry accepts base adapters, rejects duplicate names, keeps
77
+ configuration as an optional capability, returns complete ordered records whose pending slots become
78
+ registry-owned `abandoned` outcomes on stop/rollback, and exposes a real-runner-only first-failure
79
+ wait. It serializes startup/stop, rejects active restart before mutation, and reverses partial startup
80
+ from the currently failing adapter with typed safe rollback details. Runtime host and serve mode
81
+ propagate real nonzero runner results without treating normal shutdown abandonment as failure.
82
+
83
+ HTTP, MCP, both WebSocket adapters, WebRTC, and headless invoke one shared public conformance kit.
84
+ The former `TuiTransport` export is removed because it ignored the attached session; use `renderApp`
85
+ or `TuiInteractionChannel`, which honestly own their session lifecycle.
86
+ - 2ebff01: Stop presenting `TuiInteractionChannel` as an `IInteractionChannel`: the TUI owns its session and
87
+ subscribes to the full session-event surface, so its unused no-op `write()` method is removed.
88
+ - 64ba748: **BREAKING — ARCH-042: project filesystem access is now an explicit, host-issued authority instead of an ambient consequence of `cwd`.**
89
+
90
+ `@robota-sdk/agent-framework` adds `WorkspaceTrustService` and the opaque
91
+ `IWorkspaceProjectAuthority`, plus bounded reader, settings-writer, state-storage, and mutation
92
+ facets. Public session, settings, context, checkpoint, memory, contribution, query, and replay
93
+ contracts consume those facets. A caller that does not supply `projectAccess` is deliberately
94
+ restricted to user-owned host state and receives no project filesystem capability.
95
+
96
+ The framework removes or renames ambient Node/project exports. Migrate `checkSettingsFile` to
97
+ `checkNodeHostSettingsFile`, `readMergedProviderSettingsFromPaths` to
98
+ `readMergedProviderSettingsFromSources`, `resolveProviderSettingsWriteTargetPath` to
99
+ `resolveProviderSettingsWriteTarget`, `FileSystemMemoryStore` / `createFileSystemMemoryStore` to
100
+ `WorkspaceMemoryStore` / `createWorkspaceMemoryStore`, and `PluginSettingsStore` to
101
+ `NodeHostPluginSettingsStore`. Host-only git helpers now carry the `FromNodeHost` suffix.
102
+ `projectPaths`, `resolveSettingsPathForScope`, and `getProviderSettingsPaths` are removed; project
103
+ consumers must use the authority facets rather than recover absolute paths.
104
+
105
+ `@robota-sdk/agent-session` renames the Node filesystem implementation `SessionStore` to
106
+ `NodeSessionStore` and adds explicit session-log/external-payload source and sink ports. Session
107
+ replay no longer resolves external payload files from an ambient directory.
108
+
109
+ `@robota-sdk/agent-interface-transport` changes `ISkillExecutionPort.loadCommands(cwd, home?)` to
110
+ the authority-bound `loadCommands()` and removes the optional absolute-path leak
111
+ `IInteractiveSessionStore.getFilePath`. `@robota-sdk/agent-command` consequently replaces the
112
+ `cwd` option of `createSkillsCommandModule` with required `contributionSources`; default command
113
+ composition accepts explicit contribution sources and discovers no project skills when none are
114
+ provided.
115
+
116
+ `@robota-sdk/agent-cli`, `@robota-sdk/agent-transport`, and
117
+ `@robota-sdk/agent-transport-tui` thread the trusted-or-restricted project decision through every
118
+ session surface. Embedded callers that need project settings, state, context, skills, checkpoints,
119
+ or mutation must mint access through `WorkspaceTrustService` and pass the returned
120
+ `projectAccess` (and a separately approved mutation/settings facet where required). Omitting it is
121
+ still type-compatible but is behaviorally breaking: the surface now fails closed instead of
122
+ reading or writing the current directory.
123
+ - f3fe3db: The terminal renderer no longer reads `PRODUCT_SCREEN_READER_STARTUP_QUIET_MS` or
124
+ `PRODUCT_SCREEN_READER_PREPARK_MS` from the process environment. SDK hosts calling `renderApp`
125
+ directly should pass raw timing choices and diagnostic labels through the new optional
126
+ `screenReaderPacing` render option. Without it, the renderer uses its existing 900 ms startup
127
+ quiet period and 50 ms pre-write park when screen-reader mode is enabled. The configured CLI still
128
+ reads the same environment variables and preserves their validation, bounds, and warnings.
129
+ - 724d5b6: The terminal renderer no longer reads `PRODUCT_IME_CURSOR` or `PRODUCT_TURN_MARKS` from the process environment. SDK hosts calling `renderApp` directly should pass cursor and turn-mark choices through the optional `terminalCapabilities` render option. Without a host choice, the renderer keeps its terminal and TTY defaults. The configured CLI still reads both environment variables and preserves its exact `1` and `0` overrides.
130
+
131
+ ### Minor Changes
132
+
133
+ - 9c19c50: `/fork [name] [--same-dir]` copies the live conversation into a background session.
134
+
135
+ The session writes a copy of its own record under a fresh id — messages, system prompt, tool schemas
136
+ and full history, and deliberately not the sandbox snapshot, goal, plan or branch — then spawns a
137
+ background job carrying only `resumeSessionId`. The child restores that record itself, so no
138
+ conversation crosses the child-process boundary and the worker start payload's key set is unchanged.
139
+ The background panel gains an `attach` control that switches the terminal onto the forked session; it
140
+ is a view switch, never a merge, and a missing record or a terminal task is refused with the task's
141
+ own status.
142
+
143
+ **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
144
+ required member.** `forkSession({ name? })` is not optional, so an external implementation of that
145
+ role port stops compiling until it adds the method. Every other change in this set is additive:
146
+
147
+ - `agent-interface-execution` — `TExecutionControl` gains `'attach'`.
148
+ - `agent-interface-command` — `TCommandUiIntent` gains `{ type: 'switch-session'; sessionId }`.
149
+ - `agent-subagent-runner` — `ISubagentWorkerComposition` gains the optional `openSessionStore`, and
150
+ the worker resumes a record when the job names one. A composition that registers no store and
151
+ receives no `resumeSessionId` behaves exactly as before.
152
+ - `agent-framework` also gains the fork-record builder, `SessionTurnMemory`, and
153
+ `IAgentBackgroundTaskRequest.resumeSessionId?`; `loadSessionRecord` now returns
154
+ `restoredSystemPrompt`, which makes a record field that was written and never read take effect on
155
+ restore.
156
+ - `agent-executor`, `agent-command`, `agent-transport-tui`, `agent-cli` — the spawn input, the
157
+ `/fork` module and the attach control that carry it to the surface.
158
+ - 617b795: `robota session attach <id> [--observe]` puts this terminal on a live supervised session.
159
+
160
+ - It asks first, on the controlling terminal, naming the session and the role: drive (send prompts,
161
+ answer its questions) or observe (read only). The yes holds only for the process start it named: if
162
+ the session restarted meanwhile, the attach is refused.
163
+ - It needs an interactive terminal. Without one (a script, or an agent running shell commands) it is
164
+ refused and prints the command for the user to run. It is not available as a slash command or a
165
+ model tool.
166
+ - The terminal view shows the conversation so far, then follows the session live: streaming replies,
167
+ tools, other terminals' prompts, queued input and questions. In drive mode it sends prompts and
168
+ `/commands` and answers permission prompts and questions; a question answered on another surface is
169
+ dismissed. Observe mode is labelled read-only and sends nothing but reads.
170
+ - `/exit`, `/quit`, Ctrl-C and Ctrl-] detach. Nothing is sent to the session, so its turn continues and
171
+ it keeps running; stop it with `robota session stop` or from `robota session view`.
172
+ - The attached terminal is the full terminal UI (`renderAttachedApp` in `agent-ui-terminal`).
173
+ - A handshake from a connection that already closed no longer holds one of the session's attach slots.
174
+ - 724fabb: External-event grants are given at start, carried exactly to a background session, listed without their
175
+ principal, and revoked by the owner.
176
+
177
+ - `agent-framework` (breaking) — `openExternalEventSource` and `ExternalEventIngress.open` take only
178
+ `{ grant, audit? }`: the session builds each grant's verifier from `grant.verifier` with the
179
+ `externalEventVerifierFactory` its host passed when the session was built (without one, no grant opens), and an
180
+ open that supplies a verifier or a factory is refused. `IExternalEventSource.revoke()` stops the grant's queued and running turns,
181
+ refuses its later events as `grant-revoked`, and keeps the label from being opened again. A submission the
182
+ session refuses is `shutting-down` only while it shuts down, and `session-unavailable` otherwise. New command
183
+ host adapter `externalEvents` (`ICommandExternalEventsAdapter`).
184
+ - `agent-ui-terminal` — forwards `externalEventVerifierFactory` from the render options to the session.
185
+ - `agent-interface-transport` — `TExternalEventRefusal` gains `session-unavailable`.
186
+ - `agent-command` — `/events` lists the session's grants (label, principal kind, state, counts) and
187
+ `/events revoke <grant-id>` withdraws one. User-only.
188
+ - `agent-cli` — a grant file (`grantId`, `issuer`, `resource` ending in `/events/<grantId>`, exactly one of
189
+ `subject` or `client`, `scopes`, optional `algorithms` and `rate`) is validated before anything starts, with a
190
+ reason that names the grant and no configured value. `robota --external-event-grant <file>` (TUI) and
191
+ `robota session start --background --external-event-grant <file>` open every grant or fail the start; a
192
+ background session receives its grants through a private file, opens them before it reports ready, and the
193
+ launcher refuses a readiness that names other grants. `robota session events list <id> [--json]` and
194
+ `robota session events revoke <id> <grant-id>` work over the generation-bound control socket, and
195
+ `robota session list --format json` shows each grant's counts. The retired `--external-event-allow` now points
196
+ at `--external-event-grant`.
197
+ - 1706d29: `robota session view` attaches to and peeks at sessions.
198
+
199
+ - `a` attaches to the selected session to drive it, and `p` peeks at it read-only. Both are offered, in
200
+ the footer and in help, only on a row that is alive, controllable and verified. The view asks first,
201
+ naming the role. The yes is held to the process start the row showed: if the session restarted or
202
+ lost control meanwhile, the attach is refused. Detaching returns to the view, on the same row and
203
+ grouping, without printing the screen-reader line again.
204
+ - **Breaking:** opening a row's linked PR moves from `p` to `o`.
205
+ - The attached view shows the keys for what is on screen: sending, answering a permission, or
206
+ answering a question. With a screen reader it words every line ("Prompt from attach:2: …",
207
+ "Tool started: …", "Permission needed: …") and uses no symbols.
208
+ - Questions wait their turn: a second permission request or question no longer replaces the one on
209
+ screen, and one settled elsewhere leaves the queue.
210
+ - Line breaks inside pasted text become spaces instead of sending the text. In a masked answer they are
211
+ dropped, so a copied key that ends with a line break is kept exactly.
212
+ - `robota session attach` accepts `--screen-reader` and `--no-screen-reader`.
213
+ - The attach client closes a connection that sends more frames than it can hold before the view reads
214
+ them.
215
+ - af2f2ad: `/cd <directory>` continues the conversation in another directory.
216
+
217
+ - **A move is a new session in the target directory.** In the TUI, the configured CLI saves a copy of the
218
+ conversation where the target's session store will find it, ends the current run through its
219
+ normal end-of-life flow, and starts again in the target directory resuming that copy. The target's
220
+ settings, trust decision, tools, skills and `AGENTS.md` apply, exactly as if the configured CLI had been
221
+ launched there. The process boundary makes the move atomic, so no tool call can straddle it.
222
+ - **The system prompt is kept as recorded**, so a provider's prompt cache survives. One appended
223
+ `<workspace-move>` message tells the model the new directory, and which project instructions now
224
+ apply.
225
+ - **Refused** while a turn is running or a background task is still running, for a missing directory
226
+ or the current one, and for a target a `Cd(...)` deny rule names.
227
+ - **Access never widens:** a restricted session stays restricted after a move, and a trusted session
228
+ takes the target's own trust decision.
229
+ - New contracts: the `workspace-move` host action, `ICommandWorkspaceAdapter` /
230
+ `IWorkspaceMoveRequest`, `InteractiveSession.moveWorkspace`, and the `workspaceMovedFrom` session
231
+ option. The CLI's `--moved-from` and `--restricted-workspace` flags are internal.
232
+ - 57f57f5: A daemon keeps several sessions live, and each client is bound to its own: one client's switch moves
233
+ only that client.
234
+
235
+ - `agent-interface-session`: `ISessionBinder`/`ISessionBinding`, the session-change refusal codes with
236
+ `isSessionChangeRefusal`, and listing rows that may say `live` and `clients`.
237
+ - `agent-framework`: `SessionPool` and `SessionChangeRefusal`.
238
+ - `agent-transport` (**major**): a new server frame, `session_change_failed`, which an exhaustive
239
+ consumer must handle. A refused `new-session` or `switch-session` now answers with it, carrying a
240
+ `code`, instead of `protocol_error`; both requests take an optional `requestId` that it echoes.
241
+ - `agent-transport-ws`: the `sessionBinder` option binds each connection to its own session and
242
+ releases the binding when the connection closes.
243
+ - `agent-cli`: `robota --serve` and the daemon keep up to four sessions live. Each WebSocket client and
244
+ attached terminal is bound to its own session; leaving a busy session is no longer refused, and only
245
+ the last driver of a session with a pending prompt is kept from leaving it. Grants and the supervised
246
+ name stay on the runtime's first session, and its reported activity covers every live session.
247
+ - `agent-ui-web`: a refused new or switch shows the host's reason as a notice (an older host's
248
+ `protocol_error` still does); the session sidebar marks live sessions and counts the other clients
249
+ on each; after a reconnect to a host that keeps sessions live, the GUI returns to the session it was on.
250
+ - `agent-ui-terminal`: an attached terminal shows why a switch was refused, and the picker's switch
251
+ stays pending until the host answers; the session picker marks live sessions and their clients.
252
+ - 6e6b06b: `robota --attach` puts the full terminal UI on this workspace's running daemon.
253
+
254
+ - **`agent-ui-terminal`:**
255
+ - `renderAttachedApp` renders the same App over a wire connection, through `WireTuiChannel`, a second implementation of the TUI's channel port.
256
+ - Leaving detaches; the daemon keeps running.
257
+ - The session picker lists and switches the daemon's sessions. It opens on the daemon's answer to `/resume`; a daemon that cannot list its sessions says why instead.
258
+ - With no saved sessions to resume, `/resume` says so and keeps the prompt, instead of opening an empty picker that blocks input. This applies to the in-process TUI too.
259
+ - The session picker lists an unnamed session by the part of its id that differs, not by the `session_` prefix every id shares. This applies to the in-process TUI too.
260
+ - The status bar names the daemon's current session: its name, or else its short id.
261
+ - A question already open when the terminal attaches is shown, and a long session's history reaches the terminal without the daemon cutting it off.
262
+ - Features that belong to the runtime process say they are unavailable while attached: the plugin manager, background task details and sending to an agent job.
263
+ - **`agent-cli`:**
264
+ - `robota --attach` finds the workspace daemon and asks the user to confirm on the terminal, as `robota session attach` does, then attaches.
265
+ - Options that shape a session are refused, because the daemon shapes its session.
266
+ - A terminal attached over the supervised socket can now list, start and switch sessions.
267
+ - A client's command no longer stops or restarts the workspace daemon. `/language`, `/reset`, `/exit` and provider setup or switch keep their saved change, and the client is told to run `robota daemon stop`, then `robota daemon start`.
268
+ - `robota --attach` installs the plain TUI's process guards, so an error the plain TUI survives no longer ends the attached terminal.
269
+ - A client's command no longer stops or restarts any supervised session either; the client is told to run `robota session stop <id>`, and the saved change applies to a new session from `robota session start --background`.
270
+ - caaab20: `/rewind` works again. Every session the CLI builds for a trusted workspace captures edit
271
+ checkpoints; before, none did, and `/rewind` failed everywhere with "Edit checkpoints require
272
+ project authority."
273
+
274
+ - `agent-cli` (patch): a trusted workspace composes an edit checkpoint store for the terminal UI, a
275
+ print run, a served runtime and each session a daemon keeps live. Every session gets its own
276
+ store, pooled or switched to in the terminal UI, since two can run turns at the same time. On a host that cannot prove a project write
277
+ stays inside the project (every platform but Linux), none is composed: a checkpoint could be
278
+ neither saved nor restored there.
279
+ - `agent-command` (patch): where a session has no checkpoints, `/rewind` says why: a restricted
280
+ workspace is told to run `robota trust --yes` and restart the configured CLI, and a host that cannot write
281
+ the project safely says so. `/rewind list` reports this as a failed command instead of throwing.
282
+ - `agent-framework` (minor): a checkpoint operation on a session without a store throws
283
+ `EditCheckpointsUnavailableError`, whose `reason` is `host-cannot-write-project`,
284
+ `restricted-workspace` or `no-checkpoint-store`. It is a `WorkspaceAuthorityRequiredError`, as
285
+ before, named `EditCheckpointsUnavailableError`. `HeadlessInteractionChannel` takes an
286
+ `editCheckpointStore` option.
287
+ - `agent-ui-terminal` (minor): `renderApp` takes `createEditCheckpointStore` in place of
288
+ `editCheckpointStore`, and builds each session its own store, since a session switch can build the
289
+ next session before the old one's turn ends. `TuiInteractionChannel` keeps `editCheckpointStore`:
290
+ a channel runs one session.
291
+ - f01868f: `sandbox.autoAllowBashIfSandboxed` takes effect. The CLI confined shell commands in the OS sandbox,
292
+ but no session learned about the sandbox, so a confined command still asked for approval in the
293
+ terminal UI, a served runtime and MCP serve, and a print run with no one to approve it refused it.
294
+
295
+ - `agent-cli` (patch): a served session, and each session a daemon keeps live, receives the sandbox
296
+ the shell tools run under.
297
+ - `agent-framework` (minor): `HeadlessInteractionChannel` takes a `sandboxClient` option and hands it
298
+ to the session.
299
+ - `agent-ui-terminal` (minor): `renderApp` and `TuiInteractionChannel` take a `sandboxClient` option
300
+ and hand it to each session they build.
301
+ - 4f35721: Starting a session from `robota session view` in a folder that is not trusted asks what to do
302
+ instead of failing. The question names the folder and lists what trust would load. The choices are
303
+ `y` to trust the folder and start, `r` to start it Restricted, and `n` to cancel. A Restricted answer
304
+ holds even if the folder was trusted meanwhile. Before, the view showed only "Start failed".
305
+
306
+ - `agent-cli` (patch):
307
+ - A background session started Restricted runs with `--restricted-workspace`.
308
+ - A headless start that asked to run Restricted is no longer refused for want of trust, the same
309
+ as `--safe-mode`.
310
+ - `agent-ui-terminal` (minor): the session view takes `startTrustQuestion`, which returns the
311
+ folder and what trust would load (`ISupervisedStartTrustQuestion`). `onStart` receives the person's
312
+ choice (`TSupervisedStartTrustChoice`).
313
+ - 4c5148e: ARCH-005 Stage S2 — `configured CLI` is now expressed as an `IProductProfile` and assembled by `assembleProduct`;
314
+ the hand-wired composition root in `agent-cli` is gone.
315
+
316
+ - **`@robota-sdk/agent-product`** — provider construction returns IN-KERNEL. `assembleProduct` builds the
317
+ provider from `providerDefinitions` + the shell's already-resolved `providerSettings` vian agent-core's
318
+ pure `createProviderFromConfig`; `provider` is now an OPTIONAL injected override. Both are optional, so a
319
+ Mode A profile can carry only `providerDefinitions`. The fold stays pure and IO-free — every
320
+ settings/env/file read still happens in the shell. Adds `IAssembledProduct.buildRuntimeOptions`, the pure
321
+ overlay `buildRuntime` delegates through, and `IAssembledProduct.providerDefinitions`.
322
+ **Breaking for pre-release consumers:** `IProductProfile.providerDefinitions` is now required and
323
+ `IProductProfile.provider` / `IAssembledProduct.provider` are now optional.
324
+ - **`@robota-sdk/agent-framework`** — a scoped, additive session seam: `agentDefinitions` on
325
+ `TInteractiveSessionOptions` / `ICreateSessionOptions`, composed into the built-in agent tier ahead of
326
+ `BUILT_IN_AGENTS`, so capability-pack subagents actually reach the runtime. Precedence: discovered
327
+ project/user definitions > injected > built-in. `AgentDefinitionLoader` now dedupes within that tier
328
+ (first wins). Absent ⇒ unchanged behavior.
329
+ - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
330
+ `agentDefinitions` through the headless and TUI channels so every product surface carries the seam.
331
+ - **`@robota-sdk/agent-cli`** — `configured CLI`'s identity (branding, provider surface, presets,
332
+ `packs: [codingPack]`, base command modules, injected transports/runners/subagent factory) is declared as
333
+ data in a product profile and folded by `assembleProduct`. The coding command modules (`/shell`,
334
+ `/editor`) now come from `pack-coding` rather than the base set, so the pack is load-bearing. What remains
335
+ in the CLI is product-shell only: arg parsing, settings/file IO, terminal notices, first-run/init/
336
+ `--configure`, memory + session-resume UX, and print/serve/TUI mode dispatch.
337
+
338
+ End-user `configured CLI` behavior is unchanged in substance — the assembled command-module set, provider surface,
339
+ tool set, subagent roster, and preset resolution all match the pre-change assembly — with one accepted
340
+ cosmetic delta: `/shell` and `/editor` now appear at the END of `/help` output and of the slash-command
341
+ autocomplete popup rather than mid-list, because they arrive from `pack-coding` and both surfaces render in
342
+ module-insertion order. Same commands, same behavior, different position.
343
+ - 0116a29: ARCH-006 completion — the configured product's capability packs now OWN its tool surface, and `pack-coding` is built by a
344
+ context-bound factory.
345
+
346
+ - **`@robota-sdk/pack-coding` (BREAKING)** — the module-level `codingPack` constant is **removed** and
347
+ replaced by `createCodingPack({ cwd, sandboxClient })`, with `cwd` **required**. This is a safety change,
348
+ not a style one: `agent-tools` disarms its working-directory path guard when `cwd` is `undefined`, so a
349
+ pack whose file tools are built with no options contributes an **unsandboxed** `Read`/`Write`/`Edit`.
350
+ That was inert while `agent-framework` always supplied its own context-bound default tier, but ARCH-006
351
+ lets a product hand the whole tool surface to its packs (`defaultTools: []`) — and a context-free pack in
352
+ that position is a real hole. Keeping a zero-option export beside that seam would be a loaded gun, so it
353
+ is gone rather than deprecated. Each call returns fresh instances bound to the supplied context, so two
354
+ products in one process get independently-scoped file tools. Migration: replace `codingPack` with
355
+ `createCodingPack({ cwd: process.cwd() })`.
356
+ - **`@robota-sdk/agent-cli`** — `configured CLI`'s packs are built from the shell's resolved `cwd`
357
+ (`createProductCapabilityPacks({ cwd })`) before command setup, and the runtime seam passes
358
+ `PRODUCT_PACKS_OWN_TOOL_SURFACE` (an empty `defaultTools`) so the framework's `createDefaultTools()` tier
359
+ is REPLACED. Every tool the configured CLI runs now arrives from a capability pack: dropping a pack drops its tools,
360
+ exactly as it already dropped its command modules and subagents.
361
+ - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
362
+ `additionalTools` and `defaultTools` through the headless and TUI channels, mirroring the existing
363
+ `agentDefinitions` pass-through, so print, serve and TUI carry an identical tool surface.
364
+
365
+ End-user `configured CLI` behavior is unchanged, including the security property: the real binary still answers a
366
+ read outside the working directory with `Access denied: "…" is outside the working directory`.
367
+ - 2ebff01: Emit the complete persisted checkpoint and branch lifecycle, forward plan, context-refresh, and
368
+ branch events through protocol transports, and render deterministic bounded notices in the TUI.
369
+ Transport-owned delivery failures now enter the owning carrier cleanup lifecycle without reversing
370
+ an already-committed session operation.
371
+ - 1e3f91a: CMD-004 Phase 2 Stage E (breaking, beta line): the legacy `TCommandEffect` union and
372
+ `ICommandResult.effects` are DELETED. Commands emit the split contract directly —
373
+ `hostActions` (session-executed via `ICommandHostAdapters`; works headless and remote) and
374
+ `uiIntents` (requester-routed `ui_intent` session events with UI-neutral `show-*` names).
375
+ Final carriers for the former notification effects: `session_renamed` and the new
376
+ `history_cleared` are BROADCAST session events (forwarded to every WS surface, folded by the
377
+ TUI transcript/title and the GUI reducer's new `sessionName`/transcript-reset state);
378
+ `session-execution-started` rides `result.data.sessionExecution`; the plugin-registry refresh
379
+ rides `result.data.pluginRegistryReloaded`. A mechanical grep floor
380
+ (`command-effect-grep-floor.test.ts`) keeps `tui-requested`/`TCommandEffect`/`effects:` out of
381
+ every `packages/*/src` production tree.
382
+ - 7d9cc66: Preserve an explicitly supplied host tool scheduling policy through session assembly and CLI presentation modes, retaining permission admission and conservative handling of undeclared resources.
383
+ - 90e7a10: The default background observer warning code and exported `OBSERVER_FAILURE_WARNING_CODE` value
384
+ change from `PRODUCT_BACKGROUND_OBSERVER_FAILURE` to `BACKGROUND_OBSERVER_FAILURE`. Hosts matching
385
+ the old warning code should match the new neutral code or provide `observerFailureWarningCode` in
386
+ their background manager or session options. The configured CLI supplies its existing code explicitly
387
+ across print, goal, serve, MCP, and TUI sessions.
388
+ - 44393be: Add the `/remote-control` enable path (REMOTE-008 Stage B4-2b) — turn on P2P remote control locally, get
389
+ a QR + link, and a paired device co-drives the SAME live session over pairing-gated WebRTC. The command
390
+ is a declarative trigger returning `remote-control-enable-requested`/`-stop-requested` effects (SSOT
391
+ agent-interface-transport) and reads state via a new `ICommandHostAdapters.remoteControl.getStatus()`;
392
+ the TUI dispatches the effects to injected callbacks; all transport construction lives at the agent-cli
393
+ composition root (`WsSignalingClient` + pairing-gated `WebRtcTransport`, relay URL from
394
+ `transports.webrtc.options.relayUrl`, QR/link rendered into history). Fail-closed: no relay configured ⇒
395
+ does nothing; pairing mismatch/timeout ⇒ the session is never exposed. Consumes REMOTE-007 so a paired
396
+ remote owner answers their own permission/ask prompts over the WebRTC channel.
397
+ - fde558e: Forward organization policy through TUI, print, and goal sessions so blocked commands are enforced consistently. Preserve print/goal preset generation, language, prompt-seed, and structured-response options through the headless channel, and guard declared session-capability projections against silent field loss.
398
+
399
+ ### Patch Changes
400
+
401
+ - 8625a14: Supervised session control is bound to one process start.
402
+
403
+ - Each supervised session start writes a fresh random generation into its private registration. Its
404
+ control endpoint echoes that generation in every reply and refuses any request that carries a
405
+ different one, or none.
406
+ - `session view` keeps the generation each row was verified with. Stop and linked-PR opening send it,
407
+ so a session that restarted under the same id since the row was shown is refused instead of acted
408
+ on. A stop confirmation also refuses when the row's generation changed while it was open.
409
+ - `session stop`, `rename`, `link-pr` and `unlink-pr` read the generation at request time and the
410
+ session itself checks it, closing the window between the liveness check and the action.
411
+ - A registration without a generation (written by an earlier version) is listed but never
412
+ controllable; restart that session to control it again.
413
+ - The generation is never printed by `session list` in text or JSON.
414
+ - 9368d00: Advisor escalation: the main model can consult a second model at the decision points it chooses.
415
+
416
+ With an advisor configured (`--advisor <profile>[:<model>]`, or the `advisorModel` setting that
417
+ `/advisor` saves; the flag wins), the session gets an `Advisor({ question? })` tool. The advisor reads
418
+ the whole conversation — system prompt, messages, tool calls and results — serialized into one prompt
419
+ and sent with `toolChoice: 'none'`, truncated from the front to fit its window with the system prompt
420
+ kept, and declines when even that does not fit. Its answer comes back framed as guidance to verify;
421
+ an empty or refusing answer reads as declined. Calls are limited to two per turn and a fixed number
422
+ per session, parallel calls in one round share those limits, and a repeated question in the same
423
+ turn returns the earlier answer. A request that was sent counts even when the provider failed (the
424
+ decline is reported by class, never by its text); only a call declined before sending gives its slot
425
+ back.
426
+
427
+ Advisor usage, including in-process subagents', is recorded where each turn's usage is recorded —
428
+ the persisted session history, under the advisor's own provider and model — so `/cost`, usage reports
429
+ and resumed sessions include it. `/cost` now totals that history and prices each part on its own
430
+ model, showing "mixed" when more than one model was priced.
431
+
432
+ `/advisor <model>` and `/advisor off` change only where calls go, never the tool list, so the main
433
+ model's prompt cache is not invalidated mid-session; the tool is added only when a session starts
434
+ with an advisor. Sending history to a destination (provider type and endpoint host) the main model
435
+ does not already use needs a one-time consent per destination, kept in the user settings file; a
436
+ refusal is remembered for the session. The organization's `allowedProviders` applies, and
437
+ `PRODUCT_DISABLE_ADVISOR=1` turns it off completely. In-process subagents inherit the advisor, bound
438
+ to their own conversation; child-process subagents do not get it.
439
+
440
+ **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
441
+ required member,** `getSessionUsage()`, the session's persisted usage records. An external
442
+ implementation of that role port stops compiling until it adds the method. The rest is additive.
443
+
444
+ - `agent-session` — `formatConversationEntries`, the one text rendering of a conversation, now used
445
+ by compaction too. It keeps tool calls and results, marks a user message a peer session sent
446
+ (`user [from "peer:<id>"]`), and JSON-encodes every message onto one line so no content can forge
447
+ another entry; compaction previously flattened all of this. `Session.getProvider()` returns the
448
+ provider the session currently uses.
449
+ - `agent-framework` — `AdvisorController`, `createAdvisorTool`, the advisor spec helpers, provider
450
+ destinations (`describeProviderDestination`, `rememberProviderDestination`), `getSessionUsage` and
451
+ `ISessionUsageRecord`, the `onUsageRecorded` session option, and the optional `advisor` command
452
+ host adapter. Session assembly binds a host-supplied Advisor tool to the session holding it.
453
+ - `agent-command` — the `/advisor` command module; `/cost` reads the session's persisted usage.
454
+ - `agent-cli` — the `--advisor` flag, `advisorModel` setting, per-destination consent store and kill
455
+ switch.
456
+ - `agent-ui-terminal` — a usage line from another source (the advisor, a background task) names that
457
+ source and leaves out the context window it does not have.
458
+ - `agent-session-analytics` — personal usage counts an advisor call's tokens and cost toward its
459
+ turn without counting it as a turn.
460
+ - 2711ec6: One broken skill or agent file no longer stops the session.
461
+
462
+ Skill, command and agent definitions are shared with other hosts through `.claude`, and those hosts
463
+ define fields of their own. The frontmatter decoder now validates only the fields the configured CLI owns and
464
+ ignores the rest (nested `metadata` entries included); a malformed value of an owned field is still
465
+ refused. A refused file is skipped with a single warning and still claims its name, so a
466
+ lower-priority definition cannot stand in for it. An empty `argument-hint` reads as no hint. When
467
+ initialization does fail, the session reports the cause to readiness probes instead of "not
468
+ initialized", so the terminal shows the reason at once rather than a 15-second timeout.
469
+
470
+ The terminal also stops printing type names for message-less telemetry records, keeps its own notices
471
+ in place across a history sync so the following answer is not skipped, and CLI diagnostics print
472
+ their context instead of `[object Object]`, through the console so Ink renders them above the frame.
473
+ - 18b52cc: Built-in commands are offered to the model deliberately, each described for the model, and never
474
+ with a trust, credential or permission-widening action.
475
+
476
+ - `agent-interface-command` — `ICommand` gains `modelDescription?` (what the model is told, beside the
477
+ short `/help` line), and `modelInvocable` on a subcommand entry now narrows what the model may run.
478
+ - `agent-framework` — `ISystemCommand` gains `modelDescription?` and `modelRequiresPermission?`.
479
+ Once any subcommand of a model-invocable command declares `modelInvocable`, the model may run only
480
+ the bare command and the subcommands declared `true`; everything else, including an alias or an
481
+ undeclared subcommand, is refused before the command runs. The model-facing descriptor lists only
482
+ that subset. A model-requested monitor's command is now decided by the shell tool's gate (its
483
+ Bash/Shell rules, the mode and the prompt) and a refusal rejects with the new
484
+ `MonitorCommandRefusedError`. The `scriptedSession` test harness accepts `permissions` patterns.
485
+ - `agent-session` — `Session.checkToolPermission(toolName, toolArgs)` decides an action that has a
486
+ tool's effect by another route: that tool's PreToolUse hooks, then the gate's rules, mode,
487
+ remembered consent and prompt — never the command sandbox's auto-approval, since the action does
488
+ not run inside the sandbox.
489
+ - `agent-framework` also: `ICommandMCPActivationAdapter.userActionSurface?` tells `/mcp` whether the
490
+ user can type a session command, so the model's status names the terminal sign-in otherwise.
491
+ - `agent-command` — `/context` (bare and `list`), `/cost` (the report, not `budget`) and `/mcp`
492
+ (`status` only, without a prompt) are now model-invocable; `/memory approve` and `/memory reject`
493
+ are now user-only; the model's `/monitor` is decided by the shell gate rather than by consent to
494
+ the command's name. Every model-invocable command carries a model-facing description. The model's
495
+ `/mcp status` shows only safe names, states and the command to suggest, and a caller that does not
496
+ identify itself gets that view. `/context list` accounts only for turns still in context. New
497
+ `mcpUserActionNotice`, `mcpUserActionCommand` and `mcpUnavailableServersNotice` build the fixed
498
+ notices.
499
+ - `agent-command-workflows` — `/workflows` carries a model-facing description.
500
+ - `agent-mcp` — `createDiscoveredTool` accepts `authFailureNotice`: a call the server refuses for
501
+ authentication returns that host text instead of the generic failure.
502
+ - `agent-cli` — an MCP server that did not start because the user must approve it, trust the
503
+ workspace or sign in is named to the model at the start of an interactive session with the
504
+ command to suggest, and a
505
+ signed-in OAuth server that refuses a call tells the model to suggest `/mcp login <server>` — or, in print and serve runs, the terminal
506
+ `robota mcp login <server>`.
507
+
508
+ A command whose bare form is a complete action declares `runsBare`, so choosing `/cost` or `/mcp`
509
+ from the autocomplete menu still runs it even though they now declare subcommands.
510
+ - 6ae3f28: A served runtime can list its workspace's sessions, start a new one and switch to another without the
511
+ process or any client connection restarting. The GUI shows them in a sessions sidebar.
512
+
513
+ - `agent-interface-session` is **`major`** for two reasons:
514
+ - It adds `ISessionListing`, `ISessionDirectory` and `ISessionSwitchedEvent`.
515
+ - `IInteractiveSessionEvents` gains a required `session_switched` event. An exhaustive map over the
516
+ event names stops compiling until it classifies the new event.
517
+ - `agent-transport` is **`major`** for the same kind of reason:
518
+ - It adds the wire messages `list-sessions` → `sessions`/`sessions_error`, `new-session`,
519
+ `switch-session`, and the broadcast `session_switched`.
520
+ - It adds a `sessionDirectory` handler option. A refusal to switch comes back as a
521
+ `protocol_error` carrying the reason.
522
+ - An exhaustive map over message types must add the new variants.
523
+ - `agent-transport-ws` passes a configured `sessionDirectory` to every connection.
524
+ - `agent-framework` is **`major` because `IRuntimeHostHandle.session` is now a `SessionSlot`**, not the
525
+ `InteractiveSession`, and `bindTransports` receives the slot.
526
+ - The slot is an `IInteractiveSession` that forwards to the current session. Members outside that
527
+ interface are read through `host.session.current`, which changes on a switch.
528
+ - Adds `InteractiveSession.whenInitialized()`.
529
+ - Exports `listUnreadableSessions`.
530
+ - `agent-ui-web` is **`major`**:
531
+ - `IWsSessionState` gains session listing state and actions.
532
+ - It adds a `SessionSidebar`.
533
+ - `/resume` opens the sidebar.
534
+ - `agent-cli`: `robota --serve` provides the session directory, and refuses a switch that would lose
535
+ work in progress. External-event grants belong to the run: a switch reopens them on the new session,
536
+ as the TUI already does.
537
+ - External-event grant history (spent tokens, rate windows, revocations) belongs to the run. The new
538
+ option `externalEventGrantHistory` (from `createExternalEventGrantHistory()`) is shared by every
539
+ session that a served runtime or the TUI builds. A session switch therefore replays no spent token
540
+ and resets no rate limit. The TUI previously had this gap when it switched sessions.
541
+ - 9721162: A key typed just as a prompt appears no longer answers it: in the terminal UI the permission prompt, and in the web UI both the permission and the ask dock.
542
+
543
+ - **`agent-ui-terminal`:** the permission prompt ignores its keys for a short pause after it appears (`PERMISSION_PROMPT_ARM_DELAY_MS`). While it waits it shows "keys answer in a moment" and no selection cursor. In screen-reader mode, a number typed during the pause, or typed for the previous request, is not kept for a later Enter.
544
+ - **`agent-ui-web`:** the docked permission or ask prompt waits a short pause (`PROMPT_ARM_DELAY_MS`) before it takes focus, so keys typed during that pause stay in the composer. While it waits it says so. A mouse click on a button answers at once, and Esc still denies or cancels; Enter or Space on a focused button waits like any other key, and a button focused to answer one prompt hands focus back to the dock when the next appears.
545
+ - 57280bf: Every published package now declares `"engines": { "node": ">=22.12.0" }`. Before, 27 of the 38
546
+ packages declared no floor (`agent-core`, `agent-tools` and every provider among them),
547
+ `agent-session` and `agent-file-authority` declared `>=20.19.0`, and the other nine declared
548
+ `>=22.0.0`, so a consumer on Node 20 saw at most a warning from a transitive dependency.
549
+
550
+ Why 22.12: `agent-cli` and `agent-ui-terminal` need Node 22 through `ink` 7, and the CommonJS entries
551
+ of `agent-tools` and its dependents, `agent-transport`/`node` and its dependents, and
552
+ `agent-ui-terminal` `require()` ESM-only dependencies (`p-limit`, `jose`, `chalk`), which Node 22
553
+ supports unflagged only from 22.12. `engines` is advisory unless the consumer enables `engine-strict`.
554
+
555
+ No code changes: `tsdown` now reads `node22.12.0` as its build target from the field.
556
+ - 1efb124: `@robota-sdk/agent-cli` and `@robota-sdk/agent-ui-terminal` are now ESM-only. Their CommonJS entry
557
+ could never load: it pulls in Ink, whose `yoga-layout` dependency starts with a top-level `await`, so
558
+ `require()` failed on every Node version with `ERR_REQUIRE_ASYNC_MODULE`. The packages no longer
559
+ declare a `require` condition or ship `index.cjs`/`index.d.cts`, so `require()` now fails at resolution
560
+ with `ERR_PACKAGE_PATH_NOT_EXPORTED`. Load them with `import` or `import()`, which is unchanged. The
561
+ configured CLI executable is unaffected.
562
+ - 18c0d5c: Every published package now exports `./package.json`, so `require('<package>/package.json')` and
563
+ `import('<package>/package.json', { with: { type: 'json' } })` work instead of failing with
564
+ `ERR_PACKAGE_PATH_NOT_EXPORTED`, and each tarball now ships the package's `CHANGELOG.md`.
565
+ - 2c612ba: Release the migrated Robota product with its public SDK namespace, robota command, compatible SDK exports, internal product configuration, and verified CLI startup and delivery corrections.
566
+ - 04a6de4: **Reasoning text a provider streams now reaches the editor as an ACP `agent_thought_chunk`, through a new `thinking_delta` session event.**
567
+
568
+ `IChatOptions.onThinkingDelta`, `IRunOptions.onThinkingDelta` and `IResumeExecutionOptions.onThinkingDelta`
569
+ (typed `TThinkingDeltaCallback`) carry reasoning text from a provider through the run, and the session
570
+ options (`ISessionOptions.onThinkingDelta`, `ICreateSessionOptions.onThinkingDelta`) hand it to the
571
+ session's owner. `InteractiveSession` emits it as `thinking_delta(delta)`, beside `text_delta`. The
572
+ text is never part of the reply: it is not appended to the conversation, not streamed through
573
+ `onTextDelta`, and the core adds no record of its own for it (no text-delta log entry, no
574
+ `provider_stream_raw_delta`); a provider's own native payload capture and response metadata keep
575
+ what the provider sent, as before. A reasoning delta counts as provider activity for the idle
576
+ timeout whether or not anyone listens to it, so a model that is only thinking is not cut off. The
577
+ existing `thinking(isThinking)` event is unchanged and remains the busy indicator. Where a provider
578
+ sends no reasoning text, nothing is emitted and nothing new is switched on.
579
+
580
+ `@robota-sdk/agent-interface-session` is a major change because a new session event name makes an
581
+ exhaustive map over the event names stop compiling until it classifies the event.
582
+
583
+ `@robota-sdk/agent-transport-acp` sends each non-empty `thinking_delta` to the editor as an
584
+ `agent_thought_chunk`, in order with the message chunks, so `robota acp` shows the model's reasoning
585
+ in the editor. A turn that streamed only thoughts still shows its result text, because only reply
586
+ text marks a turn as streamed. The WebSocket wire, the HTTP stream, headless stream-json, `query()`
587
+ and the terminal UI do not carry the new event in this change (`@robota-sdk/agent-transport` and
588
+ `@robota-sdk/agent-ui-terminal` classify it as non-surface). A forked skill and an in-process subagent
589
+ pass their reply text up but not their reasoning.
590
+
591
+ Two providers already receive reasoning text and now report it. `@robota-sdk/agent-provider-openai`
592
+ passes `response.reasoning_summary_text.delta` events of a streamed Responses call to
593
+ `onThinkingDelta`; the API sends them only when the provider profile asks for a reasoning summary, and
594
+ no request option changed; a summary streamed in several parts, and the summary of a later reasoning
595
+ item, each start on a new paragraph (`\n\n`) so the parts do not run together.
596
+ `@robota-sdk/agent-provider-openai-compatible` reports the text of Gemma's thought channel, which the
597
+ provider already removed from the reply, as it streams across chunk boundaries, with each later
598
+ channel of one reply on a new paragraph; the reply text is unchanged. No other provider reports
599
+ reasoning, and Anthropic thinking is not enabled. A model fallback chain still moves to the next model when only reasoning had streamed.
600
+
601
+ The scripted test provider (`@robota-sdk/agent-core/testing`) accepts an optional `thinking` string on
602
+ a turn and delivers it through `onThinkingDelta` before the turn's text; the scripted session harness
603
+ collects `thinking_delta` and now keeps a scripted tool-call turn's `usage`, which it used to drop.
604
+ - 2ebff01: Remove the obsolete session-level permission and ask callback options and the stale
605
+ `permission-resolved` display event. Prompt requests now settle exclusively through the canonical
606
+ request events and session resolution methods, while leaf adapters fail closed when callbacks reject.
607
+ - 3a8876b: ARCH-029: decompose the command host into role ports
608
+
609
+ `ICommandHostContext`, `ICommandSessionRuntime` and `IAgentJobHostContext` are now empty `extends`
610
+ aggregates over 26 named role ports, so a command declares only the capability it uses. A role port
611
+ is a supertype of the aggregate, so narrowing a declared parameter still satisfies
612
+ `ISystemCommand.execute` by contravariance.
613
+
614
+ All 79 members are preserved (46 + 18 + 15) with the declaration kind unchanged, so implementors and
615
+ callers stay source-compatible.
616
+
617
+ **Breaking:** every role-port member is now required except the adapter bag, whose contents are
618
+ genuinely variational. 38 members went from optional to required. A host that previously omitted a
619
+ member must now provide one — including `validateCurrentSessionReplayLog`, which was an override
620
+ with a framework-computed default and no implementor. `createTestCommandHost`,
621
+ `createTestAgentJobHost` and `createTestSessionRuntime` are published from
622
+ `@robota-sdk/agent-framework/testing` as conformant, cast-free doubles for exactly this.
623
+
624
+ Also removed: the `clearConversationHistory` fallback that reached past the host into
625
+ `getSession().clearHistory()`. Those were never the same operation — the host path also broadcasts
626
+ `history_cleared` to every attached surface, so a fallback clear left other surfaces still showing
627
+ the transcript.
628
+ - 4f3c075: Assemble complete, verified package generations before switching build output; preserve the previous generation on build failure and pack only verified regular-file images. Include copied CLI web assets in affected-build ordering and artifact transfer. Preserve the CLI version in managed build paths. Public runtime contracts remain compatible (patch).
629
+ - 07b627f: A local peer can now be answered, and what its turn may do depends on where it runs.
630
+
631
+ - `agent-core`: the permission evaluator takes a peer turn's authority as one more input
632
+ (`IPermissionEvaluationContext.peerTurn`), decided after the deny list and ceiling and before
633
+ bypass and allow rules. A peer on another host uses no tool. A peer on the same host may use an
634
+ inspect-class tool that declares `workspacePaths`, only when every named location resolves inside
635
+ the workspace and is not a credential (`isSecretPath`); write and execute tools are refused unless
636
+ enabled, and then every use asks. A tool declaring `repliesToPeer` exists only in a peer turn and
637
+ asks once the turn used another tool. New: `isToolAvailableInPeerTurn`, `TPeerReach`,
638
+ `IPeerTurnAuthority`. `IRunOptions.withholdHostedTools` leaves a provider's hosted tools out of a
639
+ run's requests (`nativeWebTools` with `false` withholds a hosted tool for one call).
640
+ - `agent-tools`: `Read` and `Glob` declare the arguments that say where they look. `Grep` does not:
641
+ it reads files it was never named, so a peer turn does not get it.
642
+ - `agent-session`: `ISessionRunOptions.peerReach` makes a run a peer turn for the permission policy;
643
+ every ask in it needs a fresh approval, and its requests carry no provider-hosted tool. `ISessionOptions.allowPeerChanges` enables write and execute
644
+ tools for same-host peer turns.
645
+ - `agent-interface-session`: `ISubmitOptions.peer` (`IPeerTurnContext`) carries a peer turn's reach,
646
+ the message it answers and the session a reply goes to.
647
+ - `agent-interface-session-mobility`: `IPeerMessage.inReplyTo` threads a conversation;
648
+ `peerReachOf(admission)` maps admission to a reach.
649
+ - `agent-framework`: a peer turn is offered what its origin allows, and a new `peer_reply` tool
650
+ answers the peer that sent the message, threaded to it. The setting `peers.allowChanges` enables
651
+ write and execute tools for same-host peer turns.
652
+ - `agent-ui-terminal`: a permission prompt in a peer turn names the requesting peer.
653
+ - `agent-cli`: incoming peer turns carry their reach and reply route; a conversation is limited in
654
+ depth and in how often this session answers it, and a reply over a limit is not sent and the
655
+ operator is told.
656
+ - `agent-provider-anthropic`, `agent-provider-openai-compatible` (Qwen): a request whose
657
+ `nativeWebTools` sets a hosted tool to `false` is sent without it.
658
+ - dfb9b15: Release the integrated provider credential isolation and consumer runtime and interaction composition updates.
659
+ - 9665c6e: Make the permission and "ask the user" flows transport-neutral (REMOTE-007 / B4-2a). A session now
660
+ emits `permission_request` / `ask_request` / `prompt_resolved` events and exposes
661
+ `resolvePermission` / `resolveAsk`, so any attached surface — local TUI, a WS/WebRTC driver, or a web
662
+ UI — can render and answer the SAME prompt (local == remote). The framework builds event-emitting
663
+ default handlers bound to the session emitter (id-keyed parking, fail-closed on zero listeners / on
664
+ detach / backstop, teardown drain on abort/cancelQueue/shutdown), replacing the injected
665
+ askHandler/permissionHandler at their source. `getUserInteraction()` is gated on the `ask_request`
666
+ listener count so the headless "no-human ⇒ proceed" contract is preserved. The WS protocol carries the
667
+ new events + `permission-response` / `ask-response` verbs, and WebRTC gets them for free via the shared
668
+ handler. No `/remote-control` enable path is added.
669
+ - c7fa299: REMOTE-003 + REMOTE-006 (merged — net behavior; the interim deny-by-default gate never appeared in a
670
+ published version): commands now carry an invocation source. A `'remote'` value is added to the command
671
+ invocation source (SSOT relocated to `@robota-sdk/agent-interface-transport`, re-exported by
672
+ `agent-framework`) and an optional `source` is threaded into
673
+ `IInteractiveSession.executeCommand(name, args, source?)` (defaults to `'user'`, so all local callers are
674
+ unchanged). The shared `createWsHandler` tags transport-origin commands `'remote'`. Policy: local == remote
675
+ (owner principle) — pairing is the sole trust boundary, so a transport-origin command runs exactly as a
676
+ locally-typed one under the universal permission system (permission modes + PermissionEnforcer + the
677
+ ask/approval handler); `createDefaultRemoteCommandPolicy()` allows by default. The `IRemoteCommandPolicy`
678
+ seam remains as an OPTIONAL, user-configured restriction, and the genuinely-remote WebRTC path stays
679
+ pairing-gated.
680
+ - 1c8fbdf: Stabilize the TUI input box bottom border during active output: hand-draw it as a `<Text>` row (mirroring the top border) instead of a Yoga-synthesized Box border, which could drop glyphs under rapid re-render at full terminal height (SCREEN-003).
681
+ - Updated dependencies [9c19c50]
682
+ - Updated dependencies [7b6234c]
683
+ - Updated dependencies [5307f8a]
684
+ - Updated dependencies [b462ee7]
685
+ - Updated dependencies [08a9bd6]
686
+ - Updated dependencies [37b4bd7]
687
+ - Updated dependencies [818f0c8]
688
+ - Updated dependencies [4eea54b]
689
+ - Updated dependencies [50d2c9f]
690
+ - Updated dependencies [3c81769]
691
+ - Updated dependencies [724fabb]
692
+ - Updated dependencies [d877de2]
693
+ - Updated dependencies [d61e159]
694
+ - Updated dependencies [997f2fb]
695
+ - Updated dependencies [bfe8ed5]
696
+ - Updated dependencies [1698be4]
697
+ - Updated dependencies [a5961c9]
698
+ - Updated dependencies [9368d00]
699
+ - Updated dependencies [d4189b9]
700
+ - Updated dependencies [9edae52]
701
+ - Updated dependencies [4078a72]
702
+ - Updated dependencies [4c73a0b]
703
+ - Updated dependencies [af2f2ad]
704
+ - Updated dependencies [267af5f]
705
+ - Updated dependencies [196a900]
706
+ - Updated dependencies [f336838]
707
+ - Updated dependencies [34e50f0]
708
+ - Updated dependencies [722e88a]
709
+ - Updated dependencies [a5cc36e]
710
+ - Updated dependencies [d23c848]
711
+ - Updated dependencies [b70fa3d]
712
+ - Updated dependencies [2711ec6]
713
+ - Updated dependencies [3038eb7]
714
+ - Updated dependencies [02b7452]
715
+ - Updated dependencies [4dd45cc]
716
+ - Updated dependencies [e689c8e]
717
+ - Updated dependencies [4241fc5]
718
+ - Updated dependencies [ec5e477]
719
+ - Updated dependencies [4f49d14]
720
+ - Updated dependencies [007fd90]
721
+ - Updated dependencies [c7f9203]
722
+ - Updated dependencies [18b52cc]
723
+ - Updated dependencies [9843fe6]
724
+ - Updated dependencies [7b72344]
725
+ - Updated dependencies [6ae3f28]
726
+ - Updated dependencies [9721162]
727
+ - Updated dependencies [be0e53c]
728
+ - Updated dependencies [57f57f5]
729
+ - Updated dependencies [ba822c1]
730
+ - Updated dependencies [9721162]
731
+ - Updated dependencies [6e6b06b]
732
+ - Updated dependencies [7d77ce4]
733
+ - Updated dependencies [8bd5fac]
734
+ - Updated dependencies [57280bf]
735
+ - Updated dependencies [5033dd9]
736
+ - Updated dependencies [18c0d5c]
737
+ - Updated dependencies [dbd888d]
738
+ - Updated dependencies [1887e54]
739
+ - Updated dependencies [caaab20]
740
+ - Updated dependencies [f01868f]
741
+ - Updated dependencies [e8779c9]
742
+ - Updated dependencies [5a0ee96]
743
+ - Updated dependencies [9f46375]
744
+ - Updated dependencies [4e11579]
745
+ - Updated dependencies [41cca13]
746
+ - Updated dependencies [193a0bc]
747
+ - Updated dependencies [54e2848]
748
+ - Updated dependencies [9a01e78]
749
+ - Updated dependencies [3c1967f]
750
+ - Updated dependencies [ada3841]
751
+ - Updated dependencies [5093a30]
752
+ - Updated dependencies [5684612]
753
+ - Updated dependencies [6ee8725]
754
+ - Updated dependencies [6072e9a]
755
+ - Updated dependencies [94b2c87]
756
+ - Updated dependencies [3ab2eca]
757
+ - Updated dependencies [2e07cad]
758
+ - Updated dependencies [e8d70ac]
759
+ - Updated dependencies [2c612ba]
760
+ - Updated dependencies [66af868]
761
+ - Updated dependencies [e079992]
762
+ - Updated dependencies [3427887]
763
+ - Updated dependencies [7116367]
764
+ - Updated dependencies [5bb675a]
765
+ - Updated dependencies [c967c57]
766
+ - Updated dependencies [e706b43]
767
+ - Updated dependencies [fef3a50]
768
+ - Updated dependencies [60f3965]
769
+ - Updated dependencies [115e104]
770
+ - Updated dependencies [04719a9]
771
+ - Updated dependencies [04a6de4]
772
+ - Updated dependencies [0ba247b]
773
+ - Updated dependencies [6f41c53]
774
+ - Updated dependencies [7d9cc66]
775
+ - Updated dependencies [4c5148e]
776
+ - Updated dependencies [37af5dc]
777
+ - Updated dependencies [0116a29]
778
+ - Updated dependencies [807d161]
779
+ - Updated dependencies [fec722f]
780
+ - Updated dependencies [e82215f]
781
+ - Updated dependencies [52b7346]
782
+ - Updated dependencies [9db63ee]
783
+ - Updated dependencies [b078afa]
784
+ - Updated dependencies [2ebff01]
785
+ - Updated dependencies [9db63ee]
786
+ - Updated dependencies [2ebff01]
787
+ - Updated dependencies [2d3b2c0]
788
+ - Updated dependencies [b078afa]
789
+ - Updated dependencies [2d3b2c0]
790
+ - Updated dependencies [baa6863]
791
+ - Updated dependencies [2d3b2c0]
792
+ - Updated dependencies [3a8876b]
793
+ - Updated dependencies [4772067]
794
+ - Updated dependencies [7b85767]
795
+ - Updated dependencies [0f98419]
796
+ - Updated dependencies [64ba748]
797
+ - Updated dependencies [9fbab1b]
798
+ - Updated dependencies [d312755]
799
+ - Updated dependencies [a009f5b]
800
+ - Updated dependencies [c207a31]
801
+ - Updated dependencies [9b4f63b]
802
+ - Updated dependencies [3244fb8]
803
+ - Updated dependencies [1e3f91a]
804
+ - Updated dependencies [4f3c075]
805
+ - Updated dependencies [7d9cc66]
806
+ - Updated dependencies [475e085]
807
+ - Updated dependencies [e477440]
808
+ - Updated dependencies [9dcb5da]
809
+ - Updated dependencies [a95ca85]
810
+ - Updated dependencies [b6d14ce]
811
+ - Updated dependencies [0382a51]
812
+ - Updated dependencies [93d061d]
813
+ - Updated dependencies [39554a1]
814
+ - Updated dependencies [d28430a]
815
+ - Updated dependencies [bed26ea]
816
+ - Updated dependencies [7d9cc66]
817
+ - Updated dependencies [fe48835]
818
+ - Updated dependencies [7d9cc66]
819
+ - Updated dependencies [1e40b5b]
820
+ - Updated dependencies [7669851]
821
+ - Updated dependencies [bad976f]
822
+ - Updated dependencies [7d9cc66]
823
+ - Updated dependencies [7d9cc66]
824
+ - Updated dependencies [7d9cc66]
825
+ - Updated dependencies [7d9cc66]
826
+ - Updated dependencies [7d9cc66]
827
+ - Updated dependencies [7d9cc66]
828
+ - Updated dependencies [df02568]
829
+ - Updated dependencies [7d9cc66]
830
+ - Updated dependencies [7d9cc66]
831
+ - Updated dependencies [4b76cfa]
832
+ - Updated dependencies [d9bd9ec]
833
+ - Updated dependencies [8865acf]
834
+ - Updated dependencies [90e7a10]
835
+ - Updated dependencies [fcb0da3]
836
+ - Updated dependencies [07b627f]
837
+ - Updated dependencies [d0de5b2]
838
+ - Updated dependencies [9c6a8db]
839
+ - Updated dependencies [9c6a8db]
840
+ - Updated dependencies [dfb9b15]
841
+ - Updated dependencies [9665c6e]
842
+ - Updated dependencies [44393be]
843
+ - Updated dependencies [c7fa299]
844
+ - Updated dependencies [7d9cc66]
845
+ - Updated dependencies [7d9cc66]
846
+ - Updated dependencies [7d9cc66]
847
+ - Updated dependencies [5134b3b]
848
+ - Updated dependencies [dd444c1]
849
+ - Updated dependencies [1f57e7f]
850
+ - Updated dependencies [7911a7d]
851
+ - Updated dependencies [833afe1]
852
+ - Updated dependencies [d6b9404]
853
+ - Updated dependencies [7863b16]
854
+ - Updated dependencies [fde558e]
855
+ - Updated dependencies [db5c439]
856
+ - Updated dependencies [7d9cc66]
857
+ - Updated dependencies [62663ae]
858
+ - Updated dependencies [4a01a87]
859
+ - Updated dependencies [9c6a8db]
860
+ - Updated dependencies [cbee54e]
861
+ - Updated dependencies [23a30cd]
862
+ - Updated dependencies [7d9cc66]
863
+ - Updated dependencies [7d9cc66]
864
+ - Updated dependencies [5c5ff23]
865
+ - Updated dependencies [9814afc]
866
+ - Updated dependencies [7d9cc66]
867
+ - Updated dependencies [02053ec]
868
+ - Updated dependencies [242a644]
869
+ - Updated dependencies [9c6a8db]
870
+ - @robota-sdk/agent-interface-execution@3.0.0
871
+ - @robota-sdk/agent-interface-command@3.0.0
872
+ - @robota-sdk/agent-framework@3.0.0
873
+ - @robota-sdk/agent-core@3.0.0
874
+ - @robota-sdk/agent-interface-session@3.0.0
875
+ - @robota-sdk/agent-interface-transport@3.0.0
876
+ - @robota-sdk/agent-transport@3.0.0
877
+ - @robota-sdk/agent-interface-analytics@3.0.0
878
+ - @robota-sdk/agent-interface-tui@3.0.0
879
+
880
+ ## 3.0.0-beta.106
881
+ ### Patch Changes
882
+
883
+ - @robota-sdk/agent-core@3.0.0-beta.106
884
+ - @robota-sdk/agent-framework@3.0.0-beta.106
885
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.106
886
+ - @robota-sdk/agent-interface-command@3.0.0-beta.106
887
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.106
888
+ - @robota-sdk/agent-interface-session@3.0.0-beta.106
889
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.106
890
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.106
891
+ - @robota-sdk/agent-transport@3.0.0-beta.106
892
+
893
+ ## 3.0.0-beta.105
894
+ ### Patch Changes
895
+
896
+ - @robota-sdk/agent-core@3.0.0-beta.105
897
+ - @robota-sdk/agent-framework@3.0.0-beta.105
898
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.105
899
+ - @robota-sdk/agent-interface-command@3.0.0-beta.105
900
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.105
901
+ - @robota-sdk/agent-interface-session@3.0.0-beta.105
902
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.105
903
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.105
904
+ - @robota-sdk/agent-transport@3.0.0-beta.105
905
+
906
+ ## 3.0.0-beta.104
907
+ ### Patch Changes
908
+
909
+ - @robota-sdk/agent-core@3.0.0-beta.104
910
+ - @robota-sdk/agent-framework@3.0.0-beta.104
911
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.104
912
+ - @robota-sdk/agent-interface-command@3.0.0-beta.104
913
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.104
914
+ - @robota-sdk/agent-interface-session@3.0.0-beta.104
915
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.104
916
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.104
917
+ - @robota-sdk/agent-transport@3.0.0-beta.104
918
+
919
+ ## 3.0.0-beta.103
920
+ ### Patch Changes
921
+
922
+ - Updated dependencies [6f41c53]
923
+ - @robota-sdk/agent-core@3.0.0-beta.103
924
+ - @robota-sdk/agent-framework@3.0.0-beta.103
925
+ - @robota-sdk/agent-interface-command@3.0.0-beta.103
926
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.103
927
+ - @robota-sdk/agent-interface-session@3.0.0-beta.103
928
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.103
929
+ - @robota-sdk/agent-transport@3.0.0-beta.103
930
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.103
931
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.103
932
+
933
+ ## 3.0.0-beta.102
934
+ ### Patch Changes
935
+
936
+ - @robota-sdk/agent-core@3.0.0-beta.102
937
+ - @robota-sdk/agent-framework@3.0.0-beta.102
938
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.102
939
+ - @robota-sdk/agent-interface-command@3.0.0-beta.102
940
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.102
941
+ - @robota-sdk/agent-interface-session@3.0.0-beta.102
942
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.102
943
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.102
944
+ - @robota-sdk/agent-transport@3.0.0-beta.102
945
+
946
+ ## 3.0.0-beta.101
947
+ ### Patch Changes
948
+
949
+ - Updated dependencies [62663ae]
950
+ - @robota-sdk/agent-core@3.0.0-beta.101
951
+ - @robota-sdk/agent-framework@3.0.0-beta.101
952
+ - @robota-sdk/agent-interface-command@3.0.0-beta.101
953
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.101
954
+ - @robota-sdk/agent-interface-session@3.0.0-beta.101
955
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.101
956
+ - @robota-sdk/agent-transport@3.0.0-beta.101
957
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.101
958
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.101
959
+
960
+ ## 3.0.0-beta.100
961
+ ### Patch Changes
962
+
963
+ - @robota-sdk/agent-core@3.0.0-beta.100
964
+ - @robota-sdk/agent-framework@3.0.0-beta.100
965
+ - @robota-sdk/agent-interface-analytics@3.0.0-beta.100
966
+ - @robota-sdk/agent-interface-command@3.0.0-beta.100
967
+ - @robota-sdk/agent-interface-execution@3.0.0-beta.100
968
+ - @robota-sdk/agent-interface-session@3.0.0-beta.100
969
+ - @robota-sdk/agent-interface-transport@3.0.0-beta.100
970
+ - @robota-sdk/agent-interface-tui@3.0.0-beta.100
971
+ - @robota-sdk/agent-transport@3.0.0-beta.100
972
+
3
973
  ## 3.0.0-beta.99
4
974
  ### Patch Changes
5
975
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robota-sdk/agent-ui-terminal",
3
- "version": "3.0.0-beta.99",
3
+ "version": "3.0.2",
4
4
  "description": "Terminal UI package (React + Ink) for the Robota SDK",
5
5
  "type": "module",
6
6
  "main": "dist/node/index.js",
@@ -38,15 +38,15 @@
38
38
  "marked-terminal": "^7.3.0",
39
39
  "react": "19.2.8",
40
40
  "string-width": "^8.2.2",
41
- "@robota-sdk/agent-core": "3.0.0-beta.99",
42
- "@robota-sdk/agent-interface-command": "3.0.0-beta.99",
43
- "@robota-sdk/agent-interface-execution": "3.0.0-beta.99",
44
- "@robota-sdk/agent-interface-analytics": "3.0.0-beta.99",
45
- "@robota-sdk/agent-framework": "3.0.0-beta.99",
46
- "@robota-sdk/agent-interface-session": "3.0.0-beta.99",
47
- "@robota-sdk/agent-interface-transport": "3.0.0-beta.99",
48
- "@robota-sdk/agent-interface-tui": "3.0.0-beta.99",
49
- "@robota-sdk/agent-transport": "3.0.0-beta.99"
41
+ "@robota-sdk/agent-core": "3.0.2",
42
+ "@robota-sdk/agent-interface-analytics": "3.0.2",
43
+ "@robota-sdk/agent-interface-command": "3.0.2",
44
+ "@robota-sdk/agent-interface-session": "3.0.2",
45
+ "@robota-sdk/agent-framework": "3.0.2",
46
+ "@robota-sdk/agent-interface-execution": "3.0.2",
47
+ "@robota-sdk/agent-interface-transport": "3.0.2",
48
+ "@robota-sdk/agent-interface-tui": "3.0.2",
49
+ "@robota-sdk/agent-transport": "3.0.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@homebridge/node-pty-prebuilt-multiarch": "^0.14.1",
@@ -57,7 +57,7 @@
57
57
  "tsx": "^4.23.1",
58
58
  "typescript": "^6.0.3",
59
59
  "vitest": "^3.2.6",
60
- "@robota-sdk/agent-command": "3.0.0-beta.99"
60
+ "@robota-sdk/agent-command": "3.0.2"
61
61
  },
62
62
  "license": "AGPL-3.0-only OR LicenseRef-Commercial",
63
63
  "publishConfig": {