arco-workbench 0.2.2 → 0.2.5
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/THIRD_PARTY_NOTICES +2 -2
- package/client/dist/assets/{PhosphorBackdrop-BbR3xmfD.js → PhosphorBackdrop-CLILIwOQ.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-UMjbs9ZN.js → ThemedBackgroundShaderImpl-B87chcb5.js} +1 -1
- package/client/dist/assets/{XtermView-n135qz-f.js → XtermView-BP_j7WSN.js} +1 -1
- package/client/dist/assets/{galleryEditor-CFSke4by.js → galleryEditor-B90phoBI.js} +1 -1
- package/client/dist/assets/{index-DeoJbjI3.js → index-BfPp1Oup.js} +270 -270
- package/client/dist/index.html +1 -1
- package/client/dist/manifest-mobile.webmanifest +1 -0
- package/client/src/App.tsx +2 -2
- package/client/src/components/AuthReloginNotice.tsx +7 -6
- package/client/src/components/ChatMessage.tsx +41 -29
- package/client/src/components/ChatPanel.tsx +17 -4
- package/client/src/components/ClaudeNativeAccountPicker.tsx +32 -0
- package/client/src/components/ClaudeNativeAuthRow.tsx +71 -19
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +11 -281
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +1 -1
- package/client/src/components/ClusterRightPanel/FreshMemberForm.tsx +315 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +17 -7
- package/client/src/components/ClusterRightPanel/index.tsx +1 -1
- package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +6 -4
- package/client/src/components/ClusterTab.tsx +2 -2
- package/client/src/components/Connections/Connections.tsx +7 -11
- package/client/src/components/Connections/model.ts +3 -1
- package/client/src/components/FileViewerModal.tsx +54 -17
- package/client/src/components/GitHubPanel/index.tsx +9 -5
- package/client/src/components/HandoffDialog.tsx +5 -3
- package/client/src/components/MobileShell.tsx +1 -33
- package/client/src/components/OperatorQuestionNotice.tsx +5 -4
- package/client/src/components/ProvidersPopover.tsx +6 -2
- package/client/src/components/RightPanel/ActivityTab.tsx +2 -1
- package/client/src/components/RightPanel/ConfigTab.tsx +23 -5
- package/client/src/components/RightPanel/OutputsPanel.tsx +21 -9
- package/client/src/components/RightPanel/outputsReconcile.ts +31 -0
- package/client/src/components/SettingsPanel.tsx +7 -10
- package/client/src/components/SpawnDialog.tsx +14 -3
- package/client/src/components/TabBar.tsx +2 -2
- package/client/src/components/TabContextMenu.tsx +73 -133
- package/client/src/components/TerminalInput.tsx +4 -3
- package/client/src/components/TranscriptWorkerDialog.tsx +14 -4
- package/client/src/components/UsageBar.tsx +37 -18
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +29 -3
- package/client/src/components/WorkflowCreator/index.tsx +29 -15
- package/client/src/components/WorkflowView.tsx +1 -1
- package/client/src/components/providerIndicator.ts +7 -3
- package/client/src/components/research/QuickResearchOverview.tsx +7 -3
- package/client/src/components/research/SavedQuickKeep.tsx +7 -3
- package/client/src/components/settings/GitHubAuthRow.tsx +34 -0
- package/client/src/explorer/ArtifactsLens.tsx +17 -8
- package/client/src/explorer/ExplorerApp.tsx +3 -3
- package/client/src/explorer/types.ts +3 -1
- package/client/src/help/content/cluster.tsx +10 -4
- package/client/src/help/content/composer.tsx +3 -2
- package/client/src/help/content/header.tsx +6 -3
- package/client/src/help/content/misc.tsx +9 -7
- package/client/src/help/content/rightPanel.tsx +11 -6
- package/client/src/help/content/settings.tsx +14 -3
- package/client/src/help/content/tabbar.tsx +1 -1
- package/client/src/help/manualSections/actions.tsx +5 -1
- package/client/src/help/manualSections/clusters.tsx +21 -15
- package/client/src/help/manualSections/configuration.tsx +6 -4
- package/client/src/help/manualSections/gettingStarted.tsx +4 -2
- package/client/src/help/manualSections/maintenance.tsx +24 -0
- package/client/src/help/manualSections/powerFeatures.tsx +4 -2
- package/client/src/help/manualSections/providers.tsx +11 -4
- package/client/src/help/manualSections/workspace.tsx +3 -3
- package/client/src/hooks/useClaudeNativeCatalog.ts +26 -0
- package/client/src/hooks/useClaudeNativeLogin.ts +16 -11
- package/client/src/hooks/useWebSocket.ts +4 -2
- package/client/src/layout/layoutRange.ts +14 -5
- package/client/src/main.tsx +2 -0
- package/client/src/questions/waitingQuestion.ts +2 -0
- package/client/src/stores/appStore.ts +5 -1
- package/client/src/stores/appStore.types.ts +2 -0
- package/client/src/stores/replayContext.ts +20 -0
- package/client/src/utils/chatFileLinks.ts +34 -3
- package/client/src/utils/claudeAuth.ts +9 -1
- package/client/src/ws/handleServerMessage.ts +11 -3
- package/docs/ARCHITECTURE.md +3 -3
- package/docs/BACKUP.md +1 -1
- package/docs/CHECKPOINTS.md +67 -3
- package/docs/CLIENT.md +11 -6
- package/docs/EXTENDING.md +1 -1
- package/docs/FEATURES.md +3 -3
- package/docs/GETTING_STARTED.md +5 -4
- package/docs/GIT_WORKBENCH.md +8 -0
- package/docs/GLOSSARY.md +2 -2
- package/docs/GOTCHAS.md +4 -4
- package/docs/HTTP_API.md +63 -30
- package/docs/OPERATIONS.md +11 -0
- package/docs/OPERATOR_ACTIONS.md +2 -2
- package/docs/OUTPUTS.md +48 -6
- package/docs/PERSISTENCE.md +1 -1
- package/docs/PRIMITIVES.md +4 -2
- package/docs/PROTOCOL_CLUSTER.md +12 -6
- package/docs/PROTOCOL_PRIMITIVES.md +1 -1
- package/docs/PROVIDERS.md +47 -10
- package/docs/RESEARCH.md +3 -3
- package/docs/SETTINGS.md +9 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -3
- package/node_modules/@arco/shared/dist/protocol/clusters.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +3 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +5 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +0 -2
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/services.mjs +20 -1
- package/scripts/packaging/update.mjs +37 -2
- package/server/dist/attention.d.ts +6 -0
- package/server/dist/attention.js +6 -0
- package/server/dist/auth.d.ts +5 -0
- package/server/dist/auth.js +31 -20
- package/server/dist/clusterAutoTurn.d.ts +5 -1
- package/server/dist/clusterAutoTurn.js +31 -9
- package/server/dist/clusterPresets.js +3 -3
- package/server/dist/effortValidation.d.ts +2 -2
- package/server/dist/effortValidation.js +4 -4
- package/server/dist/explorerArtifacts.d.ts +1 -0
- package/server/dist/explorerArtifacts.js +12 -1
- package/server/dist/explorerDocs.d.ts +1 -0
- package/server/dist/explorerDocs.js +4 -4
- package/server/dist/geminiMembers.d.ts +7 -1
- package/server/dist/geminiMembers.js +28 -14
- package/server/dist/gitSnapshots.d.ts +1 -0
- package/server/dist/gitSnapshots.js +547 -83
- package/server/dist/http/clusterRoutes.js +9 -3
- package/server/dist/http/conversationFiles.d.ts +36 -0
- package/server/dist/http/conversationFiles.js +222 -0
- package/server/dist/http/fileBytes.d.ts +3 -0
- package/server/dist/http/fileBytes.js +33 -0
- package/server/dist/http/fileContentRoute.d.ts +2 -0
- package/server/dist/http/fileContentRoute.js +139 -0
- package/server/dist/http/fileRead.d.ts +54 -2
- package/server/dist/http/fileRead.js +31 -24
- package/server/dist/http/outputRoutes.js +14 -21
- package/server/dist/http/readConfinement.d.ts +0 -11
- package/server/dist/http/readConfinement.js +4 -30
- package/server/dist/http/router.js +41 -66
- package/server/dist/index.js +26 -12
- package/server/dist/management/initHubLink.js +1 -1
- package/server/dist/outputs.js +8 -0
- package/server/dist/primitives/exportContext.d.ts +2 -0
- package/server/dist/primitives/exportContext.js +13 -2
- package/server/dist/primitives/runCompare.d.ts +7 -1
- package/server/dist/primitives/runCompare.js +44 -20
- package/server/dist/project/taskLedger.js +46 -34
- package/server/dist/providerAccounts.d.ts +4 -0
- package/server/dist/providerAccounts.js +20 -1
- package/server/dist/providers/antigravity/artifacts.d.ts +23 -0
- package/server/dist/providers/antigravity/artifacts.js +140 -0
- package/server/dist/providers/antigravity/index.js +85 -7
- package/server/dist/providers/antigravity/questions.d.ts +2 -0
- package/server/dist/providers/antigravity/questions.js +58 -0
- package/server/dist/providers/claude-native/auth.d.ts +9 -8
- package/server/dist/providers/claude-native/auth.js +50 -58
- package/server/dist/providers/claude-native/authStatus.d.ts +2 -2
- package/server/dist/providers/claude-native/authStatus.js +9 -7
- package/server/dist/providers/claude-native/catalog.d.ts +6 -5
- package/server/dist/providers/claude-native/catalog.js +50 -39
- package/server/dist/providers/claude-native/oauth.d.ts +10 -9
- package/server/dist/providers/claude-native/oauth.js +120 -96
- package/server/dist/providers/claude-native/worker.d.ts +1 -0
- package/server/dist/providers/claude-native/worker.js +38 -23
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -3
- package/server/dist/providers/codex-appserver/operatorQuestions.js +27 -13
- package/server/dist/providers/codexChatBoundary.js +6 -1
- package/server/dist/research/quickPromotion.d.ts +3 -0
- package/server/dist/research/quickPromotion.js +26 -9
- package/server/dist/research/savedQuickPromotion.js +2 -11
- package/server/dist/server/broadcast.js +6 -0
- package/server/dist/settings.d.ts +1 -0
- package/server/dist/settings.js +39 -7
- package/server/dist/skills.js +1 -1
- package/server/dist/smartPickupAdapters.d.ts +1 -0
- package/server/dist/smartPickupAdapters.js +2 -2
- package/server/dist/smartPickupObserver.js +8 -5
- package/server/dist/thirdPartySkills.js +11 -5
- package/server/dist/turnChanges.d.ts +1 -1
- package/server/dist/turnChanges.js +5 -4
- package/server/dist/usage.d.ts +1 -1
- package/server/dist/usage.js +39 -27
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/processKill.js +37 -24
- package/server/dist/workflowMeta.js +2 -2
- package/server/dist/ws/clusterHandlers.d.ts +2 -2
- package/server/dist/ws/clusterHandlers.js +127 -113
- package/server/dist/ws/clusterMembers.d.ts +1 -1
- package/server/dist/ws/clusterMembers.js +34 -4
- package/server/dist/ws/compactHandlers.js +30 -14
- package/server/dist/ws/compareHandlers.js +53 -21
- package/server/dist/ws/gateHandlers.js +2 -0
- package/server/dist/ws/genesisHandlers.js +5 -3
- package/server/dist/ws/handoffHandlers.d.ts +1 -1
- package/server/dist/ws/handoffHandlers.js +115 -39
- package/server/dist/ws/transcriptWorkerHandlers.js +7 -2
- package/server/dist/ws/turnEngine.js +37 -19
- package/server/dist/ws/updatePrimaryConfig.d.ts +3 -2
- package/server/dist/ws/updatePrimaryConfig.js +236 -133
- package/server/dist/ws/workflowHandlers.js +21 -4
- package/server/package.json +1 -1
- package/server/src/attention.ts +7 -0
- package/server/src/auth.ts +33 -20
- package/server/src/clusterAutoTurn.ts +31 -11
- package/server/src/clusterPresets.ts +2 -2
- package/server/src/effortValidation.ts +4 -4
- package/server/src/explorerArtifacts.ts +12 -1
- package/server/src/explorerDocs.ts +5 -5
- package/server/src/geminiMembers.ts +26 -15
- package/server/src/gitSnapshots.ts +538 -82
- package/server/src/http/clusterRoutes.ts +10 -3
- package/server/src/http/conversationFiles.ts +231 -0
- package/server/src/http/fileBytes.ts +34 -0
- package/server/src/http/fileContentRoute.ts +123 -0
- package/server/src/http/fileRead.ts +30 -25
- package/server/src/http/outputRoutes.ts +13 -13
- package/server/src/http/readConfinement.ts +3 -30
- package/server/src/http/router.ts +39 -62
- package/server/src/index.ts +27 -18
- package/server/src/management/initHubLink.ts +1 -1
- package/server/src/outputs.ts +8 -0
- package/server/src/primitives/exportContext.ts +14 -2
- package/server/src/primitives/runCompare.ts +73 -46
- package/server/src/project/taskLedger.ts +47 -30
- package/server/src/providerAccounts.ts +20 -1
- package/server/src/providers/antigravity/artifacts.ts +121 -0
- package/server/src/providers/antigravity/index.ts +64 -6
- package/server/src/providers/antigravity/questions.ts +52 -0
- package/server/src/providers/claude-native/auth.ts +45 -60
- package/server/src/providers/claude-native/authStatus.ts +9 -8
- package/server/src/providers/claude-native/catalog.ts +52 -35
- package/server/src/providers/claude-native/oauth.ts +101 -77
- package/server/src/providers/claude-native/worker.ts +38 -22
- package/server/src/providers/codex-appserver/operatorQuestions.ts +26 -12
- package/server/src/providers/codexChatBoundary.ts +6 -1
- package/server/src/research/quickPromotion.ts +24 -6
- package/server/src/research/savedQuickPromotion.ts +2 -8
- package/server/src/server/broadcast.ts +4 -0
- package/server/src/settings.ts +36 -8
- package/server/src/skills.ts +1 -1
- package/server/src/smartPickupAdapters.ts +3 -2
- package/server/src/smartPickupObserver.ts +8 -5
- package/server/src/thirdPartySkills.ts +11 -5
- package/server/src/turnChanges.ts +5 -4
- package/server/src/usage.ts +30 -22
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/processKill.ts +37 -23
- package/server/src/workflowMeta.ts +2 -2
- package/server/src/ws/clusterHandlers.ts +107 -104
- package/server/src/ws/clusterMembers.ts +25 -6
- package/server/src/ws/compactHandlers.ts +29 -15
- package/server/src/ws/compareHandlers.ts +59 -25
- package/server/src/ws/gateHandlers.ts +2 -0
- package/server/src/ws/genesisHandlers.ts +5 -4
- package/server/src/ws/handoffHandlers.ts +105 -37
- package/server/src/ws/transcriptWorkerHandlers.ts +6 -2
- package/server/src/ws/turnEngine.ts +36 -18
- package/server/src/ws/updatePrimaryConfig.ts +230 -132
- package/server/src/ws/workflowHandlers.ts +20 -4
- package/shared/dist/protocol/clusters.d.ts +15 -3
- package/shared/dist/protocol/clusters.js +1 -1
- package/shared/dist/protocol/models.d.ts +6 -1
- package/shared/dist/protocol/operatorQuestions.d.ts +2 -1
- package/shared/dist/protocol/settings.d.ts +3 -0
- package/shared/dist/protocol/settings.js +5 -0
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/dist/protocol/workflows.js +0 -2
- package/shared/src/protocol/clusters.ts +23 -5
- package/shared/src/protocol/compare.ts +2 -2
- package/shared/src/protocol/models.ts +8 -4
- package/shared/src/protocol/operatorQuestions.ts +2 -1
- package/shared/src/protocol/settings.ts +8 -1
- package/shared/src/protocol/workflows.ts +1 -1
package/docs/CLIENT.md
CHANGED
|
@@ -908,6 +908,8 @@ The 42 named theme IDs are: abyssal, amber-crt, arch, arrakis, aurora, bloodmoon
|
|
|
908
908
|
|
|
909
909
|
The GitHub Code view decodes README and file contents as UTF-8. Tree, README and file reads are cancelled and ignored after selection changes. Relative document links separate decoded repository paths from URL fragments; opening the file scrolls to its section.
|
|
910
910
|
|
|
911
|
+
In AGENT > ACTIVITY, each tool name takes the width of its text up to 45% of the row. Longer names and statuses wrap. The command and output share the remaining space with the timestamp.
|
|
912
|
+
|
|
911
913
|
In CONFIG, the codebase memory index draft resets when the member changes. Expanded review rows load their report when completion arrives and clear a previous read error on success.
|
|
912
914
|
|
|
913
915
|
| Tab | Component | Data source |
|
|
@@ -1140,7 +1142,7 @@ New `peer_message_sent` events carry their full body on the sender's workflow ch
|
|
|
1140
1142
|
|
|
1141
1143
|
**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).
|
|
1142
1144
|
|
|
1143
|
-
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on a Claude, Codex, Ollama or llama.cpp tab (`isClusterMemberProvider` less Cursor) opens `TabContextMenu` with CREATE WITH EXISTING (a multi-select list of other such tabs in the same cwd)
|
|
1145
|
+
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on a Claude, Codex, Ollama or llama.cpp tab (`isClusterMemberProvider` less Cursor) opens `TabContextMenu` on CREATE WITH FRESH (1 worker card; each card is the `FreshMemberForm` that + ADD FRESH also uses), with CREATE WITH EXISTING (a multi-select list of other such tabs in the same cwd) and ADD TO EXISTING one click away. An open Cursor tab is refused like in ADD EXISTING: its ACP session was opened without the peer-tools MCP, so Cursor members are added fresh (+ ADD FRESH). Other providers get a refusal naming the accepted ones. Confirm dispatches `cluster_create`. × on a cluster tab confirms tear-down via `cluster_delete`.
|
|
1144
1146
|
|
|
1145
1147
|
### Tab bar layout (slice 6a)
|
|
1146
1148
|
|
|
@@ -1245,7 +1247,7 @@ State is not persisted (proposals are fetched from the server on subscribe). The
|
|
|
1245
1247
|
|
|
1246
1248
|
`client/src/layout/layoutRange.ts` turns the window width and Settings > Appearance > Layout into the layout to draw. The width is `innerWidth` divided by the interface scale (`--ui-scale`, set by `applyUiScale`, which dispatches `arco:ui-scale`), so 1920 px at 150% counts as 1280.
|
|
1247
1249
|
|
|
1248
|
-
Automatic picks by window width: Narrow under
|
|
1250
|
+
Automatic picks by window width: Narrow under 1200, Compact from 1200, Standard from 1380 (interface pixels: browser viewport width divided by the Arco text scale). At default browser zoom, a maximized 1920 by 1080 display window uses Standard at 100% or 125% OS scaling with 100% or 110% Arco text size. Standard, Compact and Narrow stay fixed at every width. The top-bar layout switch cycles all four choices and shows the active layout and current interface width.
|
|
1249
1251
|
|
|
1250
1252
|
`useLayout()` re-reads on `resize`, `arco:ui-scale`, `arco:layout-mode` (fired by `setLayoutMode`) and the `storage` event. The mode is kept in `localStorage` (`arco.layoutMode`), never per project.
|
|
1251
1253
|
|
|
@@ -1265,9 +1267,9 @@ In the mobile view, Recall places project, time, pinned and transcript filters i
|
|
|
1265
1267
|
|
|
1266
1268
|
In the mobile view, UPLOAD FROM PHONE opens the device's own file and photo picker and adds its selection to the current conversation draft. On the workbench the same control continues to offer the QR upload window. Media uses "Choose a file" in the mobile view.
|
|
1267
1269
|
|
|
1268
|
-
The mobile view is the `/mobile` address of the same client (`isMobilePath` in `client/src/layout/layoutRange.ts`). The server already answers unmatched paths with `index.html`, so nothing new reaches the server. `useLayout()` reports `phone` on `/mobile` and draws the Narrow range underneath; `/` never switches by itself. Below `PHONE_BELOW` (600 CSS pixels of width, or of the shorter side on a touch-only screen) `useLayout()` reports `phoneSized`, and the desktop workbench shows an "Open mobile view" link (`OpenMobileViewLink`) above the chat and is otherwise unchanged.
|
|
1270
|
+
The mobile view is the `/mobile` address of the same client (`isMobilePath` in `client/src/layout/layoutRange.ts`). The server already answers unmatched paths with `index.html`, so nothing new reaches the server. `useLayout()` reports `phone` on `/mobile` and draws the Narrow range underneath; `/` never switches by itself. Below `PHONE_BELOW` (600 CSS pixels of width, or of the shorter side on a touch-only screen) `useLayout()` reports `phoneSized`, and the desktop workbench shows an "Open mobile view" link (`OpenMobileViewLink`) above the chat and is otherwise unchanged. A shortcut added to a phone's home screen from `/mobile` opens `/mobile`: `main.tsx` points the manifest link at `/manifest-mobile.webmanifest` (`start_url` `/mobile`, chosen by `manifestHrefFor`), and every other address keeps `/manifest.webmanifest`, which starts at `/`. A shortcut added from the workbench address still opens the workbench.
|
|
1269
1271
|
|
|
1270
|
-
`App.tsx` replaces the top bar and tab strip with `MobileHeader` and draws `MobileScreenHost` over the conversation area (both in `client/src/components/MobileShell.tsx`; view state in `client/src/stores/phoneStore.ts`). There are two screens. The directory (`MobileDirectory`)
|
|
1272
|
+
`App.tsx` replaces the top bar and tab strip with `MobileHeader` and draws `MobileScreenHost` over the conversation area (both in `client/src/components/MobileShell.tsx`; view state in `client/src/stores/phoneStore.ts`). There are two screens. The directory (`MobileDirectory`) opens straight on the tabs, with no separate NEEDS YOU list above them: clusters (with working and needs-you counts, and one mark per member; the row opens the cluster on the member last in view, else its Director, as a research project's row does, and a separate MEMBERS control folds the member list open), research projects, agents, chats and Home, in the saved tab order. Each row carries its own state (NEEDS YOU, WORKING or IDLE); a decision is answered from the bar above the message box in that conversation (`MobileQuestionBar`). Quick research appears with Chats. Choosing a row calls the same store actions as the tab strip (`setActiveCluster`, `setClusterFocusedMember`, `setActiveJob`, `focusNoticeWorkflow`) and shows the conversation screen. The open clusters and the scroll position are kept in `phoneStore` for the return. A decision is a pending Arco question, a pending Claude Native question (including a sub-agent batch approval) or a parked review gate: `pendingDecisions(..., all)` in `PendingQuestionsButton.tsx`; the desktop PENDING QUESTIONS list keeps Arco questions and batches only.
|
|
1271
1273
|
|
|
1272
1274
|
The conversation screen is the desktop `WorkflowView` or `ClusterTab` with its own transcript, composer, SEND, steer, queue and NUDGE. Its header has a back button (with the needs-you count), the cluster or kind with the state word (NEEDS YOU, WORKING, IDLE, or NEEDS YOU and WORKING), the name on its own line, PANELS and, in a cluster, a scrolling member strip that keeps the current member in view and names a working or waiting member's state in words. The strip is the one member switcher: a chip sets `clusterFocusedMember` and closes whatever sits over the conversation under the header (a sheet, a full-width panel, the terminal window; `showConversation`), so the member's conversation, composer target and state show at once. While the strip is on screen the name is a plain label (`phone-title` is a `div`). In the one-row header, where the strip is folded away, the name carries a down arrow and is a button that opens the members sheet; a row there switches the member and closes the sheet. The idle conversation line above the transcript (`conversation-header`, the member pane header) is hidden; while a turn runs it shows only the activity. The composer (`TerminalInput`) on a phone has one row: the draft, a message options button and SEND (`PhoneSendButtons`; while a turn runs see the STOP and STEER paragraph below). A cluster member pane drops its desktop minimum width, so SEND and STOP stay whole at 320 px and 120% text. In a cluster, recipients other than the member shown appear above the draft as SENDING TO with the recipient picker, whether or not the options are open (`customRecipients` in `ClusterComposerControls`). Every other composer row carries `data-phone-option` and shows only while the options are open (`data-phone-options-open`); the toolbar then wraps instead of folding into MORE, and the composer becomes the MESSAGE TOOLS sheet: a title row with CLOSE, the draft, and the toolbar's buttons in two equal columns, within 72% of the visible height over a dimmed conversation. The options button reads `+`. Every button, select, summary and tab in the mobile view is at least 44 by 44 CSS pixels (`global.css`). PANELS opens a bottom sheet (`Sheet`: at most 88% of the area, over a dimmed conversation): the shown tab's side-panel buttons (registered by `ClusterTab` and `WorkflowView` without the Narrow strip's MORE, whose last-used tab the named entries and the panel's own tabs already reach, and opened through `usePhonePanelRequests` as the Narrow slide-out at full width), ALL PANELS, TERMINAL, CATCH ME UP (moved here from above the chat), SETTINGS, NOTICES, MANUAL, RECALL, MEDIA (the media studio, full screen with a wrapping header), SYSTEM (the `SystemModal`, opened through `phoneStore.systemOpen`, full screen with wrapping tabs), ALL PLANS and ARTIFACTS (the explorer window, a new browser tab on a phone). The tab's panel tiles share their rows (flex), so an odd count leaves no empty cell. A dialog drawn outside the app root carries `data-phone-dialog` (`DialogShell`, which CATCH ME UP uses, and `RecallView`): it fills the visible area like the other phone panels, except a confirmation (`size="confirm"`), which keeps its box; its buttons, selects, fields and checkbox labels are at least 44 px (`global.css`). `WorkSurfaceControls` renders nothing in the mobile view, so no dialog there has Maximize, Reset size or a resize handle, and no saved desktop size is applied. Text links on Home get a 44 px target. A full-width slide-out (`SlideOut` with `full`) is a page: it has no bar of its own, `MobileHeader` shows `phoneStore.pageTitle` with a back arrow (`data-phone-header-mode="page"`), and it scrolls as one surface. `PhonePage` (`client/src/layout/PhonePage.tsx`) is the same page for content no view hosts: it sets `openPanel` and `pageTitle`, and calls `onClose` on the back arrow, the phone's Back, Escape or another overlay. A page body can add to the header through `usePhonePageChrome` (`phoneStore`): a line under the name (`pageSubtitle`, cut at its start so the end of a path stays readable), a `+` (`pagePrimary`) and a `...` that lists `pageActions` in a bottom sheet. When both show, the row tightens and the name is set at 15 px; on a header under 340 px wide PANELS is not drawn beside them, so the first word of the name stays whole. A page with levels of its own (a chapter under a list) gives a step back (`pageBack`; `onBack` on `PhonePage`, `back` in the chrome): the back arrow, the phone's Back and Escape ask it first, and the page stays open when it returns true; another overlay taking the screen closes the page without asking. `PhoneBottomSheet` (`client/src/layout/PhoneBottomSheet.tsx`) is the sheet PANELS uses; with `local` it is drawn over the open page (in the `data-phone-sheet-host` element of `SlideOut` and `PhonePage`) without closing it, and registers as the top layer for the phone's Back. While the terminal window is open the header is in the same page mode, named TERMINAL, without the member strip; its back arrow closes the window and keeps the session. In the cluster panel the two tab rows and the settings rows are not drawn; ALL PANELS (`phoneStore.panelIndex`) lists every tab in 52 px rows plus SETTINGS, which shows the cluster settings as a page, and the back arrow of a page opened from the list returns to the list (`panelFromIndex`). The page body (`data-phone-panel-body`) has no height of its own, so lists inside it grow instead of scrolling in a box (`global.css` lifts the height limit of a `div` with its own limit there; `pre` blocks keep theirs). There is no pinned back bar: the header's back arrow, the phone's Back or a member chip returns to the conversation. The board lists its groups in the order blocked, review, in progress, to do, and leaves out empty groups. A single tab's side panel (`RightPanel`) is the same page: its two tab rows are not drawn, PANELS offers ALL PANELS for every tab, and the list puts Genesis, Bake-off, Ledger, Preview and GitHub under MORE (the cluster list puts Preview and GitHub there). A page body publishes its own header parts through `usePhonePageActions` (`client/src/layout/phonePageActions.ts`, over `usePhonePageChrome` in `phoneStore`): a line under the page name (`pageSubtitle`), the `...` actions (`pageActions`, listed in a sheet over the page) and a `+` main action (`pagePrimary`). A panel that hides a page body while ALL PANELS or the settings page shows wraps it in `PhonePageVisible` with `false`, so only the page in view sets the header. The plan (`PlanTab`, `ClusterPlanTab`) reads as a checklist (`PhonePlanView`, parsed by `phonePlanChecklist` in `client/src/components/plans/`): one section per `###` phase with its count, a finished phase folded, the text before the first phase under ABOUT THIS PLAN, and 44 px tick targets that flip the same body line as the workbench's checkbox; edit as text, choose, guardrails, the public-project box, reviews, move, done, detach and delete are `...` actions, the plan's title is the subtitle, and with no cluster plan the page offers NEW PLAN and ATTACH A PLAN. FILES has one wrapping chip row (`phoneChip` in `client/src/layout/phoneChip.ts`; LIVE shows under OUTPUTS) and `FileExplorer` shows one folder at a time in 52 px rows with UP TO for its parent (the header's back arrow also steps up a folder first, through the chrome's `back`), the folder as the subtitle, and terminal, refresh and a single tab's rename as `...` actions. MEMBERS (`PhoneMemberList`) is one row per member with role and state; a row opens a sheet over the page with OPEN CONVERSATION, MODEL, EFFORT AND WEB ACCESS (CONFIG on that member) and the workbench's `MemberRow`; `+` shows the add-member or add-researcher form, and `...` holds rename, SAVE STATE and SAVED CLUSTERS. Inside the sheet (`data-phone-member-manage`) `global.css` lays that row out for touch: one full-width control per row (RENAME, REPLACE, DETACH, the role's EDIT), each label above its control, WORK SIZE as one wrapping row of chips, the role choices in place under ROLE instead of floating, and no second line with the tab name, which the sheet's title already shows. The empty FOCUS reads "tap to edit". HISTORY and ACTIVITY filters are one chip row, the history member picker is a full-width select, a tapped event opens its actions in a sheet, and PURGE CONVERSATION is a `...` action. The mailbox's help sentence is folded under ABOUT THE MAILBOX. While the cluster panel is open, the Gemini members notice above the conversation is hidden, because the panel's Auto-compaction note names the same members. On the board an open task fills the panel instead of sharing it with the list (`data-board-phone-task`); its CLOSE returns to the list. Settings (`SettingsLayout` with `settings-phone`) fills the visible area in one column: the search and the category list first, then one category with ALL SETTINGS to go back (`phoneStore.settingsPage`); the search field does not take focus on open, so the keyboard stays closed.
|
|
1273
1275
|
|
|
@@ -1297,7 +1299,7 @@ In LIVE WORKTREE, STAGED renders the index patch against HEAD, including staged
|
|
|
1297
1299
|
|
|
1298
1300
|
CHANGED FILES extracts filenames from slash-separated and native Windows paths. ARTIFACTS and CHANGED FILES omit OPEN IN TREE for any path inside the Arco state folder; the viewer remains available.
|
|
1299
1301
|
|
|
1300
|
-
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
|
|
1302
|
+
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`; a refocus or REFRESH keeps the shown lists until the new ones arrive, and failed refreshes, however many in a row, keep the last successful rows beside the error), `RecentsLens.tsx` (CHANGED FILES scan, filter chips ALL/DOCS/IMAGES, `/api/explorer/changed` with current attribution from `/recents`), `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.
|
|
1301
1303
|
|
|
1302
1304
|
`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), the disk budget and the per-conversation scratch warning limit (1 GiB by default), 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.
|
|
1303
1305
|
|
|
@@ -1385,7 +1387,10 @@ It uses the workflow/cluster-scoped `/api/outputs` API rather than the global
|
|
|
1385
1387
|
Archive listing. Rows preserve producing workflow context for existing file and
|
|
1386
1388
|
media viewers. The durable projection and copy/move metadata are maintained by
|
|
1387
1389
|
`server/src/outputs.ts` and `outputStore.ts`; editor writes emit `output_saved`
|
|
1388
|
-
and media result events include exact exported paths.
|
|
1390
|
+
and media result events include exact exported paths. A background refresh merges
|
|
1391
|
+
into the shown list with `outputsReconcile.ts`, so rows keep their place and an
|
|
1392
|
+
open preview reports a changed or removed file (`FileViewerModal` `notice`,
|
|
1393
|
+
`onReload`, `reloadToken`). Public behavior, limits and
|
|
1389
1394
|
recovery are described in [Workspace Outputs](OUTPUTS.md).
|
|
1390
1395
|
|
|
1391
1396
|
The creator and member role editor limit new director assignments to one per cluster, including custom role text beginning with Director or Coordinator. Existing clusters with multiple directors remain intact, show a warning on MEMBERS rows, and still allow REPLACE that preserves both directors' roles. Work size guides the director when assigning work and does not change a model or effort; template review offers it only for repeated roles.
|
package/docs/EXTENDING.md
CHANGED
|
@@ -198,7 +198,7 @@ Update [`docs/PRIMITIVES.md`](PRIMITIVES.md) with a new section, and [`docs/PROT
|
|
|
198
198
|
|
|
199
199
|
Operators create and manage skills in Settings > SKILLS (NEW, EDIT, IMPORT, UPDATE, TURN OFF/ON, MOVE, DUPLICATE, SHARE WITH REPOSITORY). The on-disk shape is also hand-editable. Project skills live under `.arco/skills/`, which Git ignores with the rest of `.arco`; SHARE WITH REPOSITORY adds an exception in `.arco/.gitignore` for one skill and never stages or commits. If Git still ignores the files (including through a global ignore file), SHARE refuses, names the rule and leaves `.arco/.gitignore` unchanged.
|
|
200
200
|
|
|
201
|
-
Built-in skills ship with Arco. Architecture review is operator-only. proportionate-testing is model-invoked. Both are Arco's own. grill-me, grill-with-docs, wait-what and
|
|
201
|
+
Built-in skills ship with Arco. Architecture review is operator-only. proportionate-testing is model-invoked. Both are Arco's own. grill-me, grill-with-docs, wait-what, retro and code-review are operator-run. code-review checks a specific diff against the project standards and supplied spec or linked board task and plan references. It reports findings without changing files; use architecture-review for structural exploration. grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype and writing-for-agents are model-invoked, from mattpocock/skills under MIT (see THIRD_PARTY_NOTICES). A same-name project or global skill replaces the built-in. The MODEL skill `proportionate-testing` sets how much to test before adding or running checks; `tdd` describes how to write one test. It asks for one test per real fault, small browser coverage and operator approval before adding suites, gates, test tooling or CI checks.
|
|
202
202
|
|
|
203
203
|
Layout:
|
|
204
204
|
|
package/docs/FEATURES.md
CHANGED
|
@@ -18,7 +18,7 @@ Skill activity appears below the conversation header during a turn. The control
|
|
|
18
18
|
| 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. |
|
|
19
19
|
| 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**. **Save a copy** and **Move** can use an ordinary home folder or an approved project or media folder; on systems with POSIX permissions **Save a copy** writes an owner-only file; the result stays in the dialog; **Download** is a button. MOVE TO PROJECT reviews a copy or keeps the artifact private; large binaries are scanned for readable text only and listed as not fully scanned, as are files past the findings limit. Folder browsers and content dialogs open at sizes suited to their content, scale with the window, can be resized, and remember the chosen size (**Reset size** restores the default). Large artifact warnings offer KEEP or DISMISS; a kept artifact shows **Kept** with **UNKEEP**. See [Outputs](OUTPUTS.md) |
|
|
20
20
|
| Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; eight role presets including **ADVISOR** (second opinion; no files, assignments or landing) and **DESIGNER** (design, prototype and UI review; builders implement); 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, with **PAUSE** beside TURN OFF, **RESUME**, and **RESET BUDGET** as a separate Rule-based action. 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) |
|
|
21
|
-
| Gemini cluster members | Antigravity CLI (Gemini) as a member in any role |
|
|
21
|
+
| Gemini cluster members | Antigravity CLI (Gemini) as a member in any role | AUTO-PICKUP can wake ordinary Gemini members for eligible incoming mail. Mail from Gemini waits for NUDGE. A notice above the conversation names each Gemini member, and the cluster bar's Auto-compaction control says it skips them (`/compact` in the member's session compacts it). See [Gemini members](PROTOCOL_CLUSTER.md#gemini-members) |
|
|
22
22
|
| Isolated members and sandbox | Members that work in a private workspace | Isolated members and researchers get a private workspace and a per-member web switch. Claude Native uses tool fencing on every system. Claude CLI, Codex, Cursor and (as researchers) Gemini run only inside a checked Linux sandbox; macOS and Windows offer Claude Native only. See [Sandbox requirements](OPERATIONS.md#sandbox-requirements-isolated-members-and-researchers) |
|
|
23
23
|
| One status per tab | Shows at a glance which tabs need you | Workflow and cluster tabs show a colored status dot when not idle (hover for the status). **Needs you** (warning colour) means a question waits or an idle cluster member has mail; the dot pulses while a turn is still running and is solid only when nothing is running. Home Continue cards show a word: Working, Needs you, New reply (a turn finished while you were elsewhere; cleared when you open the tab; not saved across reloads) or Idle |
|
|
24
24
|
| Peer mail in chat | Read sent and received messages | Select a PEER card to open the full available message. Older sent records may have only a saved preview. See [Cluster protocol](PROTOCOL_CLUSTER.md#peer-messaging-workflow-scoped) |
|
|
@@ -49,7 +49,7 @@ Skill activity appears below the conversation header during a turn. The control
|
|
|
49
49
|
| Inline tool-call pills | Compact rows for primary tool calls between assistant bubbles | Claude CLI tabs (read from the Claude session file); other transports list tool calls in ACTIVITY. Bash / Read / Grep / WebFetch and similar; click to expand full JSON input; click a file path to open it in the viewer modal |
|
|
50
50
|
| Interrupt and send | Stop the current turn and send the draft next in the same conversation | **INTERRUPT & SEND** or **Ctrl/Cmd+Enter** while a Claude or Codex Agent is working; both transports per provider; queued messages run afterward; completed edits remain. Adjacent **SEND** and Enter keep ordinary steering; Alt+Enter queues a follow-up |
|
|
51
51
|
| Upload from phone | Attach photos and files from a phone on the same private network | **UPLOAD FROM PHONE** beside Attach; five-minute code; limits 10 files / 20 MiB each / 100 MiB total; default loopback starts an upload-only temporary listener; each offered `http://<ipv4>:<port>` origin shows **UNVERIFIED** then **VERIFIED BY UPLOAD**; **More info**; scan the full QR (direct connection only; Serve and reverse proxies are refused). See [Upload from phone](OPERATIONS.md#upload-from-phone) |
|
|
52
|
-
| Phone view | Use the workbench from a phone at `/mobile` | One conversation at a time; the list of tabs
|
|
52
|
+
| Phone view | Use the workbench from a phone at `/mobile` | One conversation at a time; the list of tabs shows each tab's state (**NEEDS YOU**, **WORKING**, **IDLE**); member strip in clusters; one-row message box with **SEND** / **STEER**, **STOP** and **QUEUE FOR AFTER**; **PANELS** pages; text size under Settings > **THIS PHONE**. The phone needs a route to the server. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone) |
|
|
53
53
|
| Codex saved-model fallback | Keep a Codex tab working when its saved model is not offered | If the installed Codex does not offer the tab's saved model for the account, turns run on Codex's default model and the chat names both; the saved model is not changed. See [Providers](PROVIDERS.md) |
|
|
54
54
|
| Codex wait-and-continue | Keep a Codex turn working while a waited-on command runs | The header stays **WORKING** while that command runs; when it ends Arco continues Codex once with the result, without AUTO-PICKUP. Commands that outlive the reply keep later exits in ACTIVITY. See [Providers](PROVIDERS.md) |
|
|
55
55
|
| Mid-turn delivery and working step | Display-only turn progress | A message sent while the agent is mid-turn shows **Queued** or **Delivered** until answered. The conversation header shows the current step and elapsed time, restarts that timer when a new turn or matching step starts, and marks steps over 60 seconds as long-running. Hover over a shortened step to read it in full. Cluster member cards retain the last settled reply or tool step |
|
|
@@ -138,7 +138,7 @@ Skill activity appears below the conversation header during a turn. The control
|
|
|
138
138
|
| Media studio | Modal viewer/editor for images, audio, and video | Server-side **FFmpeg** ops and GPU **Demucs** stem separation. Image: zoom/pan + layer-based raster editor. Audio: waveform + clip / convert / normalize / speed / gain / spectrogram, plus **SEPARATE** (Demucs stem split). Video: scrub + clip / convert / extract-audio / framegrab / gif / geometry / speed / mute. Every op is a typed spec to argv (no shell, whitelisted enums + validated numbers), confined to the workflow folder + scratch unless **Unconfined media access** is enabled. FFmpeg/Demucs are optional. See [Media studio](MEDIA_STUDIO.md) |
|
|
139
139
|
| Command palette, focus mode, notification bell, SYSTEM modal | Quick navigation and system surfaces | `CommandPalette`; header focus-mode toggle collapses chrome to wordmark + urgent status; notification bell; SYSTEM modal with **ACTIONS** / **DIAGNOSTICS** / **MODELS** / **SERVICES** (health, model probes, local-services, power actions) |
|
|
140
140
|
| Two theme families with font-pack override | Classic and Phosphor themes plus font packs | 43 Arco Classic selections (42 color/font/shader-driven palettes such as Matrix, Sentinel, Cherenkov, Aurora, Red Planet, Everforest, DSKY, Noir, plus the `provider-auto` sentinel) backed by 29 GLSL shaders; 68 Arco Phosphor CRT palettes; 29 font packs substitute display/body/code typography on top of any theme. Each Classic theme carries an inspiration backstory in the User Manual |
|
|
141
|
-
| Window-size layout | The workspace fits laptop and desktop windows | Settings > Appearance > **Layout**: **Automatic** (default; Narrow under
|
|
141
|
+
| Window-size layout | The workspace fits laptop and desktop windows | Settings > Appearance > **Layout**: **Automatic** (default; Narrow under 1200, Compact from 1200, Standard from 1380, in interface pixels), **Standard**, **Compact** or **Narrow**. Fixed choices apply at every width. The top-bar switch cycles the same four. Composer tools that do not fit move into **MORE**; cluster settings fold into one line. Saved per browser; also in the command palette |
|
|
142
142
|
| Remote-friendly | Single forwarded port design | Run Arco on a local host and connect through a forwarded port (SSH tunnel). See [Remote access](OPERATIONS.md#remote-access) |
|
|
143
143
|
| In-app help system | Manual and contextual help | Header **HELP** menu: **USER MANUAL** opens the full operator reference; **POINT AT THINGS** turns on contextual help mode (dashed outline + click-for-popover on annotated elements; Esc exits); **KEYBOARD SHORTCUTS** lists the shortcuts. Inline file references open in a stacked DocViewer reading from the local repo |
|
|
144
144
|
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -361,10 +361,11 @@ tunnel or a private network such as Tailscale. Read
|
|
|
361
361
|
beyond this computer. A desktop window narrower than 600 CSS pixels also
|
|
362
362
|
offers an **Open mobile view** link above the chat.
|
|
363
363
|
|
|
364
|
-
**The list of tabs.** It opens on
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
**The list of tabs.** It opens on your tabs: clusters, research projects,
|
|
365
|
+
agents, chats and Home, in your saved tab order. Each row shows its state:
|
|
366
|
+
**NEEDS YOU** for a question, an approval or a review gate waiting on you, or
|
|
367
|
+
for a member that is idle with unread mail; **WORKING**; or **IDLE**. Open the
|
|
368
|
+
row to answer: the question waits in a bar above the message box. Quick research appears with Chats.
|
|
368
369
|
A cluster row opens the cluster on its Director, or on the member you looked
|
|
369
370
|
at last; **MEMBERS** on the row lists its members. Clusters start folded.
|
|
370
371
|
**+ NEW** at the bottom right starts an agent, a cluster, a research project
|
package/docs/GIT_WORKBENCH.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Git workbench
|
|
2
2
|
|
|
3
|
+
The GitHub browser needs GitHub CLI (`gh`) in the Arco server environment;
|
|
4
|
+
Git alone is not sufficient. Recommended on Windows: install Git for Windows for local repositories and Git Bash, and GitHub CLI (gh) to connect Arco to GitHub. In Settings, a missing CLI offers installation and CHECK CONNECTION, a signed-out CLI offers LOG IN, and an unknown status offers diagnostic guidance and CHECK CONNECTION. A missing CLI, a signed-out CLI and a failed
|
|
5
|
+
status check have distinct messages. Install or repair the CLI as indicated,
|
|
6
|
+
then use CHECK CONNECTION. If the check fails, run `gh auth status` in the
|
|
7
|
+
server environment for details.
|
|
8
|
+
The recovery section uses the selected theme's dialog and control colors so the
|
|
9
|
+
message and recovery controls remain readable with light or dark palettes.
|
|
10
|
+
|
|
3
11
|
The Git/GitHub workbench brings the daily local-and-remote git loop into Arco
|
|
4
12
|
so the operator doesn't have to leave the workbench to see what changed, what
|
|
5
13
|
will push/pull, or what a PR contains. Every surface reuses the A3
|
package/docs/GLOSSARY.md
CHANGED
|
@@ -147,7 +147,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
147
147
|
|
|
148
148
|
**Persisting / persisted** - Written to `events.jsonl`. Persisted messages survive server restart and are streamed to clients on reconnect. Non-persisted messages (e.g. `quota_status`, `context_usage`, `session_entry`) are derived state, broadcast transiently.
|
|
149
149
|
|
|
150
|
-
**Phone view** - The layout Arco serves at `/mobile` for a phone: one conversation at a time, a list of tabs with
|
|
150
|
+
**Phone view** - The layout Arco serves at `/mobile` for a phone: one conversation at a time, a list of tabs with each tab's state, a member strip in clusters, **PANELS** for the side panels and a text size under Settings > **THIS PHONE**. It is the same server and the same tabs as the desktop layout. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone).
|
|
151
151
|
|
|
152
152
|
**Plan** - A long-form markdown brief stored at `<cwd>/.arco/plans/<planId>.md`. Operators attach a plan to a workflow in the Plan tab; supported turns receive plan context subject to access restrictions. Plans live in the cwd, not the workflow, so the same plan can be attached to multiple workflows.
|
|
153
153
|
|
|
@@ -229,7 +229,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
229
229
|
|
|
230
230
|
**Scratch folder** - `scratch/` inside a conversation folder, for large intermediate files. Arco empties it only at the operator's request (**EMPTY SCRATCH**, or the offer when a tab is closed); items under a KEEP mark are skipped. See [Persistence](PERSISTENCE.md).
|
|
231
231
|
|
|
232
|
-
**Gemini member** - A cluster member on Antigravity CLI (Gemini).
|
|
232
|
+
**Gemini member** - A cluster member on Antigravity CLI (Gemini). AUTO-PICKUP can wake it for eligible incoming mail in an ordinary cluster. Mail from it waits for NUDGE. See [Gemini members](PROTOCOL_CLUSTER.md#gemini-members).
|
|
233
233
|
|
|
234
234
|
**Seed** - The first user message in a fresh CLI session, used by Handoff and Spawn to inject context. See **handoff seed** / **spawn seed**.
|
|
235
235
|
|
package/docs/GOTCHAS.md
CHANGED
|
@@ -223,7 +223,7 @@ Updater exit status and the post-update version are separate evidence. A nonzero
|
|
|
223
223
|
- **A local tool result does not close pending Native server calls.** A mixed response can return `stop_reason: tool_use` before its web search or web fetch results arrive. Match server calls and results by ID across assistant messages in the active turn. While any remain pending, send only the local tool results, leave steering queued and defer in-turn compaction. Each held message gets one notice, even across several pending rounds. Deliver at the next safe local-tool boundary or through the existing next-turn queue. Never fabricate a result or strip search evidence or thinking to insert a steer; actual-abort recovery stays separate.
|
|
224
224
|
- **Ripgrep stdout mixes matches and binary warnings.** Native Grep parses each newline-delimited record before looking for its NUL filename separator. A binary warning has no separator and must be skipped by itself; consuming through the next separator would discard the following text match. The bounded-read regression sorts filenames so the binary warning precedes a readable file.
|
|
225
225
|
|
|
226
|
-
- **Agent shell commands and hooks go through `commandShell()`.** `server/src/commandShell.ts` returns `/bin/sh` on Linux and macOS, Git Bash on Windows and PowerShell on Windows without Git Bash; never spawn `/bin/sh` or `bash` directly for the Bash tools, hooks or sandbox shell scripts, and build the arguments with `shellInvocation()` (PowerShell gets an encoded command, or a temporary script that `cleanup()` removes). Start such children with `spawnShellChild()` and kill them with `signalChildTree()` from `server/src/workers/processKill.ts`: `process.kill(-pid)` does not exist on Windows, `taskkill /T` misses an MSYS background job whose forked parent has exited (the child's `ARCO_PROCESS_TREE` tag finds it through Git Bash's `/proc
|
|
226
|
+
- **Agent shell commands and hooks go through `commandShell()`.** `server/src/commandShell.ts` returns `/bin/sh` on Linux and macOS, Git Bash on Windows and PowerShell on Windows without Git Bash; never spawn `/bin/sh` or `bash` directly for the Bash tools, hooks or sandbox shell scripts, and build the arguments with `shellInvocation()` (PowerShell gets an encoded command, or a temporary script that `cleanup()` removes). Start such children with `spawnShellChild()` and kill them with `signalChildTree()` from `server/src/workers/processKill.ts`: `process.kill(-pid)` does not exist on Windows, `taskkill /T` misses an MSYS background job whose forked parent has exited (the child's `ARCO_PROCESS_TREE` tag finds it through Git Bash's `/proc`, with each entry read in a subshell), and Node's own argument quoting halves a pair of backslashes on the way into Git Bash (`msysQuote()` with a verbatim command line does not). A hook that cannot start never blocks (`notRun`).
|
|
227
227
|
- **Cache discipline is load-bearing.** The forced first system block (`"You are Claude Code, ..."`) is byte-stable across every Native tab; the appendSystemPrompt block is byte-stable across iterations within a turn. Never insert per-turn-variable content (timestamps, request IDs, operator name) above the cache marker - that invalidates every prior turn's cache on every tab. System-block ordering is fixed (canonical list in the `buildSystemBlocks` header comment: FORCED_FIRST_BLOCK → north-star → cluster plan → role → efficiency/progress doctrine → delegation contract → sandbox nudge → env note → turn discipline → workspace facts → appendSystemPrompt → systemPrompt → output style; a Chat tab short-circuits to FORCED_FIRST_BLOCK → chat prompt); reordering on a deploy invalidates every active tab's cache. The hardcoded `FORCED_FIRST_BLOCK` constant in `worker.ts` is the single source of truth - operator overrides were intentionally rejected (§14 Q4). On the OAuth subscription path, requests and diagnostics must include the identity block; omitting it can produce a rate-limit error.
|
|
228
228
|
- **Stateless Native helpers live in siblings, re-exported from `worker.ts` (P0 carve-out).** To stay under the 2000-line cap, the pure leaf helpers were moved to `modelParams.ts` (token/thinking/effort/ctx), `contentBlocks.ts` (content-block types + image/message/server-tool/context-mgmt/strip-thinking helpers), and `workerHelpers.ts` (`replayMessagesFromEvents`, `mergeUsage`, `truncateOutput`, `planParserAdvisories`, `sleepWithSignal`). `worker.ts` re-exports the previously-public names so `from './worker.js'` imports (including the test files) keep working - **add new pure helpers to the sibling modules, not back into `worker.ts`**; only stateful class logic belongs there. The `FORCED_FIRST_BLOCK` constant stays in `worker.ts` (single source of truth, see cache-discipline bullet above).
|
|
229
229
|
- **Replay-on-restart is the canonical recovery path.** On `ensureStarted` the worker tail-reads `events.jsonl` and reconstructs `messages[]` from `user_message_echo` + `primary_text` entries. Tool_use / tool_result events are NOT replayed (the model gets a clean USER/ASSISTANT view; reconstructing tool ids with full fidelity is deferred - §14 Q7). Don't add a periodic snapshot path without first measuring whether replay cost actually bites. The reconstruction logs to stderr under `[claude-native:<wfid>]`; that's the forensic surface.
|
|
@@ -525,8 +525,8 @@ Cursor is an ACP provider (`cursor-agent acp`). Current transport details are su
|
|
|
525
525
|
|
|
526
526
|
Antigravity CLI runs Google's own `agy acp` on the operator's sign-in. These traps keep it within that sign-in's terms; see `docs/PROVIDERS.md` (Antigravity CLI) and `docs/PROTOCOL_CLUSTER.md` (Gemini members).
|
|
527
527
|
|
|
528
|
-
- **A Gemini member turn
|
|
529
|
-
- **
|
|
528
|
+
- **A Gemini member turn needs a single-use ticket for its exact input.** The operator's NUDGE or typed message obtains a ticket in the WebSocket handler. The Rule-based and Smart dispatchers can issue one after admitting a wake in an ordinary cluster. They recheck mode, pause, membership and access at dispatch. Research, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers and retries cannot use that path. The worker reads eligible pickup mail through peer_read.
|
|
529
|
+
- **Gemini replacement history is an operator send.** Use the previewed history and a single-use ticket for the replacement member. Its first turn receives its own role and cluster instructions.
|
|
530
530
|
- **Scheduling requests are refused.** `providers/acp/permissionGate.ts` declines a permission request that names scheduling, cron or automation and posts a notice; scheduling needs unattended execution. The CLI can still act without asking according to its own configuration, so the AUTO/SAFE gate is not a promise that every action is seen.
|
|
531
531
|
- **The Chat working folder is not a fence.** A saved Antigravity Chat works in `ARCO_HOME/chat-workspaces/<chat-id>` (`chatMode.ts`), which is deleted with the Chat. Tools can reach whatever the user's account can reach.
|
|
532
532
|
- **Gemini for research is a separate sign-in.** Its home is `~/.arco/antigravity-research`; for each researcher turn the sign-in file is copied into the researcher's private home inside the Linux worker sandbox (`workers/antigravityIsolatedLaunch.ts`). Never point a researcher at the operator's main Antigravity sign-in.
|
|
@@ -1170,7 +1170,7 @@ The live Arco *service* reporting workflows + applying reply/stop/continue. `ser
|
|
|
1170
1170
|
- **`createBlankNativeWorkflow` is a minimal pre-replay helper for B3 - don't extend it for resume / rehydrate cases.** It deliberately skips the savedMeta restoration logic (autoHandoff / efficiency toggles / outputStyle / planId / calibration / preview) that `handleCreateWorkflow` performs because B3 only creates *fresh* workflows. If a future surface wants to "fork N workers from a template that has prior state," it should call `handleCreateWorkflow` (so resume + rehydrate hooks fire) and chain the cluster create separately. Mixing the two paths in one helper would silently drop state on the fresh path.
|
|
1171
1171
|
- **Cluster provider fence follows peer-tool wiring, not provider brand.** Claude and Codex get peer tools through Native/CLI/MCP wiring; Ollama now gets them through the local tool registry when `WorkerConfig.clusterId` + `workflowId` are present. Providers without peer-tool wiring remain fenced out. Do not loosen a provider by UI-only changes; the worker must actually receive `peer_list` / `peer_send` / `peer_read` / plan tools.
|
|
1172
1172
|
- **Cluster Reviews sub-tab reads `job.reviews[]` per member, not a cluster-scoped review list.** Reviews dispatched from MemberPane fire through the existing per-workflow `requestReview` path; the per-member `job.reviews[]` is populated by the same `review_started` / `review_artifact_ready` WS handlers as the standalone Review tab. The Reviews sub-tab is purely a read-side aggregation. If cluster-wide review (one reviewer call across all members) lands later, that's a separate `cluster_reviews[]` list - don't write cluster-wide review state into per-member arrays.
|
|
1173
|
-
- **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH`
|
|
1173
|
+
- **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH` (the opening mode, 1 worker) requires every worker card ready and at most one Director. Switching modes mid-flow keeps the picker open (no re-trigger needed). If a fourth mode lands (e.g. "fork cluster"), make it a sibling component rather than a fourth conditional - the current single-component conditional is at its readable limit.
|
|
1174
1174
|
|
|
1175
1175
|
### gotchas (cluster-attached plan + role hints)
|
|
1176
1176
|
|
package/docs/HTTP_API.md
CHANGED
|
@@ -158,27 +158,51 @@ A write failure answers `500 { error: 'Upload failed' }`. The route itself is no
|
|
|
158
158
|
|
|
159
159
|
The client may follow up with an `upload_complete` WS message; the server echoes `file_uploaded` back to **that socket only** (not a workflow broadcast - uploads are unscoped).
|
|
160
160
|
|
|
161
|
-
### `GET /api/file-content?path=<path>[&cwd=<cwd>][&workflowId=<wfid>][&
|
|
162
|
-
|
|
163
|
-
|
|
161
|
+
### `GET /api/file-content?path=<path>[&cwd=<cwd>][&workflowId=<wfid>][&sourceWorkflowId=<wfid>]`
|
|
162
|
+
|
|
163
|
+
Returns a file preview for conversation links, attachments and the file viewer.
|
|
164
|
+
`workflowId` identifies the viewing workflow. Its server-side working directory
|
|
165
|
+
takes precedence over `cwd`. When supplied, `sourceWorkflowId` must identify the
|
|
166
|
+
viewer or a current member of the viewer's cluster. Relative targets start in
|
|
167
|
+
that member's project or worktree. Registered Gemini session files still use
|
|
168
|
+
the producing workflow's output manifest.
|
|
169
|
+
|
|
170
|
+
An absolute target uses its exact path, including an authorized tracked output
|
|
171
|
+
that was moved. Explicit project-relative paths beginning with `./` stay
|
|
172
|
+
project-relative. For other relative paths, an unresolved path can match the
|
|
173
|
+
same relative path under member artifact folders. Bare filenames can also
|
|
174
|
+
match nested files. The search starts with the sender's project and artifacts
|
|
175
|
+
when the sender is given, and searches current cluster artifacts if necessary.
|
|
176
|
+
Without a sender, it checks the viewing project and current member artifacts.
|
|
177
|
+
Recursive searches skip hidden and dependency folders and directory symlinks.
|
|
178
|
+
They inspect at most 8,192 entries across the project and artifact search,
|
|
179
|
+
descend at most 12 levels, consider at most 256 peer members and return up to
|
|
180
|
+
32 choices. Use a more specific path if a search reached its limit.
|
|
164
181
|
|
|
165
182
|
```ts
|
|
166
|
-
| { type: 'text',
|
|
167
|
-
| { type: 'image', dataUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
|
|
168
|
-
| { type: '
|
|
169
|
-
| { type: '
|
|
170
|
-
| { type: '
|
|
171
|
-
| { type: '
|
|
183
|
+
| { type: 'text', content: string, size: number, resolvedPath: string, artifactOwner?: string }
|
|
184
|
+
| { type: 'image', dataUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
|
|
185
|
+
| { type: 'audio' | 'video' | 'pdf', url: string, downloadUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
|
|
186
|
+
| { type: 'binary', downloadUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
|
|
187
|
+
| { type: 'too-large', downloadUrl: string, size: number, kind: 'text' | 'image', resolvedPath: string, artifactOwner?: string }
|
|
188
|
+
| { type: 'choices', truncated?: boolean, choices: Array<{ workflowId: string, name: string, resolvedPath: string, readUrl: string }> }
|
|
189
|
+
| { type: 'error', error: string }
|
|
172
190
|
```
|
|
173
191
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
192
|
+
Text previews are limited to 2 MiB and image previews to 10 MiB.
|
|
193
|
+
`resolvedPath` is the authorized absolute path. For choices, use the selected
|
|
194
|
+
`readUrl` to read that exact file. The legacy `artifactOwner=<wfid>` parameter
|
|
195
|
+
still narrows a bare filename to that cluster member's artifacts. A refusal
|
|
196
|
+
returns `403`. A miss returns `404` and names the requested path and the
|
|
197
|
+
locations searched when available.
|
|
198
|
+
|
|
199
|
+
The returned `url` and `downloadUrl` use the same origin and require the same
|
|
200
|
+
session and file access as the preview. Preview byte requests use `bytes=1`
|
|
201
|
+
and a fixed audio, video or PDF media type. Downloads use `download=1` and
|
|
202
|
+
attachment disposition. Both support GET, HEAD and single byte ranges,
|
|
203
|
+
including suffix ranges. A valid partial response is `206`. An unsatisfiable
|
|
204
|
+
range is `416`. Selection and byte requests recheck access and never substitute
|
|
205
|
+
a different file with the same name.
|
|
182
206
|
|
|
183
207
|
### `GET /api/files?path=<dir>`
|
|
184
208
|
|
|
@@ -652,7 +676,7 @@ See `docs/LOCAL_SERVICES.md`.
|
|
|
652
676
|
|
|
653
677
|
### `POST /api/files/write`
|
|
654
678
|
|
|
655
|
-
Workbench Expansion A6. The only operator-driven write path that bypasses an agent turn - backs the `FileViewerModal` Edit/Lock toggle's **Save**. Route: `server/src/http/fileWriteRoutes.ts`; the path-guarded core is `writeFileWithinCwd` (exported so the smoke calls it directly).
|
|
679
|
+
Workbench Expansion A6. The only operator-driven write path that bypasses an agent turn - backs the `FileViewerModal` Edit/Lock toggle's **Save**. Route: `server/src/http/fileWriteRoutes.ts`; cwd binding is `resolveBoundCwd` in `writeConfinement.ts`; the path-guarded core is `writeFileWithinCwd` (exported so the smoke calls it directly).
|
|
656
680
|
|
|
657
681
|
Request body (JSON):
|
|
658
682
|
|
|
@@ -660,10 +684,11 @@ Request body (JSON):
|
|
|
660
684
|
{ "cwd": "<absolute cwd>", "wfid": "<workflowId>", "path": "<file path>", "content": "<new contents>" }
|
|
661
685
|
```
|
|
662
686
|
|
|
663
|
-
- `
|
|
664
|
-
- `
|
|
687
|
+
- `wfid` - optional workflow id. When present and valid, the write uses only that workflow's registered working directory on this server (`workflowCwds` or the live workflow config). The body's `cwd` is ignored. An invalid id answers 400 (`invalid wfid`). An id with no bound cwd answers 400 (`workflow id has no bound cwd on this server`). Nothing is written in either case.
|
|
688
|
+
- `cwd` - absolute project root. Used only when `wfid` is omitted. It must exactly match a root the server already knows (a live workflow or cluster cwd, an entry in the known-cwds registry, or the explorer default root). An unknown directory answers 400 (`cwd is not a known workflow or project directory`). When both `wfid` and `cwd` are omitted, the request answers 400 (`cwd or a workflow id with a bound cwd is required`).
|
|
689
|
+
- `path` - relative-to-cwd or absolute. **Resolved against the bound cwd and re-checked with `confineRealPath` (lexical `resolveWithinCwd` plus a realpath check).** Symlink escapes are refused. Any path that escapes the bound cwd (relative `../`, an absolute path outside, or a traversal like `foo/../../x`) is **rejected with 400 and nothing is written.** This is load-bearing: a fat-fingered or agent-suggested path must never write outside the project.
|
|
665
690
|
- `content` - the full new file contents (whole-file replace, not a patch). It must be a string: a missing, `null` or non-string `content` is rejected with 400 (`content must be a string`) and the file is left as it was. An explicit empty string is valid and empties the file. Parent dirs inside cwd are created as needed; an existing directory at the target is refused.
|
|
666
|
-
- Response: `200 { ok: true, path: "<cwd-relative>", bytes: N }` on success; `400 { ok: false, error }` on a rejected escape
|
|
691
|
+
- Response: `200 { ok: true, path: "<cwd-relative>", bytes: N }` on success; `400 { ok: false, error }` on a rejected binding, escape or bad input; `500 { ok: false, error }` on an unexpected fs error.
|
|
667
692
|
|
|
668
693
|
---
|
|
669
694
|
|
|
@@ -985,8 +1010,9 @@ Request body (JSON):
|
|
|
985
1010
|
{ "cwd": "<absolute cwd>", "workflowId": "<wfid>", "path": "edited.png", "dataUrl": "data:image/png;base64,<payload>", "overwrite": false }
|
|
986
1011
|
```
|
|
987
1012
|
|
|
988
|
-
- `
|
|
989
|
-
- `
|
|
1013
|
+
- `workflowId` - optional workflow id. When present and valid, the write uses only that workflow's registered working directory on this server. The body's `cwd` is ignored. An id with no bound cwd answers `code: 'no-cwd'` (`workflow id has no bound cwd on this server`) and nothing is written.
|
|
1014
|
+
- `cwd` - absolute project root. Used only when `workflowId` is omitted. It must exactly match a root the server already knows (a live workflow or cluster cwd, an entry in the known-cwds registry, or the explorer default root). An unknown directory, or neither field, answers `code: 'no-cwd'` with the matching `boundCwdError` text.
|
|
1015
|
+
- `path` - the relative (or absolute-within-cwd) **target** filename. **Resolved against the bound cwd and re-checked with `confineRealPath`** - a `../`/absolute-outside/traversal path or an in-cwd symlink that escapes is rejected (`code: 'path-escape'`, nothing written). Must carry an image extension (`.png`/`.jpg`/`.jpeg`/`.webp`, else `code: 'bad-ext'`). A new subfolder's parent dirs are created (confined).
|
|
990
1016
|
- `dataUrl` - `data:image/<png|jpeg|webp>;base64,<payload>`. Parsed defensively: a non-image mime / malformed URL / empty decode -> `code: 'bad-image'`. A decoded payload over **64 MiB** is rejected (`code: 'too-large'`) via a cheap base64-length pre-check - no oversize Buffer is allocated.
|
|
991
1017
|
- `overwrite` - when the resolved target **already exists**, the write only proceeds if this is explicitly `true`; otherwise `code: 'exists'` and **nothing is written** (original bytes unchanged). A brand-new filename writes unconditionally.
|
|
992
1018
|
- **Response:** always `200` with `ImageWriteResult` for an operator-visible condition - `{ ok: true, relPath, bytes }` on success, or `{ ok: false, error, code }` where `code` ∈ `no-cwd | bad-path | path-escape | bad-image | bad-ext | too-large | exists | write-failed`. Only a truly unexpected server bug is a 500. (An on-disk checkpoint of the change is covered by the A2 checkpoint path once the editor wires it.)
|
|
@@ -1128,7 +1154,7 @@ See [RESEARCH.md](RESEARCH.md).
|
|
|
1128
1154
|
- `POST /api/research/library/:projectId/locate`: body `{ folder }`. Accepts only a folder whose `research.json` belongs to the project and updates the library and the closed record. 400 `invalid_folder` or `not_this_project`; 404 `unknown_project`.
|
|
1129
1155
|
- `POST /api/research/library/:projectId/forget`: removes the project from the library only. 409 `project_open`; 404 when unknown.
|
|
1130
1156
|
- `POST /api/research/:clusterId/close`: body `{ moveUnsent }`. Writes the researcher logs, moves unsent files when asked and removes the researchers' folders. `{ ok: true, logsWrittenTo, moved, removed }`; 409 `researcher_busy` with `letters`; 404 `unknown_research`.
|
|
1131
|
-
- `GET /api/research/:clusterId/keep-as-project` and `POST` the same path; `GET` and `POST /api/research/saved-quick/:chatId/keep-as-project`: promote a Quick research result to a project. `GET` answers the journal phase (`{ phase, message, folder? }`, or `{ phase: 'idle' }`; the saved-quick form answers `404 unknown_chat` for an unknown chat). `POST` takes `{ folderRoot? }` (16 KB cap) and answers `202 { phase, message }`. A
|
|
1157
|
+
- `GET /api/research/:clusterId/keep-as-project` and `POST` the same path; `GET` and `POST /api/research/saved-quick/:chatId/keep-as-project`: promote a Quick research result to a project. `GET` answers the journal phase (`{ phase, message, folder? }`, or `{ phase: 'idle' }`; the saved-quick form answers `404 unknown_chat` for an unknown chat). `POST` takes `{ folderRoot? }` (16 KB cap) and answers `202 { phase, message }`. A supplied folder replaces the configured destination after validation. A failed request returns `400 { error }`. A missing destination adds `code: "research_folder_missing"` so the caller can ask for another folder and retry.
|
|
1132
1158
|
- `POST /api/research/:clusterId/rounds/:n/extend`: the operator's +15 MIN on a round deadline. `{ deadline }`; `404 unknown_round`; `409` with another code when the round cannot be extended.
|
|
1133
1159
|
- `POST /api/research/:clusterId/rounds/:n/retry/:letter`: RETRY on a failed or timed-out researcher. `{ late, file }`; `404` for `not_research`, `unknown_round` or `unknown_researcher`; `409 { error, message }` otherwise (for example `busy`).
|
|
1134
1160
|
- `GET /api/research/:clusterId/rerun-preview` and `POST /api/research/:clusterId/rerun-round`: read the settings of an open project for a rerun (`{ name, brief, blind, sourceProject, director, researchers }`), and start another round with the current panel from `{ brief }` (at most 20000 characters, 32 KB body). `rerun-round` answers `{ round, receiptError? }`. Both answer `400 { error }` for a closed project; any other method is `405`.
|
|
@@ -1721,7 +1747,7 @@ make an inference or allowance request. A failed read retains an explicitly stal
|
|
|
1721
1747
|
metadata; malformed or failed probes do not invent a logout verdict.
|
|
1722
1748
|
|
|
1723
1749
|
Both records expose a non-secret `binding`: `{ source, storeId, revision? }`. `source` is
|
|
1724
|
-
`claude-native` or `claude-cli
|
|
1750
|
+
`claude-native` or `claude-cli`. The Default Native store ID is `claude.native`, a named store ID is `claude.native:<profile-id>`, and the CLI store ID is `claude-cli-default`. Each Native profile has a separate
|
|
1725
1751
|
store per Arco home, independent of profile labels. Its opaque revision changes with credential
|
|
1726
1752
|
material; it contains no token bytes and proves no account identity. CLI status also exposes the
|
|
1727
1753
|
current allowance credential revision when its owner file is readable, with `bindingCheckedAt`
|
|
@@ -1772,7 +1798,7 @@ The update command is limited to 180 seconds.
|
|
|
1772
1798
|
|
|
1773
1799
|
## Claude Native auth
|
|
1774
1800
|
|
|
1775
|
-
OAuth bootstrap for the in-process Claude Native transport.
|
|
1801
|
+
OAuth bootstrap for the in-process Claude Native transport. Default tokens persist to `~/.arco/auth.json`. Each configured Native profile uses its own credential store and refresh lock. Local callback server binds port `53692`; when the callback cannot bind, the bootstrap falls back to manual paste - see `docs/GOTCHAS.md Native transport` for the EADDRINUSE rule.
|
|
1776
1802
|
|
|
1777
1803
|
### `GET /api/auth/claude-native`
|
|
1778
1804
|
|
|
@@ -1789,10 +1815,17 @@ Local expiry metadata is not verified execution health. This GET never starts si
|
|
|
1789
1815
|
|
|
1790
1816
|
### `POST /api/auth/claude-native/login`
|
|
1791
1817
|
|
|
1818
|
+
For Native status, logout and the model catalog, pass `?account=<profile-id>` to select a profile.
|
|
1819
|
+
LOGIN accepts `accountRef` in the JSON body. A callback stays attached to the profile that
|
|
1820
|
+
started its flow. POST `/api/auth/claude-native/profiles` with `label` to add a profile or with
|
|
1821
|
+
`id` and `label` to rename one. Both operations return updated settings. An explicit account
|
|
1822
|
+
query on `/api/usage` uses that Native credential only. `@native-default` selects Default.
|
|
1823
|
+
|
|
1824
|
+
|
|
1792
1825
|
Start the existing PKCE bootstrap. The optional body is
|
|
1793
|
-
`{ binding?: ClaudeCredentialBinding, workflowId?: string }`. A changed expected Native binding
|
|
1826
|
+
`{ binding?: ClaudeCredentialBinding, workflowId?: string, accountRef?: string }`. A changed expected Native binding
|
|
1794
1827
|
refuses a stale recovery action. The returned URL opens the provider's consent/MFA/account flow.
|
|
1795
|
-
|
|
1828
|
+
Each Native account can have one pending flow. A new start supersedes only the previous flow for that account.
|
|
1796
1829
|
|
|
1797
1830
|
**Response** - `BootstrapStartResult` (`claude-native/oauth.ts`):
|
|
1798
1831
|
```ts
|
|
@@ -1952,10 +1985,10 @@ Cursor bakes reasoning effort into the model id (`-low`/`-high`/`-xhigh`/`-max`)
|
|
|
1952
1985
|
|
|
1953
1986
|
## Usage
|
|
1954
1987
|
|
|
1955
|
-
### `GET /api/usage[?force=1]`
|
|
1988
|
+
### `GET /api/usage[?force=1&account=<profile-id>]`
|
|
1956
1989
|
|
|
1957
1990
|
Reads Claude's 5-hour and weekly allowance from `https://api.anthropic.com/api/oauth/usage`, preferring
|
|
1958
|
-
Native credentials and retaining an explicitly attributed CLI fallback. Current credential revisions
|
|
1991
|
+
Native credentials and retaining an explicitly attributed CLI fallback when no account is requested. An explicit account reads its Native allowance. Current credential revisions
|
|
1959
1992
|
are read before cache lookup. Results have a two-minute TTL, partitioned by the actual Native and CLI
|
|
1960
1993
|
credential context; `?force=1` bypasses cached values and joins an existing check for that context.
|
|
1961
1994
|
The response is always 200 with `Cache-Control: no-store`; availability belongs to the result body.
|
package/docs/OPERATIONS.md
CHANGED
|
@@ -277,6 +277,17 @@ package snapshot it identifies. This snapshot covers the installed program.
|
|
|
277
277
|
Arco's saved data stays in its existing home. Source and Docker installs
|
|
278
278
|
continue to follow GitHub releases.
|
|
279
279
|
|
|
280
|
+
Do not start or restart Arco while the update runs. On Linux, a start or
|
|
281
|
+
restart while systemd is still stopping the service cancels the stop. The
|
|
282
|
+
updater then leaves the installed package unchanged and waits up to two minutes
|
|
283
|
+
for queued service jobs to finish. If Arco is running again, the result says
|
|
284
|
+
so; try the update again. If Arco was confirmed running before the update and
|
|
285
|
+
is now stopped with no queued job, the updater starts it again on the installed
|
|
286
|
+
version. If its earlier state could not be read, Arco is not started. Any other
|
|
287
|
+
state is reported with `arco service status` and `arco service start` as the
|
|
288
|
+
next steps. A failed service command names its action and unit, for example
|
|
289
|
+
`systemctl stop arco.service failed (exit 1)`.
|
|
290
|
+
|
|
280
291
|
The result appears beside the open update control. When that control is closed,
|
|
281
292
|
a separate result notice remains available with **DISMISS**. The same result is
|
|
282
293
|
not shown in both places at once.
|
package/docs/OPERATOR_ACTIONS.md
CHANGED
|
@@ -103,8 +103,8 @@ differently per provider:
|
|
|
103
103
|
loop
|
|
104
104
|
- Cursor via an in-process loopback StreamableHTTP MCP server (ACP honors MCP
|
|
105
105
|
over http/sse only, not stdio; fresh-only membership)
|
|
106
|
-
- Antigravity CLI through ACP and scoped MCP tools;
|
|
107
|
-
|
|
106
|
+
- Antigravity CLI through ACP and scoped MCP tools; AUTO-PICKUP can wake Gemini in ordinary
|
|
107
|
+
clusters for eligible incoming mail
|
|
108
108
|
|
|
109
109
|
LM Studio / Strata / DeepSeek stay outside the cluster fence. How many members
|
|
110
110
|
may use each local runtime is `localClusterCapacity` in Connections (default 1
|
package/docs/OUTPUTS.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
Browse generated artifacts and exports for a workflow or cluster, then
|
|
4
4
|
preview, copy or move them within approved folders.
|
|
5
5
|
|
|
6
|
+
File links in conversations open the destination in the file viewer, including
|
|
7
|
+
links in peer messages. The viewer shows the resolved absolute path and offers
|
|
8
|
+
a choice when more than one file matches. Audio and video use playback controls;
|
|
9
|
+
PDFs display in the viewer with a height that accounts for interface text size.
|
|
10
|
+
Peer messages keep their line breaks and file links. On desktop, audio opens in a compact viewer and
|
|
11
|
+
video fits a larger viewing area without cropping. Resizing and **Reset size**
|
|
12
|
+
use separate saved sizes for audio, video and documents. Use **DOWNLOAD FILE**
|
|
13
|
+
when a browser cannot display a file. Missing files report where Arco looked.
|
|
14
|
+
|
|
6
15
|
Open **Workspace > Files > Outputs** in a workflow or cluster. Outputs stays
|
|
7
16
|
available after a generated-file preview is dismissed. **View in Outputs** on an
|
|
8
17
|
artifact preview opens the producing workflow's collection; in the Narrow
|
|
@@ -16,9 +25,20 @@ show their producing workflow, creation/update time, current location and file
|
|
|
16
25
|
information. Refresh updates the list without generating content. Missing files
|
|
17
26
|
retain their original provenance.
|
|
18
27
|
|
|
28
|
+
The list refreshes every five seconds, on window focus and on **Refresh**, in
|
|
29
|
+
place (`reconcileOutputs` in `client/src/components/RightPanel/outputsReconcile.ts`).
|
|
30
|
+
Entries still listed keep their position, so an edited file does not jump to the
|
|
31
|
+
top under the reader; new entries appear first and removed ones drop out. Scroll
|
|
32
|
+
position, focus, expanded titles and open File information stay. Overlapping
|
|
33
|
+
refreshes are dropped or superseded, and a failed refresh keeps the shown list
|
|
34
|
+
with the error beside it. When the file in an open preview changes, the preview
|
|
35
|
+
says so and **RELOAD** reads it again in place; it is hidden while there are
|
|
36
|
+
unsaved edits. When the file is removed or moved, the preview says so and keeps
|
|
37
|
+
the content it loaded.
|
|
38
|
+
|
|
19
39
|
By default the list shows only what was made for you: generated images, audio
|
|
20
|
-
and video, documents at the top level of the artifacts folder,
|
|
21
|
-
exports. Code files and anything inside an artifact subfolder are working files,
|
|
40
|
+
and video, documents at the top level of the artifacts folder, Gemini artifacts,
|
|
41
|
+
and reports and exports. Code files and anything inside an artifact subfolder are working files,
|
|
22
42
|
shown when **All files** is ticked; a note under the filters says how many are
|
|
23
43
|
hidden. The server marks each entry with `primary` (`isPrimaryOutput` in
|
|
24
44
|
`server/src/outputs.ts`); the toggle is per view and resets when the panel reopens.
|
|
@@ -43,6 +63,28 @@ refresh; artifact enumeration stops at depth eight and 2,000 entries per workflo
|
|
|
43
63
|
Cluster responses show the newest 2,000 entries. Inline content is fetched only
|
|
44
64
|
when opened. The metadata file is bounded to 8 MiB. A damaged index is reported and left intact.
|
|
45
65
|
|
|
66
|
+
Antigravity CLI keeps finished artifacts in its own session folder,
|
|
67
|
+
`.gemini/antigravity-cli/brain/<session id>/`. On Linux, macOS and Windows,
|
|
68
|
+
Arco records the names present at the end of the turn in private Arco state,
|
|
69
|
+
bound to the project, workflow and ACP session. Outputs and ARTIFACTS list
|
|
70
|
+
the originals. Select Preview to read a document or image, or Download in
|
|
71
|
+
Outputs to keep a separate copy. Edits to the original appear on refresh.
|
|
72
|
+
Removing the original removes it from the list. A preview already open keeps
|
|
73
|
+
the content it loaded.
|
|
74
|
+
|
|
75
|
+
Only regular files up to 25 MiB are eligible, up to 200 per session and
|
|
76
|
+
three folders deep. Hidden entries, uploads, logs, scratch folders,
|
|
77
|
+
worktrees, metadata sidecars, resolved snapshots and hard or symbolic links
|
|
78
|
+
are excluded. Fenced researchers keep their files private. Arco retains up
|
|
79
|
+
to 2,000 registered names per workflow. It checks the opened file again for
|
|
80
|
+
each preview or download and reads at most its inspected size.
|
|
81
|
+
|
|
82
|
+
Gemini chat links use local `file://` URLs. The viewer decodes the name once,
|
|
83
|
+
including escaped spaces, `#` and `%`, and looks it up in the workflow's
|
|
84
|
+
registered session files. The session folder is never added to the browser,
|
|
85
|
+
editor or media roots. The workflow's other output files keep their usual
|
|
86
|
+
editing and transfer controls.
|
|
87
|
+
|
|
46
88
|
Ordinary changed project files are not classified as generated. Unsupported
|
|
47
89
|
provider write-tool forms may require saving the result into the workflow's
|
|
48
90
|
artifacts directory. Older stem events that recorded only a directory cannot
|
|
@@ -64,10 +106,10 @@ another tab was active.
|
|
|
64
106
|
**OPEN** works only on the computer Arco runs on: the server resolves the
|
|
65
107
|
registered output (never a path from the page), checks the file exists and hands
|
|
66
108
|
it to the system opener (`xdg-open`, `open`, or the Windows shell handler with
|
|
67
|
-
the path as one argument).
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
on a machine without a desktop
|
|
109
|
+
the path as one argument). **OPEN** is hidden for programs, scripts and files
|
|
110
|
+
with no extension. Clicking a refused filename such as `setup.exe` explains why
|
|
111
|
+
Arco cannot open it and points to **Download**. **OPEN** is also hidden in Docker
|
|
112
|
+
or on a machine without a desktop.
|
|
71
113
|
|
|
72
114
|
Editor saves and exported variants appear under their producing workflow. A
|
|
73
115
|
variant derived from a tracked output retains its origin association. Existing
|
package/docs/PERSISTENCE.md
CHANGED
|
@@ -891,7 +891,7 @@ Operator-authored `<name>.md` markdown templates expanded by the `/prompt <name>
|
|
|
891
891
|
|
|
892
892
|
### provider-accounts/
|
|
893
893
|
|
|
894
|
-
`server/src/providerAccounts.ts`. Per-account isolated provider home directories under `~/.arco/provider-accounts/`. For Codex, `codex-<id>/` is the `CODEX_HOME` for a configured account; `ensureCodexAccountHome` `mkdir`s it and seeds a `config.toml` with `cli_auth_credentials_store = "file"`. The account list itself (labels, refs, custom homes) lives in `settings.json` under `providerAccounts`, not here.
|
|
894
|
+
`server/src/providerAccounts.ts`. Per-account isolated provider home directories under `~/.arco/provider-accounts/`. For Codex, `codex-<id>/` is the `CODEX_HOME` for a configured account; `ensureCodexAccountHome` `mkdir`s it and seeds a `config.toml` with `cli_auth_credentials_store = "file"`. Native profile stores use `claude-<id>/auth.json` with a separate refresh lock per store. The account list itself (labels, refs, custom homes) lives in `settings.json` under `providerAccounts`, not here.
|
|
895
895
|
|
|
896
896
|
### checkpoints/
|
|
897
897
|
|