arco-workbench 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +40 -8
- package/README.md +35 -21
- package/THIRD_PARTY_NOTICES +789 -0
- package/client/dist/assets/{PhosphorBackdrop-CNumba2X.js → PhosphorBackdrop-D6cbmLNY.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-DX5KyCt3.js → ThemedBackgroundShaderImpl-2dyerOi4.js} +1 -1
- package/client/dist/assets/{XtermView-DhS5g8Rt.js → XtermView-AIwo7O3D.js} +2 -2
- package/client/dist/assets/galleryEditor-DXAuxS8D.js +702 -0
- package/client/dist/assets/index-8j6p-pmQ.js +610 -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 +20 -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 +25 -14
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +7 -3
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +5 -2
- 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 +22 -598
- 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 +15 -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 +28 -19
- 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 +13 -6
- 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/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 +81 -23
- 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 +20 -10
- package/client/src/components/TabContextMenu.tsx +36 -10
- 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/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 +135 -104
- package/client/src/help/content/composer.tsx +124 -43
- 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 +70 -51
- package/client/src/help/content/media.tsx +20 -20
- package/client/src/help/content/misc.tsx +347 -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 +1 -1
- 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 +193 -131
- 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 +74 -12
- package/client/src/help/manualSections/maintenance.tsx +60 -13
- 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 +237 -42
- package/client/src/help/manualSections/reference.tsx +19 -11
- 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 +76 -19
- package/client/src/help/manualSections/workspace.tsx +173 -46
- 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/stores/appStore.ts +65 -14
- package/client/src/stores/appStore.types.ts +35 -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/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/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/executor.ts +4 -3
- 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 +154 -36
- package/client/src/ws/operatorQuestions.ts +2 -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 +218 -82
- 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 +33 -20
- package/docs/GENESIS.md +42 -6
- package/docs/GETTING_STARTED.md +59 -25
- package/docs/GIT_WORKBENCH.md +15 -9
- package/docs/GLOSSARY.md +42 -40
- package/docs/GOTCHAS.md +70 -57
- 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 +211 -120
- package/docs/OPERATOR_ACTIONS.md +43 -24
- package/docs/OUTPUTS.md +27 -10
- package/docs/PERSISTENCE.md +88 -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 +90 -87
- package/docs/PROTOCOL.md +100 -29
- package/docs/PROTOCOL_CLUSTER.md +77 -14
- package/docs/PROTOCOL_PRIMITIVES.md +9 -9
- package/docs/PROVIDERS.md +471 -82
- 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 +58 -7
- package/docs/STORAGE_PLAN.md +54 -49
- package/docs/STRATA.md +4 -4
- package/docs/TASK_LEDGER.md +33 -12
- package/docs/TERMINAL.md +14 -12
- package/docs/THIRD_PARTY.md +1 -3
- package/docs/VOICE.md +15 -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.js +8 -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/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 +9 -14
- 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 +3 -1
- package/node_modules/@arco/shared/dist/protocol/models.js +19 -8
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/notifications.js +15 -3
- 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 +69 -10
- 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 +73 -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 +3 -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 +5 -1
- package/server/dist/attention.js +27 -16
- 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 +4 -1
- package/server/dist/capabilities.js +25 -8
- 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/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 +6 -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 +9 -21
- 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/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 +89 -1
- 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 +75 -14
- 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 +283 -178
- 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 +11 -2
- package/server/dist/primitives/seedWorker.js +26 -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/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/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 +63 -1
- package/server/dist/providers/claude-native/worker.js +1103 -324
- 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/worker.d.ts +5 -0
- package/server/dist/providers/codex-appserver/worker.js +119 -81
- 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 +180 -181
- 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 +1 -0
- package/server/dist/smartPickupAdapters.js +31 -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 +9 -2
- package/server/dist/workers/WorkerManager.js +18 -18
- package/server/dist/workers/durablePidRegistry.d.ts +53 -0
- package/server/dist/workers/durablePidRegistry.js +289 -0
- package/server/dist/workers/limits.js +1 -1
- 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 +15 -12
- package/server/dist/workflowMeta.js +42 -10
- 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 +15 -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.js +38 -28
- 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 +367 -196
- 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 +27 -8
- package/server/dist/ws/turnEngine.js +1790 -1637
- 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 +24 -17
- 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 +26 -9
- package/server/src/catchUp.ts +19 -2
- package/server/src/checkedFile.ts +90 -0
- package/server/src/claudeTransport.ts +14 -0
- package/server/src/clusterAutoTurn.ts +55 -7
- package/server/src/clusterBusyReminder.ts +45 -0
- package/server/src/clusterDirector.ts +6 -3
- package/server/src/clusterIdleNudger.ts +6 -0
- package/server/src/clusterMailbox.ts +96 -26
- package/server/src/clusterPeerOps.ts +6 -19
- 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/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 +82 -1
- 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 +68 -16
- 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 +265 -178
- 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 +36 -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/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/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 +1056 -334
- 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/worker.ts +108 -77
- 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 +161 -171
- 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 +31 -10
- 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 +32 -35
- package/server/src/workers/durablePidRegistry.ts +266 -0
- package/server/src/workers/limits.ts +1 -1
- 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 +59 -19
- 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 +20 -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 +38 -11
- package/server/src/ws/gateHandlers.ts +2 -1
- package/server/src/ws/genesisHandlers.ts +49 -6
- package/server/src/ws/handoffHandlers.ts +168 -53
- 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 +488 -366
- 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.js +8 -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/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 +9 -14
- 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 +3 -1
- package/shared/dist/protocol/models.js +19 -8
- package/shared/dist/protocol/notifications.d.ts +2 -1
- package/shared/dist/protocol/notifications.js +15 -3
- 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 +69 -10
- 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 +73 -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 +8 -6
- 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 +2 -0
- package/shared/src/protocol/chat.ts +5 -0
- package/shared/src/protocol/checkpoints.ts +40 -8
- package/shared/src/protocol/clientMessages.ts +11 -11
- 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 +22 -8
- package/shared/src/protocol/notifications.ts +16 -3
- package/shared/src/protocol/plans.ts +5 -7
- package/shared/src/protocol/remoteManagement.ts +10 -3
- package/shared/src/protocol/serverMessages.ts +88 -7
- 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 +133 -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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import type { AutomaticMessageKind } from '@arco/shared';
|
|
3
|
+
|
|
4
|
+
/** The marker is metadata from the server, never inferred from message text. */
|
|
5
|
+
export function AutomaticMessage({ kind, content }: { kind: AutomaticMessageKind; content: string }) {
|
|
6
|
+
const [expanded, setExpanded] = useState(false);
|
|
7
|
+
return (
|
|
8
|
+
<div style={{ color: 'var(--color-fg-muted)', fontSize: '12px', lineHeight: 1.5, minWidth: 0 }}>
|
|
9
|
+
<button type="button" data-help="chat.automatic-message" aria-expanded={expanded}
|
|
10
|
+
aria-label={`${expanded ? 'Fold' : 'Expand'} ${kind} message`}
|
|
11
|
+
onClick={(event) => { event.stopPropagation(); setExpanded((value) => !value); }}
|
|
12
|
+
style={{ background: 'transparent', border: 'none', color: 'inherit', cursor: 'pointer', padding: '2px 5px' }}>
|
|
13
|
+
{expanded ? '-' : '+'}
|
|
14
|
+
</button>
|
|
15
|
+
<span>({kind}) Peer mail waiting</span>
|
|
16
|
+
{expanded && <div style={{ whiteSpace: 'pre-wrap', overflowWrap: 'anywhere', padding: '4px 8px' }}>{content}</div>}
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -6,9 +6,10 @@ import { useStartupStore } from '../stores/startupStore';
|
|
|
6
6
|
import { clusterBriefFacts, workerBriefFacts } from '../brief/briefFromStore';
|
|
7
7
|
import { useUsableUtilityAgent } from './UtilityAgentPicker';
|
|
8
8
|
import { DialogShell } from './DialogShell';
|
|
9
|
+
import { useKeepInWindow } from '../layout/keepInWindow';
|
|
9
10
|
|
|
10
11
|
const STILL_WORKING_MS = 4000;
|
|
11
|
-
const menuItemStyle: CSSProperties = { padding: '7px 12px', background: 'transparent', border: 'none', borderBottom: '1px solid var(--color-border-hairline)', color: 'var(--color-
|
|
12
|
+
const menuItemStyle: CSSProperties = { padding: '7px 12px', background: 'transparent', border: 'none', borderBottom: '1px solid var(--color-border-hairline)', color: 'var(--color-accent-primary)', cursor: 'pointer', fontSize: '10px', letterSpacing: '1px', textAlign: 'left', whiteSpace: 'nowrap' };
|
|
12
13
|
|
|
13
14
|
type Phase = 'closed' | 'running' | 'slow' | 'done';
|
|
14
15
|
|
|
@@ -35,6 +36,7 @@ export function BriefControl({ scope, targetId, label, title, 'data-help': helpI
|
|
|
35
36
|
const [phase, setPhase] = useState<Phase>('closed');
|
|
36
37
|
const [menuOpen, setMenuOpen] = useState(false);
|
|
37
38
|
const [menuUp, setMenuUp] = useState(true);
|
|
39
|
+
const placeRef = useKeepInWindow();
|
|
38
40
|
const [active, setActive] = useState<{ scope: UtilityBriefScope; targetId: string }>({ scope, targetId });
|
|
39
41
|
const [result, setResult] = useState<UtilityJobResult | null>(null);
|
|
40
42
|
const [facts, setFacts] = useState<UtilityJobFact[]>([]);
|
|
@@ -113,7 +115,7 @@ export function BriefControl({ scope, targetId, label, title, 'data-help': helpI
|
|
|
113
115
|
</button>
|
|
114
116
|
{menuOpen && clusterId && (
|
|
115
117
|
<div role="menu" data-testid="brief-menu" style={{ position: 'relative', width: 0, height: 0 }}>
|
|
116
|
-
<div style={{ position: 'absolute', ...(menuUp ? { bottom: '6px' } : { top: '6px' }), left: 0, zIndex: 1100, display: 'flex', flexDirection: 'column', minWidth: '150px', background: 'var(--color-bg-dialog)', border: '1px solid var(--color-border-hairline)', boxShadow: '0 8px 24px rgba(0,0,0,0.45)' }}>
|
|
118
|
+
<div ref={placeRef} style={{ position: 'absolute', ...(menuUp ? { bottom: '6px' } : { top: '6px' }), left: 0, zIndex: 1100, display: 'flex', flexDirection: 'column', minWidth: '150px', background: 'var(--color-bg-dialog)', border: '1px solid var(--color-border-hairline)', boxShadow: '0 8px 24px rgba(0,0,0,0.45)' }}>
|
|
117
119
|
<button type="button" role="menuitem" className="display-font" data-testid="brief-this-worker" onClick={(e) => { e.stopPropagation(); void run('worker', targetId); }} style={menuItemStyle}>THIS WORKER</button>
|
|
118
120
|
<button type="button" role="menuitem" className="display-font" data-testid="brief-whole-cluster" onClick={(e) => { e.stopPropagation(); void run('cluster', clusterId); }} style={menuItemStyle}>WHOLE CLUSTER</button>
|
|
119
121
|
</div>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { useAppStore } from '../stores/appStore';
|
|
3
|
+
import { useStartupStore } from '../stores/startupStore';
|
|
4
|
+
import { BROWSER_NOTICE_KEY, isChromiumBrowser } from '../utils/browserFamily';
|
|
5
|
+
|
|
6
|
+
const dismissedHere = () => { try { return localStorage.getItem(BROWSER_NOTICE_KEY) === '1'; } catch { return false; } };
|
|
7
|
+
|
|
8
|
+
// One-time notice in a non-Chromium browser (Firefox, Safari). DISMISS is
|
|
9
|
+
// remembered by this browser; CHOOSE BROWSER opens Settings > Advanced > App
|
|
10
|
+
// window browser.
|
|
11
|
+
export function BrowserNotice() {
|
|
12
|
+
const [hidden, setHidden] = useState(() => isChromiumBrowser(typeof navigator === 'undefined' ? undefined : navigator as Navigator & { userAgentData?: { brands?: Array<{ brand: string }> } }) || dismissedHere());
|
|
13
|
+
if (hidden) return null;
|
|
14
|
+
const dismiss = () => { try { localStorage.setItem(BROWSER_NOTICE_KEY, '1'); } catch { /* still hide for this page */ } setHidden(true); };
|
|
15
|
+
const choose = () => { useStartupStore.getState().setSettingsSection('app-window-browser'); useAppStore.getState().setShowSettings(true); };
|
|
16
|
+
const button = { padding: '3px 10px', fontSize: '10px', letterSpacing: '1.5px', cursor: 'pointer' } as const;
|
|
17
|
+
return (
|
|
18
|
+
<div
|
|
19
|
+
role="status"
|
|
20
|
+
data-help="browser-notice"
|
|
21
|
+
data-browser-notice
|
|
22
|
+
style={{
|
|
23
|
+
display: 'flex', alignItems: 'center', justifyContent: 'center', flexWrap: 'wrap', gap: '6px 12px',
|
|
24
|
+
padding: '5px 12px', background: 'var(--color-bg-sunken)', borderBottom: '1px solid var(--color-border-hairline)',
|
|
25
|
+
color: 'var(--color-fg)', fontSize: '12px', flexShrink: 0,
|
|
26
|
+
}}
|
|
27
|
+
>
|
|
28
|
+
<span>
|
|
29
|
+
Arco runs lighter in Chrome, Edge, Brave, Vivaldi or Chromium. Install one, then open Arco with the Arco shortcut or <code>arco open</code>.
|
|
30
|
+
</span>
|
|
31
|
+
<button type="button" className="display-font" data-help="browser-notice" onClick={choose} style={button}>CHOOSE BROWSER</button>
|
|
32
|
+
<button type="button" className="display-font" data-help="browser-notice" onClick={dismiss} style={button}>DISMISS</button>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -6,7 +6,7 @@ import { useStartupStore } from '../stores/startupStore';
|
|
|
6
6
|
import { DialogShell } from './DialogShell';
|
|
7
7
|
|
|
8
8
|
type Scope = { kind: 'workflow' | 'cluster'; id: string };
|
|
9
|
-
type Result = UtilityJobResult & { from: number; to: number; empty?: boolean };
|
|
9
|
+
type Result = UtilityJobResult & { from: number; to: number; empty?: boolean; lastActivity?: number | null };
|
|
10
10
|
const markerKey = (scope: Scope) => `arco.last-viewed.${scope.kind}.${scope.id}`;
|
|
11
11
|
function readMarker(key: string): number | null { try { const n = Number(localStorage.getItem(key)); return Number.isFinite(n) && n > 0 && n <= Date.now() ? n : null; } catch { return null; } }
|
|
12
12
|
function writeMarker(key: string) { try { localStorage.setItem(key, String(Date.now())); } catch { /* storage unavailable */ } }
|
|
@@ -40,15 +40,16 @@ export function CatchMeUp({ scope }: { scope: Scope | null }) {
|
|
|
40
40
|
const active = useRef('');
|
|
41
41
|
const cancel = () => { const id = active.current; if (id) void fetch('/api/utility-agent/cancel', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ jobId: id }) }).catch(() => undefined); };
|
|
42
42
|
const close = () => { cancel(); active.current = ''; setRunning(false); setOpen(false); };
|
|
43
|
-
useEffect(() => { setOpen(false); setResult(null); setError(''); return () => { cancel(); active.current = ''; }; }, [scope?.id, scope?.kind]);
|
|
44
|
-
const run = async () => {
|
|
43
|
+
useEffect(() => { setOpen(false); setRunning(false); setSlow(false); setResult(null); setError(''); return () => { cancel(); active.current = ''; }; }, [scope?.id, scope?.kind]);
|
|
44
|
+
const run = async (range?: 'last-turn' | 'hour' | 'today') => {
|
|
45
45
|
if (!scope || running) return;
|
|
46
46
|
const jobId = `catch-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`; active.current = jobId;
|
|
47
47
|
setRunning(true); setSlow(false); setError(''); setResult(null);
|
|
48
48
|
const timer = setTimeout(() => { if (active.current === jobId) setSlow(true); }, 4000);
|
|
49
49
|
try {
|
|
50
50
|
const body: Record<string, unknown> = { jobId, scope: scope.kind, id: scope.id };
|
|
51
|
-
if (
|
|
51
|
+
if (range) body.range = range;
|
|
52
|
+
else if (typeof from === 'number') body.marker = from;
|
|
52
53
|
const response = await fetch('/api/utility-agent/catch-up', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) });
|
|
53
54
|
if (!response.ok) throw new Error('Activity is unavailable for this tab.');
|
|
54
55
|
const payload = await response.json() as Result;
|
|
@@ -69,11 +70,16 @@ export function CatchMeUp({ scope }: { scope: Scope | null }) {
|
|
|
69
70
|
</>}>
|
|
70
71
|
{!agent ? <p style={{ margin: 0 }}>No utility agent is chosen. <button type="button" className="display-font" data-help="utility.catch-up" onClick={() => { close(); useStartupStore.getState().setSettingsSection('utility-agent'); useAppStore.getState().setShowSettings(true); }}>OPEN UTILITY AGENT SETTINGS</button></p>
|
|
71
72
|
: <p style={{ margin: 0, color: 'var(--color-fg-muted)' }}>{typeof from === 'number'
|
|
72
|
-
? <>
|
|
73
|
+
? <>From the earlier of the last visit or last operator message until the request starts. Activity is sent to {agent.provider.toUpperCase()} / {agent.model}.</>
|
|
73
74
|
: <>No previous visit is recorded for this browser. Summarize covers this tab from its start, or the last 24 hours if older. Activity is sent to {agent.provider.toUpperCase()} / {agent.model}.</>}</p>}
|
|
74
75
|
{result && <div role="status" style={{ display: 'grid', gap: '8px' }}>
|
|
75
76
|
{result.empty
|
|
76
|
-
?
|
|
77
|
+
? <>
|
|
78
|
+
<p style={{ margin: 0 }}>{result.lastActivity == null ? 'Nothing has happened in this tab yet.' : `Nothing new since ${new Date(result.from).toLocaleString()}. Last activity: ${new Date(result.lastActivity).toLocaleString()}.`}</p>
|
|
79
|
+
{result.truncated && <p style={{ margin: 0 }}>Earlier activity was omitted from the available history.</p>}
|
|
80
|
+
{result.facts.some((fact) => fact.value === 'activity not available') && <p style={{ margin: 0 }}>Some members' activity is unavailable.</p>}
|
|
81
|
+
<div>{(['last-turn', 'hour', 'today'] as const).map((range) => <button key={range} type="button" data-help="utility.catch-up" disabled={running} onClick={() => void run(range)}>{range === 'last-turn' ? 'SINCE LAST TURN' : range === 'hour' ? 'LAST HOUR' : 'TODAY'}</button>)}</div>
|
|
82
|
+
</>
|
|
77
83
|
: <>
|
|
78
84
|
<p style={{ margin: 0 }}>Requested range: {new Date(result.from).toLocaleString()} - {new Date(result.to).toLocaleString()}</p>
|
|
79
85
|
{result.status === 'ok' ? <><p style={{ margin: 0 }}>{result.text}</p><p style={{ margin: 0 }}>Answered by {result.agent?.provider.toUpperCase()} / {result.agent?.model}.</p></>
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { latestHandoffSeed } from '../utils/handoffSeeds';
|
|
2
|
+
import { AutomaticMessage } from './AutomaticMessage';
|
|
1
3
|
import { OperatorQuestionNotice } from './OperatorQuestionNotice';
|
|
2
4
|
import { useMessageSelectionStore } from '../stores/messageSelectionStore';
|
|
3
5
|
import { memo, useMemo, useRef, useState } from 'react';
|
|
@@ -260,6 +262,7 @@ interface Props {
|
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
function ChatMessageInner({ message, jobId, jobCwd, writtenFiles, onCancelQueued, onMakeTask, presentation = 'workbench', retryText, retryAttachments, onEditMessage, onRetryMessage }: Props) {
|
|
265
|
+
const latestSeedId = useAppStore(s => jobId ? latestHandoffSeed(s.jobs[jobId]?.messages ?? [])?.id : undefined);
|
|
263
266
|
const selected = useMessageSelectionStore((s) => !!jobId && (s.selected[jobId]?.includes(message.id) ?? false));
|
|
264
267
|
// Tool-use pills from the Claude session JSONL render as a compact row
|
|
265
268
|
// rather than a chat bubble. Bypass the whole bubble pipeline — we don't
|
|
@@ -340,10 +343,10 @@ function ChatMessageInner({ message, jobId, jobCwd, writtenFiles, onCancelQueued
|
|
|
340
343
|
// differs: handoff has a stable `[HANDOFF — ...]` prefix; spawn has a stable
|
|
341
344
|
// `\n\n---\n\n(New direction|Acknowledge with "READY")` suffix.
|
|
342
345
|
if (message.role === 'user' && isHandoffSeed(message.content)) {
|
|
343
|
-
return <HandoffSeedPill content={message.content} />;
|
|
346
|
+
return <HandoffSeedPill content={message.content} workflowId={message.id === latestSeedId ? jobId : undefined} />;
|
|
344
347
|
}
|
|
345
348
|
if (message.role === 'user' && isSpawnSeed(message.content)) {
|
|
346
|
-
return <SpawnSeedPill content={message.content} />;
|
|
349
|
+
return <SpawnSeedPill content={message.content} workflowId={message.id === latestSeedId ? jobId : undefined} />;
|
|
347
350
|
}
|
|
348
351
|
|
|
349
352
|
// Long operator pastes auto-collapse into an expandable pill so a single
|
|
@@ -829,7 +832,8 @@ function ToolCallPillWithFilter({
|
|
|
829
832
|
filePath?: string;
|
|
830
833
|
}) {
|
|
831
834
|
const filtered = useAppStore((s) => (jobId ? s.jobs[jobId]?.toolFiltered?.[toolUseId] : undefined));
|
|
832
|
-
|
|
835
|
+
const output = useAppStore((s) => jobId ? s.jobs[jobId]?.activity?.find(a => a.toolUseId === toolUseId)?.output : undefined);
|
|
836
|
+
return <ToolCallPill tool={tool} input={input} filePath={filePath} filtered={filtered} output={output} />;
|
|
833
837
|
}
|
|
834
838
|
|
|
835
839
|
// docs/PROTOCOL_CLUSTER.md - peer-message block. Colored by stable
|
|
@@ -957,4 +961,11 @@ function PeerMessageBlock({ message, jobId, onMakeTask }: { message: ChatMessage
|
|
|
957
961
|
// store object, `writtenFiles` and `onMakeTask` are useMemo'd in ChatPanel,
|
|
958
962
|
// `onCancelQueued` is passed straight through, and jobId/jobCwd are strings.
|
|
959
963
|
// If you add a prop, keep it stable or this silently stops helping.
|
|
960
|
-
|
|
964
|
+
function ChatMessageWrapper(props: Props) {
|
|
965
|
+
if (props.message.role === 'user' && props.message.automaticKind) {
|
|
966
|
+
return <AutomaticMessage kind={props.message.automaticKind} content={props.message.content} />;
|
|
967
|
+
}
|
|
968
|
+
return <ChatMessageInner {...props} />;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
export const ChatMessage = memo(ChatMessageWrapper);
|
|
@@ -45,7 +45,8 @@ export function ChatModeView({ job, onRenameWorkflow, onSend, onCancel, onLoadEa
|
|
|
45
45
|
const clearAttachments = useAppStore((s) => s.clearAttachments);
|
|
46
46
|
const areaRef = useRef<HTMLTextAreaElement>(null);
|
|
47
47
|
const fileInputRef = useRef<HTMLInputElement>(null);
|
|
48
|
-
const [
|
|
48
|
+
const [pendingUploads, setPendingUploads] = useState(0);
|
|
49
|
+
const uploading = pendingUploads > 0;
|
|
49
50
|
const [uploadError, setUploadError] = useState<string | null>(null);
|
|
50
51
|
const streaming = job.messages.some((m) => m.isStreaming);
|
|
51
52
|
const busy = job.busy === true || streaming;
|
|
@@ -90,24 +91,29 @@ export function ChatModeView({ job, onRenameWorkflow, onSend, onCancel, onLoadEa
|
|
|
90
91
|
setUploadError('Attachments are off in incognito: nothing was attached.');
|
|
91
92
|
return;
|
|
92
93
|
}
|
|
93
|
-
|
|
94
|
+
setPendingUploads((count) => count + 1);
|
|
94
95
|
setUploadError(null);
|
|
95
96
|
const failed: string[] = [];
|
|
96
|
-
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
try {
|
|
98
|
+
for (const file of files) {
|
|
99
|
+
const result = await onUpload(file);
|
|
100
|
+
if (!result.ok) {
|
|
101
|
+
failed.push(result.error);
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
const isImage = file.type.startsWith('image/');
|
|
105
|
+
addAttachment(job.id, {
|
|
106
|
+
filename: result.filename,
|
|
107
|
+
path: result.path,
|
|
108
|
+
isImage,
|
|
109
|
+
...(isImage && { previewUrl: URL.createObjectURL(file) }),
|
|
110
|
+
});
|
|
101
111
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
isImage,
|
|
107
|
-
...(isImage && { previewUrl: URL.createObjectURL(file) }),
|
|
108
|
-
});
|
|
112
|
+
} catch (error) {
|
|
113
|
+
failed.push(error instanceof Error ? error.message : String(error));
|
|
114
|
+
} finally {
|
|
115
|
+
setPendingUploads((count) => count - 1);
|
|
109
116
|
}
|
|
110
|
-
setUploading(false);
|
|
111
117
|
if (failed.length > 0) setUploadError(failed.join(' · '));
|
|
112
118
|
}, [onUpload, addAttachment, job.id, canAttach]);
|
|
113
119
|
|
|
@@ -162,8 +168,8 @@ export function ChatModeView({ job, onRenameWorkflow, onSend, onCancel, onLoadEa
|
|
|
162
168
|
// only the text came back and the image silently fell off the edit.
|
|
163
169
|
const handleEditMessage = useCallback((text: string, messageAttachments?: string[]) => {
|
|
164
170
|
setDraft(job.id, text);
|
|
171
|
+
clearAttachments(job.id);
|
|
165
172
|
if (messageAttachments && messageAttachments.length > 0) {
|
|
166
|
-
clearAttachments(job.id);
|
|
167
173
|
for (const path of messageAttachments) {
|
|
168
174
|
addAttachment(job.id, { filename: basename(path), path, isImage: IMAGE_EXT_RE.test(path) });
|
|
169
175
|
}
|
|
@@ -186,6 +192,7 @@ export function ChatModeView({ job, onRenameWorkflow, onSend, onCancel, onLoadEa
|
|
|
186
192
|
}}
|
|
187
193
|
>
|
|
188
194
|
<span>CHAT · {provider === 'deepseek' ? 'XOLOTL' : provider.toUpperCase()}</span>
|
|
195
|
+
{provider === 'codex' && !job.config.voiceOperator && <span data-help="chat.codex-transport" title="Codex Chat uses exec with attachment-only access. There is no mid-turn steering; send the next message after the reply.">EXEC</span>}
|
|
189
196
|
{onUpdatePrimary && modelOptions.length > 0 ? (
|
|
190
197
|
<span data-help="chat.model" style={{ display: 'inline-flex' }}><select
|
|
191
198
|
value={String(job.config.primaryModel)}
|
|
@@ -34,6 +34,23 @@ interface Props {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function ChatPanel({ job, onCancelQueued, onLoadEarlier, clusterContext, presentation = 'workbench', onEditMessage, onRetryMessage }: Props) {
|
|
37
|
+
const pendingToolsText = 'This tab is working. It gets its cluster tools when the current turn ends.';
|
|
38
|
+
const announcedTools = useRef({ id: job.id, seen: new Set(job.messages.map(message => message.id)) });
|
|
39
|
+
const [toolsAnnouncement, setToolsAnnouncement] = useState<{ id: string; text: string } | null>(null);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
const prior = announcedTools.current;
|
|
42
|
+
if (prior.id !== job.id) {
|
|
43
|
+
announcedTools.current = { id: job.id, seen: new Set(job.messages.map(message => message.id)) };
|
|
44
|
+
setToolsAnnouncement(null);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
for (const message of job.messages) {
|
|
48
|
+
if (!prior.seen.has(message.id) && message.role === 'system' && message.content === pendingToolsText) {
|
|
49
|
+
setToolsAnnouncement({ id: message.id, text: pendingToolsText });
|
|
50
|
+
}
|
|
51
|
+
prior.seen.add(message.id);
|
|
52
|
+
}
|
|
53
|
+
}, [job.id, job.messages]);
|
|
37
54
|
// Debounce the pill click so a double-tap doesn't fire two pages.
|
|
38
55
|
const [loadingEarlier, setLoadingEarlier] = useState(false);
|
|
39
56
|
// Prior-sessions collapse state. Default collapsed so the chat window
|
|
@@ -264,19 +281,29 @@ export function ChatPanel({ job, onCancelQueued, onLoadEarlier, clusterContext,
|
|
|
264
281
|
// the same row re-fires the flash.
|
|
265
282
|
const flashTarget = useAppStore((s) => s.flashTarget);
|
|
266
283
|
const [flashedKey, setFlashedKey] = useState<string | null>(null);
|
|
284
|
+
const handledFlash = useRef<typeof flashTarget>(null);
|
|
267
285
|
useEffect(() => {
|
|
268
|
-
if (!flashTarget || flashTarget.jobId !== job.id) return;
|
|
286
|
+
if (!flashTarget || flashTarget.jobId !== job.id || handledFlash.current === flashTarget) return;
|
|
269
287
|
const idx = visibleRows.findIndex(
|
|
270
288
|
(r) => r.kind === 'message' && r.message.id === flashTarget.messageId,
|
|
271
289
|
);
|
|
272
|
-
if (idx < 0)
|
|
290
|
+
if (idx < 0) {
|
|
291
|
+
if (!priorSessionsExpanded && displayMessages.some((m) => m.id === flashTarget.messageId)) setPriorSessionsExpanded(true);
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
handledFlash.current = flashTarget;
|
|
273
295
|
virtualizer.scrollToIndex(idx, { align: 'center' });
|
|
274
296
|
pinnedToBottom.current = false;
|
|
275
297
|
setFlashedKey(visibleRows[idx].key);
|
|
276
|
-
|
|
277
|
-
return () => window.clearTimeout(t);
|
|
298
|
+
|
|
278
299
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
279
|
-
}, [flashTarget, job.id]);
|
|
300
|
+
}, [flashTarget, job.id, priorSessionsExpanded]);
|
|
301
|
+
|
|
302
|
+
useEffect(() => {
|
|
303
|
+
if (!flashedKey) return;
|
|
304
|
+
const timer = window.setTimeout(() => setFlashedKey(null), 2000);
|
|
305
|
+
return () => window.clearTimeout(timer);
|
|
306
|
+
}, [flashedKey, flashTarget]);
|
|
280
307
|
|
|
281
308
|
// Track scroll-position mode (pinned vs. detached). 40px slack so small
|
|
282
309
|
// jitter doesn't flip us out of pinned-mode. The jump-to-bottom button
|
|
@@ -411,6 +438,7 @@ export function ChatPanel({ job, onCancelQueued, onLoadEarlier, clusterContext,
|
|
|
411
438
|
flexDirection: 'column',
|
|
412
439
|
}}
|
|
413
440
|
>
|
|
441
|
+
<div role="status" aria-live="polite" style={{ position: 'absolute', width: 1, height: 1, overflow: 'hidden', clipPath: 'inset(50%)' }}>{toolsAnnouncement && <span key={toolsAnnouncement.id}>{toolsAnnouncement.text}</span>}</div>
|
|
414
442
|
<div
|
|
415
443
|
ref={scrollRef}
|
|
416
444
|
onScroll={onScroll}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { confirmationSurfaceSize, contentSurfaceSize, WorkSurfaceControls } from './workSurface/WorkSurfaceControls';
|
|
2
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
3
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import { WORKTREE_REV } from '@arco/shared';
|
|
4
|
+
import { WORKTREE_REV, type CheckpointRevertPreview } from '@arco/shared';
|
|
5
|
+
import { describeRestoreChanges, restoreChangesNothing } from '../utils/checkpointChanges';
|
|
4
6
|
import type { HistoryEventEntry } from '../stores/appStore';
|
|
5
7
|
import { useAppStore } from '../stores/appStore';
|
|
6
8
|
import { ChangesPanel } from './diff/ChangesPanel';
|
|
@@ -28,13 +30,33 @@ export function CheckpointActions({ entry, workflowId, cwd, busy, turn }: Props)
|
|
|
28
30
|
const wsSendRaw = useAppStore((s) => s.wsSendRaw);
|
|
29
31
|
const [confirmOpen, setConfirmOpen] = useState(false);
|
|
30
32
|
const [diffOpen, setDiffOpen] = useState(false);
|
|
33
|
+
const [resultDiffOpen, setResultDiffOpen] = useState(false);
|
|
31
34
|
const [submitting, setSubmitting] = useState(false);
|
|
35
|
+
const [preview, setPreview] = useState<CheckpointRevertPreview | null>(null);
|
|
36
|
+
// When this tab sent a revert: the result row that arrives after it is shown here.
|
|
37
|
+
const [sentAt, setSentAt] = useState<number | null>(null);
|
|
38
|
+
const inCluster = useAppStore((s) => Object.values(s.clusters).some((c) => c.members.some((m) => m.workflowId === workflowId)));
|
|
32
39
|
|
|
33
40
|
const ref = entry.checkpointRef;
|
|
34
41
|
const seq = entry.checkpointSeq;
|
|
35
42
|
// A turn whose checkpoint was restored shows as undone; a second undo cannot run.
|
|
36
43
|
const undone = useAppStore((s) => turn != null && seq != null && (s.jobs[workflowId]?.historyEvents ?? []).some((e) => e.reverted && e.revertedCheckpointSeq === seq));
|
|
37
44
|
const fileLabel = entry.summary ?? '';
|
|
45
|
+
// The REVERTED row this tab's last revert produced (newest first).
|
|
46
|
+
const result = useAppStore((s) => sentAt == null || seq == null ? undefined
|
|
47
|
+
: [...(s.jobs[workflowId]?.historyEvents ?? [])].reverse().find((e) => e.reverted && e.revertedCheckpointSeq === seq && (e.at ?? 0) >= sentAt - 1000));
|
|
48
|
+
|
|
49
|
+
// Ask the server what the revert would change while the dialog is open.
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (!confirmOpen || seq == null) return;
|
|
52
|
+
let cancelled = false;
|
|
53
|
+
setPreview(null);
|
|
54
|
+
fetch(`/api/workflows/checkpoint-preview?${new URLSearchParams({ wfid: workflowId, seq: String(seq) }).toString()}`)
|
|
55
|
+
.then(async (r) => (r.ok ? (await r.json()) as CheckpointRevertPreview : { ok: false as const, error: (await r.text()) || `HTTP ${r.status}` }))
|
|
56
|
+
.catch((err: unknown) => ({ ok: false as const, error: err instanceof Error ? err.message : String(err) }))
|
|
57
|
+
.then((p) => { if (!cancelled) setPreview(p); });
|
|
58
|
+
return () => { cancelled = true; };
|
|
59
|
+
}, [confirmOpen, seq, workflowId]);
|
|
38
60
|
|
|
39
61
|
const doRevert = () => {
|
|
40
62
|
if (wsSendRaw == null || seq == null || undone) return;
|
|
@@ -42,11 +64,28 @@ export function CheckpointActions({ entry, workflowId, cwd, busy, turn }: Props)
|
|
|
42
64
|
// Server takes the safety snapshot FIRST, then restores; it broadcasts
|
|
43
65
|
// checkpoint_created (safety) + checkpoint_reverted (or an error) back.
|
|
44
66
|
wsSendRaw({ type: 'revert_to_checkpoint', workflowId, seq });
|
|
67
|
+
setSentAt(Date.now());
|
|
45
68
|
setConfirmOpen(false);
|
|
46
69
|
// Brief local debounce; the authoritative state is the broadcast.
|
|
47
70
|
setTimeout(() => setSubmitting(false), 400);
|
|
48
71
|
};
|
|
49
72
|
|
|
73
|
+
// A REVERTED row: what that restore changed, as a diff.
|
|
74
|
+
if (entry.reverted) {
|
|
75
|
+
const revertDiff = entry.revertDiff;
|
|
76
|
+
return (
|
|
77
|
+
<div style={{ display: 'flex', gap: '8px', alignItems: 'center', flexWrap: 'wrap' }}>
|
|
78
|
+
<ActionBtn disabled={!revertDiff} onClick={() => setResultDiffOpen(true)} dataHelp="rightpanel.history.checkpoint"
|
|
79
|
+
title={revertDiff ? undefined : 'This revert was recorded before Arco kept its diff'}>
|
|
80
|
+
VIEW CHANGES
|
|
81
|
+
</ActionBtn>
|
|
82
|
+
{entry.checkpointLimitation && <span style={{ color: 'var(--color-fg-muted)', fontSize: '11px' }}>{entry.checkpointLimitation}</span>}
|
|
83
|
+
{resultDiffOpen && revertDiff && <DiffOverlay title="DIFF: WHAT THE REVERT CHANGED" onClose={() => setResultDiffOpen(false)}
|
|
84
|
+
wfid={workflowId} cwd={cwd} from={revertDiff.from} to={revertDiff.to} emptyText="The revert changed no file." />}
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
50
89
|
return (
|
|
51
90
|
<div style={{ display: 'flex', gap: '8px', alignItems: 'center', flexWrap: 'wrap' }}>
|
|
52
91
|
<ActionBtn
|
|
@@ -64,8 +103,15 @@ export function CheckpointActions({ entry, workflowId, cwd, busy, turn }: Props)
|
|
|
64
103
|
>
|
|
65
104
|
{turn ? 'UNDO THIS TURN' : 'REVERT TO HERE'}
|
|
66
105
|
</ActionBtn>}
|
|
106
|
+
{result && <span data-testid="revert-result" role="status" style={{ color: 'var(--color-fg)', fontSize: '11px' }}>
|
|
107
|
+
Reverted: {result.revertChanges ? describeRestoreChanges(result.revertChanges) : result.summary}.
|
|
108
|
+
{result.revertDiff && <> <ActionBtn onClick={() => setResultDiffOpen(true)} dataHelp="rightpanel.history.checkpoint">VIEW CHANGES</ActionBtn></>}
|
|
109
|
+
</span>}
|
|
110
|
+
{resultDiffOpen && result?.revertDiff && <DiffOverlay title="DIFF: WHAT THE REVERT CHANGED" onClose={() => setResultDiffOpen(false)}
|
|
111
|
+
wfid={workflowId} cwd={cwd} from={result.revertDiff.from} to={result.revertDiff.to} emptyText="The revert changed no file." />}
|
|
67
112
|
{undone && <span data-testid="turn-undone" className="display-font" style={{ color: 'var(--color-accent-secondary)', fontSize: '10px', letterSpacing: '1.5px' }}>Undone</span>}
|
|
68
113
|
|
|
114
|
+
{(result?.checkpointLimitation ?? entry.checkpointLimitation) && <span data-testid="checkpoint-scope" style={{ color: 'var(--color-fg-muted)', fontSize: '11px' }}>{result?.checkpointLimitation ?? entry.checkpointLimitation}</span>}
|
|
69
115
|
{turn?.otherWriters && <span style={{ color: 'var(--color-fg-muted)', fontSize: '11px' }}>{turn.fileCount} {turn.fileCount === 1 ? 'file' : 'files'} changed in this folder during this turn (other agents were also working here).</span>}
|
|
70
116
|
{turn && <span style={{ color: 'var(--color-fg-muted)', fontSize: '11px' }}>{turn.paths.join(', ')}{turn.pathsTruncated ? ' ...' : ''}{turn.skippedLargeFiles ? ` (at least ${turn.skippedLargeFiles} large ${turn.skippedLargeFiles === 1 ? 'file' : 'files'} skipped)` : ''}</span>}
|
|
71
117
|
|
|
@@ -91,7 +137,24 @@ export function CheckpointActions({ entry, workflowId, cwd, busy, turn }: Props)
|
|
|
91
137
|
Files created after the checkpoint are removed; modified files are
|
|
92
138
|
reset to their checkpoint contents.
|
|
93
139
|
</p>
|
|
140
|
+
<p data-testid="revert-preview" style={{ margin: '0 0 10px', color: preview && !preview.ok ? 'var(--color-danger)' : 'var(--color-fg)' }}>
|
|
141
|
+
{preview == null ? 'Comparing the checkpoint with the folder...'
|
|
142
|
+
: !preview.ok ? preview.error
|
|
143
|
+
: restoreChangesNothing(preview.changes) ? `Nothing would change: the folder already matches this checkpoint (${describeRestoreChanges(preview.changes)}).`
|
|
144
|
+
: <>This would change: <strong>{describeRestoreChanges(preview.changes)}</strong>.</>}
|
|
145
|
+
</p>
|
|
146
|
+
{preview?.ok && preview.limitation && <p data-testid="revert-scope" style={{ color: 'var(--color-fg-muted)', fontSize: '12px' }}>{preview.limitation}</p>}
|
|
147
|
+
{preview?.ok && preview.changes.paths.length > 0 && (
|
|
148
|
+
<ul style={{ margin: '0 0 10px', paddingLeft: '18px', fontSize: '11px', color: 'var(--color-fg-muted)', maxHeight: '120px', overflow: 'auto' }}>
|
|
149
|
+
{preview.changes.paths.map((p) => <li key={p.path}>{p.change === 'changed' ? 'changed back' : p.change === 'removed' ? 'removed' : 'restored'}: {p.path}</li>)}
|
|
150
|
+
{preview.changes.pathsTruncated && <li>and more</li>}
|
|
151
|
+
</ul>
|
|
152
|
+
)}
|
|
94
153
|
{turn && <p>Changes made after this turn in the same working tree are also reverted. The safety snapshot can restore them.</p>}
|
|
154
|
+
<p style={{ margin: '0 0 10px' }}>
|
|
155
|
+
Only files are restored. The conversation and the task board stay as they are{inCluster ? ', and so do the other members\' conversations' : ''}; to take the conversation back, use REWIND CONVERSATION in HISTORY.
|
|
156
|
+
</p>
|
|
157
|
+
{inCluster && <p style={{ margin: '0 0 10px' }}>The checkpoint covers the whole project folder, so files other cluster members changed since then are reverted too.</p>}
|
|
95
158
|
<p style={{ margin: 0, opacity: 0.85 }}>
|
|
96
159
|
A <strong>pre-revert safety snapshot</strong> of the current tree is
|
|
97
160
|
taken first, so this is reversible: you can undo the revert by
|
|
@@ -109,31 +172,32 @@ export function CheckpointActions({ entry, workflowId, cwd, busy, turn }: Props)
|
|
|
109
172
|
document.body,
|
|
110
173
|
)}
|
|
111
174
|
|
|
112
|
-
{diffOpen &&
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
alignItems: 'center',
|
|
118
|
-
justifyContent: 'space-between',
|
|
119
|
-
marginBottom: '10px',
|
|
120
|
-
}}
|
|
121
|
-
>
|
|
122
|
-
<div className="display-font glow-text-cyan" style={{ fontSize: '12px', letterSpacing: '1px' }}>
|
|
123
|
-
{turn ? (undone ? 'DIFF: UNDONE TURN CHANGES' : 'DIFF: TURN CHANGES') : `DIFF: CHECKPOINT ${seq} VS NOW`}
|
|
124
|
-
</div>
|
|
125
|
-
<ActionBtn onClick={() => setDiffOpen(false)}>CLOSE</ActionBtn>
|
|
126
|
-
</div>
|
|
127
|
-
<div style={{ flex: 1, minHeight: 0, overflow: 'auto' }}>
|
|
128
|
-
<ChangesPanel wfid={workflowId} cwd={cwd} from={ref} to={turn?.endRef ?? WORKTREE_REV} />
|
|
129
|
-
</div>
|
|
130
|
-
</Overlay>,
|
|
131
|
-
document.body,
|
|
132
|
-
)}
|
|
175
|
+
{diffOpen && <DiffOverlay
|
|
176
|
+
title={turn ? (undone ? 'DIFF: UNDONE TURN CHANGES' : 'DIFF: TURN CHANGES') : `DIFF: CHECKPOINT ${seq} VS NOW`}
|
|
177
|
+
dataHelp={turn ? 'chat.turn-changes' : 'rightpanel.history.checkpoint'}
|
|
178
|
+
onClose={() => setDiffOpen(false)} wfid={workflowId} cwd={cwd} from={ref} to={turn?.endRef ?? WORKTREE_REV}
|
|
179
|
+
emptyText={turn ? 'This turn changed no file.' : 'No changes since this checkpoint.'} />}
|
|
133
180
|
</div>
|
|
134
181
|
);
|
|
135
182
|
}
|
|
136
183
|
|
|
184
|
+
function DiffOverlay({ title, onClose, wfid, cwd, from, to, emptyText, dataHelp = 'rightpanel.history.checkpoint' }: {
|
|
185
|
+
title: string; onClose: () => void; wfid: string; cwd?: string; from?: string; to: string; emptyText: string; dataHelp?: string;
|
|
186
|
+
}) {
|
|
187
|
+
return createPortal(
|
|
188
|
+
<Overlay onClose={onClose} dataHelp={dataHelp} wide>
|
|
189
|
+
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', marginBottom: '10px' }}>
|
|
190
|
+
<div className="display-font glow-text-cyan" style={{ fontSize: '12px', letterSpacing: '1px' }}>{title}</div>
|
|
191
|
+
<ActionBtn onClick={onClose}>CLOSE</ActionBtn>
|
|
192
|
+
</div>
|
|
193
|
+
<div style={{ flex: 1, minHeight: 0, overflow: 'auto' }}>
|
|
194
|
+
<ChangesPanel wfid={wfid} cwd={cwd} from={from} to={to} emptyText={emptyText} />
|
|
195
|
+
</div>
|
|
196
|
+
</Overlay>,
|
|
197
|
+
document.body,
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
137
201
|
function Overlay({
|
|
138
202
|
children,
|
|
139
203
|
onClose,
|
|
@@ -145,6 +209,7 @@ function Overlay({
|
|
|
145
209
|
wide?: boolean;
|
|
146
210
|
dataHelp?: string;
|
|
147
211
|
}) {
|
|
212
|
+
const surface = useRef<HTMLDivElement>(null);
|
|
148
213
|
return (
|
|
149
214
|
<div
|
|
150
215
|
data-help={dataHelp}
|
|
@@ -161,12 +226,11 @@ function Overlay({
|
|
|
161
226
|
}}
|
|
162
227
|
>
|
|
163
228
|
<div
|
|
229
|
+
ref={surface}
|
|
164
230
|
onClick={(e) => e.stopPropagation()}
|
|
165
231
|
className="glow-border"
|
|
166
232
|
style={{
|
|
167
|
-
|
|
168
|
-
maxWidth: wide ? '1100px' : '520px',
|
|
169
|
-
maxHeight: '100%',
|
|
233
|
+
...(wide ? contentSurfaceSize : confirmationSurfaceSize),
|
|
170
234
|
background: 'var(--color-bg)',
|
|
171
235
|
border: '1px solid var(--color-border-bright)',
|
|
172
236
|
borderRadius: '6px',
|
|
@@ -176,6 +240,7 @@ function Overlay({
|
|
|
176
240
|
padding: '18px',
|
|
177
241
|
}}
|
|
178
242
|
>
|
|
243
|
+
<WorkSurfaceControls surface={surface} storageKey={wide ? 'checkpoint-viewer' : 'checkpoint-confirm'} />
|
|
179
244
|
{children}
|
|
180
245
|
</div>
|
|
181
246
|
</div>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatActivityTime } from './activityTime';
|
|
1
2
|
// docs/PROTOCOL_CLUSTER.md - unified cluster-scoped event feed,
|
|
2
3
|
// extended with per-member tool activity so an operator can
|
|
3
4
|
// see READ / BASH / TodoWrite etc. without drilling into each member tab.
|
|
@@ -657,7 +658,7 @@ function ActivityRowView({
|
|
|
657
658
|
color: 'var(--color-fg-muted)',
|
|
658
659
|
}}
|
|
659
660
|
>
|
|
660
|
-
{
|
|
661
|
+
{formatActivityTime(it.ts)}
|
|
661
662
|
</span>
|
|
662
663
|
</div>
|
|
663
664
|
<div style={{ color: 'var(--color-fg)', whiteSpace: 'pre-wrap' }}>
|
|
@@ -706,7 +707,7 @@ function ActivityRowView({
|
|
|
706
707
|
}}
|
|
707
708
|
>
|
|
708
709
|
<span style={{ marginRight: '6px' }}>
|
|
709
|
-
{
|
|
710
|
+
{formatActivityTime(hidden.ts)}
|
|
710
711
|
</span>
|
|
711
712
|
{hidden.summary}
|
|
712
713
|
</div>
|
|
@@ -763,6 +764,7 @@ function toolSummary(e: ActivityEntry): string {
|
|
|
763
764
|
case 'Glob':
|
|
764
765
|
return String(obj.pattern ?? '');
|
|
765
766
|
case 'Bash':
|
|
767
|
+
case 'PowerShell':
|
|
766
768
|
return truncate(String(obj.command ?? ''), 140);
|
|
767
769
|
case 'WebFetch':
|
|
768
770
|
return String(obj.url ?? '');
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { pickerSurfaceSize, WorkSurfaceControls } from './workSurface/WorkSurfaceControls';
|
|
1
2
|
// Cluster member picker — small modal listing cluster members. Used by
|
|
2
3
|
// the cluster PLAN tab's REVIEW/VERIFY PLAN and REVIEW/VERIFY PHASE
|
|
3
4
|
// surfaces, which need a target worker to anchor the review against
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
// MemberCard's role pill). Click commits the picker; Esc / backdrop
|
|
10
11
|
// click cancels.
|
|
11
12
|
|
|
12
|
-
import { useEffect } from 'react';
|
|
13
|
+
import { useEffect, useRef } from 'react';
|
|
13
14
|
import { presetForText } from '@arco/shared';
|
|
14
15
|
import type { ClusterStatePayload, ClusterMember } from '@arco/shared';
|
|
15
16
|
|
|
@@ -31,6 +32,7 @@ function roleChipLabel(role: string | undefined): string | null {
|
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export function ClusterMemberPicker({ cluster, title, subtitle, onPick, onCancel }: Props) {
|
|
35
|
+
const surface = useRef<HTMLDivElement>(null);
|
|
34
36
|
useEffect(() => {
|
|
35
37
|
const onKey = (e: KeyboardEvent) => {
|
|
36
38
|
if (e.key === 'Escape') onCancel();
|
|
@@ -54,18 +56,19 @@ export function ClusterMemberPicker({ cluster, title, subtitle, onPick, onCancel
|
|
|
54
56
|
}}
|
|
55
57
|
>
|
|
56
58
|
<div
|
|
59
|
+
ref={surface}
|
|
57
60
|
onClick={(e) => e.stopPropagation()}
|
|
58
61
|
style={{
|
|
59
62
|
background: 'var(--color-bg-dialog)',
|
|
60
63
|
border: '1px solid var(--color-accent-primary-dim)',
|
|
61
64
|
borderRadius: '6px',
|
|
62
65
|
padding: '18px 22px',
|
|
63
|
-
|
|
64
|
-
maxHeight: 'calc(88vh / var(--ui-scale, 1))',
|
|
66
|
+
...pickerSurfaceSize,
|
|
65
67
|
overflowY: 'auto',
|
|
66
68
|
fontFamily: 'var(--font-body)',
|
|
67
69
|
}}
|
|
68
70
|
>
|
|
71
|
+
<WorkSurfaceControls surface={surface} storageKey="cluster-member-picker" />
|
|
69
72
|
<div
|
|
70
73
|
className="display-font"
|
|
71
74
|
style={{
|