@robota-sdk/agent-cli 3.0.0-beta.85 → 3.0.0-beta.87

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 (38) hide show
  1. package/CHANGELOG.md +94 -48
  2. package/README.md +265 -39
  3. package/bin/{robota.cjs → agent.cjs} +1 -1
  4. package/dist/node/bin.js +23 -23
  5. package/dist/node/{bounded-output-Bgx2Cgkx-28em7iHq.js → bounded-output-BdWv9SX3-28em7iHq.js} +1 -1
  6. package/dist/node/{bounded-output-Bgx2Cgkx-28em7iHq.js.map → bounded-output-BdWv9SX3-28em7iHq.js.map} +1 -1
  7. package/dist/node/cli-core-6GIkeGqT.js +2911 -0
  8. package/dist/node/{command-executor-d6DdfUTD-DhFSDHvb.js → command-executor-D_UBZHxh-CVZipoOV.js} +2 -2
  9. package/dist/node/{command-executor-d6DdfUTD-DhFSDHvb.js.map → command-executor-D_UBZHxh-CVZipoOV.js.map} +1 -1
  10. package/dist/node/{command-executor-d6DdfUTD-3KEnsTnN.js → command-executor-D_UBZHxh-D7UrdAlN.js} +1 -1
  11. package/dist/node/headless.js +2 -2
  12. package/dist/node/index.d.ts +2423 -166
  13. package/dist/node/index.d.ts.map +1 -1
  14. package/dist/node/index.js +605 -581
  15. package/dist/node/index.js.map +1 -1
  16. package/dist/node/node-BUERQysz.js +15 -0
  17. package/dist/node/node-BWNobqRD.js +15 -0
  18. package/dist/node/node-BWNobqRD.js.map +1 -0
  19. package/dist/node/{node-CpH9vRQt.js → node-BbADaLn-.js} +1 -1
  20. package/dist/node/node-C4_FOvnk.js.map +1 -1
  21. package/dist/node/node-Cjb1v2Jw.js +165 -0
  22. package/dist/node/node-DENLEmMT.js.map +1 -1
  23. package/dist/node/node-DGvY0f9e.js +165 -0
  24. package/dist/node/node-DGvY0f9e.js.map +1 -0
  25. package/dist/web/assets/index-BSxTg2Py.css +1 -0
  26. package/dist/web/assets/index-BpCxNRj_.js +309 -0
  27. package/dist/web/index.html +3 -3
  28. package/package.json +46 -44
  29. package/dist/node/cli-core-DjVnz1-_.js +0 -2891
  30. package/dist/node/node-B48couEE.js +0 -14
  31. package/dist/node/node-B48couEE.js.map +0 -1
  32. package/dist/node/node-CgLYctGm.js +0 -67
  33. package/dist/node/node-CgLYctGm.js.map +0 -1
  34. package/dist/node/node-DAOCaE6N.js +0 -67
  35. package/dist/node/node-DlLm_kxn.js +0 -14
  36. package/dist/web/assets/index-DSLs7oij.js +0 -309
  37. package/dist/web/assets/index-OqCBtMJ2.css +0 -1
  38. /package/dist/node/{bounded-output-Bgx2Cgkx-C4ucXwLR.js → bounded-output-BdWv9SX3-C4ucXwLR.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,11 +1,57 @@
1
1
  # @robota-sdk/agent-cli
2
2
 
3
+ ## 3.0.0-beta.87
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
9
+ ### Patch Changes
10
+
11
+ - 66af868: Restore portable default startup for generated Robota artifacts while preserving explicit product selection and immutable identity. Keep shared product configuration internal because existing SDK and CLI artifacts bundle its implementation and types.
12
+ - 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.
13
+ - 7d9cc66: Expose declarative contribution descriptors for installed bundles and resolved MCP sources,
14
+ including source generations, host capability requirements and compatibility diagnostics.
15
+ Revalidate MCP approval, source identity and workspace trust before new dispatch, preserving
16
+ outcomes of calls already started and refusing retained tools after shutdown.
17
+ - 7d9cc66: Resume hosted conversations in freshly provisioned workers using verified checkpoint records while rebuilding current prompts, policy and execution state.
18
+ - 7d9cc66: Load declared JSON and inline bundle MCP configurations with selected-source containment, ordered whole-server replacement and file provenance. Route packaged servers through normal CLI/app MCP startup with namespaced identities, existing trust/approval/authority gates, disable overlays and value-free compatibility diagnostics.
19
+ - 7d9cc66: Add owner-side clean E2B worker provisioning and verified filesystem recovery with fresh identity and epoch, explicit failure reconciliation, and no paused-memory execution fallback.
20
+ - 7d9cc66: Add owner-hosted organization control and OpenAI-wire gateway composition with anchored authority, mandatory verified audit, durable effect reservations, provider inventory cleanup and private content receipts. OpenAI profiles can opt into operation identities preserved across SDK retries.
21
+ - 7d9cc66: Load external name-only plugin manifests without inventing optional metadata. Select the recorded
22
+ installed source instead of the lexically last cached directory, refusing invalid, missing or
23
+ ambiguous revisions. Check the installed identity as well as the manifest name for disablement.
24
+ - 7d9cc66: Pass the child execution root and restored sandbox to hook composition. The stock CLI explicitly refuses command and HTTP hooks for separate task workers whose hook capabilities are unavailable, instead of executing those hooks on the host.
25
+ - 7d9cc66: Connect explicitly selected stateless MCP servers through product startup. Preserve and expose the selected protocol, bind activation approval to it, refuse unsupported selections, and report unavailable protocol capabilities without widening process or network authority.
26
+ - 7d9cc66: Add explicit MCP Skills selection, bounded supervisor access and persistent host content consent.
27
+ Users can inspect verified instructions, approve the exact content fingerprint and withdraw consent;
28
+ models can discover metadata only. Consent stays separate from server admission and model-turn activation.
29
+ - 7d9cc66: Route discovered MCP Skills through the shared skill command runtime with lazy verified content, source-bound invocation names, current user consent and execution-owned activation cleanup. Keep remote shell expressions inert and defer queued user skill reads until their own turn executes.
30
+ - 7d9cc66: Connect the desktop to an owner-bound remote task through scoped TLS credentials, durable replay protection, current company authority and a separate native operator approval channel. Keep remote credentials and local filesystem capabilities outside the renderer's remote task connection.
31
+ - 7d9cc66: Reconstruct visible session history from verified hosted conversation checkpoints without importing old system messages or execution events.
32
+ - 7d9cc66: Retain an owner shutdown signal received while a served runtime initializes, and release its signal handlers when the run settles.
33
+ - 7d9cc66: Require hosted admission protocol v2 with signed root-task ownership. Add a pinned E2B SDK connector that checks admitted worker ownership and network configuration before connecting, keeps management credentials outside task operations, and retains provider teardown failures.
34
+ - 7d9cc66: Expose verified skill supporting resources only within their owning turn or fork, using the current host consent and manifest.
35
+ - 7d9cc66: Run the stock hosted CLI inside an admitted E2B task worker with broker-signed scoped access, pinned worker artifacts, runtime-owned input/output and provider cleanup.
36
+ - 7d9cc66: Observe scheduler queue intervals separately from pre-dispatch admission, permission and tool work.
37
+ Preserve valid duration totals when live trace detail is bounded, reporting invalid evidence explicitly
38
+ through content-free console and OTLP traces without altering dispatch, recovery or settlement.
39
+ - 7d9cc66: Require version-3 hosted admission with broker-signed cumulative usage and owner-selected runtime ceilings. Collect accounting before dispatch, on refresh and at completion; stop and release owned execution when accounting or limits fail. Operator deployments and issuers must migrate from version 2.
40
+
41
+ Connect authenticated runtime loopback clients to the stock hosted worker daemon through owned provider command streams. Hosted serve requires a private owner-selected ingress configuration and uses a separate worker launch token; stop closes clients and the listener before cleanup settles.
42
+
43
+ ## 3.0.0-beta.86
44
+
45
+ ### Patch Changes
46
+
47
+ - 44bd221: Allow the desktop CLI to start and reconnect to its workspace daemon on Windows using private storage and a native local control pipe that verifies process ownership.
48
+
3
49
  ## 3.0.0-beta.85
4
50
 
5
51
  ### Minor Changes
6
52
 
7
53
  - db35dcd: MCP approvals now outlive the process, and an approval takes effect at once. The `robota` CLI keeps
8
- activation decisions in `~/.robota/mcp-approvals.json` (owner-only) unless the host passes its own
54
+ activation decisions in `$PRODUCT_USER_STATE_DIR/mcp-approvals.json` (owner-only) unless the host passes its own
9
55
  `mcpApprovalStore`, so an approved server connects at later starts until its definition changes.
10
56
  `/mcp approve <server>` now also connects the server in the running session, the way `/mcp reload`
11
57
  does, instead of waiting for a restart. A remote server without OAuth therefore connects once
@@ -77,10 +123,10 @@
77
123
  - 12a5b15: CLI fixes from the docs-refresh findings (#3275):
78
124
 
79
125
  - `robota trust revoke` exits 0 when the revoke succeeds.
80
- - `robota <subcommand> --help` prints that subcommand's help instead of running it, refusing an unknown option, or starting the terminal UI; commands with fuller help of their own (`usage`, `session list|view|attach`) keep printing it, and `robota mcp serve --help` prints to stdout.
126
+ - `Robota <subcommand> --help` prints that subcommand's help instead of running it, refusing an unknown option, or starting the terminal UI; commands with fuller help of their own (`usage`, `session list|view|attach`) keep printing it, and `robota mcp serve --help` prints to stdout.
81
127
  - `robota --help` lists every option the parser accepts (`--goal`, `--goal-max-iterations`, `--provider`, `--set-current`, `--type`, `--base-url`, `--api-key`, `--api-key-env`, `--settings-scope`, `--session-log`, `--serve`, `--restricted-workspace`, `--disable-update-check`), `--effort` lists `none` and `minimal`, and `--bare` is described as what it does: print mode without instruction files or plugins.
82
128
  - `robota session start --background --restricted-workspace` starts a background session Restricted, as the headless trust refusal already suggested.
83
- - `robota "prompt"` opens the terminal UI with the prompt typed in, not yet sent.
129
+ - `Robota "prompt"` opens the terminal UI with the prompt typed in, not yet sent.
84
130
 
85
131
  - 29486da: A lost connection no longer drops a typed message or takes the person out of their session. While the
86
132
  transport is not `connected`, the composer keeps its draft and Send explains why it cannot submit
@@ -183,7 +229,7 @@
183
229
  - `agent-mcp` (breaking) — `MCP_EXTERNAL_EVENT_CAPABILITY`, `MCP_EXTERNAL_EVENT_METHOD`, `IMCPExternalEvent` and
184
230
  `TMCPExternalEventListener` are removed, as are `IMCPSession.externalEventsDeclared`,
185
231
  `IMCPSession.onExternalEvent`, `IMCPSession.onClose` and `MCPConnectionSupervisor.onExternalEvent`. A server
186
- that declares `com.robota.external-event` or sends its notification is served as any other server and the
232
+ that declares `com.Robota.external-event` or sends its notification is served as any other server and the
187
233
  notification is ignored. The `zod` dependency is dropped.
188
234
  - `agent-cli` (breaking) — `IMcpClientComposition.subscribeExternalEvent` and
189
235
  `IMcpServerConnection.onExternalEvent` are removed.
@@ -321,7 +367,7 @@
321
367
  - Session notices keep only `session-error` and `protocol-error`.
322
368
  - The state gains `commandCatalog` and `sessionStatus`.
323
369
  - `agent-command` registers `/theme` and `/keybindings` even without a terminal. They then answer
324
- that they belong to the robota terminal, instead of being unknown.
370
+ that they belong to the Robota terminal, instead of being unknown.
325
371
  - `agent-framework`:
326
372
  - `InteractiveSession.getStatusSnapshot()`.
327
373
  - The main-thread row previews the last chat message instead of the last record's type.
@@ -515,7 +561,7 @@
515
561
  - The device lists read from public records are bounded per paired device, each device's newest
516
562
  before any device's next, and the chunks of one list carry a shared version, so a read that finds
517
563
  chunks of two versions yields no list. Records written before this change are not read as lists.
518
- - CLI processes that share `~/.robota/devices/address-cache.json` apply each change to the file as it
564
+ - CLI processes that share `$PRODUCT_USER_STATE_DIR/devices/address-cache.json` apply each change to the file as it
519
565
  is on disk, so one process no longer overwrites what another learned.
520
566
 
521
567
  - 4241fc5: Device mesh follow-ups.
@@ -552,7 +598,7 @@
552
598
 
553
599
  - **`agent-framework`:** `supportsWorkspaceProjectMutation(platform?)` tells a host in advance whether project writes can be proven to stay under the trusted root. The project writer uses the same answer, so the two cannot disagree.
554
600
  - **`agent-cli`:**
555
- - Where project writes cannot be proven safe, a trusted workspace keeps its sessions in the user session store (`~/.robota/sessions`). They are listed for that workspace by their working directory, so `/resume`, the sessions sidebar, `--continue` and `robota session list` find them. Nothing is written under the project root.
601
+ - Where project writes cannot be proven safe, a trusted workspace keeps its sessions in the user session store (`$PRODUCT_USER_STATE_DIR/sessions`). They are listed for that workspace by their working directory, so `/resume`, the sessions sidebar, `--continue` and `robota session list` find them. Nothing is written under the project root.
556
602
  - Before this, every save in a trusted git workspace on macOS was refused, and those surfaces listed nothing.
557
603
  - Linux keeps trusted sessions in the project, as before.
558
604
  - `robota session list`, `robota usage` and `robota session analyze` report such sessions as user sessions, never as project sessions.
@@ -588,7 +634,7 @@
588
634
  stays inside the project (every platform but Linux), none is composed: a checkpoint could be
589
635
  neither saved nor restored there.
590
636
  - `agent-command` (patch): where a session has no checkpoints, `/rewind` says why: a restricted
591
- workspace is told to run `robota trust --yes` and restart robota, and a host that cannot write
637
+ workspace is told to run `robota trust --yes` and restart Robota, and a host that cannot write
592
638
  the project safely says so. `/rewind list` reports this as a failed command instead of throwing.
593
639
  - `agent-framework` (minor): a checkpoint operation on a session without a store throws
594
640
  `EditCheckpointsUnavailableError`, whose `reason` is `host-cannot-write-project`,
@@ -628,14 +674,14 @@
628
674
  under. `sandboxApprovalFor` is exported.
629
675
  - `agent-subagent-runner` (minor): `ISubagentWorkerComposition` takes an optional `createSandbox`. The
630
676
  worker builds that sandbox once and hands the same instance to `createTools` and to the session.
631
- - `agent-cli` (patch): robota's worker composition builds the OS sandbox through `createSandbox`, so
677
+ - `agent-cli` (patch): Robota's worker composition builds the OS sandbox through `createSandbox`, so
632
678
  a child-process subagent approves what its parent approves.
633
679
 
634
- - f8a8a4d: The GUI surface's design now applies inside a `robota-ui` scope that each of its root components opens,
680
+ - f8a8a4d: The GUI surface's design now applies inside a `agent-ui` scope that each of its root components opens,
635
681
  so an app with design tokens of its own can embed the surface without either overriding the other. Such
636
682
  an app imports `@robota-sdk/agent-ui-web/styles/surface.css` into its Tailwind entry; a page that is only
637
- the surface keeps importing `styles/theme.css` and puts `robota-ui` on its `<html>`. `RobotaMark` and
638
- `RobotaWordmark` are exported. The browser remote client (`RemoteClient`) follows the same design, with
683
+ the surface keeps importing `styles/theme.css` and puts `agent-ui` on its `<html>`. `ProductMark` and
684
+ `ProductWordmark` are exported. The browser remote client (`RemoteClient`) follows the same design, with
639
685
  its pairing states centred on the page.
640
686
  - 122e82b: A child-process subagent confines and approves commands with its parent's sandbox settings as they
641
687
  stand when it starts. Before, it read its root's settings files, so a `/sandbox` change made in the
@@ -645,7 +691,7 @@
645
691
  - `agent-subagent-runner` (minor): the runner factory takes `parentSandboxSettings`, read at each
646
692
  spawn. The start payload carries it, the IPC guard checks it is a record, and the worker hands it to
647
693
  `createSandbox` as `parentSettings`.
648
- - `agent-cli` (patch): robota sends its live sandbox's settings, and a child builds its sandbox from
694
+ - `agent-cli` (patch): Robota sends its live sandbox's settings, and a child builds its sandbox from
649
695
  them. It refuses settings it cannot read rather than falling back to the files.
650
696
 
651
697
  - 0368058: A running child-process subagent follows a `/sandbox` change made in its parent session. Before, it
@@ -660,7 +706,7 @@
660
706
  exits or fails to start. A composed sandbox may define `applyParentSettings`. The worker applies
661
707
  each change through it. On settings it cannot take, it aborts the run, lets a running command
662
708
  finish, and ends the run with that error.
663
- - `agent-cli` (patch): robota watches its live sandbox, and a child applies each change to the
709
+ - `agent-cli` (patch): Robota watches its live sandbox, and a child applies each change to the
664
710
  instance its tools and approval read.
665
711
 
666
712
  - 5a0ee96: Workspace trust no longer drops on its own. A grant was keyed by the repository config file and the
@@ -696,7 +742,7 @@
696
742
  pairwise secret (`derivePairRendezvous(...).relayInbox()`).
697
743
  - `agent-cli` — a device holding the signing key reissues its roster and revocation list before they
698
744
  expire while an interactive session runs. The host can open this device's mesh endpoint from the
699
- identity under `~/.robota/devices`, saving newer lists a peer hands over; no command starts it yet.
745
+ identity under `$PRODUCT_USER_STATE_DIR/devices`, saving newer lists a peer hands over; no command starts it yet.
700
746
  - `agent-command` — `/devices add|join` still reports that enrolment is not available yet.
701
747
 
702
748
  - e15e22b: The Node WebRTC transport runs on `node-datachannel` (libdatachannel, DTLS by OpenSSL). The DTLS stack
@@ -720,7 +766,7 @@
720
766
  The tool reaches only files inside the workspace whose path does not look like it holds secrets
721
767
  (`.env*`, `~/.ssh`, keys and credentials), and it does not exist in a turn a peer's message started.
722
768
  - The receiving operator approves every file. A received file is kept as an inert copy (mode 0600)
723
- under `~/.robota/peer-files/<sender>/`. It is never run and never placed in the model's context.
769
+ under `$PRODUCT_USER_STATE_DIR/peer-files/<sender>/`. It is never run and never placed in the model's context.
724
770
  The conversation is told only its name, size and sha256. A name that leaves that directory is
725
771
  refused, a symbolic link is never written through, and nothing is overwritten.
726
772
  - Transfers travel on a channel of their own (a separate connection on this host, a separate data
@@ -812,7 +858,7 @@
812
858
  rate. Discovery yields candidates only: admission is still the device handshake, and an address is
813
859
  remembered only after an admission it carried.
814
860
  - `agent-cli` — the device mesh endpoint can look on the local network (`lan` option), remembering
815
- the addresses that worked in an owner-only `~/.robota/devices/address-cache.json`; no command starts
861
+ the addresses that worked in an owner-only `$PRODUCT_USER_STATE_DIR/devices/address-cache.json`; no command starts
816
862
  it yet.
817
863
 
818
864
  ## 3.0.0-beta.81
@@ -852,13 +898,13 @@
852
898
  driver is ignored. External-event turns keep their tool-less baseline.
853
899
  - `agent-cli`: incoming peer turns carry only their reply route.
854
900
 
855
- - ec5e477: Add a credential store port (`ICredentialStore` in `agent-core`) and keep the CLI's secrets behind it: the OS keychain through the optional `@napi-rs/keyring` binding (macOS Keychain, Windows Credential Manager, Linux Secret Service), else an owner-only file under `~/.robota/credentials`. The backend is chosen at first use, recorded, and named by `/remote-control status`; a recorded keychain that stops working fails closed instead of degrading to the file.
901
+ - ec5e477: Add a credential store port (`ICredentialStore` in `agent-core`) and keep the CLI's secrets behind it: the OS keychain through the optional `@napi-rs/keyring` binding (macOS Keychain, Windows Credential Manager, Linux Secret Service), else an owner-only file under `$PRODUCT_USER_STATE_DIR/credentials`. The backend is chosen at first use, recorded, and named by `/remote-control status`; a recorded keychain that stops working fails closed instead of degrading to the file.
856
902
 
857
- The remote-control host identity key moves into the store. The old `~/.robota/remote-host-identity.json` may have been copied by backups or dotfile sync, so it is not carried over: on the first run after upgrading a new host key is generated, the old file is removed, and the operator is told once that trusted devices must pair again.
903
+ The remote-control host identity key moves into the store. The old `$PRODUCT_USER_STATE_DIR/remote-host-identity.json` may have been copied by backups or dotfile sync, so it is not carried over: on the first run after upgrading a new host key is generated, the old file is removed, and the operator is told once that trusted devices must pair again.
858
904
 
859
905
  - 44fc732: Add `/devices` for this device's identity among the user's devices: `list`, `init` (creates the identity: a recovery phrase, the master-certified signing key, this device's keys and certificate, the first roster and revocation list), `revoke <device-id>` (signing key only, no phrase; confirmed at the terminal) and `recover` (rotates the signing key from the phrase and revokes the old ones). Enrolling another device (`add` / `join`) comes with the device connection.
860
906
 
861
- The recovery phrase never enters the session: it is shown once and read with no echo on the controlling terminal (opened apart from the session's input), on the alternate screen that is cleared afterwards, and never reaches prompt history, conversation history, transcripts, traces or the model. Without an interactive terminal the phrase commands refuse. `/devices` is operator-only: never model-invocable and refused from remote surfaces. Private keys live in the host credential store; certificates, roster, revocation lists and sequence marks are kept in owner-only files under `~/.robota/devices`.
907
+ The recovery phrase never enters the session: it is shown once and read with no echo on the controlling terminal (opened apart from the session's input), on the alternate screen that is cleared afterwards, and never reaches prompt history, conversation history, transcripts, traces or the model. Without an interactive terminal the phrase commands refuse. `/devices` is operator-only: never model-invocable and refused from remote surfaces. Private keys live in the host credential store; certificates, roster, revocation lists and sequence marks are kept in owner-only files under `$PRODUCT_USER_STATE_DIR/devices`.
862
908
 
863
909
  `agent-remote-pairing` adds `isRecoveryPhraseWord`, so a phrase can be checked one word at a time.
864
910
 
@@ -1088,7 +1134,7 @@
1088
1134
  with an advisor. Sending history to a destination (provider type and endpoint host) the main model
1089
1135
  does not already use needs a one-time consent per destination, kept in the user settings file; a
1090
1136
  refusal is remembered for the session. The organization's `allowedProviders` applies, and
1091
- `ROBOTA_DISABLE_ADVISOR=1` turns it off completely. In-process subagents inherit the advisor, bound
1137
+ `PRODUCT_DISABLE_ADVISOR=1` turns it off completely. In-process subagents inherit the advisor, bound
1092
1138
  to their own conversation; child-process subagents do not get it.
1093
1139
 
1094
1140
  **`@robota-sdk/agent-framework` is `major` for one reason: `ICommandHostSessionAccess` gains a
@@ -1132,10 +1178,10 @@
1132
1178
 
1133
1179
  - **Running it** (`agent-cli`):
1134
1180
  - No shell. It runs in the project directory for a `project`/`local` definition, and in
1135
- `~/.robota` otherwise.
1181
+ `$PRODUCT_USER_STATE_DIR` otherwise.
1136
1182
  - Its environment is the host's without runtime-loading variables (`NODE_OPTIONS`, `LD_*`,
1137
1183
  `BASH_ENV`, …). A `project`/`local` helper also gets no credential-shaped variables.
1138
- `ROBOTA_MCP_SERVER_NAME` and `ROBOTA_MCP_SERVER_URL` are set. For a `project`/`local` helper
1184
+ `PRODUCT_MCP_SERVER_NAME` and `PRODUCT_MCP_SERVER_URL` are set. For a `project`/`local` helper
1139
1185
  the URL keeps its `${VAR}` references instead of what the environment expanded them to.
1140
1186
  - Limits: 10 s and 64 KiB of stdout. Stderr is discarded. The process tree is killed on timeout
1141
1187
  or cancel.
@@ -1228,7 +1274,7 @@
1228
1274
  of following it; registration, token and refresh requests use it.
1229
1275
  - **Storage:** `IMCPOAuthCredentialStore` (`get`/`set`/`delete`), keyed by the server's security
1230
1276
  identity and canonical URL together. `createFileOAuthCredentialStore` keeps 0600 files in a 0700
1231
- `~/.robota/mcp-credentials/`. The issuer, token endpoint and client (with its secret, if any, and
1277
+ `$PRODUCT_USER_STATE_DIR/mcp-credentials/`. The issuer, token endpoint and client (with its secret, if any, and
1232
1278
  the client authentication method dynamic registration returned) are stored with the tokens. A
1233
1279
  sign-in stores its credential under the refresh lock, so a refresh in flight cannot overwrite it.
1234
1280
  - **Sessions** (`createOAuthAuthenticator`, wired for every `oauth` definition):
@@ -1266,10 +1312,10 @@
1266
1312
 
1267
1313
  - af2f2ad: `/cd <directory>` continues the conversation in another directory.
1268
1314
 
1269
- - **A move is a new session in the target directory.** In the TUI, robota saves a copy of the
1315
+ - **A move is a new session in the target directory.** In the TUI, Robota saves a copy of the
1270
1316
  conversation where the target's session store will find it, ends the current run through its
1271
1317
  normal end-of-life flow, and starts again in the target directory resuming that copy. The target's
1272
- settings, trust decision, tools, skills and `AGENTS.md` apply, exactly as if robota had been
1318
+ settings, trust decision, tools, skills and `AGENTS.md` apply, exactly as if Robota had been
1273
1319
  launched there. The process boundary makes the move atomic, so no tool call can straddle it.
1274
1320
  - **The system prompt is kept as recorded**, so a provider's prompt cache survives. One appended
1275
1321
  `<workspace-move>` message tells the model the new directory, and which project instructions now
@@ -1312,8 +1358,8 @@
1312
1358
  construction alongside `allow` and `deny`.
1313
1359
  - **Never auto-approved, bypass included:** removing a critical path with `rm`/`rmdir` (the root, a
1314
1360
  top-level directory, home, the working directory or a parent), and a modify-class write into
1315
- `.git`, `.robota`, `.claude`, `.agents`, `.mcp.json`, `.gitconfig`, `.npmrc` or a shell rc file.
1316
- Files inside an isolated worktree (`.robota/worktrees/<name>/…`) are ordinary files. With no
1361
+ `.git`, `.Robota`, `.claude`, `.agents`, `.mcp.json`, `.gitconfig`, `.npmrc` or a shell rc file.
1362
+ Files inside an isolated worktree (`$PRODUCT_PROJECT_STATE_DIR/worktrees/<name>/…`) are ordinary files. With no
1317
1363
  approver attached, an ask is a denial.
1318
1364
  - **A ceiling is checked before bypass and before any ask.** A subagent's `inherit-allowlist` ceiling
1319
1365
  is now the parent's _effective_ rules, read live at spawn: settings, preset lists and command
@@ -1450,7 +1496,7 @@
1450
1496
  project/user definitions > injected > built-in. `AgentDefinitionLoader` now dedupes within that tier
1451
1497
  (first wins). Absent ⇒ unchanged behavior.
1452
1498
  - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
1453
- `agentDefinitions` through the headless and TUI channels so every robota surface carries the seam.
1499
+ `agentDefinitions` through the headless and TUI channels so every Robota surface carries the seam.
1454
1500
  - **`@robota-sdk/agent-cli`** — `robota`'s identity (branding, provider surface, presets,
1455
1501
  `packs: [codingPack]`, base command modules, injected transports/runners/subagent factory) is declared as
1456
1502
  data in a product profile and folded by `assembleProduct`. The coding command modules (`/shell`,
@@ -1497,7 +1543,7 @@
1497
1543
  End-user `robota` behavior is unchanged: the assembled command-module set, provider surface, tool set,
1498
1544
  subagent roster, preset resolution, and permission posture all match the pre-change assembly.
1499
1545
 
1500
- - 0116a29: ARCH-006 completion — robota's capability packs now OWN its tool surface, and `pack-coding` is built by a
1546
+ - 0116a29: ARCH-006 completion — Robota's capability packs now OWN its tool surface, and `pack-coding` is built by a
1501
1547
  context-bound factory.
1502
1548
 
1503
1549
  - **`@robota-sdk/pack-coding` (BREAKING)** — the module-level `codingPack` constant is **removed** and
@@ -1511,9 +1557,9 @@
1511
1557
  products in one process get independently-scoped file tools. Migration: replace `codingPack` with
1512
1558
  `createCodingPack({ cwd: process.cwd() })`.
1513
1559
  - **`@robota-sdk/agent-cli`** — `robota`'s packs are built from the shell's resolved `cwd`
1514
- (`createRobotaPacks({ cwd })`) before command setup, and the runtime seam passes
1515
- `ROBOTA_PACKS_OWN_TOOL_SURFACE` (an empty `defaultTools`) so the framework's `createDefaultTools()` tier
1516
- is REPLACED. Every tool robota runs now arrives from a capability pack: dropping a pack drops its tools,
1560
+ (`createProductCapabilityPacks({ cwd })`) before command setup, and the runtime seam passes
1561
+ `PRODUCT_PACKS_OWN_TOOL_SURFACE` (an empty `defaultTools`) so the framework's `createDefaultTools()` tier
1562
+ is REPLACED. Every tool Robota runs now arrives from a capability pack: dropping a pack drops its tools,
1517
1563
  exactly as it already dropped its command modules and subagents.
1518
1564
  - **`@robota-sdk/agent-transport` / `@robota-sdk/agent-transport-tui`** — forward the optional
1519
1565
  `additionalTools` and `defaultTools` through the headless and TUI channels, mirroring the existing
@@ -1589,7 +1635,7 @@
1589
1635
  - 2711ec6: One broken skill or agent file no longer stops the session.
1590
1636
 
1591
1637
  Skill, command and agent definitions are shared with other hosts through `.claude`, and those hosts
1592
- define fields of their own. The frontmatter decoder now validates only the fields robota owns and
1638
+ define fields of their own. The frontmatter decoder now validates only the fields Robota owns and
1593
1639
  ignores the rest (nested `metadata` entries included); a malformed value of an owned field is still
1594
1640
  refused. A refused file is skipped with a single warning and still claims its name, so a
1595
1641
  lower-priority definition cannot stand in for it. An empty `argument-hint` reads as no hint. When
@@ -1615,7 +1661,7 @@
1615
1661
  existing `presets` + `defaultPresetId` shape behaves exactly as before.
1616
1662
  - **`@robota-sdk/agent-cli`** — `resolveCliPreset` is replaced by `resolveShellPreset(externalPresets,
1617
1663
  args, settingsPreset)`, which builds the per-call registry, resolves over it, and returns
1618
- `{ registry, presetId, context, options }` as one value. `createRobotaProfile` takes that whole value,
1664
+ `{ registry, presetId, context, options }` as one value. `createSelectedProductProfile` takes that whole value,
1619
1665
  so the shell cannot hand the kernel a registry, id, or override context other than the ones it actually
1620
1666
  resolved with. `robota`'s startup path no longer reads `agent-preset`'s module-global resolver; that
1621
1667
  registry remains only as the in-session `/preset` DISCOVERY surface, which is executed inside the
@@ -1623,7 +1669,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1623
1669
  `loadExternalPresets()` call, so they cannot disagree.
1624
1670
 
1625
1671
  End-user `robota` behavior is unchanged: the same preset resolves to the same options, external presets
1626
- in `~/.robota/presets/*.json` remain visible to both `--preset <id>` and `/preset`, and the assembled
1672
+ in `$PRODUCT_USER_STATE_DIR/presets/*.json` remain visible to both `--preset <id>` and `/preset`, and the assembled
1627
1673
  command-module set, provider surface, tool set, subagent roster, and permission posture are untouched.
1628
1674
 
1629
1675
  - e82215f: **ARCH-011: replace the ambiguous transport lifecycle stub with executable conformance.**
@@ -1647,7 +1693,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1647
1693
 
1648
1694
  - 0c07176: **BREAKING — ARCH-021: child-process subagents compose the PRODUCT's surface, not imported defaults.**
1649
1695
 
1650
- The child-process worker built its surface from `createDefaultProviderDefinitions()` and `createDefaultTools()` — a fixed six-vendor registry and the framework's default tool tier — while the composition root had already handed the runner the fully composed surface and the runner dropped it. So a product's custom providers and pack-contributed tools reached an **in-process** subagent and not a **child-process** one, and ARCH-006's landed invariant "every tool robota runs comes from a pack" was **false in the child**: dropping a pack did not drop its tools.
1696
+ The child-process worker built its surface from `createDefaultProviderDefinitions()` and `createDefaultTools()` — a fixed six-vendor registry and the framework's default tool tier — while the composition root had already handed the runner the fully composed surface and the runner dropped it. So a product's custom providers and pack-contributed tools reached an **in-process** subagent and not a **child-process** one, and ARCH-006's landed invariant "every tool Robota runs comes from a pack" was **false in the child**: dropping a pack did not drop its tools.
1651
1697
 
1652
1698
  This is the second finding at that line. ARCH-010 — judged BLOCKER, a subagent `Read` returning `/etc/hostname` — patched one argument there and left the reconstruction standing.
1653
1699
 
@@ -1752,7 +1798,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1752
1798
  }
1753
1799
  ```
1754
1800
 
1755
- `IChildProcessSubagentRunnerOptions.workerPath` → **`workerEntry`**, and the runner `spawn`s `execPath args… --__robota-subagent-worker` instead of forking a module path. `robota`'s own entry enters worker mode through the new `runSubagentWorkerMain()`, so **there is no second artifact and no path to get wrong**. The one seam satisfies all three shapes: a bundled Node build names the file it is executing, a `tsx` source run names the same and adds `--import tsx`, and a compiled binary names _nothing_ — `process.execPath` is the binary, and re-executing it re-enters its embedded entry.
1801
+ `IChildProcessSubagentRunnerOptions.workerPath` → **`workerEntry`**, and the runner `spawn`s `execPath args… --__agent-subagent-worker` instead of forking a module path. `robota`'s own entry enters worker mode through the new `runSubagentWorkerMain()`, so **there is no second artifact and no path to get wrong**. The one seam satisfies all three shapes: a bundled Node build names the file it is executing, a `tsx` source run names the same and adds `--import tsx`, and a compiled binary names _nothing_ — `process.execPath` is the binary, and re-executing it re-enters its embedded entry.
1756
1802
 
1757
1803
  **Per package, classified against each barrel:**
1758
1804
 
@@ -1767,13 +1813,13 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1767
1813
  **Verified against the artifacts, not from source:** the built `dist/node/bin.js` and a real `bun --compile` single-file binary each complete the worker IPC handshake (`{type:'ready'}`), each refuse a hand-typed flag with no IPC channel (exit 2, "Silence is not success" — measured on both), and the shipped bundle no longer contains the string `child-process-subagent-worker.js` — there is nothing left to look for.
1768
1814
 
1769
1815
  - 1e40b5b: Move handoff source/destination orchestration and its contract from agent-framework to the session-mobility owner. Import `HandoffSource`, `HandoffDestination`, and their option types from `@robota-sdk/agent-interface-session-mobility`. Mobility now applies offer and authority decisions directly, while the CLI supplies wire effects and the session-record decoder. A successful offer no longer returns a mutable authority transaction.
1770
- - f3fe3db: The terminal renderer no longer reads `ROBOTA_SCREEN_READER_STARTUP_QUIET_MS` or
1771
- `ROBOTA_SCREEN_READER_PREPARK_MS` from the process environment. SDK hosts calling `renderApp`
1816
+ - f3fe3db: The terminal renderer no longer reads `PRODUCT_SCREEN_READER_STARTUP_QUIET_MS` or
1817
+ `PRODUCT_SCREEN_READER_PREPARK_MS` from the process environment. SDK hosts calling `renderApp`
1772
1818
  directly should pass raw timing choices and diagnostic labels through the new optional
1773
1819
  `screenReaderPacing` render option. Without it, the renderer uses its existing 900 ms startup
1774
1820
  quiet period and 50 ms pre-write park when screen-reader mode is enabled. The Robota CLI still
1775
1821
  reads the same environment variables and preserves their validation, bounds, and warnings.
1776
- - 724d5b6: The terminal renderer no longer reads `ROBOTA_IME_CURSOR` or `ROBOTA_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 Robota CLI still reads both environment variables and preserves its exact `1` and `0` overrides.
1822
+ - 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 Robota CLI still reads both environment variables and preserves its exact `1` and `0` overrides.
1777
1823
  - c6c56a6: Move the concrete `GitWorktreeIsolationAdapter` (git CLI + filesystem I/O) out of the reusable
1778
1824
  `@robota-sdk/agent-executor` runtime-primitives package into the `@robota-sdk/agent-cli` composition
1779
1825
  root, restoring the executor's "creates no Git worktrees" boundary (ARL-02 / ARCH-FIX-024, INFRA-031).
@@ -1787,18 +1833,18 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1787
1833
 
1788
1834
  - 4b76cfa: NEUT-005 (wave 2): restore an actionable context-capacity hint at the surface tier, neutrally. The zero-dependency `agent-core` layer emits a product-neutral hard-capacity notice and exposes the `IAgentConfig.contextCapacityHint` seam (wave 1). This wave wires that seam end-to-end without baking product vocabulary into a neutral library:
1789
1835
 
1790
- - `agent-session`: `ISessionOptions.contextCapacityHint` is forwarded into the Robota agent config (`buildRobota`), making the core seam reachable from the consuming layer.
1836
+ - `agent-session`: `ISessionOptions.contextCapacityHint` is forwarded into the agent configuration factory, making the core seam reachable from the consuming layer.
1791
1837
  - `agent-framework`: new `deriveContextCapacityHint(commandModules)` derives the concrete remediation wording from the surface's OWN registered command set (names a registered `compact` command → `"Run /compact and retry."`; `undefined` when none, leaving the neutral core default). It is applied automatically in interactive session assembly across the TUI, print, and `--serve` surfaces.
1792
1838
  - `agent-cli`: the default command set registers `/compact`, so end users regain the actionable hint.
1793
1839
  - `agent-interface-transport`: reworded the `'allow-project'` permission comment so it no longer hardcodes a storage path (the location is owned by the consuming layer), matching the `agent-session` twin.
1794
1840
 
1795
- - 796ddb4: Use a neutral default MCP client name and let hosts supply their own protocol identity. Robota CLI startup now explicitly supplies its prior `robota-agent-mcp` name, preserving its initialize handshake; embedders relying on that implicit name can set `clientInfo` explicitly.
1841
+ - 796ddb4: Use a neutral default MCP client name and let hosts supply their own protocol identity. Robota CLI startup now explicitly supplies its prior `Robota-agent-mcp` name, preserving its initialize handshake; embedders relying on that implicit name can set `clientInfo` explicitly.
1796
1842
  - e13c30c: MCP servers now publish a neutral submission tool by default. Hosts that need the previous
1797
- `robota_submit` tool must pass `submitTool: { name: 'robota_submit', description: '...' }` to
1843
+ `PRODUCT_submit` tool must pass `submitTool: { name: 'PRODUCT_submit', description: '...' }` to
1798
1844
  `createAgentMcpServer`, `createMcpTransport`, or `createMcpHttpHost`. The Robota CLI supplies its
1799
1845
  existing name and description for both stdio and HTTP carriers.
1800
1846
  - 90e7a10: The default background observer warning code and exported `OBSERVER_FAILURE_WARNING_CODE` value
1801
- change from `ROBOTA_BACKGROUND_OBSERVER_FAILURE` to `BACKGROUND_OBSERVER_FAILURE`. Hosts matching
1847
+ change from `PRODUCT_BACKGROUND_OBSERVER_FAILURE` to `BACKGROUND_OBSERVER_FAILURE`. Hosts matching
1802
1848
  the old warning code should match the new neutral code or provide `observerFailureWarningCode` in
1803
1849
  their background manager or session options. The Robota CLI supplies its existing code explicitly
1804
1850
  across print, goal, serve, MCP, and TUI sessions.
@@ -1855,7 +1901,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1855
1901
  fragment-injected `spa/remote.html` static entry, and the REMOTE-007 permission/ask render+answer
1856
1902
  (the paired owner answers its own prompts — local == remote) shared by both the WS and RTC clients. It
1857
1903
  reuses the isomorphic `@robota-sdk/agent-remote-pairing` leaf and takes no node/werift dependency.
1858
- `agent-cli` removes the fabricated `robota-remote://pair` client-URL default and fails closed when
1904
+ `agent-cli` removes the fabricated `Robota-remote://pair` client-URL default and fails closed when
1859
1905
  `transports.webrtc.options.clientUrl` is unset (no dead link).
1860
1906
 
1861
1907
  (Bump targets corrected during REL-023 triage: `@robota-sdk/agent-web-ui` was dissolved by GUI-006 (#1141, 2026-07-12) before this work was ever published; the browser client described here now lives in `@robota-sdk/agent-transport-webrtc-web` + `@robota-sdk/agent-remote-client`.)
@@ -1973,7 +2019,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
1973
2019
 
1974
2020
  - **Preset system (PRESET-001~017):** new `@robota-sdk/agent-preset` package layering framework
1975
2021
  assembly options into named, selectable profiles (`default`, `autonomous-builder`, `careful-reviewer`,
1976
- `neutral-executor`) plus user-authored external presets loaded from `~/.robota/presets/*.json`.
2022
+ `neutral-executor`) plus user-authored external presets loaded from `$PRODUCT_USER_STATE_DIR/presets/*.json`.
1977
2023
  - **Live preset switching:** `/preset` command (list + active marker + switch) and a TUI active-preset
1978
2024
  display. Switching live re-applies permission posture, model/effort, persona, command-module
1979
2025
  selection, parallel-subagents gating, and a self-verification system-prompt section via the single
@@ -2324,7 +2370,7 @@ args, settingsPreset)`, which builds the per-call registry, resolves over it, an
2324
2370
 
2325
2371
  ### Patch Changes
2326
2372
 
2327
- - Refresh package docs and robota.io content for the beta 57 feature set.
2373
+ - Refresh package docs and Robota.io content for the beta 57 feature set.
2328
2374
  - Updated dependencies
2329
2375
  - @robota-sdk/agent-command-agent@3.0.0-beta.58
2330
2376
  - @robota-sdk/agent-core@3.0.0-beta.58