arco-workbench 0.1.7 → 0.1.8

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 (210) hide show
  1. package/CONTRIBUTING.md +52 -12
  2. package/README.md +14 -12
  3. package/client/dist/assets/{PhosphorBackdrop-DVQdBrTw.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-BfSs2tB4.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
  5. package/client/dist/assets/{XtermView-DaMjC8Ny.js → XtermView-BGFujb1e.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-BCQnXj7R.js → galleryEditor-D951A2sE.js} +1 -1
  7. package/client/dist/assets/{index-COfbHCYv.js → index-CsVy3eZm.js} +246 -246
  8. package/client/dist/index.html +1 -1
  9. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
  10. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
  11. package/client/src/components/ClusterRightPanel/index.tsx +4 -0
  12. package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
  13. package/client/src/components/NeedsYouBadge.tsx +3 -3
  14. package/client/src/components/ProviderReleasesModal.tsx +8 -4
  15. package/client/src/components/ProvidersPopover.tsx +28 -23
  16. package/client/src/components/SettingsPanel.tsx +2 -2
  17. package/client/src/components/SkillsSettings.tsx +5 -0
  18. package/client/src/components/TabBar.tsx +91 -9
  19. package/client/src/components/TerminalInput.tsx +12 -10
  20. package/client/src/components/TranscriptSendDialog.tsx +12 -8
  21. package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
  22. package/client/src/components/clusterNeedsYou.ts +11 -18
  23. package/client/src/help/content/cluster.tsx +38 -17
  24. package/client/src/help/content/composer.tsx +22 -0
  25. package/client/src/help/content/header.tsx +16 -0
  26. package/client/src/help/content/misc.tsx +8 -0
  27. package/client/src/help/content/settings.tsx +18 -4
  28. package/client/src/help/content/tabbar.tsx +5 -0
  29. package/client/src/help/manualSections/actions.tsx +31 -0
  30. package/client/src/help/manualSections/clusters.tsx +41 -20
  31. package/client/src/help/manualSections/configuration.tsx +18 -0
  32. package/client/src/help/manualSections/maintenance.tsx +18 -0
  33. package/client/src/help/manualSections/providers.tsx +32 -8
  34. package/client/src/help/manualSections/troubleshooting.tsx +2 -1
  35. package/client/src/help/manualSections/workflows.tsx +12 -0
  36. package/client/src/help/manualSections/workspace.tsx +6 -0
  37. package/client/src/utils/transcriptWorkerRequest.ts +24 -0
  38. package/client/src/ws/handleServerMessage.ts +8 -2
  39. package/docs/ARCHITECTURE.md +1 -1
  40. package/docs/CLIENT.md +9 -8
  41. package/docs/FEATURES.md +8 -5
  42. package/docs/GETTING_STARTED.md +4 -3
  43. package/docs/GOTCHAS.md +2 -1
  44. package/docs/OPERATIONS.md +14 -4
  45. package/docs/PERSISTENCE.md +7 -2
  46. package/docs/PRIMITIVES.md +42 -0
  47. package/docs/PROTOCOL_CLUSTER.md +42 -3
  48. package/docs/PROTOCOL_PRIMITIVES.md +39 -0
  49. package/docs/PROVIDERS.md +50 -13
  50. package/docs/SETTINGS.md +27 -3
  51. package/docs/TASK_LEDGER.md +7 -15
  52. package/native/darwin-arm64/manifest.json +1 -1
  53. package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
  54. package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
  55. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
  56. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -1
  57. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  58. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  59. package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
  60. package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
  61. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  62. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
  63. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  64. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
  65. package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
  66. package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
  67. package/node_modules/@arco/shared/package.json +1 -1
  68. package/package.json +2 -2
  69. package/scripts/packaging/arco.mjs +1 -1
  70. package/scripts/packaging/native-repair.mjs +32 -4
  71. package/server/dist/atomicFile.js +1 -2
  72. package/server/dist/capabilities.d.ts +5 -2
  73. package/server/dist/capabilities.js +59 -9
  74. package/server/dist/cliUpdateDecision.d.ts +1 -1
  75. package/server/dist/cliUpdateDecision.js +5 -3
  76. package/server/dist/clusterDirector.js +1 -1
  77. package/server/dist/clusterPeerOps.js +10 -7
  78. package/server/dist/clusterProgress.js +1 -1
  79. package/server/dist/clusterSkills.d.ts +13 -0
  80. package/server/dist/clusterSkills.js +81 -0
  81. package/server/dist/clusterSnapshots.js +2 -0
  82. package/server/dist/clusterStore.d.ts +7 -2
  83. package/server/dist/clusterStore.js +42 -1
  84. package/server/dist/diagnostics/codeSkew.js +1 -0
  85. package/server/dist/eventLog.d.ts +7 -0
  86. package/server/dist/eventLog.js +70 -13
  87. package/server/dist/historyLimits.d.ts +1 -0
  88. package/server/dist/historyLimits.js +3 -0
  89. package/server/dist/http/router.js +1 -1
  90. package/server/dist/index.js +24 -1
  91. package/server/dist/jsonlLines.d.ts +4 -0
  92. package/server/dist/jsonlLines.js +53 -0
  93. package/server/dist/management/identity.js +1 -0
  94. package/server/dist/mcp/clusterMcpTools.js +4 -4
  95. package/server/dist/project/taskLedger.d.ts +4 -0
  96. package/server/dist/project/taskLedger.js +7 -4
  97. package/server/dist/providerConversation.d.ts +1 -0
  98. package/server/dist/providerConversation.js +17 -0
  99. package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
  100. package/server/dist/providers/claude-native/resumeSummary.js +102 -49
  101. package/server/dist/providers/claude-native/worker.js +8 -4
  102. package/server/dist/providers/claude.js +2 -1
  103. package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
  104. package/server/dist/providers/codex-appserver/catalog.js +16 -1
  105. package/server/dist/providers/codex.js +2 -1
  106. package/server/dist/providers/codexCodeMode.d.ts +1 -1
  107. package/server/dist/providers/codexCodeMode.js +4 -3
  108. package/server/dist/providers/cursor/print.js +2 -1
  109. package/server/dist/providers/cursor/worker.js +2 -1
  110. package/server/dist/providers/llamacpp.js +17 -8
  111. package/server/dist/providers/ollamaRecovery.js +6 -6
  112. package/server/dist/providers/ollamaResilience.js +3 -3
  113. package/server/dist/providers/ollamaTokens.js +1 -1
  114. package/server/dist/quota.d.ts +0 -18
  115. package/server/dist/quota.js +0 -44
  116. package/server/dist/replacementHistory.d.ts +19 -0
  117. package/server/dist/replacementHistory.js +49 -0
  118. package/server/dist/server/broadcast.d.ts +2 -1
  119. package/server/dist/server/broadcast.js +1 -0
  120. package/server/dist/server/prompts.d.ts +1 -0
  121. package/server/dist/server/prompts.js +6 -1
  122. package/server/dist/sessionJsonl.d.ts +1 -1
  123. package/server/dist/sessionJsonl.js +115 -40
  124. package/server/dist/smartPickupAdapters.js +15 -2
  125. package/server/dist/transcriptWorker.d.ts +34 -0
  126. package/server/dist/transcriptWorker.js +201 -0
  127. package/server/dist/workflowStore.d.ts +1 -0
  128. package/server/dist/workflowStore.js +31 -0
  129. package/server/dist/ws/clusterHandlers.d.ts +1 -0
  130. package/server/dist/ws/clusterHandlers.js +62 -26
  131. package/server/dist/ws/handoffHandlers.js +5 -2
  132. package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
  133. package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
  134. package/server/dist/ws/turnEngine.js +23 -9
  135. package/server/dist/ws/updatePrimaryConfig.js +27 -8
  136. package/server/dist/ws/workflowHandlers.d.ts +4 -1
  137. package/server/dist/ws/workflowHandlers.js +3 -1
  138. package/server/package.json +1 -1
  139. package/server/src/atomicFile.ts +1 -2
  140. package/server/src/capabilities.ts +58 -17
  141. package/server/src/cliUpdateDecision.ts +5 -4
  142. package/server/src/clusterDirector.ts +1 -1
  143. package/server/src/clusterPeerOps.ts +11 -8
  144. package/server/src/clusterProgress.ts +1 -1
  145. package/server/src/clusterSkills.ts +79 -0
  146. package/server/src/clusterSnapshots.ts +1 -0
  147. package/server/src/clusterStore.ts +38 -0
  148. package/server/src/diagnostics/codeSkew.ts +1 -0
  149. package/server/src/eventLog.ts +73 -13
  150. package/server/src/historyLimits.ts +2 -0
  151. package/server/src/http/router.ts +1 -1
  152. package/server/src/index.ts +23 -0
  153. package/server/src/jsonlLines.ts +52 -0
  154. package/server/src/management/identity.ts +1 -0
  155. package/server/src/mcp/clusterMcpTools.ts +4 -4
  156. package/server/src/project/taskLedger.ts +7 -5
  157. package/server/src/providerConversation.ts +15 -0
  158. package/server/src/providers/claude-native/resumeSummary.ts +98 -50
  159. package/server/src/providers/claude-native/worker.ts +8 -4
  160. package/server/src/providers/claude.ts +2 -1
  161. package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
  162. package/server/src/providers/codex-appserver/catalog.ts +14 -1
  163. package/server/src/providers/codex.ts +2 -1
  164. package/server/src/providers/codexCodeMode.ts +4 -4
  165. package/server/src/providers/cursor/print.ts +2 -1
  166. package/server/src/providers/cursor/worker.ts +2 -1
  167. package/server/src/providers/llamacpp.ts +18 -7
  168. package/server/src/providers/llamacppRecovery.ts +2 -0
  169. package/server/src/providers/ollamaRecovery.ts +6 -6
  170. package/server/src/providers/ollamaResilience.ts +3 -3
  171. package/server/src/providers/ollamaTokens.ts +1 -1
  172. package/server/src/providers/ollamaToolSubset.ts +3 -3
  173. package/server/src/quota.ts +0 -50
  174. package/server/src/replacementHistory.ts +44 -0
  175. package/server/src/server/broadcast.ts +2 -0
  176. package/server/src/server/prompts.ts +8 -1
  177. package/server/src/sessionJsonl.ts +92 -32
  178. package/server/src/smartPickupAdapters.ts +17 -3
  179. package/server/src/transcriptWorker.ts +182 -0
  180. package/server/src/workflowStore.ts +21 -0
  181. package/server/src/ws/clusterHandlers.ts +43 -25
  182. package/server/src/ws/handoffHandlers.ts +5 -1
  183. package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
  184. package/server/src/ws/turnEngine.ts +20 -8
  185. package/server/src/ws/updatePrimaryConfig.ts +25 -6
  186. package/server/src/ws/workflowHandlers.ts +3 -1
  187. package/shared/dist/clusterCoordination.d.ts +2 -0
  188. package/shared/dist/clusterCoordination.js +5 -1
  189. package/shared/dist/protocol/clientMessages.d.ts +3 -2
  190. package/shared/dist/protocol/clusters.d.ts +13 -1
  191. package/shared/dist/protocol/index.d.ts +1 -0
  192. package/shared/dist/protocol/index.js +1 -0
  193. package/shared/dist/protocol/models.d.ts +4 -3
  194. package/shared/dist/protocol/models.js +26 -2
  195. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  196. package/shared/dist/protocol/tasks.d.ts +4 -0
  197. package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  198. package/shared/dist/protocol/transcriptWorker.js +2 -0
  199. package/shared/dist/runtimeVersions.d.ts +1 -0
  200. package/shared/dist/runtimeVersions.js +14 -0
  201. package/shared/src/clusterCoordination.ts +7 -1
  202. package/shared/src/protocol/clientMessages.ts +5 -0
  203. package/shared/src/protocol/clusters.ts +16 -1
  204. package/shared/src/protocol/index.ts +1 -0
  205. package/shared/src/protocol/models.ts +31 -5
  206. package/shared/src/protocol/serverMessages.ts +2 -0
  207. package/shared/src/protocol/settings.ts +2 -3
  208. package/shared/src/protocol/tasks.ts +4 -7
  209. package/shared/src/protocol/transcriptWorker.ts +49 -0
  210. package/shared/src/runtimeVersions.ts +14 -0
package/docs/PROVIDERS.md CHANGED
@@ -22,6 +22,12 @@ Diagnostics uses platform PATH lookup, including Windows PATHEXT suffixes, to fi
22
22
 
23
23
  A missing workflow `meta.json` is repaired from the current configuration and any known live provider session id. If that id was already lost, Codex, Cursor and Claude CLI start a new provider conversation on the next message and say so once. Earlier messages stay visible, but are not a promise that the provider received the full earlier transcript. `CTX: -` explains the unavailable conversation or the replacement's pending reading. COMPACT on a lost Codex or Cursor conversation explains that the next message starts a new conversation. Claude Native and local replay-based history do not depend on an external id. See [Persistence](PERSISTENCE.md#metajson).
24
24
 
25
+ Claude configuration updates accept only `low`, `medium`, `high`, `xhigh` or
26
+ `max` effort. A malformed value is rejected before any fields in the update
27
+ change live state or saved metadata, so it cannot reach the CLI's `--effort`
28
+ argument. The model picker still offers the selected model's supported subset;
29
+ other providers retain their own effort values.
30
+
25
31
  ## Topics
26
32
 
27
33
  | Topic |
@@ -706,6 +712,8 @@ Native sessions are Arco-internal - there's no `~/.claude/projects/<sid>.jsonl`
706
712
 
707
713
  On `ensureStarted`, if the workflow's `events.jsonl` has prior `user_message_echo` + `primary_text` entries, the worker reconstructs `this.messages` from them so a server restart picks up where it left off (replay-only - periodic snapshot deferred per 14 Q7). The reconstructed shape is logged to stderr under `[claude-native:<wfid>]` for forensic comparison; tool_use / tool_result events are not replayed (the next turn sees a clean USER/ASSISTANT history).
708
714
 
715
+ For histories using summary-and-tail replay, the older-turn resume digest is capped at 128 KiB (the same shared byte budget as replacement RECENT HISTORY). Existing compaction context and its kept-tail digest have priority; oldest whole turn notes are left out first. The same plain sentence tells the agent and the tab how many earlier turn notes were omitted. If compacted context alone exceeds the budget, it is shortened at a UTF-8 boundary, preserving its tail first, and that line says so. Histories and recent exact replay are unchanged; fitting digests remain byte-identical. Fitting existing summary caches stay valid; an oversized cached digest is rebuilt under the cap.
716
+
709
717
  **Restore points / forks (Native-first).** A `revert_to_point_request` (HistoryTab "REWIND CONVERSATION" action) makes the server append a `leaf_move` event and set `meta.leafSeq`; a branch-aware replay pre-pass (`filterEventsToBranch` in `resumeSummary.ts`, driven by `replayMessagesWithResumePolicy`) then reconstructs `messages` along the active leaf only (absent `leafSeq` ⇒ byte-identical to the old linear replay). The rewind is reversible - "undo the undo" is just another `leaf_move`. Native-first: the button stays visible for every provider, disabled with the reason beside it when the worker is not Claude Native, and the server refuses those requests. `branch_summary` is RESERVED and unemitted - forks ship via `leaf_move`, not `branch_summary`. This is the active-branch behavior used when resuming the conversation.
710
718
 
711
719
  #### Context management
@@ -1059,10 +1067,12 @@ The first-time-enable warning is a global flag - `settings.codex.appserverWarnin
1059
1067
 
1060
1068
  #### Live model catalog
1061
1069
 
1062
- `server/src/providers/codex-appserver/catalog.ts` mirrors the Claude catalog pattern: spawns a short-lived `codex app-server` once an hour to call the JSON-RPC `model/list` method, distills the response into a flat picker shape (`supportedReasoningEfforts` ascending, `description`, `defaultReasoningEffort`, `supportsImageInput`, `supportsPersonality`, `additionalSpeedTiers`), and caches in-memory for `REFRESH_INTERVAL_MS = 60 * 60 * 1000`. Refresh is lazy (next request after expiry); `?force=1` on `GET /api/codex/catalog` bypasses the cache.
1070
+ `server/src/providers/codex-appserver/catalog.ts` mirrors the Claude catalog pattern: spawns a short-lived `codex app-server` once an hour to call the JSON-RPC `model/list` method, distills the response into a flat picker shape (`supportedReasoningEfforts` ascending, `description`, `defaultReasoningEffort`, `supportsImageInput`, `supportsPersonality`, `additionalSpeedTiers`), and caches in-memory for `REFRESH_INTERVAL_MS = 60 * 60 * 1000`. Refresh is lazy (next request after expiry); `?force=1` on `GET /api/codex/catalog` bypasses the cache. A change to that account's `models_cache.json` also invalidates the snapshot on the next request, so a catalog refreshed by the Codex CLI does not wait for the hourly TTL. Failed refreshes retain the prior snapshot without renewing its timestamp.
1063
1071
 
1064
1072
  **Per-account (multi-profile).** Codex is the only provider with per-account auth profiles (HOME / WORK), and model *availability* is entitlement-gated per account - a higher-tier WORK plan sees e.g. `gpt-5.6-sol` where HOME sees only Terra/Luna. So the cache is a `Map` keyed by `codexHome`: each profile is fetched by spawning app-server with that `CODEX_HOME` (the same seam `probeCodexLoggedIn` and both turn transports use). `GET /api/codex/catalog?account=<profileId>` resolves via `resolveProviderAccount('codex', id)` → `codexHome` (omit → ambient `~/.codex`; unknown id → first configured account). Client-side, `App.tsx` polls each configured profile into the `codexCatalogByAccount` store map; account-aware pickers read it via the `useCodexCatalogFor(accountRef)` hook (ConfigTab, TerminalInput, SpawnDialog, WorkflowCreator, AddWorkerSection), so flipping the ACCOUNT PROFILE toggle re-filters the model list live. The plain `codexCatalog` slice remains the default-account fallback for account-less surfaces (Handoff / Review / RunAs / TabContextMenu). Model *capabilities* (efforts, image input) are account-independent, so `getCachedCodexModelCapabilities` unions across every cached snapshot.
1065
1073
 
1074
+ The cold fallback includes `gpt-6.2-sol` and `gpt-6.2-astra`; Sol is the cold default, while a live account catalog supplies its own default and availability. Both currently advertise low through ultra effort and image input. The observed standard/MAX context values are 500,000/872,000 for Sol and 272,000/872,000 for Astra, with a 95% effective margin. Existing MAX policy, runtime window reporting and code-mode detection read these values without a model-name special case. The browser continues to poll every 30 minutes; reloading the page requests the catalog sooner without restarting Arco.
1075
+
1066
1076
  Two consumers:
1067
1077
 
1068
1078
  1. **Picker** - client polls `/api/codex/catalog` (per profile, see above) every 30 minutes. WorkflowCreator, SpawnDialog, HandoffDialog, ReviewDialog, RunAsPicker, RightPanel, and the TerminalInput chip popover all read from `codexCatalog` (or the account-scoped `useCodexCatalogFor`) with the static `CODEX_MODELS` list as cold-start fallback. The catalog's `description` field surfaces as the picker subline / pill `title=` tooltip ("Frontier model for complex coding...", "Ultra-fast coding model.", etc).
@@ -1145,6 +1155,20 @@ against isolated Vite with all API/WebSocket traffic stubbed.
1145
1155
 
1146
1156
  ## Cursor
1147
1157
 
1158
+ In the PROVIDERS panel, clicking CURSOR runs the existing `cursor-agent update`
1159
+ command and probes that CLI again. It never runs npm or an installation script
1160
+ as a fallback. The row uses the existing one-line update result and keeps a
1161
+ separate CURSOR CHANGELOG link. An updater failure remains a failure even if
1162
+ the old CLI still works; an unreadable version after the update is also a failure.
1163
+
1164
+ The update flag reads the dated version embedded in the public
1165
+ [Cursor installer](https://cursor.com/install) as bounded text, without executing
1166
+ it. A missing, malformed or unavailable value leaves the latest version unknown
1167
+ and shows no flag; the update action still works. Date-stamped builds compare by
1168
+ date. Different hashes on the same date have no known ordering, so they do not
1169
+ produce an update flag. An unchanged version is called latest only when the
1170
+ published version can be compared and confirms it.
1171
+
1148
1172
  ACP and print output decode UTF-8 across pipe chunks, preserving multibyte text and filenames. Cancelling native compression finishes its cancellation wait when compression settles; its fallback timer cannot kill a later turn.
1149
1173
 
1150
1174
  `server/src/providers/cursor/` - a long-lived per-workflow ACP worker (`worker.ts`) driving
@@ -1715,7 +1739,7 @@ tokens and milliseconds, summed across tool rounds. `primary_complete.genSpeed`
1715
1739
  drives the Agent and Chat composer readout after each turn, excluding tool time.
1716
1740
  PROVIDERS displays the installed engine from `/v1/status` and compares GitHub
1717
1741
  releases at boot and every four hours; newer releases turn yellow and link to
1718
- upstream release notes. FREE VRAM uses `/v1/unload` only on loopback, refuses
1742
+ upstream release notes. Opening the notes closes PROVIDERS; the release window is placed above the workspace and returns focus to the provider button when closed. FREE VRAM uses `/v1/unload` only on loopback, refuses
1719
1743
  active local turns and reviewers, and blocks new local turns during unloading.
1720
1744
  It also unloads local Ollama, managed llama.cpp and LM Studio LLMs, including
1721
1745
  providers hidden in the picker. No model files or configured limits change.
@@ -1908,6 +1932,15 @@ OpenAI fragment-assembly: tool calls arrive across multiple SSE events, partial
1908
1932
 
1909
1933
  Operator-declared in the catalog; no `--show`-equivalent on llama-server. Setting `capabilities.vision: true` without an `mmprojPath` is allowed (the validator doesn't reject it) but the provider drops images and emits a system_notice - guard at the UI layer where useful.
1910
1934
 
1935
+ The version check reads the newest numeric `b<build>` tag among the 20 most
1936
+ recent published GitHub releases, excluding drafts. Published daily builds
1937
+ marked as prereleases are included. The
1938
+ existing PROVIDERS row compares that build with the installed binary's build
1939
+ number and marks an older build. Semantic milestone versions are not used as
1940
+ build numbers. An unavailable feed or unknown build leaves the flag unset.
1941
+ Clicking the row still opens upstream releases; updates remain manual and no
1942
+ binary or model is installed or loaded.
1943
+
1911
1944
  ### Quirks
1912
1945
 
1913
1946
  - **Cold-start latency.** First turn after a switch is 20-30s for a 17GB GGUF (mmap + VRAM transfer). UI shows nothing useful during this window today; status is queryable via `GET /api/llamacpp-live`.
@@ -1921,24 +1954,27 @@ Operator-declared in the catalog; no `--show`-equivalent on llama-server. Settin
1921
1954
 
1922
1955
  ### Auto-recovery
1923
1956
 
1924
- Local thinking models fail in three specific ways that the lifecycle alone can't handle: reasoning runaway (model emits `reasoning_content` for minutes without ever committing), tool-cap exhaustion (50-turn cap fires on legitimately long work), and context fill (96K cap is small compared to Claude). The provider runs an in-place auto-recovery system that keeps the conversation going without operator intervention.
1957
+ Local thinking models fail in three specific ways that the lifecycle alone can't handle: reasoning runaway (model emits `reasoning_content` for minutes without ever committing), tool-cap exhaustion (25-turn cap fires on legitimately long work), and context fill (96K cap is small compared to Claude). The provider runs an in-place auto-recovery system that keeps the conversation going without operator intervention.
1925
1958
 
1926
1959
  Distinct from the heavyweight Handoff primitive (which spawns a fresh workflow with a chosen summarizer model - tuned for Claude/Codex flows). Auto-recovery operates inside the same worker on the same workflow, just intelligently resetting the in-memory message stack when something goes sideways.
1927
1960
 
1928
- Four detection paths, all gated by `ARCO_LLAMACPP_AUTO_RECOVER` (default on):
1961
+ Each reply has a wall-clock limit of `ARCO_LLAMACPP_TURN_BUDGET_MS` (default 120s), even while text keeps arriving, and a no-data limit of `ARCO_LLAMACPP_STALL_TIMEOUT_MS` (default 90s). Both limits also apply when `ARCO_LLAMACPP_AUTO_RECOVER=off`. With recovery off, Arco cancels the stream, attempts to free its slot and reports one plain error without retrying. The wall-clock timer includes the request and resets for each reply in a tool loop.
1962
+
1963
+ With automatic recovery enabled (the default), the existing shared recovery budget and final-summary attempt remain in effect. The main detection paths are:
1929
1964
 
1930
1965
  | Trigger | Detection | Recovery |
1931
1966
  |---|---|---|
1932
- | Reasoning runaway | `reasoning_content` exceeds `ARCO_LLAMACPP_REASONING_BUDGET` tokens (default 8000) with no `content` or `tool_calls` arrived | Abort stream, inject a fake assistant + user pair telling the model to commit to action. Continue. |
1967
+ | Reasoning runaway | `reasoning_content` exceeds `ARCO_LLAMACPP_REASONING_BUDGET` tokens (default 4000) | Abort stream, inject a fake assistant + user pair telling the model to commit to action. Continue. |
1933
1968
  | Stream stall | No SSE event for `ARCO_LLAMACPP_STALL_TIMEOUT_MS` (default 90s) | Abort stream, build deterministic summary of progress so far, inject as user message, continue. |
1934
- | Tool-cap hit | `MAX_TOOL_TURNS` (default 50) exhausted without final answer | Build deterministic recap of tool calls + files, inject as user message asking to continue or wrap up, reset counter. |
1969
+ | Wall-clock limit | A reply reaches `ARCO_LLAMACPP_TURN_BUDGET_MS` (default 120s), even with stream data arriving | Abort stream, inject a deterministic recap and continue within the existing recovery budget. |
1970
+ | Tool-cap hit | `MAX_TOOL_TURNS` (default 25) exhausted without final answer | Build deterministic recap of tool calls + files, inject as user message asking to continue or wrap up, reset counter. |
1935
1971
  | Context fill | `lastInputTokens / ctxSize >= ARCO_LLAMACPP_COMPACT_THRESHOLD` (default 0.85), checked at clean turn boundaries only | Warn-only `system_notice` suggesting Handoff. The old in-turn compaction was removed 2026-09-25: it replaced a local message array (the next turn rebuilt the full transcript and overflowed again), streamed its summary into the persisted answer, and paid a generation every over-threshold turn. |
1936
1972
 
1937
- The three recovering paths share one budget (the context-fill row only warns and no longer spends it): `ARCO_LLAMACPP_MAX_RECOVERIES` (default 2 per operator turn). Once exhausted, the provider falls through to the normal failure path. Each recovery emits a `system_notice` so the operator sees what happened without having to dig through logs.
1973
+ The recovering paths share one budget (the context-fill row only warns and no longer spends it): `ARCO_LLAMACPP_MAX_RECOVERIES` (default 1 per operator turn). Once exhausted, the provider requests one final summary before terminating if that attempt also fails. Each recovery emits a `system_notice` so the operator sees what happened without having to dig through logs.
1938
1974
 
1939
1975
  The deterministic-summary path (used by stall + tool-cap recovery) walks the message stack and extracts: tools used + counts, files read, files written, last 10 Bash commands, last 3 substantial assistant text snippets. No LLM call required - works even when the model is unresponsive.
1940
1976
 
1941
- The compaction path (context fill) does require a model call. The model summarizes its own work with a structured prompt anchored on the operator's original ask. The summary becomes the new conversation seed; the original tool history is dropped.
1977
+ The context-fill path only warns and suggests Handoff. It does not make a compaction model call or replace the conversation history.
1942
1978
 
1943
1979
  ### Environment overrides
1944
1980
 
@@ -1948,12 +1984,13 @@ The compaction path (context fill) does require a model call. The model summariz
1948
1984
  | `ARCO_LLAMACPP_PORT` | `8923` | Port the manager spawns llama-server on |
1949
1985
  | `ARCO_LLAMACPP_HOST` | `127.0.0.1` | Bind host |
1950
1986
  | `ARCO_LLAMACPP_KEEPALIVE_MS` | `600000` (10 min) | Idle eviction window. `0` = never evict. |
1951
- | `ARCO_LLAMACPP_MAX_TOOL_TURNS` | `50` | Tool-loop iterations per operator turn before recovery (or failure if recovery exhausted) |
1952
- | `ARCO_LLAMACPP_AUTO_RECOVER` | `true` | Master kill-switch for auto-recovery system |
1953
- | `ARCO_LLAMACPP_REASONING_BUDGET` | `8000` | Reasoning tokens before runaway intervention |
1987
+ | `ARCO_LLAMACPP_MAX_TOOL_TURNS` | `25` | Tool-loop iterations per operator turn before recovery (or failure if recovery exhausted) |
1988
+ | `ARCO_LLAMACPP_AUTO_RECOVER` | `true` | Enable recovery attempts; `off` still enforces the time limits |
1989
+ | `ARCO_LLAMACPP_REASONING_BUDGET` | `4000` | Reasoning tokens before runaway intervention |
1954
1990
  | `ARCO_LLAMACPP_COMPACT_THRESHOLD` | `0.85` | Context fill fraction that raises the suggest-Handoff notice |
1955
- | `ARCO_LLAMACPP_MAX_RECOVERIES` | `2` | Total auto-recovery actions per operator turn |
1956
- | `ARCO_LLAMACPP_STALL_TIMEOUT_MS` | `90000` | SSE event timeout before stall-recovery fires |
1991
+ | `ARCO_LLAMACPP_MAX_RECOVERIES` | `1` | Total auto-recovery actions per operator turn |
1992
+ | `ARCO_LLAMACPP_STALL_TIMEOUT_MS` | `90000` | No stream data limit, enforced even with recovery off; range 10000-600000 ms |
1993
+ | `ARCO_LLAMACPP_TURN_BUDGET_MS` | `120000` | Wall-clock limit per reply, enforced even with recovery off; range 10000-1800000 ms |
1957
1994
  | `ARCO_LOOP_COACH_THRESHOLD` | `2` | Identical (tool, args) calls before loop coach fires (shared with Ollama) |
1958
1995
 
1959
1996
  ---
package/docs/SETTINGS.md CHANGED
@@ -76,7 +76,7 @@ Sections: 29.
76
76
  | `auto-handoff-defaults` | Agents and clusters | Auto-handoff defaults | Global, for new workflows | Off by default; hand off after N compactions (default 5, 1 to 20) and summarizer, with Quick or written modes |
77
77
  | `utility-agent` | Agents and clusters | Utility agent | Global | Provider and model for side jobs (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl); TEST, CLEAR; not chosen until saved. See [Utility agent](#utility-agent) |
78
78
  | `notification-channels` | Notifications | Desktop and phone notifications | Global (switches kept by the server; the desktop permission is per browser) | Events (finished, failed, waiting) by place (this computer, phone); browser permission and desktop TEST; SHOW IN BELL controls quiet notices for other tabs; ntfy server, topic with GENERATE, optional token, TEST; message text switch; cluster finished source. See [Notifications](NOTIFICATIONS.md) |
79
- | `board-auto-done` | Agents and clusters | Board auto-done | Global | Checkbox that marks review tasks done when the director signs off as met |
79
+ | `board-auto-done` | Agents and clusters | Board auto-done | Global | On by default; a new director met sign-off closes its task on the server |
80
80
  | `skills` | Agents and clusters | Skills | Global or project (the active tab's folder) | Global and project skill lists with extra files, import source and missing referenced skills; NEW, EDIT, delete, IMPORT, UPDATE, TURN OFF/ON, MOVE TO GLOBAL/PROJECT, DUPLICATE, SHARE WITH REPOSITORY |
81
81
  | `handoff-prompts` | Agents and clusters | Handoff prompts | Global or project (the active tab's folder) | Handoff prompt overrides per mode |
82
82
  | `voice-setup` | Voice | Voice setup | Global | Local speech status, install log, microphone test, test phrase, model notices |
@@ -187,8 +187,16 @@ Smart: Automatic (wake proposals may start a turn after server gates and
187
187
  limits; evaluator errors instead attempt ordinary pickup once through those same gates, never over a valid wait/ask or expired session). Smart modes need an evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata or DeepSeek through Xolotl). The same provider limits apply to the utility agent.
188
188
  Change **Armed session length** under **AUTO-PICKUP > LIMITS** before arming (5 to 240 minutes, default 30). The dialog shows minutes remaining; expiry turns Smart Off and leaves mail waiting. The chip hover and accessible description explain failures, fallback and expiry. Capped evaluator requests have 8192 tokens of reasoning headroom above the visible-answer limit.
189
189
 
190
- Limits, session expiry, TURN OFF, STOP holds and counters
191
- are described in the in-app manual section AUTO-PICKUP and Smart pickup and in
190
+ **PAUSE** beside TURN OFF stops automatic wakes, Smart evaluator requests and
191
+ busy reminders while keeping the mode, armed session and wake counts. The chip
192
+ says PAUSED. The Smart session clock freezes at the time left; hourly limits
193
+ keep real time. Mail stays waiting; NUDGE and running turns still work.
194
+ **RESUME** needs no confirmation and wakes each idle member with mail waiting
195
+ once through the ordinary pickup path (Observe-only still only records).
196
+ **RESET BUDGET** starts a fresh Rule-based arming budget and is separate from
197
+ RESUME; it is refused while paused. TURN OFF clears the pause and ends the
198
+ session. Limits, session expiry, STOP holds and counters are described in the
199
+ in-app manual section AUTO-PICKUP and Smart pickup and in
192
200
  [cluster protocol](PROTOCOL_CLUSTER.md). Evaluator request contents and adapter
193
201
  boundaries are in [SECURITY.md](../SECURITY.md#utility-agent-and-smart-auto-pickup-evaluator-requests).
194
202
 
@@ -208,6 +216,22 @@ ignored. `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` lifts the limit.
208
216
 
209
217
  ### Built-in skills
210
218
 
219
+ Settings > SKILLS offers PIN TO TAB for an Agent tab and PIN TO CLUSTER for all
220
+ members or one exact saved role, including a custom role. Project skills are
221
+ limited to their project; global skills can target any open tab or cluster.
222
+ The cluster SKILLS button beside EFFICIENCY lists sources, scope and availability
223
+ and provides UNPIN. New and replaced members inherit cluster pins automatically;
224
+ only the operator controls them. A member's FROM CLUSTER button opens the same
225
+ list without mixing inherited pins into its direct tab settings.
226
+
227
+ The effective union is limited to 12 unique skills and 64 KiB of body text.
228
+ An addition that exceeds it is refused. Duplicates apply once. Missing or off
229
+ skills are skipped but stay visible for removal; moved or deleted references
230
+ are not silently retargeted. Edits are read next turn, and a skill that grows
231
+ beyond the limit is reported in the conversation. Pinning a project skill
232
+ explicitly approves that text even with project trust off. Save an EDITABLE
233
+ COPY before pinning a built-in skill. No pins are added by default.
234
+
211
235
  Skill descriptions can be up to 300 characters. Settings > SKILLS lists the built-in skills with an OPERATOR or MODEL badge, TURN OFF and TURN ON. The composer SKILLS menu runs them or creates an EDITABLE COPY. A project or global skill with the same name replaces the built-in. Operator-run (slash): grill-me, grill-with-docs, wait-what, retro; Architecture review via `/improve-codebase-architecture`. Model-invoked (manifest / MODEL badge): proportionate-testing (Arco-owned), grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype, writing-for-agents. `proportionate-testing` controls how much to test; `tdd` controls how to write one test. Keep it on to ask agents for one test per real fault and operator approval before new suites, gates, tooling or CI checks. Built-in third-party skills and their license are listed in [THIRD_PARTY_NOTICES](../THIRD_PARTY_NOTICES).
212
236
 
213
237
  ## Save outcomes and rapid edits
@@ -59,17 +59,13 @@ Mutations are serialized **per-cwd** through a promise chain
59
59
  (`server/src/ws/taskLedgerHandlers.ts`) so two tabs sharing one cwd cannot
60
60
  clobber each other's load-mutate-save round.
61
61
 
62
- ## The operator-confirmed terminal-status invariant (load-bearing)
62
+ ## Terminal status and director sign-off
63
63
 
64
- There is **no worker/model code path that sets `status: 'done'` or
65
- `status: 'archived'`.** No auto-done. Worker/model completion reports may be
66
- recorded as reviewable evidence, but they are advisory and never derive a
67
- terminal status by themselves.
64
+ Direct worker status changes cannot set `done` or `archived`. A director's new `met` sign-off closes the task on the server when Board auto-done is on. Worker completion reports remain reviewable evidence and do not close tasks.
68
65
 
69
66
  - `newTask()` always produces `status: 'todo'`, there is no create-as-done
70
67
  path.
71
- - `applyUpdate()` is the only function that may set `done` / `archived`, and
72
- only when the operator's `task_ledger_update` patch carries that status.
68
+ - `applyUpdate()` sets terminal statuses when the operator requests them or when a director submits a `met` sign-off with Board auto-done enabled.
73
69
  - `rebuildFromEvents()` only replays recorded operator events; it never derives
74
70
  a status.
75
71
 
@@ -339,7 +335,7 @@ in the comment metadata, not in any separate field on the task itself.
339
335
 
340
336
  **Terminal-status gate.** Items targeting `done` or `archived` (in
341
337
  `task_create.status` or `task_update.patch.status`) are rejected before any
342
- mutation fires. The D1 no-auto-done invariant holds across the proposal path.
338
+ mutation fires. The proposal path does not mark tasks done.
343
339
 
344
340
  **Inert suggestions.** The `OrchestrationAssistModelRef` on a proposal may
345
341
  carry `provider` / `model` / `effort` suggestions. These are stored verbatim for
@@ -354,7 +350,7 @@ The D1 operator-confirmed terminal-status invariant is re-enforced here:
354
350
  `operator_gated` *before* it touches the ledger. Workers may set only
355
351
  `triage` / `todo` / `ready` / `in_progress` / `blocked` / `review`; they report
356
352
  completion through `cluster_task_complete` (which moves to `review`) or via
357
- `peer_send`, and the **operator** marks done from the LEDGER tab. This is not a global block, the operator's
353
+ `peer_send`. A director met sign-off can close the task if Board auto-done is enabled. The operator's
358
354
  `task_ledger_update` WS path still reaches `applyUpdate` with terminal statuses
359
355
  and succeeds. Asserted by `scripts/smoke/task-board.ts` steps (d) + (e).
360
356
  Dependency graph behavior is asserted by `scripts/smoke/task-dependencies.ts`;
@@ -383,11 +379,7 @@ the same `task_ledger_update` path as the LEDGER tab; workers cannot do this)
383
379
  and **RECHECK** (sends a templated note to the sign-off author). **ACCEPT ALL
384
380
  MET** accepts every visible review task whose sign-off reads met. Done tasks
385
381
  are shown by default and hidden when **SHOW DONE** is turned off (remembered); review tasks older than seven days fold behind
386
- an older-count row. A **NEED YOU** badge above the member cards counts review
387
- tasks with a director sign-off, tasks blocked on an operator decision, and
388
- members waiting on an answer; selecting an item opens the board or focuses that
389
- member. Settings > Agents and clusters **Board auto-done** (off by default)
390
- marks a met review task done without a separate ACCEPT click. The Board and Plan
382
+ an older-count row. The attention badge above the member cards counts tasks blocked on an operator decision and members with questions. Settings > Agents and clusters **Board auto-done** is on by default and closes a task on a new director met sign-off. Turn it off to accept tasks yourself; existing review tasks are not closed retroactively. The Board and Plan
391
383
  tabs each carry a one-line purpose label so the two stay distinct.
392
384
 
393
385
  **Release labels.** A task may carry an optional `release` label (for example `0.1.4`, at most 24 characters) set from the card drawer's RELEASE field or by the director through `cluster_task_create` / `cluster_task_update` (an empty string clears it). When any task is labeled, the board header offers a release filter (ALL RELEASES, each label, NO RELEASE); a chosen label shows how many tasks are in it, how many the operator accepted (done) and how many are left, and reads READY TO RELEASE when none are left. CATCH ME UP lists board changes in its range with their release label and adds a one-line movement summary; BRIEF on a cluster adds the board totals, release progress and the last day's movement. Boards with no labels, and ledgers written before labels existed, look and load as before.
@@ -483,6 +475,6 @@ reserved during claim persistence, then receives the validated task in its turn.
483
475
 
484
476
  ## Cluster attention and REVIEW drawers
485
477
 
486
- The cluster member-header badge names the kinds present: WAITING for a question that pauses an agent, BLOCKED for a task blocked on the operator, ASKED for a question the agent can continue past, and TO ACCEPT for a signed-off review task. Stopped kinds come first. Only WAITING and BLOCKED use warning colour and count in the compact `! n`; optional-only items show a plain muted number. The TO ACCEPT hover says that acceptance is optional and nothing waits on it. Existing task/member jump targets and the list remain.
478
+ The cluster member-header badge names WAITING, BLOCKED and ASKED. Only WAITING and BLOCKED use warning colour and count in the compact mark; signed-off tasks do not appear.
487
479
 
488
480
  A REVIEW drawer starts with the sign-off author, verdict and summary, or No sign-off yet. ACCEPT uses the same operator status update as its board card; RECHECK uses the existing request to the sign-off author and is unavailable without a suitable author/sender. Accepting is optional. Edit is below this summary and closed initially for REVIEW; every other status retains its existing layout. Overview, references, comments, recovery and run history remain available.
@@ -2,7 +2,7 @@
2
2
  "platform": "darwin",
3
3
  "arch": "arm64",
4
4
  "binding": "napi",
5
- "node": "24.22.3",
5
+ "node": "24.22.2",
6
6
  "dependencies": {
7
7
  "better-sqlite3": "13.0.3",
8
8
  "node-pty": "1.1.0"
@@ -1,5 +1,7 @@
1
1
  import { type ClusterEfficiencyLevel, type ClusterMessageGuard } from './protocol/clusters.js';
2
2
  export declare const isClusterDirector: (role?: string) => boolean;
3
+ export declare const AGENT_TURN_WAIT = "For standalone agents and non-Director cluster members: when a report depends on a build, test run or CI result, wait inside the turn in steps of at most 120 seconds each, repeated as many times as the job needs. Use a foreground command within the tool timeout or check a background run between steps. Between waits, check for new messages (peer_read in a cluster) and act on them. Report when the result is in. End the turn early only when blocked or when the job clearly cannot finish within a reasonable time; then state in one line what you are waiting on and that you need a nudge. When you report progress or answer a question while assigned work is unfinished, continue that work in the same turn; end the turn only when it is done or with one stated blocker.";
4
+ export declare function buildTurnWaitInstructions(role?: string): string;
3
5
  /** Explain why a role list cannot be used for a new cluster. */
4
6
  export declare function clusterDirectorProblem(roles: readonly (string | undefined)[]): string | null;
5
7
  export declare function buildClusterCoordination(level?: ClusterEfficiencyLevel, note?: string, role?: string): string;
@@ -1,6 +1,11 @@
1
1
  // Shared deterministic coordination wording for worker prompts and operator nudges.
2
2
  import { CLUSTER_EFFICIENCY_ADDENDUM_MAX } from './protocol/clusters.js';
3
3
  export const isClusterDirector = (role) => /^\s*(?:director|coordinator)\b/i.test(role ?? '');
4
+ const DIRECTOR_TURN_WAIT = 'Do not wait inside a turn for long-running checks: never sleep or poll for more than 60 seconds at a time. Start long runs in the background or hand them off, report what is running, and end the turn.';
5
+ export const AGENT_TURN_WAIT = 'For standalone agents and non-Director cluster members: when a report depends on a build, test run or CI result, wait inside the turn in steps of at most 120 seconds each, repeated as many times as the job needs. Use a foreground command within the tool timeout or check a background run between steps. Between waits, check for new messages (peer_read in a cluster) and act on them. Report when the result is in. End the turn early only when blocked or when the job clearly cannot finish within a reasonable time; then state in one line what you are waiting on and that you need a nudge. When you report progress or answer a question while assigned work is unfinished, continue that work in the same turn; end the turn only when it is done or with one stated blocker.';
6
+ export function buildTurnWaitInstructions(role) {
7
+ return isClusterDirector(role) ? DIRECTOR_TURN_WAIT : AGENT_TURN_WAIT;
8
+ }
4
9
  /** Explain why a role list cannot be used for a new cluster. */
5
10
  export function clusterDirectorProblem(roles) {
6
11
  return roles.filter(isClusterDirector).length > 1
@@ -12,7 +17,6 @@ export function buildClusterCoordination(level = 'thorough', note, role) {
12
17
  lines.push('Efficiency guides coordination and testing. Message guards, safety checks, operator-requested review and landing review stay unchanged.');
13
18
  lines.push('Before sending, check that the message gives the recipient something to act on or something it is waiting for. A closing note to a member whose work is finished (landed, thanks, nothing further) does neither; record it on the board instead.');
14
19
  lines.push("When a report states the sender's next step, no reply approves it; reply only to change that step, answer a question, or assign other work. Reports that continue on their own end with their next step.");
15
- lines.push('Do not wait inside a turn for long-running checks: never sleep or poll for more than 60 seconds at a time. Start long runs in the background or hand them off, report what is running, and end the turn.');
16
20
  if (isClusterDirector(role)) {
17
21
  lines.push('Assign complete outcomes with exact placement, affected surfaces, constraints and dependencies. Builders own routine compatible choices within that scope. Ask them to say what was done, what was run and what is not covered.');
18
22
  lines.push('Reconcile relevant tasks and new findings; read broader history when relevant or stale. Read the final diff and check that the project-required checks were run, then land accepted changes. Request more work only for concrete blockers or a changed relevant integration base.');
@@ -1,4 +1,5 @@
1
1
  import type { AutomaticMessageKind } from './chat.js';
2
+ import type { TranscriptWorkerPreviewMessage, TranscriptWorkerCreateMessage } from './transcriptWorker.js';
2
3
  import type { OperatorQuestionReplyMessage, OperatorQuestionDismissMessage } from './operatorQuestions.js';
3
4
  import type { VoiceToolResultMessage, ComputerContextControlMessage } from './voiceOperator.js';
4
5
  import type { HubLinkSetEnabledMessage } from './remoteManagement.js';
@@ -24,7 +25,7 @@ import type { TaskLedgerCreateMessage, TaskLedgerUpdateMessage, TaskLedgerDelete
24
25
  import type { McpRegistryCreateMessage, McpRegistryUpdateMessage, McpRegistryDeleteMessage, McpRegistryListMessage, McpWorkflowAllowMessage, McpProbeMessage } from './mcp.js';
25
26
  import type { HandoffRequestMessage, HandoffCancelMessage, HandoffLockClearMessage, SpawnFromHereRequestMessage } from './handoffs.js';
26
27
  import type { PlanAttachMessage, PlanDetachMessage, EnterPlanModeRequestMessage } from './plans.js';
27
- import type { ClusterSubscribeMessage, ClusterMemberRehydrateMessage, ClusterUnsubscribeMessage, ClusterCreateMessage, ClusterDeleteMessage, ClusterBroadcastMessage, ClusterDispatchOnceMessage, ClusterDispatchToggleMessage, ClusterDispatchSettingsUpdateMessage, ClusterTaskBoardAttachSetMessage, ClusterTaskBoardModeSetMessage, ClusterSwarmCreateMessage, OperatorPeerSendMessage, ClusterRenameMessage, ClusterMemberRemoveMessage, ClusterMemberAddMessage, ClusterCreateWithFreshWorkersMessage, ClusterCreateFromScratchMessage, ClusterAddFreshWorkersMessage, ClusterMemberReplaceMessage, ClusterPlanSetMessage, ClusterPlanAttachMessage, ClusterPlanClearMessage, ClusterMemberRoleSetMessage, ClusterMemberTierSetMessage, ClusterMemberFocusSetMessage, ClusterIdleNudgerToggleMessage, ClusterEfficiencySetMessage, ClusterAutoCompactionSetMessage, ClusterRemoteSetMessage, ClusterGatesSetMessage, ClusterMemberReorderMessage, ClusterProgressSetMessage, RenameWorkflowMessage, AttachCodebaseMemoryMessage, DetachCodebaseMemoryMessage, ClusterAutoTurnToggleMessage, DebugClusterAutoTurnInjectMessage, ClusterSnapshotSaveMessage, ClusterSnapshotListMessage, ClusterSnapshotRestoreMessage, ClusterSnapshotDeleteMessage } from './clusters.js';
28
+ import type { ClusterSubscribeMessage, ClusterMemberRehydrateMessage, ClusterUnsubscribeMessage, ClusterCreateMessage, ClusterDeleteMessage, ClusterBroadcastMessage, ClusterDispatchOnceMessage, ClusterDispatchToggleMessage, ClusterDispatchSettingsUpdateMessage, ClusterTaskBoardAttachSetMessage, ClusterTaskBoardModeSetMessage, ClusterSwarmCreateMessage, OperatorPeerSendMessage, ClusterRenameMessage, ClusterMemberRemoveMessage, ClusterMemberAddMessage, ClusterCreateWithFreshWorkersMessage, ClusterCreateFromScratchMessage, ClusterAddFreshWorkersMessage, ClusterMemberReplaceMessage, ClusterPlanSetMessage, ClusterPlanAttachMessage, ClusterPlanClearMessage, ClusterMemberRoleSetMessage, ClusterMemberTierSetMessage, ClusterMemberFocusSetMessage, ClusterIdleNudgerToggleMessage, ClusterEfficiencySetMessage, ClusterSkillsSetMessage, ClusterAutoCompactionSetMessage, ClusterRemoteSetMessage, ClusterGatesSetMessage, ClusterMemberReorderMessage, ClusterProgressSetMessage, RenameWorkflowMessage, AttachCodebaseMemoryMessage, DetachCodebaseMemoryMessage, ClusterAutoTurnToggleMessage, DebugClusterAutoTurnInjectMessage, ClusterSnapshotSaveMessage, ClusterSnapshotListMessage, ClusterSnapshotRestoreMessage, ClusterSnapshotDeleteMessage } from './clusters.js';
28
29
  export interface CreateWorkflowMessage {
29
30
  type: 'create_workflow';
30
31
  config: WorkflowConfig;
@@ -210,4 +211,4 @@ export interface DebugNativeAutoCompactProbeMessage {
210
211
  contextPercent: number;
211
212
  mode: 'off' | 'conservative' | 'aggressive';
212
213
  }
213
- export type ClientMessage = ComputerContextControlMessage | CreateWorkflowMessage | UserMessage | CancelMessage | CompactWorkflowMessage | FoldWorkflowMessage | SetToolPostureMessage | SetProjectTrustMessage | RemoveWorkflowMessage | RehydrateWorkflowsMessage | WorkspaceSyncMessage | UploadCompleteMessage | ReviewRequestMessage | CancelReviewMessage | ResearchRequestMessage | CancelResearchMessage | CompareRequestMessage | CompareVoteMessage | CompareSynthesizeMessage | CancelCompareMessage | DocEditRequestMessage | MdTuneupRequestMessage | MdTuneupAcceptMessage | MdTuneupCandidatesRequestMessage | MdTuneupUndoMessage | KnowledgeDistillRequestMessage | RecallSummaryRequestMessage | HandoffRequestMessage | HandoffCancelMessage | HandoffLockClearMessage | SpawnFromHereRequestMessage | UpdatePrimaryConfigMessage | CancelQueuedMessageMessage | LoadEarlierMessagesMessage | RecalibrateRequestMessage | PlanAttachMessage | PlanDetachMessage | SetPreviewPortMessage | ClearPreviewPortMessage | OperatorQuestionDismissMessage | OperatorQuestionReplyMessage | VoiceToolResultMessage | AskUserQuestionReplyMessage | GateReplyMessage | GateRevokeRequestMessage | EnterPlanModeRequestMessage | CreateLabelRequestMessage | RevertToPointRequestMessage | ClusterSubscribeMessage | ClusterMemberRehydrateMessage | ClusterUnsubscribeMessage | ClusterCreateMessage | ClusterDeleteMessage | ClusterBroadcastMessage | ClusterDispatchOnceMessage | ClusterDispatchToggleMessage | ClusterDispatchSettingsUpdateMessage | ClusterTaskBoardAttachSetMessage | ClusterTaskBoardModeSetMessage | ClusterSwarmCreateMessage | ClusterOrchestrationAssistRequestMessage | ClusterOrchestrationProposalListMessage | ClusterOrchestrationProposalRejectMessage | ClusterOrchestrationProposalAcceptMessage | ClusterOrchestrationProposalApplyMessage | OperatorPeerSendMessage | ClusterRenameMessage | ClusterMemberRemoveMessage | ClusterMemberAddMessage | ClusterCreateWithFreshWorkersMessage | ClusterCreateFromScratchMessage | ClusterAddFreshWorkersMessage | ClusterMemberReplaceMessage | ClusterPlanSetMessage | ClusterPlanAttachMessage | ClusterPlanClearMessage | ClusterMemberRoleSetMessage | ClusterMemberTierSetMessage | ClusterMemberFocusSetMessage | ClusterIdleNudgerToggleMessage | ClusterAutoCompactionSetMessage | ClusterEfficiencySetMessage | ClusterRemoteSetMessage | ClusterGatesSetMessage | ClusterMemberReorderMessage | ClusterProgressSetMessage | ClusterSnapshotSaveMessage | ClusterSnapshotListMessage | ClusterSnapshotRestoreMessage | ClusterSnapshotDeleteMessage | RenameWorkflowMessage | AttachCodebaseMemoryMessage | DetachCodebaseMemoryMessage | DebugNativePlanSetMessage | DebugNativeAutoCompactProbeMessage | ClusterAutoTurnToggleMessage | ClusterAutoPickupSetMessage | DebugClusterAutoTurnInjectMessage | RevertToCheckpointMessage | LiveChangesSubscribeMessage | LiveChangesUnsubscribeMessage | TerminalOpenMessage | TerminalKillMessage | TerminalCommandMessage | TerminalListMessage | TaskLedgerCreateMessage | TaskLedgerUpdateMessage | TaskLedgerDeleteMessage | TaskLedgerListMessage | TaskRunRecoverMessage | TaskWorktreeCreateMessage | TaskWorktreeRemoveMessage | McpRegistryCreateMessage | McpRegistryUpdateMessage | McpRegistryDeleteMessage | McpRegistryListMessage | McpWorkflowAllowMessage | McpProbeMessage | GenesisSeedUpdateMessage | GenesisScaffoldMessage | GenesisCreativeArmMessage | GenesisAssistRequestMessage | PreviewCaptureRequestMessage | BakeoffListMessage | BakeoffStartMessage | BakeoffPromoteMessage | BakeoffCleanupMessage | SetNotificationMutesMessage | HubLinkSetEnabledMessage;
214
+ export type ClientMessage = TranscriptWorkerPreviewMessage | TranscriptWorkerCreateMessage | ComputerContextControlMessage | CreateWorkflowMessage | UserMessage | CancelMessage | CompactWorkflowMessage | FoldWorkflowMessage | SetToolPostureMessage | SetProjectTrustMessage | RemoveWorkflowMessage | RehydrateWorkflowsMessage | WorkspaceSyncMessage | UploadCompleteMessage | ReviewRequestMessage | CancelReviewMessage | ResearchRequestMessage | CancelResearchMessage | CompareRequestMessage | CompareVoteMessage | CompareSynthesizeMessage | CancelCompareMessage | DocEditRequestMessage | MdTuneupRequestMessage | MdTuneupAcceptMessage | MdTuneupCandidatesRequestMessage | MdTuneupUndoMessage | KnowledgeDistillRequestMessage | RecallSummaryRequestMessage | HandoffRequestMessage | HandoffCancelMessage | HandoffLockClearMessage | SpawnFromHereRequestMessage | UpdatePrimaryConfigMessage | CancelQueuedMessageMessage | LoadEarlierMessagesMessage | RecalibrateRequestMessage | PlanAttachMessage | PlanDetachMessage | SetPreviewPortMessage | ClearPreviewPortMessage | OperatorQuestionDismissMessage | OperatorQuestionReplyMessage | VoiceToolResultMessage | AskUserQuestionReplyMessage | GateReplyMessage | GateRevokeRequestMessage | EnterPlanModeRequestMessage | CreateLabelRequestMessage | RevertToPointRequestMessage | ClusterSubscribeMessage | ClusterMemberRehydrateMessage | ClusterUnsubscribeMessage | ClusterCreateMessage | ClusterDeleteMessage | ClusterBroadcastMessage | ClusterDispatchOnceMessage | ClusterDispatchToggleMessage | ClusterDispatchSettingsUpdateMessage | ClusterTaskBoardAttachSetMessage | ClusterTaskBoardModeSetMessage | ClusterSwarmCreateMessage | ClusterOrchestrationAssistRequestMessage | ClusterOrchestrationProposalListMessage | ClusterOrchestrationProposalRejectMessage | ClusterOrchestrationProposalAcceptMessage | ClusterOrchestrationProposalApplyMessage | OperatorPeerSendMessage | ClusterRenameMessage | ClusterMemberRemoveMessage | ClusterMemberAddMessage | ClusterCreateWithFreshWorkersMessage | ClusterCreateFromScratchMessage | ClusterAddFreshWorkersMessage | ClusterMemberReplaceMessage | ClusterPlanSetMessage | ClusterPlanAttachMessage | ClusterPlanClearMessage | ClusterMemberRoleSetMessage | ClusterMemberTierSetMessage | ClusterMemberFocusSetMessage | ClusterIdleNudgerToggleMessage | ClusterAutoCompactionSetMessage | ClusterEfficiencySetMessage | ClusterSkillsSetMessage | ClusterRemoteSetMessage | ClusterGatesSetMessage | ClusterMemberReorderMessage | ClusterProgressSetMessage | ClusterSnapshotSaveMessage | ClusterSnapshotListMessage | ClusterSnapshotRestoreMessage | ClusterSnapshotDeleteMessage | RenameWorkflowMessage | AttachCodebaseMemoryMessage | DetachCodebaseMemoryMessage | DebugNativePlanSetMessage | DebugNativeAutoCompactProbeMessage | ClusterAutoTurnToggleMessage | ClusterAutoPickupSetMessage | DebugClusterAutoTurnInjectMessage | RevertToCheckpointMessage | LiveChangesSubscribeMessage | LiveChangesUnsubscribeMessage | TerminalOpenMessage | TerminalKillMessage | TerminalCommandMessage | TerminalListMessage | TaskLedgerCreateMessage | TaskLedgerUpdateMessage | TaskLedgerDeleteMessage | TaskLedgerListMessage | TaskRunRecoverMessage | TaskWorktreeCreateMessage | TaskWorktreeRemoveMessage | McpRegistryCreateMessage | McpRegistryUpdateMessage | McpRegistryDeleteMessage | McpRegistryListMessage | McpWorkflowAllowMessage | McpProbeMessage | GenesisSeedUpdateMessage | GenesisScaffoldMessage | GenesisCreativeArmMessage | GenesisAssistRequestMessage | PreviewCaptureRequestMessage | BakeoffListMessage | BakeoffStartMessage | BakeoffPromoteMessage | BakeoffCleanupMessage | SetNotificationMutesMessage | HubLinkSetEnabledMessage;
@@ -1,4 +1,7 @@
1
- import type { AutoCompactionPolicy } from './workflows.js';
1
+ import type { ArcoSkillRef, AutoCompactionPolicy } from './workflows.js';
2
+ export interface ClusterSkillPin extends ArcoSkillRef {
3
+ role?: string;
4
+ }
2
5
  export type ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor';
3
6
  export declare const CLUSTER_MEMBER_PROVIDERS: readonly ["claude", "codex", "ollama", "llamacpp", "cursor"];
4
7
  export declare function isClusterMemberProvider(v: unknown): v is ClusterMemberProvider;
@@ -85,6 +88,7 @@ export declare const CLUSTER_PROGRESS_LABELS: Record<ClusterProgressMode, {
85
88
  blurb: string;
86
89
  }>;
87
90
  export interface ClusterStatePayload {
91
+ skillPins?: ClusterSkillPin[];
88
92
  autoCompaction?: AutoCompactionPolicy;
89
93
  clusterId: string;
90
94
  cwd: string;
@@ -313,6 +317,9 @@ export interface ClusterMemberReplaceMessage extends ClusterMemberTuning {
313
317
  name?: string;
314
318
  role?: string;
315
319
  includeHistory?: boolean;
320
+ historyMode?: 'none' | 'recent' | 'full';
321
+ historyTurns?: number;
322
+ historyToken?: string;
316
323
  transferActiveTasks?: boolean;
317
324
  }
318
325
  export interface ClusterPlanSetMessage {
@@ -541,6 +548,11 @@ export interface ClusterEfficiencySetMessage {
541
548
  addendum?: string;
542
549
  messageGuard?: ClusterMessageGuard;
543
550
  }
551
+ export interface ClusterSkillsSetMessage {
552
+ type: 'cluster_skills_set';
553
+ clusterId: string;
554
+ pins: ClusterSkillPin[];
555
+ }
544
556
  export interface ClusterMemberReorderMessage {
545
557
  type: 'cluster_member_reorder';
546
558
  clusterId: string;
@@ -43,6 +43,7 @@ export * from './notifications.js';
43
43
  export * from './orchestrationAssist.js';
44
44
  export * from './clientMessages.js';
45
45
  export * from './serverMessages.js';
46
+ export * from './transcriptWorker.js';
46
47
  export * from './ollamaThinking.js';
47
48
  export * from './localModels.js';
48
49
  export * from './operatorQuestions.js';
@@ -47,6 +47,7 @@ export * from './notifications.js';
47
47
  export * from './orchestrationAssist.js';
48
48
  export * from './clientMessages.js';
49
49
  export * from './serverMessages.js';
50
+ export * from './transcriptWorker.js';
50
51
  export * from './ollamaThinking.js';
51
52
  export * from './localModels.js';
52
53
  export * from './operatorQuestions.js';
@@ -1,7 +1,7 @@
1
1
  import type { EffortLevel, ModelName } from './providers.js';
2
2
  export declare const CLAUDE_MODELS: readonly ["haiku", "sonnet", "opus", "claude-fable-5-2", "claude-fable-5-1", "claude-fable-5", "claude-sonnet-5", "claude-opus-5-5", "claude-opus-5", "claude-opus-4-8", "claude-opus-4-7", "claude-opus-4-6", "opus[1m]"];
3
3
  export declare const CLAUDE_MODEL_LABELS: Record<string, string>;
4
- export declare const CODEX_MODELS: readonly ["gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna", "gpt-5.5", "gpt-5.3-codex", "gpt-5.2-codex", "gpt-5.1-codex-max", "gpt-5.4-mini", "gpt-5.2", "gpt-5.1-codex-mini"];
4
+ export declare const CODEX_MODELS: readonly ["gpt-6.2-sol", "gpt-6.2-astra", "gpt-6-astra", "gpt-6.1-sol", "gpt-6-sol", "gpt-6-luna", "gpt-5.5", "gpt-5.3-codex", "gpt-5.2-codex", "gpt-5.1-codex-max", "gpt-5.4-mini", "gpt-5.2", "gpt-5.1-codex-mini"];
5
5
  export interface CodexModelInfo {
6
6
  id: string;
7
7
  label: string;
@@ -13,8 +13,8 @@ export interface CodexModelInfo {
13
13
  supportedEfforts?: EffortLevel[];
14
14
  }
15
15
  export declare const CODEX_MODEL_INFO: Record<string, CodexModelInfo>;
16
- export declare const CODEX_PICKER_MODELS: ("gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini")[];
17
- export declare const DEFAULT_CODEX_MODEL: "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini";
16
+ export declare const CODEX_PICKER_MODELS: ("gpt-6.2-sol" | "gpt-6.2-astra" | "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini")[];
17
+ export declare const DEFAULT_CODEX_MODEL: "gpt-6.2-sol" | "gpt-6.2-astra" | "gpt-6-astra" | "gpt-6.1-sol" | "gpt-6-sol" | "gpt-6-luna" | "gpt-5.5" | "gpt-5.3-codex" | "gpt-5.2-codex" | "gpt-5.1-codex-max" | "gpt-5.4-mini" | "gpt-5.2" | "gpt-5.1-codex-mini";
18
18
  export interface ClaudeCatalogModel {
19
19
  id: string;
20
20
  displayName: string;
@@ -169,6 +169,7 @@ export interface Capabilities {
169
169
  latestVersions?: {
170
170
  claude?: string;
171
171
  codex?: string;
172
+ cursor?: string;
172
173
  ollama?: string;
173
174
  strata?: string;
174
175
  xolotl?: string;
@@ -37,6 +37,8 @@ export const CLAUDE_MODEL_LABELS = {
37
37
  // re-pin the naming to a single generation, and don't assume a single-dash
38
38
  // `gpt-<major>-<name>` shape: 6.1 brought the dotted minor back.
39
39
  export const CODEX_MODELS = [
40
+ 'gpt-6.2-sol',
41
+ 'gpt-6.2-astra',
40
42
  'gpt-6-astra',
41
43
  'gpt-6.1-sol',
42
44
  'gpt-6-sol',
@@ -50,8 +52,31 @@ export const CODEX_MODELS = [
50
52
  'gpt-5.1-codex-mini',
51
53
  ];
52
54
  export const CODEX_MODEL_INFO = {
55
+ // GPT-6.2 cold-catalog fallback. The live catalog is authoritative for
56
+ // availability, default choice, efforts and images. Both entries use the
57
+ // observed 872K catalog maximum with its 95% effective margin; the 128K
58
+ // output fallback is retained, not a newly advertised provider output cap.
59
+ 'gpt-6.2-sol': {
60
+ id: 'gpt-6.2-sol',
61
+ label: '6.2 SOL',
62
+ picker: true,
63
+ defaultForCodex: true,
64
+ publishedContextWindow: 872_000,
65
+ publishedMaxOutput: 128_000,
66
+ fallbackOperationalWindow: 828_400,
67
+ supportedEfforts: ['low', 'medium', 'high', 'xhigh', 'max', 'ultra'],
68
+ },
69
+ 'gpt-6.2-astra': {
70
+ id: 'gpt-6.2-astra',
71
+ label: '6.2 ASTRA',
72
+ picker: true,
73
+ publishedContextWindow: 872_000,
74
+ publishedMaxOutput: 128_000,
75
+ fallbackOperationalWindow: 828_400,
76
+ supportedEfforts: ['low', 'medium', 'high', 'xhigh', 'max', 'ultra'],
77
+ },
53
78
  // GPT-6 Astra (2026-09-03). Codex's own catalog reports isDefault:true for it,
54
- // so it is Arco's default too. Two things here are unlike every 5.x entry:
79
+ // so it was Arco's default then. Two things here are unlike every 5.x entry:
55
80
  // Arco asks for the live catalog maximum by default. This fallback is the
56
81
  // current 872K max after Codex's 95% effective-window margin. Its effort
57
82
  // surface runs all the way to 'ultra'.
@@ -59,7 +84,6 @@ export const CODEX_MODEL_INFO = {
59
84
  id: 'gpt-6-astra',
60
85
  label: '6 ASTRA',
61
86
  picker: true,
62
- defaultForCodex: true,
63
87
  publishedContextWindow: 1_050_000,
64
88
  publishedMaxOutput: 128_000,
65
89
  fallbackOperationalWindow: 828_400,
@@ -1,4 +1,5 @@
1
1
  import type { OutputSavedMessage } from '../outputs.js';
2
+ import type { TranscriptWorkerResultMessage } from './transcriptWorker.js';
2
3
  import type { OperatorQuestionMessage, OperatorQuestionReplyResultMessage, OperatorQuestionDismissResultMessage, OperatorQuestionState } from './operatorQuestions.js';
3
4
  import type { VoiceToolCallMessage, ComputerContextUpdatedMessage, ComputerActivityChangedMessage } from './voiceOperator.js';
4
5
  import type { HubLinkStatusMessage } from './remoteManagement.js';
@@ -824,7 +825,7 @@ export interface TurnMessagesDeliveredMessage {
824
825
  workflowId: string;
825
826
  clientMessageIds: string[];
826
827
  }
827
- export type ServerMessage = StorageWarningMessage | TurnMessagesDeliveredMessage | AppUpdateAvailableMessage | ComputerActivityChangedMessage | ComputerContextUpdatedMessage | ConnectedMessage | WorkflowCreatedMessage | WorkspaceSnapshotMessage | WorkflowConfigSyncedMessage | PrimaryTextMessage | PrimaryCompleteMessage | PrimaryTurnTokenUsageMessage | HookRewroteInputMessage | ToolGateTriggeredMessage | GateRequiredMessage | GateResolvedMessage | GateStandingMessage | ToolLoopWarningMessage | WorkerStuckMessage | ToolPostureSetMessage | GoalSetMessage | GoalRunStateMessage | PinnedSkillsSetMessage | ProjectTrustPromptMessage | ProjectTrustSetMessage | FileMutationQueuedMessage | ModelResolvedMessage | PrimaryRefusalMessage | CtxActionMessage | NativeCompactingMessage | ContextFoldedMessage | NativeCompactedMessage | PrimaryToolCounterMessage | SandboxChunkAddedMessage | SandboxDbClearedMessage | ToolFilteredMessage | ToolEvictedMessage | PeerMessageSentMessage | PeerMessageReceivedMessage | PeerSendRejectedMessage | PrimaryModelMessage | PrimaryThinkingMessage | PrimaryToolUseMessage | PrimaryTurnStartedMessage | PrimaryTurnEndedMessage | WorkerSpawnedMessage | WorkerTextMessage | WorkerThinkingMessage | WorkerToolUseMessage | WorkerFileContextMessage | FileContextMessage | WorkerCompleteMessage | WorkerActivityMessage | WorkerModelMessage | WorkerErrorMessage | FileUploadedMessage | CapabilitiesUpdatedMessage | CapabilitiesChangedMessage | SettingsUpdatedMessage | ConversationChangedMessage | PrimaryArtifactMessage | QuotaStatusMessage | TurnCancelledMessage | WorkflowStateSnapshotMessage | ProviderConversationStateMessage | WorkflowSessionMetadataMessage | ReplayBatchMessage | ShutdownMessage | SystemErrorMessage | UserMessageEchoMessage | ReviewStartedMessage | ReviewArtifactReadyMessage | ResearchStartedMessage | ResearchProgressMessage | ResearchCompleteMessage | CompareStartedMessage | CompareLegDeltaMessage | CompareLegCompleteMessage | CompareCompleteMessage | CompareVoteRecordedMessage | ProviderFellBackMessage | DiagnosticsMessage | DocEditStartedMessage | DocEditProposedMessage | MdTuneupStartedMessage | MdTuneupProposedMessage | MdTuneupAppliedMessage | MdTuneupCandidatesMessage | MdTuneupUndoneMessage | KnowledgeDistillStartedMessage | KnowledgeDistillProposedMessage | RecallSummaryReadyMessage | HandoffStartedMessage | HandoffArtifactReadyMessage | HandoffCompleteMessage | HandoffLockSnapshotMessage | SpawnFromHereCompleteMessage | CheckpointCreatedMessage | TurnChangesMessage | CheckpointRevertedMessage | LiveChangesSnapshotMessage | GitOpResultMessage | BakeoffListResultMessage | BakeoffStateMessage | BakeoffErrorMessage | BakeoffAttemptsRemovedMessage | OutputSavedMessage | MediaOpResultMessage | MediaStemsResultMessage | SessionEntryMessage | ContextUsageMessage | UltracodeFleetProgressMessage | ContextBudgetMessage | OperatorQuestionMessage | OperatorQuestionDismissResultMessage | OperatorQuestionReplyResultMessage | VoiceToolCallMessage | SystemNoticeMessage | ClaudeNativeQuestionSettledMessage | QueuedMessageCancelledMessage | QueuedMessageEditResultMessage | QueuedMessagesDrainedMessage | PrimaryActivityMessage | SessionHistoryStatusMessage | PlanAttachedMessage | PlanDetachedMessage | CodexTokenSnapshotMessage | PreviewSetMessage | PreviewClearedMessage | PreviewHistoryMessage | OperatorLabelMessage | LeafMoveMessage | QueueUpdateMessage | TodosUpdatedMessage | PlanSetMessage | PlanExitedMessage | PlanCandidateReadyMessage | TaskStartedMessage | TaskStatusMessage | BranchSummaryMessage | ClusterStateMessage | ClusterNotFoundMessage | ClusterCreatedMessage | ClusterCreationFinishedMessage | ClusterDeletedMessage | ClusterMemberAddedMessage | ClusterMemberRemovedMessage | ClusterMemberReplacedMessage | ClusterBroadcastDispatchedMessage | ClusterDispatchResultMessage | ClusterSwarmCreatedMessage | ClusterOrchestrationAssistStartedMessage | ClusterOrchestrationProposalStartedMessage | ClusterOrchestrationProposalSnapshotMessage | ClusterOrchestrationProposalProposedMessage | ClusterOrchestrationProposalRejectedMessage | ClusterOrchestrationProposalAppliedMessage | ClusterPlanChangedMessage | ClusterMemberNudgedMessage | WorkflowRenamedMessage | WorkflowRenameResultMessage | CodebaseMemoryStateMessage | ClusterAutoTurnFiredMessage | ClusterSnapshotListResultMessage | ClusterSnapshotSavedMessage | ClusterSnapshotConflictMessage | ClusterSnapshotErrorMessage | TerminalOpenedMessage | TerminalKilledMessage | TerminalCommandLoggedMessage | TerminalSessionsMessage | TaskLedgerSnapshotMessage | TaskLedgerEventMessage | McpRegistrySnapshotMessage | McpProbeResultMessage | McpAllowSnapshotMessage | McpMalwareWarningMessage | GenesisSeedUpdatedMessage | WorkflowCwdBoundMessage | GenesisScaffoldedMessage | GenesisPlanSavedMessage | GenesisCreativeArmedMessage | GenesisAssistStartedMessage | GenesisAssistProposedMessage | PreviewCaptureStartedMessage | PreviewCaptureReadyMessage | WorkbenchNoticeMessage | NotificationMutesMessage | AttentionEventMessage | AttentionQuestionClosedMessage | HubLinkStatusMessage;
828
+ export type ServerMessage = TranscriptWorkerResultMessage | StorageWarningMessage | TurnMessagesDeliveredMessage | AppUpdateAvailableMessage | ComputerActivityChangedMessage | ComputerContextUpdatedMessage | ConnectedMessage | WorkflowCreatedMessage | WorkspaceSnapshotMessage | WorkflowConfigSyncedMessage | PrimaryTextMessage | PrimaryCompleteMessage | PrimaryTurnTokenUsageMessage | HookRewroteInputMessage | ToolGateTriggeredMessage | GateRequiredMessage | GateResolvedMessage | GateStandingMessage | ToolLoopWarningMessage | WorkerStuckMessage | ToolPostureSetMessage | GoalSetMessage | GoalRunStateMessage | PinnedSkillsSetMessage | ProjectTrustPromptMessage | ProjectTrustSetMessage | FileMutationQueuedMessage | ModelResolvedMessage | PrimaryRefusalMessage | CtxActionMessage | NativeCompactingMessage | ContextFoldedMessage | NativeCompactedMessage | PrimaryToolCounterMessage | SandboxChunkAddedMessage | SandboxDbClearedMessage | ToolFilteredMessage | ToolEvictedMessage | PeerMessageSentMessage | PeerMessageReceivedMessage | PeerSendRejectedMessage | PrimaryModelMessage | PrimaryThinkingMessage | PrimaryToolUseMessage | PrimaryTurnStartedMessage | PrimaryTurnEndedMessage | WorkerSpawnedMessage | WorkerTextMessage | WorkerThinkingMessage | WorkerToolUseMessage | WorkerFileContextMessage | FileContextMessage | WorkerCompleteMessage | WorkerActivityMessage | WorkerModelMessage | WorkerErrorMessage | FileUploadedMessage | CapabilitiesUpdatedMessage | CapabilitiesChangedMessage | SettingsUpdatedMessage | ConversationChangedMessage | PrimaryArtifactMessage | QuotaStatusMessage | TurnCancelledMessage | WorkflowStateSnapshotMessage | ProviderConversationStateMessage | WorkflowSessionMetadataMessage | ReplayBatchMessage | ShutdownMessage | SystemErrorMessage | UserMessageEchoMessage | ReviewStartedMessage | ReviewArtifactReadyMessage | ResearchStartedMessage | ResearchProgressMessage | ResearchCompleteMessage | CompareStartedMessage | CompareLegDeltaMessage | CompareLegCompleteMessage | CompareCompleteMessage | CompareVoteRecordedMessage | ProviderFellBackMessage | DiagnosticsMessage | DocEditStartedMessage | DocEditProposedMessage | MdTuneupStartedMessage | MdTuneupProposedMessage | MdTuneupAppliedMessage | MdTuneupCandidatesMessage | MdTuneupUndoneMessage | KnowledgeDistillStartedMessage | KnowledgeDistillProposedMessage | RecallSummaryReadyMessage | HandoffStartedMessage | HandoffArtifactReadyMessage | HandoffCompleteMessage | HandoffLockSnapshotMessage | SpawnFromHereCompleteMessage | CheckpointCreatedMessage | TurnChangesMessage | CheckpointRevertedMessage | LiveChangesSnapshotMessage | GitOpResultMessage | BakeoffListResultMessage | BakeoffStateMessage | BakeoffErrorMessage | BakeoffAttemptsRemovedMessage | OutputSavedMessage | MediaOpResultMessage | MediaStemsResultMessage | SessionEntryMessage | ContextUsageMessage | UltracodeFleetProgressMessage | ContextBudgetMessage | OperatorQuestionMessage | OperatorQuestionDismissResultMessage | OperatorQuestionReplyResultMessage | VoiceToolCallMessage | SystemNoticeMessage | ClaudeNativeQuestionSettledMessage | QueuedMessageCancelledMessage | QueuedMessageEditResultMessage | QueuedMessagesDrainedMessage | PrimaryActivityMessage | SessionHistoryStatusMessage | PlanAttachedMessage | PlanDetachedMessage | CodexTokenSnapshotMessage | PreviewSetMessage | PreviewClearedMessage | PreviewHistoryMessage | OperatorLabelMessage | LeafMoveMessage | QueueUpdateMessage | TodosUpdatedMessage | PlanSetMessage | PlanExitedMessage | PlanCandidateReadyMessage | TaskStartedMessage | TaskStatusMessage | BranchSummaryMessage | ClusterStateMessage | ClusterNotFoundMessage | ClusterCreatedMessage | ClusterCreationFinishedMessage | ClusterDeletedMessage | ClusterMemberAddedMessage | ClusterMemberRemovedMessage | ClusterMemberReplacedMessage | ClusterBroadcastDispatchedMessage | ClusterDispatchResultMessage | ClusterSwarmCreatedMessage | ClusterOrchestrationAssistStartedMessage | ClusterOrchestrationProposalStartedMessage | ClusterOrchestrationProposalSnapshotMessage | ClusterOrchestrationProposalProposedMessage | ClusterOrchestrationProposalRejectedMessage | ClusterOrchestrationProposalAppliedMessage | ClusterPlanChangedMessage | ClusterMemberNudgedMessage | WorkflowRenamedMessage | WorkflowRenameResultMessage | CodebaseMemoryStateMessage | ClusterAutoTurnFiredMessage | ClusterSnapshotListResultMessage | ClusterSnapshotSavedMessage | ClusterSnapshotConflictMessage | ClusterSnapshotErrorMessage | TerminalOpenedMessage | TerminalKilledMessage | TerminalCommandLoggedMessage | TerminalSessionsMessage | TaskLedgerSnapshotMessage | TaskLedgerEventMessage | McpRegistrySnapshotMessage | McpProbeResultMessage | McpAllowSnapshotMessage | McpMalwareWarningMessage | GenesisSeedUpdatedMessage | WorkflowCwdBoundMessage | GenesisScaffoldedMessage | GenesisPlanSavedMessage | GenesisCreativeArmedMessage | GenesisAssistStartedMessage | GenesisAssistProposedMessage | PreviewCaptureStartedMessage | PreviewCaptureReadyMessage | WorkbenchNoticeMessage | NotificationMutesMessage | AttentionEventMessage | AttentionQuestionClosedMessage | HubLinkStatusMessage;
828
829
  export type WorkflowEvent<M extends ServerMessage = ServerMessage> = M & {
829
830
  seq: number;
830
831
  parentEventSeq?: number;
@@ -33,6 +33,10 @@ export interface LedgerTask {
33
33
  worktreeRequired?: boolean;
34
34
  release?: string;
35
35
  signoff?: TaskSignoff;
36
+ directorClosure?: {
37
+ byWorkflowId: string;
38
+ at: number;
39
+ };
36
40
  }
37
41
  export type TaskSignoffState = 'met' | 'not_met' | 'partial';
38
42
  export interface TaskSignoff {
@@ -0,0 +1,47 @@
1
+ import type { EffortLevel, ProviderName } from './providers.js';
2
+ export interface TranscriptWorkerPreview {
3
+ token: string;
4
+ seed: string;
5
+ bytes: number;
6
+ availableTurns: number;
7
+ selectedTurns: number;
8
+ partialIncluded: boolean;
9
+ cutoffSeq: number;
10
+ historyMode?: 'recent' | 'full';
11
+ requestedTurns?: number;
12
+ truncated?: boolean;
13
+ historyFallback?: boolean;
14
+ }
15
+ export interface TranscriptWorkerPreviewMessage {
16
+ type: 'transcript_worker_preview';
17
+ requestId: string;
18
+ workflowId: string;
19
+ turns: number;
20
+ includePartial: boolean;
21
+ preface: string;
22
+ replacement?: {
23
+ clusterId: string;
24
+ mode: 'recent' | 'full';
25
+ };
26
+ }
27
+ export interface TranscriptWorkerCreateMessage {
28
+ type: 'transcript_worker_create';
29
+ requestId: string;
30
+ token: string;
31
+ destination: {
32
+ workingDirectory: string;
33
+ name: string;
34
+ provider: ProviderName;
35
+ model: string;
36
+ effort: EffortLevel;
37
+ providerAccountRef?: string;
38
+ skipPermissions?: boolean;
39
+ };
40
+ }
41
+ export interface TranscriptWorkerResultMessage {
42
+ type: 'transcript_worker_result';
43
+ requestId: string;
44
+ preview?: TranscriptWorkerPreview;
45
+ newWorkflowId?: string;
46
+ error?: string;
47
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=transcriptWorker.js.map
@@ -1,3 +1,4 @@
1
1
  export declare function strataEngineReleaseVersion(feed: unknown, release: unknown): string | undefined;
2
2
  export declare function llamacppBuild(version: string): number | undefined;
3
3
  export declare function compareLlamacppBuild(a: string, b: string): number | undefined;
4
+ export declare function compareCursorVersions(a: string, b: string): number | undefined;