arco-workbench 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +49 -8
- package/README.md +42 -21
- package/THIRD_PARTY_NOTICES +789 -0
- package/client/dist/assets/{PhosphorBackdrop-CNumba2X.js → PhosphorBackdrop-BR-TgB5x.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DX5KyCt3.js → ThemedBackgroundShaderImpl-DgcFj6JN.js} +1 -1
- package/client/dist/assets/{XtermView-DhS5g8Rt.js → XtermView-CflVBQgC.js} +2 -2
- package/client/dist/assets/galleryEditor-BB-emfmi.js +702 -0
- package/client/dist/assets/index-B_EqHDz3.js +612 -0
- package/client/dist/assets/index-DD9kFGsF.css +1 -0
- package/client/dist/index.html +2 -2
- package/client/src/App.tsx +44 -55
- package/client/src/alerts/desktopAlerts.ts +33 -12
- package/client/src/alerts/desktopTest.ts +68 -0
- package/client/src/alerts/focusNotice.ts +16 -0
- package/client/src/buildCheck.ts +42 -2
- package/client/src/components/ArchitectureReviewDialog.tsx +98 -0
- package/client/src/components/ArtifactModal.tsx +4 -6
- package/client/src/components/ArtifactMoveDialog.tsx +11 -7
- package/client/src/components/AskUserQuestionNotice.tsx +2 -1
- package/client/src/components/AutomaticMessage.tsx +19 -0
- package/client/src/components/BriefControl.tsx +4 -2
- package/client/src/components/BrowserNotice.tsx +35 -0
- package/client/src/components/CatchMeUp.tsx +12 -6
- package/client/src/components/ChatMessage.tsx +15 -4
- package/client/src/components/ChatModeView.tsx +23 -16
- package/client/src/components/ChatPanel.tsx +33 -5
- package/client/src/components/CheckpointActions.tsx +91 -26
- package/client/src/components/ClusterActivityTab.tsx +4 -2
- package/client/src/components/ClusterMemberPicker.tsx +6 -3
- package/client/src/components/ClusterPlanTab.tsx +93 -62
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +16 -5
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +53 -19
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +7 -3
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +6 -3
- package/client/src/components/ClusterRightPanel/MemberSettingsFields.tsx +104 -0
- package/client/src/components/ClusterRightPanel/MessageGuardControl.tsx +1 -1
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +85 -7
- package/client/src/components/ClusterRightPanel/index.tsx +90 -36
- package/client/src/components/ClusterRightPanel/memberSettings.ts +52 -0
- package/client/src/components/ClusterRightPanel/panels.ts +18 -0
- package/client/src/components/ClusterRightPanel/types.ts +9 -10
- package/client/src/components/ClusterTab.tsx +252 -62
- package/client/src/components/ClusterTaskBoardTab.tsx +76 -601
- package/client/src/components/CommandPalette.tsx +17 -6
- package/client/src/components/ComputerAgentPicker.tsx +1 -1
- package/client/src/components/ComputerPanel.tsx +4 -2
- package/client/src/components/Connections/Connections.tsx +5 -2
- package/client/src/components/Connections/EndpointEditor.tsx +2 -2
- package/client/src/components/Connections/connections.css +1 -1
- package/client/src/components/Connections/model.ts +5 -1
- package/client/src/components/ContextMeter.tsx +22 -4
- package/client/src/components/DeepSeekControls.tsx +7 -6
- package/client/src/components/DiagnosticsTab.tsx +3 -2
- package/client/src/components/DialogShell.tsx +19 -11
- package/client/src/components/FileExplorer.tsx +8 -9
- package/client/src/components/FileViewerModal.tsx +37 -12
- package/client/src/components/FirstRun.tsx +8 -7
- package/client/src/components/GateApprovalNotice.tsx +4 -2
- package/client/src/components/GitDialog.tsx +1 -0
- package/client/src/components/GitHubPanel/CodeView.tsx +35 -23
- package/client/src/components/GitHubPanel/IssueView.tsx +6 -4
- package/client/src/components/GitHubPanel/PullView.tsx +7 -6
- package/client/src/components/GitHubPanel/RunView.tsx +7 -5
- package/client/src/components/GitHubPanel/shared.tsx +23 -8
- package/client/src/components/HandoffSeedPill.tsx +5 -5
- package/client/src/components/HandoffSource.tsx +54 -0
- package/client/src/components/HeaderAuthChip.tsx +22 -1
- package/client/src/components/HeaderDropdown.tsx +5 -0
- package/client/src/components/HeaderVersionBox.tsx +3 -0
- package/client/src/components/HistoryTab.tsx +59 -32
- package/client/src/components/Home/AddProject.tsx +1 -1
- package/client/src/components/Home/HomeView.tsx +29 -20
- package/client/src/components/Home/LocationDialog.tsx +1 -1
- package/client/src/components/Home/ProjectCard.tsx +5 -3
- package/client/src/components/Home/home.css +4 -4
- package/client/src/components/KeepButton.tsx +22 -0
- package/client/src/components/LlamacppCatalogEditor.tsx +12 -3
- package/client/src/components/LocalRuntimeStatus.tsx +54 -0
- package/client/src/components/MdTuneupDialog.tsx +3 -1
- package/client/src/components/MemberCard.tsx +44 -42
- package/client/src/components/MemberPane.tsx +11 -10
- package/client/src/components/ModelHealthPanel.tsx +5 -4
- package/client/src/components/NativeSubagentControls.tsx +64 -0
- package/client/src/components/NeedsYouBadge.tsx +42 -20
- package/client/src/components/NorthStarBar.tsx +5 -3
- package/client/src/components/NotificationCenter.tsx +14 -2
- package/client/src/components/NotificationChannelsSettings.tsx +38 -30
- package/client/src/components/NotificationToasts.tsx +6 -8
- package/client/src/components/OperatorQuestionNotice.tsx +10 -1
- package/client/src/components/PendingQuestionsButton.tsx +4 -1
- package/client/src/components/PlanBodyRenderer.tsx +1 -0
- package/client/src/components/PlanCandidateBanner.tsx +20 -3
- package/client/src/components/PlanReviewPicker.tsx +6 -3
- package/client/src/components/PreviewTab.tsx +62 -25
- package/client/src/components/PrimaryStatus.tsx +20 -74
- package/client/src/components/ProjectsSettings.tsx +28 -2
- package/client/src/components/ProviderReleasesModal.tsx +13 -3
- package/client/src/components/ProvidersPopover.tsx +102 -33
- package/client/src/components/PublicProjectBox.tsx +10 -6
- package/client/src/components/PurgeConversationModal.tsx +7 -2
- package/client/src/components/QueuedMessagesIndicator.tsx +42 -150
- package/client/src/components/Recall/RecallResultRow.tsx +4 -2
- package/client/src/components/Recall/RecallView.tsx +12 -9
- package/client/src/components/ResearchDialog.tsx +1 -1
- package/client/src/components/ReviewDialog.tsx +12 -5
- package/client/src/components/RightPanel/ActivityTab.tsx +32 -16
- package/client/src/components/RightPanel/CodebaseMemorySection.tsx +3 -1
- package/client/src/components/RightPanel/ConfigTab.tsx +129 -140
- package/client/src/components/RightPanel/GenesisTab.tsx +67 -24
- package/client/src/components/RightPanel/HandoffsTab.tsx +4 -0
- package/client/src/components/RightPanel/KnowledgeTab.tsx +1 -1
- package/client/src/components/RightPanel/LedgerTab.tsx +1 -1
- package/client/src/components/RightPanel/McpRegistrySection.tsx +7 -6
- package/client/src/components/RightPanel/MoveTargetModal.tsx +6 -3
- package/client/src/components/RightPanel/OutputsPanel.tsx +40 -17
- package/client/src/components/RightPanel/PlanTab.tsx +109 -111
- package/client/src/components/RightPanel/ReviewTab.tsx +7 -4
- package/client/src/components/RightPanel/UsageTab.tsx +18 -5
- package/client/src/components/RightPanel/format.ts +3 -1
- package/client/src/components/RightPanel/index.tsx +10 -2
- package/client/src/components/RightPanel/types.ts +4 -2
- package/client/src/components/RunAsPicker.tsx +5 -3
- package/client/src/components/RuntimeStateBanner.tsx +13 -3
- package/client/src/components/SavedClustersList.tsx +30 -3
- package/client/src/components/ServicesTab.tsx +17 -34
- package/client/src/components/SettingsPanel.tsx +101 -337
- package/client/src/components/ShortcutCheatSheet.tsx +6 -4
- package/client/src/components/SkillEditorDialog.tsx +2 -1
- package/client/src/components/SkillsSettings.tsx +307 -0
- package/client/src/components/SpawnDialog.tsx +3 -3
- package/client/src/components/SpawnSeedPill.tsx +5 -4
- package/client/src/components/StaleBuildBanner.tsx +3 -1
- package/client/src/components/StorageWarnings.tsx +3 -1
- package/client/src/components/SystemHeader.tsx +17 -10
- package/client/src/components/SystemModal.tsx +6 -5
- package/client/src/components/TabBar.tsx +31 -18
- package/client/src/components/TabContextMenu.tsx +36 -10
- package/client/src/components/TabStatusChip.tsx +8 -7
- package/client/src/components/TaskCard.tsx +16 -11
- package/client/src/components/TasksPanel.tsx +13 -11
- package/client/src/components/Terminal/XtermView.tsx +2 -0
- package/client/src/components/TerminalInput.tsx +248 -447
- package/client/src/components/TerminalSessions.tsx +1 -1
- package/client/src/components/TokenBadge.tsx +20 -17
- package/client/src/components/ToolCallPill.tsx +5 -3
- package/client/src/components/ToolboxMenu.tsx +5 -5
- package/client/src/components/TranscriptSendDialog.tsx +1 -1
- package/client/src/components/TurnTimer.tsx +21 -0
- package/client/src/components/UpdateAction.tsx +4 -1
- package/client/src/components/UsageBar.tsx +32 -126
- package/client/src/components/UserManual/index.tsx +6 -4
- package/client/src/components/VoiceMenu.tsx +5 -1
- package/client/src/components/VoiceSetupSettings.tsx +21 -11
- package/client/src/components/WorkerCard.tsx +7 -1
- package/client/src/components/WorkerDetailModal.tsx +7 -3
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +6 -6
- package/client/src/components/WorkflowCreator/ProjectPicker.tsx +13 -12
- package/client/src/components/WorkflowCreator/index.tsx +237 -78
- package/client/src/components/WorkflowCreator/types.ts +5 -3
- package/client/src/components/WorkflowStatusChip.tsx +93 -13
- package/client/src/components/WorkflowView.tsx +55 -24
- package/client/src/components/WorkspaceRename.tsx +11 -1
- package/client/src/components/activityTime.ts +4 -0
- package/client/src/components/clusterNeedsYou.ts +27 -8
- package/client/src/components/compare/CompareDialog.tsx +6 -3
- package/client/src/components/compare/CompareOverlay.tsx +10 -3
- package/client/src/components/composer/submitComposer.ts +191 -0
- package/client/src/components/diff/ChangesPanel.tsx +4 -2
- package/client/src/components/diff/LiveChangesPanel.tsx +18 -2
- package/client/src/components/editor/CodeEditor.tsx +17 -2
- package/client/src/components/headerPopoverState.ts +15 -0
- package/client/src/components/help/DocViewer.tsx +6 -4
- package/client/src/components/help/HelpCard.tsx +3 -2
- package/client/src/components/help/HelpPopover.tsx +3 -1
- package/client/src/components/media/AudioEditor/AudioOpsPanel.tsx +16 -2
- package/client/src/components/media/DirectoryPicker.tsx +18 -11
- package/client/src/components/media/ImageEditor/ImageEditor.tsx +2 -2
- package/client/src/components/media/MediaModalHost.tsx +7 -15
- package/client/src/components/media/MediaStemsControls.tsx +16 -2
- package/client/src/components/media/VideoEditor/VideoOpsPanel.tsx +16 -2
- package/client/src/components/media/launchers.ts +4 -0
- package/client/src/components/plans/PlanChooser.tsx +135 -0
- package/client/src/components/plans/PlanRefsSection.tsx +47 -28
- package/client/src/components/plans/planBodySave.ts +17 -0
- package/client/src/components/plans/planRefs.ts +21 -11
- package/client/src/components/plans/startPlanGenesis.ts +37 -0
- package/client/src/components/primitives/Panel.tsx +1 -0
- package/client/src/components/providerPanelState.ts +17 -0
- package/client/src/components/settings/AppVersionSection.tsx +5 -5
- package/client/src/components/settings/AppWindowBrowserSection.tsx +88 -0
- package/client/src/components/settings/PreviewPortsSection.tsx +31 -0
- package/client/src/components/settings/SettingsLayout.tsx +1 -1
- package/client/src/components/settings/appWindowBrowserReport.ts +23 -0
- package/client/src/components/settings/navigation.ts +5 -1
- package/client/src/components/settings/settings.css +6 -0
- package/client/src/components/terminalInput/planDraft.ts +5 -5
- package/client/src/components/usageVisibility.ts +3 -2
- package/client/src/components/workSurface/WorkSurfaceControls.tsx +125 -10
- package/client/src/components/workSurface/workSurface.css +10 -2
- package/client/src/explorer/ArtifactsLens.tsx +53 -17
- package/client/src/explorer/ExplorerApp.tsx +8 -6
- package/client/src/explorer/PlansLens.tsx +80 -20
- package/client/src/explorer/RecentsLens.tsx +22 -61
- package/client/src/explorer/StorageLens.tsx +10 -4
- package/client/src/explorer/changedAttribution.ts +23 -0
- package/client/src/explorer/launch.ts +6 -3
- package/client/src/explorer/treeReveal.ts +21 -0
- package/client/src/explorer/types.ts +3 -3
- package/client/src/help/content/chat.tsx +17 -10
- package/client/src/help/content/cluster.tsx +165 -122
- package/client/src/help/content/composer.tsx +132 -44
- package/client/src/help/content/gitOps.tsx +19 -19
- package/client/src/help/content/github.tsx +9 -4
- package/client/src/help/content/header.tsx +90 -62
- package/client/src/help/content/media.tsx +20 -20
- package/client/src/help/content/misc.tsx +355 -163
- package/client/src/help/content/recall.tsx +12 -12
- package/client/src/help/content/rightPanel.tsx +199 -102
- package/client/src/help/content/settings.tsx +117 -44
- package/client/src/help/content/shared.tsx +1 -1
- package/client/src/help/content/tabbar.tsx +3 -2
- package/client/src/help/manualSections/actions.tsx +24 -17
- package/client/src/help/manualSections/chat.tsx +28 -5
- package/client/src/help/manualSections/clusters.tsx +250 -145
- package/client/src/help/manualSections/configuration.tsx +232 -48
- package/client/src/help/manualSections/deepseek.tsx +7 -5
- package/client/src/help/manualSections/gettingStarted.tsx +84 -12
- package/client/src/help/manualSections/maintenance.tsx +96 -19
- package/client/src/help/manualSections/media.tsx +14 -12
- package/client/src/help/manualSections/plans.tsx +108 -25
- package/client/src/help/manualSections/powerFeatures.tsx +145 -50
- package/client/src/help/manualSections/providers.tsx +247 -45
- package/client/src/help/manualSections/reference.tsx +20 -12
- package/client/src/help/manualSections/strata.tsx +6 -6
- package/client/src/help/manualSections/troubleshooting.tsx +14 -8
- package/client/src/help/manualSections/voice.tsx +12 -7
- package/client/src/help/manualSections/workflows.tsx +89 -19
- package/client/src/help/manualSections/workspace.tsx +180 -47
- package/client/src/help/shortcuts.ts +1 -0
- package/client/src/hooks/useWebSocket.ts +49 -25
- package/client/src/layout/SlideOut.tsx +77 -0
- package/client/src/layout/ToolbarOverflow.tsx +97 -0
- package/client/src/layout/keepInWindow.ts +216 -0
- package/client/src/layout/layoutRange.ts +129 -0
- package/client/src/main.tsx +2 -0
- package/client/src/phosphor-demo/Demo.tsx +5 -13
- package/client/src/phosphor-demo/demo.css +1 -1
- package/client/src/questions/waitingQuestion.ts +3 -2
- package/client/src/stores/appStore.ts +66 -15
- package/client/src/stores/appStore.types.ts +36 -16
- package/client/src/stores/docEditStore.ts +13 -21
- package/client/src/stores/draftStore.ts +28 -4
- package/client/src/stores/knowledgeDistillStore.ts +4 -2
- package/client/src/stores/mdTuneupStore.ts +10 -5
- package/client/src/stores/notificationChannelsStore.ts +21 -11
- package/client/src/stores/notificationStore.ts +2 -0
- package/client/src/stores/planGenesisStore.ts +67 -0
- package/client/src/stores/recallStore.ts +6 -0
- package/client/src/stores/terminalStore.ts +1 -1
- package/client/src/styles/global.css +72 -0
- package/client/src/styles/matrix.css +7 -0
- package/client/src/themes/apply.ts +3 -3
- package/client/src/themes/bootstrap.ts +3 -0
- package/client/src/utils/activeProject.ts +6 -0
- package/client/src/utils/activityPresentation.ts +51 -0
- package/client/src/utils/browserFamily.ts +22 -0
- package/client/src/utils/chatFileLinks.ts +3 -2
- package/client/src/utils/chatText.ts +14 -6
- package/client/src/utils/checkedJson.ts +11 -0
- package/client/src/utils/checkpointChanges.ts +18 -0
- package/client/src/utils/clusterCreation.ts +39 -0
- package/client/src/utils/clusterNudge.ts +31 -0
- package/client/src/utils/displayMessages.ts +45 -7
- package/client/src/utils/effortDefaults.ts +4 -3
- package/client/src/utils/format.ts +11 -4
- package/client/src/utils/gateArgs.ts +3 -2
- package/client/src/utils/handoffSeeds.ts +13 -0
- package/client/src/utils/historyEvents.ts +21 -12
- package/client/src/utils/homeModel.ts +19 -3
- package/client/src/utils/memberReviewScope.ts +6 -0
- package/client/src/utils/outputNavigation.ts +16 -0
- package/client/src/utils/outputStyleText.ts +8 -0
- package/client/src/utils/publicProject.ts +102 -28
- package/client/src/utils/queuedMessageEdit.ts +40 -0
- package/client/src/utils/requestGeneration.ts +8 -0
- package/client/src/utils/rewindSupport.ts +17 -0
- package/client/src/utils/settingsRequests.ts +36 -0
- package/client/src/utils/settingsResponse.ts +8 -0
- package/client/src/utils/tabStatus.ts +8 -0
- package/client/src/utils/wsSession.ts +12 -5
- package/client/src/vendor/odysseus-editor/editor/clipboard-and-drop.js +9 -9
- package/client/src/vendor/odysseus-editor/editor/keyboard-shortcuts.js +2 -2
- package/client/src/vendor/odysseus-editor/editor/state.js +8 -0
- package/client/src/vendor/odysseus-editor/editor.css +13 -5
- package/client/src/vendor/odysseus-editor/galleryEditor.d.ts +1 -1
- package/client/src/vendor/odysseus-editor/galleryEditor.js +16 -5
- package/client/src/voice/commands.ts +4 -3
- package/client/src/voice/executor.ts +7 -6
- package/client/src/voice/panels.ts +14 -3
- package/client/src/voice/screen.ts +48 -6
- package/client/src/voice/setupAudio.ts +5 -3
- package/client/src/ws/handleServerMessage.ts +176 -38
- package/client/src/ws/operatorQuestions.ts +4 -2
- package/docs/ARCHITECTURE.md +95 -55
- package/docs/ARCHITECTURE_REVIEW.md +47 -0
- package/docs/BACKUP.md +5 -2
- package/docs/CHAT.md +48 -37
- package/docs/CHECKPOINTS.md +43 -16
- package/docs/CLIENT.md +220 -84
- package/docs/CODEX_GPT56_CLUSTER_INCOMPAT.md +1 -1
- package/docs/DEEPSEEK.md +6 -6
- package/docs/DIAGNOSTICS.md +12 -7
- package/docs/EXTENDING.md +52 -48
- package/docs/FEATURES.md +34 -21
- package/docs/GENESIS.md +42 -6
- package/docs/GETTING_STARTED.md +65 -25
- package/docs/GIT_WORKBENCH.md +15 -9
- package/docs/GLOSSARY.md +47 -41
- package/docs/GOTCHAS.md +86 -61
- package/docs/HTTP_API.md +145 -47
- package/docs/INDEX.md +3 -4
- package/docs/KNOWLEDGE.md +6 -4
- package/docs/LOCAL_SERVICES.md +6 -6
- package/docs/LSP.md +4 -3
- package/docs/MCP_REGISTRY.md +16 -12
- package/docs/MEDIA_STUDIO.md +23 -16
- package/docs/NOTIFICATIONS.md +50 -17
- package/docs/OPERATIONS.md +391 -121
- package/docs/OPERATOR_ACTIONS.md +43 -24
- package/docs/OUTPUTS.md +27 -10
- package/docs/PERSISTENCE.md +92 -34
- package/docs/PHOSPHOR_DEMO.md +4 -4
- package/docs/PLAN_OR_BOARD.md +9 -4
- package/docs/PREVIEW_VERIFY.md +10 -8
- package/docs/PRIMITIVES.md +91 -88
- package/docs/PROTOCOL.md +101 -30
- package/docs/PROTOCOL_CLUSTER.md +86 -19
- package/docs/PROTOCOL_PRIMITIVES.md +9 -9
- package/docs/PROVIDERS.md +481 -87
- package/docs/RECALL.md +17 -12
- package/docs/REMOTE_MANAGEMENT.md +69 -8
- package/docs/REPO_LAYOUT.md +1 -1
- package/docs/RESUME_INDEX.md +16 -17
- package/docs/SERVICE_MODE.md +45 -10
- package/docs/SETTINGS.md +61 -8
- package/docs/STORAGE_PLAN.md +54 -49
- package/docs/STRATA.md +4 -4
- package/docs/TASK_LEDGER.md +39 -12
- package/docs/TERMINAL.md +14 -12
- package/docs/THIRD_PARTY.md +1 -3
- package/docs/VOICE.md +17 -7
- package/native/darwin-arm64/manifest.json +1 -1
- package/native/win32-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterCoordination.js +15 -7
- package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +1 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +18 -6
- package/node_modules/@arco/shared/dist/codexChat.d.ts +2 -0
- package/node_modules/@arco/shared/dist/codexChat.js +5 -0
- package/node_modules/@arco/shared/dist/folderName.d.ts +1 -0
- package/node_modules/@arco/shared/dist/folderName.js +18 -0
- package/node_modules/@arco/shared/dist/index.d.ts +6 -0
- package/node_modules/@arco/shared/dist/index.js +6 -0
- package/node_modules/@arco/shared/dist/localRuntimeStatus.d.ts +23 -0
- package/node_modules/@arco/shared/dist/localRuntimeStatus.js +47 -0
- package/node_modules/@arco/shared/dist/notificationTitle.d.ts +9 -0
- package/node_modules/@arco/shared/dist/notificationTitle.js +23 -0
- package/node_modules/@arco/shared/dist/outputStyle.d.ts +10 -0
- package/node_modules/@arco/shared/dist/outputStyle.js +28 -0
- package/node_modules/@arco/shared/dist/outputs.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +2 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +9 -1
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +24 -2
- package/node_modules/@arco/shared/dist/protocol/checkpoints.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +11 -16
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +21 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.js +3 -3
- package/node_modules/@arco/shared/dist/protocol/connections.d.ts +2 -0
- package/node_modules/@arco/shared/dist/protocol/diagnostics.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/genesis.d.ts +9 -0
- package/node_modules/@arco/shared/dist/protocol/mcp.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/mcp.js +8 -5
- package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +2 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +9 -1
- package/node_modules/@arco/shared/dist/protocol/models.js +19 -8
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/notifications.js +15 -3
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/remoteManagement.d.ts +6 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +77 -12
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +16 -4
- package/node_modules/@arco/shared/dist/protocol/settings.js +17 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/usage.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/workers.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +74 -14
- package/node_modules/@arco/shared/dist/protocol/workflows.js +66 -0
- package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +1 -1
- package/node_modules/@arco/shared/dist/publicGuardrails.js +1 -1
- package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +2 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.js +13 -0
- package/node_modules/@arco/shared/dist/shellTool.d.ts +2 -0
- package/node_modules/@arco/shared/dist/shellTool.js +9 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/node_modules/xlsx/LICENSE +201 -0
- package/node_modules/xlsx/dist/cpexcel.js +1506 -0
- package/node_modules/xlsx/package.json +69 -0
- package/node_modules/xlsx/xlsx.js +28103 -0
- package/node_modules/xlsx/xlsx.mjs +28228 -0
- package/package.json +22 -3
- package/scripts/packaging/arco.mjs +4 -3
- package/scripts/packaging/browsers.mjs +366 -0
- package/scripts/packaging/launch.mjs +34 -20
- package/scripts/packaging/services.mjs +1 -1
- package/scripts/packaging/storage.mjs +39 -3
- package/server/dist/appBrowsers.d.ts +45 -0
- package/server/dist/appBrowsers.js +73 -0
- package/server/dist/architectureReview.d.ts +60 -0
- package/server/dist/architectureReview.js +347 -0
- package/server/dist/architectureSkill.d.ts +8 -0
- package/server/dist/architectureSkill.js +70 -0
- package/server/dist/arcoHome.d.ts +1 -0
- package/server/dist/arcoHome.js +43 -3
- package/server/dist/artifactCopy.d.ts +3 -0
- package/server/dist/artifactCopy.js +113 -36
- package/server/dist/atomicFile.d.ts +1 -1
- package/server/dist/atomicFile.js +6 -1
- package/server/dist/attention.d.ts +6 -2
- package/server/dist/attention.js +33 -20
- package/server/dist/auth.d.ts +1 -0
- package/server/dist/auth.js +19 -6
- package/server/dist/authLoginSession.d.ts +2 -0
- package/server/dist/authLoginSession.js +6 -1
- package/server/dist/boundedRead.d.ts +26 -0
- package/server/dist/boundedRead.js +246 -0
- package/server/dist/capabilities.d.ts +10 -6
- package/server/dist/capabilities.js +81 -95
- package/server/dist/catchUp.d.ts +7 -0
- package/server/dist/catchUp.js +20 -1
- package/server/dist/checkedFile.d.ts +5 -0
- package/server/dist/checkedFile.js +138 -0
- package/server/dist/claudeTransport.d.ts +7 -0
- package/server/dist/claudeTransport.js +14 -0
- package/server/dist/cliUpdateDecision.d.ts +34 -0
- package/server/dist/cliUpdateDecision.js +152 -0
- package/server/dist/clusterAutoTurn.d.ts +7 -0
- package/server/dist/clusterAutoTurn.js +54 -7
- package/server/dist/clusterBusyReminder.d.ts +7 -0
- package/server/dist/clusterBusyReminder.js +45 -0
- package/server/dist/clusterDirector.js +7 -3
- package/server/dist/clusterIdleNudger.d.ts +6 -0
- package/server/dist/clusterIdleNudger.js +5 -0
- package/server/dist/clusterMailbox.d.ts +4 -2
- package/server/dist/clusterMailbox.js +104 -24
- package/server/dist/clusterPeerOps.js +11 -23
- package/server/dist/clusterPlanBridge.d.ts +6 -3
- package/server/dist/clusterPlanBridge.js +48 -45
- package/server/dist/clusterPresets.js +46 -32
- package/server/dist/clusterProgress.js +3 -0
- package/server/dist/clusterSnapshots.d.ts +1 -1
- package/server/dist/clusterSnapshots.js +17 -2
- package/server/dist/clusterStore.d.ts +3 -0
- package/server/dist/clusterStore.js +23 -13
- package/server/dist/clusterTurnTools.d.ts +4 -0
- package/server/dist/clusterTurnTools.js +9 -0
- package/server/dist/commandShell.d.ts +56 -0
- package/server/dist/commandShell.js +278 -0
- package/server/dist/compactionCounter.d.ts +6 -0
- package/server/dist/compactionCounter.js +73 -0
- package/server/dist/compactionReport.d.ts +8 -0
- package/server/dist/compactionReport.js +15 -0
- package/server/dist/contentSearch.js +16 -6
- package/server/dist/contextCalibrator.js +7 -2
- package/server/dist/contextEstimator.d.ts +4 -0
- package/server/dist/contextEstimator.js +76 -17
- package/server/dist/contextRefs.d.ts +1 -0
- package/server/dist/contextRefs.js +44 -9
- package/server/dist/conversationActivity.d.ts +3 -0
- package/server/dist/conversationActivity.js +27 -0
- package/server/dist/cursorUsage.js +15 -4
- package/server/dist/defaults/models.md +1 -1
- package/server/dist/diagnostics/checks.js +4 -12
- package/server/dist/diagnostics/executableLookup.d.ts +2 -0
- package/server/dist/diagnostics/executableLookup.js +28 -0
- package/server/dist/diagnostics/modelHealth.js +3 -12
- package/server/dist/diagnostics/supportBundle.js +5 -13
- package/server/dist/eventLog.d.ts +19 -0
- package/server/dist/eventLog.js +299 -99
- package/server/dist/existingClusterMembers.d.ts +1 -0
- package/server/dist/existingClusterMembers.js +9 -0
- package/server/dist/explorerArtifacts.js +46 -12
- package/server/dist/explorerChanged.d.ts +7 -0
- package/server/dist/explorerChanged.js +116 -80
- package/server/dist/explorerDocs.d.ts +11 -0
- package/server/dist/explorerDocs.js +46 -48
- package/server/dist/explorerLaunch.d.ts +4 -0
- package/server/dist/explorerLaunch.js +9 -1
- package/server/dist/fileAccessPolicy.d.ts +21 -0
- package/server/dist/fileAccessPolicy.js +95 -5
- package/server/dist/fileContent/decodeSlots.d.ts +1 -0
- package/server/dist/fileContent/decodeSlots.js +50 -0
- package/server/dist/fileContent/detect.d.ts +2 -0
- package/server/dist/fileContent/detect.js +55 -0
- package/server/dist/fileContent/externalImage.d.ts +3 -0
- package/server/dist/fileContent/externalImage.js +68 -0
- package/server/dist/fileContent/icons.d.ts +4 -0
- package/server/dist/fileContent/icons.js +58 -0
- package/server/dist/fileContent/images.d.ts +15 -0
- package/server/dist/fileContent/images.js +182 -0
- package/server/dist/fileContent/legacyText.d.ts +3 -0
- package/server/dist/fileContent/legacyText.js +19 -0
- package/server/dist/fileContent/notebook.d.ts +2 -0
- package/server/dist/fileContent/notebook.js +54 -0
- package/server/dist/fileContent/office.d.ts +3 -0
- package/server/dist/fileContent/office.js +349 -0
- package/server/dist/fileContent/pdf.d.ts +2 -0
- package/server/dist/fileContent/pdf.js +76 -0
- package/server/dist/fileContent/pngRows.d.ts +4 -0
- package/server/dist/fileContent/pngRows.js +118 -0
- package/server/dist/fileContent/svg.d.ts +3 -0
- package/server/dist/fileContent/svg.js +60 -0
- package/server/dist/fileContent/types.d.ts +8 -0
- package/server/dist/fileContent/types.js +43 -0
- package/server/dist/fileContent/worker.d.ts +1 -0
- package/server/dist/fileContent/worker.js +68 -0
- package/server/dist/fileContent.d.ts +55 -0
- package/server/dist/fileContent.js +81 -0
- package/server/dist/fileContextReceipts.d.ts +12 -0
- package/server/dist/fileContextReceipts.js +53 -0
- package/server/dist/fileFetch.d.ts +17 -0
- package/server/dist/fileFetch.js +191 -0
- package/server/dist/fileVersion.d.ts +10 -0
- package/server/dist/fileVersion.js +43 -0
- package/server/dist/genesis/creative.js +28 -36
- package/server/dist/genesis/prompts.js +4 -0
- package/server/dist/genesis/savePlan.d.ts +5 -0
- package/server/dist/genesis/savePlan.js +49 -0
- package/server/dist/genesis/stages.js +4 -4
- package/server/dist/gitDiff.js +25 -5
- package/server/dist/gitSnapshots.d.ts +18 -0
- package/server/dist/gitSnapshots.js +280 -149
- package/server/dist/gitWorking.js +15 -13
- package/server/dist/github.js +5 -1
- package/server/dist/goalRun.d.ts +1 -1
- package/server/dist/goalRun.js +7 -5
- package/server/dist/handoffHistory.d.ts +26 -0
- package/server/dist/handoffHistory.js +80 -0
- package/server/dist/handoffHistoryProtocol.d.ts +59 -0
- package/server/dist/handoffHistoryProtocol.js +20 -0
- package/server/dist/handoffHistorySupport.d.ts +2 -0
- package/server/dist/handoffHistorySupport.js +11 -0
- package/server/dist/handoffHistoryTool.d.ts +29 -0
- package/server/dist/handoffHistoryTool.js +235 -0
- package/server/dist/handoffPrompts.js +6 -4
- package/server/dist/handoffReplay.d.ts +9 -0
- package/server/dist/handoffReplay.js +14 -0
- package/server/dist/handoffSeedCache.d.ts +3 -0
- package/server/dist/handoffSeedCache.js +26 -0
- package/server/dist/http/appBrowserRoutes.d.ts +3 -0
- package/server/dist/http/appBrowserRoutes.js +16 -0
- package/server/dist/http/architectureReviewRoutes.d.ts +3 -0
- package/server/dist/http/architectureReviewRoutes.js +117 -0
- package/server/dist/http/clusterRoutes.js +13 -1
- package/server/dist/http/clusterSnapshotRoutes.js +8 -3
- package/server/dist/http/connectionsRoutes.js +3 -1
- package/server/dist/http/diffRoutes.js +37 -3
- package/server/dist/http/explorerRoot.d.ts +3 -0
- package/server/dist/http/explorerRoot.js +22 -0
- package/server/dist/http/explorerRoutes.js +65 -12
- package/server/dist/http/fileRead.js +2 -3
- package/server/dist/http/fileWriteRoutes.js +4 -3
- package/server/dist/http/gitCompareRoutes.js +4 -6
- package/server/dist/http/gitDiffRoutes.js +3 -3
- package/server/dist/http/gitOpRoutes.js +3 -5
- package/server/dist/http/gitWorktreeRoutes.js +3 -3
- package/server/dist/http/handoffHistoryRoutes.d.ts +4 -0
- package/server/dist/http/handoffHistoryRoutes.js +59 -0
- package/server/dist/http/imageWriteRoutes.js +6 -2
- package/server/dist/http/knowledgeRoutes.js +2 -0
- package/server/dist/http/mediaOpsRoutes.js +2 -3
- package/server/dist/http/originGuard.d.ts +1 -1
- package/server/dist/http/originGuard.js +95 -12
- package/server/dist/http/outputRoutes.js +31 -6
- package/server/dist/http/projectBinding.d.ts +3 -0
- package/server/dist/http/projectBinding.js +133 -0
- package/server/dist/http/providerThrottleRoutes.d.ts +8 -0
- package/server/dist/http/providerThrottleRoutes.js +96 -0
- package/server/dist/http/publicProjectRoutes.js +50 -9
- package/server/dist/http/readConfinement.d.ts +2 -1
- package/server/dist/http/readConfinement.js +17 -15
- package/server/dist/http/router.js +224 -62
- package/server/dist/http/searchRoutes.js +4 -4
- package/server/dist/http/sessionTransport.d.ts +2 -0
- package/server/dist/http/sessionTransport.js +32 -0
- package/server/dist/http/skillManagementRoutes.d.ts +5 -0
- package/server/dist/http/skillManagementRoutes.js +166 -0
- package/server/dist/http/storageRoutes.js +20 -6
- package/server/dist/http/utilityAgentRoutes.js +27 -5
- package/server/dist/http/workflowDataRoutes.js +76 -15
- package/server/dist/http/writeConfinement.d.ts +5 -3
- package/server/dist/http/writeConfinement.js +37 -11
- package/server/dist/http/wsAuth.d.ts +3 -2
- package/server/dist/http/wsAuth.js +26 -8
- package/server/dist/imageTokens.d.ts +7 -0
- package/server/dist/imageTokens.js +85 -0
- package/server/dist/index.js +288 -179
- package/server/dist/inputDeliveryHistory.d.ts +21 -0
- package/server/dist/inputDeliveryHistory.js +146 -0
- package/server/dist/keepStore.d.ts +4 -0
- package/server/dist/keepStore.js +48 -0
- package/server/dist/knowledge/store.js +28 -20
- package/server/dist/legacyTarRestore.d.ts +1 -0
- package/server/dist/legacyTarRestore.js +240 -0
- package/server/dist/llamacppCatalog.d.ts +8 -1
- package/server/dist/llamacppCatalog.js +65 -13
- package/server/dist/localRuntimeStatus.d.ts +35 -0
- package/server/dist/localRuntimeStatus.js +136 -0
- package/server/dist/lsp/client.js +28 -9
- package/server/dist/lsp/servers.js +2 -2
- package/server/dist/managedPath.d.ts +2 -0
- package/server/dist/managedPath.js +47 -0
- package/server/dist/management/hubGuard.d.ts +23 -0
- package/server/dist/management/hubGuard.js +118 -0
- package/server/dist/management/hubLink.d.ts +4 -1
- package/server/dist/management/hubLink.js +8 -1
- package/server/dist/management/initHubLink.d.ts +12 -0
- package/server/dist/management/initHubLink.js +44 -22
- package/server/dist/manualCompactCapability.d.ts +2 -0
- package/server/dist/manualCompactCapability.js +7 -0
- package/server/dist/mcp/arcoMcpServer.js +4 -0
- package/server/dist/mcp/client.d.ts +4 -4
- package/server/dist/mcp/client.js +31 -10
- package/server/dist/mcp/clusterMcpLoopback.d.ts +4 -0
- package/server/dist/mcp/clusterMcpLoopback.js +21 -1
- package/server/dist/mcp/clusterMcpTools.js +25 -26
- package/server/dist/mcp/fileContent.d.ts +8 -0
- package/server/dist/mcp/fileContent.js +55 -0
- package/server/dist/mcp/fileMcpServer.d.ts +1 -0
- package/server/dist/mcp/fileMcpServer.js +13 -0
- package/server/dist/mcp/fileMcpTools.d.ts +2 -0
- package/server/dist/mcp/fileMcpTools.js +54 -0
- package/server/dist/mcp/handoffHistoryMcpTools.d.ts +3 -0
- package/server/dist/mcp/handoffHistoryMcpTools.js +27 -0
- package/server/dist/mcp/mcpConfigWriter.d.ts +5 -0
- package/server/dist/mcp/mcpConfigWriter.js +44 -12
- package/server/dist/mcp/planMcpTools.d.ts +6 -14
- package/server/dist/mcp/planMcpTools.js +6 -250
- package/server/dist/mcp/planReadMcpServer.d.ts +1 -0
- package/server/dist/mcp/planReadMcpServer.js +19 -0
- package/server/dist/mcp/registry.js +44 -38
- package/server/dist/mcp/registryWiring.js +4 -5
- package/server/dist/media/demucs.d.ts +5 -0
- package/server/dist/media/demucs.js +16 -4
- package/server/dist/media/ffmpeg.js +24 -16
- package/server/dist/media/scratch.js +24 -9
- package/server/dist/noticeSource.d.ts +2 -0
- package/server/dist/noticeSource.js +11 -0
- package/server/dist/notifications.d.ts +1 -0
- package/server/dist/notifications.js +7 -3
- package/server/dist/npmPlatformResolve.d.ts +9 -3
- package/server/dist/npmPlatformResolve.js +24 -5
- package/server/dist/ntfyTransport.d.ts +2 -1
- package/server/dist/ntfyTransport.js +15 -4
- package/server/dist/outputGrants.d.ts +9 -0
- package/server/dist/outputGrants.js +63 -0
- package/server/dist/outputs.js +78 -13
- package/server/dist/peerRecipientContext.js +22 -5
- package/server/dist/planStore.d.ts +11 -2
- package/server/dist/planStore.js +236 -64
- package/server/dist/planTools.d.ts +41 -0
- package/server/dist/planTools.js +259 -0
- package/server/dist/previewAutoDetect.js +31 -23
- package/server/dist/previewPortConfiguration.d.ts +2 -0
- package/server/dist/previewPortConfiguration.js +32 -0
- package/server/dist/previewPorts.d.ts +1 -0
- package/server/dist/previewPorts.js +3 -0
- package/server/dist/previewProxy.d.ts +30 -9
- package/server/dist/previewProxy.js +226 -183
- package/server/dist/primaryBackgroundTracker.d.ts +15 -2
- package/server/dist/primaryBackgroundTracker.js +172 -63
- package/server/dist/primitives/exportContext.d.ts +3 -0
- package/server/dist/primitives/exportContext.js +77 -15
- package/server/dist/primitives/localFileContext.d.ts +3 -0
- package/server/dist/primitives/localFileContext.js +38 -0
- package/server/dist/primitives/reviewContent.d.ts +2 -0
- package/server/dist/primitives/reviewContent.js +53 -6
- package/server/dist/primitives/runCompare.js +1 -1
- package/server/dist/primitives/runDocEdit.js +1 -1
- package/server/dist/primitives/runMdTuneup.d.ts +2 -1
- package/server/dist/primitives/runMdTuneup.js +20 -34
- package/server/dist/primitives/runResearch.js +1 -1
- package/server/dist/primitives/runReviewer.d.ts +2 -0
- package/server/dist/primitives/runReviewer.js +5 -2
- package/server/dist/primitives/seedWorker.d.ts +12 -2
- package/server/dist/primitives/seedWorker.js +27 -12
- package/server/dist/project/orchestrationProposals.d.ts +1 -0
- package/server/dist/project/orchestrationProposals.js +5 -1
- package/server/dist/project/taskLedger.d.ts +1 -0
- package/server/dist/project/taskLedger.js +17 -11
- package/server/dist/projectGlob.d.ts +1 -0
- package/server/dist/projectGlob.js +9 -0
- package/server/dist/projectIgnore.d.ts +1 -0
- package/server/dist/projectIgnore.js +24 -0
- package/server/dist/projectScan.d.ts +24 -0
- package/server/dist/projectScan.js +101 -0
- package/server/dist/projectStateIgnore.d.ts +13 -0
- package/server/dist/projectStateIgnore.js +36 -1
- package/server/dist/projects.d.ts +11 -3
- package/server/dist/projects.js +141 -40
- package/server/dist/prompts.js +7 -8
- package/server/dist/proportionateTestingSkill.d.ts +7 -0
- package/server/dist/proportionateTestingSkill.js +32 -0
- package/server/dist/providerConversation.d.ts +9 -0
- package/server/dist/providerConversation.js +80 -0
- package/server/dist/providers/attachmentLabels.d.ts +4 -0
- package/server/dist/providers/attachmentLabels.js +9 -0
- package/server/dist/providers/attachments.d.ts +1 -3
- package/server/dist/providers/attachments.js +58 -173
- package/server/dist/providers/claude-native/apiEndpoint.d.ts +2 -0
- package/server/dist/providers/claude-native/apiEndpoint.js +8 -0
- package/server/dist/providers/claude-native/appendOnlyPrefix.js +21 -1
- package/server/dist/providers/claude-native/catalog.js +17 -15
- package/server/dist/providers/claude-native/contentBlocks.d.ts +22 -2
- package/server/dist/providers/claude-native/contentBlocks.js +31 -8
- package/server/dist/providers/claude-native/contextBudget.d.ts +0 -4
- package/server/dist/providers/claude-native/contextBudget.js +0 -2
- package/server/dist/providers/claude-native/editApply.js +6 -1
- package/server/dist/providers/claude-native/fileContent.d.ts +15 -0
- package/server/dist/providers/claude-native/fileContent.js +120 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-cargo-test.js +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-jest-vitest.js +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-pytest.js +2 -0
- package/server/dist/providers/claude-native/filterConfigs/index.js +2 -1
- package/server/dist/providers/claude-native/foldDigest.js +10 -2
- package/server/dist/providers/claude-native/gateReview.d.ts +1 -1
- package/server/dist/providers/claude-native/gateReview.js +0 -0
- package/server/dist/providers/claude-native/hookIf.d.ts +28 -0
- package/server/dist/providers/claude-native/hookIf.js +590 -0
- package/server/dist/providers/claude-native/hooks.d.ts +77 -7
- package/server/dist/providers/claude-native/hooks.js +344 -52
- package/server/dist/providers/claude-native/imageRead.d.ts +15 -0
- package/server/dist/providers/claude-native/imageRead.js +108 -0
- package/server/dist/providers/claude-native/index.d.ts +4 -1
- package/server/dist/providers/claude-native/index.js +32 -2
- package/server/dist/providers/claude-native/mediaLimits.d.ts +6 -0
- package/server/dist/providers/claude-native/mediaLimits.js +15 -0
- package/server/dist/providers/claude-native/mediaRetention.d.ts +11 -0
- package/server/dist/providers/claude-native/mediaRetention.js +66 -0
- package/server/dist/providers/claude-native/mediaRetirementNotice.d.ts +1 -0
- package/server/dist/providers/claude-native/mediaRetirementNotice.js +12 -0
- package/server/dist/providers/claude-native/modelParams.d.ts +6 -0
- package/server/dist/providers/claude-native/modelParams.js +21 -3
- package/server/dist/providers/claude-native/oauth.js +9 -8
- package/server/dist/providers/claude-native/outputAccumulator.d.ts +2 -0
- package/server/dist/providers/claude-native/outputAccumulator.js +29 -18
- package/server/dist/providers/claude-native/peerTools.js +3 -158
- package/server/dist/providers/claude-native/pretoolGuards.js +92 -9
- package/server/dist/providers/claude-native/registryTools.js +4 -2
- package/server/dist/providers/claude-native/resumeSummary.d.ts +23 -2
- package/server/dist/providers/claude-native/resumeSummary.js +135 -28
- package/server/dist/providers/claude-native/retainedContext.d.ts +4 -0
- package/server/dist/providers/claude-native/retainedContext.js +20 -0
- package/server/dist/providers/claude-native/sandboxExecutor.js +26 -19
- package/server/dist/providers/claude-native/taskAdmission.d.ts +21 -0
- package/server/dist/providers/claude-native/taskAdmission.js +75 -0
- package/server/dist/providers/claude-native/toolChecks.d.ts +38 -0
- package/server/dist/providers/claude-native/toolChecks.js +96 -0
- package/server/dist/providers/claude-native/toolPosture.js +5 -3
- package/server/dist/providers/claude-native/toolResultEviction.d.ts +4 -3
- package/server/dist/providers/claude-native/toolResultEviction.js +18 -29
- package/server/dist/providers/claude-native/tools.d.ts +17 -4
- package/server/dist/providers/claude-native/tools.js +248 -135
- package/server/dist/providers/claude-native/usageContext.d.ts +30 -0
- package/server/dist/providers/claude-native/usageContext.js +70 -0
- package/server/dist/providers/claude-native/wireFingerprint.d.ts +2 -2
- package/server/dist/providers/claude-native/wireFingerprint.js +2 -2
- package/server/dist/providers/claude-native/worker.d.ts +64 -1
- package/server/dist/providers/claude-native/worker.js +1137 -330
- package/server/dist/providers/claude-native/workerHelpers.d.ts +13 -0
- package/server/dist/providers/claude-native/workerHelpers.js +117 -6
- package/server/dist/providers/claude-native/workspaceFacts.js +2 -2
- package/server/dist/providers/claude.d.ts +1 -0
- package/server/dist/providers/claude.js +69 -85
- package/server/dist/providers/clusterTaskToolDefinitions.d.ts +11 -0
- package/server/dist/providers/clusterTaskToolDefinitions.js +161 -0
- package/server/dist/providers/codex-appserver/catalog.js +26 -20
- package/server/dist/providers/codex-appserver/index.js +10 -3
- package/server/dist/providers/codex-appserver/jsonRpc.d.ts +2 -1
- package/server/dist/providers/codex-appserver/jsonRpc.js +11 -3
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.js +30 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +5 -0
- package/server/dist/providers/codex-appserver/worker.js +128 -85
- package/server/dist/providers/codex.js +55 -58
- package/server/dist/providers/codexChatBoundary.d.ts +11 -0
- package/server/dist/providers/codexChatBoundary.js +60 -0
- package/server/dist/providers/codexCodeMode.js +2 -2
- package/server/dist/providers/codexContextWindow.js +2 -2
- package/server/dist/providers/codexHome.d.ts +1 -0
- package/server/dist/providers/codexHome.js +6 -0
- package/server/dist/providers/codexImageTool.d.ts +6 -0
- package/server/dist/providers/codexImageTool.js +21 -0
- package/server/dist/providers/codexVersion.d.ts +1 -0
- package/server/dist/providers/codexVersion.js +14 -0
- package/server/dist/providers/codexWebSearch.d.ts +2 -0
- package/server/dist/providers/codexWebSearch.js +4 -0
- package/server/dist/providers/cursor/acpJsonRpc.d.ts +1 -0
- package/server/dist/providers/cursor/acpJsonRpc.js +3 -1
- package/server/dist/providers/cursor/authState.d.ts +10 -0
- package/server/dist/providers/cursor/authState.js +78 -0
- package/server/dist/providers/cursor/catalog.js +22 -14
- package/server/dist/providers/cursor/chatSandbox.d.ts +11 -0
- package/server/dist/providers/cursor/chatSandbox.js +81 -0
- package/server/dist/providers/cursor/filePlugin.d.ts +4 -0
- package/server/dist/providers/cursor/filePlugin.js +31 -0
- package/server/dist/providers/cursor/index.d.ts +1 -0
- package/server/dist/providers/cursor/index.js +30 -4
- package/server/dist/providers/cursor/modelMap.d.ts +35 -0
- package/server/dist/providers/cursor/modelMap.js +180 -0
- package/server/dist/providers/cursor/print.js +95 -30
- package/server/dist/providers/cursor/worker.d.ts +4 -1
- package/server/dist/providers/cursor/worker.js +169 -89
- package/server/dist/providers/errorClassifier.js +6 -2
- package/server/dist/providers/handoffHistoryBinding.d.ts +11 -0
- package/server/dist/providers/handoffHistoryBinding.js +43 -0
- package/server/dist/providers/index.d.ts +1 -1
- package/server/dist/providers/index.js +10 -5
- package/server/dist/providers/llamacpp.d.ts +1 -0
- package/server/dist/providers/llamacpp.js +102 -192
- package/server/dist/providers/llamacppManager.d.ts +5 -0
- package/server/dist/providers/llamacppManager.js +68 -32
- package/server/dist/providers/llamacppVersion.d.ts +1 -0
- package/server/dist/providers/llamacppVersion.js +5 -0
- package/server/dist/providers/lmstudio.d.ts +3 -3
- package/server/dist/providers/lmstudio.js +133 -207
- package/server/dist/providers/localFileMedia.d.ts +25 -0
- package/server/dist/providers/localFileMedia.js +302 -0
- package/server/dist/providers/localMcp.d.ts +17 -0
- package/server/dist/providers/localMcp.js +85 -0
- package/server/dist/providers/localShellLifecycle.d.ts +7 -0
- package/server/dist/providers/localShellLifecycle.js +33 -0
- package/server/dist/providers/localToolDispatch.d.ts +28 -0
- package/server/dist/providers/localToolDispatch.js +90 -0
- package/server/dist/providers/ollama.d.ts +2 -1
- package/server/dist/providers/ollama.js +182 -184
- package/server/dist/providers/ollamaDurableCompaction.js +5 -4
- package/server/dist/providers/ollamaExecutionHistory.d.ts +1 -1
- package/server/dist/providers/ollamaExecutionHistory.js +55 -14
- package/server/dist/providers/ollamaFencedTools.js +10 -11
- package/server/dist/providers/ollamaResilience.js +9 -13
- package/server/dist/providers/ollamaTokens.js +3 -4
- package/server/dist/providers/ollamaToolSubset.d.ts +2 -0
- package/server/dist/providers/ollamaToolSubset.js +11 -40
- package/server/dist/providers/ollamaTools.d.ts +13 -0
- package/server/dist/providers/ollamaTools.js +225 -219
- package/server/dist/providers/outputStyle.d.ts +2 -1
- package/server/dist/providers/outputStyle.js +70 -76
- package/server/dist/providers/providerFileContent.d.ts +40 -0
- package/server/dist/providers/providerFileContent.js +151 -0
- package/server/dist/providers/renderedTranscript.d.ts +1 -0
- package/server/dist/providers/renderedTranscript.js +3 -0
- package/server/dist/providers/requestDeadline.d.ts +1 -0
- package/server/dist/providers/requestDeadline.js +26 -0
- package/server/dist/providers/sessionScope.d.ts +2 -0
- package/server/dist/providers/sessionScope.js +8 -0
- package/server/dist/providers/types.d.ts +1 -0
- package/server/dist/publicProject.d.ts +10 -2
- package/server/dist/publicProject.js +59 -13
- package/server/dist/publicProjectChoice.d.ts +4 -0
- package/server/dist/publicProjectChoice.js +46 -0
- package/server/dist/quota.d.ts +10 -7
- package/server/dist/quota.js +49 -19
- package/server/dist/recall/search.js +9 -32
- package/server/dist/recall/transcriptSearch.d.ts +4 -0
- package/server/dist/recall/transcriptSearch.js +29 -0
- package/server/dist/recentFilesLedger.js +9 -7
- package/server/dist/recentProjectActivity.d.ts +11 -0
- package/server/dist/recentProjectActivity.js +69 -0
- package/server/dist/scanDeadline.d.ts +4 -0
- package/server/dist/scanDeadline.js +48 -0
- package/server/dist/searchText.d.ts +1 -0
- package/server/dist/searchText.js +22 -0
- package/server/dist/server/broadcast.d.ts +2 -2
- package/server/dist/server/broadcast.js +130 -58
- package/server/dist/sessionJsonl.js +45 -19
- package/server/dist/settings.d.ts +6 -1
- package/server/dist/settings.js +183 -56
- package/server/dist/skillManagement.d.ts +125 -0
- package/server/dist/skillManagement.js +709 -0
- package/server/dist/skillMutation.d.ts +1 -0
- package/server/dist/skillMutation.js +6 -0
- package/server/dist/skills.d.ts +75 -1
- package/server/dist/skills.js +254 -75
- package/server/dist/smartPickup.d.ts +1 -0
- package/server/dist/smartPickup.js +2 -1
- package/server/dist/smartPickupAdapters.d.ts +2 -0
- package/server/dist/smartPickupAdapters.js +49 -13
- package/server/dist/smartPickupObserver.js +45 -8
- package/server/dist/storageActions.d.ts +2 -2
- package/server/dist/storageArchive.js +55 -24
- package/server/dist/storageRoot.d.ts +5 -0
- package/server/dist/storageRoot.js +38 -0
- package/server/dist/storageTurnWatch.d.ts +6 -0
- package/server/dist/storageTurnWatch.js +36 -0
- package/server/dist/taskDispatcher.js +69 -41
- package/server/dist/templates/store.js +75 -59
- package/server/dist/terminal/ptyManager.d.ts +3 -1
- package/server/dist/terminal/ptyManager.js +44 -37
- package/server/dist/terminal/ptyPidRegistry.d.ts +4 -2
- package/server/dist/terminal/ptyPidRegistry.js +9 -63
- package/server/dist/thirdPartySkills.d.ts +4 -0
- package/server/dist/thirdPartySkills.js +80 -0
- package/server/dist/toolPath.d.ts +1 -0
- package/server/dist/toolPath.js +38 -0
- package/server/dist/toolboxWorkflow.js +2 -1
- package/server/dist/uploadImages.d.ts +6 -0
- package/server/dist/uploadImages.js +155 -0
- package/server/dist/voice/computerContext.js +2 -0
- package/server/dist/voice/conditionSchema.d.ts +1 -0
- package/server/dist/voice/conditionSchema.js +3 -1
- package/server/dist/voice/conditions.js +1 -1
- package/server/dist/workers/StreamParser.d.ts +3 -0
- package/server/dist/workers/StreamParser.js +45 -11
- package/server/dist/workers/WorkerManager.d.ts +10 -2
- package/server/dist/workers/WorkerManager.js +19 -18
- package/server/dist/workers/durablePidRegistry.d.ts +53 -0
- package/server/dist/workers/durablePidRegistry.js +289 -0
- package/server/dist/workers/limits.js +7 -3
- package/server/dist/workers/pidRegistry.d.ts +6 -9
- package/server/dist/workers/pidRegistry.js +13 -101
- package/server/dist/workers/processActivity.d.ts +6 -0
- package/server/dist/workers/processActivity.js +13 -0
- package/server/dist/workers/processKill.d.ts +30 -0
- package/server/dist/workers/processKill.js +174 -0
- package/server/dist/workers/processStartTime.d.ts +21 -5
- package/server/dist/workers/processStartTime.js +127 -50
- package/server/dist/workflowMeta.d.ts +26 -13
- package/server/dist/workflowMeta.js +173 -15
- package/server/dist/workflowStore.d.ts +1 -0
- package/server/dist/workflowStore.js +194 -23
- package/server/dist/workflows/modelTitles.js +4 -3
- package/server/dist/workflows/sessionIndex.d.ts +2 -0
- package/server/dist/workflows/sessionIndex.js +24 -2
- package/server/dist/workflows/types.d.ts +16 -5
- package/server/dist/workspace.d.ts +1 -0
- package/server/dist/workspace.js +5 -0
- package/server/dist/ws/afterTurn.d.ts +9 -0
- package/server/dist/ws/afterTurn.js +25 -0
- package/server/dist/ws/clusterHandlers.d.ts +7 -2
- package/server/dist/ws/clusterHandlers.js +361 -407
- package/server/dist/ws/clusterMembers.d.ts +42 -0
- package/server/dist/ws/clusterMembers.js +165 -0
- package/server/dist/ws/compactHandlers.d.ts +1 -1
- package/server/dist/ws/compactHandlers.js +49 -32
- package/server/dist/ws/gateHandlers.js +2 -1
- package/server/dist/ws/genesisHandlers.js +171 -116
- package/server/dist/ws/handoffHandlers.d.ts +3 -1
- package/server/dist/ws/handoffHandlers.js +380 -199
- package/server/dist/ws/operatorQuestionHandlers.d.ts +2 -1
- package/server/dist/ws/operatorQuestionHandlers.js +9 -1
- package/server/dist/ws/previewCaptureHandlers.js +1 -4
- package/server/dist/ws/taskLedgerHandlers.d.ts +6 -1
- package/server/dist/ws/taskLedgerHandlers.js +28 -12
- package/server/dist/ws/taskLifecycle.d.ts +15 -0
- package/server/dist/ws/taskLifecycle.js +39 -0
- package/server/dist/ws/turnEngine.d.ts +29 -12
- package/server/dist/ws/turnEngine.js +1860 -1748
- package/server/dist/ws/turnPrompt.d.ts +17 -0
- package/server/dist/ws/turnPrompt.js +47 -0
- package/server/dist/ws/turnSettings.d.ts +41 -0
- package/server/dist/ws/turnSettings.js +61 -0
- package/server/dist/ws/updatePrimaryConfig.js +63 -40
- package/server/dist/ws/workflowHandlers.d.ts +2 -1
- package/server/dist/ws/workflowHandlers.js +220 -180
- package/server/package.json +1 -1
- package/server/src/appBrowsers.ts +95 -0
- package/server/src/architectureReview.ts +327 -0
- package/server/src/architectureSkill.ts +71 -0
- package/server/src/arcoHome.ts +42 -3
- package/server/src/artifactCopy.ts +90 -24
- package/server/src/atomicFile.ts +6 -1
- package/server/src/attention.ts +29 -21
- package/server/src/auth.ts +20 -6
- package/server/src/authLoginSession.ts +7 -2
- package/server/src/boundedRead.ts +172 -0
- package/server/src/capabilities.ts +81 -105
- package/server/src/catchUp.ts +19 -2
- package/server/src/checkedFile.ts +90 -0
- package/server/src/claudeTransport.ts +14 -0
- package/server/src/cliUpdateDecision.ts +159 -0
- package/server/src/clusterAutoTurn.ts +55 -7
- package/server/src/clusterBusyReminder.ts +45 -0
- package/server/src/clusterDirector.ts +7 -3
- package/server/src/clusterIdleNudger.ts +6 -0
- package/server/src/clusterMailbox.ts +96 -26
- package/server/src/clusterPeerOps.ts +8 -21
- package/server/src/clusterPlanBridge.ts +37 -45
- package/server/src/clusterPresets.ts +44 -31
- package/server/src/clusterProgress.ts +3 -0
- package/server/src/clusterSnapshots.ts +16 -2
- package/server/src/clusterStore.ts +25 -14
- package/server/src/clusterTurnTools.ts +11 -0
- package/server/src/commandShell.ts +287 -0
- package/server/src/compactionCounter.ts +69 -0
- package/server/src/compactionReport.ts +20 -0
- package/server/src/contentSearch.ts +8 -3
- package/server/src/contextCalibrator.ts +6 -1
- package/server/src/contextEstimator.ts +71 -16
- package/server/src/contextRefs.ts +41 -11
- package/server/src/conversationActivity.ts +26 -0
- package/server/src/cursorUsage.ts +13 -3
- package/server/src/defaults/models.md +1 -1
- package/server/src/diagnostics/checks.ts +4 -11
- package/server/src/diagnostics/executableLookup.ts +20 -0
- package/server/src/diagnostics/modelHealth.ts +3 -11
- package/server/src/diagnostics/supportBundle.ts +5 -13
- package/server/src/eventLog.ts +228 -81
- package/server/src/existingClusterMembers.ts +9 -0
- package/server/src/explorerArtifacts.ts +27 -10
- package/server/src/explorerChanged.ts +99 -67
- package/server/src/explorerDocs.ts +37 -31
- package/server/src/explorerLaunch.ts +10 -2
- package/server/src/fileAccessPolicy.ts +88 -5
- package/server/src/fileContent/decodeSlots.ts +31 -0
- package/server/src/fileContent/detect.ts +28 -0
- package/server/src/fileContent/externalImage.ts +49 -0
- package/server/src/fileContent/icons.ts +37 -0
- package/server/src/fileContent/images.ts +140 -0
- package/server/src/fileContent/legacyText.ts +16 -0
- package/server/src/fileContent/notebook.ts +37 -0
- package/server/src/fileContent/office.ts +234 -0
- package/server/src/fileContent/pdf.ts +59 -0
- package/server/src/fileContent/pngRows.ts +54 -0
- package/server/src/fileContent/svg.ts +42 -0
- package/server/src/fileContent/types.ts +39 -0
- package/server/src/fileContent/worker.ts +43 -0
- package/server/src/fileContent.ts +108 -0
- package/server/src/fileContextReceipts.ts +44 -0
- package/server/src/fileFetch.ts +167 -0
- package/server/src/fileVersion.ts +36 -0
- package/server/src/genesis/creative.ts +27 -33
- package/server/src/genesis/prompts.ts +3 -0
- package/server/src/genesis/savePlan.ts +45 -0
- package/server/src/genesis/stages.ts +4 -4
- package/server/src/gitDiff.ts +20 -5
- package/server/src/gitSnapshots.ts +288 -191
- package/server/src/gitWorking.ts +11 -11
- package/server/src/github.ts +3 -1
- package/server/src/goalRun.ts +7 -4
- package/server/src/handoffHistory.ts +89 -0
- package/server/src/handoffHistoryProtocol.ts +20 -0
- package/server/src/handoffHistorySupport.ts +10 -0
- package/server/src/handoffHistoryTool.ts +192 -0
- package/server/src/handoffPrompts.ts +6 -4
- package/server/src/handoffReplay.ts +20 -0
- package/server/src/handoffSeedCache.ts +22 -0
- package/server/src/http/appBrowserRoutes.ts +17 -0
- package/server/src/http/architectureReviewRoutes.ts +86 -0
- package/server/src/http/clusterRoutes.ts +13 -1
- package/server/src/http/clusterSnapshotRoutes.ts +8 -3
- package/server/src/http/connectionsRoutes.ts +5 -1
- package/server/src/http/diffRoutes.ts +36 -3
- package/server/src/http/explorerRoot.ts +20 -0
- package/server/src/http/explorerRoutes.ts +59 -12
- package/server/src/http/fileRead.ts +2 -1
- package/server/src/http/fileWriteRoutes.ts +3 -2
- package/server/src/http/gitCompareRoutes.ts +4 -5
- package/server/src/http/gitDiffRoutes.ts +3 -2
- package/server/src/http/gitOpRoutes.ts +3 -4
- package/server/src/http/gitWorktreeRoutes.ts +3 -2
- package/server/src/http/handoffHistoryRoutes.ts +42 -0
- package/server/src/http/imageWriteRoutes.ts +5 -1
- package/server/src/http/knowledgeRoutes.ts +2 -0
- package/server/src/http/mediaOpsRoutes.ts +2 -1
- package/server/src/http/originGuard.ts +71 -14
- package/server/src/http/outputRoutes.ts +26 -5
- package/server/src/http/projectBinding.ts +108 -0
- package/server/src/http/providerThrottleRoutes.ts +76 -0
- package/server/src/http/publicProjectRoutes.ts +40 -8
- package/server/src/http/readConfinement.ts +16 -9
- package/server/src/http/router.ts +173 -60
- package/server/src/http/searchRoutes.ts +4 -4
- package/server/src/http/sessionTransport.ts +27 -0
- package/server/src/http/skillManagementRoutes.ts +120 -0
- package/server/src/http/storageRoutes.ts +19 -6
- package/server/src/http/utilityAgentRoutes.ts +19 -5
- package/server/src/http/workflowDataRoutes.ts +69 -17
- package/server/src/http/writeConfinement.ts +31 -12
- package/server/src/http/wsAuth.ts +27 -9
- package/server/src/imageTokens.ts +60 -0
- package/server/src/index.ts +270 -179
- package/server/src/inputDeliveryHistory.ts +122 -0
- package/server/src/keepStore.ts +37 -0
- package/server/src/knowledge/store.ts +27 -19
- package/server/src/legacyTarRestore.ts +177 -0
- package/server/src/llamacppCatalog.ts +47 -12
- package/server/src/localRuntimeStatus.ts +121 -0
- package/server/src/lsp/client.ts +19 -11
- package/server/src/lsp/servers.ts +2 -2
- package/server/src/managedPath.ts +38 -0
- package/server/src/management/hubGuard.ts +135 -0
- package/server/src/management/hubLink.ts +8 -2
- package/server/src/management/initHubLink.ts +45 -37
- package/server/src/manualCompactCapability.ts +8 -0
- package/server/src/mcp/arcoMcpServer.ts +4 -0
- package/server/src/mcp/client.ts +28 -11
- package/server/src/mcp/clusterMcpLoopback.ts +27 -1
- package/server/src/mcp/clusterMcpTools.ts +24 -25
- package/server/src/mcp/fileContent.ts +34 -0
- package/server/src/mcp/fileMcpServer.ts +12 -0
- package/server/src/mcp/fileMcpTools.ts +51 -0
- package/server/src/mcp/handoffHistoryMcpTools.ts +21 -0
- package/server/src/mcp/mcpConfigWriter.ts +43 -12
- package/server/src/mcp/planMcpTools.ts +9 -285
- package/server/src/mcp/planReadMcpServer.ts +19 -0
- package/server/src/mcp/registry.ts +41 -35
- package/server/src/mcp/registryWiring.ts +4 -5
- package/server/src/media/demucs.ts +11 -4
- package/server/src/media/ffmpeg.ts +21 -16
- package/server/src/media/scratch.ts +17 -10
- package/server/src/noticeSource.ts +11 -0
- package/server/src/notifications.ts +8 -4
- package/server/src/npmPlatformResolve.ts +25 -8
- package/server/src/ntfyTransport.ts +12 -4
- package/server/src/outputGrants.ts +53 -0
- package/server/src/outputs.ts +54 -11
- package/server/src/peerRecipientContext.ts +16 -5
- package/server/src/planStore.ts +201 -55
- package/server/src/planTools.ts +303 -0
- package/server/src/previewAutoDetect.ts +26 -19
- package/server/src/previewPortConfiguration.ts +28 -0
- package/server/src/previewPorts.ts +2 -0
- package/server/src/previewProxy.ts +156 -189
- package/server/src/primaryBackgroundTracker.ts +151 -61
- package/server/src/primitives/exportContext.ts +67 -16
- package/server/src/primitives/localFileContext.ts +31 -0
- package/server/src/primitives/reviewContent.ts +42 -7
- package/server/src/primitives/runCompare.ts +1 -1
- package/server/src/primitives/runDocEdit.ts +1 -1
- package/server/src/primitives/runMdTuneup.ts +17 -27
- package/server/src/primitives/runResearch.ts +1 -1
- package/server/src/primitives/runReviewer.ts +6 -2
- package/server/src/primitives/seedWorker.ts +38 -17
- package/server/src/project/orchestrationProposals.ts +6 -1
- package/server/src/project/taskLedger.ts +17 -11
- package/server/src/projectGlob.ts +9 -0
- package/server/src/projectIgnore.ts +19 -0
- package/server/src/projectScan.ts +76 -0
- package/server/src/projectStateIgnore.ts +40 -1
- package/server/src/projects.ts +114 -36
- package/server/src/prompts.ts +5 -8
- package/server/src/proportionateTestingSkill.ts +31 -0
- package/server/src/providerConversation.ts +71 -0
- package/server/src/providers/attachmentLabels.ts +8 -0
- package/server/src/providers/attachments.ts +52 -174
- package/server/src/providers/claude-native/apiEndpoint.ts +9 -0
- package/server/src/providers/claude-native/appendOnlyPrefix.ts +17 -1
- package/server/src/providers/claude-native/catalog.ts +16 -14
- package/server/src/providers/claude-native/contentBlocks.ts +39 -8
- package/server/src/providers/claude-native/contextBudget.ts +0 -6
- package/server/src/providers/claude-native/editApply.ts +6 -1
- package/server/src/providers/claude-native/fileContent.ts +98 -0
- package/server/src/providers/claude-native/filterConfigs/bash-cargo-test.ts +1 -0
- package/server/src/providers/claude-native/filterConfigs/bash-jest-vitest.ts +1 -0
- package/server/src/providers/claude-native/filterConfigs/bash-pytest.ts +1 -0
- package/server/src/providers/claude-native/filterConfigs/index.ts +2 -1
- package/server/src/providers/claude-native/foldDigest.ts +9 -2
- package/server/src/providers/claude-native/gateReview.ts +0 -0
- package/server/src/providers/claude-native/hookIf.ts +414 -0
- package/server/src/providers/claude-native/hooks.ts +398 -54
- package/server/src/providers/claude-native/imageRead.ts +92 -0
- package/server/src/providers/claude-native/index.ts +32 -1
- package/server/src/providers/claude-native/mediaLimits.ts +14 -0
- package/server/src/providers/claude-native/mediaRetention.ts +49 -0
- package/server/src/providers/claude-native/mediaRetirementNotice.ts +8 -0
- package/server/src/providers/claude-native/modelParams.ts +23 -2
- package/server/src/providers/claude-native/oauth.ts +9 -8
- package/server/src/providers/claude-native/outputAccumulator.ts +29 -17
- package/server/src/providers/claude-native/peerTools.ts +3 -169
- package/server/src/providers/claude-native/pretoolGuards.ts +76 -9
- package/server/src/providers/claude-native/registryTools.ts +4 -2
- package/server/src/providers/claude-native/resumeSummary.ts +138 -28
- package/server/src/providers/claude-native/retainedContext.ts +22 -0
- package/server/src/providers/claude-native/sandboxExecutor.ts +24 -16
- package/server/src/providers/claude-native/taskAdmission.ts +62 -0
- package/server/src/providers/claude-native/toolChecks.ts +127 -0
- package/server/src/providers/claude-native/toolPosture.ts +5 -3
- package/server/src/providers/claude-native/toolResultEviction.ts +17 -7
- package/server/src/providers/claude-native/tools.ts +228 -130
- package/server/src/providers/claude-native/usageContext.ts +93 -0
- package/server/src/providers/claude-native/wireFingerprint.ts +2 -2
- package/server/src/providers/claude-native/worker.ts +1089 -339
- package/server/src/providers/claude-native/workerHelpers.ts +133 -6
- package/server/src/providers/claude-native/workspaceFacts.ts +2 -2
- package/server/src/providers/claude.ts +65 -93
- package/server/src/providers/clusterTaskToolDefinitions.ts +180 -0
- package/server/src/providers/codex-appserver/catalog.ts +26 -19
- package/server/src/providers/codex-appserver/index.ts +8 -3
- package/server/src/providers/codex-appserver/jsonRpc.ts +9 -2
- package/server/src/providers/codex-appserver/operatorQuestions.ts +24 -0
- package/server/src/providers/codex-appserver/worker.ts +116 -81
- package/server/src/providers/codex.ts +49 -57
- package/server/src/providers/codexChatBoundary.ts +55 -0
- package/server/src/providers/codexCodeMode.ts +2 -2
- package/server/src/providers/codexContextWindow.ts +2 -2
- package/server/src/providers/codexHome.ts +6 -0
- package/server/src/providers/codexImageTool.ts +22 -0
- package/server/src/providers/codexVersion.ts +13 -0
- package/server/src/providers/codexWebSearch.ts +5 -0
- package/server/src/providers/cursor/acpJsonRpc.ts +3 -1
- package/server/src/providers/cursor/authState.ts +72 -0
- package/server/src/providers/cursor/catalog.ts +20 -13
- package/server/src/providers/cursor/chatSandbox.ts +71 -0
- package/server/src/providers/cursor/filePlugin.ts +27 -0
- package/server/src/providers/cursor/index.ts +29 -4
- package/server/src/providers/cursor/modelMap.ts +182 -0
- package/server/src/providers/cursor/print.ts +80 -27
- package/server/src/providers/cursor/worker.ts +156 -84
- package/server/src/providers/errorClassifier.ts +7 -2
- package/server/src/providers/handoffHistoryBinding.ts +40 -0
- package/server/src/providers/index.ts +12 -6
- package/server/src/providers/llamacpp.ts +93 -176
- package/server/src/providers/llamacppManager.ts +62 -33
- package/server/src/providers/llamacppVersion.ts +4 -0
- package/server/src/providers/lmstudio.ts +124 -190
- package/server/src/providers/localFileMedia.ts +229 -0
- package/server/src/providers/localMcp.ts +76 -0
- package/server/src/providers/localShellLifecycle.ts +30 -0
- package/server/src/providers/localToolDispatch.ts +111 -0
- package/server/src/providers/ollama.ts +163 -174
- package/server/src/providers/ollamaCtxFallback.ts +1 -2
- package/server/src/providers/ollamaDurableCompaction.ts +5 -4
- package/server/src/providers/ollamaExecutionHistory.ts +40 -13
- package/server/src/providers/ollamaFencedTools.ts +10 -11
- package/server/src/providers/ollamaResilience.ts +10 -13
- package/server/src/providers/ollamaTokens.ts +4 -7
- package/server/src/providers/ollamaToolSubset.ts +14 -2
- package/server/src/providers/ollamaTools.ts +212 -200
- package/server/src/providers/outputStyle.ts +72 -72
- package/server/src/providers/providerFileContent.ts +133 -0
- package/server/src/providers/renderedTranscript.ts +2 -0
- package/server/src/providers/requestDeadline.ts +27 -0
- package/server/src/providers/sessionScope.ts +9 -0
- package/server/src/providers/types.ts +3 -0
- package/server/src/publicProject.ts +54 -13
- package/server/src/publicProjectChoice.ts +39 -0
- package/server/src/quota.ts +48 -23
- package/server/src/recall/search.ts +9 -32
- package/server/src/recall/transcriptSearch.ts +27 -0
- package/server/src/recentFilesLedger.ts +10 -8
- package/server/src/recentProjectActivity.ts +56 -0
- package/server/src/scanDeadline.ts +26 -0
- package/server/src/searchText.ts +16 -0
- package/server/src/server/broadcast.ts +120 -54
- package/server/src/sessionJsonl.ts +31 -17
- package/server/src/settings.ts +137 -41
- package/server/src/skillManagement.ts +585 -0
- package/server/src/skillMutation.ts +6 -0
- package/server/src/skills.ts +195 -25
- package/server/src/smartPickup.ts +3 -2
- package/server/src/smartPickupAdapters.ts +50 -15
- package/server/src/smartPickupObserver.ts +31 -6
- package/server/src/storageActions.ts +1 -1
- package/server/src/storageArchive.ts +42 -22
- package/server/src/storageRoot.ts +30 -0
- package/server/src/storageTurnWatch.ts +39 -0
- package/server/src/taskDispatcher.ts +22 -2
- package/server/src/templates/store.ts +72 -57
- package/server/src/terminal/ptyManager.ts +37 -27
- package/server/src/terminal/ptyPidRegistry.ts +10 -58
- package/server/src/thirdPartySkills.ts +79 -0
- package/server/src/toolPath.ts +31 -0
- package/server/src/toolboxWorkflow.ts +2 -1
- package/server/src/uploadImages.ts +124 -0
- package/server/src/voice/computerContext.ts +2 -1
- package/server/src/voice/conditionSchema.ts +3 -1
- package/server/src/voice/conditions.ts +1 -1
- package/server/src/workers/StreamParser.ts +42 -11
- package/server/src/workers/WorkerManager.ts +34 -35
- package/server/src/workers/durablePidRegistry.ts +266 -0
- package/server/src/workers/limits.ts +8 -3
- package/server/src/workers/pidRegistry.ts +15 -89
- package/server/src/workers/processActivity.ts +14 -0
- package/server/src/workers/processKill.ts +175 -1
- package/server/src/workers/processStartTime.ts +137 -49
- package/server/src/workflowMeta.ts +197 -23
- package/server/src/workflowStore.ts +177 -22
- package/server/src/workflows/modelTitles.ts +4 -3
- package/server/src/workflows/sessionIndex.ts +24 -3
- package/server/src/workflows/types.ts +21 -10
- package/server/src/workspace.ts +6 -0
- package/server/src/ws/afterTurn.ts +34 -0
- package/server/src/ws/clusterHandlers.ts +198 -276
- package/server/src/ws/clusterMembers.ts +204 -0
- package/server/src/ws/compactHandlers.ts +47 -14
- package/server/src/ws/gateHandlers.ts +2 -1
- package/server/src/ws/genesisHandlers.ts +49 -6
- package/server/src/ws/handoffHandlers.ts +180 -58
- package/server/src/ws/operatorQuestionHandlers.ts +10 -2
- package/server/src/ws/previewCaptureHandlers.ts +1 -4
- package/server/src/ws/taskLedgerHandlers.ts +22 -13
- package/server/src/ws/taskLifecycle.ts +41 -0
- package/server/src/ws/turnEngine.ts +557 -490
- package/server/src/ws/turnPrompt.ts +60 -0
- package/server/src/ws/turnSettings.ts +95 -0
- package/server/src/ws/updatePrimaryConfig.ts +55 -31
- package/server/src/ws/workflowHandlers.ts +187 -158
- package/shared/dist/clusterCoordination.js +15 -7
- package/shared/dist/clusterRolePresets.d.ts +1 -1
- package/shared/dist/clusterRolePresets.js +18 -6
- package/shared/dist/codexChat.d.ts +2 -0
- package/shared/dist/codexChat.js +5 -0
- package/shared/dist/folderName.d.ts +1 -0
- package/shared/dist/folderName.js +18 -0
- package/shared/dist/index.d.ts +6 -0
- package/shared/dist/index.js +6 -0
- package/shared/dist/localRuntimeStatus.d.ts +23 -0
- package/shared/dist/localRuntimeStatus.js +47 -0
- package/shared/dist/notificationTitle.d.ts +9 -0
- package/shared/dist/notificationTitle.js +23 -0
- package/shared/dist/outputStyle.d.ts +10 -0
- package/shared/dist/outputStyle.js +28 -0
- package/shared/dist/outputs.d.ts +1 -0
- package/shared/dist/protocol/autoPickup.d.ts +2 -0
- package/shared/dist/protocol/autoPickup.js +9 -1
- package/shared/dist/protocol/chat.d.ts +4 -0
- package/shared/dist/protocol/checkpoints.d.ts +24 -2
- package/shared/dist/protocol/checkpoints.js +1 -0
- package/shared/dist/protocol/clientMessages.d.ts +11 -16
- package/shared/dist/protocol/clusters.d.ts +21 -4
- package/shared/dist/protocol/clusters.js +3 -3
- package/shared/dist/protocol/connections.d.ts +2 -0
- package/shared/dist/protocol/diagnostics.js +1 -1
- package/shared/dist/protocol/genesis.d.ts +9 -0
- package/shared/dist/protocol/mcp.d.ts +1 -0
- package/shared/dist/protocol/mcp.js +8 -5
- package/shared/dist/protocol/mdTuneup.d.ts +2 -0
- package/shared/dist/protocol/models.d.ts +9 -1
- package/shared/dist/protocol/models.js +19 -8
- package/shared/dist/protocol/notifications.d.ts +6 -1
- package/shared/dist/protocol/notifications.js +15 -3
- package/shared/dist/protocol/operatorQuestions.d.ts +12 -0
- package/shared/dist/protocol/plans.d.ts +2 -1
- package/shared/dist/protocol/remoteManagement.d.ts +6 -0
- package/shared/dist/protocol/serverMessages.d.ts +77 -12
- package/shared/dist/protocol/settings.d.ts +16 -4
- package/shared/dist/protocol/settings.js +17 -1
- package/shared/dist/protocol/tasks.d.ts +1 -0
- package/shared/dist/protocol/usage.d.ts +1 -0
- package/shared/dist/protocol/workers.d.ts +1 -0
- package/shared/dist/protocol/workflows.d.ts +74 -14
- package/shared/dist/protocol/workflows.js +66 -0
- package/shared/dist/publicGuardrails.d.ts +1 -1
- package/shared/dist/publicGuardrails.js +1 -1
- package/shared/dist/runtimeVersions.d.ts +2 -0
- package/shared/dist/runtimeVersions.js +13 -0
- package/shared/dist/shellTool.d.ts +2 -0
- package/shared/dist/shellTool.js +9 -0
- package/shared/src/clusterCoordination.ts +12 -7
- package/shared/src/clusterRolePresets.ts +19 -7
- package/shared/src/codexChat.ts +8 -0
- package/shared/src/folderName.ts +11 -0
- package/shared/src/index.ts +8 -0
- package/shared/src/localRuntimeStatus.ts +53 -0
- package/shared/src/notificationTitle.ts +23 -0
- package/shared/src/outputStyle.ts +35 -0
- package/shared/src/outputs.ts +3 -0
- package/shared/src/protocol/autoPickup.ts +11 -1
- package/shared/src/protocol/chat.ts +5 -0
- package/shared/src/protocol/checkpoints.ts +40 -8
- package/shared/src/protocol/clientMessages.ts +13 -12
- package/shared/src/protocol/clusters.ts +40 -10
- package/shared/src/protocol/connections.ts +6 -0
- package/shared/src/protocol/diagnostics.ts +1 -1
- package/shared/src/protocol/genesis.ts +11 -0
- package/shared/src/protocol/mcp.ts +12 -7
- package/shared/src/protocol/mdTuneup.ts +4 -2
- package/shared/src/protocol/models.ts +27 -10
- package/shared/src/protocol/notifications.ts +21 -3
- package/shared/src/protocol/operatorQuestions.ts +13 -0
- package/shared/src/protocol/plans.ts +5 -7
- package/shared/src/protocol/remoteManagement.ts +10 -3
- package/shared/src/protocol/serverMessages.ts +100 -9
- package/shared/src/protocol/settings.ts +35 -5
- package/shared/src/protocol/tasks.ts +1 -0
- package/shared/src/protocol/usage.ts +3 -3
- package/shared/src/protocol/workers.ts +5 -0
- package/shared/src/protocol/workflows.ts +137 -21
- package/shared/src/publicGuardrails.ts +1 -1
- package/shared/src/runtimeVersions.ts +15 -0
- package/shared/src/shellTool.ts +9 -0
- package/client/dist/assets/galleryEditor-fPb76Cjv.js +0 -702
- package/client/dist/assets/index-CjkHb-_n.js +0 -592
- package/client/dist/assets/index-DIbh3ae5.css +0 -1
- package/client/src/components/ConversationMenu.tsx +0 -467
- package/client/src/stores/sessionIndexStore.ts +0 -92
package/docs/CLIENT.md
CHANGED
|
@@ -2,12 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
**Status:** Stable project identity, organization, creation and removal, and missing-path or relocation recovery remain in progress. See [Development status](DEVELOPMENT_STATUS.md).
|
|
4
4
|
|
|
5
|
-
The web UI. Vite + React 19 + Zustand. Two-column layout: chat + composer on the left (2/3), tabbed right pane (1/3).
|
|
5
|
+
The web UI. Vite + React 19 + Zustand. Two-column layout: chat + composer on the left (2/3), tabbed right pane (1/3). Uses a persistent WebSocket for workflow events and actions, plus HTTP for authentication, settings, catalogs, file operations, project data, artifacts, plans, media, and other request-response APIs.
|
|
6
6
|
|
|
7
7
|
This doc covers the store, components, render pipeline, theme + shader system, and performance patterns. For the WebSocket protocol see [`PROTOCOL.md`](PROTOCOL.md). For the server side see [`ARCHITECTURE.md`](ARCHITECTURE.md).
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
+
## Connections, activity and terminal recovery
|
|
12
|
+
|
|
13
|
+
In Connections, clear **Model server address** and choose **Save endpoint** to restore the runtime default. The request sends `baseUrl: null`; clearing an Ollama address keeps its other saved options.
|
|
14
|
+
|
|
15
|
+
**ACTIVITY > TOKEN USAGE** counts Codex cached input within its prompt total. Fresh input excludes cache hits. Claude's fresh, cache-read and cache-write counts are separate. Session totals normalize each turn before adding them. The session CTX uses the current context reading, while turn rows name the context at the end of that turn. Claude spawned-worker usage totals remain output usage; they are not context readings, so the context badge shows `-`.
|
|
16
|
+
|
|
17
|
+
A terminal reconnect replaces the old display with the server's bounded scrollback replay. It keeps the live shell and avoids duplicate output. **CREATE WITH FRESH** uses the provider shown in its picker, including when the anchor uses Ollama or llama.cpp.
|
|
18
|
+
|
|
19
|
+
## Edit pending messages
|
|
20
|
+
|
|
21
|
+
Open PENDING beside the composer, then choose EDIT beside CANCEL. PREVIEW shows one message with the same actions; automatic mailbox reminders start folded. Use + to read the full text; BACK TO LIST returns. The server removes the queued item before its text, kind, attachments and selected skills return to that tab's message box. This works in single and cluster tabs.
|
|
22
|
+
|
|
23
|
+
Existing draft text is kept and the pending text is appended after a blank line. Existing skill choices are kept and merged without duplicates. Choices stay with their tab across navigation. Resending resolves each selected skill once; delivery text already expanded for the removed message is not copied into the draft. If delivery wins the removal race, Arco says `Already sent, nothing to edit` and leaves the draft unchanged. An offline page cannot edit the queue. Reconnect retries the same pending edit request without removing an item twice.
|
|
24
|
+
|
|
25
|
+
While the worker is busy, SEND or Enter preserves the restored kind shown by EDITING. Alt+Enter explicitly chooses follow-up; INTERRUPT & SEND or Ctrl/Cmd+Enter chooses interrupt where available. An idle worker receives an ordinary new turn. Sending or clearing the draft clears the marker.
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Pending work and navigation
|
|
29
|
+
|
|
30
|
+
Attachment uploads require the configured upload folder to be a real folder, not a link. SEND waits for every pending attachment upload in Agent and Chat composers. Overlapping paste or drop batches cannot release the guard early. Completed files remain staged for the message.
|
|
31
|
+
|
|
32
|
+
HISTORY advances its saved-event cursor even when a page contains no narrative rows. Selecting an older message expands PRIOR SESSIONS when needed before scrolling and highlighting it.
|
|
33
|
+
|
|
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
|
+
|
|
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.
|
|
37
|
+
|
|
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
|
+
|
|
40
|
+
The composer agent-skill section shows discovery progress and errors for supported runtimes. Reopen the menu to retry after a failure.
|
|
41
|
+
|
|
42
|
+
|
|
11
43
|
## Topics
|
|
12
44
|
|
|
13
45
|
| Topic |
|
|
@@ -28,6 +60,8 @@ This doc covers the store, components, render pipeline, theme + shader system, a
|
|
|
28
60
|
| [Utilities](#utilities) |
|
|
29
61
|
| [Adding a new component](#adding-a-new-component) |
|
|
30
62
|
| [Cluster tab rendering](#cluster-tab-rendering) |
|
|
63
|
+
| [Layout ranges](#layout-ranges) |
|
|
64
|
+
| [Menus and popovers inside the window](#menus-and-popovers-inside-the-window) |
|
|
31
65
|
| [ARTIFACTS explorer (`?app=explorer`)](#artifacts-explorer-appexplorer) |
|
|
32
66
|
| [Cross-references](#cross-references) |
|
|
33
67
|
| [Workspace Outputs](#workspace-outputs) |
|
|
@@ -55,6 +89,8 @@ This doc covers the store, components, render pipeline, theme + shader system, a
|
|
|
55
89
|
|
|
56
90
|
## State management (Zustand)
|
|
57
91
|
|
|
92
|
+
Session-index and Recall reads keep the newest request in control of results, loading and errors. A terminal-session snapshot reconciles only windows belonging to that workflow.
|
|
93
|
+
|
|
58
94
|
`client/src/stores/appStore.ts` - the central per-tab store (state shape + action creators). A file-size refactor split the pure helpers out (move-only, no behavior change): the `AppState` / `JobState` types live in **`appStore.types.ts`**, pure read selectors in **`selectors.ts`**, and the memory-cap constants + capping helpers in **`memoryTrim.ts`** (which must not import `appStore`).
|
|
59
95
|
|
|
60
96
|
**Voice transcript follow.** `chatFollowStore` holds one memory-only targeted
|
|
@@ -64,14 +100,14 @@ reuses the panel. The existing resize/streaming paths then follow normally.
|
|
|
64
100
|
Manual scroll-up detaches again; unrelated recipients and failed sends do not
|
|
65
101
|
move the pane. This is UI intent, never worker/background activity.
|
|
66
102
|
|
|
67
|
-
**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), `
|
|
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.
|
|
68
104
|
|
|
69
105
|
### Two tiers
|
|
70
106
|
|
|
71
107
|
**Global singletons:**
|
|
72
108
|
|
|
73
109
|
- `connected: boolean`, `sessionId: string | null` - WS state
|
|
74
|
-
- `connectionState: 'connecting' | 'online' | 'disconnected' | 'server-down'`
|
|
110
|
+
- `connectionState: 'connecting' | 'online' | 'disconnected' | 'server-down'` - observable connection state (`runtime/runtimeState.ts`); a closed socket probes `/healthz` to split a WS-layer drop from a dead server. Not persisted.
|
|
75
111
|
- `authStatus: AuthStatusByProvider | null` - per-provider auth snapshot
|
|
76
112
|
- `capabilities: Capabilities | null` - CLI versions, supported efforts, models
|
|
77
113
|
- `quotaState: QuotaSnapshot | null` - per-provider throttle snapshot
|
|
@@ -79,8 +115,8 @@ move the pane. This is UI intent, never worker/background activity.
|
|
|
79
115
|
- `usage: UsageInfo | null` - Claude 5-hour / weekly usage
|
|
80
116
|
- `codexUsage: CodexUsageInfo | null` - Codex billing snapshot
|
|
81
117
|
- `cursorUsage: CursorUsageInfo | null` - dashboard-polled Cursor MTD usage (ACP exposes no per-turn tokens)
|
|
82
|
-
- `
|
|
83
|
-
- `claudeNativeCatalog: ClaudeCatalogSnapshot | null` / `codexCatalog: CodexCatalogSnapshot | null` - server-fetched model catalogs (Anthropic / OpenAI), 1-hour lazy cache; pickers fall back to the static `CLAUDE_MODELS` / `CODEX_MODELS` lists when null · `cursorCatalog: CursorCatalogSnapshot | null` - Cursor's ~153-model roster (30-min poll)
|
|
118
|
+
- `localRuntimeStatus: LocalRuntimeSnapshot | null` - enabled-only local status; a cached read-only `GET /api/local-runtime-status` feeds this and the existing `ollamaLive` / `llamacppLive` version snapshots. The browser polls every 15 seconds; the server deduplicates requests and caches results for five seconds. Disabled runtimes are never probed by this route.
|
|
119
|
+
- `claudeNativeCatalog: ClaudeCatalogSnapshot | null` / `codexCatalog: CodexCatalogSnapshot | null` - server-fetched model catalogs (Anthropic / OpenAI), 1-hour lazy cache; pickers fall back to the static `CLAUDE_MODELS` / `CODEX_MODELS` lists when null or unavailable; a missing Codex CLI does not stop the server · `cursorCatalog: CursorCatalogSnapshot | null` - Cursor's ~153-model roster (30-min poll)
|
|
84
120
|
- `codexCatalogByAccount: Record<profileId, CodexCatalogSnapshot>` - per-Codex-account catalogs (HOME/WORK entitlements differ; read via `useCodexCatalog(accountRef)`)
|
|
85
121
|
- `settings: ArcoSettings | null` - operator preferences (theme, default provider, font-pack override, tab order, etc.)
|
|
86
122
|
- `shutdown: boolean` + `shutdownReason: string | null` - server is shutting down/restarting
|
|
@@ -88,7 +124,7 @@ move the pane. This is UI intent, never worker/background activity.
|
|
|
88
124
|
- `activeClusterId: string | null` - currently focused cluster tab. Mutually exclusive with `activeJobId` - setting one clears the other so the App.tsx routing branch picks deterministically.
|
|
89
125
|
- `jobs: Record<string, JobState>` - per-workflow state (the workhorse)
|
|
90
126
|
- `clusters: Record<string, ClusterStatePayload>` - server-authoritative cluster mirror, persisted alongside `jobs`
|
|
91
|
-
- `clusterFocusedMember: Record<clusterId, workflowId>` - operator's currently-focused member inside each cluster tab (
|
|
127
|
+
- `clusterFocusedMember: Record<clusterId, workflowId>` - operator's currently-focused member inside each cluster tab (persisted only while the member still belongs to that saved cluster)
|
|
92
128
|
- `clusterGridSplit: number` - fraction of `ClusterTab` body width given to the `MemberCard` grid (left); detail `MemberPane` gets the remainder. Default `0.35`; persisted.
|
|
93
129
|
- `attachments: Record<workflowId, DraftAttachment[]>` - staged composer files, lifted to the store so tab-switch remounts don't drop them (blob-URL revocation lives in the actions). Drafts live in `draftStore`. Neither is persisted.
|
|
94
130
|
- `clusterMemberLabels`, `clusterCardLayout` (persisted), `handoffLocksByCwd` (`handoff_lock_snapshot` mirror) - cluster/handoff UI mirrors
|
|
@@ -245,7 +281,7 @@ Per-tab composer state used to live on `JobState`; attachments were lifted into
|
|
|
245
281
|
|
|
246
282
|
Actions are split into thematic groups inside `appStore.ts`:
|
|
247
283
|
|
|
248
|
-
- Connection: `setConnected`, `setConnectionState`, `bumpPrimaryEvent` / `clearRecovered`, `setShutdown`, `setAuthStatus`, `setCapabilities`, `setUsage` / `setCodexUsage`, `setOllamaLive` / `setLlamacppLive`, `setClaudeNativeCatalog` / `setCodexCatalog` / `setCursorCatalog` / `setCodexCatalogForAccount`, `setCursorUsage`, `setSettings`, `setQuotaState`, `setCliChanges`, `acknowledgeCliChange`
|
|
284
|
+
- Connection: `setConnected`, `setConnectionState`, `bumpPrimaryEvent` / `clearRecovered`, `setShutdown`, `setAuthStatus`, `setCapabilities`, `setUsage` / `setCodexUsage`, `setLocalRuntimeStatus` / `setOllamaLive` / `setLlamacppLive`, `setClaudeNativeCatalog` / `setCodexCatalog` / `setCursorCatalog` / `setCodexCatalogForAccount`, `setCursorUsage`, `setSettings`, `setQuotaState`, `setCliChanges`, `acknowledgeCliChange`
|
|
249
285
|
- Workflow lifecycle: `createJob`, `removeJob`, `setActiveJob`, `showJobCreator`, `applyWorkflowSnapshot`, `changeWorkflowSession`, `updateJobPrimary` (provider / model / effort / autoHandoff / claudeTransport / codexTransport / efficiency flags / outputStyle / goal / pinnedSkills / ultracode / webSearchMaxUses / claudeNativeThinkingDisplay), `setWorkflowName`, `setWorkflowGoal` (on `goal_set` -> syncs the north-star + a GOAL activity row), `setGoalRun`, `setCodebaseMemoryState`, `setSessionMetadata`, genesis (`setGenesisSeed` / `setWorkflowCwd` / `setGenesisScaffold` / `setGenesisAssist*` / `clearGenesisAssist` / `setGenesisCreative`)
|
|
250
286
|
- Cluster lifecycle: `setClusterState`, `clearCluster`, `setActiveCluster`, `setClusterFocusedMember`, `setClusterGridSplit`, `setClusterCardLayout`, `setHandoffLocks`
|
|
251
287
|
- Bake-offs / ledger / MCP: `setBakeoffs` / `upsertBakeoff`, `setTaskLedger`, `setMcpRegistry` / `setMcpProbeResult` / `setMcpAllow` / `setMcpMalwareWarning`
|
|
@@ -277,6 +313,7 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
|
|
|
277
313
|
- `activeJobId` (nulled when it points at an incognito job), `activeClusterId`
|
|
278
314
|
- `clusters` - restores the cluster tab's `[N]` badge before WS reconnect; overwritten by the authoritative `cluster_state` push on subscribe.
|
|
279
315
|
- `clusterGridSplit`, `clusterCardLayout`
|
|
316
|
+
- `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.
|
|
280
317
|
- `showCreator` (forced true when the active tab is incognito, so a reload lands on the creator)
|
|
281
318
|
|
|
282
319
|
**Persisted directly to localStorage (outside the Zustand store):**
|
|
@@ -285,9 +322,12 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
|
|
|
285
322
|
- `arco.preview.aspect` - preview pane aspect ratio (global)
|
|
286
323
|
- `arco.gitDialog.prefs.${cwd}` - per-repo GIT dialog choices
|
|
287
324
|
- `arco.historyFilter.byWorkflow` - HISTORY tab filter strip
|
|
288
|
-
- `arco.clusterRightPanelWidth` - outer cluster right-panel splitter
|
|
325
|
+
- `arco.clusterRightPanelWidth` - outer cluster right-panel splitter (Standard layout; Narrow and Compact keep their own saved widths, see [Layout ranges](#layout-ranges))
|
|
326
|
+
- Compact member grid splitter (saved beside the Standard grid split)
|
|
327
|
+
- `arco.sidePanelWidth` - single-tab right-panel splitter, with the same range suffixes
|
|
328
|
+
- `arco.layoutMode` - Settings > Appearance > Layout (`auto`, `standard`, `compact` or `narrow`)
|
|
289
329
|
- `arco.focusMode` - I3 focus-mode flag (`'1'`/`'0'`); read into the store's `focusMode` at init, written by `setFocusMode`
|
|
290
|
-
- splitter widths (
|
|
330
|
+
- splitter widths (single-tab and cluster) through `readRangeFraction` / `writeRangeFraction` in `client/src/layout/layoutRange.ts`, one key per layout range
|
|
291
331
|
|
|
292
332
|
**NOT persisted** (rebuilt on reconnect):
|
|
293
333
|
- `sessionChat` - server is the source of truth via `session_entry` stream
|
|
@@ -295,7 +335,7 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
|
|
|
295
335
|
- `connected`, `sessionId` - WS state
|
|
296
336
|
- `connectionState`, `quotaState`, `capabilities`, `authStatus`, usage snapshots, `cliChanges`, model catalogs, `ollamaLive`, `llamacppLive`, `taskLedger`, `mcp*`, `bakeoffsByWorkflow` - fetched or re-pushed on connect
|
|
297
337
|
- `snapshotReceived`, `busy`, `turnStartedAt`, `lastTurnEndedAt`, `activity`, `primaryBackgroundJobs`, `turnTokenUsage` - reset on connect; the authoritative snapshot arrives within seconds
|
|
298
|
-
- `attachments`, `notifications`, `flashTarget`, `wsSendRaw`, `
|
|
338
|
+
- `attachments`, `notifications`, `flashTarget`, `wsSendRaw`, `detailWorker` - session-only UI state
|
|
299
339
|
|
|
300
340
|
On rehydrate, `onRehydrateStorage` also strips persisted streaming flags, drops queued optimistic entries older than 30 s, and dedupes any `peer-sent-<msgId>` / `peer-recv-<msgId>` rows that earlier builds (pre-intake-dedup) accidentally duplicated.
|
|
301
341
|
|
|
@@ -304,7 +344,7 @@ On rehydrate, `onRehydrateStorage` also strips persisted streaming flags, drops
|
|
|
304
344
|
- `MAX_WORKER_OUTPUT_BYTES_CLIENT = 256 KB` per worker
|
|
305
345
|
- `MAX_ACTIVITY_ENTRIES = 500` per job (raised from 80 - tool-heavy turns were truncating the live feed before settle)
|
|
306
346
|
|
|
307
|
-
These caps prevent a large worker response from exhausting browser memory. The server-side `MAX_WORKER_OUTPUT_BYTES
|
|
347
|
+
These caps prevent a large worker response from exhausting browser memory. The server-side `MAX_WORKER_OUTPUT_BYTES` cap (50 MB by default, `ARCO_MAX_WORKER_OUTPUT_BYTES`) bounds output before it reaches the client.
|
|
308
348
|
|
|
309
349
|
**Store-as-cache model + the MemoryHud ( A1).** The store is a *bounded cache over the server's `events.jsonl`*, not the source of truth: every hot array is capped on its append path (`capMessages`/`capActivityEntry`/`capWorkers`/`trimJobMemory` in `memoryTrim.ts`), `removeJob` drops the whole `JobState` and revokes attachment blob URLs on tab close, and the persist `partialize` strips workers entirely (server re-pushes on reconnect). Because all of that was already in place, an A1 audit of every component interval/observer/listener and the `useWebSocket` reconnect path found **no leak** - so the residual "memory runs away after a while" can only be diagnosed live. `getRetentionStats` (store helper) returns the live footprint - per-tab `messages/sessionChat/activity/historyEvents/workers/toolFiltered/turnTokenUsage` counts, total attachment blob-URL count, and (Chrome only) JS heap. The dev-only `MemoryHud` (`components/dev/MemoryHud.tsx`, enable with `?memhud=1` or `localStorage['arco:memhud']='1'`) polls it every 2 s. Reading the result: **heap climbs while counts stay flat ⇒ non-store leak** (detached DOM, highlight cache, blob URLs, an iframe/webview); **a per-tab count climbs unbounded ⇒ a cap isn't firing on some append path.** Invariants guarded by `client/src/stores/retentionStats.test.ts` (`npm run smoke:mem-retention`).
|
|
310
350
|
|
|
@@ -363,9 +403,9 @@ App
|
|
|
363
403
|
│ │ ├── LongUserMessage (auto-collapsed wall of text)
|
|
364
404
|
│ │ ├── GateApprovalNotice (DEBAG inline approve/reject card for a parked sensitive Native tool call)
|
|
365
405
|
│ │ └── AuthReloginNotice
|
|
366
|
-
│ ├──
|
|
367
|
-
│ ├──
|
|
368
|
-
│
|
|
406
|
+
│ ├── TerminalInput (composer + REVIEW/HANDOFF/SPAWN/DOCS/GIT/SECOND OPINION/RESEARCH/TUNEUP/REMOTE/COMPACT buttons + inline PLAN FIRST button + FOLD/posture/project-trust pills)
|
|
407
|
+
│ │ ├── NorthStarBar (inline-editable north-star chip; GOAL_MAX_BYTES=2048)
|
|
408
|
+
│ ├── PrimaryStatus (current step in the conversation header)
|
|
369
409
|
│ │ ├── QueuedMessagesIndicator
|
|
370
410
|
│ │ ├── DragOverlay (file drop hint)
|
|
371
411
|
│ │ ├── ToolboxMenu (slash-command picker)
|
|
@@ -391,9 +431,9 @@ App
|
|
|
391
431
|
│ ├── BakeoffTab (BAKE-OFF tab - operator-armed worktree bake-offs)
|
|
392
432
|
│ ├── KnowledgeTab (KNOWLEDGE tab - per-cwd operator-owned knowledge base; + KnowledgeWizard)
|
|
393
433
|
│ ├── TasksPanel (TASKS tab; gated on non-empty job.taskChildren)
|
|
394
|
-
│ ├── LedgerTab (LEDGER
|
|
395
|
-
│ ├── HistoryTab (HISTORY
|
|
396
|
-
│ ├── UsageTab (USAGE
|
|
434
|
+
│ ├── LedgerTab (MEMORY > LEDGER - single-worker/chat; cwd-scoped durable project task ledger)
|
|
435
|
+
│ ├── HistoryTab (MEMORY > HISTORY; read-only timeline + LABEL / REVIEW-FROM-HERE / SPAWN-FROM-HERE)
|
|
436
|
+
│ ├── UsageTab (MEMORY > USAGE - single-worker, chat and cluster; token trends + MEASURE STORAGE; ARTIFACTS > STORAGE from anywhere)
|
|
397
437
|
│ ├── PreviewTab (PREVIEW tab - per-workflow dev-server iframe with auto-detect + aspect toggle)
|
|
398
438
|
│ ├── ConfigTab (CONFIG tab - `RightPanel/ConfigTab.tsx`: transport sections (Claude + sticky ULTRACODE / Codex + MAX/STANDARD context), auto-compaction, auto-handoff + auto-fold, Claude Native knobs (compact, auto-continue, thinking display, interleaved beta, tool filter, web budget, fact-force, config protection, review safe-mode, sandbox), OUTPUT STYLE, NORTH STAR + goal-run control, PROJECT TRUST, Ollama lifecycle/params/VRAM/compaction session, then CodebaseMemorySection + McpRegistrySection)
|
|
399
439
|
│ └── GitHubPanel (GITHUB tab)
|
|
@@ -412,8 +452,7 @@ App
|
|
|
412
452
|
├── FileViewerModal
|
|
413
453
|
├── WorkerDetailModal
|
|
414
454
|
├── ArtifactModal
|
|
415
|
-
├──
|
|
416
|
-
├── TabContextMenu (right-click on a Native Claude tab; "Add to cluster with...")
|
|
455
|
+
├── TabContextMenu (right-click on a Claude, Codex, Ollama or llama.cpp tab)
|
|
417
456
|
├── ProviderReleasesModal (in-app Ollama/Strata releases and Xolotl source history)
|
|
418
457
|
├── FloatingTerminalWindow (Workbench/; renders N operator-PTY windows, each a draggable/resizable overlay)
|
|
419
458
|
├── SyncingOverlay
|
|
@@ -422,7 +461,7 @@ App
|
|
|
422
461
|
├── DuplicateTabOverlay
|
|
423
462
|
├── ThemedBackgroundShader (the shader canvas)
|
|
424
463
|
└── Help system (z=9300+)
|
|
425
|
-
├── HelpButton ("?" toggle
|
|
464
|
+
├── HelpButton (floating bottom-right "?" toggle on the pre-workbench gate screens; in the workbench, POINT AT THINGS in the header HELP menu (HelpMenu) toggles help mode)
|
|
426
465
|
├── HelpBanner (top strip while help mode is active)
|
|
427
466
|
├── HelpPopover (per-target help content, anchored to the clicked element)
|
|
428
467
|
├── HelpCard (movable scoped-snippet card raised by a tool modal's ModalHelpButton)
|
|
@@ -450,41 +489,44 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
|
|
|
450
489
|
removes Cursor and llama.cpp while strict incognito is armed because neither
|
|
451
490
|
can meet its no-local-log contract.
|
|
452
491
|
|
|
453
|
-
- **`SystemHeader`** (I1 - information architecture) - a single Row 1
|
|
454
|
-
|
|
455
|
-
-
|
|
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; the adjacent VERSIONS button opens `ProvidersPopover`), `HeaderAuthChip` (its panel closes on an outside click or Escape, like the other top-bar popovers), 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, auth chip, 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.
|
|
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
|
+
- **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
|
+
- **`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
|
+
- **`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.
|
|
456
497
|
- **`NotificationCenter`** - the header bell (`◔ BELL`) with an unread badge. Dropdown shows the workbench-notice history + a per-category MUTE grid (checkbox -> `set_notification_mutes` via `onSetNotificationMutes`, threaded App -> SystemHeader -> `useWebSocket`). Backed by the standalone `notificationStore` (notices history + server-authoritative `muted` set + `lastSeenTs` unread marker). Always visible - even in I3 focus mode - since notices are the "agent finished / something broke" signal. Incoming `workbench_notice` also raises a transient toast via the existing top-right strip (`NotificationToasts` / `appStore.pushNotification`), not a second stack. See [`NOTIFICATIONS.md`](NOTIFICATIONS.md).
|
|
457
|
-
- **`TabBar`** - horizontal job list; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question wins, then a running turn, then New reply. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
|
|
498
|
+
- **`TabBar`** - horizontal job list; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question or idle member with mail wins, then a running turn, then New reply. A Needs you dot pulses and its label says it is still working when a turn also runs. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
|
|
458
499
|
- **`WorkflowView`** - owns the splitter and renders `ChatPanel` + `RightPanel`. Splitter width persists per-workflow. Forwards send/cancel/review/handoff/spawn callbacks to the children. **Focus mode:** when `appStore.focusMode` is true the left (chat) column goes `flex: 1 1 100%` and the splitter + `RightPanel` are unmounted, giving the chat the full width; toggling off restores the persisted split fraction. The chat column `Panel` carries `className="no-frost"` so `html[data-frosted="1"].arco-panel.no-frost { backdrop-filter: none }` (more specific than the generic frosted-blur rule) keeps the transcript crisp over the shader - matching the cluster transcript, which is never a `Panel`.
|
|
459
|
-
- **`NorthStarBar`** - inline-editable north-star chip
|
|
500
|
+
- **`NorthStarBar`** - inline-editable north-star chip in the composer status line (empty -> "set a north-star..."; soft-warn 1536 / cap 2048 bytes). Mirrors `job.config.goal`; edits go through `onUpdatePrimary({ goal })`.
|
|
460
501
|
- **`ChatPanel`** - virtualized chat log. The render-side `displayMessages` memo merges sources and dedupes (see "Chat rendering pipeline" below).
|
|
461
502
|
- **`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.
|
|
462
503
|
- **`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`.
|
|
463
504
|
- **`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.
|
|
464
|
-
- **`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`
|
|
465
|
-
- **`PreviewTab`** - iframe rendering of the workflow's dev server, fed by
|
|
466
|
-
- **`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;
|
|
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` (renamed from `ClaudeNativeOutputStyleSection`; shown on every provider) 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
|
+
- **`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; every other provider: output-style only). 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.
|
|
467
508
|
- **`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.
|
|
468
|
-
- **`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).
|
|
469
|
-
- **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
|
|
470
|
-
- **`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).
|
|
509
|
+
- **`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
|
+
- **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
|
+
- **`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.
|
|
471
512
|
- **`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.
|
|
472
|
-
- **`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 the header
|
|
513
|
+
- **`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`.
|
|
473
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`); ~388 surfaces across the app are annotated with `data-help="<key>"` (~435 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.
|
|
474
515
|
- **`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.
|
|
475
516
|
- **`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.
|
|
476
517
|
- **`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`.
|
|
518
|
+
- **`SkillsSettings`** (`components/SkillsSettings.tsx`) - the Settings > SKILLS section: rows with OFF, usage, extra files, import source and missing referenced skills (`GET /api/skills/details`), and EDIT, TURN OFF/ON, MOVE, DUPLICATE, UPDATE, SHARE WITH REPOSITORY and delete. `SkillImportDialog` (also opened from the composer SKILLS menu), `SkillUpdateDialog` (per-file diff with `diff`) and `SkillShareDialog` use `DialogShell`. See [HTTP API](HTTP_API.md) for `/api/skills/import/*`, `/update/*`, `/state`, `/move`, `/duplicate`, `/share`.
|
|
477
519
|
- **`SkillEditorDialog`** - stacked above `SettingsPanel`. Name / Description / Body fields, scope toggle on create (fixed on edit). `POST /api/skills`; edits propagate to the next primary turn (server re-scans `<cwd>/.arco/skills/` + `~/.arco/skills/` per turn and prepends an XML manifest to the system prompt). An **AUDIT** button (`POST /api/skills/audit`) runs an operator-triggered security scan of the current body - diagnostic-only, surfaced inline, never blocks Save.
|
|
478
520
|
- **`RunAsPicker`** - shared provider / model / effort picker used by `GitDialog` and `DocsUpdateDialog`. Exports `spawnConfigFromRunAs(parentConfig, selection, nameSuffix)` which inherits the parent config but overrides primary fields, suffixes the workflow name, and clears `resumeSessionId/resumeWorkflowId` so the new tab is fresh. When the picker selection matches the parent's current primary the dialog dispatches in-tab via `onConfirm(prompt)`; when changed it calls `onSpawn(newConfig, prompt, false)`. `ReviewDialog` and `SpawnDialog` have their own embedded pickers and could adopt this shared component to dedupe ~80 LOC each.
|
|
479
521
|
- **`NotificationToasts`** - top-right toast stack subscribed to `appStore.notifications`. Auto-dismisses 6 s after `createdAt`; backed by `pushNotification` / `dismissNotification` actions. The WS `error` handler is the primary producer so cluster-action rejections (Native fence, sandbox 503, etc.) surface regardless of which tab is focused.
|
|
480
522
|
- **`PlanBodyRenderer`** (2026-05-11; top-level `components/PlanBodyRenderer.tsx`) - shared rich plan renderer extracted from the former inline `PlanBody`. Renders H1/H2/H3 styling, clickable `- [ ]` / `- [x]` checkboxes (optimistic toggle), per-H3 action pill rows, and exports `CHECKBOX_RE` for host components. Used by both the per-worker PLAN tab (`RightPanel/PlanTab.tsx`) and `ClusterPlanTab.tsx` so the two surfaces stay visually identical. Action-pill set varies per host (worker plan: DETACH / PROMOTE / MOVE / DONE; cluster plan: none - the cluster plan IS the cluster plan). On a cluster-member plan whose board is attached it also renders a `-> TASK` pill next to each unchecked item (`onPromoteTask`) that promotes the item text into a durable board task (`task_ledger_create`).
|
|
481
523
|
- **`PlanCandidateBanner`** - REFINE (shown when the host passes `onSend`) opens a note field and `beginPlanRefine` (`terminalInput/planDraft.ts`) sends a `plan-review` turn carrying the current draft and the note; the reply replaces `planCandidate`, the old draft stays until then, the buttons are disabled while `pendingPlanCapture` is set, and nothing is saved until attach. Mounts between chat and composer when `job.planCandidate` is set. Captures from the latest finalized assistant message at `primary_complete` time; `turn_cancelled` clears `pendingPlanCapture` so a stale flag doesn't capture an unrelated later reply. Cluster-member tabs offer `ATTACH TO CLUSTER` as the only save button, with `REFINE` and `DISCARD` (resolved by `App.tsx` from the member's `clusterId`). A detection-based fallback in `ws/handleServerMessage.ts` (`looksLikePlan` from `ws/streamState.ts`: H1 + ≥3 checkbox lines) surfaces the banner in `review` mode even when the operator didn't click PLAN before sending.
|
|
482
|
-
- **`PublicProjectBox`, `ProjectStateNotice`, INSERT GUARDRAILS** - the public-project guardrails. `PublicProjectBox` (`utils/publicProject.ts`) is the "This project is public (or will be)" checkbox in the cluster creator, beside DRAFT A PLAN and
|
|
524
|
+
- **`PublicProjectBox`, `ProjectStateNotice`, INSERT GUARDRAILS** - the public-project guardrails. `PublicProjectBox` (`utils/publicProject.ts`) is the "This project is public (or will be)" checkbox in the cluster creator, beside DRAFT A PLAN, in plan editors, draft review, Genesis and the plans library; the choice is stored per project in the Arco home and cached in the browser; `effectivePublic` feeds `planDraftPrompt`/`beginPlanReview`, which append the shared template request from `@arco/shared` (`publicGuardrails.ts`) only when true. A confirmed-public GitHub remote (`GET /api/public-project/remote`) pre-ticks the box with a visible reason; an explicit choice wins. INSERT GUARDRAILS in plan tabs, the draft banner and the plans library calls `insertGuardrails` and leaves an unsaved edit; it is disabled when `hasGuardrails` is true. `ProjectStateNotice` (in `ClusterTab` and `WorkflowView`, skipped for isolated members) reads `GET /api/public-project/state` and offers RESTORE IGNORE FILE and STOP TRACKING; dismissal is stored per folder (`arco.projectStateNotice.<folder>`).
|
|
483
525
|
- **`AskUserQuestionNotice`** - inline reply form rendered by `ChatMessage` when it detects the `[ASK:claude-native:<questionId>]` sentinel a Native worker emits via `system_notice`. Parses an `[ASK_OPTIONS:opt1 | opt2]` line into option chips; otherwise renders a text input. Submits `ask_user_question_reply { workflowId, questionId, reply }` via `wsSendRaw`; the worker resolves the awaiting tool-result Promise.
|
|
484
526
|
- **`GateApprovalNotice`** (Native-only v1; see [PRIMITIVES.md](PRIMITIVES.md)) - the inline edit-then-approve card `ChatMessage` renders when it sees a synthetic `gate::<gateId>` row (`message.toolUse.tool === 'Gate'`) that the `gate_required` broadcast anchored into chat. Shows the parked sensitive tool call (Bash command line, or pretty-JSON for other tools) with an editable textarea (edit-then-approve), APPROVE / REJECT (sends `gate_reply` via `wsSendRaw`), and an "approve all like this" checkbox. `gate_resolved` flips the row's status in-place (`resolveGate`); standing approvals arrive via `gate_standing` -> `setStandingGateApprovals` and render + revoke (per-row `gate_revoke`) inside `ClaudeNativeReviewSafeModeSection` in CONFIG. Arg helpers live in `client/src/utils/gateArgs.ts` (`buildGateFinalArgs` / `renderGateArgs`). Gated behind the per-tab `reviewSafeMode` flag (default off).
|
|
485
527
|
- **`HistoryTab`** - covered in detail under the right-panel section below.
|
|
486
528
|
|
|
487
|
-
- **`UsageTab`** (Workbench, `components/RightPanel/UsageTab.tsx`) - the **USAGE** right-panel tab. Fetches `GET /api/usage-stats?path=<cwd>` (read-only, deterministic aggregation of the existing `primary_turn_token_usage` events under this workflow's cwd - **no new capture, no LLM**) and renders **per-provider, per-day token-volume + cache-hit-ratio trends**, framed as **quota-pressure / token-volume insight** ("which tab/model is eating my rolling window") - there is deliberately **no USD / cost framing** anywhere (subscriptions). Charts are **hand-rolled inline SVG** - a `<polyline>` sparkline of daily prompt volume per provider (single-day series renders as a dot) plus a `<rect>` cache-hit-ratio bar - so there's **no chart-library dependency**. The cache-hit ratio is computed server-side with the provider-correct denominator (Claude's input/cache fields are disjoint; Codex's `cacheRead` is a subset of `input`), so the tab just displays it. A ↻ refresh button re-fetches; an empty/missing-cwd/zero-turn state degrades to an `EmptyState`. When Cursor is logged in, a `CursorUsageCard` (framed "· polled · not live") renders above the aggregation - embedding `CursorIncludedGauge`, MTD tokens/events, per-kind chips, a ↻ re-poll (`/api/cursor-usage?force=1`), and a dashboard link - even on Cursor-only projects that have no per-turn events.
|
|
529
|
+
- **`UsageTab`** (Workbench, `components/RightPanel/UsageTab.tsx`) - the **USAGE** right-panel tab. Fetches `GET /api/usage-stats?path=<cwd>` (read-only, deterministic aggregation of the existing `primary_turn_token_usage` events under this workflow's cwd - **no new capture, no LLM**) and renders **per-provider, per-day token-volume + cache-hit-ratio trends**, framed as **quota-pressure / token-volume insight** ("which tab/model is eating my rolling window") - there is deliberately **no USD / cost framing** anywhere (subscriptions). Charts are **hand-rolled inline SVG** - a `<polyline>` sparkline of daily prompt volume per provider (single-day series renders as a dot) plus a `<rect>` cache-hit-ratio bar - so there's **no chart-library dependency**. The cache-hit ratio is computed server-side with the provider-correct denominator (Claude's input/cache fields are disjoint; Codex's `cacheRead` is a subset of `input`), so the tab just displays it. A ↻ refresh button re-fetches; an empty/missing-cwd/zero-turn state degrades to an `EmptyState`. When Cursor is logged in, a `CursorUsageCard` (framed "· polled · not live") renders above the aggregation - embedding `CursorIncludedGauge`, MTD tokens/events, per-kind chips, a ↻ re-poll (`/api/cursor-usage?force=1`), and a dashboard link - even on Cursor-only projects that have no per-turn events. Failed or invalid usage reads show an error; reopen USAGE to retry.
|
|
488
530
|
- **`TasksPanel`** + **`TaskCard`** - covered under the right-panel section.
|
|
489
531
|
- **`MemberCard` mail mark** - `pendingMail` (from `cluster.mailboxDepth`) renders a mail mark with the count; muted while the member is busy, warning-colored button while idle that calls `onNudge` (the `ClusterTab` `nudgeMembers` path, no toast). `clusterHasIdleMail` in `utils/tabStatus.ts` feeds an idle member with mail into the cluster tab and Home card Needs you status.
|
|
490
532
|
- **Cluster components** (`ClusterTab` / `ClusterRightPanel` / `ClusterPlanTab` / `ClusterActivityTab` / `ClusterMemberPicker` / `MemberCard` / `MemberPane` / `TabContextMenu`) - covered in the cluster-tab section below.
|
|
@@ -496,7 +538,7 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
|
|
|
496
538
|
|
|
497
539
|
### Help-system doc-sync checker (`scripts/docs-check.ts`)
|
|
498
540
|
|
|
499
|
-
The three help pieces - `data-help="key"` attributes on elements, the `HELP_CONTENT` registry (`client/src/help/content/`, assembled in `helpContent.tsx`), and the manual sections (`client/src/help/manualSections/`, each a `{ id, title, group, body }`) - have no compile-time link. `npm run docs:check`
|
|
541
|
+
The three help pieces - `data-help="key"` attributes on elements, the `HELP_CONTENT` registry (`client/src/help/content/`, assembled in `helpContent.tsx`), and the manual sections (`client/src/help/manualSections/`, each a `{ id, title, group, body }`) - have no compile-time link. `npm run docs:check` is a deterministic static validator that keeps them in sync. It runs as text/regex scans (the house style of `scripts/size-check.ts`), exits non-zero on a real orphan, and is wired into the per-change checklist in [`CONTRIBUTING.md`](../CONTRIBUTING.md).
|
|
500
542
|
|
|
501
543
|
What it validates:
|
|
502
544
|
|
|
@@ -526,6 +568,8 @@ Consumer today: **`MediaModalHost.tsx`** (`section="media-studio"`, in the heade
|
|
|
526
568
|
|
|
527
569
|
## Chat rendering pipeline
|
|
528
570
|
|
|
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.
|
|
572
|
+
|
|
529
573
|
`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.
|
|
530
574
|
|
|
531
575
|
### Two render paths
|
|
@@ -549,7 +593,7 @@ The sort handles out-of-order frame arrivals on the wire (long pauses between te
|
|
|
549
593
|
3. For each `job.messages` entry, decide its fate:
|
|
550
594
|
- **System notice** - keep as-is.
|
|
551
595
|
- **Streaming bubble** - try to trim the prefix that sessionChat has already materialized. If the suffix is empty after trim, drop the bubble. If trim fails but normalized whitespace matches, drop. If the streaming content has genuinely diverged from sessionChat, keep but pin to bottom (`timestamp = lastSessionTs + 1`).
|
|
552
|
-
- **Queued user message** - drop (surfaces in
|
|
596
|
+
- **Queued user message** - drop (surfaces in the composer status line as **PENDING**; open it to inspect, preview, edit or cancel. Source of truth is `job.queue`, kept in sync via the `queue_update` WS event).
|
|
553
597
|
- **Operator user message** - keep if there's no sessionChat echo within 5s (proximity-based dedup).
|
|
554
598
|
4. Build `optimisticUserMetaByKey` to merge optimistic-add metadata (timestamp + attachments) onto the matching sessionChat echo. Only merge if within `DEDUP_WINDOW_MS = 5000`.
|
|
555
599
|
5. Concat `enrichedSession + extras`, sort by timestamp.
|
|
@@ -564,7 +608,7 @@ Scan `displayMessages` for `[HANDOFF U+2014` and spawn-suffix prefixes. If found
|
|
|
564
608
|
|
|
565
609
|
Implementation note: the selector reads the full `clusters` map (`useAppStore((s) => s.clusters)`) and the derivation runs through `useMemo` keyed on `[clusters, lookupWfid]`. Selecting a fresh-object literal each render (`s => ({ name, role })`) re-runs the memo every commit and triggers an infinite update loop - keep the selector pointing at the referentially-stable map.
|
|
566
610
|
|
|
567
|
-
Row identity uses deterministic ids (`peer-sent-<msgId>` / `peer-recv-<msgId>`) so rehydrate-on-subscribe + tsx-watch restarts are idempotent. Three-layer dedupe: WS handler intake check, `appStore.addMessage` defense-in-depth, `onRehydrateStorage` strips historical duplicates on load. See
|
|
611
|
+
Row identity uses deterministic ids (`peer-sent-<msgId>` / `peer-recv-<msgId>`) so rehydrate-on-subscribe + tsx-watch restarts are idempotent. Three-layer dedupe: WS handler intake check, `appStore.addMessage` defense-in-depth, `onRehydrateStorage` strips historical duplicates on load. See [Gotchas](GOTCHAS.md).
|
|
568
612
|
|
|
569
613
|
### "Run in terminal" chat chip (Workbench Expansion)
|
|
570
614
|
|
|
@@ -633,8 +677,7 @@ tools over the app store (select, panels, send/steer/follow-up via
|
|
|
633
677
|
their dialog state, and `voice/screen.ts` is the generic layer (`readScreen`,
|
|
634
678
|
`actOnScreen`, `readText`) over the live DOM. `buildCheck.ts` +
|
|
635
679
|
`StaleBuildBanner` flag a tab left on an older bundle after a rebuild.
|
|
636
|
-
Audio is memory-only; Computer offers saved or strict memory-only history (Strata is saved-only). See
|
|
637
|
-
[VOICE.md](VOICE.md) Computer works today.
|
|
680
|
+
Audio is memory-only; Computer offers saved or strict memory-only history (Strata is saved-only). See [VOICE.md](VOICE.md) for the Computer voice workflow.
|
|
638
681
|
|
|
639
682
|
Capture acknowledgement uses the bundled quiet 230 ms Soft double pulse from
|
|
640
683
|
`/api/voice/ready-sound`, with unity gain and no normalization. It plays only
|
|
@@ -655,6 +698,10 @@ capture preservation and two display-font overrides.
|
|
|
655
698
|
|
|
656
699
|
## Composer state
|
|
657
700
|
|
|
701
|
+
CATCH ME UP resets its running state when switching workflows or clusters and cancels the old scope request. A late result cannot block summarization in the new scope.
|
|
702
|
+
|
|
703
|
+
In Chat, EDIT replaces both the draft text and its attachments. Editing a text-only message clears unrelated staged files. Claude Native question options preserve escaped pipe characters and original backslashes as part of the same answer.
|
|
704
|
+
|
|
658
705
|
`TerminalInput.tsx` decides between idle and queue mode based on:
|
|
659
706
|
|
|
660
707
|
```ts
|
|
@@ -681,9 +728,9 @@ When `isBusy`:
|
|
|
681
728
|
- `Alt+↑` -> recall most recently queued message into the editor (replaces draft; takes the last follow-up if any, otherwise the last steer)
|
|
682
729
|
- `Esc` -> cancel the in-flight turn; if the queue is non-empty the client confirms via `window.confirm("Drop N queued messages?")` first
|
|
683
730
|
- `Shift+Esc` -> force-cancel without the prompt
|
|
684
|
-
- Steering drains at provider boundaries on Codex app-server, Claude Native and local tool loops; single-shot transports deliver it after completion. Interrupt uses a separate cancellation path. Its queue entry carries `interrupt:true`, and the
|
|
731
|
+
- Steering drains at provider boundaries on Codex app-server, Claude Native and local tool loops; single-shot transports deliver it after completion. Interrupt uses a separate cancellation path. Its queue entry carries `interrupt:true`, and the PENDING list labels it **INTERRUPT & SEND**.
|
|
685
732
|
|
|
686
|
-
The send hook (`useWebSocket.sendMessage`) takes an optional `kind` argument. Explicit `interrupt` survives a stale client busy flag; the server starts normally if already idle. Other idle sends bypass the queue. The optimistic add's `queueKind` field drives the per-message [steer] / [follow-up]
|
|
733
|
+
The send hook (`useWebSocket.sendMessage`) takes an optional `kind` argument. Explicit `interrupt` survives a stale client busy flag; the server starts normally if already idle. Other idle sends bypass the queue. The optimistic add's `queueKind` field drives the per-message [steer] / [follow-up] label in the PENDING list.
|
|
687
734
|
|
|
688
735
|
`Esc` in an empty composer (idle) still cancels the most-recent queued message via `onCancelQueued` for muscle-memory parity, but with the busy-path Esc cancelling the whole turn this is rare.
|
|
689
736
|
|
|
@@ -691,13 +738,13 @@ Drafts (`draftStore`) and attachments (`appStore`) are keyed by `workflowId` so
|
|
|
691
738
|
|
|
692
739
|
**`/goal` command** - `/goal <objective>` sets, bare `/goal` queries, `/goal clear|none` clears the standing north-star (regex won't match `/goalkeeper`); pushes a local system row, never sends a turn.
|
|
693
740
|
|
|
694
|
-
|
|
741
|
+
While a turn is busy, `TURN` at the right of the NORTH STAR row shows elapsed turn time in single tabs and cluster member panes. The conversation header continues to show the current step time. After a browser reload during a turn, the server restores the original start when known; an older server or a turn with no known start uses the reconnect time. Idle tabs hide it. Single-tab ACTIVITY rows show local clock times, matching the cluster feed.
|
|
695
742
|
|
|
696
|
-
|
|
743
|
+
### PLAN FIRST (Claude Native only)
|
|
697
744
|
|
|
698
|
-
|
|
745
|
+
`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 documenter cluster members, and members whose roles prohibit 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`.
|
|
699
746
|
|
|
700
|
-
|
|
747
|
+
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.
|
|
701
748
|
|
|
702
749
|
### Fold / posture / project-trust pills (Claude Native)
|
|
703
750
|
|
|
@@ -710,6 +757,8 @@ The composer status row gained three Native-only operator surfaces (all gated on
|
|
|
710
757
|
|
|
711
758
|
The composer button row also carries **SECOND OPINION** (`composer.compare` -> `CompareDialog`, formerly COMPARE), **RESEARCH** (`composer.research` -> `ResearchDialog`), **✎ TUNEUP** (`composer.tuneup` -> `MdTuneupDialog`), **REMOTE** (per-workflow hub opt-in), **SKILLS**, a single menu with Arco-managed playbooks and, for Claude CLI or Codex, a separate provider-native section. NEW SKILL opens the editor; unsupported transports do not show a native section. Each Arco-managed skill row has **APPLY ONCE** (stages `pickedSkills`, full body inlined into the next user turn) and **PIN TO TAB** (whole-set `update_primary_config { pinnedSkills }`; durable refs in meta, current bodies injected as standing system instructions every turn). Pinned chips stay visible above the composer with × unpin; `pinned_skills_set` synchronizes observers and adds a SKILLS activity row. Both modes include `operatorOnly` skills hidden from automatic discovery. **⊟ COMPACT** sits alongside the documented REVIEW / HANDOFF / SPAWN / DOCS / GIT; on Cursor it dispatches native `/compress` without normal prompt prefixes, and the worker header reads `CTX: Cursor-managed` because ACP supplies no retained-context count.
|
|
712
759
|
|
|
760
|
+
TUNE MD discovery skips Git-ignored directories and nested Git checkouts or worktrees. Individually ignored instruction files and an explicitly selected ignored folder remain searchable. Useful hidden guidance remains discoverable. The scan stops at entry, time or depth limits and shows Results truncated instead of claiming its list is complete. Opening a smaller project folder narrows discovery. File metrics, linked-file reporting, proposal review, ACCEPT and UNDO keep their existing behavior.
|
|
761
|
+
|
|
713
762
|
### Context refs (`@file:` / `@diff` / `@staged` / `@git:N` / `@url:`)
|
|
714
763
|
|
|
715
764
|
Inline composer expansion. The operator types an `@`-ref in the draft and Arco expands it into the turn's context at send time - killing the "paste this file/diff in" friction.
|
|
@@ -718,7 +767,11 @@ Inline composer expansion. The operator types an `@`-ref in the draft and Arco e
|
|
|
718
767
|
|
|
719
768
|
- **Parse (client, pure).** `client/src/components/composer/contextRefs.ts` exports `parseContextRefs(text): ContextRef[]` - a pure, DOM-free parser (no React imports, so the headless smoke imports it directly). The grammar, one regex anchored on `@` at a word boundary (so an email `a@b.com` or npm scope `@scope/pkg` mid-token isn't matched): `@file:<path>` (path to next whitespace), `@diff`, `@staged` (bare keywords with a `\b` so `@diffstat` doesn't match), `@git:<digits>` (digits only - `@git:abc` is left as plain text), `@url:<url>`. Each `ContextRef` carries `kind` / `raw` / `arg` / `count` / `start` / `end`.
|
|
720
769
|
- **Chip (client).** `TerminalInput.tsx` memoizes `parseContextRefs(draft)` and renders a chip bar above the attachments bar - one chip per ref, with a `×` that strips the ref's exact span from the draft (`removeContextRef(start, end)`). The chips are purely a visual affordance; the server is the source of truth (it re-parses + expands). `@url:` chips render dimmed with a "not yet supported" tooltip. `data-help="composer.context-refs"`.
|
|
721
|
-
- **Server-expand.** `server/src/contextRefs.ts` `expandContextRefs(cwd, content)` runs once in `turnEngine.handleUserMessage`,
|
|
770
|
+
- **Server-expand.** `server/src/contextRefs.ts` `expandContextRefs(cwd, content)` runs once in `turnEngine.handleUserMessage`, before the busy/queue split. `@file:` confines the path to the project and passes supported documents and notebook cells through the shared decoder. It limits expanded text to 64 KiB per reference and carries media through the provider attachment path. SVG references carry source text; image-capable models also receive a fitted preview when rendering succeeds, while text-only models receive an image-omission note. Both count toward the aggregate context budget. Binary files produce a note.
|
|
771
|
+
|
|
772
|
+
`@diff` and `@staged` use `gitDiff`; `@git:N` caps N at 50. Failures become readable notices. `@url:` remains unsupported.
|
|
773
|
+
|
|
774
|
+
Expanded text is sent with the prompt while the chat echo stays compact. Queued messages retain the expansion and any media until delivery.
|
|
722
775
|
- **Log.** When any ref expands, the server emits a `system_notice` summarizing the per-ref outcome (expanded / truncated / refused / deferred), which `send` seq-stamps into `events.jsonl` - visible + reviewable per the four-question test, like attachments.
|
|
723
776
|
|
|
724
777
|
Smoke: `npm run smoke:context-refs` (`scripts/smoke/context-refs.ts`) - unit-tests the parser and exercises the real expander against this checkout (real `@file:package.json`, `@diff`, `@git:2`, plus path-traversal refusal and oversized-file truncation). No WS, no server boot.
|
|
@@ -806,15 +859,12 @@ Lifecycle and accessibility behavior is implemented by the theme components.
|
|
|
806
859
|
|
|
807
860
|
**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.
|
|
808
861
|
|
|
809
|
-
Notable shader-related commits:
|
|
810
|
-
- `8a5af37` - switched to `highp` precision and bounded hash inputs to prevent long-uptime freezes (Mali GPU NaN cascade)
|
|
811
|
-
- `0691c8e` - toned down background effects across four themes (operator feedback)
|
|
812
|
-
- (this commit) - banding-prone radial gradients stripped across all dark-theme shaders; bloom canvas pixel ratio raised 0.4× -> 1.0×; matrix font swap; font-pack override system
|
|
813
|
-
|
|
814
862
|
CSS animations are gated by data attributes set in apply: `data-anim-scan` / `data-anim-pulseHalo` / `data-anim-flicker`. Each theme opts in.
|
|
815
863
|
|
|
816
864
|
### Theme switching
|
|
817
865
|
|
|
866
|
+
Switching palettes removes optional tokens supplied only by the previous theme, including classic link colors. Independent preferences remain unchanged.
|
|
867
|
+
|
|
818
868
|
`store.setThemeId(id)` is optimistic: applies locally first, then PATCHes `/api/settings`. On failure, reverts.
|
|
819
869
|
|
|
820
870
|
`store.setFontPackOverride(id | null)` follows the same pattern; passing `null` clears the override.
|
|
@@ -826,9 +876,9 @@ provider-auto) from **Arco Phosphor** (68 namespaced Phosphor palettes).
|
|
|
826
876
|
Phosphor shares one paint-only CRT treatment, with category/search selection,
|
|
827
877
|
independent effects and glow-softness controls, and existing font/brightness/
|
|
828
878
|
crisp/frost preferences. No workbench layout or content is rearranged. See
|
|
829
|
-
|
|
879
|
+
Theme switching and display preferences are implemented by `client/src/themes/` and the Settings appearance controls.
|
|
830
880
|
|
|
831
|
-
The 42
|
|
881
|
+
The 42 named theme IDs are: abyssal, amber-crt, arch, arrakis, aurora, bloodmoon, blueprint, braun, cassette-futurism, cherenkov, cicada, concrete, copper, cute, dark-academia, dsky, everforest, forest, frutiger-aero, holographic, infrared, kintsugi, lavender, matrix, midnight-tokyo, nebula, night-city, noir, ocean, arco-default, arco-jungle, oscilloscope, red-planet, seismograph, sentinel, solar-paper, sonar, stealth, tarkovsky, ume, unfinished-works, voyager. (`registry.ts` is the live source; it also wires the dynamic `provider-auto` sentinel separately from these named themes.) Red Planet and Everforest provide optional exact xterm Core + ANSI palettes; other themes retain xterm's default ANSI colors while inheriting the app background, foreground, and cursor.
|
|
832
882
|
|
|
833
883
|
---
|
|
834
884
|
|
|
@@ -855,6 +905,10 @@ The 42 (alphabetical by id): abyssal · amber-crt · arch · arrakis · aurora
|
|
|
855
905
|
|
|
856
906
|
## Right panel tabs
|
|
857
907
|
|
|
908
|
+
The GitHub Code view decodes README and file contents as UTF-8. Tree, README and file reads are cancelled and ignored after selection changes. Relative document links separate decoded repository paths from URL fragments; opening the file scrolls to its section.
|
|
909
|
+
|
|
910
|
+
In CONFIG, the codebase memory index draft resets when the member changes. Expanded review rows load their report when completion arrives and clear a previous read error on success.
|
|
911
|
+
|
|
858
912
|
| Tab | Component | Data source |
|
|
859
913
|
|---|---|---|
|
|
860
914
|
| FILES | `FileExplorer` + a `LIVE` sub-tab (`LiveChangesPanel`, live working-tree subscription via `liveChangesStore`) + a `CHANGES` sub-tab (`ChangesPanel`, A3 whole-tree diff) + a `SOURCE` sub-tab (`WorkingChangesPanel`, I1 per-file grouped changes) + a `REMOTE` sub-tab (`CompareRemotePanel`, I2 local↔upstream ahead/behind + fetch); `BlastRadiusTab` sub-tab when codebase memory attached | `GET /api/files?path=` lazy on expand; `GET /api/workflows/diff` for CHANGES; `GET /api/git/diff` for SOURCE; `GET /api/git/compare` + `POST /api/git/fetch` for REMOTE; `job.config.codebaseMemory` for the BLAST RADIUS nav |
|
|
@@ -872,7 +926,7 @@ The 42 (alphabetical by id): abyssal · amber-crt · arch · arrakis · aurora
|
|
|
872
926
|
| USAGE | `UsageTab` | `GET /api/usage-stats?path=<cwd>` (per-provider/per-day token + cache-ratio trends) |
|
|
873
927
|
| PREVIEW | `PreviewTab` | `job.preview` + `job.previewHistory` |
|
|
874
928
|
| CONFIG | `ConfigTab` (with `CodebaseMemorySection` + `McpRegistrySection` mounted at the end) | `job.config` (incl. `autoHandoff`, `codexTransport`, `codebaseMemory`), `cliChanges`, `settings.codex.appserverWarningSeen` |
|
|
875
|
-
| GITHUB | `GitHubPanel` | `GET /api/github/*` proxied via `gh` CLI |
|
|
929
|
+
| GITHUB | `GitHubPanel` | `GET /api/github/*` proxied via `gh` CLI. Failed or invalid detail reads show an error; return to the list and reopen the item to retry. |
|
|
876
930
|
|
|
877
931
|
**BAKE-OFF tab.** The form owns a 2-5-row array of shared `RunAsPicker`
|
|
878
932
|
selections and sends one `bakeoff_start`. Attempt workflows arrive as normal
|
|
@@ -882,6 +936,12 @@ patch into the shared `DiffView`, explicitly promote it, or clean selected
|
|
|
882
936
|
worktrees. `appStore.bakeoffsByWorkflow` is a server-rehydrated projection;
|
|
883
937
|
durable truth remains the out-of-repo manifest.
|
|
884
938
|
|
|
939
|
+
**New cluster members.** A `workflow_created` with `clusterMemberPending` sets
|
|
940
|
+
`JobState.pendingClusterMember`: `standaloneTabJobs` (TabBar) and `openWork`
|
|
941
|
+
(Home) leave the job out and `createJob` keeps the current focus, until
|
|
942
|
+
`setClusterState` lists the member (the flag is cleared) or a `cluster_*` error
|
|
943
|
+
calls `releasePendingClusterMembers`. The flag is not kept across a reload.
|
|
944
|
+
|
|
885
945
|
**FILES tab - worktree picker (Workbench I / `WorktreeInfo`).** `useWorktreeSelection` + `WorktreePicker` (shared by `FilesTabBody` + `ClusterFilesTabBody`) resolve which git worktree a worker is editing - AUTO = the worker's active-task worktree from the store `taskLedger` (in_progress preferred; cluster keys by `baseCwd::boardKey`), plus enumerated linked worktrees via `GET /api/git/worktrees` (4s poll). The resolved `effectiveCwd` (`selectedWorktree || autoWorktreePath || baseCwd`) is passed to `LiveChangesPanel` / `ChangesPanel` / `WorkingChangesPanel` / `CompareRemotePanel` (was always `cwd`). The header picker shows when >1 worktree or an auto target exists; main is labelled "tab root" / "cluster root".
|
|
886
946
|
|
|
887
947
|
**FILES tab - CHANGES sub-tab + the diff renderer (Workbench Expansion A3).** `client/src/components/diff/DiffView.tsx` is a **source-agnostic** unified-diff renderer (`react-diff-view`, themed to CSS vars via `diff-view.css`, unified/split toggle, collapsible per-file): it takes a `patch` string (or pre-parsed `files`) and nothing else - it never imports the endpoint or any "source" concept, so A4 revert, A6/A7 file-edit diffs, D5 inline comments, and all of Part I (Git/GitHub workbench) reuse it unchanged. All data-fetching/source selection lives outside it: `ChangesPanel` (client) calls `GET /api/workflows/diff?wfid&path&from&to`, and `server/src/gitDiff.ts` (via `server/src/http/diffRoutes.ts`) runs the right `git diff` (two shadow `refs/arco/*` refs, or working-tree vs HEAD). The CHANGES sub-tab shows working-tree-vs-HEAD; `GitDialog` shows the same working-tree diff (collapsible) before the commit prompt. The endpoint always answers 200 with `{ patch, isRepo, from, to, missingRef? }` - non-git dirs / missing refs degrade gracefully, never 500.
|
|
@@ -894,7 +954,7 @@ durable truth remains the out-of-repo manifest.
|
|
|
894
954
|
|
|
895
955
|
**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.
|
|
896
956
|
|
|
897
|
-
CONFIG carries a red dot when `cliChanges.length > 0`. The PLAN tab supports attach/detach (`plan_attach` / `plan_detach` WS), inline create/edit (REST `POST` / `PATCH`), mark-complete + reopen + hard-delete (REST `PATCH { completedAt }` / `DELETE`).
|
|
957
|
+
CONFIG carries a red dot when `cliChanges.length > 0`. The PLAN tab supports attach/detach (`plan_attach` / `plan_detach` WS), inline create/edit (REST `POST` / `PATCH`), mark-complete + reopen + hard-delete (REST `PATCH { completedAt }` / `DELETE`). The shared chooser lists open plans first and keeps finished plans under Show finished. Each row shows age, task count, preview, attachment, and active-use information. The list scrolls within half the window height. One list request supplies task counts; bodies load only on PREVIEW. Switching window focus does not reload it. The plan detail shows active and past workflow attachments.
|
|
898
958
|
|
|
899
959
|
`PlanBodyRenderer` renders the body as preformatted markdown but parses `- [ ]` / `- [x]` lines into clickable checkboxes. Click -> optimistic body update + `PATCH /api/plans { body }` to persist; the server's plan_attached re-broadcast confirms the change. The body fetch only clears the visible body when `plan.id` changes (operator switched plans); on a same-plan refetch (after the agent edited the file -> watcher reconcile -> `updatedAt` bumped) the prior body stays on screen until the new content lands, so the panel doesn't flicker through "loading..." on every agent edit. Tracked via a `lastPlanIdRef` ref.
|
|
900
960
|
|
|
@@ -918,7 +978,7 @@ The tab itself runs four operator actions:
|
|
|
918
978
|
- **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.
|
|
919
979
|
- **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`.
|
|
920
980
|
- **SPAWN FROM HERE** - opens the existing `SpawnDialog`; on confirm, dispatches `spawn_from_here_request` via `wsSendRaw` with `cutoffEventSeq` baked in.
|
|
921
|
-
- **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
|
|
981
|
+
- **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.
|
|
922
982
|
|
|
923
983
|
The filter strip (`FILTERS`, persisted per workflow under `arco.historyFilter.byWorkflow`) presets are: ALL · TURNS · TOOLS · LABELS · HANDOFFS · REVIEWS · CHECKPOINTS (`checkpoint`) · REWINDS (`fork`).
|
|
924
984
|
|
|
@@ -934,8 +994,12 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
|
|
|
934
994
|
|
|
935
995
|
## Dialogs
|
|
936
996
|
|
|
937
|
-
|
|
938
|
-
|
|
997
|
+
Rendered Markdown and plain-text file viewers default to their reading column plus padding, clamped to the window, and keep most of its height. RAW, code, overflowing tables, images and other media retain the larger viewer size. Saved dimensions for the dialog kind take priority. Reset size returns to the current view's natural default; Maximize and Restore retain the previous dimensions. File and folder pickers keep their larger share of the window.
|
|
998
|
+
|
|
999
|
+
The diagonal grip in the bottom-right corner resizes every work-surface dialog by dragging. Focus the grip and use arrow keys, or Shift with arrow keys for larger steps. Home and Reset size restore the default. The grip's tooltip reads "Drag to resize" with keyboard instructions.
|
|
1000
|
+
|
|
1001
|
+
- **`DialogShell`** (`components/DialogShell.tsx`) - the shared layout for operator dialogs opened from the composer and the top bar. Portals into `document.body` so no composer or chat ancestor can clip or cover it; renders the opaque dialog surface, a header with the title and a close button (x), a scrolling body, an optional status line (result or error) that stays visible, and actions at the bottom right with space beside them for the resize grip. Escape and the header close button dismiss it; backdrop clicks close only when `closeOnBackdrop` is set. Used by TIDY, CATCH ME UP, BRIEF, FORWARD, SEND TRANSCRIPT and the composer's GIT, SPAWN, HANDOFF (ROTATE SESSION), REVIEW, PLAN, DOCS, TUNE UP, DEEP RESEARCH and SKILL editor dialogs, so all of them share the header close button, status line and bottom-right actions. `bodyRef` and `onBodyScroll` let a dialog (GIT) remember its scroll position. Dialogs that use `WorkSurfaceControls` (`components/workSurface/WorkSurfaceControls.tsx`) open at a size suited to their kind (`pickerSurfaceSize`, `contentSurfaceSize`, `formSurfaceSize`, or `confirmationSurfaceSize`), offer Maximize / Restore, Reset size and a bottom-right diagonal resize grip (drag or arrow keys; Home resets), and remember width, height and maximized state in this browser under `arco.dialog-size.<kind>` (a stable kind key only; no project names or paths).
|
|
1002
|
+
- **`PlanComposerDialog`** - opens from PLAN button in the composer. Two paths, both inject the same synthesize-from-context prompt: "Draft -> I'll review" arms `pendingPlanCapture: 'review'` (banner offers SAVE & ATTACH / DISCARD on the next primary_complete); "Draft & auto-save" arms `'autosave'` (banner self-fires the save and clears). Cluster member review drafts and detected plan-shaped replies show the same banner in the member pane, with ATTACH TO CLUSTER in place of SAVE & ATTACH; nothing attaches without that click. A cluster member's auto-save request is turned into a review draft, so it shows the same banner. Title is extracted from the captured body via `# Heading` -> first non-empty line -> `Plan from <date>` fallback.
|
|
939
1003
|
- **`PlanCandidateBanner`** (between chat and composer) - renders only when `job.planCandidate` is set. Captures from the latest finalized assistant message in `job.messages` at `primary_complete` time. `turn_cancelled` clears `pendingPlanCapture` so a stale flag doesn't capture an unrelated later reply.
|
|
940
1004
|
- **`ReviewDialog`** - opens from REVIEW button. Picks reviewer (provider/model/effort, including `llamacpp`), scope (`last-turn` / `last-n` / `current-session` / `full` / `git-diff`), include-git-diff. Sends `review_request`. **Plan-scoped variant:** when `prefilledPlanRef + prefilledScopeLabel` props are set (from `PlanTab`), the SCOPE row collapses to a locked label ("PLAN: ...") and a MODE row (VERIFY / CRITIQUE) appears. **Since-event variant:** when `prefilledSinceEventRef` is set (from `HistoryTab`), the SCOPE row collapses to a locked `FROM hh:mm:ss - <label>` chip and the plan-mode picker is hidden. The Claude model row reads the live polled `claudeNativeCatalog` when present (with display names + per-model effort gating), falling back to the static `CLAUDE_MODELS` aliases when no Native auth has fetched a catalog yet - same pattern as `WorkflowCreator`. A useEffect clamps the model state to a value in the current pill set (catches the dialog opening before catalog arrives, then reconciling once it lands). VERIFY WORK / VERIFY PHASE WORK pass `initialIncludeGitDiff: true` so the toggle pre-ticks; default-undefined leaves it off for plain reviews.
|
|
941
1005
|
- **`PlanReviewPicker`** - tree-with-checkboxes modal opened by `CUSTOM REVIEW` in the Plan tab. Tri-state per-section checkboxes, SELECT ALL / ALL CHECKED / CLEAR shortcuts. Mirrors the server's task-detection rules (CHECKBOX_TASK_RE, NUMBERED_TASK_RE, H2 reset) so what the picker shows is exactly what the reviewer will receive. Returns `${phaseIdx}/${taskIdx}` IDs to the parent.
|
|
@@ -946,13 +1010,15 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
|
|
|
946
1010
|
- **`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.
|
|
947
1011
|
- **`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.
|
|
948
1012
|
- **`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.
|
|
949
|
-
- **`FileViewerModal`** - opens from clicking a file path in a tool-call pill or the file explorer. Portaled to `document.body` via `createPortal` so `position: fixed` escapes the chat virtualizer's transformed ancestor. Hosts the A6 editor (`editor/CodeEditor.tsx`, a CodeMirror 6 wrapper) under EDIT/LOCK + SAVE, and - when opened with an `editContext.workflowId` - the **A7 AI-edit affordance** (below). Filenames in replies open it too: inline code, links, headings, images and a filename alone on a line always link; a filename inside a sentence links only when it matches a file the agent wrote or one in the workflow's artifacts folder (`utils/chatFileLinks.ts`). Relative names are sent as written and the server (`GET /api/file-content`) resolves them against the project folder, then the artifacts folder, and returns `resolvedPath`; the viewer header shows that path, and a missing file is reported as `File not found: <name>`. Windows drive and UNC paths are used as given.
|
|
950
|
-
- **`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).
|
|
951
|
-
- **`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** (header
|
|
1013
|
+
- **`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.
|
|
1014
|
+
- **`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.
|
|
1015
|
+
- **`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`.
|
|
1016
|
+
|
|
1017
|
+
Image paste adds a layer only while the image editor is open and visible. Returning to VIEW or closing Media studio releases its paste and keyboard shortcuts, so clipboard images attach to chat message boxes again. Closing retains the existing SAVE behavior; unsaved edits are discarded.
|
|
1018
|
+
|
|
952
1019
|
- **`media/AudioEditor/AudioEditor.tsx`** (Workbench Expansion) - the audio editor that replaces the bare `<audio>` for imported audio. Props `{ src; filename?; onRegionChange?(start, end) }` where `src` is the **same object URL** the host already owns (no second URL; the host still owns revocation). Built on **`wavesurfer.js`** (v7, **BSD-3-Clause**; client workspace only) - waveform + transport from core `WaveSurfer`, region select from its regions plugin (`wavesurfer.js/dist/plugins/regions.esm.js`). The `waveColor`/`progressColor`/`cursorColor` are resolved from the `--color-*` CSS vars at init (canvas can't read CSS vars live). Transport = play/pause + `mm:ss.mmm` time readout; click the waveform to seek. One region with draggable in/out handles + editable `IN`/`OUT` numeric fields that two-way-bind to it; every in/out change fires `onRegionChange` - the **clip seam H6 reads** (the host stashes the latest value in `audioRegionRef`). **React lifecycle:** the `WaveSurfer` instance is created in a `src`-keyed `useEffect` and `destroy`-ed in cleanup, with a `disposed` flag aborting late async handlers so StrictMode's double-mount can't leak an instance or double-init the container. Clip/convert (FFmpeg) is H6 - the editor records the selection but performs no edit yet.
|
|
953
1020
|
- **`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.
|
|
954
1021
|
- **`ArtifactModal`** - for inline artifacts (confirm / choice / image). Has a response composer that sends a `[artifact:<id>] <answer>` follow-up to the primary.
|
|
955
|
-
- **`ConversationMenu`** - `CTX ▾` menu in the chat header. New / resume / compact / export. The **RESUME SESSION...** view merges discovery (`/api/sessions`) with the session-index projection (`/api/session-index`) by the `(provider, sessionId)` key, rendering rich rows (layered title + subtitle + provider/account tag + relative last-active) with operator **pin** (★, sorts to top), **rename** (✎, inline input -> `operator` title that survives refreshes), **archive** (⊘, hidden behind the ARCH toggle), and a live **filter** box. Index data + the rename/pin/archive mutations live in the standalone `stores/sessionIndexStore.ts` (kept out of `appStore`, mirroring `recallStore`); each mutation POSTs to `/api/session-index/*` and folds the server's returned entry back. Live `waiting/running/idle` + context/quota columns are a documented deferral (see `docs/RESUME_INDEX.md in H3`). See `docs/RESUME_INDEX.md`.
|
|
956
1022
|
- **`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.
|
|
957
1023
|
- **`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 `PROMOTE` button to flip the child into the top tab strip. 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`.
|
|
958
1024
|
- **`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).
|
|
@@ -965,6 +1031,8 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
|
|
|
965
1031
|
|
|
966
1032
|
## Overlays
|
|
967
1033
|
|
|
1034
|
+
The comparison results header shows CANCEL while either drafting or synthesis is active and requests cancellation before dismissal. Once work finishes it shows CLOSE. The runtime banner keeps its clock advancing while a worker is busy and online so silence can reach the stuck threshold without another event.
|
|
1035
|
+
|
|
968
1036
|
These are full-screen gates that block UI when something critical is happening:
|
|
969
1037
|
|
|
970
1038
|
- **`SyncingOverlay`** - fires when WS is up but persisted jobs haven't received their snapshot.
|
|
@@ -973,7 +1041,7 @@ These are full-screen gates that block UI when something critical is happening:
|
|
|
973
1041
|
- **`DuplicateTabOverlay`** - fires when another Arco tab is already alive.
|
|
974
1042
|
- **`DragOverlay`** - fires during file drag-over (composer attachment hint).
|
|
975
1043
|
|
|
976
|
-
**Command palette (`CommandPalette.tsx`, Workbench Expansion A5).** A `Cmd/Ctrl+P` fuzzy palette mounted in `App.tsx` (the hotkey `preventDefault`s so it doesn't trigger the browser Print dialog; Esc closes, arrows/Enter navigate). Four live sources: (a) active-workflow transcript rows - activating one switches tab + calls the existing `flashChatMessage` which drives `ChatPanel`'s virtualizer `scrollToIndex`; (b) top-level files under cwd (`GET /api/files`); (c) open workflows/tabs; (d) commands (new tab / Settings / Manual / GitHub). Fuzzy matching is a hand-rolled subsequence scorer (no `fuse.js` dep). **Content search** is a separate server path: the palette can query `GET /api/search/content?wfid&q` -> `server/src/contentSearch.ts` `searchContent` (a reusable `rg --json` engine, decoupled from HTTP
|
|
1044
|
+
**Command palette (`CommandPalette.tsx`, Workbench Expansion A5).** A `Cmd/Ctrl+P` fuzzy palette mounted in `App.tsx` (the hotkey `preventDefault`s so it doesn't trigger the browser Print dialog; Esc closes, arrows/Enter navigate). Four live sources: (a) active-workflow transcript rows - activating one switches tab + calls the existing `flashChatMessage` which drives `ChatPanel`'s virtualizer `scrollToIndex`; (b) top-level files under cwd (`GET /api/files`); (c) open workflows/tabs; (d) commands (new tab / Settings / Manual / GitHub). Fuzzy matching is a hand-rolled subsequence scorer (no `fuse.js` dep). **Content search** is a separate server path: the palette can query `GET /api/search/content?wfid&q` -> `server/src/contentSearch.ts` `searchContent` (a reusable `rg --json` engine, decoupled from HTTP; Recall uses the same ripgrep matcher through a canonical-history stream; respects `SKIP_DIRS`, degrades to `{available:false}` when `rg` isn't on PATH); content hits follow the file browser private-path rules and open in `FileViewerModal`. (Deferred niceties: recursive file walk, line-anchored viewer scroll.)
|
|
977
1045
|
|
|
978
1046
|
**Compare primitive (`components/compare/`,).** A bounded fan-out-and-vote surface: now **SECOND OPINION**: the operator types a question (or selects chat messages) and picks N models (each a `{provider, model, effort}` via the shared `RunAsPicker`); each drafts, independently and read-only, the reply the operator could send to the worker, with recent turns by default when no messages are selected, optional read-only file access off by default, and a summary of the context. The operator votes, optionally SYNTHESIZEs, and **USE THIS REPLY** puts the draft in the worker's composer (nothing is sent). Per-model picks are tallied locally. State lives in the standalone **`stores/compareStore.ts`** (kept out of `appStore`, like `docEditStore`/`recallStore`), driving two globally-mounted App.tsx surfaces: **`CompareDialogHost`** (wraps `CompareDialog` - the prompt + per-leg `RunAsPicker` rows + a `blind` flag that hides leg identities until the vote) and **`CompareOverlay`** (the live run - **`CompareGrid`** of side-by-side answer panes cloned from `MemberPane`'s structure, plus **`CompareVote`** which reveals the winner and offers a synthesize step). Launched from the **SECOND OPINION** button in `TerminalInput` (wiring in `components/terminalInput/compare.ts`); `COMPARE_MIN_LEGS`/`COMPARE_MAX_LEGS` from `@arco/shared` bound the leg count. See `docs/PRIMITIVES.md` / `docs/PROTOCOL_PRIMITIVES.md`.
|
|
979
1047
|
---
|
|
@@ -1020,6 +1088,15 @@ See [`CONTRIBUTING.md`](../CONTRIBUTING.md) for the full dev workflow.
|
|
|
1020
1088
|
|
|
1021
1089
|
## Cluster tab rendering
|
|
1022
1090
|
|
|
1091
|
+
Member status shows WORKING when a turn is accepted, including when its first activity is a tool call, and returns to IDLE when the turn settles. The header shares its row with the current step and CTX / OUT counters; each step stays visible briefly. Member cards keep the last settled reply or tool step without displaying reasoning fragments.
|
|
1092
|
+
|
|
1093
|
+
Automatic nudges and pickup reminders appear as folded mailbox lines in chat, pending PREVIEW and HISTORY. Use + to read the full text and - to fold it. The member receives the full message; typed messages are not folded by their wording.
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
A new connection retries missing member rehydrate requests whose replies were lost on the previous socket. Duplicate requests on one socket are still suppressed.
|
|
1097
|
+
|
|
1098
|
+
Disconnected broadcasts retain the draft, attachments and chosen recipients for retry.
|
|
1099
|
+
|
|
1023
1100
|
Cluster tabs are a third top-level view alongside `WorkflowView` and `WorkflowCreator`. App.tsx routes between them via mutually-exclusive store fields: setting `activeJobId` clears `activeClusterId` and vice-versa. The cluster mirror lives at `appStore.clusters: Record<clusterId, ClusterStatePayload>`, populated on `cluster_state` / `cluster_created` push and persisted alongside `jobs` so a reload survives.
|
|
1024
1101
|
|
|
1025
1102
|
**Composition:**
|
|
@@ -1034,25 +1111,25 @@ ClusterTab (App.tsx routes here when activeClusterId set)
|
|
|
1034
1111
|
├── ClusterRightPanel (right; width persisted, fraction clamped to [0.18, 0.5], default 0.28)
|
|
1035
1112
|
│ ├── WORKSPACE group - MEMBERS (rows + role/tier/focus/rename/add-worker) and FILES (cluster.cwd)
|
|
1036
1113
|
│ ├── AGENT group - ACTIVITY, REVIEWS, HANDOFFS, PLAN, BOARD, MAILBOX
|
|
1037
|
-
│ ├── MEMORY group - HISTORY (
|
|
1038
|
-
│ └── RUNTIME group - PREVIEW (
|
|
1114
|
+
│ ├── 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)
|
|
1115
|
+
│ └── RUNTIME group - PREVIEW (the member in view, same picker), CONFIG (member selector + ConfigTab), GITHUB (cluster.cwd)
|
|
1039
1116
|
└── Recipient chooser dialog (opened from the composer's TO chip)
|
|
1040
1117
|
└── on send to several: cluster_broadcast WS message + local toast
|
|
1041
1118
|
```
|
|
1042
1119
|
|
|
1043
|
-
**Why ClusterRightPanel replaces RightPanel.** Per-member RightPanel toggles (FILES / ACTIVITY / REVIEW / HANDOFFS / PLAN / TASKS / HISTORY / PREVIEW / CONFIG / GITHUB) are scoped to a single workflow; in a cluster they multiply confusingly across panes. The cluster's single right-pane focuses on cluster-level state - members, the shared mailbox, the shared plan, interleaved activity, cluster-wide reviews - plus a few cluster-scoped reuses of single-workflow tabs (GitHub / Files keyed to `cluster.cwd`; History / Preview
|
|
1120
|
+
**Why ClusterRightPanel replaces RightPanel.** Per-member RightPanel toggles (FILES / ACTIVITY / REVIEW / HANDOFFS / PLAN / TASKS / HISTORY / PREVIEW / CONFIG / GITHUB) are scoped to a single workflow; in a cluster they multiply confusingly across panes. The cluster's single right-pane focuses on cluster-level state - members, the shared mailbox, the shared plan, interleaved activity, cluster-wide reviews - plus a few cluster-scoped reuses of single-workflow tabs (GitHub / Files keyed to `cluster.cwd`; History / Preview follow the focused member, then the director, then the first member where the underlying wire is workflow-scoped). CONFIG is intentionally **member-scoped** inside the cluster panel: the operator picks a member, then the existing `ConfigTab` edits that workflow through the normal `update_primary_config`, codebase-memory, and MCP registry paths. There is no hidden "cluster config" write that mutates all members.
|
|
1044
1121
|
|
|
1045
1122
|
**Peer-message rendering.** The store extends `ChatMessage.role` with `'peer-sent' | 'peer-received'` synthetic variants. `ws/handleServerMessage.ts` injects a synthetic ChatMessage entry on every `peer_message_sent` / `peer_message_received` event; `peer_send_rejected` becomes a `[PEER] Send rejected -> <to> (<reason>)` system row. `ChatMessage.tsx` renders these via a `PeerMessageBlock` early-return branch - colored left-border + sender label, color via stable djb2 hash of `senderWorkflowId` over an 8-color palette. Same sender = same color across the cluster. The rendering branch sits before the system-notice / handoff-seed / spawn-seed branches; ordering is load-bearing.
|
|
1046
1123
|
|
|
1047
1124
|
**One typing surface.** The cluster tab has no bottom broadcast composer. It opens with the director focused (the first member whose role starts with director or coordinator, else the first member) and lists the director first until the operator drags a card (a per-cluster flag in `localStorage`, `arco.clusterReordered.<id>`). The focused member's own message box is where the operator types. The empty composer's placeholder names the target: "Message the director, your main contact..." for the director, "Message <member name>..." for another member. Focus never changes on its own: the director card shows a quiet `NEW REPLY` mark when a finished reply has not been looked at, and a question toast from another member offers `GO TO DIRECTOR`. Helpers live in `components/clusterSurface.helpers.ts`.
|
|
1048
1125
|
|
|
1049
|
-
**Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the
|
|
1126
|
+
**Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the attention badge and the plan line. `NeedsYouBadge` groups WAITING, BLOCKED, ASKED and TO ACCEPT with stopped groups first; only the first two use the theme warning colour. TO ACCEPT explicitly says acceptance is optional. With the narrow member list closed, one compact badge appears below its opener: `! <count>` counts only WAITING and BLOCKED, while optional-only ASKED/TO ACCEPT items show a plain muted number; opening the list moves the same summary into its header. Choosing a task reveals BOARD and closes the member list; "Members" in the plan line opens WORKSPACE > MEMBERS in the right panel.
|
|
1050
1127
|
|
|
1051
|
-
**NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
|
|
1128
|
+
**NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. **NUDGE ALL WITH MAIL (n)** beside SEND NUDGE runs the same per-member send for every member whose `mailboxDepth` is above zero (`membersWithMail` in `client/src/utils/clusterNudge.ts`), idle or busy, without touching the checkboxes; busy members get the active reminder through steering. Disabled with the reason when n is 0. The command palette entry `Cluster: nudge all with mail` (shown while a cluster tab is active) asks the owning `ClusterTab` through `requestNudgeAll`. After SEND NUDGE or NUDGE ALL WITH MAIL, a toast reads `Nudged N members` and, when any recipients were busy, appends `(M busy: reminded to read mail when convenient)`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
|
|
1052
1129
|
|
|
1053
1130
|
**AUTO-PICKUP control.** Operator-armed per-cluster chip in `ClusterRightPanel`'s header, next to the MAIL ALERTS chip. Default Off. The dialog sets a mode through `cluster_auto_pickup_set`: Off, Rule-based (recommended), Smart: Observe-only, or Smart: Automatic. Rule-based uses the detector in `server/src/clusterAutoTurn.ts` with acknowledgement filtering and adjustable wake-budget guards. Smart modes ask an operator-chosen evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl) through `server/src/smartPickup*.ts`. Older clients and the remote console still send `cluster_auto_turn_toggle`; `enabled: true` maps to Rule-based and `false` to Off. Distinct from the idle nudger: the nudger is toast-only and never sends prompts to workers; AUTO-PICKUP can dispatch turns when Rule-based or Smart Automatic is armed. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) and [SETTINGS.md](SETTINGS.md#auto-pickup).
|
|
1054
1131
|
|
|
1055
|
-
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on
|
|
1132
|
+
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on a Claude, Codex, Ollama or llama.cpp tab (`isClusterMemberProvider` less Cursor) opens `TabContextMenu` with CREATE WITH EXISTING (a multi-select list of other such tabs in the same cwd), ADD TO EXISTING and CREATE WITH FRESH. An open Cursor tab is refused like in ADD EXISTING: its ACP session was opened without the peer-tools MCP, so Cursor members are added fresh (+ ADD FRESH). Other providers get a refusal naming the accepted ones. Confirm dispatches `cluster_create`. × on a cluster tab confirms tear-down via `cluster_delete`.
|
|
1056
1133
|
|
|
1057
1134
|
### Tab bar layout (slice 6a)
|
|
1058
1135
|
|
|
@@ -1064,13 +1141,13 @@ ClusterTab (App.tsx routes here when activeClusterId set)
|
|
|
1064
1141
|
|
|
1065
1142
|
**Bottom-row mechanics + grid card click.** Click a member tab in the bottom row OR click any `MemberCard` in the grid -> both call `setClusterFocusedMember(clusterId, workflowId)` updating `appStore.clusterFocusedMember[clusterId]`. The cluster tab stays the active top-row tab; only the focused detail MemberPane changes. Three visual surfaces subscribe to the same key so they stay in sync: bottom-row tab (accent border-bottom + bg tint), the corresponding `MemberCard` in the grid (accent outline at the same border thickness as unfocused so swapping focus never shifts neighbouring cards), and the single detail `MemberPane` (accent header + outline). First-render default in `ClusterTab` picks `cluster.members[0]`; `setClusterState`'s reducer carries focus across membership changes (re-pinning to the first member when the previously-focused workflow is removed).
|
|
1066
1143
|
|
|
1067
|
-
**Grid splitter.** The `ClusterTab` body splits horizontally between the `MemberCard` grid (left) and the focused detail `MemberPane` (right) via a 4 px col-resize divider. Drag fraction reads from `appStore.clusterGridSplit` (default 0.35; persisted via the existing zustand-persist `partialize`). The drag handler mirrors `WorkflowView.tsx`'s splitter cleanup contract - `mousemove` updates a local live-value, `mouseup` (+ capture-phase pointerup + pointercancel + blur + visibilitychange) commits to the store and clears `body.style.userSelect / cursor`. Min widths: 240 px grid, 360 px detail. Cards-per-row is `clamp(ceil(sqrt(N)), 1, 4)` so 2 -> 2, 3-4 -> 2×2, 5-6 -> 3×2, 7-9 -> 3×3, 10+ -> 4 cols max with vertical scroll. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) for the cluster message details.
|
|
1144
|
+
**Grid splitter.** The `ClusterTab` body splits horizontally between the `MemberCard` grid (left) and the focused detail `MemberPane` (right) via a 4 px col-resize divider. Drag fraction reads from `appStore.clusterGridSplit` (default 0.35; persisted via the existing zustand-persist `partialize`) in the Standard layout; Compact and Narrow keep their own value (see [Layout ranges](#layout-ranges)). The drag handler mirrors `WorkflowView.tsx`'s splitter cleanup contract - `mousemove` updates a local live-value, `mouseup` (+ capture-phase pointerup + pointercancel + blur + visibilitychange) commits to the store and clears `body.style.userSelect / cursor`. Min widths: 240 px grid, 360 px detail. Cards-per-row is `clamp(ceil(sqrt(N)), 1, 4)` so 2 -> 2, 3-4 -> 2×2, 5-6 -> 3×2, 7-9 -> 3×3, 10+ -> 4 cols max with vertical scroll. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) for the cluster message details.
|
|
1068
1145
|
|
|
1069
1146
|
**Member-remove ×.** Bottom-row × on a member tab confirms then dispatches `cluster_member_remove`. Server-side: detach + tear down workflow in one operation (single click = "I'm done with this member"). If detaching drops the cluster below 2 members, `clusterStore.removeMember` collapses the cluster - server fans out `cluster_deleted`, and the now-orphan member's workflow is also torn down. The other member(s) become standalone workflows on their next turn (peer tools disappear from their tool list the invariant).
|
|
1070
1147
|
|
|
1071
1148
|
**Per-member primitive bar.** `MemberPane.tsx` now renders `TerminalInput` with `onReview / onHandoff / onSpawn / onUpdatePrimary / onArmPlanMode` threaded App -> ClusterTab -> MemberPane. The header ContextMeter receives `onRecalibrate`; each handler closes over the member's `workflowId` at the App level (mirrors how `WorkflowView` keys primitives on `activeJob.id`). Behavior is unchanged from the standalone primitive bar - the cluster-aware shape (HANDOFF preserves cluster membership, SPAWN-into-this-cluster as a default option, REVIEW understands peer rows) is described in the cluster primitive reference and now shipped.
|
|
1072
1149
|
|
|
1073
|
-
**`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `
|
|
1150
|
+
**`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); 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.
|
|
1074
1151
|
|
|
1075
1152
|
**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 six preset rows + `CLEAR` + `Custom...`. 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).
|
|
1076
1153
|
|
|
@@ -1094,7 +1171,7 @@ fresh members; roster rows badge non-standard modes.
|
|
|
1094
1171
|
|
|
1095
1172
|
**`ClusterPlanTab.tsx` - VIEW / EDIT modes (2026-05-11).** Two modes toggled by the header `EDIT` pill. VIEW renders the body through `PlanBodyRenderer`; H3 section blocks expose `▷ REVIEW PHASE PLAN` / `▷ VERIFY PHASE WORK` / `▷ SPAWN PHASE`. EDIT drops to the textarea with byte counter + dirty marker; SAVE writes via `cluster_plan_set` and flips back to VIEW. Auto-opens in EDIT when the body is empty; auto-flips back to EDIT if a remote update drops the body to empty. Header pill bar in VIEW: `EDIT` / `CLEAR PLAN` / `REVIEW PLAN` / `VERIFY WORK` / `CUSTOM REVIEW`. REVIEW/VERIFY pop a `ClusterMemberPicker` first (review needs a worker to run on); CUSTOM REVIEW reuses the existing `PlanReviewPicker` against the picked member's promoted plan.
|
|
1096
1173
|
|
|
1097
|
-
**Outer cluster right-panel splitter (2026-05-11).** A 4 px col-resize divider sits between the cluster main area (member grid + detail pane) and `ClusterRightPanel`. Width persisted to `localStorage` under `arco.clusterRightPanelWidth
|
|
1174
|
+
**Outer cluster right-panel splitter (2026-05-11).** A 4 px col-resize divider sits between the cluster main area (member grid + detail pane) and `ClusterRightPanel`. Width persisted to `localStorage` under `arco.clusterRightPanelWidth` (per layout, see [Layout ranges](#layout-ranges)). Fraction clamped to `[0.18, 0.5]` with default `0.28`. Same cleanup contract as `WorkflowView`'s splitter (mousemove updates a live-value, mouseup + capture-phase pointerup + pointercancel + blur + visibilitychange commit + clear `body.style.userSelect/cursor`).
|
|
1098
1175
|
|
|
1099
1176
|
**`PlanCandidateBanner` - detection-based fallback (2026-05-11).** Previously the banner only appeared when the operator clicked PLAN (DRAFT / DRAFT & AUTO-SAVE) before sending. Fallback in the `ws/handleServerMessage.ts` `primary_complete` handler (`phase: 'passthrough'`): when `pendingPlanCapture` is absent AND the assistant's latest reply matches `looksLikePlan` (H1 title on first non-empty line + ≥3 markdown checkbox lines), the banner surfaces in `review` mode automatically. Catches the cases where the operator asked for a plan via free-form prompt without clicking PLAN, or where the pre-arm flag was dropped before `primary_complete` (page reload mid-turn). Operator can DISCARD if it's a false positive - the heuristic is conservative enough to avoid surprising normal replies.
|
|
1100
1177
|
|
|
@@ -1110,11 +1187,15 @@ per-cluster browser dismissal. The composer's PLAN button explains in its hover
|
|
|
1110
1187
|
|
|
1111
1188
|
**Reconnect handling.** `handleServerMessage`'s `connected` case re-subscribes to every persisted cluster (one `cluster_subscribe` per id). The server's reply is a fresh `cluster_state`; the existing entry is overwritten in-place. If the cluster was torn down while disconnected the server sends an `error` (which we ignore - the persisted entry stays stale until the operator closes the tab manually).
|
|
1112
1189
|
|
|
1190
|
+
Cluster creation sends its request immediately after the form checks pass. CREATE CLUSTER shows Starting... and prevents another submission until the server creates the cluster, rejects the request or disconnects. A failed send unlocks CREATE CLUSTER. If no response arrives, the wait ends with a notice; check saved clusters before retrying. A director plan draft refreshes the public-project choice after creation and before its model turn. A failed refresh leaves the cluster available and offers DRAFT A PLAN for retry. Attaching an existing plan needs no remote suggestion lookup.
|
|
1191
|
+
|
|
1192
|
+
The MEMBERS panel starts SAVED CLUSTERS with snapshots from the cluster's exact folder. Folder matching resolves links on the server and preserves spaces in folder names. Show all projects lists every available copy; the number is the total in LOCAL or CLOUD. This project only restores the filter. The creator keeps its full list. List filtering uses a separate scope from the existing restore destination, so RESTORE is unchanged. Cloud copies without a matching local folder summary appear under Show all projects; folder paths remain absent from cloud metadata.
|
|
1193
|
+
|
|
1113
1194
|
### BOARD tab - `ClusterTaskBoardTab.tsx`
|
|
1114
1195
|
|
|
1115
1196
|
Cluster BOARD sub-tab (`client/src/components/ClusterTaskBoardTab.tsx`). Renders the cwd-scoped task ledger as a Kanban-style board shared across all cluster members. **Task-ledger integration** (see [TASK_LEDGER.md](TASK_LEDGER.md)).
|
|
1116
1197
|
|
|
1117
|
-
**Board mode + default-attach.** A cluster's board mode is `cluster.taskBoardMode` (`none` | `project` | `cluster`); new clusters
|
|
1198
|
+
**Board mode + default-attach.** A cluster's board mode is `cluster.taskBoardMode` (`none` | `project` | `cluster`); new clusters start with their own **cluster board** (`clusterStore.createCluster` seeds `taskBoardMode: 'cluster'`, the creator's starting choice too). `cluster_state` carries `taskBoardMode` / `taskBoardKey` / `taskBoardAttached`; the operator flips it via `cluster_task_board_attach_set` / `cluster_task_board_mode_set`. The plan->task / peer->task bridges (above) mount only when the board is attached (`!== 'none'`).
|
|
1118
1199
|
|
|
1119
1200
|
**Kanban columns + drag.** Eight status columns in order: `triage / todo / ready / in_progress / blocked / review / done / archived`. Column definitions live in `BOARD_COLUMNS` (exported helper). Cards show task title, assignee (if any), open-run count, and dependency indicators. The board is a horizontal kanban with `@dnd-kit` drag-to-restatus (`data-help="cluster.board-columns"`): a `PointerSensor` with a 4px activation distance (so a plain click still opens the drawer instead of starting a drag) plus a `TouchSensor` (delay 180ms / tolerance 8) for touch-drag. A drop fires `task_ledger_update { status }`; drops onto `done` / `archived` confirm first. A create-on-board composer (`data-help="cluster.board-add-task"`) authors a new `todo` task via `task_ledger_create`.
|
|
1120
1201
|
|
|
@@ -1123,18 +1204,14 @@ Cluster BOARD sub-tab (`client/src/components/ClusterTaskBoardTab.tsx`). Renders
|
|
|
1123
1204
|
- **Runs** - run history with heartbeat age, stale indicator, and per-run RECLAIM / TERMINATE controls (`task_run_recover` WS message). Open runs are listed first.
|
|
1124
1205
|
- **Dependency graph** - `taskGraphSummary` helper computes parent/child counts and blocked-parent / open-child summary. Displayed as a plain-text graph summary.
|
|
1125
1206
|
|
|
1126
|
-
**Collapsed AUTOMATION header.** The dispatcher
|
|
1207
|
+
**Collapsed AUTOMATION header.** The dispatcher and SWARM controls live behind a collapsed **AUTOMATION** disclosure (`automationOpen`, default false; `data-help="cluster.board-automation-toggle"`). Expanded, it exposes:
|
|
1127
1208
|
- `DISPATCH ONCE` - fires `cluster_dispatch_once`; one deterministic explicit-assignee sweep.
|
|
1128
1209
|
- Armed-daemon toggle (DISPATCHER) - `cluster_dispatch_toggle`; persisted in cluster meta; status shown as `Armed` / `Disarmed` tooltip.
|
|
1129
1210
|
- Per-cap settings (max open runs cluster-wide, per-member cap) - fires `cluster_dispatch_settings_update`.
|
|
1130
1211
|
- Run concurrency pill showing `RUNS N/cap` - visual throttle indicator.
|
|
1131
|
-
- CREATE SWARM
|
|
1212
|
+
- CREATE SWARM - creates the selected task structure.
|
|
1132
1213
|
|
|
1133
|
-
**Orchestration assist
|
|
1134
|
-
1. Client fires `cluster_orchestration_assist_request` with the chosen mode + a freeform prompt + requester workflowId.
|
|
1135
|
-
2. Server generates (or stubs) a proposal and stores it via `orchestrationProposals.ts`; broadcasts `cluster_orchestration_proposal` back.
|
|
1136
|
-
3. Client upserts the proposal into `orchestrationAssistStore.byCluster[clusterId]` and auto-selects it.
|
|
1137
|
-
4. Selected proposal previews in the panel. Operator can **accept selected items** (fires `cluster_orchestration_proposal_apply`, which runs through the normal task-kernel APIs producing ordinary `task_ledger_event`s) or **reject** (fires `cluster_orchestration_proposal_reject`; mutates nothing in the task store).
|
|
1214
|
+
**Orchestration assist.** DRAFT ASSIST is hidden in this version. Existing proposal storage and acceptance paths remain in place.
|
|
1138
1215
|
|
|
1139
1216
|
`orchestrationAssistStore` (`client/src/stores/orchestrationAssistStore.ts`) is a standalone Zustand store (not in `appStore`). Shape:
|
|
1140
1217
|
```ts
|
|
@@ -1153,9 +1230,37 @@ State is not persisted (proposals are fetched from the server on subscribe). The
|
|
|
1153
1230
|
|
|
1154
1231
|
---
|
|
1155
1232
|
|
|
1233
|
+
## Layout ranges
|
|
1234
|
+
|
|
1235
|
+
`client/src/layout/layoutRange.ts` turns the window width and Settings > Appearance > Layout into the layout to draw. The width is `innerWidth` divided by the interface scale (`--ui-scale`, set by `applyUiScale`, which dispatches `arco:ui-scale`), so 1920 px at 150% counts as 1280.
|
|
1236
|
+
|
|
1237
|
+
Automatic picks by window width: Narrow under 1500, Compact from 1500, Standard from 2000 (interface pixels: window width divided by the text size). Standard, Compact and Narrow stay fixed at every width. The top-bar layout switch cycles all four choices and shows the active layout and current interface width.
|
|
1238
|
+
|
|
1239
|
+
`useLayout()` re-reads on `resize`, `arco:ui-scale`, `arco:layout-mode` (fired by `setLayoutMode`) and the `storage` event. The mode is kept in `localStorage` (`arco.layoutMode`), never per project.
|
|
1240
|
+
|
|
1241
|
+
- **Standard:** the original layout and original splitter keys.
|
|
1242
|
+
- **Compact:** one-row member cards and fixed starting side widths of 250 px for the member grid and 320 px for the cluster right panel (360 px for a single tab). Cluster settings fold into a summary, the plan hint is one line, and optional composer tools move into MORE as needed.
|
|
1243
|
+
- **Narrow:** the member grid becomes a rail of initials and the right panel a strip of buttons. Each opens its panel over the chat. Esc, CLOSE or the backdrop closes a panel.
|
|
1244
|
+
|
|
1245
|
+
Dragged splitter positions are saved separately for each layout. Positions from the retired width band that no longer exists are ignored.
|
|
1246
|
+
|
|
1247
|
+
## Menus and popovers inside the window
|
|
1248
|
+
|
|
1249
|
+
`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.
|
|
1250
|
+
|
|
1156
1251
|
## ARTIFACTS explorer (`?app=explorer`)
|
|
1157
1252
|
|
|
1158
|
-
|
|
1253
|
+
Artifact listings omit protected file paths. If workflow metadata is linked or unavailable, the listing uses the workflow identifier instead of a title.
|
|
1254
|
+
|
|
1255
|
+
TREE starts at the first readable location: the configured working folder, Projects in the home folder, then the home folder. Startup, directory listings and previews share that read-only root. This fallback does not register a project or grant writes.
|
|
1256
|
+
|
|
1257
|
+
In save pickers, Go or Enter in the path field loads the destination. SAVE HERE and Enter in the filename field choose the loaded folder only. Both refuse submission during loading, after a listing error, or while the path is being edited.
|
|
1258
|
+
|
|
1259
|
+
In LIVE WORKTREE, STAGED renders the index patch against HEAD, including staged deletions. CHANGING and NEW FILES retain the current-file preview. An unstaged edit cannot change the text or line positions shown in a staged patch.
|
|
1260
|
+
|
|
1261
|
+
CHANGED FILES extracts filenames from slash-separated and native Windows paths. ARTIFACTS and CHANGED FILES omit OPEN IN TREE for any path inside the Arco state folder; the viewer remains available.
|
|
1262
|
+
|
|
1263
|
+
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.
|
|
1159
1264
|
|
|
1160
1265
|
`StorageLens.tsx` is the **STORAGE** lens (`?app=explorer&lens=storage`). It lists every known project and Arco's own folder, largest first, with each row's headings and biggest item, from `GET /api/storage-report?scope=all`; **MEASURE AGAIN** measures again. A project row opens its conversations and archives from `GET /api/storage-report?path=`, each with its size, open state and KEEP state. **KEEP** protects the whole conversation after confirmation and refreshes the report. The other actions are **COMPRESS OLD LOGS** per project and **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** per conversation. Each asks for a confirmation, posts to `/api/storage/*` and reports the result; ARCHIVE and DELETE are off while a conversation is open or working, or wholly kept. **STORAGE SETTINGS** holds auto-archive (off by default) and the disk budget, through `/api/storage/policy`; the disk budget notice shows above the list when the last measurement passes it. Worktrees, caches and Arco's folder have no clean-up action.
|
|
1161
1266
|
|
|
@@ -1172,7 +1277,7 @@ A standalone chromeless window, mounted by `main.tsx` on `?app=explorer`, sharin
|
|
|
1172
1277
|
Codex app-server clarification requests render through `OperatorQuestionNotice`.
|
|
1173
1278
|
`PendingQuestionsButton` beside the Agent/Chat composer opens all pending cards
|
|
1174
1279
|
without finding a virtualized transcript row. Options retain descriptions;
|
|
1175
|
-
freeform inputs and masked secret inputs require explicit SEND ANSWERS. Pending
|
|
1280
|
+
freeform inputs and masked secret inputs require explicit SEND ANSWERS. DISMISS closes a pending question without an answer. When it closes, its matching bell entry and desktop notification are removed; phone pushes already sent cannot be recalled. Pending
|
|
1176
1281
|
cards remain hot within the normal message cap. `ws/operatorQuestions.ts`
|
|
1177
1282
|
upserts by request ID and reconciles against `workflow_state_snapshot.operatorQuestions`;
|
|
1178
1283
|
connection/snapshot gates disable forms during reconnect, and stale cards close.
|
|
@@ -1254,14 +1359,45 @@ The creator and member role editor limit new director assignments to one per clu
|
|
|
1254
1359
|
|
|
1255
1360
|
### Storage report
|
|
1256
1361
|
|
|
1257
|
-
In the right
|
|
1362
|
+
In a single-worker, chat or cluster tab, open **MEMORY > USAGE** in the right panel (a cluster tab reports its shared project folder and every member's conversations). MEASURE STORAGE reads the current project state. Every byte is listed under one heading: conversation logs, artifacts, handoffs, checkpoints, scratch files, other conversation files, plans, task boards, worktrees and isolated copies, archived conversations, or other. Each conversation shows its log bytes by event type, activity and open status. Large files are marked. MEASURE AGAIN refreshes the cached result; the measurement time and read errors are shown. Shared checkpoint storage is listed separately. From anywhere, ARTIFACTS > STORAGE also offers MEASURE AGAIN.
|
|
1258
1363
|
|
|
1259
1364
|
MEASURE ARCO FOLDER measures Arco's own folder under the same rules, with headings for voice and media models, caches and browser profiles, provider account data, saved clusters and server logs. A file with several hard links is counted once. Chat and Genesis project folders inside Arco's folder are skipped and counted with their own projects. Neither report deletes or changes files.
|
|
1260
1365
|
|
|
1261
1366
|
## Plans library
|
|
1262
1367
|
|
|
1368
|
+
ARTIFACTS loads workflow artifacts independently from project documents. Documents include readable files at the project root and under folders such as `docs/` and `Reports/`. The document scan skips hidden folders, build and dependency folders, and nested Git checkouts or worktrees. It visits at most 20,000 entries or 250 milliseconds per project, and at most 50,000 entries or 650 milliseconds across known projects. A partial list says "Showing the newest N; open a project for more". Opening a project performs its own bounded document scan. Workflow artifacts under `.arco/workflows/<id>/artifacts` remain listed separately without a result-count cap; the document skips do not apply to them. Each list has its own loading and empty state. A failed list shows a notice while the other results remain usable. Switch away from the window and return to retry.
|
|
1369
|
+
|
|
1263
1370
|
ARTIFACTS > PLANS groups plans by project, remembers expanded projects and opens search matches. The current project opens by default. Repeated titles expand into versions. A group with an attached version stays in the normal list, where its unattached versions offer MARK DONE. In-use labels name attached tabs or clusters. Unattached plans with all checkboxes checked or no edits for 30 days appear under Probably finished; MARK DONE moves a selected plan to Completed. Nothing is marked done automatically. The counts follow the current filter.
|
|
1264
1371
|
|
|
1372
|
+
When ALL PLANS opens from a PLAN tab, the library remembers the tab or cluster. ATTACH TO connects a selected plan from the same project to that target. A plan from another project cannot be attached. Opening the library from the header has no target.
|
|
1373
|
+
|
|
1265
1374
|
## Artifact copy review
|
|
1266
1375
|
|
|
1267
|
-
OUTPUTS > MOVE TO PROJECT reviews Git ignore status, public visibility, size and text findings before copying. Files not fully scanned are listed by name; a public copy outside Git ignore requires a second confirmation for them. Images and recordings need manual inspection. KEEP IT PRIVATE retains and protects the artifact instead. ADD TO .GITIGNORE adds a destination rule. Copies do not overwrite, stage or commit, and the original stays in Arco. A failed copy can leave partial files at the destination. The temporary folder must be outside the project and Git repositories. Large artifact warnings offer KEEP to protect the item or DISMISS without protecting it.
|
|
1376
|
+
OUTPUTS > MOVE TO PROJECT reviews Git ignore status, public visibility, size and text findings before copying. Files not fully scanned are listed by name; a public copy outside Git ignore requires a second confirmation for them. Binary files other than images and recordings are scanned for runs of four or more printable characters only, and short colon runs there do not count as IPv6 addresses. Past 1,000 findings in a file or 2,000 in a copy, the rest is listed as not fully scanned (with the reason) instead of refusing the review. Images and recordings need manual inspection. KEEP IT PRIVATE retains and protects the artifact instead. ADD TO .GITIGNORE adds a destination rule. Copies do not overwrite, stage or commit, and the original stays in Arco. A failed copy can leave partial files at the destination. The temporary folder must be outside the project and Git repositories. Large artifact warnings offer KEEP to protect the item or DISMISS without protecting it.
|
|
1377
|
+
|
|
1378
|
+
The composer status line groups the north star, pending messages, compaction continuation, selected skills and active transport notices. PENDING opens the message list and cancellation controls. Project trust and plan decisions stay prominent.
|
|
1379
|
+
|
|
1380
|
+
Rough-theme panels attach the generated SVG border and replace it on size or active-state changes. The active border follows the theme accent.
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
### Recent-file scan and accepted reruns
|
|
1384
|
+
|
|
1385
|
+
CHANGED FILES searches through depth eight within entry and time budgets,
|
|
1386
|
+
keeping up to 500 newest matches from visited folders. The result-count cap
|
|
1387
|
+
alone does not stop traversal; the traversal budgets can stop it first. Ledger append and retention cleanup share one
|
|
1388
|
+
lock so accepted recent records survive concurrent notifications.
|
|
1389
|
+
|
|
1390
|
+
RERUN in the GitHub Actions run view accepts a successful response with no JSON
|
|
1391
|
+
body and shows `Rerun requested.` It sends one request per click.
|
|
1392
|
+
|
|
1393
|
+
When CREATE AND ATTACH is pending in the plan chooser, later title or body edits stay in the form. Cancelling and opening a new form also keeps that new draft. The submitted version is saved, but attachment waits for another choice when the form has changed.
|
|
1394
|
+
|
|
1395
|
+
CHANGED FILES scans every authorized project root and the default projects folder, including registered projects outside the home folder. Duplicate roots are combined; registered descendants are scanned separately and omitted from ancestor walks. The 650-millisecond request deadline includes root preparation. Preparation has an early cutoff, leaving time to scan healthy roots when another root is unavailable. Remaining time and the 20,000-entry budget are divided among the prepared roots, through depth eight. A root that times out during preparation is omitted and marks the page incomplete. A large or stalled root cannot consume another root's scan share. It skips Git-ignored directories and nested checkouts or worktrees, while keeping useful hidden project folders and the Arco workflow-artifact carve-out. A project collection can still contain its own first-level repositories. Results truncated identifies a partial sample or a list capped at the newest 500 matches. The newest ledger entry adds a tab and provider only when its timestamp is no more than two seconds older than the file modification time.
|
|
1396
|
+
|
|
1397
|
+
Project-discovery budgets also bound pending directory operations. A stalled open or read returns partial results at the deadline; late directory handles are closed and late rejections are handled. Root resolution and document metadata reads share the same document-scan deadline.
|
|
1398
|
+
|
|
1399
|
+
### Background jobs in ACTIVITY
|
|
1400
|
+
|
|
1401
|
+
The BACKGROUND list receives server-attributed agent shell commands and their known children. It keeps jobs across turns and briefly shows completion after exit. Arco helpers, configured MCP servers and provider programs are excluded. Linux process discovery identifies these jobs; the browser does not classify command text.
|
|
1402
|
+
|
|
1403
|
+
OPEN IN TREE is offered only for project files inside the current TREE root; files outside it remain available in the viewer.
|