arco-workbench 0.1.9 → 0.2.1
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 +14 -12
- package/README.md +5 -3
- package/client/dist/THIRD_PARTY_LICENSES.txt +3912 -0
- package/client/dist/assets/{PhosphorBackdrop-DRu16-Is.js → PhosphorBackdrop-BbR3xmfD.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BLdwwQ4D.js → ThemedBackgroundShaderImpl-UMjbs9ZN.js} +1 -1
- package/client/dist/assets/XtermView-n135qz-f.js +10 -0
- package/client/dist/assets/{galleryEditor-CI8ClzBa.js → galleryEditor-CFSke4by.js} +1 -1
- package/client/dist/assets/index-CVJVD2Vn.css +1 -0
- package/client/dist/assets/index-DeoJbjI3.js +638 -0
- package/client/dist/index.html +3 -3
- package/client/src/App.tsx +42 -9
- package/client/src/components/AskUserQuestionNotice.tsx +37 -10
- package/client/src/components/AttachmentPill.tsx +3 -2
- package/client/src/components/AuthReloginNotice.tsx +25 -6
- package/client/src/components/AutomaticMessage.tsx +3 -1
- package/client/src/components/CatchMeUp.tsx +4 -1
- package/client/src/components/ChatMessage.tsx +43 -5
- package/client/src/components/ChatModeView.tsx +20 -4
- package/client/src/components/ChatPanel.tsx +5 -0
- package/client/src/components/ClusterActivityTab.tsx +9 -3
- package/client/src/components/ClusterComposerButtons.tsx +5 -3
- package/client/src/components/ClusterPlanTab.tsx +55 -8
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +38 -99
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +36 -12
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +61 -8
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +46 -14
- package/client/src/components/ClusterRightPanel/PhoneMemberList.tsx +56 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +38 -9
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +6 -5
- package/client/src/components/ClusterRightPanel/index.tsx +188 -39
- package/client/src/components/ClusterRightPanel/memberSettings.ts +2 -2
- package/client/src/components/ClusterRightPanel/panels.ts +1 -0
- package/client/src/components/ClusterRightPanel/types.ts +5 -1
- package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +82 -0
- package/client/src/components/ClusterTab.tsx +76 -23
- package/client/src/components/ClusterTaskBoardTab.tsx +35 -6
- package/client/src/components/Connections/Connections.tsx +5 -8
- package/client/src/components/Connections/model.ts +2 -2
- package/client/src/components/DialogShell.tsx +4 -0
- package/client/src/components/DirectorContinuePrompt.tsx +56 -0
- package/client/src/components/FileExplorer.tsx +54 -1
- package/client/src/components/FileViewerModal.tsx +39 -7
- package/client/src/components/FirstRun.tsx +3 -2
- package/client/src/components/ForwardMessages.tsx +6 -3
- package/client/src/components/GateApprovalNotice.tsx +7 -4
- package/client/src/components/GeminiSkillNotice.tsx +12 -0
- package/client/src/components/GeminiSubagentLine.tsx +5 -0
- package/client/src/components/GitDialog.tsx +15 -6
- package/client/src/components/GitOtherWork.tsx +2 -1
- package/client/src/components/HandoffDialog.tsx +3 -2
- package/client/src/components/HeaderVersionBox.tsx +6 -4
- package/client/src/components/HistoryTab.tsx +127 -108
- package/client/src/components/Home/HomeView.tsx +14 -3
- package/client/src/components/Home/ResearchLibrary.tsx +107 -0
- package/client/src/components/Home/home.css +6 -0
- package/client/src/components/LoginFlow.tsx +12 -5
- package/client/src/components/MemberCard.tsx +8 -2
- package/client/src/components/MemberPane.tsx +12 -4
- package/client/src/components/MobileNotices.tsx +26 -0
- package/client/src/components/MobileQuestionBar.tsx +35 -0
- package/client/src/components/MobileShell.tsx +811 -0
- package/client/src/components/MobileTextSize.tsx +27 -0
- package/client/src/components/NativeSubagentControls.tsx +12 -1
- package/client/src/components/NorthStarBar.tsx +2 -0
- package/client/src/components/NotificationToasts.tsx +6 -2
- package/client/src/components/OperatorQuestionNotice.tsx +2 -2
- package/client/src/components/PendingQuestionsButton.tsx +44 -5
- package/client/src/components/PhoneUpload.tsx +4 -2
- package/client/src/components/PlanComposerDialog.tsx +7 -7
- package/client/src/components/ProjectsSettings.tsx +3 -0
- package/client/src/components/ProvidersPopover.tsx +9 -6
- package/client/src/components/PurgeConversationModal.tsx +1 -1
- package/client/src/components/QueuedMessagesIndicator.tsx +1 -1
- package/client/src/components/Recall/RecallView.tsx +31 -8
- package/client/src/components/ResearchFolderSetting.tsx +64 -0
- package/client/src/components/RightPanel/ActivityTab.tsx +9 -4
- package/client/src/components/RightPanel/BlastRadiusTab.tsx +6 -8
- package/client/src/components/RightPanel/ConfigTab.tsx +18 -10
- package/client/src/components/RightPanel/FilesTab.tsx +34 -19
- package/client/src/components/RightPanel/PlanTab.tsx +67 -24
- package/client/src/components/RightPanel/UsageTab.tsx +30 -3
- package/client/src/components/RightPanel/index.tsx +42 -3
- package/client/src/components/RuntimeStateBanner.tsx +8 -0
- package/client/src/components/ScratchCloseDialog.tsx +124 -0
- package/client/src/components/SettingsPanel.tsx +221 -71
- package/client/src/components/SkillActivityIndicator.tsx +93 -0
- package/client/src/components/SystemHeader.tsx +2 -7
- package/client/src/components/SystemModal.tsx +37 -45
- package/client/src/components/TabBar.tsx +52 -8
- package/client/src/components/TabContextMenu.tsx +12 -102
- package/client/src/components/TaskCard.tsx +13 -17
- package/client/src/components/TaskChildComposer.tsx +24 -0
- package/client/src/components/TasksPanel.tsx +7 -17
- package/client/src/components/Terminal/FloatingTerminalWindow.tsx +11 -3
- package/client/src/components/Terminal/FloatingWindow.tsx +36 -14
- package/client/src/components/Terminal/XtermView.tsx +19 -2
- package/client/src/components/Terminal/phoneKeys.ts +9 -0
- package/client/src/components/TerminalInput.tsx +149 -32
- package/client/src/components/TranscriptWorkerDialog.tsx +2 -2
- package/client/src/components/UpdateAction.tsx +9 -6
- package/client/src/components/UsageBar.tsx +118 -10
- package/client/src/components/UserManual/MobileManualContent.tsx +58 -0
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +8 -5
- package/client/src/components/WorkflowCreator/PastChatsList.tsx +3 -1
- package/client/src/components/WorkflowCreator/ProjectPicker.tsx +3 -3
- package/client/src/components/WorkflowCreator/ResearchStartForm.tsx +335 -0
- package/client/src/components/WorkflowCreator/index.tsx +124 -36
- package/client/src/components/WorkflowCreator/memberProviders.ts +20 -5
- package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +20 -0
- package/client/src/components/WorkflowCreator/types.ts +18 -0
- package/client/src/components/WorkflowStatusChip.tsx +1 -0
- package/client/src/components/WorkflowView.tsx +51 -13
- package/client/src/components/chatMessageLabel.ts +4 -0
- package/client/src/components/clusterActivity.helpers.ts +5 -1
- package/client/src/components/clusterNeedsYou.ts +3 -8
- package/client/src/components/clusterSurface.helpers.ts +6 -1
- package/client/src/components/composer/submitComposer.ts +7 -1
- package/client/src/components/help/HelpBanner.tsx +10 -5
- package/client/src/components/help/HelpPopover.tsx +5 -0
- package/client/src/components/media/MediaModalHost.tsx +13 -8
- package/client/src/components/plans/PhonePlanView.tsx +66 -0
- package/client/src/components/plans/phonePlanChecklist.ts +45 -0
- package/client/src/components/providerIndicator.ts +83 -0
- package/client/src/components/research/AddResearcherSection.tsx +50 -0
- package/client/src/components/research/ExportResearchDialog.tsx +52 -0
- package/client/src/components/research/QuickResearchOverview.tsx +92 -0
- package/client/src/components/research/RerunResearchDialog.tsx +61 -0
- package/client/src/components/research/ResearchCloseDialog.tsx +98 -0
- package/client/src/components/research/ResearchRemoveDialog.tsx +37 -0
- package/client/src/components/research/ResearchReopenDialog.tsx +160 -0
- package/client/src/components/research/ResearchResultsTab.css +289 -0
- package/client/src/components/research/ResearchResultsTab.tsx +207 -0
- package/client/src/components/research/ResearchRoundsStrip.tsx +127 -0
- package/client/src/components/research/SavedQuickKeep.tsx +58 -0
- package/client/src/components/research/SendResearchDialog.tsx +126 -0
- package/client/src/components/research/StartResearchProjectDialog.tsx +108 -0
- package/client/src/components/research/researchExports.ts +26 -0
- package/client/src/components/research/researchLinks.tsx +30 -0
- package/client/src/components/research/researchView.ts +64 -0
- package/client/src/components/research/researcherRow.tsx +104 -0
- package/client/src/components/settings/AppVersionSection.tsx +4 -2
- package/client/src/components/settings/SettingsLayout.tsx +23 -4
- package/client/src/components/settings/navigation.ts +4 -4
- package/client/src/components/settings/settings.css +18 -0
- package/client/src/components/usageVisibility.ts +4 -6
- package/client/src/components/workSurface/WorkSurfaceControls.tsx +7 -0
- package/client/src/explorer/StorageLens.tsx +10 -3
- package/client/src/help/content/chat.tsx +5 -8
- package/client/src/help/content/cluster.tsx +70 -30
- package/client/src/help/content/composer.tsx +13 -8
- package/client/src/help/content/header.tsx +18 -24
- package/client/src/help/content/media.tsx +2 -2
- package/client/src/help/content/misc.tsx +174 -38
- package/client/src/help/content/recall.tsx +2 -2
- package/client/src/help/content/rightPanel.tsx +8 -8
- package/client/src/help/content/settings.tsx +56 -17
- package/client/src/help/content/tabbar.tsx +6 -2
- package/client/src/help/manualSections/actions.tsx +7 -2
- package/client/src/help/manualSections/chat.tsx +16 -15
- package/client/src/help/manualSections/clusters.tsx +348 -69
- package/client/src/help/manualSections/configuration.tsx +27 -18
- package/client/src/help/manualSections/deepseek.tsx +4 -5
- package/client/src/help/manualSections/gettingStarted.tsx +30 -26
- package/client/src/help/manualSections/maintenance.tsx +16 -8
- package/client/src/help/manualSections/plans.tsx +4 -4
- package/client/src/help/manualSections/powerFeatures.tsx +51 -18
- package/client/src/help/manualSections/providers.tsx +56 -21
- package/client/src/help/manualSections/reference.tsx +6 -6
- package/client/src/help/manualSections/strata.tsx +8 -8
- package/client/src/help/manualSections/workflows.tsx +3 -3
- package/client/src/help/manualSections/workspace.tsx +115 -39
- package/client/src/hooks/useWebSocket.ts +21 -4
- package/client/src/layout/PhoneBottomSheet.tsx +71 -0
- package/client/src/layout/PhonePage.tsx +71 -0
- package/client/src/layout/SlideOut.tsx +36 -9
- package/client/src/layout/layoutRange.ts +41 -4
- package/client/src/layout/phoneChip.ts +14 -0
- package/client/src/layout/phoneOverlay.ts +81 -0
- package/client/src/layout/phonePageActions.ts +40 -0
- package/client/src/stores/appStore.ts +36 -10
- package/client/src/stores/appStore.types.ts +29 -3
- package/client/src/stores/appUpdateStore.ts +7 -1
- package/client/src/stores/directorContinueStore.ts +22 -0
- package/client/src/stores/draftStore.ts +56 -2
- package/client/src/stores/phoneStore.ts +196 -0
- package/client/src/stores/terminalStore.ts +8 -0
- package/client/src/styles/contextual-help.css +10 -0
- package/client/src/styles/global.css +293 -0
- package/client/src/themes/apply.ts +9 -1
- package/client/src/themes/bootstrap.ts +21 -1
- package/client/src/themes/providerThemes.ts +1 -0
- package/client/src/utils/codexAccountHome.ts +9 -0
- package/client/src/utils/format.ts +8 -2
- package/client/src/utils/gitBranchMark.ts +3 -0
- package/client/src/utils/homeModel.ts +7 -0
- package/client/src/utils/longPress.ts +64 -0
- package/client/src/utils/modelCatalog.ts +4 -0
- package/client/src/utils/providerStatusCheck.ts +30 -0
- package/client/src/utils/startupGate.ts +6 -0
- package/client/src/ws/handleServerMessage.ts +106 -7
- package/docs/ARCHITECTURE.md +63 -37
- package/docs/ARCHITECTURE_REVIEW.md +1 -1
- package/docs/BACKUP.md +60 -9
- package/docs/CHAT.md +15 -11
- package/docs/CHECKPOINTS.md +2 -0
- package/docs/CLIENT.md +70 -36
- package/docs/DEEPSEEK.md +9 -10
- package/docs/DIAGNOSTICS.md +8 -7
- package/docs/DOCKER.md +16 -2
- package/docs/EXTENDING.md +10 -26
- package/docs/FEATURES.md +23 -15
- package/docs/GENESIS.md +3 -1
- package/docs/GETTING_STARTED.md +82 -16
- package/docs/GIT_WORKBENCH.md +5 -5
- package/docs/GLOSSARY.md +36 -23
- package/docs/GOTCHAS.md +102 -67
- package/docs/HTTP_API.md +183 -87
- package/docs/INDEX.md +1 -0
- package/docs/KNOWLEDGE.md +2 -2
- package/docs/LOCAL_SERVICES.md +9 -8
- package/docs/MCP_REGISTRY.md +18 -13
- package/docs/MEDIA_STUDIO.md +7 -11
- package/docs/OPERATIONS.md +117 -32
- package/docs/OPERATOR_ACTIONS.md +24 -22
- package/docs/PERSISTENCE.md +65 -24
- package/docs/PHOSPHOR_DEMO.md +1 -4
- package/docs/PLAN_OR_BOARD.md +2 -2
- package/docs/PRIMITIVES.md +17 -17
- package/docs/PROTOCOL.md +61 -10
- package/docs/PROTOCOL_CLUSTER.md +92 -22
- package/docs/PROTOCOL_PRIMITIVES.md +10 -4
- package/docs/PROVIDERS.md +291 -145
- package/docs/RECALL.md +40 -31
- package/docs/REMOTE_MANAGEMENT.md +27 -51
- package/docs/REPO_LAYOUT.md +4 -3
- package/docs/RESEARCH.md +189 -0
- package/docs/RESUME_INDEX.md +10 -19
- package/docs/SERVICE_MODE.md +11 -5
- package/docs/SETTINGS.md +25 -16
- package/docs/STORAGE_PLAN.md +3 -3
- package/docs/STRATA.md +14 -11
- package/docs/TASK_LEDGER.md +19 -8
- package/docs/TERMINAL.md +14 -10
- package/docs/THIRD_PARTY.md +21 -4
- package/docs/VOICE.md +16 -28
- package/native/linux-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +1 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +9 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +13 -4
- package/node_modules/@arco/shared/dist/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +7 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +22 -11
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +1 -1
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +18 -3
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +177 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.js +48 -2
- package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/models.js +4 -3
- package/node_modules/@arco/shared/dist/protocol/providers.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/providers.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +29 -4
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +3 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +42 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.js +17 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +2 -0
- package/node_modules/@arco/shared/dist/researchActivity.d.ts +4 -0
- package/node_modules/@arco/shared/dist/researchActivity.js +29 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +3 -2
- package/scripts/packaging/services.mjs +19 -2
- package/scripts/packaging/update.mjs +92 -26
- package/server/dist/arcoHome.js +19 -3
- package/server/dist/auth.d.ts +4 -2
- package/server/dist/auth.js +42 -4
- package/server/dist/authLoginSession.d.ts +2 -1
- package/server/dist/authLoginSession.js +21 -3
- package/server/dist/capabilities.d.ts +2 -2
- package/server/dist/capabilities.js +11 -6
- package/server/dist/chatMode.d.ts +3 -0
- package/server/dist/chatMode.js +25 -2
- package/server/dist/checkedFile.d.ts +1 -1
- package/server/dist/checkedFile.js +48 -41
- package/server/dist/cliUpdateDecision.js +1 -1
- package/server/dist/clusterAutoTurn.d.ts +4 -1
- package/server/dist/clusterAutoTurn.js +25 -4
- package/server/dist/clusterBusyReminder.js +2 -1
- package/server/dist/clusterDirector.js +5 -2
- package/server/dist/clusterMailTally.d.ts +11 -0
- package/server/dist/clusterMailTally.js +29 -0
- package/server/dist/clusterMailbox.d.ts +8 -1
- package/server/dist/clusterMailbox.js +53 -4
- package/server/dist/clusterOpenWork.d.ts +22 -0
- package/server/dist/clusterOpenWork.js +85 -0
- package/server/dist/clusterPeerOps.d.ts +32 -5
- package/server/dist/clusterPeerOps.js +253 -49
- package/server/dist/clusterPlanBridge.d.ts +7 -1
- package/server/dist/clusterPlanBridge.js +58 -0
- package/server/dist/clusterPlanStore.d.ts +6 -0
- package/server/dist/clusterPlanStore.js +58 -0
- package/server/dist/clusterPresets.js +23 -3
- package/server/dist/clusterProgress.js +2 -2
- package/server/dist/clusterSkills.js +2 -2
- package/server/dist/clusterSnapshots.d.ts +1 -0
- package/server/dist/clusterSnapshots.js +7 -1
- package/server/dist/clusterStore.d.ts +34 -1
- package/server/dist/clusterStore.js +194 -21
- package/server/dist/clusterTurnOrigin.d.ts +2 -0
- package/server/dist/clusterTurnOrigin.js +19 -0
- package/server/dist/connectionCatalog.js +1 -0
- package/server/dist/cursorUsage.js +3 -3
- package/server/dist/defaults/models.md +11 -14
- package/server/dist/directorContinue.d.ts +47 -0
- package/server/dist/directorContinue.js +311 -0
- package/server/dist/directorContinueHook.d.ts +3 -0
- package/server/dist/directorContinueHook.js +16 -0
- package/server/dist/effortValidation.d.ts +3 -0
- package/server/dist/effortValidation.js +34 -0
- package/server/dist/fileAccessPolicy.js +1 -0
- package/server/dist/fileFetch.d.ts +7 -1
- package/server/dist/fileFetch.js +50 -29
- package/server/dist/geminiMembers.d.ts +8 -0
- package/server/dist/geminiMembers.js +113 -0
- package/server/dist/git.d.ts +3 -0
- package/server/dist/git.js +17 -24
- package/server/dist/gitOtherWork.js +5 -4
- package/server/dist/gitSnapshots.js +66 -5
- package/server/dist/http/authLoginRoutes.js +1 -1
- package/server/dist/http/clusterRoutes.js +466 -4
- package/server/dist/http/diagnosticsRoutes.js +8 -0
- package/server/dist/http/fileWriteRoutes.js +11 -3
- package/server/dist/http/phoneUploadRoutes.js +2 -1
- package/server/dist/http/readConfinement.d.ts +11 -0
- package/server/dist/http/readConfinement.js +30 -0
- package/server/dist/http/recallRoutes.js +1 -1
- package/server/dist/http/router.js +48 -11
- package/server/dist/http/storageRoutes.js +114 -7
- package/server/dist/http/workflowDataRoutes.js +20 -0
- package/server/dist/http/writeConfinement.js +12 -1
- package/server/dist/index.d.ts +13 -0
- package/server/dist/index.js +353 -56
- package/server/dist/initialProviders.js +1 -1
- package/server/dist/manualCompactCapability.js +1 -1
- package/server/dist/mcp/clusterMcpLoopback.d.ts +1 -0
- package/server/dist/mcp/clusterMcpLoopback.js +1 -0
- package/server/dist/mcp/clusterMcpServer.js +3 -2
- package/server/dist/mcp/clusterMcpTools.d.ts +3 -0
- package/server/dist/mcp/clusterMcpTools.js +79 -25
- package/server/dist/mcp/mcpConfigWriter.d.ts +1 -0
- package/server/dist/mcp/mcpConfigWriter.js +2 -0
- package/server/dist/mcp/workerMailBridge.d.ts +17 -0
- package/server/dist/mcp/workerMailBridge.js +104 -0
- package/server/dist/planStore.js +1 -0
- package/server/dist/primitives/seedWorker.d.ts +10 -1
- package/server/dist/primitives/seedWorker.js +14 -15
- package/server/dist/project/taskLedger.d.ts +3 -0
- package/server/dist/project/taskLedger.js +16 -0
- package/server/dist/providers/{cursor → acp}/acpJsonRpc.js +1 -1
- package/server/dist/providers/acp/permissionGate.d.ts +3 -0
- package/server/dist/providers/acp/permissionGate.js +46 -0
- package/server/dist/providers/antigravity/index.d.ts +15 -0
- package/server/dist/providers/antigravity/index.js +251 -0
- package/server/dist/providers/antigravity/researchSignIn.d.ts +24 -0
- package/server/dist/providers/antigravity/researchSignIn.js +93 -0
- package/server/dist/providers/antigravity/status.d.ts +18 -0
- package/server/dist/providers/antigravity/status.js +29 -0
- package/server/dist/providers/antigravity/usage.d.ts +7 -0
- package/server/dist/providers/antigravity/usage.js +36 -0
- package/server/dist/providers/claude/researcherFence.d.ts +7 -0
- package/server/dist/providers/claude/researcherFence.js +27 -0
- package/server/dist/providers/claude-native/catalog.d.ts +2 -1
- package/server/dist/providers/claude-native/catalog.js +4 -0
- package/server/dist/providers/claude-native/index.d.ts +1 -0
- package/server/dist/providers/claude-native/index.js +9 -1
- package/server/dist/providers/claude-native/peerTools.d.ts +1 -0
- package/server/dist/providers/claude-native/peerTools.js +26 -4
- package/server/dist/providers/claude-native/taskAdmission.d.ts +7 -1
- package/server/dist/providers/claude-native/taskAdmission.js +30 -8
- package/server/dist/providers/claude-native/tools.d.ts +1 -0
- package/server/dist/providers/claude-native/tools.js +47 -18
- package/server/dist/providers/claude-native/worker.d.ts +22 -1
- package/server/dist/providers/claude-native/worker.js +281 -51
- package/server/dist/providers/claude-native/workerHelpers.d.ts +5 -0
- package/server/dist/providers/claude-native/workerHelpers.js +95 -5
- package/server/dist/providers/claude.d.ts +2 -0
- package/server/dist/providers/claude.js +194 -22
- package/server/dist/providers/clusterTaskToolDefinitions.js +2 -1
- package/server/dist/providers/codex-appserver/heldCommands.d.ts +2 -2
- package/server/dist/providers/codex-appserver/heldCommands.js +9 -3
- package/server/dist/providers/codex-appserver/index.d.ts +9 -0
- package/server/dist/providers/codex-appserver/index.js +106 -5
- package/server/dist/providers/codex-appserver/lateCommands.js +1 -0
- package/server/dist/providers/codex-appserver/modelAvailability.d.ts +20 -0
- package/server/dist/providers/codex-appserver/modelAvailability.js +34 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +11 -0
- package/server/dist/providers/codex-appserver/worker.js +199 -25
- package/server/dist/providers/codex.js +1 -0
- package/server/dist/providers/codexVersion.d.ts +2 -0
- package/server/dist/providers/codexVersion.js +8 -0
- package/server/dist/providers/codexWebSearch.js +1 -1
- package/server/dist/providers/cursor/agentEnv.d.ts +20 -0
- package/server/dist/providers/cursor/agentEnv.js +93 -0
- package/server/dist/providers/cursor/authState.js +2 -1
- package/server/dist/providers/cursor/authToken.d.ts +25 -2
- package/server/dist/providers/cursor/authToken.js +118 -27
- package/server/dist/providers/cursor/catalog.d.ts +6 -0
- package/server/dist/providers/cursor/catalog.js +91 -1
- package/server/dist/providers/cursor/chatSandbox.d.ts +3 -1
- package/server/dist/providers/cursor/chatSandbox.js +24 -8
- package/server/dist/providers/cursor/isolated.d.ts +6 -0
- package/server/dist/providers/cursor/isolated.js +313 -0
- package/server/dist/providers/cursor/isolatedVersion.d.ts +6 -0
- package/server/dist/providers/cursor/isolatedVersion.js +35 -0
- package/server/dist/providers/cursor/modelMap.js +9 -5
- package/server/dist/providers/cursor/print.js +10 -8
- package/server/dist/providers/cursor/worker.js +8 -3
- package/server/dist/providers/index.js +10 -2
- package/server/dist/providers/llamacpp.js +3 -2
- package/server/dist/providers/ollama.d.ts +3 -2
- package/server/dist/providers/ollama.js +29 -10
- package/server/dist/providers/ollamaTools.d.ts +3 -0
- package/server/dist/providers/ollamaTools.js +31 -29
- package/server/dist/research/exportResults.d.ts +15 -0
- package/server/dist/research/exportResults.js +60 -0
- package/server/dist/research/isolatedArtifact.d.ts +4 -0
- package/server/dist/research/isolatedArtifact.js +56 -0
- package/server/dist/research/quickPromotion.d.ts +27 -0
- package/server/dist/research/quickPromotion.js +402 -0
- package/server/dist/research/quickResearchChat.d.ts +4 -0
- package/server/dist/research/quickResearchChat.js +187 -0
- package/server/dist/research/researchClose.d.ts +31 -0
- package/server/dist/research/researchClose.js +373 -0
- package/server/dist/research/researchCopy.d.ts +16 -0
- package/server/dist/research/researchCopy.js +180 -0
- package/server/dist/research/researchCreate.d.ts +40 -0
- package/server/dist/research/researchCreate.js +334 -0
- package/server/dist/research/researchDoctrine.d.ts +2 -0
- package/server/dist/research/researchDoctrine.js +26 -0
- package/server/dist/research/researchFolder.d.ts +23 -0
- package/server/dist/research/researchFolder.js +191 -0
- package/server/dist/research/researchLibrary.d.ts +54 -0
- package/server/dist/research/researchLibrary.js +281 -0
- package/server/dist/research/researchRetry.d.ts +25 -0
- package/server/dist/research/researchRetry.js +96 -0
- package/server/dist/research/researchRounds.d.ts +108 -0
- package/server/dist/research/researchRounds.js +996 -0
- package/server/dist/research/researchState.d.ts +112 -0
- package/server/dist/research/researchState.js +191 -0
- package/server/dist/research/researchTools.d.ts +57 -0
- package/server/dist/research/researchTools.js +57 -0
- package/server/dist/research/researchTripwires.d.ts +18 -0
- package/server/dist/research/researchTripwires.js +196 -0
- package/server/dist/research/resultSelection.d.ts +27 -0
- package/server/dist/research/resultSelection.js +161 -0
- package/server/dist/research/savedQuickPromotion.d.ts +19 -0
- package/server/dist/research/savedQuickPromotion.js +259 -0
- package/server/dist/research/sendToProject.d.ts +36 -0
- package/server/dist/research/sendToProject.js +293 -0
- package/server/dist/server/broadcast.d.ts +5 -1
- package/server/dist/server/broadcast.js +45 -5
- package/server/dist/server/updateCheck.js +1 -0
- package/server/dist/settings.js +27 -3
- package/server/dist/skillActivity.d.ts +11 -0
- package/server/dist/skillActivity.js +33 -0
- package/server/dist/smartPickup.d.ts +1 -0
- package/server/dist/smartPickup.js +12 -4
- package/server/dist/smartPickupAdapters.js +3 -2
- package/server/dist/smartPickupEvaluator.d.ts +1 -0
- package/server/dist/smartPickupObserver.js +47 -14
- package/server/dist/storageActions.d.ts +9 -0
- package/server/dist/storageActions.js +5 -0
- package/server/dist/storageOverview.d.ts +1 -0
- package/server/dist/storageOverview.js +12 -5
- package/server/dist/taskDispatcher.js +3 -2
- package/server/dist/toolboxWorkflow.js +2 -1
- package/server/dist/updateCheck.d.ts +3 -2
- package/server/dist/updateCheck.js +53 -29
- package/server/dist/updateManager.d.ts +2 -4
- package/server/dist/updateManager.js +4 -1
- package/server/dist/windowsCommand.d.ts +15 -0
- package/server/dist/windowsCommand.js +85 -4
- package/server/dist/workers/StreamParser.d.ts +1 -0
- package/server/dist/workers/StreamParser.js +23 -1
- package/server/dist/workers/WorkerManager.d.ts +4 -0
- package/server/dist/workers/WorkerManager.js +5 -1
- package/server/dist/workers/antigravityIsolatedLaunch.d.ts +25 -0
- package/server/dist/workers/antigravityIsolatedLaunch.js +88 -0
- package/server/dist/workers/checkedLinuxWorker.d.ts +38 -0
- package/server/dist/workers/checkedLinuxWorker.js +192 -0
- package/server/dist/workers/claudeAccessLease.d.ts +24 -0
- package/server/dist/workers/claudeAccessLease.js +157 -0
- package/server/dist/workers/claudeAccessSource.d.ts +2 -0
- package/server/dist/workers/claudeAccessSource.js +27 -0
- package/server/dist/workers/claudeIsolatedLaunch.d.ts +19 -0
- package/server/dist/workers/claudeIsolatedLaunch.js +104 -0
- package/server/dist/workers/cliResearcherDoctrine.d.ts +4 -0
- package/server/dist/workers/cliResearcherDoctrine.js +20 -0
- package/server/dist/workers/codexAccessLease.d.ts +26 -0
- package/server/dist/workers/codexAccessLease.js +208 -0
- package/server/dist/workers/codexIsolatedLaunch.d.ts +21 -0
- package/server/dist/workers/codexIsolatedLaunch.js +95 -0
- package/server/dist/workers/codexIsolatedPolicy.d.ts +5 -0
- package/server/dist/workers/codexIsolatedPolicy.js +49 -0
- package/server/dist/workers/cursorIsolatedLaunch.d.ts +37 -0
- package/server/dist/workers/cursorIsolatedLaunch.js +178 -0
- package/server/dist/workers/isolatedCliHome.d.ts +4 -0
- package/server/dist/workers/isolatedCliHome.js +107 -0
- package/server/dist/workers/limits.js +1 -1
- package/server/dist/workers/linuxWorkerSandbox.d.ts +48 -0
- package/server/dist/workers/linuxWorkerSandbox.js +192 -0
- package/server/dist/workers/processKill.d.ts +2 -0
- package/server/dist/workers/processKill.js +28 -2
- package/server/dist/workers/providerRuntimeDiscovery.d.ts +13 -0
- package/server/dist/workers/providerRuntimeDiscovery.js +126 -0
- package/server/dist/workers/researchSandboxAvailability.d.ts +3 -0
- package/server/dist/workers/researchSandboxAvailability.js +78 -0
- package/server/dist/workers/workerAccessPass.d.ts +12 -0
- package/server/dist/workers/workerAccessPass.js +123 -0
- package/server/dist/workers/workerHiddenDirectories.d.ts +3 -0
- package/server/dist/workers/workerHiddenDirectories.js +16 -0
- package/server/dist/workers/workerSocketDirectory.d.ts +2 -0
- package/server/dist/workers/workerSocketDirectory.js +16 -0
- package/server/dist/workers/workerWebProxy.d.ts +28 -0
- package/server/dist/workers/workerWebProxy.js +206 -0
- package/server/dist/workflowMeta.d.ts +5 -0
- package/server/dist/workflowMeta.js +7 -3
- package/server/dist/workflowStore.js +43 -25
- package/server/dist/workflows/purgeWorkflow.js +15 -0
- package/server/dist/workflows/types.d.ts +6 -0
- package/server/dist/workspace.d.ts +1 -0
- package/server/dist/workspace.js +8 -0
- package/server/dist/ws/clusterHandlers.d.ts +5 -0
- package/server/dist/ws/clusterHandlers.js +373 -26
- package/server/dist/ws/clusterMembers.d.ts +5 -0
- package/server/dist/ws/clusterMembers.js +15 -5
- package/server/dist/ws/compactHandlers.js +43 -8
- package/server/dist/ws/compareHandlers.d.ts +12 -0
- package/server/dist/ws/compareHandlers.js +32 -14
- package/server/dist/ws/handoffHandlers.js +39 -3
- package/server/dist/ws/operatorQuestionHandlers.d.ts +5 -0
- package/server/dist/ws/operatorQuestionHandlers.js +17 -2
- package/server/dist/ws/taskLedgerHandlers.js +1 -0
- package/server/dist/ws/taskLifecycle.d.ts +25 -1
- package/server/dist/ws/taskLifecycle.js +53 -1
- package/server/dist/ws/turnEngine.d.ts +18 -1
- package/server/dist/ws/turnEngine.js +281 -52
- package/server/dist/ws/turnPrompt.js +3 -1
- package/server/dist/ws/updatePrimaryConfig.js +11 -3
- package/server/dist/ws/workflowHandlers.js +17 -4
- package/server/package.json +1 -1
- package/server/src/arcoHome.ts +16 -3
- package/server/src/auth.ts +50 -6
- package/server/src/authLoginSession.ts +18 -5
- package/server/src/capabilities.ts +13 -8
- package/server/src/chatMode.ts +24 -2
- package/server/src/checkedFile.ts +42 -31
- package/server/src/cliUpdateDecision.ts +1 -1
- package/server/src/clusterAutoTurn.ts +29 -5
- package/server/src/clusterBusyReminder.ts +2 -1
- package/server/src/clusterDirector.ts +5 -2
- package/server/src/clusterMailTally.ts +28 -0
- package/server/src/clusterMailbox.ts +49 -4
- package/server/src/clusterOpenWork.ts +94 -0
- package/server/src/clusterPeerOps.ts +238 -52
- package/server/src/clusterPlanBridge.ts +54 -1
- package/server/src/clusterPlanStore.ts +59 -0
- package/server/src/clusterPresets.ts +17 -3
- package/server/src/clusterProgress.ts +2 -2
- package/server/src/clusterSkills.ts +2 -2
- package/server/src/clusterSnapshots.ts +7 -1
- package/server/src/clusterStore.ts +192 -20
- package/server/src/clusterTurnOrigin.ts +19 -0
- package/server/src/connectionCatalog.ts +1 -0
- package/server/src/cursorUsage.ts +3 -3
- package/server/src/defaults/models.md +11 -14
- package/server/src/directorContinue.ts +309 -0
- package/server/src/directorContinueHook.ts +15 -0
- package/server/src/effortValidation.ts +31 -0
- package/server/src/fileAccessPolicy.ts +1 -0
- package/server/src/fileFetch.ts +47 -29
- package/server/src/geminiMembers.ts +116 -0
- package/server/src/git.ts +20 -22
- package/server/src/gitOtherWork.ts +5 -4
- package/server/src/gitSnapshots.ts +53 -5
- package/server/src/http/authLoginRoutes.ts +2 -2
- package/server/src/http/clusterRoutes.ts +314 -6
- package/server/src/http/diagnosticsRoutes.ts +9 -0
- package/server/src/http/fileWriteRoutes.ts +13 -5
- package/server/src/http/phoneUploadRoutes.ts +2 -1
- package/server/src/http/readConfinement.ts +30 -0
- package/server/src/http/recallRoutes.ts +1 -1
- package/server/src/http/router.ts +43 -10
- package/server/src/http/storageRoutes.ts +86 -7
- package/server/src/http/workflowDataRoutes.ts +20 -0
- package/server/src/http/writeConfinement.ts +10 -1
- package/server/src/index.ts +295 -18
- package/server/src/initialProviders.ts +1 -1
- package/server/src/manualCompactCapability.ts +1 -1
- package/server/src/mcp/clusterMcpLoopback.ts +2 -0
- package/server/src/mcp/clusterMcpServer.ts +3 -2
- package/server/src/mcp/clusterMcpTools.ts +83 -27
- package/server/src/mcp/mcpConfigWriter.ts +4 -0
- package/server/src/mcp/workerMailBridge.ts +99 -0
- package/server/src/planStore.ts +1 -0
- package/server/src/primitives/seedWorker.ts +19 -14
- package/server/src/project/taskLedger.ts +23 -0
- package/server/src/providers/{cursor → acp}/acpJsonRpc.ts +3 -3
- package/server/src/providers/acp/permissionGate.ts +47 -0
- package/server/src/providers/antigravity/index.ts +187 -0
- package/server/src/providers/antigravity/researchSignIn.ts +76 -0
- package/server/src/providers/antigravity/status.ts +25 -0
- package/server/src/providers/antigravity/usage.ts +30 -0
- package/server/src/providers/claude/researcherFence.ts +25 -0
- package/server/src/providers/claude-native/catalog.ts +5 -0
- package/server/src/providers/claude-native/index.ts +8 -1
- package/server/src/providers/claude-native/peerTools.ts +24 -4
- package/server/src/providers/claude-native/taskAdmission.ts +35 -9
- package/server/src/providers/claude-native/tools.ts +39 -19
- package/server/src/providers/claude-native/worker.ts +270 -52
- package/server/src/providers/claude-native/workerHelpers.ts +88 -5
- package/server/src/providers/claude.ts +160 -22
- package/server/src/providers/clusterTaskToolDefinitions.ts +2 -1
- package/server/src/providers/codex-appserver/heldCommands.ts +7 -3
- package/server/src/providers/codex-appserver/index.ts +87 -3
- package/server/src/providers/codex-appserver/lateCommands.ts +1 -0
- package/server/src/providers/codex-appserver/modelAvailability.ts +40 -0
- package/server/src/providers/codex-appserver/worker.ts +155 -25
- package/server/src/providers/codex.ts +1 -0
- package/server/src/providers/codexVersion.ts +9 -0
- package/server/src/providers/codexWebSearch.ts +1 -1
- package/server/src/providers/cursor/agentEnv.ts +103 -0
- package/server/src/providers/cursor/authState.ts +2 -1
- package/server/src/providers/cursor/authToken.ts +137 -31
- package/server/src/providers/cursor/catalog.ts +89 -1
- package/server/src/providers/cursor/chatSandbox.ts +20 -8
- package/server/src/providers/cursor/isolated.ts +282 -0
- package/server/src/providers/cursor/isolatedVersion.ts +33 -0
- package/server/src/providers/cursor/modelMap.ts +9 -5
- package/server/src/providers/cursor/print.ts +10 -8
- package/server/src/providers/cursor/worker.ts +8 -3
- package/server/src/providers/index.ts +10 -2
- package/server/src/providers/llamacpp.ts +3 -1
- package/server/src/providers/ollama.ts +30 -11
- package/server/src/providers/ollamaTools.ts +33 -27
- package/server/src/research/exportResults.ts +47 -0
- package/server/src/research/isolatedArtifact.ts +48 -0
- package/server/src/research/quickPromotion.ts +325 -0
- package/server/src/research/quickResearchChat.ts +147 -0
- package/server/src/research/researchClose.ts +340 -0
- package/server/src/research/researchCopy.ts +170 -0
- package/server/src/research/researchCreate.ts +306 -0
- package/server/src/research/researchDoctrine.ts +27 -0
- package/server/src/research/researchFolder.ts +202 -0
- package/server/src/research/researchLibrary.ts +306 -0
- package/server/src/research/researchRetry.ts +86 -0
- package/server/src/research/researchRounds.ts +891 -0
- package/server/src/research/researchState.ts +309 -0
- package/server/src/research/researchTools.ts +59 -0
- package/server/src/research/researchTripwires.ts +158 -0
- package/server/src/research/resultSelection.ts +127 -0
- package/server/src/research/savedQuickPromotion.ts +174 -0
- package/server/src/research/sendToProject.ts +220 -0
- package/server/src/server/broadcast.ts +39 -5
- package/server/src/server/updateCheck.ts +1 -0
- package/server/src/settings.ts +22 -5
- package/server/src/skillActivity.ts +35 -0
- package/server/src/smartPickup.ts +14 -4
- package/server/src/smartPickupAdapters.ts +3 -2
- package/server/src/smartPickupEvaluator.ts +3 -0
- package/server/src/smartPickupObserver.ts +38 -12
- package/server/src/storageActions.ts +6 -0
- package/server/src/storageOverview.ts +13 -6
- package/server/src/taskDispatcher.ts +3 -1
- package/server/src/toolboxWorkflow.ts +2 -1
- package/server/src/updateCheck.ts +50 -29
- package/server/src/updateManager.ts +5 -2
- package/server/src/windowsCommand.ts +83 -4
- package/server/src/workers/StreamParser.ts +20 -1
- package/server/src/workers/WorkerManager.ts +10 -1
- package/server/src/workers/antigravityIsolatedLaunch.ts +82 -0
- package/server/src/workers/checkedLinuxWorker.ts +212 -0
- package/server/src/workers/claudeAccessLease.ts +122 -0
- package/server/src/workers/claudeAccessSource.ts +20 -0
- package/server/src/workers/claudeIsolatedLaunch.ts +91 -0
- package/server/src/workers/cliResearcherDoctrine.ts +20 -0
- package/server/src/workers/codexAccessLease.ts +146 -0
- package/server/src/workers/codexIsolatedLaunch.ts +72 -0
- package/server/src/workers/codexIsolatedPolicy.ts +38 -0
- package/server/src/workers/cursorIsolatedLaunch.ts +159 -0
- package/server/src/workers/isolatedCliHome.ts +75 -0
- package/server/src/workers/limits.ts +1 -1
- package/server/src/workers/linuxWorkerSandbox.ts +193 -0
- package/server/src/workers/processKill.ts +34 -2
- package/server/src/workers/providerRuntimeDiscovery.ts +108 -0
- package/server/src/workers/researchSandboxAvailability.ts +68 -0
- package/server/src/workers/workerAccessPass.ts +96 -0
- package/server/src/workers/workerHiddenDirectories.ts +16 -0
- package/server/src/workers/workerSocketDirectory.ts +13 -0
- package/server/src/workers/workerWebProxy.ts +194 -0
- package/server/src/workflowMeta.ts +10 -3
- package/server/src/workflowStore.ts +39 -26
- package/server/src/workflows/purgeWorkflow.ts +18 -0
- package/server/src/workflows/types.ts +13 -0
- package/server/src/workspace.ts +8 -0
- package/server/src/ws/clusterHandlers.ts +302 -26
- package/server/src/ws/clusterMembers.ts +15 -5
- package/server/src/ws/compactHandlers.ts +37 -5
- package/server/src/ws/compareHandlers.ts +34 -11
- package/server/src/ws/handoffHandlers.ts +36 -3
- package/server/src/ws/operatorQuestionHandlers.ts +14 -2
- package/server/src/ws/taskLedgerHandlers.ts +1 -0
- package/server/src/ws/taskLifecycle.ts +58 -4
- package/server/src/ws/turnEngine.ts +265 -49
- package/server/src/ws/turnPrompt.ts +3 -1
- package/server/src/ws/updatePrimaryConfig.ts +10 -3
- package/server/src/ws/workflowHandlers.ts +15 -4
- package/shared/dist/clusterCoordination.d.ts +1 -0
- package/shared/dist/clusterCoordination.js +9 -1
- package/shared/dist/clusterRolePresets.js +13 -4
- package/shared/dist/index.d.ts +1 -0
- package/shared/dist/index.js +1 -0
- package/shared/dist/protocol/autoPickup.d.ts +7 -0
- package/shared/dist/protocol/autoPickup.js +22 -11
- package/shared/dist/protocol/chat.d.ts +1 -1
- package/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/shared/dist/protocol/clientMessages.d.ts +18 -3
- package/shared/dist/protocol/clusters.d.ts +177 -4
- package/shared/dist/protocol/clusters.js +48 -2
- package/shared/dist/protocol/handoffs.d.ts +1 -0
- package/shared/dist/protocol/models.d.ts +6 -1
- package/shared/dist/protocol/models.js +4 -3
- package/shared/dist/protocol/providers.d.ts +3 -2
- package/shared/dist/protocol/providers.js +1 -1
- package/shared/dist/protocol/serverMessages.d.ts +29 -4
- package/shared/dist/protocol/settings.d.ts +4 -0
- package/shared/dist/protocol/settings.js +3 -1
- package/shared/dist/protocol/tasks.d.ts +42 -0
- package/shared/dist/protocol/tasks.js +17 -0
- package/shared/dist/protocol/workflows.d.ts +4 -0
- package/shared/dist/protocol/workflows.js +2 -0
- package/shared/dist/researchActivity.d.ts +4 -0
- package/shared/dist/researchActivity.js +29 -0
- package/shared/src/clusterCoordination.ts +12 -1
- package/shared/src/clusterRolePresets.ts +13 -4
- package/shared/src/index.ts +2 -0
- package/shared/src/protocol/autoPickup.ts +28 -11
- package/shared/src/protocol/chat.ts +1 -1
- package/shared/src/protocol/checkpoints.ts +1 -0
- package/shared/src/protocol/clientMessages.ts +14 -0
- package/shared/src/protocol/clusters.ts +231 -5
- package/shared/src/protocol/handoffs.ts +1 -0
- package/shared/src/protocol/models.ts +11 -4
- package/shared/src/protocol/providers.ts +6 -3
- package/shared/src/protocol/reviews.ts +2 -2
- package/shared/src/protocol/serverMessages.ts +29 -4
- package/shared/src/protocol/settings.ts +14 -1
- package/shared/src/protocol/tasks.ts +73 -0
- package/shared/src/protocol/workflows.ts +8 -0
- package/shared/src/researchActivity.ts +23 -0
- package/client/dist/assets/XtermView-Xk7_9JaH.js +0 -10
- package/client/dist/assets/index-BEFgrUJJ.css +0 -1
- package/client/dist/assets/index-C7WzZfsr.js +0 -614
- package/client/src/components/HeaderAuthChip.tsx +0 -207
- /package/server/dist/providers/{cursor → acp}/acpJsonRpc.d.ts +0 -0
package/docs/CLIENT.md
CHANGED
|
@@ -33,7 +33,7 @@ HISTORY advances its saved-event cursor even when a page contains no narrative r
|
|
|
33
33
|
|
|
34
34
|
Open task drawers use the live ledger row. Snapshot changes refresh comments, runs and dependencies; a new selection clears the previous details while loading.
|
|
35
35
|
|
|
36
|
-
Opening a FILES or CONTENT command-palette result hides the palette while the file viewer is open. Closing the viewer restores the query and selection.
|
|
36
|
+
Opening a FILES or CONTENT command-palette result hides the palette while the file viewer is open. Closing the viewer restores the query and selection. A restored workflow with an invalid saved effort uses a valid level for its provider and model; unsupported new effort values are refused.
|
|
37
37
|
|
|
38
38
|
PREVIEW fits within its panel at the current interface text size. Cluster CAPTURE SCREENSHOT, CHECK CONSOLE and CHECK NETWORK target the member in view with the selected capture viewport. Capture controls are disabled without a sender.
|
|
39
39
|
|
|
@@ -61,6 +61,7 @@ The composer agent-skill section shows discovery progress and errors for support
|
|
|
61
61
|
| [Adding a new component](#adding-a-new-component) |
|
|
62
62
|
| [Cluster tab rendering](#cluster-tab-rendering) |
|
|
63
63
|
| [Layout ranges](#layout-ranges) |
|
|
64
|
+
| [Mobile view](#mobile-view) |
|
|
64
65
|
| [Menus and popovers inside the window](#menus-and-popovers-inside-the-window) |
|
|
65
66
|
| [ARTIFACTS explorer (`?app=explorer`)](#artifacts-explorer-appexplorer) |
|
|
66
67
|
| [Cross-references](#cross-references) |
|
|
@@ -79,7 +80,7 @@ The composer agent-skill section shows discovery progress and errors for support
|
|
|
79
80
|
|
|
80
81
|
1. **Tab singleton gate** - `useTabSingleton` uses BroadcastChannel to detect a duplicate Arco tab. If another tab is already alive, this one shows `DuplicateTabOverlay` and returns. (Why: two tabs with the same persisted jobs would both rehydrate the same workflows on connect, fighting over observer state and confusing the WS handler.)
|
|
81
82
|
2. **`useWebSocket`** - opens the persistent WS, returns the outbound action helpers plus `{ reconnect, reconnectState }`.
|
|
82
|
-
3. **Auth poll** - `GET /api/auth-status` on mount, then every 2 minutes
|
|
83
|
+
3. **Auth poll** - `GET /api/auth-status` on mount, then every 2 minutes while Claude is logged in and at the faster logged-out interval otherwise.
|
|
83
84
|
4. **Fetches keyed on `connected`** - `/api/settings` and `/api/capabilities` re-run on every WS reconnect (the page may load while the server is still starting; re-keying avoids a manual refresh after each restart). Pollers: `/api/usage`, `/api/codex-usage`, `/api/cursor-usage` (`USAGE_POLL_MS` = 3 min); `/api/claude-native/catalog`, `/api/codex/catalog` (+ `?account=` per Codex profile), `/api/cursor/catalog` (30 min); `/api/ollama-live` + `/api/llamacpp-live` (15 s, only while enabled + reachable). `/api/toolbox` is workflow-specific and fetched lazily when that workflow's `SKILLS` menu opens.
|
|
84
85
|
5. **Gates, in order** - `ShutdownOverlay` replaces the tree on `shutdown`; when `firstRunOpen` or the unused-home setup gate is active, `FirstRun` mounts (local providers count as primary-capable; Settings + Manual stay mountable above it). `AuthOverlay` is the Connections dialog used during setup / CONNECT A PROVIDER, not a Claude/Codex-only fullscreen gate.
|
|
85
86
|
6. **Main-view routing** - `showGithub` -> `GitHubPanel`; `showHome` -> `HomeView` (default start surface); `activeClusterId` -> `ClusterTab`; `showCreator || !activeJob` -> `WorkflowCreator`; `activeJob.config.kind === 'chat'` -> `ChatModeView`; else `WorkflowView`. The routed view sits inside an `ErrorBoundary` keyed on the active id so one tab's render crash doesn't blank the shell.
|
|
@@ -100,7 +101,7 @@ reuses the panel. The existing resize/streaming paths then follow normally.
|
|
|
100
101
|
Manual scroll-up detaches again; unrelated recipients and failed sends do not
|
|
101
102
|
move the pane. This is UI intent, never worker/background activity.
|
|
102
103
|
|
|
103
|
-
**Standalone feature stores.** Several global, cross-workflow or transient-wizard surfaces keep their state OUT of `appStore` (so they don't touch the load-bearing per-tab store and can mount independent of props) - each a small dedicated Zustand store: `draftStore` (per-workflow composer drafts - a **performance boundary**: a draft in `appStore` triggers the whole subscriber fan-out on every keystroke; `appStore.setDraft` / `clearDraft` remain as delegating wrappers), `terminalStore` (operator PTY windows/sessions), `recallStore` (cross-session search), `compareStore` (Compare primitive), `docEditStore` (A7 AI-edit proposals), `knowledgeDistillStore` (distill-from-session wizard draft), `notificationStore` (notice history + mutes + unread marker), `hubLinkStore` (management-hub link status in the header), `orchestrationAssistStore` (per-cluster orchestration proposals - see below), `clusterSnapshotsStore` (operator-saved whole-cluster snapshots - config + members + conversation histories, over the `cluster_snapshot_*` WS messages), `liveChangesStore` (live working-tree change subscription via `live_changes_subscribe` / `_unsubscribe`, backing the FILES **LIVE** sub-tab (`LiveChangesPanel`)), and `mdTuneupStore` (agent-instruction-file tune-up proposals backing the composer ✎ TUNEUP / `MdTuneupDialog` surface - the file list shows line counts, approximate tokens and deterministic hints, and VIEW opens the current text before a model run; the agent drafts `md_tuneup_proposed` and the operator approves the diff. After ACCEPT, UNDO restores the backup, with CONFIRM UNDO required if the accepted file has changed; undo is available while the review remains open and the server is running). Each is described inline where its UI is covered.
|
|
104
|
+
**Standalone feature stores.** Several global, cross-workflow or transient-wizard surfaces keep their state OUT of `appStore` (so they don't touch the load-bearing per-tab store and can mount independent of props) - each a small dedicated Zustand store: `draftStore` (per-workflow composer drafts - a **performance boundary**: a draft in `appStore` triggers the whole subscriber fan-out on every keystroke; `appStore.setDraft` / `clearDraft` remain as delegating wrappers), `terminalStore` (operator PTY windows/sessions), `recallStore` (cross-session search), `compareStore` (Compare primitive), `docEditStore` (A7 AI-edit proposals), `knowledgeDistillStore` (distill-from-session wizard draft), `notificationStore` (notice history + mutes + unread marker), `hubLinkStore` (management-hub link status in the header), `orchestrationAssistStore` (per-cluster orchestration proposals - see below), `clusterSnapshotsStore` (operator-saved whole-cluster snapshots - config + members + conversation histories, over the `cluster_snapshot_*` WS messages), `liveChangesStore` (live working-tree change subscription via `live_changes_subscribe` / `_unsubscribe`, backing the FILES **LIVE** sub-tab (`LiveChangesPanel`)), and `mdTuneupStore` (agent-instruction-file tune-up proposals backing the composer ✎ TUNEUP / `MdTuneupDialog` surface - the file list shows line counts, approximate tokens and deterministic hints, and VIEW opens the current text before a model run; the agent drafts `md_tuneup_proposed` and the operator approves the diff. After ACCEPT, UNDO restores the backup, with CONFIRM UNDO required if the accepted file has changed; undo is available while the review remains open and the server is running). Other small stores follow the same rule: `messageSelectionStore` (messages ticked for FORWARD and the phone's long-press actions; transient, cleared per tab), `directorContinueStore` (the server's current Director-continue offer per Director workflow; live only), `appUpdateStore` (update-check status and the available-update notice), `planGenesisStore` (which creator, cluster or workflow a plan-genesis run belongs to, and its result), `startupStore` (startup and provider-setup state, never persisted), `storageWarningStore` (storage warnings shown by `StorageWarnings`), `notificationChannelsStore` (the desktop, phone and ntfy channel settings view), `tabStatusStore` (tabs whose turn finished while another view was showing) and `phoneStore` (see Mobile view). Each is described inline where its UI is covered.
|
|
104
105
|
|
|
105
106
|
### Two tiers
|
|
106
107
|
|
|
@@ -132,7 +133,7 @@ move the pane. This is UI intent, never worker/background activity.
|
|
|
132
133
|
- `taskLedger: Record<cwd|cwd::boardKey, LedgerTask[]>` - LEDGER / BOARD mirror of `task_ledger_snapshot`
|
|
133
134
|
- `mcpRegistry` / `mcpProbeResults` / `mcpAllow` / `mcpMalwareWarning` - CONFIG `McpRegistrySection` state
|
|
134
135
|
- `artifactQueue: ArtifactItem[]` - pending `primary_artifact` items for `ArtifactModal`
|
|
135
|
-
- `showSettings`, `showGithub`, `showManual`, `showCreator`, `showRecall: boolean` - modal/view open flags. (The Compare, Media studio, and doc-edit surfaces keep their open flags in their own dedicated stores, not here - see the standalone-store list below.)
|
|
136
|
+
- `showSettings`, `showGithub`, `showManual`, `showCreator`, `showRecall`, `showHome: boolean` - modal/view open flags. (The Compare, Media studio, and doc-edit surfaces keep their open flags in their own dedicated stores, not here - see the standalone-store list below.)
|
|
136
137
|
- `focusMode: boolean` - I3 focus mode active; collapses the header + unmounts the right panel. Persisted to `arco.focusMode`.
|
|
137
138
|
- `mediaStudio: { open; path?; mode?: 'image'|'audio'|'video'; edit?; context?: { cwd, workflowId } }` - Media studio modal open-state (set by `setMediaStudio` / the `media/launchers.ts` helpers).
|
|
138
139
|
- `helpMode: boolean` - contextual help mode active. Body class `help-mode` is mirrored from this in `useHelpMode`.
|
|
@@ -200,7 +201,7 @@ interface JobState {
|
|
|
200
201
|
// task_started / task_status broadcast on the parent workflow. Survives
|
|
201
202
|
// refresh-after-settle because lifecycle events are re-broadcast on
|
|
202
203
|
// rehydrate regardless of clientLastSeq, and the recordTaskStarted/Status
|
|
203
|
-
// actions are idempotent.
|
|
204
|
+
// actions are idempotent. background marks a run_in_background child.
|
|
204
205
|
taskChildren?: Record<string, TaskChildEntry>;
|
|
205
206
|
parentWorkflowId?: string; // set when this workflow was minted by a Task tool call; gates TabBar filter
|
|
206
207
|
promoted?: boolean; // client-only flag: a parented child surfaced into the top tab strip
|
|
@@ -297,7 +298,7 @@ Actions are split into thematic groups inside `appStore.ts`:
|
|
|
297
298
|
- Plan: `setPlan` (clears with `null`), `setPendingPlanCapture`, `setPlanCandidate`
|
|
298
299
|
- Replay: `updateLastSeq`, `markSnapshotReceived`
|
|
299
300
|
- Composer: `setDraft`, `clearDraft`, `addAttachment`, `removeAttachment`, `clearAttachments`
|
|
300
|
-
-
|
|
301
|
+
- Artifacts: `enqueueArtifact`, `dequeueArtifact`
|
|
301
302
|
- Theme / display: `setThemeId` (optimistic; reverts on `/api/settings` failure), `setFontPackOverride`, `setFrostedOverride` / `setFrostedOpacity`, `setBgBrightness` / `setTextBrightness` (+ `preview*` live-drag variants), `setCrispText`, `setPhosphorPreference`, `setTabOrder`
|
|
302
303
|
- Notifications + raw send: `pushNotification`, `dismissNotification`, `setWsSendRaw`
|
|
303
304
|
- Help / views: `setHelpMode`, `setActiveHelpPopover`, `setActiveHelpCard`, `setActiveDocRef`, `setShowSettings` / `setShowGithub` / `setShowManual` / `setShowRecall`, `setFocusMode`, `setMediaStudio`
|
|
@@ -309,12 +310,13 @@ Actions are split into thematic groups inside `appStore.ts`:
|
|
|
309
310
|
The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stores/persistence.ts`): it holds the partialized state *object* and stringifies exactly once at flush (1 Hz max, `PERSIST_DEBOUNCE_MS`), plus a synchronous flush on `visibilitychange->hidden` / `pagehide`. Why: the stock `createJSONStorage` stringified the whole multi-MB `jobs` slice on **every** `set`; a cluster-snapshot restore compounded that into a minutes-long freeze that let the server's zombie-socket heartbeat kill the client mid-replay (2026-06-12).
|
|
310
311
|
|
|
311
312
|
**Persisted via the Zustand `partialize`:**
|
|
312
|
-
- `jobs` - **incognito jobs filtered out entirely**; the rest slimmed per-tab: identity, config, last 200 messages, totals, `lastSeq`, last 40 reviews / research / handoffs, `taskChildren`, `parentWorkflowId`, `promoted`, last 500 `historyEvents`. Workers are stripped entirely (the server resends them on rehydrate and the payload stays bounded).
|
|
313
|
+
- `jobs` - **incognito jobs filtered out entirely**; the rest slimmed per-tab: identity, config, last 200 messages, totals, `lastSeq`, last 40 reviews / research / handoffs, `resolvedPrimaryModel`, `taskChildren`, `parentWorkflowId`, `promoted`, `taskView`, `taskTodos`, last 500 `historyEvents`. Workers are stripped entirely (the server resends them on rehydrate and the payload stays bounded).
|
|
313
314
|
- `activeJobId` (nulled when it points at an incognito job), `activeClusterId`
|
|
314
315
|
- `clusters` - restores the cluster tab's `[N]` badge before WS reconnect; overwritten by the authoritative `cluster_state` push on subscribe.
|
|
315
316
|
- `clusterGridSplit`, `clusterCardLayout`
|
|
316
317
|
- `clusterFocusedMember` - the member in view per cluster, saved only while that member is in the saved cluster and dropped again on load when it is not; `setClusterState` falls back to the director when the member has left.
|
|
317
318
|
- `showCreator` (forced true when the active tab is incognito, so a reload lands on the creator)
|
|
319
|
+
- `showHome` (when nothing was saved, Home shows if there is no active tab or cluster)
|
|
318
320
|
|
|
319
321
|
**Persisted directly to localStorage (outside the Zustand store):**
|
|
320
322
|
- `themeId` (cached for the synchronous pre-mount bootstrap) and `arco_font_pack_override`
|
|
@@ -352,7 +354,7 @@ These caps prevent a large worker response from exhausting browser memory. The s
|
|
|
352
354
|
|
|
353
355
|
## WebSocket hook
|
|
354
356
|
|
|
355
|
-
`client/src/hooks/useWebSocket.ts` - ~1500 lines (connection lifecycle + the outbound action helpers); the inbound dispatch lives in `client/src/ws/handleServerMessage.ts` (~
|
|
357
|
+
`client/src/hooks/useWebSocket.ts` - ~1500 lines (connection lifecycle + the outbound action helpers); the inbound dispatch lives in `client/src/ws/handleServerMessage.ts` (~2600 lines).
|
|
356
358
|
|
|
357
359
|
### Connection lifecycle
|
|
358
360
|
|
|
@@ -369,7 +371,7 @@ Rehydration is **not** sent from `onopen` - it waits for the server's `connected
|
|
|
369
371
|
|
|
370
372
|
### `onmessage`
|
|
371
373
|
|
|
372
|
-
Parses JSON, advances `lastSeq` via `Math.max` (robust to out-of-order delivery during replay), then delegates to **`client/src/ws/handleServerMessage.ts`** - the per-message dispatch was extracted out of the inline `ws.onmessage` body (a sibling `ws/` module dir holds it alongside `streamState.ts`). That switch handles
|
|
374
|
+
Parses JSON, advances `lastSeq` via `Math.max` (robust to out-of-order delivery during replay), then delegates to **`client/src/ws/handleServerMessage.ts`** - the per-message dispatch was extracted out of the inline `ws.onmessage` body (a sibling `ws/` module dir holds it alongside `streamState.ts`). That switch handles about 180 server message cases, each routing to one or more store actions. See [`PROTOCOL.md`](PROTOCOL.md) for the full message list.
|
|
373
375
|
|
|
374
376
|
Module-level streaming state (`streamingMsgs: Map<workflowId, StreamRef>`, in `ws/streamState.ts`) tracks the in-flight streaming message ID per phase. Survives React re-renders within a tab. Pruned via Zustand subscribe when a workflow is removed from the store, and cleared on `onclose`, so long-lived sessions don't leak entries.
|
|
375
377
|
|
|
@@ -387,7 +389,7 @@ Top-level structure rooted at `App.tsx`. `FirstRun` can replace the workspace du
|
|
|
387
389
|
|
|
388
390
|
```text
|
|
389
391
|
App
|
|
390
|
-
├── SystemHeader (title, Providers popover, provider-throttling warning,
|
|
392
|
+
├── SystemHeader (title, Providers popover, provider-throttling warning, grouped action rows, UsageBar provider letters)
|
|
391
393
|
├── TabBar (job tabs + cluster tabs; "+" for new; two-row layout when a cluster is active)
|
|
392
394
|
├── GitHubPanel | HomeView | ClusterTab | WorkflowCreator | ChatModeView | WorkflowView (inside an ErrorBoundary)
|
|
393
395
|
│ └── WorkflowView (agent workflow tab)
|
|
@@ -489,8 +491,8 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
|
|
|
489
491
|
removes Cursor and llama.cpp while strict incognito is armed because neither
|
|
490
492
|
can meet its no-local-log contract.
|
|
491
493
|
|
|
492
|
-
- **`SystemHeader`** (I1 - information architecture) - a single Row 1, left to right: the ARCO wordmark, the layout switch (`header.layout`; cycles Automatic, Standard, Compact, Narrow through `setLayoutMode`), `HubLinkChip`, `WorkflowStatusChip` (provider throttling), the provider dots (`UsageBar`, remote provider letters plus one LOCAL indicator; hover/focus for usage; remote dots link to usage pages;
|
|
493
|
-
- **Provider letters** - one letter per provider wherever a provider is marked: `A` Claude (Anthropic), `C` Codex, `X` Cursor, `O` Ollama, `L` llama.cpp. Remote letters appear in `UsageBar`; LOCAL groups local runtimes without changing individual provider letters. Letters also appear in `WorkerCard` badges (shown for providers other than Claude) and the `TerminalSessions` list. Hover titles and aria labels name the provider in full (`Claude usage page`, `Codex status details`).
|
|
494
|
+
- **`SystemHeader`** (I1 - information architecture) - a single Row 1, left to right: the ARCO wordmark, the layout switch (`header.layout`; cycles Automatic, Standard, Compact, Narrow through `setLayoutMode`), `HubLinkChip`, `WorkflowStatusChip` (provider throttling), the provider dots (`UsageBar`, remote provider letters plus one LOCAL indicator; hover/focus for usage; remote dots link to usage pages; an enabled provider that is not ready keeps its letter, says what it needs (`providerIndicator`) and opens its Connections entry; the adjacent VERSIONS button opens `ProvidersPopover`, which shares the `providerShown` rule), then two `HeaderDropdown` menus separated by `GroupDivider` rules: **KNOWLEDGE** (RECALL, PLANS, ARTIFACTS - the last two call `openArchive`, a same-browser popup falling back to `POST /api/explorer/open` for the standalone explorer window) and **TOOLS** (TERMINAL, GITHUB, MEDIA). After them come `VoiceMenu`, the connection light (with RECONNECT/RESTART when offline), `NotificationCenter` (BELL), `◳ FOCUS`, `HelpMenu`, `⚙ SETTINGS`, `HeaderVersionBox` and `⏻` power (`SystemModal`). The header groups wrap as soon as their controls need more room, independently of the layout mode. **Focus mode:** `◳ FOCUS` flips `appStore.focusMode`; when armed the provider dots, both menus, HELP and SETTINGS are hidden, while the wordmark, layout switch, VERSIONS button, throttling chip, VOICE, connection light, BELL, `◳ EXIT FOCUS`, the version box and power stay. Also reachable from the command palette (`Enter/Exit focus mode`). Reversible + persisted (`arco.focusMode`). Diagnostics and Model Health reject failed or invalid reads and keep the refresh control available for retry.
|
|
495
|
+
- **Provider letters** - one letter per provider wherever a provider is marked: `A` Claude (Anthropic), `C` Codex, `X` Cursor, `G` Antigravity CLI, `O` Ollama, `L` llama.cpp. Remote letters appear in `UsageBar`; LOCAL groups local runtimes without changing individual provider letters. Letters also appear in `WorkerCard` badges (shown for providers other than Claude) and the `TerminalSessions` list. Hover titles and aria labels name the provider in full (`Claude usage page`, `Codex status details`).
|
|
494
496
|
- **LOCAL status** - one dot groups enabled Ollama, llama.cpp, Strata and Xolotl; LM Studio is excluded. Strata and Xolotl appear only with an installed-version signal, and llama.cpp requires its binary. Ollama retains unload times and daemon-start guidance. Hover, keyboard focus or tap lists each runtime. Confirmed faults are red and take precedence; otherwise a loaded model is green, unknown state is neutral, and ready/idle or deliberately stopped programs use a hollow dot. Managed inactive services and idle llama.cpp say `stopped - starts on demand`. Registered catalog entries do not prove a model is loaded. Escape/outside clicks close the card. VERSIONS suppresses it and exposes the same LOCAL STATUS list, including in focus mode and Settings. Metadata reads never start, stop, load, unload or reconfigure a runtime.
|
|
495
497
|
- **`ProvidersPopover`** - folds the former inline per-provider version-chip strip behind one `VERSIONS` trigger (also in Settings > CLI VERSIONS) (click-outside to close). The trigger carries a health dot (warning-color when any provider is outdated); the popover lists the chips. Chips are gated on `settings.enabledProviders` (disabled providers don't show) and un-installed CLIs, include an Ollama/llama.cpp row when reachable, and paint warning-color when the installed version is older than `capabilities.latestVersions.<p>`. Click on Claude/Codex runs the upstream installer via `POST /api/check-updates`; Ollama, Strata and Xolotl open `ProviderReleasesModal`, which receives keyboard focus on entry so Escape dismisses it. Closing returns focus to the opening chip when it remains mounted; closing VERSIONS returns focus to its button. llama.cpp opens GitHub releases. Strata remains visible while stopped using the prepared engine's `BUILD.json`; update comparison uses engine package metadata, separately from the 0.2 app/Terminal release tag. Xolotl displays checkout HEAD as a single-line `XOLOTL` row. Its modal uses recent commits when upstream has no tagged releases, displays matching HEADs as UP TO DATE without a self-comparison request, and compares distinct revisions for source changes. External GitHub links are explicit; these three rows never open a browser or install an update themselves. LOCAL STATUS labels follow the selected theme foreground while runtime state colors retain their meaning. The viewport-clamped panel is portaled below the entire wrapped header; it suppresses dot hover cards, closes on Escape/outside click, and returns focus. llama.cpp displays both semantic version and build/commit identities, using build numbers whenever latest build metadata is available; semantic versions are never substituted for missing builds. Self-contained - owns the update-check + modal state that used to live in `SystemHeader`.
|
|
496
498
|
- **`WorkflowStatusChip`** - a provider-throttling warning shown only when quota state reports a throttle. Click for affected providers, known reset times, a per-provider Clear control and Codex/Claude Recheck usage. A row stays while its recheck is pending; a recheck that shows headroom clears the notice, keeping its row and result for four seconds; exhausted or unavailable usage leaves it. Focus moves back to the chip or layout control only when it was inside the panel and its control disappeared, never while the user is typing elsewhere. Clear restores future eligibility without re-arming a stopped goal run. Known resets expire without a page refresh; a one-second client tick hides expired rows after two seconds of clock grace. Context usage remains in the worker header.
|
|
@@ -502,16 +504,16 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
|
|
|
502
504
|
- **`ToolCallPill`** - compact tool-call row. Tool-result filtering adds an inline `FilteredChip` ([filtered: 12.3 KB -> 1.4 KB, sample output]) when the `tool_filtered` WS event reports a non-zero byte delta for the matching `toolUseId`. Click on the chip copies the workspace-relative `rawArtifactPath` (`.arco/workflows/<wfId>/artifacts/raw-tools/<turnId>-<toolUseId>.txt.gz`) to the clipboard so the operator can `zcat` the pre-filter raw bytes - recovery preserves the cache and reversibility boundary. The connector lives in `ChatMessage.tsx` (`ToolCallPillWithFilter`) which subscribes to `appStore.jobs[jobId].toolFiltered[toolUseId]` with a narrow selector so unrelated filter events don't re-render the row.
|
|
503
505
|
- **`TerminalInput`** - the composer. Auto-grows up to 240 px. Auto-focus on idle / busy transition. The `b·w·s` diagnostic chip and the CANCEL button surface when `isBusy`.
|
|
504
506
|
- **`RightPanel`** (`components/RightPanel/index.tsx`) - **two-level grouped** tab strip + content area. The 16 tabs (files, genesis, activity, review, research, handoffs, plan, bakeoff, knowledge, tasks, ledger, history, usage, preview, config, github) are grouped by purpose into four families - **WORKSPACE** (files, genesis) · **AGENT** (activity, review, research, handoffs, plan, bakeoff, tasks) · **MEMORY** (knowledge, ledger, history, usage) · **RUNTIME** (preview, config, github) - declared in the `GROUPS` const. Level 1 is the group selector; level 2 is the active group's tabs. The **active group is derived** from the active tab (`groupOf`), so no separate group state is persisted; clicking a group lands on its first visible tab. On a **narrow split** (`< 360px`, measured by a `ResizeObserver` on the panel root) level 2 collapses to a single grouped `<select>` with one `<optgroup>` per family - every tab stays reachable without a 3-row wrap. Tab selection is **per-workflow**, persisted to `localStorage['arco.sidePanelTab.byWorkflow']` as a `Record<workflowId, RightTab>` map - switching workflows respects each workflow's last tab (and thus its group); fresh workflows default to `'files'`. The CONFIG **`cliChanges`** red dot shows on CONFIG's level-2 tab AND on the RUNTIME **group header** when CONFIG isn't the active group (in the narrow `<select>`, a `●` is appended to the CONFIG option), so the "CLI changes" signal never hides behind a collapsed group. Group help: dynamic `rightpanel.group.{workspace,agent,memory,runtime}`. Auto-switches to PREVIEW once per `freshlyBound` signal: `previewUnread` flips true on `preview_set` only when `freshlyBound: true && !manual && wasPort !== isPort`, and a `useEffect` watching `job.previewUnread` flips that workflow's tab and calls `markPreviewSeen` to clear the flag - so the auto-flip fires once per real bind, not on every hydration replay or stale port re-broadcast, and never bleeds across workflows.
|
|
505
|
-
- **`ConfigTab`** - model/effort and per-provider runtime controls. Transport rows are provider-specific: Claude `cli`/`native` and Codex `exec`/`appserver`. Codex also shows a per-tab MAX/STANDARD context-window row backed by the selected account's live model catalog; MAX is the default. For **Cursor**, the MODEL row renders `CursorModelSelect` (family×effort×flags -> exact catalog id) and the EFFORT row shows `(set via the model picker above)`. Additional sections: `NorthStarSection` (NORTH STAR), `ClaudeNativeThinkingDisplaySection` (THINKING VISIBILITY - omitted/summarized/updates; `updates` requests progress notes on Fable 5 / 5.1 / 5.2 and Mythos 5.1 / 5.2, and degrades to omitted elsewhere), `ClaudeNativeWebBudgetSection` (WEB LOOKUPS/TURN), and the sticky ULTRACODE ON/OFF toggle inside `ClaudeTransportSection`. `OutputStyleSection` (
|
|
507
|
+
- **`ConfigTab`** - model/effort and per-provider runtime controls. Transport rows are provider-specific: Claude `cli`/`native` and Codex `exec`/`appserver`. Codex also shows a per-tab MAX/STANDARD context-window row backed by the selected account's live model catalog; MAX is the default. For **Cursor**, the MODEL row renders `CursorModelSelect` (family×effort×flags -> exact catalog id) and the EFFORT row shows `(set via the model picker above)`. Additional sections: `NorthStarSection` (NORTH STAR), `ClaudeNativeThinkingDisplaySection` (THINKING VISIBILITY - omitted/summarized/updates; `updates` requests progress notes on Fable 5 / 5.1 / 5.2 and Mythos 5.1 / 5.2, and degrades to omitted elsewhere), `ClaudeNativeWebBudgetSection` (WEB LOOKUPS/TURN), and the sticky ULTRACODE ON/OFF toggle inside `ClaudeTransportSection`. `OutputStyleSection` (not shown for Antigravity CLI) sets `outputStyle` with NORMAL / PLAIN / TERSE buttons; an unset value shows PLAIN (`resolveOutputStyle`), and the hint text is `OUTPUT_STYLE_HINT` (`utils/outputStyleText.ts`), shared with the creator. A REVIEW-SAFE-MODE toggle (`ClaudeNativeReviewSafeModeSection`, Native-only) flips `WorkflowConfig.reviewSafeMode` (default `off`) - when on, sensitive Native tool calls park behind the DEBAG HITL gate - and renders the operator's standing "approve all like this" approvals (`job.standingGateApprovals`) with a per-row REVOKE (`gate_revoke`). An **auto-fold** block under `AutoHandoffSection` (`data-help="rightpanel.config.auto-fold"`) sets `WorkflowConfig.autoFold` `{ enabled, foldAt, tailBudget }` through `update_primary_config` - Native-only deterministic in-place transcript trim that fires when the budget meter crosses **FOLD AT**; a Fold is not counted toward auto-handoff; default OFF. Auto-handoff itself is after N compactions (`afterCompactions`), not a context percentage.
|
|
506
508
|
- **`PreviewTab`** - iframe rendering of the workflow's dev server, fed by a separate listener obtained from `POST /api/preview/lease/<workflowId>`. Each mounted view holds and renews its own lease, releases it on close, and ignores late acquisition results after a member switch. The address appears in the panel; remote access forwards the preview range. PORT input + BIND/UNBIND/RELOAD/OPEN button row + 4:3/16:10/16:9 aspect-ratio segmented control (persists to localStorage `arco.preview.aspect` - global across workflows). A "RECENT" pill row below the controls surfaces this workflow's history of bound ports (most-recent-first, capped at 5; fed by `preview_history` WS message; persisted under `meta.previewHistory`). Click a pill to rebind: the client first hits `GET /api/preview/probe?port=N`; if alive, behaves like a manual BIND; if dead, opens a modal that lists currently-listening services on the box (via `GET /api/preview/listening`, Linux-only; macOS shows empty list with the same explanatory copy) so the operator can pick one to bind to. The listing excludes Arco's own server PID; workflow-spawned dev servers still appear. Iframe is given a fixed logical viewport - width 1920, height per chosen aspect (1440 / 1200 / 1080) - and CSS-scaled (`transform: scale(...)`, computed via `ResizeObserver` on the wrapper) to the largest box-of-that-ratio that fits the pane, then centered both axes. Width-constrained when the pane is wider than tall, height-constrained when taller, never clipped in either axis. The `useLayoutEffect` that drives the scaling depends on `[logicalH, src]` - `src` is in the deps so the effect re-fires when the wrapper div mounts on first BIND (object refs don't notify effects on attach; without that dep `boxStyle` stays null and the iframe never renders until something else remounts the component). `iframeReactKey` includes `preview.port` so a rebind to a different port forces a remount (the proxy URL doesn't encode the port). Sandbox `allow-same-origin allow-scripts allow-forms allow-popups allow-modals`; `allow-top-navigation` is intentionally omitted so a misbehaving page can't hijack the Arco shell.
|
|
507
|
-
- **`WorkflowCreator`** - new-tab / Resume picker. Lists Claude/Codex native sessions per cwd via `GET /api/sessions?path=<cwd>`. Claimed sessions show `★` and reuse the workflowId; unclaimed get a fresh wfid pinned to the native session UUID. The top-of-form MODE toggle switches between SINGLE (one primary agent), CLUSTER (N members), and **GENESIS** (idea -> scaffold, no folder yet - Creative-mode integration). CLUSTER mode shows the **`ClusterPresetsRow`** (labelled SAVED CLUSTER PRESETS); SINGLE mode shows the **`TemplatePickerRow`** (SAVED TEMPLATES, Workbench "recipes"). Both are PRESETS-style pill rows placed after the required steps, just before SAVE AS DEFAULTS and launch. Controls appear only in the modes whose create payload carries them: Ultracode, CONVERSATION (resume) and ADVANCED OPTIONS are single-workflow only (ADVANCED for Claude and Codex, its fallback model for Claude only); chat hides Claude fast mode and the tool-result filter. In CLUSTER mode the order is shared project folder, `ClusterTemplatePicker` (START FROM A TEMPLATE: built-in Pair, Small team, Research, Medium team, Full team, Parallel build and Large team from `clusterTemplates.ts`, plus Build my own; a review lists each member's role, recommended model, effort and reason in words, plus an editable work-size choice for repeated roles (Research unset, two builders recommended Heavy and Standard), asks for provider and model from `availableMemberProviders` with no automatic model choice, pre-fills effort through `capDefaultEffort`, and replaces the members only on USE THESE MEMBERS), `ClusterMembersSection`, a collapsed DEFAULTS FOR NEW MEMBERS frame (`creator-member-defaults`, wrapping the AGENT and tuning bands; it seeds only `+ ADD MEMBER` and says existing members do not change), a collapsed COORDINATION SETTINGS frame (efficiency, message guard, task board, Keep current, note, with a one-line summary when collapsed), then saved presets, existing clusters and snapshots. `ClusterMembersSection` rows read in words (`Role not set`, `<effort> effort`, and work size only when selected); its provider buttons list only enabled, connected member providers (`memberProviders.ts`), keep a saved but unavailable provider visible as `(NOT CONNECTED)`, link to Connections, and show the shared AUTO/SAFE note (`permissionNotes.ts`) and a per-member tuning heading. The PRIMARY AGENT picker uses the same rule (`primaryProviderOptions` in `memberProviders.ts`): enabled, connected providers plus the current one marked `(not connected)`; with no saved default the creator moves to `firstAvailablePrimaryProvider` once Settings and auth status arrive, and `primaryProviderProblem` disables single, chat and Genesis launch with a reason and an Open Connections link. Repeated role names use `numberedName` (`Builder #2`) in both the template review and `deriveDisplayNames`. GENESIS mode hides the working-directory cell + tree and shows a SPARK textarea instead; it launches a cwd-less workflow with `config.genesisSeed` set (title + spark), gated on those two fields rather than a cwd. The rest of the seed is filled in the **`GenesisTab`** (right panel, see below). **Layout (I5, banded):** the centered heading is the selected cwd's folder name (`headingText`, I4) over a `NEW WORKFLOW`/`NEW CLUSTER` subtitle; below the MODE toggle the form is three bordered band cards - **WHERE & SESSION** (dir input + name as a balanced top row; the BROWSE tree and CONVERSATION picker span both columns), **AGENT** (a symmetric 2×2 of provider | model dropdowns over effort | permissions), and **AGENT TUNING** (Claude: fast / tool-result-filter / output-style;
|
|
509
|
+
- **`WorkflowCreator`** - new-tab / Resume picker. Lists Claude/Codex native sessions per cwd via `GET /api/sessions?path=<cwd>`. Claimed sessions show `★` and reuse the workflowId; unclaimed get a fresh wfid pinned to the native session UUID. The top-of-form MODE toggle switches between SINGLE (one primary agent), CLUSTER (N members), and **GENESIS** (idea -> scaffold, no folder yet - Creative-mode integration). CLUSTER mode shows the **`ClusterPresetsRow`** (labelled SAVED CLUSTER PRESETS); SINGLE mode shows the **`TemplatePickerRow`** (SAVED TEMPLATES, Workbench "recipes"). Both are PRESETS-style pill rows placed after the required steps, just before SAVE AS DEFAULTS and launch. Controls appear only in the modes whose create payload carries them: Ultracode, CONVERSATION (resume) and ADVANCED OPTIONS are single-workflow only (ADVANCED for Claude and Codex, its fallback model for Claude only); chat hides Claude fast mode and the tool-result filter. In CLUSTER mode the order is shared project folder, `ClusterTemplatePicker` (START FROM A TEMPLATE: built-in Pair, Small team, Research, Medium team, Full team, Parallel build and Large team from `clusterTemplates.ts`, plus Build my own; a review lists each member's role, recommended model, effort and reason in words, plus an editable work-size choice for repeated roles (Research unset, two builders recommended Heavy and Standard), asks for provider and model from `availableMemberProviders` with no automatic model choice, pre-fills effort through `capDefaultEffort`, and replaces the members only on USE THESE MEMBERS), `ClusterMembersSection`, a collapsed DEFAULTS FOR NEW MEMBERS frame (`creator-member-defaults`, wrapping the AGENT and tuning bands; it seeds only `+ ADD MEMBER` and says existing members do not change), a collapsed COORDINATION SETTINGS frame (efficiency, message guard, task board, Keep current, note, with a one-line summary when collapsed), then saved presets, existing clusters and snapshots. `ClusterMembersSection` rows read in words (`Role not set`, `<effort> effort`, and work size only when selected); its provider buttons list only enabled, connected member providers (`memberProviders.ts`), keep a saved but unavailable provider visible as `(NOT CONNECTED)`, link to Connections, and show the shared AUTO/SAFE note (`permissionNotes.ts`) and a per-member tuning heading. The PRIMARY AGENT picker uses the same rule (`primaryProviderOptions` in `memberProviders.ts`): enabled, connected providers plus the current one marked `(not connected)`; with no saved default the creator moves to `firstAvailablePrimaryProvider` once Settings and auth status arrive, and `primaryProviderProblem` disables single, chat and Genesis launch with a reason and an Open Connections link. Repeated role names use `numberedName` (`Builder #2`) in both the template review and `deriveDisplayNames`. GENESIS mode hides the working-directory cell + tree and shows a SPARK textarea instead; it launches a cwd-less workflow with `config.genesisSeed` set (title + spark), gated on those two fields rather than a cwd. The rest of the seed is filled in the **`GenesisTab`** (right panel, see below). **Layout (I5, banded):** the centered heading is the selected cwd's folder name (`headingText`, I4) over a `NEW WORKFLOW`/`NEW CLUSTER` subtitle; below the MODE toggle the form is three bordered band cards - **WHERE & SESSION** (dir input + name as a balanced top row; the BROWSE tree and CONVERSATION picker span both columns), **AGENT** (a symmetric 2×2 of provider | model dropdowns over effort | permissions), and **AGENT TUNING** (Claude: fast / tool-result-filter / output-style; other providers: output-style only; Antigravity CLI omits it). ADVANCED OPTIONS is a standalone full-width collapsible below the bands. Band titles use `glow-text-bright` + a divider to outrank the 11px field labels; each band's inner grid is `1fr 1fr` at ≥1200px, single-column below.
|
|
508
510
|
- **`TemplatePickerRow`** - the single-tab analogue of cluster presets, backed by `useTemplates` (CRUD over `GET/POST/DELETE /api/templates` -> `~/.arco/templates.json`). Pills apply a saved `WorkflowConfig` snapshot (provider/model/effort/permissions + native knobs + **optional** cwd); `+ SAVE AS TEMPLATE` POSTs the current creator config. **Apply pre-fills, never auto-sends:** cwd pre-fills only for project-pinned recipes; portable templates leave it unset; an optional `seedPrompt`/`plan` is stashed in `pendingTemplateApply` and threaded onto the new tab via a one-shot `WorkflowConfig.templateSpawnToken`. The `workflow_created` handler drains it - seeding the composer draft (`setDraft`) and POSTing the plan to `/api/plans` (`attach:true`) - so neither is auto-sent. The operator initiates either action. Model is applied as-is and validated against the live catalog at apply time (survives renames). The save row in the creator captures config + cwd only; seedPrompt/plan are supported on apply for templates authored elsewhere.
|
|
509
511
|
- **`SettingsPanel`** - global settings modal. Collapsible theme picker (default closed; header reads `▶ THEME - <active name>`) with hover-preview pills, per-provider login chips, enabled-providers toggles (both now include `cursor` - a `CURSOR (ACP)` `ProviderRow` whose login chip runs `startLogin('cursor')`), model catalog edit, CLI VERSIONS block (Claude/Codex CLIs + Ollama daemon). The **SKILLS** section is `SkillsSettings` (IMPORT, UPDATE, TURN OFF/ON, MOVE, DUPLICATE, SHARE WITH REPOSITORY; see below). Project skill operations need an active tab's cwd; with no tab open, new skills default to global.
|
|
510
512
|
- **Cursor (ACP) UI** - Cursor is a first-class provider (`ProviderName` includes `'cursor'`). Because Cursor bakes reasoning effort into the model id, its picker is `CursorModelSelect.tsx` (family × effort × fast/think chips; never concatenates an id - parses the current id, moves coordinates, then looks up the exact catalog id via `resolveCursorModelId`, degrading via `pickCursorId`). Usage is dashboard-polled, not live (ACP has no per-turn tokens): `UsageTab`'s `CursorUsageCard` + `CursorIncludedGauge` ("Included in Pro" bar driven by Cursor's blended `totalPercentUsed`, **not** used/limit). The compact X-dot hover also renders Cursor's separate **Other Models** bar from `apiPercentUsed`; it does not derive that quota from event totals. `WorkerCard` badge is **X** / `#6cc6d6` / "Cursor (ACP · ~153 models)"; `PrimaryStatus` parses effort **out of the id** (never `config.primaryEffort`). `App.tsx` polls `/api/cursor/catalog` (30-min) -> `setCursorCatalog` and `/api/cursor-usage` (`USAGE_POLL_MS`) -> `setCursorUsage`. Version chip is display-only in `ProvidersPopover` (self-updating; click -> cursor.com/changelog; never flagged outdated).
|
|
511
513
|
- **`SystemHeader`** owns the bonus `SystemModal` for global ops. Tabs: **Actions** (restart/shutdown), **Diagnostics** (`DiagnosticsTab` - Ops-A4 status checks), **Models** (`ModelHealthPanel` -; per-backend health rows. When llama.cpp fails to serve, a DD13 `DiagnosisBox` (`data-help="model-health.llamacpp-diagnosis"`) surfaces the likely cause plus one-click set-ctx-size / set-ngl / add-extra-arg fixes (`model-health.llamacpp-fix`) that wholesale-replace the catalog via `GET`/`POST /api/llamacpp/catalog` and reload the alias), **Services** (`ServicesTab` - Ops; **machine-wide** local web/dev service browser: compact rows, open/copy/kill/pin, ~5s auto-poll). Services lives here, not the per-workflow right panel, because it's project-agnostic (the same list regardless of focused workflow). Diagnostics and Model Health reject failed or invalid reads and keep the refresh control available for retry.
|
|
512
514
|
- **`UserManual`** - comprehensive operator-facing manual, opened from the header `MANUAL` button. Two-column layout (left TOC with grouped sections + live search; right scrolling content). Listens for `arco:manual-jump` window events so the contextual help popover's "READ MORE IN MANUAL ->" button can deep-link to a section.
|
|
513
515
|
- **`RecallView`** (Workbench, `components/Recall/`) - the **top-level Recall search overlay**: a portal modal (like `UserManual`, Escape / backdrop to dismiss) over `GET /api/recall/search`, gated on `appStore.showRecall`. Search box + project/provider/date filters + a transcript-full-text toggle (default OFF, disabled when `rg` is absent), and a ranked result list (`RecallResultRow`) with highlighted FTS5 snippets. Search state (hits + filters + `runSearch`) lives in the standalone `recallStore` (not `appStore`), debounced 180ms on filter change. **Entry points:** the command-palette command "Recall: search conversations" and **RECALL** in the header KNOWLEDGE menu. **Not** a per-tab RightPanel sub-tab - it spans every conversation Arco has run. Result actions: Jump-to-transcript/Resume (switches to the tab if it's open) is live; Open-summary is a graceful "no summary yet" stub until F2; Reference-in-current-tab is a disabled stub deferred to D1. See `docs/RECALL.md`.
|
|
514
|
-
- **Help system** - contextual help mode. State lives in `appStore` (`helpMode`, `activeHelpPopover`, `activeDocRef`). `useHelpMode` (in `client/src/help/useHelpMode.ts`) installs the body-class toggle, the capture-phase click handler that intercepts `[data-help]` clicks while help mode is on, and the Escape exit. Help-system widgets carry the `help-system-ui` class so the body-level `pointer-events: none` rule (in `styles/contextual-help.css`) doesn't disable them. Per-element content keys live in the `HELP_CONTENT` registry (`client/src/help/content/`, re-exported from `helpContent.tsx`);
|
|
516
|
+
- **Help system** - contextual help mode. State lives in `appStore` (`helpMode`, `activeHelpPopover`, `activeDocRef`). `useHelpMode` (in `client/src/help/useHelpMode.ts`) installs the body-class toggle, the capture-phase click handler that intercepts `[data-help]` clicks while help mode is on, and the Escape exit. Help-system widgets carry the `help-system-ui` class so the body-level `pointer-events: none` rule (in `styles/contextual-help.css`) doesn't disable them. Per-element content keys live in the `HELP_CONTENT` registry (`client/src/help/content/`, re-exported from `helpContent.tsx`); about 730 distinct static keys are used in `data-help="<key>"` attributes (about 990 usages - many added in the 2026-06 refactor: `composer.fold` / `composer.posture` / `composer.project-trust`, `cluster.board-add-task` / `cluster.board-columns` / `cluster.board-automation-toggle` / `cluster.task-edit`, `model-health.llamacpp-diagnosis` / `-fix`, `rightpanel.config.auto-fold`, ...). `npm run docs:check` keeps the registry, the `data-help` usages, and the manual `manualSection` links in sync - see "Help-system doc-sync checker" below.
|
|
515
517
|
- **`DocRef`** - clickable in-app file-path chip used by the manual + help popovers. On click, sets `activeDocRef` so `DocViewer` opens. Replace-in-place semantics: clicking another `DocRef` from inside `DocViewer` swaps content, no nested stack.
|
|
516
518
|
- **`DocViewer`** - modal stacked above the manual (z=9520) that reads from `GET /api/docs?file=<repo-relative path>` and renders markdown via the same ReactMarkdown + rehype-highlight pipeline as `FileViewerModal`. Source files (`.ts`/`.tsx`/`.js`/`.json`/etc.) are wrapped in a fenced code block so syntax highlighting reuses the existing pipeline.
|
|
517
519
|
- **`HandoffPromptsEditor`** - mounted inside `SettingsPanel`. Two cards (FRESH-SUMMARIZER / ORIGINAL-WORKER) showing the effective handoff seed prompt with project / global / default scope pills (`ScopePill`). Click a scope to override at that level; commit via `POST /api/handoff-prompts`. Active cwd is read from `useAppStore.getActiveJob.config.workingDirectory`.
|
|
@@ -568,7 +570,7 @@ Consumer today: **`MediaModalHost.tsx`** (`section="media-studio"`, in the heade
|
|
|
568
570
|
|
|
569
571
|
## Chat rendering pipeline
|
|
570
572
|
|
|
571
|
-
Ordinary application JSON stays visible when it uses keys such as workers, stateMutations or qualityVerdicts. Only validated legacy envelopes are collapsed. Complete and streaming `arco-artifact` fences use artifact placeholders. Windows drive and UNC filenames can be opened from chat references.
|
|
573
|
+
Ordinary application JSON stays visible when it uses keys such as workers, stateMutations or qualityVerdicts. Only validated legacy envelopes are collapsed. Complete and streaming `arco-artifact` fences use artifact placeholders. Windows drive and UNC filenames can be opened from chat references. When a bare filename is missing from the conversation and its own artifacts, a cluster conversation also searches the artifact folders of its members. The viewer names the owner, offers a choice for multiple matches, or lists the folders searched.
|
|
572
574
|
|
|
573
575
|
`ChatPanel.tsx`'s `displayMessages` memoization is the linchpin. It runs only when `job.sessionChat` or `job.messages` change - the composer auto-grow on keystrokes does NOT invalidate this memo, so the virtualizer doesn't recalc and the chat doesn't jitter.
|
|
574
576
|
|
|
@@ -682,7 +684,7 @@ Capture acknowledgement uses the bundled quiet 230 ms Soft double pulse from
|
|
|
682
684
|
`/api/voice/ready-sound`, with unity gain and no normalization. It plays only
|
|
683
685
|
after verified wake, independently of speech output, without blocking capture.
|
|
684
686
|
|
|
685
|
-
`VoiceOutputPicker` in the expanded controls offers the
|
|
687
|
+
`VoiceOutputPicker` in the expanded controls offers the 24 shared
|
|
686
688
|
`VOICE_OUTPUT_OPTIONS` plus the configured server default. `voice/store.ts`
|
|
687
689
|
saves only `outputVoice` under `arco.voice.output.v1`; it never persists
|
|
688
690
|
arming or capture state. `runtime.speak` freezes a voice for all sentences of
|
|
@@ -741,7 +743,7 @@ While a turn is busy, `TURN` at the right of the NORTH STAR row shows elapsed tu
|
|
|
741
743
|
|
|
742
744
|
### PLAN FIRST (Claude Native only)
|
|
743
745
|
|
|
744
|
-
`PLAN FIRST (next turn)` sits beside NORTH STAR above the composer. It arms the next Native Claude turn to plan before editing and is separate from the attached project plan. It is hidden for director, coordinator, reviewer, researcher and
|
|
746
|
+
`PLAN FIRST (next turn)` sits beside NORTH STAR above the composer. It arms the next Native Claude turn to plan before editing and is separate from the attached project plan. It is hidden for director, coordinator, reviewer, researcher, documenter and advisor cluster members, for members whose role text prohibits code changes, and for other providers or transports. The local-only toggle clears after sending or leaving the tab. When armed, the placeholder reads `Type your task: plan mode armed for next turn`.
|
|
745
747
|
|
|
746
748
|
Sending while armed dispatches `enter_plan_mode_request` before the normal message. The server gates Write and Edit until the worker exits plan mode. Bash is not gated.
|
|
747
749
|
|
|
@@ -854,11 +856,11 @@ single-pass, dithered ambient renderer plus static CSS glass/raster and text
|
|
|
854
856
|
emission, gated by family. It never stacks with Classic Three.js. See
|
|
855
857
|
Lifecycle and accessibility behavior is implemented by the theme components.
|
|
856
858
|
|
|
857
|
-
**Classic:** `client/src/themes/shaders/` - 29 fragment shaders (`.frag.glsl` files imported as strings; plus a shared `util.ts` of GLSL helpers). Themes reference one via `shaderPreset: 'cherenkov'` etc. `ThemedBackgroundShader.tsx` renders the active shader to a fullscreen canvas behind the UI. Canvas opacity is `opacityForPreset(preset)` - the 0.32 default with per-preset overrides (`PRESET_OPACITY`, e.g. `matrix-rain` at 0.6). The bloom-overlay companion canvas (a second WebGL pipeline that ran the same shader through a CSS blur + screen-blend) was removed because its full-screen compositor read-back was the dominant per-frame cost, while the visual change was haze rather than identity. Per-element glow on text/borders/LEDs is pure CSS `text-shadow` / `box-shadow` and continues to work as before.
|
|
859
|
+
**Classic:** `client/src/themes/shaders/` - 29 fragment shaders (`.frag.glsl` files imported as strings; plus a shared `util.ts` of GLSL helpers). Themes reference one via `shaderPreset: 'cherenkov'` etc. `ThemedBackgroundShader.tsx` lazy-loads `ThemedBackgroundShaderImpl.tsx`, which renders the active shader to a fullscreen canvas behind the UI. Canvas opacity is `opacityForPreset(preset)` - the 0.32 default with per-preset overrides (`PRESET_OPACITY`, e.g. `matrix-rain` at 0.6). The bloom-overlay companion canvas (a second WebGL pipeline that ran the same shader through a CSS blur + screen-blend) was removed because its full-screen compositor read-back was the dominant per-frame cost, while the visual change was haze rather than identity. Per-element glow on text/borders/LEDs is pure CSS `text-shadow` / `box-shadow` and continues to work as before.
|
|
858
860
|
|
|
859
861
|
**Classic shader rule (2026-04-27):** background shaders avoid soft-glow / radial-gradient / breathing-blob layers. 8-bit alpha compositing produces visible posterization rings on smooth low-amplitude gradients against near-black. Use structural elements only - particles, streaks, grids, dots, vein lines, scanlines, hard-edged cells. Vignettes / atmospheric noise washes / orb halos were stripped from every dark-mood shader in the 2026-04-27 pass.
|
|
860
862
|
|
|
861
|
-
CSS animations are gated by data attributes set in apply: `data-anim-scan` / `data-anim-
|
|
863
|
+
CSS animations are gated by data attributes set in apply: `data-anim-scan` / `data-anim-pulse-halo` / `data-anim-flicker`. Each theme opts in.
|
|
862
864
|
|
|
863
865
|
### Theme switching
|
|
864
866
|
|
|
@@ -949,7 +951,7 @@ calls `releasePendingClusterMembers`. The flag is not kept across a reload.
|
|
|
949
951
|
|
|
950
952
|
**FILES tab - REMOTE sub-tab (Workbench Expansion I2).** `client/src/components/diff/CompareRemotePanel.tsx` sits beside the SOURCE tab and compares the cwd's current branch against its upstream. It calls `GET /api/git/compare?wfid&path` for the **↑N to push / ↓M to pull** summary with an expandable commit list each direction (plus a per-direction diffstat), and `GET /api/git/compare/diff?wfid&direction` for the per-direction patch rendered in the **same** A3 `DiffView` (interface untouched). A **FETCH** button POSTs `/api/git/fetch` (remote-tracking refs only - never merges/moves HEAD) then re-reads the comparison. Non-fatal states (no upstream, detached HEAD, in sync, non-git) each render a plain explanation. Server logic is `server/src/gitWorking.ts` (`getUpstreamComparison`, `getComparisonDiff`, `fetchRemote`) via `server/src/http/gitCompareRoutes.ts`. Read-only except the fetch; the mutating push/pull lands in I3. See `docs/GIT_WORKBENCH.md`.
|
|
951
953
|
|
|
952
|
-
**FILES tab - Blast Radius sub-tab (Codebase-memory integration).** When `job.config.codebaseMemory?.attached === true`, a `FILES | BLAST RADIUS` sub-tab nav appears at the top of the FILES body (rendered by `FilesTabBody` in `RightPanel/FilesTab.tsx`). `BlastRadiusTab` (`client/src/components/RightPanel/BlastRadiusTab.tsx`)
|
|
954
|
+
**FILES tab - Blast Radius sub-tab (Codebase-memory integration).** When `job.config.codebaseMemory?.attached === true`, a `FILES | BLAST RADIUS` sub-tab nav appears at the top of the FILES body (rendered by `FilesTabBody` in `RightPanel/FilesTab.tsx`). `BlastRadiusTab` (`client/src/components/RightPanel/BlastRadiusTab.tsx`) shows the index status. It does not display tool output: the model calls `detect_changes` through the attached MCP server, which Claude CLI and Codex Agent launches receive in their MCP configuration. Without attached memory it shows "Attach codebase memory in CONFIG to enable Blast Radius."
|
|
953
955
|
|
|
954
956
|
**CONFIG tab - `INDEXES & MEMORY` section (Codebase-memory integration).** `CodebaseMemorySection` (`client/src/components/RightPanel/CodebaseMemorySection.tsx`) is mounted at the bottom of `ConfigTab` for every provider (Claude / Codex / etc.) since the MCP is provider-agnostic. Operator toggles attach, types an index path (default = cwd), clicks "Re-index now." The Re-index button POSTs `/api/workflows/:wfId/codebase-memory/reindex` - on 503 (`binary_not_installed`) the existing top-right `NotificationToasts` surface gets a push pointing at `docs/OPERATIONS.md`. The attach toggle dispatches `attach_codebase_memory` / `detach_codebase_memory`; the server's `codebase_memory_state` push mirrors onto `job.config.codebaseMemory` via the `setCodebaseMemoryState` store action.
|
|
955
957
|
|
|
@@ -972,14 +974,15 @@ The `RightPanel` component threads an `onReview` prop into `PlanTab` so plan-sco
|
|
|
972
974
|
|
|
973
975
|
**HISTORY tab.** `HistoryTab` renders a vertical timeline of narrative events derived from the workflow's WS stream. The store builds `job.historyEvents` in `ws/handleServerMessage.ts` via `narrativeEventFromMessage` - a single helper that maps the small set of seq-stamped messages we surface (`user_message_echo`, `primary_complete`, `worker_tool_use[completed|failed]`, `task_started`, `task_status[done|error|cancelled]`, `handoff_artifact_ready`, `review_artifact_ready`, `operator_label`, `checkpoint_created` (-> `checkpoint` row), `leaf_move` (-> `fork` row, carrying `rewindTargetSeq`)) to a `HistoryEventEntry`. Dedup is by `seq` so a snapshot replay that re-emits a line we already received live doesn't double-render. `appendHistoryEvent` caps the buffer at 1000 entries; persistence keeps the last 500 across reloads (replay only resends events with `seq > clientLastSeq`, so a quiet workflow would otherwise come up with an empty timeline).
|
|
974
976
|
|
|
975
|
-
The tab itself runs
|
|
977
|
+
The tab itself runs these operator actions, and LOAD EARLIER HISTORY at the end of the list pages in older events from the server:
|
|
976
978
|
|
|
977
979
|
- **LABEL THIS** - inline composer + button. Dispatches `create_label_request` via `wsSendRaw`. Server validates (≤ 200 chars, `targetEventSeq` ≤ head) and broadcasts `operator_label`, which lands back in `historyEvents` like any other event.
|
|
978
980
|
- **REVIEW FROM HERE** - opens `ReviewDialog` with `prefilledSinceEventRef`. The locked-scope rendering shows a label like `FROM 07:39:02 - research checkpoint` (or the bare event tag when the anchor isn't a label). Dispatches `review_request` via `wsSendRaw`.
|
|
979
981
|
- **SPAWN FROM HERE** - opens the existing `SpawnDialog`; on confirm, dispatches `spawn_from_here_request` via `wsSendRaw` with `cutoffEventSeq` baked in.
|
|
982
|
+
- **PURGE CONVERSATION** - opens a confirmation, then deletes the conversation's whole stored tree through `DELETE /api/workflows/:wfid` (see [PERSISTENCE.md](PERSISTENCE.md)); shown when the tab has a working directory, and on a phone it is a `...` action.
|
|
980
983
|
- **REWIND CONVERSATION** (see [CHECKPOINTS.md](CHECKPOINTS.md)) - two-click inline confirm (`rewindConfirm` state, no modal; reversible - undo-the-undo is just another rewind). Dispatches `revert_to_point_request { targetSeq }` via `wsSendRaw`, moving the live head back to the selected point and keeping the current branch as a returnable fork. Works for Claude Native; for other providers and the Claude CLI the button stays visible, disabled, with the reason beside it (`rewindUnavailableReason`); also disabled while `job.busy`. The resulting `leaf_move` lands as a `fork`-category `HistoryEventEntry` (carrying `rewindTargetSeq`), surfaced under the new REWINDS filter preset.
|
|
981
984
|
|
|
982
|
-
The filter strip (`FILTERS`, persisted per workflow under `arco.historyFilter.byWorkflow`) presets are: ALL · TURNS ·
|
|
985
|
+
The filter strip (`FILTERS`, persisted per workflow under `arco.historyFilter.byWorkflow`) presets are: ALL · TURNS ONLY · TOOL CALLS · LABELS · HANDOFFS · REVIEWS · CHECKPOINTS (`checkpoint`) · REWINDS (`fork`).
|
|
983
986
|
|
|
984
987
|
Selection state is local to `HistoryTab`. When the selected event has a `chatMessageId` (today: `user_message_echo` via `clientMessageId` and `primary_complete` via the streamRef-captured passthrough id), `HistoryTab` calls `store.flashChatMessage(jobId, messageId)`. `ChatPanel` subscribes to the top-level `flashTarget` state, finds the matching row in `visibleRows`, calls `virtualizer.scrollToIndex(idx, { align: 'center' })`, and applies a 2 s outline to the row wrapper. Filter-strip selection persists per workflow under `arco.historyFilter.byWorkflow`.
|
|
985
988
|
|
|
@@ -1009,7 +1012,7 @@ The diagonal grip in the bottom-right corner resizes every work-surface dialog b
|
|
|
1009
1012
|
- **`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.
|
|
1010
1013
|
- **`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.
|
|
1011
1014
|
- **`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.
|
|
1012
|
-
- **`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. SAVE acknowledges the submitted text; newer edits remain visible and unsaved.
|
|
1015
|
+
- **`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. SAVE acknowledges the submitted text; newer edits remain visible and unsaved. Text and image replacements are staged before publication, so a failed replacement leaves the saved file intact.
|
|
1013
1016
|
- **`editor/AiEditAffordance.tsx`** (Workbench Expansion) - AI-collaborative document editing, mounted as an overlay inside `FileViewerModal`'s edit body (kept OUT of `FileViewerModal` per the spec's file-size note). On a non-empty editor selection (or **SELECT ALL** for a whole-doc edit), **✦ ASK AI** opens an instruction box + the **reused `RunAsPicker`**; **PROPOSE EDIT** fires `doc_edit_request` (in-tab only - the proposal must round-trip to THIS buffer). The `doc_edit_proposed` event lands in the standalone **`docEditStore`** (`stores/docEditStore.ts`, kept out of appStore like recallStore/terminalStore; `useWebSocket` registers a module-level sender so the deep-nested modal needn't thread the callback through every call site). The proposal previews as an A3 **`DiffView`** (`selectionBefore` vs `replacement`, built into a unified diff via `diff`'s `createTwoFilesPatch`). **ACCEPT** calls `CodeEditor`'s imperative `spliceSelection(from, to, replacement)` to splice into `[from,to)` of the **buffer only** - the existing **SAVE** is the one disk write, through the `resolveWithinCwd`-guarded `/api/files/write`. **REJECT** discards. The selection is surfaced by a new `CodeEditor` `onSelectionChange` prop; the splice/select-all/doc-length ops via a `forwardRef` `CodeEditorHandle`. Fence: the agent has no Write tool and never touches disk - operator approves twice (Accept into buffer, Save to disk). The editor keeps a stable request key while the server assigns its proposal id. Unsent requests and pending requests interrupted by disconnect become retryable errors.
|
|
1014
1017
|
- **`media/MediaModalHost.tsx`** (Workbench Expansion+) - the Media studio modal: the shared shell hosting the image , audio , and video editors, all of which now exist. Mounted in `App.tsx` on the `appStore.mediaStudio.open` flag (companion state `{ open, path?, mode? }` + `setMediaStudio`). Two entry points: **standalone** (**MEDIA** in the header TOOLS menu + the `Open Media studio[...]` command-palette entries -> opens empty in a mode) and **contextual** (FileExplorer right-click -> opens with an on-disk path routed to the matching mode). Both go through **`media/launchers.ts`** - `openMediaStudio(mode?)`, `openMediaFile(path)`, and `classifyMediaExt(filename)` (image/audio/video by extension). **Image mode** mounts **`media/ImageEditor`** (a React wrapper around the vendored Odysseus raster editor at `client/src/vendor/odysseus-editor/`, bridging LOAD + SAVE to guarded endpoints). **Audio mode** renders **`media/AudioEditor`** (waveform + region select; see below) with the ffmpeg-backed clip/convert ops in **`AudioOpsPanel`**. **Video mode** renders **`media/VideoEditor`** (HTML5 `<video>` preview + scrub + in/out markers) with **`VideoOpsPanel`** for clip/convert/extract-audio. On-disk media (audio/video) streams through the guarded **`/api/media/raw`** Range route so the browser can seek; imported files use a browser object URL (revoked on unmount/replace), and on-disk images still load via the same `GET /api/file-content` fetch `FileViewerModal` uses. Honest-scope notes live in each component's header comment + the manual section. Shared op-posting helpers live in `media/postMediaOp.ts`; advanced/stems controls in `MediaAdvancedOps.tsx` / `MediaStemsControls.tsx` / `MediaSaveControls.tsx`.
|
|
1015
1018
|
|
|
@@ -1019,11 +1022,11 @@ Image paste adds a layer only while the image editor is open and visible. Return
|
|
|
1019
1022
|
- **`WorkerDetailModal`** - opens from clicking a `WorkerCard` chip in the right-pane Activity / Reviews / Handoffs tabs. Shows full output, tokens, status, errors. `WorkerCard` itself is a compact summary chip (model/effort/elapsed/verdict) that's rendered in those tabs.
|
|
1020
1023
|
- **`ArtifactModal`** - for inline artifacts (confirm / choice / image). Has a response composer that sends a `[artifact:<id>] <answer>` follow-up to the primary.
|
|
1021
1024
|
- **`AskUserQuestionNotice`** - inline reply form rendered by `ChatMessage` when it detects the `[ASK:claude-native:<questionId>]` sentinel a Native worker emits via `system_notice`. Renders a text input or option chips based on the `[ASK_OPTIONS:opt1 | opt2]` line; submits `ask_user_question_reply { workflowId, questionId, reply }` and the worker resolves the awaiting tool-result Promise.
|
|
1022
|
-
- **`TaskCard`** - compact card rendered inline on the parent's `Task` tool_use chat row when `job.taskChildren[taskId]` exists. Shows status (`running` / `done` / `error` / `cancelled`), elapsed time, child workflow id, and a `
|
|
1023
|
-
- **`TasksPanel`** - the TASKS right-panel tab. Reads `job.taskChildren` keyed by `taskId` and renders one row per child workflow with status glyph + colour, child wfid, description, and elapsed time. Visible only when the map is non-empty (depth-1 cap; child workflows have no Task children of their own).
|
|
1025
|
+
- **`TaskCard`** - compact card rendered inline on the parent's `Task` tool_use chat row when `job.taskChildren[taskId]` exists. Shows status (`running` / `done` / `error` / `cancelled`), elapsed time, child workflow id, an optional BACKGROUND label for `run_in_background` children, and a `VIEW IN TAB` button to open the same child in the top tab strip. Closing that view hides it without stopping the child; `CANCEL` stops the task. Native injects a synthetic message at the tool_use position because Native has no JSONL; CLI tabs use the existing tool_use entry from `sessionChat`.
|
|
1026
|
+
- **`TasksPanel`** - the TASKS right-panel tab. Reads `job.taskChildren` keyed by `taskId` and renders one row per child workflow with status glyph + colour, child wfid, description, and elapsed time. A `background` child shows a BACKGROUND label; STOP, CANCEL and closing the parent tab end it, while a new message leaves it running. Visible only when the map is non-empty (depth-1 cap; child workflows have no Task children of their own).
|
|
1024
1027
|
- **`AttachmentPill`** + **`TokenBadge`** - small inline chips. AttachmentPill (composer + chat) opens an uploaded file in `FileViewerModal`. TokenBadge shows per-worker `ctx / out` token counts. (Throttle state from `quota_status` renders in `WorkflowStatusChip`; the standalone `QuotaBadge` is gone.)
|
|
1025
1028
|
- **`TranscriptSendDialog`** (2026-05-11) - opens from the `-> TRANSCRIPT` composer button on any cluster member tab (gated on cluster membership + ≥1 peer). Lets the operator pick one or more recipient peers, an optional note, include switches (operator messages, agent replies, mail lines, shortened sent-mail copies) + scope (`Last turn` / `Last N turns` / `Full transcript`) and fires a single `operator_peer_send` WS message. Scope slicer walks back through `messages` by `role === 'user'` boundaries; `formatRow` strips `ctx-divider` rows, tool pills, and pure-metadata system pills (single-line `[TAG] short text` shape) but keeps substantive multi-line system content (inlined review bodies, AUTH detail with detail). 32 KB cap (matches server-side `OPERATOR_PEER_SEND_MAX_BYTES`); preview pane shows live byte count + warns at cap. Server bypasses budget + dedupe (operator intent is explicit) - see `PRIMITIVES.md transcript-send`.
|
|
1026
|
-
- **`MailboxModal`** (2026-05-11, `client/src/components/ClusterRightPanel/MailboxModal.tsx`) - opens from the MAILBOX sub-tab row click. Lists pending peer messages addressed to the picked member, with a per-row CANCEL button that hits `DELETE /api/clusters/:id/mailbox/:wfid/:msgId` to discard before the recipient drains. Server fires `notifyClusterStateForWorkflow` post-delete so the depth chip drops without a refetch. Delivered messages live in `events.jsonl` and aren't reachable here - modal only mutates the transient mailbox file layer. **** each pending message carries a `TASK` button (`onMakeTask`, mounted only when the cluster's `taskBoardMode !== 'none'`) promoting it to a board task. (`ClusterRightPanel` is now a **directory** - `index.tsx` is the panel; sub-tabs / modals split into sibling files: `MailboxModal.tsx`, `ClusterReviewsList.tsx`, `MemberRow.tsx`, `AddWorkerSection.tsx`, `ClusterHandoffsTab.tsx`, `EfficiencyControl.tsx`, `types.ts`.)
|
|
1029
|
+
- **`MailboxModal`** (2026-05-11, `client/src/components/ClusterRightPanel/MailboxModal.tsx`) - opens from the MAILBOX sub-tab row click. Lists pending peer messages addressed to the picked member, with a per-row EDIT button (an editable box; SAVE sends `PUT /api/clusters/:id/mailbox/:wfid/:msgId`, refused once the message is delivered) and a CANCEL button that hits `DELETE /api/clusters/:id/mailbox/:wfid/:msgId` to discard before the recipient drains. Server fires `notifyClusterStateForWorkflow` post-delete so the depth chip drops without a refetch. Delivered messages live in `events.jsonl` and aren't reachable here - modal only mutates the transient mailbox file layer. **** each pending message carries a `TASK` button (`onMakeTask`, mounted only when the cluster's `taskBoardMode !== 'none'`) promoting it to a board task. (`ClusterRightPanel` is now a **directory** - `index.tsx` is the panel; sub-tabs / modals split into sibling files: `MailboxModal.tsx`, `ClusterReviewsList.tsx`, `MemberRow.tsx`, `AddWorkerSection.tsx`, `ClusterHandoffsTab.tsx`, `EfficiencyControl.tsx`, `types.ts`.)
|
|
1027
1030
|
- **`ClusterReviewRow`** (2026-05-11, the `ClusterReviewRow` component in `client/src/components/ClusterRightPanel/ClusterReviewsList.tsx`, used by the `ClusterReviewsList` list) - replaces the old expand-only Reviews row. Status pill + reviewer header; CANCEL button on in-flight rows (wires `onCancelReview(workflowId, reviewId)`); click anywhere on the row to fetch the artifact body via `/api/workflows/artifact` and inline it. Refetches on every open + on the completion transition (`completedAt` keys the effect) so a streaming snapshot is replaced by the final body when the reviewer settles.
|
|
1028
1031
|
|
|
1029
1032
|
---
|
|
@@ -1056,6 +1059,9 @@ These are full-screen gates that block UI when something critical is happening:
|
|
|
1056
1059
|
- `useProjectTrust` - DD7 client over `GET/POST /api/project-trust`; backs the Settings PROJECT TRUST section, the per-tab CONFIG row, and the cluster header chip (trust is keyed by cwd, so one decision covers every tab on that repo).
|
|
1057
1060
|
- `useTemplates` - CRUD over `GET/POST/DELETE /api/templates` (`~/.arco/templates.json`); backs `TemplatePickerRow` in the single-tab creator.
|
|
1058
1061
|
- `useClusterPresets` - CRUD over `GET/POST/DELETE /api/cluster-presets` (`~/.arco/cluster-presets.json`); backs `ClusterPresetsRow`.
|
|
1062
|
+
- `useClaudeNativeLogin` - the Claude Native sign-in flow for one owner (pending and exchanging states, credential binding).
|
|
1063
|
+
- `useTerminalTarget` - the workflow and root the header TERMINAL button opens in.
|
|
1064
|
+
- Other hooks live beside their feature: `useHelpMode` in `client/src/help/`, and `usePhoneLayout`, `usePhonePageChrome` and the other phone hooks in `client/src/layout/`.
|
|
1059
1065
|
|
|
1060
1066
|
The 2/3 - 1/3 split-width persistence and the composer file-drop handler are **inline in their owning components** (`WorkflowView.tsx` reads/writes the split fraction directly to localStorage; drag-over hint state lives in the composer + `DragOverlay`), not extracted into hooks.
|
|
1061
1067
|
|
|
@@ -1069,6 +1075,7 @@ The 2/3 - 1/3 split-width persistence and the composer file-drop handler are **i
|
|
|
1069
1075
|
- `linkify.tsx` - bare URLs in text become clickable. Used for operator + system messages (assistant content goes through markdown which handles its own linking).
|
|
1070
1076
|
- `modelCatalog.ts` - the one provider -> model-list resolver for every dialog picker (RUN AS, Review, Handoff, Spawn, cluster fresh-spawn, tab context menu): live catalog first, static fallback second. Replaced per-dialog `modelsFor` copies that drifted (Review/Handoff rendered an empty MODEL row for Cursor).
|
|
1071
1077
|
- `gateArgs.ts` - DEBAG gate arg helpers (`buildGateFinalArgs` / `renderGateArgs`).
|
|
1078
|
+
- `displayMessages.ts` - the merge and de-duplication that `ChatPanel`'s `displayMessages` memo runs (see Chat rendering pipeline); `tabStatus.ts` - the tab status dot rules; `queuedMessageEdit.ts` - restoring a pending message into the draft; `longPress.ts` - the phone long-press used to select messages.
|
|
1072
1079
|
- Also here: `format.ts` (effort/model helpers incl. `effortsForModel` / `clampEffortForModel`), `historyEvents.ts` (`narrativeEventFromMessage` helper for the HISTORY tab), `operatorLabel.ts`, `rafThrottle.ts`, `themeScramble.ts`; `codexEfforts.test.ts` pins the Codex effort allowlist.
|
|
1073
1080
|
|
|
1074
1081
|
---
|
|
@@ -1102,13 +1109,14 @@ Cluster tabs are a third top-level view alongside `WorkflowView` and `WorkflowCr
|
|
|
1102
1109
|
|
|
1103
1110
|
```text
|
|
1104
1111
|
ClusterTab (App.tsx routes here when activeClusterId set)
|
|
1105
|
-
├──
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
│
|
|
1109
|
-
│
|
|
1112
|
+
├── MemberCard grid (left; compact cards, one per cluster.members[i])
|
|
1113
|
+
├── splitter (4 px; clusterGridSplit, default 0.35)
|
|
1114
|
+
├── MemberPane (the one focused member, clusterFocusedMember)
|
|
1115
|
+
│ ├── identity strip (display name + busy/idle pill + ContextMeter + tab name)
|
|
1116
|
+
│ ├── ChatPanel (existing component, reused as-is)
|
|
1117
|
+
│ └── TerminalInput (member composer + per-member primitives)
|
|
1110
1118
|
├── ClusterRightPanel (right; width persisted, fraction clamped to [0.18, 0.5], default 0.28)
|
|
1111
|
-
│ ├── WORKSPACE group - MEMBERS (rows + role/tier/focus/rename/add-worker) and FILES (cluster.cwd)
|
|
1119
|
+
│ ├── WORKSPACE group - RESULTS (research projects only; every other cluster hides it), MEMBERS (rows + role/tier/focus/rename/add-worker) and FILES (cluster.cwd)
|
|
1112
1120
|
│ ├── AGENT group - ACTIVITY, REVIEWS, HANDOFFS, PLAN, BOARD, MAILBOX
|
|
1113
1121
|
│ ├── MEMORY group - HISTORY (the member in view: clusterFocusedMember, else the director, else members[0]; header picker sets the focus) and USAGE (ProjectUsageTab on cluster.cwd: token usage of every member plus MEASURE STORAGE / MEASURE ARCO FOLDER)
|
|
1114
1122
|
│ └── RUNTIME group - PREVIEW (the member in view, same picker), CONFIG (member selector + ConfigTab), GITHUB (cluster.cwd)
|
|
@@ -1152,7 +1160,7 @@ New `peer_message_sent` events carry their full body on the sender's workflow ch
|
|
|
1152
1160
|
|
|
1153
1161
|
**`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `WORKING` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
|
|
1154
1162
|
|
|
1155
|
-
**MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the eight preset rows (DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, ADVISOR, DESIGNER) + `CLEAR` + `Custom...`. ADVISOR gives a second opinion without changing files, assigning work or landing; DESIGNER
|
|
1163
|
+
**MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the eight preset rows (DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, ADVISOR, DESIGNER) + `CLEAR` + `Custom...`. ADVISOR gives a second opinion without changing files, assigning work or landing; DESIGNER designs screens, states, wording and accessibility, prototypes and reviews UI; builders implement it. The Custom... branch falls back to the inline editor (same textarea + commit semantics as before). Click-outside + Esc close the popover; both listeners attach only while open (no global leak). On commit the row shows `ROLE <preset.label>` for a preset or truncated text for custom; the button flips to `EDIT`. `EDIT` reopens the popover with the matching preset highlighted via `presetForText` (returns undefined for free-form text -> Custom... is highlighted instead).
|
|
1156
1164
|
|
|
1157
1165
|
**MEMBERS sub-tab - rename pencil.** Pencil affordance next to each member's name opens an inline editor. Commit fires `rename_workflow` via the new `renameWorkflow` helper on `useWebSocket`; empty commit clears the name (member reverts to its wfid 8-char prefix on the next `cluster_state` push). The 64-char cap is enforced server-side - see [`PROTOCOL.md_workflow`](PROTOCOL.md).
|
|
1158
1166
|
|
|
@@ -1249,6 +1257,30 @@ The cluster panel root has `minHeight: 0` so it can shrink inside the Narrow sli
|
|
|
1249
1257
|
|
|
1250
1258
|
Dragged splitter positions are saved separately for each layout. Positions from the retired width band that no longer exists are ignored.
|
|
1251
1259
|
|
|
1260
|
+
## Mobile view
|
|
1261
|
+
|
|
1262
|
+
The mobile view offers a first New step for the kind and project folder, with recent folders first; Chat starts without a second step. Notices opens as a page with CLEAR ALL under its actions. Manual presents POINT AT THINGS, search and a chapter list, then one chapter with next and previous controls. POINT AT THINGS (`onPointAtThings` on `MobileManualContent`) closes the manual and turns on help mode; `HelpBanner` then reads HELP: TAP A CONTROL in a 48 px bar with a 44 px EXIT (`help-banner-phone`; `contextual-help.css` pads the body and the phone layout for it through `body.help-mode:has(.help-banner-phone)`), and READ MORE IN MANUAL in `HelpPopover` ends help mode as it opens the manual page. System opens on diagnostics and asks before restarting or quitting. The terminal offers ESC, TAB, CTRL, arrows, pipe and tilde in a touch row. The Home getting-started guide folds after a conversation starts.
|
|
1263
|
+
|
|
1264
|
+
In the mobile view, Recall places project, time, pinned and transcript filters in one row. Its summarize-on-close control is in Settings under Utility agent. Shared confirmation dialogs appear as bottom sheets, and CATCH ME UP keeps its range actions at the bottom.
|
|
1265
|
+
|
|
1266
|
+
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
|
+
|
|
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.
|
|
1269
|
+
|
|
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`) lists NEEDS YOU (members and tabs waiting on a decision, and members idle with unread mail; a row says which and whether it is also working, and opens the questions sheet directly), then clusters (with working and needs-you counts; 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. 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
|
+
|
|
1272
|
+
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
|
+
|
|
1274
|
+
Only one overlay covers the conversation at a time: a sheet, a side panel or the terminal window. Opening one closes the others through `claim` in `phoneStore` (closing the terminal window keeps its session running). The mobile view draws only the newest terminal window (`visibleTerminalWindows` in `terminalStore`); the others and their shells stay open. While the directory or an overlay is shown, `usePhoneOverlay` (`client/src/layout/phoneOverlay.ts`) marks everything it covers `inert`, so Tab and touch reach only it and the header; on close focus returns to the opener. Each open layer (conversation, panel, terminal, Settings, a Settings category, a dialog opened from PANELS (manual, Recall, Media, System), sheet) adds one browser history entry, so the phone's Back closes the top layer (`mobileBackStep`, `mobileDepth`); a layer closed in the page drops its entry.
|
|
1275
|
+
|
|
1276
|
+
The conversation and its composer stay mounted under the directory, sheets and panels, so the draft is kept. The browser notice (`BrowserNotice`) is not drawn in the mobile view: it concerns the desktop app window. `usePhoneViewport` sets `--phone-vh` and `--phone-vt` from `visualViewport`, and the app root is fixed to that box, so the composer stays above the on-screen keyboard. It reports `keyboard` (an input has focus and the visible height dropped below 85% of the tallest seen at that width) and `compact` (keyboard, or under 500 px of height). When compact the header is one row: the member strip folds into the name (which opens the members sheet), the decision line becomes one button in the row, PANELS is hidden while typing and the root carries `data-phone-short`. The floating terminal window fills the screen below the header (`--phone-header-h`) on the opaque dialog surface and does not drag or resize. The media studio's header wraps and its controls are touch-sized (`data-media-phone`). The viewport meta adds `viewport-fit=cover` and `interactive-widget=resizes-content`; the header, sheets, transcript and composer pad by the safe-area insets.
|
|
1277
|
+
|
|
1278
|
+
A waiting question, batch approval or review gate shows as one bar above the draft (`MobileQuestionBar`); ANSWER opens the questions sheet (`PendingQuestionsList` with `all`). Messages carry no selection box in the mobile view. A press held for 500 ms without moving more than 10 px selects the message (`useLongPressSelect` in `client/src/utils/longPress.ts`, touch and pen only); while the tab has a selection a tap on a message adds or removes it, and a selected message is outlined (`data-message-selected`). `MessageSelectionBar` then offers FORWARD, SECOND OPINION and CLEAR as on the workbench, plus QUOTE (the selection as quoted lines appended to the draft) and COPY. Member chips are square like the workbench's tabs.
|
|
1279
|
+
|
|
1280
|
+
While a turn runs, STOP takes SEND's place in the thumb row (`PhoneSendButtons`); with a draft the row has STEER and a square STOP beside it, and QUEUE FOR AFTER and INTERRUPT & SEND are a row of the message tools (`PhoneBusyButtons`, a `data-phone-option` row), not a second row under the draft. In the directory a NEEDS YOU row (`NeedsRow`) shows the first words of the waiting question (`firstQuestionText`) and an ANSWER tag; clusters start folded; New tab is a `+ NEW` button fixed over the list at the bottom right (the directory is an outer box with the scrolling list and the button inside, so the button is not inert). In a research project the member strip names its chips Director and the researcher letters, ends with RESULTS (which requests the `results` panel), and the header's state line adds the newest round as ROUND n RUNNING or RELEASED. The text size control is `MobileTextSize`, drawn by `SettingsLayout` under THIS PHONE after the category list; PANELS no longer has it.
|
|
1281
|
+
|
|
1282
|
+
Colours come from the active theme's tokens, so a theme change in either view changes both; there is no phone palette. The phone view uses the theme's text colours without text brightness (`applyTheme` skips the text lift on `/mobile`), because a positive lift lowers contrast on light themes; the workbench keeps the setting. Conversation text (`data-message-body`), question cards and their question text (`data-question-prose`) and the message box use the system font at 16 px (`global.css`), which also keeps iPhone Safari from zooming into the message box; controls and status keep the theme font. The text size is kept per browser in `arco_mobile_text_size` (100, 110 or 120 percent; `readMobileTextSize` in `client/src/themes/bootstrap.ts`) and replaces the workbench-wide scale on `/mobile` only.
|
|
1283
|
+
|
|
1252
1284
|
## Menus and popovers inside the window
|
|
1253
1285
|
|
|
1254
1286
|
`client/src/layout/keepInWindow.ts` is the one placement rule for every dropdown, popover, menu, hover card and corner notice. Each panel keeps its own CSS position (below or above its trigger, at a pointer, in a corner); `useKeepInWindow()` returns a callback ref that, after the panel is drawn, measures it and only where it would leave the window: caps its width to the window less an 8 px margin on each side, flips it to the other side of its trigger when that side has more room, caps its height to the room on the chosen side and scrolls inside, and shifts it along the edge so the whole box is inside with the margin. It moves the panel with the CSS `translate` property, so a panel's own `transform` still applies. The trigger defaults to the panel's positioned parent (`offsetParent`) for absolute panels; fixed panels pass `anchor` (NeedsYouBadge passes its button; pointer menus and notices pass none and are only shifted and capped). It runs again on window `resize`, `arco:ui-scale`, page scroll, a size change of the panel or its trigger (`ResizeObserver`), the end of an animation and the `toggle` of an enclosing `<details>`. Lengths written back are divided by the interface scale. Every managed panel carries `data-window-placement` (`below`, `above` or `free`). `planPlacement` is the pure part, unit-tested in `keepInWindow.test.ts`; the `popover-placement` browser suite opens each panel where the layout puts it and with its trigger pinned near each window corner at 1280x800, 900x700 and 480x800, at 100% and 150%, and checks the box is inside the window.
|
|
@@ -1267,7 +1299,9 @@ CHANGED FILES extracts filenames from slash-separated and native Windows paths.
|
|
|
1267
1299
|
|
|
1268
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`), `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.
|
|
1269
1301
|
|
|
1270
|
-
`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
|
|
1302
|
+
`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
|
+
|
|
1304
|
+
When a tab closes, a member detaches or is replaced, or a cluster is deleted, the scratch choice shows measured sizes, measurement time and KEEP marks. KEEP SCRATCH is the default. A cluster offers one list with individually selected members. EMPTY SCRATCH AND CLOSE uses the same storage action, refuses a working conversation and leaves the tab open on failure. A successful empty leaves a conversation notice and tells the next agent turn. The USAGE panel offers an explicit scratch measurement and refresh; neither the warning nor measurement deletes files.
|
|
1271
1305
|
|
|
1272
1306
|
---
|
|
1273
1307
|
|
|
@@ -1330,7 +1364,7 @@ explanations are expandable. Terminal history never includes action buttons.
|
|
|
1330
1364
|
Empty legacy state renders no section. There is no backend status mutation,
|
|
1331
1365
|
history deletion, polling or automatic re-arming in this presentation change.
|
|
1332
1366
|
Agent/activity/automation/context settings share one scrollable region capped
|
|
1333
|
-
at
|
|
1367
|
+
at 45% of the Computer panel; expanded details cannot consume the transcript.
|
|
1334
1368
|
|
|
1335
1369
|
`ComputerActivityPanel` shows the per-owner automation switch, optional agent
|
|
1336
1370
|
feed, bounded recent ledger, inbox states and clear-queued action. Technical
|
package/docs/DEEPSEEK.md
CHANGED
|
@@ -9,21 +9,20 @@ guarded service lifecycle; existing provider defaults remain unchanged.
|
|
|
9
9
|
## Xolotl and DeepSeek are different things
|
|
10
10
|
|
|
11
11
|
Xolotl is the runtime, formerly named Strata-DSV4.1: an independently maintained
|
|
12
|
-
extended fork of Strata. DeepSeek V4.1 Flash
|
|
13
|
-
|
|
12
|
+
extended fork of Strata. The prepared profiles serve DeepSeek V4.1 Flash.
|
|
13
|
+
The runtime distributes model data across GPU VRAM, pinned host
|
|
14
14
|
RAM and NVMe. Upstream supports other model families too; Arco's current
|
|
15
15
|
registry deliberately describes only the prepared DeepSeek Exact/Light pair.
|
|
16
16
|
Adding another family requires its own validated assets/configuration and
|
|
17
17
|
launcher support, not merely another name in the picker.
|
|
18
18
|
|
|
19
|
-
Upstream references
|
|
19
|
+
Upstream references, without a pinned checkout:
|
|
20
20
|
|
|
21
|
-
- [Xolotl
|
|
22
|
-
- [Runtime architecture](https://github.com/Indras-Mirror/Xolotl/blob/c3324f8998040a9247d22137e9bfb3ff2c5da361/docs/xolotl/HOW_IT_WORKS.md)
|
|
21
|
+
- [Xolotl](https://github.com/Indras-Mirror/Xolotl)
|
|
23
22
|
- Engine-specific details should be checked against the installed Xolotl release documentation.
|
|
24
23
|
|
|
25
|
-
Keep upstream benchmarks distinct from measurements of the installed quantization, routing, memory budget, and GPU power limit. The
|
|
26
|
-
|
|
24
|
+
Keep upstream benchmarks distinct from measurements of the installed quantization, routing, memory budget, and GPU power limit. The installed revision
|
|
25
|
+
is source provenance; rebuild records establish binary provenance.
|
|
27
26
|
|
|
28
27
|
The saved provider key remains `deepseek` for compatibility with existing
|
|
29
28
|
workflows, settings and API routes; its user-facing provider name is Xolotl.
|
|
@@ -50,9 +49,9 @@ model assets remain in user-managed storage.
|
|
|
50
49
|
|
|
51
50
|
| Resource / capability | Profile behavior |
|
|
52
51
|
| --- | --- |
|
|
53
|
-
| Context |
|
|
54
|
-
| Reasoning | None
|
|
55
|
-
| Output allowance |
|
|
52
|
+
| Context | Registration requires 262144 tokens, covering input, history, thinking and output. Arco rejects another context size. |
|
|
53
|
+
| Reasoning | None, low or medium are sent as `reasoning_effort`. Any higher effort, including high, is sent as high. Arco does not send xhigh. |
|
|
54
|
+
| Output allowance | Each request sends `max_tokens` 16384 and `reasoning_budget_tokens` 8192. Context size and vision limits are set by the prepared profile. |
|
|
56
55
|
| Host expert arena | Configured per service; not the entire process or cgroup footprint |
|
|
57
56
|
| Service limits | Set by the operating system and service configuration |
|
|
58
57
|
| Modalities | Text, images, and tools when matching assets are prepared; text-only profiles remain supported |
|
package/docs/DIAGNOSTICS.md
CHANGED
|
@@ -4,7 +4,8 @@ A read-only surface showing which system components are available. It lives in
|
|
|
4
4
|
the **System** modal, opened from the header power button (`⏻`). Four tabs:
|
|
5
5
|
**ACTIONS** (RESTART / QUIT), **DIAGNOSTICS** (A1/A2 status checks + support
|
|
6
6
|
bundle), **MODELS** (A3 local model health) and **SERVICES** (local services,
|
|
7
|
-
see [Local services](LOCAL_SERVICES.md)).
|
|
7
|
+
see [Local services](LOCAL_SERVICES.md)). In the mobile view there is no ACTIONS
|
|
8
|
+
tab: the modal opens on DIAGNOSTICS and RESTART and QUIT sit below every tab.
|
|
8
9
|
|
|
9
10
|
## Where it lives
|
|
10
11
|
|
|
@@ -110,9 +111,9 @@ A read-only exposure-posture readout: when is Arco reachable beyond this
|
|
|
110
111
|
machine, and what does that imply? Informational only, **not** a multi-user
|
|
111
112
|
admin system.
|
|
112
113
|
|
|
113
|
-
|
|
114
|
+
Arco's HTTP/WS surface uses a session-cookie gate by default and exposes a
|
|
114
115
|
shell (the PTY terminal), git/GitHub ops, filesystem read+write under cwd roots,
|
|
115
|
-
and provider credentials.
|
|
116
|
+
and provider credentials. The gate is not multi-user isolation, so **severity is conditioned on the bind address**:
|
|
116
117
|
bound to loopback, only this machine can reach those powers (`ok`, informational
|
|
117
118
|
detail); bound to a non-loopback address, the same powers are reachable by the
|
|
118
119
|
LAN/tailnet (`warn`). The bind default is loopback (`ARCO_HOST` ->
|
|
@@ -187,9 +188,9 @@ token objects:
|
|
|
187
188
|
|
|
188
189
|
- `gitRev`, `git rev-parse --short HEAD` against the Arco checkout (execFile,
|
|
189
190
|
argv array, no shell, 4s timeout; missing git / non-repo -> `unknown`).
|
|
190
|
-
- `runtime.serviceMode`, best-effort.
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
- `runtime.serviceMode`, best-effort. It is `dev (tsx watch)` when the server
|
|
192
|
+
runs under tsx, else `unknown`; the bundle does not detect the per-user
|
|
193
|
+
service ([Service mode](SERVICE_MODE.md)) or a package install.
|
|
193
194
|
|
|
194
195
|
### Redaction (Appendix D, allowlist, not denylist)
|
|
195
196
|
|
|
@@ -331,7 +332,7 @@ Editing any file under `server/` or `shared/` triggers `tsx watch` to restart th
|
|
|
331
332
|
If an agent is mid-turn and you save a server file, the agent dies and the chat shows a partial reply. Workarounds:
|
|
332
333
|
- Wait until idle to save server changes.
|
|
333
334
|
- Or pause the watch by editing only client files until the agent finishes.
|
|
334
|
-
-
|
|
335
|
+
- RESTART in the System modal is the controlled way to restart the server when you do want to recycle; a package install running as a service can also use `arco service restart`.
|
|
335
336
|
|
|
336
337
|
Client files (under `client/src/`) hot-reload via Vite without affecting workers.
|
|
337
338
|
|