arco-workbench 0.1.3 → 0.1.4
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 +1 -1
- package/README.md +5 -1
- package/client/dist/assets/{PhosphorBackdrop-CkVIGkeX.js → PhosphorBackdrop-CNumba2X.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DHF7CnpE.js → ThemedBackgroundShaderImpl-DX5KyCt3.js} +1 -1
- package/client/dist/assets/{XtermView-SY0UcZUS.js → XtermView-DhS5g8Rt.js} +1 -1
- package/client/dist/assets/{galleryEditor-Ca4F8HiM.js → galleryEditor-fPb76Cjv.js} +1 -1
- package/client/dist/assets/index-CjkHb-_n.js +592 -0
- package/client/dist/assets/index-DIbh3ae5.css +1 -0
- package/client/dist/index.html +2 -2
- package/client/src/App.tsx +2 -0
- package/client/src/alerts/desktopAlerts.ts +13 -1
- package/client/src/brief/briefFacts.ts +22 -0
- package/client/src/brief/briefFromStore.ts +7 -2
- package/client/src/components/ArtifactMoveDialog.tsx +64 -0
- package/client/src/components/BriefControl.tsx +38 -47
- package/client/src/components/CatchMeUp.tsx +25 -25
- package/client/src/components/CheckpointActions.tsx +7 -4
- package/client/src/components/ClusterComposerButtons.tsx +6 -3
- package/client/src/components/ClusterPlanTab.tsx +15 -1
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +6 -2
- package/client/src/components/ClusterTab.tsx +33 -3
- package/client/src/components/ClusterTaskBoardTab.tsx +62 -8
- package/client/src/components/DialogShell.tsx +115 -0
- package/client/src/components/DocsUpdateDialog.tsx +16 -42
- package/client/src/components/ForwardMessages.tsx +28 -32
- package/client/src/components/GitDialog.tsx +52 -52
- package/client/src/components/GitOtherWork.tsx +4 -2
- package/client/src/components/HandoffDialog.tsx +19 -45
- package/client/src/components/Home/HomeView.tsx +36 -8
- package/client/src/components/Home/home.css +7 -0
- package/client/src/components/KeepButton.tsx +23 -0
- package/client/src/components/MdTuneupDialog.tsx +52 -51
- package/client/src/components/MemberCard.tsx +4 -1
- package/client/src/components/MemberPane.tsx +1 -1
- package/client/src/components/NotificationCenter.tsx +4 -3
- package/client/src/components/NotificationChannelsSettings.tsx +25 -7
- package/client/src/components/PlanCandidateBanner.tsx +111 -57
- package/client/src/components/PlanComposerDialog.tsx +55 -87
- package/client/src/components/ProjectStateNotice.tsx +60 -0
- package/client/src/components/PublicProjectBox.tsx +25 -0
- package/client/src/components/ResearchDialog.tsx +15 -24
- package/client/src/components/ReviewDialog.tsx +32 -57
- package/client/src/components/RightPanel/OutputsPanel.tsx +4 -0
- package/client/src/components/RightPanel/PlanTab.tsx +24 -2
- package/client/src/components/RightPanel/UsageTab.tsx +77 -1
- package/client/src/components/SkillEditorDialog.tsx +38 -73
- package/client/src/components/SpawnDialog.tsx +19 -41
- package/client/src/components/StorageWarnings.tsx +21 -0
- package/client/src/components/SystemHeader.tsx +2 -2
- package/client/src/components/TerminalInput.tsx +6 -2
- package/client/src/components/TidyComposer.tsx +24 -41
- package/client/src/components/TranscriptSendDialog.tsx +151 -202
- package/client/src/components/UtilityAgentPicker.tsx +4 -2
- package/client/src/components/WorkflowCreator/index.tsx +2 -0
- package/client/src/components/WorkflowView.tsx +4 -1
- package/client/src/components/clusterNeedsYou.ts +35 -3
- package/client/src/components/compare/CompareDialog.tsx +26 -2
- package/client/src/components/terminalInput/planDraft.ts +33 -4
- package/client/src/components/utilityResult.ts +5 -1
- package/client/src/explorer/ExplorerApp.tsx +5 -2
- package/client/src/explorer/PlansLens.tsx +60 -19
- package/client/src/explorer/StorageLens.tsx +275 -0
- package/client/src/explorer/launch.ts +3 -3
- package/client/src/explorer/plansGrouping.ts +15 -0
- package/client/src/help/content/cluster.tsx +42 -7
- package/client/src/help/content/composer.tsx +26 -6
- package/client/src/help/content/header.tsx +16 -14
- package/client/src/help/content/misc.tsx +141 -6
- package/client/src/help/content/rightPanel.tsx +16 -0
- package/client/src/help/content/settings.tsx +4 -4
- package/client/src/help/manualSections/actions.tsx +19 -4
- package/client/src/help/manualSections/clusters.tsx +29 -16
- package/client/src/help/manualSections/configuration.tsx +6 -4
- package/client/src/help/manualSections/maintenance.tsx +27 -5
- package/client/src/help/manualSections/plans.tsx +96 -2
- package/client/src/help/manualSections/powerFeatures.tsx +2 -2
- package/client/src/help/manualSections/reference.tsx +6 -0
- package/client/src/help/manualSections/workspace.tsx +9 -5
- package/client/src/stores/appStore.ts +10 -1
- package/client/src/stores/appStore.types.ts +2 -0
- package/client/src/stores/mdTuneupStore.ts +5 -4
- package/client/src/stores/memoryTrim.ts +18 -2
- package/client/src/stores/storageWarningStore.ts +18 -0
- package/client/src/utils/gitDialogMemory.ts +26 -0
- package/client/src/utils/historyEvents.ts +1 -0
- package/client/src/utils/homeModel.ts +19 -0
- package/client/src/utils/publicProject.ts +56 -0
- package/client/src/ws/handleServerMessage.ts +7 -2
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CHECKPOINTS.md +2 -0
- package/docs/CLIENT.md +29 -11
- package/docs/FEATURES.md +14 -11
- package/docs/GETTING_STARTED.md +7 -7
- package/docs/GLOSSARY.md +3 -3
- package/docs/GOTCHAS.md +3 -2
- package/docs/HTTP_API.md +31 -1
- package/docs/NOTIFICATIONS.md +13 -14
- package/docs/OPERATIONS.md +27 -1
- package/docs/OPERATOR_ACTIONS.md +1 -1
- package/docs/OUTPUTS.md +9 -0
- package/docs/PERSISTENCE.md +34 -4
- package/docs/PLAN_OR_BOARD.md +7 -0
- package/docs/PRIMITIVES.md +3 -3
- package/docs/PROTOCOL.md +14 -4
- package/docs/PROTOCOL_CLUSTER.md +3 -2
- package/docs/SERVICE_MODE.md +5 -1
- package/docs/SETTINGS.md +8 -6
- package/docs/STORAGE_PLAN.md +324 -0
- package/docs/TASK_LEDGER.md +5 -4
- package/native/linux-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/index.d.ts +2 -0
- package/node_modules/@arco/shared/dist/index.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +1 -1
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -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/mdTuneup.d.ts +6 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/notifications.js +3 -2
- package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/storage.d.ts +21 -0
- package/node_modules/@arco/shared/dist/protocol/storage.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +3 -0
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +2 -2
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +2 -2
- package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +7 -0
- package/node_modules/@arco/shared/dist/publicGuardrails.js +47 -0
- package/node_modules/@arco/shared/dist/publicSafetyRules.d.ts +1 -0
- package/node_modules/@arco/shared/dist/publicSafetyRules.js +6 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +3 -2
- package/scripts/packaging/arco.mjs +17 -1
- package/scripts/packaging/services.mjs +35 -5
- package/scripts/packaging/storage.mjs +125 -0
- package/scripts/packaging/update.mjs +3 -3
- package/server/dist/artifactCopy.d.ts +26 -0
- package/server/dist/artifactCopy.js +398 -0
- package/server/dist/atomicFile.d.ts +1 -0
- package/server/dist/atomicFile.js +1 -1
- package/server/dist/attention.d.ts +1 -1
- package/server/dist/attention.js +10 -13
- package/server/dist/catchUp.d.ts +2 -0
- package/server/dist/catchUp.js +46 -23
- package/server/dist/clusterPeerOps.d.ts +2 -0
- package/server/dist/clusterPeerOps.js +2 -0
- package/server/dist/clusterSnapshots.js +22 -12
- package/server/dist/eventLog.d.ts +55 -0
- package/server/dist/eventLog.js +792 -0
- package/server/dist/explorerLaunch.d.ts +4 -1
- package/server/dist/explorerLaunch.js +3 -2
- package/server/dist/explorerPlans.d.ts +4 -0
- package/server/dist/explorerPlans.js +27 -2
- package/server/dist/http/clusterRoutes.js +2 -0
- package/server/dist/http/explorerRoutes.js +2 -1
- package/server/dist/http/publicProjectRoutes.d.ts +2 -0
- package/server/dist/http/publicProjectRoutes.js +68 -0
- package/server/dist/http/router.js +6 -0
- package/server/dist/http/storageRoutes.d.ts +2 -0
- package/server/dist/http/storageRoutes.js +254 -0
- package/server/dist/http/usageStatsRoutes.js +3 -12
- package/server/dist/index.js +4 -0
- package/server/dist/keepStore.d.ts +16 -0
- package/server/dist/keepStore.js +119 -0
- package/server/dist/management/clusterActivity.js +6 -20
- package/server/dist/management/initHubLink.js +10 -43
- package/server/dist/mcp/clusterMcpTools.js +8 -1
- package/server/dist/notifications.d.ts +3 -1
- package/server/dist/notifications.js +5 -4
- package/server/dist/outputStore.d.ts +1 -0
- package/server/dist/outputStore.js +1 -1
- package/server/dist/outputs.js +39 -8
- package/server/dist/planHistory.d.ts +3 -0
- package/server/dist/planHistory.js +60 -0
- package/server/dist/primitives/runMdTuneup.d.ts +5 -1
- package/server/dist/primitives/runMdTuneup.js +43 -2
- package/server/dist/project/taskLedger.d.ts +4 -0
- package/server/dist/project/taskLedger.js +19 -0
- package/server/dist/providers/claude-native/peerTools.js +4 -0
- package/server/dist/providers/claude-native/resumeSummary.js +30 -19
- package/server/dist/providers/index.js +8 -13
- package/server/dist/providers/localProviderQueue.d.ts +2 -0
- package/server/dist/providers/localProviderQueue.js +11 -0
- package/server/dist/publicProject.d.ts +54 -0
- package/server/dist/publicProject.js +135 -0
- package/server/dist/recall/index.js +22 -23
- package/server/dist/server/broadcast.d.ts +2 -1
- package/server/dist/server/broadcast.js +56 -1
- package/server/dist/smartPickupAdapters.d.ts +7 -0
- package/server/dist/smartPickupAdapters.js +172 -8
- package/server/dist/storageActions.d.ts +50 -0
- package/server/dist/storageActions.js +326 -0
- package/server/dist/storageArchive.d.ts +24 -0
- package/server/dist/storageArchive.js +358 -0
- package/server/dist/storageOverview.d.ts +47 -0
- package/server/dist/storageOverview.js +197 -0
- package/server/dist/storageReport.d.ts +48 -0
- package/server/dist/storageReport.js +185 -0
- package/server/dist/storageWarnings.d.ts +4 -0
- package/server/dist/storageWarnings.js +96 -0
- package/server/dist/workers/limits.js +4 -1
- package/server/dist/workflowStore.d.ts +2 -0
- package/server/dist/workflowStore.js +88 -72
- package/server/dist/workflows/purgeWorkflow.d.ts +1 -0
- package/server/dist/workflows/purgeWorkflow.js +15 -2
- package/server/dist/workflows/sessionDiscovery.js +5 -17
- package/server/dist/workflows/sessionIndex.js +22 -17
- package/server/dist/ws/taskLedgerHandlers.js +8 -3
- package/server/dist/ws/workflowHandlers.js +5 -4
- package/server/package.json +1 -1
- package/server/src/artifactCopy.ts +254 -0
- package/server/src/atomicFile.ts +1 -1
- package/server/src/attention.ts +9 -10
- package/server/src/catchUp.ts +37 -15
- package/server/src/clusterPeerOps.ts +5 -0
- package/server/src/clusterSnapshots.ts +20 -13
- package/server/src/eventLog.ts +571 -0
- package/server/src/explorerLaunch.ts +3 -2
- package/server/src/explorerPlans.ts +22 -2
- package/server/src/http/clusterRoutes.ts +4 -1
- package/server/src/http/explorerRoutes.ts +2 -1
- package/server/src/http/publicProjectRoutes.ts +54 -0
- package/server/src/http/router.ts +4 -0
- package/server/src/http/storageRoutes.ts +187 -0
- package/server/src/http/usageStatsRoutes.ts +3 -11
- package/server/src/index.ts +4 -0
- package/server/src/keepStore.ts +102 -0
- package/server/src/management/clusterActivity.ts +6 -16
- package/server/src/management/initHubLink.ts +10 -39
- package/server/src/mcp/clusterMcpTools.ts +8 -2
- package/server/src/notifications.ts +4 -3
- package/server/src/outputStore.ts +5 -2
- package/server/src/outputs.ts +30 -6
- package/server/src/planHistory.ts +48 -0
- package/server/src/primitives/runMdTuneup.ts +32 -2
- package/server/src/project/taskLedger.ts +20 -0
- package/server/src/providers/claude-native/peerTools.ts +4 -0
- package/server/src/providers/claude-native/resumeSummary.ts +32 -18
- package/server/src/providers/index.ts +2 -16
- package/server/src/providers/localProviderQueue.ts +13 -0
- package/server/src/publicProject.ts +142 -0
- package/server/src/recall/index.ts +4 -9
- package/server/src/server/broadcast.ts +53 -1
- package/server/src/smartPickupAdapters.ts +128 -5
- package/server/src/storageActions.ts +216 -0
- package/server/src/storageArchive.ts +277 -0
- package/server/src/storageOverview.ts +184 -0
- package/server/src/storageReport.ts +210 -0
- package/server/src/storageWarnings.ts +84 -0
- package/server/src/workers/limits.ts +4 -1
- package/server/src/workflowStore.ts +78 -61
- package/server/src/workflows/purgeWorkflow.ts +12 -3
- package/server/src/workflows/sessionDiscovery.ts +5 -13
- package/server/src/workflows/sessionIndex.ts +5 -9
- package/server/src/ws/taskLedgerHandlers.ts +8 -3
- package/server/src/ws/workflowHandlers.ts +5 -4
- package/shared/dist/index.d.ts +2 -0
- package/shared/dist/index.js +2 -0
- package/shared/dist/protocol/autoPickup.d.ts +1 -1
- package/shared/dist/protocol/autoPickup.js +1 -1
- package/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/shared/dist/protocol/clusters.d.ts +2 -1
- package/shared/dist/protocol/index.d.ts +1 -0
- package/shared/dist/protocol/index.js +1 -0
- package/shared/dist/protocol/mdTuneup.d.ts +6 -0
- package/shared/dist/protocol/notifications.d.ts +2 -1
- package/shared/dist/protocol/notifications.js +3 -2
- package/shared/dist/protocol/plans.d.ts +2 -0
- package/shared/dist/protocol/serverMessages.d.ts +2 -1
- package/shared/dist/protocol/storage.d.ts +21 -0
- package/shared/dist/protocol/storage.js +3 -0
- package/shared/dist/protocol/tasks.d.ts +3 -0
- package/shared/dist/protocol/utilityAgent.d.ts +2 -2
- package/shared/dist/protocol/utilityAgent.js +2 -2
- package/shared/dist/publicGuardrails.d.ts +7 -0
- package/shared/dist/publicGuardrails.js +47 -0
- package/shared/dist/publicSafetyRules.d.ts +1 -0
- package/shared/dist/publicSafetyRules.js +6 -0
- package/shared/src/index.ts +3 -0
- package/shared/src/protocol/autoPickup.ts +1 -1
- package/shared/src/protocol/checkpoints.ts +4 -0
- package/shared/src/protocol/clusters.ts +6 -1
- package/shared/src/protocol/index.ts +1 -0
- package/shared/src/protocol/mdTuneup.ts +5 -0
- package/shared/src/protocol/notifications.ts +6 -2
- package/shared/src/protocol/plans.ts +2 -0
- package/shared/src/protocol/serverMessages.ts +2 -0
- package/shared/src/protocol/storage.ts +35 -0
- package/shared/src/protocol/tasks.ts +6 -0
- package/shared/src/protocol/utilityAgent.ts +2 -2
- package/shared/src/publicGuardrails.ts +50 -0
- package/shared/src/publicSafetyRules.ts +5 -0
- package/client/dist/assets/index-CcNtMA2y.js +0 -546
- package/client/dist/assets/index-Dl8tYsSp.css +0 -1
package/docs/CLIENT.md
CHANGED
|
@@ -38,7 +38,7 @@ This doc covers the store, components, render pipeline, theme + shader system, a
|
|
|
38
38
|
|
|
39
39
|
1. **`bootstrapCachedTheme`** - synchronous. Reads the cached `themeId` from localStorage and applies CSS vars to `:root` before React mounts. This avoids the 100-500 ms flash of default Phosphor Electric Blue (`phosphor:arco:electric`) colors that was happening when theme apply ran post-mount.
|
|
40
40
|
2. **Terminal pop-out branch** - there is no router. `main.tsx` reads `?popoutTerminal=<sessionId>` from `window.location.search`; if present it renders a standalone `<TerminalPopout/>` (no app stores, no `/ws`) **instead of** `<App/>`. The bootstrap above still runs first, so the pop-out inherits the operator's theme. See [`TERMINAL.md`](TERMINAL.md).
|
|
41
|
-
3. **ARTIFACTS explorer branch** - `main.tsx` also reads `?app=explorer`; when set it renders the standalone chromeless `<ExplorerApp/>` (the
|
|
41
|
+
3. **ARTIFACTS explorer branch** - `main.tsx` also reads `?app=explorer`; when set it renders the standalone chromeless `<ExplorerApp/>` (the project-artifact, plans and storage window) instead of `<App/>`, parallel to the terminal pop-out. Theme bootstrap still runs first so the window inherits the operator's theme.
|
|
42
42
|
4. **`createRoot(...).render(<App />)`** - mount the app (or the pop-out / explorer, per the branches above). The two standalone entries mount no workflow store; when the Phosphor family is active with effects on they share only a lazy `PhosphorBackdrop`.
|
|
43
43
|
|
|
44
44
|
`App.tsx` then:
|
|
@@ -300,7 +300,7 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
|
|
|
300
300
|
On rehydrate, `onRehydrateStorage` also strips persisted streaming flags, drops queued optimistic entries older than 30 s, and dedupes any `peer-sent-<msgId>` / `peer-recv-<msgId>` rows that earlier builds (pre-intake-dedup) accidentally duplicated.
|
|
301
301
|
|
|
302
302
|
**Hard caps** to prevent memory regressions:
|
|
303
|
-
- `MAX_CHAT_MESSAGES = 500` per job
|
|
303
|
+
- `MAX_CHAT_MESSAGES = 500` per job. System rows and tool cards are preferred when trimming but take at most half the window (`MAX_PREFERRED_SHARE`), so user and assistant messages survive on long-running tabs; do not remove the cap. A persisted chat that holds only system rows and tool cards (100 or more) is emptied on rehydrate and its `lastSeq` reset, so the server sends its recent tail.
|
|
304
304
|
- `MAX_WORKER_OUTPUT_BYTES_CLIENT = 256 KB` per worker
|
|
305
305
|
- `MAX_ACTIVITY_ENTRIES = 500` per job (raised from 80 - tool-heavy turns were truncating the live feed before settle)
|
|
306
306
|
|
|
@@ -478,7 +478,8 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
|
|
|
478
478
|
- **`RunAsPicker`** - shared provider / model / effort picker used by `GitDialog` and `DocsUpdateDialog`. Exports `spawnConfigFromRunAs(parentConfig, selection, nameSuffix)` which inherits the parent config but overrides primary fields, suffixes the workflow name, and clears `resumeSessionId/resumeWorkflowId` so the new tab is fresh. When the picker selection matches the parent's current primary the dialog dispatches in-tab via `onConfirm(prompt)`; when changed it calls `onSpawn(newConfig, prompt, false)`. `ReviewDialog` and `SpawnDialog` have their own embedded pickers and could adopt this shared component to dedupe ~80 LOC each.
|
|
479
479
|
- **`NotificationToasts`** - top-right toast stack subscribed to `appStore.notifications`. Auto-dismisses 6 s after `createdAt`; backed by `pushNotification` / `dismissNotification` actions. The WS `error` handler is the primary producer so cluster-action rejections (Native fence, sandbox 503, etc.) surface regardless of which tab is focused.
|
|
480
480
|
- **`PlanBodyRenderer`** (2026-05-11; top-level `components/PlanBodyRenderer.tsx`) - shared rich plan renderer extracted from the former inline `PlanBody`. Renders H1/H2/H3 styling, clickable `- [ ]` / `- [x]` checkboxes (optimistic toggle), per-H3 action pill rows, and exports `CHECKBOX_RE` for host components. Used by both the per-worker PLAN tab (`RightPanel/PlanTab.tsx`) and `ClusterPlanTab.tsx` so the two surfaces stay visually identical. Action-pill set varies per host (worker plan: DETACH / PROMOTE / MOVE / DONE; cluster plan: none - the cluster plan IS the cluster plan). On a cluster-member plan whose board is attached it also renders a `-> TASK` pill next to each unchecked item (`onPromoteTask`) that promotes the item text into a durable board task (`task_ledger_create`).
|
|
481
|
-
- **`PlanCandidateBanner`** -
|
|
481
|
+
- **`PlanCandidateBanner`** - REFINE (shown when the host passes `onSend`) opens a note field and `beginPlanRefine` (`terminalInput/planDraft.ts`) sends a `plan-review` turn carrying the current draft and the note; the reply replaces `planCandidate`, the old draft stays until then, the buttons are disabled while `pendingPlanCapture` is set, and nothing is saved until attach. Mounts between chat and composer when `job.planCandidate` is set. Captures from the latest finalized assistant message at `primary_complete` time; `turn_cancelled` clears `pendingPlanCapture` so a stale flag doesn't capture an unrelated later reply. Cluster-member tabs offer `ATTACH TO CLUSTER` as the only save button, with `REFINE` and `DISCARD` (resolved by `App.tsx` from the member's `clusterId`). A detection-based fallback in `ws/handleServerMessage.ts` (`looksLikePlan` from `ws/streamState.ts`: H1 + ≥3 checkbox lines) surfaces the banner in `review` mode even when the operator didn't click PLAN before sending.
|
|
482
|
+
- **`PublicProjectBox`, `ProjectStateNotice`, INSERT GUARDRAILS** - the public-project guardrails. `PublicProjectBox` (`utils/publicProject.ts`) is the "This project is public (or will be)" checkbox in the cluster creator, beside DRAFT A PLAN and in the PLAN dialog; the choice is stored per project folder in localStorage (`arco.publicProject.<folder>`) and `effectivePublic` feeds `planDraftPrompt`/`beginPlanReview`, which append the shared template request from `@arco/shared` (`publicGuardrails.ts`) only when true. A confirmed-public GitHub remote (`GET /api/public-project/remote`) pre-ticks the box with a visible reason; an explicit choice wins. INSERT GUARDRAILS in `ClusterPlanTab` and `RightPanel/PlanTab` calls `insertGuardrails` and leaves an unsaved edit; it is disabled when `hasGuardrails` is true. `ProjectStateNotice` (in `ClusterTab` and `WorkflowView`, skipped for isolated members) reads `GET /api/public-project/state` and offers RESTORE IGNORE FILE and STOP TRACKING; dismissal is stored per folder (`arco.projectStateNotice.<folder>`).
|
|
482
483
|
- **`AskUserQuestionNotice`** - inline reply form rendered by `ChatMessage` when it detects the `[ASK:claude-native:<questionId>]` sentinel a Native worker emits via `system_notice`. Parses an `[ASK_OPTIONS:opt1 | opt2]` line into option chips; otherwise renders a text input. Submits `ask_user_question_reply { workflowId, questionId, reply }` via `wsSendRaw`; the worker resolves the awaiting tool-result Promise.
|
|
483
484
|
- **`GateApprovalNotice`** (Native-only v1; see [PRIMITIVES.md](PRIMITIVES.md)) - the inline edit-then-approve card `ChatMessage` renders when it sees a synthetic `gate::<gateId>` row (`message.toolUse.tool === 'Gate'`) that the `gate_required` broadcast anchored into chat. Shows the parked sensitive tool call (Bash command line, or pretty-JSON for other tools) with an editable textarea (edit-then-approve), APPROVE / REJECT (sends `gate_reply` via `wsSendRaw`), and an "approve all like this" checkbox. `gate_resolved` flips the row's status in-place (`resolveGate`); standing approvals arrive via `gate_standing` -> `setStandingGateApprovals` and render + revoke (per-row `gate_revoke`) inside `ClaudeNativeReviewSafeModeSection` in CONFIG. Arg helpers live in `client/src/utils/gateArgs.ts` (`buildGateFinalArgs` / `renderGateArgs`). Gated behind the per-tab `reviewSafeMode` flag (default off).
|
|
484
485
|
- **`HistoryTab`** - covered in detail under the right-panel section below.
|
|
@@ -933,6 +934,7 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
|
|
|
933
934
|
|
|
934
935
|
## Dialogs
|
|
935
936
|
|
|
937
|
+
- **`DialogShell`** (`components/DialogShell.tsx`) - the shared layout for operator dialogs opened from the composer and the top bar. Portals into `document.body` so no composer or chat ancestor can clip or cover it; renders the opaque dialog surface, a header with the title and a close button (x), a scrolling body, an optional status line (result or error) that stays visible, and actions at the bottom right. Escape and the header close button dismiss it; backdrop clicks close only when `closeOnBackdrop` is set. Used by TIDY, CATCH ME UP, BRIEF, FORWARD, SEND TRANSCRIPT and the composer's GIT, SPAWN, HANDOFF (ROTATE SESSION), REVIEW, PLAN, DOCS, TUNE UP, DEEP RESEARCH and SKILL editor dialogs, so all of them share the header close button, status line and bottom-right actions. `bodyRef` and `onBodyScroll` let a dialog (GIT) remember its scroll position.
|
|
936
938
|
- **`PlanComposerDialog`** - opens from PLAN button in the composer. Two paths, both inject the same synthesize-from-context prompt: "Draft -> I'll review" arms `pendingPlanCapture: 'review'` (banner offers SAVE & ATTACH / DISCARD on the next primary_complete); "Draft & auto-save" arms `'autosave'` (banner self-fires the save and clears). Cluster member review drafts and detected plan-shaped replies show the same banner in the member pane; attaching to the worker or cluster requires an explicit choice. Cluster auto-save requests also offer this choice. Title is extracted from the captured body via `# Heading` -> first non-empty line -> `Plan from <date>` fallback.
|
|
937
939
|
- **`PlanCandidateBanner`** (between chat and composer) - renders only when `job.planCandidate` is set. Captures from the latest finalized assistant message in `job.messages` at `primary_complete` time. `turn_cancelled` clears `pendingPlanCapture` so a stale flag doesn't capture an unrelated later reply.
|
|
938
940
|
- **`ReviewDialog`** - opens from REVIEW button. Picks reviewer (provider/model/effort, including `llamacpp`), scope (`last-turn` / `last-n` / `current-session` / `full` / `git-diff`), include-git-diff. Sends `review_request`. **Plan-scoped variant:** when `prefilledPlanRef + prefilledScopeLabel` props are set (from `PlanTab`), the SCOPE row collapses to a locked label ("PLAN: ...") and a MODE row (VERIFY / CRITIQUE) appears. **Since-event variant:** when `prefilledSinceEventRef` is set (from `HistoryTab`), the SCOPE row collapses to a locked `FROM hh:mm:ss - <label>` chip and the plan-mode picker is hidden. The Claude model row reads the live polled `claudeNativeCatalog` when present (with display names + per-model effort gating), falling back to the static `CLAUDE_MODELS` aliases when no Native auth has fetched a catalog yet - same pattern as `WorkflowCreator`. A useEffect clamps the model state to a value in the current pill set (catches the dialog opening before catalog arrives, then reconciling once it lands). VERIFY WORK / VERIFY PHASE WORK pass `initialIncludeGitDiff: true` so the toggle pre-ticks; default-undefined leaves it off for plain reviews.
|
|
@@ -940,8 +942,8 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
|
|
|
940
942
|
- **`HandoffDialog`** - opens from HANDOFF button. Picks mode (`quick` / `original-worker` / `fresh-summarizer`), optional writer effort and newPrimary swap. Sends `handoff_request`.
|
|
941
943
|
- **`SpawnDialog`** - opens from SPAWN button. Pre-fills parent config, lets operator override + add a `new direction:` prompt. Sends `spawn_from_here_request`. New tab auto-activates on completion.
|
|
942
944
|
- **`DocsUpdateDialog`** - opens from `✎ DOCS` composer button. Sends a structured prompt to update repo markdown docs (README / DEVLOG / AGENTS.md / `docs/**/*.md`). Hard-coded constraint: agent must not modify anything under `.arco/plans/`. Optional operator note. Embeds `RunAsPicker`; routes via `onConfirm` (in-tab) or `onSpawn` (new tab) based on the picker selection.
|
|
943
|
-
- **`GitOtherWork`** (`components/GitOtherWork.tsx`) - collapsed "Other work" section inside `GitDialog`; reads `GET /api/git/other-work` when first opened and lists other worktrees and branches (tab match by workflow cwd or assigned task worktree, ahead/behind, uncommitted count, open PR). Read-only; VIEW CHANGES calls `requestWorktreeView` (`utils/worktreeNavigation.ts`), which opens the FILES CHANGES view and selects that worktree in `useWorktreeSelection`.
|
|
944
|
-
- **`GitDialog`** - opens from `⎇ GIT` composer button. Live git status (current branch, ahead/behind, dirty count) fetched on open via `GET /api/git/status`. Branch dropdown + inline `+ NEW BRANCH` form (server-side dirty-tree refusal on switch via `POST /api/git/checkout`). Action picker (commit / commit-push / commit-push-pr); PR auto-disabled with no GitHub remote; smart default `inferDefaultAction(status)`. Protected-branch warnings via `/^(main|master|release\/.*|prod|production)$/i`. Per-repo localStorage prefs at `arco.gitDialog.prefs.${cwd}`. Builds a structured prompt with branch context, action steps, pause-and-ask rules, expected deliverables. Embeds `RunAsPicker` for in-tab vs new-tab routing.
|
|
945
|
+
- **`GitOtherWork`** (`components/GitOtherWork.tsx`) - collapsed "Other work" section inside `GitDialog`; reads `GET /api/git/other-work` when first opened and lists other worktrees and branches (tab match by workflow cwd or assigned task worktree, ahead/behind, uncommitted count, open PR). Read-only; VIEW CHANGES calls `requestWorktreeView` (`utils/worktreeNavigation.ts`), which opens the FILES CHANGES view and selects that worktree in `useWorktreeSelection`. The open/closed state is controlled by `GitDialog` so it survives the close that VIEW CHANGES triggers.
|
|
946
|
+
- **`GitDialog`** - opens from `⎇ GIT` composer button. Live git status (current branch, ahead/behind, dirty count) fetched on open via `GET /api/git/status`. Branch dropdown + inline `+ NEW BRANCH` form (server-side dirty-tree refusal on switch via `POST /api/git/checkout`). Action picker (commit / commit-push / commit-push-pr); PR auto-disabled with no GitHub remote; smart default `inferDefaultAction(status)`. Protected-branch warnings via `/^(main|master|release\/.*|prod|production)$/i`. Per-repo localStorage prefs at `arco.gitDialog.prefs.${cwd}`. Closing without sending (including through VIEW CHANGES) keeps the dialog's state in `utils/gitDialogMemory.ts` (in memory, per workflow: run-as choice, SHOW OTHER WORK, scroll position, branch, new-branch form, action, commit subject and scope notes), restored on the next open in that tab until a request is sent or the tab closes. Builds a structured prompt with branch context, action steps, pause-and-ask rules, expected deliverables. Embeds `RunAsPicker` for in-tab vs new-tab routing.
|
|
945
947
|
- **`RunAsPicker`** - shared provider/model/effort picker used by `GitDialog` and `DocsUpdateDialog`. Compares its selection against the parent's current primary; if matched, dialog dispatches in-tab via `onConfirm(prompt)`; if changed, dialog calls `onSpawn(spawnConfigFromRunAs(parentConfig, runAs, suffix), prompt, false)`. The `spawnConfigFromRunAs` helper inherits the parent config but overrides primary fields, suffixes the workflow name, and clears `resumeSessionId/resumeWorkflowId` so the new tab is fresh. Reset arrow snaps back to the current primary. ReviewDialog and SpawnDialog have their own embedded pickers and could adopt this shared component to dedupe ~80 LOC each.
|
|
946
948
|
- **`LlamacppCatalogEditor`** - embedded in `SettingsPanel` when llama.cpp is enabled. Wholesale-replace pattern (fetch full catalog, edit in-place, POST entire new catalog) - same as `models.md` editor. Exposes per-row alias / ggufPath / mmprojPath / ctxSize / ngl / capability flags. Per-row Load / Unload buttons hit the lifecycle manager (`POST /api/llamacpp-load`, `POST /api/llamacpp-unload`); "Load now" pre-warms the binary so the next workflow turn doesn't pay the 20-30s cold-start. Preserves `chatTemplate` and `extraArgs` across edits even though the form doesn't expose them.
|
|
947
949
|
- **`FileViewerModal`** - opens from clicking a file path in a tool-call pill or the file explorer. Portaled to `document.body` via `createPortal` so `position: fixed` escapes the chat virtualizer's transformed ancestor. Hosts the A6 editor (`editor/CodeEditor.tsx`, a CodeMirror 6 wrapper) under EDIT/LOCK + SAVE, and - when opened with an `editContext.workflowId` - the **A7 AI-edit affordance** (below). Filenames in replies open it too: inline code, links, headings, images and a filename alone on a line always link; a filename inside a sentence links only when it matches a file the agent wrote or one in the workflow's artifacts folder (`utils/chatFileLinks.ts`). Relative names are sent as written and the server (`GET /api/file-content`) resolves them against the project folder, then the artifacts folder, and returns `resolvedPath`; the viewer header shows that path, and a missing file is reported as `File not found: <name>`. Windows drive and UNC paths are used as given.
|
|
@@ -973,7 +975,7 @@ These are full-screen gates that block UI when something critical is happening:
|
|
|
973
975
|
|
|
974
976
|
**Command palette (`CommandPalette.tsx`, Workbench Expansion A5).** A `Cmd/Ctrl+P` fuzzy palette mounted in `App.tsx` (the hotkey `preventDefault`s so it doesn't trigger the browser Print dialog; Esc closes, arrows/Enter navigate). Four live sources: (a) active-workflow transcript rows - activating one switches tab + calls the existing `flashChatMessage` which drives `ChatPanel`'s virtualizer `scrollToIndex`; (b) top-level files under cwd (`GET /api/files`); (c) open workflows/tabs; (d) commands (new tab / Settings / Manual / GitHub). Fuzzy matching is a hand-rolled subsequence scorer (no `fuse.js` dep). **Content search** is a separate server path: the palette can query `GET /api/search/content?wfid&q` -> `server/src/contentSearch.ts` `searchContent` (a reusable `rg --json` engine, decoupled from HTTP so F3/Recall reuses it; respects `SKIP_DIRS`, degrades to `{available:false}` when `rg` isn't on PATH); content hits open in `FileViewerModal`. (Deferred niceties: recursive file walk, line-anchored viewer scroll.)
|
|
975
977
|
|
|
976
|
-
**Compare primitive (`components/compare/`,).** A bounded fan-out-and-vote surface: now **SECOND OPINION**: the operator types a question (or selects chat messages) and picks N models (each a `{provider, model, effort}` via the shared `RunAsPicker`); each drafts, independently and read-only, the reply the operator could send to the worker,
|
|
978
|
+
**Compare primitive (`components/compare/`,).** A bounded fan-out-and-vote surface: now **SECOND OPINION**: the operator types a question (or selects chat messages) and picks N models (each a `{provider, model, effort}` via the shared `RunAsPicker`); each drafts, independently and read-only, the reply the operator could send to the worker, with recent turns by default when no messages are selected, optional read-only file access off by default, and a summary of the context. The operator votes, optionally SYNTHESIZEs, and **USE THIS REPLY** puts the draft in the worker's composer (nothing is sent). Per-model picks are tallied locally. State lives in the standalone **`stores/compareStore.ts`** (kept out of `appStore`, like `docEditStore`/`recallStore`), driving two globally-mounted App.tsx surfaces: **`CompareDialogHost`** (wraps `CompareDialog` - the prompt + per-leg `RunAsPicker` rows + a `blind` flag that hides leg identities until the vote) and **`CompareOverlay`** (the live run - **`CompareGrid`** of side-by-side answer panes cloned from `MemberPane`'s structure, plus **`CompareVote`** which reveals the winner and offers a synthesize step). Launched from the **SECOND OPINION** button in `TerminalInput` (wiring in `components/terminalInput/compare.ts`); `COMPARE_MIN_LEGS`/`COMPARE_MAX_LEGS` from `@arco/shared` bound the leg count. See `docs/PRIMITIVES.md` / `docs/PROTOCOL_PRIMITIVES.md`.
|
|
977
979
|
---
|
|
978
980
|
|
|
979
981
|
## Hooks
|
|
@@ -1048,7 +1050,7 @@ ClusterTab (App.tsx routes here when activeClusterId set)
|
|
|
1048
1050
|
|
|
1049
1051
|
**NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
|
|
1050
1052
|
|
|
1051
|
-
**AUTO-PICKUP control.** Operator-armed per-cluster chip in `ClusterRightPanel`'s header, next to the MAIL ALERTS chip. Default Off. The dialog sets a mode through `cluster_auto_pickup_set`: Off, Rule-based (recommended), Smart: Observe-only, or Smart: Automatic. Rule-based uses the detector in `server/src/clusterAutoTurn.ts` with acknowledgement filtering and adjustable wake-budget guards. Smart modes ask an operator-chosen evaluator (Claude Native, Cursor, Codex, or
|
|
1053
|
+
**AUTO-PICKUP control.** Operator-armed per-cluster chip in `ClusterRightPanel`'s header, next to the MAIL ALERTS chip. Default Off. The dialog sets a mode through `cluster_auto_pickup_set`: Off, Rule-based (recommended), Smart: Observe-only, or Smart: Automatic. Rule-based uses the detector in `server/src/clusterAutoTurn.ts` with acknowledgement filtering and adjustable wake-budget guards. Smart modes ask an operator-chosen evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl) through `server/src/smartPickup*.ts`. Older clients and the remote console still send `cluster_auto_turn_toggle`; `enabled: true` maps to Rule-based and `false` to Off. Distinct from the idle nudger: the nudger is toast-only and never sends prompts to workers; AUTO-PICKUP can dispatch turns when Rule-based or Smart Automatic is armed. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) and [SETTINGS.md](SETTINGS.md#auto-pickup).
|
|
1052
1054
|
|
|
1053
1055
|
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on any Native Claude tab opens `TabContextMenu` (a new component scoped to this single use) with "Add to cluster with..." + a multi-select checkbox list of other Native Claude tabs in the same cwd. Confirm dispatches `cluster_create`. × on a cluster tab confirms tear-down via `cluster_delete`.
|
|
1054
1056
|
|
|
@@ -1082,7 +1084,7 @@ workflow/provider session. ISOLATED forces Claude Native and disables both
|
|
|
1082
1084
|
transfer checkboxes. `AddWorkerSection` exposes the same posture picker for
|
|
1083
1085
|
fresh members; roster rows badge non-standard modes.
|
|
1084
1086
|
|
|
1085
|
-
**`PlanCandidateBanner` cluster surface.** When the active workflow is a cluster member, the banner
|
|
1087
|
+
**`PlanCandidateBanner` cluster surface.** When the active workflow is a cluster member, the banner offers `ATTACH TO CLUSTER` as its only save button (standalone tabs get `SAVE & ATTACH`). `App.tsx` resolves the member's `clusterId` once and only threads the prop on cluster-member tabs; the button is absent on standalone workflows. Click -> persists the plan record per-cwd, then routes the body to the cluster's shared PLAN via `cluster_plan_set` (skipping the per-worker attach). Operator-side semantics in [`PRIMITIVES.md-attached plan + role hints`](PRIMITIVES.md).
|
|
1086
1088
|
|
|
1087
1089
|
**`TerminalInput` - BACK TO CLUSTER button.** Status row, immediately left of `SKILLS`. Only mounts when the active workflow is a cluster member. Click -> `setActiveCluster(clusterId)` (switches the top-level view back to the parent cluster tab).
|
|
1088
1090
|
|
|
@@ -1096,8 +1098,8 @@ fresh members; roster rows badge non-standard modes.
|
|
|
1096
1098
|
|
|
1097
1099
|
**`PlanCandidateBanner` - detection-based fallback (2026-05-11).** Previously the banner only appeared when the operator clicked PLAN (DRAFT / DRAFT & AUTO-SAVE) before sending. Fallback in the `ws/handleServerMessage.ts` `primary_complete` handler (`phase: 'passthrough'`): when `pendingPlanCapture` is absent AND the assistant's latest reply matches `looksLikePlan` (H1 title on first non-empty line + ≥3 markdown checkbox lines), the banner surfaces in `review` mode automatically. Catches the cases where the operator asked for a plan via free-form prompt without clicking PLAN, or where the pre-arm flag was dropped before `primary_complete` (page reload mid-turn). Operator can DISCARD if it's a false positive - the heuristic is conservative enough to avoid surprising normal replies.
|
|
1098
1100
|
|
|
1099
|
-
In a cluster member pane the banner offers ATTACH TO
|
|
1100
|
-
|
|
1101
|
+
In a cluster member pane the banner offers ATTACH TO CLUSTER, REFINE and
|
|
1102
|
+
DISCARD. Review capture never saves a cluster plan automatically. A new
|
|
1101
1103
|
cluster can start a tool-free director draft from an operator-supplied purpose;
|
|
1102
1104
|
an existing cluster without a plan offers DRAFT A PLAN, ATTACH EXISTING, and a
|
|
1103
1105
|
per-cluster browser dismissal. The composer's PLAN button explains in its hover text that a plan keeps the next steps in one place; the composer shows no inline hint line.
|
|
@@ -1153,7 +1155,9 @@ State is not persisted (proposals are fetched from the server on subscribe). The
|
|
|
1153
1155
|
|
|
1154
1156
|
## ARTIFACTS explorer (`?app=explorer`)
|
|
1155
1157
|
|
|
1156
|
-
A standalone chromeless
|
|
1158
|
+
A standalone chromeless window, mounted by `main.tsx` on `?app=explorer`, sharing the same root/theme bootstrap but no app store or `/ws`. `explorer/ExplorerApp.tsx` is the shell - `LensId = 'artifacts' | 'recents' | 'plans' | 'storage' | 'tree'` (ARTIFACTS is the landing home; PLANS and STORAGE are described below), left-nav lens switcher, poll-on-focus + manual ↻, an A-/A+ window-zoom control (`document.documentElement.style.zoom`, persisted `arco_explorer_zoom3`, default 0.85), a transparent root so the theme's body background shows through, and a reused `FileExplorer` for the TREE lens. `ArtifactsLens.tsx` (HOME recent-across-projects strip + per-project drill-down over `/api/explorer/artifacts` + `/docs`), `RecentsLens.tsx` (AGENT WRITES ledger + RECENTLY MODIFIED scan, filter chips ALL/DOCS/IMAGES, `/api/explorer/recents` + `/changed`), `types.ts` (client mirrors of the server read-models), and `launch.ts` (`openArchive` - same-browser `window.open` popup, falling back to `POST /api/explorer/open`, last-resort plain tab). `/api/explorer/*` (6 routes) lives in `server/src/http/explorerRoutes.ts`. Zero model authority. Every lens is read-only except PLANS (plan edits and MARK DONE, through the plan routes) and STORAGE, whose actions each ask for a confirmation first.
|
|
1159
|
+
|
|
1160
|
+
`StorageLens.tsx` is the **STORAGE** lens (`?app=explorer&lens=storage`). It lists every known project and Arco's own folder, largest first, with each row's headings and biggest item, from `GET /api/storage-report?scope=all`; **MEASURE AGAIN** measures again. A project row opens its conversations and archives from `GET /api/storage-report?path=`, each with its size, open state and KEEP state. **KEEP** protects the whole conversation after confirmation and refreshes the report. The other actions are **COMPRESS OLD LOGS** per project and **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** per conversation. Each asks for a confirmation, posts to `/api/storage/*` and reports the result; ARCHIVE and DELETE are off while a conversation is open or working, or wholly kept. **STORAGE SETTINGS** holds auto-archive (off by default) and the disk budget, through `/api/storage/policy`; the disk budget notice shows above the list when the last measurement passes it. Worktrees, caches and Arco's folder have no clean-up action.
|
|
1157
1161
|
|
|
1158
1162
|
---
|
|
1159
1163
|
|
|
@@ -1247,3 +1251,17 @@ The creator and member role editor limit new director assignments to one per clu
|
|
|
1247
1251
|
- [Architecture](ARCHITECTURE.md)
|
|
1248
1252
|
- [WebSocket protocol](PROTOCOL.md)
|
|
1249
1253
|
- [Documentation style](STYLE.md)
|
|
1254
|
+
|
|
1255
|
+
### Storage report
|
|
1256
|
+
|
|
1257
|
+
In the right-panel USAGE tab, MEASURE STORAGE reads the current project state. Every byte is listed under one heading: conversation logs, artifacts, handoffs, checkpoints, scratch files, other conversation files, plans, task boards, worktrees and isolated copies, archived conversations, or other. Each conversation shows its log bytes by event type, activity and open status. Large files are marked. MEASURE AGAIN refreshes the cached result; the measurement time and read errors are shown. Shared checkpoint storage is listed separately.
|
|
1258
|
+
|
|
1259
|
+
MEASURE ARCO FOLDER measures Arco's own folder under the same rules, with headings for voice and media models, caches and browser profiles, provider account data, saved clusters and server logs. A file with several hard links is counted once. Chat and Genesis project folders inside Arco's folder are skipped and counted with their own projects. Neither report deletes or changes files.
|
|
1260
|
+
|
|
1261
|
+
## Plans library
|
|
1262
|
+
|
|
1263
|
+
ARTIFACTS > PLANS groups plans by project, remembers expanded projects and opens search matches. The current project opens by default. Repeated titles expand into versions. A group with an attached version stays in the normal list, where its unattached versions offer MARK DONE. In-use labels name attached tabs or clusters. Unattached plans with all checkboxes checked or no edits for 30 days appear under Probably finished; MARK DONE moves a selected plan to Completed. Nothing is marked done automatically. The counts follow the current filter.
|
|
1264
|
+
|
|
1265
|
+
## Artifact copy review
|
|
1266
|
+
|
|
1267
|
+
OUTPUTS > MOVE TO PROJECT reviews Git ignore status, public visibility, size and text findings before copying. Files not fully scanned are listed by name; a public copy outside Git ignore requires a second confirmation for them. Images and recordings need manual inspection. KEEP IT PRIVATE retains and protects the artifact instead. ADD TO .GITIGNORE adds a destination rule. Copies do not overwrite, stage or commit, and the original stays in Arco. A failed copy can leave partial files at the destination. The temporary folder must be outside the project and Git repositories. Large artifact warnings offer KEEP to protect the item or DISMISS without protecting it.
|
package/docs/FEATURES.md
CHANGED
|
@@ -9,23 +9,24 @@ controls. For installation and first session, see
|
|
|
9
9
|
| Feature | What it does | Details |
|
|
10
10
|
| --- | --- | --- |
|
|
11
11
|
| Tabbed multi-provider workspace | Every project is a tab with one long-lived primary agent the operator chats with directly | Providers: Claude, Codex, Cursor, Ollama, llama.cpp, LM Studio, Strata, DeepSeek |
|
|
12
|
-
| Home | Start page for project locations, bookmarks, and open work | Greeting and status, start tiles,
|
|
12
|
+
| Home | Start page for project locations, bookmarks, and open work | Greeting and status, start tiles, and Continue and Projects each limited to two rows of cards with Show all opening the rest (search and the location filter list every match); a Getting started card that counts any chat, session or cluster as started and can be hidden; stable project identity across relocation; cards can be pinned, archived, opened, or continued. See [Getting started](GETTING_STARTED.md) |
|
|
13
13
|
| Waiting questions | Marks structured Codex and Claude Native questions until settled | The toast opens the asking worker; cluster cards and tabs show a question indicator. |
|
|
14
|
-
| Workspace Outputs | Collects artifacts, generated-file events, and scoped exports | FILES tab **OUTPUTS** sub-tab for the active workflow or cluster. By default it shows what was made for you (generated media, top-level artifact documents, reports and exports); code edits and files in artifact subfolders sit under **All files**. See [Outputs](OUTPUTS.md) |
|
|
15
|
-
| Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; work size only for repeated roles; member cards default to **ROWS**; AUTO-PICKUP modes Off, Rule-based (recommended automatic), Smart Observe-only, and Smart Automatic. Smart modes need an evaluator on Claude Native, Cursor,
|
|
14
|
+
| Workspace Outputs | Collects artifacts, generated-file events, and scoped exports | FILES tab **OUTPUTS** sub-tab for the active workflow or cluster. By default it shows what was made for you (generated media, top-level artifact documents, reports and exports); code edits and files in artifact subfolders sit under **All files**. MOVE TO PROJECT reviews a copy or keeps the artifact private. Large artifact warnings offer KEEP or DISMISS. See [Outputs](OUTPUTS.md) |
|
|
15
|
+
| Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; work size only for repeated roles; member cards default to **ROWS**; AUTO-PICKUP modes Off, Rule-based (recommended automatic), Smart Observe-only, and Smart Automatic. Smart modes need an evaluator on Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. See [Getting started](GETTING_STARTED.md) and [Task ledger](TASK_LEDGER.md) |
|
|
16
16
|
| One status per tab | Shows at a glance which tabs need you | Workflow and cluster tabs show a dot when not idle (hover for the status); Home Continue cards show a word: Working, Needs you (a question waits, or an idle cluster member has mail), New reply (a turn finished while you were elsewhere; cleared when you open the tab; not saved across reloads) or Idle |
|
|
17
|
-
| Waiting mail on member cards | Shows undelivered messages per member | The member card's mail mark shows the count, delivered at the member's next turn; muted while the member is busy; highlighted when it is idle with mail, and clicking it nudges that member. No sounds or pop-ups |
|
|
18
|
-
| Needs you and board accept | Shows what only the operator can clear on a cluster board | **NEED YOU** above the member cards counts review tasks with a director sign-off, tasks blocked on an operator decision, and members waiting on an answer. On the Board, **ACCEPT** replaces DONE on review cards; **ACCEPT ALL MET** accepts met sign-offs; done tasks
|
|
19
|
-
| Utility agent | One operator-chosen provider and model for short side jobs | Settings > Agents and clusters (also offered on the last Welcome screen). Accepts only Claude with Native sign-in, Cursor, Codex, or
|
|
17
|
+
| Waiting mail on member cards | Shows undelivered messages per member | The member card's mail mark shows the count, delivered at the member's next turn; muted while the member is busy; highlighted when it is idle with mail, and clicking it nudges that member, after which the card reads Nudged (and the composer NUDGE button reads NUDGED n) until the member starts its turn or two minutes pass. No sounds or pop-ups |
|
|
18
|
+
| Needs you and board accept | Shows what only the operator can clear on a cluster board | **NEED YOU** above the member cards counts review tasks with a director sign-off, tasks blocked on an operator decision, and members waiting on an answer. On the Board, **ACCEPT** replaces DONE on review cards; **ACCEPT ALL MET** accepts met sign-offs; done tasks show by default (**SHOW DONE** hides them, and the choice is remembered) and the header count matches the tasks drawn; an optional release label on a task (RELEASE in the card drawer) adds a release filter and a ready-to-release summary (in, accepted, left); review tasks older than seven days fold into an older row. Optional Settings > Agents and clusters **Board auto-done** marks met tasks done automatically. See [Task ledger](TASK_LEDGER.md) and [Settings](SETTINGS.md) |
|
|
19
|
+
| Utility agent | One operator-chosen provider and model for short side jobs | Settings > Agents and clusters (also offered on the last Welcome screen). Accepts only Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. LM Studio, llama.cpp, Strata, and DeepSeek require the chosen model to be loaded; these requests never load or switch models. Replies that are cut off or exceed the limit are reported instead of used. Never chosen silently; **TEST** checks it; **USE UTILITY AGENT** can fill it into Smart AUTO-PICKUP, Research, document edit, and handoff summarizer pickers without changing saved choices. See [Settings](SETTINGS.md#utility-agent) |
|
|
20
20
|
| BRIEF | Short synopsis from visible activity facts | On each member card and in the composer toolbar; in a cluster tab the composer's BRIEF offers THIS WORKER or WHOLE CLUSTER. Uses the utility agent; lists the facts; sends nothing to any worker. |
|
|
21
21
|
| CATCH ME UP | Summary since the last visit | On a workflow or cluster; the utility agent writes the synopsis for the covered time range. Unloaded or Incognito cluster members are skipped with a note. |
|
|
22
|
-
| TIDY | Rewrite the composer draft into a clearer instruction | Workflow and Chat composers. **ACCEPT** only replaces the draft; TIDY never sends. **KEEP ORIGINAL
|
|
22
|
+
| TIDY | Rewrite the composer draft into a clearer instruction | Workflow and Chat composers. **ACCEPT** only replaces the draft; TIDY never sends. **KEEP ORIGINAL**, the close button in the dialog header and Escape leave it unchanged. |
|
|
23
23
|
|
|
24
24
|
## Capacity, updates, and appearance
|
|
25
25
|
|
|
26
26
|
| Feature | What it does | Details |
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| Auto-compaction | Arms between-turn compaction for supported transports | Workflow CONFIG and cluster defaults; Claude Native, Codex app-server, Ollama. See [Settings](SETTINGS.md) |
|
|
29
|
+
| Storage report | Shows where disk space goes; clean-up only on request | Right-panel USAGE tab: **MEASURE STORAGE** for the project and **MEASURE ARCO FOLDER** for Arco's own folder put every byte under one heading (conversation logs, artifacts, worktrees, caches, voice models and more); **MEASURE AGAIN** refreshes. Long conversation logs are sealed into compressed pieces automatically, with nothing deleted; `arco storage unseal` writes plain logs back before installing an older release. The ARTIFACTS window's **STORAGE** lens lists every project and Arco's folder largest first, with **KEEP** for a whole conversation, **COMPRESS OLD LOGS**, **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** (each confirmed; kept items and plans stay), auto-archive (off by default) and a disk budget notice (100 GiB). See [Client](CLIENT.md#storage-report) and [Storage plan](STORAGE_PLAN.md) |
|
|
29
30
|
| Local runtime capacity | Limits concurrent local cluster members | Connections `localClusterCapacity` for Ollama or llama.cpp (default 1 each). See [Settings](SETTINGS.md) |
|
|
30
31
|
| Version box and update notices | Always-visible version and optional GitHub release checks | Top bar, right of the power button: running version, accent state when an update is available, opens the update dialog; toast (**OPEN RELEASE** / **DISMISS**); Settings > Advanced Arco row with **CHECK NOW**. Packaged services offer **UPDATE AND RESTART**. See [Updating Arco](OPERATIONS.md#updating-arco) |
|
|
31
32
|
| Application shortcuts and `arco open` | Per-user desktop shortcut and dedicated app window | `arco setup` can install the shortcut; `arco open` / `arco open --tab`; `arco shortcuts add|remove`. See [Service mode](SERVICE_MODE.md) |
|
|
@@ -60,12 +61,14 @@ controls. For installation and first session, see
|
|
|
60
61
|
| Feature | What it does | Details |
|
|
61
62
|
| --- | --- | --- |
|
|
62
63
|
| Cross-provider review on tap | Review with a different model | Feedback as a read-only artifact in the REVIEW tab; **SEND TO AGENT** prefills the composer with the review body; local reviewers get an addendum to verify diff claims against the live tree with read-only tools |
|
|
63
|
-
| SECOND OPINION | Several models each draft the reply you could send to a worker | Composer **SECOND OPINION** (or the bar above the composer for selected messages); independent read-only drafts with no shared session,
|
|
64
|
+
| SECOND OPINION | Several models each draft the reply you could send to a worker | Composer **SECOND OPINION** (or the bar above the composer for selected messages); independent read-only drafts with no shared session, recent turns (on by default when no messages are selected) and optional read-only file access (off by default), with a context summary; blind labels, vote, optional operator-chosen **SYNTHESIZE**; **USE THIS REPLY** puts the draft in the composer for editing (UNDO restores your text) and sends nothing; a per-model tally of picks is kept in the browser |
|
|
64
65
|
| Bounded web research | Single bounded web-research turn | Fan-out searches plus source fetch; cited markdown report in the RESEARCH tab; operator-initiated; one report per dispatch |
|
|
66
|
+
| Plan draft refinement | Revise a drafted plan before saving | After a plan draft the banner offers **REFINE**: a short note asks the same agent to revise the draft (repeatable; the new draft replaces the old; nothing is saved until attach). In a cluster tab the only save option is **ATTACH TO CLUSTER**; a single workflow keeps **SAVE & ATTACH**; **DISCARD** drops the draft |
|
|
67
|
+
| Public-project guardrails | Privacy rules for public projects | The box **This project is public (or will be)** (cluster creator, beside DRAFT A PLAN, PLAN dialog) makes the plan draft ask for a "Privacy and public safety" section; it is remembered per project folder and pre-ticked, with the reason shown, only when the Git remote is a confirmed public GitHub repository. **INSERT GUARDRAILS** adds the same section to an existing plan as an unsaved edit. A quiet notice offers **RESTORE IGNORE FILE** and **STOP TRACKING** when Git tracks or does not ignore the project's `.arco` folder |
|
|
65
68
|
| Plan-scoped review | REVIEW and VERIFY against an attached plan | PLAN tab: REVIEW audits plan structure; VERIFY audits claimed-done work with `git diff HEAD` pre-included; whole-plan and per-section granularity; **CUSTOM REVIEW** tree-with-checkboxes picker. VERIFY shows only `[x]`-completed items; CRITIQUE shows everything for plan-level evaluation. Parser tolerates checkbox-stripped plans (recognizes `- **N.M**` numbered bullets as tasks) |
|
|
66
69
|
| Spawn-phase from plan | Prefill Spawn with a full phase block | Alongside per-task SPAWN, each `### Phase` heading gets a **SPAWN PHASE** button that opens SpawnDialog |
|
|
67
70
|
| DOCS one-off prompt | Structured prompt to update repo markdown from recent git activity | Hard-coded constraint: does not modify anything under `.arco/plans/` (load-bearing checkbox / H3 structure the Plan tab parses) |
|
|
68
|
-
| GIT one-off prompt | Git status dialog and action picker | Live status (branch, ahead/behind, dirty files); branch dropdown plus `+ NEW BRANCH` form (server-side dirty-tree refusal on switch); actions commit / commit + push / commit + push + PR via `gh pr create`; protected-branch warnings; per-repo localStorage prefs; commit-subject hint. Branch switch via `POST /api/git/checkout` before the prompt dispatches. **SHOW OTHER WORK** lists the repository's other worktrees and local branches read-only (tab working there, ahead/behind the default branch, uncommitted files, open pull request); **VIEW CHANGES** opens FILES > CHANGES on that worktree |
|
|
71
|
+
| GIT one-off prompt | Git status dialog and action picker | Live status (branch, ahead/behind, dirty files); branch dropdown plus `+ NEW BRANCH` form (server-side dirty-tree refusal on switch); actions commit / commit + push / commit + push + PR via `gh pr create`; protected-branch warnings; per-repo localStorage prefs; commit-subject hint. Branch switch via `POST /api/git/checkout` before the prompt dispatches. **SHOW OTHER WORK** lists the repository's other worktrees and local branches read-only (tab working there, ahead/behind the default branch, uncommitted files, open pull request); **VIEW CHANGES** opens FILES > CHANGES on that worktree. Closing the dialog without sending (including through VIEW CHANGES) keeps its choices, and the next GIT open in that tab restores them until a request is sent or the tab closes |
|
|
69
72
|
| RUN AS picker | Override provider/model/effort for GIT / DOCS one-offs | Unchanged: dispatches in-tab; changed: new tab opens with the picked config and runs there |
|
|
70
73
|
|
|
71
74
|
## Memory, knowledge, and scaffolding
|
|
@@ -94,7 +97,7 @@ controls. For installation and first session, see
|
|
|
94
97
|
| Project task ledger and worktrees | Durable cwd-scoped task records | Statuses TRIAGE / TODO / READY / IN PROGRESS / BLOCKED / REVIEW / DONE / ARCHIVED in the LEDGER tab; optional git-worktree-backed task tabs for isolated checkouts. See [Task ledger](TASK_LEDGER.md) and [Checkpoints](CHECKPOINTS.md) |
|
|
95
98
|
| Local-services discovery | Machine-wide browser of local web services | Listening ports and heuristics; open in Preview action. SYSTEM -> SERVICES. See [Local services](LOCAL_SERVICES.md) |
|
|
96
99
|
| Remote management | Link a workflow or cluster to a hub for lifecycle commands | **REMOTE**, remote review gates, and **CLOUD** snapshot controls appear only while the management hub is connected. Local snapshots stay available when disconnected. See [Remote management](REMOTE_MANAGEMENT.md) |
|
|
97
|
-
| Notifications | In-app center and toasts; opt-in desktop and phone alerts | Settings > Notifications:
|
|
100
|
+
| Notifications | In-app center and toasts; opt-in desktop and phone alerts | Settings > Notifications: desktop and phone switches start off; REQUEST PERMISSION and TEST DESKTOP check browser alerts; quiet BELL notices for other tabs follow SHOW IN BELL; ntfy server, topic, optional token and TEST; the window title shows a waiting count such as `(2) ARCO`. Desktop alerts appear only when Arco is not the focused window. See [Notifications](NOTIFICATIONS.md) |
|
|
98
101
|
| Checkpoints | Git-snapshot working-tree checkpoints and one-click revert | Revert to a known-good point without manual stashing. See [Checkpoints](CHECKPOINTS.md) |
|
|
99
102
|
|
|
100
103
|
## Preview, Git workbench, history, and GitHub
|
|
@@ -106,7 +109,7 @@ controls. For installation and first session, see
|
|
|
106
109
|
| HISTORY tab | Read-only timeline of seq-stamped narrative events | Actions: **LABEL THIS** (pin free-text label to `events.jsonl`); **REVIEW FROM HERE** (since-event Review); **SPAWN FROM HERE** (cutoff-aware Spawn so the new tab boots truncated at the chosen seq); **REWIND CONVERSATION** (Native-first restore-point: move live head back to a chosen seq; current branch kept and returnable; fork markers inline; REWINDS filter). Native-only; rejected on CLI / Codex |
|
|
107
110
|
| Tasks (Claude Native) | First-class workflows for Native `Task` tool sub-agents | Scoped to parent; inline `TaskCard`; TASKS sub-tab gated on non-empty children; parallel `Task` calls dispatch concurrently; depth-1 cap by design |
|
|
108
111
|
| Built-in GitHub browser | Browse repos, trees, source, PRs, issues, Actions runs, and clone | Authenticated via `gh auth`; GITHUB tab |
|
|
109
|
-
| ARTIFACTS explorer | Chromeless
|
|
112
|
+
| ARTIFACTS explorer | Chromeless window for project artifacts, plans and storage across projects | Header **ARTIFACTS**: ARTIFACTS home (per-project cards + recent-across-all strip); RECENTS, PLANS, STORAGE and TREE. PLANS groups projects, folds repeated titles, names attached tabs and offers MARK DONE for probably finished plans. STORAGE lists disk use by project and offers KEEP for a whole conversation, COMPRESS OLD LOGS, ARCHIVE, RESTORE, DELETE and EMPTY SCRATCH, each after a confirmation. ARTIFACTS, RECENTS and TREE are read-only. Zero model authority. See [Documentation index](INDEX.md) |
|
|
110
113
|
|
|
111
114
|
## Media, chrome, and themes
|
|
112
115
|
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -35,13 +35,13 @@ Home greets the operator by the optional Welcome name and shows connected
|
|
|
35
35
|
providers, running work, waiting questions, and the installed version. The three
|
|
36
36
|
start tiles open chat, session, and cluster creators. **More ways to start**
|
|
37
37
|
offers Genesis. A new user sees a **Getting started** card until a provider,
|
|
38
|
-
project folder, and first chat are available.
|
|
38
|
+
project folder, and first conversation (any chat, session or cluster) are available; **HIDE** removes the card.
|
|
39
39
|
|
|
40
40
|
**Continue** lists open work, with questions waiting for an answer first and the
|
|
41
41
|
current step for running work. Each Continue card shows a status word: Working, Needs you, New reply (a turn finished while you were elsewhere) or Idle. Tabs show a status dot; hover over a tab for its status. Idle has no dot. **Resume** returns to a tab. Two rows show at
|
|
42
42
|
first; **Show all** opens the rest in a bounded scrolling area.
|
|
43
43
|
|
|
44
|
-
The project grid shows pinned folders first, then recent activity. Filter it by
|
|
44
|
+
The project grid shows pinned folders first, then recent activity, in two rows; **Show all** opens the rest in a bounded scrolling area, and a search shows every match. Filter it by
|
|
45
45
|
location or search names and paths (press `/` to focus search). A project card
|
|
46
46
|
shows its folder, activity, and open tabs. **New session** opens the creator
|
|
47
47
|
with that folder. The **...** menu offers **New cluster**, **Saved sessions**,
|
|
@@ -124,7 +124,7 @@ arco setup
|
|
|
124
124
|
|
|
125
125
|
`arco setup` asks before installing the per-user service, starts it, and opens
|
|
126
126
|
the local URL. Use `arco start` for a foreground run. Use
|
|
127
|
-
`arco service install|uninstall|start|stop|restart|status|logs` to manage the
|
|
127
|
+
`arco service install|uninstall|start|stop|restart|status|logs|refresh` to manage the
|
|
128
128
|
service directly.
|
|
129
129
|
|
|
130
130
|
If npm reports `EACCES` for a global install on Linux or macOS, use nvm or a
|
|
@@ -280,7 +280,7 @@ at least two members, each with a model selected.
|
|
|
280
280
|
added later; they do not replace existing rows. By default a cluster accepts
|
|
281
281
|
one member per local runtime (Ollama, llama.cpp). Raise "Cluster members that
|
|
282
282
|
may use this runtime at once" in Connections to allow more.
|
|
283
|
-
5. Optionally describe the project purpose and leave **Have the director draft a plan for review** checked. Choose a director in the member list. After creation, review the draft before attaching it; leave the purpose empty to skip the drafting turn. See [Plan or board?](PLAN_OR_BOARD.md).
|
|
283
|
+
5. Optionally describe the project purpose and leave **Have the director draft a plan for review** checked. Choose a director in the member list. After creation, review the draft before attaching it; leave the purpose empty to skip the drafting turn. For a public project, tick **This project is public (or will be)** beside it. See [Plan or board?](PLAN_OR_BOARD.md).
|
|
284
284
|
6. Select **CREATE CLUSTER**. The cluster tab opens with its members. Member
|
|
285
285
|
cards default to the **ROWS** layout (AUTO, COLS, and GRID remain available).
|
|
286
286
|
|
|
@@ -291,7 +291,7 @@ roles. Work size is a hint for the director and does not change model or effort.
|
|
|
291
291
|
Arco does not otherwise auto-route work from role or work size. AUTO-PICKUP on
|
|
292
292
|
the cluster header stays Off until armed. Rule-based is the recommended
|
|
293
293
|
automatic mode; Smart Observe-only and Smart Automatic need an evaluator on
|
|
294
|
-
Claude Native, Cursor,
|
|
294
|
+
Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. See the in-app manual for modes and limits.
|
|
295
295
|
See [TASK_LEDGER.md](TASK_LEDGER.md) for cluster boards, messages, and saved
|
|
296
296
|
tasks.
|
|
297
297
|
|
|
@@ -300,8 +300,8 @@ tasks.
|
|
|
300
300
|
Short side jobs such as **BRIEF**, **CATCH ME UP**, and **TIDY** use one
|
|
301
301
|
operator-chosen utility agent instead of a workflow's agent. Open
|
|
302
302
|
**Settings > Agents and clusters**, or finish Welcome when it offers the
|
|
303
|
-
choice. Pick Claude with Native sign-in, Cursor, Codex, or
|
|
304
|
-
then save. Nothing is selected until that save. **TEST** checks the choice;
|
|
303
|
+
choice. Pick Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl, choose a model,
|
|
304
|
+
then save. For LM Studio, llama.cpp, Strata, and DeepSeek, load the selected model first; these requests never load or switch models. Nothing is selected until that save. **TEST** checks the choice;
|
|
305
305
|
**CLEAR** removes it. The utility agent has no tools and only reads facts Arco
|
|
306
306
|
already holds. See [Settings: Utility agent](SETTINGS.md#utility-agent).
|
|
307
307
|
|
package/docs/GLOSSARY.md
CHANGED
|
@@ -318,7 +318,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
318
318
|
|
|
319
319
|
**BACK TO CLUSTER** - Button in `TerminalInput`'s status row, mounted only on cluster-member tabs. Switches the active top-level tab back to the parent cluster tab via `setActiveCluster(clusterId)`.
|
|
320
320
|
|
|
321
|
-
**Utility agent** - One operator-chosen provider and model for short side jobs outside a workflow turn (**BRIEF**, **CATCH ME UP**, **TIDY**, and the shared no-tools runner). Settings > Agents and clusters; also offered on Welcome, never selected silently. Accepts only Claude with Native sign-in, Cursor, Codex, or
|
|
321
|
+
**Utility agent** - One operator-chosen provider and model for short side jobs outside a workflow turn (**BRIEF**, **CATCH ME UP**, **TIDY**, and the shared no-tools runner). Settings > Agents and clusters; also offered on Welcome, never selected silently. Accepts only Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. LM Studio, llama.cpp, Strata, and DeepSeek require an already-loaded model; the request does not load or switch it. Protocol: `shared/src/protocol/utilityAgent.ts`; runner: `server/src/utilityJob.ts`. See [SETTINGS.md](SETTINGS.md#utility-agent).
|
|
322
322
|
|
|
323
323
|
**BRIEF** - Operator button that asks the utility agent for a short synopsis of one worker or the whole cluster from deterministic client-collected facts (turn state, current step and elapsed time, Queued or Delivered for the last operator message, recent events, pending question, mail, board task, worktree changes). Lists the facts; sends nothing to any worker.
|
|
324
324
|
|
|
@@ -328,7 +328,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
328
328
|
|
|
329
329
|
**Version box** - Always-present control in the top bar, right of the power button. Shows the running version; accent state when an update is available; opens the update dialog; shows UPDATING while an update runs.
|
|
330
330
|
|
|
331
|
-
**AUTO-PICKUP** - Operator-armed per-cluster mode (default Off) in `ClusterRightPanel`'s header. Modes: Off; Rule-based (recommended deterministic wake on idle mail via `server/src/clusterAutoTurn.ts`, with shared cooldown and rate guards plus adjustable Rule limits including chain-depth default 8); Smart: Observe-only (evaluator proposes wake / wait / ask, log only); Smart: Automatic (wake proposals may start a turn after server gates and limits). Smart evaluators accept only Claude Native, Cursor,
|
|
331
|
+
**AUTO-PICKUP** - Operator-armed per-cluster mode (default Off) in `ClusterRightPanel`'s header. Modes: Off; Rule-based (recommended deterministic wake on idle mail via `server/src/clusterAutoTurn.ts`, with shared cooldown and rate guards plus adjustable Rule limits including chain-depth default 8); Smart: Observe-only (evaluator proposes wake / wait / ask, log only); Smart: Automatic (wake proposals may start a turn after server gates and limits). Smart evaluators accept only Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. Limits live in `shared/src/protocol/autoPickup.ts` and `server/src/smartPickup*.ts`. Distinct from MAIL ALERTS (toast only) and NUDGE (hand-picked). See the in-app manual, [SETTINGS.md](SETTINGS.md#auto-pickup), [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) and [SECURITY.md](../SECURITY.md#utility-agent-and-smart-auto-pickup-evaluator-requests).
|
|
332
332
|
|
|
333
333
|
**NUDGE modal** - Operator-driven canned-prompt fan-out. Click NUDGE (the larger button in the cluster composer's bottom row) -> modal with per-member checkbox list (default empty - operator must pick) -> SEND NUDGE fires the canned `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` at the picked members. Rides on the same `cluster_broadcast` wire shape with `recipientWorkflowIds`. Modal shows role chip + mailbox depth + BUSY badge per member. Distinct from the composer TO: chip (which chooses recipients for typed prompts).
|
|
334
334
|
|
|
@@ -370,7 +370,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
370
370
|
|
|
371
371
|
**Recall** - Machine-global cross-cwd index of every workflow ever run, stored in SQLite at `~/.arco/recall/recall.db` (`server/src/recall/`). A rebuildable deterministic projection of `meta.json` + `events.jsonl` - delete the DB and the next backfill reconstructs it. F2 adds operator-triggered (or operator-armed-on-close) conversation **summaries** written to `~/.arco/recall/<wfid>/summary.md`, with a deterministic structural-digest fallback so the LLM path never fails closed; F3 adds FTS5 full-text search over titles/summaries/transcripts. No LLM in the per-turn loop.
|
|
372
372
|
|
|
373
|
-
**ARTIFACTS** - Standalone chromeless project-artifact browser window (`?app=explorer`; `client/src/explorer/`, opened via the `⌸ ARTIFACTS` header button).
|
|
373
|
+
**ARTIFACTS** - Standalone chromeless project-artifact browser window (`?app=explorer`; `client/src/explorer/`, opened via the `⌸ ARTIFACTS` header button). Five lenses: ARTIFACTS (per-project cards + a recent-across-all-projects strip, joined server-side by `explorerArtifacts.ts`), RECENTS (the agent-writes ledger + an exhaustive changed-within scan `explorerChanged.ts`), PLANS (the plans library), STORAGE (disk use by project, with confirmed clean-up actions over `/api/storage/*`) and TREE. Backed by `GET /api/explorer/{open,artifacts,docs,recents,changed,plans}` (`server/src/http/explorerRoutes.ts`) - read-only except `open`, every listing $HOME-jailed and fail-soft (always 200, empty collection on error). Read-only except plan edits and MARK DONE in PLANS and the STORAGE actions; zero model authority. See [`CHECKPOINTS.md`](CHECKPOINTS.md).
|
|
374
374
|
|
|
375
375
|
**recent-files ledger** - Append-only NDJSON at `~/.arco/recent-files.jsonl` (`server/src/recentFilesLedger.ts`; env-overridable `ARCO_RECENT_FILES_LEDGER`). Records `{ ts, path, op: 'created'|'modified', workflowId, tabTitle, provider, tool, project? }`; compacted in place past `MAX_LINES = 1000` -> newest `KEEP_LINES = 500` via tmp+rename. Fed from the persisting broadcast chokepoints (`recordFilesLedger` in `broadcast.ts` matches `primary_tool_use` Write/Edit/NotebookEdit + `review_artifact_ready` + media ops) and by manual `POST /api/files/write`. Advisory / best-effort - `appendRecord` swallows its own errors so a write failure never breaks a broadcast. Read newest-first by `readRecent()` for the ARTIFACTS RECENTS lens.
|
|
376
376
|
|
package/docs/GOTCHAS.md
CHANGED
|
@@ -621,7 +621,8 @@ Cursor is an ACP provider (`cursor-agent acp`). Current transport details are su
|
|
|
621
621
|
- **Why this is load-bearing:** from 2026-05-19 (`683bbb3`) to 2026-09-01 this branch called `setClusterPlanBody()` directly, which bypassed every guard the deliberate model-driven path enforces. `peerPlanWrite` (the `cluster_plan_write` peer tool) denies mailbox-only members and rejects a destructive body with `destructive_write_requires_operator` via `validatePlanWritePreservesCheckboxes` - doctrine: a model may author or non-destructively restructure the plan but "must preserve existing checkbox tasks and their status". EnterPlanMode did a wholesale body replace with none of that, so one member could wipe every task and its status for every other member - the cluster plan is folded into all of their system prompts.
|
|
622
622
|
- It was collateral in a plan-storage refactor, not a decision: the same commit updated `PlanCandidateBanner.tsx`'s ATTACH TO CLUSTER semantics, `plan_candidate_ready` survived only in the `catch` block, and the function's own doc comment still described the gate. `scripts/smoke/phase-2.6.ts` caught it (17/18); it is back to 18/18.
|
|
623
623
|
- The two legitimate write paths are the operator's (`cluster_plan_set`) and the guarded peer tool (`peerPlanWrite`). Do not add a third.
|
|
624
|
-
-
|
|
624
|
+
- **Never open `events.jsonl` directly; read through `eventLog.ts`.** Since 0.1.4 older records live in sealed `events.<first>-<last>.jsonl.br` segments and the live file holds only the newest part (plus a copy of the newest sealed record). A direct `readFile` or tail read silently misses history; byte offsets into the live file reset when it is sealed (`outputs.ts` keeps a `seq` cursor for that reason).
|
|
625
|
+
- **`cluster_plan_changed` is an audit record and must persist.** `broadcastCluster` is live-push only (no seq, no events.jsonl), which is fine for `cluster_state` but silently made plan rewrites untraceable - despite the client handler and `peerTools.ts` both documenting that it lands in events.jsonl. `broadcastCluster` now special-cases this one type and mirrors it to each member via `broadcastWorkflow`. The mirrored copy carries `bodySha256` instead of the body, which `planHistory.rememberPlanBody` stores once under `plans/.history/`. The client handler is a no-op, so the duplicate delivery is inert. Don't route it around that helper.
|
|
625
626
|
|
|
626
627
|
|
|
627
628
|
- **Deleted plan files leave the attachment dangling.** If `<cwd>/.arco/plans/<planId>.md` is removed externally, the next turn's `buildPlanPrefix()` returns empty and the agent runs without the brief. No error surfaced - graceful degradation. Operator notices when the agent stops referencing the plan. The trade-off is intentional (don't break a turn because of file-system drift), but worth knowing.
|
|
@@ -1206,7 +1207,7 @@ The live Arco *service* reporting workflows + applying reply/stop/continue. `ser
|
|
|
1206
1207
|
- **A cluster tab is only a browser mirror; the live record is server-durable.** A lost localStorage entry must be recovered by listing `GET /api/clusters` and sending the normal `cluster_subscribe` for the original id - never by restoring an older snapshot (which forks new ids). Conversely, a genuinely missing id returns structured `cluster_not_found`; the client prunes that one stale mirror so it cannot emit "Unknown cluster" forever.
|
|
1207
1208
|
- **Restore replay MUST stay compacted - never replay raw streaming granularity.** `restoreSnapshot` pipes each member's captured `events.jsonl` through `truncateToLastNTurns` then `compactRestoredEvents` (`server/src/clusterSnapshots.ts`) before writing the target-cwd copy the WS handler replays. A live turn records token-ish `primary_text` deltas (the large majority of a raw log), started/completed `primary_tool_use` pairs, and per-call `primary_tool_counter` / per-file `diagnostics` state events. Replaying that raw flooded the client one WS message + one store update at a time: the tab stalled for minutes, missed heartbeats, and reconnect-looped under the SYNCING overlay (`snapshotReceived` never settling). Compaction merges adjacent same-phase text runs (the client coalesces replayed text into one bubble anyway), drops transient tool-status rows whose call settles later in the log, and keeps only the last counter / last diagnostics-per-file (both client handlers are last-write-wins). Verify size limits with synthetic fixtures. Do NOT "restore full fidelity" - delta boundaries are invisible once the turn is history.
|
|
1208
1209
|
- **Codex call identity is `itemId`, not `toolUseId`.** Codex mints a fresh `toolUseId` per status event (started and completed carry different ones); only `itemId` (`call_…`) is stable across a call's lifecycle. `compactRestoredEvents` keys settled-call detection on `itemId ?? toolUseId`. Keying on `toolUseId` alone silently stops compacting Codex members (the 2026-06-12 first-pass bug).
|
|
1209
|
-
- **Snapshot-shaped event types are latest-wins in compaction - `task_ledger_snapshot` especially.** Each one is a FULL copy of the cwd's task ledger and a busy cluster re-broadcasts it on every mutation: a large workflow can carry many of them, dominating the total size. Text-delta coalescing alone left that untouched (UI froze per batch, WS backpressure stalled the socket, the server's zombie-socket heartbeat terminated the client mid-delivery, reconnect into a half-ingested cluster). Compaction now also: keeps only the last `task_ledger_snapshot` per workflowId (rule 5), truncates `primary_tool_use` input/output at 16 KB (rule 6 - the client's display cap; Native provider-context replay skips tool events so the model loses nothing), and keeps only the newest 300 tool rows per workflowId (rule 7 - the client trims chat at 500 messages / activity at 500 entries, so older rows were ingested and immediately discarded). Restore compacts text deltas, transient status rows, and superseded state snapshots before replay. If you add a new broadcast type that re-sends whole-state snapshots into `events.jsonl`, add it to the latest-wins set here.
|
|
1210
|
+
- **Snapshot-shaped event types are latest-wins in compaction - `task_ledger_snapshot` especially.** Each one is a FULL copy of the cwd's task ledger and a busy cluster re-broadcasts it on every mutation: a large workflow can carry many of them, dominating the total size. Text-delta coalescing alone left that untouched (UI froze per batch, WS backpressure stalled the socket, the server's zombie-socket heartbeat terminated the client mid-delivery, reconnect into a half-ingested cluster). Compaction now also: keeps only the last `task_ledger_snapshot` per workflowId (rule 5), truncates `primary_tool_use` input/output at 16 KB (rule 6 - the client's display cap; Native provider-context replay skips tool events so the model loses nothing), and keeps only the newest 300 tool rows per workflowId (rule 7 - the client trims chat at 500 messages / activity at 500 entries, so older rows were ingested and immediately discarded). Restore compacts text deltas, transient status rows, and superseded state snapshots before replay. If you add a new broadcast type that re-sends whole-state snapshots into `events.jsonl`, add it to the latest-wins set here. Better: do not persist it at all. Since 0.1.4 `task_ledger_snapshot` goes out through `sendWorkflowLive` and never reaches the log; rule 5 only matters for older logs.
|
|
1210
1211
|
- **The client persist layer must stringify LAZILY - never per `set()`.** `client/src/stores/persistence.ts` (`debouncedJSONStorage`) holds the partialized state object and JSON.stringifies once per debounced flush. Wrapping `createJSONStorage(...)` instead serializes the entire multi-MB jobs slice on EVERY store update - the debounce only delayed the disk write, not the serialization - which is what compounded a replay_batch ingest (thousands of `set()` calls in one task) into a minutes-long main-thread freeze. The freeze is what stops the browser draining the socket and gets the client heartbeat-terminated. Quota overflows at flush are logged (`persist flush failed`), not silent.
|
|
1211
1212
|
- **`cluster_created` is sent BEFORE any member history streams.** The restore handler (`handleClusterSnapshotRestore` in `server/src/ws/clusterHandlers.ts`) registers all members, sends `cluster_created`, and only then sends per-member `workflow_created` + event replay. Members-first ordering left the restored workers rendering as standalone tabs for the whole replay window (and permanently, if the operator closed the tab mid-flood). The cluster must exist client-side before any member does.
|
|
1212
1213
|
- **Each member's history is delivered as ONE `replay_batch` message - never a stream of N live events.** The client persists `lastSeq` + the last 200 chat messages on a debounce and reconnect asks for "events since lastSeq". Streaming history as live events races that model: an interrupt mid-flood (reload, heartbeat-miss disconnect) persisted `lastSeq≈head` with no chat, and replay-since-seq then had nothing left to resend - the member rendered as a **permanently blank worker** (2026-06-12). The batch is ingested by the client in one synchronous task (`case 'replay_batch'` in `handleServerMessage.ts` re-dispatches each inner event through the same reducer), so run-to-completion makes it all-or-nothing, React batches one render, and the debounced persist fires once. Do NOT revert to per-event `ws.send` loops for restore delivery. The reconnect path got the same treatment: `rehydrateOneWorkflow` (`handoffHandlers.ts`) ships a gap larger than 200 events as one `replay_batch` too (small gaps keep the per-event path), so a client that disconnects mid-restore can't be re-flooded by its own catch-up replay.
|
package/docs/HTTP_API.md
CHANGED
|
@@ -17,6 +17,7 @@ For terminology see [`GLOSSARY.md`](GLOSSARY.md). For where these are called fro
|
|
|
17
17
|
| [Sessions and transcripts](#sessions-and-transcripts) |
|
|
18
18
|
| [Workflows](#workflows) |
|
|
19
19
|
| [Project trust](#project-trust) |
|
|
20
|
+
| [Public-project checks](#public-project-checks) |
|
|
20
21
|
| [ARTIFACTS explorer (`/api/explorer/*`)](#artifacts-explorer-apiexplorer) |
|
|
21
22
|
| [Local model lifecycle](#local-model-lifecycle) |
|
|
22
23
|
| [Media ops (Workbench Expansion H6 + H7)](#media-ops-workbench-expansion-h6--h7) |
|
|
@@ -629,6 +630,17 @@ Request body (JSON):
|
|
|
629
630
|
|
|
630
631
|
---
|
|
631
632
|
|
|
633
|
+
## Public-project checks
|
|
634
|
+
|
|
635
|
+
Route: `server/src/http/publicProjectRoutes.ts`; logic: `server/src/publicProject.ts`. The `path` is an absolute project folder; a missing or unsafe one answers **400**.
|
|
636
|
+
|
|
637
|
+
- **`GET /api/public-project/remote?path=`** -> `{ state: 'none' }`, `{ state: 'hosted', host }` or `{ state: 'public', host }`. Reads `git remote -v`; for github.com only, one unauthenticated repository request, cached for a day (see [SECURITY.md](../SECURITY.md#public-project-checks)). Only confirmed public repositories answer `public`.
|
|
638
|
+
- **`GET /api/public-project/state?path=`** -> `{ isGit, hasState, tracked, trackedSample, ignored, ignoreFile }`. `ignoreFile` is `default`, `missing` or `edited`; `ignored` is false when a probe path under `.arco/workflows/` is not ignored. Read-only.
|
|
639
|
+
- **`POST /api/public-project/restore-ignore`** `{ path }` -> `{ ok, backup? }`. Writes the default `.arco/.gitignore`; an edited file is first renamed to `.gitignore.backup-<time>` in `.arco/`.
|
|
640
|
+
- **`POST /api/public-project/stop-tracking`** `{ path }` -> `{ ok, removed }`. Runs `git rm -r --cached -- .arco`; files stay on disk and a commit is still needed.
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
632
644
|
## Project trust
|
|
633
645
|
|
|
634
646
|
### `GET /api/project-trust[?cwd=<absolute>]` · `POST /api/project-trust`
|
|
@@ -1011,7 +1023,7 @@ Show one task's detail record: task fields, parent/child tasks, durable comments
|
|
|
1011
1023
|
|
|
1012
1024
|
### `POST /api/clusters/:id/peer/task-create`
|
|
1013
1025
|
|
|
1014
|
-
Create a non-terminal task in the cluster cwd. Body: `{ workflowId, title, body?, notes?, assignee?, priority?, parentIds?, links?, reviewRequired?, goalMode?, goalMaxTurns? }`. Delegates to `clusterPeerOps.peerTaskCreate`, emits `task_ledger_event` op `create`, and broadcasts a fresh snapshot. Returns the created task object, or `{ error: <code>, message }` on failure.
|
|
1026
|
+
Create a non-terminal task in the cluster cwd. Body: `{ workflowId, title, body?, notes?, assignee?, priority?, parentIds?, links?, reviewRequired?, goalMode?, goalMaxTurns?, release? }`. Delegates to `clusterPeerOps.peerTaskCreate`, emits `task_ledger_event` op `create`, and broadcasts a fresh snapshot. Returns the created task object, or `{ error: <code>, message }` on failure.
|
|
1015
1027
|
|
|
1016
1028
|
### `POST /api/clusters/:id/peer/task-claim`
|
|
1017
1029
|
|
|
@@ -2273,3 +2285,21 @@ a replacement selected by a later request. Tests: `npm run test:voice`.
|
|
|
2273
2285
|
- [WebSocket protocol](PROTOCOL.md)
|
|
2274
2286
|
- [Architecture](ARCHITECTURE.md)
|
|
2275
2287
|
- [Documentation style](STYLE.md)
|
|
2288
|
+
|
|
2289
|
+
### Storage report
|
|
2290
|
+
|
|
2291
|
+
`GET /api/storage-report?path=<absolute-project-path>` reads project state in a worker and returns sizes, event types, largest files, activity, open status, errors and the measurement time. `buckets` assigns every byte to one named bucket (`events`, `artifacts`, `handoffs`, `checkpoints`, `scratch`, `conversationFiles`, `plans`, `boards`, `worktrees`, `savedClusters`, `voiceAndModels`, `caches`, `providerData`, `logs`, `archives`, `other`) with logical and allocated sizes. Extra hard links are reported in `hardLinkBytes` and counted once; nested project state folders are skipped and counted in `nestedFolders`. `GET /api/storage-report?scope=home` measures Arco's own folder the same way.
|
|
2292
|
+
|
|
2293
|
+
`GET /api/storage-report?scope=all` measures every known project and chat state folder and Arco's own folder, one at a time, and returns `{ measuredAt, totalBytes, home, projects, budget }`. Each project row has `path`, `kind` (`project` or `chat`), `stateBytes`, `buckets`, `biggest`, `conversations`, `openConversations` and `archives`, largest first. The result is cached; `refresh=1` measures again.
|
|
2294
|
+
|
|
2295
|
+
`POST /api/storage/archive`, `/api/storage/restore` and `/api/storage/delete`, each with `{ path, workflowId, confirm: true }`, act on one conversation. ARCHIVE writes `<project>/.arco/archive/<id>.arcoarchive`, reads it back against each file's hash, then removes the archived files; kept items, links, `keep.json` and `storage-warnings.json` always stay in the folder. Archive, delete and EMPTY SCRATCH hold the conversation's KEEP lock (`keepStore.withKeepLock`, shared with the KEEP writer) from reading the list through the last removal. RESTORE checks the whole archive and refuses (409 `exists`) when any file already exists, then writes every file and removes the archive. DELETE runs the existing purge (folder, checkpoints, Recall row, mailbox), leaves kept items, and removes the archive if there is one. Archive and delete answer 409 `open` for an open or working conversation, 409 `kept` when the whole conversation is kept, and 409 `keep_unreadable` when the KEEP file cannot be read; 404 when there is nothing to act on. No storage action follows a link: when the project's `.arco`, `.arco/workflows`, `.arco/archive`, the conversation folder, its `scratch/`, the archive file or any folder on a restored file's path is a link, the action answers 409 `unsafe` and changes nothing. COMPRESS OLD LOGS skips linked conversation folders. Every action is recorded in `<project>/.arco/storage-actions.jsonl`.
|
|
2296
|
+
|
|
2297
|
+
`POST /api/storage/compress-logs` with `{ path, confirm: true }` (COMPRESS OLD LOGS) seals the live logs of the project's closed conversations into compressed segments, the same lossless sealing as during writes (see [Persistence](PERSISTENCE.md#sealed-segments)). Open or working conversations are skipped and listed in `skippedOpen`; logs under 1 MiB are left plain. `deferred` counts logs whose segments were written but whose live file another program held open (Windows refuses a rename over an open file); the live file stays complete and the next seal replaces it. Each seal runs inside the conversation's write chain, so an event written meanwhile lands in the new live file. The result is `{ ok, sealed, skippedOpen, failed, deferred, beforeBytes, afterBytes }`, and the action is recorded in `storage-actions.jsonl`. Nothing is deleted.
|
|
2298
|
+
|
|
2299
|
+
`GET` and `POST /api/storage/policy` read and change `{ autoArchiveClosedDays, budgetGiB, budgetNotice }` in Arco's `storage-policy.json`. Defaults: `null` (auto-archive off), `100`, `true`; invalid values fall back to them. When `autoArchiveClosedDays` is set, a daily run archives conversations closed for that many days that are not kept; it never deletes. `GET /api/storage/budget` returns `{ enabled, limitBytes, totalBytes, measuredAt, over }` from the last measurement; it does not start one. The daily run measures again while the notice is on. `ARCO_STORAGE_POLICY=0` turns the daily run off.
|
|
2300
|
+
|
|
2301
|
+
`POST /api/storage/empty-scratch` with `{ path, workflowId, confirm: true }` deletes the conversation's `scratch/` contents except kept items (`keep.json`). It needs a registered project path and `confirm: true` (400 otherwise; 403 for an unregistered project). It answers 409 `busy` while the conversation works, 409 `keep_unreadable` when the KEEP file cannot be read and 409 `unsafe` when `scratch/` or the conversation folder is a link, deleting nothing. Links inside `scratch/` are removed as links, never followed. The result is `{ ok, removedBytes, removedFiles, keptItems }`, and the action is recorded in `<project>/.arco/storage-actions.jsonl`. The cached result is refreshed with `refresh=1`. Shared checkpoint bytes are separate from workflow data. The endpoint writes nothing.
|
|
2302
|
+
|
|
2303
|
+
### Artifact KEEP and copy review
|
|
2304
|
+
|
|
2305
|
+
`POST /api/storage/keep` accepts `path`, `workflowId`, `itemPath`, `reason` and `confirm: true`; it adds a validated protection to the conversation's KEEP file. `copy-review` accepts the same project and workflow identifiers, `itemPath`, `destinationFolder`, `publicProject` and `confirm: true`. It returns ignore and public status, sizes, line-numbered rule findings, per-file `unscanned` state and a review token. `copy-ignore` adds a rule for the reviewed destination. `copy-confirm` rechecks the token and copies without overwriting or deleting the original. For unscanned files going into a public repository outside Git ignore, it also requires `confirmUnscanned: true`. The request never stages or commits.
|
package/docs/NOTIFICATIONS.md
CHANGED
|
@@ -14,7 +14,8 @@ A `WorkbenchNotice` is `{ id, category, severity, title, body?, ts, workflowId?,
|
|
|
14
14
|
|
|
15
15
|
| category | when | severity (typical) |
|
|
16
16
|
|---|---|---|
|
|
17
|
-
| `turn-finished` | a
|
|
17
|
+
| `turn-finished` | a primary turn completed in another tab | info |
|
|
18
|
+
| `attention` | a turn failed or is waiting on the operator in another tab | info / error |
|
|
18
19
|
| `quota-recovered` | a throttled provider became available again | success |
|
|
19
20
|
| `auth-expired` | a provider's auth needs re-login | warning |
|
|
20
21
|
| `terminal-exited` | a terminal session exited non-zero | warning |
|
|
@@ -28,20 +29,20 @@ A `WorkbenchNotice` is `{ id, category, severity, title, body?, ts, workflowId?,
|
|
|
28
29
|
|
|
29
30
|
## Attention alerts (desktop and phone)
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
places, all off by default. They never create an in-app toast.
|
|
32
|
+
Desktop and phone alerts are opt-in per event and off by default. BELL notices for another tab are shown by default and controlled by SHOW IN BELL. These alerts never create an in-app toast.
|
|
33
33
|
|
|
34
34
|
| event | raised when |
|
|
35
35
|
|---|---|
|
|
36
|
-
| finished | a primary turn ends
|
|
36
|
+
| finished | a primary turn ends (`primary_turn_ended`); desktop and phone alerts require at least 15 seconds and in a cluster only the director unless `clusterFinished` is `all` |
|
|
37
37
|
| failed | a `worker_error`, a `primary_refusal`, or a workflow-scoped `error` passes through `broadcastWorkflow` |
|
|
38
38
|
| waiting | an `operator_question` becomes pending or a `gate_required` is parked (each id once) |
|
|
39
39
|
|
|
40
40
|
`server/src/attention.ts` watches workflow messages from `broadcastWorkflow`
|
|
41
41
|
(Incognito workflows are skipped), applies the switches, allows one alert per
|
|
42
|
-
workflow and event every 3 seconds, and does
|
|
42
|
+
workflow and event every 3 seconds, and does three things:
|
|
43
43
|
|
|
44
|
-
- **
|
|
44
|
+
- **BELL:** sends an `attention_event` with no message text. Each browser adds a quiet notice when its current tab is different and the matching BELL category is shown.
|
|
45
|
+
- **This computer:** uses the same `attention_event`. Each browser
|
|
45
46
|
shows a system notification only when its switch is on, permission is granted
|
|
46
47
|
and the window is unfocused or hidden; the event id is the notification tag so
|
|
47
48
|
one event shows once, and a click focuses the window and opens the tab
|
|
@@ -56,7 +57,7 @@ workflow and event every 3 seconds, and does two things:
|
|
|
56
57
|
Preferences live in `~/.arco/notification-channels.json` (mode 0600; the ntfy
|
|
57
58
|
token is stored there and never returned to the browser). `GET`/`PUT
|
|
58
59
|
/api/notification-channels` and `POST /api/notification-channels/test` serve
|
|
59
|
-
Settings > Notifications. The window title shows `(N) ` before the page title
|
|
60
|
+
Settings > Notifications, where REQUEST PERMISSION and TEST DESKTOP check the browser permission and notification path. Normal desktop alerts require an unfocused window; finished turns must last at least 15 seconds. The window title shows `(N) ` before the page title
|
|
60
61
|
while N tabs hold an unanswered question or approval (`client/src/alerts/waiting.ts`,
|
|
61
62
|
the same definition any per-tab status uses).
|
|
62
63
|
|
|
@@ -86,14 +87,13 @@ One chokepoint so every source is a one-liner and external transports can use th
|
|
|
86
87
|
(returns `null`, nothing broadcast), else broadcast `workbench_notice`.
|
|
87
88
|
- `setMutes(cats)`, replace + persist + re-broadcast the snapshot. Serviced
|
|
88
89
|
from the `set_notification_mutes` handler.
|
|
89
|
-
- Source helpers: `onTurnStarted` / `onTurnEnded` (
|
|
90
|
-
past the 60s threshold), `notifyQuotaRecovered(provider)`.
|
|
90
|
+
- Source helpers: `onTurnStarted` / `onTurnEnded` (legacy external transport only after 60 seconds), `notifyQuotaRecovered(provider)`.
|
|
91
91
|
|
|
92
92
|
### Wired sources
|
|
93
93
|
|
|
94
94
|
- **`turn-finished`**, `broadcast.ts` already special-cases
|
|
95
95
|
`primary_turn_started` / `primary_turn_ended`; `onTurnStarted` /
|
|
96
|
-
`onTurnEnded`
|
|
96
|
+
`onTurnEnded` keep the 60-second legacy transport path. BELL uses the attention event for every finished turn in an unviewed tab.
|
|
97
97
|
- **`quota-recovered`**, `index.ts`'s quota change-listener: `markAvailable`
|
|
98
98
|
only fires the listener on a real throttled->available flip, so a non-throttled
|
|
99
99
|
state there is a recovery -> `notifyQuotaRecovered`.
|
|
@@ -114,14 +114,13 @@ the identical `emit()`.
|
|
|
114
114
|
- **`stores/notificationStore.ts`**, standalone Zustand store (out of
|
|
115
115
|
`appStore`, like `recallStore`): `notices` history (cap 50, newest first),
|
|
116
116
|
the server-authoritative `muted` set, and a `lastSeenTs` marker for the unread
|
|
117
|
-
badge.
|
|
118
|
-
notices.
|
|
117
|
+
badge. Attention events are filtered by this mute set in each browser.
|
|
119
118
|
- **`ws/handleServerMessage.ts`**, `workbench_notice` -> `pushNotice` (history)
|
|
120
119
|
**and** a transient toast via the existing app strip
|
|
121
120
|
(`appStore.pushNotification`, error/warning -> `error`, else `info`).
|
|
122
121
|
`notification_mutes` -> `setMutedFromServer`.
|
|
123
122
|
- **`components/NotificationCenter.tsx`**, the header bell (`◔ BELL`) with an
|
|
124
|
-
unread badge; the dropdown shows the notice history + a per-category
|
|
123
|
+
unread badge; the dropdown shows the notice history + a per-category SHOW IN BELL grid (checked means shown)
|
|
125
124
|
(checkbox -> `set_notification_mutes` via `onSetMutes`, threaded App ->
|
|
126
125
|
SystemHeader -> useWebSocket). Always visible, even in I3 focus mode, since
|
|
127
126
|
notices are exactly the "agent finished / something broke" signal focus mode
|
|
@@ -135,7 +134,7 @@ Pure, no WS/server boot. Injects a capture-broadcast into the hub and asserts:
|
|
|
135
134
|
every category emits a `workbench_notice`; a muted category is suppressed before
|
|
136
135
|
broadcast (`emit` returns `null`, zero wire messages); `setMutes` persists to
|
|
137
136
|
disk + re-broadcasts `notification_mutes` and a fresh `init` reloads it (survives
|
|
138
|
-
a restart); the long-turn helper only
|
|
137
|
+
a restart); the long-turn helper sends only to legacy transports past its threshold; `notifyQuotaRecovered`
|
|
139
138
|
emits. `npm run smoke:notifications` (26 asserts).
|
|
140
139
|
|
|
141
140
|
## External transport (ntfy)
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -56,7 +56,7 @@ arco setup
|
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
`arco setup` asks before installing the service, starts it, and opens the local
|
|
59
|
-
URL. Use `arco service install|uninstall|start|stop|restart|status|logs` for
|
|
59
|
+
URL. Use `arco service install|uninstall|start|stop|restart|status|logs|refresh` for
|
|
60
60
|
direct service control, or `arco start` for a foreground run. Service settings
|
|
61
61
|
come from `ARCO_HOME`, `ARCO_PORT`, `ARCO_HOST`, and the other supported
|
|
62
62
|
environment values saved at first install. Existing unowned or modified service
|
|
@@ -187,6 +187,32 @@ modules cannot be replaced safely. A packaged service can instead use
|
|
|
187
187
|
Linux, macOS, and Windows. The action interrupts running turns and reports
|
|
188
188
|
completion or rollback after reconnect.
|
|
189
189
|
|
|
190
|
+
For a Linux installation affected by the 0.1.3 service working-directory issue,
|
|
191
|
+
`arco update` can roll back when the old unit fails to restart. Upgrade the
|
|
192
|
+
package directly, then refresh and start the unmodified Arco-owned unit:
|
|
193
|
+
|
|
194
|
+
```sh
|
|
195
|
+
npm install -g arco-workbench
|
|
196
|
+
arco service refresh
|
|
197
|
+
arco service start
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
A service definition changed outside Arco is not overwritten; review it before
|
|
201
|
+
continuing.
|
|
202
|
+
|
|
203
|
+
Before installing a release older than 0.1.4, stop Arco and write compressed
|
|
204
|
+
conversation logs back to plain files. Older releases read only the plain
|
|
205
|
+
`events.jsonl` and would show only the newest part of each long conversation:
|
|
206
|
+
|
|
207
|
+
```sh
|
|
208
|
+
arco storage unseal
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
Add `--project <path>` (repeatable) to limit it to some projects. In a source
|
|
212
|
+
checkout, run `npm run storage:unseal`. See
|
|
213
|
+
[Persistence](PERSISTENCE.md#sealed-segments). See [Service mode](SERVICE_MODE.md#packaged-service) for the
|
|
214
|
+
working-directory requirements.
|
|
215
|
+
|
|
190
216
|
### Source checkout
|
|
191
217
|
|
|
192
218
|
From the checkout, run:
|