arco-workbench 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +14 -12
- package/README.md +5 -3
- package/client/dist/THIRD_PARTY_LICENSES.txt +3912 -0
- package/client/dist/assets/{PhosphorBackdrop-DRu16-Is.js → PhosphorBackdrop-9jNRO1ZM.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BLdwwQ4D.js → ThemedBackgroundShaderImpl-tUi3k54Y.js} +1 -1
- package/client/dist/assets/XtermView-B7BOSnVo.js +10 -0
- package/client/dist/assets/{galleryEditor-CI8ClzBa.js → galleryEditor-Ohc2h9cD.js} +1 -1
- package/client/dist/assets/index-CVJVD2Vn.css +1 -0
- package/client/dist/assets/index-ILGXWriO.js +638 -0
- package/client/dist/index.html +3 -3
- package/client/src/App.tsx +42 -9
- package/client/src/components/AskUserQuestionNotice.tsx +37 -10
- package/client/src/components/AttachmentPill.tsx +3 -2
- package/client/src/components/AuthReloginNotice.tsx +25 -6
- package/client/src/components/AutomaticMessage.tsx +3 -1
- package/client/src/components/CatchMeUp.tsx +4 -1
- package/client/src/components/ChatMessage.tsx +43 -5
- package/client/src/components/ChatModeView.tsx +20 -4
- package/client/src/components/ChatPanel.tsx +5 -0
- package/client/src/components/ClusterActivityTab.tsx +9 -3
- package/client/src/components/ClusterComposerButtons.tsx +5 -3
- package/client/src/components/ClusterPlanTab.tsx +55 -8
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +38 -99
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +36 -12
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +61 -8
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +46 -14
- package/client/src/components/ClusterRightPanel/PhoneMemberList.tsx +56 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +38 -9
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +6 -5
- package/client/src/components/ClusterRightPanel/index.tsx +188 -39
- package/client/src/components/ClusterRightPanel/memberSettings.ts +2 -2
- package/client/src/components/ClusterRightPanel/panels.ts +1 -0
- package/client/src/components/ClusterRightPanel/types.ts +5 -1
- package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +82 -0
- package/client/src/components/ClusterTab.tsx +76 -23
- package/client/src/components/ClusterTaskBoardTab.tsx +35 -6
- package/client/src/components/Connections/Connections.tsx +5 -8
- package/client/src/components/Connections/model.ts +2 -2
- package/client/src/components/DialogShell.tsx +4 -0
- package/client/src/components/DirectorContinuePrompt.tsx +56 -0
- package/client/src/components/FileExplorer.tsx +54 -1
- package/client/src/components/FileViewerModal.tsx +39 -7
- package/client/src/components/FirstRun.tsx +3 -2
- package/client/src/components/ForwardMessages.tsx +6 -3
- package/client/src/components/GateApprovalNotice.tsx +7 -4
- package/client/src/components/GeminiSkillNotice.tsx +12 -0
- package/client/src/components/GeminiSubagentLine.tsx +5 -0
- package/client/src/components/GitDialog.tsx +15 -6
- package/client/src/components/GitOtherWork.tsx +2 -1
- package/client/src/components/HandoffDialog.tsx +3 -2
- package/client/src/components/HeaderVersionBox.tsx +6 -2
- package/client/src/components/HistoryTab.tsx +127 -108
- package/client/src/components/Home/HomeView.tsx +14 -3
- package/client/src/components/Home/ResearchLibrary.tsx +107 -0
- package/client/src/components/Home/home.css +6 -0
- package/client/src/components/LoginFlow.tsx +12 -5
- package/client/src/components/MemberCard.tsx +8 -2
- package/client/src/components/MemberPane.tsx +12 -4
- package/client/src/components/MobileNotices.tsx +26 -0
- package/client/src/components/MobileQuestionBar.tsx +35 -0
- package/client/src/components/MobileShell.tsx +811 -0
- package/client/src/components/MobileTextSize.tsx +27 -0
- package/client/src/components/NativeSubagentControls.tsx +12 -1
- package/client/src/components/NorthStarBar.tsx +2 -0
- package/client/src/components/NotificationToasts.tsx +6 -2
- package/client/src/components/OperatorQuestionNotice.tsx +2 -2
- package/client/src/components/PendingQuestionsButton.tsx +44 -5
- package/client/src/components/PhoneUpload.tsx +4 -2
- package/client/src/components/PlanComposerDialog.tsx +7 -7
- package/client/src/components/ProjectsSettings.tsx +3 -0
- package/client/src/components/ProvidersPopover.tsx +9 -6
- package/client/src/components/PurgeConversationModal.tsx +1 -1
- package/client/src/components/QueuedMessagesIndicator.tsx +1 -1
- package/client/src/components/Recall/RecallView.tsx +31 -8
- package/client/src/components/ResearchFolderSetting.tsx +64 -0
- package/client/src/components/RightPanel/ActivityTab.tsx +9 -4
- package/client/src/components/RightPanel/BlastRadiusTab.tsx +6 -8
- package/client/src/components/RightPanel/ConfigTab.tsx +18 -10
- package/client/src/components/RightPanel/FilesTab.tsx +34 -19
- package/client/src/components/RightPanel/PlanTab.tsx +67 -24
- package/client/src/components/RightPanel/UsageTab.tsx +30 -3
- package/client/src/components/RightPanel/index.tsx +42 -3
- package/client/src/components/RuntimeStateBanner.tsx +8 -0
- package/client/src/components/ScratchCloseDialog.tsx +124 -0
- package/client/src/components/SettingsPanel.tsx +181 -69
- package/client/src/components/SkillActivityIndicator.tsx +93 -0
- package/client/src/components/SystemHeader.tsx +2 -7
- package/client/src/components/SystemModal.tsx +37 -45
- package/client/src/components/TabBar.tsx +52 -8
- package/client/src/components/TabContextMenu.tsx +12 -102
- package/client/src/components/TaskCard.tsx +13 -17
- package/client/src/components/TaskChildComposer.tsx +24 -0
- package/client/src/components/TasksPanel.tsx +7 -17
- package/client/src/components/Terminal/FloatingTerminalWindow.tsx +11 -3
- package/client/src/components/Terminal/FloatingWindow.tsx +36 -14
- package/client/src/components/Terminal/XtermView.tsx +19 -2
- package/client/src/components/Terminal/phoneKeys.ts +9 -0
- package/client/src/components/TerminalInput.tsx +149 -32
- package/client/src/components/TranscriptWorkerDialog.tsx +2 -2
- package/client/src/components/UpdateAction.tsx +9 -6
- package/client/src/components/UsageBar.tsx +118 -10
- package/client/src/components/UserManual/MobileManualContent.tsx +58 -0
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +8 -5
- package/client/src/components/WorkflowCreator/PastChatsList.tsx +3 -1
- package/client/src/components/WorkflowCreator/ProjectPicker.tsx +3 -3
- package/client/src/components/WorkflowCreator/ResearchStartForm.tsx +335 -0
- package/client/src/components/WorkflowCreator/index.tsx +124 -36
- package/client/src/components/WorkflowCreator/memberProviders.ts +20 -5
- package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +20 -0
- package/client/src/components/WorkflowCreator/types.ts +18 -0
- package/client/src/components/WorkflowStatusChip.tsx +1 -0
- package/client/src/components/WorkflowView.tsx +51 -13
- package/client/src/components/chatMessageLabel.ts +4 -0
- package/client/src/components/clusterActivity.helpers.ts +5 -1
- package/client/src/components/clusterNeedsYou.ts +3 -8
- package/client/src/components/clusterSurface.helpers.ts +6 -1
- package/client/src/components/composer/submitComposer.ts +7 -1
- package/client/src/components/help/HelpBanner.tsx +10 -5
- package/client/src/components/help/HelpPopover.tsx +5 -0
- package/client/src/components/media/MediaModalHost.tsx +13 -8
- package/client/src/components/plans/PhonePlanView.tsx +66 -0
- package/client/src/components/plans/phonePlanChecklist.ts +45 -0
- package/client/src/components/providerIndicator.ts +83 -0
- package/client/src/components/research/AddResearcherSection.tsx +50 -0
- package/client/src/components/research/ExportResearchDialog.tsx +52 -0
- package/client/src/components/research/QuickResearchOverview.tsx +92 -0
- package/client/src/components/research/RerunResearchDialog.tsx +61 -0
- package/client/src/components/research/ResearchCloseDialog.tsx +98 -0
- package/client/src/components/research/ResearchRemoveDialog.tsx +37 -0
- package/client/src/components/research/ResearchReopenDialog.tsx +160 -0
- package/client/src/components/research/ResearchResultsTab.css +289 -0
- package/client/src/components/research/ResearchResultsTab.tsx +207 -0
- package/client/src/components/research/ResearchRoundsStrip.tsx +127 -0
- package/client/src/components/research/SavedQuickKeep.tsx +58 -0
- package/client/src/components/research/SendResearchDialog.tsx +126 -0
- package/client/src/components/research/StartResearchProjectDialog.tsx +108 -0
- package/client/src/components/research/researchExports.ts +26 -0
- package/client/src/components/research/researchLinks.tsx +30 -0
- package/client/src/components/research/researchView.ts +64 -0
- package/client/src/components/research/researcherRow.tsx +104 -0
- package/client/src/components/settings/AppVersionSection.tsx +2 -0
- package/client/src/components/settings/SettingsLayout.tsx +23 -4
- package/client/src/components/settings/navigation.ts +4 -4
- package/client/src/components/settings/settings.css +18 -0
- package/client/src/components/usageVisibility.ts +4 -6
- package/client/src/components/workSurface/WorkSurfaceControls.tsx +7 -0
- package/client/src/explorer/StorageLens.tsx +10 -3
- package/client/src/help/content/chat.tsx +5 -8
- package/client/src/help/content/cluster.tsx +70 -30
- package/client/src/help/content/composer.tsx +13 -8
- package/client/src/help/content/header.tsx +17 -24
- package/client/src/help/content/media.tsx +2 -2
- package/client/src/help/content/misc.tsx +174 -38
- package/client/src/help/content/recall.tsx +2 -2
- package/client/src/help/content/rightPanel.tsx +8 -8
- package/client/src/help/content/settings.tsx +48 -14
- package/client/src/help/content/tabbar.tsx +6 -2
- package/client/src/help/manualSections/actions.tsx +7 -2
- package/client/src/help/manualSections/chat.tsx +16 -15
- package/client/src/help/manualSections/clusters.tsx +348 -69
- package/client/src/help/manualSections/configuration.tsx +25 -18
- package/client/src/help/manualSections/deepseek.tsx +4 -5
- package/client/src/help/manualSections/gettingStarted.tsx +30 -26
- package/client/src/help/manualSections/maintenance.tsx +9 -5
- package/client/src/help/manualSections/plans.tsx +4 -4
- package/client/src/help/manualSections/powerFeatures.tsx +51 -18
- package/client/src/help/manualSections/providers.tsx +56 -21
- package/client/src/help/manualSections/reference.tsx +6 -6
- package/client/src/help/manualSections/strata.tsx +8 -8
- package/client/src/help/manualSections/workflows.tsx +3 -3
- package/client/src/help/manualSections/workspace.tsx +115 -39
- package/client/src/hooks/useWebSocket.ts +21 -4
- package/client/src/layout/PhoneBottomSheet.tsx +71 -0
- package/client/src/layout/PhonePage.tsx +71 -0
- package/client/src/layout/SlideOut.tsx +36 -9
- package/client/src/layout/layoutRange.ts +41 -4
- package/client/src/layout/phoneChip.ts +14 -0
- package/client/src/layout/phoneOverlay.ts +81 -0
- package/client/src/layout/phonePageActions.ts +40 -0
- package/client/src/stores/appStore.ts +36 -10
- package/client/src/stores/appStore.types.ts +29 -3
- package/client/src/stores/directorContinueStore.ts +22 -0
- package/client/src/stores/draftStore.ts +56 -2
- package/client/src/stores/phoneStore.ts +196 -0
- package/client/src/stores/terminalStore.ts +8 -0
- package/client/src/styles/contextual-help.css +10 -0
- package/client/src/styles/global.css +293 -0
- package/client/src/themes/apply.ts +9 -1
- package/client/src/themes/bootstrap.ts +21 -1
- package/client/src/themes/providerThemes.ts +1 -0
- package/client/src/utils/codexAccountHome.ts +9 -0
- package/client/src/utils/format.ts +8 -2
- package/client/src/utils/gitBranchMark.ts +3 -0
- package/client/src/utils/homeModel.ts +7 -0
- package/client/src/utils/longPress.ts +64 -0
- package/client/src/utils/modelCatalog.ts +4 -0
- package/client/src/utils/providerStatusCheck.ts +30 -0
- package/client/src/utils/startupGate.ts +6 -0
- package/client/src/ws/handleServerMessage.ts +106 -7
- package/docs/ARCHITECTURE.md +63 -37
- package/docs/ARCHITECTURE_REVIEW.md +1 -1
- package/docs/BACKUP.md +60 -9
- package/docs/CHAT.md +15 -11
- package/docs/CHECKPOINTS.md +2 -0
- package/docs/CLIENT.md +70 -36
- package/docs/DEEPSEEK.md +9 -10
- package/docs/DIAGNOSTICS.md +8 -7
- package/docs/DOCKER.md +16 -2
- package/docs/EXTENDING.md +10 -26
- package/docs/FEATURES.md +23 -15
- package/docs/GENESIS.md +3 -1
- package/docs/GETTING_STARTED.md +82 -16
- package/docs/GIT_WORKBENCH.md +5 -5
- package/docs/GLOSSARY.md +36 -23
- package/docs/GOTCHAS.md +102 -67
- package/docs/HTTP_API.md +182 -86
- package/docs/INDEX.md +1 -0
- package/docs/KNOWLEDGE.md +2 -2
- package/docs/LOCAL_SERVICES.md +9 -8
- package/docs/MCP_REGISTRY.md +18 -13
- package/docs/MEDIA_STUDIO.md +7 -11
- package/docs/OPERATIONS.md +101 -24
- package/docs/OPERATOR_ACTIONS.md +24 -22
- package/docs/PERSISTENCE.md +65 -24
- package/docs/PHOSPHOR_DEMO.md +1 -4
- package/docs/PLAN_OR_BOARD.md +2 -2
- package/docs/PRIMITIVES.md +17 -17
- package/docs/PROTOCOL.md +60 -9
- package/docs/PROTOCOL_CLUSTER.md +92 -22
- package/docs/PROTOCOL_PRIMITIVES.md +10 -4
- package/docs/PROVIDERS.md +291 -145
- package/docs/RECALL.md +40 -31
- package/docs/REMOTE_MANAGEMENT.md +27 -51
- package/docs/REPO_LAYOUT.md +4 -3
- package/docs/RESEARCH.md +189 -0
- package/docs/RESUME_INDEX.md +10 -19
- package/docs/SERVICE_MODE.md +11 -5
- package/docs/SETTINGS.md +18 -13
- package/docs/STORAGE_PLAN.md +3 -3
- package/docs/STRATA.md +14 -11
- package/docs/TASK_LEDGER.md +19 -8
- package/docs/TERMINAL.md +14 -10
- package/docs/THIRD_PARTY.md +21 -4
- package/docs/VOICE.md +16 -28
- package/native/linux-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +1 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +9 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +13 -4
- package/node_modules/@arco/shared/dist/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +7 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +22 -11
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +1 -1
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +18 -3
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +177 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.js +48 -2
- package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/models.js +4 -3
- package/node_modules/@arco/shared/dist/protocol/providers.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/providers.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +28 -3
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +3 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +42 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.js +17 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +2 -0
- package/node_modules/@arco/shared/dist/researchActivity.d.ts +4 -0
- package/node_modules/@arco/shared/dist/researchActivity.js +29 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +3 -2
- package/scripts/packaging/services.mjs +19 -2
- package/scripts/packaging/update.mjs +9 -0
- package/server/dist/arcoHome.js +19 -3
- package/server/dist/auth.d.ts +4 -2
- package/server/dist/auth.js +42 -4
- package/server/dist/authLoginSession.d.ts +2 -1
- package/server/dist/authLoginSession.js +13 -3
- package/server/dist/capabilities.d.ts +2 -2
- package/server/dist/capabilities.js +11 -6
- package/server/dist/chatMode.d.ts +3 -0
- package/server/dist/chatMode.js +25 -2
- package/server/dist/checkedFile.d.ts +1 -1
- package/server/dist/checkedFile.js +48 -41
- package/server/dist/cliUpdateDecision.js +1 -1
- package/server/dist/clusterAutoTurn.d.ts +4 -1
- package/server/dist/clusterAutoTurn.js +25 -4
- package/server/dist/clusterBusyReminder.js +2 -1
- package/server/dist/clusterDirector.js +5 -2
- package/server/dist/clusterMailTally.d.ts +11 -0
- package/server/dist/clusterMailTally.js +29 -0
- package/server/dist/clusterMailbox.d.ts +8 -1
- package/server/dist/clusterMailbox.js +53 -4
- package/server/dist/clusterOpenWork.d.ts +22 -0
- package/server/dist/clusterOpenWork.js +85 -0
- package/server/dist/clusterPeerOps.d.ts +32 -5
- package/server/dist/clusterPeerOps.js +253 -49
- package/server/dist/clusterPlanBridge.d.ts +7 -1
- package/server/dist/clusterPlanBridge.js +58 -0
- package/server/dist/clusterPlanStore.d.ts +6 -0
- package/server/dist/clusterPlanStore.js +58 -0
- package/server/dist/clusterPresets.js +23 -3
- package/server/dist/clusterProgress.js +2 -2
- package/server/dist/clusterSkills.js +2 -2
- package/server/dist/clusterSnapshots.d.ts +1 -0
- package/server/dist/clusterSnapshots.js +7 -1
- package/server/dist/clusterStore.d.ts +34 -1
- package/server/dist/clusterStore.js +194 -21
- package/server/dist/clusterTurnOrigin.d.ts +2 -0
- package/server/dist/clusterTurnOrigin.js +19 -0
- package/server/dist/connectionCatalog.js +1 -0
- package/server/dist/cursorUsage.js +3 -3
- package/server/dist/defaults/models.md +11 -14
- package/server/dist/directorContinue.d.ts +47 -0
- package/server/dist/directorContinue.js +311 -0
- package/server/dist/directorContinueHook.d.ts +3 -0
- package/server/dist/directorContinueHook.js +16 -0
- package/server/dist/effortValidation.d.ts +3 -0
- package/server/dist/effortValidation.js +34 -0
- package/server/dist/fileAccessPolicy.js +1 -0
- package/server/dist/fileFetch.d.ts +7 -1
- package/server/dist/fileFetch.js +50 -29
- package/server/dist/geminiMembers.d.ts +8 -0
- package/server/dist/geminiMembers.js +113 -0
- package/server/dist/git.d.ts +3 -0
- package/server/dist/git.js +17 -24
- package/server/dist/gitOtherWork.js +5 -4
- package/server/dist/gitSnapshots.js +66 -5
- package/server/dist/http/authLoginRoutes.js +1 -1
- package/server/dist/http/clusterRoutes.js +466 -4
- package/server/dist/http/diagnosticsRoutes.js +8 -0
- package/server/dist/http/fileWriteRoutes.js +11 -3
- package/server/dist/http/phoneUploadRoutes.js +2 -1
- package/server/dist/http/readConfinement.d.ts +11 -0
- package/server/dist/http/readConfinement.js +30 -0
- package/server/dist/http/recallRoutes.js +1 -1
- package/server/dist/http/router.js +48 -11
- package/server/dist/http/storageRoutes.js +114 -7
- package/server/dist/http/workflowDataRoutes.js +20 -0
- package/server/dist/http/writeConfinement.js +12 -1
- package/server/dist/index.d.ts +13 -0
- package/server/dist/index.js +353 -56
- package/server/dist/initialProviders.js +1 -1
- package/server/dist/manualCompactCapability.js +1 -1
- package/server/dist/mcp/clusterMcpLoopback.d.ts +1 -0
- package/server/dist/mcp/clusterMcpLoopback.js +1 -0
- package/server/dist/mcp/clusterMcpServer.js +3 -2
- package/server/dist/mcp/clusterMcpTools.d.ts +3 -0
- package/server/dist/mcp/clusterMcpTools.js +79 -25
- package/server/dist/mcp/mcpConfigWriter.d.ts +1 -0
- package/server/dist/mcp/mcpConfigWriter.js +2 -0
- package/server/dist/mcp/workerMailBridge.d.ts +17 -0
- package/server/dist/mcp/workerMailBridge.js +104 -0
- package/server/dist/planStore.js +1 -0
- package/server/dist/primitives/seedWorker.d.ts +10 -1
- package/server/dist/primitives/seedWorker.js +14 -15
- package/server/dist/project/taskLedger.d.ts +3 -0
- package/server/dist/project/taskLedger.js +16 -0
- package/server/dist/providers/{cursor → acp}/acpJsonRpc.js +1 -1
- package/server/dist/providers/acp/permissionGate.d.ts +3 -0
- package/server/dist/providers/acp/permissionGate.js +46 -0
- package/server/dist/providers/antigravity/index.d.ts +15 -0
- package/server/dist/providers/antigravity/index.js +251 -0
- package/server/dist/providers/antigravity/researchSignIn.d.ts +24 -0
- package/server/dist/providers/antigravity/researchSignIn.js +93 -0
- package/server/dist/providers/antigravity/status.d.ts +18 -0
- package/server/dist/providers/antigravity/status.js +28 -0
- package/server/dist/providers/antigravity/usage.d.ts +7 -0
- package/server/dist/providers/antigravity/usage.js +35 -0
- package/server/dist/providers/claude/researcherFence.d.ts +7 -0
- package/server/dist/providers/claude/researcherFence.js +27 -0
- package/server/dist/providers/claude-native/catalog.d.ts +2 -1
- package/server/dist/providers/claude-native/catalog.js +4 -0
- package/server/dist/providers/claude-native/index.d.ts +1 -0
- package/server/dist/providers/claude-native/index.js +9 -1
- package/server/dist/providers/claude-native/peerTools.d.ts +1 -0
- package/server/dist/providers/claude-native/peerTools.js +26 -4
- package/server/dist/providers/claude-native/taskAdmission.d.ts +7 -1
- package/server/dist/providers/claude-native/taskAdmission.js +30 -8
- package/server/dist/providers/claude-native/tools.d.ts +1 -0
- package/server/dist/providers/claude-native/tools.js +47 -18
- package/server/dist/providers/claude-native/worker.d.ts +22 -1
- package/server/dist/providers/claude-native/worker.js +281 -51
- package/server/dist/providers/claude-native/workerHelpers.d.ts +5 -0
- package/server/dist/providers/claude-native/workerHelpers.js +95 -5
- package/server/dist/providers/claude.d.ts +2 -0
- package/server/dist/providers/claude.js +194 -22
- package/server/dist/providers/clusterTaskToolDefinitions.js +2 -1
- package/server/dist/providers/codex-appserver/heldCommands.d.ts +2 -2
- package/server/dist/providers/codex-appserver/heldCommands.js +9 -3
- package/server/dist/providers/codex-appserver/index.d.ts +9 -0
- package/server/dist/providers/codex-appserver/index.js +106 -5
- package/server/dist/providers/codex-appserver/lateCommands.js +1 -0
- package/server/dist/providers/codex-appserver/modelAvailability.d.ts +20 -0
- package/server/dist/providers/codex-appserver/modelAvailability.js +34 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +11 -0
- package/server/dist/providers/codex-appserver/worker.js +199 -25
- package/server/dist/providers/codex.js +1 -0
- package/server/dist/providers/codexVersion.d.ts +2 -0
- package/server/dist/providers/codexVersion.js +8 -0
- package/server/dist/providers/codexWebSearch.js +1 -1
- package/server/dist/providers/cursor/agentEnv.d.ts +20 -0
- package/server/dist/providers/cursor/agentEnv.js +93 -0
- package/server/dist/providers/cursor/authState.js +2 -1
- package/server/dist/providers/cursor/authToken.d.ts +25 -2
- package/server/dist/providers/cursor/authToken.js +118 -27
- package/server/dist/providers/cursor/catalog.d.ts +6 -0
- package/server/dist/providers/cursor/catalog.js +91 -1
- package/server/dist/providers/cursor/chatSandbox.d.ts +3 -1
- package/server/dist/providers/cursor/chatSandbox.js +24 -8
- package/server/dist/providers/cursor/isolated.d.ts +6 -0
- package/server/dist/providers/cursor/isolated.js +313 -0
- package/server/dist/providers/cursor/isolatedVersion.d.ts +6 -0
- package/server/dist/providers/cursor/isolatedVersion.js +35 -0
- package/server/dist/providers/cursor/modelMap.js +9 -5
- package/server/dist/providers/cursor/print.js +10 -8
- package/server/dist/providers/cursor/worker.js +8 -3
- package/server/dist/providers/index.js +10 -2
- package/server/dist/providers/llamacpp.js +3 -2
- package/server/dist/providers/ollama.d.ts +3 -2
- package/server/dist/providers/ollama.js +29 -10
- package/server/dist/providers/ollamaTools.d.ts +3 -0
- package/server/dist/providers/ollamaTools.js +31 -29
- package/server/dist/research/exportResults.d.ts +15 -0
- package/server/dist/research/exportResults.js +60 -0
- package/server/dist/research/isolatedArtifact.d.ts +4 -0
- package/server/dist/research/isolatedArtifact.js +56 -0
- package/server/dist/research/quickPromotion.d.ts +27 -0
- package/server/dist/research/quickPromotion.js +402 -0
- package/server/dist/research/quickResearchChat.d.ts +4 -0
- package/server/dist/research/quickResearchChat.js +187 -0
- package/server/dist/research/researchClose.d.ts +31 -0
- package/server/dist/research/researchClose.js +373 -0
- package/server/dist/research/researchCopy.d.ts +16 -0
- package/server/dist/research/researchCopy.js +180 -0
- package/server/dist/research/researchCreate.d.ts +40 -0
- package/server/dist/research/researchCreate.js +334 -0
- package/server/dist/research/researchDoctrine.d.ts +2 -0
- package/server/dist/research/researchDoctrine.js +26 -0
- package/server/dist/research/researchFolder.d.ts +23 -0
- package/server/dist/research/researchFolder.js +191 -0
- package/server/dist/research/researchLibrary.d.ts +54 -0
- package/server/dist/research/researchLibrary.js +281 -0
- package/server/dist/research/researchRetry.d.ts +25 -0
- package/server/dist/research/researchRetry.js +96 -0
- package/server/dist/research/researchRounds.d.ts +108 -0
- package/server/dist/research/researchRounds.js +996 -0
- package/server/dist/research/researchState.d.ts +112 -0
- package/server/dist/research/researchState.js +191 -0
- package/server/dist/research/researchTools.d.ts +57 -0
- package/server/dist/research/researchTools.js +57 -0
- package/server/dist/research/researchTripwires.d.ts +18 -0
- package/server/dist/research/researchTripwires.js +196 -0
- package/server/dist/research/resultSelection.d.ts +27 -0
- package/server/dist/research/resultSelection.js +161 -0
- package/server/dist/research/savedQuickPromotion.d.ts +19 -0
- package/server/dist/research/savedQuickPromotion.js +259 -0
- package/server/dist/research/sendToProject.d.ts +36 -0
- package/server/dist/research/sendToProject.js +293 -0
- package/server/dist/server/broadcast.d.ts +5 -1
- package/server/dist/server/broadcast.js +45 -5
- package/server/dist/server/updateCheck.js +1 -0
- package/server/dist/settings.js +27 -3
- package/server/dist/skillActivity.d.ts +11 -0
- package/server/dist/skillActivity.js +33 -0
- package/server/dist/smartPickup.d.ts +1 -0
- package/server/dist/smartPickup.js +12 -4
- package/server/dist/smartPickupAdapters.js +3 -2
- package/server/dist/smartPickupEvaluator.d.ts +1 -0
- package/server/dist/smartPickupObserver.js +47 -14
- package/server/dist/storageActions.d.ts +9 -0
- package/server/dist/storageActions.js +5 -0
- package/server/dist/storageOverview.d.ts +1 -0
- package/server/dist/storageOverview.js +12 -5
- package/server/dist/taskDispatcher.js +3 -2
- package/server/dist/toolboxWorkflow.js +2 -1
- package/server/dist/updateCheck.d.ts +3 -2
- package/server/dist/updateCheck.js +39 -1
- package/server/dist/workers/StreamParser.d.ts +1 -0
- package/server/dist/workers/StreamParser.js +23 -1
- package/server/dist/workers/WorkerManager.d.ts +4 -0
- package/server/dist/workers/WorkerManager.js +5 -1
- package/server/dist/workers/antigravityIsolatedLaunch.d.ts +25 -0
- package/server/dist/workers/antigravityIsolatedLaunch.js +88 -0
- package/server/dist/workers/checkedLinuxWorker.d.ts +38 -0
- package/server/dist/workers/checkedLinuxWorker.js +192 -0
- package/server/dist/workers/claudeAccessLease.d.ts +24 -0
- package/server/dist/workers/claudeAccessLease.js +157 -0
- package/server/dist/workers/claudeAccessSource.d.ts +2 -0
- package/server/dist/workers/claudeAccessSource.js +27 -0
- package/server/dist/workers/claudeIsolatedLaunch.d.ts +19 -0
- package/server/dist/workers/claudeIsolatedLaunch.js +104 -0
- package/server/dist/workers/cliResearcherDoctrine.d.ts +4 -0
- package/server/dist/workers/cliResearcherDoctrine.js +20 -0
- package/server/dist/workers/codexAccessLease.d.ts +26 -0
- package/server/dist/workers/codexAccessLease.js +208 -0
- package/server/dist/workers/codexIsolatedLaunch.d.ts +21 -0
- package/server/dist/workers/codexIsolatedLaunch.js +95 -0
- package/server/dist/workers/codexIsolatedPolicy.d.ts +5 -0
- package/server/dist/workers/codexIsolatedPolicy.js +49 -0
- package/server/dist/workers/cursorIsolatedLaunch.d.ts +37 -0
- package/server/dist/workers/cursorIsolatedLaunch.js +178 -0
- package/server/dist/workers/isolatedCliHome.d.ts +4 -0
- package/server/dist/workers/isolatedCliHome.js +107 -0
- package/server/dist/workers/limits.js +1 -1
- package/server/dist/workers/linuxWorkerSandbox.d.ts +48 -0
- package/server/dist/workers/linuxWorkerSandbox.js +192 -0
- package/server/dist/workers/processKill.d.ts +2 -0
- package/server/dist/workers/processKill.js +28 -2
- package/server/dist/workers/providerRuntimeDiscovery.d.ts +13 -0
- package/server/dist/workers/providerRuntimeDiscovery.js +126 -0
- package/server/dist/workers/researchSandboxAvailability.d.ts +3 -0
- package/server/dist/workers/researchSandboxAvailability.js +78 -0
- package/server/dist/workers/workerAccessPass.d.ts +12 -0
- package/server/dist/workers/workerAccessPass.js +123 -0
- package/server/dist/workers/workerHiddenDirectories.d.ts +3 -0
- package/server/dist/workers/workerHiddenDirectories.js +16 -0
- package/server/dist/workers/workerSocketDirectory.d.ts +2 -0
- package/server/dist/workers/workerSocketDirectory.js +16 -0
- package/server/dist/workers/workerWebProxy.d.ts +28 -0
- package/server/dist/workers/workerWebProxy.js +206 -0
- package/server/dist/workflowMeta.d.ts +5 -0
- package/server/dist/workflowMeta.js +7 -3
- package/server/dist/workflowStore.js +43 -25
- package/server/dist/workflows/purgeWorkflow.js +15 -0
- package/server/dist/workflows/types.d.ts +6 -0
- package/server/dist/workspace.d.ts +1 -0
- package/server/dist/workspace.js +8 -0
- package/server/dist/ws/clusterHandlers.d.ts +5 -0
- package/server/dist/ws/clusterHandlers.js +373 -26
- package/server/dist/ws/clusterMembers.d.ts +5 -0
- package/server/dist/ws/clusterMembers.js +15 -5
- package/server/dist/ws/compactHandlers.js +43 -8
- package/server/dist/ws/compareHandlers.d.ts +12 -0
- package/server/dist/ws/compareHandlers.js +32 -14
- package/server/dist/ws/handoffHandlers.js +39 -3
- package/server/dist/ws/operatorQuestionHandlers.d.ts +5 -0
- package/server/dist/ws/operatorQuestionHandlers.js +17 -2
- package/server/dist/ws/taskLedgerHandlers.js +1 -0
- package/server/dist/ws/taskLifecycle.d.ts +25 -1
- package/server/dist/ws/taskLifecycle.js +53 -1
- package/server/dist/ws/turnEngine.d.ts +18 -1
- package/server/dist/ws/turnEngine.js +281 -52
- package/server/dist/ws/turnPrompt.js +3 -1
- package/server/dist/ws/updatePrimaryConfig.js +11 -3
- package/server/dist/ws/workflowHandlers.js +17 -4
- package/server/package.json +1 -1
- package/server/src/arcoHome.ts +16 -3
- package/server/src/auth.ts +50 -6
- package/server/src/authLoginSession.ts +10 -5
- package/server/src/capabilities.ts +13 -8
- package/server/src/chatMode.ts +24 -2
- package/server/src/checkedFile.ts +42 -31
- package/server/src/cliUpdateDecision.ts +1 -1
- package/server/src/clusterAutoTurn.ts +29 -5
- package/server/src/clusterBusyReminder.ts +2 -1
- package/server/src/clusterDirector.ts +5 -2
- package/server/src/clusterMailTally.ts +28 -0
- package/server/src/clusterMailbox.ts +49 -4
- package/server/src/clusterOpenWork.ts +94 -0
- package/server/src/clusterPeerOps.ts +238 -52
- package/server/src/clusterPlanBridge.ts +54 -1
- package/server/src/clusterPlanStore.ts +59 -0
- package/server/src/clusterPresets.ts +17 -3
- package/server/src/clusterProgress.ts +2 -2
- package/server/src/clusterSkills.ts +2 -2
- package/server/src/clusterSnapshots.ts +7 -1
- package/server/src/clusterStore.ts +192 -20
- package/server/src/clusterTurnOrigin.ts +19 -0
- package/server/src/connectionCatalog.ts +1 -0
- package/server/src/cursorUsage.ts +3 -3
- package/server/src/defaults/models.md +11 -14
- package/server/src/directorContinue.ts +309 -0
- package/server/src/directorContinueHook.ts +15 -0
- package/server/src/effortValidation.ts +31 -0
- package/server/src/fileAccessPolicy.ts +1 -0
- package/server/src/fileFetch.ts +47 -29
- package/server/src/geminiMembers.ts +116 -0
- package/server/src/git.ts +20 -22
- package/server/src/gitOtherWork.ts +5 -4
- package/server/src/gitSnapshots.ts +53 -5
- package/server/src/http/authLoginRoutes.ts +2 -2
- package/server/src/http/clusterRoutes.ts +314 -6
- package/server/src/http/diagnosticsRoutes.ts +9 -0
- package/server/src/http/fileWriteRoutes.ts +13 -5
- package/server/src/http/phoneUploadRoutes.ts +2 -1
- package/server/src/http/readConfinement.ts +30 -0
- package/server/src/http/recallRoutes.ts +1 -1
- package/server/src/http/router.ts +43 -10
- package/server/src/http/storageRoutes.ts +86 -7
- package/server/src/http/workflowDataRoutes.ts +20 -0
- package/server/src/http/writeConfinement.ts +10 -1
- package/server/src/index.ts +295 -18
- package/server/src/initialProviders.ts +1 -1
- package/server/src/manualCompactCapability.ts +1 -1
- package/server/src/mcp/clusterMcpLoopback.ts +2 -0
- package/server/src/mcp/clusterMcpServer.ts +3 -2
- package/server/src/mcp/clusterMcpTools.ts +83 -27
- package/server/src/mcp/mcpConfigWriter.ts +4 -0
- package/server/src/mcp/workerMailBridge.ts +99 -0
- package/server/src/planStore.ts +1 -0
- package/server/src/primitives/seedWorker.ts +19 -14
- package/server/src/project/taskLedger.ts +23 -0
- package/server/src/providers/{cursor → acp}/acpJsonRpc.ts +3 -3
- package/server/src/providers/acp/permissionGate.ts +47 -0
- package/server/src/providers/antigravity/index.ts +187 -0
- package/server/src/providers/antigravity/researchSignIn.ts +76 -0
- package/server/src/providers/antigravity/status.ts +24 -0
- package/server/src/providers/antigravity/usage.ts +29 -0
- package/server/src/providers/claude/researcherFence.ts +25 -0
- package/server/src/providers/claude-native/catalog.ts +5 -0
- package/server/src/providers/claude-native/index.ts +8 -1
- package/server/src/providers/claude-native/peerTools.ts +24 -4
- package/server/src/providers/claude-native/taskAdmission.ts +35 -9
- package/server/src/providers/claude-native/tools.ts +39 -19
- package/server/src/providers/claude-native/worker.ts +270 -52
- package/server/src/providers/claude-native/workerHelpers.ts +88 -5
- package/server/src/providers/claude.ts +160 -22
- package/server/src/providers/clusterTaskToolDefinitions.ts +2 -1
- package/server/src/providers/codex-appserver/heldCommands.ts +7 -3
- package/server/src/providers/codex-appserver/index.ts +87 -3
- package/server/src/providers/codex-appserver/lateCommands.ts +1 -0
- package/server/src/providers/codex-appserver/modelAvailability.ts +40 -0
- package/server/src/providers/codex-appserver/worker.ts +155 -25
- package/server/src/providers/codex.ts +1 -0
- package/server/src/providers/codexVersion.ts +9 -0
- package/server/src/providers/codexWebSearch.ts +1 -1
- package/server/src/providers/cursor/agentEnv.ts +103 -0
- package/server/src/providers/cursor/authState.ts +2 -1
- package/server/src/providers/cursor/authToken.ts +137 -31
- package/server/src/providers/cursor/catalog.ts +89 -1
- package/server/src/providers/cursor/chatSandbox.ts +20 -8
- package/server/src/providers/cursor/isolated.ts +282 -0
- package/server/src/providers/cursor/isolatedVersion.ts +33 -0
- package/server/src/providers/cursor/modelMap.ts +9 -5
- package/server/src/providers/cursor/print.ts +10 -8
- package/server/src/providers/cursor/worker.ts +8 -3
- package/server/src/providers/index.ts +10 -2
- package/server/src/providers/llamacpp.ts +3 -1
- package/server/src/providers/ollama.ts +30 -11
- package/server/src/providers/ollamaTools.ts +33 -27
- package/server/src/research/exportResults.ts +47 -0
- package/server/src/research/isolatedArtifact.ts +48 -0
- package/server/src/research/quickPromotion.ts +325 -0
- package/server/src/research/quickResearchChat.ts +147 -0
- package/server/src/research/researchClose.ts +340 -0
- package/server/src/research/researchCopy.ts +170 -0
- package/server/src/research/researchCreate.ts +306 -0
- package/server/src/research/researchDoctrine.ts +27 -0
- package/server/src/research/researchFolder.ts +202 -0
- package/server/src/research/researchLibrary.ts +306 -0
- package/server/src/research/researchRetry.ts +86 -0
- package/server/src/research/researchRounds.ts +891 -0
- package/server/src/research/researchState.ts +309 -0
- package/server/src/research/researchTools.ts +59 -0
- package/server/src/research/researchTripwires.ts +158 -0
- package/server/src/research/resultSelection.ts +127 -0
- package/server/src/research/savedQuickPromotion.ts +174 -0
- package/server/src/research/sendToProject.ts +220 -0
- package/server/src/server/broadcast.ts +39 -5
- package/server/src/server/updateCheck.ts +1 -0
- package/server/src/settings.ts +22 -5
- package/server/src/skillActivity.ts +35 -0
- package/server/src/smartPickup.ts +14 -4
- package/server/src/smartPickupAdapters.ts +3 -2
- package/server/src/smartPickupEvaluator.ts +3 -0
- package/server/src/smartPickupObserver.ts +38 -12
- package/server/src/storageActions.ts +6 -0
- package/server/src/storageOverview.ts +13 -6
- package/server/src/taskDispatcher.ts +3 -1
- package/server/src/toolboxWorkflow.ts +2 -1
- package/server/src/updateCheck.ts +31 -3
- package/server/src/workers/StreamParser.ts +20 -1
- package/server/src/workers/WorkerManager.ts +10 -1
- package/server/src/workers/antigravityIsolatedLaunch.ts +82 -0
- package/server/src/workers/checkedLinuxWorker.ts +212 -0
- package/server/src/workers/claudeAccessLease.ts +122 -0
- package/server/src/workers/claudeAccessSource.ts +20 -0
- package/server/src/workers/claudeIsolatedLaunch.ts +91 -0
- package/server/src/workers/cliResearcherDoctrine.ts +20 -0
- package/server/src/workers/codexAccessLease.ts +146 -0
- package/server/src/workers/codexIsolatedLaunch.ts +72 -0
- package/server/src/workers/codexIsolatedPolicy.ts +38 -0
- package/server/src/workers/cursorIsolatedLaunch.ts +159 -0
- package/server/src/workers/isolatedCliHome.ts +75 -0
- package/server/src/workers/limits.ts +1 -1
- package/server/src/workers/linuxWorkerSandbox.ts +193 -0
- package/server/src/workers/processKill.ts +34 -2
- package/server/src/workers/providerRuntimeDiscovery.ts +108 -0
- package/server/src/workers/researchSandboxAvailability.ts +68 -0
- package/server/src/workers/workerAccessPass.ts +96 -0
- package/server/src/workers/workerHiddenDirectories.ts +16 -0
- package/server/src/workers/workerSocketDirectory.ts +13 -0
- package/server/src/workers/workerWebProxy.ts +194 -0
- package/server/src/workflowMeta.ts +10 -3
- package/server/src/workflowStore.ts +39 -26
- package/server/src/workflows/purgeWorkflow.ts +18 -0
- package/server/src/workflows/types.ts +13 -0
- package/server/src/workspace.ts +8 -0
- package/server/src/ws/clusterHandlers.ts +302 -26
- package/server/src/ws/clusterMembers.ts +15 -5
- package/server/src/ws/compactHandlers.ts +37 -5
- package/server/src/ws/compareHandlers.ts +34 -11
- package/server/src/ws/handoffHandlers.ts +36 -3
- package/server/src/ws/operatorQuestionHandlers.ts +14 -2
- package/server/src/ws/taskLedgerHandlers.ts +1 -0
- package/server/src/ws/taskLifecycle.ts +58 -4
- package/server/src/ws/turnEngine.ts +265 -49
- package/server/src/ws/turnPrompt.ts +3 -1
- package/server/src/ws/updatePrimaryConfig.ts +10 -3
- package/server/src/ws/workflowHandlers.ts +15 -4
- package/shared/dist/clusterCoordination.d.ts +1 -0
- package/shared/dist/clusterCoordination.js +9 -1
- package/shared/dist/clusterRolePresets.js +13 -4
- package/shared/dist/index.d.ts +1 -0
- package/shared/dist/index.js +1 -0
- package/shared/dist/protocol/autoPickup.d.ts +7 -0
- package/shared/dist/protocol/autoPickup.js +22 -11
- package/shared/dist/protocol/chat.d.ts +1 -1
- package/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/shared/dist/protocol/clientMessages.d.ts +18 -3
- package/shared/dist/protocol/clusters.d.ts +177 -4
- package/shared/dist/protocol/clusters.js +48 -2
- package/shared/dist/protocol/handoffs.d.ts +1 -0
- package/shared/dist/protocol/models.d.ts +6 -1
- package/shared/dist/protocol/models.js +4 -3
- package/shared/dist/protocol/providers.d.ts +3 -2
- package/shared/dist/protocol/providers.js +1 -1
- package/shared/dist/protocol/serverMessages.d.ts +28 -3
- package/shared/dist/protocol/settings.d.ts +4 -0
- package/shared/dist/protocol/settings.js +3 -1
- package/shared/dist/protocol/tasks.d.ts +42 -0
- package/shared/dist/protocol/tasks.js +17 -0
- package/shared/dist/protocol/workflows.d.ts +4 -0
- package/shared/dist/protocol/workflows.js +2 -0
- package/shared/dist/researchActivity.d.ts +4 -0
- package/shared/dist/researchActivity.js +29 -0
- package/shared/src/clusterCoordination.ts +12 -1
- package/shared/src/clusterRolePresets.ts +13 -4
- package/shared/src/index.ts +2 -0
- package/shared/src/protocol/autoPickup.ts +28 -11
- package/shared/src/protocol/chat.ts +1 -1
- package/shared/src/protocol/checkpoints.ts +1 -0
- package/shared/src/protocol/clientMessages.ts +14 -0
- package/shared/src/protocol/clusters.ts +231 -5
- package/shared/src/protocol/handoffs.ts +1 -0
- package/shared/src/protocol/models.ts +11 -4
- package/shared/src/protocol/providers.ts +6 -3
- package/shared/src/protocol/reviews.ts +2 -2
- package/shared/src/protocol/serverMessages.ts +28 -3
- package/shared/src/protocol/settings.ts +14 -1
- package/shared/src/protocol/tasks.ts +73 -0
- package/shared/src/protocol/workflows.ts +8 -0
- package/shared/src/researchActivity.ts +23 -0
- package/client/dist/assets/XtermView-Xk7_9JaH.js +0 -10
- package/client/dist/assets/index-BEFgrUJJ.css +0 -1
- package/client/dist/assets/index-C7WzZfsr.js +0 -614
- package/client/src/components/HeaderAuthChip.tsx +0 -207
- /package/server/dist/providers/{cursor → acp}/acpJsonRpc.d.ts +0 -0
package/docs/PROTOCOL.md
CHANGED
|
@@ -285,6 +285,7 @@ Live model/effort swap. Same-provider only - provider swaps require Handoff.
|
|
|
285
285
|
claudeNativeCompact?: boolean, // followup - Anthropic server-managed compaction
|
|
286
286
|
claudeNativeForceInterleavedThinkingBeta?: boolean, // Native A/B debug - force interleaved-thinking beta next turn
|
|
287
287
|
claudeNativeThinkingDisplay?: 'omitted' | 'summarized' | 'updates', // Native adaptive-thinking display - 'summarized' streams thinking into Activity (default 'omitted', Claude Code parity); 'updates' (beta progress notes) only where supportsThinkingDisplayUpdates, else resolves to 'omitted'
|
|
288
|
+
nativeSubagents?: { maxRunning?, maxStarts?, model?, background? } | null, // Claude Native Task policy; null clears the tab override. background false makes every Task wait. Applies next turn
|
|
288
289
|
nativeCompactAutoContinue?: boolean, // auto-continue after a Native compaction (default false)
|
|
289
290
|
autoFold?: { enabled, foldAt, tailBudget? }, // per-tab auto-fold (Native) - off by default; foldAt is the budget-meter pct
|
|
290
291
|
goalRun?: { enabled, total?, tokenBudget? }, // - arm/re-arm (resets counters) / disarm the north-star auto-continue; refused without a north star. Acked by goal_run_state
|
|
@@ -293,16 +294,16 @@ Live model/effort swap. Same-provider only - provider swaps require Handoff.
|
|
|
293
294
|
efficiencyConfigProtection?: 'on' | 'off', // config-protection write-gate (Native, default 'on')
|
|
294
295
|
efficiencySandbox?: 'off' | 'on', // opt-in ctx_* tools
|
|
295
296
|
reviewSafeMode?: 'off' | 'on', // DEBAG durable review gate (Native, default 'off')
|
|
296
|
-
outputStyle?: 'normal' | 'plain' | 'terse', // -
|
|
297
|
+
outputStyle?: 'normal' | 'plain' | 'terse', // - supported providers; unset = plain
|
|
297
298
|
goal?: string, // - persistent per-tab north-star; empty/whitespace CLEARS. Cap 2048 bytes. Injected as a system block every turn on transports that fold the cluster plan; inherited by primitives (unlike outputStyle's forced 'normal')
|
|
298
|
-
pinnedSkills?: Array<{ scope: 'project' | 'global'; slug: string }>, // replace the durable tab pin set; empty CLEARS. Full bodies are re-resolved + injected every turn
|
|
299
|
+
pinnedSkills?: Array<{ scope: 'project' | 'global'; slug: string }>, // replace the durable tab pin set; empty CLEARS. Full bodies are re-resolved + injected every turn on supported providers (Antigravity CLI does not receive picked or pinned Arco skill bodies)
|
|
299
300
|
remoteEnabled?: boolean, // REMOTE_MANAGEMENT - per-workflow hub opt-in
|
|
300
301
|
remoteGatesEnabled?: boolean, // REMOTE_CLUSTER_CONTROL - second arming: resolve DEBAG gates from the hub console (default false)
|
|
301
302
|
ollamaParams?: Record<string, unknown>, // per-tab Ollama generation-parameter blob (whole-blob replace)
|
|
302
303
|
}
|
|
303
304
|
```
|
|
304
305
|
|
|
305
|
-
Takes effect on the next primary turn. Persisted to `meta.json` (except `goalRun`, whose counters are memory-only - a restart ends any run). On an incognito chat only `model` / `effort` / `chatWebAccess` (`INCOGNITO_SAFE_CONFIG_FIELDS`) are accepted, held in memory; every other field is refused. Transport / efficiency fields are provider-specific knobs. `outputStyle` is honored by
|
|
306
|
+
Takes effect on the next primary turn. Persisted to `meta.json` (except `goalRun`, whose counters are memory-only - a restart ends any run). On an incognito chat only `model` / `effort` / `chatWebAccess` (`INCOGNITO_SAFE_CONFIG_FIELDS`) are accepted, held in memory; every other field is refused. Transport / efficiency fields are provider-specific knobs. `outputStyle` is honored by supported providers and is not offered for Antigravity CLI; a tab with no saved value runs as `'plain'`, and `'plain'` is stored as unset. `'lite'` (before 0.1.5) and `'caveman'` (before 2026-05-10) are accepted on the wire from older clients and stored as `'plain'` and `'terse'`; an unknown value is ignored.
|
|
306
307
|
|
|
307
308
|
### `goal_set` <- - ack/visibility broadcast for a north-star set / edit / clear (the durable side of `update_primary_config { goal }`). **Persist-then-announce**: the server writes `meta.json` before emitting, so "`goal_set` observed ⇒ value already durable" holds. Persisted to `events.jsonl` (reviewable in the transcript per the four-question test). `goal` is `null` on clear; `byteLen` is the UTF-8 byte length of the stored text (0 on clear).
|
|
308
309
|
|
|
@@ -334,6 +335,41 @@ missing, or over-budget references that were not pinned.
|
|
|
334
335
|
}
|
|
335
336
|
```
|
|
336
337
|
|
|
338
|
+
### `skill_activity` <-
|
|
339
|
+
|
|
340
|
+
A skill took part in a turn. `kind: 'applied'` means the turn's prompt carried the skill (pinned or chosen); `'loaded'` means the agent completed a read of the skill's file during the turn. Each skill is reported once per turn. `scope` is `'project' | 'global' | 'builtin'` and `turn` is the 1-based turn number. The server keeps the events of the current conversation and broadcasts each as it happens.
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
{ type: 'skill_activity', workflowId: string, kind: 'applied' | 'loaded', name: string, scope: 'project' | 'global' | 'builtin', turn: number }
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### `file_context` <-
|
|
347
|
+
|
|
348
|
+
Receipt for files an agent was given as context, so the transcript shows what it read. `origin` is `'attachment'` (files the operator attached) or `'tool'` (files a tool read). `receipt` is the plain-text summary, `files` the references, and `tool`, `toolInput` and `toolUseId` identify the tool call for a `'tool'` origin. `sourcePaths` and `inputClientMessageIds` tie the receipt to the attached paths and the messages that carried them. A worker sends the same shape as `worker_file_context`, without `workflowId`.
|
|
349
|
+
|
|
350
|
+
```ts
|
|
351
|
+
{ type: 'file_context', workflowId: string, origin: 'attachment' | 'tool', receipt: string, files: FileContextReference[],
|
|
352
|
+
sourcePaths?: string[], inputClientMessageIds?: string[], tool?: string, toolInput?: string, toolUseId?: string }
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### `provider_conversation_state` <-
|
|
356
|
+
|
|
357
|
+
Whether the provider's own conversation continues the earlier one. A new Claude CLI, Codex or Cursor conversation starts when no saved thread id is available; the server then sends `'awaiting-reading'` with a system notice that earlier messages remain in the tab, and `'ready'` once the agent has read them (the first turn after that). `'unavailable'` marks a tab that has earlier messages but no saved thread id, so the next turn will start a new provider conversation. `workflow_state_snapshot` carries the same state as `providerConversation` on reconnect. `'ready'` is transient and not persisted.
|
|
358
|
+
|
|
359
|
+
```ts
|
|
360
|
+
{ type: 'provider_conversation_state', workflowId: string, state: 'unavailable' | 'awaiting-reading' | 'ready' }
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### `director_continue_offer` <- and `director_continue_action` ->
|
|
364
|
+
|
|
365
|
+
Live only, sent to a Director. `offer` describes an approved task waiting for the Director's handoff, or `null` to clear the prompt; `notice` explains a click that started nothing. The operator answers with `director_continue_action`. See [`PROTOCOL_CLUSTER.md`](PROTOCOL_CLUSTER.md#continue-the-director).
|
|
366
|
+
|
|
367
|
+
```ts
|
|
368
|
+
{ type: 'director_continue_offer', workflowId: string, offer: { id: string, clusterId: string, taskId: string, taskTitle: string, approvalId: string,
|
|
369
|
+
kind: 'continue' | 'nudge', memberWorkflowId?: string, memberName?: string, createdAt: number } | null, notice?: string }
|
|
370
|
+
{ type: 'director_continue_action', workflowId: string, offerId: string, action: 'continue' | 'dismiss' }
|
|
371
|
+
```
|
|
372
|
+
|
|
337
373
|
### `rename_workflow` ->
|
|
338
374
|
|
|
339
375
|
Operator-set friendly name for a workflow. Server trims + caps at 64 chars; empty / whitespace clears back to default (the wfid 8-char prefix). Persists `wf.config.name` to `meta.json` and emits `workflow_renamed` to every observer. If the workflow is a cluster member, re-emits `cluster_state` to every cluster subscriber so the bottom-row tab + member grid pick up the new label without a reload (`ClusterMember.displayName = wf.config.name?.trim || wfid.slice(0, 8)`). Rejected on validation failure via a generic `error` message (`rename_workflow rejected: name_too_long (<n> > 64)` or `rename_workflow requires a string name`). Shape defined in [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts) (`RenameWorkflowMessage`).
|
|
@@ -370,7 +406,7 @@ A user message. It may arrive while another turn is in flight; the server queues
|
|
|
370
406
|
}
|
|
371
407
|
```
|
|
372
408
|
|
|
373
|
-
`kind` selects steering at a provider boundary, a follow-up after completion, or **interrupt and send**. For a busy Claude/Codex primary, `interrupt` cancels that worker, waits for teardown, and runs the instruction as the next turn in the same conversation. Older steers and follow-ups stay queued until the correction completes. Several interrupts awaiting cancellation are merged FIFO; attachments, context refs and picked skills follow their owning prompt. STOP
|
|
409
|
+
`kind` selects steering at a provider boundary, a follow-up after completion, or **interrupt and send**. For a busy Claude/Codex primary, `interrupt` cancels that worker, waits for teardown, and runs the instruction as the next turn in the same conversation. Older steers and follow-ups stay queued until the correction completes. Several interrupts awaiting cancellation are merged FIFO; attachments, context refs and picked skills follow their owning prompt. STOP drops the queue and prevents the pending redirect. It also cancels a message received before STOP while its WebSocket admission checks are still running. Interrupt disarms Goal Run. With no interruptible primary (another provider, Computer, compact/handoff busy holder), it visibly falls back to follow-up. Idle sends start normally. Omitted busy kinds default to follow-up for older clients.
|
|
374
410
|
|
|
375
411
|
The browser submits only while the WebSocket is open. A locally retained composer draft is not a server submission. A successful local send call means the browser passed the message to `WebSocket.send`; it does not mean the server accepted, persisted, dispatched, or completed the turn. A server echo means the server emitted an echo, not that the event log has been flushed or the provider has run. Echoes are also emitted for some refused idle sends, such as a temporary external-writer block. `clientMessageId` correlates UI entries; it is not a server-side idempotency key, so repeated submissions can create multiple queue entries.
|
|
376
412
|
|
|
@@ -1811,21 +1847,24 @@ session-local (not in `meta.json`) - only the audit event lands in events.jsonl.
|
|
|
1811
1847
|
|
|
1812
1848
|
### `task_started` <- (Claude Native - Task children)
|
|
1813
1849
|
|
|
1814
|
-
Broadcast on the **parent** workflow when a `Task` child
|
|
1850
|
+
Broadcast on the **parent** workflow when a `Task` child is admitted or starts. Renders an inline TaskCard on the parent's `Task` tool_use chat row and lights up the right-pane TASKS tab (gated on non-empty `taskChildren`). A queued admission may omit `childWorkflowId` until a later start attaches it.
|
|
1815
1851
|
|
|
1816
1852
|
```ts
|
|
1817
1853
|
{
|
|
1818
1854
|
type: 'task_started',
|
|
1819
1855
|
workflowId: string, // parent
|
|
1820
1856
|
taskId: string,
|
|
1821
|
-
childWorkflowId
|
|
1857
|
+
childWorkflowId?: string, // absent while phase is queued
|
|
1858
|
+
phase?: 'queued' | 'running',
|
|
1859
|
+
model?: string, // effective child model when known
|
|
1822
1860
|
toolUseId: string, // assistant's tool_use block id - chat-side lookup key
|
|
1823
1861
|
description: string,
|
|
1824
1862
|
startedAt: number,
|
|
1863
|
+
background?: boolean, // run_in_background: tied to the parent tab, not its turn
|
|
1825
1864
|
}
|
|
1826
1865
|
```
|
|
1827
1866
|
|
|
1828
|
-
Persisted on the parent. The child workflow itself is created via `workflow_created` carrying `parentWorkflowId`.
|
|
1867
|
+
Persisted on the parent. The child workflow itself is created via `workflow_created` carrying `parentWorkflowId`. `background: true` labels the SUB-AGENTS row BACKGROUND; a new parent turn leaves that child running.
|
|
1829
1868
|
|
|
1830
1869
|
### `task_status` <- (Claude Native - Task children)
|
|
1831
1870
|
|
|
@@ -1840,12 +1879,21 @@ Settle / error / cancelled signal for a Task child. v1 fires `started` + final-p
|
|
|
1840
1879
|
phase: 'running' | 'done' | 'error' | 'cancelled',
|
|
1841
1880
|
elapsedMs: number,
|
|
1842
1881
|
summary?: string,
|
|
1882
|
+
model?: string,
|
|
1843
1883
|
}
|
|
1844
1884
|
```
|
|
1845
1885
|
|
|
1846
1886
|
Persisted on the parent. Re-broadcast on rehydrate **regardless of `clientLastSeq`** so a refresh-after-settle doesn't pin the TaskCard at `0s · RUNNING` forever; client `recordTaskStarted` / `recordTaskStatus` actions are idempotent.
|
|
1847
1887
|
|
|
1848
|
-
On STOP of the parent
|
|
1888
|
+
On STOP of the parent, `ClaudeNativeWorker.cancel()` emits `phase: 'cancelled'` (summary `Cancelled.`) for every unsettled child, background ones included, before the server revokes the turn; the child's later rejection emits nothing more. A new message or INTERRUPT & SEND does not cancel background children. The turn broadcast gate (`dispatchCurrent()` in `turnEngine.ts`) still passes `task_status` after a revoke (`deliverAfterTurnRevoked`, `server/src/ws/taskLifecycle.ts`). A child stopped by its own card CANCEL settles as `cancelled`, not `error`. On rehydrate, a foreground `task_started` with no final status whose child is not busy gets a per-browser `task_status` `cancelled` with summary `Ended without a recorded result.`; a background child left open across a restart is summarised `Stopped by restart.` (`unsettledTaskStatuses`); those rehydrate rows are sent to that browser only and never persisted. The first Claude Native parent turn after the restart also records each such background status once (`restartStoppedBackgroundTasks` in `turnEngine`) and carries one shared automatic notice that the result was not received (`restartStoppedNotice`); several stopped children share that notice, and it does not start a turn by itself.
|
|
1889
|
+
|
|
1890
|
+
### `open_task_view` ->
|
|
1891
|
+
|
|
1892
|
+
Opens a Claude Native sub-agent (Task child) conversation as its own tab. `{ type: 'open_task_view', workflowId: <parent>, taskId, childWorkflowId, lastSeq?: number }`. The server accepts it only from a client observing the parent, and only when the child's metadata names that parent and the parent's transcript holds a `task_started` event for the same task and child. On success it replies with `workflow_created` for the child (`parentWorkflowId`, plus `taskView: { parentWorkflowId, taskId }`) and then replays the child's transcript from `lastSeq` (default 0) through the normal rehydrate path. Otherwise it sends a `system_notice` on the parent: "Could not open this sub-agent: its parent task or transcript is unavailable."
|
|
1893
|
+
|
|
1894
|
+
### `task_child_message` -> / `task_child_message_rejected` <-
|
|
1895
|
+
|
|
1896
|
+
Steers a running Native sub-agent from its tab. `{ type: 'task_child_message', workflowId: <parent>, taskId, childWorkflowId, content, clientMessageId }`. The server accepts it only while the child run is active and the parent, task and child match the live run and both workflows are observed by the sending client. An accepted message is queued for the child and echoed as `user_message_echo` with `kind: 'steer'` on the child. Otherwise the server replies `{ type: 'task_child_message_rejected', workflowId: <child>, clientMessageId }` and nothing is queued. A plain `user_message` sent to a sub-agent is never delivered: the server answers with `queued_message_cancelled` (when a `clientMessageId` was sent) and a `system_notice` telling the operator to open the sub-agent from its parent task.
|
|
1849
1897
|
|
|
1850
1898
|
### `queued_messages_drained` <-
|
|
1851
1899
|
|
|
@@ -2702,7 +2750,7 @@ string[]> }`. Requires one explicit answer per question, honors closed option
|
|
|
2702
2750
|
sets, and rejects wrong-workflow, stale or duplicate replies. Server sends a
|
|
2703
2751
|
transient `operator_question_reply_result { workflowId, requestId, ok, error? }`
|
|
2704
2752
|
to the submitting socket; authoritative answered/cancelled state is broadcast to
|
|
2705
|
-
all observers. `operator_question_dismiss { workflowId, requestId }` closes a question without an answer; `operator_question_dismiss_result` reports delivery to the submitting socket. RPC dismissal sends empty answers before closure; async message questions close when their own turn settles. Approval messages are separate and retain existing behavior.
|
|
2753
|
+
all observers. `operator_question_dismiss { workflowId, requestId }` closes a question without an answer; `operator_question_dismiss_result` reports delivery to the submitting socket. RPC dismissal sends empty answers before closure; async message questions close when their own turn settles. Approval messages are separate and retain existing behavior. Reply and dismiss are accepted from a socket that observes the workflow either as a tab of its session or as a member of a cluster the session has open (`canAnswerFor`), so a browser that opened the cluster without restoring the member tabs, such as a phone, can answer too.
|
|
2706
2754
|
|
|
2707
2755
|
`workflow_state_snapshot.operatorQuestions` contains the live pending requests
|
|
2708
2756
|
(including an empty array). The client upserts by request ID and closes any
|
|
@@ -3073,6 +3121,9 @@ Messages in the `ClientMessage` / `ServerMessage` unions that the sections above
|
|
|
3073
3121
|
| `workflow_rename_result` | <- (to the requesting socket) | `workflowId`, `requestId`, `error?` | Reply to a `rename_workflow` that carried a `requestId`; `error` names a refused rename. |
|
|
3074
3122
|
| `output_saved` | <- (persisted) | `workflowId`, `path`, `sourcePath?`, `ts` | An editor or image save wrote a file; OUTPUTS records it as an editor export of `sourcePath`. |
|
|
3075
3123
|
| `app_update_available` | <- (all clients) | `current`, `latest`, `url`, `publishedAt` | Sent once per newer release found by the release check, unless that version was dismissed (`server/src/updateCheck.ts`); the client shows the release toast. |
|
|
3124
|
+
| `app_update_status_changed` | <- (all clients) | none | A packaged install that had an update on offer no longer has one (for example the package was withdrawn). The client reads `GET /api/update-check` again and drops the release toast (`server/src/updateCheck.ts`). |
|
|
3125
|
+
| `attention_question_closed` | <- (all clients) | `requestId` | A pending question that raised a `waiting` attention event was answered or dismissed. The client clears the matching question alert. Not sent for an incognito tab (`server/src/attention.ts`). |
|
|
3126
|
+
| `cluster_creation_finished` | <- (requesting socket) | `requestId` | A `cluster_create_from_scratch` that carried a `requestId` (1 to 128 characters) has finished, whether it created the cluster or was refused. The client stops its creating state (`server/src/ws/clusterHandlers.ts`). |
|
|
3076
3127
|
|
|
3077
3128
|
## Input delivery and restored snapshots
|
|
3078
3129
|
|
package/docs/PROTOCOL_CLUSTER.md
CHANGED
|
@@ -4,11 +4,11 @@ Plan references, knowledge articles, skills and handoff prompt overrides refuse
|
|
|
4
4
|
|
|
5
5
|
WebSocket messages for cluster mode (parent cluster tab + member workflows + the peer-tool mailbox substrate). Split out of [`PROTOCOL.md`](PROTOCOL.md) (J2, doc-size). See [Gotchas: Cluster mode](GOTCHAS.md) for cluster invariants. Conventions are defined in [`PROTOCOL.md`](PROTOCOL.md#conventions). Source of truth: [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts) (one of the per-domain files under `shared/src/protocol/`; the legacy flat `protocol.ts` is now a barrel shim).
|
|
6
6
|
|
|
7
|
-
**Member-provider fence (current).** Cluster membership is no longer Native-Claude-only. The supported set is `ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor'` (`isClusterMemberProvider`). Claude wires peer tools in-process on Native and via a per-spawn `--mcp-config` arco-cluster MCP child on CLI; Codex wires them through their app-server MCP override; Cursor wires them through an in-process loopback StreamableHTTP MCP server (`clusterMcpLoopback.ts`) whose URL rides `session/new`/`session/load`'s `mcpServers` - Cursor ACP honors MCP over http/sse only, not stdio (fresh-only membership); the two local providers (ollama / llamacpp) use Arco's in-process tool runtime and are serialized per provider to avoid local-model fights. How many members may use each local runtime is the `localClusterCapacity` setting (`{ ollama?, llamacpp? }`, integers 1-16, default 1; set in Connections). `cluster_create`, `cluster_create_from_scratch`, `cluster_create_with_fresh_workers`, `cluster_add_fresh_workers`, `cluster_member_add`, `cluster_member_replace` and `POST /api/clusters` refuse a change that adds a local member beyond it with `rejected: local_capacity: <plain reason>`; Ollama and llama.cpp members together are limited by the larger setting. `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` lifts the check. The server validation helper is still named `assertAllMembersClaudeOrCodex` for legacy reasons but actually checks `isClusterMemberProvider`. Cursor is a remote API provider and is not counted against local capacity.
|
|
7
|
+
**Member-provider fence (current).** Cluster membership is no longer Native-Claude-only. The supported set is `ClusterMemberProvider = 'claude' | 'codex' | 'ollama' | 'llamacpp' | 'cursor' | 'antigravity-cli'` (`isClusterMemberProvider`). Claude wires peer tools in-process on Native and via a per-spawn `--mcp-config` arco-cluster MCP child on CLI; Codex wires them through their app-server MCP override; Cursor wires them through an in-process loopback StreamableHTTP MCP server (`clusterMcpLoopback.ts`) whose URL rides `session/new`/`session/load`'s `mcpServers` - Cursor ACP honors MCP over http/sse only, not stdio (fresh-only membership); the two local providers (ollama / llamacpp) use Arco's in-process tool runtime and are serialized per provider to avoid local-model fights. How many members may use each local runtime is the `localClusterCapacity` setting (`{ ollama?, llamacpp? }`, integers 1-16, default 1; set in Connections). `cluster_create`, `cluster_create_from_scratch`, `cluster_create_with_fresh_workers`, `cluster_add_fresh_workers`, `cluster_member_add`, `cluster_member_replace` and `POST /api/clusters` refuse a change that adds a local member beyond it with `rejected: local_capacity: <plain reason>`; Ollama and llama.cpp members together are limited by the larger setting. `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` lifts the check. The server validation helper is still named `assertAllMembersClaudeOrCodex` for legacy reasons but actually checks `isClusterMemberProvider`. Cursor is a remote API provider and is not counted against local capacity. Antigravity CLI members require an operator NUDGE or typed message to start a turn; see [Gemini members](#gemini-members).
|
|
8
8
|
|
|
9
9
|
**Joining during a turn.** Creation and supported existing-tab joins remain available while a tab works. CLUSTER ACTIONS identifies affected working tabs. The server records the cluster wiring captured for each provider invocation; a join after capture emits one persisted conversation notice, repeated once per operator steer or follow-up into that invocation. Every observing browser receives it. Native, Codex app-server and local tool-loop steers also carry a pending-tools note forbidding internal-state or direct-route workarounds. Busy reminders do not demand cluster mail or director delegation before that invocation has the tools. Claude CLI and Codex exec cannot consume a same-turn steer: their queued input starts a new configured turn. Existing Cursor tabs remain refused, including CREATE WITH FRESH anchors; fresh Cursor members remain supported. LM Studio is not an accepted cluster provider. No notice promises unsupported tool capabilities, and peer-route authentication is unchanged.
|
|
10
10
|
|
|
11
|
-
**Per-member access mode.** `ClusterMember.accessMode?: 'standard' | 'blind' | 'isolated'` (absent ≡ `standard`; persisted sparse in cluster meta `memberAccessModes`, not in `WorkflowConfig`). `blind` keeps the project cwd but withholds every cluster surface except `peer_send` / `peer_read` (other peer tools return `[error] access_denied`); `isolated` additionally runs the member in a private scratch cwd and is Claude
|
|
11
|
+
**Per-member access mode.** `ClusterMember.accessMode?: 'standard' | 'blind' | 'isolated' | 'researcher'` (absent ≡ `standard`; persisted sparse in cluster meta `memberAccessModes`, not in `WorkflowConfig`). `blind` keeps the project cwd but withholds every cluster surface except `peer_send` / `peer_read` (other peer tools return `[error] access_denied`); `isolated` additionally runs the member in a private scratch cwd. Claude Native uses fenced tools; Claude CLI, Codex and Cursor require a passing Linux sandbox check. `researcher` is ISOLATED for a research project: Claude Native, Claude CLI, Codex, Cursor, Gemini, Ollama or llama.cpp, mail only with the Research Director, and only through `cluster_create_from_scratch` with `research`, or `research_researcher_add` in a running project ([Research projects](RESEARCH.md)). `research_researcher_add { clusterId, researcher, catchUp }` adds one researcher row; `research_researcher_remove { clusterId, letter, moveUnsent? }` removes one. Both answer refusals as `error` messages prefixed with the message type. Cursor applies this restriction only to cluster coordination tools; separately attached file, workflow-plan and registry tools retain their own access checks. Accepted on `cluster_create_from_scratch` members, `cluster_add_fresh_workers`, and `cluster_member_replace`. Isolated and researcher members have a persisted web switch, on by default. `cluster_member_web_set` changes it for the next turn. Off removes the Native and local web tools and denies public web in the CLI sandbox proxy; provider hosts remain reachable. Changing Codex web access restarts its app-server before the next turn and can stop its background commands.
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
@@ -124,7 +124,7 @@ WS analogue of `DELETE /api/clusters/:id`. Server tears down the cluster and bro
|
|
|
124
124
|
|
|
125
125
|
### `cluster_broadcast` ->
|
|
126
126
|
|
|
127
|
-
The operator sent to several members from the composer's TO chooser. Server resolves members; idle members get the message via `handleUserMessage` (immediate fresh turn), busy members get it enqueued as `'follow-up'`. Each fan-out is a normal user message - `peer_message_received` drains still fire BEFORE `user_message_echo` per the ordering invariant. Reply: `cluster_broadcast_dispatched`.
|
|
127
|
+
The operator sent to several members from the composer's TO chooser. Server resolves members; eligible idle members get the message via `handleUserMessage` (immediate fresh turn), and busy members get it enqueued as `'follow-up'`. Gemini members are skipped and reported for operator review. Each fan-out is a normal user message - `peer_message_received` drains still fire BEFORE `user_message_echo` per the ordering invariant. Reply: `cluster_broadcast_dispatched`.
|
|
128
128
|
|
|
129
129
|
```ts
|
|
130
130
|
{
|
|
@@ -146,7 +146,7 @@ The operator sent to several members from the composer's TO chooser. Server reso
|
|
|
146
146
|
|
|
147
147
|
### `cluster_state` <-
|
|
148
148
|
|
|
149
|
-
Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event whose type is in `CLUSTER_STATE_TRIGGERS` (`primary_turn_started / primary_turn_ended / peer_message_sent / peer_message_received`) for any member. Other event types (streaming `primary_text` deltas, worker_*, etc.) do not churn cluster_state.
|
|
149
|
+
Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event whose type is in `CLUSTER_STATE_TRIGGERS` (`primary_turn_started / primary_turn_ended / peer_message_sent / peer_message_received / cluster_auto_turn_fired`) for any member. Other event types (streaming `primary_text` deltas, worker_*, etc.) do not churn cluster_state.
|
|
150
150
|
|
|
151
151
|
```ts
|
|
152
152
|
{
|
|
@@ -162,7 +162,10 @@ Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event
|
|
|
162
162
|
role?: string, // optional free-form role hint (≤120 chars). Absent / empty = no role block injected into the worker's system prompt.
|
|
163
163
|
tier?: 'light' | 'standard' | 'heavy', // work-size hint for the director; does not change model/effort; no dispatcher auto-routing
|
|
164
164
|
focus?: string, // 2026-05-11 - sub-specialty string (≤160 chars); surfaced in peer_list to disambiguate same-role peers
|
|
165
|
-
accessMode?: 'standard' | 'blind' | 'isolated', // absent ≡ standard; see the access-mode note at the top
|
|
165
|
+
accessMode?: 'standard' | 'blind' | 'isolated' | 'researcher', // absent ≡ standard; see the access-mode note at the top
|
|
166
|
+
webAccess?: boolean, // absent ≡ web access on; false applies from the member's next turn
|
|
167
|
+
isolation?: 'checking' | 'sandboxed' | 'tool-fenced' | 'unavailable', // how an isolated member is fenced right now
|
|
168
|
+
isolationReason?: string, // plain reason when isolation is 'unavailable' or 'tool-fenced'
|
|
166
169
|
}>,
|
|
167
170
|
mailboxDepth: Record<string, number>,
|
|
168
171
|
createdAt: string,
|
|
@@ -193,6 +196,10 @@ Server's cluster snapshot. Pushed on subscribe + on every workflow-scoped event
|
|
|
193
196
|
},
|
|
194
197
|
remoteEnabled?: boolean, // R3 - cluster-level ◉ REMOTE opt-in (absent ≡ OFF). See cluster_remote_set.
|
|
195
198
|
remoteGatesEnabled?: boolean, // cluster-level ⛨ GATES arming (absent ≡ OFF). See cluster_gates_set.
|
|
199
|
+
skillPins?: ClusterSkillPin[], // skills pinned for the whole cluster (optionally per role). See cluster_skills_set.
|
|
200
|
+
autoCompaction?: AutoCompactionPolicy, // cluster default auto-compaction policy. See cluster_auto_compaction_set.
|
|
201
|
+
autoPickup?: ClusterAutoPickupState, // AUTO-PICKUP mode, limits, Smart session, counters and last decision. See cluster_auto_pickup_set.
|
|
202
|
+
research?: ClusterResearchSummary, // present only on research projects: project id, folder, brief, blind flag, researchers and rounds
|
|
196
203
|
},
|
|
197
204
|
}
|
|
198
205
|
```
|
|
@@ -245,7 +252,7 @@ The operator picked "ADD TO EXISTING" in the `TabContextMenu`. Server validates:
|
|
|
245
252
|
|
|
246
253
|
### `cluster_create_with_fresh_workers` ->
|
|
247
254
|
|
|
248
|
-
The operator picked "CREATE WITH FRESH" in the `TabContextMenu`. Server: validates the source via `assertAllMembersClaudeOrCodex`; creates `additionalCount` new workflows (clamped to 1-4) each inheriting the source's cwd + primary config; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
|
|
255
|
+
The operator picked "CREATE WITH FRESH" in the `TabContextMenu`. The picker shares provider availability, account-specific models, model defaults and effort rules with ADD FRESH, including the Gemini NUDGE notice. Server: validates the source via `assertAllMembersClaudeOrCodex`; creates `additionalCount` new workflows (clamped to 1-4) each inheriting the source's cwd + primary config; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
|
|
249
256
|
|
|
250
257
|
```ts
|
|
251
258
|
{
|
|
@@ -291,6 +298,7 @@ New clients request `transcript_worker_preview` with `replacement: { clusterId,
|
|
|
291
298
|
effort?: string,
|
|
292
299
|
providerAccountRef?: string,
|
|
293
300
|
accessMode?: 'standard' | 'blind' | 'isolated',
|
|
301
|
+
claudeTransport?: 'native' | 'cli',
|
|
294
302
|
name?: string, // <= 64 chars; empty keeps the old name
|
|
295
303
|
role?: string, // <= 120 chars; empty clears
|
|
296
304
|
tier?: 'light' | 'standard' | 'heavy' | null,
|
|
@@ -323,14 +331,20 @@ mailbox, observer entry, and in-memory lifecycle are not inherited.
|
|
|
323
331
|
|
|
324
332
|
### `cluster_create_from_scratch` ->
|
|
325
333
|
|
|
326
|
-
2026-05-11 - operator picked CLUSTER mode in the `+NEW` WorkflowCreator. No source workflow - every member is minted fresh from the per-row config. Mirrors `cluster_create_with_fresh_workers` server-side but every member's provider / model / effort / role / tier is operator-picked up front. Provider is the
|
|
334
|
+
2026-05-11 - operator picked CLUSTER mode in the `+NEW` WorkflowCreator. No source workflow - every member is minted fresh from the per-row config. Mirrors `cluster_create_with_fresh_workers` server-side but every member's provider / model / effort / role / tier is operator-picked up front. Provider is the `ClusterMemberProvider` set (`claude / codex / ollama / llamacpp / cursor / antigravity-cli`). Create, add and replace paths that introduce a local member all run `localCapacityRefusal` and reject with `local_capacity: <reason>` when over `localClusterCapacity` (lift with `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1`). Per-member validation also covers `unknown_provider`, the shared model codes (`missing_model` / `provider_model_mismatch` / `unknown_model`), `unknown_account` and `invalid_tier`, each prefixed with `member[<i>]`. Server validates ≥1 member; client UI enforces ≥2. `name` is optional; empty = derived default. Per-member optional fields (`displayName` / `role` / `tier` / `focus`) are stamped into cluster meta in one shot.
|
|
327
335
|
|
|
328
336
|
```ts
|
|
329
337
|
{
|
|
330
338
|
type: 'cluster_create_from_scratch',
|
|
339
|
+
requestId?: string, // 1-128 characters; answered by cluster_creation_finished
|
|
331
340
|
cwd: string,
|
|
332
341
|
name?: string,
|
|
333
342
|
initialPlanGoal?: string, // optional reviewed draft, at most 4,000 characters; requires a director
|
|
343
|
+
initialPlanId?: string, // an existing project plan chosen during creation
|
|
344
|
+
messageGuard?: { mode: 'warn' | 'hard' | 'none', threshold: number },
|
|
345
|
+
taskBoardMode?: 'none' | 'project' | 'cluster', // ClusterCreationSettings, as on cluster_create
|
|
346
|
+
progressTracking?: 'plan' | 'board' | 'both',
|
|
347
|
+
research?: ResearchCreateSpec, // creates a research project instead: the folder is made under the research folder, the director runs there and researcher members are isolated (docs/RESEARCH.md)
|
|
334
348
|
efficiencyLevel?: 'thorough' | 'balanced' | 'lean', // 2026-06-15 - cluster-wide, operator-picked at create. Omitted at new creation selects 'balanced'; omitted stored metadata still reads as 'thorough'.
|
|
335
349
|
efficiencyAddendum?: string, // optional free-text appended to the canned doctrine; clamped to CLUSTER_EFFICIENCY_ADDENDUM_MAX
|
|
336
350
|
members: Array<{
|
|
@@ -346,7 +360,12 @@ mailbox, observer entry, and in-memory lifecycle are not inherited.
|
|
|
346
360
|
fastMode?: boolean,
|
|
347
361
|
efficiencyToolFilter?: 'off' | 'conservative' | 'aggressive',
|
|
348
362
|
outputStyle?: 'normal' | 'plain' | 'terse',
|
|
349
|
-
accessMode?: 'standard' | 'blind' | 'isolated', // isolated ⇒ provider must be claude
|
|
363
|
+
accessMode?: 'standard' | 'blind' | 'isolated' | 'researcher', // isolated ⇒ provider must be claude, codex or cursor
|
|
364
|
+
webAccess?: boolean,
|
|
365
|
+
claudeTransport?: 'native' | 'cli',
|
|
366
|
+
webSearchMaxUses?: number, // research projects: Claude Native web lookups per turn
|
|
367
|
+
contextSize?: number, // research projects: an Ollama researcher's context size
|
|
368
|
+
researchClaudeTransport?: 'native' | 'cli', // research projects only; CLI needs a passing sandbox check
|
|
350
369
|
}>,
|
|
351
370
|
}
|
|
352
371
|
```
|
|
@@ -375,7 +394,9 @@ operator clicked `+ ADD FRESH` inside `ClusterRightPanel`'s Members sub-tab. Ser
|
|
|
375
394
|
model?: string,
|
|
376
395
|
effort?: 'low' | 'medium' | 'high' | string,
|
|
377
396
|
providerAccountRef?: string,
|
|
378
|
-
accessMode?: 'standard' | 'blind' | 'isolated', // isolated ⇒ provider must be claude
|
|
397
|
+
accessMode?: 'standard' | 'blind' | 'isolated', // isolated ⇒ provider must be claude, codex or cursor
|
|
398
|
+
webAccess?: boolean,
|
|
399
|
+
claudeTransport?: 'native' | 'cli',
|
|
379
400
|
name?: string, // <= 64 chars (<= 60 when count > 1); generated names must also fit
|
|
380
401
|
role?: string, // preset or custom text, <= 120 chars
|
|
381
402
|
tier?: 'light' | 'standard' | 'heavy' | null,
|
|
@@ -417,7 +438,7 @@ operator hit `CLEAR PLAN` in `ClusterPlanTab`. `clusterPlanBridge.clearClusterPl
|
|
|
417
438
|
|
|
418
439
|
### `cluster_member_role_set` ->
|
|
419
440
|
|
|
420
|
-
The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus a `Custom...` branch that falls back to the inline editor) or hit `CLEAR`. ADVISOR gives the Director a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER
|
|
441
|
+
The operator picked a role for a member via the `SET` popover in `ClusterRightPanel`'s Members sub-tab (eight canonical presets from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) - DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER - plus a `Custom...` branch that falls back to the inline editor) or hit `CLEAR`. ADVISOR gives the Director a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER designs screens, states, wording and accessibility, prototypes and reviews UI; builders implement it. Both report through `peer_send`. When an Advisor is present, the Director consults it before a design decision or when the evidence is thin and keeps the decision. These are instruction roles, not file-access enforcement. A preset is just a known string the UI drops into the editor; the wire shape is free-form text. Server clamps to 120 chars (`MEMBER_ROLE_MAX`) - values longer are silently truncated. Empty / whitespace clears the field entirely (the member's `role` becomes absent from `cluster_state.members`). Assigning a second director (role text beginning with Director or Coordinator) is refused; see [Director roles and work size](#director-roles-and-work-size). Persisted into `ClusterMeta.memberRoles` (sparse map). Pushes a fresh `cluster_state`; no dedicated event - role changes are state-shaped (the `role` field on each `ClusterMember` is the wire surface). Codex app-server members carry role + cluster identity + (for a Director role) the full Director operating contract in thread `developerInstructions`, so a role change recycles the app-server child on the next turn while resuming the same Codex thread.
|
|
421
442
|
|
|
422
443
|
```ts
|
|
423
444
|
{ type: 'cluster_member_role_set', clusterId: string, workflowId: string, role: string }
|
|
@@ -459,7 +480,7 @@ Operator edited a member's work-size hint from the Members sub-tab. `tier` is on
|
|
|
459
480
|
|
|
460
481
|
### `cluster_efficiency_set` ->
|
|
461
482
|
|
|
462
|
-
Efficiency guides coordination and testing. Balanced, the default for new clusters, asks for one lowest-level test per real fault, tests for the changed area per change, and the full check once before a release. Browser tests cover journeys that need a real screen, one per journey rather than layout, theme or size permutations. New suites, gates, test tooling and CI checks need operator approval, using the operator-question tool where available. The full check should take about ten minutes; longer runs prompt a proposal to cut work before adding tests. Flaky tests are fixed or deleted, not retried. Lean runs only changed-area tests and adds tests only for faults found; the full check runs only when requested. Thorough tests new behaviour and faults, runs neighbouring tests and the full check before handover. Every level sorts product faults from test faults and states what a user would lose before a failure blocks work; product faults and faulty tests are fixed, while cosmetic or momentary faults are noted. Project rules and plans take precedence
|
|
483
|
+
Efficiency guides coordination and testing. Balanced, the default for new clusters, asks for one lowest-level test per real fault, tests for the changed area per change, and the full check once before a release. Browser tests cover journeys that need a real screen, one per journey rather than layout, theme or size permutations. New suites, gates, test tooling and CI checks need operator approval, using the operator-question tool where available. The full check should take about ten minutes; longer runs prompt a proposal to cut work before adding tests. Flaky tests are fixed or deleted, not retried. Lean runs only changed-area tests and adds tests only for faults found; the full check runs only when requested. Thorough tests new behaviour and faults, runs neighbouring tests and the full check before handover. Every level sorts product faults from test faults and states what a user would lose before a failure blocks work; product faults and faulty tests are fixed, while cosmetic or momentary faults are noted. Project rules and plans take precedence over these instructions for testing, commits, documentation and delivery alike. Safety checks, message guards, requested review and landing review remain unchanged. Supported members receive the testing directive each turn; Antigravity CLI receives the operator-visible instructions described under Gemini members. Directors assign complete outcomes, read the accepted diff and check that project-required checks ran; they do not invent gates or make one-off incidents into permanent rules or tests without the operator. Directors classify each failed check as a product fault or a fault in a test, housekeeping rule or CI service. Product faults are fixed. Faulty tests or rules are fixed, skipped on that system with a stated reason, or deleted so checks go green and can be trusted; red checks are neither ignored nor released over. A job dropped by the CI service is rerun alone. CI stays small enough to pass in one run and contains checks whose failures tell the operator something about the product. Housekeeping findings warn instead of failing a run. Peers report what was done, what ran and what remains uncovered. Before reporting work as done, a member checks it against the project's own rules (agent instructions and contributing rules: how commits land, changelog, documentation) and, where an assignment conflicts with them, follows the project's rules and says so. A Director never assigns what the project's rules forbid; it states the delivery they require and asks the operator before any exception. The Tester runs project checks and tests peer work where a real fault is likely, modifying test files only. Long checks go to peers; Directors never run builds, tests or CI waits themselves or wait more than 60 seconds inside a turn. Nudges, mail notices and auto-pickup follow the testing directive without adding checks.
|
|
463
484
|
|
|
464
485
|
Non-Director members and standalone agents wait inside their turns for build, test or CI results needed by their reports. Each command or polling step lasts at most 120 seconds and may be repeated as long as the job needs. Between waits they check and act on new messages, using `peer_read` in a cluster. They report after the result arrives. After a progress report or an answer while assigned work remains, non-Director members and standalone agents continue that work in the same turn; they end the turn only when it is done or with one stated blocker. If blocked or if a job clearly cannot finish within a reasonable time, they name what they await and say that a nudge is needed before ending the turn. This instruction change adds no completion wake or waiting-status display. The provider prompt supplies the wait rule once. Cluster coordination and the Director contract do not repeat it. Local-provider baselines stay role-neutral until turn preparation or handoff prewarm resolves the member role.
|
|
465
486
|
|
|
@@ -506,11 +527,22 @@ Removing pins remains possible after a skill grows. On later turns missing,
|
|
|
506
527
|
off or overgrown skills use the existing skipped-skill notice and bounded
|
|
507
528
|
resolver. The popup keeps missing/off references visible instead of silently
|
|
508
529
|
retargeting a moved or deleted skill. The count is configured entries, not a
|
|
509
|
-
claim that every pin applies to every member.
|
|
530
|
+
claim that every pin applies to every member. Antigravity CLI (Gemini) members
|
|
531
|
+
do not receive picked or pinned Arco skill bodies; the first NUDGE may list
|
|
532
|
+
available skills as conversation text, and the CLI loads its own installed
|
|
533
|
+
skills. Running turns are unchanged.
|
|
534
|
+
|
|
535
|
+
### `cluster_auto_compaction_set` ->
|
|
536
|
+
|
|
537
|
+
Sets the cluster's default auto-compaction policy. `{ type: 'cluster_auto_compaction_set', clusterId: string, policy: AutoCompactionPolicy | null }`; `null` clears the default so each member falls back to its own setting or the provider behavior. An invalid policy or an unknown cluster answers `error`. A change broadcasts `cluster_state` and adds one `[AUTO-COMPACT]` notice to every member's conversation; per-worker overrides stay in effect. A request that changes nothing sends nothing. The policy applies from each member's next turn. See [Auto-compaction policy](SETTINGS.md#auto-compaction-policy).
|
|
538
|
+
|
|
539
|
+
### `cluster_creation_finished` <-
|
|
540
|
+
|
|
541
|
+
Sent to the requesting socket when a `cluster_create_from_scratch` that carried a `requestId` (1 to 128 characters) has ended, whether the cluster was created or the request was refused. The client stops its creating state. A refused research request also removes the empty dated folder it prepared.
|
|
510
542
|
|
|
511
543
|
### `cluster_progress_set` ->
|
|
512
544
|
|
|
513
|
-
|
|
545
|
+
The ClusterRightPanel progress chip and the `+ NEW` cluster creator select which surfaces the cluster keeps current. `mode` is one of `CLUSTER_PROGRESS_MODES` (`plan` / `board` / `both`; server rejects unknown strings with `cluster_progress_set rejected: unknown_mode`, unknown cluster with `unknown_cluster`). Each mode resolves server-side (`clusterProgress.ts` `buildProgressDoctrine(mode, hasPlan, hasBoard)`) to a deterministic system-prompt doctrine block for supported members on their next turn - a plan-upkeep clause (keep the shared plan's `[ ]`/`[x]` current via `cluster_plan_tick`), a board-upkeep clause (move tasks through their statuses as work progresses), plus a reconcile line when BOTH surfaces are live. Each clause is gated on the surface actually existing (`hasPlan` / `hasBoard`), so a mode with no matching surface injects nothing. The progress default `both` is non-empty: pre-feature clusters with a plan start getting the upkeep nudge. Takes effect on each member's **next** turn (in-flight untouched). Server persists to cluster `meta.json` and rebroadcasts `cluster_state`; `cluster_state.progressTracking` is echoed only when non-default (absent ≡ `both`). Passes the four-question test: operator-set, deterministic doctrine, logged via `cluster_state`, reversible by flipping the chip.
|
|
514
546
|
|
|
515
547
|
With PLAN or BOTH and an attached plan, approved new work that no existing item covers gets one plan item in the same turn, before the director assigns it. Related work is grouped as one feature or batch of fixes, never one item per bug. The director's reply names the item added or changed with its id and a one-line description. Board-only mode and clusters without an attached plan receive no such instruction. Checkbox ticking rules are unchanged.
|
|
516
548
|
|
|
@@ -720,6 +752,8 @@ Sets the board mode explicitly. `project` uses the cwd's normal task ledger; `cl
|
|
|
720
752
|
{ type: 'cluster_task_board_mode_set', clusterId: string, mode: 'none' | 'project' | 'cluster' }
|
|
721
753
|
```
|
|
722
754
|
|
|
755
|
+
A replacement member can claim or complete work assigned to a former member of its slot. The board resolves the stored assignee through the same former-member mapping as peer mail, then records the current member as assignee when the work is claimed or completed. Assignment by a current or former member ID resolves to the current member. Comments and heartbeats do not require task ownership.
|
|
756
|
+
|
|
723
757
|
Board *content* mutations don't ride these messages: they flow over the cwd-scoped `task_ledger_*` WS messages (stamped with the cluster's `boardKey` when in `cluster` mode) (documented in [`PROTOCOL.md`](PROTOCOL.md)) and the `cluster_task_*` peer tools ([Peer tool inventory](#peer-tool-inventory-not-ws-messages) below). The plan-to-task (`PlanBodyRenderer.onPromoteTask`) and peer-to-task (`MailboxModal.onMakeTask`, transcript `PeerMessageBlock`) bridges are client-only and dispatch `task_ledger_create` with the board's key; they add no new WS message.
|
|
724
758
|
|
|
725
759
|
### `cluster_swarm_create` ->
|
|
@@ -874,7 +908,7 @@ The Smart session clock freezes at PAUSE. While paused, remaining time is `expir
|
|
|
874
908
|
|
|
875
909
|
**Also remind busy members** is available under Rule-based and Smart: Automatic. It is off by default and saved per cluster as `remindBusy`; state echoes include `autoPickup.remindBusy`. When enabled, actionable unread mail sends the existing busy NUDGE through the member's steering path once per unread batch, with at least five minutes between reminders for that member. Acknowledgement-only batches stay pending without a reminder. New mail held by the gap is checked again by the resume sweep. Off, Observe-only and expired Smart sessions send none. A reminder whose busy turn ends or changes during preparation is dropped. Idle pickup keeps its usual rules.
|
|
876
910
|
|
|
877
|
-
`SmartPickupLimits`
|
|
911
|
+
`SmartPickupLimits` defaults to Standard: concurrency 2, cluster calls per hour 48, member calls per hour 12, member wakes per hour 10, session wakes 40, armed minutes 60, timeout seconds 45, input bytes 16384, output tokens 96 and chain depth 24. Short and Long presets and bounded limits are defined in `shared/src/protocol/autoPickup.ts`. Smart: Automatic offers Short, Standard, Long and Custom before arming; the cluster keeps its Custom limits when a preset is selected. Existing saved limits remain Custom unless they match a preset. A missing legacy chain depth retains the former limit of 8. A legacy Smart record with an evaluator or session but no saved limits retains Short until explicitly rearmed. New Smart armings persist complete limits. Invalid Custom payloads cannot replace a saved Custom. The server chain-depth override takes precedence.
|
|
878
912
|
|
|
879
913
|
In the cluster meta (`ClusterState` in `server/src/clusterStore.ts`) the mode is stored as `autoPickupMode` (with `autoTurnOnMailboxEnabled` kept equal to "mode is rule" for older readers), adjusted Rule-based limits as `rulePickupLimits` and the Smart choice, limits and armed session as `smartPickup`. `cluster_state` echoes `autoPickup: { mode, limits, evaluator?, lastEvaluator?, session?, counters?, lastDecision? }`. Counters come from `<cluster dir>/auto-pickup-ledger.json` (`server/src/smartPickupLedger.ts`): evaluator and wake reservations are taken before the work and always count; open reservations become "uncertain" on restart and still count. The supervisor in `server/src/smartPickup.ts` disarms a Smart cluster to Off when its session expires, is missing, or its ledger cannot be read (checked at boot and every `ARCO_SMART_PICKUP_SWEEP_MS`, default 15000), and records the reason as the last decision. Arming, turning off and expiry are logged decisions.
|
|
880
914
|
|
|
@@ -902,7 +936,7 @@ STOP on a member of an armed Smart cluster records a hold with its pending ids (
|
|
|
902
936
|
|
|
903
937
|
Capped evaluator requests use 8192 extra total-output tokens for reasoning, matching the existing short Claude allowance. The visible answer still has the configured character bound (`maxOutputTokens * 8`, at least 64 characters); reasoning does not enlarge it. This applies to Claude, Ollama and the shared OpenAI-compatible local adapter. Cursor and Codex have no total-token cap in this adapter and keep their time and visible-character limits. Free-text utility requests retain their existing budgets. A remaining refusal still enters guarded fallback.
|
|
904
938
|
|
|
905
|
-
The AUTO-PICKUP chip hover and accessible description repeat the last failure/fallback or expiry explanation. The dialog shows minutes remaining and the end time. Session expiry turns Smart Off and leaves mail waiting for rearming, Rule-based or NUDGE; change **Armed session length** in **AUTO-PICKUP > LIMITS** (5 to 240 minutes, default
|
|
939
|
+
The AUTO-PICKUP chip hover and accessible description repeat the last failure/fallback or expiry explanation. The dialog shows minutes remaining and the end time. Session expiry turns Smart Off and leaves mail waiting for rearming, Rule-based or NUDGE; change **Armed session length** in **AUTO-PICKUP > LIMITS** (5 to 240 minutes, default 60) before arming. Expiry never grants a final wake or extends the session. Older stored session-length limits above 240 minutes read as 240, rather than reverting to the 60-minute default.
|
|
906
940
|
|
|
907
941
|
Evaluator adapters (`server/src/smartPickupAdapters.ts`), reported by `GET /api/smart-pickup/evaluators` as `{ evaluators: [{ provider, available, reason? }] }`:
|
|
908
942
|
|
|
@@ -929,7 +963,9 @@ Server-side detector emitted on every fire-path (`fired: true`) AND on every gua
|
|
|
929
963
|
workflowId: string, // recipient (the workflow whose turn fires / would have fired)
|
|
930
964
|
sender: string, // sender workflowId of the triggering peer_message_sent
|
|
931
965
|
chainDepth: number, // depth this auto-turn lands at (sender's + 1 on fire; reported as-is on skip)
|
|
932
|
-
reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled'
|
|
966
|
+
reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled'
|
|
967
|
+
| 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail',
|
|
968
|
+
notice?: string, // operator-facing pause notice
|
|
933
969
|
fired: boolean, // true -> a turn was dispatched; false -> guard refused
|
|
934
970
|
}
|
|
935
971
|
```
|
|
@@ -994,7 +1030,7 @@ Sent rows additionally carry `targetWorkflowId: msg.to` (full recipient wfid). T
|
|
|
994
1030
|
|
|
995
1031
|
### `attach_codebase_memory` ->
|
|
996
1032
|
|
|
997
|
-
Operator toggled "Attach codebase memory" in the CONFIG tab. Server flips `WorkflowConfig.codebaseMemory.attached` + persists to meta.json + broadcasts `codebase_memory_state`.
|
|
1033
|
+
Operator toggled "Attach codebase memory" in the CONFIG tab. Server flips `WorkflowConfig.codebaseMemory.attached` + persists to meta.json + broadcasts `codebase_memory_state`. Claude CLI and Codex Agent turns receive the attached server through `mcpConfigWriter`; isolated members and Chat tabs do not. `indexPath` defaults to the workflow's `workingDirectory` when absent.
|
|
998
1034
|
|
|
999
1035
|
```ts
|
|
1000
1036
|
{ type: 'attach_codebase_memory', workflowId: string, indexPath?: string }
|
|
@@ -1025,7 +1061,7 @@ Sent rows additionally carry `targetWorkflowId: msg.to` (full recipient wfid). T
|
|
|
1025
1061
|
|
|
1026
1062
|
### Peer tool inventory (not WS messages)
|
|
1027
1063
|
|
|
1028
|
-
Model-facing tools registered
|
|
1064
|
+
Model-facing tools registered for standard cluster members (Native: in-process `server/src/providers/claude-native/peerTools.ts`; CLI Claude / Codex / Cursor: the arco-cluster MCP server, which calls the REST mirror `/api/clusters/:id/peer/<op>` in `server/src/http/clusterRoutes.ts` - `GET list`, `POST` for the rest, body carries the caller's `workflowId`). Tool results are strings; errors are `[error] <code>: <message>`. `blind` / `isolated` members get only `peer_send` / `peer_read`.
|
|
1029
1065
|
|
|
1030
1066
|
| Tool | REST op | Notes |
|
|
1031
1067
|
|---|---|---|
|
|
@@ -1035,15 +1071,19 @@ Model-facing tools registered on every cluster member (Native: in-process `serve
|
|
|
1035
1071
|
|
|
1036
1072
|
### `cluster_plan_read` (peer tool, not a WS message)
|
|
1037
1073
|
|
|
1038
|
-
Read-only peer tool returning the full canonical plan (`{ title, body, updatedAt, byteLength }`, or `[error] no_plan:...`). Registered
|
|
1074
|
+
Read-only peer tool returning the full canonical plan (`{ planId, revision, title, body, updatedAt, byteLength }`, or `[error] no_plan:...`). Registered for standard cluster members alongside the other plan tools. Added 2026-07-09: the per-turn injected plan copy is no longer guaranteed to be the whole plan on string-form transports - an over-budget plan is delivered as a deterministic OUTLINE (headings, checkbox lines, and labelled standing-directive sections; other prose omitted; header marks it as an outline) so the role hint / mailbox notice / code-mode addendum are never evicted (see `server/src/clusterStringFold.ts` + `clusterPlanOutline.ts`). CLI transports retain a 16 KB fold; Codex app-server uses a bounded 48 KB fold. This tool is the pull channel to the full body. No broadcast, no mailbox side effects. REST mirror: `POST /api/clusters/:id/peer/plan-read` with body `{ workflowId }`.
|
|
1039
1075
|
|
|
1040
1076
|
### `cluster_plan_write` (peer tool, not a WS message)
|
|
1041
1077
|
|
|
1042
|
-
Worker-emitted peer tool (added 2026-05-11) that authors or rewrites the shared cluster plan body (markdown). By convention only the director calls it; other members propose plan changes via `peer_send`. Model-driven writes are **additive**: when a plan already exists the server rejects writes that remove existing checkbox tasks or change their `[ ]`/`[x]` status (`clusterPeerOps.ts`), routing status changes to `cluster_plan_tick` and destructive edits to the operator's PLAN tab. Body cannot be empty and is capped at 32768 chars. On success it broadcasts `cluster_plan_changed` cluster-wide. Registered
|
|
1078
|
+
Worker-emitted peer tool (added 2026-05-11) that authors or rewrites the shared cluster plan body (markdown). By convention only the director calls it; other members propose plan changes via `peer_send`. Model-driven writes are **additive**: when a plan already exists the server rejects writes that remove existing checkbox tasks or change their `[ ]`/`[x]` status (`clusterPeerOps.ts`), routing status changes to `cluster_plan_tick` and destructive edits to the operator's PLAN tab. Body cannot be empty and is capped at 32768 chars. On success it broadcasts `cluster_plan_changed` cluster-wide. Registered for standard cluster members (Native in-process + the arco-cluster MCP registry). If the injected plan copy is an outline (prose omitted on string-form transports), call `cluster_plan_read` first so a rewrite doesn't silently drop the prose.
|
|
1079
|
+
|
|
1080
|
+
New and lengthened model-authored checkbox summaries are limited to 240 characters, excluding their leading item ID and reference links. Existing long items remain valid. A uniquely numbered item can be shortened without changing its status, and reference links can be added. Assignment scope and evidence belong on board tasks; durable specifications belong in linked reference docs. The operator's PLAN editor remains available.
|
|
1081
|
+
|
|
1082
|
+
A Director can include `completePlan: { planId, itemId, revision }` with a met `cluster_task_update` sign-off when the entire linked plan item meets its completion rules. The attached plan and a numbered plan-link label, or an existing numbered task title, must identify one checkbox. Ordinary sign-offs leave the plan unchanged. The revision comes from the plan read used to review the item; a changed plan is rejected before the board changes. If an interruption leaves a partial sign-off saying completion is pending, use `cluster_task_show` to read the saved plan ID, item ID and revision, then retry with those values. If the plan has changed, replace the pending partial sign-off with a fresh partial verdict and review the item again. The plan step sets the checkbox checked, so retry does not undo it. Board auto-done still controls task closure.
|
|
1043
1083
|
|
|
1044
1084
|
### `cluster_plan_tick` (peer tool, not a WS message)
|
|
1045
1085
|
|
|
1046
|
-
Worker-emitted peer tool that toggles a single `- [ ]` / `- [x]` checkbox in the shared cluster plan. Registered
|
|
1086
|
+
Worker-emitted peer tool that toggles a single `- [ ]` / `- [x]` checkbox in the shared cluster plan. Registered for standard cluster members alongside `peer_list / peer_send / peer_read` (Native: in-process; CLI Claude / Codex MCP: via the arco-cluster MCP child + `POST /api/clusters/:id/peer/plan-tick`). Tool schema:
|
|
1047
1087
|
|
|
1048
1088
|
```ts
|
|
1049
1089
|
{
|
|
@@ -1135,10 +1175,40 @@ task-board contents are not part of a cluster snapshot.
|
|
|
1135
1175
|
|
|
1136
1176
|
## Director roles and work size
|
|
1137
1177
|
|
|
1138
|
-
A Director is instructed to answer the operator first. For an unresolved issue, the answer recommends the next step, names its owner, and states any operator decision or action and when it is needed. The
|
|
1178
|
+
A Director is instructed to answer the operator first and then continue already approved work in the same turn; a question pauses only new work, which waits for operator approval. For an unresolved issue, the answer recommends the next step, names its owner, and states any operator decision or action and when it is needed. The instructions ask it, before it ends any turn, including one that only answers a question, to check the approved work that is open now: approved work that can run and has no one working on it goes to its owner with `peer_send` in that turn; work an owner is doing, or that waits on a peer review or another dependency, needs no new handoff; for each task waiting on the operator, the reply names the exact action, where to do it, and that it is the operator's. Before it sends the operator to a local link or server, it checks that it answers, and when it does not, it hands the restoration to the owner first. It is told not to say that no action is needed while a task waits on the operator and not to promise later follow-up instead of sending the handoff. Backlog and new work wait for approval. This is guidance in the Director's instructions; Arco does not check how a turn ends.
|
|
1179
|
+
|
|
1180
|
+
Each Director turn also carries an `Open work on the board` block built from that cluster's own task board and mailboxes when a board is attached. It lists task ids by state (waiting on the operator, blocked on others, in progress, in review) with the owner's workflow id, a count of tasks not started, the members with unread peer mail (workflow id, count, idle or working), and one line saying whether AUTO-PICKUP is on, in which case it may wake idle members but its limits or evaluator can hold a wake back. When members sent each other `peer_send` mail since the Director's previous turn, one more line counts it by sender and recipient (workflow ids, the Director shown as `you`), largest pairs first, at most six pairs and then the number of further pairs; the Director's own sends are not counted. The counts are process-local like the message guard counters: reading them at the Director's turn starts a new count, and a server restart drops them. The line is feedback only and never limits, warns or blocks. The Director instructions also say to ask for one report per assignment or agreed milestone plus blockers, step notes as board comments, and a lock, file or the board rather than mail between members for routine coordination. Before promising that a member will move or asking the operator for a nudge, the Director is told to use the actual delivery and wake status (the `peer_send` result and the member's unread mail and state); a handoff already queued needs no second copy, and when it cannot wake the member the operator is asked to nudge it. Because it rides with the Director's instructions, it carries only values Arco generates: no titles, display names or blocked reasons, which members can write. The Director reads those with `cluster_task_show`, where they arrive as tool output. A blocked task counts as waiting on the operator by the same rule as the board's BLOCKED badge. The block is capped at 2 KB; when it is longer, entries are dropped from the end, the operator section last, and one line gives the number left out. It is read-only, is omitted when there is no open task, no unread mail and no tally, or when the board cannot be read, and wakes no member; AUTO-PICKUP, pause, STOP and approval of new work are unchanged.
|
|
1181
|
+
|
|
1182
|
+
### Continue the Director
|
|
1183
|
+
|
|
1184
|
+
The operator can approve a board task for handoff from its drawer (HANDOFF APPROVAL > APPROVE FOR HANDOFF). This goes through the operator's `task_ledger_update` with `approved: true` and stores `operatorApproval` on the task: a new id for each approval, the time and a fingerprint of its title and notes. Workers and the Director cannot set it. An edit to the title or notes makes it stale until the operator approves again; WITHDRAW APPROVAL removes it. Board status alone, conversation text and tasks approved before this existed confer nothing.
|
|
1185
|
+
|
|
1186
|
+
`peer_send` takes an optional `task_id`. When it names a task on the sender's cluster board, the send writes a task comment with metadata `{ kind: 'handoff', toWorkflowId, msgId, approvalId }`, where `approvalId` names the approval current at sending. A handoff counts only for that approval, so after an edit and a new approval the task needs a handoff again; an id not on the board is refused with `unknown_task` and nothing is sent. A `task_id` does not exempt a status-only Director message from its confirmation step. The Director's instructions ask it to pass `task_id` when it hands over a board task.
|
|
1187
|
+
|
|
1188
|
+
When a Director turn ends, the server checks the cluster board once, from that state only, and picks at most one approved task (highest priority, then oldest approval) whose approval is current, whose status is TODO or READY, and whose parent tasks all exist and are done (the task dispatcher's dependency rule):
|
|
1189
|
+
|
|
1190
|
+
- No handoff recorded, and no unread mail from the Director waiting with the task's assignee (an assignee whose mailbox cannot be read counts as uncertain and stays quiet): the Director chat shows, above the message box, that the task is approved and still needs an assignment, with CONTINUE DIRECTOR and DISMISS.
|
|
1191
|
+
- A handoff recorded and still unread by an idle member while AUTO-PICKUP is off or paused: the prompt names that member and points to NUDGE, with DISMISS.
|
|
1192
|
+
- Anything else stays quiet: in progress, blocked, review or later; a handoff already read; a busy recipient; AUTO-PICKUP that may wake the member; or an uncertain delivery.
|
|
1193
|
+
|
|
1194
|
+
The offer is live and held in memory by the server; a reconnecting client receives it again, and a server restart drops it until the next Director turn ends. It clears when the Director starts another turn or when a board change, mail being read or a member's turn makes it no longer apply.
|
|
1195
|
+
|
|
1196
|
+
Each offer is bound to the approval it was made for. CONTINUE DIRECTOR (`director_continue_action`) consumes the offer at once for every client, checks the task, that the same approval is still current, the handoff state and that this tab is still the Director again at the moment the turn would start, and then runs one ordinary operator turn on the Director with a fixed `(continue)` message naming the task id. If the check fails or the Director is busy, nothing starts and the prompt shows one line saying why. After CONTINUE DIRECTOR the task is not offered again for the same approval, though the NUDGE pointer can still appear; DISMISS closes both for that approval. An offer whose approval was withdrawn, approved again or made stale by an edit starts nothing and leaves the newer approval untouched. Nothing here retries or starts a turn without the click, and STOP, operator questions and AUTO-PICKUP are unchanged.
|
|
1139
1197
|
|
|
1140
1198
|
A new cluster or preset may have at most one director. Role text beginning with Director or Coordinator identifies a director. Existing clusters and saved presets remain readable without rewriting their roles. Assigning a director to another member is rejected. Legacy clusters that already have two directors remain intact, surface a warning on MEMBERS rows, and still allow REPLACE that preserves both directors' roles. The optional `tier` field is a work-size hint for the director: light for quick edits, standard for normal feature work, and heavy for large or architectural changes. It does not change model or effort and is most useful when several members can take the same work. Template review offers work size only for repeated roles.
|
|
1141
1199
|
|
|
1200
|
+
## Gemini members
|
|
1201
|
+
|
|
1202
|
+
Gemini (the `antigravity-cli` provider) can be a cluster member in any role, including Director, chosen at cluster creation, + ADD FRESH or REPLACE. Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs inside the worker sandbox (see [RESEARCH.md](RESEARCH.md#gemini-researchers)). A Gemini replacement starts with no history.
|
|
1203
|
+
|
|
1204
|
+
A Gemini member takes a turn only from the operator's NUDGE on it or a message the operator types in its composer. Both arrive as a WebSocket `user_message`; the server issues a single-use ticket bound to that member and the exact text, and `handleUserMessage` starts a Gemini member turn only with a valid ticket, checked again and consumed when a queued message is taken. AUTO-PICKUP, Smart pickup, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers, retries and other automatic turns carry no ticket and start nothing. Rule-based AUTO-PICKUP records the skip with reason `operator_send_only`, Smart pickup records it without asking its evaluator, and a broadcast reports the member as `gemini_review`. Prompt templates, `@` references and picked skills are not applied to a Gemini message.
|
|
1205
|
+
|
|
1206
|
+
The first NUDGE of a Gemini member, sent before its first turn, starts with its role and the cluster instructions as visible text, followed by the available skill list and the nudge; the conversation shows that full text. Every nudge asks the member to read the current plan and mail before acting. COMPACT on a Gemini member is the operator's own action: it sends `/compact` to the member's session in its working folder without a ticket, and Arco's automatic compaction stays off for Gemini. The cluster and research screens show a notice above the conversation that names every Gemini member and says that a turn starts only from NUDGE or the member's own composer, and that incoming mail waits until then. The cluster bar's Auto-compaction control names the Gemini members it skips and tells the operator to send `/compact` in the member's session; the server returns before the automatic compaction policy for `antigravity-cli`. This is display only. The cluster bar no longer shows a separate SKIPS GEMINI mark beside AUTO-PICKUP. During its turns the member reads its mail with `peer_read` and uses `peer_send`, the board and the plan through Arco's MCP bridge, as other members do.
|
|
1207
|
+
|
|
1208
|
+
Mail a Gemini member sends is stored with `fromGemini: true` and also waits for the operator. AUTO-PICKUP, Smart pickup and busy reminders never wake a recipient for it; Rule-based AUTO-PICKUP records reason `gemini_mail` and Smart pickup records `gemini_mail` once per session when only such mail is waiting. The mailbox drain delivers it only in a turn started by the operator's NUDGE or typed message: a `peer_read` in an automatic turn returns the other mail and leaves it waiting.
|
|
1209
|
+
|
|
1210
|
+
Pending mail for any member can be edited in the mailbox modal: `PUT /api/clusters/:id/mailbox/:wfid/:msgId` with `{ content }` rewrites the message under the mailbox lock and keeps its id, sender, time and attachments. A message already delivered or cancelled is refused with `409 already_delivered`.
|
|
1211
|
+
|
|
1142
1212
|
## Composer and task editor recovery
|
|
1143
1213
|
|
|
1144
1214
|
A TO selection containing one member uses the per-member sender, preserving picked skills, steering intent and composer actions. Multiple recipients use broadcast. A successful single-recipient send returns TO to the member in view. The voice recipient chooser reads the latest selection and roster. Task editor RESET restores RELEASE together with title, notes and priority.
|
|
@@ -392,6 +392,8 @@ Proposes a compacted version of an instruction file (`CLAUDE.md` / `CLAUDE.local
|
|
|
392
392
|
type: 'md_tuneup_candidates',
|
|
393
393
|
workflowId: string,
|
|
394
394
|
candidates: { path: string, baseName: string, bytes: number, lines?: number, approximateTokens?: number, hints?: string[] }[], // path is repo-relative to the cwd
|
|
395
|
+
skippedLinks?: { path: string, reason: string }[], // links that were not followed (for example a link that leaves the project)
|
|
396
|
+
partial?: boolean, // true when the search stopped early or failed, so the list may be incomplete
|
|
395
397
|
defaultPath?: string, // candidate matching the tab's primary provider, pre-selected in the dialog
|
|
396
398
|
}
|
|
397
399
|
```
|
|
@@ -444,7 +446,7 @@ Proposes a compacted version of an instruction file (`CLAUDE.md` / `CLAUDE.local
|
|
|
444
446
|
### `md_tuneup_accept` -> / `md_tuneup_applied` <-
|
|
445
447
|
|
|
446
448
|
```ts
|
|
447
|
-
{ type: 'md_tuneup_accept', workflowId: string, tuneupId: string, filePath: string, proposed: string } // server re-reads
|
|
449
|
+
{ type: 'md_tuneup_accept', workflowId: string, tuneupId: string, filePath: string, proposed: string, original: string } // server re-reads the file and refuses (`error`, nothing written) when it no longer equals `original`, the text the diff was reviewed against; otherwise it backs up and writes `proposed`
|
|
448
450
|
{
|
|
449
451
|
type: 'md_tuneup_applied',
|
|
450
452
|
workflowId: string,
|
|
@@ -490,7 +492,7 @@ There is no cancel message - the single bounded turn settles on its own (same as
|
|
|
490
492
|
}
|
|
491
493
|
```
|
|
492
494
|
|
|
493
|
-
`'quick'` builds a deterministic seed with no model call (the QUICK choice). `'fresh-agent'`
|
|
495
|
+
`'quick'` builds a deterministic seed with no model call (the QUICK choice). `'fresh-agent'` answers with a `handoff_artifact_ready` whose `error` says the mode is not implemented yet and names `original-worker` and `fresh-summarizer` as the working modes.
|
|
494
496
|
|
|
495
497
|
### `handoff_cancel` ->
|
|
496
498
|
|
|
@@ -562,6 +564,7 @@ Fires after the new session is pre-warmed and the old session is archived in `me
|
|
|
562
564
|
sessionId: string,
|
|
563
565
|
turnCount: number,
|
|
564
566
|
},
|
|
567
|
+
draft?: string, // Antigravity CLI only: composer text that points the agent at the saved handoff document
|
|
565
568
|
newSessionId?: string, // optional for providers without native session ids
|
|
566
569
|
completedAt: number,
|
|
567
570
|
}
|
|
@@ -639,10 +642,13 @@ No agent tool exposes them.
|
|
|
639
642
|
|
|
640
643
|
```ts
|
|
641
644
|
{ type: 'transcript_worker_preview', requestId: string, workflowId: string,
|
|
642
|
-
turns: number, includePartial: boolean, preface: string
|
|
645
|
+
turns: number, includePartial: boolean, preface: string,
|
|
646
|
+
replacement?: { clusterId: string, mode: 'recent' | 'full' } } // set by REPLACE in a cluster; see PROTOCOL_CLUSTER.md
|
|
643
647
|
{ type: 'transcript_worker_result', requestId: string,
|
|
644
648
|
preview?: { token: string, seed: string, bytes: number, availableTurns: number,
|
|
645
|
-
selectedTurns: number, partialIncluded: boolean, cutoffSeq: number
|
|
649
|
+
selectedTurns: number, partialIncluded: boolean, cutoffSeq: number,
|
|
650
|
+
historyMode?: 'recent' | 'full', requestedTurns?: number, truncated?: boolean,
|
|
651
|
+
historyFallback?: boolean }, // the last four are set for a REPLACE preview
|
|
646
652
|
newWorkflowId?: string, error?: string }
|
|
647
653
|
{ type: 'transcript_worker_create', requestId: string, token: string,
|
|
648
654
|
destination: { workingDirectory: string, name: string, provider: ProviderName,
|