arco-workbench 0.1.6 → 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.
- package/CONTRIBUTING.md +52 -12
- package/README.md +20 -13
- package/client/dist/assets/{PhosphorBackdrop-BR-TgB5x.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DgcFj6JN.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
- package/client/dist/assets/{XtermView-CflVBQgC.js → XtermView-BGFujb1e.js} +1 -1
- package/client/dist/assets/{galleryEditor-BB-emfmi.js → galleryEditor-D951A2sE.js} +1 -1
- package/client/dist/assets/{index-B_EqHDz3.js → index-CsVy3eZm.js} +248 -248
- package/client/dist/index.html +1 -1
- package/client/src/buildCheck.ts +3 -1
- package/client/src/components/AppUpdateNotice.tsx +2 -1
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +24 -12
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
- package/client/src/components/ClusterRightPanel/index.tsx +6 -1
- package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
- package/client/src/components/HeaderVersionBox.tsx +7 -4
- package/client/src/components/NeedsYouBadge.tsx +3 -3
- package/client/src/components/ProviderReleasesModal.tsx +8 -4
- package/client/src/components/ProvidersPopover.tsx +28 -23
- package/client/src/components/SettingsPanel.tsx +2 -2
- package/client/src/components/SkillsSettings.tsx +5 -0
- package/client/src/components/TabBar.tsx +91 -9
- package/client/src/components/TerminalInput.tsx +12 -10
- package/client/src/components/TranscriptSendDialog.tsx +12 -8
- package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
- package/client/src/components/UpdateAction.tsx +18 -4
- package/client/src/components/UpdateResultNotice.tsx +3 -1
- package/client/src/components/clusterNeedsYou.ts +11 -18
- package/client/src/help/content/cluster.tsx +54 -22
- package/client/src/help/content/composer.tsx +22 -0
- package/client/src/help/content/header.tsx +19 -1
- package/client/src/help/content/misc.tsx +8 -0
- package/client/src/help/content/rightPanel.tsx +1 -1
- package/client/src/help/content/settings.tsx +19 -5
- package/client/src/help/content/tabbar.tsx +5 -0
- package/client/src/help/manualSections/actions.tsx +31 -0
- package/client/src/help/manualSections/clusters.tsx +58 -21
- package/client/src/help/manualSections/configuration.tsx +38 -4
- package/client/src/help/manualSections/maintenance.tsx +30 -0
- package/client/src/help/manualSections/plans.tsx +5 -1
- package/client/src/help/manualSections/providers.tsx +32 -8
- package/client/src/help/manualSections/troubleshooting.tsx +2 -1
- package/client/src/help/manualSections/workflows.tsx +19 -0
- package/client/src/help/manualSections/workspace.tsx +6 -0
- package/client/src/stores/appUpdateStore.ts +29 -8
- package/client/src/utils/transcriptWorkerRequest.ts +24 -0
- package/client/src/utils/wsSession.ts +2 -1
- package/client/src/ws/handleServerMessage.ts +8 -2
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CLIENT.md +9 -8
- package/docs/FEATURES.md +8 -5
- package/docs/GETTING_STARTED.md +9 -4
- package/docs/GOTCHAS.md +2 -1
- package/docs/OPERATIONS.md +37 -4
- package/docs/PERSISTENCE.md +25 -3
- package/docs/PRIMITIVES.md +42 -0
- package/docs/PROTOCOL_CLUSTER.md +51 -5
- package/docs/PROTOCOL_PRIMITIVES.md +39 -0
- package/docs/PROVIDERS.md +50 -13
- package/docs/SETTINGS.md +27 -3
- package/docs/TASK_LEDGER.md +7 -15
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +3 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -1
- package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
- package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
- package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/arco.mjs +1 -1
- package/scripts/packaging/native-repair.mjs +78 -12
- package/scripts/packaging/update.mjs +5 -1
- package/server/dist/atomicFile.js +1 -2
- package/server/dist/capabilities.d.ts +5 -2
- package/server/dist/capabilities.js +59 -9
- package/server/dist/cliUpdateDecision.d.ts +1 -1
- package/server/dist/cliUpdateDecision.js +5 -3
- package/server/dist/clusterAutoTurn.d.ts +4 -0
- package/server/dist/clusterAutoTurn.js +29 -25
- package/server/dist/clusterBusyReminder.js +1 -1
- package/server/dist/clusterDirector.js +1 -1
- package/server/dist/clusterPeerOps.js +10 -7
- package/server/dist/clusterProgress.js +1 -1
- package/server/dist/clusterSkills.d.ts +13 -0
- package/server/dist/clusterSkills.js +81 -0
- package/server/dist/clusterSnapshots.js +2 -0
- package/server/dist/clusterStore.d.ts +10 -2
- package/server/dist/clusterStore.js +64 -1
- package/server/dist/diagnostics/codeSkew.js +1 -0
- package/server/dist/eventLog.d.ts +7 -0
- package/server/dist/eventLog.js +70 -13
- package/server/dist/historyLimits.d.ts +1 -0
- package/server/dist/historyLimits.js +3 -0
- package/server/dist/http/router.js +1 -1
- package/server/dist/index.js +24 -1
- package/server/dist/jsonlLines.d.ts +4 -0
- package/server/dist/jsonlLines.js +53 -0
- package/server/dist/management/identity.js +1 -0
- package/server/dist/mcp/clusterMcpTools.js +4 -4
- package/server/dist/project/taskLedger.d.ts +4 -0
- package/server/dist/project/taskLedger.js +7 -4
- package/server/dist/providerConversation.d.ts +1 -0
- package/server/dist/providerConversation.js +17 -0
- package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
- package/server/dist/providers/claude-native/resumeSummary.js +102 -49
- package/server/dist/providers/claude-native/worker.js +8 -4
- package/server/dist/providers/claude.js +2 -1
- package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
- package/server/dist/providers/codex-appserver/catalog.js +16 -1
- package/server/dist/providers/codex.js +2 -1
- package/server/dist/providers/codexCodeMode.d.ts +1 -1
- package/server/dist/providers/codexCodeMode.js +4 -3
- package/server/dist/providers/cursor/print.js +2 -1
- package/server/dist/providers/cursor/worker.js +2 -1
- package/server/dist/providers/llamacpp.js +17 -8
- package/server/dist/providers/ollamaRecovery.js +6 -6
- package/server/dist/providers/ollamaResilience.js +3 -3
- package/server/dist/providers/ollamaTokens.js +1 -1
- package/server/dist/quota.d.ts +0 -18
- package/server/dist/quota.js +0 -44
- package/server/dist/replacementHistory.d.ts +19 -0
- package/server/dist/replacementHistory.js +49 -0
- package/server/dist/server/broadcast.d.ts +2 -1
- package/server/dist/server/broadcast.js +1 -0
- package/server/dist/server/prompts.d.ts +1 -0
- package/server/dist/server/prompts.js +6 -1
- package/server/dist/sessionJsonl.d.ts +1 -1
- package/server/dist/sessionJsonl.js +115 -40
- package/server/dist/smartPickup.d.ts +2 -1
- package/server/dist/smartPickup.js +28 -1
- package/server/dist/smartPickupAdapters.js +15 -2
- package/server/dist/smartPickupLedger.js +6 -4
- package/server/dist/smartPickupObserver.d.ts +1 -0
- package/server/dist/smartPickupObserver.js +24 -15
- package/server/dist/transcriptWorker.d.ts +34 -0
- package/server/dist/transcriptWorker.js +201 -0
- package/server/dist/workflowStore.d.ts +1 -0
- package/server/dist/workflowStore.js +31 -0
- package/server/dist/ws/clusterHandlers.d.ts +2 -0
- package/server/dist/ws/clusterHandlers.js +64 -27
- package/server/dist/ws/handoffHandlers.js +5 -2
- package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
- package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
- package/server/dist/ws/turnEngine.js +23 -9
- package/server/dist/ws/updatePrimaryConfig.js +27 -8
- package/server/dist/ws/workflowHandlers.d.ts +4 -1
- package/server/dist/ws/workflowHandlers.js +3 -1
- package/server/package.json +1 -1
- package/server/src/atomicFile.ts +1 -2
- package/server/src/capabilities.ts +58 -17
- package/server/src/cliUpdateDecision.ts +5 -4
- package/server/src/clusterAutoTurn.ts +26 -21
- package/server/src/clusterBusyReminder.ts +1 -1
- package/server/src/clusterDirector.ts +1 -1
- package/server/src/clusterPeerOps.ts +11 -8
- package/server/src/clusterProgress.ts +1 -1
- package/server/src/clusterSkills.ts +79 -0
- package/server/src/clusterSnapshots.ts +1 -0
- package/server/src/clusterStore.ts +64 -1
- package/server/src/diagnostics/codeSkew.ts +1 -0
- package/server/src/eventLog.ts +73 -13
- package/server/src/historyLimits.ts +2 -0
- package/server/src/http/router.ts +1 -1
- package/server/src/index.ts +23 -0
- package/server/src/jsonlLines.ts +52 -0
- package/server/src/management/identity.ts +1 -0
- package/server/src/mcp/clusterMcpTools.ts +4 -4
- package/server/src/project/taskLedger.ts +7 -5
- package/server/src/providerConversation.ts +15 -0
- package/server/src/providers/claude-native/resumeSummary.ts +98 -50
- package/server/src/providers/claude-native/worker.ts +8 -4
- package/server/src/providers/claude.ts +2 -1
- package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
- package/server/src/providers/codex-appserver/catalog.ts +14 -1
- package/server/src/providers/codex.ts +2 -1
- package/server/src/providers/codexCodeMode.ts +4 -4
- package/server/src/providers/cursor/print.ts +2 -1
- package/server/src/providers/cursor/worker.ts +2 -1
- package/server/src/providers/llamacpp.ts +18 -7
- package/server/src/providers/llamacppRecovery.ts +2 -0
- package/server/src/providers/ollamaRecovery.ts +6 -6
- package/server/src/providers/ollamaResilience.ts +3 -3
- package/server/src/providers/ollamaTokens.ts +1 -1
- package/server/src/providers/ollamaToolSubset.ts +3 -3
- package/server/src/quota.ts +0 -50
- package/server/src/replacementHistory.ts +44 -0
- package/server/src/server/broadcast.ts +2 -0
- package/server/src/server/prompts.ts +8 -1
- package/server/src/sessionJsonl.ts +92 -32
- package/server/src/smartPickup.ts +27 -3
- package/server/src/smartPickupAdapters.ts +17 -3
- package/server/src/smartPickupLedger.ts +6 -4
- package/server/src/smartPickupObserver.ts +20 -11
- package/server/src/transcriptWorker.ts +182 -0
- package/server/src/workflowStore.ts +21 -0
- package/server/src/ws/clusterHandlers.ts +46 -27
- package/server/src/ws/handoffHandlers.ts +5 -1
- package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
- package/server/src/ws/turnEngine.ts +20 -8
- package/server/src/ws/updatePrimaryConfig.ts +25 -6
- package/server/src/ws/workflowHandlers.ts +3 -1
- package/shared/dist/clusterCoordination.d.ts +2 -0
- package/shared/dist/clusterCoordination.js +5 -1
- package/shared/dist/protocol/autoPickup.d.ts +3 -0
- package/shared/dist/protocol/clientMessages.d.ts +3 -2
- package/shared/dist/protocol/clusters.d.ts +13 -1
- package/shared/dist/protocol/index.d.ts +1 -0
- package/shared/dist/protocol/index.js +1 -0
- package/shared/dist/protocol/models.d.ts +4 -3
- package/shared/dist/protocol/models.js +26 -2
- package/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/shared/dist/protocol/tasks.d.ts +4 -0
- package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
- package/shared/dist/protocol/transcriptWorker.js +2 -0
- package/shared/dist/runtimeVersions.d.ts +1 -0
- package/shared/dist/runtimeVersions.js +14 -0
- package/shared/src/clusterCoordination.ts +7 -1
- package/shared/src/protocol/autoPickup.ts +5 -0
- package/shared/src/protocol/clientMessages.ts +5 -0
- package/shared/src/protocol/clusters.ts +16 -1
- package/shared/src/protocol/index.ts +1 -0
- package/shared/src/protocol/models.ts +31 -5
- package/shared/src/protocol/serverMessages.ts +2 -0
- package/shared/src/protocol/settings.ts +2 -3
- package/shared/src/protocol/tasks.ts +4 -7
- package/shared/src/protocol/transcriptWorker.ts +49 -0
- package/shared/src/runtimeVersions.ts +14 -0
package/docs/PROTOCOL_CLUSTER.md
CHANGED
|
@@ -271,8 +271,9 @@ session. The server clones the source WorkflowConfig plus name/role/tier/focus,
|
|
|
271
271
|
then applies every field the request carries: provider/model/effort/account,
|
|
272
272
|
access, `name` (non-empty renames), `role` (empty clears; a second director is
|
|
273
273
|
refused with `multiple_directors`) and the member tuning above.
|
|
274
|
-
`
|
|
275
|
-
|
|
274
|
+
`historyMode` and `transferActiveTasks` are independent choices. History defaults to `none`; legacy `includeHistory: true` selects `full`. ISOLATED members reject history and task transfer. `recent` accepts 1 to 50 turns (default 10) within a 128 KiB seed; `full` preserves the old transcript and action digest within 512 KiB, otherwise fitting the newest contiguous whole turns within that budget through the shared transcript reader. Tools and attachments become receipts in reduced copies. No text is clipped; an oversized newest turn can produce an explicit zero-turn copy.
|
|
275
|
+
|
|
276
|
+
New clients request `transcript_worker_preview` with `replacement: { clusterId, mode }` and send its token. The existing socket-owned cache fixes the cutoff and checks the history again before replacement. Preview fields include selected/requested/available turns, bytes, `truncated` and `historyFallback`; REPLACE stays disabled until the preview completes. Changed or rewound history requires a fresh preview. Legacy requests without a history mode still work without a token. A partial copy adds one persisted `system_notice` in the new workflow; old conversation files remain. The existing fitting full-history renderer retains its event array; this change does not promise bounded memory for that legacy renderer.
|
|
276
277
|
|
|
277
278
|
```ts
|
|
278
279
|
{
|
|
@@ -292,7 +293,10 @@ members reject both options.
|
|
|
292
293
|
efficiencyToolFilter?: 'off' | 'conservative' | 'aggressive',
|
|
293
294
|
fastMode?: boolean,
|
|
294
295
|
autoCompaction?: { enabled: boolean, thresholdPercent: number } | null,
|
|
295
|
-
includeHistory?: boolean,
|
|
296
|
+
includeHistory?: boolean, // legacy true selects full
|
|
297
|
+
historyMode?: 'none' | 'recent' | 'full',
|
|
298
|
+
historyTurns?: number, // 1..50, default 10
|
|
299
|
+
historyToken?: string, // required by new history-mode clients
|
|
296
300
|
transferActiveTasks?: boolean
|
|
297
301
|
}
|
|
298
302
|
|
|
@@ -451,6 +455,8 @@ Operator edited a member's work-size hint from the Members sub-tab. `tier` is on
|
|
|
451
455
|
|
|
452
456
|
Efficiency guides coordination and testing. Balanced, the default for new clusters, asks for one lowest-level test per real fault, tests for the changed area per change, and the full check once before a release. Browser tests cover journeys that need a real screen, one per journey rather than layout, theme or size permutations. New suites, gates, test tooling and CI checks need operator approval, using the operator-question tool where available. The full check should take about ten minutes; longer runs prompt a proposal to cut work before adding tests. Flaky tests are fixed or deleted, not retried. Lean runs only changed-area tests and adds tests only for faults found; the full check runs only when requested. Thorough tests new behaviour and faults, runs neighbouring tests and the full check before handover. Every level sorts product faults from test faults and states what a user would lose before a failure blocks work; product faults and faulty tests are fixed, while cosmetic or momentary faults are noted. Project rules and plans take precedence when they ask for more or less testing. Safety checks, message guards, requested review and landing review remain unchanged. Every member receives the testing directive each turn. Directors assign complete outcomes, read the accepted diff and check that project-required checks ran; they do not invent gates or make one-off incidents into permanent rules or tests without the operator. Directors classify each failed check as a product fault or a fault in a test, housekeeping rule or CI service. Product faults are fixed. Faulty tests or rules are fixed, skipped on that system with a stated reason, or deleted so checks go green and can be trusted; red checks are neither ignored nor released over. A job dropped by the CI service is rerun alone. CI stays small enough to pass in one run and contains checks whose failures tell the operator something about the product. Housekeeping findings warn instead of failing a run. Peers report what was done, what ran and what remains uncovered. The Tester runs project checks and tests peer work where a real fault is likely, modifying test files only. Long checks go to peers; Directors never run builds, tests or CI waits themselves or wait more than 60 seconds inside a turn. Nudges, mail notices and auto-pickup follow the testing directive without adding checks.
|
|
453
457
|
|
|
458
|
+
Non-Director members and standalone agents wait inside their turns for build, test or CI results needed by their reports. Each command or polling step lasts at most 120 seconds and may be repeated as long as the job needs. Between waits they check and act on new messages, using `peer_read` in a cluster. They report after the result arrives. After a progress report or an answer while assigned work remains, non-Director members and standalone agents continue that work in the same turn; they end the turn only when it is done or with one stated blocker. If blocked or if a job clearly cannot finish within a reasonable time, they name what they await and say that a nudge is needed before ending the turn. This instruction change adds no completion wake or waiting-status display. The provider prompt supplies the wait rule once. Cluster coordination and the Director contract do not repeat it. Local-provider baselines stay role-neutral until turn preparation or handoff prewarm resolves the member role.
|
|
459
|
+
|
|
454
460
|
Message guard is a separate control beside Efficiency and in cluster creation. `messageGuard` has `{ mode: 'warn' | 'hard' | 'none', threshold: number }`; thresholds are integers from 1 through 1000. Warn only accepts legitimate sends above the threshold and adds one warning to a successful send result per sender per primary turn. Hard limit refuses mail at the cap; refused mail is not delivered. No limit removes the peer-send quota only, retaining automatic-execution, provider, permission, size and deduplication limits. Its retained threshold is used if a bounded mode is selected later.
|
|
455
461
|
|
|
456
462
|
Successful model send results include `guard` with `mode`, `count`, `cap`, `threshold`, `remaining` and an optional `warning`. Cap/remaining are null outside Hard limit; threshold is null for No limit. Counts span all recipients and reserve capacity before enqueue to fence concurrent sends. Failed/refused sends refund their reservation. The existing `primary_turn_started` boundary resets counts and warning state for that sender; these counters are process-local and are not restored after server restart. Consolidate related information for the same recipient; do not start turns to evade a cap. Operator-driven transcript sends keep their existing explicit bypass.
|
|
@@ -465,6 +471,37 @@ Omitted `addendum` keeps NOTE; empty clears it; non-empty replaces it, trimmed t
|
|
|
465
471
|
|
|
466
472
|
All new creation paths use explicit Balanced, Warn only at 15, a cluster-local board and progress tracking set to Both. Explicit creation settings override those defaults. Stored omitted style fields still mean Thorough; old omitted board fields keep the existing interpretation. Snapshot restore uses saved settings and old-format fallbacks rather than creation defaults. No existing board is moved, merged or copied by the new default. Guard state rides in cluster state and snapshot metadata; automatic-execution arming remains off on restore.
|
|
467
473
|
|
|
474
|
+
### `cluster_skills_set` ->
|
|
475
|
+
|
|
476
|
+
The operator's SKILLS control beside EFFICIENCY lists configured cluster pins.
|
|
477
|
+
Settings > SKILLS offers PIN TO TAB and PIN TO CLUSTER; a cluster target is all
|
|
478
|
+
members or an exact saved role string, including a custom role. Agents have no
|
|
479
|
+
pin or unpin tool. Built-ins use an editable project/global copy, as tab pins do.
|
|
480
|
+
|
|
481
|
+
```ts
|
|
482
|
+
{ type: 'cluster_skills_set', clusterId: string,
|
|
483
|
+
pins: Array<{ scope: 'project' | 'global', slug: string, role?: string }> }
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
This replaces the cluster's `skillPins` array under its metadata lock and
|
|
487
|
+
echoes it in `cluster_state`. Empty clears it; omitted metadata means no pins.
|
|
488
|
+
No bodies are stored in cluster or tab metadata. Each turn resolves all-member
|
|
489
|
+
pins, matching-role pins and direct tab pins, deduplicated by source and slug.
|
|
490
|
+
Inherited project skills resolve from the cluster project, including for an
|
|
491
|
+
isolated member. Added, replaced, restarted and snapshot-restored members inherit
|
|
492
|
+
the current pins without copying them into their own `pinnedSkills`.
|
|
493
|
+
|
|
494
|
+
The combined per-member set has the existing 12-skill and 64 KiB body limits.
|
|
495
|
+
An addition over either limit is refused before saving. Role changes and member
|
|
496
|
+
replacement validate the proposed set too. Direct tab-pin edits share the
|
|
497
|
+
cluster lock so concurrent edits cannot each validate against stale state.
|
|
498
|
+
Configured role targets are checked even when they currently have no member.
|
|
499
|
+
Removing pins remains possible after a skill grows. On later turns missing,
|
|
500
|
+
off or overgrown skills use the existing skipped-skill notice and bounded
|
|
501
|
+
resolver. The popup keeps missing/off references visible instead of silently
|
|
502
|
+
retargeting a moved or deleted skill. The count is configured entries, not a
|
|
503
|
+
claim that every pin applies to every member. Running turns are unchanged.
|
|
504
|
+
|
|
468
505
|
### `cluster_progress_set` ->
|
|
469
506
|
|
|
470
507
|
2026-06-29 - operator picked which surface(s) the cluster keeps current, from the ClusterRightPanel progress chip or the `+ NEW` cluster creator. `mode` is one of `CLUSTER_PROGRESS_MODES` (`plan` / `board` / `both`; server rejects unknown strings with `cluster_progress_set rejected: unknown_mode`, unknown cluster with `unknown_cluster`). Each mode resolves server-side (`clusterProgress.ts` `buildProgressDoctrine(mode, hasPlan, hasBoard)`) to a deterministic system-prompt doctrine block injected into every member's next turn - a plan-upkeep clause (keep the shared plan's `[ ]`/`[x]` current via `cluster_plan_tick`), a board-upkeep clause (move tasks through their statuses as work progresses), plus a reconcile line when BOTH surfaces are live. Each clause is gated on the surface actually existing (`hasPlan` / `hasBoard`), so a mode with no matching surface injects nothing. The progress default `both` is non-empty: pre-feature clusters with a plan start getting the upkeep nudge. Takes effect on each member's **next** turn (in-flight untouched). Server persists to cluster `meta.json` and rebroadcasts `cluster_state`; `cluster_state.progressTracking` is echoed only when non-default (absent ≡ `both`). Passes the four-question test: operator-set, deterministic doctrine, logged via `cluster_state`, reversible by flipping the chip.
|
|
@@ -795,7 +832,7 @@ Existing cooldown and rate guards and the chain-depth default support environmen
|
|
|
795
832
|
| Per-cluster rate cap (rolling 60s) | 10 | `ARCO_CLUSTER_AUTO_TURN_RATE_CAP_PER_MINUTE` |
|
|
796
833
|
| Chain-depth cap | 8 | `ARCO_CLUSTER_AUTO_TURN_MAX_CHAIN_DEPTH` |
|
|
797
834
|
|
|
798
|
-
Rule-based pickup ignores batches containing only short, unambiguous acknowledgements; the mail remains pending. A later actionable message wakes the recipient with the full batch. Rule limits default to four alternating wakes for a pair, six wakes per member per rolling hour, 40 wakes per arming, and depth eight. A pair pause clears on an operator message to either member, NUDGE, re-arming, or mail from a third member. A board or plan change breaks an unpaused alternating sequence. Reaching the arming total
|
|
835
|
+
Rule-based pickup ignores batches containing only short, unambiguous acknowledgements; the mail remains pending. A later actionable message wakes the recipient with the full batch. Rule limits default to four alternating wakes for a pair, six wakes per member per rolling hour, 40 wakes per arming, and depth eight. A pair pause clears on an operator message to either member, NUDGE, re-arming, or mail from a third member. A board or plan change breaks an unpaused alternating sequence. Reaching the arming total stops pickup and RESET BUDGET starts a fresh total; the hourly member cap remains. Limits are adjustable in the AUTO-PICKUP dialog. Rule guard counters and pair pauses are stored in the cluster ledger and survive a server restart.
|
|
799
836
|
|
|
800
837
|
Chain depth is carried on `peer_message_sent.chainDepth` (see below); operator-initiated peer-sends ride at depth 0, so the first auto-turn lands at depth 1.
|
|
801
838
|
|
|
@@ -816,11 +853,18 @@ Operator chose an AUTO-PICKUP mode in the cluster dialog. Modes: `off` (default)
|
|
|
816
853
|
limits?: Partial<SmartPickupLimits>, // only changed limits; each bounded
|
|
817
854
|
ruleLimits?: Partial<RulePickupLimits>,
|
|
818
855
|
resumeRule?: boolean,
|
|
856
|
+
paused?: boolean, // change only the operator pause; keep the current mode and omit arming/settings fields
|
|
819
857
|
remindBusy?: boolean, // Also remind busy members; default false, saved per cluster
|
|
820
858
|
}
|
|
821
859
|
```
|
|
822
860
|
|
|
823
|
-
Smart modes require an evaluator whose provider is enabled and whose adapter reports itself available (`GET /api/smart-pickup/evaluators`; Codex only while it is enabled and signed in), and a readable budget ledger, and every arming starts a new session (`id`, `armedAt`, `expiresAt` from `sessionMinutes`). Off and Rule-based end the session; the evaluator choice is kept as `lastEvaluator` and adjusted limits persist. Refusals return `error` with `cluster_auto_pickup_set rejected: <problem>` (`invalid_mode`, `unknown_cluster`, `evaluator_required`, `evaluator_provider_disabled`, `evaluator_unavailable`, `ledger_unreadable`).
|
|
861
|
+
Smart modes require an evaluator whose provider is enabled and whose adapter reports itself available (`GET /api/smart-pickup/evaluators`; Codex only while it is enabled and signed in), and a readable budget ledger, and every arming starts a new session (`id`, `armedAt`, `expiresAt` from `sessionMinutes`). Off and Rule-based end the session; the evaluator choice is kept as `lastEvaluator` and adjusted limits persist. Refusals return `error` with `cluster_auto_pickup_set rejected: <problem>` (`invalid_mode`, `invalid_pause`, `unknown_cluster`, `evaluator_required`, `evaluator_provider_disabled`, `evaluator_unavailable`, `ledger_unreadable`).
|
|
862
|
+
|
|
863
|
+
PAUSE and RESUME are operator-only controls beside TURN OFF and in the dialog. A request with `paused` must name the current non-Off mode and omit evaluator, limits, Rule-based budget reset and reminder settings. It stores `autoPickupPausedAt` in cluster metadata, echoed as `autoPickup.paused` and `autoPickup.pausedAt`; an absent timestamp means running. Pausing preserves the mode, Smart session id and timestamps, all counters and the Rule-based wake ledger. It stops automatic wakes, evaluator requests and busy reminders; already running turns continue and manual NUDGE remains available. Pending mail stays visible as waiting.
|
|
864
|
+
|
|
865
|
+
RESUME does not require confirmation or evaluator revalidation. Each idle member with pending mail re-enters the ordinary pickup path once, including Smart evaluation and every existing limit; Observe-only still never wakes a member. Repeated resume requests while already running do not scan again. The Rule-based budget reset remains a separate `resumeRule: true` action, labelled RESET BUDGET and refused during an operator pause. Resume never silently resets a spent budget. The pause persists across restart. Changing settings in the same mode keeps the pause; changing mode clears it.
|
|
866
|
+
|
|
867
|
+
The Smart session clock freezes at PAUSE. While paused, remaining time is `expiresAt - autoPickupPausedAt`; the supervisor does not expire the session and the dialog shows remaining time with PAUSED, without an end time. RESUME moves `expiresAt` forward by the pause duration, preserving the session id, `armedAt` and remaining running time. Repeated PAUSE does not move the pause timestamp, and repeated RESUME does not extend the session again. Hourly evaluator and wake limits continue to use real time; session counters are not reset. The ledger retains the current armed session's entries across long pauses, even past its normal nine-hour retention window. TURN OFF while paused clears the timestamp and ends the session.
|
|
824
868
|
|
|
825
869
|
**Also remind busy members** is available under Rule-based and Smart: Automatic. It is off by default and saved per cluster as `remindBusy`; state echoes include `autoPickup.remindBusy`. When enabled, actionable unread mail sends the existing busy NUDGE through the member's steering path once per unread batch, with at least five minutes between reminders for that member. Acknowledgement-only batches stay pending without a reminder. New mail held by the gap is checked again by the resume sweep. Off, Observe-only and expired Smart sessions send none. A reminder whose busy turn ends or changes during preparation is dropped. Idle pickup keeps its usual rules.
|
|
826
870
|
|
|
@@ -864,6 +908,8 @@ Evaluator adapters (`server/src/smartPickupAdapters.ts`), reported by `GET /api/
|
|
|
864
908
|
| Codex | a fresh `codex -c mcp_servers={} app-server` in an empty temporary folder; `thread/start` with `sandbox: read-only`, `approvalPolicy: never`, `config.web_search: disabled`, `ephemeral: true` and no resume; `turn/start` with a read-only `sandboxPolicy`; only the last final-answer agent message is kept; any item other than the prompt echo, reasoning and agent messages, and any server request (approval, question, dynamic tool), ends the request with no decision and kills the process | available when enabled and signed in |
|
|
865
909
|
| LM Studio, llama.cpp, Strata, DeepSeek | one shared OpenAI-compatible chat request to the already loaded model, no tools declared, returned tool calls rejected; never loads, unloads or switches a model | available while the chosen model is loaded |
|
|
866
910
|
|
|
911
|
+
Cursor and Codex stop the evaluator child before removing its temporary folder. Shared cleanup allows up to 250 ms for child exit and three removal retries with 100, 200 and 300 ms delays, so a Windows child can release its working directory. Cleanup errors never replace the evaluator answer or refusal.
|
|
912
|
+
|
|
867
913
|
`scripts/smart-pickup-eval.ts` runs the synthetic corpus (`scripts/smoke/fixtures/smart-auto-pickup-corpus-v2.json` by default; `--corpus <path>` selects another corpus, including v1) against one provider and model, or several with `--pairs provider:model,...`, mapping each case through `server/src/smartPickupCorpus.ts` onto the same snapshot input the app builds (open tasks, thread context); it prints each answer, a summary table with the acceptance check for Smart: Automatic (held-out actionable recall at least 0.9, unnecessary wakes at most 10 percent of non-actionable cases, no injection-driven wake, no-decision rate under 5 percent) and a confusion matrix per pair; `--max-calls N` caps the requests of the run; `--provider fake-oracle` makes no request. `--only <case id>` runs one case and `--verbose` prints timestamped phase timings (`initialize`, `session_new`, `set_mode`, `first_token`, `prompt`) and clipped protocol frames; like the app, the script retries a start-up failure once.
|
|
868
914
|
|
|
869
915
|
### `cluster_auto_turn_fired` <-
|
|
@@ -632,6 +632,45 @@ Fires after handoff. Announces the new CLI session ID and prepares the client to
|
|
|
632
632
|
|
|
633
633
|
---
|
|
634
634
|
|
|
635
|
+
## Exact turns to a new worker
|
|
636
|
+
|
|
637
|
+
These operator/browser messages are separate from `spawn_from_here_request`.
|
|
638
|
+
No agent tool exposes them.
|
|
639
|
+
|
|
640
|
+
```ts
|
|
641
|
+
{ type: 'transcript_worker_preview', requestId: string, workflowId: string,
|
|
642
|
+
turns: number, includePartial: boolean, preface: string }
|
|
643
|
+
{ type: 'transcript_worker_result', requestId: string,
|
|
644
|
+
preview?: { token: string, seed: string, bytes: number, availableTurns: number,
|
|
645
|
+
selectedTurns: number, partialIncluded: boolean, cutoffSeq: number },
|
|
646
|
+
newWorkflowId?: string, error?: string }
|
|
647
|
+
{ type: 'transcript_worker_create', requestId: string, token: string,
|
|
648
|
+
destination: { workingDirectory: string, name: string, provider: ProviderName,
|
|
649
|
+
model: string, effort: EffortLevel, providerAccountRef?: string,
|
|
650
|
+
skipPermissions?: boolean } }
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
Preview accepts integer turn counts 1-50 and a preface of at most 4096 UTF-8
|
|
654
|
+
bytes. The entire encoded seed has a 32768-byte limit. A running partial turn
|
|
655
|
+
is included only on explicit selection. The server frames exact operator and
|
|
656
|
+
visible primary text, plus bounded tool/attachment receipts, without reading
|
|
657
|
+
attachment files. Hidden reasoning and injected instructions are not copied.
|
|
658
|
+
|
|
659
|
+
The preview token is scoped to its WebSocket and expires after ten minutes;
|
|
660
|
+
the server retains at most 32 preview records. Create revalidates the source
|
|
661
|
+
cutoff/content/branch marker and the destination before allocating a tab.
|
|
662
|
+
Ordinary appends preserve the accepted snapshot; rewind, replacement or an
|
|
663
|
+
unavailable source requires another preview. A repeated create for the same
|
|
664
|
+
token returns the existing new workflow id without a second seed. The normal
|
|
665
|
+
`workflow_created` is initially background-created; the successful response
|
|
666
|
+
lets the requesting form focus that tab. The exact seed is its first normal
|
|
667
|
+
`user_message_echo`, followed by the standard primary-turn events.
|
|
668
|
+
|
|
669
|
+
Destination is a fresh allowlisted WorkflowConfig, not a clone of the source.
|
|
670
|
+
No source resume id, pins, cluster membership or armed run is accepted. The
|
|
671
|
+
chosen provider/account resolves normally without copying sign-in files.
|
|
672
|
+
Existing transcript peer-send and Spawn wire contracts remain unchanged.
|
|
673
|
+
|
|
635
674
|
## Related links
|
|
636
675
|
|
|
637
676
|
- [WebSocket protocol](PROTOCOL.md)
|
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 (
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
|
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
|
|
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
|
|
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` | `
|
|
1952
|
-
| `ARCO_LLAMACPP_AUTO_RECOVER` | `true` |
|
|
1953
|
-
| `ARCO_LLAMACPP_REASONING_BUDGET` | `
|
|
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` | `
|
|
1956
|
-
| `ARCO_LLAMACPP_STALL_TIMEOUT_MS` | `90000` |
|
|
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 |
|
|
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
|
-
|
|
191
|
-
|
|
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
|
package/docs/TASK_LEDGER.md
CHANGED
|
@@ -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
|
-
##
|
|
62
|
+
## Terminal status and director sign-off
|
|
63
63
|
|
|
64
|
-
|
|
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()`
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
@@ -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.');
|
|
@@ -67,6 +67,8 @@ export interface SmartPickupCounters {
|
|
|
67
67
|
}
|
|
68
68
|
export interface ClusterAutoPickupState {
|
|
69
69
|
remindBusy?: boolean;
|
|
70
|
+
paused?: boolean;
|
|
71
|
+
pausedAt?: number;
|
|
70
72
|
mode: AutoPickupMode;
|
|
71
73
|
limits: SmartPickupLimits;
|
|
72
74
|
evaluator?: SmartPickupEvaluator;
|
|
@@ -90,6 +92,7 @@ export interface ClusterAutoPickupSetMessage {
|
|
|
90
92
|
limits?: Partial<SmartPickupLimits>;
|
|
91
93
|
ruleLimits?: Partial<RulePickupLimits>;
|
|
92
94
|
resumeRule?: boolean;
|
|
95
|
+
paused?: boolean;
|
|
93
96
|
remindBusy?: boolean;
|
|
94
97
|
}
|
|
95
98
|
export interface RulePickupLimits {
|
|
@@ -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';
|