arco-workbench 0.1.3
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 +395 -0
- package/LICENSE +674 -0
- package/README.md +277 -0
- package/client/dist/arco-192.png +0 -0
- package/client/dist/arco-512.png +0 -0
- package/client/dist/arco.icns +0 -0
- package/client/dist/arco.ico +0 -0
- package/client/dist/assets/PhosphorBackdrop-CkVIGkeX.js +84 -0
- package/client/dist/assets/ThemedBackgroundShaderImpl-DHF7CnpE.js +5851 -0
- package/client/dist/assets/XtermView-DYP7pi_n.css +32 -0
- package/client/dist/assets/XtermView-SY0UcZUS.js +10 -0
- package/client/dist/assets/galleryEditor-Ca4F8HiM.js +702 -0
- package/client/dist/assets/index-CcNtMA2y.js +546 -0
- package/client/dist/assets/index-Dl8tYsSp.css +1 -0
- package/client/dist/assets/rough.esm-BCKZ66Jd.js +1 -0
- package/client/dist/backgrounds/LICENSE +18 -0
- package/client/dist/backgrounds/odytty-dark-waves.webp +0 -0
- package/client/dist/favicon.svg +24 -0
- package/client/dist/index.html +18 -0
- package/client/dist/licenses/Everforest-MIT.txt +21 -0
- package/client/dist/manifest.webmanifest +1 -0
- package/client/dist/phosphor-demo/OFL.txt +93 -0
- package/client/dist/phosphor-demo/jetbrains-mono-400.woff2 +0 -0
- package/client/dist/phosphor-demo/jetbrains-mono-700.woff2 +0 -0
- package/client/dist/phosphor-demo/jetbrains-mono-800.woff2 +0 -0
- package/client/dist/themes/deckle.svg +20 -0
- package/client/dist/themes/excalifont/Excalifont-Regular.woff2 +0 -0
- package/client/dist/themes/excalifont/OFL.txt +92 -0
- package/client/dist/themes/victor-mono/OFL.txt +93 -0
- package/client/dist/themes/victor-mono/VictorMono-Bold.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-BoldOblique.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-Medium.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-MediumOblique.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-Oblique.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-Regular.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-SemiBold.otf +0 -0
- package/client/dist/themes/victor-mono/VictorMono-SemiBoldOblique.otf +0 -0
- package/client/dist/voice-capture.js +145 -0
- package/client/dist/voice-setup-capture.js +16 -0
- package/client/src/App.tsx +1009 -0
- package/client/src/alerts/desktopAlerts.ts +49 -0
- package/client/src/alerts/waiting.ts +23 -0
- package/client/src/brief/briefFacts.ts +145 -0
- package/client/src/brief/briefFromStore.ts +46 -0
- package/client/src/buildCheck.ts +34 -0
- package/client/src/components/AppUpdateNotice.tsx +33 -0
- package/client/src/components/ArtifactModal.tsx +259 -0
- package/client/src/components/ArtifactPill.tsx +113 -0
- package/client/src/components/AskUserQuestionNotice.tsx +200 -0
- package/client/src/components/AttachmentPill.tsx +41 -0
- package/client/src/components/AuthOverlay.tsx +3 -0
- package/client/src/components/AuthReloginNotice.tsx +185 -0
- package/client/src/components/AutoCompactionThreshold/index.tsx +25 -0
- package/client/src/components/BriefControl.tsx +174 -0
- package/client/src/components/CatchMeUp.tsx +87 -0
- package/client/src/components/ChatMessage.tsx +960 -0
- package/client/src/components/ChatModeView.tsx +428 -0
- package/client/src/components/ChatPanel.tsx +596 -0
- package/client/src/components/CheckpointActions.tsx +221 -0
- package/client/src/components/ClaudeNativeAuthRow.tsx +86 -0
- package/client/src/components/ClusterActivityTab.tsx +820 -0
- package/client/src/components/ClusterComposerButtons.tsx +54 -0
- package/client/src/components/ClusterMemberPicker.tsx +180 -0
- package/client/src/components/ClusterPlanTab.tsx +895 -0
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +518 -0
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +267 -0
- package/client/src/components/ClusterRightPanel/ClusterHandoffsTab.tsx +58 -0
- package/client/src/components/ClusterRightPanel/ClusterReviewsList.tsx +220 -0
- package/client/src/components/ClusterRightPanel/EfficiencyControl.tsx +126 -0
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +174 -0
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +683 -0
- package/client/src/components/ClusterRightPanel/MessageGuardControl.tsx +25 -0
- package/client/src/components/ClusterRightPanel/ProgressControl.tsx +58 -0
- package/client/src/components/ClusterRightPanel/ProjectTrustChip.tsx +67 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +309 -0
- package/client/src/components/ClusterRightPanel/index.tsx +1125 -0
- package/client/src/components/ClusterRightPanel/types.ts +219 -0
- package/client/src/components/ClusterTab.tsx +1369 -0
- package/client/src/components/ClusterTaskBoardTab.tsx +2904 -0
- package/client/src/components/CommandPalette.tsx +405 -0
- package/client/src/components/ComputerActivityPanel.tsx +36 -0
- package/client/src/components/ComputerAgentPicker.tsx +49 -0
- package/client/src/components/ComputerAutomationSection.tsx +22 -0
- package/client/src/components/ComputerComposer.tsx +55 -0
- package/client/src/components/ComputerMonitoringPanels.tsx +57 -0
- package/client/src/components/ComputerPanel.tsx +142 -0
- package/client/src/components/ComputerScriptsPanel.tsx +43 -0
- package/client/src/components/Connections/Connections.tsx +215 -0
- package/client/src/components/Connections/EndpointEditor.tsx +38 -0
- package/client/src/components/Connections/LocalCapacityEditor.tsx +36 -0
- package/client/src/components/Connections/connections.css +18 -0
- package/client/src/components/Connections/model.ts +80 -0
- package/client/src/components/ContextMeter.tsx +230 -0
- package/client/src/components/ConversationMenu.tsx +467 -0
- package/client/src/components/CursorIncludedGauge.tsx +79 -0
- package/client/src/components/CursorModelSelect.tsx +179 -0
- package/client/src/components/DeepSeekControls.tsx +51 -0
- package/client/src/components/DiagnosticsTab.tsx +259 -0
- package/client/src/components/DocsUpdateDialog.tsx +159 -0
- package/client/src/components/DragOverlay.tsx +82 -0
- package/client/src/components/DuplicateTabOverlay.tsx +79 -0
- package/client/src/components/EndpointHelp.tsx +29 -0
- package/client/src/components/ErrorBoundary.tsx +106 -0
- package/client/src/components/ExistingClustersList.tsx +181 -0
- package/client/src/components/FileExplorer.tsx +401 -0
- package/client/src/components/FileViewerModal.tsx +552 -0
- package/client/src/components/FirstRun.tsx +181 -0
- package/client/src/components/ForwardMessages.tsx +91 -0
- package/client/src/components/FreeVramButton.tsx +39 -0
- package/client/src/components/GateApprovalNotice.tsx +217 -0
- package/client/src/components/GenerationSpeedReadout.tsx +28 -0
- package/client/src/components/GitDialog.tsx +832 -0
- package/client/src/components/GitHubPanel/BranchesList.tsx +35 -0
- package/client/src/components/GitHubPanel/Breadcrumbs.tsx +26 -0
- package/client/src/components/GitHubPanel/CodeView.tsx +731 -0
- package/client/src/components/GitHubPanel/CommitView.tsx +48 -0
- package/client/src/components/GitHubPanel/GhFilesDiff.tsx +58 -0
- package/client/src/components/GitHubPanel/IssueView.tsx +202 -0
- package/client/src/components/GitHubPanel/PullView.tsx +408 -0
- package/client/src/components/GitHubPanel/RepoView.tsx +244 -0
- package/client/src/components/GitHubPanel/ReposView.tsx +76 -0
- package/client/src/components/GitHubPanel/RunView.tsx +128 -0
- package/client/src/components/GitHubPanel/ghDiff.ts +53 -0
- package/client/src/components/GitHubPanel/index.tsx +124 -0
- package/client/src/components/GitHubPanel/shared.tsx +415 -0
- package/client/src/components/GitHubPanel/types.ts +38 -0
- package/client/src/components/GitOtherWork.tsx +84 -0
- package/client/src/components/HandoffDialog.tsx +517 -0
- package/client/src/components/HandoffList.tsx +227 -0
- package/client/src/components/HandoffPromptsEditor.tsx +373 -0
- package/client/src/components/HandoffSeedPill.tsx +146 -0
- package/client/src/components/HeaderAuthChip.tsx +186 -0
- package/client/src/components/HeaderDropdown.tsx +162 -0
- package/client/src/components/HeaderVersionBox.tsx +99 -0
- package/client/src/components/HelpMenu.tsx +15 -0
- package/client/src/components/HistoryTab.tsx +657 -0
- package/client/src/components/Home/AddProject.tsx +75 -0
- package/client/src/components/Home/HomeStatus.tsx +34 -0
- package/client/src/components/Home/HomeView.tsx +258 -0
- package/client/src/components/Home/LocationDialog.tsx +27 -0
- package/client/src/components/Home/ProjectCard.tsx +249 -0
- package/client/src/components/Home/home.css +104 -0
- package/client/src/components/Home/homeStyles.ts +16 -0
- package/client/src/components/Home/projectApi.ts +24 -0
- package/client/src/components/HubLinkChip.tsx +79 -0
- package/client/src/components/LlamacppCatalogEditor.tsx +488 -0
- package/client/src/components/LoginCommand.tsx +84 -0
- package/client/src/components/LoginFlow.tsx +156 -0
- package/client/src/components/LongUserMessage.tsx +152 -0
- package/client/src/components/MdTuneupDialog.tsx +288 -0
- package/client/src/components/MediaAccessSettings.tsx +176 -0
- package/client/src/components/MemberCard.tsx +229 -0
- package/client/src/components/MemberPane.tsx +204 -0
- package/client/src/components/ModelHealthPanel.tsx +386 -0
- package/client/src/components/NativeLoginControls.tsx +22 -0
- package/client/src/components/NeedsYouBadge.tsx +158 -0
- package/client/src/components/NorthStarBar.tsx +172 -0
- package/client/src/components/NotificationCenter.tsx +181 -0
- package/client/src/components/NotificationChannelsSettings.tsx +123 -0
- package/client/src/components/NotificationToasts.tsx +126 -0
- package/client/src/components/OllamaReleasesModal.tsx +5 -0
- package/client/src/components/OperatorQuestionNotice.tsx +48 -0
- package/client/src/components/PendingQuestionsButton.tsx +33 -0
- package/client/src/components/PlanBodyRenderer.tsx +332 -0
- package/client/src/components/PlanCandidateBanner.tsx +200 -0
- package/client/src/components/PlanComposerDialog.tsx +157 -0
- package/client/src/components/PlanReviewPicker.tsx +415 -0
- package/client/src/components/PreviewTab.tsx +780 -0
- package/client/src/components/PrimaryStatus.tsx +81 -0
- package/client/src/components/PriorSessionsSection.tsx +68 -0
- package/client/src/components/ProjectLocationForm.tsx +43 -0
- package/client/src/components/ProjectRootsSettings.tsx +43 -0
- package/client/src/components/ProjectsSettings.tsx +94 -0
- package/client/src/components/ProviderOutageBanner.tsx +113 -0
- package/client/src/components/ProviderReleasesModal.tsx +242 -0
- package/client/src/components/ProvidersPopover.tsx +326 -0
- package/client/src/components/PurgeConversationModal.tsx +136 -0
- package/client/src/components/QueuedMessagesIndicator.tsx +396 -0
- package/client/src/components/Recall/RecallResultRow.tsx +252 -0
- package/client/src/components/Recall/RecallView.tsx +434 -0
- package/client/src/components/ResearchDialog.tsx +159 -0
- package/client/src/components/ReviewDialog.tsx +628 -0
- package/client/src/components/RightPanel/ActivityTab.tsx +709 -0
- package/client/src/components/RightPanel/BakeoffTab.tsx +454 -0
- package/client/src/components/RightPanel/BlastRadiusTab.tsx +70 -0
- package/client/src/components/RightPanel/CodebaseMemorySection.tsx +187 -0
- package/client/src/components/RightPanel/ConfigTab.tsx +3044 -0
- package/client/src/components/RightPanel/FilesTab.tsx +484 -0
- package/client/src/components/RightPanel/GenesisTab.tsx +522 -0
- package/client/src/components/RightPanel/HandoffsTab.tsx +49 -0
- package/client/src/components/RightPanel/KnowledgeTab.tsx +243 -0
- package/client/src/components/RightPanel/KnowledgeWizard.tsx +230 -0
- package/client/src/components/RightPanel/LedgerLinks.tsx +186 -0
- package/client/src/components/RightPanel/LedgerTab.tsx +407 -0
- package/client/src/components/RightPanel/McpRegistrySection.tsx +313 -0
- package/client/src/components/RightPanel/MoveTargetModal.tsx +151 -0
- package/client/src/components/RightPanel/OutputsPanel.tsx +232 -0
- package/client/src/components/RightPanel/PlanListRow.tsx +118 -0
- package/client/src/components/RightPanel/PlanTab.tsx +820 -0
- package/client/src/components/RightPanel/PlanWorkflowsSection.tsx +106 -0
- package/client/src/components/RightPanel/ResearchTab.tsx +214 -0
- package/client/src/components/RightPanel/ReviewTab.tsx +454 -0
- package/client/src/components/RightPanel/UsageTab.tsx +395 -0
- package/client/src/components/RightPanel/format.ts +173 -0
- package/client/src/components/RightPanel/index.tsx +434 -0
- package/client/src/components/RightPanel/reviewFindings.ts +89 -0
- package/client/src/components/RightPanel/types.ts +85 -0
- package/client/src/components/RunAsPicker.tsx +279 -0
- package/client/src/components/RuntimeStateBanner.tsx +139 -0
- package/client/src/components/SavedClustersList.tsx +312 -0
- package/client/src/components/ServicesTab.tsx +692 -0
- package/client/src/components/SettingsPanel.tsx +2846 -0
- package/client/src/components/ShortcutCheatSheet.tsx +178 -0
- package/client/src/components/ShutdownOverlay.tsx +115 -0
- package/client/src/components/SkillEditorDialog.tsx +404 -0
- package/client/src/components/SpawnDialog.tsx +555 -0
- package/client/src/components/SpawnSeedPill.tsx +163 -0
- package/client/src/components/StaleBuildBanner.tsx +31 -0
- package/client/src/components/SyncingOverlay.tsx +26 -0
- package/client/src/components/SystemHeader.tsx +350 -0
- package/client/src/components/SystemModal.tsx +193 -0
- package/client/src/components/TabBar.tsx +649 -0
- package/client/src/components/TabContextMenu.tsx +607 -0
- package/client/src/components/TabStatusChip.tsx +71 -0
- package/client/src/components/TaskCard.tsx +233 -0
- package/client/src/components/TasksPanel.tsx +196 -0
- package/client/src/components/Terminal/FloatingTerminalWindow.tsx +286 -0
- package/client/src/components/Terminal/FloatingWindow.tsx +175 -0
- package/client/src/components/Terminal/TerminalPopout.tsx +117 -0
- package/client/src/components/Terminal/XtermView.tsx +351 -0
- package/client/src/components/Terminal/XtermViewLazy.tsx +47 -0
- package/client/src/components/Terminal/composerBridge.ts +37 -0
- package/client/src/components/Terminal/detectCommand.ts +81 -0
- package/client/src/components/TerminalInput.tsx +2509 -0
- package/client/src/components/TerminalSessions.tsx +42 -0
- package/client/src/components/ThemedBackgroundShader.tsx +46 -0
- package/client/src/components/ThemedBackgroundShaderImpl.tsx +395 -0
- package/client/src/components/TidyComposer.tsx +103 -0
- package/client/src/components/TokenBadge.tsx +117 -0
- package/client/src/components/ToolCallPill.tsx +231 -0
- package/client/src/components/ToolboxMenu.tsx +66 -0
- package/client/src/components/TranscriptSendDialog.tsx +274 -0
- package/client/src/components/UpdateAction.tsx +89 -0
- package/client/src/components/UpdateResultNotice.tsx +30 -0
- package/client/src/components/UsageBar.tsx +552 -0
- package/client/src/components/UserManual/components.tsx +174 -0
- package/client/src/components/UserManual/index.tsx +437 -0
- package/client/src/components/UserManual/manual.css +56 -0
- package/client/src/components/UserManual/manualTypes.ts +26 -0
- package/client/src/components/UtilityAgentPicker.tsx +173 -0
- package/client/src/components/VoiceControl.tsx +192 -0
- package/client/src/components/VoiceMenu.tsx +59 -0
- package/client/src/components/VoiceOutputPicker.tsx +85 -0
- package/client/src/components/VoiceSetupSettings.tsx +199 -0
- package/client/src/components/WorkerCard.tsx +342 -0
- package/client/src/components/WorkerDetailModal.tsx +530 -0
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +497 -0
- package/client/src/components/WorkflowCreator/ClusterPresetsRow.tsx +198 -0
- package/client/src/components/WorkflowCreator/ClusterTemplatePicker.tsx +145 -0
- package/client/src/components/WorkflowCreator/PastChatsList.tsx +78 -0
- package/client/src/components/WorkflowCreator/ProjectPicker.tsx +55 -0
- package/client/src/components/WorkflowCreator/TemplatePickerRow.tsx +209 -0
- package/client/src/components/WorkflowCreator/clusterTemplates.ts +60 -0
- package/client/src/components/WorkflowCreator/index.tsx +1945 -0
- package/client/src/components/WorkflowCreator/memberProviders.ts +83 -0
- package/client/src/components/WorkflowCreator/modelOptions.ts +59 -0
- package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +35 -0
- package/client/src/components/WorkflowCreator/permissionNotes.ts +4 -0
- package/client/src/components/WorkflowCreator/projectName.ts +13 -0
- package/client/src/components/WorkflowCreator/types.ts +116 -0
- package/client/src/components/WorkflowStatusChip.tsx +113 -0
- package/client/src/components/WorkflowView.tsx +304 -0
- package/client/src/components/WorkingDirectoryDefault.tsx +30 -0
- package/client/src/components/WorkspaceRename.tsx +48 -0
- package/client/src/components/clusterActivity.helpers.ts +66 -0
- package/client/src/components/clusterNeedsYou.ts +125 -0
- package/client/src/components/clusterSurface.helpers.ts +40 -0
- package/client/src/components/clusterTaskBoard.helpers.ts +59 -0
- package/client/src/components/compare/CompareDialog.tsx +213 -0
- package/client/src/components/compare/CompareDialogHost.tsx +35 -0
- package/client/src/components/compare/CompareGrid.tsx +99 -0
- package/client/src/components/compare/CompareOverlay.tsx +99 -0
- package/client/src/components/compare/CompareVote.tsx +62 -0
- package/client/src/components/composer/contextRefs.ts +115 -0
- package/client/src/components/composer/killLine.ts +28 -0
- package/client/src/components/dev/MemoryHud.tsx +79 -0
- package/client/src/components/diff/ChangesPanel.tsx +66 -0
- package/client/src/components/diff/CompareRemotePanel.tsx +377 -0
- package/client/src/components/diff/DiffView.tsx +159 -0
- package/client/src/components/diff/GitOpsBar.tsx +225 -0
- package/client/src/components/diff/LiveChangesPanel.tsx +527 -0
- package/client/src/components/diff/WorkingChangesPanel.tsx +290 -0
- package/client/src/components/diff/diff-view.css +142 -0
- package/client/src/components/editor/AiEditAffordance.tsx +255 -0
- package/client/src/components/editor/CodeEditor.tsx +203 -0
- package/client/src/components/headerActionStyle.ts +7 -0
- package/client/src/components/help/DocRef.tsx +61 -0
- package/client/src/components/help/DocViewer.tsx +249 -0
- package/client/src/components/help/HelpBanner.tsx +53 -0
- package/client/src/components/help/HelpButton.tsx +175 -0
- package/client/src/components/help/HelpCard.tsx +210 -0
- package/client/src/components/help/HelpPopover.tsx +169 -0
- package/client/src/components/help/ModalHelpButton.tsx +45 -0
- package/client/src/components/media/AudioEditor/AudioEditor.tsx +289 -0
- package/client/src/components/media/AudioEditor/AudioOpsPanel.tsx +238 -0
- package/client/src/components/media/AudioEditor/index.ts +2 -0
- package/client/src/components/media/DirectoryPicker.tsx +226 -0
- package/client/src/components/media/ImageEditor/ImageEditor.tsx +253 -0
- package/client/src/components/media/ImageEditor/index.ts +1 -0
- package/client/src/components/media/MediaAdvancedOps.tsx +261 -0
- package/client/src/components/media/MediaModalHost.tsx +621 -0
- package/client/src/components/media/MediaSaveControls.tsx +72 -0
- package/client/src/components/media/MediaStemsControls.tsx +149 -0
- package/client/src/components/media/VideoEditor/VideoEditor.tsx +215 -0
- package/client/src/components/media/VideoEditor/VideoOpsPanel.tsx +240 -0
- package/client/src/components/media/VideoEditor/index.ts +2 -0
- package/client/src/components/media/launchers.ts +60 -0
- package/client/src/components/media/postMediaOp.ts +158 -0
- package/client/src/components/plans/PlanRefsSection.tsx +312 -0
- package/client/src/components/plans/planRefs.ts +83 -0
- package/client/src/components/primitives/Panel.tsx +297 -0
- package/client/src/components/primitives/StatusLight.tsx +74 -0
- package/client/src/components/settings/AppVersionSection.tsx +36 -0
- package/client/src/components/settings/SettingsLayout.tsx +179 -0
- package/client/src/components/settings/navigation.ts +86 -0
- package/client/src/components/settings/settings.css +26 -0
- package/client/src/components/terminalInput/compare.ts +23 -0
- package/client/src/components/terminalInput/planDraft.ts +23 -0
- package/client/src/components/terminalInput/research.ts +46 -0
- package/client/src/components/usageVisibility.ts +10 -0
- package/client/src/components/utilityResult.ts +19 -0
- package/client/src/components/workSurface/WorkSurfaceControls.tsx +57 -0
- package/client/src/components/workSurface/workSurface.css +4 -0
- package/client/src/explorer/ArtifactsLens.tsx +171 -0
- package/client/src/explorer/ExplorerApp.tsx +177 -0
- package/client/src/explorer/PlansLens.tsx +271 -0
- package/client/src/explorer/RecentsLens.tsx +202 -0
- package/client/src/explorer/launch.ts +37 -0
- package/client/src/explorer/types.ts +118 -0
- package/client/src/help/content/chat.tsx +73 -0
- package/client/src/help/content/cluster.tsx +1287 -0
- package/client/src/help/content/composer.tsx +621 -0
- package/client/src/help/content/gitOps.tsx +84 -0
- package/client/src/help/content/github.tsx +76 -0
- package/client/src/help/content/header.tsx +497 -0
- package/client/src/help/content/index.tsx +35 -0
- package/client/src/help/content/media.tsx +469 -0
- package/client/src/help/content/misc.tsx +1912 -0
- package/client/src/help/content/recall.tsx +242 -0
- package/client/src/help/content/rightPanel.tsx +870 -0
- package/client/src/help/content/settings.tsx +505 -0
- package/client/src/help/content/shared.tsx +38 -0
- package/client/src/help/content/tabbar.tsx +73 -0
- package/client/src/help/helpContent.tsx +2 -0
- package/client/src/help/manualSections/actions.tsx +706 -0
- package/client/src/help/manualSections/chat.tsx +158 -0
- package/client/src/help/manualSections/clusters.tsx +2149 -0
- package/client/src/help/manualSections/configuration.tsx +1007 -0
- package/client/src/help/manualSections/deepseek.tsx +124 -0
- package/client/src/help/manualSections/gettingStarted.tsx +374 -0
- package/client/src/help/manualSections/index.tsx +42 -0
- package/client/src/help/manualSections/maintenance.tsx +218 -0
- package/client/src/help/manualSections/media.tsx +191 -0
- package/client/src/help/manualSections/plans.tsx +341 -0
- package/client/src/help/manualSections/powerFeatures.tsx +869 -0
- package/client/src/help/manualSections/providers.tsx +944 -0
- package/client/src/help/manualSections/reference.tsx +305 -0
- package/client/src/help/manualSections/strata.tsx +152 -0
- package/client/src/help/manualSections/troubleshooting.tsx +524 -0
- package/client/src/help/manualSections/voice.tsx +739 -0
- package/client/src/help/manualSections/workflows.tsx +294 -0
- package/client/src/help/manualSections/workspace.tsx +732 -0
- package/client/src/help/openManualSection.ts +21 -0
- package/client/src/help/shortcuts.ts +52 -0
- package/client/src/help/useHelpMode.ts +80 -0
- package/client/src/hooks/useClaudeNativeLogin.ts +117 -0
- package/client/src/hooks/useClusterPresets.ts +76 -0
- package/client/src/hooks/useCodexCatalog.ts +17 -0
- package/client/src/hooks/useProjectTrust.ts +70 -0
- package/client/src/hooks/useTabSingleton.ts +65 -0
- package/client/src/hooks/useTemplates.ts +77 -0
- package/client/src/hooks/useTension.ts +95 -0
- package/client/src/hooks/useTerminalTarget.ts +38 -0
- package/client/src/hooks/useWebSocket.ts +1486 -0
- package/client/src/main.tsx +56 -0
- package/client/src/phosphor-demo/Ambient.tsx +1 -0
- package/client/src/phosphor-demo/Demo.tsx +237 -0
- package/client/src/phosphor-demo/arco-palette.ts +1 -0
- package/client/src/phosphor-demo/demo.css +226 -0
- package/client/src/phosphor-demo/emission.ts +1 -0
- package/client/src/phosphor-demo/main.ts +31 -0
- package/client/src/phosphor-demo/paletteAdapter.ts +1 -0
- package/client/src/questions/waitingQuestion.ts +33 -0
- package/client/src/recall/closeSummary.ts +35 -0
- package/client/src/runtime/runtimeState.ts +183 -0
- package/client/src/stores/appStore.ts +2036 -0
- package/client/src/stores/appStore.types.ts +1069 -0
- package/client/src/stores/appUpdateStore.ts +39 -0
- package/client/src/stores/boardTaskRequest.ts +20 -0
- package/client/src/stores/chatFollowStore.ts +8 -0
- package/client/src/stores/clusterSnapshotsStore.ts +198 -0
- package/client/src/stores/compareStore.ts +166 -0
- package/client/src/stores/computerStore.ts +35 -0
- package/client/src/stores/docEditStore.ts +158 -0
- package/client/src/stores/draftStore.ts +95 -0
- package/client/src/stores/hubLinkStore.ts +31 -0
- package/client/src/stores/knowledgeDistillStore.ts +94 -0
- package/client/src/stores/liveChangesStore.ts +57 -0
- package/client/src/stores/mdTuneupStore.ts +184 -0
- package/client/src/stores/memoryTrim.ts +243 -0
- package/client/src/stores/messageSelectionStore.ts +26 -0
- package/client/src/stores/notificationChannelsStore.ts +39 -0
- package/client/src/stores/notificationStore.ts +45 -0
- package/client/src/stores/orchestrationAssistStore.ts +94 -0
- package/client/src/stores/persistence.ts +58 -0
- package/client/src/stores/recallStore.ts +244 -0
- package/client/src/stores/selectors.ts +79 -0
- package/client/src/stores/sessionIndexStore.ts +92 -0
- package/client/src/stores/startupStore.ts +40 -0
- package/client/src/stores/tabStatusStore.ts +58 -0
- package/client/src/stores/terminalStore.ts +225 -0
- package/client/src/styles/contextual-help.css +84 -0
- package/client/src/styles/global.css +270 -0
- package/client/src/styles/matrix.css +1289 -0
- package/client/src/themes/apply.ts +341 -0
- package/client/src/themes/bootstrap.ts +191 -0
- package/client/src/themes/definitions/abyssal.ts +88 -0
- package/client/src/themes/definitions/amberCrt.ts +103 -0
- package/client/src/themes/definitions/arch.ts +126 -0
- package/client/src/themes/definitions/arcoDefault.ts +117 -0
- package/client/src/themes/definitions/arcoJungle.ts +85 -0
- package/client/src/themes/definitions/arrakis.ts +98 -0
- package/client/src/themes/definitions/aurora.ts +88 -0
- package/client/src/themes/definitions/bloodmoon.ts +98 -0
- package/client/src/themes/definitions/blueprint.ts +93 -0
- package/client/src/themes/definitions/braun.ts +96 -0
- package/client/src/themes/definitions/cassetteFuturism.ts +93 -0
- package/client/src/themes/definitions/cherenkov.ts +90 -0
- package/client/src/themes/definitions/cicada.ts +90 -0
- package/client/src/themes/definitions/concrete.ts +95 -0
- package/client/src/themes/definitions/copper.ts +78 -0
- package/client/src/themes/definitions/cute.ts +81 -0
- package/client/src/themes/definitions/darkAcademia.ts +106 -0
- package/client/src/themes/definitions/dsky.ts +95 -0
- package/client/src/themes/definitions/everforest.ts +110 -0
- package/client/src/themes/definitions/forest.ts +78 -0
- package/client/src/themes/definitions/frutigerAero.ts +115 -0
- package/client/src/themes/definitions/holographic.ts +100 -0
- package/client/src/themes/definitions/infrared.ts +88 -0
- package/client/src/themes/definitions/kintsugi.ts +93 -0
- package/client/src/themes/definitions/lavender.ts +87 -0
- package/client/src/themes/definitions/matrix.ts +103 -0
- package/client/src/themes/definitions/midnightTokyo.ts +90 -0
- package/client/src/themes/definitions/nebula.ts +91 -0
- package/client/src/themes/definitions/nightCity.ts +92 -0
- package/client/src/themes/definitions/noir.ts +96 -0
- package/client/src/themes/definitions/ocean.ts +78 -0
- package/client/src/themes/definitions/oscilloscope.ts +96 -0
- package/client/src/themes/definitions/redPlanet.ts +112 -0
- package/client/src/themes/definitions/seismograph.ts +88 -0
- package/client/src/themes/definitions/sentinel.ts +91 -0
- package/client/src/themes/definitions/solarPaper.ts +103 -0
- package/client/src/themes/definitions/sonar.ts +90 -0
- package/client/src/themes/definitions/stealth.ts +92 -0
- package/client/src/themes/definitions/tarkovsky.ts +90 -0
- package/client/src/themes/definitions/ume.ts +78 -0
- package/client/src/themes/definitions/unfinishedWorks.ts +117 -0
- package/client/src/themes/definitions/voyager.ts +88 -0
- package/client/src/themes/fontPacks.ts +343 -0
- package/client/src/themes/phosphor/Ambient.tsx +108 -0
- package/client/src/themes/phosphor/PhosphorBackdrop.tsx +5 -0
- package/client/src/themes/phosphor/PhosphorControls.tsx +42 -0
- package/client/src/themes/phosphor/ambient.frag.glsl +83 -0
- package/client/src/themes/phosphor/arco-palette.ts +153 -0
- package/client/src/themes/phosphor/emission.ts +8 -0
- package/client/src/themes/phosphor/paletteAdapter.ts +54 -0
- package/client/src/themes/phosphor/phosphor.css +36 -0
- package/client/src/themes/phosphor/preferences.ts +23 -0
- package/client/src/themes/providerThemes.ts +196 -0
- package/client/src/themes/registry.ts +116 -0
- package/client/src/themes/shaders/amberCRT.frag.glsl +60 -0
- package/client/src/themes/shaders/aurora.frag.glsl +48 -0
- package/client/src/themes/shaders/bloodmoon.frag.glsl +33 -0
- package/client/src/themes/shaders/blueprintGrid.frag.glsl +57 -0
- package/client/src/themes/shaders/carbonWeave.frag.glsl +56 -0
- package/client/src/themes/shaders/cherenkov.frag.glsl +45 -0
- package/client/src/themes/shaders/cicada.frag.glsl +86 -0
- package/client/src/themes/shaders/concrete.frag.glsl +53 -0
- package/client/src/themes/shaders/dskyBloom.frag.glsl +33 -0
- package/client/src/themes/shaders/filmGrain.frag.glsl +34 -0
- package/client/src/themes/shaders/heatHaze.frag.glsl +65 -0
- package/client/src/themes/shaders/infrared.frag.glsl +68 -0
- package/client/src/themes/shaders/kintsugi.frag.glsl +81 -0
- package/client/src/themes/shaders/liquidGlass.frag.glsl +73 -0
- package/client/src/themes/shaders/marineSnow.frag.glsl +62 -0
- package/client/src/themes/shaders/matrixRain.frag.glsl +128 -0
- package/client/src/themes/shaders/nebula.frag.glsl +47 -0
- package/client/src/themes/shaders/nightCity.frag.glsl +80 -0
- package/client/src/themes/shaders/oscilloscope.frag.glsl +40 -0
- package/client/src/themes/shaders/penAndInk.frag.glsl +71 -0
- package/client/src/themes/shaders/rainGlass.frag.glsl +51 -0
- package/client/src/themes/shaders/sakuraPetals.frag.glsl +75 -0
- package/client/src/themes/shaders/seismograph.frag.glsl +86 -0
- package/client/src/themes/shaders/sentinel.frag.glsl +54 -0
- package/client/src/themes/shaders/sonar.frag.glsl +53 -0
- package/client/src/themes/shaders/starDrift.frag.glsl +49 -0
- package/client/src/themes/shaders/tapeDrift.frag.glsl +36 -0
- package/client/src/themes/shaders/tarkovsky.frag.glsl +40 -0
- package/client/src/themes/shaders/util.ts +28 -0
- package/client/src/themes/shaders/watercolor.frag.glsl +69 -0
- package/client/src/themes/types.ts +120 -0
- package/client/src/utils/chatFileLinks.ts +101 -0
- package/client/src/utils/chatText.ts +199 -0
- package/client/src/utils/claudeAllowance.ts +54 -0
- package/client/src/utils/claudeAuth.ts +74 -0
- package/client/src/utils/clusterNudge.ts +4 -0
- package/client/src/utils/completeOnboarding.ts +13 -0
- package/client/src/utils/computerAvailability.ts +20 -0
- package/client/src/utils/displayMessages.ts +262 -0
- package/client/src/utils/effortDefaults.ts +59 -0
- package/client/src/utils/eventTranscript.ts +147 -0
- package/client/src/utils/format.ts +268 -0
- package/client/src/utils/gateArgs.ts +33 -0
- package/client/src/utils/gitPushTarget.ts +10 -0
- package/client/src/utils/historyEvents.ts +210 -0
- package/client/src/utils/homeModel.ts +245 -0
- package/client/src/utils/linkify.tsx +44 -0
- package/client/src/utils/messageBoxSize.ts +47 -0
- package/client/src/utils/modelCatalog.ts +120 -0
- package/client/src/utils/operatorLabel.ts +10 -0
- package/client/src/utils/outputNavigation.ts +18 -0
- package/client/src/utils/pointer.ts +14 -0
- package/client/src/utils/projectLocations.ts +32 -0
- package/client/src/utils/rafThrottle.ts +64 -0
- package/client/src/utils/secondOpinionTally.ts +39 -0
- package/client/src/utils/spawnMemberName.ts +17 -0
- package/client/src/utils/startupGate.ts +145 -0
- package/client/src/utils/tabStatus.ts +38 -0
- package/client/src/utils/themeScramble.ts +165 -0
- package/client/src/utils/transcriptFormat.ts +61 -0
- package/client/src/utils/turnStep.ts +20 -0
- package/client/src/utils/uploadAttachment.ts +80 -0
- package/client/src/utils/usageFormat.ts +24 -0
- package/client/src/utils/worktreeNavigation.ts +43 -0
- package/client/src/utils/wsSession.ts +59 -0
- package/client/src/vendor/odysseus-editor/LICENSE +21 -0
- package/client/src/vendor/odysseus-editor/VENDOR.md +189 -0
- package/client/src/vendor/odysseus-editor/colorPicker.js +454 -0
- package/client/src/vendor/odysseus-editor/dragSort.js +266 -0
- package/client/src/vendor/odysseus-editor/editor/build/controls.js +366 -0
- package/client/src/vendor/odysseus-editor/editor/build/popups.js +112 -0
- package/client/src/vendor/odysseus-editor/editor/build/right-panel.js +201 -0
- package/client/src/vendor/odysseus-editor/editor/build/toolbar.js +73 -0
- package/client/src/vendor/odysseus-editor/editor/build/topbar.js +131 -0
- package/client/src/vendor/odysseus-editor/editor/build/transform-popup.js +109 -0
- package/client/src/vendor/odysseus-editor/editor/canvas-coords.js +21 -0
- package/client/src/vendor/odysseus-editor/editor/canvas-events.js +200 -0
- package/client/src/vendor/odysseus-editor/editor/canvas-transforms.js +132 -0
- package/client/src/vendor/odysseus-editor/editor/checkerboard.js +24 -0
- package/client/src/vendor/odysseus-editor/editor/clipboard-and-drop.js +133 -0
- package/client/src/vendor/odysseus-editor/editor/composite-helpers.js +83 -0
- package/client/src/vendor/odysseus-editor/editor/filters/blur.js +118 -0
- package/client/src/vendor/odysseus-editor/editor/filters/edge-feather.js +70 -0
- package/client/src/vendor/odysseus-editor/editor/fx/adj-popup.js +681 -0
- package/client/src/vendor/odysseus-editor/editor/fx/filter-string.js +38 -0
- package/client/src/vendor/odysseus-editor/editor/fx/histogram.js +67 -0
- package/client/src/vendor/odysseus-editor/editor/fx/pixel-pass.js +249 -0
- package/client/src/vendor/odysseus-editor/editor/harmonize-masks.js +116 -0
- package/client/src/vendor/odysseus-editor/editor/history-panel.js +178 -0
- package/client/src/vendor/odysseus-editor/editor/keyboard-shortcuts.js +266 -0
- package/client/src/vendor/odysseus-editor/editor/layer-helpers.js +131 -0
- package/client/src/vendor/odysseus-editor/editor/layer-panel.js +600 -0
- package/client/src/vendor/odysseus-editor/editor/mask-utils.js +91 -0
- package/client/src/vendor/odysseus-editor/editor/shortcuts-popover.js +152 -0
- package/client/src/vendor/odysseus-editor/editor/slider-ux.js +192 -0
- package/client/src/vendor/odysseus-editor/editor/snap.js +109 -0
- package/client/src/vendor/odysseus-editor/editor/state.js +257 -0
- package/client/src/vendor/odysseus-editor/editor/stroke-pipeline.js +162 -0
- package/client/src/vendor/odysseus-editor/editor/stroke-tool-sliders.js +64 -0
- package/client/src/vendor/odysseus-editor/editor/tools/clone.js +81 -0
- package/client/src/vendor/odysseus-editor/editor/tools/crop.js +137 -0
- package/client/src/vendor/odysseus-editor/editor/tools/flood-fill.js +72 -0
- package/client/src/vendor/odysseus-editor/editor/tools/lasso-mask.js +171 -0
- package/client/src/vendor/odysseus-editor/editor/tools/lasso.js +65 -0
- package/client/src/vendor/odysseus-editor/editor/tools/move.js +79 -0
- package/client/src/vendor/odysseus-editor/editor/tools/stroke.js +123 -0
- package/client/src/vendor/odysseus-editor/editor/tools/transform-drag.js +174 -0
- package/client/src/vendor/odysseus-editor/editor/tools/transform-handles.js +271 -0
- package/client/src/vendor/odysseus-editor/editor/tools/transform-session.js +382 -0
- package/client/src/vendor/odysseus-editor/editor/tools/wand.js +46 -0
- package/client/src/vendor/odysseus-editor/editor/wire-import.js +155 -0
- package/client/src/vendor/odysseus-editor/editor/wire-inpaint-controls.js +164 -0
- package/client/src/vendor/odysseus-editor/editor/wire-merge-buttons.js +141 -0
- package/client/src/vendor/odysseus-editor/editor/wire-selection-controls.js +170 -0
- package/client/src/vendor/odysseus-editor/editor/wire-topbar-menus.js +174 -0
- package/client/src/vendor/odysseus-editor/editor/wire-topbar-overflow.js +49 -0
- package/client/src/vendor/odysseus-editor/editor/wire-topbar.js +194 -0
- package/client/src/vendor/odysseus-editor/editor.css +5326 -0
- package/client/src/vendor/odysseus-editor/galleryEditor.d.ts +33 -0
- package/client/src/vendor/odysseus-editor/galleryEditor.js +3867 -0
- package/client/src/vendor/odysseus-editor/modalManager.js +50 -0
- package/client/src/vendor/odysseus-editor/spinner.js +406 -0
- package/client/src/vendor/odysseus-editor/storage.js +33 -0
- package/client/src/vendor/odysseus-editor/ui.js +84 -0
- package/client/src/vite-env.d.ts +1 -0
- package/client/src/voice/activity.ts +23 -0
- package/client/src/voice/commandBuffer.ts +104 -0
- package/client/src/voice/commands.ts +96 -0
- package/client/src/voice/computerControl.ts +67 -0
- package/client/src/voice/computerRequest.ts +15 -0
- package/client/src/voice/conditions.ts +24 -0
- package/client/src/voice/conversation.ts +201 -0
- package/client/src/voice/dialogs.ts +30 -0
- package/client/src/voice/executor.ts +519 -0
- package/client/src/voice/mailRules.ts +28 -0
- package/client/src/voice/modes.ts +10 -0
- package/client/src/voice/panels.ts +6 -0
- package/client/src/voice/reservedPhrases.ts +61 -0
- package/client/src/voice/runtime.ts +681 -0
- package/client/src/voice/screen.ts +412 -0
- package/client/src/voice/setupAudio.ts +65 -0
- package/client/src/voice/speech.ts +22 -0
- package/client/src/voice/store.ts +56 -0
- package/client/src/voice/toolBridge.ts +50 -0
- package/client/src/voice/usage.ts +31 -0
- package/client/src/voice/watches.ts +30 -0
- package/client/src/ws/handleServerMessage.ts +2379 -0
- package/client/src/ws/operatorQuestions.ts +28 -0
- package/client/src/ws/streamState.ts +62 -0
- package/client/src/ws/workspaceSync.ts +125 -0
- package/docs/ARCHITECTURE.md +1025 -0
- package/docs/BACKUP.md +303 -0
- package/docs/CHAT.md +188 -0
- package/docs/CHECKPOINTS.md +180 -0
- package/docs/CLIENT.md +1249 -0
- package/docs/CODEX_GPT56_CLUSTER_INCOMPAT.md +79 -0
- package/docs/DEEPSEEK.md +243 -0
- package/docs/DEVELOPMENT_STATUS.md +32 -0
- package/docs/DIAGNOSTICS.md +368 -0
- package/docs/DOCKER.md +296 -0
- package/docs/EXTENDING.md +408 -0
- package/docs/FEATURES.md +147 -0
- package/docs/GENESIS.md +166 -0
- package/docs/GETTING_STARTED.md +378 -0
- package/docs/GIT_WORKBENCH.md +337 -0
- package/docs/GLOSSARY.md +432 -0
- package/docs/GOTCHAS.md +1741 -0
- package/docs/HTTP_API.md +2275 -0
- package/docs/INDEX.md +80 -0
- package/docs/KNOWLEDGE.md +115 -0
- package/docs/LOCAL_SERVICES.md +264 -0
- package/docs/LSP.md +163 -0
- package/docs/MCP_REGISTRY.md +232 -0
- package/docs/MEDIA_STUDIO.md +330 -0
- package/docs/NOTIFICATIONS.md +213 -0
- package/docs/OPERATIONS.md +1304 -0
- package/docs/OPERATOR_ACTIONS.md +169 -0
- package/docs/OUTPUTS.md +92 -0
- package/docs/PERSISTENCE.md +997 -0
- package/docs/PHOSPHOR_DEMO.md +202 -0
- package/docs/PLAN_OR_BOARD.md +21 -0
- package/docs/PREVIEW_VERIFY.md +193 -0
- package/docs/PRIMITIVES.md +1229 -0
- package/docs/PROTOCOL.md +3012 -0
- package/docs/PROTOCOL_CLUSTER.md +1053 -0
- package/docs/PROTOCOL_PRIMITIVES.md +639 -0
- package/docs/PROVIDERS.md +1939 -0
- package/docs/RECALL.md +424 -0
- package/docs/REMOTE_MANAGEMENT.md +329 -0
- package/docs/REPO_LAYOUT.md +69 -0
- package/docs/RESUME_INDEX.md +224 -0
- package/docs/SERVICE_MODE.md +440 -0
- package/docs/SETTINGS.md +189 -0
- package/docs/STRATA.md +260 -0
- package/docs/STYLE.md +62 -0
- package/docs/TASK_LEDGER.md +460 -0
- package/docs/TERMINAL.md +443 -0
- package/docs/THIRD_PARTY.md +53 -0
- package/docs/VOICE.md +1171 -0
- package/docs/releases/v0.1.0.md +66 -0
- package/native/darwin-arm64/better_sqlite3.node +0 -0
- package/native/darwin-arm64/manifest.json +15 -0
- package/native/darwin-arm64/pty/pty.node +0 -0
- package/native/darwin-arm64/pty/spawn-helper +0 -0
- package/native/darwin-x64/better_sqlite3.node +0 -0
- package/native/darwin-x64/manifest.json +15 -0
- package/native/darwin-x64/pty/pty.node +0 -0
- package/native/darwin-x64/pty/spawn-helper +0 -0
- package/native/licenses/NOTICE.md +3 -0
- package/native/licenses/better-sqlite3.txt +21 -0
- package/native/licenses/node-addon-api.txt +9 -0
- package/native/licenses/node-pty.txt +69 -0
- package/native/licenses/winpty.txt +21 -0
- package/native/linux-arm64/better_sqlite3.node +0 -0
- package/native/linux-arm64/manifest.json +14 -0
- package/native/linux-arm64/pty/pty.node +0 -0
- package/native/linux-x64/better_sqlite3.node +0 -0
- package/native/linux-x64/manifest.json +14 -0
- package/native/linux-x64/pty/pty.node +0 -0
- package/native/win32-arm64/better_sqlite3.node +0 -0
- package/native/win32-arm64/manifest.json +18 -0
- package/native/win32-arm64/pty/conpty.node +0 -0
- package/native/win32-arm64/pty/conpty_console_list.node +0 -0
- package/native/win32-arm64/pty/pty.node +0 -0
- package/native/win32-arm64/pty/winpty-agent.exe +0 -0
- package/native/win32-arm64/pty/winpty.dll +0 -0
- package/native/win32-x64/better_sqlite3.node +0 -0
- package/native/win32-x64/manifest.json +18 -0
- package/native/win32-x64/pty/conpty.node +0 -0
- package/native/win32-x64/pty/conpty_console_list.node +0 -0
- package/native/win32-x64/pty/pty.node +0 -0
- package/native/win32-x64/pty/winpty-agent.exe +0 -0
- package/native/win32-x64/pty/winpty.dll +0 -0
- package/node_modules/@arco/shared/dist/autoPickupAck.d.ts +1 -0
- package/node_modules/@arco/shared/dist/autoPickupAck.js +7 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +10 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +55 -0
- package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +8 -0
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +68 -0
- package/node_modules/@arco/shared/dist/index.d.ts +8 -0
- package/node_modules/@arco/shared/dist/index.js +9 -0
- package/node_modules/@arco/shared/dist/localCapacity.d.ts +29 -0
- package/node_modules/@arco/shared/dist/localCapacity.js +63 -0
- package/node_modules/@arco/shared/dist/outputs.d.ts +31 -0
- package/node_modules/@arco/shared/dist/outputs.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.d.ts +5 -0
- package/node_modules/@arco/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.js +194 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +102 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +99 -0
- package/node_modules/@arco/shared/dist/protocol/bakeoffs.d.ts +86 -0
- package/node_modules/@arco/shared/dist/protocol/bakeoffs.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +33 -0
- package/node_modules/@arco/shared/dist/protocol/chat.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +129 -0
- package/node_modules/@arco/shared/dist/protocol/checkpoints.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +218 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +575 -0
- package/node_modules/@arco/shared/dist/protocol/clusters.js +99 -0
- package/node_modules/@arco/shared/dist/protocol/compare.d.ts +78 -0
- package/node_modules/@arco/shared/dist/protocol/compare.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/computerConditions.d.ts +129 -0
- package/node_modules/@arco/shared/dist/protocol/computerConditions.js +8 -0
- package/node_modules/@arco/shared/dist/protocol/connections.d.ts +22 -0
- package/node_modules/@arco/shared/dist/protocol/connections.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/diagnostics.d.ts +17 -0
- package/node_modules/@arco/shared/dist/protocol/diagnostics.js +19 -0
- package/node_modules/@arco/shared/dist/protocol/docEdit.d.ts +44 -0
- package/node_modules/@arco/shared/dist/protocol/docEdit.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/endpointDiscovery.d.ts +15 -0
- package/node_modules/@arco/shared/dist/protocol/endpointDiscovery.js +13 -0
- package/node_modules/@arco/shared/dist/protocol/fallback.d.ts +28 -0
- package/node_modules/@arco/shared/dist/protocol/fallback.js +12 -0
- package/node_modules/@arco/shared/dist/protocol/genesis.d.ts +121 -0
- package/node_modules/@arco/shared/dist/protocol/genesis.js +18 -0
- package/node_modules/@arco/shared/dist/protocol/gitOps.d.ts +44 -0
- package/node_modules/@arco/shared/dist/protocol/gitOps.js +24 -0
- package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +108 -0
- package/node_modules/@arco/shared/dist/protocol/handoffs.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/hardware.d.ts +32 -0
- package/node_modules/@arco/shared/dist/protocol/hardware.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/index.d.ts +50 -0
- package/node_modules/@arco/shared/dist/protocol/index.js +55 -0
- package/node_modules/@arco/shared/dist/protocol/knowledge.d.ts +63 -0
- package/node_modules/@arco/shared/dist/protocol/knowledge.js +37 -0
- package/node_modules/@arco/shared/dist/protocol/liveChanges.d.ts +19 -0
- package/node_modules/@arco/shared/dist/protocol/liveChanges.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/llamacppDiagnose.d.ts +21 -0
- package/node_modules/@arco/shared/dist/protocol/llamacppDiagnose.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/localModels.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/localModels.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/mcp.d.ts +96 -0
- package/node_modules/@arco/shared/dist/protocol/mcp.js +33 -0
- package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +96 -0
- package/node_modules/@arco/shared/dist/protocol/mdTuneup.js +4 -0
- package/node_modules/@arco/shared/dist/protocol/media.d.ts +330 -0
- package/node_modules/@arco/shared/dist/protocol/media.js +115 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +265 -0
- package/node_modules/@arco/shared/dist/protocol/models.js +444 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +60 -0
- package/node_modules/@arco/shared/dist/protocol/notifications.js +79 -0
- package/node_modules/@arco/shared/dist/protocol/ollamaThinking.d.ts +11 -0
- package/node_modules/@arco/shared/dist/protocol/ollamaThinking.js +47 -0
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +42 -0
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/opsDiagnostics.d.ts +94 -0
- package/node_modules/@arco/shared/dist/protocol/opsDiagnostics.js +12 -0
- package/node_modules/@arco/shared/dist/protocol/orchestrationAssist.d.ts +204 -0
- package/node_modules/@arco/shared/dist/protocol/orchestrationAssist.js +8 -0
- package/node_modules/@arco/shared/dist/protocol/phosphorPaletteIds.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/phosphorPaletteIds.js +74 -0
- package/node_modules/@arco/shared/dist/protocol/plans.d.ts +82 -0
- package/node_modules/@arco/shared/dist/protocol/plans.js +11 -0
- package/node_modules/@arco/shared/dist/protocol/previewCapture.d.ts +59 -0
- package/node_modules/@arco/shared/dist/protocol/previewCapture.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/providers.d.ts +29 -0
- package/node_modules/@arco/shared/dist/protocol/providers.js +36 -0
- package/node_modules/@arco/shared/dist/protocol/recall.d.ts +88 -0
- package/node_modules/@arco/shared/dist/protocol/recall.js +9 -0
- package/node_modules/@arco/shared/dist/protocol/remoteManagement.d.ts +353 -0
- package/node_modules/@arco/shared/dist/protocol/remoteManagement.js +15 -0
- package/node_modules/@arco/shared/dist/protocol/research.d.ts +56 -0
- package/node_modules/@arco/shared/dist/protocol/research.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/reviews.d.ts +82 -0
- package/node_modules/@arco/shared/dist/protocol/reviews.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +766 -0
- package/node_modules/@arco/shared/dist/protocol/serverMessages.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/services.d.ts +19 -0
- package/node_modules/@arco/shared/dist/protocol/services.js +14 -0
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +152 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +10 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +179 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.js +16 -0
- package/node_modules/@arco/shared/dist/protocol/templates.d.ts +12 -0
- package/node_modules/@arco/shared/dist/protocol/templates.js +25 -0
- package/node_modules/@arco/shared/dist/protocol/terminal.d.ts +54 -0
- package/node_modules/@arco/shared/dist/protocol/terminal.js +16 -0
- package/node_modules/@arco/shared/dist/protocol/themes.d.ts +7 -0
- package/node_modules/@arco/shared/dist/protocol/themes.js +70 -0
- package/node_modules/@arco/shared/dist/protocol/usage.d.ts +211 -0
- package/node_modules/@arco/shared/dist/protocol/usage.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/usageStats.d.ts +33 -0
- package/node_modules/@arco/shared/dist/protocol/usageStats.js +22 -0
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +43 -0
- package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +50 -0
- package/node_modules/@arco/shared/dist/protocol/voiceOperator.d.ts +131 -0
- package/node_modules/@arco/shared/dist/protocol/voiceOperator.js +20 -0
- package/node_modules/@arco/shared/dist/protocol/workers.d.ts +47 -0
- package/node_modules/@arco/shared/dist/protocol/workers.js +3 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +266 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +40 -0
- package/node_modules/@arco/shared/dist/protocol.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol.js +6 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.js +29 -0
- package/node_modules/@arco/shared/dist/voice.d.ts +136 -0
- package/node_modules/@arco/shared/dist/voice.js +61 -0
- package/node_modules/@arco/shared/package.json +8 -0
- package/node_modules/node-pty/LICENSE +69 -0
- package/node_modules/node-pty/lib/conpty_console_list_agent.js +16 -0
- package/node_modules/node-pty/lib/eventEmitter2.js +47 -0
- package/node_modules/node-pty/lib/index.js +52 -0
- package/node_modules/node-pty/lib/interfaces.js +7 -0
- package/node_modules/node-pty/lib/shared/conout.js +11 -0
- package/node_modules/node-pty/lib/terminal.js +190 -0
- package/node_modules/node-pty/lib/types.js +7 -0
- package/node_modules/node-pty/lib/unixTerminal.js +346 -0
- package/node_modules/node-pty/lib/utils.js +39 -0
- package/node_modules/node-pty/lib/windowsConoutConnection.js +125 -0
- package/node_modules/node-pty/lib/windowsPtyAgent.js +320 -0
- package/node_modules/node-pty/lib/windowsTerminal.js +199 -0
- package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +22 -0
- package/node_modules/node-pty/package.json +30 -0
- package/node_modules/node-pty/typings/node-pty.d.ts +211 -0
- package/package.json +56 -0
- package/scripts/packaging/arco.mjs +166 -0
- package/scripts/packaging/launch.mjs +111 -0
- package/scripts/packaging/native-repair.mjs +91 -0
- package/scripts/packaging/ports.mjs +95 -0
- package/scripts/packaging/service-logs.mjs +63 -0
- package/scripts/packaging/services.mjs +241 -0
- package/scripts/packaging/update.mjs +147 -0
- package/scripts/start.mjs +68 -0
- package/scripts/voice/audition-capture-cues.py +125 -0
- package/scripts/voice/audition-edge.py +107 -0
- package/scripts/voice/audition.py +81 -0
- package/scripts/voice/check-phrases.py +77 -0
- package/scripts/voice/preview.html +266 -0
- package/scripts/voice/preview.ts +222 -0
- package/scripts/voice/run.mjs +20 -0
- package/scripts/voice/setup.py +163 -0
- package/server/dist/appVersion.d.ts +5 -0
- package/server/dist/appVersion.js +7 -0
- package/server/dist/arcoHome.d.ts +1 -0
- package/server/dist/arcoHome.js +11 -0
- package/server/dist/artifacts.d.ts +11 -0
- package/server/dist/artifacts.js +42 -0
- package/server/dist/atomicFile.d.ts +33 -0
- package/server/dist/atomicFile.js +181 -0
- package/server/dist/attention.d.ts +34 -0
- package/server/dist/attention.js +184 -0
- package/server/dist/auth.d.ts +46 -0
- package/server/dist/auth.js +368 -0
- package/server/dist/authLoginInstructions.d.ts +2 -0
- package/server/dist/authLoginInstructions.js +17 -0
- package/server/dist/authLoginSession.d.ts +19 -0
- package/server/dist/authLoginSession.js +129 -0
- package/server/dist/bakeoffStore.d.ts +4 -0
- package/server/dist/bakeoffStore.js +87 -0
- package/server/dist/capabilities.d.ts +38 -0
- package/server/dist/capabilities.js +379 -0
- package/server/dist/catalog.d.ts +6 -0
- package/server/dist/catalog.js +124 -0
- package/server/dist/catchUp.d.ts +34 -0
- package/server/dist/catchUp.js +125 -0
- package/server/dist/chatMode.d.ts +12 -0
- package/server/dist/chatMode.js +113 -0
- package/server/dist/checkoutOwnership.d.ts +17 -0
- package/server/dist/checkoutOwnership.js +125 -0
- package/server/dist/claudeMdDiscovery.d.ts +3 -0
- package/server/dist/claudeMdDiscovery.js +63 -0
- package/server/dist/clusterAccessDoctrine.d.ts +1 -0
- package/server/dist/clusterAccessDoctrine.js +11 -0
- package/server/dist/clusterAutoTurn.d.ts +57 -0
- package/server/dist/clusterAutoTurn.js +442 -0
- package/server/dist/clusterBudget.d.ts +16 -0
- package/server/dist/clusterBudget.js +35 -0
- package/server/dist/clusterDirector.d.ts +3 -0
- package/server/dist/clusterDirector.js +28 -0
- package/server/dist/clusterEfficiency.d.ts +6 -0
- package/server/dist/clusterEfficiency.js +10 -0
- package/server/dist/clusterIdleNudger.d.ts +16 -0
- package/server/dist/clusterIdleNudger.js +199 -0
- package/server/dist/clusterMailbox.d.ts +38 -0
- package/server/dist/clusterMailbox.js +272 -0
- package/server/dist/clusterPeerOps.d.ts +207 -0
- package/server/dist/clusterPeerOps.js +1107 -0
- package/server/dist/clusterPlanBridge.d.ts +41 -0
- package/server/dist/clusterPlanBridge.js +197 -0
- package/server/dist/clusterPlanOutline.d.ts +1 -0
- package/server/dist/clusterPlanOutline.js +27 -0
- package/server/dist/clusterPlanStore.d.ts +61 -0
- package/server/dist/clusterPlanStore.js +276 -0
- package/server/dist/clusterPresets.d.ts +13 -0
- package/server/dist/clusterPresets.js +194 -0
- package/server/dist/clusterProgress.d.ts +2 -0
- package/server/dist/clusterProgress.js +57 -0
- package/server/dist/clusterRehydrate.d.ts +5 -0
- package/server/dist/clusterRehydrate.js +67 -0
- package/server/dist/clusterSnapshotBundle.d.ts +4 -0
- package/server/dist/clusterSnapshotBundle.js +97 -0
- package/server/dist/clusterSnapshots.d.ts +66 -0
- package/server/dist/clusterSnapshots.js +811 -0
- package/server/dist/clusterStore.d.ts +133 -0
- package/server/dist/clusterStore.js +997 -0
- package/server/dist/clusterStringFold.d.ts +21 -0
- package/server/dist/clusterStringFold.js +54 -0
- package/server/dist/clusterVaultCrypto.d.ts +5 -0
- package/server/dist/clusterVaultCrypto.js +80 -0
- package/server/dist/codexRolloutTokens.d.ts +21 -0
- package/server/dist/codexRolloutTokens.js +85 -0
- package/server/dist/codexUsage.d.ts +8 -0
- package/server/dist/codexUsage.js +398 -0
- package/server/dist/codexUsageRpc.d.ts +11 -0
- package/server/dist/codexUsageRpc.js +129 -0
- package/server/dist/configValue.d.ts +17 -0
- package/server/dist/configValue.js +170 -0
- package/server/dist/connectionCatalog.d.ts +3 -0
- package/server/dist/connectionCatalog.js +22 -0
- package/server/dist/contentSearch.d.ts +21 -0
- package/server/dist/contentSearch.js +121 -0
- package/server/dist/contextCalibrator.d.ts +16 -0
- package/server/dist/contextCalibrator.js +172 -0
- package/server/dist/contextEstimator.d.ts +21 -0
- package/server/dist/contextEstimator.js +203 -0
- package/server/dist/contextRefs.d.ts +14 -0
- package/server/dist/contextRefs.js +270 -0
- package/server/dist/crashRecovery.d.ts +8 -0
- package/server/dist/crashRecovery.js +110 -0
- package/server/dist/cursorUsage.d.ts +2 -0
- package/server/dist/cursorUsage.js +244 -0
- package/server/dist/defaults/models.md +168 -0
- package/server/dist/diagnostics/checks.d.ts +7 -0
- package/server/dist/diagnostics/checks.js +806 -0
- package/server/dist/diagnostics/codeSkew.d.ts +16 -0
- package/server/dist/diagnostics/codeSkew.js +131 -0
- package/server/dist/diagnostics/modelHealth.d.ts +2 -0
- package/server/dist/diagnostics/modelHealth.js +424 -0
- package/server/dist/diagnostics/shutdownForensics.d.ts +17 -0
- package/server/dist/diagnostics/shutdownForensics.js +54 -0
- package/server/dist/diagnostics/shutdownWindow.d.ts +9 -0
- package/server/dist/diagnostics/shutdownWindow.js +102 -0
- package/server/dist/diagnostics/supportBundle.d.ts +4 -0
- package/server/dist/diagnostics/supportBundle.js +228 -0
- package/server/dist/envAliases.d.ts +3 -0
- package/server/dist/envAliases.js +24 -0
- package/server/dist/explorerArtifacts.d.ts +16 -0
- package/server/dist/explorerArtifacts.js +165 -0
- package/server/dist/explorerChanged.d.ts +13 -0
- package/server/dist/explorerChanged.js +137 -0
- package/server/dist/explorerDocs.d.ts +13 -0
- package/server/dist/explorerDocs.js +106 -0
- package/server/dist/explorerLaunch.d.ts +14 -0
- package/server/dist/explorerLaunch.js +115 -0
- package/server/dist/explorerPlans.d.ts +2 -0
- package/server/dist/explorerPlans.js +37 -0
- package/server/dist/fileAccessPolicy.d.ts +14 -0
- package/server/dist/fileAccessPolicy.js +141 -0
- package/server/dist/genesis/creative.d.ts +8 -0
- package/server/dist/genesis/creative.js +209 -0
- package/server/dist/genesis/prompts.d.ts +6 -0
- package/server/dist/genesis/prompts.js +194 -0
- package/server/dist/genesis/scaffold.d.ts +16 -0
- package/server/dist/genesis/scaffold.js +311 -0
- package/server/dist/genesis/stages.d.ts +6 -0
- package/server/dist/genesis/stages.js +109 -0
- package/server/dist/git.d.ts +55 -0
- package/server/dist/git.js +279 -0
- package/server/dist/gitBakeoff.d.ts +21 -0
- package/server/dist/gitBakeoff.js +274 -0
- package/server/dist/gitDiff.d.ts +14 -0
- package/server/dist/gitDiff.js +176 -0
- package/server/dist/gitOps.d.ts +32 -0
- package/server/dist/gitOps.js +315 -0
- package/server/dist/gitOtherWork.d.ts +6 -0
- package/server/dist/gitOtherWork.js +107 -0
- package/server/dist/gitSafe.d.ts +4 -0
- package/server/dist/gitSafe.js +62 -0
- package/server/dist/gitSnapshots.d.ts +30 -0
- package/server/dist/gitSnapshots.js +716 -0
- package/server/dist/gitWorking.d.ts +10 -0
- package/server/dist/gitWorking.js +375 -0
- package/server/dist/github.d.ts +326 -0
- package/server/dist/github.js +315 -0
- package/server/dist/goalRun.d.ts +44 -0
- package/server/dist/goalRun.js +135 -0
- package/server/dist/handoffPrompts.d.ts +25 -0
- package/server/dist/handoffPrompts.js +263 -0
- package/server/dist/hardware/fit.d.ts +9 -0
- package/server/dist/hardware/fit.js +301 -0
- package/server/dist/hardware/modelFiles.d.ts +3 -0
- package/server/dist/hardware/modelFiles.js +15 -0
- package/server/dist/hardware/probe.d.ts +9 -0
- package/server/dist/hardware/probe.js +259 -0
- package/server/dist/http/appVersionRoutes.d.ts +2 -0
- package/server/dist/http/appVersionRoutes.js +35 -0
- package/server/dist/http/authLoginRoutes.d.ts +2 -0
- package/server/dist/http/authLoginRoutes.js +57 -0
- package/server/dist/http/clusterRoutes.d.ts +3 -0
- package/server/dist/http/clusterRoutes.js +848 -0
- package/server/dist/http/clusterSnapshotRoutes.d.ts +2 -0
- package/server/dist/http/clusterSnapshotRoutes.js +213 -0
- package/server/dist/http/connectionsRoutes.d.ts +2 -0
- package/server/dist/http/connectionsRoutes.js +39 -0
- package/server/dist/http/deepseekRoutes.d.ts +2 -0
- package/server/dist/http/deepseekRoutes.js +87 -0
- package/server/dist/http/diagnosticsRoutes.d.ts +2 -0
- package/server/dist/http/diagnosticsRoutes.js +101 -0
- package/server/dist/http/diffRoutes.d.ts +2 -0
- package/server/dist/http/diffRoutes.js +60 -0
- package/server/dist/http/endpointDiscoveryRoutes.d.ts +2 -0
- package/server/dist/http/endpointDiscoveryRoutes.js +38 -0
- package/server/dist/http/explorerRoutes.d.ts +2 -0
- package/server/dist/http/explorerRoutes.js +123 -0
- package/server/dist/http/fileRead.d.ts +32 -0
- package/server/dist/http/fileRead.js +57 -0
- package/server/dist/http/fileWriteRoutes.d.ts +12 -0
- package/server/dist/http/fileWriteRoutes.js +138 -0
- package/server/dist/http/gitBakeoffRoutes.d.ts +2 -0
- package/server/dist/http/gitBakeoffRoutes.js +47 -0
- package/server/dist/http/gitCompareRoutes.d.ts +2 -0
- package/server/dist/http/gitCompareRoutes.js +80 -0
- package/server/dist/http/gitDiffRoutes.d.ts +2 -0
- package/server/dist/http/gitDiffRoutes.js +65 -0
- package/server/dist/http/gitOpRoutes.d.ts +2 -0
- package/server/dist/http/gitOpRoutes.js +147 -0
- package/server/dist/http/gitWorktreeRoutes.d.ts +2 -0
- package/server/dist/http/gitWorktreeRoutes.js +51 -0
- package/server/dist/http/githubRoutes.d.ts +2 -0
- package/server/dist/http/githubRoutes.js +211 -0
- package/server/dist/http/imageWriteRoutes.d.ts +2 -0
- package/server/dist/http/imageWriteRoutes.js +160 -0
- package/server/dist/http/knowledgeRoutes.d.ts +2 -0
- package/server/dist/http/knowledgeRoutes.js +91 -0
- package/server/dist/http/mediaOpsRoutes.d.ts +2 -0
- package/server/dist/http/mediaOpsRoutes.js +389 -0
- package/server/dist/http/notificationChannelsRoutes.d.ts +2 -0
- package/server/dist/http/notificationChannelsRoutes.js +46 -0
- package/server/dist/http/originGuard.d.ts +12 -0
- package/server/dist/http/originGuard.js +98 -0
- package/server/dist/http/outputOpen.d.ts +10 -0
- package/server/dist/http/outputOpen.js +53 -0
- package/server/dist/http/outputRoutes.d.ts +2 -0
- package/server/dist/http/outputRoutes.js +132 -0
- package/server/dist/http/packageDocs.d.ts +1 -0
- package/server/dist/http/packageDocs.js +33 -0
- package/server/dist/http/projectRoutes.d.ts +2 -0
- package/server/dist/http/projectRoutes.js +75 -0
- package/server/dist/http/projectTrustRoutes.d.ts +2 -0
- package/server/dist/http/projectTrustRoutes.js +109 -0
- package/server/dist/http/readConfinement.d.ts +11 -0
- package/server/dist/http/readConfinement.js +95 -0
- package/server/dist/http/recallRoutes.d.ts +2 -0
- package/server/dist/http/recallRoutes.js +213 -0
- package/server/dist/http/router.d.ts +14 -0
- package/server/dist/http/router.js +2104 -0
- package/server/dist/http/searchRoutes.d.ts +2 -0
- package/server/dist/http/searchRoutes.js +55 -0
- package/server/dist/http/servicesRoutes.d.ts +2 -0
- package/server/dist/http/servicesRoutes.js +110 -0
- package/server/dist/http/smartPickupRoutes.d.ts +2 -0
- package/server/dist/http/smartPickupRoutes.js +18 -0
- package/server/dist/http/tidyRoutes.d.ts +2 -0
- package/server/dist/http/tidyRoutes.js +45 -0
- package/server/dist/http/usageStatsRoutes.d.ts +13 -0
- package/server/dist/http/usageStatsRoutes.js +269 -0
- package/server/dist/http/utilityAgentRoutes.d.ts +2 -0
- package/server/dist/http/utilityAgentRoutes.js +136 -0
- package/server/dist/http/voiceRoutes.d.ts +2 -0
- package/server/dist/http/voiceRoutes.js +343 -0
- package/server/dist/http/workflowDataRoutes.d.ts +3 -0
- package/server/dist/http/workflowDataRoutes.js +859 -0
- package/server/dist/http/writeConfinement.d.ts +22 -0
- package/server/dist/http/writeConfinement.js +162 -0
- package/server/dist/http/wsAuth.d.ts +18 -0
- package/server/dist/http/wsAuth.js +116 -0
- package/server/dist/index.d.ts +2 -0
- package/server/dist/index.js +2230 -0
- package/server/dist/initialProviders.d.ts +4 -0
- package/server/dist/initialProviders.js +26 -0
- package/server/dist/knowledge/distill.d.ts +34 -0
- package/server/dist/knowledge/distill.js +139 -0
- package/server/dist/knowledge/store.d.ts +37 -0
- package/server/dist/knowledge/store.js +243 -0
- package/server/dist/liveChanges.d.ts +5 -0
- package/server/dist/liveChanges.js +162 -0
- package/server/dist/llamacppCatalog.d.ts +9 -0
- package/server/dist/llamacppCatalog.js +103 -0
- package/server/dist/localCapacity.d.ts +4 -0
- package/server/dist/localCapacity.js +25 -0
- package/server/dist/localModels.d.ts +4 -0
- package/server/dist/localModels.js +167 -0
- package/server/dist/lsp/client.d.ts +57 -0
- package/server/dist/lsp/client.js +412 -0
- package/server/dist/lsp/servers.d.ts +8 -0
- package/server/dist/lsp/servers.js +112 -0
- package/server/dist/management/clusterActivity.d.ts +4 -0
- package/server/dist/management/clusterActivity.js +103 -0
- package/server/dist/management/hubLink.d.ts +32 -0
- package/server/dist/management/hubLink.js +257 -0
- package/server/dist/management/identity.d.ts +3 -0
- package/server/dist/management/identity.js +104 -0
- package/server/dist/management/initHubLink.d.ts +13 -0
- package/server/dist/management/initHubLink.js +829 -0
- package/server/dist/mcp/arcoMcpServer.d.ts +1 -0
- package/server/dist/mcp/arcoMcpServer.js +52 -0
- package/server/dist/mcp/client.d.ts +43 -0
- package/server/dist/mcp/client.js +452 -0
- package/server/dist/mcp/clusterMcpLoopback.d.ts +21 -0
- package/server/dist/mcp/clusterMcpLoopback.js +137 -0
- package/server/dist/mcp/clusterMcpServer.d.ts +1 -0
- package/server/dist/mcp/clusterMcpServer.js +62 -0
- package/server/dist/mcp/clusterMcpTools.d.ts +11 -0
- package/server/dist/mcp/clusterMcpTools.js +588 -0
- package/server/dist/mcp/mcpConfigWriter.d.ts +28 -0
- package/server/dist/mcp/mcpConfigWriter.js +229 -0
- package/server/dist/mcp/osvCheck.d.ts +24 -0
- package/server/dist/mcp/osvCheck.js +126 -0
- package/server/dist/mcp/planMcpTools.d.ts +15 -0
- package/server/dist/mcp/planMcpTools.js +254 -0
- package/server/dist/mcp/registry.d.ts +21 -0
- package/server/dist/mcp/registry.js +123 -0
- package/server/dist/mcp/registryWiring.d.ts +10 -0
- package/server/dist/mcp/registryWiring.js +102 -0
- package/server/dist/mcp/voiceMcpServer.d.ts +1 -0
- package/server/dist/mcp/voiceMcpServer.js +49 -0
- package/server/dist/mdTuneupPrompt.d.ts +11 -0
- package/server/dist/mdTuneupPrompt.js +78 -0
- package/server/dist/media/demucs.d.ts +25 -0
- package/server/dist/media/demucs.js +298 -0
- package/server/dist/media/ffmpeg.d.ts +43 -0
- package/server/dist/media/ffmpeg.js +972 -0
- package/server/dist/media/scratch.d.ts +15 -0
- package/server/dist/media/scratch.js +204 -0
- package/server/dist/memoryMonitor.d.ts +11 -0
- package/server/dist/memoryMonitor.js +69 -0
- package/server/dist/nativeSqlite.d.ts +5 -0
- package/server/dist/nativeSqlite.js +27 -0
- package/server/dist/net/forceIpv4.d.ts +1 -0
- package/server/dist/net/forceIpv4.js +28 -0
- package/server/dist/notifications.d.ts +31 -0
- package/server/dist/notifications.js +145 -0
- package/server/dist/npmPlatformResolve.d.ts +43 -0
- package/server/dist/npmPlatformResolve.js +157 -0
- package/server/dist/ntfyTransport.d.ts +26 -0
- package/server/dist/ntfyTransport.js +147 -0
- package/server/dist/outputStore.d.ts +19 -0
- package/server/dist/outputStore.js +68 -0
- package/server/dist/outputs.d.ts +38 -0
- package/server/dist/outputs.js +465 -0
- package/server/dist/peerRecipientContext.d.ts +19 -0
- package/server/dist/peerRecipientContext.js +32 -0
- package/server/dist/planRefContext.d.ts +24 -0
- package/server/dist/planRefContext.js +168 -0
- package/server/dist/planStore.d.ts +51 -0
- package/server/dist/planStore.js +471 -0
- package/server/dist/preview/captureViaCdp.d.ts +25 -0
- package/server/dist/preview/captureViaCdp.js +488 -0
- package/server/dist/previewAutoDetect.d.ts +21 -0
- package/server/dist/previewAutoDetect.js +319 -0
- package/server/dist/previewProxy.d.ts +9 -0
- package/server/dist/previewProxy.js +200 -0
- package/server/dist/primaryBackgroundTracker.d.ts +25 -0
- package/server/dist/primaryBackgroundTracker.js +232 -0
- package/server/dist/primitiveDrift.d.ts +7 -0
- package/server/dist/primitiveDrift.js +45 -0
- package/server/dist/primitives/exportContext.d.ts +53 -0
- package/server/dist/primitives/exportContext.js +747 -0
- package/server/dist/primitives/mdTuneupUndo.d.ts +20 -0
- package/server/dist/primitives/mdTuneupUndo.js +65 -0
- package/server/dist/primitives/parseReviewFindings.d.ts +8 -0
- package/server/dist/primitives/parseReviewFindings.js +93 -0
- package/server/dist/primitives/quickHandoff.d.ts +2 -0
- package/server/dist/primitives/quickHandoff.js +56 -0
- package/server/dist/primitives/reviewContent.d.ts +43 -0
- package/server/dist/primitives/reviewContent.js +686 -0
- package/server/dist/primitives/reviewSchema.d.ts +49 -0
- package/server/dist/primitives/reviewSchema.js +124 -0
- package/server/dist/primitives/runCompare.d.ts +36 -0
- package/server/dist/primitives/runCompare.js +162 -0
- package/server/dist/primitives/runDocEdit.d.ts +33 -0
- package/server/dist/primitives/runDocEdit.js +167 -0
- package/server/dist/primitives/runMdTuneup.d.ts +40 -0
- package/server/dist/primitives/runMdTuneup.js +398 -0
- package/server/dist/primitives/runResearch.d.ts +33 -0
- package/server/dist/primitives/runResearch.js +303 -0
- package/server/dist/primitives/runReviewer.d.ts +36 -0
- package/server/dist/primitives/runReviewer.js +330 -0
- package/server/dist/primitives/seedWorker.d.ts +87 -0
- package/server/dist/primitives/seedWorker.js +558 -0
- package/server/dist/project/orchestrationProposals.d.ts +17 -0
- package/server/dist/project/orchestrationProposals.js +258 -0
- package/server/dist/project/taskLedger.d.ts +84 -0
- package/server/dist/project/taskLedger.js +709 -0
- package/server/dist/project/taskWorktree.d.ts +10 -0
- package/server/dist/project/taskWorktree.js +187 -0
- package/server/dist/projectRecords.d.ts +67 -0
- package/server/dist/projectRecords.js +284 -0
- package/server/dist/projectStateIgnore.d.ts +4 -0
- package/server/dist/projectStateIgnore.js +26 -0
- package/server/dist/projectTrust.d.ts +33 -0
- package/server/dist/projectTrust.js +251 -0
- package/server/dist/projects.d.ts +62 -0
- package/server/dist/projects.js +377 -0
- package/server/dist/prompts.d.ts +29 -0
- package/server/dist/prompts.js +169 -0
- package/server/dist/providerAccounts.d.ts +11 -0
- package/server/dist/providerAccounts.js +62 -0
- package/server/dist/providers/attachments.d.ts +30 -0
- package/server/dist/providers/attachments.js +314 -0
- package/server/dist/providers/claude-native/appendOnlyPrefix.d.ts +86 -0
- package/server/dist/providers/claude-native/appendOnlyPrefix.js +256 -0
- package/server/dist/providers/claude-native/auth.d.ts +16 -0
- package/server/dist/providers/claude-native/auth.js +104 -0
- package/server/dist/providers/claude-native/authStatus.d.ts +2 -0
- package/server/dist/providers/claude-native/authStatus.js +33 -0
- package/server/dist/providers/claude-native/catalog.d.ts +66 -0
- package/server/dist/providers/claude-native/catalog.js +123 -0
- package/server/dist/providers/claude-native/contentBlocks.d.ts +125 -0
- package/server/dist/providers/claude-native/contentBlocks.js +345 -0
- package/server/dist/providers/claude-native/contextBudget.d.ts +24 -0
- package/server/dist/providers/claude-native/contextBudget.js +43 -0
- package/server/dist/providers/claude-native/editApply.d.ts +10 -0
- package/server/dist/providers/claude-native/editApply.js +178 -0
- package/server/dist/providers/claude-native/file-mutation-queue.d.ts +2 -0
- package/server/dist/providers/claude-native/file-mutation-queue.js +104 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-cargo-test.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-cargo-test.js +70 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-find.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-find.js +16 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-git-status.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-git-status.js +28 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-grep.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-grep.js +14 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-jest-vitest.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-jest-vitest.js +54 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-ls.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-ls.js +10 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-pytest.d.ts +2 -0
- package/server/dist/providers/claude-native/filterConfigs/bash-pytest.js +48 -0
- package/server/dist/providers/claude-native/filterConfigs/index.d.ts +4 -0
- package/server/dist/providers/claude-native/filterConfigs/index.js +83 -0
- package/server/dist/providers/claude-native/filterToolResult.d.ts +23 -0
- package/server/dist/providers/claude-native/filterToolResult.js +138 -0
- package/server/dist/providers/claude-native/foldDigest.d.ts +10 -0
- package/server/dist/providers/claude-native/foldDigest.js +123 -0
- package/server/dist/providers/claude-native/gateReview.d.ts +26 -0
- package/server/dist/providers/claude-native/gateReview.js +0 -0
- package/server/dist/providers/claude-native/gateStore.d.ts +28 -0
- package/server/dist/providers/claude-native/gateStore.js +109 -0
- package/server/dist/providers/claude-native/hooks.d.ts +45 -0
- package/server/dist/providers/claude-native/hooks.js +234 -0
- package/server/dist/providers/claude-native/index.d.ts +65 -0
- package/server/dist/providers/claude-native/index.js +351 -0
- package/server/dist/providers/claude-native/modelParams.d.ts +8 -0
- package/server/dist/providers/claude-native/modelParams.js +171 -0
- package/server/dist/providers/claude-native/oauth.d.ts +32 -0
- package/server/dist/providers/claude-native/oauth.js +341 -0
- package/server/dist/providers/claude-native/outputAccumulator.d.ts +31 -0
- package/server/dist/providers/claude-native/outputAccumulator.js +99 -0
- package/server/dist/providers/claude-native/outputStyle.d.ts +2 -0
- package/server/dist/providers/claude-native/outputStyle.js +2 -0
- package/server/dist/providers/claude-native/peerTools.d.ts +17 -0
- package/server/dist/providers/claude-native/peerTools.js +476 -0
- package/server/dist/providers/claude-native/pretoolGuards.d.ts +44 -0
- package/server/dist/providers/claude-native/pretoolGuards.js +230 -0
- package/server/dist/providers/claude-native/rateLimit.d.ts +10 -0
- package/server/dist/providers/claude-native/rateLimit.js +123 -0
- package/server/dist/providers/claude-native/registryTools.d.ts +11 -0
- package/server/dist/providers/claude-native/registryTools.js +152 -0
- package/server/dist/providers/claude-native/resumeSummary.d.ts +56 -0
- package/server/dist/providers/claude-native/resumeSummary.js +522 -0
- package/server/dist/providers/claude-native/retainedContext.d.ts +20 -0
- package/server/dist/providers/claude-native/retainedContext.js +170 -0
- package/server/dist/providers/claude-native/sandboxExecutor.d.ts +16 -0
- package/server/dist/providers/claude-native/sandboxExecutor.js +174 -0
- package/server/dist/providers/claude-native/sandboxStore.d.ts +44 -0
- package/server/dist/providers/claude-native/sandboxStore.js +154 -0
- package/server/dist/providers/claude-native/sandboxTools.d.ts +10 -0
- package/server/dist/providers/claude-native/sandboxTools.js +180 -0
- package/server/dist/providers/claude-native/serverFold.d.ts +56 -0
- package/server/dist/providers/claude-native/serverFold.js +280 -0
- package/server/dist/providers/claude-native/toolLoopGuard.d.ts +26 -0
- package/server/dist/providers/claude-native/toolLoopGuard.js +118 -0
- package/server/dist/providers/claude-native/toolPosture.d.ts +15 -0
- package/server/dist/providers/claude-native/toolPosture.js +121 -0
- package/server/dist/providers/claude-native/toolResultEviction.d.ts +26 -0
- package/server/dist/providers/claude-native/toolResultEviction.js +203 -0
- package/server/dist/providers/claude-native/tools.d.ts +57 -0
- package/server/dist/providers/claude-native/tools.js +901 -0
- package/server/dist/providers/claude-native/wireFingerprint.d.ts +2 -0
- package/server/dist/providers/claude-native/wireFingerprint.js +14 -0
- package/server/dist/providers/claude-native/worker.d.ts +188 -0
- package/server/dist/providers/claude-native/worker.js +3450 -0
- package/server/dist/providers/claude-native/workerHelpers.d.ts +11 -0
- package/server/dist/providers/claude-native/workerHelpers.js +254 -0
- package/server/dist/providers/claude-native/workspaceFacts.d.ts +20 -0
- package/server/dist/providers/claude-native/workspaceFacts.js +167 -0
- package/server/dist/providers/claude.d.ts +5 -0
- package/server/dist/providers/claude.js +704 -0
- package/server/dist/providers/codex-appserver/bindings/AbsolutePathBuf.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/AbsolutePathBuf.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/AgentPath.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/AgentPath.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalParams.d.ts +22 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ApplyPatchApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/AuthMode.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/AuthMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/ClientInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ClientRequest.d.ts +470 -0
- package/server/dist/providers/codex-appserver/bindings/ClientRequest.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/CollaborationMode.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/CollaborationMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ContentItem.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/ContentItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationGitInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationGitInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationSummary.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/ConversationSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ExecCommandApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ExecPolicyAmendment.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/ExecPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FileChange.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/FileChange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ForcedLoginMethod.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ForcedLoginMethod.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputBody.d.ts +2 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputBody.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputContentItem.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/FunctionCallOutputContentItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchMatchType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchMatchType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResult.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchResult.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionCompletedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/GetAuthStatusResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/GetConversationSummaryResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/GitDiffToRemoteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/GitSha.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/GitSha.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ImageDetail.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ImageDetail.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeCapabilities.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeCapabilities.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeResponse.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/InitializeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InputModality.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/InputModality.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/InternalSessionSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/InternalSessionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellAction.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellExecAction.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellExecAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/LocalShellStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/MessagePhase.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/MessagePhase.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ModeKind.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ModeKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyAmendment.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyRuleAction.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/NetworkPolicyRuleAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ParsedCommand.d.ts +24 -0
- package/server/dist/providers/codex-appserver/bindings/ParsedCommand.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Personality.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/Personality.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/PlanType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/PlanType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeConversationVersion.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeConversationVersion.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeOutputModality.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeOutputModality.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoice.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoice.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoicesList.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/RealtimeVoicesList.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningEffort.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningEffort.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemContent.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemContent.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemReasoningSummary.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningItemReasoningSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningSummary.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/ReasoningSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/RequestId.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/RequestId.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Resource.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/Resource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceContent.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceContent.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceTemplate.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/ResourceTemplate.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ResponseItem.d.ts +75 -0
- package/server/dist/providers/codex-appserver/bindings/ResponseItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ReviewDecision.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/ReviewDecision.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ServerNotification.d.ts +252 -0
- package/server/dist/providers/codex-appserver/bindings/ServerNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ServerRequest.d.ts +50 -0
- package/server/dist/providers/codex-appserver/bindings/ServerRequest.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ServiceTier.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ServiceTier.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/SessionSource.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/SessionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Settings.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/Settings.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/SubAgentSource.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/SubAgentSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadId.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadId.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadMemoryMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/ThreadMemoryMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Tool.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/Tool.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/Verbosity.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/Verbosity.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchAction.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchContextSize.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchContextSize.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchLocation.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchLocation.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchToolConfig.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/WebSearchToolConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/index.d.ts +84 -0
- package/server/dist/providers/codex-appserver/bindings/index.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/serde_json/JsonValue.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/serde_json/JsonValue.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Account.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Account.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountLoginCompletedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountLoginCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountRateLimitsUpdatedNotification.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountRateLimitsUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AccountUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfile.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfileModification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ActivePermissionProfileModification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeCreditType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeCreditType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeEmailStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AddCreditsNudgeEmailStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalFileSystemPermissions.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalFileSystemPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalNetworkPermissions.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalNetworkPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalPermissionProfile.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AdditionalPermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AgentMessageDeltaNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AgentMessageDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AnalyticsConfig.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AnalyticsConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppBranding.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppBranding.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppInfo.d.ts +30 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppListUpdatedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppListUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppMetadata.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppReview.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppReview.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppScreenshot.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppScreenshot.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppSummary.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolApproval.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolApproval.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolsConfig.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppToolsConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ApprovalsReviewer.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ApprovalsReviewer.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsConfig.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsDefaultConfig.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsDefaultConfig.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListParams.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListResponse.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AppsListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AskForApproval.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AskForApproval.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AutoReviewDecisionSource.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/AutoReviewDecisionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ByteRange.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ByteRange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CancelLoginAccountStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshReason.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshReason.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CodexErrorInfo.d.ts +28 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CodexErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentState.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentState.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentTool.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentTool.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentToolCallStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollabAgentToolCallStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeMask.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CollaborationModeMask.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandAction.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputDeltaNotification.d.ts +27 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputStream.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecOutputStream.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecParams.d.ts +105 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeParams.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResizeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResponse.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminalSize.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminalSize.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecTerminateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteParams.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecWriteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionApprovalDecision.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionApprovalDecision.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionOutputDeltaNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionOutputDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalParams.d.ts +58 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandExecutionStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CommandMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Config.d.ts +51 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Config.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigBatchWriteParams.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigBatchWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigEdit.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigEdit.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayer.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayer.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerMetadata.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerSource.d.ts +30 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigLayerSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirements.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirements.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirementsReadResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigRequirementsReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigValueWriteParams.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigValueWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWarningNotification.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWriteResponse.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfigWriteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookHandler.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookHandler.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookMatcherGroup.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ConfiguredHookMatcherGroup.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ContextCompactedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ContextCompactedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CreditsSnapshot.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/CreditsSnapshot.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeprecationNoticeNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeprecationNoticeNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyAlgorithm.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyAlgorithm.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateParams.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateResponse.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyCreateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionClass.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionClass.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionPolicy.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyProtectionPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicResponse.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeyPublicResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignPayload.d.ts +62 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignPayload.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignResponse.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DeviceKeySignResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallOutputContentItem.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallOutputContentItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolCallStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolSpec.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/DynamicToolSpec.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ErrorNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ErrorNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExecPolicyAmendment.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExecPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeature.d.ts +34 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeature.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetParams.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetResponse.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureStage.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExperimentalFeatureStage.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportCompletedNotification.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItem.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItemType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItemType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FeedbackUploadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeApprovalDecision.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeApprovalDecision.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeOutputDeltaNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeOutputDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangePatchUpdatedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangePatchUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemAccessMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemAccessMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemPath.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemPath.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSandboxEntry.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSandboxEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSpecialPath.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileSystemSpecialPath.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileUpdateChange.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FileUpdateChange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsChangedNotification.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCopyResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsCreateDirectoryResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataResponse.d.ts +25 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsGetMetadataResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryEntry.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadDirectoryResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsReadFileResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsRemoveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsUnwatchResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWatchResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/FsWriteFileResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountRateLimitsResponse.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountRateLimitsResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GetAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GitInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GitInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GrantedPermissionProfile.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GrantedPermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReview.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReview.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewAction.d.ts +37 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewStatus.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianApprovalReviewStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianCommandSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianCommandSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianRiskLevel.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianRiskLevel.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianUserAuthorization.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianUserAuthorization.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianWarningNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/GuardianWarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookErrorInfo.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookEventName.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookEventName.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookExecutionMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookExecutionMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookHandlerType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookHandlerType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMetadata.d.ts +19 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntry.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntryKind.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookOutputEntryKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookPromptFragment.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookPromptFragment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunSummary.d.ts +24 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookRunSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookScope.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookScope.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookStartedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HookStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListEntry.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/HooksListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewCompletedNotification.d.ts +32 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewStartedNotification.d.ts +30 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemStartedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ItemStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusParams.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ListMcpServerStatusResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountParams.d.ts +27 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountResponse.d.ts +23 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LoginAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LogoutAccountResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/LogoutAccountResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ManagedHooksRequirements.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ManagedHooksRequirements.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceAddResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceInterface.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceInterface.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceLoadErrorInfo.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceLoadErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceRemoveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeErrorInfo.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MarketplaceUpgradeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpAuthStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpAuthStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationArrayType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationArrayType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanSchema.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationBooleanType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationConstOption.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationConstOption.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationEnumSchema.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationLegacyTitledEnumSchema.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationLegacyTitledEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationMultiSelectEnumSchema.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationMultiSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberSchema.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationNumberType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationObjectType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationObjectType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationPrimitiveSchema.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationPrimitiveSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSchema.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSingleSelectEnumSchema.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationSingleSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringFormat.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringFormat.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringSchema.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationStringType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledEnumItems.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledEnumItems.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledMultiSelectEnumSchema.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledMultiSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledSingleSelectEnumSchema.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationTitledSingleSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledEnumItems.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledEnumItems.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledMultiSelectEnumSchema.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledMultiSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledSingleSelectEnumSchema.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpElicitationUntitledSingleSelectEnumSchema.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpResourceReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationAction.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestParams.d.ts +26 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestResponse.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerElicitationRequestResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginCompletedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerOauthLoginResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerRefreshResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerRefreshResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStartupState.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStartupState.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatus.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusDetail.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusDetail.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerStatusUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpServerToolCallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallError.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallError.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallProgressNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallProgressNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallResult.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallResult.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/McpToolCallStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitation.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitation.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitationEntry.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryCitationEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryResetResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MemoryResetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MergeStrategy.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MergeStrategy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MigrationDetails.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MigrationDetails.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/MockExperimentalMethodResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Model.d.ts +21 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Model.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelAvailabilityNux.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelAvailabilityNux.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListParams.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadParams.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadResponse.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelRerouteReason.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelRerouteReason.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelReroutedNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelReroutedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelUpgradeInfo.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelUpgradeInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerification.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerificationNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ModelVerificationNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkAccess.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkAccess.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalContext.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalContext.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalProtocol.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkApprovalProtocol.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkDomainPermission.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkDomainPermission.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyAmendment.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyAmendment.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyRuleAction.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkPolicyRuleAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkRequirements.d.ts +40 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkRequirements.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkUnixSocketPermission.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NetworkUnixSocketPermission.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NonSteerableTurnKind.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/NonSteerableTurnKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/OverriddenMetadata.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/OverriddenMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchApplyStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchApplyStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchChangeKind.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PatchChangeKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionGrantScope.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionGrantScope.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfile.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileFileSystemPermissions.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileFileSystemPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileModificationParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileModificationParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileNetworkPermissions.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileNetworkPermissions.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileSelectionParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionProfileSelectionParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalResponse.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PlanDeltaNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PlanDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginAuthPolicy.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginAuthPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginDetail.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginDetail.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallPolicy.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallResponse.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInstallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInterface.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginInterface.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginMarketplaceEntry.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginMarketplaceEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSource.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSummary.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginUninstallResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginsMigration.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/PluginsMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ProfileV2.d.ts +31 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ProfileV2.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitReachedType.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitReachedType.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitSnapshot.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitSnapshot.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitWindow.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RateLimitWindow.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RawResponseItemCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RawResponseItemCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningEffortOption.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningEffortOption.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryPartAddedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryPartAddedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryTextDeltaNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningSummaryTextDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningTextDeltaNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReasoningTextDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientConnectionAudience.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientConnectionAudience.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientEnrollmentAudience.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlClientEnrollmentAudience.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlConnectionStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlConnectionStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlStatusChangedNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RemoteControlStatusChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RequestPermissionProfile.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/RequestPermissionProfile.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ResidencyRequirement.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ResidencyRequirement.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewDelivery.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewDelivery.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartParams.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartResponse.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewTarget.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ReviewTarget.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxPolicy.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxPolicy.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxWorkspaceWrite.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SandboxWorkspaceWrite.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ServerRequestResolvedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ServerRequestResolvedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionMigration.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionSource.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SessionSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillDependencies.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillDependencies.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillErrorInfo.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillErrorInfo.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillInterface.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillInterface.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillMetadata.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillMetadata.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillScope.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillScope.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillSummary.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillSummary.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillToolDependency.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillToolDependency.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsChangedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteParams.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsConfigWriteResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListEntry.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListEntry.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListExtraRootsForCwd.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListExtraRootsForCwd.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListParams.d.ts +15 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SkillsListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SortDirection.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SortDirection.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SubagentMigration.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/SubagentMigration.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TerminalInteractionNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TerminalInteractionNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextElement.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextElement.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextPosition.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextPosition.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextRange.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TextRange.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Thread.d.ts +75 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Thread.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadActiveFlag.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadActiveFlag.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchiveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchivedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadArchivedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadClosedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadClosedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadCompactStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationResponse.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkParams.d.ts +63 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkParams.js +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkResponse.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadForkResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoal.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoal.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalClearedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalGetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetParams.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalSetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadGoalUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationParams.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationResponse.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadInjectItemsResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadItem.d.ts +180 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadItem.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListParams.d.ts +51 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListResponse.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListResponse.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadLoadedListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataGitInfoUpdateParams.d.ts +17 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataGitInfoUpdateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadNameUpdatedNotification.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadNameUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadParams.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadReadResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioParams.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextParams.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAudioChunk.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeAudioChunk.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeClosedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeClosedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeErrorNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeErrorNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeItemAddedNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeItemAddedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesResponse.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeOutputAudioDeltaNotification.d.ts +8 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeOutputAudioDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeSdpNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeSdpNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartParams.d.ts +18 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartTransport.d.ts +13 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartTransport.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartedNotification.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeStopResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDeltaNotification.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDeltaNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDoneNotification.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDoneNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeParams.d.ts +73 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeParams.js +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeResponse.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadResumeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackResponse.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadRollbackResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSetNameResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadShellCommandResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSortKey.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSortKey.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSourceKind.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadSourceKind.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartParams.d.ts +66 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartParams.js +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartResponse.d.ts +42 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartSource.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartSource.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartedNotification.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatus.d.ts +11 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatusChangedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadStatusChangedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsage.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsage.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsageUpdatedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTokenUsageUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListParams.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListResponse.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadTurnsListResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchiveResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchivedNotification.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnarchivedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeParams.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ThreadUnsubscribeStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TokenUsageBreakdown.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TokenUsageBreakdown.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputAnswer.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputAnswer.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputOption.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputOption.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputParams.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputQuestion.d.ts +12 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputQuestion.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputResponse.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolRequestUserInputResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolsV2.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/ToolsV2.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Turn.d.ts +29 -0
- package/server/dist/providers/codex-appserver/bindings/v2/Turn.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnCompletedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnDiffUpdatedNotification.d.ts +9 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnDiffUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnEnvironmentParams.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnEnvironmentParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnError.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnError.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptParams.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptResponse.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnInterruptResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStep.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStep.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStepStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanStepStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanUpdatedNotification.d.ts +7 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnPlanUpdatedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartParams.d.ts +87 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartResponse.d.ts +4 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartedNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStartedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerParams.d.ts +16 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/TurnSteerResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/UserInput.d.ts +23 -0
- package/server/dist/providers/codex-appserver/bindings/v2/UserInput.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WarningNotification.d.ts +10 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WebSearchAction.d.ts +14 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WebSearchAction.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupCompletedNotification.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupCompletedNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupMode.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupMode.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartParams.d.ts +6 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartParams.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartResponse.d.ts +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartResponse.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsWorldWritableWarningNotification.d.ts +5 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WindowsWorldWritableWarningNotification.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WriteStatus.d.ts +1 -0
- package/server/dist/providers/codex-appserver/bindings/v2/WriteStatus.js +3 -0
- package/server/dist/providers/codex-appserver/bindings/v2/index.d.ts +458 -0
- package/server/dist/providers/codex-appserver/bindings/v2/index.js +3 -0
- package/server/dist/providers/codex-appserver/catalog.d.ts +5 -0
- package/server/dist/providers/codex-appserver/catalog.js +193 -0
- package/server/dist/providers/codex-appserver/imageGen.d.ts +30 -0
- package/server/dist/providers/codex-appserver/imageGen.js +130 -0
- package/server/dist/providers/codex-appserver/index.d.ts +10 -0
- package/server/dist/providers/codex-appserver/index.js +473 -0
- package/server/dist/providers/codex-appserver/jsonRpc.d.ts +43 -0
- package/server/dist/providers/codex-appserver/jsonRpc.js +215 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +37 -0
- package/server/dist/providers/codex-appserver/operatorQuestions.js +144 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +110 -0
- package/server/dist/providers/codex-appserver/worker.js +1515 -0
- package/server/dist/providers/codex-stream.d.ts +18 -0
- package/server/dist/providers/codex-stream.js +248 -0
- package/server/dist/providers/codex.d.ts +11 -0
- package/server/dist/providers/codex.js +495 -0
- package/server/dist/providers/codexCodeMode.d.ts +5 -0
- package/server/dist/providers/codexCodeMode.js +102 -0
- package/server/dist/providers/codexContextWindow.d.ts +8 -0
- package/server/dist/providers/codexContextWindow.js +39 -0
- package/server/dist/providers/cursor/acpJsonRpc.d.ts +40 -0
- package/server/dist/providers/cursor/acpJsonRpc.js +173 -0
- package/server/dist/providers/cursor/acpSegments.d.ts +8 -0
- package/server/dist/providers/cursor/acpSegments.js +18 -0
- package/server/dist/providers/cursor/authToken.d.ts +9 -0
- package/server/dist/providers/cursor/authToken.js +50 -0
- package/server/dist/providers/cursor/catalog.d.ts +5 -0
- package/server/dist/providers/cursor/catalog.js +112 -0
- package/server/dist/providers/cursor/index.d.ts +36 -0
- package/server/dist/providers/cursor/index.js +346 -0
- package/server/dist/providers/cursor/print.d.ts +2 -0
- package/server/dist/providers/cursor/print.js +155 -0
- package/server/dist/providers/cursor/worker.d.ts +72 -0
- package/server/dist/providers/cursor/worker.js +691 -0
- package/server/dist/providers/deepseek.d.ts +11 -0
- package/server/dist/providers/deepseek.js +33 -0
- package/server/dist/providers/deepseekProfiles.d.ts +71 -0
- package/server/dist/providers/deepseekProfiles.js +239 -0
- package/server/dist/providers/endpointDiscovery.d.ts +20 -0
- package/server/dist/providers/endpointDiscovery.js +303 -0
- package/server/dist/providers/errorClassifier.d.ts +18 -0
- package/server/dist/providers/errorClassifier.js +203 -0
- package/server/dist/providers/fallbackChain.d.ts +53 -0
- package/server/dist/providers/fallbackChain.js +137 -0
- package/server/dist/providers/goalBlock.d.ts +4 -0
- package/server/dist/providers/goalBlock.js +54 -0
- package/server/dist/providers/index.d.ts +6 -0
- package/server/dist/providers/index.js +152 -0
- package/server/dist/providers/llamacpp.d.ts +25 -0
- package/server/dist/providers/llamacpp.js +1212 -0
- package/server/dist/providers/llamacppBinary.d.ts +7 -0
- package/server/dist/providers/llamacppBinary.js +39 -0
- package/server/dist/providers/llamacppManager.d.ts +49 -0
- package/server/dist/providers/llamacppManager.js +504 -0
- package/server/dist/providers/llamacppRecovery.d.ts +30 -0
- package/server/dist/providers/llamacppRecovery.js +218 -0
- package/server/dist/providers/llamacppServeDiagnose.d.ts +6 -0
- package/server/dist/providers/llamacppServeDiagnose.js +139 -0
- package/server/dist/providers/lmstudio.d.ts +56 -0
- package/server/dist/providers/lmstudio.js +824 -0
- package/server/dist/providers/localModelControl.d.ts +6 -0
- package/server/dist/providers/localModelControl.js +19 -0
- package/server/dist/providers/ollama.d.ts +115 -0
- package/server/dist/providers/ollama.js +2334 -0
- package/server/dist/providers/ollamaBoundaryStore.d.ts +13 -0
- package/server/dist/providers/ollamaBoundaryStore.js +63 -0
- package/server/dist/providers/ollamaCtxFallback.d.ts +25 -0
- package/server/dist/providers/ollamaCtxFallback.js +115 -0
- package/server/dist/providers/ollamaDurableCompaction.d.ts +21 -0
- package/server/dist/providers/ollamaDurableCompaction.js +107 -0
- package/server/dist/providers/ollamaExecutionHistory.d.ts +21 -0
- package/server/dist/providers/ollamaExecutionHistory.js +109 -0
- package/server/dist/providers/ollamaFencedTools.d.ts +22 -0
- package/server/dist/providers/ollamaFencedTools.js +397 -0
- package/server/dist/providers/ollamaForceCompact.d.ts +2 -0
- package/server/dist/providers/ollamaForceCompact.js +35 -0
- package/server/dist/providers/ollamaParams.d.ts +25 -0
- package/server/dist/providers/ollamaParams.js +164 -0
- package/server/dist/providers/ollamaRecovery.d.ts +56 -0
- package/server/dist/providers/ollamaRecovery.js +371 -0
- package/server/dist/providers/ollamaResilience.d.ts +86 -0
- package/server/dist/providers/ollamaResilience.js +382 -0
- package/server/dist/providers/ollamaTokens.d.ts +44 -0
- package/server/dist/providers/ollamaTokens.js +179 -0
- package/server/dist/providers/ollamaToolSubset.d.ts +18 -0
- package/server/dist/providers/ollamaToolSubset.js +202 -0
- package/server/dist/providers/ollamaTools.d.ts +38 -0
- package/server/dist/providers/ollamaTools.js +1164 -0
- package/server/dist/providers/ollamaUtility.d.ts +74 -0
- package/server/dist/providers/ollamaUtility.js +383 -0
- package/server/dist/providers/ollamaVram.d.ts +23 -0
- package/server/dist/providers/ollamaVram.js +322 -0
- package/server/dist/providers/outputSignature.d.ts +1 -0
- package/server/dist/providers/outputSignature.js +23 -0
- package/server/dist/providers/outputStyle.d.ts +2 -0
- package/server/dist/providers/outputStyle.js +87 -0
- package/server/dist/providers/ragInjection.d.ts +47 -0
- package/server/dist/providers/ragInjection.js +230 -0
- package/server/dist/providers/runtimeVersions.d.ts +4 -0
- package/server/dist/providers/runtimeVersions.js +54 -0
- package/server/dist/providers/strata.d.ts +11 -0
- package/server/dist/providers/strata.js +60 -0
- package/server/dist/providers/strataProfiles.d.ts +50 -0
- package/server/dist/providers/strataProfiles.js +212 -0
- package/server/dist/providers/types.d.ts +48 -0
- package/server/dist/providers/types.js +2 -0
- package/server/dist/quota.d.ts +44 -0
- package/server/dist/quota.js +136 -0
- package/server/dist/recall/index.d.ts +53 -0
- package/server/dist/recall/index.js +747 -0
- package/server/dist/recall/search.d.ts +12 -0
- package/server/dist/recall/search.js +164 -0
- package/server/dist/recall/summarize.d.ts +20 -0
- package/server/dist/recall/summarize.js +177 -0
- package/server/dist/recentFilesLedger.d.ts +22 -0
- package/server/dist/recentFilesLedger.js +134 -0
- package/server/dist/rulePickupGuard.d.ts +26 -0
- package/server/dist/rulePickupGuard.js +96 -0
- package/server/dist/runtimeEnv.d.ts +3 -0
- package/server/dist/runtimeEnv.js +86 -0
- package/server/dist/server/broadcast.d.ts +56 -0
- package/server/dist/server/broadcast.js +636 -0
- package/server/dist/server/constants.d.ts +17 -0
- package/server/dist/server/constants.js +68 -0
- package/server/dist/server/logger.d.ts +18 -0
- package/server/dist/server/logger.js +187 -0
- package/server/dist/server/prompts.d.ts +11 -0
- package/server/dist/server/prompts.js +79 -0
- package/server/dist/server/readiness.d.ts +10 -0
- package/server/dist/server/readiness.js +43 -0
- package/server/dist/server/state.d.ts +12 -0
- package/server/dist/server/state.js +34 -0
- package/server/dist/server/updateCheck.d.ts +6 -0
- package/server/dist/server/updateCheck.js +18 -0
- package/server/dist/services/discover.d.ts +2 -0
- package/server/dist/services/discover.js +369 -0
- package/server/dist/sessionJsonl.d.ts +18 -0
- package/server/dist/sessionJsonl.js +117 -0
- package/server/dist/settings.d.ts +17 -0
- package/server/dist/settings.js +1383 -0
- package/server/dist/skillAudit.d.ts +10 -0
- package/server/dist/skillAudit.js +65 -0
- package/server/dist/skillUsage.d.ts +13 -0
- package/server/dist/skillUsage.js +116 -0
- package/server/dist/skills.d.ts +70 -0
- package/server/dist/skills.js +398 -0
- package/server/dist/smartPickup.d.ts +24 -0
- package/server/dist/smartPickup.js +177 -0
- package/server/dist/smartPickupAdapters.d.ts +47 -0
- package/server/dist/smartPickupAdapters.js +472 -0
- package/server/dist/smartPickupCorpus.d.ts +29 -0
- package/server/dist/smartPickupCorpus.js +44 -0
- package/server/dist/smartPickupEvaluator.d.ts +91 -0
- package/server/dist/smartPickupEvaluator.js +189 -0
- package/server/dist/smartPickupLedger.d.ts +40 -0
- package/server/dist/smartPickupLedger.js +169 -0
- package/server/dist/smartPickupObserver.d.ts +30 -0
- package/server/dist/smartPickupObserver.js +375 -0
- package/server/dist/smartPickupThread.d.ts +8 -0
- package/server/dist/smartPickupThread.js +31 -0
- package/server/dist/taskDispatcher.d.ts +40 -0
- package/server/dist/taskDispatcher.js +354 -0
- package/server/dist/templates/store.d.ts +14 -0
- package/server/dist/templates/store.js +191 -0
- package/server/dist/terminal/ptyManager.d.ts +54 -0
- package/server/dist/terminal/ptyManager.js +270 -0
- package/server/dist/terminal/ptyPidRegistry.d.ts +7 -0
- package/server/dist/terminal/ptyPidRegistry.js +98 -0
- package/server/dist/terminal/terminalChannel.d.ts +18 -0
- package/server/dist/terminal/terminalChannel.js +167 -0
- package/server/dist/tidyDraft.d.ts +11 -0
- package/server/dist/tidyDraft.js +17 -0
- package/server/dist/toolbox.d.ts +22 -0
- package/server/dist/toolbox.js +300 -0
- package/server/dist/toolboxWorkflow.d.ts +7 -0
- package/server/dist/toolboxWorkflow.js +28 -0
- package/server/dist/turnChanges.d.ts +18 -0
- package/server/dist/turnChanges.js +90 -0
- package/server/dist/ultracodeFleetWatcher.d.ts +22 -0
- package/server/dist/ultracodeFleetWatcher.js +210 -0
- package/server/dist/updateCheck.d.ts +23 -0
- package/server/dist/updateCheck.js +106 -0
- package/server/dist/updateManager.d.ts +90 -0
- package/server/dist/updateManager.js +200 -0
- package/server/dist/usage.d.ts +3 -0
- package/server/dist/usage.js +173 -0
- package/server/dist/utilityBrief.d.ts +3 -0
- package/server/dist/utilityBrief.js +32 -0
- package/server/dist/utilityJob.d.ts +18 -0
- package/server/dist/utilityJob.js +92 -0
- package/server/dist/voice/activity.d.ts +20 -0
- package/server/dist/voice/activity.js +244 -0
- package/server/dist/voice/activityBus.d.ts +9 -0
- package/server/dist/voice/activityBus.js +22 -0
- package/server/dist/voice/activityStore.d.ts +38 -0
- package/server/dist/voice/activityStore.js +114 -0
- package/server/dist/voice/capture-ready.wav +0 -0
- package/server/dist/voice/computerContext.d.ts +9 -0
- package/server/dist/voice/computerContext.js +148 -0
- package/server/dist/voice/conditionContext.d.ts +9 -0
- package/server/dist/voice/conditionContext.js +73 -0
- package/server/dist/voice/conditionFacts.d.ts +23 -0
- package/server/dist/voice/conditionFacts.js +67 -0
- package/server/dist/voice/conditionReply.d.ts +7 -0
- package/server/dist/voice/conditionReply.js +72 -0
- package/server/dist/voice/conditionSchema.d.ts +167 -0
- package/server/dist/voice/conditionSchema.js +117 -0
- package/server/dist/voice/conditionStore.d.ts +31 -0
- package/server/dist/voice/conditionStore.js +223 -0
- package/server/dist/voice/conditions.d.ts +87 -0
- package/server/dist/voice/conditions.js +590 -0
- package/server/dist/voice/history.d.ts +16 -0
- package/server/dist/voice/history.js +44 -0
- package/server/dist/voice/inputObservation.d.ts +10 -0
- package/server/dist/voice/inputObservation.js +63 -0
- package/server/dist/voice/localRecognizer.d.ts +36 -0
- package/server/dist/voice/localRecognizer.js +155 -0
- package/server/dist/voice/luna.d.ts +5 -0
- package/server/dist/voice/luna.js +125 -0
- package/server/dist/voice/mailRuleStore.d.ts +34 -0
- package/server/dist/voice/mailRuleStore.js +111 -0
- package/server/dist/voice/mailRules.d.ts +15 -0
- package/server/dist/voice/mailRules.js +320 -0
- package/server/dist/voice/operatorPrompt.d.ts +1 -0
- package/server/dist/voice/operatorPrompt.js +38 -0
- package/server/dist/voice/operatorTools.d.ts +21 -0
- package/server/dist/voice/operatorTools.js +85 -0
- package/server/dist/voice/recognizer.py +188 -0
- package/server/dist/voice/sessions.d.ts +27 -0
- package/server/dist/voice/sessions.js +107 -0
- package/server/dist/voice/toolDefinitions.d.ts +18 -0
- package/server/dist/voice/toolDefinitions.js +48 -0
- package/server/dist/voice/turnWatchdog.d.ts +28 -0
- package/server/dist/voice/turnWatchdog.js +41 -0
- package/server/dist/voice/voiceSetup.d.ts +60 -0
- package/server/dist/voice/voiceSetup.js +140 -0
- package/server/dist/voice/watchStore.d.ts +21 -0
- package/server/dist/voice/watchStore.js +71 -0
- package/server/dist/voice/watches.d.ts +22 -0
- package/server/dist/voice/watches.js +153 -0
- package/server/dist/windowsCommand.d.ts +15 -0
- package/server/dist/windowsCommand.js +76 -0
- package/server/dist/workers/StreamParser.d.ts +51 -0
- package/server/dist/workers/StreamParser.js +337 -0
- package/server/dist/workers/WorkerManager.d.ts +100 -0
- package/server/dist/workers/WorkerManager.js +458 -0
- package/server/dist/workers/interruptProcess.d.ts +2 -0
- package/server/dist/workers/interruptProcess.js +19 -0
- package/server/dist/workers/limits.d.ts +5 -0
- package/server/dist/workers/limits.js +76 -0
- package/server/dist/workers/pidRegistry.d.ts +14 -0
- package/server/dist/workers/pidRegistry.js +130 -0
- package/server/dist/workers/procListening.d.ts +1 -0
- package/server/dist/workers/procListening.js +116 -0
- package/server/dist/workers/procListeningAll.d.ts +6 -0
- package/server/dist/workers/procListeningAll.js +141 -0
- package/server/dist/workers/processActivity.d.ts +16 -0
- package/server/dist/workers/processActivity.js +166 -0
- package/server/dist/workers/processKill.d.ts +5 -0
- package/server/dist/workers/processKill.js +50 -0
- package/server/dist/workers/processStartTime.d.ts +11 -0
- package/server/dist/workers/processStartTime.js +102 -0
- package/server/dist/workers/stuckBreaker.d.ts +28 -0
- package/server/dist/workers/stuckBreaker.js +115 -0
- package/server/dist/workflowMeta.d.ts +126 -0
- package/server/dist/workflowMeta.js +392 -0
- package/server/dist/workflowStore.d.ts +25 -0
- package/server/dist/workflowStore.js +585 -0
- package/server/dist/workflows/modelTitles.d.ts +17 -0
- package/server/dist/workflows/modelTitles.js +97 -0
- package/server/dist/workflows/purgeWorkflow.d.ts +8 -0
- package/server/dist/workflows/purgeWorkflow.js +157 -0
- package/server/dist/workflows/sessionDiscovery.d.ts +16 -0
- package/server/dist/workflows/sessionDiscovery.js +395 -0
- package/server/dist/workflows/sessionIndex.d.ts +23 -0
- package/server/dist/workflows/sessionIndex.js +472 -0
- package/server/dist/workflows/terminalSessions.d.ts +6 -0
- package/server/dist/workflows/terminalSessions.js +180 -0
- package/server/dist/workflows/transcripts.d.ts +11 -0
- package/server/dist/workflows/transcripts.js +210 -0
- package/server/dist/workflows/types.d.ts +117 -0
- package/server/dist/workflows/types.js +2 -0
- package/server/dist/workspace.d.ts +15 -0
- package/server/dist/workspace.js +164 -0
- package/server/dist/ws/bakeoffHandlers.d.ts +16 -0
- package/server/dist/ws/bakeoffHandlers.js +327 -0
- package/server/dist/ws/clusterHandlers.d.ts +76 -0
- package/server/dist/ws/clusterHandlers.js +2713 -0
- package/server/dist/ws/compactHandlers.d.ts +5 -0
- package/server/dist/ws/compactHandlers.js +395 -0
- package/server/dist/ws/compareHandlers.d.ts +6 -0
- package/server/dist/ws/compareHandlers.js +189 -0
- package/server/dist/ws/gateHandlers.d.ts +8 -0
- package/server/dist/ws/gateHandlers.js +141 -0
- package/server/dist/ws/genesisHandlers.d.ts +12 -0
- package/server/dist/ws/genesisHandlers.js +713 -0
- package/server/dist/ws/handoffHandlers.d.ts +29 -0
- package/server/dist/ws/handoffHandlers.js +1756 -0
- package/server/dist/ws/knowledgeHandlers.d.ts +4 -0
- package/server/dist/ws/knowledgeHandlers.js +62 -0
- package/server/dist/ws/mcpHandlers.d.ts +8 -0
- package/server/dist/ws/mcpHandlers.js +170 -0
- package/server/dist/ws/messageQueue.d.ts +2 -0
- package/server/dist/ws/messageQueue.js +11 -0
- package/server/dist/ws/operatorQuestionHandlers.d.ts +4 -0
- package/server/dist/ws/operatorQuestionHandlers.js +28 -0
- package/server/dist/ws/postureHandlers.d.ts +4 -0
- package/server/dist/ws/postureHandlers.js +30 -0
- package/server/dist/ws/previewCaptureHandlers.d.ts +3 -0
- package/server/dist/ws/previewCaptureHandlers.js +215 -0
- package/server/dist/ws/projectTrustHandlers.d.ts +4 -0
- package/server/dist/ws/projectTrustHandlers.js +48 -0
- package/server/dist/ws/taskLedgerHandlers.d.ts +38 -0
- package/server/dist/ws/taskLedgerHandlers.js +355 -0
- package/server/dist/ws/taskWorktreeHandlers.d.ts +4 -0
- package/server/dist/ws/taskWorktreeHandlers.js +72 -0
- package/server/dist/ws/turnEngine.d.ts +91 -0
- package/server/dist/ws/turnEngine.js +2907 -0
- package/server/dist/ws/updatePrimaryConfig.d.ts +4 -0
- package/server/dist/ws/updatePrimaryConfig.js +455 -0
- package/server/dist/ws/workflowHandlers.d.ts +44 -0
- package/server/dist/ws/workflowHandlers.js +2089 -0
- package/server/package.json +6 -0
- package/server/src/appVersion.ts +9 -0
- package/server/src/arcoHome.ts +11 -0
- package/server/src/artifacts.ts +58 -0
- package/server/src/atomicFile.ts +186 -0
- package/server/src/attention.ts +179 -0
- package/server/src/auth.ts +435 -0
- package/server/src/authLoginInstructions.ts +18 -0
- package/server/src/authLoginSession.ts +131 -0
- package/server/src/bakeoffStore.ts +91 -0
- package/server/src/capabilities.ts +439 -0
- package/server/src/catalog.ts +127 -0
- package/server/src/catchUp.ts +96 -0
- package/server/src/chatMode.ts +123 -0
- package/server/src/checkoutOwnership.ts +117 -0
- package/server/src/claudeMdDiscovery.ts +63 -0
- package/server/src/clusterAccessDoctrine.ts +11 -0
- package/server/src/clusterAutoTurn.ts +460 -0
- package/server/src/clusterBudget.ts +41 -0
- package/server/src/clusterDirector.ts +30 -0
- package/server/src/clusterEfficiency.ts +11 -0
- package/server/src/clusterIdleNudger.ts +214 -0
- package/server/src/clusterMailbox.ts +284 -0
- package/server/src/clusterPeerOps.ts +1345 -0
- package/server/src/clusterPlanBridge.ts +234 -0
- package/server/src/clusterPlanOutline.ts +25 -0
- package/server/src/clusterPlanStore.ts +322 -0
- package/server/src/clusterPresets.ts +212 -0
- package/server/src/clusterProgress.ts +66 -0
- package/server/src/clusterRehydrate.ts +74 -0
- package/server/src/clusterSnapshotBundle.ts +100 -0
- package/server/src/clusterSnapshots.ts +907 -0
- package/server/src/clusterStore.ts +1225 -0
- package/server/src/clusterStringFold.ts +71 -0
- package/server/src/clusterVaultCrypto.ts +78 -0
- package/server/src/codexRolloutTokens.ts +106 -0
- package/server/src/codexUsage.ts +389 -0
- package/server/src/codexUsageRpc.ts +100 -0
- package/server/src/configValue.ts +165 -0
- package/server/src/connectionCatalog.ts +23 -0
- package/server/src/contentSearch.ts +152 -0
- package/server/src/contextCalibrator.ts +215 -0
- package/server/src/contextEstimator.ts +231 -0
- package/server/src/contextRefs.ts +298 -0
- package/server/src/crashRecovery.ts +113 -0
- package/server/src/cursorUsage.ts +289 -0
- package/server/src/defaults/models.md +168 -0
- package/server/src/diagnostics/checks.ts +868 -0
- package/server/src/diagnostics/codeSkew.ts +157 -0
- package/server/src/diagnostics/modelHealth.ts +446 -0
- package/server/src/diagnostics/shutdownForensics.ts +73 -0
- package/server/src/diagnostics/shutdownWindow.ts +121 -0
- package/server/src/diagnostics/supportBundle.ts +256 -0
- package/server/src/envAliases.ts +23 -0
- package/server/src/explorerArtifacts.ts +164 -0
- package/server/src/explorerChanged.ts +126 -0
- package/server/src/explorerDocs.ts +101 -0
- package/server/src/explorerLaunch.ts +116 -0
- package/server/src/explorerPlans.ts +37 -0
- package/server/src/fileAccessPolicy.ts +128 -0
- package/server/src/genesis/creative.ts +217 -0
- package/server/src/genesis/prompts.ts +215 -0
- package/server/src/genesis/scaffold.ts +336 -0
- package/server/src/genesis/stages.ts +121 -0
- package/server/src/git.ts +362 -0
- package/server/src/gitBakeoff.ts +318 -0
- package/server/src/gitDiff.ts +210 -0
- package/server/src/gitOps.ts +335 -0
- package/server/src/gitOtherWork.ts +98 -0
- package/server/src/gitSafe.ts +58 -0
- package/server/src/gitSnapshots.ts +907 -0
- package/server/src/gitWorking.ts +414 -0
- package/server/src/github.ts +585 -0
- package/server/src/goalRun.ts +176 -0
- package/server/src/handoffPrompts.ts +318 -0
- package/server/src/hardware/fit.ts +342 -0
- package/server/src/hardware/modelFiles.ts +15 -0
- package/server/src/hardware/probe.ts +273 -0
- package/server/src/http/appVersionRoutes.ts +31 -0
- package/server/src/http/authLoginRoutes.ts +62 -0
- package/server/src/http/clusterRoutes.ts +927 -0
- package/server/src/http/clusterSnapshotRoutes.ts +240 -0
- package/server/src/http/connectionsRoutes.ts +29 -0
- package/server/src/http/deepseekRoutes.ts +57 -0
- package/server/src/http/diagnosticsRoutes.ts +108 -0
- package/server/src/http/diffRoutes.ts +65 -0
- package/server/src/http/endpointDiscoveryRoutes.ts +43 -0
- package/server/src/http/explorerRoutes.ts +129 -0
- package/server/src/http/fileRead.ts +53 -0
- package/server/src/http/fileWriteRoutes.ts +159 -0
- package/server/src/http/gitBakeoffRoutes.ts +48 -0
- package/server/src/http/gitCompareRoutes.ts +88 -0
- package/server/src/http/gitDiffRoutes.ts +72 -0
- package/server/src/http/gitOpRoutes.ts +174 -0
- package/server/src/http/gitWorktreeRoutes.ts +56 -0
- package/server/src/http/githubRoutes.ts +181 -0
- package/server/src/http/imageWriteRoutes.ts +165 -0
- package/server/src/http/knowledgeRoutes.ts +106 -0
- package/server/src/http/mediaOpsRoutes.ts +425 -0
- package/server/src/http/notificationChannelsRoutes.ts +46 -0
- package/server/src/http/originGuard.ts +95 -0
- package/server/src/http/outputOpen.ts +49 -0
- package/server/src/http/outputRoutes.ts +98 -0
- package/server/src/http/packageDocs.ts +28 -0
- package/server/src/http/projectRoutes.ts +70 -0
- package/server/src/http/projectTrustRoutes.ts +124 -0
- package/server/src/http/readConfinement.ts +76 -0
- package/server/src/http/recallRoutes.ts +221 -0
- package/server/src/http/router.ts +2154 -0
- package/server/src/http/searchRoutes.ts +60 -0
- package/server/src/http/servicesRoutes.ts +123 -0
- package/server/src/http/smartPickupRoutes.ts +18 -0
- package/server/src/http/tidyRoutes.ts +31 -0
- package/server/src/http/usageStatsRoutes.ts +296 -0
- package/server/src/http/utilityAgentRoutes.ts +120 -0
- package/server/src/http/voiceRoutes.ts +263 -0
- package/server/src/http/workflowDataRoutes.ts +856 -0
- package/server/src/http/writeConfinement.ts +148 -0
- package/server/src/http/wsAuth.ts +115 -0
- package/server/src/index.ts +2411 -0
- package/server/src/initialProviders.ts +29 -0
- package/server/src/knowledge/distill.ts +180 -0
- package/server/src/knowledge/store.ts +303 -0
- package/server/src/liveChanges.ts +170 -0
- package/server/src/llamacppCatalog.ts +112 -0
- package/server/src/localCapacity.ts +29 -0
- package/server/src/localModels.ts +121 -0
- package/server/src/lsp/client.ts +439 -0
- package/server/src/lsp/servers.ts +135 -0
- package/server/src/management/clusterActivity.ts +102 -0
- package/server/src/management/hubLink.ts +328 -0
- package/server/src/management/identity.ts +107 -0
- package/server/src/management/initHubLink.ts +917 -0
- package/server/src/mcp/arcoMcpServer.ts +59 -0
- package/server/src/mcp/client.ts +500 -0
- package/server/src/mcp/clusterMcpLoopback.ts +155 -0
- package/server/src/mcp/clusterMcpServer.ts +69 -0
- package/server/src/mcp/clusterMcpTools.ts +718 -0
- package/server/src/mcp/mcpConfigWriter.ts +291 -0
- package/server/src/mcp/osvCheck.ts +148 -0
- package/server/src/mcp/planMcpTools.ts +289 -0
- package/server/src/mcp/registry.ts +147 -0
- package/server/src/mcp/registryWiring.ts +116 -0
- package/server/src/mcp/voiceMcpServer.ts +47 -0
- package/server/src/mdTuneupPrompt.ts +78 -0
- package/server/src/media/demucs.ts +326 -0
- package/server/src/media/ffmpeg.ts +1012 -0
- package/server/src/media/scratch.ts +215 -0
- package/server/src/memoryMonitor.ts +73 -0
- package/server/src/nativeSqlite.ts +24 -0
- package/server/src/net/forceIpv4.ts +30 -0
- package/server/src/notifications.ts +164 -0
- package/server/src/npmPlatformResolve.ts +193 -0
- package/server/src/ntfyTransport.ts +173 -0
- package/server/src/outputStore.ts +57 -0
- package/server/src/outputs.ts +317 -0
- package/server/src/peerRecipientContext.ts +40 -0
- package/server/src/planRefContext.ts +185 -0
- package/server/src/planStore.ts +482 -0
- package/server/src/preview/captureViaCdp.ts +541 -0
- package/server/src/previewAutoDetect.ts +343 -0
- package/server/src/previewProxy.ts +203 -0
- package/server/src/primaryBackgroundTracker.ts +268 -0
- package/server/src/primitiveDrift.ts +59 -0
- package/server/src/primitives/exportContext.ts +906 -0
- package/server/src/primitives/mdTuneupUndo.ts +56 -0
- package/server/src/primitives/parseReviewFindings.ts +90 -0
- package/server/src/primitives/quickHandoff.ts +52 -0
- package/server/src/primitives/reviewContent.ts +791 -0
- package/server/src/primitives/reviewSchema.ts +135 -0
- package/server/src/primitives/runCompare.ts +227 -0
- package/server/src/primitives/runDocEdit.ts +225 -0
- package/server/src/primitives/runMdTuneup.ts +407 -0
- package/server/src/primitives/runResearch.ts +364 -0
- package/server/src/primitives/runReviewer.ts +405 -0
- package/server/src/primitives/seedWorker.ts +782 -0
- package/server/src/project/orchestrationProposals.ts +288 -0
- package/server/src/project/taskLedger.ts +812 -0
- package/server/src/project/taskWorktree.ts +206 -0
- package/server/src/projectRecords.ts +243 -0
- package/server/src/projectStateIgnore.ts +18 -0
- package/server/src/projectTrust.ts +277 -0
- package/server/src/projects.ts +353 -0
- package/server/src/prompts.ts +192 -0
- package/server/src/providerAccounts.ts +70 -0
- package/server/src/providers/attachments.ts +327 -0
- package/server/src/providers/claude-native/appendOnlyPrefix.ts +333 -0
- package/server/src/providers/claude-native/auth.ts +134 -0
- package/server/src/providers/claude-native/authStatus.ts +33 -0
- package/server/src/providers/claude-native/catalog.ts +171 -0
- package/server/src/providers/claude-native/contentBlocks.ts +422 -0
- package/server/src/providers/claude-native/contextBudget.ts +74 -0
- package/server/src/providers/claude-native/editApply.ts +204 -0
- package/server/src/providers/claude-native/file-mutation-queue.ts +109 -0
- package/server/src/providers/claude-native/filterConfigs/bash-cargo-test.ts +54 -0
- package/server/src/providers/claude-native/filterConfigs/bash-find.ts +18 -0
- package/server/src/providers/claude-native/filterConfigs/bash-git-status.ts +31 -0
- package/server/src/providers/claude-native/filterConfigs/bash-grep.ts +16 -0
- package/server/src/providers/claude-native/filterConfigs/bash-jest-vitest.ts +37 -0
- package/server/src/providers/claude-native/filterConfigs/bash-ls.ts +12 -0
- package/server/src/providers/claude-native/filterConfigs/bash-pytest.ts +44 -0
- package/server/src/providers/claude-native/filterConfigs/index.ts +82 -0
- package/server/src/providers/claude-native/filterToolResult.ts +176 -0
- package/server/src/providers/claude-native/foldDigest.ts +126 -0
- package/server/src/providers/claude-native/gateReview.ts +0 -0
- package/server/src/providers/claude-native/gateStore.ts +133 -0
- package/server/src/providers/claude-native/hooks.ts +302 -0
- package/server/src/providers/claude-native/index.ts +419 -0
- package/server/src/providers/claude-native/modelParams.ts +181 -0
- package/server/src/providers/claude-native/oauth.ts +357 -0
- package/server/src/providers/claude-native/outputAccumulator.ts +132 -0
- package/server/src/providers/claude-native/outputStyle.ts +2 -0
- package/server/src/providers/claude-native/peerTools.ts +556 -0
- package/server/src/providers/claude-native/pretoolGuards.ts +315 -0
- package/server/src/providers/claude-native/rateLimit.ts +130 -0
- package/server/src/providers/claude-native/registryTools.ts +157 -0
- package/server/src/providers/claude-native/resumeSummary.ts +633 -0
- package/server/src/providers/claude-native/retainedContext.ts +184 -0
- package/server/src/providers/claude-native/sandboxExecutor.ts +188 -0
- package/server/src/providers/claude-native/sandboxStore.ts +186 -0
- package/server/src/providers/claude-native/sandboxTools.ts +190 -0
- package/server/src/providers/claude-native/serverFold.ts +310 -0
- package/server/src/providers/claude-native/toolLoopGuard.ts +141 -0
- package/server/src/providers/claude-native/toolPosture.ts +136 -0
- package/server/src/providers/claude-native/toolResultEviction.ts +235 -0
- package/server/src/providers/claude-native/tools.ts +956 -0
- package/server/src/providers/claude-native/wireFingerprint.ts +13 -0
- package/server/src/providers/claude-native/worker.ts +3667 -0
- package/server/src/providers/claude-native/workerHelpers.ts +254 -0
- package/server/src/providers/claude-native/workspaceFacts.ts +188 -0
- package/server/src/providers/claude.ts +742 -0
- package/server/src/providers/codex-appserver/bindings/AbsolutePathBuf.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/AgentPath.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ApplyPatchApprovalParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/ApplyPatchApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/AuthMode.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/ClientInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ClientNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ClientRequest.ts +98 -0
- package/server/src/providers/codex-appserver/bindings/CollaborationMode.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/ContentItem.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/ConversationGitInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ConversationSummary.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/ExecCommandApprovalParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/ExecCommandApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/ExecPolicyAmendment.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/FileChange.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ForcedLoginMethod.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FunctionCallOutputBody.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/FunctionCallOutputContentItem.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchMatchType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchResult.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStartResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionStopResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdateResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/FuzzyFileSearchSessionUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GetAuthStatusParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/GetAuthStatusResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GetConversationSummaryParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GetConversationSummaryResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GitDiffToRemoteParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/GitDiffToRemoteResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/GitSha.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ImageDetail.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/InitializeCapabilities.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/InitializeParams.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/InitializeResponse.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/InputModality.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/InternalSessionSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/LocalShellAction.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/LocalShellExecAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/LocalShellStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/MessagePhase.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/ModeKind.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/NetworkPolicyAmendment.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/NetworkPolicyRuleAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ParsedCommand.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/Personality.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/PlanType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeConversationVersion.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeOutputModality.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeVoice.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/RealtimeVoicesList.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningEffort.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningItemContent.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningItemReasoningSummary.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ReasoningSummary.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/RequestId.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/Resource.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/ResourceContent.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/ResourceTemplate.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/ResponseItem.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/ReviewDecision.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/ServerNotification.ts +70 -0
- package/server/src/providers/codex-appserver/bindings/ServerRequest.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/ServiceTier.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/SessionSource.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/Settings.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/SubAgentSource.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/ThreadId.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/ThreadMemoryMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/Tool.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/Verbosity.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchContextSize.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchLocation.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/WebSearchToolConfig.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/index.ts +86 -0
- package/server/src/providers/codex-appserver/bindings/serde_json/JsonValue.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/Account.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AccountLoginCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AccountRateLimitsUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AccountUpdatedNotification.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ActivePermissionProfile.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/ActivePermissionProfileModification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AddCreditsNudgeCreditType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AddCreditsNudgeEmailStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AdditionalFileSystemPermissions.ts +15 -0
- package/server/src/providers/codex-appserver/bindings/v2/AdditionalNetworkPermissions.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AdditionalPermissionProfile.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/AgentMessageDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AnalyticsConfig.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppBranding.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppInfo.ts +19 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppListUpdatedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppMetadata.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppReview.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppScreenshot.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppSummary.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppToolApproval.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppToolsConfig.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ApprovalsReviewer.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsConfig.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsDefaultConfig.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsListParams.ts +24 -0
- package/server/src/providers/codex-appserver/bindings/v2/AppsListResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/AskForApproval.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/AutoReviewDecisionSource.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ByteRange.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CancelLoginAccountParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CancelLoginAccountResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CancelLoginAccountStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshReason.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ChatgptAuthTokensRefreshResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CodexErrorInfo.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentState.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentTool.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollabAgentToolCallStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollaborationModeListParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollaborationModeListResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/CollaborationModeMask.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandAction.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecOutputDeltaNotification.ts +30 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecOutputStream.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecParams.ts +106 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecResizeParams.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecResizeResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecResponse.ts +24 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecTerminalSize.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecTerminateParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecTerminateResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecWriteParams.ts +22 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecWriteResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionApprovalDecision.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionOutputDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalParams.ts +58 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionRequestApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandExecutionStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/CommandMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/Config.ts +25 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigBatchWriteParams.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigEdit.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigLayer.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigLayerMetadata.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigLayerSource.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigReadParams.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigReadResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigRequirements.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigRequirementsReadResponse.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigValueWriteParams.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigWarningNotification.ts +22 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfigWriteResponse.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfiguredHookHandler.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ConfiguredHookMatcherGroup.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ContextCompactedNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/CreditsSnapshot.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeprecationNoticeNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyAlgorithm.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyCreateParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyCreateResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyProtectionClass.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyProtectionPolicy.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyPublicParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeyPublicResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeySignParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeySignPayload.ts +54 -0
- package/server/src/providers/codex-appserver/bindings/v2/DeviceKeySignResponse.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallOutputContentItem.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolCallStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/DynamicToolSpec.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ErrorNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExecPolicyAmendment.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeature.ts +37 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureEnablementSetResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureListParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureListResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExperimentalFeatureStage.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigDetectResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigImportResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItem.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ExternalAgentConfigMigrationItemType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FeedbackUploadParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FeedbackUploadResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeApprovalDecision.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeOutputDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangePatchUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalParams.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileChangeRequestApprovalResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemAccessMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemPath.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemSandboxEntry.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileSystemSpecialPath.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/FileUpdateChange.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsChangedNotification.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCopyParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCopyResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCreateDirectoryParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsCreateDirectoryResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsGetMetadataParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsGetMetadataResponse.ts +28 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadDirectoryEntry.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadDirectoryParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadDirectoryResponse.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadFileParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsReadFileResponse.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsRemoveParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsRemoveResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsUnwatchParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsUnwatchResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWatchParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWatchResponse.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWriteFileParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/FsWriteFileResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GetAccountParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/GetAccountRateLimitsResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/GetAccountResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/GitInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/GrantedPermissionProfile.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianApprovalReview.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianApprovalReviewAction.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianApprovalReviewStatus.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianCommandSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianRiskLevel.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianUserAuthorization.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/GuardianWarningNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookErrorInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookEventName.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookExecutionMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookHandlerType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookMetadata.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookOutputEntry.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookOutputEntryKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookPromptFragment.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookRunStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookRunSummary.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookScope.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/HookStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/HooksListEntry.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/HooksListParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/HooksListResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewCompletedNotification.ts +30 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemGuardianApprovalReviewStartedNotification.ts +29 -0
- package/server/src/providers/codex-appserver/bindings/v2/ItemStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ListMcpServerStatusParams.ts +19 -0
- package/server/src/providers/codex-appserver/bindings/v2/ListMcpServerStatusResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/LoginAccountParams.ts +21 -0
- package/server/src/providers/codex-appserver/bindings/v2/LoginAccountResponse.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/LogoutAccountResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ManagedHooksRequirements.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceAddParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceAddResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceInterface.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceLoadErrorInfo.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceRemoveParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceRemoveResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceUpgradeErrorInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceUpgradeParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MarketplaceUpgradeResponse.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpAuthStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationArrayType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationBooleanSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationBooleanType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationConstOption.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationEnumSchema.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationLegacyTitledEnumSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationMultiSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationNumberSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationNumberType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationObjectType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationPrimitiveSchema.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationSchema.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationSingleSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationStringFormat.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationStringSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationStringType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationTitledEnumItems.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationTitledMultiSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationTitledSingleSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationUntitledEnumItems.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationUntitledMultiSelectEnumSchema.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpElicitationUntitledSingleSelectEnumSchema.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpResourceReadParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpResourceReadResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerElicitationAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerElicitationRequestParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerElicitationRequestResponse.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerOauthLoginCompletedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerOauthLoginParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerOauthLoginResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerRefreshResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStartupState.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStatus.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStatusDetail.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerStatusUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerToolCallParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpServerToolCallResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallError.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallProgressNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallResult.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/McpToolCallStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MemoryCitation.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/MemoryCitationEntry.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MemoryResetResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MergeStrategy.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/MigrationDetails.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/MockExperimentalMethodParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/MockExperimentalMethodResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/Model.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelAvailabilityNux.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelListParams.ts +17 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelListResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelProviderCapabilitiesReadResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelRerouteReason.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelReroutedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelUpgradeInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelVerification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ModelVerificationNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkAccess.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkApprovalContext.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkApprovalProtocol.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkDomainPermission.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkPolicyAmendment.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkPolicyRuleAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkRequirements.ts +32 -0
- package/server/src/providers/codex-appserver/bindings/v2/NetworkUnixSocketPermission.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/NonSteerableTurnKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/OverriddenMetadata.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PatchApplyStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PatchChangeKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionGrantScope.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfile.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileFileSystemPermissions.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileModificationParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileNetworkPermissions.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionProfileSelectionParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalParams.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PermissionsRequestApprovalResponse.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/PlanDeltaNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginAuthPolicy.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginDetail.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInstallParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInstallPolicy.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInstallResponse.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginInterface.ts +35 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginListParams.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginListResponse.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginMarketplaceEntry.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginReadParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginReadResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginSource.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginSummary.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginUninstallParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginUninstallResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/PluginsMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ProfileV2.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/v2/RateLimitReachedType.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RateLimitSnapshot.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/RateLimitWindow.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RawResponseItemCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningEffortOption.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningSummaryPartAddedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningSummaryTextDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReasoningTextDeltaNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlClientConnectionAudience.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlClientEnrollmentAudience.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlConnectionStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/RemoteControlStatusChangedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/RequestPermissionProfile.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/ResidencyRequirement.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewDelivery.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewStartParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewStartResponse.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ReviewTarget.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/SandboxMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SandboxPolicy.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/SandboxWorkspaceWrite.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SendAddCreditsNudgeEmailResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ServerRequestResolvedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SessionMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SessionSource.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillDependencies.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillErrorInfo.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillInterface.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillMetadata.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillScope.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillSummary.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillToolDependency.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsChangedNotification.ts +11 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsConfigWriteParams.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsConfigWriteResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListEntry.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListExtraRootsForCwd.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListParams.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/SkillsListResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/SortDirection.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/SubagentMigration.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TerminalInteractionNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TextElement.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/TextPosition.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/TextRange.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/Thread.ts +77 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadActiveFlag.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionParams.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadApproveGuardianDeniedActionResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadArchiveParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadArchiveResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadArchivedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadBackgroundTerminalsCleanResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadClosedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadCompactStartParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadCompactStartResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadDecrementElicitationResponse.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadForkParams.ts +56 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadForkResponse.ts +38 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoal.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalClearParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalClearResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalClearedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalGetParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalGetResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalSetParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalSetResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadGoalUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadIncrementElicitationResponse.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadInjectItemsParams.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadInjectItemsResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadItem.ts +101 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadListParams.ts +54 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadListResponse.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadLoadedListParams.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadLoadedListResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMemoryModeSetResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMetadataGitInfoUpdateParams.ts +20 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadMetadataUpdateResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadNameUpdatedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadReadParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadReadResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendAudioResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAppendTextResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeAudioChunk.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeClosedNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeErrorNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeItemAddedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeListVoicesResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeOutputAudioDeltaNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeSdpNotification.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartParams.ts +16 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartTransport.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStartedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStopParams.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeStopResponse.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDeltaNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRealtimeTranscriptDoneNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadResumeParams.ts +66 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadResumeResponse.ts +38 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRollbackParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadRollbackResponse.ts +14 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSetNameParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSetNameResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadShellCommandParams.ts +12 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadShellCommandResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSortKey.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadSourceKind.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartParams.ts +55 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartResponse.ts +38 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartSource.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStatus.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadStatusChangedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTokenUsage.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTokenUsageUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTurnsListParams.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadTurnsListResponse.ts +18 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnarchiveParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnarchiveResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnarchivedNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnsubscribeParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnsubscribeResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/ThreadUnsubscribeStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TokenUsageBreakdown.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputAnswer.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputOption.ts +8 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputParams.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputQuestion.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolRequestUserInputResponse.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/ToolsV2.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/Turn.ts +30 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnDiffUpdatedNotification.ts +9 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnEnvironmentParams.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnError.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnInterruptParams.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnInterruptResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnPlanStep.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnPlanStepStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnPlanUpdatedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStartParams.ts +86 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStartResponse.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStartedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnSteerParams.ts +15 -0
- package/server/src/providers/codex-appserver/bindings/v2/TurnSteerResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/UserInput.ts +10 -0
- package/server/src/providers/codex-appserver/bindings/v2/WarningNotification.ts +13 -0
- package/server/src/providers/codex-appserver/bindings/v2/WebSearchAction.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupCompletedNotification.ts +6 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupMode.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartParams.ts +7 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsSandboxSetupStartResponse.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WindowsWorldWritableWarningNotification.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/WriteStatus.ts +5 -0
- package/server/src/providers/codex-appserver/bindings/v2/index.ts +460 -0
- package/server/src/providers/codex-appserver/catalog.ts +202 -0
- package/server/src/providers/codex-appserver/imageGen.ts +166 -0
- package/server/src/providers/codex-appserver/index.ts +485 -0
- package/server/src/providers/codex-appserver/jsonRpc.ts +248 -0
- package/server/src/providers/codex-appserver/operatorQuestions.ts +130 -0
- package/server/src/providers/codex-appserver/worker.ts +1661 -0
- package/server/src/providers/codex-stream.ts +312 -0
- package/server/src/providers/codex.ts +527 -0
- package/server/src/providers/codexCodeMode.ts +119 -0
- package/server/src/providers/codexContextWindow.ts +58 -0
- package/server/src/providers/cursor/acpJsonRpc.ts +207 -0
- package/server/src/providers/cursor/acpSegments.ts +20 -0
- package/server/src/providers/cursor/authToken.ts +60 -0
- package/server/src/providers/cursor/catalog.ts +108 -0
- package/server/src/providers/cursor/index.ts +359 -0
- package/server/src/providers/cursor/print.ts +164 -0
- package/server/src/providers/cursor/worker.ts +738 -0
- package/server/src/providers/deepseek.ts +33 -0
- package/server/src/providers/deepseekProfiles.ts +207 -0
- package/server/src/providers/endpointDiscovery.ts +320 -0
- package/server/src/providers/errorClassifier.ts +297 -0
- package/server/src/providers/fallbackChain.ts +181 -0
- package/server/src/providers/goalBlock.ts +55 -0
- package/server/src/providers/index.ts +176 -0
- package/server/src/providers/llamacpp.ts +1308 -0
- package/server/src/providers/llamacppBinary.ts +40 -0
- package/server/src/providers/llamacppManager.ts +544 -0
- package/server/src/providers/llamacppRecovery.ts +276 -0
- package/server/src/providers/llamacppServeDiagnose.ts +165 -0
- package/server/src/providers/lmstudio.ts +864 -0
- package/server/src/providers/localModelControl.ts +20 -0
- package/server/src/providers/ollama.ts +2675 -0
- package/server/src/providers/ollamaBoundaryStore.ts +63 -0
- package/server/src/providers/ollamaCtxFallback.ts +188 -0
- package/server/src/providers/ollamaDurableCompaction.ts +85 -0
- package/server/src/providers/ollamaExecutionHistory.ts +124 -0
- package/server/src/providers/ollamaFencedTools.ts +427 -0
- package/server/src/providers/ollamaForceCompact.ts +37 -0
- package/server/src/providers/ollamaParams.ts +193 -0
- package/server/src/providers/ollamaRecovery.ts +451 -0
- package/server/src/providers/ollamaResilience.ts +504 -0
- package/server/src/providers/ollamaTokens.ts +233 -0
- package/server/src/providers/ollamaToolSubset.ts +246 -0
- package/server/src/providers/ollamaTools.ts +1232 -0
- package/server/src/providers/ollamaUtility.ts +539 -0
- package/server/src/providers/ollamaVram.ts +358 -0
- package/server/src/providers/outputSignature.ts +23 -0
- package/server/src/providers/outputStyle.ts +88 -0
- package/server/src/providers/ragInjection.ts +294 -0
- package/server/src/providers/runtimeVersions.ts +41 -0
- package/server/src/providers/strata.ts +66 -0
- package/server/src/providers/strataProfiles.ts +190 -0
- package/server/src/providers/types.ts +66 -0
- package/server/src/quota.ts +164 -0
- package/server/src/recall/index.ts +761 -0
- package/server/src/recall/search.ts +180 -0
- package/server/src/recall/summarize.ts +230 -0
- package/server/src/recentFilesLedger.ts +152 -0
- package/server/src/rulePickupGuard.ts +65 -0
- package/server/src/runtimeEnv.ts +95 -0
- package/server/src/server/broadcast.ts +629 -0
- package/server/src/server/constants.ts +77 -0
- package/server/src/server/logger.ts +204 -0
- package/server/src/server/prompts.ts +90 -0
- package/server/src/server/readiness.ts +56 -0
- package/server/src/server/state.ts +42 -0
- package/server/src/server/updateCheck.ts +17 -0
- package/server/src/services/discover.ts +391 -0
- package/server/src/sessionJsonl.ts +130 -0
- package/server/src/settings.ts +1193 -0
- package/server/src/skillAudit.ts +81 -0
- package/server/src/skillUsage.ts +129 -0
- package/server/src/skills.ts +471 -0
- package/server/src/smartPickup.ts +171 -0
- package/server/src/smartPickupAdapters.ts +439 -0
- package/server/src/smartPickupCorpus.ts +56 -0
- package/server/src/smartPickupEvaluator.ts +257 -0
- package/server/src/smartPickupLedger.ts +208 -0
- package/server/src/smartPickupObserver.ts +365 -0
- package/server/src/smartPickupThread.ts +35 -0
- package/server/src/taskDispatcher.ts +425 -0
- package/server/src/templates/store.ts +229 -0
- package/server/src/terminal/ptyManager.ts +321 -0
- package/server/src/terminal/ptyPidRegistry.ts +101 -0
- package/server/src/terminal/terminalChannel.ts +211 -0
- package/server/src/tidyDraft.ts +15 -0
- package/server/src/toolbox.ts +315 -0
- package/server/src/toolboxWorkflow.ts +28 -0
- package/server/src/turnChanges.ts +83 -0
- package/server/src/ultracodeFleetWatcher.ts +205 -0
- package/server/src/updateCheck.ts +99 -0
- package/server/src/updateManager.ts +156 -0
- package/server/src/usage.ts +157 -0
- package/server/src/utilityBrief.ts +34 -0
- package/server/src/utilityJob.ts +98 -0
- package/server/src/voice/activity.ts +135 -0
- package/server/src/voice/activityBus.ts +20 -0
- package/server/src/voice/activityStore.ts +85 -0
- package/server/src/voice/computerContext.ts +136 -0
- package/server/src/voice/conditionContext.ts +56 -0
- package/server/src/voice/conditionFacts.ts +28 -0
- package/server/src/voice/conditionReply.ts +48 -0
- package/server/src/voice/conditionSchema.ts +94 -0
- package/server/src/voice/conditionStore.ts +133 -0
- package/server/src/voice/conditions.ts +296 -0
- package/server/src/voice/history.ts +38 -0
- package/server/src/voice/inputObservation.ts +29 -0
- package/server/src/voice/localRecognizer.ts +129 -0
- package/server/src/voice/luna.ts +102 -0
- package/server/src/voice/mailRuleStore.ts +85 -0
- package/server/src/voice/mailRules.ts +204 -0
- package/server/src/voice/operatorPrompt.ts +37 -0
- package/server/src/voice/operatorTools.ts +74 -0
- package/server/src/voice/recognizer.py +188 -0
- package/server/src/voice/sessions.ts +98 -0
- package/server/src/voice/toolDefinitions.ts +46 -0
- package/server/src/voice/turnWatchdog.ts +36 -0
- package/server/src/voice/voiceSetup.ts +147 -0
- package/server/src/voice/watchStore.ts +57 -0
- package/server/src/voice/watches.ts +108 -0
- package/server/src/windowsCommand.ts +81 -0
- package/server/src/workers/StreamParser.ts +379 -0
- package/server/src/workers/WorkerManager.ts +701 -0
- package/server/src/workers/interruptProcess.ts +20 -0
- package/server/src/workers/limits.ts +82 -0
- package/server/src/workers/pidRegistry.ts +127 -0
- package/server/src/workers/procListening.ts +108 -0
- package/server/src/workers/procListeningAll.ts +135 -0
- package/server/src/workers/processActivity.ts +192 -0
- package/server/src/workers/processKill.ts +50 -0
- package/server/src/workers/processStartTime.ts +103 -0
- package/server/src/workers/stuckBreaker.ts +157 -0
- package/server/src/workflowMeta.ts +645 -0
- package/server/src/workflowStore.ts +583 -0
- package/server/src/workflows/modelTitles.ts +105 -0
- package/server/src/workflows/purgeWorkflow.ts +170 -0
- package/server/src/workflows/sessionDiscovery.ts +357 -0
- package/server/src/workflows/sessionIndex.ts +509 -0
- package/server/src/workflows/terminalSessions.ts +129 -0
- package/server/src/workflows/transcripts.ts +181 -0
- package/server/src/workflows/types.ts +254 -0
- package/server/src/workspace.ts +184 -0
- package/server/src/ws/bakeoffHandlers.ts +393 -0
- package/server/src/ws/clusterHandlers.ts +2892 -0
- package/server/src/ws/compactHandlers.ts +402 -0
- package/server/src/ws/compareHandlers.ts +214 -0
- package/server/src/ws/gateHandlers.ts +156 -0
- package/server/src/ws/genesisHandlers.ts +766 -0
- package/server/src/ws/handoffHandlers.ts +1876 -0
- package/server/src/ws/knowledgeHandlers.ts +74 -0
- package/server/src/ws/mcpHandlers.ts +202 -0
- package/server/src/ws/messageQueue.ts +12 -0
- package/server/src/ws/operatorQuestionHandlers.ts +27 -0
- package/server/src/ws/postureHandlers.ts +33 -0
- package/server/src/ws/previewCaptureHandlers.ts +232 -0
- package/server/src/ws/projectTrustHandlers.ts +55 -0
- package/server/src/ws/taskLedgerHandlers.ts +433 -0
- package/server/src/ws/taskWorktreeHandlers.ts +91 -0
- package/server/src/ws/turnEngine.ts +3033 -0
- package/server/src/ws/updatePrimaryConfig.ts +440 -0
- package/server/src/ws/workflowHandlers.ts +2225 -0
- package/shared/dist/autoPickupAck.d.ts +1 -0
- package/shared/dist/autoPickupAck.js +7 -0
- package/shared/dist/clusterCoordination.d.ts +10 -0
- package/shared/dist/clusterCoordination.js +55 -0
- package/shared/dist/clusterRolePresets.d.ts +8 -0
- package/shared/dist/clusterRolePresets.js +68 -0
- package/shared/dist/index.d.ts +8 -0
- package/shared/dist/index.js +9 -0
- package/shared/dist/localCapacity.d.ts +29 -0
- package/shared/dist/localCapacity.js +63 -0
- package/shared/dist/outputs.d.ts +31 -0
- package/shared/dist/outputs.js +2 -0
- package/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.d.ts +5 -0
- package/shared/dist/protocol/__fixtures__/cursorCatalog.fixture.js +194 -0
- package/shared/dist/protocol/autoPickup.d.ts +102 -0
- package/shared/dist/protocol/autoPickup.js +99 -0
- package/shared/dist/protocol/bakeoffs.d.ts +86 -0
- package/shared/dist/protocol/bakeoffs.js +2 -0
- package/shared/dist/protocol/chat.d.ts +33 -0
- package/shared/dist/protocol/chat.js +3 -0
- package/shared/dist/protocol/checkpoints.d.ts +129 -0
- package/shared/dist/protocol/checkpoints.js +20 -0
- package/shared/dist/protocol/clientMessages.d.ts +218 -0
- package/shared/dist/protocol/clientMessages.js +3 -0
- package/shared/dist/protocol/clusters.d.ts +575 -0
- package/shared/dist/protocol/clusters.js +99 -0
- package/shared/dist/protocol/compare.d.ts +78 -0
- package/shared/dist/protocol/compare.js +22 -0
- package/shared/dist/protocol/computerConditions.d.ts +129 -0
- package/shared/dist/protocol/computerConditions.js +8 -0
- package/shared/dist/protocol/connections.d.ts +22 -0
- package/shared/dist/protocol/connections.js +2 -0
- package/shared/dist/protocol/diagnostics.d.ts +17 -0
- package/shared/dist/protocol/diagnostics.js +19 -0
- package/shared/dist/protocol/docEdit.d.ts +44 -0
- package/shared/dist/protocol/docEdit.js +22 -0
- package/shared/dist/protocol/endpointDiscovery.d.ts +15 -0
- package/shared/dist/protocol/endpointDiscovery.js +13 -0
- package/shared/dist/protocol/fallback.d.ts +28 -0
- package/shared/dist/protocol/fallback.js +12 -0
- package/shared/dist/protocol/genesis.d.ts +121 -0
- package/shared/dist/protocol/genesis.js +18 -0
- package/shared/dist/protocol/gitOps.d.ts +44 -0
- package/shared/dist/protocol/gitOps.js +24 -0
- package/shared/dist/protocol/handoffs.d.ts +108 -0
- package/shared/dist/protocol/handoffs.js +3 -0
- package/shared/dist/protocol/hardware.d.ts +32 -0
- package/shared/dist/protocol/hardware.js +20 -0
- package/shared/dist/protocol/index.d.ts +50 -0
- package/shared/dist/protocol/index.js +55 -0
- package/shared/dist/protocol/knowledge.d.ts +63 -0
- package/shared/dist/protocol/knowledge.js +37 -0
- package/shared/dist/protocol/liveChanges.d.ts +19 -0
- package/shared/dist/protocol/liveChanges.js +2 -0
- package/shared/dist/protocol/llamacppDiagnose.d.ts +21 -0
- package/shared/dist/protocol/llamacppDiagnose.js +20 -0
- package/shared/dist/protocol/localModels.d.ts +12 -0
- package/shared/dist/protocol/localModels.js +2 -0
- package/shared/dist/protocol/mcp.d.ts +96 -0
- package/shared/dist/protocol/mcp.js +33 -0
- package/shared/dist/protocol/mdTuneup.d.ts +96 -0
- package/shared/dist/protocol/mdTuneup.js +4 -0
- package/shared/dist/protocol/media.d.ts +330 -0
- package/shared/dist/protocol/media.js +115 -0
- package/shared/dist/protocol/models.d.ts +265 -0
- package/shared/dist/protocol/models.js +444 -0
- package/shared/dist/protocol/notifications.d.ts +60 -0
- package/shared/dist/protocol/notifications.js +79 -0
- package/shared/dist/protocol/ollamaThinking.d.ts +11 -0
- package/shared/dist/protocol/ollamaThinking.js +47 -0
- package/shared/dist/protocol/operatorQuestions.d.ts +42 -0
- package/shared/dist/protocol/operatorQuestions.js +2 -0
- package/shared/dist/protocol/opsDiagnostics.d.ts +94 -0
- package/shared/dist/protocol/opsDiagnostics.js +12 -0
- package/shared/dist/protocol/orchestrationAssist.d.ts +204 -0
- package/shared/dist/protocol/orchestrationAssist.js +8 -0
- package/shared/dist/protocol/phosphorPaletteIds.d.ts +1 -0
- package/shared/dist/protocol/phosphorPaletteIds.js +74 -0
- package/shared/dist/protocol/plans.d.ts +82 -0
- package/shared/dist/protocol/plans.js +11 -0
- package/shared/dist/protocol/previewCapture.d.ts +59 -0
- package/shared/dist/protocol/previewCapture.js +2 -0
- package/shared/dist/protocol/providers.d.ts +29 -0
- package/shared/dist/protocol/providers.js +36 -0
- package/shared/dist/protocol/recall.d.ts +88 -0
- package/shared/dist/protocol/recall.js +9 -0
- package/shared/dist/protocol/remoteManagement.d.ts +353 -0
- package/shared/dist/protocol/remoteManagement.js +15 -0
- package/shared/dist/protocol/research.d.ts +56 -0
- package/shared/dist/protocol/research.js +22 -0
- package/shared/dist/protocol/reviews.d.ts +82 -0
- package/shared/dist/protocol/reviews.js +3 -0
- package/shared/dist/protocol/serverMessages.d.ts +766 -0
- package/shared/dist/protocol/serverMessages.js +20 -0
- package/shared/dist/protocol/services.d.ts +19 -0
- package/shared/dist/protocol/services.js +14 -0
- package/shared/dist/protocol/settings.d.ts +152 -0
- package/shared/dist/protocol/settings.js +10 -0
- package/shared/dist/protocol/tasks.d.ts +179 -0
- package/shared/dist/protocol/tasks.js +16 -0
- package/shared/dist/protocol/templates.d.ts +12 -0
- package/shared/dist/protocol/templates.js +25 -0
- package/shared/dist/protocol/terminal.d.ts +54 -0
- package/shared/dist/protocol/terminal.js +16 -0
- package/shared/dist/protocol/themes.d.ts +7 -0
- package/shared/dist/protocol/themes.js +70 -0
- package/shared/dist/protocol/usage.d.ts +211 -0
- package/shared/dist/protocol/usage.js +2 -0
- package/shared/dist/protocol/usageStats.d.ts +33 -0
- package/shared/dist/protocol/usageStats.js +22 -0
- package/shared/dist/protocol/utilityAgent.d.ts +43 -0
- package/shared/dist/protocol/utilityAgent.js +50 -0
- package/shared/dist/protocol/voiceOperator.d.ts +131 -0
- package/shared/dist/protocol/voiceOperator.js +20 -0
- package/shared/dist/protocol/workers.d.ts +47 -0
- package/shared/dist/protocol/workers.js +3 -0
- package/shared/dist/protocol/workflows.d.ts +266 -0
- package/shared/dist/protocol/workflows.js +40 -0
- package/shared/dist/protocol.d.ts +1 -0
- package/shared/dist/protocol.js +6 -0
- package/shared/dist/runtimeVersions.d.ts +1 -0
- package/shared/dist/runtimeVersions.js +29 -0
- package/shared/dist/voice.d.ts +136 -0
- package/shared/dist/voice.js +61 -0
- package/shared/src/autoPickupAck.ts +7 -0
- package/shared/src/clusterCoordination.ts +55 -0
- package/shared/src/clusterRolePresets.ts +74 -0
- package/shared/src/index.ts +8 -0
- package/shared/src/localCapacity.ts +74 -0
- package/shared/src/outputs.ts +28 -0
- package/shared/src/protocol/__fixtures__/cursorCatalog.fixture.ts +193 -0
- package/shared/src/protocol/autoPickup.ts +200 -0
- package/shared/src/protocol/bakeoffs.ts +108 -0
- package/shared/src/protocol/chat.ts +66 -0
- package/shared/src/protocol/checkpoints.ts +274 -0
- package/shared/src/protocol/clientMessages.ts +639 -0
- package/shared/src/protocol/clusters.ts +1140 -0
- package/shared/src/protocol/compare.ts +147 -0
- package/shared/src/protocol/computerConditions.ts +52 -0
- package/shared/src/protocol/connections.ts +24 -0
- package/shared/src/protocol/diagnostics.ts +46 -0
- package/shared/src/protocol/docEdit.ts +87 -0
- package/shared/src/protocol/endpointDiscovery.ts +40 -0
- package/shared/src/protocol/fallback.ts +69 -0
- package/shared/src/protocol/genesis.ts +252 -0
- package/shared/src/protocol/gitOps.ts +95 -0
- package/shared/src/protocol/handoffs.ts +166 -0
- package/shared/src/protocol/hardware.ts +101 -0
- package/shared/src/protocol/index.ts +57 -0
- package/shared/src/protocol/knowledge.ts +133 -0
- package/shared/src/protocol/liveChanges.ts +25 -0
- package/shared/src/protocol/llamacppDiagnose.ts +55 -0
- package/shared/src/protocol/localModels.ts +14 -0
- package/shared/src/protocol/mcp.ts +204 -0
- package/shared/src/protocol/mdTuneup.ts +135 -0
- package/shared/src/protocol/media.ts +536 -0
- package/shared/src/protocol/models.ts +799 -0
- package/shared/src/protocol/notifications.ts +170 -0
- package/shared/src/protocol/ollamaThinking.ts +63 -0
- package/shared/src/protocol/operatorQuestions.ts +40 -0
- package/shared/src/protocol/opsDiagnostics.ts +211 -0
- package/shared/src/protocol/orchestrationAssist.ts +255 -0
- package/shared/src/protocol/phosphorPaletteIds.ts +73 -0
- package/shared/src/protocol/plans.ts +160 -0
- package/shared/src/protocol/previewCapture.ts +109 -0
- package/shared/src/protocol/providers.ts +90 -0
- package/shared/src/protocol/recall.ts +202 -0
- package/shared/src/protocol/remoteManagement.ts +482 -0
- package/shared/src/protocol/research.ts +105 -0
- package/shared/src/protocol/reviews.ts +105 -0
- package/shared/src/protocol/serverMessages.ts +1609 -0
- package/shared/src/protocol/services.ts +35 -0
- package/shared/src/protocol/settings.ts +345 -0
- package/shared/src/protocol/tasks.ts +316 -0
- package/shared/src/protocol/templates.ts +50 -0
- package/shared/src/protocol/terminal.ts +106 -0
- package/shared/src/protocol/themes.ts +73 -0
- package/shared/src/protocol/usage.ts +362 -0
- package/shared/src/protocol/usageStats.ts +78 -0
- package/shared/src/protocol/utilityAgent.ts +90 -0
- package/shared/src/protocol/voiceOperator.ts +147 -0
- package/shared/src/protocol/workers.ts +59 -0
- package/shared/src/protocol/workflows.ts +841 -0
- package/shared/src/protocol.ts +5 -0
- package/shared/src/runtimeVersions.ts +22 -0
- package/shared/src/voice.ts +78 -0
|
@@ -0,0 +1,2907 @@
|
|
|
1
|
+
import { buildMessageGuardPolicy } from '@arco/shared';
|
|
2
|
+
import * as attention from '../attention.js';
|
|
3
|
+
import { acquireCheckoutWriter, assertCheckoutAvailable, workflowWritePaths, observeCheckoutWriters } from '../checkoutOwnership.js';
|
|
4
|
+
import { randomUUID } from 'node:crypto';
|
|
5
|
+
import { projectOllamaHistory, stampOllamaExecution } from '../providers/ollamaExecutionHistory.js';
|
|
6
|
+
import { publishActivity, computerProjectionChanged } from '../voice/activityBus.js';
|
|
7
|
+
import { setComputerBackgroundClaim, clearComputerBackgroundClaim, isComputerBackgroundClaim } from '../voice/operatorTools.js';
|
|
8
|
+
import { watchClaimed, watchSettled } from '../voice/watches.js';
|
|
9
|
+
import { renderComputerHistory } from '../voice/history.js';
|
|
10
|
+
import { computerReplayEvents, announceComputerSettled } from '../voice/computerContext.js';
|
|
11
|
+
import { VOICE_OPERATOR_PROMPT } from '../voice/operatorPrompt.js';
|
|
12
|
+
import { COMPUTER_TIMEOUT } from '../voice/turnWatchdog.js';
|
|
13
|
+
import { isAutoCompactionPolicy, resolveProviderAutoCompaction } from '@arco/shared';
|
|
14
|
+
import { WebSocket } from 'ws';
|
|
15
|
+
import { discoverClaudeMdFiles } from '../claudeMdDiscovery.js';
|
|
16
|
+
import { buildKnowledgeBlock } from '../knowledge/store.js';
|
|
17
|
+
import { expandContextRefs } from '../contextRefs.js';
|
|
18
|
+
import { refsDoctrine } from '../planRefContext.js';
|
|
19
|
+
import { createCheckpoint } from '../gitSnapshots.js';
|
|
20
|
+
import { summarizeTurnChanges, timelyCheckpoint, shouldCaptureTurn } from '../turnChanges.js';
|
|
21
|
+
import { isManagedBakeoffWorktree } from '../gitBakeoff.js';
|
|
22
|
+
import * as clusterMailbox from '../clusterMailbox.js';
|
|
23
|
+
import * as clusterPlanBridge from '../clusterPlanBridge.js';
|
|
24
|
+
import * as clusterStore from '../clusterStore.js';
|
|
25
|
+
import * as clusterEfficiency from '../clusterEfficiency.js';
|
|
26
|
+
import { BLIND_CLUSTER_DOCTRINE } from '../clusterAccessDoctrine.js';
|
|
27
|
+
import { buildProgressDoctrine } from '../clusterProgress.js';
|
|
28
|
+
import { buildClusterDirectorDoctrine, joinClusterDoctrines } from '../clusterDirector.js';
|
|
29
|
+
import * as projectTrust from '../projectTrust.js';
|
|
30
|
+
import { parsePromptInvocation, expandPromptCommand, projectPromptExists } from '../prompts.js';
|
|
31
|
+
import { highestUncalibratedZoneCrossed, runCalibration, } from '../contextCalibrator.js';
|
|
32
|
+
import { BYTES_PER_TOKEN_DEFAULT, estimateContextFill, nativeContextEstimate, OVERHEAD_TOKENS_DEFAULT, promptContextEstimate } from '../contextEstimator.js';
|
|
33
|
+
import { computeContextBudget, crossedThresholds } from '../providers/claude-native/contextBudget.js';
|
|
34
|
+
import { chooseMaxTokens, lookupCtx } from '../providers/claude-native/modelParams.js';
|
|
35
|
+
import * as mcpConfigWriter from '../mcp/mcpConfigWriter.js';
|
|
36
|
+
import { codexModelUsesCodeMode, codexCodeModeClusterAddendum } from '../providers/codexCodeMode.js';
|
|
37
|
+
import { composeClusterAppend, APPEND_CLUSTER_MAX, CODEX_APP_SERVER_CLUSTER_MAX } from '../clusterStringFold.js';
|
|
38
|
+
import { planOutline } from '../clusterPlanOutline.js';
|
|
39
|
+
import { resolveRegistryWiring } from '../mcp/registryWiring.js';
|
|
40
|
+
import { listPlanRefs, readPlan } from '../planStore.js';
|
|
41
|
+
import { PrimaryBackgroundTracker } from '../primaryBackgroundTracker.js';
|
|
42
|
+
import { renderTranscript, summarizePriorTurns } from '../primitives/exportContext.js';
|
|
43
|
+
import { runPrimaryTurn } from '../primitives/seedWorker.js';
|
|
44
|
+
import { ollamaContextUsage } from '../providers/ollamaTokens.js';
|
|
45
|
+
import { evaluateGoalRun, goalRunContinuePrompt, GOAL_RUN_STOP_TEXT } from '../goalRun.js';
|
|
46
|
+
import { isAvailable } from '../quota.js';
|
|
47
|
+
import { resolveProviderAccount } from '../providerAccounts.js';
|
|
48
|
+
import { broadcastTransient, broadcastWorkflow, notifyClusterStateForWorkflow, send } from '../server/broadcast.js';
|
|
49
|
+
import { FOREIGN_WARN_DEBOUNCE_MS, FOREIGN_WRITE_BLOCK_MS, PORT, SESSION_HISTORY_PAGE_SIZE } from '../server/constants.js';
|
|
50
|
+
import { buildLocalClusterSystemPrompt, LLAMACPP_PRIMARY_SYSTEM_PROMPT, OLLAMA_PRIMARY_SYSTEM_PROMPT, withPreviewNudge } from '../server/prompts.js';
|
|
51
|
+
import { buildGenesisSystemBlock } from '../genesis/prompts.js';
|
|
52
|
+
import { CHAT_PROVIDERS, chatSystemPrompt, chatWebArmed, isChatWorkflow } from '../chatMode.js';
|
|
53
|
+
import { sessions, workflows } from '../server/state.js';
|
|
54
|
+
import { loadSessionJsonl, resolveSessionJsonlPath, watchSessionJsonl } from '../sessionJsonl.js';
|
|
55
|
+
import { startUltracodeFleetWatcher } from '../ultracodeFleetWatcher.js';
|
|
56
|
+
import { readSettings } from '../settings.js';
|
|
57
|
+
import { buildPickedSkillsBlock, buildPinnedSkillsBlock, resolvePinnedSkills, buildSkillsManifest, listSkills, readSkillBody } from '../skills.js';
|
|
58
|
+
import { ensureMeta, readMeta, reconcileLatestCliSession, updateMeta } from '../workflowMeta.js';
|
|
59
|
+
import { currentSeq as currentWorkflowSeq, replayEvents as replayWorkflowEvents } from '../workflowStore.js';
|
|
60
|
+
import { latestCodexTokenSnapshot } from '../workflows/transcripts.js';
|
|
61
|
+
import { foldClaudeNativeWorker } from '../providers/claude-native/index.js';
|
|
62
|
+
import { maybeFreshComputerContext } from '../voice/computerContext.js';
|
|
63
|
+
import { takeQueuedTurn } from './messageQueue.js';
|
|
64
|
+
import { awaitModelImages } from '../providers/attachments.js';
|
|
65
|
+
const PUBLIC_REPO_SAFETY_SYSTEM_BLOCK = [
|
|
66
|
+
'Genesis public repository safety:',
|
|
67
|
+
'This workflow is attached to a Genesis project configured for a public GitHub repository.',
|
|
68
|
+
'Before committing or pushing, inspect staged changes for secrets, credentials, API keys, tokens, private URLs, private hostnames, personal data, local-only config, and Arco workflow metadata.',
|
|
69
|
+
'Never publish sensitive material. If a file or value is ambiguous, stop and ask the operator before committing or pushing.',
|
|
70
|
+
].join('\n');
|
|
71
|
+
let deps;
|
|
72
|
+
export function initTurnEngine(d) { deps = d; }
|
|
73
|
+
// Extract renderable entries from a raw Claude session JSONL line. A single
|
|
74
|
+
// line can produce 0..N entries: assistant messages often contain a text
|
|
75
|
+
// block plus one or more tool_use blocks, and we want each to show up
|
|
76
|
+
// in chat as its own row (text as a bubble, tool_use as a compact pill).
|
|
77
|
+
// Returns [] for tool_result / summary / other entries that don't render.
|
|
78
|
+
// For Write/Edit/Read/NotebookEdit the tool input carries a `file_path` that
|
|
79
|
+
// we want to expose on the pill so clicking opens the file in FileViewerModal.
|
|
80
|
+
// Other tools (Bash, WebFetch, Grep, ...) surface their own summary from input
|
|
81
|
+
// and are non-clickable.
|
|
82
|
+
export function extractFilePath(tool, input) {
|
|
83
|
+
if (!input || typeof input !== 'object')
|
|
84
|
+
return undefined;
|
|
85
|
+
const rec = input;
|
|
86
|
+
if (tool === 'Read' || tool === 'Write' || tool === 'Edit' || tool === 'NotebookEdit') {
|
|
87
|
+
const p = rec.file_path;
|
|
88
|
+
return typeof p === 'string' ? p : undefined;
|
|
89
|
+
}
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
export function stripSafetyReminder(text) {
|
|
93
|
+
const marker = '[Arco safety reminders';
|
|
94
|
+
const markerIdx = text.indexOf(marker);
|
|
95
|
+
if (markerIdx === -1)
|
|
96
|
+
return text;
|
|
97
|
+
const before = text.slice(0, markerIdx).trimEnd();
|
|
98
|
+
return before.endsWith('---') ? before.slice(0, -3).trimEnd() : before;
|
|
99
|
+
}
|
|
100
|
+
// Drop the per-turn plan prefix that buildPlanPrefix() prepends to user
|
|
101
|
+
// prompts. Claude's session JSONL records the full prompt verbatim, so the
|
|
102
|
+
// prefix would otherwise re-render as a duplicate user bubble in chat (the
|
|
103
|
+
// clean copy comes from user_message_echo). The pattern is distinctive
|
|
104
|
+
// (`[Active project plan…]` opening line + optional `<plan>…</plan>`
|
|
105
|
+
// block + blank separator); anchoring at the start of the message means
|
|
106
|
+
// we don't touch user-typed content that happens to mention plans later.
|
|
107
|
+
// Both prefix forms are stripped: the attached-plan one-liner and the
|
|
108
|
+
// no-plan-attached authoring note (`planAuthoringNote`). The greedy `[^\n]*\]`
|
|
109
|
+
// runs to the last bracket on the line, which is each form's own closer — that
|
|
110
|
+
// matters for the note, whose text contains a literal `- [ ]` example.
|
|
111
|
+
export const PLAN_PREFIX_RE = /^\[(?:Active project plan|No project plan is attached)[^\n]*\]\n(?:<plan>\n[\s\S]*?\n<\/plan>\n)?\n/;
|
|
112
|
+
export function stripPlanPrefix(text) {
|
|
113
|
+
return text.replace(PLAN_PREFIX_RE, '');
|
|
114
|
+
}
|
|
115
|
+
export function toSessionEntries(raw) {
|
|
116
|
+
if (raw.type !== 'user' && raw.type !== 'assistant')
|
|
117
|
+
return [];
|
|
118
|
+
// CLI-fabricated assistant rows (model:"<synthetic>", zero usage) are
|
|
119
|
+
// bookkeeping, not model output — e.g. the "No response requested." reply
|
|
120
|
+
// Claude writes for a resumed `--print "/context"` probe. Rendering them as
|
|
121
|
+
// agent replies would create phantom bubbles over real answers.
|
|
122
|
+
if (raw.type === 'assistant' && raw.message?.model === '<synthetic>')
|
|
123
|
+
return [];
|
|
124
|
+
// Skip slash-command echoes. When a resumed `claude --print "/<cmd>"` runs
|
|
125
|
+
// (e.g. Arco's /context calibration), Claude writes three rows into the
|
|
126
|
+
// session JSONL: a `<local-command-caveat>` user turn with isMeta:true, a
|
|
127
|
+
// `<command-name>` user turn (no isMeta flag), and a `system` row holding
|
|
128
|
+
// the command's stdout. The system row is already dropped by the type check
|
|
129
|
+
// above; the two user rows would otherwise render in chat as if the
|
|
130
|
+
// operator had typed them. Filter on the meta flag plus a content-prefix
|
|
131
|
+
// sniff so we also catch the command-name row.
|
|
132
|
+
if (raw.type === 'user') {
|
|
133
|
+
if (raw.isMeta)
|
|
134
|
+
return [];
|
|
135
|
+
const c = raw.message?.content;
|
|
136
|
+
const head = typeof c === 'string'
|
|
137
|
+
? c
|
|
138
|
+
: Array.isArray(c)
|
|
139
|
+
? c.find((p) => p?.type === 'text')?.text ?? ''
|
|
140
|
+
: '';
|
|
141
|
+
if (/^\s*<(command-name|local-command-caveat)>/.test(head))
|
|
142
|
+
return [];
|
|
143
|
+
}
|
|
144
|
+
const role = raw.type;
|
|
145
|
+
const msg = raw.message;
|
|
146
|
+
if (!msg)
|
|
147
|
+
return [];
|
|
148
|
+
const ts = raw.timestamp ? Date.parse(raw.timestamp) || Date.now() : Date.now();
|
|
149
|
+
const out = [];
|
|
150
|
+
// String content — a plain text message with no tool blocks. Claude's SDK
|
|
151
|
+
// stores user turns this way when --append-system-prompt was used, so the
|
|
152
|
+
// safety-reminder footer has to be stripped here too (not just in the
|
|
153
|
+
// array-content path).
|
|
154
|
+
if (typeof msg.content === 'string') {
|
|
155
|
+
let text = msg.content;
|
|
156
|
+
if (role === 'user')
|
|
157
|
+
text = stripPlanPrefix(stripSafetyReminder(text));
|
|
158
|
+
if (text.trim())
|
|
159
|
+
out.push({ kind: 'message', role, content: text, timestamp: ts, uuid: raw.uuid });
|
|
160
|
+
return out;
|
|
161
|
+
}
|
|
162
|
+
if (!Array.isArray(msg.content))
|
|
163
|
+
return [];
|
|
164
|
+
// Block-structured message. Concatenate all text blocks into one message
|
|
165
|
+
// entry (matches old behavior), emit each tool_use block as its own pill.
|
|
166
|
+
let text = msg.content
|
|
167
|
+
.filter((p) => p?.type === 'text')
|
|
168
|
+
.map((p) => p.text ?? '')
|
|
169
|
+
.join('');
|
|
170
|
+
if (role === 'user')
|
|
171
|
+
text = stripPlanPrefix(stripSafetyReminder(text));
|
|
172
|
+
if (text.trim()) {
|
|
173
|
+
out.push({ kind: 'message', role, content: text, timestamp: ts, uuid: raw.uuid });
|
|
174
|
+
}
|
|
175
|
+
// Tool uses render only for assistant messages. User messages contain
|
|
176
|
+
// tool_result blocks we deliberately skip (they'd blow out the chat;
|
|
177
|
+
// the Read on a PNG is 26KB base64, for example).
|
|
178
|
+
if (role === 'assistant') {
|
|
179
|
+
for (const block of msg.content) {
|
|
180
|
+
if (!block || block.type !== 'tool_use')
|
|
181
|
+
continue;
|
|
182
|
+
const tool = typeof block.name === 'string' ? block.name : 'unknown';
|
|
183
|
+
const toolUseId = typeof block.id === 'string' ? block.id : '';
|
|
184
|
+
if (!toolUseId)
|
|
185
|
+
continue; // no dedup key → drop
|
|
186
|
+
out.push({
|
|
187
|
+
kind: 'tool_use',
|
|
188
|
+
tool,
|
|
189
|
+
input: block.input ?? {},
|
|
190
|
+
filePath: extractFilePath(tool, block.input),
|
|
191
|
+
toolUseId,
|
|
192
|
+
timestamp: ts,
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
return out;
|
|
197
|
+
}
|
|
198
|
+
// Effective Claude transport for a workflow: sticky ultracode forces 'cli'
|
|
199
|
+
// (the harness WorkflowTool lives only in the `claude` binary), else explicit
|
|
200
|
+
// per-tab config wins, else the cwd's TRANSPORT DEFAULTS cascade, else 'cli'.
|
|
201
|
+
// Same precedence as the turn dispatcher — keep the two in sync.
|
|
202
|
+
export async function resolveClaudeTransport(wf, cwd) {
|
|
203
|
+
if (wf.primary.provider === 'claude' && wf.config.ultracode === true)
|
|
204
|
+
return 'cli';
|
|
205
|
+
if (wf.config.claudeTransport === 'native' || wf.config.claudeTransport === 'cli') {
|
|
206
|
+
return wf.config.claudeTransport;
|
|
207
|
+
}
|
|
208
|
+
const cascade = await readSettings(cwd).catch(() => null);
|
|
209
|
+
return cascade?.claude?.transport === 'native' ? 'native' : 'cli';
|
|
210
|
+
}
|
|
211
|
+
// Start watching Claude's session JSONL for a workflow.
|
|
212
|
+
// `initialWs` receives the historical entries; new entries go to all observers.
|
|
213
|
+
// No-op for non-Claude providers, when primarySessionId is absent, or on the
|
|
214
|
+
// Native transport — a Native tab's transcript truth is events.jsonl; its turns
|
|
215
|
+
// never write the CLI session JSONL. Watching a (stale, e.g. handoff-era) file
|
|
216
|
+
// here let out-of-band appends — notably the /context calibration probe's
|
|
217
|
+
// synthetic "No response requested." rows — render as agent replies while
|
|
218
|
+
// ChatPanel's sessionChat-canonical mode hid every real finalized answer
|
|
219
|
+
// otherwise stale session entries could hide finalized answers.
|
|
220
|
+
export function startSessionWatcher(workflowId, wf, cwd, initialWs) {
|
|
221
|
+
if (wf.primary.provider !== 'claude')
|
|
222
|
+
return;
|
|
223
|
+
const sessionId = wf.primarySessionId;
|
|
224
|
+
if (!sessionId)
|
|
225
|
+
return;
|
|
226
|
+
if (wf.sessionWatcher) {
|
|
227
|
+
wf.sessionWatcher();
|
|
228
|
+
wf.sessionWatcher = null;
|
|
229
|
+
}
|
|
230
|
+
const path = resolveSessionJsonlPath(cwd, sessionId);
|
|
231
|
+
resolveClaudeTransport(wf, cwd).then((transport) => {
|
|
232
|
+
if (transport === 'native')
|
|
233
|
+
return null;
|
|
234
|
+
return loadSessionJsonl(path);
|
|
235
|
+
}).then((loaded) => {
|
|
236
|
+
if (!loaded)
|
|
237
|
+
return;
|
|
238
|
+
const { entries, byteLength } = loaded;
|
|
239
|
+
// Tail-first: only the last N raw entries go out immediately. Anything
|
|
240
|
+
// older sits on wf.pendingEarlierEntries until the operator pages back
|
|
241
|
+
// via `load_earlier_messages`. Keeps first-paint fast on huge sessions
|
|
242
|
+
// (the old behavior emitted thousands of session_entry messages at once
|
|
243
|
+
// and the client's O(n) upsert-dedup made it N² expensive to render).
|
|
244
|
+
const splitIdx = Math.max(0, entries.length - SESSION_HISTORY_PAGE_SIZE);
|
|
245
|
+
const earlier = entries.slice(0, splitIdx);
|
|
246
|
+
const tail = entries.slice(splitIdx);
|
|
247
|
+
const wfAtLoad = workflows.get(workflowId);
|
|
248
|
+
if (wfAtLoad) {
|
|
249
|
+
wfAtLoad.pendingEarlierEntries = earlier;
|
|
250
|
+
}
|
|
251
|
+
for (const raw of tail) {
|
|
252
|
+
for (const entry of toSessionEntries(raw)) {
|
|
253
|
+
const msg = { type: 'session_entry', workflowId, entry };
|
|
254
|
+
if (initialWs && initialWs.readyState === WebSocket.OPEN) {
|
|
255
|
+
initialWs.send(JSON.stringify(msg));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
if (initialWs && initialWs.readyState === WebSocket.OPEN) {
|
|
260
|
+
initialWs.send(JSON.stringify({
|
|
261
|
+
type: 'session_history_status',
|
|
262
|
+
workflowId,
|
|
263
|
+
hasEarlier: earlier.length > 0,
|
|
264
|
+
earlierRemaining: earlier.length,
|
|
265
|
+
}));
|
|
266
|
+
}
|
|
267
|
+
if (!workflows.has(workflowId))
|
|
268
|
+
return; // workflow removed while loading
|
|
269
|
+
const dispose = watchSessionJsonl(path, byteLength, (raw) => {
|
|
270
|
+
// Concurrent-session detection. Live writes with an entrypoint other
|
|
271
|
+
// than 'sdk-cli' mean a native `claude --resume` terminal is writing
|
|
272
|
+
// to this same JSONL. Flag the workflow, and emit a debounced chat
|
|
273
|
+
// warning so the operator knows the next turn will be refused.
|
|
274
|
+
if (raw.entrypoint && raw.entrypoint !== 'sdk-cli') {
|
|
275
|
+
const wfNow = workflows.get(workflowId);
|
|
276
|
+
if (wfNow) {
|
|
277
|
+
const now = Date.now();
|
|
278
|
+
wfNow.lastForeignWriteAt = now;
|
|
279
|
+
const lastWarn = wfNow.lastForeignWarnAt ?? 0;
|
|
280
|
+
if (now - lastWarn > FOREIGN_WARN_DEBOUNCE_MS) {
|
|
281
|
+
wfNow.lastForeignWarnAt = now;
|
|
282
|
+
const obs = anyObserver(workflowId);
|
|
283
|
+
if (obs) {
|
|
284
|
+
send(obs, {
|
|
285
|
+
type: 'system_notice',
|
|
286
|
+
workflowId,
|
|
287
|
+
content: '[CONCURRENT NATIVE SESSION] A native `claude --resume` terminal is writing to this session. Two processes writing one JSONL corrupts conversation state — Arco will refuse new turns until it stops. Close the native terminal, or rotate via Handoff.',
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
for (const entry of toSessionEntries(raw)) {
|
|
294
|
+
broadcastTransient(workflowId, { type: 'session_entry', workflowId, entry });
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
const wfNow = workflows.get(workflowId);
|
|
298
|
+
if (wfNow) {
|
|
299
|
+
wfNow.sessionWatcher = dispose;
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
dispose(); // workflow gone — clean up immediately
|
|
303
|
+
}
|
|
304
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] session watcher started (${tail.length} emitted / ${earlier.length} deferred / ${entries.length} total, ${byteLength}B)`);
|
|
305
|
+
}).catch((err) => {
|
|
306
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] session watcher init failed:`, err);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
export function derivePrimaryConfig(config) {
|
|
310
|
+
return {
|
|
311
|
+
provider: config.primaryProvider ?? 'claude',
|
|
312
|
+
model: config.primaryModel,
|
|
313
|
+
effort: config.primaryEffort,
|
|
314
|
+
skipPermissions: config.skipPermissions,
|
|
315
|
+
additionalDirectories: config.advanced?.additionalDirectories,
|
|
316
|
+
fallbackModel: config.advanced?.fallbackModel,
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
export function deriveAutoHandoff(config) {
|
|
320
|
+
return {
|
|
321
|
+
enabled: config.autoHandoff?.enabled ?? false,
|
|
322
|
+
warnAt: config.autoHandoff?.warnAt ?? 75,
|
|
323
|
+
autoAt: config.autoHandoff?.autoAt ?? 90,
|
|
324
|
+
warnFired: false,
|
|
325
|
+
autoFired: false,
|
|
326
|
+
// WP5 — carry through verbatim (no defaulting); resolution happens at
|
|
327
|
+
// fire time so a later change to the global default still affects tabs
|
|
328
|
+
// that never set a per-tab override.
|
|
329
|
+
mode: config.autoHandoff?.mode,
|
|
330
|
+
summarizer: config.autoHandoff?.summarizer,
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
// §2.1 — mirror WorkflowConfig.autoFold into the live state shape (carrying the
|
|
334
|
+
// runtime-only foldFired + anti-thrash counter). Returns undefined when the tab
|
|
335
|
+
// has no autoFold config (auto-fold off).
|
|
336
|
+
export function deriveAutoFold(config) {
|
|
337
|
+
if (!config.autoFold)
|
|
338
|
+
return undefined;
|
|
339
|
+
return {
|
|
340
|
+
enabled: config.autoFold.enabled ?? false,
|
|
341
|
+
foldAt: config.autoFold.foldAt ?? 60,
|
|
342
|
+
tailBudget: config.autoFold.tailBudget,
|
|
343
|
+
foldFired: false,
|
|
344
|
+
foldIneffectiveCount: 0,
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
export function applyAutoHandoffDefault(config, defaults) {
|
|
348
|
+
if (config.autoHandoff)
|
|
349
|
+
return false;
|
|
350
|
+
if (!defaults)
|
|
351
|
+
return false;
|
|
352
|
+
if (defaults.enabled === undefined
|
|
353
|
+
&& defaults.warnAt === undefined
|
|
354
|
+
&& defaults.autoAt === undefined
|
|
355
|
+
&& defaults.mode === undefined
|
|
356
|
+
&& defaults.summarizer === undefined)
|
|
357
|
+
return false;
|
|
358
|
+
config.autoHandoff = {
|
|
359
|
+
enabled: defaults.enabled ?? false,
|
|
360
|
+
warnAt: defaults.warnAt ?? 75,
|
|
361
|
+
autoAt: defaults.autoAt ?? 90,
|
|
362
|
+
...(defaults.mode !== undefined ? { mode: defaults.mode } : {}),
|
|
363
|
+
...(defaults.summarizer !== undefined ? { summarizer: defaults.summarizer } : {}),
|
|
364
|
+
};
|
|
365
|
+
return true;
|
|
366
|
+
}
|
|
367
|
+
export async function refreshCodexTokenSnapshot(workflowId, wf, codexHome, opts) {
|
|
368
|
+
if (!wf.primarySessionId)
|
|
369
|
+
return null;
|
|
370
|
+
const snapshot = await latestCodexTokenSnapshot(wf.primarySessionId, codexHome).catch(() => null);
|
|
371
|
+
if (!snapshot)
|
|
372
|
+
return null;
|
|
373
|
+
const modelContextWindow = snapshot.modelContextWindow;
|
|
374
|
+
broadcastTransient(workflowId, {
|
|
375
|
+
type: 'codex_token_snapshot',
|
|
376
|
+
workflowId,
|
|
377
|
+
tokens: snapshot.tokens,
|
|
378
|
+
...(typeof modelContextWindow === 'number'
|
|
379
|
+
? { modelContextWindow }
|
|
380
|
+
: {}),
|
|
381
|
+
});
|
|
382
|
+
if (opts?.updateAutoHandoffSignal !== false) {
|
|
383
|
+
const lastInput = snapshot.tokens.input;
|
|
384
|
+
const win = modelContextWindow;
|
|
385
|
+
if (typeof lastInput === 'number' && typeof win === 'number' && win > 0) {
|
|
386
|
+
wf.lastContextPercent = Math.max(0, Math.min(100, Math.round((lastInput / win) * 100)));
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
return snapshot;
|
|
390
|
+
}
|
|
391
|
+
export function resetCodexContextAfterCompact(workflowId, wf, modelContextWindow) {
|
|
392
|
+
wf.lastContextPercent = 0;
|
|
393
|
+
wf.autoHandoff.warnFired = false;
|
|
394
|
+
wf.autoHandoff.autoFired = false;
|
|
395
|
+
broadcastTransient(workflowId, {
|
|
396
|
+
type: 'codex_token_snapshot',
|
|
397
|
+
workflowId,
|
|
398
|
+
tokens: { input: 0, output: 0 },
|
|
399
|
+
...(typeof modelContextWindow === 'number' && modelContextWindow > 0
|
|
400
|
+
? { modelContextWindow }
|
|
401
|
+
: {}),
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
// New tabs start with Claude API compaction off; saved tab choices win.
|
|
405
|
+
export function applyClaudeNativeCompactDefault(config) {
|
|
406
|
+
config.claudeNativeCompact ??= false;
|
|
407
|
+
}
|
|
408
|
+
// Return any open WebSocket observing workflowId — used as the `ws` argument
|
|
409
|
+
// for `send()` when broadcasting from server-internal triggers (auto-handoff).
|
|
410
|
+
// `send()` already fans out to all observers; the ws here is just the fallback.
|
|
411
|
+
export function anyObserver(workflowId) {
|
|
412
|
+
const wf = workflows.get(workflowId);
|
|
413
|
+
if (!wf)
|
|
414
|
+
return null;
|
|
415
|
+
for (const obs of wf.observers) {
|
|
416
|
+
if (obs.readyState === WebSocket.OPEN)
|
|
417
|
+
return obs;
|
|
418
|
+
}
|
|
419
|
+
return null;
|
|
420
|
+
}
|
|
421
|
+
// Per-claim busy ownership. `wf.busy` alone can't tell WHICH holder is
|
|
422
|
+
// releasing it: STOP (handleCancel) drops busy immediately, the operator's
|
|
423
|
+
// quick resend claims it for turn 2, and turn 1's loop — still unwinding its
|
|
424
|
+
// post-settle awaits — then hit its `finally` and cleared turn 2's busy flag
|
|
425
|
+
// (and drained/cleared turn 2's queue). Every holder that claims through here
|
|
426
|
+
// gets a token; only the current token may release, and revokeBusy() (STOP /
|
|
427
|
+
// tab close) orphans whatever claim is in flight so its late release is a
|
|
428
|
+
// no-op. Keyed on the WorkflowState object so a removed tab's entry is GC'd.
|
|
429
|
+
let busyClaimSeq = 0;
|
|
430
|
+
const busyCheckoutLeases = new WeakMap();
|
|
431
|
+
const busyOwners = new WeakMap();
|
|
432
|
+
const lastBusyClaim = new WeakMap();
|
|
433
|
+
const busyRevocations = new WeakMap();
|
|
434
|
+
export function publishWorkerActivity(wf, kind) {
|
|
435
|
+
if (wf.config?.incognito || wf.config?.kind === 'chat' || wf.config?.voiceOperator)
|
|
436
|
+
return;
|
|
437
|
+
for (const [id, current] of workflows)
|
|
438
|
+
if (current === wf) {
|
|
439
|
+
publishActivity({ kind, workflowId: id, clusterId: clusterStore.getClusterIdForWorkflow(id), name: wf.config.name ?? id });
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
export function claimBusy(wf) {
|
|
444
|
+
// Keep the existing conservative restore reservation, but observe isolated
|
|
445
|
+
// members at their actual scratch cwd for turn-overlap reporting.
|
|
446
|
+
const wfid = [...workflows].find(([, current]) => current === wf)?.[0];
|
|
447
|
+
const clusterId = wfid ? clusterStore.getClusterIdForWorkflow(wfid) : undefined;
|
|
448
|
+
const observedPaths = clusterId && wfid && clusterStore.getMemberAccessMode(clusterId, wfid) === 'isolated'
|
|
449
|
+
? [clusterStore.isolatedWorkspaceFor(clusterId, wfid)] : undefined;
|
|
450
|
+
const release = acquireCheckoutWriter(workflowWritePaths(wf), undefined, wf.manager, false, undefined, observedPaths);
|
|
451
|
+
busyCheckoutLeases.get(wf)?.();
|
|
452
|
+
busyCheckoutLeases.set(wf, release);
|
|
453
|
+
const token = ++busyClaimSeq;
|
|
454
|
+
busyOwners.set(wf, token);
|
|
455
|
+
lastBusyClaim.set(wf, token);
|
|
456
|
+
watchClaimed(wf, token);
|
|
457
|
+
wf.busy = true;
|
|
458
|
+
if (wf.config?.voiceOperator)
|
|
459
|
+
wf.computerSettled = false;
|
|
460
|
+
publishWorkerActivity(wf, 'worker_started');
|
|
461
|
+
return token;
|
|
462
|
+
}
|
|
463
|
+
export function ownsBusy(wf, token) {
|
|
464
|
+
return busyOwners.get(wf) === token;
|
|
465
|
+
}
|
|
466
|
+
// Returns false (and leaves wf.busy alone) when the claim was revoked or
|
|
467
|
+
// superseded — the caller is a stale holder and must not touch busy/queue.
|
|
468
|
+
export function releaseBusy(wf, token, outcome = 'interrupted', workerActivity = true) {
|
|
469
|
+
if (busyOwners.get(wf) !== token)
|
|
470
|
+
return false;
|
|
471
|
+
watchSettled(wf, busyOwners.get(wf), outcome);
|
|
472
|
+
busyOwners.delete(wf);
|
|
473
|
+
busyCheckoutLeases.get(wf)?.();
|
|
474
|
+
busyCheckoutLeases.delete(wf);
|
|
475
|
+
wf.busy = false;
|
|
476
|
+
clearComputerBackgroundClaim([...workflows].find(([, current]) => current === wf)?.[0] ?? '', token);
|
|
477
|
+
if (wf.config?.voiceOperator)
|
|
478
|
+
computerProjectionChanged();
|
|
479
|
+
// Compaction publishes its own operation outcome after refresh/queue drain;
|
|
480
|
+
// releasing that claim must not fabricate a worker STOP in the live ledger.
|
|
481
|
+
// Failed turns end here whatever the provider path was (worker_error, a
|
|
482
|
+
// thrown dispatch, a provider-side failure); attention de-duplicates per
|
|
483
|
+
// workflow so a worker_error already seen does not alert twice.
|
|
484
|
+
if (outcome === 'failed' && workerActivity && !wf.config?.voiceOperator) {
|
|
485
|
+
const failedId = [...workflows].find(([, current]) => current === wf)?.[0];
|
|
486
|
+
if (failedId)
|
|
487
|
+
attention.raise('failed', failedId, { name: wf.config?.name ?? '', incognito: !!wf.config?.incognito });
|
|
488
|
+
}
|
|
489
|
+
if (workerActivity)
|
|
490
|
+
publishWorkerActivity(wf, outcome === 'finished' ? 'worker_finished' : outcome === 'failed' ? 'worker_failed' : 'worker_interrupted');
|
|
491
|
+
return true;
|
|
492
|
+
}
|
|
493
|
+
export function revokeBusy(wf) {
|
|
494
|
+
lastBusyClaim.set(wf, ++busyClaimSeq);
|
|
495
|
+
busyRevocations.set(wf, (busyRevocations.get(wf) ?? 0) + 1);
|
|
496
|
+
const token = busyOwners.get(wf);
|
|
497
|
+
watchSettled(wf, busyOwners.get(wf), 'interrupted');
|
|
498
|
+
busyOwners.delete(wf);
|
|
499
|
+
busyCheckoutLeases.get(wf)?.();
|
|
500
|
+
busyCheckoutLeases.delete(wf);
|
|
501
|
+
wf.busy = false;
|
|
502
|
+
if (token !== undefined)
|
|
503
|
+
clearComputerBackgroundClaim([...workflows].find(([, current]) => current === wf)?.[0] ?? '', token);
|
|
504
|
+
if (wf.config?.voiceOperator)
|
|
505
|
+
computerProjectionChanged();
|
|
506
|
+
if (token !== undefined)
|
|
507
|
+
publishWorkerActivity(wf, 'worker_interrupted');
|
|
508
|
+
}
|
|
509
|
+
// Start a turn from queued operator messages when nothing else holds the tab.
|
|
510
|
+
// The handleUserMessage loop drains its own queue, but every OTHER busy holder
|
|
511
|
+
// (compact / fold / auto-fold / handoff / spawn) used to release busy and walk
|
|
512
|
+
// away — messages typed during them sat QUEUED until the operator sent another
|
|
513
|
+
// one, and an armed goal run skipped forever (evaluateGoalRun: queued ⇒ skip).
|
|
514
|
+
// Resolves true when a drain turn was dispatched (awaited to completion — that
|
|
515
|
+
// turn runs its own post-settle actions, goal run included). Queue items were
|
|
516
|
+
// echoed + context-expanded at enqueue, so the drain path skips both.
|
|
517
|
+
export async function drainQueueIfIdle(workflowId) {
|
|
518
|
+
const wf = workflows.get(workflowId);
|
|
519
|
+
if (!wf || wf.busy || wf.computerResetting)
|
|
520
|
+
return false;
|
|
521
|
+
if (wf.queue.steering.length === 0 && wf.queue.followUp.length === 0)
|
|
522
|
+
return false;
|
|
523
|
+
const obs = anyObserver(workflowId);
|
|
524
|
+
// No socket to dispatch through: leave them queued (still visible); the next
|
|
525
|
+
// operator send drains them after its turn.
|
|
526
|
+
if (!obs)
|
|
527
|
+
return false;
|
|
528
|
+
const session = sessions.get(obs) ?? { id: 'drain', workflowIds: new Set([workflowId]), clusterIds: new Set(), clusterObserved: new Map() };
|
|
529
|
+
try {
|
|
530
|
+
await handleUserMessage(obs, session, workflowId, '', undefined, undefined, false, undefined, undefined, undefined, { fromQueue: true });
|
|
531
|
+
}
|
|
532
|
+
catch (err) {
|
|
533
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] queue drain dispatch failed:`, err);
|
|
534
|
+
}
|
|
535
|
+
return true;
|
|
536
|
+
}
|
|
537
|
+
// docs/GOTCHAS.md - explicit operator-side disarm (STOP / tab close). Before
|
|
538
|
+
// this, STOP only ended a run because every provider's kill() emits a
|
|
539
|
+
// synthetic error that tripped `turn_error` on the next settle — an accident
|
|
540
|
+
// of plumbing, and the cancel-race fix (stale loops skip post-settle) removed
|
|
541
|
+
// even that. Announced like every other stop; counters are not mirrored to
|
|
542
|
+
// meta.json by design, so the persisted record is the notice itself.
|
|
543
|
+
export function disarmGoalRun(workflowId, wf, why) {
|
|
544
|
+
const state = wf.config.goalRun;
|
|
545
|
+
if (!state?.enabled)
|
|
546
|
+
return;
|
|
547
|
+
state.enabled = false;
|
|
548
|
+
const spent = state.total - state.remaining;
|
|
549
|
+
broadcastWorkflow(workflowId, {
|
|
550
|
+
type: 'system_notice',
|
|
551
|
+
workflowId,
|
|
552
|
+
content: `[GOAL RUN] Stopped after ${spent}/${state.total} iteration${spent === 1 ? '' : 's'} — ` +
|
|
553
|
+
`${why}. ${formatGoalRunTokens(state.tokensUsed)} spent. Re-arm with \`/goal run <n>\`.`,
|
|
554
|
+
});
|
|
555
|
+
broadcastWorkflow(workflowId, { type: 'goal_run_state', workflowId, ...snapshotGoalRun(state) });
|
|
556
|
+
delete wf.config.goalRun;
|
|
557
|
+
if (!wf.config.incognito)
|
|
558
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] goal run disarmed (${why}) after ${spent}/${state.total}`);
|
|
559
|
+
}
|
|
560
|
+
// §2.1 — minimum bytes a fold must reclaim to count as "productive". Below this
|
|
561
|
+
// the anti-thrash counter increments; a productive fold resets it (delta 2).
|
|
562
|
+
const MIN_EFFECTIVE_FOLD_BYTES = 8 * 1024;
|
|
563
|
+
// Stop auto-folding after this many consecutive ineffective folds (history is
|
|
564
|
+
// already near-minimal — folding again just churns). Operator can still manual
|
|
565
|
+
// Fold or Handoff. Resets on a productive fold.
|
|
566
|
+
const MAX_INEFFECTIVE_FOLDS = 2;
|
|
567
|
+
// Check the §2.3 budget meter and fire a deterministic in-place Fold before the
|
|
568
|
+
// handoff thresholds (foldAt sits below warnAt). Claude-Native only; operator
|
|
569
|
+
// must have armed wf.config.autoFold. Returns true when a fold actually fired,
|
|
570
|
+
// so the caller can skip the (now-stale) handoff check this round. Called
|
|
571
|
+
// post-turn with wf.busy already false.
|
|
572
|
+
export async function maybeAutoFold(workflowId, wf, cwd, onAttempt, canAttempt) {
|
|
573
|
+
// Chat tabs never reshape history behind the operator's back.
|
|
574
|
+
if (isChatWorkflow(wf.config))
|
|
575
|
+
return false;
|
|
576
|
+
if (wf.primary.provider !== 'claude')
|
|
577
|
+
return false;
|
|
578
|
+
const cfg = wf.config.autoFold;
|
|
579
|
+
if (!cfg?.enabled)
|
|
580
|
+
return false;
|
|
581
|
+
// Lazily mirror config → live state so the fired/anti-thrash counters persist
|
|
582
|
+
// across post-turn checks even if the state field wasn't derived at creation.
|
|
583
|
+
if (!wf.autoFold)
|
|
584
|
+
wf.autoFold = deriveAutoFold(wf.config);
|
|
585
|
+
const st = wf.autoFold;
|
|
586
|
+
if (!st)
|
|
587
|
+
return false;
|
|
588
|
+
const pct = wf.lastContextBudgetPct;
|
|
589
|
+
if (typeof pct !== 'number' || !Number.isFinite(pct) || pct <= 0)
|
|
590
|
+
return false;
|
|
591
|
+
// Re-arm once the budget drops back below the threshold (post-fold the seed +
|
|
592
|
+
// tail starts well under foldAt) — mirrors autoHandoff.warnFired reset.
|
|
593
|
+
if (pct < Math.max(0, st.foldAt - 5))
|
|
594
|
+
st.foldFired = false;
|
|
595
|
+
if (pct < st.foldAt || st.foldFired || wf.busy)
|
|
596
|
+
return false;
|
|
597
|
+
if ((st.foldIneffectiveCount ?? 0) >= MAX_INEFFECTIVE_FOLDS)
|
|
598
|
+
return false;
|
|
599
|
+
// Native transport required (CLI Claude has no in-process history to fold).
|
|
600
|
+
const cascade = await readSettings(cwd).catch(() => null);
|
|
601
|
+
const transport = wf.config.claudeTransport ?? (cascade?.claude?.transport === 'native' ? 'native' : 'cli');
|
|
602
|
+
if (transport !== 'native')
|
|
603
|
+
return false;
|
|
604
|
+
// Re-check after the settings await: an operator message can have claimed
|
|
605
|
+
// the tab meanwhile, and folding under a live turn corrupts its history.
|
|
606
|
+
if (wf.busy || (canAttempt && !canAttempt()))
|
|
607
|
+
return false;
|
|
608
|
+
const startedAt = Date.now();
|
|
609
|
+
const busyToken = claimBusy(wf);
|
|
610
|
+
st.foldFired = true;
|
|
611
|
+
onAttempt?.(busyToken);
|
|
612
|
+
broadcastTransient(workflowId, { type: 'primary_turn_started', workflowId, startedAt });
|
|
613
|
+
let res;
|
|
614
|
+
try {
|
|
615
|
+
res = await foldClaudeNativeWorker(workflowId, undefined, { trigger: 'auto', tailTokenBudget: cfg.tailBudget });
|
|
616
|
+
}
|
|
617
|
+
catch (err) {
|
|
618
|
+
res = { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
619
|
+
}
|
|
620
|
+
// STOP during the fold revoked the claim; a newer turn may own busy now.
|
|
621
|
+
if (!releaseBusy(wf, busyToken))
|
|
622
|
+
return false;
|
|
623
|
+
broadcastTransient(workflowId, { type: 'primary_turn_ended', workflowId, endedAt: Date.now() });
|
|
624
|
+
if (!res.ok) {
|
|
625
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] auto-fold failed: ${res.error}`);
|
|
626
|
+
return false;
|
|
627
|
+
}
|
|
628
|
+
// Anti-thrash (delta 2): productive fold resets the counter; an ineffective
|
|
629
|
+
// one increments it toward the cap.
|
|
630
|
+
if ((res.byteDelta ?? 0) < MIN_EFFECTIVE_FOLD_BYTES) {
|
|
631
|
+
st.foldIneffectiveCount = (st.foldIneffectiveCount ?? 0) + 1;
|
|
632
|
+
}
|
|
633
|
+
else {
|
|
634
|
+
st.foldIneffectiveCount = 0;
|
|
635
|
+
}
|
|
636
|
+
const kb = typeof res.byteDelta === 'number' ? ` (~${Math.round(res.byteDelta / 1024)} KB)` : '';
|
|
637
|
+
const obs = anyObserver(workflowId);
|
|
638
|
+
if (obs) {
|
|
639
|
+
send(obs, {
|
|
640
|
+
type: 'system_notice',
|
|
641
|
+
workflowId,
|
|
642
|
+
content: `[AUTO-FOLD] Context budget at ${pct}% — folded older history into a deterministic digest${kb}. Same session continues.`,
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] auto-fold fired at ${pct}% budget, byteDelta=${res.byteDelta ?? 0}`);
|
|
646
|
+
return true;
|
|
647
|
+
}
|
|
648
|
+
// Check context fill and fire warning or auto-handoff. Called after the turn
|
|
649
|
+
// loop exits (wf.busy has been reset to false by the finally block).
|
|
650
|
+
export async function maybeAutoHandoff(workflowId, wf, cwd) {
|
|
651
|
+
// Chat tabs are projectless: a handoff re-seeds as an Agent worker (tools,
|
|
652
|
+
// project context) and, for incognito, installed a cwdHandoffChain slot for
|
|
653
|
+
// the temp root + broadcast lock snapshots. deriveAutoHandoff defaults ON,
|
|
654
|
+
// so an Ollama chat at 90% window used to rotate into an Agent tab silently.
|
|
655
|
+
if (isChatWorkflow(wf.config))
|
|
656
|
+
return;
|
|
657
|
+
const percentOfWindow = wf.lastContextPercent;
|
|
658
|
+
if (typeof percentOfWindow !== 'number' || percentOfWindow <= 0)
|
|
659
|
+
return;
|
|
660
|
+
const ah = wf.autoHandoff;
|
|
661
|
+
// Reset fired flags when context drops back to safe levels (after a handoff
|
|
662
|
+
// the new session starts near 0%).
|
|
663
|
+
if (percentOfWindow < Math.max(0, ah.warnAt - 5)) {
|
|
664
|
+
ah.warnFired = false;
|
|
665
|
+
ah.autoFired = false;
|
|
666
|
+
}
|
|
667
|
+
// Warning
|
|
668
|
+
if (percentOfWindow >= ah.warnAt && !ah.warnFired) {
|
|
669
|
+
ah.warnFired = true;
|
|
670
|
+
const obs = anyObserver(workflowId);
|
|
671
|
+
if (obs) {
|
|
672
|
+
send(obs, {
|
|
673
|
+
type: 'system_notice',
|
|
674
|
+
workflowId,
|
|
675
|
+
content: `[CONTEXT] ${percentOfWindow}% — handoff recommended. Auto-handoff at ${ah.autoAt}%.`,
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] context warning: ${percentOfWindow}% >= ${ah.warnAt}%`);
|
|
679
|
+
}
|
|
680
|
+
// Auto-handoff
|
|
681
|
+
if (ah.enabled && percentOfWindow >= ah.autoAt && !ah.autoFired && !wf.busy) {
|
|
682
|
+
ah.autoFired = true;
|
|
683
|
+
const obs = anyObserver(workflowId);
|
|
684
|
+
if (!obs) {
|
|
685
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] auto-handoff: no observer to broadcast on`);
|
|
686
|
+
return;
|
|
687
|
+
}
|
|
688
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] auto-handoff: context at ${percentOfWindow}%, firing`);
|
|
689
|
+
send(obs, {
|
|
690
|
+
type: 'system_notice',
|
|
691
|
+
workflowId,
|
|
692
|
+
content: `[AUTO-HANDOFF] Context at ${percentOfWindow}%. Rotating the session.`,
|
|
693
|
+
});
|
|
694
|
+
// Re-use the same handoff logic as the manual button by constructing
|
|
695
|
+
// a synthetic message and calling the handler.
|
|
696
|
+
//
|
|
697
|
+
// Per-tab override wins over the global default; quick is the fallback.
|
|
698
|
+
const cascade = await readSettings(cwd).catch(() => null);
|
|
699
|
+
const mode = wf.autoHandoff.mode
|
|
700
|
+
?? cascade?.autoHandoffDefaults?.mode
|
|
701
|
+
?? 'quick';
|
|
702
|
+
// Keep mode resolution in sync with manual handoff: provider-specific
|
|
703
|
+
// resume capability is handled by handoffHandlers, which translates the
|
|
704
|
+
// original-worker choice where a live session cannot be reopened.
|
|
705
|
+
const synthMsg = {
|
|
706
|
+
type: 'handoff_request',
|
|
707
|
+
workflowId,
|
|
708
|
+
mode,
|
|
709
|
+
};
|
|
710
|
+
// SUMMARIZER resolution: only matters for fresh-summarizer. Put the
|
|
711
|
+
// per-tab summarizer (if set) onto the synthesized message; the handler's
|
|
712
|
+
// chain is `msg.summarizer ?? settings.handoffSummarizer ?? primary`, so
|
|
713
|
+
// per-tab wins, global is the middle, primary is last. For original-worker
|
|
714
|
+
// we leave summarizer unset.
|
|
715
|
+
if (mode === 'fresh-summarizer' && wf.autoHandoff.summarizer) {
|
|
716
|
+
const s = wf.autoHandoff.summarizer;
|
|
717
|
+
synthMsg.summarizer = {
|
|
718
|
+
provider: s.provider,
|
|
719
|
+
model: s.model ?? wf.primary.model,
|
|
720
|
+
effort: s.effort ?? 'medium',
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
try {
|
|
724
|
+
const dummySession = sessions.get(obs) ?? { id: 'auto', workflowIds: new Set([workflowId]), clusterIds: new Set(), clusterObserved: new Map() };
|
|
725
|
+
await deps.handleHandoffRequest(obs, dummySession, synthMsg);
|
|
726
|
+
}
|
|
727
|
+
catch (err) {
|
|
728
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] auto-handoff failed:`, err);
|
|
729
|
+
const obs2 = anyObserver(workflowId);
|
|
730
|
+
if (obs2) {
|
|
731
|
+
send(obs2, {
|
|
732
|
+
type: 'system_notice',
|
|
733
|
+
workflowId,
|
|
734
|
+
content: `[AUTO-HANDOFF FAILED] ${err instanceof Error ? err.message : String(err)}. Click HANDOFF manually.`,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
export function freshAutoCompactionPercent(provider, transport, outcome) {
|
|
741
|
+
if (outcome.error || !((provider === 'claude' && transport === 'native') || (provider === 'codex' && transport === 'appserver')))
|
|
742
|
+
return undefined;
|
|
743
|
+
const numerator = outcome.lastPromptTokens;
|
|
744
|
+
const denominator = provider === 'codex' ? outcome.freshContextWindow : outcome.modelContextWindow;
|
|
745
|
+
if (typeof numerator !== 'number' || !Number.isFinite(numerator) || numerator <= 0 || typeof denominator !== 'number' || !Number.isFinite(denominator) || denominator <= 0)
|
|
746
|
+
return undefined;
|
|
747
|
+
const ratio = numerator / denominator;
|
|
748
|
+
return Number.isFinite(ratio) ? Math.min(100, Math.round(ratio * 100)) : undefined;
|
|
749
|
+
}
|
|
750
|
+
const policyAttempts = new WeakMap();
|
|
751
|
+
export function resetAutoCompactionCycle(wf) { policyAttempts.delete(wf); }
|
|
752
|
+
export async function maybeAutoCompactPolicy(workflowId, wf, cwd, policy, reading, expectedClaim, ws, session) {
|
|
753
|
+
if (lastBusyClaim.get(wf) !== expectedClaim)
|
|
754
|
+
return true;
|
|
755
|
+
if (!policy.enabled || !reading || !Number.isFinite(reading.percent) || reading.percent < 0 || wf.busy || isChatWorkflow(wf.config))
|
|
756
|
+
return false;
|
|
757
|
+
if (reading.provider !== wf.primary.provider || reading.sessionId !== wf.primarySessionId)
|
|
758
|
+
return false;
|
|
759
|
+
if (reading.provider !== 'claude' && reading.provider !== 'codex')
|
|
760
|
+
return false;
|
|
761
|
+
if (reading.provider === 'codex' && !reading.sessionId)
|
|
762
|
+
return false;
|
|
763
|
+
let state = policyAttempts.get(wf);
|
|
764
|
+
if (!state || state.sessionId !== reading.sessionId || state.provider !== reading.provider) {
|
|
765
|
+
state = { sessionId: reading.sessionId, provider: reading.provider, fired: false };
|
|
766
|
+
policyAttempts.set(wf, state);
|
|
767
|
+
}
|
|
768
|
+
if (reading.percent < policy.thresholdPercent - 5)
|
|
769
|
+
state.fired = false;
|
|
770
|
+
if (reading.percent < policy.thresholdPercent || state.fired)
|
|
771
|
+
return false;
|
|
772
|
+
// Prevent retries of an unsuccessful or ineffective compact until a later
|
|
773
|
+
// valid reading confirms a drop. Mark before awaiting any external work.
|
|
774
|
+
state.fired = true;
|
|
775
|
+
const observedClaim = expectedClaim;
|
|
776
|
+
const obs = ws ?? anyObserver(workflowId);
|
|
777
|
+
if (!obs || !deps.handleCompactWorkflow)
|
|
778
|
+
return true;
|
|
779
|
+
const activeSession = session ?? sessions.get(obs) ?? { id: 'auto', workflowIds: new Set([workflowId]), clusterIds: new Set(), clusterObserved: new Map() };
|
|
780
|
+
await deps.handleCompactWorkflow(obs, activeSession, { type: 'compact_workflow', workflowId }, async (claim) => {
|
|
781
|
+
const clusterId = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
782
|
+
if (reading.provider === 'claude' && reading.transport && await resolveClaudeTransport(wf, cwd) !== reading.transport)
|
|
783
|
+
return false;
|
|
784
|
+
const current = resolveProviderAutoCompaction(wf.config.autoCompaction, clusterId ? clusterStore.getAutoCompaction(clusterId) : undefined, wf.primary.provider, reading.transport ?? (wf.primary.provider === 'claude' ? 'native' : ''), wf.config.claudeNativeCompact === true);
|
|
785
|
+
if (wf.busy || lastBusyClaim.get(wf) !== observedClaim || wf.primarySessionId !== reading.sessionId || wf.primary.provider !== reading.provider || !current?.enabled || current.thresholdPercent !== policy.thresholdPercent)
|
|
786
|
+
return false;
|
|
787
|
+
return claim();
|
|
788
|
+
}, `context ${reading.percent}% >= ${policy.thresholdPercent}%`);
|
|
789
|
+
return true;
|
|
790
|
+
}
|
|
791
|
+
export async function runExplicitContextActions(workflowId, wf, cwd, policy, reading, busyToken, ws, session) {
|
|
792
|
+
if (lastBusyClaim.get(wf) !== busyToken)
|
|
793
|
+
return 'stale';
|
|
794
|
+
// Ollama compacts at the next pre-dispatch boundary. Do not start an
|
|
795
|
+
// automatic fresh-session handoff ahead of that explicitly chosen policy.
|
|
796
|
+
if (wf.primary.provider === 'ollama' && policy.enabled)
|
|
797
|
+
return 'done';
|
|
798
|
+
let foldClaim;
|
|
799
|
+
const folded = await maybeAutoFold(workflowId, wf, cwd, (token) => { foldClaim = token; }, () => lastBusyClaim.get(wf) === busyToken);
|
|
800
|
+
if (lastBusyClaim.get(wf) !== (foldClaim ?? busyToken))
|
|
801
|
+
return 'stale';
|
|
802
|
+
// Failed or cancelled folds also consume this measurement.
|
|
803
|
+
if (folded) {
|
|
804
|
+
wf.lastContextPercent = 0;
|
|
805
|
+
wf.lastContextBudgetPct = undefined;
|
|
806
|
+
}
|
|
807
|
+
if (foldClaim !== undefined)
|
|
808
|
+
return 'done';
|
|
809
|
+
if (await maybeAutoCompactPolicy(workflowId, wf, cwd, policy, reading, busyToken, ws, session))
|
|
810
|
+
return 'compact-attempted';
|
|
811
|
+
await maybeAutoHandoff(workflowId, wf, cwd);
|
|
812
|
+
return 'done';
|
|
813
|
+
}
|
|
814
|
+
// NATIVE_COMPACTION_PLAN Phase 3 — the continuance prompt the opt-in auto-continue
|
|
815
|
+
// sends to resume work from the compacted seed. Mirrors the client-side
|
|
816
|
+
// COMPACT_CONTINUE_PROMPT (TerminalInput) so manual-Continue and auto-continue
|
|
817
|
+
// feel identical. Kept here (server) so the auto path doesn't depend on a client.
|
|
818
|
+
export const COMPACT_CONTINUE_PROMPT = 'Context was just compacted into a summary. Re-orient from that summary and continue the work in progress — pick up exactly where we left off.';
|
|
819
|
+
// NATIVE_COMPACTION_PLAN Phase 3 — dispatch the opt-in continuance turn after a
|
|
820
|
+
// successful compaction. Shared by the automatic policy path and the
|
|
821
|
+
// manual COMPACT button (compactHandlers, which calls this directly). Goes through
|
|
822
|
+
// the normal operator-message path so the continuance turn is a real, visible
|
|
823
|
+
// turn in events.jsonl (operator-readable per the four-question test), echoes a
|
|
824
|
+
// short system_notice, and queues correctly if the operator raced a message in.
|
|
825
|
+
// `interjection=false` because wf.busy is false at the call site (compaction
|
|
826
|
+
// released the lock) — this starts a fresh turn, not a steer.
|
|
827
|
+
export async function maybeAutoContinueAfterCompact(workflowId, ws, session) {
|
|
828
|
+
broadcastWorkflow(workflowId, {
|
|
829
|
+
type: 'system_notice',
|
|
830
|
+
workflowId,
|
|
831
|
+
content: '[AUTO-CONTINUE] Resuming from the compacted summary (auto-continue is ON for this tab).',
|
|
832
|
+
});
|
|
833
|
+
try {
|
|
834
|
+
await handleUserMessage(ws, session, workflowId, COMPACT_CONTINUE_PROMPT, undefined, undefined, false, undefined, undefined);
|
|
835
|
+
}
|
|
836
|
+
catch (err) {
|
|
837
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] auto-continue dispatch failed:`, err);
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
// After the turn loop settles, check if a calibration pty should run for this
|
|
841
|
+
// session. Fires once per zone (A/B/C) per session, idle-only. If a primary
|
|
842
|
+
// turn starts while calibration is running, the pty is cancelled via
|
|
843
|
+
// wf.cancelCalibration (set by the primary turn handler in handleUserMessage).
|
|
844
|
+
export async function maybeCalibrate(workflowId, wf, cwd) {
|
|
845
|
+
if (wf.primary.provider !== 'claude')
|
|
846
|
+
return;
|
|
847
|
+
// CLI transport only. Native gets exact token counts from the API
|
|
848
|
+
// (lastPromptTokens) — the byte-ratio estimator this tunes never runs for
|
|
849
|
+
// it. Worse than useless: the `--print "/context"` probe APPENDS synthetic
|
|
850
|
+
// turns ("Continue from where you left off." / "No response requested.") to
|
|
851
|
+
// whatever session id it resumes — against a Native tab's stale handoff-era
|
|
852
|
+
// CLI session that polluted a file the session watcher was treating as
|
|
853
|
+
// transcript truth.
|
|
854
|
+
if (await resolveClaudeTransport(wf, cwd) === 'native')
|
|
855
|
+
return;
|
|
856
|
+
const sessionId = wf.primarySessionId;
|
|
857
|
+
if (!sessionId)
|
|
858
|
+
return;
|
|
859
|
+
const cal = wf.calibration ?? {
|
|
860
|
+
ratio: BYTES_PER_TOKEN_DEFAULT,
|
|
861
|
+
overhead: OVERHEAD_TOKENS_DEFAULT,
|
|
862
|
+
zonesCalibrated: new Set(),
|
|
863
|
+
};
|
|
864
|
+
// Get current estimate to detect zone crossing
|
|
865
|
+
const est = await estimateContextFill(cwd, sessionId, wf.primary.model, cal).catch(() => null);
|
|
866
|
+
if (!est)
|
|
867
|
+
return;
|
|
868
|
+
const currentPercent = est.percentOfWindow;
|
|
869
|
+
const prevPercent = wf.lastContextPercent;
|
|
870
|
+
wf.lastContextPercent = currentPercent;
|
|
871
|
+
// Don't calibrate at or above the auto-handoff threshold — not worth the
|
|
872
|
+
// latency when a session rotation is imminent.
|
|
873
|
+
if (currentPercent >= wf.autoHandoff.autoAt)
|
|
874
|
+
return;
|
|
875
|
+
// Skip when the estimator already has ground truth from the JSONL usage
|
|
876
|
+
// blocks — calibration only exists to tune the byte-count ratio, and the
|
|
877
|
+
// ground-truth path doesn't use that ratio at all. Running /context here
|
|
878
|
+
// would just spawn an extra `claude --print` for no gain.
|
|
879
|
+
if (est.method === 'ground-truth')
|
|
880
|
+
return;
|
|
881
|
+
// First observation (prev undefined, e.g. fresh workflow, resumed native
|
|
882
|
+
// session, or just-restarted server): treat `from` as 0 so the overlap test
|
|
883
|
+
// catches every uncalibrated zone the session has already passed through.
|
|
884
|
+
// Previously this used `current`, which produced a zero-width range
|
|
885
|
+
// [current, current] — if `current` happened to sit between zone ranges
|
|
886
|
+
// (e.g. 34%, in the gap between A 20–30 and B 45–55), no zone matched and
|
|
887
|
+
// calibration never fired. Resumed sessions mid-range stayed on the raw
|
|
888
|
+
// byte-count estimate (○ glyph) forever. Using 0 means we'll calibrate the
|
|
889
|
+
// highest uncalibrated zone we've crossed, which is what we want.
|
|
890
|
+
const fromPercent = Number.isFinite(prevPercent) ? prevPercent : 0;
|
|
891
|
+
const zone = highestUncalibratedZoneCrossed(fromPercent, currentPercent, cal.zonesCalibrated);
|
|
892
|
+
if (!zone)
|
|
893
|
+
return;
|
|
894
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] calibrating zone ${zone} at ${currentPercent}%`);
|
|
895
|
+
let result = null;
|
|
896
|
+
try {
|
|
897
|
+
result = await runCalibration(sessionId, wf.primary.model, cwd, est.jsonlBytes, (cancelFn) => {
|
|
898
|
+
wf.cancelCalibration = cancelFn;
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
catch (err) {
|
|
902
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] calibration error:`, err);
|
|
903
|
+
}
|
|
904
|
+
wf.cancelCalibration = undefined;
|
|
905
|
+
if (!result) {
|
|
906
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] calibration zone ${zone} failed or was cancelled`);
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
cal.zonesCalibrated.add(zone);
|
|
910
|
+
cal.ratio = result.ratio;
|
|
911
|
+
cal.overhead = result.overhead;
|
|
912
|
+
cal.lastGroundTruth = Date.now();
|
|
913
|
+
wf.calibration = cal;
|
|
914
|
+
// Persist so server restarts don't drop back to the byte-count heuristic.
|
|
915
|
+
// Best-effort — a failed write just means the next restart recalibrates.
|
|
916
|
+
writeCalibrationToMeta(cwd, workflowId, cal.ratio, cal.overhead, cal.lastGroundTruth).catch((err) => {
|
|
917
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] calibration meta write failed:`, err);
|
|
918
|
+
});
|
|
919
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] calibration zone ${zone} complete:` +
|
|
920
|
+
` ratio=${result.ratio.toFixed(2)} B/T, overhead=${result.overhead},` +
|
|
921
|
+
` ground-truth total=${result.groundTruthTotalTokens}, messages=${result.groundTruthMessagesTokens}`);
|
|
922
|
+
// Re-estimate with the new calibration values and broadcast to all observers.
|
|
923
|
+
const calEst = await estimateContextFill(cwd, sessionId, wf.primary.model, cal).catch(() => null);
|
|
924
|
+
if (calEst) {
|
|
925
|
+
broadcastTransient(workflowId, {
|
|
926
|
+
type: 'context_usage',
|
|
927
|
+
workflowId,
|
|
928
|
+
...calEst,
|
|
929
|
+
claudeSessionId: sessionId,
|
|
930
|
+
});
|
|
931
|
+
wf.lastContextPercent = calEst.percentOfWindow;
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
// Plan-less workflows receive a single-line note describing plan creation and
|
|
935
|
+
// attachment. It preserves the parseable phase and checkbox structure and can
|
|
936
|
+
// be stripped from session replay without duplicating the user message.
|
|
937
|
+
function planAuthoringNote(cwd, workflowId) {
|
|
938
|
+
return (`[No project plan is attached to this Arco workflow. If asked to create/attach one, do NOT just write a ` +
|
|
939
|
+
`markdown file — a loose file is invisible to Arco. Prefer the \`plan_create\` tool (MCP server \`arco\`) ` +
|
|
940
|
+
`if you have it — one call, title + body, creates and attaches. Otherwise write the body to a scratch file, then POST it (this ` +
|
|
941
|
+
`two-step avoids hand-escaping markdown into JSON): ` +
|
|
942
|
+
`jq -n --rawfile body /tmp/plan.md --arg t 'Plan title' '{title:$t,body:$body,workflowId:"${workflowId}",attach:true}' ` +
|
|
943
|
+
`| curl -sS --fail-with-body -X POST 'http://127.0.0.1:${PORT}/api/plans?path=${encodeURIComponent(cwd)}' ` +
|
|
944
|
+
`-H 'Content-Type: application/json' -d @- ` +
|
|
945
|
+
`— a success response echoes the created plan's id. To attach one that already exists: ` +
|
|
946
|
+
`POST /api/plans/attach?path=<cwd>&planId=<id>&workflowId=${workflowId}. ` +
|
|
947
|
+
`The body's structure is parsed, not decorative: one \`### Phase name\` heading per phase, and every task a ` +
|
|
948
|
+
`top-level \`- [ ] task\` checkbox line (indent subtasks under it). A plan without checkboxes parses to zero ` +
|
|
949
|
+
`reviewable items. An Arco plan has two parts: a lean checklist (one or two lines per task) and its reference ` +
|
|
950
|
+
`docs, which hold the specs/research/design detail. After creating the plan, write each doc with \`plan_ref_write\` ` +
|
|
951
|
+
`(or as files at .arco/plans/<planId>.refs/<slug>.md — not loose design files elsewhere in the repo) and link it ` +
|
|
952
|
+
`from every task that depends on it as \`[label](ref:slug)\`; whoever works that task reads the linked ref first. ` +
|
|
953
|
+
`Don't create a plan unless asked.]\n\n`);
|
|
954
|
+
}
|
|
955
|
+
export async function buildPlanPrefix(cwd, wf, workflowId) {
|
|
956
|
+
if (!cwd)
|
|
957
|
+
return '';
|
|
958
|
+
if (!wf.planId)
|
|
959
|
+
return planAuthoringNote(cwd, workflowId);
|
|
960
|
+
const plan = await readPlan(cwd, wf.planId).catch(() => null);
|
|
961
|
+
if (!plan) {
|
|
962
|
+
// Plan was deleted out from under us. Detach quietly so future turns
|
|
963
|
+
// don't keep failing the read.
|
|
964
|
+
wf.planId = undefined;
|
|
965
|
+
try {
|
|
966
|
+
await updateMeta(cwd, workflowId, (meta) => {
|
|
967
|
+
if (!meta.planId)
|
|
968
|
+
return false;
|
|
969
|
+
delete meta.planId;
|
|
970
|
+
delete meta.planLastSeenUpdatedAt;
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
catch { /* best-effort */ }
|
|
974
|
+
broadcastWorkflow(workflowId, { type: 'plan_detached', workflowId });
|
|
975
|
+
return '';
|
|
976
|
+
}
|
|
977
|
+
let lastSeen = 0;
|
|
978
|
+
try {
|
|
979
|
+
const meta = await readMeta(cwd, workflowId);
|
|
980
|
+
lastSeen = meta?.planLastSeenUpdatedAt ?? 0;
|
|
981
|
+
}
|
|
982
|
+
catch { /* best-effort */ }
|
|
983
|
+
const isFirstAttach = lastSeen === 0;
|
|
984
|
+
const wasEdited = !isFirstAttach && plan.updatedAt > lastSeen;
|
|
985
|
+
// Refs ride the same one line — slugs only (charset [a-z0-9-], so they
|
|
986
|
+
// can't break the single-line PLAN_PREFIX_RE), capped so a ref-heavy plan
|
|
987
|
+
// doesn't bloat every turn.
|
|
988
|
+
const refs = await listPlanRefs(cwd, plan.id).catch(() => []);
|
|
989
|
+
const refsNote = ` ${refsDoctrine(plan.id, refs.map((r) => r.slug))}`;
|
|
990
|
+
const livingDocNote = `The plan is a working contract — read it freely, and tick off completed checklist items (\`- [ ]\` → \`- [x]\`) when you finish them this turn. Do NOT add new sections, headings, or substantive content on your own initiative — even if you have findings, research results, or scope expansions you think belong there. Surface those in your reply and ask whether to add them. Tick-offs and resolving inline open questions are fine; structural additions and new content require an explicit operator cue.`;
|
|
991
|
+
// Always one-liner — never inject the full body. The agent reads the file
|
|
992
|
+
// on demand if it cares about the current state. Earlier behavior injected
|
|
993
|
+
// the full body on first attach AND on every edit (which the agent itself
|
|
994
|
+
// could trigger via tick-off, creating a feedback loop where every working
|
|
995
|
+
// turn re-injected ~1.5–5KB of prose). The one-liner saves that bandwidth
|
|
996
|
+
// unconditionally and avoids the duplicate-in-chat artifact when Claude's
|
|
997
|
+
// session JSONL captures the prefix verbatim. Three variants flag whether
|
|
998
|
+
// the agent should re-read for fresh content.
|
|
999
|
+
let header;
|
|
1000
|
+
if (isFirstAttach) {
|
|
1001
|
+
header = `[Active project plan: "${plan.title}" — newly attached. Read the brief at .arco/plans/${plan.id}.md to orient.${refsNote} ${livingDocNote}]\n\n`;
|
|
1002
|
+
}
|
|
1003
|
+
else if (wasEdited) {
|
|
1004
|
+
header = `[Active project plan: "${plan.title}" — edited since last turn. Re-read .arco/plans/${plan.id}.md if you need the current state.${refsNote} ${livingDocNote}]\n\n`;
|
|
1005
|
+
}
|
|
1006
|
+
else {
|
|
1007
|
+
header = `[Active project plan: "${plan.title}" — file: .arco/plans/${plan.id}.md.${refsNote} ${livingDocNote}]\n\n`;
|
|
1008
|
+
}
|
|
1009
|
+
// Bump lastSeen so the next turn sees the stable form unless there's
|
|
1010
|
+
// another edit between now and then. Best-effort — a meta write failure
|
|
1011
|
+
// just means the agent sees the "edited" hint twice, harmless.
|
|
1012
|
+
try {
|
|
1013
|
+
await updateMeta(cwd, workflowId, (meta) => {
|
|
1014
|
+
meta.planLastSeenUpdatedAt = plan.updatedAt;
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
catch { /* best-effort */ }
|
|
1018
|
+
return header;
|
|
1019
|
+
}
|
|
1020
|
+
export function projectQueue(items) {
|
|
1021
|
+
return items.map((q) => ({
|
|
1022
|
+
content: q.content,
|
|
1023
|
+
...(q.interrupt ? { interrupt: true } : {}),
|
|
1024
|
+
...(q.clientMessageId ? { clientMessageId: q.clientMessageId } : {}),
|
|
1025
|
+
}));
|
|
1026
|
+
}
|
|
1027
|
+
export function broadcastQueueUpdate(workflowId) {
|
|
1028
|
+
const wf = workflows.get(workflowId);
|
|
1029
|
+
if (!wf)
|
|
1030
|
+
return;
|
|
1031
|
+
publishWorkerActivity(wf, 'queue_changed');
|
|
1032
|
+
broadcastWorkflow(workflowId, {
|
|
1033
|
+
type: 'queue_update',
|
|
1034
|
+
workflowId,
|
|
1035
|
+
steering: projectQueue(wf.queue.steering),
|
|
1036
|
+
followUp: projectQueue(wf.queue.followUp),
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
// Phase 5 — synchronous drain of the steering bucket for the local-loop
|
|
1040
|
+
// providers (Ollama / llama.cpp). Called between tool-result append and the
|
|
1041
|
+
// next API round-trip. Drains the *whole* steering bucket (FIFO) on each
|
|
1042
|
+
// hit — operators stack mid-turn steers as a cumulative thought ("and also
|
|
1043
|
+
// …", "wait actually …") the same way they stack follow-ups; one-at-a-time
|
|
1044
|
+
// delivery would force them to wait many tool iterations to land all
|
|
1045
|
+
// pending corrections, which defeats the point of mid-turn steering. The
|
|
1046
|
+
// follow-up bucket is left untouched so it still drains as the merged
|
|
1047
|
+
// post-turn turn — the steer/follow-up split stays meaningful.
|
|
1048
|
+
//
|
|
1049
|
+
// Side effects: broadcasts `queue_update` (queue strip clears) and a
|
|
1050
|
+
// `queued_messages_drained` to the originating socket so the optimistic
|
|
1051
|
+
// QUEUED pill on the originator's chat row clears in lockstep — same wire
|
|
1052
|
+
// shape the post-turn drain uses. The `user_message_echo` was already
|
|
1053
|
+
// emitted at enqueue time (handleUserMessage) so we don't re-echo here;
|
|
1054
|
+
// the persisted echo at the original timestamp is the authoritative
|
|
1055
|
+
// transcript record. Replay therefore renders the steer as a normal
|
|
1056
|
+
// user-message at its enqueue position with `kind: 'steer'`.
|
|
1057
|
+
//
|
|
1058
|
+
// Retry safety: the drain is destructive (splice) so a same-iteration
|
|
1059
|
+
// re-call would return []. Provider-side retry loops that call drainSteer
|
|
1060
|
+
// only at one point per loop iteration (the canonical spot, between tool
|
|
1061
|
+
// results and the next streamOneTurn) cannot double-deliver. Recovery
|
|
1062
|
+
// paths in llamacpp.ts inject their own synthetic user messages and skip
|
|
1063
|
+
// past the hook — by design.
|
|
1064
|
+
export function drainSteerForWorker(workflowId, ws) {
|
|
1065
|
+
const wf = workflows.get(workflowId);
|
|
1066
|
+
if (!wf || wf.queue.steering.length === 0 || wf.primaryTurn?.holdSteer || wf.queue.steering.some((q) => q.interrupt))
|
|
1067
|
+
return [];
|
|
1068
|
+
const drained = wf.queue.steering.splice(0);
|
|
1069
|
+
broadcastQueueUpdate(workflowId);
|
|
1070
|
+
const drainedClientIds = drained
|
|
1071
|
+
.map((d) => d.clientMessageId)
|
|
1072
|
+
.filter((id) => typeof id === 'string' && id.length > 0);
|
|
1073
|
+
if (drainedClientIds.length > 0 && wf.primary.provider !== 'codex') {
|
|
1074
|
+
broadcastTransient(workflowId, { type: 'turn_messages_delivered', workflowId, clientMessageIds: drainedClientIds });
|
|
1075
|
+
}
|
|
1076
|
+
if (drainedClientIds.length > 0) {
|
|
1077
|
+
send(ws, {
|
|
1078
|
+
type: 'queued_messages_drained',
|
|
1079
|
+
workflowId,
|
|
1080
|
+
clientMessageIds: drainedClientIds,
|
|
1081
|
+
drainedAt: Date.now(),
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] mid-turn steer drained (${drained.length} item${drained.length === 1 ? '' : 's'}; follow-up bucket untouched)`);
|
|
1085
|
+
return drained.map((d) => ({
|
|
1086
|
+
// §D1 — mid-turn steer is delivered as a single `content` string through
|
|
1087
|
+
// the provider steer APIs (SteerItem has no separate context block), so a
|
|
1088
|
+
// steer message's expanded `@`-refs ride appended to its content. The echo
|
|
1089
|
+
// already went out compact at enqueue; this only affects what the model
|
|
1090
|
+
// sees mid-turn. Post-turn drain (the loop in handleUserMessage) uses the
|
|
1091
|
+
// separate-block path instead.
|
|
1092
|
+
content: d.expandedContext ? d.content + d.expandedContext : d.content,
|
|
1093
|
+
...(d.clientMessageId ? { clientMessageId: d.clientMessageId } : {}),
|
|
1094
|
+
...(d.attachments && d.attachments.length > 0 ? { attachments: d.attachments } : {}),
|
|
1095
|
+
}));
|
|
1096
|
+
}
|
|
1097
|
+
// Phase 6b — re-enqueue support for the Codex app-server worker. The worker
|
|
1098
|
+
// drains via `drainSteerForWorker` (destructive splice) and dispatches
|
|
1099
|
+
// `turn/steer` against the live turn; on failure (turnNotSteerable, late
|
|
1100
|
+
// expectedTurnId mismatch, transport blip) the items have to land back in
|
|
1101
|
+
// a queue. `bucket: 'steer'` re-fills the steering bucket so the next
|
|
1102
|
+
// operator turn picks them up as steer; `bucket: 'follow-up'` routes them
|
|
1103
|
+
// through the post-turn merge path, mirroring the behavior they would have
|
|
1104
|
+
// had if the operator had pressed Alt+Enter instead of Enter at enqueue.
|
|
1105
|
+
//
|
|
1106
|
+
// We re-broadcast `queue_update` because `drainSteerForWorker` already
|
|
1107
|
+
// emitted a snapshot showing the bucket empty; without the re-broadcast,
|
|
1108
|
+
// the queue strip would stay clear visually while the items are actually
|
|
1109
|
+
// re-queued.
|
|
1110
|
+
export function requeueSteerForWorker(workflowId, ws, items, bucket) {
|
|
1111
|
+
const wf = workflows.get(workflowId);
|
|
1112
|
+
if (!wf || items.length === 0)
|
|
1113
|
+
return;
|
|
1114
|
+
const arr = bucket === 'steer' ? wf.queue.steering : wf.queue.followUp;
|
|
1115
|
+
for (const item of items) {
|
|
1116
|
+
arr.push({
|
|
1117
|
+
content: item.content,
|
|
1118
|
+
...(item.clientMessageId ? { clientMessageId: item.clientMessageId } : {}),
|
|
1119
|
+
...(item.attachments && item.attachments.length > 0 ? { attachments: item.attachments } : {}),
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
broadcastQueueUpdate(workflowId);
|
|
1123
|
+
// No `queued_messages_drained` undo — the originator's optimistic chat row
|
|
1124
|
+
// (and its QUEUED pill) was already cleared at drain time; the next drain
|
|
1125
|
+
// will re-clear once the steer succeeds. Leaving the optimistic row gone
|
|
1126
|
+
// is preferable to flicker-restoring it; the queue strip is the source of
|
|
1127
|
+
// truth for "items waiting" and the re-broadcast above repopulates it.
|
|
1128
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] mid-turn steer re-queued (bucket=${bucket}, items=${items.length})`);
|
|
1129
|
+
// ws is unused today (no per-originator notification); keep the parameter
|
|
1130
|
+
// for parity with drainSteerForWorker so future per-tab signaling can wire
|
|
1131
|
+
// through here without re-threading the call sites.
|
|
1132
|
+
void ws;
|
|
1133
|
+
}
|
|
1134
|
+
export async function persistInitialMeta(cwd, workflowId, config, primary, opts) {
|
|
1135
|
+
// Cheap unlocked probe first (the common resume case); the actual seed goes
|
|
1136
|
+
// through ensureMeta so a check-then-write can't clobber a concurrent
|
|
1137
|
+
// updateMeta landing between the two.
|
|
1138
|
+
const existing = await readMeta(cwd, workflowId);
|
|
1139
|
+
if (existing)
|
|
1140
|
+
return;
|
|
1141
|
+
const now = Date.now();
|
|
1142
|
+
const meta = {
|
|
1143
|
+
workflowId,
|
|
1144
|
+
name: config.name,
|
|
1145
|
+
cwd,
|
|
1146
|
+
...(config.kind === 'chat' ? { kind: 'chat' } : {}),
|
|
1147
|
+
...(config.kind === 'chat' && config.voiceOperator === true ? { voiceOperator: true } : {}),
|
|
1148
|
+
createdAt: now,
|
|
1149
|
+
lastActiveAt: now,
|
|
1150
|
+
primaryProvider: primary.provider,
|
|
1151
|
+
primaryModel: primary.model,
|
|
1152
|
+
primaryEffort: primary.effort,
|
|
1153
|
+
...(config.providerAccountRef ? { providerAccountRef: config.providerAccountRef } : {}),
|
|
1154
|
+
cliSessions: [],
|
|
1155
|
+
operator: 'local',
|
|
1156
|
+
lastEventSeq: null,
|
|
1157
|
+
lastTranscriptSeq: null,
|
|
1158
|
+
compactedAt: null,
|
|
1159
|
+
...(config.pinnedSkills?.length
|
|
1160
|
+
? { pinnedSkills: config.pinnedSkills.map((s) => ({ scope: s.scope, slug: s.slug })) }
|
|
1161
|
+
: {}),
|
|
1162
|
+
...(opts?.parentWorkflowId ? { parentWorkflowId: opts.parentWorkflowId } : {}),
|
|
1163
|
+
// docs/PROVIDERS.md / docs/PROVIDERS.md - when the New-tab
|
|
1164
|
+
// picker (or Spawn-from-here parent inheritance) provided a non-default
|
|
1165
|
+
// value, persist it to disk on the very first meta write so a server
|
|
1166
|
+
// restart before the operator's first turn doesn't lose the pick.
|
|
1167
|
+
// Sanitized one more time at write-site against unknown values reaching
|
|
1168
|
+
// disk via a hand-edited cascade default.
|
|
1169
|
+
...(config.efficiencyToolFilter === 'off' || config.efficiencyToolFilter === 'conservative' || config.efficiencyToolFilter === 'aggressive'
|
|
1170
|
+
? { efficiencyToolFilter: config.efficiencyToolFilter }
|
|
1171
|
+
: {}),
|
|
1172
|
+
// docs/PROVIDERS.md - persist the stamped new-tab default or
|
|
1173
|
+
// an explicit operator choice on the first meta write.
|
|
1174
|
+
...(config.efficiencyFactForce === 'on' || config.efficiencyFactForce === 'off'
|
|
1175
|
+
? { efficiencyFactForce: config.efficiencyFactForce }
|
|
1176
|
+
: {}),
|
|
1177
|
+
// Persist an explicit config-protection choice to disk on first meta-write
|
|
1178
|
+
// so an operator opt-out survives a restart. Absent ⇒ gate ON by default.
|
|
1179
|
+
...(config.efficiencyConfigProtection === 'on' || config.efficiencyConfigProtection === 'off'
|
|
1180
|
+
? { efficiencyConfigProtection: config.efficiencyConfigProtection }
|
|
1181
|
+
: {}),
|
|
1182
|
+
...(typeof config.claudeNativeCompact === 'boolean'
|
|
1183
|
+
? {
|
|
1184
|
+
claudeNativeCompact: config.claudeNativeCompact,
|
|
1185
|
+
...(config.claudeNativeCompact === true ? { claudeNativeCompactUserSetAt: now } : {}),
|
|
1186
|
+
}
|
|
1187
|
+
: {}),
|
|
1188
|
+
...(typeof config.claudeNativeForceInterleavedThinkingBeta === 'boolean'
|
|
1189
|
+
? { claudeNativeForceInterleavedThinkingBeta: config.claudeNativeForceInterleavedThinkingBeta }
|
|
1190
|
+
: {}),
|
|
1191
|
+
...(config.claudeNativeThinkingDisplay === 'omitted' || config.claudeNativeThinkingDisplay === 'summarized' || config.claudeNativeThinkingDisplay === 'updates'
|
|
1192
|
+
? { claudeNativeThinkingDisplay: config.claudeNativeThinkingDisplay }
|
|
1193
|
+
: {}),
|
|
1194
|
+
...(config.codexTransport === 'exec' || config.codexTransport === 'appserver'
|
|
1195
|
+
? { codexTransport: config.codexTransport }
|
|
1196
|
+
: {}),
|
|
1197
|
+
...(config.codexContextPolicy === 'max' || config.codexContextPolicy === 'standard'
|
|
1198
|
+
? { codexContextPolicy: config.codexContextPolicy }
|
|
1199
|
+
: {}),
|
|
1200
|
+
...(config.claudeTransport === 'cli' || config.claudeTransport === 'native'
|
|
1201
|
+
? { claudeTransport: config.claudeTransport }
|
|
1202
|
+
: {}),
|
|
1203
|
+
// Persist the seeded auto-handoff default on the first meta-write so a
|
|
1204
|
+
// server restart before the operator's first turn keeps the global
|
|
1205
|
+
// default (handleCreateWorkflow bakes it into config for new tabs). The
|
|
1206
|
+
// savedMeta restore in handleCreateWorkflow reads this back.
|
|
1207
|
+
...(isAutoCompactionPolicy(config.autoCompaction) ? { autoCompaction: { ...config.autoCompaction } } : {}),
|
|
1208
|
+
...(config.autoHandoff ? { autoHandoff: { ...config.autoHandoff } } : {}),
|
|
1209
|
+
// docs/PROVIDERS.md - persist the sandbox toggle on the
|
|
1210
|
+
// first meta-write when the cascade default supplied a non-undefined
|
|
1211
|
+
// value. Default is 'off'; only the explicit on/off pair lands here so
|
|
1212
|
+
// a stale cascade doesn't accidentally turn the sandbox on for tabs
|
|
1213
|
+
// that were never asked.
|
|
1214
|
+
...(config.efficiencySandbox === 'on' || config.efficiencySandbox === 'off'
|
|
1215
|
+
? { efficiencySandbox: config.efficiencySandbox }
|
|
1216
|
+
: {}),
|
|
1217
|
+
// docs/PROVIDERS.md - persist the review-gate toggle on the first meta-write
|
|
1218
|
+
// when the cascade default supplied an explicit value, so an operator opt-in
|
|
1219
|
+
// survives a restart before the first turn. Default 'off'.
|
|
1220
|
+
...(config.reviewSafeMode === 'on' || config.reviewSafeMode === 'off'
|
|
1221
|
+
? { reviewSafeMode: config.reviewSafeMode }
|
|
1222
|
+
: {}),
|
|
1223
|
+
...((config.outputStyle === 'lite' || config.outputStyle === 'terse')
|
|
1224
|
+
? { outputStyle: config.outputStyle }
|
|
1225
|
+
// Legacy `caveman` from a stale client → write `terse` to disk.
|
|
1226
|
+
: config.outputStyle === 'caveman'
|
|
1227
|
+
? { outputStyle: 'terse' }
|
|
1228
|
+
: {}),
|
|
1229
|
+
// docs/GOTCHAS.md - persist a north-star seeded before the first turn
|
|
1230
|
+
// (e.g. a Spawn-from-here that inherited the parent's) so it survives a
|
|
1231
|
+
// restart even if the operator never re-sets it. Blank ⇒ omitted.
|
|
1232
|
+
...(config.goal && config.goal.trim() ? { goal: config.goal } : {}),
|
|
1233
|
+
// docs/PROVIDERS.md - persist sticky ultracode on the first meta-write so a
|
|
1234
|
+
// tab left in ultracode survives a restart (the rehydrate read in
|
|
1235
|
+
// workflowHandlers.ts expects saved.ultracode). Without this the flag lives
|
|
1236
|
+
// only in-memory and the tab silently drops out of ultracode on restart.
|
|
1237
|
+
...(config.ultracode === true ? { ultracode: true } : {}),
|
|
1238
|
+
...(typeof config.webSearchMaxUses === 'number' ? { webSearchMaxUses: config.webSearchMaxUses } : {}),
|
|
1239
|
+
...(config.managedWorktreeSourceCwd
|
|
1240
|
+
? { managedWorktreeSourceCwd: config.managedWorktreeSourceCwd }
|
|
1241
|
+
: {}),
|
|
1242
|
+
};
|
|
1243
|
+
await ensureMeta(cwd, meta);
|
|
1244
|
+
}
|
|
1245
|
+
export async function writeCalibrationToMeta(cwd, workflowId, ratio, overhead, lastGroundTruth) {
|
|
1246
|
+
// Locked RMW — calibration lands post-turn, concurrently with plan-prefix /
|
|
1247
|
+
// chat-preview / handler meta writes; an unlocked read→write drops theirs.
|
|
1248
|
+
await updateMeta(cwd, workflowId, (meta) => {
|
|
1249
|
+
meta.calibration = { ratio, overhead, lastGroundTruth };
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
export async function handleUserMessage(ws, session, workflowId, content, clientMessageId, attachments, interjection, kind, primitive, pickedSkills,
|
|
1253
|
+
// drainQueueIfIdle only: take the prompt from wf.queue at claim time
|
|
1254
|
+
// instead of `content` (items were echoed + expanded at enqueue).
|
|
1255
|
+
opts) {
|
|
1256
|
+
const fromQueue = opts?.fromQueue === true;
|
|
1257
|
+
const wf = workflows.get(workflowId);
|
|
1258
|
+
if (!wf) {
|
|
1259
|
+
send(ws, { type: 'error', message: `Unknown workflow ${workflowId.slice(0, 8)}` });
|
|
1260
|
+
return;
|
|
1261
|
+
}
|
|
1262
|
+
const interruptEpoch = busyRevocations.get(wf) ?? 0;
|
|
1263
|
+
const cwd = wf.config.workingDirectory;
|
|
1264
|
+
if (!cwd) {
|
|
1265
|
+
send(ws, { type: 'error', message: 'Workflow has no working directory configured.' });
|
|
1266
|
+
return;
|
|
1267
|
+
}
|
|
1268
|
+
const memberClusterId = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
1269
|
+
const chatMode = isChatWorkflow(wf.config);
|
|
1270
|
+
const incognito = chatMode && wf.config.incognito === true;
|
|
1271
|
+
const trackOllama = wf.primary.provider === 'ollama' && !chatMode;
|
|
1272
|
+
if (trackOllama && !clientMessageId)
|
|
1273
|
+
clientMessageId = randomUUID();
|
|
1274
|
+
// Chat tabs expose no project tools; web_search/web_fetch is the one
|
|
1275
|
+
// exception the operator can arm (default on for a saved Chat). Computed per
|
|
1276
|
+
// turn so the header toggle takes effect on the next message, and passed
|
|
1277
|
+
// down so each provider arms its own web surface.
|
|
1278
|
+
const chatWeb = chatMode && chatWebArmed(wf.config, wf.primary.provider);
|
|
1279
|
+
const clusterAccessMode = memberClusterId
|
|
1280
|
+
? clusterStore.getMemberAccessMode(memberClusterId, workflowId)
|
|
1281
|
+
: 'standard';
|
|
1282
|
+
const isolatedMember = clusterAccessMode === 'isolated';
|
|
1283
|
+
const projectContextEnabled = !chatMode && !isolatedMember;
|
|
1284
|
+
if (chatMode && !CHAT_PROVIDERS.has(wf.primary.provider)) {
|
|
1285
|
+
send(ws, { type: 'error', workflowId, message: `${wf.primary.provider} is not available in Chat mode.` });
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
const configuredTrustSource = wf.config.managedWorktreeSourceCwd;
|
|
1289
|
+
const managedTrustSource = configuredTrustSource
|
|
1290
|
+
&& await isManagedBakeoffWorktree(configuredTrustSource, cwd).catch(() => false)
|
|
1291
|
+
? configuredTrustSource
|
|
1292
|
+
: undefined;
|
|
1293
|
+
if (isolatedMember && (wf.primary.provider !== 'claude' || wf.config.claudeTransport !== 'native')) {
|
|
1294
|
+
send(ws, {
|
|
1295
|
+
type: 'error',
|
|
1296
|
+
message: 'isolated cluster members require the Claude Native transport',
|
|
1297
|
+
});
|
|
1298
|
+
return;
|
|
1299
|
+
}
|
|
1300
|
+
// DD10 — parameterized `/prompt` command expansion. Runs FIRST (before
|
|
1301
|
+
// context-refs + before any echo/record) so events.jsonl carries the expanded
|
|
1302
|
+
// turn, and so `@`-refs inside an expanded template still expand below. A
|
|
1303
|
+
// project-scope template is gated behind DD7 trust (key on the raw decision —
|
|
1304
|
+
// a cloned repo's `.arco/prompts/*.md` is an injection vector). No matching
|
|
1305
|
+
// template ⇒ the text passes through untouched as a normal turn.
|
|
1306
|
+
if (projectContextEnabled && !fromQueue) {
|
|
1307
|
+
const invocation = parsePromptInvocation(content);
|
|
1308
|
+
if (invocation) {
|
|
1309
|
+
const trustStatus = await projectTrust.resolveTrustStatus(managedTrustSource ?? cwd).catch(() => 'ask');
|
|
1310
|
+
const includeProject = trustStatus === 'always';
|
|
1311
|
+
const expanded = await expandPromptCommand(invocation.name, invocation.argsRaw, cwd, { includeProject }).catch((err) => {
|
|
1312
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] prompt-command expansion failed:`, err);
|
|
1313
|
+
return null;
|
|
1314
|
+
});
|
|
1315
|
+
if (expanded) {
|
|
1316
|
+
content = expanded.expanded;
|
|
1317
|
+
broadcastWorkflow(workflowId, {
|
|
1318
|
+
type: 'system_notice',
|
|
1319
|
+
workflowId,
|
|
1320
|
+
content: `[PROMPT] Expanded /${invocation.name} (${expanded.scope}) into this turn.`,
|
|
1321
|
+
});
|
|
1322
|
+
}
|
|
1323
|
+
else if (!includeProject && await projectPromptExists(invocation.name, cwd).catch(() => false)) {
|
|
1324
|
+
// A project template EXISTS but the repo isn't trusted — explain the
|
|
1325
|
+
// suppression rather than silently sending the literal `/name`.
|
|
1326
|
+
broadcastWorkflow(workflowId, {
|
|
1327
|
+
type: 'system_notice',
|
|
1328
|
+
workflowId,
|
|
1329
|
+
content: `[PROMPT] /${invocation.name} is a project template but this repo isn't trusted (${trustStatus}) — it was NOT expanded. Trust the repo to enable it.`,
|
|
1330
|
+
});
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
// docs/ARCHITECTURE.md - context-refs expansion. Expand `@`-refs
|
|
1335
|
+
// (`@file:`, `@diff`, `@staged`, `@git:N`; `@url:` deferred) ONCE here, before
|
|
1336
|
+
// the busy/queue split, so queued AND immediate sends both carry the result.
|
|
1337
|
+
// The operator's chat echo stays compact (raw `content`); the expanded block
|
|
1338
|
+
// is appended to the MODEL prompt only (below for immediate; on the QueueItem
|
|
1339
|
+
// for queued). A system_notice summarizes the expansion so it's visible +
|
|
1340
|
+
// reviewable in events.jsonl (the four-question test). Never throws — the
|
|
1341
|
+
// expander converts every failure to a notice.
|
|
1342
|
+
const contextExpansion = !projectContextEnabled || fromQueue
|
|
1343
|
+
? { block: '', notices: [], expandedCount: 0 }
|
|
1344
|
+
: await expandContextRefs(cwd, content, { windowSize: lookupCtx(wf.primary.model) }).catch((err) => {
|
|
1345
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] context-ref expansion failed:`, err);
|
|
1346
|
+
return { block: '', notices: [], expandedCount: 0 };
|
|
1347
|
+
});
|
|
1348
|
+
if (contextExpansion.notices.length > 0) {
|
|
1349
|
+
send(ws, {
|
|
1350
|
+
type: 'system_notice',
|
|
1351
|
+
workflowId,
|
|
1352
|
+
content: `[CONTEXT REFS] expanded ${contextExpansion.expandedCount} ref` +
|
|
1353
|
+
`${contextExpansion.expandedCount === 1 ? '' : 's'} into this turn's context:\n` +
|
|
1354
|
+
contextExpansion.notices.map((n) => ` • ${n}`).join('\n'),
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
let expandedContext = contextExpansion.block || undefined;
|
|
1358
|
+
// STOP/removal during async ref/trust preparation cancels this explicit
|
|
1359
|
+
// redirect too. A naturally completed turn still accepts it normally.
|
|
1360
|
+
if (kind === 'interrupt' && (workflows.get(workflowId) !== wf || (busyRevocations.get(wf) ?? 0) !== interruptEpoch)) {
|
|
1361
|
+
if (clientMessageId)
|
|
1362
|
+
send(ws, { type: 'queued_message_cancelled', workflowId, clientMessageId });
|
|
1363
|
+
return;
|
|
1364
|
+
}
|
|
1365
|
+
// Busy sends are echoed once and queued. Interrupt is a priority turn after
|
|
1366
|
+
// provider teardown; it must keep this loop's busy claim and older queue.
|
|
1367
|
+
//
|
|
1368
|
+
// Phase 4 — `kind` selects steering vs follow-up bucket. Default 'follow-up'
|
|
1369
|
+
// for back-compat with pre-Phase-4 clients (they sent `interjection: true`
|
|
1370
|
+
// with no kind, which matched today's silent post-turn flush; follow-up is
|
|
1371
|
+
// the closest fit). Phase 4 ships visible/rebindable; both kinds still
|
|
1372
|
+
// drain post-turn — Phases 5–7 turn on real mid-turn delivery for steer
|
|
1373
|
+
// per provider.
|
|
1374
|
+
if (opts?.claimGuard && (wf.busy || wf.computerResetting))
|
|
1375
|
+
return;
|
|
1376
|
+
if (wf.busy || wf.computerResetting) {
|
|
1377
|
+
if (primitive === 'plan-review') {
|
|
1378
|
+
send(ws, { type: 'system_notice', workflowId, content: '[PLAN DRAFT NOT STARTED] Wait for the current turn to finish, then try again.' });
|
|
1379
|
+
return;
|
|
1380
|
+
}
|
|
1381
|
+
// A drain lost the race to another holder; that holder's loop (or its own
|
|
1382
|
+
// drainQueueIfIdle) flushes the queue — nothing to enqueue here.
|
|
1383
|
+
if (fromQueue)
|
|
1384
|
+
return;
|
|
1385
|
+
if (!interjection) {
|
|
1386
|
+
// Non-interjection arriving while busy is a client bug (didn't tag it),
|
|
1387
|
+
// but we still queue rather than error — drops fewer operator messages.
|
|
1388
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] user_message while busy without interjection flag — queuing anyway`);
|
|
1389
|
+
}
|
|
1390
|
+
const interrupt = kind === 'interrupt' && !wf.config.voiceOperator
|
|
1391
|
+
&& (wf.primary.provider === 'claude' || wf.primary.provider === 'codex')
|
|
1392
|
+
&& wf.primaryTurn !== undefined && ownsBusy(wf, wf.primaryTurn.token);
|
|
1393
|
+
const bucket = interrupt ? 'steer'
|
|
1394
|
+
: isComputerBackgroundClaim(workflowId) || kind === 'interrupt' ? 'follow-up' : kind ?? 'follow-up';
|
|
1395
|
+
if (kind === 'interrupt' && !interrupt)
|
|
1396
|
+
broadcastWorkflow(workflowId, {
|
|
1397
|
+
type: 'system_notice', workflowId,
|
|
1398
|
+
content: '[INTERRUPT & SEND] No interruptible Claude or Codex primary turn is running. Your message is queued as a follow-up.',
|
|
1399
|
+
});
|
|
1400
|
+
const arr = bucket === 'steer' ? wf.queue.steering : wf.queue.followUp;
|
|
1401
|
+
const queuedItem = { content, attachments: isolatedMember ? undefined : attachments, clientMessageId, expandedContext, pickedSkills, ollamaInputSeq: undefined, ...(interrupt ? { interrupt: true } : {}) };
|
|
1402
|
+
arr.push(queuedItem);
|
|
1403
|
+
send(ws, {
|
|
1404
|
+
type: 'user_message_echo',
|
|
1405
|
+
workflowId,
|
|
1406
|
+
content,
|
|
1407
|
+
attachments,
|
|
1408
|
+
clientMessageId,
|
|
1409
|
+
timestamp: Date.now(),
|
|
1410
|
+
kind: interrupt ? 'interrupt' : bucket,
|
|
1411
|
+
...(trackOllama ? { ollamaReplayInput: true } : {}),
|
|
1412
|
+
});
|
|
1413
|
+
if (trackOllama)
|
|
1414
|
+
queuedItem.ollamaInputSeq = currentWorkflowSeq(cwd, workflowId);
|
|
1415
|
+
broadcastQueueUpdate(workflowId);
|
|
1416
|
+
if (interrupt) {
|
|
1417
|
+
disarmGoalRun(workflowId, wf, 'the operator interrupted with a new instruction');
|
|
1418
|
+
broadcastWorkflow(workflowId, { type: 'system_notice', workflowId,
|
|
1419
|
+
content: '[INTERRUPT & SEND] Interrupting the current turn. This message runs next; existing queued messages are preserved. Completed changes remain in place.' });
|
|
1420
|
+
const active = wf.primaryTurn;
|
|
1421
|
+
if (active?.workerId && !active.interruption) {
|
|
1422
|
+
active.interruption = wf.manager.interrupt(active.workerId);
|
|
1423
|
+
// Observe immediately: settlement below awaits the same promise.
|
|
1424
|
+
void active.interruption.catch(() => { });
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] queued as ${bucket} (depth: steer=${wf.queue.steering.length}, follow-up=${wf.queue.followUp.length})`);
|
|
1428
|
+
return;
|
|
1429
|
+
}
|
|
1430
|
+
// Refuse the turn if a native `claude --resume` terminal has written to
|
|
1431
|
+
// this session JSONL recently. Two concurrent writers corrupt session
|
|
1432
|
+
// state — the JSONL interleaves sdk-cli and cli entries, the model sees
|
|
1433
|
+
// synthetic "Continue from where you left off" turns, and Arco's chat
|
|
1434
|
+
// drifts from the CLI's internal state. The block clears itself
|
|
1435
|
+
// FOREIGN_WRITE_BLOCK_MS after the last foreign write (i.e. ~60s after
|
|
1436
|
+
// the operator closes the native terminal), without needing explicit
|
|
1437
|
+
// state reset. A handoff remains the clean escape.
|
|
1438
|
+
if (wf.lastForeignWriteAt && (Date.now() - wf.lastForeignWriteAt) < FOREIGN_WRITE_BLOCK_MS) {
|
|
1439
|
+
// Queued items stay queued (already echoed); the operator resends later.
|
|
1440
|
+
if (fromQueue)
|
|
1441
|
+
return;
|
|
1442
|
+
const secs = Math.ceil((FOREIGN_WRITE_BLOCK_MS - (Date.now() - wf.lastForeignWriteAt)) / 1000);
|
|
1443
|
+
send(ws, {
|
|
1444
|
+
type: 'system_notice',
|
|
1445
|
+
workflowId,
|
|
1446
|
+
content: `[TURN BLOCKED] A native \`claude --resume\` terminal is writing to this session. Close it (Arco will auto-clear the block ~${secs}s after its last write), or rotate via Handoff to continue in a clean session.`,
|
|
1447
|
+
});
|
|
1448
|
+
// Echo the operator's message so it isn't silently dropped; they can
|
|
1449
|
+
// resend once the block clears.
|
|
1450
|
+
send(ws, {
|
|
1451
|
+
type: 'user_message_echo',
|
|
1452
|
+
workflowId,
|
|
1453
|
+
content,
|
|
1454
|
+
attachments,
|
|
1455
|
+
clientMessageId,
|
|
1456
|
+
timestamp: Date.now(),
|
|
1457
|
+
});
|
|
1458
|
+
return;
|
|
1459
|
+
}
|
|
1460
|
+
// Cancel any in-flight calibration pty before starting the primary turn.
|
|
1461
|
+
// Calibration is idle-only; the primary turn takes priority.
|
|
1462
|
+
if (wf.cancelCalibration) {
|
|
1463
|
+
wf.cancelCalibration();
|
|
1464
|
+
wf.cancelCalibration = undefined;
|
|
1465
|
+
}
|
|
1466
|
+
// Drain path: splice the queue in the same synchronous span as the busy
|
|
1467
|
+
// claim below, so nothing can slip in between the idle check and the take.
|
|
1468
|
+
let initialInterrupt = false;
|
|
1469
|
+
// Refuse before taking queued input: a restore admitted during preflight
|
|
1470
|
+
// must leave the queue available for an explicit later attempt.
|
|
1471
|
+
assertCheckoutAvailable(workflowWritePaths(wf));
|
|
1472
|
+
let activeOllamaInputSeqs = [];
|
|
1473
|
+
if (fromQueue) {
|
|
1474
|
+
const drained = takeQueuedTurn(wf.queue);
|
|
1475
|
+
if (drained.length === 0)
|
|
1476
|
+
return;
|
|
1477
|
+
if (!incognito)
|
|
1478
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] idle drain: flushing ${drained.length} queued message(s) as a fresh turn`);
|
|
1479
|
+
broadcastQueueUpdate(workflowId);
|
|
1480
|
+
const drainedClientIds = drained
|
|
1481
|
+
.map((d) => d.clientMessageId)
|
|
1482
|
+
.filter((id) => typeof id === 'string' && id.length > 0);
|
|
1483
|
+
if (drainedClientIds.length > 0) {
|
|
1484
|
+
send(ws, { type: 'queued_messages_drained', workflowId, clientMessageIds: drainedClientIds, drainedAt: Date.now() });
|
|
1485
|
+
}
|
|
1486
|
+
activeOllamaInputSeqs = drained.every(d => d.ollamaInputSeq) ? drained.map(d => d.ollamaInputSeq) : [];
|
|
1487
|
+
content = drained.map((d) => d.content).join('\n\n');
|
|
1488
|
+
const mergedAttachments = drained.flatMap((d) => d.attachments ?? []);
|
|
1489
|
+
attachments = mergedAttachments.length > 0 ? mergedAttachments : undefined;
|
|
1490
|
+
const mergedRefs = drained.map((d) => d.expandedContext ?? '').filter(Boolean).join('');
|
|
1491
|
+
expandedContext = mergedRefs.length > 0 ? mergedRefs : undefined;
|
|
1492
|
+
clientMessageId = undefined;
|
|
1493
|
+
pickedSkills = drained.flatMap((d) => d.pickedSkills ?? []);
|
|
1494
|
+
initialInterrupt = drained.some((d) => d.interrupt);
|
|
1495
|
+
}
|
|
1496
|
+
let busyToken;
|
|
1497
|
+
if (primitive === 'plan-review')
|
|
1498
|
+
disarmGoalRun(workflowId, wf, 'a plan review was requested');
|
|
1499
|
+
if (opts?.claimGuard) {
|
|
1500
|
+
let guardedToken;
|
|
1501
|
+
await opts.claimGuard(() => {
|
|
1502
|
+
// Async preflight may have lost to STOP, a real operator turn or removal.
|
|
1503
|
+
// Conditional nudges must never fall into the ordinary follow-up queue.
|
|
1504
|
+
if (workflows.get(workflowId) !== wf || wf.busy || wf.computerResetting || wf.queue.steering.length || wf.queue.followUp.length
|
|
1505
|
+
|| (wf.lastForeignWriteAt && Date.now() - wf.lastForeignWriteAt < FOREIGN_WRITE_BLOCK_MS))
|
|
1506
|
+
return false;
|
|
1507
|
+
guardedToken = claimBusy(wf);
|
|
1508
|
+
return true;
|
|
1509
|
+
});
|
|
1510
|
+
if (guardedToken === undefined)
|
|
1511
|
+
return;
|
|
1512
|
+
busyToken = guardedToken;
|
|
1513
|
+
}
|
|
1514
|
+
else
|
|
1515
|
+
busyToken = claimBusy(wf);
|
|
1516
|
+
const primaryTurn = { token: busyToken, holdSteer: initialInterrupt };
|
|
1517
|
+
wf.primaryTurn = primaryTurn;
|
|
1518
|
+
// Drive the turn loop. On first iteration `prompt` is the incoming content;
|
|
1519
|
+
// on subsequent iterations it's the drained interjection queue (joined so
|
|
1520
|
+
// multiple queued messages land in a single follow-up turn). This keeps
|
|
1521
|
+
// the CLI session alive and matches Claude Code terminal's flush-on-idle.
|
|
1522
|
+
if (opts?.backgroundEvent)
|
|
1523
|
+
setComputerBackgroundClaim(workflowId, busyToken);
|
|
1524
|
+
let prompt = content;
|
|
1525
|
+
let promptPickedSkills = pickedSkills;
|
|
1526
|
+
let promptAttachments = isolatedMember ? undefined : attachments;
|
|
1527
|
+
let promptClientMessageId = clientMessageId;
|
|
1528
|
+
// §D1 — expanded `@`-context-refs for the current iteration's prompt. First
|
|
1529
|
+
// iteration uses the immediate-send expansion; drain iterations rebuild it
|
|
1530
|
+
// from the drained QueueItems' stored blocks. Appended to the model prompt
|
|
1531
|
+
// (after the plan prefix) but never to the echo.
|
|
1532
|
+
let promptExpandedContext = expandedContext;
|
|
1533
|
+
// First iteration echoes the original message via the standard path; later
|
|
1534
|
+
// iterations generate their own clientMessageId so the dedup on the
|
|
1535
|
+
// originating tab doesn't accidentally swallow an auto-flushed prompt
|
|
1536
|
+
// whose UUID was already rendered client-side.
|
|
1537
|
+
let firstIteration = true;
|
|
1538
|
+
// docs/GOTCHAS.md - outcome of the LAST settled turn in this drain loop.
|
|
1539
|
+
// An armed goal run stops on an errored turn rather than looping on the same
|
|
1540
|
+
// failure; the flag has to outlive the loop body to reach `maybeGoalRun`.
|
|
1541
|
+
let lastTurnErrored = false;
|
|
1542
|
+
let policyReading;
|
|
1543
|
+
let staleLoop = false;
|
|
1544
|
+
let watchLoopFinished = false;
|
|
1545
|
+
let watchHadError = false;
|
|
1546
|
+
let preserveQueue = false;
|
|
1547
|
+
const loadQueuedPrompt = (append = false) => {
|
|
1548
|
+
const drained = takeQueuedTurn(wf.queue);
|
|
1549
|
+
broadcastQueueUpdate(workflowId);
|
|
1550
|
+
const ids = drained.flatMap((d) => d.clientMessageId ? [d.clientMessageId] : []);
|
|
1551
|
+
if (ids.length)
|
|
1552
|
+
send(ws, { type: 'queued_messages_drained', workflowId,
|
|
1553
|
+
clientMessageIds: ids, drainedAt: Date.now() });
|
|
1554
|
+
activeOllamaInputSeqs = drained.every(d => d.ollamaInputSeq) ? [...(append ? activeOllamaInputSeqs : []), ...drained.map(d => d.ollamaInputSeq)] : [];
|
|
1555
|
+
prompt = [...(append ? [prompt] : []), ...drained.map((d) => d.content)].join('\n\n');
|
|
1556
|
+
const files = [...(append ? promptAttachments ?? [] : []), ...drained.flatMap((d) => d.attachments ?? [])];
|
|
1557
|
+
promptAttachments = files.length ? files : undefined;
|
|
1558
|
+
const refs = (append ? promptExpandedContext ?? '' : '') + drained.map((d) => d.expandedContext ?? '').join('');
|
|
1559
|
+
promptExpandedContext = refs || undefined;
|
|
1560
|
+
promptClientMessageId = undefined;
|
|
1561
|
+
promptPickedSkills = [...(append ? promptPickedSkills ?? [] : []), ...drained.flatMap((d) => d.pickedSkills ?? [])];
|
|
1562
|
+
primaryTurn.holdSteer = drained.some((d) => d.interrupt);
|
|
1563
|
+
};
|
|
1564
|
+
// DD7 — project-trust gate. Resolve ONCE per turn (stable across drain
|
|
1565
|
+
// iterations) from USER/GLOBAL scope only — trust.json + the global
|
|
1566
|
+
// settings.json's defaultProjectTrust — BEFORE any project-local surface is
|
|
1567
|
+
// read below. When the repo is untrusted, `includeProject` suppresses its
|
|
1568
|
+
// CLAUDE.md, project skills, and project settings.json from the model turn
|
|
1569
|
+
// (the cloned-repo prompt-injection vector). The turn STILL PROCEEDS; an
|
|
1570
|
+
// 'ask' repo additionally raises a one-time operator prompt (deduped per cwd,
|
|
1571
|
+
// so cluster peers sharing the cwd prompt once). Decision + suppressed list
|
|
1572
|
+
// land in events.jsonl for the four-question test's visibility leg.
|
|
1573
|
+
const trustGate = !projectContextEnabled
|
|
1574
|
+
? { includeProject: false, needsPrompt: false, status: 'never', resources: [] }
|
|
1575
|
+
: await (managedTrustSource
|
|
1576
|
+
? projectTrust.gateManagedWorktreeResources(cwd, managedTrustSource)
|
|
1577
|
+
: projectTrust.gateProjectResources(cwd)).catch((err) => {
|
|
1578
|
+
// Fail SAFE: on any gate error, suppress project resources rather than
|
|
1579
|
+
// leaking an unvetted repo's instructions into the turn.
|
|
1580
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] project-trust gate failed; suppressing project resources:`, err);
|
|
1581
|
+
return { includeProject: false, needsPrompt: false, status: 'ask', resources: [] };
|
|
1582
|
+
});
|
|
1583
|
+
const includeProject = trustGate.includeProject;
|
|
1584
|
+
const trustDecisionCwd = managedTrustSource ?? cwd;
|
|
1585
|
+
// Log the suppression for the four-question test's visibility leg — but stay
|
|
1586
|
+
// quiet for an explicit 'never' (the operator deliberately chose to suppress;
|
|
1587
|
+
// a per-turn notice would just nag). 'ask' / fail-safe always log.
|
|
1588
|
+
if (!includeProject && trustGate.resources.length > 0 && trustGate.status !== 'never') {
|
|
1589
|
+
broadcastWorkflow(workflowId, {
|
|
1590
|
+
type: 'system_notice',
|
|
1591
|
+
workflowId,
|
|
1592
|
+
content: `[PROJECT TRUST] This repo is not trusted (${trustGate.status}); suppressed from this turn: ` +
|
|
1593
|
+
`${trustGate.resources.join(', ')}. Trust it to fold these in (next turn).`,
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
if (trustGate.needsPrompt && projectTrust.markPromptPending(trustDecisionCwd)) {
|
|
1597
|
+
broadcastWorkflow(workflowId, {
|
|
1598
|
+
type: 'project_trust_prompt',
|
|
1599
|
+
workflowId,
|
|
1600
|
+
cwd: trustDecisionCwd,
|
|
1601
|
+
resources: trustGate.resources,
|
|
1602
|
+
});
|
|
1603
|
+
}
|
|
1604
|
+
// DD8 — resolve picks for the prompt that owns them, including queued
|
|
1605
|
+
// interrupt instructions. Picking is an explicit operator action, so it
|
|
1606
|
+
// applies regardless
|
|
1607
|
+
// of the DD7 trust gate above — picking IS the operator's vouch. A missing /
|
|
1608
|
+
// unreadable skill is skipped with a notice rather than failing the turn.
|
|
1609
|
+
async function resolvePickedSkillsBlock(picks) {
|
|
1610
|
+
if (!projectContextEnabled || !picks?.length)
|
|
1611
|
+
return '';
|
|
1612
|
+
const resolved = [];
|
|
1613
|
+
const missing = [];
|
|
1614
|
+
for (const pick of picks) {
|
|
1615
|
+
try {
|
|
1616
|
+
const full = await readSkillBody(pick.scope, pick.slug, cwd);
|
|
1617
|
+
if (full)
|
|
1618
|
+
resolved.push({ name: full.name, scope: full.scope, body: full.body });
|
|
1619
|
+
else
|
|
1620
|
+
missing.push(`${pick.scope}:${pick.slug}`);
|
|
1621
|
+
}
|
|
1622
|
+
catch {
|
|
1623
|
+
missing.push(`${pick.scope}:${pick.slug}`);
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
const built = buildPickedSkillsBlock(resolved);
|
|
1627
|
+
const names = resolved.map((s) => s.name).join(', ');
|
|
1628
|
+
broadcastWorkflow(workflowId, {
|
|
1629
|
+
type: 'system_notice',
|
|
1630
|
+
workflowId,
|
|
1631
|
+
content: `[SKILLS] Inlined ${resolved.length} operator-picked skill${resolved.length === 1 ? '' : 's'} ` +
|
|
1632
|
+
`(${built.bytes} bytes) into this turn${names ? `: ${names}` : ''}.` +
|
|
1633
|
+
(missing.length > 0 ? ` Skipped (not found): ${missing.join(', ')}.` : ''),
|
|
1634
|
+
});
|
|
1635
|
+
return built.text;
|
|
1636
|
+
}
|
|
1637
|
+
// Standing SKILLS pins are re-resolved once per primary-turn invocation.
|
|
1638
|
+
// This keeps edits live, survives Native compaction / Handoff / restart, and
|
|
1639
|
+
// avoids silently snapshotting stale bodies into meta.json. Like a one-shot
|
|
1640
|
+
// pick, a project pin is an explicit operator vouch and bypasses discovery's
|
|
1641
|
+
// project-trust suppression. Missing files fail safe and stay visible.
|
|
1642
|
+
let pinnedSkillsBlock = '';
|
|
1643
|
+
if (projectContextEnabled && wf.config.pinnedSkills?.length) {
|
|
1644
|
+
const resolved = await resolvePinnedSkills(wf.config.pinnedSkills, cwd);
|
|
1645
|
+
const built = buildPinnedSkillsBlock(resolved.skills);
|
|
1646
|
+
pinnedSkillsBlock = built.text;
|
|
1647
|
+
const skipped = [...resolved.missing, ...resolved.truncated];
|
|
1648
|
+
if (skipped.length > 0) {
|
|
1649
|
+
broadcastWorkflow(workflowId, {
|
|
1650
|
+
type: 'system_notice',
|
|
1651
|
+
workflowId,
|
|
1652
|
+
content: `[PINNED SKILLS] ${resolved.skills.length} active (${built.bytes} bytes); skipped: ${skipped.join(', ')}.`,
|
|
1653
|
+
});
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
// Phase 6 — resolve the Codex transport once per primary-turn invocation.
|
|
1657
|
+
// Reading the cascade up here means the value is stable across the
|
|
1658
|
+
// drain-loop iterations below; an HMR-driven settings.json change between
|
|
1659
|
+
// turns won't re-toggle the transport mid-loop, which would otherwise
|
|
1660
|
+
// leak a long-lived `codex app-server` worker after switching back to
|
|
1661
|
+
// exec mode. The dispatcher's exec-default fall-through covers other
|
|
1662
|
+
// providers; reviewers/handoffs leave codexTransport unset.
|
|
1663
|
+
// Phase 6e — per-tab override (`wf.config.codexTransport`) takes precedence
|
|
1664
|
+
// over the cascade. The CONFIG-tab toggle writes to that field via
|
|
1665
|
+
// update_primary_config so the operator's choice doesn't depend on a
|
|
1666
|
+
// hand-edited settings.json.
|
|
1667
|
+
const cascade = await readSettings(cwd, { includeProject }).catch(() => null);
|
|
1668
|
+
const tabTransport = wf.config.codexTransport;
|
|
1669
|
+
const codexTransport = tabTransport === 'appserver' || tabTransport === 'exec'
|
|
1670
|
+
? tabTransport
|
|
1671
|
+
: cascade?.codex?.transport === 'appserver' ? 'appserver' : 'exec';
|
|
1672
|
+
// Phase 7a — Claude transport, same precedence as Codex above.
|
|
1673
|
+
const tabClaudeTransport = wf.config.claudeTransport;
|
|
1674
|
+
// docs/PROVIDERS.md - sticky ultracode mode forces the CLI transport (the
|
|
1675
|
+
// harness WorkflowTool lives only in the `claude` binary; Native's raw SDK
|
|
1676
|
+
// can't host it). The operator's base transport is remembered separately in
|
|
1677
|
+
// wf.config.ultracodeBaseTransport so turning ultracode OFF restores it.
|
|
1678
|
+
const ultracode = wf.primary.provider === 'claude' && wf.config.ultracode === true;
|
|
1679
|
+
const claudeTransport = ultracode
|
|
1680
|
+
? 'cli'
|
|
1681
|
+
: tabClaudeTransport === 'native' || tabClaudeTransport === 'cli'
|
|
1682
|
+
? tabClaudeTransport
|
|
1683
|
+
: cascade?.claude?.transport === 'native' ? 'native' : 'cli';
|
|
1684
|
+
const providerAccount = wf.primary.provider === 'codex'
|
|
1685
|
+
? await resolveProviderAccount('codex', wf.config.providerAccountRef, cwd).catch(() => null)
|
|
1686
|
+
: null;
|
|
1687
|
+
if (providerAccount?.profile.id && wf.config.providerAccountRef !== providerAccount.profile.id) {
|
|
1688
|
+
wf.config.providerAccountRef = providerAccount.profile.id;
|
|
1689
|
+
}
|
|
1690
|
+
// Anthropic server-side compaction (`compact_20260112`). Defaults OFF for
|
|
1691
|
+
// Native tabs (NATIVE_COMPACTION_PLAN §1) — seeded into config at tab
|
|
1692
|
+
// creation, so by here it's a concrete boolean; an absent value also reads
|
|
1693
|
+
// as off. CLI Claude handles compaction inside the CLI process so the flag
|
|
1694
|
+
// is moot there.
|
|
1695
|
+
const claudeNativeCompact = claudeTransport === 'native'
|
|
1696
|
+
? wf.config.claudeNativeCompact === true
|
|
1697
|
+
: false;
|
|
1698
|
+
const claudeNativeForceInterleavedThinkingBeta = claudeTransport === 'native'
|
|
1699
|
+
? wf.config.claudeNativeForceInterleavedThinkingBeta === true
|
|
1700
|
+
: false;
|
|
1701
|
+
// Adaptive-thinking display for the Native worker. Absent ⇒ 'omitted'
|
|
1702
|
+
// (Claude-Code parity — no thinking streamed back); 'summarized' streams
|
|
1703
|
+
// summarized thinking into the Activity tab.
|
|
1704
|
+
const claudeNativeThinkingDisplay = claudeTransport === 'native'
|
|
1705
|
+
? wf.config.claudeNativeThinkingDisplay
|
|
1706
|
+
: undefined;
|
|
1707
|
+
// docs/PROVIDERS.md - Native tool-result filter mode. Only honored
|
|
1708
|
+
// on Native (the filter pipeline runs inside `claude-native/dispatchTool`;
|
|
1709
|
+
// CLI/Codex don't surface raw tool stdout to us). Default off until measured
|
|
1710
|
+
// per the §13.3 / §2.4 doc-discipline rule (no aggressive defaults).
|
|
1711
|
+
const efficiencyToolFilter = claudeTransport === 'native'
|
|
1712
|
+
? (wf.config.efficiencyToolFilter ?? 'off')
|
|
1713
|
+
: 'off';
|
|
1714
|
+
// docs/PROVIDERS.md - fact-force first-edit gate mode. It is
|
|
1715
|
+
// opt-in: new tabs and rehydrated tabs without the field stay 'off'. CLI
|
|
1716
|
+
// parity is deferred (master §3.3 F4), so hard-zero non-Native transports.
|
|
1717
|
+
const efficiencyFactForce = claudeTransport === 'native'
|
|
1718
|
+
? (wf.config.efficiencyFactForce ?? 'off')
|
|
1719
|
+
: 'off';
|
|
1720
|
+
// Config-protection write-gate. Default 'on' (safety gate); the operator
|
|
1721
|
+
// opts out per-tab. Native-only (the gate lives in the Native worker), so
|
|
1722
|
+
// we hard-zero non-Native transports to 'off' to avoid a meaningless flag.
|
|
1723
|
+
const efficiencyConfigProtection = claudeTransport === 'native'
|
|
1724
|
+
? (wf.config.efficiencyConfigProtection ?? 'on')
|
|
1725
|
+
: 'off';
|
|
1726
|
+
const efficiencySandbox = claudeTransport === 'native' && !isolatedMember
|
|
1727
|
+
? (wf.config.efficiencySandbox ?? 'off')
|
|
1728
|
+
: 'off';
|
|
1729
|
+
// docs/PROVIDERS.md - operator-armed durable review gate. Native-only (the gate
|
|
1730
|
+
// lives in the in-process worker's dispatchTool). Default 'off' so it stays
|
|
1731
|
+
// operator-opted-in and inert until armed.
|
|
1732
|
+
const reviewSafeMode = claudeTransport === 'native'
|
|
1733
|
+
? (wf.config.reviewSafeMode ?? 'off')
|
|
1734
|
+
: 'off';
|
|
1735
|
+
// docs/PROVIDERS.md - operator-armed terseness picker. Honored by
|
|
1736
|
+
const outputStyleSupported = (wf.primary.provider === 'claude' && claudeTransport === 'native') ||
|
|
1737
|
+
(wf.primary.provider === 'codex' && codexTransport === 'appserver');
|
|
1738
|
+
const outputStyle = primitive === 'docs' || primitive === 'git'
|
|
1739
|
+
? 'normal'
|
|
1740
|
+
: outputStyleSupported
|
|
1741
|
+
? (wf.config.outputStyle ?? 'normal')
|
|
1742
|
+
: 'normal';
|
|
1743
|
+
// docs/GOTCHAS.md - operator-set persistent north-star. Read straight
|
|
1744
|
+
// from wf.config, inherited on EVERY path including in-tab DOCS / GIT (the one
|
|
1745
|
+
// deliberate divergence from outputStyle's forced 'normal' for those two — a
|
|
1746
|
+
// DOCS/GIT prompt benefits from the goal context). Absent / blank ⇒ no block
|
|
1747
|
+
// on any transport; honored wherever clusterPlan is folded.
|
|
1748
|
+
const goal = isolatedMember ? undefined : wf.config.goal;
|
|
1749
|
+
// docs/PROVIDERS.md - per-tab Ollama param preset blob. Resolved
|
|
1750
|
+
// ONLY for Ollama tabs (the provider's request builder is the sole consumer;
|
|
1751
|
+
// every other provider ignores the field). Read straight from wf.config so
|
|
1752
|
+
// it is byte-stable across this workflow's turns — the prefix-cache
|
|
1753
|
+
// invariant. The operator-edit path (updatePrimaryConfig) is the only place
|
|
1754
|
+
// it changes between turns, and that's logged as a cache-invalidation event.
|
|
1755
|
+
const ollamaParams = wf.primary.provider === 'ollama'
|
|
1756
|
+
? wf.config.ollamaParams
|
|
1757
|
+
: undefined;
|
|
1758
|
+
let activeTurnObservation;
|
|
1759
|
+
try {
|
|
1760
|
+
while (true) {
|
|
1761
|
+
const pickedSkillsBlock = await resolvePickedSkillsBlock(promptPickedSkills);
|
|
1762
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] user_message received; starting primary turn (${wf.primary.provider}:${wf.primary.model}, resume=${wf.primarySessionId?.slice(0, 8) || 'none'})`);
|
|
1763
|
+
// Peer mailbox: don't auto-drain pre-turn. Just count what's pending and
|
|
1764
|
+
// surface a short notice so the worker knows it has peer mail and reads
|
|
1765
|
+
// it via peer_read. Keeps peer messages as a normal tool-flow primitive
|
|
1766
|
+
// instead of getting silently shoved into the system prompt where the
|
|
1767
|
+
// model conflates "system context" with "current peer mail."
|
|
1768
|
+
// peer_message_received events now fire on peer_read call (where they
|
|
1769
|
+
// belong) rather than pre-turn.
|
|
1770
|
+
//
|
|
1771
|
+
// Phrase the notice as an instruction to read peer mail so the model
|
|
1772
|
+
// invokes the tool rather than echoing a tool-call example.
|
|
1773
|
+
// the notice text now varies by the cluster's efficiency
|
|
1774
|
+
// level (clusterEfficiency.buildPeerMailboxNotice). At balanced/lean the
|
|
1775
|
+
// doctrine tells members not to re-review unless signalled, so the notice
|
|
1776
|
+
// must NOT also shout "re-engage on every inbound" — that contradiction
|
|
1777
|
+
// is exactly the over-review loop this feature targets. The level lookup
|
|
1778
|
+
// is a synchronous in-memory read, so resolving the clusterId here
|
|
1779
|
+
// (ahead of the turn-start resolution below) is cheap. 'thorough' yields
|
|
1780
|
+
// the byte-identical historical notice.
|
|
1781
|
+
let peerMessagesPrologue;
|
|
1782
|
+
if (firstIteration) {
|
|
1783
|
+
const pendingDepth = await clusterMailbox.depthFor(workflowId).catch(() => 0);
|
|
1784
|
+
if (pendingDepth > 0) {
|
|
1785
|
+
const noticeClusterId = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
1786
|
+
const noticeLevel = noticeClusterId
|
|
1787
|
+
? clusterStore.getEfficiencyLevel(noticeClusterId)
|
|
1788
|
+
: 'thorough';
|
|
1789
|
+
const noticeAccess = noticeClusterId
|
|
1790
|
+
? clusterStore.getMemberAccessMode(noticeClusterId, workflowId)
|
|
1791
|
+
: 'standard';
|
|
1792
|
+
peerMessagesPrologue = noticeAccess === 'standard'
|
|
1793
|
+
? clusterEfficiency.buildPeerMailboxNotice(noticeLevel, pendingDepth, noticeClusterId ? clusterStore.getMemberRole(noticeClusterId, workflowId) : undefined)
|
|
1794
|
+
: `You have ${pendingDepth} pending peer message${pendingDepth === 1 ? '' : 's'}. Read them with peer_read; no other cluster context is available.`;
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
// First turn echoes the operator's fresh prompt into events.jsonl.
|
|
1798
|
+
// Drain turns don't re-echo — each queued interjection was already
|
|
1799
|
+
// echoed at enqueue-time, so the transcript renders the individual
|
|
1800
|
+
// interjections rather than the joined follow-up prompt.
|
|
1801
|
+
if (firstIteration) {
|
|
1802
|
+
// An idle drain's items were echoed individually at enqueue time.
|
|
1803
|
+
if (!fromQueue)
|
|
1804
|
+
send(ws, {
|
|
1805
|
+
type: 'user_message_echo',
|
|
1806
|
+
workflowId,
|
|
1807
|
+
content: prompt,
|
|
1808
|
+
attachments: promptAttachments,
|
|
1809
|
+
clientMessageId: promptClientMessageId,
|
|
1810
|
+
timestamp: Date.now(),
|
|
1811
|
+
...(trackOllama ? { ollamaReplayInput: true } : {}),
|
|
1812
|
+
});
|
|
1813
|
+
if (!fromQueue && trackOllama)
|
|
1814
|
+
activeOllamaInputSeqs = [currentWorkflowSeq(cwd, workflowId)];
|
|
1815
|
+
if (chatMode && !incognito) {
|
|
1816
|
+
// Keep the global Past Chats list useful without rescanning a growing
|
|
1817
|
+
// events.jsonl for every creator render.
|
|
1818
|
+
const preview = prompt.replace(/\s+/g, ' ').trim().slice(0, 80);
|
|
1819
|
+
await updateMeta(cwd, workflowId, (meta) => {
|
|
1820
|
+
meta.lastActiveAt = Date.now();
|
|
1821
|
+
meta.lastUserPreview = preview;
|
|
1822
|
+
}).catch((err) => {
|
|
1823
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] Chat activity meta write failed:`, err);
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
// Lazy-create the bg-jobs tracker on first turn — most tabs never
|
|
1828
|
+
// spawn long-running children, so the /proc poller only starts when
|
|
1829
|
+
// a Bash(run_in_background) hint or a fresh descendant actually
|
|
1830
|
+
// appears. Tracker is persistent across turns (and across handoffs)
|
|
1831
|
+
// so a download started in turn N stays visible in turn N+3.
|
|
1832
|
+
if (!chatMode && !wf.bgTracker) {
|
|
1833
|
+
wf.bgTracker = new PrimaryBackgroundTracker({
|
|
1834
|
+
workflowId,
|
|
1835
|
+
broadcast: (msg) => broadcastTransient(workflowId, msg),
|
|
1836
|
+
});
|
|
1837
|
+
}
|
|
1838
|
+
// Plan header injection. When a plan is attached, prepend a brief
|
|
1839
|
+
// "active plan" reminder to the prompt before forwarding to the
|
|
1840
|
+
// provider — the operator's echo'd transcript stays clean. If the
|
|
1841
|
+
// plan body was edited since the last turn that injected it, also
|
|
1842
|
+
// include the full body once so the agent picks up the change. The
|
|
1843
|
+
// operator's transcript is unaffected (echo already sent above).
|
|
1844
|
+
const planPrefix = projectContextEnabled ? await buildPlanPrefix(cwd, wf, workflowId) : '';
|
|
1845
|
+
const promptWithRefs = promptExpandedContext ? prompt + promptExpandedContext : prompt;
|
|
1846
|
+
// DD8 — inline the picks owned by this prompt, after explicit refs.
|
|
1847
|
+
// Model-facing only; each queued prompt carries its own picks.
|
|
1848
|
+
const promptWithSkills = pickedSkillsBlock
|
|
1849
|
+
? `${promptWithRefs}\n\n${pickedSkillsBlock}`
|
|
1850
|
+
: promptWithRefs;
|
|
1851
|
+
let promptWithPlan = planPrefix ? planPrefix + promptWithSkills : promptWithSkills;
|
|
1852
|
+
if (firstIteration && primitive === 'plan-review' && wf.primary.provider === 'cursor') {
|
|
1853
|
+
const prior = renderTranscript(await replayWorkflowEvents(cwd, workflowId, 0)).slice(-48_000);
|
|
1854
|
+
if (prior.trim())
|
|
1855
|
+
promptWithPlan = `Recent conversation (may be truncated):\n${prior}\n\n${promptWithPlan}`;
|
|
1856
|
+
}
|
|
1857
|
+
// Ollama has no native session resume — every spawn is a fresh HTTP
|
|
1858
|
+
// request. To give the model memory across turns we replay the
|
|
1859
|
+
// workflow's events.jsonl into the same USER:/AGENT: transcript shape
|
|
1860
|
+
// the fresh-summarizer Handoff produces, then hand it to the provider
|
|
1861
|
+
// as appendSystemPrompt. The provider parses it back into structured
|
|
1862
|
+
// /api/chat messages so the prefix bytes stay stable across turns
|
|
1863
|
+
// and Ollama's prefix cache hits.
|
|
1864
|
+
//
|
|
1865
|
+
// The system prompt counters two observed Qwen-MoE behaviors against
|
|
1866
|
+
// a code chat: (1) verbose tabular formatting on every reply, (2)
|
|
1867
|
+
// hallucinating about files when no tools are wired (§5.4 still
|
|
1868
|
+
// pending). Static text — no timestamps or random ids — so the prefix
|
|
1869
|
+
// cache hits cleanly across turns.
|
|
1870
|
+
let ollamaReplay;
|
|
1871
|
+
let primaryAppendSystemPrompt;
|
|
1872
|
+
let primarySystemPrompt;
|
|
1873
|
+
// The current user echo was just recorded above. Stateless providers
|
|
1874
|
+
// receive only the completed turns before it; the current prompt rides
|
|
1875
|
+
// the normal provider input exactly once.
|
|
1876
|
+
const priorIncognitoEvents = incognito
|
|
1877
|
+
? (() => {
|
|
1878
|
+
const events = wf.incognitoEvents ?? [];
|
|
1879
|
+
return events[events.length - 1]?.type === 'user_message_echo'
|
|
1880
|
+
? events.slice(0, -1)
|
|
1881
|
+
: [...events];
|
|
1882
|
+
})()
|
|
1883
|
+
: null;
|
|
1884
|
+
// Phase 1 — Arco-managed skills. Scan project + global skill
|
|
1885
|
+
// directories on every turn (cheap — small dir count, single SKILL.md
|
|
1886
|
+
// read each), build the XML manifest, and route it to wherever the
|
|
1887
|
+
// provider's system prompt actually lives. Manifest holds only name +
|
|
1888
|
+
// description; the agent reads the full SKILL.md via its Read tool.
|
|
1889
|
+
// Re-scanning per turn means edits / deletes via the UI take effect on
|
|
1890
|
+
// the next turn without restarting anything.
|
|
1891
|
+
let primarySkillsManifest = '';
|
|
1892
|
+
if (projectContextEnabled)
|
|
1893
|
+
try {
|
|
1894
|
+
const catalog = await listSkills(cwd, { includeProject });
|
|
1895
|
+
// A pinned body is already present in full; omit its progressive-
|
|
1896
|
+
// disclosure metadata to avoid duplicate/conflicting instructions.
|
|
1897
|
+
const pinnedKeys = new Set((wf.config.pinnedSkills ?? []).map((s) => `${s.scope}:${s.slug}`));
|
|
1898
|
+
primarySkillsManifest = buildSkillsManifest({
|
|
1899
|
+
project: catalog.project.filter((s) => !pinnedKeys.has(`project:${s.slug}`)),
|
|
1900
|
+
global: catalog.global.filter((s) => !pinnedKeys.has(`global:${s.slug}`)),
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
catch (err) {
|
|
1904
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] skills scan failed:`, err);
|
|
1905
|
+
}
|
|
1906
|
+
if (wf.primary.provider === 'ollama') {
|
|
1907
|
+
primarySystemPrompt = chatMode ? chatSystemPrompt(chatWeb) : OLLAMA_PRIMARY_SYSTEM_PROMPT;
|
|
1908
|
+
try {
|
|
1909
|
+
const events = priorIncognitoEvents ?? (wf.config.voiceOperator
|
|
1910
|
+
? await computerReplayEvents(cwd, workflowId, wf.config.computerContext?.lastResetAt, wf.config.computerContext?.lastResetSeq)
|
|
1911
|
+
: await replayWorkflowEvents(cwd, workflowId, 0));
|
|
1912
|
+
// preserveThinking: Qwen-family models (3.6, 3-VL) implement
|
|
1913
|
+
// Thinking Preservation — prior turn reasoning fed back as
|
|
1914
|
+
// context improves multi-turn coherence. Cheap (just routes
|
|
1915
|
+
// primary_thinking events into a <think> block on each AGENT
|
|
1916
|
+
// entry); UI/handoff paths still call renderTranscript without
|
|
1917
|
+
// the flag and stay reasoning-clean.
|
|
1918
|
+
// Hidden reasoning is useful continuity for project Agent work, but
|
|
1919
|
+
// Chat capabilities can change between turns via the WEB toggle. A
|
|
1920
|
+
// saved offline turn can contain the old system restriction verbatim;
|
|
1921
|
+
// replaying that reasoning after web is armed makes local models obey
|
|
1922
|
+
// the stale state instead of the current system block + tools[].
|
|
1923
|
+
const clusterForReplay = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
1924
|
+
const savedOllamaPolicy = cascade?.ollama?.compaction?.enabled !== undefined || cascade?.ollama?.compaction?.threshold !== undefined;
|
|
1925
|
+
const policy = trackOllama ? resolveProviderAutoCompaction(wf.config.autoCompaction, clusterForReplay ? clusterStore.getAutoCompaction(clusterForReplay) : undefined, 'ollama', '', false, savedOllamaPolicy) : undefined;
|
|
1926
|
+
let replayEvents = events;
|
|
1927
|
+
if (policy) {
|
|
1928
|
+
const policyKey = JSON.stringify(policy);
|
|
1929
|
+
ollamaReplay = { events, activeInputSeqs: [...activeOllamaInputSeqs], policy, stillOwner: () => {
|
|
1930
|
+
const cluster = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
1931
|
+
const current = resolveProviderAutoCompaction(wf.config.autoCompaction, cluster ? clusterStore.getAutoCompaction(cluster) : undefined, 'ollama', '', false, savedOllamaPolicy);
|
|
1932
|
+
return workflows.get(workflowId) === wf && ownsBusy(wf, busyToken) && wf.primary.provider === 'ollama' && JSON.stringify(current) === policyKey;
|
|
1933
|
+
} };
|
|
1934
|
+
replayEvents = projectOllamaHistory(events, workflowId, activeOllamaInputSeqs).events;
|
|
1935
|
+
}
|
|
1936
|
+
const rendered = (wf.config.voiceOperator ? renderComputerHistory(replayEvents) : renderTranscript(replayEvents, { preserveThinking: !chatMode })).trim();
|
|
1937
|
+
if (rendered)
|
|
1938
|
+
primaryAppendSystemPrompt = rendered;
|
|
1939
|
+
}
|
|
1940
|
+
catch (err) {
|
|
1941
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] ollama transcript build failed:`, err);
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
else if (wf.primary.provider === 'llamacpp' || wf.primary.provider === 'lmstudio' || (wf.primary.provider === 'strata' || wf.primary.provider === 'deepseek') || (chatMode && wf.primary.provider === 'cursor')) {
|
|
1945
|
+
// M13 — LM Studio reuses llama.cpp's transcript-rebuild path verbatim:
|
|
1946
|
+
// both are OpenAI-compat local runtimes with no native session, so the
|
|
1947
|
+
// deterministic prior-turn summary + reasoning-clean rendered
|
|
1948
|
+
// transcript apply identically. (LM Studio is remote, but the
|
|
1949
|
+
// context-loss-across-turns problem is the same.)
|
|
1950
|
+
primarySystemPrompt = chatMode ? chatSystemPrompt(chatWeb) : LLAMACPP_PRIMARY_SYSTEM_PROMPT;
|
|
1951
|
+
// llama.cpp: same prefix-cache benefits as ollama but with an
|
|
1952
|
+
// additional structured prior-turn summary prepended. Local thinking
|
|
1953
|
+
// models lose track across turns because renderTranscript drops all
|
|
1954
|
+
// tool history (only USER:/AGENT: text survives) — the model on
|
|
1955
|
+
// turn N has no idea which files it read or wrote on turn N-1.
|
|
1956
|
+
// summarizePriorTurns walks events.jsonl and produces a deterministic
|
|
1957
|
+
// per-turn breakdown (tools used, files touched, bash run, final
|
|
1958
|
+
// reply text). It's stuffed into a faux AGENT block at the head of
|
|
1959
|
+
// the transcript so the parser routes it into one assistant message.
|
|
1960
|
+
//
|
|
1961
|
+
// We deliberately do NOT preserveThinking here: re-feeding Qwen3.6
|
|
1962
|
+
// its own reasoning across turns has the opposite of the ollama
|
|
1963
|
+
// benefit because llama-server already exposes reasoning_content
|
|
1964
|
+
// separately and the extra <think> blocks just inflate the prompt
|
|
1965
|
+
// and trigger more verbose monologue on the next turn.
|
|
1966
|
+
try {
|
|
1967
|
+
const events = priorIncognitoEvents ?? (wf.config.voiceOperator
|
|
1968
|
+
? await computerReplayEvents(cwd, workflowId, wf.config.computerContext?.lastResetAt, wf.config.computerContext?.lastResetSeq)
|
|
1969
|
+
: await replayWorkflowEvents(cwd, workflowId, 0));
|
|
1970
|
+
const summary = chatMode ? '' : summarizePriorTurns(events);
|
|
1971
|
+
const rendered = (wf.config.voiceOperator ? renderComputerHistory(events) : renderTranscript(events, { preserveThinking: false })).trim();
|
|
1972
|
+
const parts = [];
|
|
1973
|
+
if (summary) {
|
|
1974
|
+
parts.push(`USER: [Workflow context]`);
|
|
1975
|
+
parts.push(`AGENT: ${summary}`);
|
|
1976
|
+
}
|
|
1977
|
+
if (rendered)
|
|
1978
|
+
parts.push(rendered);
|
|
1979
|
+
const combined = parts.join('\n\n').trim();
|
|
1980
|
+
if (combined)
|
|
1981
|
+
primaryAppendSystemPrompt = combined;
|
|
1982
|
+
}
|
|
1983
|
+
catch (err) {
|
|
1984
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] ${wf.primary.provider} transcript build failed:`, err);
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
else if (incognito
|
|
1988
|
+
&& ((wf.primary.provider === 'claude' && claudeTransport !== 'native')
|
|
1989
|
+
|| (wf.primary.provider === 'codex' && codexTransport !== 'appserver'))) {
|
|
1990
|
+
// Incognito CLI turns deliberately have no resumable provider session.
|
|
1991
|
+
// Replay the memory-only completed transcript into each one-shot call.
|
|
1992
|
+
const rendered = renderTranscript(priorIncognitoEvents ?? []).trim();
|
|
1993
|
+
if (rendered)
|
|
1994
|
+
primaryAppendSystemPrompt = `Conversation so far:\n\n${rendered}`;
|
|
1995
|
+
}
|
|
1996
|
+
// Local HTTP transports receive stable tool instructions through the
|
|
1997
|
+
// provider system-prompt field; Claude and Codex transports fold them
|
|
1998
|
+
// into their string-form prompt or native request blocks.
|
|
1999
|
+
const usesSystemPromptForSkills = wf.primary.provider === 'ollama' || wf.primary.provider === 'llamacpp' || wf.primary.provider === 'lmstudio' || (wf.primary.provider === 'strata' || wf.primary.provider === 'deepseek');
|
|
2000
|
+
const primarySkillsContext = [pinnedSkillsBlock, primarySkillsManifest].filter(Boolean).join('\n\n');
|
|
2001
|
+
let finalSystemPrompt = usesSystemPromptForSkills && primarySkillsContext
|
|
2002
|
+
? (primarySystemPrompt ? `${primarySkillsContext}\n\n${primarySystemPrompt}` : primarySkillsContext)
|
|
2003
|
+
: primarySystemPrompt;
|
|
2004
|
+
const finalAppendBase = chatMode ? primaryAppendSystemPrompt : withPreviewNudge(primaryAppendSystemPrompt);
|
|
2005
|
+
const baseWithSkills = !usesSystemPromptForSkills && primarySkillsContext
|
|
2006
|
+
? `${primarySkillsContext}\n\n${finalAppendBase}`
|
|
2007
|
+
: finalAppendBase;
|
|
2008
|
+
// Phase 7a — fold discovered CLAUDE.md files into appendSystemPrompt
|
|
2009
|
+
// for Claude tabs (CLI + Native both benefit). Walks up from cwd
|
|
2010
|
+
// collecting CLAUDE.md, plus ~/.claude/CLAUDE.md.
|
|
2011
|
+
let finalAppend = baseWithSkills;
|
|
2012
|
+
// docs/VOICE.md - the Computer voice operator chat has its own
|
|
2013
|
+
// base instructions and real (arco-voice) tools; the generic Chat
|
|
2014
|
+
// preamble ("do not use backend tools… continue in an Agent tab") made
|
|
2015
|
+
// Luna refuse them (2026-10-17 smoke:voice-luna regression).
|
|
2016
|
+
if (chatMode && wf.config.voiceOperator === true) {
|
|
2017
|
+
if (usesSystemPromptForSkills)
|
|
2018
|
+
finalSystemPrompt = VOICE_OPERATOR_PROMPT;
|
|
2019
|
+
else if (wf.primary.provider !== 'codex')
|
|
2020
|
+
finalAppend = [VOICE_OPERATOR_PROMPT, finalAppend].filter(Boolean).join('\n\n');
|
|
2021
|
+
}
|
|
2022
|
+
if (chatMode && wf.config.voiceOperator !== true) {
|
|
2023
|
+
const chatPrompt = chatSystemPrompt(chatWeb);
|
|
2024
|
+
if (usesSystemPromptForSkills) {
|
|
2025
|
+
finalSystemPrompt = chatPrompt;
|
|
2026
|
+
}
|
|
2027
|
+
else {
|
|
2028
|
+
finalAppend = finalAppend ? `${chatPrompt}\n\n${finalAppend}` : chatPrompt;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
if (projectContextEnabled && (wf.primary.provider === 'claude') && cwd) {
|
|
2032
|
+
try {
|
|
2033
|
+
const claudeMd = await discoverClaudeMdFiles(cwd, { includeProject });
|
|
2034
|
+
if (claudeMd) {
|
|
2035
|
+
finalAppend = baseWithSkills
|
|
2036
|
+
? `${claudeMd}\n\n${baseWithSkills}`
|
|
2037
|
+
: claudeMd;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
catch (err) {
|
|
2041
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] CLAUDE.md discovery failed:`, err);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
// docs/ARCHITECTURE.md - fold the operator-curated knowledge
|
|
2045
|
+
// base into appendSystemPrompt as a BOUNDED block. Provider-agnostic
|
|
2046
|
+
// (every primary provider that consumes appendSystemPrompt benefits),
|
|
2047
|
+
// and only the always-include articles are injected. buildKnowledgeBlock
|
|
2048
|
+
// hard-caps the combined body at KNOWLEDGE_INJECT_BUDGET and appends an
|
|
2049
|
+
// explicit truncation notice when the set overflows — the KB can NEVER
|
|
2050
|
+
// silently bloat the turn. Emitted byte counts land in events.jsonl
|
|
2051
|
+
// (system_notice) for the four-question test's context visibility. FENCE:
|
|
2052
|
+
// this READS operator-curated articles; nothing here writes the KB.
|
|
2053
|
+
if (projectContextEnabled && cwd) {
|
|
2054
|
+
try {
|
|
2055
|
+
const kb = await buildKnowledgeBlock(cwd);
|
|
2056
|
+
if (kb.text) {
|
|
2057
|
+
finalAppend = finalAppend ? `${kb.text}\n\n${finalAppend}` : kb.text;
|
|
2058
|
+
if (firstIteration) {
|
|
2059
|
+
const truncNote = kb.truncated ? ` (truncated — exceeds injection budget)` : '';
|
|
2060
|
+
send(ws, {
|
|
2061
|
+
type: 'system_notice',
|
|
2062
|
+
workflowId,
|
|
2063
|
+
content: `Knowledge base: ${kb.included}/${kb.total} always-include article${kb.total === 1 ? '' : 's'} folded into context (${kb.bytes} bytes)${truncNote}.`,
|
|
2064
|
+
});
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
catch (err) {
|
|
2069
|
+
console.warn(`[arco] [${workflowId.slice(0, 8)}] knowledge-base injection failed:`, err);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
// Operator-initiated plan-mode entry. Resolved per turn from the
|
|
2073
|
+
// pending flag the `enter_plan_mode_request` handler set. Only Claude
|
|
2074
|
+
// Native honours arming; on any other resolved transport the flag is
|
|
2075
|
+
// silently cleared so a stale arm doesn't survive a provider switch.
|
|
2076
|
+
// docs/PROVIDERS.md - per-turn text for Claude Native
|
|
2077
|
+
// rides WorkerConfig.turnNotice (appended to the user message, kept
|
|
2078
|
+
// forever) instead of appendSystemPrompt, which the Native worker now
|
|
2079
|
+
// freezes; a firstIteration-gated fold there flipped the system prompt
|
|
2080
|
+
// between consecutive requests of an auto-continued turn.
|
|
2081
|
+
const nativeClaudeTurn = wf.primary.provider === 'claude' && claudeTransport === 'native';
|
|
2082
|
+
const turnNoticeParts = [];
|
|
2083
|
+
let armPlanMode = false;
|
|
2084
|
+
if (wf.pendingPlanModeEntry) {
|
|
2085
|
+
if (nativeClaudeTurn && firstIteration) {
|
|
2086
|
+
armPlanMode = true;
|
|
2087
|
+
turnNoticeParts.push('Operator has armed plan mode for this turn. Write/Edit tools are disabled until you call ExitPlanMode. Begin by calling EnterPlanMode with a plan body for what the operator just asked.');
|
|
2088
|
+
}
|
|
2089
|
+
wf.pendingPlanModeEntry = false;
|
|
2090
|
+
}
|
|
2091
|
+
// docs/PROTOCOL_CLUSTER.md - fold the drained mailbox prologue
|
|
2092
|
+
// into the front of appendSystemPrompt so a CLI / Codex worker renders
|
|
2093
|
+
// it as system-level context before any operator-supplied
|
|
2094
|
+
// appendSystemPrompt content. Only first-iteration (drain ran above only
|
|
2095
|
+
// on firstIteration); follow-up drains skip. Native takes it as a
|
|
2096
|
+
// turnNotice instead (see above).
|
|
2097
|
+
if (peerMessagesPrologue) {
|
|
2098
|
+
if (nativeClaudeTurn)
|
|
2099
|
+
turnNoticeParts.push(peerMessagesPrologue);
|
|
2100
|
+
else
|
|
2101
|
+
finalAppend = finalAppend ? `${peerMessagesPrologue}\n\n${finalAppend}` : peerMessagesPrologue;
|
|
2102
|
+
}
|
|
2103
|
+
// docs/PROTOCOL_CLUSTER.md - resolve the workflow's clusterId
|
|
2104
|
+
// (if any) at turn start. Threaded into the worker's WorkerConfig so
|
|
2105
|
+
// peer tools register and dispatch only when the membership is live.
|
|
2106
|
+
// Per plan §6.2 reversibility: once the cluster is deleted via REST,
|
|
2107
|
+
// the next turn's lookup returns undefined and the tools disappear
|
|
2108
|
+
// from the worker's tool list.
|
|
2109
|
+
const turnClusterId = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
2110
|
+
// Phase 2.6 — resolve the cluster's shared plan body + this member's
|
|
2111
|
+
// role hint at turn start. Both ride into WorkerConfig so the Native
|
|
2112
|
+
// worker's buildSystemBlocks() can inject them as forced system blocks
|
|
2113
|
+
// (after FORCED_FIRST_BLOCK, before operator prompts). Editing the
|
|
2114
|
+
// plan mid-turn never tears the running turn down — only the NEXT
|
|
2115
|
+
// turn's resolution picks up the new body.
|
|
2116
|
+
let turnClusterPlan;
|
|
2117
|
+
let turnClusterRole;
|
|
2118
|
+
// per-cluster efficiency doctrine + level. The doctrine
|
|
2119
|
+
// (canned restraint text for the level + optional operator addendum)
|
|
2120
|
+
// injects alongside plan/role; the level itself also drives the
|
|
2121
|
+
// peer-mailbox notice variant below. Resolved at turn start so an
|
|
2122
|
+
// operator level-change lands on the NEXT turn (in-flight turns are
|
|
2123
|
+
// untouched). Legacy omitted styles remain Thorough; guards resolve
|
|
2124
|
+
// independently and are included even for mailbox-only members.
|
|
2125
|
+
let turnClusterEfficiencyDoctrine = turnClusterId ? buildMessageGuardPolicy(clusterStore.getMessageGuard(turnClusterId)) : undefined;
|
|
2126
|
+
let turnClusterEfficiencyLevel = 'thorough';
|
|
2127
|
+
let turnClusterTaskBoardAttached = false;
|
|
2128
|
+
// per-cluster progress-tracking doctrine. Built from the
|
|
2129
|
+
// cluster's mode (plan/board/both, default both) gated on whether a plan
|
|
2130
|
+
// body and/or a task board actually exist for this turn. Injected
|
|
2131
|
+
// alongside the efficiency doctrine. Resolved at turn start so an operator
|
|
2132
|
+
// mode-change lands on the NEXT turn (in-flight turns untouched). Undefined
|
|
2133
|
+
// when there is nothing to keep current (e.g. mode 'plan' but no plan).
|
|
2134
|
+
let turnClusterProgressDoctrine;
|
|
2135
|
+
if (turnClusterId && clusterAccessMode === 'standard') {
|
|
2136
|
+
const planRec = await clusterPlanBridge.readClusterPlan(turnClusterId).catch(() => null);
|
|
2137
|
+
turnClusterPlan = planRec?.body;
|
|
2138
|
+
// Plan reference docs ride as one trailing heading line — a heading so
|
|
2139
|
+
// the outline fallback (clusterPlanOutline keeps every heading) can't
|
|
2140
|
+
// drop it, and slugs only so it stays small. Members read a ref with
|
|
2141
|
+
// plan_ref_read or plain file tools.
|
|
2142
|
+
const refsCwd = wf.config.workingDirectory;
|
|
2143
|
+
if (planRec && turnClusterPlan && refsCwd) {
|
|
2144
|
+
const refs = await listPlanRefs(refsCwd, planRec.planId).catch(() => []);
|
|
2145
|
+
if (refs.length > 0) {
|
|
2146
|
+
turnClusterPlan = `${turnClusterPlan.trimEnd()}\n\n#### Plan reference docs (planId ${planRec.planId}) — ${refsDoctrine(planRec.planId, refs.map((r) => r.slug), 24)}\n`;
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
turnClusterRole = clusterStore.getMemberRole(turnClusterId, workflowId);
|
|
2150
|
+
turnClusterTaskBoardAttached = clusterStore.isTaskBoardAttached(turnClusterId);
|
|
2151
|
+
turnClusterEfficiencyLevel = clusterStore.getEfficiencyLevel(turnClusterId);
|
|
2152
|
+
turnClusterEfficiencyDoctrine = clusterEfficiency.buildDoctrine(turnClusterEfficiencyLevel, clusterStore.getEfficiencyAddendum(turnClusterId), turnClusterRole, clusterStore.getMessageGuard(turnClusterId));
|
|
2153
|
+
turnClusterProgressDoctrine = joinClusterDoctrines(buildClusterDirectorDoctrine(turnClusterRole), buildProgressDoctrine(clusterStore.getProgressTracking(turnClusterId), !!turnClusterPlan && turnClusterPlan.trim().length > 0, turnClusterTaskBoardAttached));
|
|
2154
|
+
}
|
|
2155
|
+
if (turnClusterId && (wf.primary.provider === 'ollama' || wf.primary.provider === 'llamacpp')) {
|
|
2156
|
+
if (clusterAccessMode === 'standard') {
|
|
2157
|
+
finalSystemPrompt = buildLocalClusterSystemPrompt({
|
|
2158
|
+
base: finalSystemPrompt,
|
|
2159
|
+
clusterPlan: turnClusterPlan,
|
|
2160
|
+
clusterRole: turnClusterRole,
|
|
2161
|
+
clusterEfficiencyDoctrine: turnClusterEfficiencyDoctrine,
|
|
2162
|
+
clusterProgressDoctrine: turnClusterProgressDoctrine,
|
|
2163
|
+
});
|
|
2164
|
+
}
|
|
2165
|
+
else {
|
|
2166
|
+
finalSystemPrompt = finalSystemPrompt
|
|
2167
|
+
? `${BLIND_CLUSTER_DOCTRINE}\n\n${turnClusterEfficiencyDoctrine}\n\n${finalSystemPrompt}`
|
|
2168
|
+
: `${BLIND_CLUSTER_DOCTRINE}\n\n${turnClusterEfficiencyDoctrine}`;
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
// docs/PROTOCOL_CLUSTER.md - non-Native cluster member
|
|
2172
|
+
// wiring. Native dispatches peer_* in-process via peerTools (clusterId
|
|
2173
|
+
// on WorkerConfig is sufficient, and buildSystemBlocks injects plan +
|
|
2174
|
+
// role as forced system blocks). CLI Claude / Codex `exec` / Codex
|
|
2175
|
+
// `appserver` all reach the model via a string-form prompt, so the
|
|
2176
|
+
// plan + role have to fold into `finalAppend` (which becomes
|
|
2177
|
+
// `--append-system-prompt` for Claude CLI and the byte-stable prefix
|
|
2178
|
+
// for both Codex transports). Order (peer prologue → plan → role)
|
|
2179
|
+
// matches Native's buildSystemBlocks ordering.
|
|
2180
|
+
//
|
|
2181
|
+
// For Claude CLI: also write the per-workflow mcp-config.json so the
|
|
2182
|
+
// claude CLI's `--mcp-config <path>` spawns the per-turn MCP stdio
|
|
2183
|
+
// child. For Codex: nothing to write — the codex provider builds
|
|
2184
|
+
// `-c mcp_servers.arco-cluster.*` TOML overrides at spawn time
|
|
2185
|
+
// from `WorkerConfig.clusterId` (Phase 4 §13 decision: Codex CLI has
|
|
2186
|
+
// no `--mcp-config <path>` flag, but `-c` overrides leave the
|
|
2187
|
+
// operator's `~/.codex/config.toml` untouched and avoid TOML merge).
|
|
2188
|
+
//
|
|
2189
|
+
// CLI transports retain the 16 KB cap: argv paths E2BIG above roughly
|
|
2190
|
+
// 128 KB and the tmpfile fallback handles arbitrary sizes, while the
|
|
2191
|
+
// explicit bound surfaces unreasonable growth early. Codex app-server
|
|
2192
|
+
// uses 48 KB because it rides JSON-RPC stdin and needs room for the
|
|
2193
|
+
// maximum 32 KB plan plus small blocks. The PLAN is the only block that
|
|
2194
|
+
// shrinks to fit
|
|
2195
|
+
// (composeClusterAppend) — the small blocks are load-bearing and
|
|
2196
|
+
// survive verbatim.
|
|
2197
|
+
let turnClusterMcpConfigPath;
|
|
2198
|
+
const needsStringFormCluster = turnClusterId !== undefined &&
|
|
2199
|
+
((wf.primary.provider === 'claude' && claudeTransport === 'cli') ||
|
|
2200
|
+
wf.primary.provider === 'codex' || wf.primary.provider === 'cursor');
|
|
2201
|
+
if (needsStringFormCluster) {
|
|
2202
|
+
// Small load-bearing blocks first — composeClusterAppend reserves
|
|
2203
|
+
// their bytes (plus whatever already folded into finalAppend, i.e.
|
|
2204
|
+
// the peer-mailbox notice) and truncates the PLAN to the remaining
|
|
2205
|
+
// budget. This prevents a large plan from evicting the notice, role
|
|
2206
|
+
// and code-mode guidance. See clusterStringFold.ts.
|
|
2207
|
+
const tailBlocks = [];
|
|
2208
|
+
if (clusterAccessMode !== 'standard') {
|
|
2209
|
+
tailBlocks.push(clusterAccessMode === 'isolated'
|
|
2210
|
+
? 'ISOLATED cluster member: the project and cluster coordination state are intentionally hidden. Use only peer_send and peer_read for cluster communication.'
|
|
2211
|
+
: BLIND_CLUSTER_DOCTRINE);
|
|
2212
|
+
}
|
|
2213
|
+
if (turnClusterRole && turnClusterRole.length > 0) {
|
|
2214
|
+
tailBlocks.push(`Your role in this cluster: ${turnClusterRole}`);
|
|
2215
|
+
}
|
|
2216
|
+
// docs/CODEX_GPT56_CLUSTER_INCOMPAT.md — code-mode models run
|
|
2217
|
+
// OpenAI's own multi-agent "code mode" harness, which renames the
|
|
2218
|
+
// arco-cluster MCP tools into the exec code cell's `tools`
|
|
2219
|
+
// namespace (`tools.mcp__arco_cluster__peer_send`) and gives the
|
|
2220
|
+
// harness's native send_message top billing. Without this addendum
|
|
2221
|
+
// a code-mode member cannot find the peer substrate. Detection is
|
|
2222
|
+
// catalog-driven (codex's own models_cache.json `tool_mode` /
|
|
2223
|
+
// `multi_agent_version` — the exact fields that gate the harness);
|
|
2224
|
+
// fail-open on unknown because the addendum is phrased
|
|
2225
|
+
// conditionally and reads as inapplicable to plain
|
|
2226
|
+
if (wf.primary.provider === 'codex'
|
|
2227
|
+
&& codexModelUsesCodeMode(wf.primary.model, providerAccount?.codexHome) !== false) {
|
|
2228
|
+
tailBlocks.push(codexCodeModeClusterAddendum());
|
|
2229
|
+
}
|
|
2230
|
+
if (turnClusterEfficiencyDoctrine && turnClusterEfficiencyDoctrine.length > 0) {
|
|
2231
|
+
tailBlocks.push(turnClusterEfficiencyDoctrine);
|
|
2232
|
+
}
|
|
2233
|
+
if (turnClusterProgressDoctrine && turnClusterProgressDoctrine.length > 0) {
|
|
2234
|
+
tailBlocks.push(turnClusterProgressDoctrine);
|
|
2235
|
+
}
|
|
2236
|
+
const planBlock = turnClusterPlan && turnClusterPlan.length > 0
|
|
2237
|
+
? `--- Shared cluster plan ---\n${turnClusterPlan}`
|
|
2238
|
+
: undefined;
|
|
2239
|
+
// Outline fallback: when the full plan overflows the budget, fold a
|
|
2240
|
+
// deterministic outline (headings + every checkbox line verbatim +
|
|
2241
|
+
// labelled standing-directive sections) instead of a head-slice — the
|
|
2242
|
+
// actionable skeleton survives whole and omitted prose is one
|
|
2243
|
+
// cluster_plan_read call away.
|
|
2244
|
+
const planFallback = turnClusterPlan && turnClusterPlan.length > 0
|
|
2245
|
+
? `--- Shared cluster plan (OUTLINE — prose omitted; call cluster_plan_read for the full plan) ---\n${planOutline(turnClusterPlan)}`
|
|
2246
|
+
: undefined;
|
|
2247
|
+
const clusterAppendCap = wf.primary.provider === 'codex' && codexTransport === 'appserver'
|
|
2248
|
+
? CODEX_APP_SERVER_CLUSTER_MAX
|
|
2249
|
+
: APPEND_CLUSTER_MAX;
|
|
2250
|
+
const { combined, planTruncatedFrom, usedFallback } = composeClusterAppend(planBlock, tailBlocks, finalAppend?.length ?? 0, clusterAppendCap, planFallback);
|
|
2251
|
+
if (planTruncatedFrom !== undefined) {
|
|
2252
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] cluster plan over string-form fold budget ` +
|
|
2253
|
+
`(${planTruncatedFrom} bytes → ${usedFallback ? 'outline fallback' : 'head-truncated'}; ` +
|
|
2254
|
+
`${clusterAppendCap} total cap; notice/role/addendum/doctrines preserved)`);
|
|
2255
|
+
}
|
|
2256
|
+
if (combined) {
|
|
2257
|
+
finalAppend = finalAppend ? `${combined}\n\n${finalAppend}` : combined;
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
const genesisSeed = wf.config.genesisSeed;
|
|
2261
|
+
// Separator-agnostic scratch-dir check (POSIX primary; tolerate Windows).
|
|
2262
|
+
const inGenesisScratch = !!genesisSeed && /[\\/]\.arco[\\/]genesis[\\/]/.test(cwd);
|
|
2263
|
+
// M3 Creative mode runs the same staged framing inside an EXISTING workflow
|
|
2264
|
+
// (real cwd) — gated on the operator-armed seed.creative flag instead of the
|
|
2265
|
+
// scratch-dir path. buildGenesisSystemBlock folds in seed.projectContext for
|
|
2266
|
+
// this case so the model stays anchored to what is really on disk.
|
|
2267
|
+
const inGenesisCreative = !!genesisSeed && genesisSeed.creative === true;
|
|
2268
|
+
if ((inGenesisScratch || inGenesisCreative) && genesisSeed) {
|
|
2269
|
+
if (wf.primary.provider === 'ollama' || wf.primary.provider === 'llamacpp' || wf.primary.provider === 'lmstudio' || (wf.primary.provider === 'strata' || wf.primary.provider === 'deepseek')) {
|
|
2270
|
+
finalSystemPrompt = buildGenesisSystemBlock(genesisSeed, { base: finalSystemPrompt });
|
|
2271
|
+
}
|
|
2272
|
+
else {
|
|
2273
|
+
const genesisBlock = buildGenesisSystemBlock(genesisSeed);
|
|
2274
|
+
finalAppend = finalAppend ? `${genesisBlock}\n\n${finalAppend}` : genesisBlock;
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
if (genesisSeed?.github?.create && genesisSeed.github.visibility === 'public') {
|
|
2278
|
+
if (wf.primary.provider === 'ollama' || wf.primary.provider === 'llamacpp' || wf.primary.provider === 'lmstudio' || (wf.primary.provider === 'strata' || wf.primary.provider === 'deepseek')) {
|
|
2279
|
+
finalSystemPrompt = finalSystemPrompt
|
|
2280
|
+
? `${PUBLIC_REPO_SAFETY_SYSTEM_BLOCK}\n\n${finalSystemPrompt}`
|
|
2281
|
+
: PUBLIC_REPO_SAFETY_SYSTEM_BLOCK;
|
|
2282
|
+
}
|
|
2283
|
+
else {
|
|
2284
|
+
finalAppend = finalAppend
|
|
2285
|
+
? `${PUBLIC_REPO_SAFETY_SYSTEM_BLOCK}\n\n${finalAppend}`
|
|
2286
|
+
: PUBLIC_REPO_SAFETY_SYSTEM_BLOCK;
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
// docs/GOTCHAS.md - the north-star is NOT folded here. Native
|
|
2290
|
+
// injects it as its own cached system block (buildSystemBlocks reads
|
|
2291
|
+
// config.goal); every other transport folds goalBlock(config.goal) inside
|
|
2292
|
+
// its own provider (mirroring outputStyleAddendum). Doing it per-provider
|
|
2293
|
+
// rather than into finalAppend here is load-bearing: reviewers spawn via
|
|
2294
|
+
// manager.spawn and handoff seeds via runPrimaryTurn — both bypass this
|
|
2295
|
+
// operator-turn assembly but still carry config.goal, so the provider fold
|
|
2296
|
+
// is the one place that covers operator turns AND primitive seeds without
|
|
2297
|
+
// double-injecting.
|
|
2298
|
+
// docs/ARCHITECTURE.md - resolve the operator-enabled-and-allowed
|
|
2299
|
+
// registry MCP servers for this workflow from the global registry + the
|
|
2300
|
+
// workflow's per-tab allowlist (meta.mcpAllow). Produces BOTH the merged
|
|
2301
|
+
// server entries (for the mcp-config write / Codex `-c` overrides) AND
|
|
2302
|
+
// the dangerous-and-unticked `--disallowedTools` set for CLI Claude.
|
|
2303
|
+
// This is the ONLY model-exposed expansion besides cluster /
|
|
2304
|
+
// codebase-memory — no hidden, model-selected servers.
|
|
2305
|
+
let turnRegistryServers = [];
|
|
2306
|
+
let turnMcpDisallowedTools = [];
|
|
2307
|
+
if (projectContextEnabled)
|
|
2308
|
+
try {
|
|
2309
|
+
const metaForMcp = await readMeta(cwd, workflowId);
|
|
2310
|
+
const wiring = await resolveRegistryWiring(metaForMcp?.mcpAllow ?? []);
|
|
2311
|
+
turnRegistryServers = wiring.registryServers;
|
|
2312
|
+
turnMcpDisallowedTools = wiring.disallowedTools;
|
|
2313
|
+
}
|
|
2314
|
+
catch (err) {
|
|
2315
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] mcp registry resolve failed:`, err);
|
|
2316
|
+
}
|
|
2317
|
+
// docs/PROVIDERS.md - write `.arco/<wfid>/mcp-config.json`
|
|
2318
|
+
// for CLI Claude turns when cluster membership, the operator-attached
|
|
2319
|
+
// codebase-memory entry, OR §E1 registry servers apply. All coexist; the
|
|
2320
|
+
// writer merges deterministically and unlinks when none apply. Codex
|
|
2321
|
+
// transports don't use --mcp-config — they layer the same registrations
|
|
2322
|
+
// on via `-c mcp_servers.*` TOML overrides built in the codex provider.
|
|
2323
|
+
if (projectContextEnabled && wf.primary.provider === 'claude' && claudeTransport === 'cli') {
|
|
2324
|
+
const cbm = wf.config.codebaseMemory;
|
|
2325
|
+
const wantsCodebaseMemory = projectContextEnabled && cbm?.attached === true;
|
|
2326
|
+
// The workflow-scoped `arco` plan entry applies to EVERY workflow, so
|
|
2327
|
+
// the config is now written unconditionally (cwd is the only
|
|
2328
|
+
// precondition) rather than only when a cluster / codebase-memory /
|
|
2329
|
+
// registry entry applies.
|
|
2330
|
+
{
|
|
2331
|
+
try {
|
|
2332
|
+
turnClusterMcpConfigPath = await mcpConfigWriter.writeFor(cwd, workflowId, {
|
|
2333
|
+
planToolsCwd: cwd,
|
|
2334
|
+
clusterId: turnClusterId,
|
|
2335
|
+
taskBoardAttached: turnClusterTaskBoardAttached,
|
|
2336
|
+
accessMode: clusterAccessMode,
|
|
2337
|
+
port: PORT,
|
|
2338
|
+
codebaseMemoryIndexPath: wantsCodebaseMemory
|
|
2339
|
+
? (cbm?.indexPath || cwd)
|
|
2340
|
+
: undefined,
|
|
2341
|
+
registryServers: turnRegistryServers,
|
|
2342
|
+
});
|
|
2343
|
+
}
|
|
2344
|
+
catch (err) {
|
|
2345
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] mcp-config write failed:`, err);
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
// Workbench Expansion A2 — shadow-git checkpoint. Snapshot the working
|
|
2350
|
+
// tree BEFORE the turn that may mutate files so the operator can
|
|
2351
|
+
// undo-the-agent independent of their real git history. Skipped when
|
|
2352
|
+
// plan mode is armed (the turn is read-only until ExitPlanMode, so
|
|
2353
|
+
// there's nothing to checkpoint). Wait at most two seconds; a slow or
|
|
2354
|
+
// failed capture is omitted and the turn proceeds without a summary.
|
|
2355
|
+
//
|
|
2356
|
+
// Hooked HERE rather than in seedWorker.ts (the plan's guess): runtime
|
|
2357
|
+
// verification showed runPrimaryTurn is shared by reviewers, handoff
|
|
2358
|
+
// seeds, exportContext, and Task children — none of which should snapshot
|
|
2359
|
+
// the operator's tree. The operator-turn loop in turnEngine.handleUserMessage
|
|
2360
|
+
// is the only dispatch path that runs an operator-driven, file-mutating
|
|
2361
|
+
// turn, so the checkpoint belongs at this call site. The ref suffix uses
|
|
2362
|
+
// the workflow's current event seq (the turn it guards); the
|
|
2363
|
+
// checkpoint_created broadcast is itself stamped a fresh events.jsonl seq.
|
|
2364
|
+
// Upload-time image downscaling runs in the background; a send right
|
|
2365
|
+
// after a paste can beat it. Wait (bounded) here so the sync providers
|
|
2366
|
+
// (Claude CLI / Native, Codex exec) read the model copy too — they call
|
|
2367
|
+
// the sync modelImagePath() and can't wait themselves.
|
|
2368
|
+
if (promptAttachments && promptAttachments.length > 0)
|
|
2369
|
+
await awaitModelImages(promptAttachments);
|
|
2370
|
+
// STOP landed during the pre-spawn awaits above (killAll had nothing to
|
|
2371
|
+
// kill yet). Spawning now would run a turn nobody owns.
|
|
2372
|
+
if (!ownsBusy(wf, busyToken))
|
|
2373
|
+
break;
|
|
2374
|
+
if (wf.queue.steering.some((q) => q.interrupt)) {
|
|
2375
|
+
firstIteration = false;
|
|
2376
|
+
loadQueuedPrompt(primaryTurn.holdSteer);
|
|
2377
|
+
continue;
|
|
2378
|
+
}
|
|
2379
|
+
let checkpoint = null;
|
|
2380
|
+
let checkpointGuardSeq;
|
|
2381
|
+
if (!(firstIteration && primitive === 'plan-review') && shouldCaptureTurn({ chatMode, planMode: armPlanMode, isolated: isolatedMember, provider: wf.primary.provider, tools: wf.primary.tools })) {
|
|
2382
|
+
checkpointGuardSeq = currentWorkflowSeq(cwd, workflowId);
|
|
2383
|
+
activeTurnObservation = observeCheckoutWriters(workflowWritePaths(wf), wf.manager);
|
|
2384
|
+
checkpoint = await timelyCheckpoint((deps.captureCheckpoint ?? createCheckpoint)({ cwd, workflowId, seq: checkpointGuardSeq }));
|
|
2385
|
+
if (!checkpoint || !ownsBusy(wf, busyToken)) {
|
|
2386
|
+
activeTurnObservation.stop();
|
|
2387
|
+
activeTurnObservation = undefined;
|
|
2388
|
+
checkpoint = null;
|
|
2389
|
+
}
|
|
2390
|
+
}
|
|
2391
|
+
// STOP or an interrupt during capture must never launch the stale prompt.
|
|
2392
|
+
if (!ownsBusy(wf, busyToken))
|
|
2393
|
+
break;
|
|
2394
|
+
if (wf.queue.steering.some((q) => q.interrupt)) {
|
|
2395
|
+
activeTurnObservation?.stop();
|
|
2396
|
+
activeTurnObservation = undefined;
|
|
2397
|
+
firstIteration = false;
|
|
2398
|
+
loadQueuedPrompt(primaryTurn.holdSteer);
|
|
2399
|
+
continue;
|
|
2400
|
+
}
|
|
2401
|
+
if (checkpoint && checkpointGuardSeq !== undefined) {
|
|
2402
|
+
broadcastWorkflow(workflowId, {
|
|
2403
|
+
type: 'checkpoint_created', workflowId, seq: checkpointGuardSeq,
|
|
2404
|
+
ref: checkpoint.ref, label: checkpoint.label, ts: checkpoint.ts, fileCount: checkpoint.fileCount,
|
|
2405
|
+
...(checkpoint.skippedLargeFiles ? { skippedLargeFiles: checkpoint.skippedLargeFiles } : {}),
|
|
2406
|
+
});
|
|
2407
|
+
}
|
|
2408
|
+
const policyTurnProvider = wf.primary.provider;
|
|
2409
|
+
const ollamaExecutionId = trackOllama ? randomUUID() : undefined;
|
|
2410
|
+
const executionInputSeqs = [...activeOllamaInputSeqs];
|
|
2411
|
+
const turn = runPrimaryTurn({
|
|
2412
|
+
workflowId,
|
|
2413
|
+
cwd,
|
|
2414
|
+
manager: wf.manager,
|
|
2415
|
+
broadcast: (msg) => send(ws, ollamaExecutionId ? stampOllamaExecution(msg, ollamaExecutionId, executionInputSeqs) : msg),
|
|
2416
|
+
bgTracker: chatMode ? undefined : wf.bgTracker,
|
|
2417
|
+
notePotentialDevServerStart: chatMode ? undefined : (cmd, toolUseId) => deps.previewAutoDetect.notePotentialDevServerStart(workflowId, cmd, toolUseId),
|
|
2418
|
+
noteAgentText: chatMode ? undefined : (text) => deps.previewAutoDetect.noteAgentText(workflowId, text),
|
|
2419
|
+
}, {
|
|
2420
|
+
primary: wf.primary,
|
|
2421
|
+
prompt: promptWithPlan,
|
|
2422
|
+
resumeSessionId: incognito ? undefined : wf.primarySessionId,
|
|
2423
|
+
attachments: promptAttachments,
|
|
2424
|
+
disableRssGuard: wf.disableRssGuard,
|
|
2425
|
+
appendSystemPrompt: finalAppend,
|
|
2426
|
+
systemPrompt: finalSystemPrompt,
|
|
2427
|
+
interactionMode: chatMode || (firstIteration && primitive === 'plan-review') ? 'chat' : 'agent',
|
|
2428
|
+
disableProviderHooks: firstIteration && primitive === 'plan-review',
|
|
2429
|
+
chatWebAccess: firstIteration && primitive === 'plan-review' ? false : chatWeb,
|
|
2430
|
+
voiceOperator: chatMode && wf.config.voiceOperator === true,
|
|
2431
|
+
incognito,
|
|
2432
|
+
drainSteer: () => drainSteerForWorker(workflowId, ws),
|
|
2433
|
+
requeueSteer: (items, bucket) => requeueSteerForWorker(workflowId, ws, items, bucket),
|
|
2434
|
+
onSteerDelivered: (items) => {
|
|
2435
|
+
const clientMessageIds = items.flatMap((item) => item.clientMessageId ? [item.clientMessageId] : []);
|
|
2436
|
+
if (clientMessageIds.length)
|
|
2437
|
+
broadcastTransient(workflowId, { type: 'turn_messages_delivered', workflowId, clientMessageIds });
|
|
2438
|
+
},
|
|
2439
|
+
codexTransport,
|
|
2440
|
+
codexContextPolicy: wf.config.codexContextPolicy,
|
|
2441
|
+
providerAccountRef: providerAccount?.profile.id,
|
|
2442
|
+
codexHome: providerAccount?.codexHome,
|
|
2443
|
+
claudeTransport,
|
|
2444
|
+
ultracode,
|
|
2445
|
+
claudeNativeCompact,
|
|
2446
|
+
claudeNativeForceInterleavedThinkingBeta,
|
|
2447
|
+
claudeNativeThinkingDisplay,
|
|
2448
|
+
claudeNativePlanModeArmed: armPlanMode,
|
|
2449
|
+
turnNotice: turnNoticeParts.length > 0 ? turnNoticeParts.join('\n\n') : undefined,
|
|
2450
|
+
efficiencyToolFilter,
|
|
2451
|
+
efficiencyFactForce,
|
|
2452
|
+
efficiencyConfigProtection,
|
|
2453
|
+
efficiencySandbox,
|
|
2454
|
+
reviewSafeMode,
|
|
2455
|
+
outputStyle: firstIteration && primitive === 'plan-review' ? 'normal' : outputStyle,
|
|
2456
|
+
goal,
|
|
2457
|
+
// §4.1 — session-local posture filter (runtime-only WorkflowState
|
|
2458
|
+
// field). Operator-turn only; primitives (reviewers / handoff seeds /
|
|
2459
|
+
// Task children) leave it unset ⇒ full, like outputStyle's 'normal'.
|
|
2460
|
+
toolPosture: wf.toolPosture,
|
|
2461
|
+
clusterId: turnClusterId,
|
|
2462
|
+
clusterAccessMode,
|
|
2463
|
+
executionCwd: isolatedMember && turnClusterId
|
|
2464
|
+
? clusterStore.isolatedWorkspaceFor(turnClusterId, workflowId)
|
|
2465
|
+
: undefined,
|
|
2466
|
+
persistenceCwd: isolatedMember ? cwd : undefined,
|
|
2467
|
+
clusterTaskBoardAttached: turnClusterTaskBoardAttached,
|
|
2468
|
+
clusterPlan: turnClusterPlan,
|
|
2469
|
+
clusterRole: turnClusterRole,
|
|
2470
|
+
clusterEfficiencyDoctrine: turnClusterEfficiencyDoctrine,
|
|
2471
|
+
clusterProgressDoctrine: turnClusterProgressDoctrine,
|
|
2472
|
+
clusterMcpConfigPath: turnClusterMcpConfigPath,
|
|
2473
|
+
codebaseMemoryAttached: projectContextEnabled && wf.config.codebaseMemory?.attached === true,
|
|
2474
|
+
codebaseMemoryIndexPath: projectContextEnabled && wf.config.codebaseMemory?.attached === true
|
|
2475
|
+
? (wf.config.codebaseMemory.indexPath || cwd)
|
|
2476
|
+
: undefined,
|
|
2477
|
+
// §E1 — registry servers feed Codex `-c` overrides; CLI Claude got
|
|
2478
|
+
// them via the mcp-config write above. mcpDisallowedTools feed CLI
|
|
2479
|
+
// Claude's --disallowedTools (dangerous-tool denylist enforcement).
|
|
2480
|
+
mcpRegistryServers: turnRegistryServers,
|
|
2481
|
+
mcpDisallowedTools: turnMcpDisallowedTools,
|
|
2482
|
+
ollamaParams,
|
|
2483
|
+
ollamaReplay,
|
|
2484
|
+
// Per-tab Claude Native web budget (Anthropic server-tool max_uses).
|
|
2485
|
+
// Native-only; the worker falls back to the server default when unset.
|
|
2486
|
+
webSearchMaxUses: wf.config.webSearchMaxUses,
|
|
2487
|
+
});
|
|
2488
|
+
activeTurnObservation?.setPrimaryWorker(turn.workerId);
|
|
2489
|
+
primaryTurn.workerId = turn.workerId;
|
|
2490
|
+
// Claude pre-mints its session id; pin it into meta.json immediately so a
|
|
2491
|
+
// crash between now and turn-completion still leaves meta pointing at the
|
|
2492
|
+
// right CLI session. Only relevant on the first iteration — later
|
|
2493
|
+
// flushes resume the already-pinned session. Native transport runs
|
|
2494
|
+
// in-process and never writes a CLI rollout, so seedWorker's pre-minted
|
|
2495
|
+
// UUID is meaningless here — recording it would phantom-pollute meta and
|
|
2496
|
+
// break original-worker handoff (which would try `claude --resume <id>`
|
|
2497
|
+
// against a non-existent rollout).
|
|
2498
|
+
if (!incognito && firstIteration && !wf.primarySessionId && turn.initialSessionId
|
|
2499
|
+
&& wf.primary.provider === 'claude' && claudeTransport !== 'native') {
|
|
2500
|
+
wf.primarySessionId = turn.initialSessionId;
|
|
2501
|
+
reconcileLatestCliSession(cwd, workflowId, 'claude', turn.initialSessionId).catch((err) => {
|
|
2502
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] meta reconcile (claude mint) failed:`, err);
|
|
2503
|
+
});
|
|
2504
|
+
}
|
|
2505
|
+
// Codex emits thread_id at init. Capture on first fire, persist to meta.
|
|
2506
|
+
turn.onSessionDiscovered((sid) => {
|
|
2507
|
+
if (incognito)
|
|
2508
|
+
return;
|
|
2509
|
+
if (!wf.primarySessionId)
|
|
2510
|
+
wf.primarySessionId = sid;
|
|
2511
|
+
reconcileLatestCliSession(cwd, workflowId, wf.primary.provider, sid, providerAccount?.profile.id).catch((err) => {
|
|
2512
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] meta reconcile (${wf.primary.provider}) failed:`, err);
|
|
2513
|
+
});
|
|
2514
|
+
});
|
|
2515
|
+
// docs/PROVIDERS.md - surface the background fleet. Under ultracode the
|
|
2516
|
+
// CLI's WorkflowTool runs subagents whose transcripts never touch the
|
|
2517
|
+
// parent stream, so the Activity tab would look dead. Poll those files and
|
|
2518
|
+
// emit live `ultracode_fleet_progress` snapshots, scoped strictly to this
|
|
2519
|
+
// turn (started here, stopped in finally). Gated on a known session id —
|
|
2520
|
+
// the watcher needs it to locate `<sessionId>/subagents/workflows/`.
|
|
2521
|
+
let fleetWatcher = null;
|
|
2522
|
+
if (ultracode && wf.primarySessionId) {
|
|
2523
|
+
fleetWatcher = startUltracodeFleetWatcher({
|
|
2524
|
+
workflowId,
|
|
2525
|
+
cwd,
|
|
2526
|
+
sessionId: wf.primarySessionId,
|
|
2527
|
+
emit: (msg) => broadcastTransient(workflowId, msg),
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
policyReading = undefined;
|
|
2531
|
+
let outcome;
|
|
2532
|
+
let carryInterruptedPrompt = false;
|
|
2533
|
+
try {
|
|
2534
|
+
outcome = await turn.settled;
|
|
2535
|
+
// A second correction may cancel Native during auth/hooks, before
|
|
2536
|
+
// its first correction entered history. Carry that unsent input.
|
|
2537
|
+
carryInterruptedPrompt = await primaryTurn.interruption === false && primaryTurn.holdSteer;
|
|
2538
|
+
}
|
|
2539
|
+
catch (err) {
|
|
2540
|
+
if (!primaryTurn.interruption)
|
|
2541
|
+
throw err;
|
|
2542
|
+
preserveQueue = true;
|
|
2543
|
+
lastTurnErrored = true;
|
|
2544
|
+
broadcastWorkflow(workflowId, { type: 'system_notice', workflowId,
|
|
2545
|
+
content: `[INTERRUPT & SEND] Cancellation failed; queued messages were preserved without starting another turn. ${err instanceof Error ? err.message : String(err)}` });
|
|
2546
|
+
break;
|
|
2547
|
+
}
|
|
2548
|
+
finally {
|
|
2549
|
+
fleetWatcher?.stop();
|
|
2550
|
+
primaryTurn.workerId = undefined;
|
|
2551
|
+
primaryTurn.interruption = undefined;
|
|
2552
|
+
}
|
|
2553
|
+
if (checkpoint && checkpointGuardSeq !== undefined && activeTurnObservation && ownsBusy(wf, busyToken)) {
|
|
2554
|
+
// Hold this workflow's busy claim until the end snapshot is captured;
|
|
2555
|
+
// otherwise a queued follow-up could alter the tree before the range ends.
|
|
2556
|
+
const endSeq = currentWorkflowSeq(cwd, workflowId);
|
|
2557
|
+
if (endSeq > checkpointGuardSeq) {
|
|
2558
|
+
const end = await (deps.captureCheckpoint ?? createCheckpoint)({ cwd, workflowId, seq: endSeq });
|
|
2559
|
+
if (end && ownsBusy(wf, busyToken)) {
|
|
2560
|
+
const otherWriters = activeTurnObservation.hasOverlap();
|
|
2561
|
+
activeTurnObservation.stop();
|
|
2562
|
+
activeTurnObservation = undefined;
|
|
2563
|
+
const summary = await summarizeTurnChanges(cwd, checkpoint.ref, end.ref);
|
|
2564
|
+
if (summary && summary.fileCount > 0 && ownsBusy(wf, busyToken)) {
|
|
2565
|
+
broadcastWorkflow(workflowId, {
|
|
2566
|
+
type: 'turn_changes', workflowId, checkpointSeq: checkpointGuardSeq,
|
|
2567
|
+
fromRef: checkpoint.ref, toRef: end.ref, ...summary,
|
|
2568
|
+
otherWriters,
|
|
2569
|
+
...((checkpoint.skippedLargeFiles || end.skippedLargeFiles) ? { skippedLargeFiles: Math.max(checkpoint.skippedLargeFiles ?? 0, end.skippedLargeFiles ?? 0) } : {}),
|
|
2570
|
+
timestamp: Date.now(),
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
activeTurnObservation?.stop();
|
|
2577
|
+
activeTurnObservation = undefined;
|
|
2578
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] turn settled${outcome.error ? ' with error: ' + outcome.error : ''}`);
|
|
2579
|
+
lastTurnErrored = !!outcome.error;
|
|
2580
|
+
watchHadError ||= lastTurnErrored;
|
|
2581
|
+
if (firstIteration && opts?.backgroundEvent)
|
|
2582
|
+
opts.onBackgroundSettled?.(outcome.error ?? undefined);
|
|
2583
|
+
clearComputerBackgroundClaim(workflowId, busyToken);
|
|
2584
|
+
firstIteration = false;
|
|
2585
|
+
if (wf.config.voiceOperator && outcome.error?.startsWith(COMPUTER_TIMEOUT)) {
|
|
2586
|
+
// The transport may have executed earlier actions. Never replay this
|
|
2587
|
+
// request or drain dependent queued instructions after a timeout.
|
|
2588
|
+
const queued = wf.queue.steering.length + wf.queue.followUp.length;
|
|
2589
|
+
for (const item of [...wf.queue.steering, ...wf.queue.followUp])
|
|
2590
|
+
if (item.clientMessageId)
|
|
2591
|
+
broadcastWorkflow(workflowId, { type: 'queued_message_cancelled', workflowId, clientMessageId: item.clientMessageId });
|
|
2592
|
+
if (queued)
|
|
2593
|
+
broadcastWorkflow(workflowId, { type: 'system_notice', workflowId,
|
|
2594
|
+
content: `[COMPUTER] Cancelled ${queued} queued request(s) after the timeout; resubmit them when ready. Earlier actions may already have happened.` });
|
|
2595
|
+
if (incognito)
|
|
2596
|
+
wf.config.computerContext = { ...(wf.config.computerContext ?? { keepContext: false, resets: 0 }), pendingFresh: true, pendingFreshReason: 'recovery' };
|
|
2597
|
+
break;
|
|
2598
|
+
}
|
|
2599
|
+
if (wf.primary.provider === 'claude' && wf.primarySessionId && claudeTransport !== 'native') {
|
|
2600
|
+
const sid = wf.primarySessionId;
|
|
2601
|
+
estimateContextFill(cwd, sid, wf.primary.model, wf.calibration).then((est) => {
|
|
2602
|
+
if (!est)
|
|
2603
|
+
return;
|
|
2604
|
+
broadcastTransient(workflowId, {
|
|
2605
|
+
type: 'context_usage',
|
|
2606
|
+
workflowId,
|
|
2607
|
+
...est,
|
|
2608
|
+
claudeSessionId: sid,
|
|
2609
|
+
});
|
|
2610
|
+
// Keep the shared auto-handoff signal fresh (fire-and-forget, so it
|
|
2611
|
+
// may settle just after maybeAutoHandoff runs — warnAt/autoAt margin
|
|
2612
|
+
// absorbs the one-turn lag).
|
|
2613
|
+
wf.lastContextPercent = est.percentOfWindow;
|
|
2614
|
+
}).catch(() => { });
|
|
2615
|
+
}
|
|
2616
|
+
else if (wf.primary.provider === 'claude' && claudeTransport === 'native' && typeof outcome.lastPromptTokens === 'number') {
|
|
2617
|
+
// Native Claude has no session JSONL to read. The worker's settled
|
|
2618
|
+
// outcome carries the last round's prompt size — convert to a fresh
|
|
2619
|
+
// ground-truth context_usage and fan out via broadcastTransient
|
|
2620
|
+
// (consistent with the CLI path: primary_complete already persists
|
|
2621
|
+
// lastPromptTokens, so context_usage stays derived/transient).
|
|
2622
|
+
const est = wf.config.voiceOperator && outcome.modelContextWindow
|
|
2623
|
+
? promptContextEstimate(outcome.lastPromptTokens, outcome.modelContextWindow, Date.now())
|
|
2624
|
+
: nativeContextEstimate(wf.primary.model, outcome.lastPromptTokens, Date.now());
|
|
2625
|
+
if (est) {
|
|
2626
|
+
wf.lastContextPercent = est.percentOfWindow;
|
|
2627
|
+
broadcastTransient(workflowId, {
|
|
2628
|
+
type: 'context_usage',
|
|
2629
|
+
workflowId,
|
|
2630
|
+
...est,
|
|
2631
|
+
});
|
|
2632
|
+
}
|
|
2633
|
+
// §2.3 — emit the deterministic budget meter alongside the CTX bar's
|
|
2634
|
+
// context_usage. Uses the same ground-truth lastPromptTokens but against
|
|
2635
|
+
// the EFFECTIVE window (real window − reserved output budget) — the
|
|
2636
|
+
// usable-input-pressure signal the §2.1 auto-fold trigger reads. Window +
|
|
2637
|
+
// reserved come straight from the model's own params (KNOWN_CTX +
|
|
2638
|
+
// chooseMaxTokens), so this stays deterministic and LLM-free.
|
|
2639
|
+
const win = lookupCtx(wf.primary.model);
|
|
2640
|
+
if (typeof win === 'number' && win > 0) {
|
|
2641
|
+
const reserved = chooseMaxTokens(wf.primary.model, wf.primary.effort ?? 'high');
|
|
2642
|
+
const budget = computeContextBudget(outcome.lastPromptTokens, win, reserved);
|
|
2643
|
+
wf.lastContextBudgetPct = budget.pct;
|
|
2644
|
+
const thresholds = {
|
|
2645
|
+
warnAt: wf.autoHandoff.warnAt,
|
|
2646
|
+
autoAt: wf.autoHandoff.autoAt,
|
|
2647
|
+
...(typeof wf.autoFold?.foldAt === 'number' ? { foldAt: wf.autoFold.foldAt } : {}),
|
|
2648
|
+
};
|
|
2649
|
+
broadcastTransient(workflowId, {
|
|
2650
|
+
type: 'context_budget',
|
|
2651
|
+
workflowId,
|
|
2652
|
+
usedTokens: budget.usedTokens,
|
|
2653
|
+
windowSize: budget.windowSize,
|
|
2654
|
+
reservedOutput: budget.reservedOutput,
|
|
2655
|
+
effectiveWindow: budget.effectiveWindow,
|
|
2656
|
+
pct: budget.pct,
|
|
2657
|
+
thresholds,
|
|
2658
|
+
crossed: crossedThresholds(budget.pct, thresholds),
|
|
2659
|
+
});
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
else if (wf.primary.provider === 'ollama' && typeof outcome.lastPromptTokens === 'number') {
|
|
2663
|
+
// M6 — Ollama has no session JSONL. The worker's settled outcome carries
|
|
2664
|
+
// the LAST turn's prompt_eval_count (ground truth: the exact prompt the
|
|
2665
|
+
// daemon saw on its final call) plus the per-backend probed num_ctx the
|
|
2666
|
+
// request actually used (M3/M4: the window is per-host, so the
|
|
2667
|
+
// denominator must be the host that produced this answer, not a static
|
|
2668
|
+
// map). Build the same-shaped context_usage the CTX bar already renders
|
|
2669
|
+
// for every other provider; fall back to Ollama's 2048 default only when
|
|
2670
|
+
// nothing was probed. Transient (broadcastTransient): primary_complete
|
|
2671
|
+
// already persisted lastPromptTokens + modelContextWindow, so this stays
|
|
2672
|
+
// derived. M8 reads context_usage.percentOfWindow as its compaction gate.
|
|
2673
|
+
const est = ollamaContextUsage(outcome.lastPromptTokens, outcome.modelContextWindow, Date.now());
|
|
2674
|
+
if (est) {
|
|
2675
|
+
wf.lastContextPercent = est.percentOfWindow;
|
|
2676
|
+
broadcastTransient(workflowId, {
|
|
2677
|
+
type: 'context_usage',
|
|
2678
|
+
workflowId,
|
|
2679
|
+
...est,
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
else if ((wf.primary.provider === 'strata' || wf.primary.provider === 'deepseek') && typeof outcome.lastPromptTokens === 'number' && outcome.modelContextWindow) {
|
|
2684
|
+
// Use Strata's discovered window and the final call's actual prompt;
|
|
2685
|
+
// never count summed tool-loop input as context occupancy.
|
|
2686
|
+
const est = promptContextEstimate(outcome.lastPromptTokens, outcome.modelContextWindow, Date.now());
|
|
2687
|
+
if (est) {
|
|
2688
|
+
wf.lastContextPercent = est.percentOfWindow;
|
|
2689
|
+
broadcastTransient(workflowId, { type: 'context_usage', workflowId, ...est });
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
else if (incognito && wf.config.voiceOperator && wf.primary.provider === 'codex'
|
|
2693
|
+
&& typeof outcome.lastPromptTokens === 'number' && outcome.modelContextWindow) {
|
|
2694
|
+
const est = promptContextEstimate(outcome.lastPromptTokens, outcome.modelContextWindow, Date.now());
|
|
2695
|
+
if (est) {
|
|
2696
|
+
wf.lastContextPercent = est.percentOfWindow;
|
|
2697
|
+
broadcastTransient(workflowId, { type: 'context_usage', workflowId, ...est });
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
// This policy uses only this settled turn's own measurement, never the
|
|
2701
|
+
// rollout fallback or a previous turn's display snapshot.
|
|
2702
|
+
if (wf.primary.provider === policyTurnProvider) {
|
|
2703
|
+
const percent = freshAutoCompactionPercent(policyTurnProvider, policyTurnProvider === 'claude' ? claudeTransport : codexTransport, outcome);
|
|
2704
|
+
if (percent !== undefined)
|
|
2705
|
+
policyReading = { percent, sessionId: wf.primarySessionId, provider: policyTurnProvider, transport: policyTurnProvider === 'claude' ? claudeTransport : codexTransport };
|
|
2706
|
+
}
|
|
2707
|
+
// Codex app-server equivalent — provider turn usage can be the SUM across all
|
|
2708
|
+
// internal LLM calls within this operator turn. That's right for billing
|
|
2709
|
+
// but wrong for context-window-fill display; the live context is the LAST
|
|
2710
|
+
// call's prompt. Await this best-effort rollout read before threshold
|
|
2711
|
+
// checks so auto-handoff never fires from the previous turn's percentage.
|
|
2712
|
+
if ((wf.primary.provider === 'codex') && wf.primarySessionId) {
|
|
2713
|
+
await refreshCodexTokenSnapshot(workflowId, wf, providerAccount?.codexHome);
|
|
2714
|
+
}
|
|
2715
|
+
// Drain the whole queue at once as a single merged follow-up turn.
|
|
2716
|
+
// Operators typically stack queued messages as a cumulative thought
|
|
2717
|
+
// ("oh and also…", "I forgot to mention…") and want one integrated
|
|
2718
|
+
// reply, not N sequential turns each answering a partial thought.
|
|
2719
|
+
// Messages join with `\n\n` (blank line between, reads as paragraphs
|
|
2720
|
+
// of one prompt), attachments concat across all drained items.
|
|
2721
|
+
// `cancel` clears the queue, so STOP during the merge drops the
|
|
2722
|
+
// whole batch before it fires.
|
|
2723
|
+
//
|
|
2724
|
+
// Phase 4 — order is steering first, then follow-up. Steer is "do this
|
|
2725
|
+
// now / change direction"; follow-up is "after the current task lands."
|
|
2726
|
+
// Interrupt entries get their own next turn; remaining steers and
|
|
2727
|
+
// follow-ups stay queued until that correction has completed.
|
|
2728
|
+
// Cancelled (and possibly superseded by a resend) while settling: the
|
|
2729
|
+
// queue belongs to whoever holds busy now — don't drain it.
|
|
2730
|
+
if (!ownsBusy(wf, busyToken))
|
|
2731
|
+
break;
|
|
2732
|
+
if (wf.queue.steering.length === 0 && wf.queue.followUp.length === 0)
|
|
2733
|
+
break;
|
|
2734
|
+
loadQueuedPrompt(carryInterruptedPrompt);
|
|
2735
|
+
}
|
|
2736
|
+
watchLoopFinished = true;
|
|
2737
|
+
}
|
|
2738
|
+
finally {
|
|
2739
|
+
activeTurnObservation?.stop();
|
|
2740
|
+
if (wf.primaryTurn === primaryTurn)
|
|
2741
|
+
wf.primaryTurn = undefined;
|
|
2742
|
+
// Only the owning claim may release busy / touch the queue. A loop whose
|
|
2743
|
+
// claim STOP revoked exits quietly — STOP + quick resend used to let turn
|
|
2744
|
+
// 1's finally clear turn 2's busy flag (and drain/clear turn 2's queue).
|
|
2745
|
+
staleLoop = !releaseBusy(wf, busyToken, watchLoopFinished && !watchHadError ? 'finished' : 'failed');
|
|
2746
|
+
if (!staleLoop) {
|
|
2747
|
+
// The provider's `primary_turn_ended` broadcast already fired before
|
|
2748
|
+
// this finally runs (it's queued from the settled.then() microtask in
|
|
2749
|
+
// seedWorker which awaits the same promise the turn loop does — the
|
|
2750
|
+
// provider's .then attaches first, so it runs first). At that moment
|
|
2751
|
+
// wf.busy was still `true`, so the cluster_state push triggered by
|
|
2752
|
+
// CLUSTER_STATE_TRIGGERS read `busy` and reported the member as still
|
|
2753
|
+
// busy. Re-notify here so the cluster tab dot + per-card status
|
|
2754
|
+
// actually drop when the worker becomes idle. Without this the
|
|
2755
|
+
// cluster-level indicators stay lit until the next unrelated event.
|
|
2756
|
+
void notifyClusterStateForWorkflow(workflowId);
|
|
2757
|
+
// Defensive: the drain loop above already empties both arrays on each
|
|
2758
|
+
// iteration. This catches the case where the loop exited via throw —
|
|
2759
|
+
// we don't want the next turn to inherit half-drained state.
|
|
2760
|
+
if (!preserveQueue && (wf.queue.steering.length > 0 || wf.queue.followUp.length > 0)) {
|
|
2761
|
+
wf.queue.steering.length = 0;
|
|
2762
|
+
wf.queue.followUp.length = 0;
|
|
2763
|
+
broadcastQueueUpdate(workflowId);
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
// Stale loop: STOP already disarmed the goal run and owns the teardown; the
|
|
2768
|
+
// post-settle armed actions belong to whoever holds the tab now.
|
|
2769
|
+
if (staleLoop) {
|
|
2770
|
+
// A requested Computer reset still needs a boundary after STOP's
|
|
2771
|
+
// interrupt actually settles. A newer busy owner keeps it deferred.
|
|
2772
|
+
if (wf.config.voiceOperator) {
|
|
2773
|
+
await maybeFreshComputerContext(workflowId, false);
|
|
2774
|
+
await drainQueueIfIdle(workflowId);
|
|
2775
|
+
await announceComputerSettled(workflowId);
|
|
2776
|
+
}
|
|
2777
|
+
return;
|
|
2778
|
+
}
|
|
2779
|
+
if (preserveQueue)
|
|
2780
|
+
return;
|
|
2781
|
+
// Computer rotates only after the complete tool/queue turn has settled.
|
|
2782
|
+
await maybeFreshComputerContext(workflowId, !lastTurnErrored);
|
|
2783
|
+
await announceComputerSettled(workflowId);
|
|
2784
|
+
// Phase 2 calibration — run after the full drain queue empties (idle moment).
|
|
2785
|
+
// Updates per-session ratio/overhead from ground-truth /context output.
|
|
2786
|
+
await maybeCalibrate(workflowId, wf, cwd);
|
|
2787
|
+
// §2.1 — auto-fold runs FIRST (foldAt sits below the handoff thresholds): the
|
|
2788
|
+
// cheap deterministic in-place Fold is tried before recommending a handoff. A
|
|
2789
|
+
// successful fold reseeds the session, so skip the (now-stale) handoff check
|
|
2790
|
+
// this round — the next turn's meter re-evaluates against the reduced context.
|
|
2791
|
+
const clusterIdForPolicy = clusterStore.getClusterIdForWorkflow(workflowId);
|
|
2792
|
+
const explicitPolicy = resolveProviderAutoCompaction(wf.config.autoCompaction, clusterIdForPolicy ? clusterStore.getAutoCompaction(clusterIdForPolicy) : undefined, wf.primary.provider, claudeTransport, wf.config.claudeNativeCompact === true, cascade?.ollama?.compaction?.enabled !== undefined || cascade?.ollama?.compaction?.threshold !== undefined);
|
|
2793
|
+
if (explicitPolicy) {
|
|
2794
|
+
const action = await runExplicitContextActions(workflowId, wf, cwd, explicitPolicy, policyReading, busyToken, ws, session);
|
|
2795
|
+
if (action === 'stale')
|
|
2796
|
+
return;
|
|
2797
|
+
if (action === 'compact-attempted') {
|
|
2798
|
+
await drainQueueIfIdle(workflowId);
|
|
2799
|
+
return;
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
else {
|
|
2803
|
+
// Preserve existing behavior for work without the new policy.
|
|
2804
|
+
const folded = await maybeAutoFold(workflowId, wf, cwd);
|
|
2805
|
+
if (!folded)
|
|
2806
|
+
await maybeAutoHandoff(workflowId, wf, cwd);
|
|
2807
|
+
// Provider-owned compaction remains with the provider.
|
|
2808
|
+
}
|
|
2809
|
+
// Messages typed while auto-fold / auto-handoff held the tab are still
|
|
2810
|
+
// queued. Flush them first; that turn runs its own post-settle chain (goal
|
|
2811
|
+
// run included), so this settle is done.
|
|
2812
|
+
if (await drainQueueIfIdle(workflowId))
|
|
2813
|
+
return;
|
|
2814
|
+
// docs/GOTCHAS.md - north-star auto-continue. Last of the post-settle armed
|
|
2815
|
+
// actions on purpose: fold / handoff / compaction all reshape the context
|
|
2816
|
+
// this tick would run against, so they get to act first.
|
|
2817
|
+
await maybeGoalRun(workflowId, wf, ws, session, lastTurnErrored);
|
|
2818
|
+
}
|
|
2819
|
+
// docs/GOTCHAS.md - one tick of an armed goal run. Every branch either
|
|
2820
|
+
// dispatches exactly one visible turn or stops the run with an operator-
|
|
2821
|
+
// readable reason; there is no third outcome and no model input to the
|
|
2822
|
+
// decision (see `evaluateGoalRun`).
|
|
2823
|
+
async function maybeGoalRun(workflowId, wf, ws, session, lastTurnErrored) {
|
|
2824
|
+
const state = wf.config.goalRun;
|
|
2825
|
+
if (!state?.enabled)
|
|
2826
|
+
return;
|
|
2827
|
+
const decision = evaluateGoalRun({
|
|
2828
|
+
state,
|
|
2829
|
+
hasNorthStar: !!wf.config.goal?.trim(),
|
|
2830
|
+
busy: wf.busy,
|
|
2831
|
+
queuedMessages: wf.queue.steering.length + wf.queue.followUp.length,
|
|
2832
|
+
lastTurnErrored,
|
|
2833
|
+
providerThrottled: !isAvailable(wf.primary.provider),
|
|
2834
|
+
contextPercent: wf.lastContextPercent,
|
|
2835
|
+
});
|
|
2836
|
+
if (decision.action === 'idle' || decision.action === 'skip')
|
|
2837
|
+
return;
|
|
2838
|
+
if (decision.action === 'stop') {
|
|
2839
|
+
state.enabled = false;
|
|
2840
|
+
const spent = state.total - state.remaining;
|
|
2841
|
+
broadcastWorkflow(workflowId, {
|
|
2842
|
+
type: 'system_notice',
|
|
2843
|
+
workflowId,
|
|
2844
|
+
content: `[GOAL RUN] Stopped after ${spent}/${state.total} iteration${spent === 1 ? '' : 's'} — ` +
|
|
2845
|
+
`${GOAL_RUN_STOP_TEXT[decision.reason]}. ${formatGoalRunTokens(state.tokensUsed)} spent. ` +
|
|
2846
|
+
`Re-arm with \`/goal run <n>\`.`,
|
|
2847
|
+
});
|
|
2848
|
+
broadcastWorkflow(workflowId, { type: 'goal_run_state', workflowId, ...snapshotGoalRun(state) });
|
|
2849
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] goal run stopped (${decision.reason}) after ${spent}/${state.total}`);
|
|
2850
|
+
return;
|
|
2851
|
+
}
|
|
2852
|
+
// Dispatching. Decrement BEFORE the await so a re-entrant settle (the turn we
|
|
2853
|
+
// are about to start finishing fast) can never see the old count and double-
|
|
2854
|
+
// spend the same iteration.
|
|
2855
|
+
state.remaining -= 1;
|
|
2856
|
+
const prompt = goalRunContinuePrompt(decision.iteration, state.total);
|
|
2857
|
+
broadcastWorkflow(workflowId, {
|
|
2858
|
+
type: 'system_notice',
|
|
2859
|
+
workflowId,
|
|
2860
|
+
content: `[GOAL RUN] Auto-continuing toward the north star — iteration ${decision.iteration}/${state.total}, ` +
|
|
2861
|
+
`${state.remaining} left, ${formatGoalRunTokens(state.tokensUsed)} spent so far. ` +
|
|
2862
|
+
`Type \`/goal run stop\` (or click the chip) to stop.`,
|
|
2863
|
+
});
|
|
2864
|
+
broadcastWorkflow(workflowId, { type: 'goal_run_state', workflowId, ...snapshotGoalRun(state) });
|
|
2865
|
+
console.log(`[arco] [${workflowId.slice(0, 8)}] goal run tick ${decision.iteration}/${state.total}`);
|
|
2866
|
+
if (!ws || !session) {
|
|
2867
|
+
// No socket to dispatch through (server-originated turn path). Stop rather
|
|
2868
|
+
// than silently stall — an armed run that can't tick must say so.
|
|
2869
|
+
state.enabled = false;
|
|
2870
|
+
broadcastWorkflow(workflowId, {
|
|
2871
|
+
type: 'system_notice',
|
|
2872
|
+
workflowId,
|
|
2873
|
+
content: '[GOAL RUN] Stopped — no operator session to dispatch the next turn through.',
|
|
2874
|
+
});
|
|
2875
|
+
return;
|
|
2876
|
+
}
|
|
2877
|
+
try {
|
|
2878
|
+
await handleUserMessage(ws, session, workflowId, prompt, undefined, undefined, false, undefined, undefined);
|
|
2879
|
+
}
|
|
2880
|
+
catch (err) {
|
|
2881
|
+
state.enabled = false;
|
|
2882
|
+
console.error(`[arco] [${workflowId.slice(0, 8)}] goal run dispatch failed:`, err);
|
|
2883
|
+
broadcastWorkflow(workflowId, {
|
|
2884
|
+
type: 'system_notice',
|
|
2885
|
+
workflowId,
|
|
2886
|
+
content: `[GOAL RUN] Stopped — dispatch failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
2887
|
+
});
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
// Compact token count for operator-facing notices ("1.2M", "418k", "930").
|
|
2891
|
+
function formatGoalRunTokens(n) {
|
|
2892
|
+
if (n >= 1_000_000)
|
|
2893
|
+
return `${(n / 1_000_000).toFixed(1)}M tokens`;
|
|
2894
|
+
if (n >= 1_000)
|
|
2895
|
+
return `${Math.round(n / 1_000)}k tokens`;
|
|
2896
|
+
return `${n} tokens`;
|
|
2897
|
+
}
|
|
2898
|
+
export function snapshotGoalRun(state) {
|
|
2899
|
+
return {
|
|
2900
|
+
enabled: state.enabled,
|
|
2901
|
+
total: state.total,
|
|
2902
|
+
remaining: state.remaining,
|
|
2903
|
+
tokensUsed: state.tokensUsed,
|
|
2904
|
+
...(typeof state.tokenBudget === 'number' ? { tokenBudget: state.tokenBudget } : {}),
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
//# sourceMappingURL=turnEngine.js.map
|