arco-workbench 0.1.5 → 0.1.6
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 +9 -0
- package/README.md +11 -4
- package/client/dist/assets/{PhosphorBackdrop-D6cbmLNY.js → PhosphorBackdrop-BR-TgB5x.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-2dyerOi4.js → ThemedBackgroundShaderImpl-DgcFj6JN.js} +1 -1
- package/client/dist/assets/{XtermView-AIwo7O3D.js → XtermView-CflVBQgC.js} +1 -1
- package/client/dist/assets/{galleryEditor-DXAuxS8D.js → galleryEditor-BB-emfmi.js} +1 -1
- package/client/dist/assets/{index-8j6p-pmQ.js → index-B_EqHDz3.js} +242 -240
- package/client/dist/index.html +1 -1
- package/client/src/alerts/desktopAlerts.ts +13 -0
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +28 -5
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +1 -1
- package/client/src/components/ClusterTaskBoardTab.tsx +54 -3
- package/client/src/components/ContextMeter.tsx +7 -0
- package/client/src/components/Home/HomeView.tsx +1 -1
- package/client/src/components/NeedsYouBadge.tsx +31 -16
- package/client/src/components/OperatorQuestionNotice.tsx +10 -1
- package/client/src/components/ProvidersPopover.tsx +23 -12
- package/client/src/components/TabBar.tsx +11 -8
- package/client/src/components/TabStatusChip.tsx +8 -7
- package/client/src/components/clusterNeedsYou.ts +27 -8
- package/client/src/help/content/cluster.tsx +34 -22
- package/client/src/help/content/composer.tsx +8 -1
- package/client/src/help/content/header.tsx +22 -13
- package/client/src/help/content/misc.tsx +8 -0
- package/client/src/help/content/tabbar.tsx +2 -1
- package/client/src/help/manualSections/clusters.tsx +61 -18
- package/client/src/help/manualSections/gettingStarted.tsx +10 -0
- package/client/src/help/manualSections/maintenance.tsx +38 -8
- package/client/src/help/manualSections/providers.tsx +10 -3
- package/client/src/help/manualSections/reference.tsx +1 -1
- package/client/src/help/manualSections/workflows.tsx +13 -0
- package/client/src/help/manualSections/workspace.tsx +7 -1
- package/client/src/questions/waitingQuestion.ts +3 -2
- package/client/src/stores/appStore.ts +1 -1
- package/client/src/stores/appStore.types.ts +1 -0
- package/client/src/stores/notificationStore.ts +2 -0
- package/client/src/utils/activityPresentation.ts +1 -1
- package/client/src/utils/tabStatus.ts +8 -0
- package/client/src/voice/commands.ts +4 -3
- package/client/src/voice/executor.ts +3 -3
- package/client/src/ws/handleServerMessage.ts +22 -2
- package/client/src/ws/operatorQuestions.ts +2 -0
- package/docs/CLIENT.md +3 -3
- package/docs/FEATURES.md +1 -1
- package/docs/GETTING_STARTED.md +11 -5
- package/docs/GLOSSARY.md +6 -2
- package/docs/GOTCHAS.md +17 -5
- package/docs/OPERATIONS.md +184 -5
- package/docs/PERSISTENCE.md +4 -0
- package/docs/PRIMITIVES.md +1 -1
- package/docs/PROTOCOL.md +1 -1
- package/docs/PROTOCOL_CLUSTER.md +9 -5
- package/docs/PROVIDERS.md +10 -5
- package/docs/SETTINGS.md +4 -2
- package/docs/TASK_LEDGER.md +6 -0
- package/docs/VOICE.md +2 -0
- package/native/win32-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +1 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +10 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +9 -1
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +2 -2
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +9 -3
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/arco.mjs +1 -0
- package/server/dist/attention.d.ts +1 -1
- package/server/dist/attention.js +6 -4
- package/server/dist/capabilities.d.ts +9 -8
- package/server/dist/capabilities.js +71 -102
- package/server/dist/cliUpdateDecision.d.ts +34 -0
- package/server/dist/cliUpdateDecision.js +152 -0
- package/server/dist/clusterDirector.js +1 -0
- package/server/dist/clusterPeerOps.js +2 -2
- package/server/dist/defaults/models.md +1 -1
- package/server/dist/fileAccessPolicy.js +7 -5
- package/server/dist/http/workflowDataRoutes.js +1 -1
- package/server/dist/index.js +5 -1
- package/server/dist/primitives/seedWorker.d.ts +1 -0
- package/server/dist/primitives/seedWorker.js +2 -1
- package/server/dist/providerConversation.d.ts +9 -0
- package/server/dist/providerConversation.js +80 -0
- package/server/dist/providers/claude-native/retainedContext.d.ts +4 -0
- package/server/dist/providers/claude-native/retainedContext.js +20 -0
- package/server/dist/providers/claude-native/worker.d.ts +1 -0
- package/server/dist/providers/claude-native/worker.js +34 -6
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.js +30 -0
- package/server/dist/providers/codex-appserver/worker.js +9 -4
- package/server/dist/providers/ollama.js +2 -3
- package/server/dist/server/broadcast.d.ts +1 -1
- package/server/dist/smartPickupAdapters.d.ts +1 -0
- package/server/dist/smartPickupAdapters.js +18 -5
- package/server/dist/smartPickupObserver.js +45 -8
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/limits.js +6 -2
- package/server/dist/workflowMeta.d.ts +11 -1
- package/server/dist/workflowMeta.js +132 -6
- package/server/dist/workflows/types.d.ts +1 -0
- package/server/dist/ws/compactHandlers.d.ts +1 -1
- package/server/dist/ws/compactHandlers.js +11 -4
- package/server/dist/ws/handoffHandlers.js +16 -6
- package/server/dist/ws/operatorQuestionHandlers.d.ts +2 -1
- package/server/dist/ws/operatorQuestionHandlers.js +9 -1
- package/server/dist/ws/turnEngine.d.ts +2 -4
- package/server/dist/ws/turnEngine.js +88 -129
- package/server/package.json +1 -1
- package/server/src/attention.ts +5 -4
- package/server/src/capabilities.ts +70 -111
- package/server/src/cliUpdateDecision.ts +159 -0
- package/server/src/clusterDirector.ts +1 -0
- package/server/src/clusterPeerOps.ts +2 -2
- package/server/src/defaults/models.md +1 -1
- package/server/src/fileAccessPolicy.ts +7 -5
- package/server/src/http/workflowDataRoutes.ts +1 -1
- package/server/src/index.ts +5 -1
- package/server/src/primitives/seedWorker.ts +3 -1
- package/server/src/providerConversation.ts +71 -0
- package/server/src/providers/claude-native/retainedContext.ts +22 -0
- package/server/src/providers/claude-native/worker.ts +33 -5
- package/server/src/providers/codex-appserver/operatorQuestions.ts +24 -0
- package/server/src/providers/codex-appserver/worker.ts +8 -4
- package/server/src/providers/ollama.ts +2 -3
- package/server/src/smartPickupAdapters.ts +19 -5
- package/server/src/smartPickupObserver.ts +31 -6
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/limits.ts +7 -2
- package/server/src/workflowMeta.ts +139 -5
- package/server/src/workflows/types.ts +1 -0
- package/server/src/ws/compactHandlers.ts +9 -3
- package/server/src/ws/handoffHandlers.ts +13 -6
- package/server/src/ws/operatorQuestionHandlers.ts +10 -2
- package/server/src/ws/turnEngine.ts +80 -135
- package/shared/dist/clusterRolePresets.d.ts +1 -1
- package/shared/dist/clusterRolePresets.js +10 -0
- package/shared/dist/protocol/autoPickup.js +9 -1
- package/shared/dist/protocol/clientMessages.d.ts +2 -2
- package/shared/dist/protocol/models.d.ts +6 -0
- package/shared/dist/protocol/notifications.d.ts +4 -0
- package/shared/dist/protocol/operatorQuestions.d.ts +12 -0
- package/shared/dist/protocol/serverMessages.d.ts +9 -3
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/src/clusterRolePresets.ts +11 -1
- package/shared/src/protocol/autoPickup.ts +9 -1
- package/shared/src/protocol/clientMessages.ts +2 -1
- package/shared/src/protocol/models.ts +5 -2
- package/shared/src/protocol/notifications.ts +5 -0
- package/shared/src/protocol/operatorQuestions.ts +13 -0
- package/shared/src/protocol/serverMessages.ts +12 -2
- package/shared/src/protocol/workflows.ts +4 -0
package/docs/OPERATIONS.md
CHANGED
|
@@ -16,6 +16,7 @@ For the normal native install and run modes, see [`../README.md`](../README.md)
|
|
|
16
16
|
| [Updating Arco](#updating-arco) |
|
|
17
17
|
| [Going back to 0.1.4](#going-back-to-014) |
|
|
18
18
|
| [Uninstall](#uninstall) |
|
|
19
|
+
| [Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies) |
|
|
19
20
|
| [Recovering a submitted turn](#recovering-a-submitted-turn) |
|
|
20
21
|
| [Ports](#ports) |
|
|
21
22
|
| [Exposure posture](#exposure-posture) |
|
|
@@ -56,6 +57,12 @@ npm install -g arco-workbench
|
|
|
56
57
|
arco setup
|
|
57
58
|
```
|
|
58
59
|
|
|
60
|
+
When Arco is already installed, update with `arco update` or **UPDATE AND
|
|
61
|
+
RESTART**; do not run `npm install -g arco-workbench` over the existing package.
|
|
62
|
+
See [Updating Arco](#updating-arco). To clear every older copy before a fresh
|
|
63
|
+
install, see
|
|
64
|
+
[Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies).
|
|
65
|
+
|
|
59
66
|
`arco setup` asks before installing the service, starts it, and opens the local
|
|
60
67
|
URL. Use `arco service install|uninstall|start|stop|restart|status|logs|refresh` for
|
|
61
68
|
direct service control, or `arco start` for a foreground run. Service settings
|
|
@@ -63,11 +70,47 @@ come from `ARCO_HOME`, `ARCO_PORT`, `ARCO_HOST`, and the other supported
|
|
|
63
70
|
environment values saved at first install. Existing unowned or modified service
|
|
64
71
|
definitions are refused.
|
|
65
72
|
|
|
73
|
+
On Windows, `npm install -g arco-workbench` over a running packaged service
|
|
74
|
+
fails. npm prints `npm warn cleanup` lines with `EPERM` under
|
|
75
|
+
`%APPDATA%\npm\node_modules\arco-workbench`, then `EEXIST` on
|
|
76
|
+
`%APPDATA%\npm\arco.cmd`. The `EEXIST` and leftover `arco`, `arco.cmd`, and
|
|
77
|
+
`arco.ps1` files come from an earlier install under the previous package name
|
|
78
|
+
`@ghreprimand/arco`, which provides the same `arco` command. Arco does not
|
|
79
|
+
write those three launcher files itself; npm creates them from the package's
|
|
80
|
+
`bin` entry.
|
|
81
|
+
|
|
82
|
+
To keep a working `arco-workbench` install and its running service, uninstall
|
|
83
|
+
the earlier package and recreate the launchers:
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
npm uninstall -g @ghreprimand/arco
|
|
87
|
+
npm rebuild -g arco-workbench
|
|
88
|
+
arco version
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
`npm rebuild -g arco-workbench` recreates the launcher files without replacing
|
|
92
|
+
package files, so it is safe while the service runs. While the launchers are
|
|
93
|
+
missing, the package is still intact when this runs (PowerShell: use
|
|
94
|
+
`$env:APPDATA` in place of `%APPDATA%`):
|
|
95
|
+
|
|
96
|
+
```bat
|
|
97
|
+
node "%APPDATA%\npm\node_modules\arco-workbench\scripts\packaging\arco.mjs" version
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
For a fresh install, uninstall `@ghreprimand/arco` first when
|
|
101
|
+
`npm ls -g --depth=0` lists it, then install `arco-workbench` (see
|
|
102
|
+
[Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies)).
|
|
103
|
+
If a direct overwrite left the service holding package files open, stop or
|
|
104
|
+
uninstall the service before replacing the package. Do not delete
|
|
105
|
+
`%USERPROFILE%\.arco` as a routine step; it holds settings and saved work (see
|
|
106
|
+
[Uninstall](#uninstall) if that data must go).
|
|
107
|
+
|
|
66
108
|
If `npm install -g arco-workbench` fails with `EEXIST` because an `arco` link
|
|
67
|
-
already exists in the global bin folder (for example from
|
|
68
|
-
checkout's `npm link`), remove that link or
|
|
69
|
-
package
|
|
70
|
-
|
|
109
|
+
already exists in the global bin folder (for example from `@ghreprimand/arco`
|
|
110
|
+
or an earlier source checkout's `npm link`), remove that link or uninstall the
|
|
111
|
+
listed package (`npm uninstall -g @ghreprimand/arco` when it appears in
|
|
112
|
+
`npm ls -g --depth=0`), then install again. For `EACCES` on Linux or macOS, use
|
|
113
|
+
nvm or a user-owned npm prefix (for example under Homebrew's Node).
|
|
71
114
|
|
|
72
115
|
The package starts on port 3001 when available and chooses the next free port
|
|
73
116
|
through 3099, then an operating-system-assigned port. It saves and reuses the
|
|
@@ -180,6 +223,11 @@ opens the update dialog on click, and shows UPDATING while an update runs.
|
|
|
180
223
|
|
|
181
224
|
### Packaged install
|
|
182
225
|
|
|
226
|
+
When Arco is already installed as the npm package, update it with this command
|
|
227
|
+
or with **UPDATE AND RESTART**. Do not replace a running install by running
|
|
228
|
+
`npm install -g arco-workbench` again; on Windows that path fails while the
|
|
229
|
+
service holds package files open (see [Running locally](#running-locally)).
|
|
230
|
+
|
|
183
231
|
Run:
|
|
184
232
|
|
|
185
233
|
```sh
|
|
@@ -359,6 +407,9 @@ release announcement is recorded in the server log, never in a workflow's
|
|
|
359
407
|
Remove a packaged native install (Linux, macOS, or Windows). Stop in-flight work
|
|
360
408
|
and close the browser before starting. Source checkouts and Docker are separate;
|
|
361
409
|
see [Service mode](SERVICE_MODE.md) and [Docker](DOCKER.md) for those paths.
|
|
410
|
+
When the goal is a clean machine before installing again, and the old copy may
|
|
411
|
+
be a package, a source checkout, or both, start with
|
|
412
|
+
[Before a fresh install: remove older copies](#before-a-fresh-install-remove-older-copies).
|
|
362
413
|
|
|
363
414
|
### 1. Remove the per-user service
|
|
364
415
|
|
|
@@ -389,7 +440,12 @@ npm uninstall -g arco-workbench
|
|
|
389
440
|
uninstall` or `arco shortcuts remove`. A shortcut changed outside Arco is left
|
|
390
441
|
for manual review.
|
|
391
442
|
|
|
392
|
-
On Windows, `arco.cmd` is acceptable if the PowerShell shim is blocked.
|
|
443
|
+
On Windows, `arco.cmd` is acceptable if the PowerShell shim is blocked. After
|
|
444
|
+
uninstalling `arco-workbench`, check `npm ls -g --depth=0` for the earlier
|
|
445
|
+
package `@ghreprimand/arco` and run `npm uninstall -g @ghreprimand/arco` when
|
|
446
|
+
it is listed; that package owns the `arco`, `arco.cmd`, and `arco.ps1`
|
|
447
|
+
launcher files. Then check `%APPDATA%\npm` for any leftover launchers and
|
|
448
|
+
remove them before installing again.
|
|
393
449
|
|
|
394
450
|
### 3. Optional: delete Arco data (permanent)
|
|
395
451
|
|
|
@@ -461,6 +517,119 @@ provider command-line tools (`claude`, `codex`, `cursor-agent`, `ollama`, and
|
|
|
461
517
|
similar). Their account sign-ins and data outside the Arco home remain. Remove
|
|
462
518
|
those products with their own uninstallers if you no longer need them.
|
|
463
519
|
|
|
520
|
+
## Before a fresh install: remove older copies
|
|
521
|
+
|
|
522
|
+
Use this when an older Arco must be cleared before installing again, and it is
|
|
523
|
+
not clear whether the copy was a packaged install, a source checkout, or both.
|
|
524
|
+
The steps cover Linux, macOS, and Windows. They do not delete the Arco home;
|
|
525
|
+
keeping or deleting that data is a separate choice below.
|
|
526
|
+
|
|
527
|
+
### 1. Find what is present
|
|
528
|
+
|
|
529
|
+
```sh
|
|
530
|
+
arco version
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
On Linux and macOS:
|
|
534
|
+
|
|
535
|
+
```sh
|
|
536
|
+
which -a arco
|
|
537
|
+
npm ls -g --depth=0
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
On Windows (Command Prompt or PowerShell):
|
|
541
|
+
|
|
542
|
+
```bat
|
|
543
|
+
where.exe arco
|
|
544
|
+
npm ls -g --depth=0
|
|
545
|
+
```
|
|
546
|
+
|
|
547
|
+
Note every `arco` path on `PATH`. In the npm listing, look for `arco-workbench`,
|
|
548
|
+
the earlier `@ghreprimand/arco`, or a linked checkout (`npm link` shows the
|
|
549
|
+
checkout path).
|
|
550
|
+
|
|
551
|
+
### 2. Stop a packaged service
|
|
552
|
+
|
|
553
|
+
If a packaged install is present, uninstall the service and both package names
|
|
554
|
+
when listed:
|
|
555
|
+
|
|
556
|
+
```sh
|
|
557
|
+
arco service uninstall
|
|
558
|
+
npm uninstall -g arco-workbench
|
|
559
|
+
npm uninstall -g @ghreprimand/arco
|
|
560
|
+
```
|
|
561
|
+
|
|
562
|
+
Then confirm `arco version` no longer runs an old copy. On Windows, check
|
|
563
|
+
`%APPDATA%\npm` for leftover `arco`, `arco.cmd`, and `arco.ps1`, and remove any
|
|
564
|
+
that remain.
|
|
565
|
+
|
|
566
|
+
### 3. Stop a source checkout
|
|
567
|
+
|
|
568
|
+
Stop a foreground `npm start` or `npm run dev` with Ctrl+C in that terminal.
|
|
569
|
+
|
|
570
|
+
On Linux, if the source user service was installed:
|
|
571
|
+
|
|
572
|
+
```sh
|
|
573
|
+
npm run arco:service -- uninstall
|
|
574
|
+
```
|
|
575
|
+
|
|
576
|
+
On macOS, if a hand-maintained LaunchAgent was loaded (label `com.arco.app`),
|
|
577
|
+
unload it and remove its plist as in
|
|
578
|
+
[Service mode](SERVICE_MODE.md#hand-maintained-launchd-service-for-source-checkouts).
|
|
579
|
+
`bootout` alone leaves the file in `~/Library/LaunchAgents/`; with `RunAtLoad`
|
|
580
|
+
set, launchd loads it again at the next login.
|
|
581
|
+
|
|
582
|
+
```sh
|
|
583
|
+
launchctl bootout gui/$(id -u)/com.arco.app
|
|
584
|
+
rm ~/Library/LaunchAgents/com.arco.app.plist
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
If the label or file name differs, list candidates with
|
|
588
|
+
`ls ~/Library/LaunchAgents | grep -i arco`, then boot out that label and remove
|
|
589
|
+
the matching plist.
|
|
590
|
+
|
|
591
|
+
If `npm ls -g --depth=0` showed a linked checkout, remove the global link from
|
|
592
|
+
that checkout:
|
|
593
|
+
|
|
594
|
+
```sh
|
|
595
|
+
npm unlink -g
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
Or remove the leftover `arco` entries from the global npm bin folder by hand.
|
|
599
|
+
|
|
600
|
+
### 4. Confirm nothing is left
|
|
601
|
+
|
|
602
|
+
- Packaged service definitions are gone: Linux
|
|
603
|
+
`~/.config/systemd/user/arco.service` (or under `XDG_CONFIG_HOME`); macOS
|
|
604
|
+
`~/Library/LaunchAgents/arco-workbench.plist`; Windows Task Scheduler task
|
|
605
|
+
`arco-workbench`.
|
|
606
|
+
- On macOS, also confirm
|
|
607
|
+
`~/Library/LaunchAgents/com.arco.app.plist` is absent when a source agent was
|
|
608
|
+
used.
|
|
609
|
+
- `which -a arco` or `where.exe arco` finds nothing.
|
|
610
|
+
- No Arco process remains. On Linux and macOS, `pgrep -fl arco` prints nothing.
|
|
611
|
+
On Windows, Task Manager shows no matching `node.exe`, or in PowerShell
|
|
612
|
+
`Get-CimInstance Win32_Process -Filter "Name = 'node.exe'"` finds no
|
|
613
|
+
`CommandLine` that names `arco.mjs` (the packaged service identifies
|
|
614
|
+
`arco.mjs service-run`; see [Service mode](SERVICE_MODE.md#packaged-service)).
|
|
615
|
+
- Nothing answers on the saved port. While the package is still installed,
|
|
616
|
+
`arco doctor` reports whether this Arco home is running. After removal, use
|
|
617
|
+
the port in `port-state.json` under the Arco home when that file exists,
|
|
618
|
+
otherwise port `3001`.
|
|
619
|
+
|
|
620
|
+
### 5. Keep or delete the Arco home
|
|
621
|
+
|
|
622
|
+
The Arco home (default `~/.arco` on Linux and macOS, `%USERPROFILE%\.arco` on
|
|
623
|
+
Windows; or the path in `ARCO_HOME`) holds settings, chats, and provider data
|
|
624
|
+
Arco stores there. Leaving it in place is normal. A fresh package install that
|
|
625
|
+
keeps an existing home reuses that data: it does not open **Welcome to Arco**
|
|
626
|
+
when setup was already completed or when saved work is present. Deleting the
|
|
627
|
+
home is permanent; back up first (see [Backup](BACKUP.md)) and follow
|
|
628
|
+
[Optional: delete Arco data](#3-optional-delete-arco-data-permanent) only when
|
|
629
|
+
that data must go.
|
|
630
|
+
|
|
631
|
+
Then install again with `npm install -g arco-workbench` and `arco setup`.
|
|
632
|
+
|
|
464
633
|
## Recovering a submitted turn
|
|
465
634
|
|
|
466
635
|
A composer draft that was not sent over an open WebSocket stays in the browser.
|
|
@@ -1039,6 +1208,16 @@ Differences become `capabilities_changed` WS events. The CONFIG tab shows a red
|
|
|
1039
1208
|
|
|
1040
1209
|
If a CLI was upgraded between boots, the active tab gets a `[CLI] Updated X -> Y` system message. New flags appear in `cliChanges[]`; the operator can decide whether to accept the new behavior.
|
|
1041
1210
|
|
|
1211
|
+
### Provider update results
|
|
1212
|
+
|
|
1213
|
+
Open VERSIONS and select the Claude or Codex row. A successful update briefly shows `-> v<new>`; a confirmed current result shows `v<version> (latest)`. Both clear after 6 seconds and the row returns to its version. An unchanged version with a newer release available, a deferred update or manual instructions shows `v<version> (!)` in warning colour until the next check. A failure shows `FAILED` in danger colour until the next check. Hover over the row for the full message, error or command. An unchanged version is never called latest without confirmation from the server. A nonzero updater exit remains a failure even when the old executable still works.
|
|
1214
|
+
|
|
1215
|
+
Codex updates follow the installation selected by Arco's PATH. A recognised standalone installation uses its own `codex update` command. Arco first checks that the standalone installer's destination still matches the active command directory, including a custom `CODEX_INSTALL_DIR`. An installation without that command, or one whose ownership cannot be identified, is left unchanged with terminal instructions. Arco never installs npm Codex over a standalone installation.
|
|
1216
|
+
|
|
1217
|
+
An npm installation must resolve to the Codex package under the current `npm root -g`. Arco checks its platform build before running `codex update`; older npm installations without that command use a pinned npm version. When the self-updater cannot safely select the advertised version, the update is deferred. Arco does not downgrade a working installation. A different npm target is refused rather than creating another copy.
|
|
1218
|
+
|
|
1219
|
+
The Codex update flag uses the target from that same installation decision and appears only when the installed semantic version is older. The npm registry supplies the published version for standalone installations; there is no separate standalone release feed or Homebrew cask check. See [Provider update limits](GOTCHAS.md#provider-update-limits). Claude continues to use `claude update`; Cursor's version remains display-only here.
|
|
1220
|
+
|
|
1042
1221
|
---
|
|
1043
1222
|
|
|
1044
1223
|
## Director / workers dispatcher and run recovery
|
package/docs/PERSISTENCE.md
CHANGED
|
@@ -279,6 +279,10 @@ Task lifecycle events are persisted on the parent workflow but the **client-side
|
|
|
279
279
|
|
|
280
280
|
## meta.json
|
|
281
281
|
|
|
282
|
+
Missing metadata is recreated from the authoritative workflow configuration at creation, reconnect, before a turn, and when a provider session id is discovered. A known live id and its account binding are saved; existing metadata and concurrent updates are preserved under the metadata lock. Incognito writes no metadata. A write failure produces a notice that a restart may lose the resume id.
|
|
283
|
+
|
|
284
|
+
Recreating a file cannot recover an id already lost before restart. Arco does not guess from the session index or provider rollouts. Codex, Cursor and Claude CLI tabs with earlier replies but no saved external conversation show `CTX: -`; old usage remains historical. A new provider conversation produces one durable notice, then waits for its own context reading. Claude Native and local providers can replay their retained history without an external id. Missing authored state still needs its originals or a backup.
|
|
285
|
+
|
|
282
286
|
Per-workflow identity file. Atomic writes via `atomicFile.ts`. The type is `WorkflowMeta` in `server/src/workflowMeta.ts` (exhaustive list there); `workflowConfigFromMeta` is the single meta -> `WorkflowConfig` projection used on rehydrate and Past Chats reopen - a new persisted per-tab field must be added to **both** or it silently resets on restart.
|
|
283
287
|
|
|
284
288
|
```ts
|
package/docs/PRIMITIVES.md
CHANGED
|
@@ -840,7 +840,7 @@ Two operator-armed surfaces overlay onto every member's per-turn system context
|
|
|
840
840
|
|
|
841
841
|
For members with Standard access, the body (plus a trailing line naming its reference docs) is injected as a forced system block immediately after the worker's `FORCED_FIRST_BLOCK` and before the operator's `appendSystemPrompt` / `systemPrompt` - every member's next turn reads it. `CLEAR PLAN` detaches the plan from the cluster (`clusterStore.clearPlanId`); the plan file stays in the project's plans, and subsequent turns no longer see the block. Hard cap `PLAN_MAX_BYTES = 32768` enforced server-side; oversize requests are rejected with a `NotificationToasts` error.
|
|
842
842
|
|
|
843
|
-
**Role hint per member.** Free-form text (≤120 chars, `MEMBER_ROLE_MAX`). Stored sparsely on `ClusterMeta.memberRoles`. When set, the Native worker injects a second forced system block (`Your role in this cluster: <role>`) immediately after the plan block. Empty / whitespace clears. The operator surface is a popover on each `MemberRow` in the Members sub-tab anchored to the `SET` button:
|
|
843
|
+
**Role hint per member.** Free-form text (≤120 chars, `MEMBER_ROLE_MAX`). Stored sparsely on `ClusterMeta.memberRoles`. When set, the Native worker injects a second forced system block (`Your role in this cluster: <role>`) immediately after the plan block. Empty / whitespace clears. The operator surface is a popover on each `MemberRow` in the Members sub-tab anchored to the `SET` button: eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus `CLEAR` and `Custom...` (falls back to a free-form inline editor). ADVISOR gives the Director a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER owns screen layout, states, wording and accessibility and changes UI files only. Both report through `peer_send`. When an Advisor is present, the Director consults it before a design decision or when the evidence is thin and keeps the decision. These are instruction roles, not file-access enforcement. The wire shape is unchanged: a preset is just a known string the UI drops into the editor; `presetForText` round-trips a stored body back to its preset id so EDIT reopens with the matching preset highlighted and `MemberCard` chips can label known presets vs free-form `CUSTOM`. Director-vs-worker is **emergent through operator conversation** - the role string is a framing nudge, not a permission flag. Cross-member coordination still happens through the existing peer_* substrate.
|
|
844
844
|
|
|
845
845
|
**Plan-changed propagation.** Editing the plan mid-turn for member A does NOT tear down A's running turn - the new body lands on the NEXT turn only (the worker reads `this.config.clusterPlan` once at `buildSystemBlocks` per `messages.create`). Member B (idle at edit time) picks up the new body on its next turn naturally.
|
|
846
846
|
|
package/docs/PROTOCOL.md
CHANGED
|
@@ -2702,7 +2702,7 @@ string[]> }`. Requires one explicit answer per question, honors closed option
|
|
|
2702
2702
|
sets, and rejects wrong-workflow, stale or duplicate replies. Server sends a
|
|
2703
2703
|
transient `operator_question_reply_result { workflowId, requestId, ok, error? }`
|
|
2704
2704
|
to the submitting socket; authoritative answered/cancelled state is broadcast to
|
|
2705
|
-
all observers. Approval messages are separate and retain existing behavior.
|
|
2705
|
+
all observers. `operator_question_dismiss { workflowId, requestId }` closes a question without an answer; `operator_question_dismiss_result` reports delivery to the submitting socket. RPC dismissal sends empty answers before closure; async message questions close when their own turn settles. Approval messages are separate and retain existing behavior.
|
|
2706
2706
|
|
|
2707
2707
|
`workflow_state_snapshot.operatorQuestions` contains the live pending requests
|
|
2708
2708
|
(including an empty array). The client upserts by request ID and closes any
|
package/docs/PROTOCOL_CLUSTER.md
CHANGED
|
@@ -407,7 +407,7 @@ operator hit `CLEAR PLAN` in `ClusterPlanTab`. `clusterPlanBridge.clearClusterPl
|
|
|
407
407
|
|
|
408
408
|
### `cluster_member_role_set` ->
|
|
409
409
|
|
|
410
|
-
The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (
|
|
410
|
+
The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus a `Custom...` branch that falls back to the inline editor) or hit `CLEAR`. ADVISOR gives the Director a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER owns screen layout, states, wording and accessibility and changes UI files only. Both report through `peer_send`. When an Advisor is present, the Director consults it before a design decision or when the evidence is thin and keeps the decision. These are instruction roles, not file-access enforcement. A preset is just a known string the UI drops into the editor; the wire shape is free-form text. Server clamps to 120 chars (`MEMBER_ROLE_MAX`) - values longer are silently truncated. Empty / whitespace clears the field entirely (the member's `role` becomes absent from `cluster_state.members`). Assigning a second director (role text beginning with Director or Coordinator) is refused; see [Director roles and work size](#director-roles-and-work-size). Persisted into `ClusterMeta.memberRoles` (sparse map). Pushes a fresh `cluster_state`; no dedicated event - role changes are state-shaped (the `role` field on each `ClusterMember` is the wire surface). Codex app-server members carry role + cluster identity + (for a Director role) the full Director operating contract in thread `developerInstructions`, so a role change recycles the app-server child on the next turn while resuming the same Codex thread.
|
|
411
411
|
|
|
412
412
|
```ts
|
|
413
413
|
{ type: 'cluster_member_role_set', clusterId: string, workflowId: string, role: string }
|
|
@@ -834,7 +834,7 @@ While a Smart mode is armed, `server/src/smartPickupObserver.ts` evaluates one i
|
|
|
834
834
|
|
|
835
835
|
The snapshot (`server/src/smartPickupEvaluator.ts`) holds the recipient's role label and status, up to five of its open tasks (id, status, title), the pending mail bodies with sender role labels, oldest first, and `lastSentToSender`: for each sender of the pending mail (grouped by workflow id, at most four, the oldest sender dropped first), the recipient's most recent peer message to that sender written before that sender's oldest pending message, clipped to 600 characters, labeled with the sender's role. All of it is JSON inside a DATA block that the instructions call untrusted. Message ids, workflow ids, paths and transcripts are not sent. Thread context comes from `server/src/smartPickupThread.ts`, which `clusterMailbox.enqueue` feeds with the last three messages per sender and recipient pair (clipped, memory only, at most 2000 pairs; empty after a restart until members send again). It is dropped before the mail itself can make the snapshot truncated, and it does not change the mail fingerprint. The instructions add decision rules (a result, partial result or reply to the recipient's own request is `wake`), what each role acts on, and seven worked examples from the v2 corpus train split, including thread context. It is decided without the evaluator when the mailbox is empty (`defer`, `empty`), when all pending mail does not fit in `maxInputBytes` (`ask`, `truncated`), or when the mailbox cannot be read strictly (`ask`, `unverifiable`).
|
|
836
836
|
|
|
837
|
-
Otherwise an evaluator slot is reserved, then one request is made and the slot settled. The answer must be exactly `{"action":"wake"|"defer"|"ask","reason":<enum>}` (`SMART_PICKUP_REASONS`), optionally in one json code fence; extra keys, other values, prose, errors, timeouts, tool attempts and over-long answers are recorded as `invalid_answer:<problem>` or `evaluator_error:<reason>` with no action. A result is discarded (`session_changed`) when Smart was turned off or re-armed during the request. A failure before the evaluator
|
|
837
|
+
Otherwise an evaluator slot is reserved, then one request is made and the slot settled. The answer must be exactly `{"action":"wake"|"defer"|"ask","reason":<enum>}` (`SMART_PICKUP_REASONS`), optionally in one json code fence; extra keys, other values, prose, errors, timeouts, tool attempts and over-long answers are recorded as `invalid_answer:<problem>` or `evaluator_error:<reason>` with no action. A result is discarded (`session_changed`) when Smart was turned off or re-armed during the request. A failure before the evaluator session is ready retries once for the same mail with a new reservation. A second startup failure, or any other failure, takes the failure path without an additional retry. Observe-only records valid decisions with outcome `logged` and final failures with `fallback_observed`; it never starts a turn or reads mail destructively. In Automatic, an error, refusal or invalid answer attempts ordinary pickup through the same gate as a wake proposal, with the acknowledgement-only filter and attachment exception. A valid `defer` or `ask`, cancellation, changed or expired session, unreadable snapshot or ledger, and evaluator quota refusal never authorise fallback.
|
|
838
838
|
|
|
839
839
|
Automatic nudges and pickup reminders carry a message marker in the server echo and saved event. Chat, pending PREVIEW and HISTORY show a folded mailbox line with + and - controls. The worker receives the full prompt. A typed message is not marked based on its text. The peer mailbox notice is added to the worker system context, not the chat echo.
|
|
840
840
|
|
|
@@ -846,16 +846,20 @@ In `smart-auto` a `wake` proposal goes through `gateWake` in `server/src/smartPi
|
|
|
846
846
|
2. A wake slot is reserved in the ledger (`wakesPerMemberHour`, `wakesPerSession`); it counts whatever happens next.
|
|
847
847
|
3. Under the cluster mailbox lock the claim succeeds only if the same session is still armed in `smart-auto`, the recipient is still a member, the strict pending-id listing has the evaluated fingerprint, no STOP hold applies, the shared guards still pass, and the turn path can claim the idle member. On success the shared guards are stamped. The slot is settled `woke` or with the refusal (`session_changed`, `member_changed`, `unverifiable`, `mail_changed`, `stop_hold`, `rate_capped`, `busy`).
|
|
848
848
|
|
|
849
|
-
|
|
849
|
+
A model decision is recorded as `<reason>:<refusal>` with outcome `skipped`, or outcome `woke`. Fallback keeps action null and its original `evaluator_error:<reason>` or `invalid_answer:<problem>`; outcome is `fallback_woke` or `fallback_skipped:<guard>`. It never claims the evaluator answered wake. The same fingerprint admits at most one wake; a delayed fallback preserves its failure reason without another evaluation. A wake blocked by a passing condition (`busy`, `cooldown`, `rate_capped`, `limit_wakes_member_hour`) stays owed and is retried for the same mail without asking the evaluator again. Evaluator requests refused by the in-flight or hourly limits are retried later and logged once per mail fingerprint.
|
|
850
850
|
|
|
851
851
|
STOP on a member of an armed Smart cluster records a hold with its pending ids (in the ledger, so it survives restart). The hold applies while the pending mail is a subset of those ids; new mail or an empty mailbox ends it. A `defer` stands for `ARCO_SMART_PICKUP_DEFER_MS` (default 600000) or until the mail changes. An `ask` raises one `cluster-nudge` workbench notice per mail fingerprint and starts nothing. The sweep visits clusters and members in sorted order one at a time.
|
|
852
852
|
|
|
853
|
+
Capped evaluator requests use 8192 extra total-output tokens for reasoning, matching the existing short Claude allowance. The visible answer still has the configured character bound (`maxOutputTokens * 8`, at least 64 characters); reasoning does not enlarge it. This applies to Claude, Ollama and the shared OpenAI-compatible local adapter. Cursor and Codex have no total-token cap in this adapter and keep their time and visible-character limits. Free-text utility requests retain their existing budgets. A remaining refusal still enters guarded fallback.
|
|
854
|
+
|
|
855
|
+
The AUTO-PICKUP chip hover and accessible description repeat the last failure/fallback or expiry explanation. The dialog shows minutes remaining and the end time. Session expiry turns Smart Off and leaves mail waiting for rearming, Rule-based or NUDGE; change **Armed session length** in **AUTO-PICKUP > LIMITS** (5 to 240 minutes, default 30) before arming. Expiry never grants a final wake or extends the session. Older stored session-length limits above 240 minutes read as 240, rather than reverting to the 30-minute default.
|
|
856
|
+
|
|
853
857
|
Evaluator adapters (`server/src/smartPickupAdapters.ts`), reported by `GET /api/smart-pickup/evaluators` as `{ evaluators: [{ provider, available, reason? }] }`:
|
|
854
858
|
|
|
855
859
|
| Provider | Request | Status |
|
|
856
860
|
|---|---|---|
|
|
857
|
-
| Ollama | `POST /api/chat`, `stream: false`, JSON-schema `format`, `num_predict` = `maxOutputTokens`, no tools | available |
|
|
858
|
-
| Claude | one Messages API request with Native credentials, `max_tokens` = `maxOutputTokens`, no tools;
|
|
861
|
+
| Ollama | `POST /api/chat`, `stream: false`, JSON-schema `format`, `num_predict` = `maxOutputTokens + 8192`, `think: false`, no tools | available |
|
|
862
|
+
| Claude | one Messages API request with Native credentials, `max_tokens` = `maxOutputTokens + 8192`, no tools; thinking blocks are ignored, unsupported blocks and capped/no-answer replies are refused | available with Native sign-in |
|
|
859
863
|
| Cursor | a fresh `cursor-agent acp` (no `--force`) in an empty temporary folder, `clientCapabilities: {}`, `mcpServers: []`, the exact model selected with `session/set_config_option` and confirmed (otherwise `startup_model_unavailable` or `startup_model_unconfirmed`), switched to Ask mode with `session/set_mode` before the prompt (no Ask mode refuses with `startup_no_ask_mode`); start-up (spawn, `initialize`, `session/new`, `session/set_mode`) has its own 30 s allowance and `timeoutSeconds` bounds only `session/prompt`; any permission request, file request or tool call ends the request with no decision; the agent is stopped once and the session is never loaded again | available |
|
|
860
864
|
| 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 |
|
|
861
865
|
| 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 |
|
package/docs/PROVIDERS.md
CHANGED
|
@@ -20,6 +20,8 @@ If a provider CLI, sign-in process, language server or MCP server closes its inp
|
|
|
20
20
|
|
|
21
21
|
Diagnostics uses platform PATH lookup, including Windows PATHEXT suffixes, to find optional tools and language servers. Model Health uses the runtime's `ARCO_LLAMACPP_BIN` override when configured; otherwise it searches PATH. An invalid configured override is reported missing. These checks do not launch a model.
|
|
22
22
|
|
|
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
|
+
|
|
23
25
|
## Topics
|
|
24
26
|
|
|
25
27
|
| Topic |
|
|
@@ -454,6 +456,8 @@ Beyond the built-in `arco-cluster` + `codebase-memory` entries, CLI Claude also
|
|
|
454
456
|
|
|
455
457
|
### Native transport
|
|
456
458
|
|
|
459
|
+
**Steering during server tools.** A response can mix a local `tool_use` with server calls such as web search or web fetch. With `stop_reason: tool_use`, server calls may have no result until a later assistant response. The continuation must contain only the local `tool_result` blocks while those calls remain pending. Arco pairs server calls and results by ID across the active turn, keeps steering queued and defers in-turn compaction until every call is answered. Each held message adds one conversation notice, such as `Message held until web search finishes.` The existing queue still shows it as queued. It is delivered at the next safe local-tool boundary, or as the next turn if the current turn finishes first. No evidence or thinking is stripped to make that delivery possible; actual-abort recovery is unchanged.
|
|
460
|
+
|
|
457
461
|
`server/src/providers/claude-native/` - long-lived per-workflow worker that talks directly to Anthropic's Messages API via `@anthropic-ai/sdk@^0.91.1` (Pi-pinned). The agent loop runs in Arco's process so the mid-turn steer hook fires between tool-result append and the next API round-trip.
|
|
458
462
|
|
|
459
463
|
**File layout (post-P0 carve-out).** `worker.ts` holds the `ClaudeNativeWorker` class and the turn/stream/error loop. To keep it under the 2000-line cap, the *stateless* leaf helpers live in siblings and are re-exported from `worker.ts` so existing `from './worker.js'` import paths still resolve:
|
|
@@ -754,6 +758,8 @@ Anthropic returns structured `{type:'error', error:{type, message}}` envelopes.
|
|
|
754
758
|
|
|
755
759
|
- 401 / `authentication_error` → `[AUTH:claude]` system_notice + fail (refresh already attempted in `ensureLiveTokens`).
|
|
756
760
|
- 429 / `rate_limit_error`, 529 / `overloaded_error`, 500 / `api_error` → retry × 3. **Header-aware backoff:** `resolveRateLimitWait` (`rateLimit.ts`) reads the response's `retry-after` (delta-seconds or HTTP-date) first, then falls back to the soonest `anthropic-ratelimit-*-reset` RFC-3339 timestamp; the fixed 15s/30s/60s ladder is the fallback only when no usable header is present. The SDK's own retries are disabled (`maxRetries: 0`) so this header-aware ladder is the only backoff. The CLI transport's `parseClaudeReset` text-regex sniffer is gone - Native sees the parsed JSON plus the rate-limit headers.
|
|
761
|
+
- HTTP 502, 503, 504 and 520 through 524, SDK connection failures/timeouts, and recognized dropped-socket errors use that same ladder and three-attempt limit. Operator cancellation is not retried. Exhaustion produces one plain notice that the conversation is intact and a short error, without the gateway's raw response body. Send another message to continue. HTTP 501, 505 and other existing non-retryable statuses keep their behavior.
|
|
762
|
+
- A retry preserves the request prefix and retracts partial streamed text before regenerating it. Native Task children use the same worker loop. End-of-turn `count_tokens` is best effort with no retry; COMPACT summary generation and Server Fold use their own failure/fallback paths.
|
|
757
763
|
- 413 / `request_too_large` → fail with a Handoff-recommendation system_notice. Don't retry.
|
|
758
764
|
- 400 / `invalid_request_error`, 403 / `permission_error`, 400 / `billing_error`, 404 / `not_found_error` → fail; don't retry.
|
|
759
765
|
|
|
@@ -1117,18 +1123,17 @@ Questions appear inline and under the composer's **? N QUESTIONS** button in
|
|
|
1117
1123
|
Agent and saved Chat. Multiple questions retain IDs, option descriptions,
|
|
1118
1124
|
freeform/secret flags and explicit submission (no default is automatically sent).
|
|
1119
1125
|
RPC answers return on the original request ID; async message answers enter the
|
|
1120
|
-
normal user-message/steer queue
|
|
1126
|
+
normal user-message/steer queue while the original turn remains active. DISMISS closes a question without an answer. A phone push already sent cannot be recalled.
|
|
1121
1127
|
Permission/command approvals still use the existing deterministic declines.
|
|
1122
1128
|
Exec is headless and has no question/reply bridge; choose APPSERVER in CONFIG.
|
|
1123
1129
|
|
|
1124
1130
|
`codex-appserver/operatorQuestions.ts` owns bounded live handles (16 per worker)
|
|
1125
1131
|
and publishes structured `operator_question` states through a server-injected
|
|
1126
|
-
publisher
|
|
1127
|
-
unwires. Events persist through the normal workflow broadcaster; secret answers
|
|
1132
|
+
publisher while the corresponding turn is active. Events persist through the normal workflow broadcaster; secret answers
|
|
1128
1133
|
are redacted before publishing. Incognito transport/privacy rules are unchanged.
|
|
1129
1134
|
RPC questions close on turn settlement or upstream `serverRequest/resolved`;
|
|
1130
|
-
async message cards
|
|
1131
|
-
retirement and connection death close pending handles. Late/duplicate replies
|
|
1135
|
+
async message cards close when their own thread and turn settle. Explicit cancel, worker
|
|
1136
|
+
retirement and connection death close pending handles. Dismissal returns empty answers on the original RPC before closing its card; a failed delivery leaves it pending. Late/duplicate replies
|
|
1132
1137
|
are rejected, and ordinary async replies cannot cross a changed provider/session.
|
|
1133
1138
|
Reconnect snapshots reconcile live questions and close orphaned replay cards
|
|
1134
1139
|
after a server restart. Pending cards stay hot within the existing 500-row cap.
|
package/docs/SETTINGS.md
CHANGED
|
@@ -149,7 +149,7 @@ folders, files, saved sessions or trust decisions. Missing locations stay listed
|
|
|
149
149
|
|
|
150
150
|
## Auto-compaction policy
|
|
151
151
|
|
|
152
|
-
The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Other transports cannot use this policy. Unknown context never triggers a summary. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
|
|
152
|
+
The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Other transports cannot use this policy. Unknown context never triggers a summary. For Claude Native and Codex app-server, after a successful automatic compaction, the next completed turn at or above the threshold can compact again. If three successive automatic compactions are each followed by a turn still at or above the threshold, a notice explains that compaction will continue. The notice can appear again after a turn ends below the threshold or COMPACT succeeds. A failed attempt waits for a reading more than five percentage points below the threshold before retrying. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
|
|
153
153
|
|
|
154
154
|
For Ollama, the new policy summarizes only verified completed executions outside the retained tail. The summary boundary is saved atomically in the workflow's `ollama-compact-boundary.json`, bound to project, workflow, session epoch and source events. Later turns and server restarts reuse a matching summary without rewriting raw events. Queued input is replayed in execution order, with the current prompt supplied once. Unverifiable legacy logs, partial or cancelled executions, changed source and unresolved input defer summarization with a notice. Ineffective or failed attempts wait for a lower context reading before retrying. The enabled policy defers automatic Handoff so it cannot rotate the session before the next pre-dispatch check; manual Handoff remains available. Explicit Off stops automatic compaction, including the legacy global automatic setting. Returning to Provider uses the 90% default unless an earlier global Ollama enabled or threshold setting is saved, in which case that setting remains in force. Manual COMPACT remains a next-turn action and uses the same durable boundary when a worker or Provider policy is active.
|
|
155
155
|
|
|
@@ -184,7 +184,9 @@ AUTO-PICKUP is a per-cluster control on the cluster right-panel header (default
|
|
|
184
184
|
Off), not a Settings page. Modes: Off, Rule-based (recommended deterministic wake on idle
|
|
185
185
|
mail with acknowledgement, loop and adjustable wake-budget guards), Smart: Observe-only (evaluator proposes wake / wait / ask; log only), and
|
|
186
186
|
Smart: Automatic (wake proposals may start a turn after server gates and
|
|
187
|
-
limits). 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.
|
|
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
|
+
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
|
+
|
|
188
190
|
Limits, session expiry, TURN OFF, STOP holds and counters
|
|
189
191
|
are described in the in-app manual section AUTO-PICKUP and Smart pickup and in
|
|
190
192
|
[cluster protocol](PROTOCOL_CLUSTER.md). Evaluator request contents and adapter
|
package/docs/TASK_LEDGER.md
CHANGED
|
@@ -480,3 +480,9 @@ Dispatch rechecks the current task assignment, dependencies, cluster membership,
|
|
|
480
480
|
board selection and worker availability under the ledger claim lock. Daemon claims
|
|
481
481
|
also check its enabled state and current run and sweep limits. The worker is
|
|
482
482
|
reserved during claim persistence, then receives the validated task in its turn.
|
|
483
|
+
|
|
484
|
+
## Cluster attention and REVIEW drawers
|
|
485
|
+
|
|
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.
|
|
487
|
+
|
|
488
|
+
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.
|
package/docs/VOICE.md
CHANGED
|
@@ -350,6 +350,8 @@ Samples report failures rather than silently playing the fallback voice.
|
|
|
350
350
|
|
|
351
351
|
`shared/src/protocol/voiceOperator.ts` defines the tool names;
|
|
352
352
|
`server/src/voice/toolDefinitions.ts` owns their schemas and descriptions.
|
|
353
|
+
Cluster routing recognizes Director and Coordinator role prefixes. An Advisor mentioning the Director remains an Advisor. Member names are a fallback only when no role is set.
|
|
354
|
+
|
|
353
355
|
Tools include `arco_condition`, `arco_compact`, `arco_activity`, `arco_mail_rule`, `arco_watch`, `arco_usage`, `arco_computer`, `arco_targets`,
|
|
354
356
|
`arco_select`, `arco_open_panel`, `arco_open` (settings / manual /
|
|
355
357
|
knowledge...), `arco_open_dialog` (nudge, broadcast, review, handoff, spawn,
|
|
@@ -46,6 +46,16 @@ export const ROLE_PRESETS = [
|
|
|
46
46
|
label: 'DOCUMENTER',
|
|
47
47
|
text: 'Documenter role. Read peer work via peer_read; write + update docs (README, guides, comments). Modify docs only.',
|
|
48
48
|
},
|
|
49
|
+
{
|
|
50
|
+
key: 'advisor',
|
|
51
|
+
label: 'ADVISOR',
|
|
52
|
+
text: 'Advisor role. Give the Director a second opinion on request; state doubts. No files, assignments or landing; peer_send.',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: 'designer',
|
|
56
|
+
label: 'DESIGNER',
|
|
57
|
+
text: 'Designer role. Own screen layout, states, wording and accessibility. Change UI files only; report via peer_send.',
|
|
58
|
+
},
|
|
49
59
|
];
|
|
50
60
|
export function normalizeClusterRoleText(text) {
|
|
51
61
|
const trimmed = text.trim();
|
|
@@ -49,7 +49,7 @@ export const SMART_PICKUP_LIMIT_SPECS = {
|
|
|
49
49
|
callsPerMemberHour: { default: 3, min: 1, max: 60, label: 'Evaluator requests per hour, each member', unit: 'per hour' },
|
|
50
50
|
wakesPerMemberHour: { default: 3, min: 1, max: 60, label: 'Automatic wakes per hour, each member', unit: 'per hour' },
|
|
51
51
|
wakesPerSession: { default: 12, min: 1, max: 200, label: 'Automatic wakes per armed session', unit: 'wakes' },
|
|
52
|
-
sessionMinutes: { default: 30, min: 5, max:
|
|
52
|
+
sessionMinutes: { default: 30, min: 5, max: 240, label: 'Armed session length', unit: 'minutes' },
|
|
53
53
|
timeoutSeconds: { default: 30, min: 5, max: 120, label: 'Evaluator time limit', unit: 'seconds' },
|
|
54
54
|
maxInputBytes: { default: 12288, min: 2048, max: 65536, label: 'Most mail and context sent per request', unit: 'bytes' },
|
|
55
55
|
maxOutputTokens: { default: 64, min: 16, max: 512, label: 'Longest evaluator answer', unit: 'tokens' },
|
|
@@ -58,12 +58,20 @@ export const SMART_PICKUP_LIMIT_KEYS = Object.keys(SMART_PICKUP_LIMIT_SPECS);
|
|
|
58
58
|
export const DEFAULT_SMART_PICKUP_LIMITS = Object.fromEntries(SMART_PICKUP_LIMIT_KEYS.map((k) => [k, SMART_PICKUP_LIMIT_SPECS[k].default]));
|
|
59
59
|
// Whole numbers within each limit's bounds; anything missing or invalid reads
|
|
60
60
|
// as the default, so a hand-edited file can never raise a limit past its max.
|
|
61
|
+
// Previously valid longer session lengths instead clamp to the new ceiling.
|
|
61
62
|
export function sanitizeSmartPickupLimits(raw) {
|
|
62
63
|
const r = raw && typeof raw === 'object' ? raw : {};
|
|
63
64
|
const out = { ...DEFAULT_SMART_PICKUP_LIMITS };
|
|
64
65
|
for (const key of SMART_PICKUP_LIMIT_KEYS) {
|
|
65
66
|
const spec = SMART_PICKUP_LIMIT_SPECS[key];
|
|
66
67
|
const value = r[key];
|
|
68
|
+
// Older saved sessions allowed up to eight hours. Preserve the chosen
|
|
69
|
+
// longer duration at the new four-hour ceiling instead of resetting it
|
|
70
|
+
// to the thirty-minute default when the saved limits are read again.
|
|
71
|
+
if (key === 'sessionMinutes' && typeof value === 'number' && Number.isInteger(value) && value > spec.max) {
|
|
72
|
+
out[key] = spec.max;
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
67
75
|
if (typeof value === 'number' && Number.isInteger(value) && value >= spec.min && value <= spec.max)
|
|
68
76
|
out[key] = value;
|
|
69
77
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AutomaticMessageKind } from './chat.js';
|
|
2
|
-
import type { OperatorQuestionReplyMessage } from './operatorQuestions.js';
|
|
2
|
+
import type { OperatorQuestionReplyMessage, OperatorQuestionDismissMessage } from './operatorQuestions.js';
|
|
3
3
|
import type { VoiceToolResultMessage, ComputerContextControlMessage } from './voiceOperator.js';
|
|
4
4
|
import type { HubLinkSetEnabledMessage } from './remoteManagement.js';
|
|
5
5
|
import type { ClusterAutoPickupSetMessage } from './autoPickup.js';
|
|
@@ -210,4 +210,4 @@ export interface DebugNativeAutoCompactProbeMessage {
|
|
|
210
210
|
contextPercent: number;
|
|
211
211
|
mode: 'off' | 'conservative' | 'aggressive';
|
|
212
212
|
}
|
|
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 | 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;
|
|
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;
|
|
@@ -152,11 +152,17 @@ export declare function isClaudeModelAlias(modelId: string): boolean;
|
|
|
152
152
|
export declare function claudeAliasFamily(modelId: string): 'opus' | 'sonnet' | 'haiku' | null;
|
|
153
153
|
export declare const CLAUDE_ALIAS_FALLBACK: Record<'opus' | 'sonnet' | 'haiku', string>;
|
|
154
154
|
export declare const CLAUDE_MODEL_EFFORTS: Record<string, EffortLevel[]>;
|
|
155
|
+
export type CliUpdateOutcome = 'updated' | 'current' | 'unchanged' | 'deferred' | 'manual' | 'failed';
|
|
155
156
|
export interface Capabilities {
|
|
156
157
|
efforts: EffortLevel[];
|
|
157
158
|
models: ModelName[];
|
|
158
159
|
cliVersion: string;
|
|
159
160
|
codexVersion?: string;
|
|
161
|
+
codexUpdate?: {
|
|
162
|
+
kind: 'standalone' | 'npm' | 'unknown';
|
|
163
|
+
updateAvailable: boolean;
|
|
164
|
+
instruction?: string;
|
|
165
|
+
};
|
|
160
166
|
cursorVersion?: string;
|
|
161
167
|
strataVersion?: string;
|
|
162
168
|
xolotlRevision?: string;
|
|
@@ -40,3 +40,15 @@ export interface OperatorQuestionReplyResultMessage {
|
|
|
40
40
|
ok: boolean;
|
|
41
41
|
error?: string;
|
|
42
42
|
}
|
|
43
|
+
export interface OperatorQuestionDismissMessage {
|
|
44
|
+
type: 'operator_question_dismiss';
|
|
45
|
+
workflowId: string;
|
|
46
|
+
requestId: string;
|
|
47
|
+
}
|
|
48
|
+
export interface OperatorQuestionDismissResultMessage {
|
|
49
|
+
type: 'operator_question_dismiss_result';
|
|
50
|
+
workflowId: string;
|
|
51
|
+
requestId: string;
|
|
52
|
+
ok: boolean;
|
|
53
|
+
error?: string;
|
|
54
|
+
}
|