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,1939 @@
|
|
|
1
|
+
# Providers
|
|
2
|
+
|
|
3
|
+
**Status:** Guided first-run Connections setup and recovery remain in progress. See [Development status](DEVELOPMENT_STATUS.md).
|
|
4
|
+
|
|
5
|
+
Per-provider deep dive. The generally available providers are **Claude**, **Codex**, **Ollama**, **LM Studio**, **llama.cpp**, and **Cursor**. Two optional integrations, **Strata** and **DeepSeek through Xolotl**, require separately installed external services that Arco does not distribute. All configured providers can act as primaries and reviewers. They differ in spawn mechanism, session resume, auth, and capability detection; this doc tracks each one's particulars. Two providers run multiple transports side-by-side, picked per-tab from the CONFIG tab: **Claude** has `cli` (per-turn `claude` subprocess) and `native` (long-lived in-process Anthropic-API worker via `@anthropic-ai/sdk`); **Codex** has `exec` (per-turn `codex exec` subprocess) and `appserver` (long-lived `codex app-server` child). **Cursor** also has two - `acp` (long-lived) and `print` (stateless one-shot) - but the choice is routed automatically (`sandbox: 'read-only'` -> `print`), not toggled.
|
|
6
|
+
|
|
7
|
+
Chat tabs support Claude, Codex, Cursor, Ollama, llama.cpp, and LM Studio; Optional Strata and DeepSeek integrations are available when their external services are installed. See the contract below and [`CHAT.md`](CHAT.md).
|
|
8
|
+
|
|
9
|
+
For the abstract interface, see `server/src/providers/types.ts`. For when these are invoked in the broader lifecycle, see [`PRIMITIVES.md`](PRIMITIVES.md). For protocol-level message shapes, see [`PROTOCOL.md`](PROTOCOL.md).
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Topics
|
|
14
|
+
|
|
15
|
+
| Topic |
|
|
16
|
+
| --- |
|
|
17
|
+
| [Provider comparison](#provider-comparison) |
|
|
18
|
+
| [The provider abstraction](#the-provider-abstraction) |
|
|
19
|
+
| [Interrupt and send](#interrupt-and-send) |
|
|
20
|
+
| [Claude](#claude) |
|
|
21
|
+
| [Codex](#codex) |
|
|
22
|
+
| [Cursor](#cursor) |
|
|
23
|
+
| [Ollama](#ollama) |
|
|
24
|
+
| [LM Studio](#lm-studio) |
|
|
25
|
+
| [Strata](#strata) |
|
|
26
|
+
| [DeepSeek (Xolotl)](#deepseek-xolotl) |
|
|
27
|
+
| [llama.cpp](#llamacpp) |
|
|
28
|
+
| [External MCP integrations](#external-mcp-integrations) |
|
|
29
|
+
| [Comparison matrix](#comparison-matrix) |
|
|
30
|
+
| [Error-classifier taxonomy](#error-classifier-taxonomy) |
|
|
31
|
+
| [Provider fallback chains](#provider-fallback-chains) |
|
|
32
|
+
| [Cross-references](#cross-references) |
|
|
33
|
+
| [Retired provider history](#retired-provider-history) |
|
|
34
|
+
|
|
35
|
+
## Provider comparison
|
|
36
|
+
|
|
37
|
+
| Provider | Transport | Effort levels | Native resume | Notes |
|
|
38
|
+
|---|---|---|---|---|
|
|
39
|
+
| Claude | `cli` (alternate; also reviewers and handoff seeds) | low / medium / high / xhigh / max | UUID-based (`--session-id` / `--resume`) | Picker: `opus` / `sonnet` family aliases plus pinned ids (Opus 5.5, Fable 5.1, Sonnet 5, Opus 5, Opus 4.8, ...). Per-turn `claude` CLI spawn. Full two-way interop with terminal `claude`. Chat renders from `~/.claude/projects/<cwd-hash>/<sessionId>.jsonl`. Auto-handoff supported. |
|
|
40
|
+
| Claude | `native` (new-home default) | low / medium / high / xhigh / max | Replay from `events.jsonl` (Arco-internal; no terminal resume) | Long-lived in-process `@anthropic-ai/sdk` worker, no CLI spawn. OAuth subscription auth + pinned Claude Code wire fingerprint. Append-only request prefix with preserved thinking (required by Fable 5.1 / Mythos 5.1 / Opus 5.5). Ships its own Bash / Read / Edit / Grep / Glob / Task tools, Claude-Code-compatible hooks runner, server-side `compact` + auto-handoff + deterministic Fold, operator-armed plan-mode, parallel `Task` subagent fan-out (depth-1 cap), output-style picker (normal / lite / terse), and posture-based toolsets (operator cycles a full / coding / review / chat posture that scopes exposed tools).
|
|
41
|
+
| Codex | `exec` (alternate; also reviewers and handoff seeds) | model/catalog-driven; Astra / Sol: low through ultra, Luna: through max | UUID-based (`codex exec resume`) | Default model GPT-6 Astra (Sol and Luna also in the cold-catalog fallback; the live `model/list` catalog is authoritative). MAX context by default. Per-turn `codex exec` spawn. Full two-way interop with terminal `codex`. Supported effort values pass through; older models are not widened to Astra-only levels. Reviewer runs `-s read-only`. Transcript hydration on Resume for unclaimed rollouts. |
|
|
42
|
+
| Codex | `app-server` (new-home default) | model/catalog-driven (same as `exec`) | UUID-based (rollouts in `~/.codex/sessions/`) | Long-lived `codex app-server` per tab. Structured `turn/interrupt` cancel + non-destructive `turn/steer` mid-turn input + `localImage` attachments + crash-recovery circuit breaker + output-style picker + native compact with context-signal reset. Reviewers / handoff seeds always run on `exec`. |
|
|
43
|
+
| Cursor | `acp` (default) + `print` | baked into the model id (`-low` / `-high` / `-xhigh` / `-max`) | `session/load` (loadSession capability) | Long-lived `cursor-agent acp` ACP worker; ~153 models incl. Grok. Steer / cancel / session resume / live model-swap via `session/set_model`. No per-turn token signal (the Usage tab is dashboard-polled). Cluster member via an in-process loopback HTTP MCP server. Read-only reviewer / primitives run a stateless `cursor-agent -p --mode ask` one-shot. |
|
|
44
|
+
| Ollama | (single) | per model - graded thinking: `low` = thinking off (`think:false` + `/no_think`) plus the model's own levels from `/api/show` `thinking.values` (e.g. supported levels from `/api/show`); boolean-only models keep low / high | None | No native session concept; each turn is a fresh context. Tool use + large context + image attachments + web tools (SearXNG search, fetch with Camoufox stealth fallback). Mid-turn steer supported. Override base URL with `OLLAMA_URL_BASE` (default `http://localhost:11434`). |
|
|
45
|
+
| llama.cpp | (single) | low / high (`low` = `/no_think`) | None | Operator-managed GGUF catalog at `~/.arco/llamacpp.json`. Singleton `llama-server` process owned by Arco (`llamacppManager`); switching aliases SIGTERMs the old server and warms the new one. OpenAI-compatible chat-completions + SSE streaming. Same tool-loop runtime as Ollama, with in-place auto-recovery (reasoning runaway / stream stall / tool-cap / context fill). Override binary with `ARCO_LLAMACPP_BIN`. |
|
|
46
|
+
| LM Studio | (single) | low / high (`low` = `/no_think`) | None | LM Studio reached via its **OpenAI-compatible** HTTP API (`/v1/chat/completions`, `/v1/models`) - not the native SDK. Joins ollama / llama.cpp on the serial local queue, same tool-loop runtime + recovery. Whatever model is loaded in the LM Studio app is the active model. Override base URL with `LMSTUDIO_URL_BASE` (default `http://localhost:1234`). |
|
|
47
|
+
| DeepSeek / Xolotl | HTTP + guarded user services | none / low / medium / high | Transcript replay | Configured profiles with model-specific context, image, and tool capabilities, guarded loading and unloading, and source-version tracking; see [`docs/DEEPSEEK.md`](DEEPSEEK.md). |
|
|
48
|
+
| Strata | (single HTTP worker + optional registered user services) | none / low / medium / high (`none` disables reasoning; high maps to Qwen xhigh) | Transcript replay | Standalone OpenAI-compatible service at `http://127.0.0.1:8081/v1`. The service reports installed model IDs, context and capabilities; one profile is resident at a time. Streaming reasoning, tools, image input, Chat web-only toggle, native tok/s, FREE VRAM and release notices. [Runbook](STRATA.md). |
|
|
49
|
+
|
|
50
|
+
All configured providers can act as reviewers or primary agents. Local reviewers (Ollama, llama.cpp, LM Studio, Strata) get a prompt addendum reminding them to use their read-only tools to verify diff claims against the live tree. Cross-family reviewer pairings are the most useful.
|
|
51
|
+
|
|
52
|
+
The utility agent and the Smart AUTO-PICKUP evaluator are narrower: only Claude
|
|
53
|
+
with Native sign-in, Cursor, Codex and Ollama can serve. Claude CLI alone cannot
|
|
54
|
+
make a tool-less one-shot. Codex runs as a locked-down one-shot app-server
|
|
55
|
+
(read-only sandbox, no MCP servers, web search off, any tool item ends it).
|
|
56
|
+
See [Settings: Utility agent](SETTINGS.md#utility-agent) and
|
|
57
|
+
[SECURITY.md](../SECURITY.md#utility-agent-and-smart-auto-pickup-evaluator-requests).
|
|
58
|
+
|
|
59
|
+
Auth is per-service: browser OAuth for Claude (CLI login, plus a separate OAuth flow for Native); terminal-launched TUI for Codex; `gh auth token` for GitHub; Ollama / LM Studio / Strata probe their HTTP endpoints (prepared local Strata profiles can also start on demand); llama.cpp probes for the binary + reads `~/.arco/llamacpp.json`; Cursor uses its own `cursor-agent login`. The auth overlay blocks app use only when no primary-capable provider is authed.
|
|
60
|
+
|
|
61
|
+
## The provider abstraction
|
|
62
|
+
|
|
63
|
+
Every provider implements `ProviderProcess` from `server/src/providers/types.ts`:
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
interface ProviderProcess {
|
|
67
|
+
id: string;
|
|
68
|
+
status: 'spawning' | 'running' | 'completed' | 'failed';
|
|
69
|
+
output: string; // accumulated text, capped at MAX_WORKER_OUTPUT_BYTES (50 MB; ARCO_MAX_WORKER_OUTPUT_BYTES env override)
|
|
70
|
+
pid?: number; // undefined for HTTP/RPC providers (Ollama, LM Studio)
|
|
71
|
+
spawn(prompt: string): void;
|
|
72
|
+
kill(): void;
|
|
73
|
+
// (extends EventEmitter - `on(event, handler)` comes from there)
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`ProviderEvents` is a unified set every provider emits:
|
|
78
|
+
|
|
79
|
+
- `init`: `{ model, sessionId? }` indicates that the provider has started; Codex reports its `thread_id` here.
|
|
80
|
+
- `text`: `{ text }` is an incremental assistant-text fragment.
|
|
81
|
+
- `thinking`: `{ text }` is an incremental reasoning fragment when the transport exposes it.
|
|
82
|
+
- `tool_use`: carries the tool name and serialized input, with optional status and provider item identifiers for progress updates.
|
|
83
|
+
- `result`: closes the turn with final text, cost and duration, plus optional usage, context, and byte telemetry.
|
|
84
|
+
- `error`: carries the fatal error text.
|
|
85
|
+
- `system_notice`: reports transient status such as rate limits or retry backoff outside the assistant transcript.
|
|
86
|
+
|
|
87
|
+
`server/src/providers/index.ts` is a thin factory:
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
createProviderProcess(id, config) → ProviderProcess
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
It dispatches on `config.provider` and returns the right concrete class. Higher-level code (`WorkerManager`, `seedWorker`) consumes the unified event stream and never branches on provider type once the process is running.
|
|
94
|
+
|
|
95
|
+
**Stuck-worker breaker (3.1).** Independently of provider, the seed/tool-loop layer feeds each terminal tool result to a deterministic error-persistence detector (`server/src/workers/stuckBreaker.ts`, signatures from `server/src/providers/outputSignature.ts`): the same failing command recurring with an UNCHANGED result across turns trips a visible `worker_stuck` event (+ `system_notice`) so a looping worker is caught rather than burning turns silently. The verdict clears when a previously-failing tool finally succeeds. The detector is deterministic and operator-readable - no model judgment about "is this stuck."
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
## Interrupt and send
|
|
100
|
+
|
|
101
|
+
Claude (`cli`, `native`) and Codex (`exec`, `appserver`) support the Agent composer's
|
|
102
|
+
**INTERRUPT & SEND** and **Ctrl/Cmd+Enter** action (`user_message.kind:'interrupt'`).
|
|
103
|
+
The user-message loop retains its busy claim, interrupts only its primary worker,
|
|
104
|
+
and waits before dispatching the correction in the existing conversation. It never
|
|
105
|
+
uses CANCEL's queue-clearing handler. Reviewers and other busy holders are not
|
|
106
|
+
interrupted; unavailable requests visibly queue as follow-ups.
|
|
107
|
+
|
|
108
|
+
- CLI workers settle STOP synthetically before OS exit. Their separate `interrupt()`
|
|
109
|
+
waits for the actual child `exit` (10-second ceiling) before session resume.
|
|
110
|
+
- Claude Native cancels its stream/tools and awaits the actual `runTurn` promise.
|
|
111
|
+
If another correction cancels startup before its prompt entered history,
|
|
112
|
+
`turnInputAccepted:false` carries that unsubmitted correction into the next prompt.
|
|
113
|
+
- Codex app-server uses `turn/interrupt` and waits for matching interrupted
|
|
114
|
+
completion. Concurrent STOP/interrupt requests share one cancellation waiter.
|
|
115
|
+
|
|
116
|
+
Interrupts pending cancellation merge FIFO into one priority turn. Other queued
|
|
117
|
+
messages run afterward; provider steer drains are suspended during the correction.
|
|
118
|
+
Cancellation failure preserves the queue and surfaces a notice without another
|
|
119
|
+
turn. Existing edits remain in place; this action disarms an armed Goal Run.
|
|
120
|
+
Tests: `npm run test:interrupt-send`, `npm run smoke:interrupt-send` (isolated fake
|
|
121
|
+
CLIs plus real Native loop over mocked Anthropic streaming; zero model spend).
|
|
122
|
+
|
|
123
|
+
## Claude
|
|
124
|
+
|
|
125
|
+
### Chat-mode execution contract
|
|
126
|
+
|
|
127
|
+
`WorkerConfig.interactionMode:'chat'` is a hard tool boundary shared by the
|
|
128
|
+
supported providers (not Claude-specific; it lives here because Claude was
|
|
129
|
+
first). The one exception is the per-tab web toggle - `chatWebArmed()` in
|
|
130
|
+
`server/src/chatMode.ts` decides, and every transport states the mode
|
|
131
|
+
explicitly instead of inheriting a provider default:
|
|
132
|
+
|
|
133
|
+
- **Claude Native** - empty `tools`, or `buildChatWebTools()` (Anthropic
|
|
134
|
+
`web_search` + `web_fetch` only, deliberately no `code_execution`) when armed;
|
|
135
|
+
only the chat system block.
|
|
136
|
+
- **Claude CLI** - `--tools ""`, or `--tools WebSearch,WebFetch` when armed,
|
|
137
|
+
plus `--strict-mcp-config`.
|
|
138
|
+
- **Codex** - read-only sandbox in the isolated chat cwd (its CLI has no
|
|
139
|
+
universal tool allowlist, so isolation + sandboxing are the defense);
|
|
140
|
+
`web_search="live"|"disabled"` on both `exec` (`-c`) and app-server (thread
|
|
141
|
+
config), plus chat `baseInstructions` on app-server.
|
|
142
|
+
- **Ollama** - no tools, or exactly `WebSearch` / `WebFetch` (local SearXNG +
|
|
143
|
+
fetch) when armed, re-checked at dispatch by `ollamaToolCallAllowed()` so a
|
|
144
|
+
hallucinated known tool name cannot cross the boundary.
|
|
145
|
+
- **Strata** - the shared OpenAI HTTP worker advertises and dispatches only
|
|
146
|
+
`WebSearch` / `WebFetch` when Chat web access is armed. Standalone logs/image
|
|
147
|
+
caches mean it is unavailable in strict Incognito.
|
|
148
|
+
- **llama.cpp, LM Studio** - tool schemas omitted; no web option.
|
|
149
|
+
- **Cursor** - routed to the stateless `-p --mode ask` transport
|
|
150
|
+
(`--stream-partial-output` in chat) with deterministic transcript replay.
|
|
151
|
+
|
|
152
|
+
**Computer voice exception.** A `voiceOperator` Chat receives only the
|
|
153
|
+
bounded `arco_*` tools from `server/src/voice/toolDefinitions.ts`, with
|
|
154
|
+
`VOICE_OPERATOR_PROMPT`. Codex saved uses app-server and its sole approved
|
|
155
|
+
`arco-voice` MCP; Incognito Computer uses app-server `thread/start {ephemeral:true}`, never
|
|
156
|
+
resume; a response must confirm ephemeral with no rollout path before any
|
|
157
|
+
request is sent. Ordinary Incognito Chat still uses `exec --ephemeral`. Claude uses
|
|
158
|
+
Native, whose tool dispatch returns early to the browser relay. Ollama/Strata
|
|
159
|
+
use their existing native tool loops, again with an independent voice allowlist;
|
|
160
|
+
project/web/registry tools stay absent. Ollama skips heuristic tool subsetting
|
|
161
|
+
and automatic compaction for Computer. Local Computer replay uses structured
|
|
162
|
+
tool calls/results (`voice/history.ts`), preserving the actions behind Done.
|
|
163
|
+
Native/local cold replay obeys the last full-reset boundary. Defaults are 50%
|
|
164
|
+
subscription / 75% local, based on measured configured windows and applied only
|
|
165
|
+
after the complete turn/queue. Strata remains unavailable in strict Incognito.
|
|
166
|
+
See [VOICE.md](VOICE.md) for the current contract and provider smoke commands.
|
|
167
|
+
Codex Computer alone has a 90-second silent-start / 60-second no-progress /
|
|
168
|
+
five-minute total watchdog. It retires a stalled child, fences outstanding tools
|
|
169
|
+
and fails the request without replaying it; the next operator request resumes
|
|
170
|
+
saved history on a new process. Private context loss triggers a visible clear.
|
|
171
|
+
Normal Chat/Agent lifecycles are unchanged. Tool results are repaired to valid
|
|
172
|
+
Unicode before MCP serialization; a truncated emoji previously wedged this path.
|
|
173
|
+
|
|
174
|
+
`chatSystemPrompt(armed)` swaps the system prompt with the toolset.
|
|
175
|
+
|
|
176
|
+
`WorkerConfig.incognito:true` strengthens that boundary into Arco-side
|
|
177
|
+
non-persistence. Claude CLI receives no session id and therefore emits
|
|
178
|
+
`--no-session-persistence`; Codex is forced off app-server onto one-shot
|
|
179
|
+
`exec --ephemeral` (Computer alone uses a verified ephemeral app-server thread). Stateless turns receive a deterministic transcript
|
|
180
|
+
from `WorkflowState.incognitoEvents`. Cursor is excluded from incognito because
|
|
181
|
+
its CLI exposes resumable chats but no ephemeral-session flag. llama.cpp is
|
|
182
|
+
also excluded because the shared Arco-managed `llama-server` writes an
|
|
183
|
+
unavoidable `~/.arco/llamacpp.log`. Claude's incognito system/history prefix
|
|
184
|
+
rides stdin rather than argv or an append-system-prompt temp file; direct CLI
|
|
185
|
+
stderr, Arco operational logs, notifications, remote reporting, and durable
|
|
186
|
+
PID registration are suppressed. Native and eligible local HTTP providers
|
|
187
|
+
retain conversation state in process only; retention by a remote API service
|
|
188
|
+
remains governed by that service, not Arco's disk policy.
|
|
189
|
+
|
|
190
|
+
Two transports ship side-by-side, selected per-tab via `claude.transport`. New Arco homes use `native`; the home and project settings cascade can select either transport, and a per-tab choice takes precedence. Existing cascade and per-tab choices remain unchanged. Per-tab override lives on `WorkflowConfig.claudeTransport` and is editable from the CONFIG tab without a server restart.
|
|
191
|
+
|
|
192
|
+
Authentication status distinguishes Native credentials, CLI login and usage limits availability. Stored
|
|
193
|
+
Native credentials remain visible when the CLI is signed out. The Native indicator reports local
|
|
194
|
+
presence, refresh needs, read failures or an authentication problem; an unexpired local grant is
|
|
195
|
+
explicitly unverified for execution. CLI warnings name the CLI and use its sign-in command. Native
|
|
196
|
+
warnings open the Claude sign-in group in Settings. Neither status recovery nor a usage-limits failure switches
|
|
197
|
+
the selected transport. An unavailable usage limits meter does not invalidate execution credentials.
|
|
198
|
+
Native uses one credential store per Arco home; named account/profile labels do not create separate
|
|
199
|
+
Native credentials. Connection checks remain metadata checks without a model turn.
|
|
200
|
+
|
|
201
|
+
Reviewers and handoff seed turns always run on `cli` regardless of the tab's transport - Native is per-workflow long-lived and Arco-internal-only, so any path that needs a `~/.claude/projects/<sid>.jsonl` rollout (handoff destinations, reviewer recovery) goes through the CLI provider. After `handoff_complete`, the dispatcher disposes the cached Native worker so the next operator turn rebuilds the messages array from the post-handoff transcript.
|
|
202
|
+
|
|
203
|
+
### Native transport - append-only prefix (2026-09-01)
|
|
204
|
+
|
|
205
|
+
Append-only prefix delivery is a current Native transport invariant. The in-process worker freezes `system` + `tools` on its first request and delivers every later config change (north-star, output style, cluster plan, CLAUDE.md re-read, posture, plan mode, MCP attach) as an appended `role:'system'` message with text and/or `tool_addition` / `tool_removal` blocks, so Claude Fable 5.1's preserved-thinking check never sees an edited prefix and the prompt cache survives config changes. Thinking blocks persist across turns (they used to be pruned at turn end). Every prefix mutation is a `ctx_action` in `events.jsonl`; `input_transformations` from Anthropic are logged per round. Pure helpers: `server/src/providers/claude-native/appendOnlyPrefix.ts` (`npm run test:append-only -w server`). Invariants: [Gotchas: Claude Native transport](GOTCHAS.md#claude-native-transport).
|
|
206
|
+
|
|
207
|
+
### CLI transport
|
|
208
|
+
|
|
209
|
+
`server/src/providers/claude.ts`. Subprocess via `spawn('claude', args)`.
|
|
210
|
+
|
|
211
|
+
### Spawn
|
|
212
|
+
|
|
213
|
+
`spawn('claude', args, { detached: true, env: { ...process.env, ARCO_INVOKER: 'sdk-cli' } })`. The `ARCO_INVOKER` env var lets the concurrent-writer guard distinguish Arco-issued writes from foreign `claude --resume` terminal writes hitting the same JSONL.
|
|
214
|
+
|
|
215
|
+
### Argv (primary)
|
|
216
|
+
|
|
217
|
+
```text
|
|
218
|
+
claude
|
|
219
|
+
-p
|
|
220
|
+
--output-format stream-json
|
|
221
|
+
--verbose
|
|
222
|
+
--include-partial-messages
|
|
223
|
+
--model <m>
|
|
224
|
+
--effort <e> # forced xhigh under ultracode
|
|
225
|
+
[--input-format stream-json] # only when image attachments are present
|
|
226
|
+
[--session-id <uuid>] # first turn (Arco pre-mints)
|
|
227
|
+
[--resume <uuid>] # subsequent turns
|
|
228
|
+
[--no-session-persistence] # neither id set (workers, incognito)
|
|
229
|
+
[--dangerously-skip-permissions] # AUTO mode
|
|
230
|
+
[--system-prompt <p>]
|
|
231
|
+
[--append-system-prompt <s>] # small values (inline string)
|
|
232
|
+
[--append-system-prompt-file <fp>] # large values switch to this separate flag; see GOTCHA
|
|
233
|
+
[--tools <csv>] # absent = full CLI toolset; Chat passes "" or WebSearch,WebFetch
|
|
234
|
+
[--strict-mcp-config] # Chat only
|
|
235
|
+
[--fallback-model <m>]
|
|
236
|
+
[--add-dir <paths>]
|
|
237
|
+
[--mcp-config <fp>] # cluster / registry MCP
|
|
238
|
+
[--disallowedTools <csv>] # registry denylist + per-tab disabled tools
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Incognito omits `--system-prompt` / `--append-system-prompt*`; the private framing rides stdin instead.
|
|
242
|
+
|
|
243
|
+
### Argv (workers - reviewer / handoff summarizer)
|
|
244
|
+
|
|
245
|
+
Same base + `--no-session-persistence` (don't write a session JSONL) + optional `--dangerously-skip-permissions` (only in trusted reviewer contexts) + `--tools <csv>` allowlist + `--add-dir <paths>` for cross-directory reads.
|
|
246
|
+
|
|
247
|
+
### Stdin
|
|
248
|
+
|
|
249
|
+
For text-only prompts, the prompt is the last positional argument. For attachments (images), the prompt is sent as a `stream-json` envelope on stdin so binary content rides cleanly.
|
|
250
|
+
|
|
251
|
+
**GOTCHA - ARG_MAX overflow** (large-prompt handling): when an inline `--append-system-prompt` value would push the argv past Linux's `MAX_ARG_STRLEN` (~128 KB/arg), `execve` kills the spawn with `E2BIG`. Arco's mitigation: above that threshold it writes the appendSystemPrompt to a tmpfile (`append-sp-{id}-{pid}.txt`) and passes it via the **separate** `--append-system-prompt-file` flag (a documented peer of `--append-system-prompt` in the CLI's bare help) - not the same flag with a path. If the tmpfile write fails it falls back to the inline `--append-system-prompt` argv (which may then E2BIG, but the operator sees a real spawn error rather than a silently-dropped prompt). Tmpfiles are cleaned up on settle and on server exit.
|
|
252
|
+
|
|
253
|
+
### Event parsing
|
|
254
|
+
|
|
255
|
+
Stdout is NDJSON. `StreamParser` consumes line-by-line and dispatches:
|
|
256
|
+
|
|
257
|
+
- `system.init` → `init` with `model`, `sessionId`
|
|
258
|
+
- `assistant.message.delta.text` → `text`
|
|
259
|
+
- `assistant.message.delta.thinking` → `thinking`
|
|
260
|
+
- `assistant.tool_use` → `tool_use` (Bash, Read, Grep, Glob, WebFetch, etc.)
|
|
261
|
+
- `result` → `result` with `total_cost_usd`, `duration_ms`, `usage`
|
|
262
|
+
- `system.api_error` / `system.notice` → `system_notice`
|
|
263
|
+
|
|
264
|
+
Unknown event types are logged and ignored (Claude CLI updates may add new shapes).
|
|
265
|
+
|
|
266
|
+
### Session resume
|
|
267
|
+
|
|
268
|
+
UUID-based. Every Claude session is identified by a UUID stored in the file `~/.claude/projects/<cwd-hash>/<sessionId>.jsonl`. The cwd-hash is a deterministic transformation of the absolute working directory.
|
|
269
|
+
|
|
270
|
+
- **First turn** - Arco pre-mints a UUID and passes `--session-id <uuid>`. Claude creates the JSONL with that name. Arco stores the UUID in `meta.cliSessions[]` immediately.
|
|
271
|
+
- **Resume** - `--resume <uuid>` continues the session. Arco's `wf.primarySessionId` carries the active UUID.
|
|
272
|
+
- **Terminal interop** - `claude --resume <uuid>` from any terminal continues the same session, and Arco picks up the new entries via the JSONL watcher (context robustness).
|
|
273
|
+
|
|
274
|
+
### Auth
|
|
275
|
+
|
|
276
|
+
Subscription-based via Anthropic. `claude auth status --json` returns `{ loggedIn, email, subscriptionType, orgName, plan }`. `POST /api/auth-login?provider=claude` shells `claude auth login` (browser OAuth flow).
|
|
277
|
+
|
|
278
|
+
API-key fallback: if `ANTHROPIC_API_KEY` is set in the spawned process env, the CLI uses it; otherwise it falls back to subscription auth from `~/.claude/.credentials.json`.
|
|
279
|
+
|
|
280
|
+
### Capability detection
|
|
281
|
+
|
|
282
|
+
`claude --version` → version string. `capabilities.ts` parses this and the help output to detect supported efforts (low/medium/high/xhigh/max), available models, and tool flags. Re-probed every 4 hours.
|
|
283
|
+
|
|
284
|
+
### Quirks
|
|
285
|
+
|
|
286
|
+
- **API overload retry loop** - `overloaded_error` and `{"type":"error"}` envelopes from the CLI are caught, surfaced as `system_notice`, and retried with 15s/30s/60s backoff up to 3 attempts. Same session id, so retries are idempotent. Implemented in the result path inside `claude.ts`.
|
|
287
|
+
- **Throttle detection** - stderr regexes catch "usage limit reached", "try again at HH:MM", "resets at <ISO>". Translated to `quota.markThrottled('claude', errorText, resetsAt)`.
|
|
288
|
+
- **Output cap** - accumulated text is capped at `MAX_WORKER_OUTPUT_BYTES = 50 MB` (override via `ARCO_MAX_WORKER_OUTPUT_BYTES` env). Beyond that, Arco emits a truncation notice and forces the worker to settle. The 32 GB tree-RSS guard handles actual memory runaways; the text cap is the secondary safety net for "model went berserk printing forever."
|
|
289
|
+
- **Image attachments** - sent as stream-json `content` blocks (5 MB per image). Non-image attachments are appended as `[attached file: <path>]` references in the prompt text.
|
|
290
|
+
- **Concurrent-writer guard** - the JSONL watcher inspects new entries' `entrypoint` field. If a foreign (`!= 'sdk-cli'`) entrypoint appears, Arco fires `[WARN] Concurrent writer detected on session <uuid>...` and refuses new turns for 60 seconds. Operator must Handoff to recover.
|
|
291
|
+
|
|
292
|
+
### Ultracode (sticky, CLI-only)
|
|
293
|
+
|
|
294
|
+
A per-tab sticky mode (`WorkflowConfig.ultracode`, default off) that puts the tab in the same deep multi-agent mode as `ultracode` in the Claude CLI. The harness `WorkflowTool` and the `ultracode` keyword-trigger live **only inside the `claude` binary** (confirmed by disassembly: `WorkflowTool`, `workflowKeywordTriggerEnabled`, `WorkflowsDir`); Native's raw `@anthropic-ai/sdk` has no Workflow executor. So ultracode is a property of the **CLI transport** - Arco routes the turn through the real binary rather than reimplementing the fan-out.
|
|
295
|
+
|
|
296
|
+
- **Forcing.** `turnEngine` resolves `ultracode` from `wf.config` and, when on, forces `claudeTransport='cli'` **at turn time without overwriting** the stored `claudeTransport` - so the operator's base transport (e.g. `native`) is preserved and restores itself when ultracode is turned off. `claude.ts` then: prepends the `ultracode:` keyword to the prompt (`_launch`), forces `--effort xhigh`, and ensures `Workflow` survives any restricted `--tools` allowlist (`buildArgs`). Internally ultracode = `xhigh` + a separate `ultracode:true` flag; `--effort` itself only accepts `low|medium|high|xhigh|max`.
|
|
297
|
+
- **The two-result wrinkle (load-bearing).** An ultracode turn runs the WorkflowTool's subagent fleet in the **background**, so one `claude -p` process emits **two `result` events**: an early "workflow launched" ack, then the real synthesis when the fleet finishes (the process waits and exits 0 only after the last). The naive integration settles the turn on the first result (the `settled` flag in `WorkerManager.ts`, fed by `ClaudeWorker` emitting `result` per parser event) → the operator sees the ack as the answer and the synthesis is dropped. **Fix, gated on `config.ultracode`:** in `claude.ts`, `parser.on('result')` HOLDS each result (`_heldResult`) instead of emitting and surfaces a superseded prior as a progress `system_notice`; the `exit` handler FLUSHES the last held result as the canonical turn result. Normal (non-ultracode) turns are byte-identical. See [Gotchas: Provider / worker plumbing](GOTCHAS.md#provider--worker-plumbing).
|
|
298
|
+
- **Round-trip to Native is safe by construction.** Native replay skips all tool_use/tool_result events and rebuilds from clean USER/ASSISTANT text pairs, so flipping back to Native after an ultracode turn never tries to reconstruct the `Workflow` blocks - it sees only the final synthesis (which is a clean text turn).
|
|
299
|
+
- **Transparency / safety.** Ultracode runs unattended with full access (it needs AUTO - headless `-p` can't answer permission prompts) and spends heavily (a fleet per turn). The full Workflow script is captured in the `Workflow` tool_use (surfaced in the Activity tab); per-subagent detail lives in the harness workflow journal. The DEBAG review gate is Native-only and does **not** cover CLI ultracode turns. UI: CONFIG → TRANSPORT toggle, a `⚡ ULTRACODE` creation-form box, and an always-visible composer pill. Acceptance smoke: `npm run smoke:ultracode` (manual; spends real quota).
|
|
300
|
+
|
|
301
|
+
### Cluster mode
|
|
302
|
+
|
|
303
|
+
When a CLI tab is a cluster member (`clusterStore.getClusterIdForWorkflow(workflowId) !== undefined`), every `claude` spawn picks up four extra inputs:
|
|
304
|
+
|
|
305
|
+
1. **`--mcp-config <abs-path>`.** `mcpConfigWriter.writeFor(cwd, workflowId, clusterId, port)` writes a per-workflow `.arco/<wfid>/mcp-config.json` containing one `mcpServers.arco-cluster` entry. The CLI spawns a per-spawn stdio MCP child from that entry - one child per `claude` invocation, NOT per-cluster by design.
|
|
306
|
+
2. **Plan block** appended to `--append-system-prompt`. The cluster's shared `plan.md` (≤8 KB) rendered as `--- Shared cluster plan ---\n<body>`.
|
|
307
|
+
3. **Role block** appended after the plan. `Your role in this cluster: <role>` when this member's role hint is set in `clusterStore.memberRoles`.
|
|
308
|
+
4. **Peer-mailbox prologue** prepended ahead of plan + role. Drained from the recipient's mailbox at turn start (same path Native uses - `drainPeerMailbox` in `seedWorker.ts`), emitting `peer_message_received` per drained item BEFORE the operator's `user_message_echo` (events.jsonl ordering rule).
|
|
309
|
+
|
|
310
|
+
Order is **peer prologue → plan → role → operator's existing appendSystemPrompt content** so the model reads urgent peer context first, reference plan second, framing role third (parity with Native's `buildSystemBlocks`). Combined `finalAppend` is soft-capped at 16 KB for the CLI path; the existing 64 KB tmpfile fallback (`--append-system-prompt-file`) handles overflow either way.
|
|
311
|
+
|
|
312
|
+
`mcp-config.json` shape (verified against Claude CLI 2.1.138 in the smoke environment):
|
|
313
|
+
|
|
314
|
+
```json
|
|
315
|
+
{
|
|
316
|
+
"mcpServers": {
|
|
317
|
+
"arco-cluster": {
|
|
318
|
+
"command": "npx",
|
|
319
|
+
"args": [
|
|
320
|
+
"tsx",
|
|
321
|
+
"<abs>/server/src/mcp/clusterMcpServer.ts",
|
|
322
|
+
"<clusterId>",
|
|
323
|
+
"<workflowId>",
|
|
324
|
+
"<arcoPort>"
|
|
325
|
+
]
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
In production builds (`NODE_ENV=production`), `command` is `node` and `args[0]` is `<abs>/server/dist/mcp/clusterMcpServer.js` - no leading `tsx`. The dev path uses `tsx` so an operator running `npm run dev:server` doesn't need a separate build step.
|
|
332
|
+
|
|
333
|
+
**Why stdio, not SSE.** Anthropic's Claude CLI accepts both stdio and SSE MCP transports via `mcp-config.json`. Stdio is simpler (no port allocation, no auth, no lifecycle management beyond claude's own child-process supervision) and the per-spawn child is short-lived so the SSE benefits (one long-lived server) don't apply. The CLI handles all child-process lifecycle: spawn at claude start, kill at claude exit.
|
|
334
|
+
|
|
335
|
+
**Tool names on the wire.** Claude CLI surfaces all cluster tools namespaced `mcp__arco-cluster__<tool>` (Anthropic's convention is `mcp__<server-name>__<tool-name>`) - the 3 peer-messaging tools (`peer_list` / `peer_send` / `peer_read`), the 3 shared-plan tools (`cluster_plan_read` / `cluster_plan_tick` / `cluster_plan_write`), and 11 task-board tools (`cluster_task_*`) that are filtered out when no board is attached. Function signatures match Native's bare `peer_list` / `peer_send` / `peer_read` / ... so the model treats them identically regardless of transport.
|
|
336
|
+
|
|
337
|
+
**MCP child lifecycle.** The child reads stdin (MCP wire), writes stdout (MCP wire), and writes stderr (logging). Each tool call → one `fetch` against `http://127.0.0.1:<arcoPort>/api/clusters/<clusterId>/peer/<op>` → translated back to the MCP result shape. Policy rejections from the REST surface (`unknown_peer`, `budget_exhausted`, `content_too_large`) become `isError: true` MCP results so the model sees a tool error rather than a silent success. The child has no persistent state - it dies cleanly when claude exits.
|
|
338
|
+
|
|
339
|
+
**`mcp-config.json` cleanup.** When a workflow leaves a cluster (`handleClusterDelete` / `handleClusterMemberRemove`), the server best-effort `rm`s the file via `mcpConfigWriter.cleanupFor`. The next CLI spawn on a member with no clusterId would otherwise still see the stale config and try to launch an MCP child for a cluster that no longer exists - the child would 404 on every tool call (the REST surface checks the cluster exists before dispatching to `clusterPeerOps`), but the operator-visible churn is wasted work.
|
|
340
|
+
|
|
341
|
+
### Registry MCP
|
|
342
|
+
|
|
343
|
+
Beyond the built-in `arco-cluster` + `codebase-memory` entries, CLI Claude also gets the operator-curated **MCP registry** servers a tab has enabled. They are merged into the same `.arco/<wfid>/mcp-config.json` (via `McpConfigOptions.registryServers`, namespaced `reg-<id8>` so they can't collide with the built-ins). The **dangerous-tool denylist is ENFORCED here**: dangerous-and-unticked tools of enabled servers are appended as `--disallowedTools "mcp__<key>__<tool>,..."`. **Verified** (Claude CLI 2.1.160): `--disallowedTools` composes with `--dangerously-skip-permissions` - the named tool is removed from the model's available set entirely, while non-listed tools of the same server still work. The operator's per-tab `disabledTools` (DD11b) ride the same `--disallowedTools` flag - a disabled tool the operator never probed (so it's not in the cached tool list) is still added by name so it can't slip through. Full model + storage + protocol detail: `docs/MCP_REGISTRY.md`.
|
|
344
|
+
|
|
345
|
+
### Native transport
|
|
346
|
+
|
|
347
|
+
`server/src/providers/claude-native/` - long-lived per-workflow worker that talks directly to Anthropic's Messages API via `@anthropic-ai/sdk@^0.91.1` (Pi-pinned). The agent loop runs in Arco's process so the mid-turn steer hook fires between tool-result append and the next API round-trip.
|
|
348
|
+
|
|
349
|
+
**File layout (post-P0 carve-out).** `worker.ts` holds the `ClaudeNativeWorker` class and the turn/stream/error loop. To keep it under the 2000-line cap, the *stateless* leaf helpers live in siblings and are re-exported from `worker.ts` so existing `from './worker.js'` import paths still resolve:
|
|
350
|
+
- `modelParams.ts` - token ceilings (`adaptiveMaxTokensForModel`, `chooseMaxTokens`), thinking/effort params (`buildThinkingParams`, `shouldSendInterleavedThinkingBeta`), context-window lookup (`lookupCtx`).
|
|
351
|
+
- `contentBlocks.ts` - content-block types (`AnyContentBlock`, `ToolUseBlock`, `MessageParam`, ...), image/user-message assembly (`buildUserMessageContent`), server-tool defs (`CLAUDE_CODE_SERVER_TOOLS`), context-management edits (`buildContextManagementEditsForRequest`), the tool-loop predicate (`shouldContinueNativeToolLoop`), and the trailing-thinking stripper (`stripTrailingThinkingFromContent`).
|
|
352
|
+
- `workerHelpers.ts` - `replayMessagesFromEvents`, `mergeUsage`, `truncateOutput`, `planParserAdvisories`, `sleepWithSignal`.
|
|
353
|
+
These moves are pure (no behavior change); `workerParity.test.ts` / `stripTrailingThinking.test.ts` still import the same names from `worker.js`.
|
|
354
|
+
|
|
355
|
+
#### Auth
|
|
356
|
+
|
|
357
|
+
OAuth subscription flow lifted verbatim from `earendil-works/pi`:
|
|
358
|
+
|
|
359
|
+
- `CLIENT_ID = 9d1c250a-e61b-44d9-88ed-5944d1962f5e` (stored as base64 + `atob` at module load - minor protection against repo scrapes; not a security boundary).
|
|
360
|
+
- Callback `127.0.0.1:53692/callback` (overridable via `ARCO_OAUTH_CALLBACK_HOST`). On `EADDRINUSE` we fall back to manual-paste mode automatically.
|
|
361
|
+
- Tokens persist to `~/.arco/auth.json` under `claude.native` - mode 0600, parent dir 0700, atomic tmp+rename, `proper-lockfile` around the read-refresh-write cycle. Lock is **not** held across the SDK call.
|
|
362
|
+
- Refresh runs 30s ahead of expiry. On `400 invalid_grant`, the loop emits `[AUTH:claude]` system_notice and fails the turn; after three consecutive auth failures within the workflow the notice escalates and auto-retry stops until the operator re-logs in.
|
|
363
|
+
- Re-login goes through `POST /api/auth/claude-native/login` (returns the authorize URL + a `manualFallback` flag); the callback is captured by the local server or accepted via `POST /api/auth/claude-native/callback` (`{ url }` body) for headless / port-blocked operators.
|
|
364
|
+
|
|
365
|
+
#### Headers (wire fingerprint)
|
|
366
|
+
|
|
367
|
+
| Header | Value | Notes |
|
|
368
|
+
|---|---|---|
|
|
369
|
+
| `anthropic-beta` | `claude-code-20250219,oauth-2025-04-20` | `+,interleaved-thinking-2025-05-14` is appended only for non-adaptive Anthropic thinking paths by default. Current Pi skips it for adaptive-thinking models because those models have interleaving built in. CONFIG has a Native-only debug override (`claudeNativeForceInterleavedThinkingBeta`) to force it for A/B testing. |
|
|
370
|
+
| `user-agent` | `claude-cli/2.1.280` | Pinned in `wireFingerprint.ts`, **not** tracked from `claude --version`. Anthropic gates new models on it (Fable 5.1 needed ≥2.1.251; bumped again for Opus 5.5). Bump only on an observed rejection. |
|
|
371
|
+
| `x-app` | `cli` | Constant. |
|
|
372
|
+
| `anthropic-dangerous-direct-browser-access` | `true` | Current Pi sends it on the SDK `authToken` path; Arco mirrors that wire fingerprint. |
|
|
373
|
+
|
|
374
|
+
Adaptive-thinking `max_tokens` follows current Pi model metadata: Fable/Mythos 5, Opus 5 / 5.5, Opus 4.6/4.7/4.8, Sonnet 5, and the `opus`/`opus[1m]` family aliases use 128K output; Sonnet 4.6 uses 64K. Effort still rides through `output_config.effort`; the cap is headroom, not a request to spend it. Capability decisions (thinking params, max_tokens, ctx window, catalog ctx-management gating) key on `capModel()` - the concrete id Anthropic echoed for an alias tab (persisted as `meta.resolvedModelId`, announced via the `model_resolved` event). The request `model:` field is **always a concrete id**: the Messages API does not resolve family aliases (`model: "opus"` → `not_found_error: model: opus` - only the Claude Code CLI resolves them, client-side), so `requestModel()` maps an alias through `resolveClaudeAliasFromCatalog()` to the newest in-family catalog id before dispatch. The tab's configured model stays the alias, so auto-tracking lives in the resolution rather than on the wire. A turn ending `stop_reason: 'refusal'` (HTTP 200) surfaces as a `system_notice` + durable `primary_refusal` event instead of a blank turn. See [Gotchas: Claude Native transport](GOTCHAS.md#claude-native-transport) for both invariants.
|
|
375
|
+
|
|
376
|
+
The first system block is hardcoded to `"You are Claude Code, Anthropic's official CLI for Claude."` and marked `cache_control: { type: 'ephemeral', ttl: '1h' }` so all Native tabs on a machine share the cached prefix. The appendSystemPrompt block (rendered transcript / skills / CLAUDE.md) carries the standard ephemeral marker.
|
|
377
|
+
|
|
378
|
+
**Turn-discipline block.** A standing, cache-stable block sits in `buildSystemBlocks` after the env note and *before* the operator's appendSystemPrompt/systemPrompt (so operator instructions still win): the operator is not watching and cannot answer mid-turn; keep working until the request is complete or genuinely blocked; never end a turn on a status update / plan / promise of future work; and if a delegated `Task` child fails or returns nonsense, say so explicitly and adapt rather than silently working around it. The real Claude Code CLI ships this doctrine; Native's forced-first block is only the one-line identity, so without it adaptive models checkpoint mid-task ("Continuing now." → `end_turn` → idle).
|
|
379
|
+
|
|
380
|
+
#### Thinking visibility (adaptive-thinking display)
|
|
381
|
+
|
|
382
|
+
Per-tab `WorkflowConfig.claudeNativeThinkingDisplay` (`'omitted'` default | `'summarized'` | `'updates'`, Native-only). `buildThinkingParams(model, effort, display)` stamps `thinking: { type: 'adaptive', display }` on adaptive-thinking models. `omitted` is Claude-Code parity, but a multi-minute Opus/Fable adaptive think then streams only `ping` events - nothing bumps `lastPrimaryEventAt`, so the client's 30s stuck banner fires on a healthy worker (547s of legitimate silence observed with Fable 5 @ high). The CONFIG-tab **THINKING VISIBILITY** picker flips to `summarized`, streaming thinking deltas into the Activity tab (which also refresh the stuck clock). The round-trip stderr label reads `adaptive(effort,display)`. Primitives leave it unset ⇒ `omitted`; **Task children inherit** the parent's value.
|
|
383
|
+
|
|
384
|
+
**Thinking display is not retention.** `updates` requests short progress notes on
|
|
385
|
+
supported models (Fable 5 / 5.1, Mythos 5.1, Opus 5.5) but cannot guarantee them:
|
|
386
|
+
the 2026-09-01 Fable 5.1 Native acceptance emitted none. On Opus 5.5 the notes Opus 5
|
|
387
|
+
returned as `text` arrive as thinking blocks, so `omitted` hides them - prefer
|
|
388
|
+
`summarized` there. Binding-enforcing Fable/Mythos 5.1 and Opus 5.5 keep thinking
|
|
389
|
+
and an append-only prefix regardless of display mode. See `FABLE_51_APPEND_ONLY_PLAN.md`.
|
|
390
|
+
|
|
391
|
+
#### Tool surface (7a)
|
|
392
|
+
|
|
393
|
+
Read / Write / Edit / Bash / Grep / Glob / KillShell / TodoWrite. Path validation reuses `resolveWithinCwd`. Per-tool output cap 64 KB; Read gets 256 KB (looser than Ollama's 32 KB - Claude windows are larger). Edit refuses if the target file wasn't Read in this turn (Claude Code parity). Bash registers each spawned shell against the worker's per-turn shell map so KillShell + cancel can target it; `run_in_background:true` returns a `shellId` immediately.
|
|
394
|
+
|
|
395
|
+
**Edit apply.** When the exact `old_string` match fails, `Edit` (`editApply.ts`) falls through an ordered set of fuzzy strategies - `escape-drift` → `trailing-ws` → `indent` - each of which must resolve to exactly one location unless `replace_all`; an ambiguous fuzzy match is refused with a `closestLinesHint` rather than guessed. **Bash output** is bounded-tail: the model sees the last ~64 KB of combined chronological stdout+stderr through one accumulator, while the COMPLETE output spills to a per-run tempfile so a noisy command can't evict context. **File mutations** are serialized through a module-level per-realpath queue (`file-mutation-queue.ts`, keyed by `realpath` so symlink aliases share one queue) - this closes the silent edit-loss window when two Native workers on one cwd (e.g. cluster members) write the same file; a write that actually had to wait emits `file_mutation_queued`.
|
|
396
|
+
|
|
397
|
+
Native also advertises Anthropic server-side `web_search_20260209` and `web_fetch_20260309` tools as `web_search` / `web_fetch`, plus `code_execution_20260120` so Anthropic's 2026 server-tool dynamic filtering path is available. These are not Arco-local tools: Anthropic executes them server-side and returns `server_tool_use` plus `web_search_tool_result` / `web_fetch_tool_result` content blocks. The Native worker surfaces the invocation in activity, but never routes it through `executeNativeTool()`. After the final answer, retained Native history is pruned of completed server-tool evidence, citation metadata, and hidden thinking; the model has already integrated the useful findings, and the next-turn prompt should not retain hundreds of KB of raw server-search evidence.
|
|
398
|
+
|
|
399
|
+
**Per-turn web budget (`max_uses`).** Each turn `buildClaudeServerTools()` (`contentBlocks.ts`) stamps a `max_uses` on the `web_search` / `web_fetch` defs - an **Arco-set per-turn ceiling, not an Anthropic account limit**. When a turn exhausts it the model reports web access ran out; it resets next turn. The default is `DEFAULT_WEB_TOOL_MAX_USES = 15`; operators raise/lower it per-tab via CONFIG → **WEB LOOKUPS / TURN** (`WorkflowConfig.webSearchMaxUses`, clamped server-side to `[1, 50]`, persisted in `meta.json`). Deep Research overrides the same field per-spawn with the run's `maxRounds`. CLI transport ignores all this - it routes web tooling through the `claude` binary, which budgets itself.
|
|
400
|
+
|
|
401
|
+
`LS` is intentionally absent - Glob covers it (Pi parity). Skipped in v1: `NotebookEdit`, the Skill tool, plugins, Claude-Code's agents system. Operators who need any of these stay on CLI transport for those tabs. (Registry **MCP servers** are now supported in-process - see "Registry MCP tools" below.)
|
|
402
|
+
|
|
403
|
+
#### Tool posture (4.1)
|
|
404
|
+
|
|
405
|
+
A per-tab posture pill scopes the *exposed* toolset without changing what any tool does. Four postures (`toolPosture.ts`, the single source of truth): `full` (default - no filtering; the tool array stays byte-identical for the prefix cache), `coding`, `chat`, `review`. Each non-`full` posture keeps a curated CORE set and scrubs the rest; dynamic opt-in tools (`mcp__*` / `peer_*` / `ctx_*`) are NEVER stripped by a posture - the operator added them explicitly. Set via `set_tool_posture` (client→server), acked with `tool_posture_set`. **Session-local**: the server sets `WorkflowState.toolPosture` (never `meta.json`) and logs the change to `events.jsonl` for transcript review, so it does not survive a server restart. Takes effect on the next turn; flipping posture re-breaks the prefix cache once, then re-warms. Native-only.
|
|
406
|
+
|
|
407
|
+
#### Registry MCP tools
|
|
408
|
+
|
|
409
|
+
The Native worker is a first-class MCP host for the operator's enabled-and-allowed registry servers (`docs/MCP_REGISTRY.md`). It opens a long-lived `McpSession` (`server/src/mcp/client.ts connectServer`) per allowed server, keyed by `reg-<id8>`, reconciled at the top of every `runTurn` (`reconcileMcpSessions` - open newly-allowed, close newly-removed; sessions persist across turns). Each session's tools are appended to `buildToolDefs()` as `mcp__<key>__<tool>` defs via `registryTools.ts registryToolDefs`, which is the **authoritative denylist gate**: a dangerous-and-unticked tool is **omitted entirely** (the model never sees it - no runtime reject). `dispatchTool` routes `mcp__reg-...` calls to the matching session's `callTool`; a missing/closed/errored session returns a clean `[error] ...` and never throws into the turn loop. **MCP sessions are force-closed on `dispose()`** (tab close + after `handoff_complete`) - a leaked stdio child would otherwise outlive the worker (load-bearing; `docs/GOTCHAS.md`). `cancel()` deliberately does not touch sessions (they survive an operator CANCEL by design). A server's `inputSchema` with a top-level `oneOf`/`allOf`/`anyOf` (Anthropic 400s on those) is defensively flattened before the def is emitted.
|
|
410
|
+
|
|
411
|
+
**Env allowlist.** Each spawned MCP child's environment is built by `buildSafeEnv` (`server/src/mcp/client.ts`) - only a small allowlisted base (plus the `LC_*` / `XDG_*` families) and the server's declared `def.env` survive; the Arco host's full environment (Claude OAuth token, GitHub PAT, provider API keys) is NEVER inherited. **Per-server tool disable-list (DD11b).** A tab's per-server `disabledTools` (bare tool names) is honored at def-build time - `registryToolDefs` omits a disabled tool entirely, so the Native model never sees it (the in-process parity of the CLI `--disallowedTools` path).
|
|
412
|
+
|
|
413
|
+
#### Post-write LSP diagnostics (C3)
|
|
414
|
+
|
|
415
|
+
After a successful `Write`/`Edit`, the tool calls a **fire-and-forget** `ctx.onFileWritten?.(abs)` hook (wrapped in `try/catch` - a diagnostics failure must NEVER break the write; the write path is P0). The worker wires it to the `lspManager` subsystem (`server/src/lsp/`), which lazy-spawns the project's language server (`typescript-language-server` / `pyright` / `gopls` / `rust-analyzer`, whichever is on PATH), opens the changed file, and forwards the server's `publishDiagnostics` to the client as a workflow-scoped `diagnostics {file, items[]}` message (rendered as a count badge + list on the Activity tab). Absent server ⇒ silent no-op (operator installs the LSP server themselves - bring-your-own-upstream, same as the caveman output style). Lifecycle mirrors `llamacppManager` (one server per `(cwd, languageId)`, dedup, idle-reap, shutdown-kill). **Full detail: `docs/LSP.md`.**
|
|
416
|
+
|
|
417
|
+
** (WebFetch / WebSearch) - server-side.** The plan-doc spec called for ~150 LOC of local WebFetch + WebSearch with SSRF guard, Camoufox stealth fallback, and pluggable Brave/Tavily/Kagi/SearXNG providers. Not needed: Native authenticates as Claude Code (OAuth + the pinned `claude-cli/<version>` user-agent from `wireFingerprint.ts`) and advertises Anthropic's server-side web tools. Anthropic executes calls server-side. No local web implementation is used.
|
|
418
|
+
|
|
419
|
+
#### Tool surface (7b - Arco-integrated)
|
|
420
|
+
|
|
421
|
+
| Tool | Behavior | Edge cases |
|
|
422
|
+
|---|---|---|
|
|
423
|
+
| `EnterPlanMode` | Records the plan body to a real plan file under `.arco/plans/` (title = first non-empty line, fallback "Native plan"), attaches it to the workflow (the PLAN tab renders it via the existing plan-attach pipeline), broadcasts `plan_set { workflowId, plan, source: 'native-tool', planId }`, and sets `worker.planMode = true`. While plan mode is active, `Write` and `Edit` short-circuit with `[error] write tools disabled until ExitPlanMode`. The plan body is dry-run through the same `parsePlan` invariants ([Gotchas: Plan-review parsing invariants](GOTCHAS.md#plan-review-parsing-invariants)) and any advisories return as part of the tool result so the model can correct on the next turn - never rejected. A second `EnterPlanMode` while already in plan mode replaces the body. |
|
|
424
|
+
| `ExitPlanMode` | Clears `worker.planMode`. Broadcasts `plan_exited { workflowId, summary? }`. The plan stays attached to the workflow. |
|
|
425
|
+
| `AskUserQuestion` | Emits a `system_notice` with `[ASK:claude-native:<questionId>] <question>` (and `[ASK_OPTIONS:opt1 \| opt2]` line when `options` is set). The `AskUserQuestionNotice` component detects the sentinel and renders an inline reply form (text input or option chips). The operator's reply rides the `ask_user_question_reply` WS message; the worker resolves the awaiting Promise and the agent loop continues. **One open question per worker** - a second call while one is pending returns `[error] another question is awaiting response`. **No timeout** - the question stays open until answered or the turn is cancelled. Cancel rejects the awaiting Promise cleanly. |
|
|
426
|
+
| `Task` | Mints a child workflow (its own visible tab cloned from the parent's config), seeds with `prompt`, runs one primary turn, and returns the child's final assistant text as the tool result. Transport, output style, and thinking-visibility inherited (Native parent → Native child). The child config **unconditionally** pins `claudeTransport: 'native'` - the Task tool only exists on Native, and the old `=== 'native'` gate missed tabs riding the settings cascade, dropping their children onto the per-turn CLI where they failed closed with `Not logged in`. H30 also fixed a prior drop where the child ignored the parent's output-style pick. The tool description carries the **self-report doctrine** - the child is instructed to END with a concise, verifiable report (what it changed, what it ran to verify, what's left uncertain) so the parent can trust the result without re-deriving it. **Depth-1 only** - the child carries `claudeNativeTaskDisabled` so its tool registry drops `Task`; a recursive call returns `[error] Task is depth-capped at 1`. Cancel of the parent cascades into `childManager.killAll` and rejects the awaiting Promise with an AbortError-style result. SubagentStop hook fires from the worker on settle (success or error). |
|
|
427
|
+
| `TaskOutput` | Reads the in-flight or final accumulated text of a Task-spawned child. Result is prefixed with `[in-flight]` or `[settled]` so the model can decide whether to keep waiting. Output is tail-capped at 64 KB. **Only the spawning parent can read its children** - the `tasksByTaskId` map is per-worker; cross-tab `TaskOutput` requests return `[error] no such task`. The map entry is dropped on parent dispose. |
|
|
428
|
+
|
|
429
|
+
Plan-mode write gating applies to `Write`, `Edit`, and - via **DD11a** - registry MCP tools: while `planMode` is on, `registryToolDefs(..., planMode: true)` OMITS every non-read-only MCP tool from the toolset entirely, so the model can't mutate state through an MCP server during a plan turn (closing the gap where a model could route a write around the local write-tool short-circuit). **`Bash` is not gated** - detecting write-intent in arbitrary shell commands generically isn't worth the false-positive cost; operators relying on plan mode as a hard write barrier should rely on the surrounding sandbox / CI contract instead.
|
|
430
|
+
|
|
431
|
+
The new WS messages are minimal: `plan_set`, `plan_exited`, and `ask_user_question_reply` (the AskUserQuestion reply path; client → server). `plan_attached` is reused from the existing PLAN-tab pipeline so the body renders without a new endpoint.
|
|
432
|
+
|
|
433
|
+
#### Cluster peer tools (in-process)
|
|
434
|
+
|
|
435
|
+
When the Native worker is a cluster member (`config.clusterId` set), `getPeerToolDefinitions()` (`server/src/providers/claude-native/peerTools.ts`) registers up to 17 additional tool descriptors directly into the in-process `tools[]` array - no MCP child, no `--mcp-config` - the 11 `cluster_task_*` board tools are filtered out unless a task board is attached (`ctx.taskBoardAttached`):
|
|
436
|
+
|
|
437
|
+
- `peer_list` - return roster of cluster peers with displayName + role.
|
|
438
|
+
- `peer_send` - `{to, content}` (≤16 KB; 15 sends per sender per operator turn). Recipient sees the message as a system block prepended to their next operator turn (or, with operator-armed AUTO-PICKUP on, fires a turn on the idle recipient).
|
|
439
|
+
- `peer_read` - drain own mailbox mid-turn (consumes the same messages that would otherwise auto-inject on the next operator turn).
|
|
440
|
+
- `cluster_plan_read` - return the full canonical shared-plan body (`{title, body, updatedAt, byteLength}`). Read-only pull channel: the per-turn injected copy may be a truncated outline for oversize plans.
|
|
441
|
+
- `cluster_plan_tick` - flip a single `[ ]` ↔ `[x]` checkbox in the shared cluster plan by `taskText` substring or `lineIndex`. Returns before/after state.
|
|
442
|
+
- `cluster_plan_write` - write the shared cluster plan body (≤32 KB markdown). Convention: only the cluster director calls this. Model-driven writes are additive once a plan exists: the server rejects writes that remove existing checkbox tasks or change their `[ ]` / `[x]` status. Use `cluster_plan_tick` for status changes; destructive replace/clear remains operator-only through the PLAN tab.
|
|
443
|
+
|
|
444
|
+
Plus 11 board-gated `cluster_task_*` task-board tools (list / show / create / claim / update / heartbeat / link / unlink / comment / block / complete) when a board is attached.
|
|
445
|
+
|
|
446
|
+
**Restricted cluster members.** A BLIND member keeps its project cwd but the
|
|
447
|
+
turn engine withholds the normal cluster plan/board/roster/role/focus/
|
|
448
|
+
efficiency/progress context and registers only `peer_send` / `peer_read` from
|
|
449
|
+
the cluster surface. ISOLATED is a stricter Claude-Native-only bootstrap: the
|
|
450
|
+
worker cwd becomes
|
|
451
|
+
`~/.arco/clusters/<clusterId>/isolates/<wfid>/workspace`; Bash, KillShell,
|
|
452
|
+
Task, project prompt/resource discovery, attachments, hooks, skills,
|
|
453
|
+
knowledge/goal/codebase memory, and registry MCPs are omitted. The worker can
|
|
454
|
+
export bounded scratch files only through `peer_send artifact_paths`, which
|
|
455
|
+
copies them across the boundary on mailbox drain. Because a previously
|
|
456
|
+
informed session cannot be made blind retroactively, entering ISOLATED always
|
|
457
|
+
creates a fresh or replacement workflow and rejects history/task transfer.
|
|
458
|
+
|
|
459
|
+
CLI Claude and both Codex transports get the same peer surface via a stdio MCP child (`server/src/mcp/clusterMcpServer.ts`); Cursor gets it via an in-process loopback StreamableHTTP MCP server (`server/src/mcp/clusterMcpLoopback.ts`, ACP honors http/sse only) - see [Cluster mode](#cluster-mode) below and the [Cursor](#cursor) section. Wire-name parity: Native sees bare `peer_list`/`peer_send`/`peer_read`/etc.; CLI Claude sees the MCP-namespaced `mcp__arco-cluster__peer_list` shape. Function signatures match so the model treats them identically.
|
|
460
|
+
|
|
461
|
+
#### Hooks
|
|
462
|
+
|
|
463
|
+
`.claude/settings.json` discovery walks up from `cfg.cwd` collecting project hooks; user hooks at `~/.claude/settings.json` are read last. Project precedence per Claude Code's documented behavior. Cached on the worker; refreshed on `ensureStarted` (re-edits picked up by closing/reopening the tab).
|
|
464
|
+
|
|
465
|
+
**Project-trust gate.** Project-local agent surfaces that the worker would otherwise honor - the repo's `CLAUDE.md` (`claudeMdDiscovery.ts`), its `.claude/skills`, and its `.claude/settings.json` hooks - are suppressed until the operator vouches for the repo. `projectTrust.ts` resolves an effective trust for the cwd from a USER/GLOBAL-scope `~/.arco/trust.json` (deepest recorded ancestor wins) in a two-pass bootstrap, so a cloned repo can't self-grant trust by shipping its own trust file. Decision values are `always` / `never` (`ask` until the operator chooses); the gate logs its decision plus the suppressed-resource summary, and a recorded decision is one reversible line in `trust.json`. This closes the cloned-repo prompt-injection vector.
|
|
466
|
+
|
|
467
|
+
| Event | Behavior |
|
|
468
|
+
|---|---|
|
|
469
|
+
| `PreToolUse` | Fires inside the dispatcher before each tool call. Non-zero exit blocks the tool; stderr surfaces as the tool result. |
|
|
470
|
+
| `PostToolUse` | Fires after each tool returns. Exit code informational; stderr appended to result. |
|
|
471
|
+
| `UserPromptSubmit` | Fires at the top of `runTurn`. Non-zero exit aborts the turn with stderr as a `system_notice`. |
|
|
472
|
+
| `Stop` | Fires when the loop emits `result`. Informational. |
|
|
473
|
+
| `SubagentStop` | Fires from inside the `Task` tool wrapper when the spawned child settles (success or error). Payload includes `taskId`, `childWorkflowId`, `status: 'completed' \| 'error'`, and `finalTextLength` / `error` accordingly. Informational - exit code does not block. |
|
|
474
|
+
| `Notification` | Fires alongside `system_notice` emissions. |
|
|
475
|
+
| `PreCompact` | Documented no-op pass-through (Native does not run a local compact hook; provider-side compaction and Handoff cover context management). |
|
|
476
|
+
|
|
477
|
+
Default hook timeout 30s; per-hook `timeout` field overrides. Timed-out hooks get SIGTERM then SIGKILL after 2s grace; treated as non-zero exit. `CLAUDE_PROJECT_DIR=cfg.cwd` is set on the subprocess env; the per-event JSON payload is written to stdin. Inherited env minus any `ARCO_*` debug flags. Hook subprocesses register against the per-turn shell map so cancel + KillShell tear them down.
|
|
478
|
+
|
|
479
|
+
**Hook stdout parsing.** Native parses the documented Claude Code shape from each hook's stdout via `parseHookOutput` (`server/src/providers/claude-native/hooks.ts`). Tolerant: non-JSON stdout returns `{}`, malformed JSON returns `{}`, non-object top-level returns `{}` - never throws. Recognized fields:
|
|
480
|
+
|
|
481
|
+
- `hookSpecificOutput.updatedInput` (PreToolUse) - merged into the tool input via `{ ...input, ...updatedInput }` (last-write-wins across multiple hooks). Each rewrite emits a `hook_rewrote_input` event so transcript review can attribute the mutation back to its origin.
|
|
482
|
+
- `hookSpecificOutput.additionalContext` (PostToolUse) - appended to the tool_result the model sees on the next turn.
|
|
483
|
+
- `hookSpecificOutput.permissionDecision` - recognized but not yet acted on (today's PreToolUse-block behavior is exit-code-driven; permission decisions slot here for a future revision).
|
|
484
|
+
- `decision: "block"` (PostToolUse) - synthesizes a `[PostToolUse hook blocked]` is_error tool_result and the model retries.
|
|
485
|
+
- `reason` - surfaced in the synthetic tool_result for blocking decisions.
|
|
486
|
+
|
|
487
|
+
The parser is the load-bearing piece for using rtk (`rtk-ai/rtk`) on Native: drop rtk into `~/.claude/settings.json` once and Native + CLI both apply its tool_input rewrites. Without B0's parser, Native fired the hook but discarded the rewrite.
|
|
488
|
+
|
|
489
|
+
**Pre-tool-use guards.** `pretoolGuards.ts` runs after the PreToolUse hook fold and before `executeNativeTool`. Today: `checkConfigProtection` blocks `Edit`/`Write`/`MultiEdit` against lint/format/type-check config (`.eslintrc*`, `.prettierrc*`, `tsconfig.json`, `tsconfig.*.json`, `.editorconfig`, `.ruff.toml`, etc.) by basename match on the resolved absolute path. Returns a synthetic `[blocked by config-protection]` tool_result that nudges the model to fix the code instead of weakening the gate. Emits `tool_gate_triggered` with `gate: "config-protection"`. Default ON; per-tab CONFIG-tab toggle deferred.
|
|
490
|
+
|
|
491
|
+
Three more deterministic floors run in the same dispatcher pre-flight (all static rules, no model judgment): **H17 hardline-command floor** (`detectHardlineCommand` / `checkHardlineCommand`) refuses a Bash command that would restart or kill the Arco service (`systemctl ... arco...`) or `rm -rf` the repo / cwd / `$HOME` / `/` / `*` - returns `[blocked by hardline-command-floor]`. It's a coarse always-on floor, not a sandbox: nothing the model does from a turn needs to restart Arco or wipe the repo. **H47 sensitive-path write floor** (`gateSensitiveWrite`, `tools.ts`) gates a `Write` / `Edit` whose resolved path is a `.env*` file or sits under a `.git` / `.ssh` segment behind an explicit operator allow via the AskUserQuestion machinery - fail-closed (refused outright when no approval channel is wired). **H62 partial-read→full-write warning** (`checkPartialReadFullWrite`) flags a full-file `Write` to a file only partially `Read` this turn, so the model doesn't clobber the untouched tail.
|
|
492
|
+
|
|
493
|
+
**In-turn tool-loop guardrail.** `toolLoopGuard.ts` watches for the same `(tool, args)` repeating within one operator turn - the in-turn sibling of 3.1's cross-turn stuck-worker breaker. Default posture is warnings-only: a `tool_loop_warning` event + `system_notice`. The hard-stop (abort the loop) is opt-in via `ARCO_TOOL_LOOP_GUARD=stop`.
|
|
494
|
+
|
|
495
|
+
**Tool-result filtering.** `filterToolResult.ts` is a pure-TS staged pipeline applied to a single tool_result before it enters `messages[]`. Plugged into `dispatchTool` between `executeNativeTool` and the PostToolUse hook fold so operator-curated hook stderr / `additionalContext` stays unfiltered. Stages, all optional per pack:
|
|
496
|
+
|
|
497
|
+
1. `strip_ansi` - removes CSI / OSC / single-byte ESC sequences.
|
|
498
|
+
2. `replace[]` - `{ pattern: RegExp, replacement: string }[]` substitutions.
|
|
499
|
+
3. `skip[]` / `keep[]` - line-level drop (`keep` overrides `skip`).
|
|
500
|
+
4. `dedup` - collapses runs of ≥3 identical lines into `... (xN)`.
|
|
501
|
+
5. `parse` - optional structured parser (cargo-test, jest, pytest).
|
|
502
|
+
6. `head_cap` / `tail_cap` - byte caps with truncation marker.
|
|
503
|
+
7. `branch_on_exit` - flips a `head_cap` configuration to `tail_cap` when `exitCode !== 0` (errors land at the end of compiler / test output).
|
|
504
|
+
|
|
505
|
+
Per-pack configs live under `claude-native/filterConfigs/`. Conservative ship-day list (resolved by `resolveFilterPack(toolName, input, mode)`):
|
|
506
|
+
|
|
507
|
+
| File | Targets | Behavior |
|
|
508
|
+
|---|---|---|
|
|
509
|
+
| `bash-cargo-test.ts` | `cargo test` | green: drop `... ok` rows; red: every FAILED line + first 5 lines per `---- ... stdout ----` block |
|
|
510
|
+
| `bash-jest-vitest.ts` | `jest`, `vitest`, `npx jest`, `npx vitest` | green: drop `✓ / PASS` rows; red: keep `✗` markers + summary |
|
|
511
|
+
| `bash-pytest.ts` | `pytest`, `python -m pytest` | green: drop `PASSED`; red: preserve `FAILURES` section verbatim |
|
|
512
|
+
| `bash-git-status.ts` | `git status` | strip `(use "git ...")` hints + branch banner; dedup blank runs |
|
|
513
|
+
| `bash-find.ts` | `find` | head_cap 16 KB; tail_cap on non-zero exit |
|
|
514
|
+
| `bash-grep.ts` | `grep`, `rg`, `egrep`, `fgrep` | head_cap 16 KB; tail_cap on non-zero exit |
|
|
515
|
+
| `bash-ls.ts` | `ls`, `la`, `ll` | head_cap 8 KB |
|
|
516
|
+
|
|
517
|
+
Modes: `off` (default) → no pack runs. `conservative` → ship-day list above. `aggressive` → reserved for measured-and-promoted packs (npm install / cargo build / docker build / git push were named-deferred in DEVLOG until conservative defaults have a week of operator data).
|
|
518
|
+
|
|
519
|
+
When the filter actually shrinks output, the worker writes the pre-filter raw bytes to `<cwd>/.arco/workflows/<wfId>/artifacts/raw-tools/<turnId>-<toolUseId>.txt.gz` and stamps the workspace-relative path on the emitted `tool_filtered` event. Recovery is one `zcat` away - reversibility is required. The chat-side `FilteredChip` (`ToolCallPill`) renders `[filtered: 12.3 KB → 1.4 KB · cargo-test-drop-passing]` and copies the path to clipboard on click.
|
|
520
|
+
|
|
521
|
+
**Adding a new filter pack.** (1) Drop a file under `filterConfigs/` returning a `FilterPack`. (2) Wire its classifier into `filterConfigs/index.ts`'s `classifyBashCommand`. (3) Add a round-trip test to `filterToolResult.test.ts` (golden green input → expected line count drop; golden red input → asserted preserved markers). (4) Ship as `conservative` only after a week of operator data; promote to `aggressive` in a follow-up phase.
|
|
522
|
+
|
|
523
|
+
**Auto-compaction.** Provider uses Arco compaction near 90% for Claude Native and Ollama, reserving 10% headroom; Claude CLI and Codex retain their own behavior. Explicit per-worker and cluster policies win. Older Native `efficiencyAutoCompact` values migrate from conservative to On at 80%, aggressive to On at 70%, and off to Provider. Claude API compaction is an optional per-tab beta under ADVANCED, off for new tabs. When it is on, the Provider default does not start a second Native compaction.
|
|
524
|
+
|
|
525
|
+
**Output style.** Operator-armed terseness picker on the CONFIG tab and New Workflow / Cluster creator. Three discrete levels - `normal` (default; no addendum), `lite` (drop fillers / hedging / pleasantries; keep grammar), `terse` (also drop articles, fragments OK, short synonyms; named `caveman` before 2026-05-10). `outputStyleAddendum(level)` (`server/src/providers/outputStyle.ts`) returns the provider prompt text. Claude Native appends it as a system block after existing project-context blocks, with `cache_control: ephemeral` so it participates in the prefix cache. Codex app-server folds the same addendum into its stable prompt prefix before the `---` separator. `normal` returns null and emits no extra block. Switching takes effect on the next turn. Claude CLI, Codex exec, local transports ignore it because Arco has no equivalent stable request-shaping point there. Each level's text leads with explicit "auto-clarity" rules (security warnings, irreversible operations, multi-step sequences -> full prose) and a verbatim-preserve list (code blocks, error strings, file paths, function names, API identifiers, command flags, regex patterns). Cuts *output* tokens, not input - measure via the `primary_turn_token_usage` event.
|
|
526
|
+
|
|
527
|
+
**Adding a new level (e.g., a hypothetical `ultra`):** must pass operator sign-off + a plan-doc update first. The level's text MUST preserve code blocks / error strings / file paths verbatim and MUST NOT compress security warnings, irreversible operations, or order-sensitive multi-step sequences. The auto-clarity escape hatch in each level enforces this.
|
|
528
|
+
|
|
529
|
+
**Output-style scope for primitives.** Review / Handoff seed / DOCS / GIT spawn paths force `outputStyle: 'normal'` regardless of the source tab's pick. Hard-coded at four sites: `runReviewer.ts` (reviewer WorkerConfig), `exportContext.ts` (CLI handoff path, Native handoff path, fresh-summarizer path), and `handleUserMessage` (overrides outputStyle when `UserMessage.primitive === 'docs' | 'git'`, set by the in-tab DOCS / GIT composer dialogs). DOCS / GIT new-tab spawn forces normal client-side via `spawnConfigFromRunAs`. Spawn-from-here DOES inherit - operator flips in the child tab if needed.
|
|
530
|
+
|
|
531
|
+
#### Review safe-mode - edit-before-approve gate (DEBAG)
|
|
532
|
+
|
|
533
|
+
Native-only operator-armed review safe-mode gate. Per-tab `WorkflowConfig.reviewSafeMode` (`'off'` default; persists to `meta.json`). When armed, `dispatchTool` consults a STATIC sensitivity allowlist (`gateReview.ts evaluateGate`) BEFORE running each tool - categories `bash`, `git-destructive` (push / `reset --hard` / `clean -fd`), `write-outside-cwd`, `kill-shell`. A sensitive call is not executed: it parks as a `pendingGates` entry (durable in `<cwd>/.arco/workflows/<wfid>/gate-approvals.json` via `gateStore.ts`, rehydrated after a server restart) and emits `gate_required`. The operator resolves through `gate_reply` (approve, or edit-the-tool-input-then-approve) or `gate_revoke`; the server emits `gate_resolved`. "Approve all like this" emits `gate_standing` - a scoped standing approval keyed by the call's non-lossy signature, re-evaluated against later calls so an identical-shape action auto-passes. The allowlist carries NO model judgment (deterministic, operator-readable): the server pauses on a fixed rule, it never *decides* a call is safe to run. Safe-mode off ⇒ the classifier is never consulted (hot path untouched). Client surface: the `GateApprovalNotice` card.
|
|
534
|
+
|
|
535
|
+
#### Session interop
|
|
536
|
+
|
|
537
|
+
Native sessions are Arco-internal - there's no `~/.claude/projects/<sid>.jsonl` rollout file because the Anthropic Messages API is stateless and Native owns the conversation in memory + replays from `events.jsonl`. Consequence: `claude --resume <uuid>` from a terminal does **not** continue a Native session. Operators who need terminal interop run that tab in CLI transport.
|
|
538
|
+
|
|
539
|
+
#### Replay on restart
|
|
540
|
+
|
|
541
|
+
On `ensureStarted`, if the workflow's `events.jsonl` has prior `user_message_echo` + `primary_text` entries, the worker reconstructs `this.messages` from them so a server restart picks up where it left off (replay-only - periodic snapshot deferred per 14 Q7). The reconstructed shape is logged to stderr under `[claude-native:<wfid>]` for forensic comparison; tool_use / tool_result events are not replayed (the next turn sees a clean USER/ASSISTANT history).
|
|
542
|
+
|
|
543
|
+
**Restore points / forks (Native-first).** A `revert_to_point_request` (HistoryTab "REWIND CONVERSATION" action) makes the server append a `leaf_move` event and set `meta.leafSeq`; a branch-aware replay pre-pass (`filterEventsToBranch` in `resumeSummary.ts`, driven by `replayMessagesWithResumePolicy`) then reconstructs `messages` along the active leaf only (absent `leafSeq` ⇒ byte-identical to the old linear replay). The rewind is reversible - "undo the undo" is just another `leaf_move`. Native-first; rejected on CLI / Codex. `branch_summary` is RESERVED and unemitted - forks ship via `leaf_move`, not `branch_summary`. This is the active-branch behavior used when resuming the conversation.
|
|
544
|
+
|
|
545
|
+
#### Context management
|
|
546
|
+
|
|
547
|
+
Anthropic's `/v1/models` exposes three context-management capabilities. Arco keeps Anthropic's server-side context edits off by default and uses Arco-managed COMPACT / Handoff as the visible pressure valves. Current behavior:
|
|
548
|
+
|
|
549
|
+
| Layer | Default | Operator control |
|
|
550
|
+
|---|---|---|
|
|
551
|
+
| `clear_thinking` (strip stale thinking blocks server-side) | off | none today; keep off unless an explicit operator surface is added |
|
|
552
|
+
| `clear_tool_uses` (strip stale tool i/o server-side) | off | none today; keep off unless an explicit operator surface is added |
|
|
553
|
+
| `compact_20260112` (server-managed summarization at threshold) | off for Native | CONFIG > ADVANCED "Claude API compaction (beta)" toggle (`WorkflowConfig.claudeNativeCompact`; explicit `true` enables) |
|
|
554
|
+
| Auto-handoff (Arco rotates to fresh session at threshold) | opt-in (default `false` for new Claude tabs) | CONFIG-tab "AUTO-HANDOFF" toggle (`WorkflowConfig.autoHandoff.enabled`) |
|
|
555
|
+
|
|
556
|
+
`clear_thinking` and `clear_tool_uses` ship behind `anthropic-beta: context-management-2025-06-27` if they are ever used, but Native deliberately does not send that beta or those edits by default. The 2026-05-31 Opus 4.8 A/B test showed that `clear_tool_uses` can replace live web-search evidence with `Search result was cleared`, causing repeated searches and stale-source answers. Compact rides on `compact-2026-01-12` and is emitted only when the operator has explicitly enabled the per-tab toggle and the active model's cached `/v1/models` catalog entry advertises `compact_20260112`. An unrecognized model conservatively skips all betas rather than risk a 400. Compaction is `{ type: 'compact_20260112' }` in `context_management.edits`, not a sibling `context_management.compact` object. Per-request beta-header override is set on the SDK call so a live model swap mid-tab re-evaluates capabilities cleanly. The `Claude API compaction (beta)` toggle is only rendered when `transport === 'native'` and the active model's catalog entry has `compact_20260112: { supported: true }`; missing `WorkflowConfig.claudeNativeCompact` means disabled, and explicit `true` is the durable enable.
|
|
557
|
+
|
|
558
|
+
#### Arco-side context tools (Fold / eviction / budget meter)
|
|
559
|
+
|
|
560
|
+
Distinct from the Anthropic server-side edits above - these are Arco-owned, deterministic, and run in-process:
|
|
561
|
+
|
|
562
|
+
- **Token-budget meter (2.3).** `contextBudget.ts` emits a `context_budget` event (`{ usedTokens, effectiveWindow, pct, thresholds: { warnAt, autoAt, foldAt? } }`) each turn - `pct` is measured against the *effective* window (raw window minus reserved output tokens), so it's the signal the Fold / auto-fold and warn gates read rather than the raw-window `context_usage` that drives the CTX bar. Transient (derived from persisted `lastPromptTokens`), not persisted itself.
|
|
563
|
+
- **Fold + auto-fold (2.1).** A deterministic in-place transcript trim (`foldDigest.ts`) - keeps recent turns verbatim and digests the older middle, no LLM call. Manual via the composer FOLD button (`fold_workflow` WS message); armed per-tab via the CONFIG `autoFold` toggle - an `autoFold { enabled, foldAt }` field on the per-tab config-update message (default OFF; `foldAt` is the budget-meter pct that triggers the in-place Fold, below `autoHandoff.warnAt`; persists to `meta.json` + `WorkflowConfig.autoFold`). Emits `context_folded`. Cheaper than Handoff or compact - same worker, no summarizer round-trip, no fresh spawn.
|
|
564
|
+
- **Tool-result eviction (2.2).** `toolResultEviction.ts` is the aggregate largest-first spill that fires only when a batch of tool results' summed cost exceeds the turn budget; the raw output is gzipped to a workspace-relative `rawArtifactPath` (same convention as `tool_filtered`, fully reversible) and a `tool_evicted` event (`{ toolUseId, toolName, originalBytes, filteredBytes, rawArtifactPath }`) records what was spilled.
|
|
565
|
+
- **Retained-history server-tool prune (`retainedContext.ts`).** After a settled turn, `pruneServerToolEvidenceAfterTurn` drops that turn's `server_tool_use` / `*_tool_result` / citation blocks (the final answer already absorbed the findings) - thinking is always kept, and the whole prune is skipped on binding-enforcing models (`enforcesPreservedThinking()`: `fable-5-1` / `mythos-5-1` / `opus-5-5`). Two pairing invariants make it safe, and breaking either one wedges the tab permanently with a 400 that every later request replays: it never edits the **latest assistant message**, and it keeps any `server_tool_use` whose result lives *in* that protected message (the `pause_turn` shape, where call and result straddle two assistant messages). `stripDanglingServerToolResults` runs at the top of each turn as the mirror of `pruneOrphanToolUse` - one detector per direction. Both failure shapes and the exact 400 wordings: [Gotchas: Claude Native transport](GOTCHAS.md#claude-native-transport).
|
|
566
|
+
- **Workspace facts.** `workspaceFacts.ts` auto-detects the project's ecosystem / package manager / verify commands / git branch once at session start and folds a short `--- Workspace facts ---` block into the system prompt (omitted entirely when nothing is detected ⇒ zero input-token cost), so the model and any verify-loop agree on the single "did I break it?" command.
|
|
567
|
+
- **Aggregate `@`-ref budget gate.** Beyond the per-ref 64 KB cap, `contextRefs.ts` tracks the aggregate of all `@`-file expansions in one message: soft-warn past ~25% of the model's window, hard-refuse any ref that would push the aggregate past ~50% (with a clear "drop a ref or send fewer files" reason) so a big paste can't silently crowd out the operator's instruction.
|
|
568
|
+
|
|
569
|
+
#### Live model catalog
|
|
570
|
+
|
|
571
|
+
`server/src/catalog.ts` polls `https://api.anthropic.com/v1/models` (using the worker's OAuth tokens + standard wire fingerprint), distills the wire shape to the picker's camelCase form via `distillCatalogModel()`, and caches the result for one hour (`REFRESH_INTERVAL_MS = 60 * 60 * 1000`). Refresh is lazy - the next request after expiry triggers it; `?force=1` on `GET /api/claude-native/catalog` bypasses the cache. Capability flags (`clearThinking`, `clearToolUses`, `compact`) are derived from the catalog entry's `supportedFeatures`, but only `compact` is consumed by the worker by default. The CONFIG-tab model picker uses `compact` to gate the CONFIG > ADVANCED Claude API compaction (beta) toggle, and `getCachedModelCapabilities(modelId)` is called per Native request to decide whether to send `compact-2026-01-12` + `{ type: 'compact_20260112' }`. Cold-start, fetch failure, or an unrecognized id (operator typo, picker out of sync) all return `null` and the worker conservatively skips the beta - the `[claude-native:<wfid>] → messages.create ... ctx_mgmt=compact` log line shows what actually went out. Static fallbacks still need to be updated when a new family ships: `supportsClaudeAdaptiveThinking()` / `CLAUDE_MODEL_EFFORTS` control effort semantics, `adaptiveMaxTokensForModel()` controls output cap, and `contextEstimator.ts` controls the CTX denominator before the live catalog can help.
|
|
572
|
+
|
|
573
|
+
Compact + auto-handoff coexist; both can be on (two safety nets), either can be off, or both off (operator drives Handoff manually). See plan-doc 15 for the full combination matrix and the resolved beta-header strings.
|
|
574
|
+
|
|
575
|
+
#### Operator in-place compact (`⊟ COMPACT` / `native_compacted`)
|
|
576
|
+
|
|
577
|
+
Distinct from the Anthropic `compact_20260112` server-side edit above (which is passive + Anthropic-thresholded). This is the operator's on-demand `/compact`, the in-Arco equivalent of Claude Code CLI's slash command: `worker.compactInPlace()` (reached via `compactClaudeNativeWorker(workflowId, config)` from the `compact_workflow` WS message and the between-turn auto path) runs ONE summarization round against a clean projection of the worker's `messages[]` - its live OAuth client, current model, `FORCED_FIRST_BLOCK` leading the system, no tools, no context-management edits. The projection strips raw `tool_use` / `tool_result` protocol blocks before the summarizer request; a trailing orphan `tool_use` from a cancelled/interrupted tool loop is pruned first and logged as `ctx_action`. On success compact REPLACES `messages[]` with `compactSummarySeed(summary)` and emits a persisted `native_compacted { summary }` marker. If the cached Native worker is absent after restart/rehydrate/disposal, the compact path cold-acquires it and replays `events.jsonl` before summarizing. The next operator turn continues from the summary in the same tab; the CTX bar drops on that turn (driven by the SDK prompt count, no synthetic snapshot needed). Far cheaper than a Handoff: same worker, no portable doc, no fresh-worker spawn, no transcript re-render.
|
|
578
|
+
|
|
579
|
+
The marker is **load-bearing on replay**: `buildMessagesFromReplayEvents` and `summarizeClaudeNativePriorTurns` reset at it (same as `handoff_artifact_ready`) and re-seed via the same `compactSummarySeed`, so the compaction survives a restart byte-for-byte. Native transport only - CLI Claude has no in-process history to replace (the WS handler rejects it; use Handoff). Operator-initiated + context-REPLACING, so it sits in Handoff's eligibility class under the four-question test, not the rejected "second-LLM summarizer in the agent loop" fence. Smoke: `npm run smoke:native-compact` (replay invariant; the live summarization round is UI-acceptance). See [Gotchas: Claude Native transport](GOTCHAS.md#claude-native-transport).
|
|
580
|
+
|
|
581
|
+
#### Server Fold (`⊞ S-FOLD` / on-demand compaction)
|
|
582
|
+
|
|
583
|
+
The third context valve between the deterministic Fold (free, lossy digest) and COMPACT/Handoff. `worker.serverFoldInPlace()` (`serverFold.ts`, reached via `fold_workflow {engine:'server'}` → `serverFoldClaudeNativeWorker`) sends ONE request with Anthropic's on-demand compaction beta - header `compact-2026-09-04`, body `compaction: {type:'summarize'}` ([docs](https://platform.claude.com/docs/en/build-with-claude/compaction-on-demand)) - using the worker's live OAuth client, the **frozen** system + tools, and the tab's thinking params (no `context_management`, `tool_choice`, `stop_sequences`, `output_config.format`; `max_tokens` `SERVER_FOLD_MAX_TOKENS` = 32K because thinking counts). Only the messages before the cut are sent: the cut (`chooseServerFoldCut`) sits between a finished assistant reply and the next operator user message, keeping the last `SERVER_FOLD_KEEP_TURNS` (2) turns verbatim, shrinking toward zero while the raw tail exceeds `SERVER_FOLD_TAIL_MAX_BYTES` (256 KB). On `stop_reason:'compaction'` the history becomes `[assistant{compaction block}, ...kept turns]` and a persisted `context_folded {engine:'server', compactionBlock, keptMessages, compactionUsage, originalBytes, foldedBytes, byteDelta}` lands in `events.jsonl`. Spend comes from `usage.iterations` (top-level usage is 0) and is shown in the notice + added to the client's tab tokens.
|
|
584
|
+
|
|
585
|
+
Capability + fallback: the model must be on the documented list (`supportsServerFold`; Haiku isn't). Any failure - a 4xx naming the beta/parameter (`unsupported`), a missing summary (`max_tokens` / `tool_use` / `refusal` / empty), 429/5xx/network (`failed`) - leaves history untouched and runs the deterministic Fold in the same request; the notice names which ran and why.
|
|
586
|
+
|
|
587
|
+
After the swap the beta rides every request that carries the block (`hasLeadingServerFoldBlock` - position-based: an on-demand block is always `messages[0]`, a threshold block never is), the `compact_20260112` edit is suppressed (the API won't combine it with a signed block), and a later COMPACT / deterministic Fold first demotes the block to plain summary text (`demoteLeadingServerFoldBlock`). Undo: HISTORY rewind (`leaf_move`) to a seq before the marker; the pre-fold transcript is untouched in `events.jsonl`. Unit: `serverFold.test.ts`.
|
|
588
|
+
|
|
589
|
+
#### Throttle / errors
|
|
590
|
+
|
|
591
|
+
Anthropic returns structured `{type:'error', error:{type, message}}` envelopes. Native maps:
|
|
592
|
+
|
|
593
|
+
- 401 / `authentication_error` → `[AUTH:claude]` system_notice + fail (refresh already attempted in `ensureLiveTokens`).
|
|
594
|
+
- 429 / `rate_limit_error`, 529 / `overloaded_error`, 500 / `api_error` → retry × 3. **Header-aware backoff:** `resolveRateLimitWait` (`rateLimit.ts`) reads the response's `retry-after` (delta-seconds or HTTP-date) first, then falls back to the soonest `anthropic-ratelimit-*-reset` RFC-3339 timestamp; the fixed 15s/30s/60s ladder is the fallback only when no usable header is present. The SDK's own retries are disabled (`maxRetries: 0`) so this header-aware ladder is the only backoff. The CLI transport's `parseClaudeReset` text-regex sniffer is gone - Native sees the parsed JSON plus the rate-limit headers.
|
|
595
|
+
- 413 / `request_too_large` → fail with a Handoff-recommendation system_notice. Don't retry.
|
|
596
|
+
- 400 / `invalid_request_error`, 403 / `permission_error`, 400 / `billing_error`, 404 / `not_found_error` → fail; don't retry.
|
|
597
|
+
|
|
598
|
+
#### SDK upgrade recipe
|
|
599
|
+
|
|
600
|
+
The `^0.91.1` pin is intentionally stale. When bumping:
|
|
601
|
+
|
|
602
|
+
1. Confirm `Anthropic({ authToken })` still accepts the field name (read the SDK's exported `ClientOptions` type).
|
|
603
|
+
2. Confirm `messages.create({ stream: true })` still emits the `content_block_*` / `message_delta` / `message_stop` SSE event shape `worker.ts:consumeStream` consumes.
|
|
604
|
+
3. Smoke a 10-turn run on a Ledger-shaped task and check `usage.cache_read_input_tokens` against the previous baseline (cache hit rate is the regression risk).
|
|
605
|
+
4. Bump the `CLAUDE_CLI_VERSION` pin in `wireFingerprint.ts` only if Anthropic's edge rejects it (a new model saying "version ... or newer is required" is the usual trigger) - otherwise leave it.
|
|
606
|
+
|
|
607
|
+
The `[claude-native:<workflowId>]` log prefix is grep-stable for forensic runs; bootstrap, replay, and dispose all log under it.
|
|
608
|
+
|
|
609
|
+
### Per-tab sandbox tools
|
|
610
|
+
|
|
611
|
+
Operator-opt-in extra tool surface gated on `WorkflowConfig.efficiencySandbox === 'on'`. Per-tab CONFIG-tab toggle; default `'off'`. Native-only - CLI / Codex / Ollama / llama.cpp ignore the field (the tools are registered into the in-process Anthropic `tools[]` array which only Native controls). Inspired by `mksglu/context-mode` (the substitution-at-call-site idea) but stripped of context-mode's silent `Read` redirection + self-heal config mutation - both rejected by the operator-autonomy contract.
|
|
612
|
+
|
|
613
|
+
**Three tools register when the toggle is on:**
|
|
614
|
+
|
|
615
|
+
| Tool | Args | Result |
|
|
616
|
+
|---|---|---|
|
|
617
|
+
| `ctx_execute` | `{ language: 'node'\|'python'\|'shell', code: string }` | Runs the script in a sandboxed subprocess; returns only what the script wrote to stdout (less any `[chunk] ...` lines, which are siphoned into the FTS5 index). Aliases accepted: `js`/`javascript` → node; `py`/`python3` → python; `sh`/`bash` → shell. |
|
|
618
|
+
| `ctx_search` | `{ query: string, limit?: number }` | BM25 query over the per-tab chunk index. Returns top-N rows with chunkId + language + bytes + score + snippet. FTS5 MATCH syntax. |
|
|
619
|
+
| `ctx_fetch` | `{ chunkId: number }` | Returns the full content of a stored chunk by ID. |
|
|
620
|
+
|
|
621
|
+
**Wire shape (smoke-verified):**
|
|
622
|
+
|
|
623
|
+
```text
|
|
624
|
+
ctx_execute('shell', 'find . -name "*.ts" -newer .git/HEAD | head -20')
|
|
625
|
+
→ stdout slice, no `[chunk]` lines stored
|
|
626
|
+
|
|
627
|
+
ctx_execute('python', '''
|
|
628
|
+
import json, pathlib
|
|
629
|
+
for p in pathlib.Path('.').rglob('*.json')[:50]:
|
|
630
|
+
print(f"[chunk] {p.name}: {p.stat().st_size}B")
|
|
631
|
+
''')
|
|
632
|
+
→ "[no stdout]\n\n[stored 50 chunk(s)] ids: 1, 2, 3, ..."
|
|
633
|
+
|
|
634
|
+
ctx_search('package.json') → rows of {chunkId, language, byteLen, snippet}
|
|
635
|
+
ctx_fetch(7) → full content of chunk #7
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
**System-prompt nudge.** When the toggle is on, `buildSystemBlocks()` appends a soft block AFTER `FORCED_FIRST_BLOCK` + cluster plan + cluster role and BEFORE the operator's `appendSystemPrompt` / `systemPrompt` / output-style addendum. Plain text describing what the tools are useful for (large file slices, noisy-output shell commands) and the `[chunk] ...` / `[chunk] ... [/chunk]` stash protocol. Not enforcement - the model still chooses per call. Block is omitted entirely when the toggle is `'off'` so there's zero input-token cost on tabs that haven't opted in.
|
|
639
|
+
|
|
640
|
+
**Per-tab SQLite + FTS5 store.** Lives at `<cwd>/.arco/workflows/<wfId>/sandbox.db`. Schema:
|
|
641
|
+
|
|
642
|
+
```sql
|
|
643
|
+
CREATE TABLE chunks (
|
|
644
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
645
|
+
language TEXT NOT NULL,
|
|
646
|
+
content TEXT NOT NULL,
|
|
647
|
+
byte_len INTEGER NOT NULL,
|
|
648
|
+
created_at INTEGER NOT NULL
|
|
649
|
+
);
|
|
650
|
+
CREATE VIRTUAL TABLE chunks_fts USING fts5(content, content='chunks', content_rowid='id');
|
|
651
|
+
-- + triggers chunks_ai / chunks_ad to keep the FTS5 mirror in sync
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
Default `unicode61` tokenizer (no stopwords - 'added' / 'fix' / 'the' all retained in spot-checks). Implemented via `better-sqlite3` because Node 22's bundled `node:sqlite` is compiled without FTS5. `journal_mode=WAL`; the WAL sidecars (`sandbox.db-wal` / `sandbox.db-shm`) are best-effort-unlinked alongside the main file on tab close.
|
|
655
|
+
|
|
656
|
+
**Subprocess executor.** `sandboxExecutor.ts` - `spawn(..., { detached: true })` so the child is a process-group leader. Caps: 256 KB stdout, 32 KB stderr, 10 s default timeout (`ARCO_SANDBOX_TIMEOUT_MS` override, 1-600 s). On timeout: `process.kill(-pid, 'SIGTERM')` to target the whole process group, then SIGKILL escalation after 1 s. Per-call temp directory under `<cwd>/.arco/workflows/<wfId>/sandbox-tmp/run-XXXX/` so script cwd-writes don't pollute the operator repo. No self-heal block; no retry; no second-LLM fallback.
|
|
657
|
+
|
|
658
|
+
**Lifecycle.**
|
|
659
|
+
|
|
660
|
+
- **Toggle off:** future turns rebuild `tools[]` without the descriptors; the system-prompt nudge stops appending. The SQLite file stays on disk so a re-on doesn't lose stored chunks.
|
|
661
|
+
- **Operator CLEAR DB:** `POST /api/workflows/:wfId/sandbox/clear` truncates the chunks table, rebuilds the FTS5 index, and broadcasts `sandbox_db_cleared` so the Files-tab sub-section drops its preview list.
|
|
662
|
+
- **Tab close (`remove_workflow`):** `destroySandbox(cwd, wfId)` closes the cached handle and unlinks `sandbox.db` + the WAL sidecars.
|
|
663
|
+
- **Server restart with workflow still alive:** rehydrate restores `efficiencySandbox` from meta.json; the next ctx_execute call re-opens the SQLite file (data preserved).
|
|
664
|
+
|
|
665
|
+
**Events.** Best-effort UI freshness via `sandbox_chunk_added { workflowId, chunkId, byteLen, language }` on every chunk insert and `sandbox_db_cleared { workflowId }` on operator clear. Both ride through `broadcastWorkflow` so they land in events.jsonl for transcript replay. The ctx_* tool calls themselves emit the standard `primary_tool_use` event surface - no special-casing.
|
|
666
|
+
|
|
667
|
+
**REST.**
|
|
668
|
+
|
|
669
|
+
| Endpoint | Body / query | Behaviour |
|
|
670
|
+
|---|---|---|
|
|
671
|
+
| `GET /api/workflows/:wfId/sandbox/stats` | - | Returns `{ chunkCount, totalBytes, dbPath, recent: [{ chunkId, language, byteLen, createdAt, preview }] }` (preview = first 200 chars). |
|
|
672
|
+
| `POST /api/workflows/:wfId/sandbox/clear` | - | Truncates the chunks table; emits `sandbox_db_cleared`. |
|
|
673
|
+
| `POST /api/workflows/:wfId/sandbox/_test_insert` | `{ language, content }` | Dev-only escape hatch for the smoke harness. Gated on `NODE_ENV !== 'production'`. |
|
|
674
|
+
|
|
675
|
+
**Trust model.** Per-tab. The sandbox is intentionally per-workflow, not per-cluster - if a cluster wants a shared knowledge graph the operator can attach the codebase-memory MCP integration instead. The model knows it's calling `ctx_execute` vs `Read` - no silent redirection. The operator can read every stored chunk's full content via the Files-tab SANDBOX sub-section.
|
|
676
|
+
|
|
677
|
+
**Smoke.** `npm run smoke:phase-e` - 9/9 steps cover the toggle's persistence + meta.json round-trip, `_test_insert` landing a chunk + firing `sandbox_chunk_added` + creating sandbox.db on disk, `/sandbox/stats` reflecting chunkCount=1, clear endpoint emptying + firing `sandbox_db_cleared`, and `remove_workflow` unlinking the DB file.
|
|
678
|
+
|
|
679
|
+
---
|
|
680
|
+
|
|
681
|
+
## Codex
|
|
682
|
+
|
|
683
|
+
Two transports ship side-by-side, selected per-tab via `codex.transport`. New Arco homes use `appserver`; the home and project settings cascade can select either transport, and a per-tab choice takes precedence. Existing cascade and per-tab choices remain unchanged. Per-tab override lives on `WorkflowConfig.codexTransport` and is editable from the CONFIG tab without a server restart.
|
|
684
|
+
|
|
685
|
+
Reviewers and handoff seed turns always run on `exec` regardless of the tab's transport - the per-workflow appserver child is too heavy for one-shot reviewer paths and there's no reviewer feature that benefits from mid-turn steer.
|
|
686
|
+
|
|
687
|
+
The Codex CONFIG tab is sparse next to Claude Native by design, not omission. The Native-only efficiency knobs (Claude API compaction (beta) under CONFIG > ADVANCED, interleaved-thinking beta, tool-result filter, fact-force first edit, sandbox tools) all reach *inside* the in-process Anthropic request - request body, `anthropic-beta` headers, the `tools[]` array, or per-tool dispatch. Codex runs as an external subprocess, so Arco can't mutate those internals and the controls have nowhere to attach. **Output style is the exception on `appserver`:** Arco owns the per-turn `turn/start` input and folds the same style addendum into the stable prompt prefix. Codex `exec` still ignores it. What Codex *does* surface besides output style - codebase-index/memory + MCP servers - are the things you configure *around* a subprocess rather than inside its request. See [Gotchas: Efficiency behavior](GOTCHAS.md#efficiency-behavior) for the fact-force-specific analysis (notably why the `appserver` approval bindings don't give a usable pre-execution gate today).
|
|
688
|
+
|
|
689
|
+
### `exec` transport
|
|
690
|
+
|
|
691
|
+
`server/src/providers/codex.ts`. Subprocess via `spawn('codex', args)`.
|
|
692
|
+
|
|
693
|
+
#### Spawn
|
|
694
|
+
|
|
695
|
+
`spawn('codex', args, { detached: true, cwd: workflowCwd })`. The `cwd` matters: Codex resume mode doesn't accept `-C`, so `cwd` rides on the spawn options.
|
|
696
|
+
|
|
697
|
+
#### Argv (primary, first turn)
|
|
698
|
+
|
|
699
|
+
```text
|
|
700
|
+
codex
|
|
701
|
+
exec
|
|
702
|
+
--json
|
|
703
|
+
--color never
|
|
704
|
+
--skip-git-repo-check
|
|
705
|
+
-s <sandbox> # 'read-only' | 'workspace-write' | 'danger-full-access'
|
|
706
|
+
-m <model>
|
|
707
|
+
[-i <image>]... # image attachments
|
|
708
|
+
[-c reasoning_effort="<e>"] # 1:1, catalog-clamped (see Effort mapping)
|
|
709
|
+
[-c model_context_window=<n>] # MAX context policy (default)
|
|
710
|
+
[-c web_search="live|disabled"] # Chat only
|
|
711
|
+
[--ephemeral] # Incognito only
|
|
712
|
+
[-c mcp_servers.<key>....] # cluster / registry MCP
|
|
713
|
+
[-C <cwd>]
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
`<sandbox>` is the Codex permissions level. Reviewers always get `read-only`. Primaries default to `read-only` but can be set to `workspace-write` or `danger-full-access` via `WorkerConfig.sandbox`.
|
|
717
|
+
|
|
718
|
+
#### Argv (resume)
|
|
719
|
+
|
|
720
|
+
```text
|
|
721
|
+
codex
|
|
722
|
+
exec
|
|
723
|
+
resume
|
|
724
|
+
<uuid>
|
|
725
|
+
<prompt>
|
|
726
|
+
```
|
|
727
|
+
|
|
728
|
+
**GOTCHA - narrower flag surface on resume.** `codex exec resume` does **not** accept `--color`, `-s <mode>`, `-C <cwd>`, or `--add-dir`. `buildArgs` branches on `isResume` and drops them. Sandbox maps to:
|
|
729
|
+
- `workspace-write` → `--full-auto`
|
|
730
|
+
- `danger-full-access` → `--dangerously-bypass-approvals-and-sandbox`
|
|
731
|
+
|
|
732
|
+
`cwd` rides on `spawn({ cwd })` since `-C` is rejected.
|
|
733
|
+
|
|
734
|
+
#### Stdin
|
|
735
|
+
|
|
736
|
+
The full prompt (with any prepended transcript / attachments / appendSystemPrompt) is the last positional argument. Codex doesn't have a native `--system-prompt` or `--append-system-prompt` flag, so the framing is always inline.
|
|
737
|
+
|
|
738
|
+
#### Event parsing
|
|
739
|
+
|
|
740
|
+
Stdout is NDJSON via `--json`. `CodexStreamParser` (`codex-stream.ts`) handles:
|
|
741
|
+
|
|
742
|
+
- `thread.started` → `init` with `sessionId` (the thread_id UUID)
|
|
743
|
+
- `message.delta` → `text`
|
|
744
|
+
- `reasoning.delta` → `thinking`
|
|
745
|
+
- `command_execution` (item.type) → `tool_use` (Codex 0.121.0's bash-call shape)
|
|
746
|
+
- `result` / `done` → `result`
|
|
747
|
+
- `error` → `error`
|
|
748
|
+
|
|
749
|
+
#### Session resume
|
|
750
|
+
|
|
751
|
+
UUID-based via thread_id. Captured from the `thread.started` init event on first turn.
|
|
752
|
+
|
|
753
|
+
- **First turn** - no UUID passed; Arco mints a placeholder UUID for `meta.cliSessions[]`, then captures the real thread_id from the init event and reconciles in place via `reconcileLatestCliSession()`.
|
|
754
|
+
- **Resume** - `codex exec resume <thread_id> <prompt>`. Arco's `wf.primarySessionId` carries the thread_id.
|
|
755
|
+
- **Terminal interop** - `codex exec resume <thread_id>` from any terminal continues the same thread.
|
|
756
|
+
|
|
757
|
+
**GOTCHA - placeholder UUID reconciliation.** Without `reconcileLatestCliSession()`, the placeholder UUID would persist in `meta.cliSessions[]` forever, and the next resume would fail with "no rollout found." The reconcile happens after the first init event, before any user-visible `primary_text`.
|
|
758
|
+
|
|
759
|
+
#### Auth
|
|
760
|
+
|
|
761
|
+
`codex login status` → `{ loggedIn, email, accountType }`. `POST /api/auth-login?provider=codex` opens a terminal emulator with `codex login` for the interactive OAuth flow.
|
|
762
|
+
|
|
763
|
+
API-key fallback: `OPENAI_API_KEY` env var.
|
|
764
|
+
|
|
765
|
+
#### Capability detection
|
|
766
|
+
|
|
767
|
+
`codex --version`. `capabilities.ts` parses for supported efforts and models. Codex's current binding includes `none|minimal|low|medium|high|xhigh|max|ultra`; Arco's picker offers only the selected model's supported operator levels. Astra is the current Arco default and advertises low through ultra; GPT-6 Sol (2026-09-22) does too, and GPT-6 Luna stops at `max`. The live catalog (`codex-appserver/catalog.ts`) is the authoritative source - see [Live model catalog](#live-model-catalog-1) below.
|
|
768
|
+
|
|
769
|
+
#### Quirks
|
|
770
|
+
|
|
771
|
+
- **30-minute throttle cooldown** - Codex's 429 response doesn't carry Retry-After; Arco defaults to a 30-minute cooldown when one fires. `quota.markThrottled('codex', errorText, Date.now() + 30 * 60_000)`.
|
|
772
|
+
- **Sandbox flag mapping on resume** - `-s read-only` is rejected on resume; reviewers can't run with sandbox flag. Reviewers spawn fresh (no resume), which is fine for Review's `last-turn` context model.
|
|
773
|
+
- **Effort mapping** - Arco's `low/medium/high/xhigh/max/ultra` values pass through on both Codex transports when supported; max is no longer unconditionally collapsed to xhigh. Catalog-aware: if a model's `supportedReasoningEfforts` doesn't include the requested effort, `mapEffort` (`codex-appserver/worker.ts`) and `mapEffortToReasoning` (`codex.ts`) downgrade to the highest *supported* effort. The `primary_model` event reports the requested effort; when catalog clamping occurs this is not proof of the effective wire value.
|
|
774
|
+
- **Transcript hydration on Resume** - when an unclaimed Codex rollout (one with no Arco meta.json) is picked from the Resume picker, the server reads the rollout's JSONL and emits `session_entry` events to populate the chat. Implemented in `GET /api/transcript?provider=codex`.
|
|
775
|
+
- **No tool restriction on reviewers** - Codex doesn't have a `--tools` allowlist; reviewers rely on the read-only sandbox to prevent writes.
|
|
776
|
+
- **Token tracking - Codex-specific ctx formula.** `cached_input_tokens` from `turn.completed.usage` is mapped to `TokenUsage.cacheRead`; `cacheCreate` is never populated. **OpenAI's `cached_input_tokens` is a SUBSET of `input_tokens`** (not disjoint like Anthropic's three input flavours), so `input_tokens` already IS the full prompt size. The client's `contextTokens(usage, 'codex')` returns just `input` - adding cacheRead would double-count the cached portion. The hover tooltip still shows the cacheRead breakdown for visibility ("input X - of which Y from cache"). See [`GOTCHAS.md`](GOTCHAS.md) "Codex" section for why the formula is split per provider.
|
|
777
|
+
- **Context-window policy + reporting.** Codex's account-scoped `models_cache.json` carries `context_window`, `max_context_window`, and `effective_context_window_percent`. Arco defaults `WorkflowConfig.codexContextPolicy` to `max` and passes the selected model/account's live `max_context_window` as `model_context_window` on both transports; `standard` omits that override. The CONFIG tab shows both effective values. Missing or malformed catalog metadata fails safe to Codex's default. Codex then emits the authoritative operational window via either `turn.completed` or `event_msg::token_count.info.model_context_window`; the ContextMeter prefers this reported value, then the account catalog estimate, then static metadata. At the 2026-09-11 catalog values, Astra's STANDARD is 258.4K effective (272K × 95%) and MAX is 828.4K effective (872K × 95%). Auto-handoff reads the latest rollout snapshot, and compact clears stale local context signals.
|
|
778
|
+
- **Token usage - rich Codex fields.** Beyond `input`, `output`, and `cacheRead`, Codex's `turn.completed.usage` may also carry `reasoning_output_tokens` (subset of output: hidden reasoning trace, rolls forward into next turn's prompt) and `total_tokens` (provider-reported total). Both surface on `TokenUsage.reasoningOutput` and `TokenUsage.total` and appear in the ContextMeter hover and the per-worker `tokenHoverTitle`.
|
|
779
|
+
- **Rollout-file tail capture (post-settle).** `codex exec --json`'s `turn.completed.usage` aggregates across internal LLM calls within one operator turn - useful for billing, misleading for context-window-fill. Server tails the workflow's rollout file (`~/.codex/sessions/<y>/<m>/<d>/rollout-*-<thread_id>.jsonl`) after each turn settles, parses the latest `event_msg::token_count.info`, and broadcasts a `codex_token_snapshot` with the per-call `last_token_usage` plus `model_context_window`. Client uses these to override `lastTurnTokens` (so the CTX bar reflects the per-call reality) and to populate `modelContextWindow` (so the dot flips ●). `totalTokens` cumulative is left alone - it stays the billing-accurate aggregated number. Code: `server/src/workflows/transcripts.ts` wrapping `server/src/codexRolloutTokens.ts`; post-turn threshold refresh lives in `server/src/ws/turnEngine.ts`.
|
|
780
|
+
- **No concurrent-writer guard (yet).** Probe (2026-04-26) showed every rollout filename carries a unique UUID - strong evidence that `codex exec` and `exec resume` create new rollout files rather than appending. Risk is treated as low; the Claude-style guard is documented as the port target if a real corruption surfaces. Details in [`GOTCHAS.md`](GOTCHAS.md).
|
|
781
|
+
- **Tool verbs.** Codex emits snake_case item names (`apply_patch`, `shell_call`, `function_call`, `update_plan`, etc.); `command_execution` is normalized to `Bash` upstream in `codex-stream.ts`. The Activity tab's `TOOL_VERBS` map (`PrimaryStatus.tsx`) covers both naming conventions, so live status reads naturally on Codex tabs (`Patching`, `Running`, `Calling`, `Planning`, ...) instead of the raw snake_case fallback.
|
|
782
|
+
|
|
783
|
+
### `app-server` transport
|
|
784
|
+
|
|
785
|
+
Settled app-server results now carry the last token-usage notification's
|
|
786
|
+
`lastPromptTokens` for ordinary workers as well as Incognito. Computer scripts
|
|
787
|
+
read that final-request prompt and the reported window directly for context
|
|
788
|
+
conditions; summed turn billing usage and delayed rollout files are not a
|
|
789
|
+
substitute. Transport lifecycle, model/effort and the single approved Computer
|
|
790
|
+
voice MCP configuration are unchanged.
|
|
791
|
+
|
|
792
|
+
`server/src/providers/codex-appserver/` - + 6b adds the long-lived transport alongside the per-turn `exec` worker; Arco ships the CONFIG-tab toggle. Unlocks non-destructive mid-turn steer (`turn/steer`) and structured cancel (`turn/interrupt`).
|
|
793
|
+
|
|
794
|
+
Bindings pinned against **codex-cli 0.128.0** (the installed CLI is newer - 0.156.x as of 2026-09; new fields are validated against it before use). Vendored TS bindings under `server/src/providers/codex-appserver/bindings/` are regenerated via `codex app-server generate-ts --out ... --experimental` - see plan doc 11.
|
|
795
|
+
|
|
796
|
+
#### Lifecycle
|
|
797
|
+
|
|
798
|
+
One `codex app-server` child per workflow tab, kept alive across turns. Spawned lazily on the first turn (handshake: `initialize` → `thread/start` for fresh, `thread/resume` with `excludeTurns: true` + `persistExtendedHistory: true` for warm). Subsequent turns reuse the same JSON-RPC connection and the same Codex thread. Disposed via `disposeProviderResources` from `handleRemoveWorkflow` on tab close.
|
|
799
|
+
|
|
800
|
+
The saved Computer chat also retires its idle child at an operator-requested
|
|
801
|
+
fresh-context boundary (default 50% fullness, after the full turn/queue drain).
|
|
802
|
+
`voice/computerContext.ts` archives the old session and clears its active ledger
|
|
803
|
+
before announcing the boundary; the next request uses `thread/start` with no
|
|
804
|
+
summary or old transcript. KEEP CONTEXT/OFF pause automatic resets. This is
|
|
805
|
+
separate from Codex compaction, which remains the fallback within a long turn.
|
|
806
|
+
|
|
807
|
+
The child is long-lived, but `WorkerConfig` is per-turn. The per-turn wrapper refreshes the cached worker with the current config before `ensureStarted()` / `beginTurn()`, then `beginTurn()` converts image attachments into `localImage` input items and folds non-images into `[attached file: <path>]` lines in the trailing text item. This is what makes images attached to a cluster member/broadcast arrive in Codex app-server as actual image inputs instead of merely persisting on the Arco chat echo.
|
|
808
|
+
|
|
809
|
+
Arco passes a minimal thread config override on both `thread/start` and `thread/resume`: `web_search: "live"` (Chat tabs send `"live"` or `"disabled"` per the web toggle). This mirrors the native Codex CLI expectation that web search is available when the model chooses to look online, without changing approvals, sandboxing, model, profile, or MCP wiring. Do not set `tools.web_search` from the vendored 0.128 bindings without revalidating against the installed Codex CLI; Codex 0.131 rejects the stale generated shape during thread bootstrap.
|
|
810
|
+
|
|
811
|
+
Reviewers and handoff seed turns always run on `exec` regardless of the tab's transport. The dispatcher branch in `server/src/providers/index.ts` only takes the appserver path when `config.codexTransport === 'appserver'`; reviewer / seed paths leave that field unset.
|
|
812
|
+
|
|
813
|
+
#### Wire protocol
|
|
814
|
+
|
|
815
|
+
NDJSON over the child's stdio (one JSON message per line). No `jsonrpc: "2.0"` envelope:
|
|
816
|
+
- requests `{id, method, params}`
|
|
817
|
+
- responses `{id, result}` or `{id, error}`
|
|
818
|
+
- notifications `{method, params}` (no id)
|
|
819
|
+
|
|
820
|
+
Implemented in `jsonRpc.ts`. Message names locked in vendored bindings - methods like `thread/start`, `turn/start`, `turn/steer`, `turn/interrupt`; notifications like `item/agentMessage/delta`, `item/reasoning/textDelta`, `turn/completed`, `thread/tokenUsage/updated`, `error`.
|
|
821
|
+
|
|
822
|
+
#### Mid-turn steer
|
|
823
|
+
|
|
824
|
+
The `WorkerConfig.drainSteer` callback fires on every `item/completed` notification while a turn is in flight (any item type - `commandExecution`, `fileChange`, `mcpToolCall`, etc.). When the bucket is non-empty, the worker sends `turn/steer` with `expectedTurnId: currentTurnId` and a single text-folded `UserInput`. Codex's protocol enforces the precondition - if the turn ended in the round-trip window the steer fails loudly rather than landing in the next turn.
|
|
825
|
+
|
|
826
|
+
The drain is destructive (server-side `splice(0)`); the worker re-enqueues on three failure shapes via the new `WorkerConfig.requeueSteer` hook:
|
|
827
|
+
|
|
828
|
+
- `activeTurnNotSteerable {turnKind: 'review' | 'compact'}` → re-enqueue to **steer** bucket. The next operator turn picks them up as steer.
|
|
829
|
+
- Mismatched `expectedTurnId` (turn ended) → re-enqueue as **follow-up**. The post-turn merge path picks them up.
|
|
830
|
+
- Other RPC / transport errors → re-enqueue as **follow-up** *plus* a `system_notice` so the operator sees the slip.
|
|
831
|
+
|
|
832
|
+
Re-broadcasts `queue_update` after the re-enqueue (the original drain emitted a snapshot showing the bucket empty). The originator's optimistic chat row stays cleared from the prior `queued_messages_drained`; the queue strip is the source of truth for "items waiting" until the next drain succeeds.
|
|
833
|
+
|
|
834
|
+
Steer attachments fold to `[attached file: <path>]` text references (parity with Ollama / llama.cpp - mid-turn image re-encoding deferred until a real ask).
|
|
835
|
+
|
|
836
|
+
#### Cancel
|
|
837
|
+
|
|
838
|
+
Two-step. Operator hits cancel → `turn/interrupt` RPC → wait up to 5s for `turn/completed { status: 'interrupted' }` → settle. If the ack times out or the RPC errors, fall through to SIGKILL the app-server child and emit a fatal; the next operator turn re-enters `ensureStarted()` and re-resumes the thread on disk via `thread/resume`. Different from exec mode (`killProcessTree` of a per-turn child) but the operator-visible contract is identical: cancel always settles cleanly.
|
|
839
|
+
|
|
840
|
+
#### Native compact (`⊟ COMPACT` / `thread/compact/start`)
|
|
841
|
+
|
|
842
|
+
Operator-triggered native compaction - the in-Arco equivalent of `/compact` in Codex CLI. Codex owns the thread history server-side, so this is a single `thread/compact/start` RPC against the live thread (`compactThread()` in `worker.ts`, reached via `compactCodexAppServerThread(workflowId)` in `index.ts`, dispatched from the `compact_workflow` WS message in `compactHandlers.ts`). Codex summarizes earlier history into its rollout; the next operator turn continues against the compacted thread and the CTX bar drops. Persists automatically in Codex's on-disk rollout - no fresh worker, no portable doc, no resume re-feed, so it's far cheaper than a Handoff (which stays the heavier escape hatch for a clean break or provider swap).
|
|
843
|
+
|
|
844
|
+
Codex also **auto-compacts on its own** near the window ceiling (~258k usable on gpt-5.5) - that's the `thread/compacted` notification firing mid-turn, surfaced as `[codex] Thread context was compacted internally.`, and the cause of a sudden CTX drop (e.g. 250k → 42k) that is *correct tracking*, not a bug. The manual button just lets the operator trigger the same drop on demand at an idle moment.
|
|
845
|
+
|
|
846
|
+
Isolation invariant (load-bearing): because the `Turn` binding has no `turnKind`, a compact's own internal turn is indistinguishable from an operator turn. The `compacting` flag isolates it, `compactTurnId` captures its `turn/started`, and only the matching `turn/completed` unlocks the tab. `thread/compacted` is not sufficient - it can precede actual idle - and the 10-minute hard ceiling fails + recycles the app-server instead of claiming success. See [Gotchas: Codex](GOTCHAS.md#codex). Tests: `npm run test:codex-compact-lifecycle`; smoke: `npm run smoke:codex-compact` (guards only; live compaction needs a real Codex thread).
|
|
847
|
+
|
|
848
|
+
#### Thread-item handling (`emitToolUseFromItem`)
|
|
849
|
+
|
|
850
|
+
`item/started` and `item/completed` notifications carry a `ThreadItem` (the discriminated union in `bindings/v2/ThreadItem.ts`). `emitToolUseFromItem(item, status)` is the **sync** mapper from item → Arco `tool_use` event (`commandExecution → Bash`, `fileChange → apply_patch`, `webSearch`, `mcpToolCall`, `plan → update_plan`, `imageGeneration → image_generation`-started). It must stay sync/void: the `item/completed` case calls it and then fires `tryDrainSteer()` in the same tick - making the mapper async would reorder the drain hook (a load-bearing invariant).
|
|
851
|
+
|
|
852
|
+
**`imageGeneration`.** When Codex runs an `image_generation_call`, the app-server surfaces an `imageGeneration` item (`{ status, revisedPrompt, result, savedPath? }` - `result` is base64 image bytes; `savedPath`, when present, is an absolute path the app-server already wrote). Handling:
|
|
853
|
+
|
|
854
|
+
- `emitToolUseFromItem` surfaces only a **`started`** `image_generation` tool_use (Activity-tab visibility).
|
|
855
|
+
- On `item/completed`, the handler kicks off `handleImageGeneration(item)` **fire-and-forget** (`void` - never awaited) *before* `tryDrainSteer()`, so the persist's async fs work runs out-of-band and **the drain hook fires synchronously, unchanged**. The persist is purely additive - it touches no lifecycle / cancel / steer / drain code.
|
|
856
|
+
- `handleImageGeneration` calls the pure `resolveGeneratedImageTarget(cwd, item)` (`codex-appserver/imageGen.ts`): an in-cwd `savedPath` is surfaced as-is; otherwise the base64 `result` is decoded and written to `codex-image-<shortId>.png` confined with `resolveWithinCwd`. An escaping `savedPath` falls back to decoding the bytes in-cwd - it never surfaces an out-of-cwd path. Pure fs (`wx` write, suffix-bumped on collision); no subprocess. On success it emits a `primary_artifact` (`kind:'image'`, cwd-relative `path`, `openInEditor:true`) + a terminal `completed` tool_use; on any failure it emits a `failed` tool_use + a `system_notice` and never throws out of the notification handler.
|
|
857
|
+
|
|
858
|
+
**Live-shape caveat:** the `image_generation_call` RPC shape is flagged "unproven" upstream. The handler is coded against the vendored binding and **validated against a synthetic fixture** (`scripts/smoke/image-gen-codex.ts` drives `resolveGeneratedImageTarget` + an fs write), **not** a live Codex generation - live-shape validation is pending an operator running a real Codex image-gen turn. See [Media studio: H4](MEDIA_STUDIO.md#h4-image-generation-codex-only-route-shipped).
|
|
859
|
+
|
|
860
|
+
#### Throttle / auth
|
|
861
|
+
|
|
862
|
+
Protocol-level. `error.codexErrorInfo` drives `markThrottled('codex', ...)` on `usageLimitExceeded` or an explicit HTTP 429. `serverOverloaded` does **not** change provider quota state: Codex uses it for model-scoped capacity failures such as "Selected model is at capacity," which remain visible turn errors that the operator can retry or route to another model. This distinction is pinned so a single-model capacity miss is not promoted to a provider-wide 30-minute throttle. `unauthorized` surfaces as `[AUTH:codex]` system_notice (re-login UX). `contextWindowExceeded` emits a system_notice recommending Handoff. Stderr `parseCodexThrottle` regex stays as a fallback for any signal the protocol leaks differently.
|
|
863
|
+
|
|
864
|
+
#### Settings
|
|
865
|
+
|
|
866
|
+
Three layers, in priority order:
|
|
867
|
+
|
|
868
|
+
1. **Per-tab override** - `WorkflowConfig.codexTransport` (`'exec'` or `'appserver'`). Edited from the CONFIG tab's TRANSPORT row on Codex tabs. Persisted to `meta.json` (`codexTransport`) so it survives reload + server restart. Source of truth for the active tab.
|
|
869
|
+
2. **Cascade default** - `codex.transport` in `~/.arco/settings.json` or `<cwd>/.arco/settings.json`:
|
|
870
|
+
|
|
871
|
+
```json
|
|
872
|
+
{ "codex": { "transport": "appserver" } }
|
|
873
|
+
```
|
|
874
|
+
|
|
875
|
+
Sanitized in `server/src/settings.ts:sanitizeCodexConfig`. Provides the default for tabs that don't carry a per-tab override.
|
|
876
|
+
3. **Compatibility fallback when no cascade setting exists** - `'exec'`. New Arco homes set `codex.transport` to `appserver`.
|
|
877
|
+
|
|
878
|
+
Cascade + per-tab resolution happens once per primary-turn invocation in `handleUserMessage`; an HMR-driven settings change between turns won't re-toggle the transport mid-loop. **Toggle latency**: flipping the toggle does not affect the in-flight turn or kill an already-running app-server child. The next operator turn picks up the new transport: appserver→exec leaves the existing child idle until tab close (cheap; ~100 MB RSS); exec→appserver spawns a fresh child on the next turn.
|
|
879
|
+
|
|
880
|
+
The first-time-enable warning is a global flag - `settings.codex.appserverWarningSeen` - set to `true` after dismissal, reset to `false` whenever any tab is flipped back to `exec` so a subsequent re-enable re-shows the warning.
|
|
881
|
+
|
|
882
|
+
#### Live model catalog
|
|
883
|
+
|
|
884
|
+
`server/src/providers/codex-appserver/catalog.ts` mirrors the Claude catalog pattern: spawns a short-lived `codex app-server` once an hour to call the JSON-RPC `model/list` method, distills the response into a flat picker shape (`supportedReasoningEfforts` ascending, `description`, `defaultReasoningEffort`, `supportsImageInput`, `supportsPersonality`, `additionalSpeedTiers`), and caches in-memory for `REFRESH_INTERVAL_MS = 60 * 60 * 1000`. Refresh is lazy (next request after expiry); `?force=1` on `GET /api/codex/catalog` bypasses the cache.
|
|
885
|
+
|
|
886
|
+
**Per-account (multi-profile).** Codex is the only provider with per-account auth profiles (HOME / WORK), and model *availability* is entitlement-gated per account - a higher-tier WORK plan sees e.g. `gpt-5.6-sol` where HOME sees only Terra/Luna. So the cache is a `Map` keyed by `codexHome`: each profile is fetched by spawning app-server with that `CODEX_HOME` (the same seam `probeCodexLoggedIn` and both turn transports use). `GET /api/codex/catalog?account=<profileId>` resolves via `resolveProviderAccount('codex', id)` → `codexHome` (omit → ambient `~/.codex`; unknown id → first configured account). Client-side, `App.tsx` polls each configured profile into the `codexCatalogByAccount` store map; account-aware pickers read it via the `useCodexCatalogFor(accountRef)` hook (ConfigTab, TerminalInput, SpawnDialog, WorkflowCreator, AddWorkerSection), so flipping the ACCOUNT PROFILE toggle re-filters the model list live. The plain `codexCatalog` slice remains the default-account fallback for account-less surfaces (Handoff / Review / RunAs / TabContextMenu). Model *capabilities* (efforts, image input) are account-independent, so `getCachedCodexModelCapabilities` unions across every cached snapshot.
|
|
887
|
+
|
|
888
|
+
Two consumers:
|
|
889
|
+
|
|
890
|
+
1. **Picker** - client polls `/api/codex/catalog` (per profile, see above) every 30 minutes. WorkflowCreator, SpawnDialog, HandoffDialog, ReviewDialog, RunAsPicker, RightPanel, and the TerminalInput chip popover all read from `codexCatalog` (or the account-scoped `useCodexCatalogFor`) with the static `CODEX_MODELS` list as cold-start fallback. The catalog's `description` field surfaces as the picker subline / pill `title=` tooltip ("Frontier model for complex coding...", "Ultra-fast coding model.", etc).
|
|
891
|
+
|
|
892
|
+
2. **Effort gating** - `getCachedCodexModelCapabilities(modelId)` is consulted by `mapEffort` (`codex-appserver/worker.ts`) and `mapEffortToReasoning` (`codex.ts`). If the picker sends an effort the active model doesn't advertise, the mapper downgrades to the highest supported effort instead of letting the appserver 400.
|
|
893
|
+
|
|
894
|
+
Cold-start, fetch failure, or operator typo → `null` from the cache; mappers fall through to a safe pass-through (mapping in `baseMapEffort` / `baseMapEffortToReasoning`). The probe script at `server/scripts/probe-codex-catalog.ts` is the operator-facing "is the catalog reachable" check - `cd server && npx tsx scripts/probe-codex-catalog.ts`.
|
|
895
|
+
|
|
896
|
+
### Cluster mode
|
|
897
|
+
|
|
898
|
+
Cluster mode also supports Codex (`exec` and `app-server`) members alongside Claude. Both transports register the same `arco-cluster` MCP stdio child Claude CLI uses (`server/src/mcp/clusterMcpServer.ts`), but via Codex's `-c key=value` TOML override flag instead of a JSON config file (Codex CLI has no `--mcp-config <path>` flag). The override pair lives in `server/src/mcp/mcpConfigWriter.ts` as `buildCodexMcpOverrides(clusterId, workflowId, port)` - emits two `-c` argv entries:
|
|
899
|
+
|
|
900
|
+
```text
|
|
901
|
+
-c mcp_servers.arco-cluster.command="npx"
|
|
902
|
+
-c mcp_servers.arco-cluster.args=["tsx","<abs path to clusterMcpServer.ts>","<clusterId>","<workflowId>","<port>"]
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
Operator's `~/.codex/config.toml` is left untouched - `-c` overrides only set the specific dotted keys, every other operator-configured `[mcp_servers.*]` entry flows through unchanged. No TOML merge logic, no temp config file, no operator state mutation.
|
|
906
|
+
|
|
907
|
+
### Registry MCP
|
|
908
|
+
|
|
909
|
+
Both Codex transports also register the operator-curated **MCP registry** servers a tab has enabled, via the same `-c mcp_servers.<key>.*` override form (`buildCodexMcpOverrides` extends to `McpConfigOptions.registryServers`; `env` rides through as a TOML inline table). **Known gap - Codex has NO per-tool allow/deny flag** ("No equivalent to Claude's `--tools` allow-list"), so enabling a server on a Codex tab exposes **all** of that server's tools. The dangerous-tool denylist is therefore **not enforceable on Codex** - Arco surfaces this honestly in the MCP CONFIG section (gap banner + per-tool "(not gated on Codex)" labels) rather than faking enforcement. Server-level enable/disable IS honored. Full detail: `docs/MCP_REGISTRY.md`.
|
|
910
|
+
|
|
911
|
+
#### `exec` lifecycle
|
|
912
|
+
|
|
913
|
+
Per-turn - symmetric with Claude CLI. `codex.ts buildArgs()` appends the two `-c` overrides whenever `WorkerConfig.clusterId` is set; codex spawns the MCP child for the duration of the `codex exec` invocation, both die together. The plan body + role hint + drained mailbox prologue ride through `WorkerConfig.appendSystemPrompt`, which `codex.ts` already folds into the prompt prefix at `${appendSystemPrompt}\n\n---\n\n${prompt}` shape (existing prefix-cache pattern). No new code path for that.
|
|
914
|
+
|
|
915
|
+
#### `app-server` lifecycle
|
|
916
|
+
|
|
917
|
+
Per-appserver-process - the MCP child lives for the full lifetime of the long-lived `codex app-server` child, NOT per-turn. Asymmetric with `exec` and Claude CLI. `CodexAppServerWorker.ensureStarted()` injects the `-c` overrides into the `codex app-server` argv at bootstrap; `bootstrappedClusterId` records what cluster the appserver was bound to.
|
|
918
|
+
|
|
919
|
+
When the operator joins / detaches a workflow from a cluster mid-conversation, the cached worker's `currentClusterId` no longer matches `config.clusterId` on the next turn. The dispatcher (`codex-appserver/index.ts acquireWorker`) detects the mismatch, disposes the cached worker, and re-bootstraps with (or without) the MCP child wired in. Codex thread state survives via `thread/resume`, so the conversation continues unbroken - only the MCP wiring flips.
|
|
920
|
+
|
|
921
|
+
Per-turn injection (plan + role + mailbox prologue) flows through `beginTurn(prompt, appendSystemPrompt)` and lands in the `UserInput[]` payload's trailing text element. Same `${appendSystemPrompt}\n\n---\n\n${prompt}` shape as `exec`. App-server has a separate bounded 48 KB cluster fold because JSON-RPC stdin has no argv ceiling; this admits the full 32 KB maximum plan plus the small cluster blocks. The 16 KB cap remains on CLI transports. Repeating a large plan consumes thread context, so 48 KB remains a ceiling rather than becoming unlimited.
|
|
922
|
+
|
|
923
|
+
For Codex cluster members, the stable operator-assigned role, code-mode tool mapping, and derived Director operating contract also ride `developerInstructions` on `thread/start` / `thread/resume`. Role or model changes recycle the app-server child and resume the same thread so those developer instructions stay current. Mutable plan content remains per-turn input.
|
|
924
|
+
|
|
925
|
+
#### Code-mode models (gpt-5.6 and GPT-6 families) - cluster addendum
|
|
926
|
+
|
|
927
|
+
The gpt-5.6 models (sol / terra / luna) and the GPT-6 models (astra / sol / luna) run OpenAI's own multi-agent "code mode" harness: the model is `/root` in a team of agents, gets native `spawn_agent` / `send_message` tools, and its tool surface becomes a JS `exec` code cell. The arco-cluster MCP tools survive but move INSIDE the exec cell's `tools` namespace under `tools.mcp__arco_cluster__<tool>` - note **dash → underscore**, unlike Claude CLI's `mcp__arco-cluster__peer_send` wire name. A code-mode member told "use peer_send" can't find any such tool and defaults to the harness's own coordination surface. Fix: `turnEngine` folds `codexCodeModeClusterAddendum()` (`server/src/providers/codexCodeMode.ts`) into the cluster blocks for Codex members whose model the codex catalog (`$CODEX_HOME/models_cache.json` `tool_mode` / `multi_agent_version`) marks as code-mode - catalog-driven, fail-open on unknown. App-server additionally sets the role/tool mapping as developer instructions, preventing Codex's `/root` framing from outranking the Arco role. Verified prompt contract: `npm run smoke:astra-cluster-director`. Full original investigation + repro: `docs/CODEX_GPT56_CLUSTER_INCOMPAT.md`.
|
|
928
|
+
|
|
929
|
+
#### Acceptance
|
|
930
|
+
|
|
931
|
+
- `npm run smoke:cluster-4` covers Codex `exec` cluster create + plan/role/peer round-trip; Codex `appserver` cluster create + plan/role/peer round-trip; mixed Native Claude + Codex `exec` cluster via REST.
|
|
932
|
+
- Real Codex CLI invocation (real Codex API spend) requires the manual recipe in DEVLOG.
|
|
933
|
+
|
|
934
|
+
---
|
|
935
|
+
|
|
936
|
+
### Interactive operator questions across transports
|
|
937
|
+
|
|
938
|
+
Claude Native Agent keeps its existing inline `AskUserQuestion` form. Codex
|
|
939
|
+
**app-server** captures `item/tool/requestUserInput` and async
|
|
940
|
+
`agentMessage { delivery: 'async', questions }` items. The installed 0.162.1
|
|
941
|
+
schema was inspected for these fields; older RPC requests without `isBlocking`
|
|
942
|
+
default to blocking. Vendored 0.128 bindings are extended narrowly at the reader.
|
|
943
|
+
|
|
944
|
+
Questions appear inline and under the composer's **? N QUESTIONS** button in
|
|
945
|
+
Agent and saved Chat. Multiple questions retain IDs, option descriptions,
|
|
946
|
+
freeform/secret flags and explicit submission (no default is automatically sent).
|
|
947
|
+
RPC answers return on the original request ID; async message answers enter the
|
|
948
|
+
normal user-message/steer queue, including after the original turn settles.
|
|
949
|
+
Permission/command approvals still use the existing deterministic declines.
|
|
950
|
+
Exec is headless and has no question/reply bridge; choose APPSERVER in CONFIG.
|
|
951
|
+
|
|
952
|
+
`codex-appserver/operatorQuestions.ts` owns bounded live handles (16 per worker)
|
|
953
|
+
and publishes structured `operator_question` states through a server-injected
|
|
954
|
+
publisher, so async questions remain answerable after the per-turn wrapper
|
|
955
|
+
unwires. Events persist through the normal workflow broadcaster; secret answers
|
|
956
|
+
are redacted before publishing. Incognito transport/privacy rules are unchanged.
|
|
957
|
+
RPC questions close on turn settlement or upstream `serverRequest/resolved`;
|
|
958
|
+
async message cards survive successful settlement. Explicit cancel, worker
|
|
959
|
+
retirement and connection death close pending handles. Late/duplicate replies
|
|
960
|
+
are rejected, and ordinary async replies cannot cross a changed provider/session.
|
|
961
|
+
Reconnect snapshots reconcile live questions and close orphaned replay cards
|
|
962
|
+
after a server restart. Pending cards stay hot within the existing 500-row cap.
|
|
963
|
+
|
|
964
|
+
Validation: `test:operator-questions`, `test:operator-questions-ui`, and
|
|
965
|
+
`smoke:operator-questions` (isolated source server + fake executable, never live
|
|
966
|
+
inference). Browser acceptance: `scripts/smoke/operator-questions-browser.py`
|
|
967
|
+
against isolated Vite with all API/WebSocket traffic stubbed.
|
|
968
|
+
|
|
969
|
+
## Cursor
|
|
970
|
+
|
|
971
|
+
`server/src/providers/cursor/` - a long-lived per-workflow ACP worker (`worker.ts`) driving
|
|
972
|
+
`cursor-agent acp` over JSON-RPC (`acpJsonRpc.ts`), a per-turn wrapper + worker cache (`index.ts`),
|
|
973
|
+
a `cursor-agent models` catalog (`catalog.ts`), and a stateless `cursor-agent -p --mode ask` one-shot
|
|
974
|
+
for read-only primitives (`print.ts`). Cursor is a metered subscription fronting ~150 models across
|
|
975
|
+
every major lab behind one login. **This section covers auth recovery, usage, compression, the model picker and cluster membership.**
|
|
976
|
+
Chat tabs route Cursor to the `print` transport with transcript replay; Cursor is refused for
|
|
977
|
+
Incognito (its CLI has no ephemeral-session flag). Attachments: the ACP worker sends native `image`
|
|
978
|
+
content blocks when `initialize` advertises `promptCapabilities.image` (cursor-agent 2026.09 does);
|
|
979
|
+
`print` (Chat + read-only primitives) has no image flag, so it passes path refs and `--add-dir`s the
|
|
980
|
+
upload dir so ask-mode's read tool can open them. Non-images are path refs on both.
|
|
981
|
+
|
|
982
|
+
### Auth and stale ACP recovery
|
|
983
|
+
|
|
984
|
+
`GET /api/auth-status` reads `~/.config/cursor/auth.json` fresh, while each workflow's long-lived
|
|
985
|
+
`cursor-agent acp` child keeps the credentials and CLI binary it started with. A successful
|
|
986
|
+
`cursor-agent login` or CLI update therefore does not repair an already-running ACP process by itself.
|
|
987
|
+
Cursor reports this condition as the ordinary assistant text `Please sign in to continue`, not as an
|
|
988
|
+
ACP error. `CursorAcpTurn` narrowly recognizes that exact response, withholds only its short candidate
|
|
989
|
+
prefix from the normal stream, emits `[AUTH:cursor]` for the shared inline re-login UI, and disposes the
|
|
990
|
+
cached worker. After the operator completes login and resends, `acquireWorker` starts the current CLI
|
|
991
|
+
with the current credentials and attempts the normal `session/load` resume. Any longer answer that only
|
|
992
|
+
mentions signing in falls through as normal assistant text. `POST /api/auth-login?provider=cursor`
|
|
993
|
+
opens a terminal running `cursor-agent login`.
|
|
994
|
+
|
|
995
|
+
### Usage
|
|
996
|
+
|
|
997
|
+
Cursor's ACP `result` carries **no per-turn tokens**, so Cursor never emits `primary_turn_token_usage`
|
|
998
|
+
and never appears in the per-project Usage aggregation. Instead `server/src/cursorUsage.ts` polls the
|
|
999
|
+
**authed dashboard API** (`GET /api/cursor-usage`, 3-min cache; reads `~/.config/cursor/auth.json` fresh
|
|
1000
|
+
each poll, decodes the JWT `sub`, builds the `WorkosCursorSessionToken` cookie) for month-to-date charged-$
|
|
1001
|
+
+ token totals + per-`kind` counts + the `get-hard-limit` `hardCapped` flag. The client polls it into the
|
|
1002
|
+
`cursorUsage` store field and renders `CursorUsageCard` at the top of the Usage tab - it shows even when
|
|
1003
|
+
the per-project aggregation is empty (Cursor-only projects have no per-turn events). The card is labelled
|
|
1004
|
+
"· polled · not live" so a blank in-tab live meter reads as expected, not broken. `401/403` →
|
|
1005
|
+
`needsLogin` + a `cursor-agent login` nudge.
|
|
1006
|
+
|
|
1007
|
+
The worker header deliberately renders **`CTX: Cursor-managed`**, not an invented percentage. Cursor's
|
|
1008
|
+
ACP adapter currently returns only `{ stopReason }` from `session/prompt` and emits neither per-turn
|
|
1009
|
+
usage nor the standard `usage_update { used, size }` notification, even though the ACP schema knows
|
|
1010
|
+
those optional shapes. Dashboard events are billing totals across internal calls, not a retained
|
|
1011
|
+
prompt snapshot, so they are not a valid substitute for context fill.
|
|
1012
|
+
|
|
1013
|
+
### Context compression
|
|
1014
|
+
|
|
1015
|
+
Cursor automatically summarizes older history as its context fills. Arco also exposes an idle-only
|
|
1016
|
+
**COMPACT** button (and `/compress` composer shortcut) that invokes Cursor's documented native
|
|
1017
|
+
`/compress` command against the live ACP session. `CursorAcpWorker.compressConversation()` sends it as
|
|
1018
|
+
the **entire single text block** in `session/prompt`: it must not pass through `beginTurn()`, because
|
|
1019
|
+
that path prepends north-star + cluster plan/role/doctrine and Cursor would treat the resulting text as
|
|
1020
|
+
an ordinary model prompt instead of a slash command. `available_commands_update` is cached outside an
|
|
1021
|
+
active turn; when Cursor has supplied an authoritative snapshot, Arco refuses rather than guessing
|
|
1022
|
+
if `compress` is absent. The underlying Cursor session persists the summary. Arco records the action
|
|
1023
|
+
through the existing `ctx_action` + system-notice compact path; Handoff remains the clean-session escape
|
|
1024
|
+
hatch. Cursor still has no Arco auto-handoff threshold because ACP supplies no trusted fill signal.
|
|
1025
|
+
|
|
1026
|
+
**Included-allocation gauge.** `cursorUsage.ts` also GETs `/api/usage-summary` (the endpoint the Spending
|
|
1027
|
+
page calls) → `CursorIncludedUsage` (`used`/`limit`/`remaining` cents, `totalPercentUsed` /
|
|
1028
|
+
`autoPercentUsed` / `apiPercentUsed`, billing-cycle bounds, on-demand state). `CursorIncludedGauge`
|
|
1029
|
+
(`client/src/components/CursorIncludedGauge.tsx`) renders it as an "Included in Pro - $X / $Y · resets ..."
|
|
1030
|
+
bar in BOTH the Usage-tab card and the header-dot hover. The bar fill uses Cursor's own blended
|
|
1031
|
+
`totalPercentUsed` (Cursor weights first-party vs API differently - it is NOT `used/limit`), so the gauge
|
|
1032
|
+
matches cursor.com exactly rather than a synthesized percentage. The compact header-dot variant additionally
|
|
1033
|
+
shows Cursor's **Other Models** quota as a separate bar driven directly by `apiPercentUsed`. Absent (endpoint drift) → the card falls
|
|
1034
|
+
back to the charged-$/hard-cap line. The other candidate endpoints don't exist for individual accounts
|
|
1035
|
+
(`get-hard-limit` returns only `noUsageBasedAllowed`; the legacy `/api/usage` `maxRequestUsage` is `null`
|
|
1036
|
+
on usage-based plans) - `/api/usage-summary` is the one that carries the real allocation denominator.
|
|
1037
|
+
|
|
1038
|
+
### Model catalog & family × effort picker
|
|
1039
|
+
|
|
1040
|
+
`cursor-agent models` returns ~189 ids that are really **family × effort × flag** permutations dumped
|
|
1041
|
+
flat (`gpt-5.3-codex-high-fast`, `claude-opus-4-8-thinking-xhigh`, ...). Rather than a 189-option wall,
|
|
1042
|
+
the picker groups by family and offers only the efforts/flags that exist for the chosen family. The
|
|
1043
|
+
grammar is genuinely irregular - do not "simplify" the parser without re-checking `cursor-agent models`:
|
|
1044
|
+
effort is a trailing token OR absent (bare id = the family's default slot); `gpt-5.5` spells extra-high
|
|
1045
|
+
as two tokens `-extra-high`; `-fast` is trailing everywhere except grok (`grok-4.5-fast-xhigh`, mid-id);
|
|
1046
|
+
`-thinking` sits before the effort for opus-4-8 but after it for sonnet-4.6; a family name can itself end
|
|
1047
|
+
in an effort word (`gpt-5.1-codex-max` is a family, `-max-low` = that family at low), so only ONE
|
|
1048
|
+
trailing effort token is ever stripped; `(NO ZDR)` is a per-family display property (fable), not a
|
|
1049
|
+
selectable variant.
|
|
1050
|
+
|
|
1051
|
+
- **Parser (`shared/src/protocol/models.ts`).** `parseCursorModelId(id) → {family, effort, fast,
|
|
1052
|
+
thinking}` (pure, total - unknown ids degrade, never throw); `buildCursorModelIndex(models)` groups the
|
|
1053
|
+
catalog into `CursorFamily[]` (label = word-common-prefix of member display names, so grok's offset
|
|
1054
|
+
effort labels don't corrupt it) + a `byKey` resolve map; `resolveCursorModelId` / `cursorEffortsFor`
|
|
1055
|
+
read it back. **The load-bearing rule: the UI never *synthesizes* an id - it looks up the exact id the
|
|
1056
|
+
catalog advertises.** Proven by `cursorModels.test.ts` (`npm run test:cursor-models`): parse is
|
|
1057
|
+
injective over the full live catalog (no two ids collide on a selection key) and every id round-trips
|
|
1058
|
+
(`resolve(parse(id)) === id`). So it's structurally impossible to send `xhigh` when the operator picked
|
|
1059
|
+
`high`.
|
|
1060
|
+
- **UI (`client/src/components/CursorModelSelect.tsx`).** Drop-in for the old flat `<select>` - identical
|
|
1061
|
+
`{value: catalogId, onChange: (catalogId) => ...}` contract - rendering family `<select>` × effort
|
|
1062
|
+
`<select>` × FAST / THINK chips (+ NO-ZDR badge, + an "Auto picks model & effort" note when family is
|
|
1063
|
+
`auto`). Toggling a flag that removes the current effort snaps to the nearest real one. Wired into all
|
|
1064
|
+
six pickers (WorkflowCreator primary, ConfigTab live-swap, SpawnDialog, TerminalInput composer popover,
|
|
1065
|
+
cluster AddWorkerSection + ClusterMembersSection). `config.model` still stores/sends the exact flat id,
|
|
1066
|
+
so the worker + persistence are unchanged.
|
|
1067
|
+
- **Effort chip honesty.** The Cursor worker's `resolveModelId()` ignores `config.primaryEffort` (effort
|
|
1068
|
+
lives only in the id), so `PrimaryStatus.tsx` reads the effort **back out of the resolved id** for
|
|
1069
|
+
Cursor and hides the chip for `auto` / bare-default ids - never the stored `primaryEffort`, which would
|
|
1070
|
+
be a lie.
|
|
1071
|
+
|
|
1072
|
+
### Cluster mode
|
|
1073
|
+
|
|
1074
|
+
Cursor is a `ClusterMemberProvider` - a Cursor member can hold any role at any model. Its peer tools
|
|
1075
|
+
ride a mechanism unique among the providers: an **in-process loopback StreamableHTTP MCP server**, not
|
|
1076
|
+
the stdio child Claude-CLI/Codex members spawn. Cursor ACP advertises `mcpCapabilities:{http:true,
|
|
1077
|
+
sse:true}` and **no stdio** (spike-8; a stdio `mcpServers` entry was accepted but never called), so a
|
|
1078
|
+
network transport is mandatory. An SSE micro-probe (`scripts/cursor-sse-mcp-probe.ts`, throwaway)
|
|
1079
|
+
confirmed a loopback MCP's tools appear + are callable over ACP on both streamable-HTTP and legacy SSE;
|
|
1080
|
+
streamable-HTTP is the chosen transport.
|
|
1081
|
+
|
|
1082
|
+
- **Shared tool factory.** The arco-cluster tool set (6 peer/plan tools + 11 board-gated task tools)
|
|
1083
|
+
was extracted from the stdio child into `server/src/mcp/clusterMcpTools.ts`
|
|
1084
|
+
(`registerClusterTools(server, ctx)`). Both the stdio child (`clusterMcpServer.ts`, for Claude-CLI /
|
|
1085
|
+
Codex) and the loopback manager (`clusterMcpLoopback.ts`, for Cursor) call it - one source of truth
|
|
1086
|
+
for the tool names + descriptions + REST wiring, so they can't drift.
|
|
1087
|
+
- **Per-member listener.** `clusterMcpLoopback.ts` stands up one HTTP listener **per member**
|
|
1088
|
+
(workflowId) bound to `127.0.0.1:<ephemeral>` at an unguessable `/mcp/<random-token>` path,
|
|
1089
|
+
stateless-per-request (a fresh `McpServer` per request reads the current mutable ctx, so a mid-life
|
|
1090
|
+
task-board attach/detach is reflected on the next tool call). Not per-cluster: `peer_send` stamps
|
|
1091
|
+
`from: workflowId`, so each member needs its own baked identity - and N Cursor members can't share a
|
|
1092
|
+
URL. `cursor/worker.ts` calls `ensureClusterLoopbackMcp` at bootstrap when `config.clusterId` is set,
|
|
1093
|
+
injects `{type:'http', name:'arco-cluster', url, headers:[]}` into both `session/new` and
|
|
1094
|
+
`session/load` `mcpServers`, refreshes ctx each `beginTurn`, and `closeClusterLoopbackMcp` on dispose.
|
|
1095
|
+
- **Plan/role/doctrine.** Folded into `appendSystemPrompt` via `turnEngine.ts` `needsStringFormCluster`
|
|
1096
|
+
(which already listed `'cursor'`), same as Claude-CLI / Codex - string-form, not a forced
|
|
1097
|
+
block. Cursor is not a local provider, so it does NOT go through `buildLocalClusterSystemPrompt`.
|
|
1098
|
+
- **Model→provider inference** (`clusterHandlers.ts`). Bare `auto` + `grok-*` → `cursor`. Because Cursor
|
|
1099
|
+
**proxies** the claude-\*/gpt-\*/glm-\* families, those prefixes can't distinguish Cursor by id, so
|
|
1100
|
+
`resolveClusterOverrideProvider` skips the provider/model-mismatch check when the operator explicitly
|
|
1101
|
+
picked `cursor` (a Cursor member on a proxied model id is legit, not a mismatch).
|
|
1102
|
+
- **Fresh-only (v1 limitation).** A Cursor member must be spawned already inside the cluster - its
|
|
1103
|
+
`session/new` carries the loopback URL at bootstrap, and `mcpServers` is fixed there. A standalone
|
|
1104
|
+
Cursor tab added via `AddWorkerSection`'s EXISTING mode is deliberately **excluded**: joining it would
|
|
1105
|
+
produce a mute member (session opened without the MCP). Fresh members (cluster creator + FRESH-spawn)
|
|
1106
|
+
work immediately.
|
|
1107
|
+
|
|
1108
|
+
**Smoke:** `npm run smoke:cursor-phase-6` (4/4 headless - no metered turns): resolver + inference, the
|
|
1109
|
+
board-gated factory (6 vs 17 tools), and the loopback lifecycle (ensure → tools/list over a real
|
|
1110
|
+
StreamableHTTP MCP client → idempotent re-ensure same URL, board-attach flips 6→17 → close tears the
|
|
1111
|
+
listener down).
|
|
1112
|
+
|
|
1113
|
+
---
|
|
1114
|
+
|
|
1115
|
+
## Ollama
|
|
1116
|
+
|
|
1117
|
+
`server/src/providers/ollama.ts` + `server/src/providers/ollamaTools.ts`. Pure HTTP, no subprocess.
|
|
1118
|
+
|
|
1119
|
+
> **Operator health readout.** The System modal's **Models** tab (A3 - `docs/DIAGNOSTICS.md` Local model health panel) surfaces the resolved base URL, reachability, installed-model count + names, and the daemon version for Ollama, reusing `probeOllama()` / `getOllamaBase()`. Read-only, operator-triggered.
|
|
1120
|
+
|
|
1121
|
+
### Spawn
|
|
1122
|
+
|
|
1123
|
+
`fetch(\`${OLLAMA_URL_BASE}/api/chat\`, { method: 'POST', body: JSON.stringify({ model, messages, stream: true, keep_alive: '10m', tools }) })`. No subprocess; the response is an NDJSON stream. Image attachments ride the final user message's `images` field (base64, 5 MB each; vision-capable models only); non-images fold as `[attached file: <path>]`.
|
|
1124
|
+
|
|
1125
|
+
**Image downscaling (all providers).** Every image upload gets a background-derived sibling `<path>.model.<ext>` (≤2000px long edge, ≤3.75 MB raw, JPEG q85 fallback; ImageMagick `magick`/`convert`, macOS `sips`) in `providers/attachments.ts`. Models receive that copy: `modelImagePath` (sync - Claude CLI, Native `buildImageBlock`, Codex exec `-i`) or `awaitModelImage` (≤5 s - Codex app-server `localImage`, Cursor ACP, Ollama, llama.cpp, LM Studio staging); `turnEngine` also awaits before spawning so a send right after a paste gets the copy. Media type follows the derived file; text refs keep the original path; the original file is never modified. No image tool ⇒ original, as before.
|
|
1126
|
+
|
|
1127
|
+
`OLLAMA_URL_BASE` defaults to `http://localhost:11434`. Override it with the env var. `settings.ollama.baseUrl` supports DD12 config-value interpolation (`!cmd ...` runs a command; `${ENV}` reads an env var) through `resolveConfigValue`, so the endpoint can be derived at resolve time. `keep_alive` is per request (`'10m'`), long enough for consecutive turns and short enough to return VRAM when a tab is idle; see Quirks.
|
|
1128
|
+
|
|
1129
|
+
### Multi-backend routing + resilience
|
|
1130
|
+
|
|
1131
|
+
`server/src/providers/ollamaResilience.ts` is the decision surface; `ollama.ts` owns the fetch/parse. The chat path can fan out across **multiple Ollama daemons** that serve overlapping model sets. The optional `modelHostMap` can pin specific models to a configured backend. Backend selection uses Arco's local resilience logic; no external router package is required.
|
|
1132
|
+
|
|
1133
|
+
**Config (`settings.ollama`, settings-file-only - no HTTP endpoint in v1):**
|
|
1134
|
+
|
|
1135
|
+
```jsonc
|
|
1136
|
+
"ollama": {
|
|
1137
|
+
"baseUrl": "http://localhost:11434", // legacy single-backend (still works)
|
|
1138
|
+
"backends": [ // multi-backend routing - supersedes baseUrl for chat when non-empty
|
|
1139
|
+
{ "baseUrl": "http://127.0.0.1:11434", "weight": 3, "label": "primary" },
|
|
1140
|
+
{ "baseUrl": "http://127.0.0.1:11435", "weight": 1, "label": "secondary" }
|
|
1141
|
+
],
|
|
1142
|
+
"modelHostMap": { "qwen3-vl": ["primary"] } // optional affinity hint (model to backend labels)
|
|
1143
|
+
}
|
|
1144
|
+
```
|
|
1145
|
+
|
|
1146
|
+
Each backend: `{ baseUrl, weight?, enable?, label?, tailscaleHost? }`. **Back-compat (degenerate one-backend case):** when `backends` is empty/unset the provider synthesizes a single backend from the `baseUrl`→`OLLAMA_URL_BASE`→localhost cascade - an operator who never configures `backends` sees IDENTICAL behavior to the previous single-backend setup.
|
|
1147
|
+
|
|
1148
|
+
**Selection** (`selectBackend`): weighted-shuffle (cumulative-weight roll, RNG injectable for tests) over the *healthy* backends that serve the requested model. Per-backend model knowledge comes from a one-shot `/api/tags` fan-out per turn ∪ the `modelHostMap` hint (the hint only narrows). Unknown serves-model (probe failed / not fetched) is treated optimistically. The chosen host + reason land in `events.jsonl` via `system_notice`.
|
|
1149
|
+
|
|
1150
|
+
**Per-backend num_ctx (backend-specific probe):** the trusted num_ctx ceiling is probed on the *chosen* backend's `/api/show` - a model can be loaded with a different window per host. The result event's `modelContextWindow` reflects the host that produced the answer.
|
|
1151
|
+
|
|
1152
|
+
**Cooldown** (`reportFailure`): reactive, SHORT TTL - 12s remote / 6s local (a restarting local daemon recovers fast; rate-limit `Retry-After` honored up to 60s). Lazy recovery, no background prober. **Load-bearing: never cool the only/last healthy backend** (the `cooldown_skip_last` guard - see GOTCHAS).
|
|
1153
|
+
|
|
1154
|
+
**Retry/failover** (`backoffMs`): on a retryable error, re-select. **Instant zero backoff when a healthy peer exists**; jittered exponential (`0.5·2^n` cap 8s + ≤0.75s jitter) only when forced onto the last/only host. Retryability table (`classifyOllamaError`): conn errors (refused/timeout/reset/DNS) + 5xx/429 = retryable+cool; 4xx incl. 400 context-overflow = neither (400 is the transcript's fault - context-window fallback owns it, not a cooldown). A mid-stream drop *after bytes were emitted* does NOT fail over (would double-emit) - it surfaces as terminal.
|
|
1155
|
+
|
|
1156
|
+
**Connect timeout** (`OLLAMA_CONNECT_TIMEOUT_MS`, default 3s, env `ARCO_OLLAMA_CONNECT_TIMEOUT_MS`): a second AbortController aborts if response *headers* don't arrive in time, then is cleared once streaming starts (decode stays unbounded). A dead host fails in ~3s instead of hanging. The timeout abort carries `CONNECT_TIMEOUT_MARKER` so it's classified retryable, distinct from operator abort.
|
|
1157
|
+
|
|
1158
|
+
**Tailscale fallback (BEST-EFFORT):** on a DNS failure (`ENOTFOUND`), `resolveViaTailscale` shells out (`execFile`, argv-only, no shell) to `tailscale status --json` to resolve the host to its tailnet IP and retries once against the IP. **Cross-platform:** tries `tailscale` on PATH + `/usr/bin/tailscale` (Linux) + the macOS app-bundle path; tight 2.5s timeout; **fails soft** - a missing/erroring Tailscale never breaks normal operation. Loopback hosts are never tailscale-resolved.
|
|
1159
|
+
|
|
1160
|
+
### Per-model param presets
|
|
1161
|
+
|
|
1162
|
+
`server/src/providers/ollamaParams.ts` is the typed cast/allowlist boundary every request's params flow through (ported from open-webui `apply_model_params_to_body_ollama`). A persisted `ollamaParams` blob lives on `WorkflowConfig` / `WorkerConfig` / `WorkflowMeta` and rides `UpdatePrimaryConfigMessage`, so an operator's per-tab params survive restarts and live-edit from CONFIG without a respawn. Absorbs Hardening (`num_ctx`).
|
|
1163
|
+
|
|
1164
|
+
- **`OLLAMA_PARAM_SPEC`** - the allowlist table. Each key carries a `placement` (`'options'` vs request `'root'`) and a fail-closed `coerce`. Allowed keys: `num_ctx, keep_alive, num_gpu, temperature, top_p, top_k, min_p, num_predict, repeat_penalty, repeat_last_n, seed, num_batch, num_thread, num_keep` (plus `stop`). Anything unmapped is **dropped** (prevents Ollama "invalid option" warnings); a value that fails to coerce is dropped, not guessed. `keep_alive` lifts to the request root; sampler/`num_ctx` keys go under `options`.
|
|
1165
|
+
- **Trusted-only `num_ctx` (`clampNumCtx`).** The operator may type any `num_ctx` in the UI, but it is **clamped to the model's probed `/api/show` Modelfile ceiling** - guessing high risks daemon OOM, guessing low truncates. If no trusted probe exists, `num_ctx` is **omitted entirely** and the daemon's 2048 default applies (the conservative arm of the trusted-only rule). multi-backend routing re-probes this ceiling on the *chosen* backend per turn.
|
|
1166
|
+
- **CONFIG-tab ADVANCED PARAMS.** Collapsed-by-default section exposing the `OLLAMA_PRESET_UI_KEYS` menu (`num_ctx`, `keep_alive`, `num_gpu`, `temperature`); the rest live in the raw JSON blob for power users. Each turn emits a `system_notice` of the effective keys so the applied preset is visible in `events.jsonl`.
|
|
1167
|
+
|
|
1168
|
+
The applied `options` envelope is the **single insertion point** and is prefix-cache-load-bearing - see GOTCHAS.
|
|
1169
|
+
|
|
1170
|
+
### Structured output via `format`
|
|
1171
|
+
|
|
1172
|
+
`server/src/primitives/reviewSchema.ts` routes the Review primitive's structured verdict through Ollama's sampler-constrained `format` field instead of regex-scraping free text - the single biggest reliability win for small models inside primitives. `OllamaChatRequest` gains a top-level `format` field (a JSON schema), **mutually exclusive with `tools` on the wire** (`format` is only sent when no tools are advertised - `format` suppresses `tool_calls`).
|
|
1173
|
+
|
|
1174
|
+
- **`REVIEW_FORMAT_SCHEMA`** - a deliberately small enum-locked schema: `verdict` ∈ `PASS|MINOR|BLOCKING`, finding `severity` ∈ `info|warning|error`, every property `required` so the sampler can't drop a field. `enum` on verdict + severity is what kills the single biggest source of verdict-detection misses.
|
|
1175
|
+
- **Two-phase reviewer (open-webui pattern).** The reviewer tool-loop runs free (native tools), then ONE schema-constrained synthesis turn produces the guaranteed-valid JSON; the verdict badge / on-disk artifact / findings are reconstructed straight from it (`StructuredReview`), no re-scrape.
|
|
1176
|
+
- **Ollama-gated.** No other provider exposes a sampler-level `format`; the free-text fallback is preserved for them. `parsePlan` is deliberately left as deterministic human-text parsing (the plan body is operator prose, not model output).
|
|
1177
|
+
|
|
1178
|
+
### Token accounting
|
|
1179
|
+
|
|
1180
|
+
`server/src/providers/ollamaTokens.ts` tracks per-workflow input-token fill so the CTX bar lights up for Ollama and gives context compaction and context-window fallback a fill signal to gate on.
|
|
1181
|
+
|
|
1182
|
+
- **Ground truth** is Ollama's `prompt_eval_count` on the `done:true` line (the actual prompt count the daemon saw) → carried on the result event as `lastPromptTokens`.
|
|
1183
|
+
- **`estimatePromptTokens`** is the forward-looking pre-turn estimate. It **counts tool-call arguments** (a tool-only assistant turn has `content:null` with the whole payload in `tool_calls[].function.arguments` - naïve counting undershoots ~20-30% and the compaction gate goes blind), plus tool results and the advertised tool schemas (sent every turn).
|
|
1184
|
+
- Reuses the existing `ContextUsageMessage` → CTX bar; the denominator is the per-backend probed `num_ctx` (`OLLAMA_DEFAULT_WINDOW` = 2048 fallback). Context compaction reads `context_usage.percentOfWindow` (post-turn) + `estimatePromptTokens()` (forward-looking) to decide whether to compact.
|
|
1185
|
+
|
|
1186
|
+
### Auto-compaction
|
|
1187
|
+
|
|
1188
|
+
`server/src/providers/ollamaRecovery.ts` ports `llamacppRecovery.ts`'s auto-compaction to Ollama, adapted to the stateless-per-turn worker shape. Persists an `ollama_compacted` event (before/after byte + token counts) to `events.jsonl` so replay re-seeds correctly and transcript review shows where history was cut.
|
|
1189
|
+
|
|
1190
|
+
- **Gates.** Hard compact at **0.85** fill (`ARCO_OLLAMA_COMPACT_THRESHOLD`), early **0.75** warn-only `system_notice` (`ARCO_OLLAMA_COMPACT_WARN`) suggesting Handoff before the lossy local summary fires, max **1** auto-compaction per operator turn. Because the Ollama worker is stateless per turn, `maybeCompact` fires at the **front edge** of `run()` (before the tool-loop). (llama.cpp no longer compacts; it only warns.)
|
|
1191
|
+
- **Transform.** Keep the leading system block + current turn + last-10 messages verbatim (`ARCO_OLLAMA_COMPACT_KEEP_LAST`); summarize the older half on the utility-model summarization seam (`runUtilitySummaryJob`); deterministic structural digest (`deterministicDigest`) when the summary call returns `null` - **fails open, never closed**.
|
|
1192
|
+
- **Tool-message invariants (load-bearing - see GOTCHAS).** `sanitizeToolMessages` repairs/drops the orphaned `role:'tool'` / dangling `tool_calls` a front-cut creates (Ollama pairs positionally - no `tool_call_id`). `truncateToolCallArgs` shrinks an oversized single tool turn to a `{_truncated_for_context: N}` placeholder, preserving name/type so pairing survives.
|
|
1193
|
+
- Scoped **out** of utility JSON formatting one-shots; defers to context-window fallback on unknown-window or at-keep-tail-floor.
|
|
1194
|
+
|
|
1195
|
+
### Context-window fallback
|
|
1196
|
+
|
|
1197
|
+
`server/src/providers/ollamaCtxFallback.ts` `planCtxEscalation` - on a detected overflow, re-dispatch to a larger window instead of failing. Builds on multi-backend routing. Emits a `context_window_fallback` `system_notice` (from→to). **Escalate, don't re-compact** - context compaction owns the transcript; this is the escape hatch when even compaction isn't enough or a bigger window exists.
|
|
1198
|
+
|
|
1199
|
+
- **Order:** (1) `numctx_bump` - same backend/model, request the **full probed ceiling**, only when it's `>` the failing window; (2) `peer_backend` - a different backend whose probed window for the same model is known-larger.
|
|
1200
|
+
- Reuses multi-backend routing's `contextOverflow` classification (400 stays non-retryable + HOT - it's not the host's fault). Bounded re-dispatch (max 2 hops, `MAX_CTX_ESCALATIONS`, no re-pick), with a mid-stream guard so a re-dispatch can't double-emit.
|
|
1201
|
+
|
|
1202
|
+
### Relevant-tool subsetting
|
|
1203
|
+
|
|
1204
|
+
`server/src/providers/ollamaToolSubset.ts` (pure) caps the advertised tool catalog so large schema payloads don't degrade small-model tool selection (Hardening 7 - heuristic, no embeddings).
|
|
1205
|
+
|
|
1206
|
+
- **`OLLAMA_CORE_TOOLS`** = `Read/Grep/Glob/Bash` (+ cluster peer/plan tools when the workflow is a member) - never trimmed. The remainder is ranked by term-overlap relevance against the **stable system-block signal** (not the volatile last message - see prefix-cache invariant in GOTCHAS), capped at **9** (`ARCO_OLLAMA_TOOL_CAP`, floored at the core size).
|
|
1207
|
+
- Computed **once per turn** from a stable signal → byte-identical `tools[]` across turns = prefix-cache-safe. Passthrough below the cap; disable entirely with `ARCO_OLLAMA_TOOL_SUBSET=0`. The chosen subset is logged to `events.jsonl`.
|
|
1208
|
+
|
|
1209
|
+
### Capability-gated tool handling
|
|
1210
|
+
|
|
1211
|
+
`server/src/providers/ollamaFencedTools.ts` makes non-tool-capable models agentic via a fenced JSON-object protocol, superseding Hardening Arco's fenced fallback.
|
|
1212
|
+
|
|
1213
|
+
- **`resolveToolMode`** gates on the model's probed `tools` capability (`/api/show`): `'native'` (advertise `tools[]`, parse native `tool_calls` - behavior before native tool-call support for capable models), `'fenced'` (inject the protocol, parse fenced blocks), `'none'` (no tools - no cwd / one-shot / structured `format`). Override: `ARCO_OLLAMA_TOOL_MODE = auto|native|fenced`.
|
|
1214
|
+
- **Protocol.** A ` ```tool ` / ` ~~~tool ` fenced block holding a JSON object, folded **into the system block** (prefix-cache-stable + counted by the context-fill estimator for free - the fenced-prompt text rides every request where native schemas would). `buildFencedToolPrompt` is a **pure** function of the (already-subsetted, already-stable) tool list.
|
|
1215
|
+
- Robust parser (fence → brace-slice → key-drift → bare-JSON fallback, with `argError` feedback). Parsed calls reuse the native `dispatchToolCalls` path; results are reframed as labeled `role:'user'` messages. The action-vs-context split: context-reader tools stay prompt-injected rather than exposed as callable tools.
|
|
1216
|
+
|
|
1217
|
+
### Model-lifecycle console
|
|
1218
|
+
|
|
1219
|
+
Turns "why did my model unload / why is VRAM full" into visible operator state. Two endpoints + a CONFIG-tab section.
|
|
1220
|
+
|
|
1221
|
+
- **`GET /api/ollama-ps`** - on-demand poll that fans `/api/ps` across the configured backends, fail-soft per backend (a down host shows `reachable:false` + an error, never crashes the aggregation), with the router connect-timeout and a `cooling` flag mirroring the resilience cooldown Map. Each loaded-model row carries `secondsUntilExpiry` (computed server-side from the RFC3339 `expiresAt`; `null` = forever-loaded) + `sizeVram` / `size`. See `OllamaPsAggregate` / `OllamaPsBackend` / `OllamaPsModel` in `shared/src/protocol/usage.ts`.
|
|
1222
|
+
- **`POST /api/ollama-unload`** - the `keep_alive:0` trick (open-webui's `/api/unload`) targeting the model's **specific** backend (the console knows it from the aggregation row). Reversible (next turn reloads from disk); logged to the tab's `events.jsonl` when a `workflowId` is supplied.
|
|
1223
|
+
- **CONFIG-tab MODEL LIFECYCLE** - collapsible per-backend loaded-models list with VRAM, a live eviction countdown, and an UNLOAD button. Polls **only while open**. Reuses `ollamaParams.keep_alive` from the parameter editor read-only with a deep-link (no fork).
|
|
1224
|
+
|
|
1225
|
+
### VRAM budget + auto context-sizer (`ollamaVram.ts`)
|
|
1226
|
+
|
|
1227
|
+
`server/src/providers/ollamaVram.ts` adds hardware awareness to the CONFIG tab via two **read-only, fail-soft** probes (both wrap `probeHardware()` + `fit.ts` estimator). All numbers are framed as estimates, never guarantees; macOS / no `nvidia-smi` ⇒ `available:false`, a down daemon ⇒ `daemonUp:false`, an unprobeable model ⇒ `found:false` - never throws.
|
|
1228
|
+
|
|
1229
|
+
- **`GET /api/ollama/vram` (`computeVramReport`)** - the LOCAL board's GPU VRAM (`nvidia-smi` via the hardware probe) vs what the local Ollama daemon currently has resident (`/api/ps` `size_vram`). Powers the **VRAM BUDGET** readout. Local-only by design. Returns `OllamaVramReport` (`shared/src/protocol/usage.ts`).
|
|
1230
|
+
- **`POST /api/ollama/fit` (`computeOllamaFit`)** provides a predictive estimate. It sizes the primary model's largest `num_ctx` with room for an optional local utility model. A utility pinned to a remote `baseUrl` uses no local VRAM (`utilityRemote:true`). The report powers the `set to fit` control and primary/utility coexistence warning. Writes still go through `updatePrimaryConfig` so prefix-cache invalidation is logged. `OllamaFitReport.estimateMethod` is `measured-live` when the model is loaded; otherwise it reports `sliding-window`, `needs-load`, or `unknown`.
|
|
1231
|
+
|
|
1232
|
+
### Utility / task model
|
|
1233
|
+
|
|
1234
|
+
`server/src/providers/ollamaUtility.ts` is a **separate, non-streaming, JSON-only, capped** call shape for discrete BACKGROUND jobs - distinct from the interactive `streamOneTurn`. A configurable cheap/small model (e.g. a 3B) runs the context compaction summary (its most important consumer) and, when their operator-armed triggers ship, model-titles + recall summaries - keeping the expensive primary free.
|
|
1235
|
+
|
|
1236
|
+
**Config (`settings.ollama.utility`, settings-file-only):**
|
|
1237
|
+
|
|
1238
|
+
```jsonc
|
|
1239
|
+
"ollama": {
|
|
1240
|
+
"utility": { "model": "qwen3:3b", "baseUrl": "http://127.0.0.1:11434" } // baseUrl optional (pins a warm host)
|
|
1241
|
+
}
|
|
1242
|
+
```
|
|
1243
|
+
|
|
1244
|
+
**OFF by default.** When `utility` (or `utility.model`) is unset, `runUtilityJob` returns `{ ok:false, reason:'unconfigured' }` and every caller falls back to its existing behavior (no utility model ⇒ no change). `baseUrl` optionally pins the small model to a dedicated host; unset ⇒ it weighted-shuffles across the configured `backends` like a normal turn (reusing `ollamaResilience`'s selection/cooldown/failover).
|
|
1245
|
+
|
|
1246
|
+
**`runUtilityJob({ job, system?, prompt?|messages?, format?, maxTokens?, windowMessages?, maxInputBytes?, onNotice? })`** - one round-trip, **`stream:false`**, **`think:false`** (a thinking-capable model left to its default would burn the whole `num_predict` budget on `message.thinking`), a hard **`num_predict`** OUTPUT cap (default 512, ceiling 4096), a **windowed INPUT** (last-N messages + a total-byte cap, oldest dropped first; a leading system message is exempt), and an optional JSON-schema **`format`** (JSON-format reuse - the result is parsed and handed back as `json`). **Two-stage timeout:** a cheap **liveness probe** (`/api/version` under the short connect timeout) fast-fails a dead/hung host before committing to the generous **180 s total round-trip budget** - that budget must cover a COLD model load PLUS the full non-streaming generation (with `stream:false` Ollama sends nothing until the whole answer is ready, so the interactive 3 s connect timeout can't apply). **Fail-soft**: never throws; a down/erroring backend ⇒ `{ ok:false, reason:'error' }`. **Visible**: every invocation emits a `system_notice` (job name, model, backend, in/out token counts) → `events.jsonl`.
|
|
1247
|
+
|
|
1248
|
+
**Why this is NOT a `distill` (CLAUDE.md fence):** operator-configured + opt-in (OFF by default), bounded by deterministic rules (cap + window + single shot), per-call-logged, reversible (unset the model ⇒ gone). It runs for discrete, NAMED jobs - never an automatic per-turn pass.
|
|
1249
|
+
|
|
1250
|
+
**utility-model summary seam:** `runUtilitySummaryJob({ messages, maxTokens?, framing?, onNotice? }) → Promise<string | null>`. Context compaction passes the **pre-sliced older-half messages** + a cap; this returns the summary text, or `null` when the utility model is unconfigured/failed. **Context compaction supplies the deterministic fallback** (a structural digest) for the `null` case - this seam never invents one, so the "never fails closed" guarantee lives in context compaction.
|
|
1251
|
+
|
|
1252
|
+
**Pause switch (2026-09-29):** `settings.ollama.utility.enabled: false` (Settings → OLLAMA COMPACTION UTILITY MODEL → ENABLED) makes `resolveUtilityConfig` return null - every job behaves as unconfigured (compaction → deterministic digest, titles skip, the fit calculator reserves nothing) while model/host/titles stay saved. Absent ⇒ enabled. The Settings save path carries `enabled`/`titles` through its whole-object replace (it used to drop them).
|
|
1253
|
+
|
|
1254
|
+
**Session titles (opt-in, 2026-09-29):** `settings.ollama.utility.titles: true` (default OFF - arming the utility model for compaction does NOT arm titles) makes `workflows/modelTitles.ts` generate a 5-8-word RESUME-picker title after a workflow's turns: one-shot per session, first ≤4 operator messages, 32-token cap, job `session-title` (visible `system_notice`), applied through `applyModelTitle` (logged to `title-events.jsonl`; an operator rename always outranks). Fire-and-forget after the session-index upsert in `writeMeta`; failure leaves the derived title. Tab labels (`config.name`) are operator-owned and never touched. `npm run test:model-titles`.
|
|
1255
|
+
|
|
1256
|
+
### Request shape
|
|
1257
|
+
|
|
1258
|
+
```json
|
|
1259
|
+
{
|
|
1260
|
+
"model": "qwen3.6-coder",
|
|
1261
|
+
"messages": [
|
|
1262
|
+
{ "role": "system", "content": "..." },
|
|
1263
|
+
{ "role": "user", "content": "first turn..." },
|
|
1264
|
+
{ "role": "assistant", "content": "<think>...</think>response" },
|
|
1265
|
+
{ "role": "tool", "content": "(Read result)" },
|
|
1266
|
+
{ "role": "user", "content": "current turn + safety footer" }
|
|
1267
|
+
],
|
|
1268
|
+
"stream": true,
|
|
1269
|
+
"keep_alive": "10m",
|
|
1270
|
+
"options": {},
|
|
1271
|
+
"tools": [ { "type": "function", "function": { "name": "Read", "description": "...", "parameters": {...} } }, ... ]
|
|
1272
|
+
}
|
|
1273
|
+
```
|
|
1274
|
+
|
|
1275
|
+
`messages` is built from three sources:
|
|
1276
|
+
|
|
1277
|
+
1. `WorkerConfig.systemPrompt` → single `{role:'system'}`. Static across the workflow (Ollama-as-primary uses `OLLAMA_PRIMARY_SYSTEM_PROMPT` from `index.ts`).
|
|
1278
|
+
2. `WorkerConfig.appendSystemPrompt` (the rendered `USER:`/`AGENT:` transcript) → `parseRenderedTranscript()` walks it back into structured `user`/`assistant` messages.
|
|
1279
|
+
3. The new turn's user prompt + safety footer → final `{role:'user'}`.
|
|
1280
|
+
|
|
1281
|
+
Items 1 and 2 must be byte-stable across turns within a workflow - Ollama's prefix cache hits on `(1)+(2)` and only re-prefills the new tail. Inline sampler/`num_ctx` overrides are intentionally **not** plumbed (would invalidate the cache); those live in the operator-side Modelfile.
|
|
1282
|
+
|
|
1283
|
+
### Event parsing
|
|
1284
|
+
|
|
1285
|
+
NDJSON response. Each line carries either `message.content` deltas or, atomically, a `message.tool_calls` array; the final line has `done: true` plus `prompt_eval_count` / `eval_count` / `total_duration`.
|
|
1286
|
+
|
|
1287
|
+
- `message.thinking` (native parser) maps directly to the `thinking` event. Models with `RENDERER qwen3.5` / `PARSER qwen3.5` (or `qwen3-vl-thinking`, deepseek3, gpt-oss) emit reasoning here, separate from content. Request `think` comes from `ollamaThinkParam()` (`shared/src/protocol/ollamaThinking.ts`): boolean-only models get `effort !== 'low'`; models whose `/api/show` advertises `thinking.values` get the supported level string. `low` sends `false` when the model allows it (else its lowest level); a stored `high` on a model with no `high` level sends `true` (model default) so pre-level tabs don't escalate; other missing levels step down. The picker (`effortsForModel`, then `ollamaEffortsFor`) reads the levels from `authStatus.ollama.installedModelCapabilities[model].thinkingLevels`.
|
|
1288
|
+
- `message.content` (plain) → `text`
|
|
1289
|
+
- `message.content` inside `<think>...</think>` → `thinking` (handled by `ThinkSplitter` - fallback for legacy non-native-parser models like heretic-tools / qwopus that still embed `<think>` tags in content. Supports paired, orphan-close, and plain text. No-op for native-parser models since their content is already think-stripped.)
|
|
1290
|
+
- `message.tool_calls[]` → `tool_use` event per call + executed via the server-side runtime (see Tool runtime below)
|
|
1291
|
+
- final `done: true` → `result` with token counts (`prompt_eval_count` → `input`, `eval_count` → `output`; `total_duration` ns → `durationMs`) plus `modelContextWindow` from a parallel `/api/show` probe
|
|
1292
|
+
|
|
1293
|
+
### Tool runtime (server-side)
|
|
1294
|
+
|
|
1295
|
+
Plan 5.4 / 8.1 Path A. Ollama's HTTP API is stateless: when the model emits `tool_calls`, the *caller* executes them and feeds results back as `role:'tool'` messages. `OllamaWorkerProcess.run()` is therefore a tool-loop:
|
|
1296
|
+
|
|
1297
|
+
1. stream one assistant message
|
|
1298
|
+
2. if `tool_calls` is non-empty → dispatch each via `executeOllamaTool()`, append a `role:'tool'` message per call, loop
|
|
1299
|
+
3. if the assistant produced final text with no tool_calls → run the bounded false-final / cluster-report guards, then emit `result` and exit
|
|
1300
|
+
|
|
1301
|
+
Capped at `MAX_TOOL_TURNS = 50` per primary turn by default (`ARCO_OLLAMA_MAX_TOOL_TURNS`, max 200) - high enough that real coding work won't trip it, low enough that a runaway loop terminates in bounded time.
|
|
1302
|
+
|
|
1303
|
+
The v1 allowlist (`server/src/providers/ollamaTools.ts`):
|
|
1304
|
+
|
|
1305
|
+
| Tool | Args | Notes |
|
|
1306
|
+
|---|---|---|
|
|
1307
|
+
| `Read` | `file_path`, optional `offset` (1-based start line) / `limit` (max lines) | 32 KB byte cap, refuses directories. Tighter than Claude's 256 KB because local model windows are smaller; chunk via `offset`/`limit` for larger files. |
|
|
1308
|
+
| `Glob` | `pattern`, optional `path` | Node 22 `fs.promises.glob`. Cwd-rooted base. |
|
|
1309
|
+
| `Grep` | `pattern`, optional `path` / `case_insensitive` / `files_only` | POSIX walk (no ripgrep dep), skips `node_modules` / `.git` / `dist` / `.arco` / `.cache` / etc. 5000-file walk cap, 64 KB output cap. |
|
|
1310
|
+
| `Write` | `file_path`, `content` | mkdir -p parents, refuses to clobber a directory. |
|
|
1311
|
+
| `Bash` | `command`, optional `description` / `timeout` | `/bin/sh -c` in the workflow cwd. Stdin closed (no hangs). Combined stdout+stderr cap 64 KB, default 60s timeout, hard ceiling 600s. Spawned `detached:true` so timeout / abort / output-cap kills the whole process tree. Footer reminders apply. |
|
|
1312
|
+
| `WebSearch` | `query`, optional `max_results` (1-10, default 5) | Hits the operator's local SearXNG instance (`ARCO_SEARXNG_URL`, default `http://127.0.0.1:8888`). Returns a markdown list of `title - url\n snippet`. SearXNG bang syntax (`!g foo`) routes to specific engines. 10s timeout. |
|
|
1313
|
+
| `WebFetch` | `url`, optional `mode` (`auto` / `fast` / `stealth`) | Fast path: native `fetch()` with browser UA, 10s timeout, HTML→text strip. Stealth path: shells out to `/opt/camoufox/bin/python` (configurable via `ARCO_CAMOUFOX_PYTHON`) and uses Camoufox's `inner_text("body")`, 30s timeout. Auto mode tries fast, falls back to stealth on Cloudflare/403/empty signals. SSRF guard blocks loopback / RFC1918 / link-local hosts (`127.0.0.0/8`, `10/8`, `172.16/12`, `192.168/16`, `169.254/16`, IPv6 loopback / unique-local / link-local). |
|
|
1314
|
+
|
|
1315
|
+
The web tools are the only network-touching ones in v1. SSRF guard is intentional - operators who genuinely need to fetch a localhost URL can use `Bash + curl` in AUTO mode (their explicit choice).
|
|
1316
|
+
|
|
1317
|
+
**Path validation.** Every tool resolves its path argument via `resolveWithinCwd()`; absolute paths and `..`-escapes are both rejected. The tool runtime is the only way a local model can touch the filesystem in Arco, so the security boundary lives here, not in the loop layer.
|
|
1318
|
+
|
|
1319
|
+
**AUTO vs SAFE.** AUTO mode (`WorkerConfig.skipPermissions = true`) executes tools server-side. SAFE mode (default) returns a denial string the model sees as the tool result, so the loop converges without a new operator-approval protocol surface - the operator can always cancel mid-turn. Per 5.4 design choice (a).
|
|
1320
|
+
|
|
1321
|
+
**Reviewer slot.** Two paths.
|
|
1322
|
+
|
|
1323
|
+
- *No-cwd spawns* (legacy single-shot, e.g. heretic-as-uncensored-text) get tools omitted from the request - preserves pre-5.4 behavior.
|
|
1324
|
+
- *Reviewer spawns from `runReviewer`* pass `tools: READ_ONLY_OLLAMA_TOOLS = ['Read','Grep','Glob','WebSearch','WebFetch']` AND override `skipPermissions: true`. The first restricts the registry; the second forces AUTO mode so tools execute (SAFE would return denial strings, defeating a code-reading reviewer). Allowlist is the safety net - Write and Bash aren't on the menu, so AUTO/SAFE doesn't apply. The reviewer also receives `LOCAL_REVIEWER_ADDENDUM` framing - a per-provider prompt addendum that explicitly tells the local reviewer to use those tools (not just opine on the diff text). See [Primitives: Review Local-reviewer addendum](PRIMITIVES.md#local-reviewer-addendum). The same allowlist + addendum apply to llama.cpp reviewers (`READ_ONLY_LLAMACPP_TOOLS`).
|
|
1325
|
+
|
|
1326
|
+
When `config.tools` is set, `ollama.ts` intersects it with the registry to determine what's advertised. When `config.tools` is undefined, the spawn gets the full kit (the primary's normal flow).
|
|
1327
|
+
|
|
1328
|
+
**Chat web-only path.** An armed Ollama Chat receives exactly `WebSearch` and
|
|
1329
|
+
`WebFetch`; an offline Chat receives no tools. Because Chat has no Agent AUTO
|
|
1330
|
+
toggle, the armed pair executes directly. `ollamaToolCallAllowed()` repeats the
|
|
1331
|
+
allowlist at dispatch so a hallucinated known tool such as `Bash` cannot cross
|
|
1332
|
+
the projectless Chat boundary merely by naming itself in a native or fenced
|
|
1333
|
+
tool call. Chat replay omits preserved hidden thinking because an offline turn
|
|
1334
|
+
can contain the former no-web instruction verbatim; an armed turn also appends
|
|
1335
|
+
a current-capability reminder after history so old visible refusals cannot pin
|
|
1336
|
+
the model to that obsolete state.
|
|
1337
|
+
|
|
1338
|
+
### Session resume
|
|
1339
|
+
|
|
1340
|
+
**None.** Ollama is stateless; each turn is a fresh HTTP request. Multi-turn memory comes from `appendSystemPrompt` carrying the rendered workflow transcript - the prefix cache hits cleanly and only the new turn pays prefill cost. Verified ~5500 → +275 input-token delta on a real 3-turn run (see plan 12 History).
|
|
1341
|
+
|
|
1342
|
+
### Auth
|
|
1343
|
+
|
|
1344
|
+
None. Ollama is a local daemon - Arco just probes `${OLLAMA_URL_BASE}/api/tags` to confirm it's reachable and to list installed models.
|
|
1345
|
+
|
|
1346
|
+
### Capability detection
|
|
1347
|
+
|
|
1348
|
+
`probeOllama()` fetches `/api/tags`, returns the list of installed models. Model alias resolution is substring-based, case-insensitive. Example: requesting `"heretic"` matches the installed model `qwen3.5:35b-heretic`; `"coder"` matches `qwen3.6-coder:latest`.
|
|
1349
|
+
|
|
1350
|
+
### Quirks
|
|
1351
|
+
|
|
1352
|
+
- **Tool-loop cap.** `MAX_TOOL_TURNS = 50` by default (`ARCO_OLLAMA_MAX_TOOL_TURNS`, max 200). A workflow that needs more is suspect; split the task or open an issue.
|
|
1353
|
+
- **False-final recovery.** Local thinking models sometimes answer with preparation text ("let me check...", "step 1...") and no tool calls. `OllamaWorkerProcess.run()` detects short preparatory-only replies and injects up to two private continuation prompts so the model actually calls tools or gives a real answer.
|
|
1354
|
+
- **Cluster completion guard.** In cluster member turns, non-director Ollama workers get one bounded continuation if they try to finish without `peer_send`. The coaching prompt tells them to send a concise PASS/FAIL or DONE/BLOCKED report to the assigning peer before ending. This is a deterministic backstop for local models that understand the task but forget the peer-report tool.
|
|
1355
|
+
- **Mid-turn steer.** Operator messages typed while an Ollama tool-loop is running are queued to the steering bucket and delivered at the next iteration boundary - `OllamaWorkerProcess.run` calls `WorkerConfig.drainSteer` after `messages.push(...toolResults)` and before the next `streamOneTurn`, appending each drained item as a `role:'user'` message. Drains the *whole* steering bucket per hook fire (not one-at-a-time); follow-up bucket is untouched and still drains as the merged post-turn turn. Steers landing while the worker is mid-API-call deliver on the *next* iteration - Arco does not abort in-flight calls. Persistence shape is unchanged: the `user_message_echo` with `kind: 'steer'` was emitted at enqueue time in `handleUserMessage`, so transcript replay shows the steer at its enqueue position. The drain-time broadcasts are `queue_update` (clears the queue strip) + `queued_messages_drained` (clears the originator's QUEUED pill).
|
|
1356
|
+
- **Single-slot daemon.** `OLLAMA_NUM_PARALLEL=1` + `OLLAMA_MAX_LOADED_MODELS=1` are required for prefix-cache reliability; concurrent workflows hitting the same daemon will serialize.
|
|
1357
|
+
- **Polite eviction.** `keep_alive` defaults to `'10m'` per request - long enough that consecutive turns never reload, short enough that walking away from a workflow returns VRAM to other GPU consumers (Resolve, games). Override via daemon-level `OLLAMA_KEEP_ALIVE` env if you want forever-loaded; per-request value still wins.
|
|
1358
|
+
- **Cache invariance.** Anything that mutates the system prompt, transcript bytes, or `options` between turns flushes the prefix cache. Don't inject timestamps / random ids into system prompts.
|
|
1359
|
+
- **Think handling, two paths.** Native-parser models (qwen3.5/3.6 with RENDERER+PARSER qwen3.5, qwen3-vl-thinking, deepseek3, gpt-oss) emit reasoning into `message.thinking`; ThinkSplitter is a fallback for legacy `<think>`-in-content models (heretic-tools, qwopus). Request body must send `think` for native-parser models - `ollama.ts` sends `ollamaThinkParam(effort, levels)` (a boolean, or a level string on level-capable models). Don't ship a hand-rolled TEMPLATE that omits the qwen3.5 RENDERER/PARSER directives or capability detection breaks (`thinking` won't be advertised) and reasoning silently disappears.
|
|
1360
|
+
- **Max output cap.** Same `MAX_WORKER_OUTPUT_BYTES` ceiling (50 MB default). Output beyond cap aborts the stream with a truncation notice.
|
|
1361
|
+
- **No retry / throttle.** Local daemon doesn't rate-limit; no quota tracking or system_notice retry path.
|
|
1362
|
+
|
|
1363
|
+
### Endpoint auto-discovery
|
|
1364
|
+
|
|
1365
|
+
Instead of hand-typing a base URL for an Ollama daemon on a private network, the CONFIG tab's **DISCOVER ENDPOINTS** button probes for reachable OpenAI-compatible / Ollama model-list endpoints and surfaces them as one-click suggestions that fill `settings.ollama.baseUrl`. The prober lives in `server/src/providers/endpointDiscovery.ts` (`discoverEndpoints()`); the route is `GET /api/endpoints/discover` (`server/src/http/endpointDiscoveryRoutes.ts`, returns `{ endpoints, tailscaleAvailable, cached }`).
|
|
1366
|
+
|
|
1367
|
+
What it probes - a **bounded** candidate set, deliberately **not** a port scanner:
|
|
1368
|
+
|
|
1369
|
+
- **Hosts:** discovered Tailscale peers and `localhost` only. LAN `/24` scanning is deferred because it would probe 254 hosts at each port. Peers come from `tailscale status --json` via `execFile('tailscale', ['status', '--json'])`, using an argv array rather than a shell. Offline peers (`Online:false`) are dropped.
|
|
1370
|
+
- **Ports:** a fixed 12-port list - `11434` (Ollama) + `8000`-`8010` (OpenAI-compatible). There is no other port set.
|
|
1371
|
+
- **Private ranges only (the SSRF-equivalent fence):** every candidate host must pass `isPrivateHost()` - loopback, tailnet CGNAT `100.64/10`, and RFC1918 (`10/8`, `172.16/12`, `192.168/16`). A **public IP is never probed** - a peer with a routable IP is rejected before it becomes a target.
|
|
1372
|
+
- **Probe:** each `{host,port}` races `GET /api/tags` (Ollama, `{models:[{name}]}`) then `/v1/models` (OpenAI, `{data:[{id}]}`) against a ~700 ms per-probe timeout, with ≤ 8 probes in flight and an ~8 s overall deadline. A 200 with a parseable model list is a hit (recorded with `api`, `modelCount`, sample names); anything else is "not discovered". A closed port fails fast (connection refused) and a stall is bounded by the timeout.
|
|
1373
|
+
|
|
1374
|
+
Fences (four-question test - operator-initiated, deterministic fixed rules, visible result, reversible suggestion):
|
|
1375
|
+
|
|
1376
|
+
- **Operator-triggered, not a daemon.** Discovery runs only when the operator clicks the button (the route call). There is **no `setInterval`** continuously probing the tailnet.
|
|
1377
|
+
- **Suggestions only - never auto-switches.** A discovered endpoint just fills the base-URL draft; the operator still Saves. The route never mutates settings.
|
|
1378
|
+
- **60s result cache + per-host dead-host cooldown.** Repeat calls inside 60 s return the cached result (`cached:true`); a host where no port answered enters a 60 s cooldown so it isn't re-probed every click.
|
|
1379
|
+
- **`tailscale`-absent is graceful.** ENOENT / any CLI error ⇒ `tailscaleAvailable:false`, peers skipped, `localhost` still probed. Never crashes; cross-platform safe.
|
|
1380
|
+
|
|
1381
|
+
### RAG injection discipline
|
|
1382
|
+
|
|
1383
|
+
`server/src/providers/ragInjection.ts` holds **pure, retriever-agnostic** injection primitives ported from open-webui's RAG layer. It is **discipline-only**: a survey at ship time confirmed Arco has **no scored retrieval-injection path today** - recall is backward-looking FTS5 archive search (never injected), `buildKnowledgeBlock` is an unranked pinned-facts dump, and codebase-memory is an external MCP tool. So nothing currently feeds these primitives a ranked candidate list.
|
|
1384
|
+
|
|
1385
|
+
When a retriever lands, it calls `fuseRRF` (`Σ 1/(k+rank)`, `RRF_DEFAULT_K`=60 - for hybrid BM25+vector) → `selectTopK` (`RAG_DEFAULT_TOP_K`=3 + relevance floor + dedup) → `tagSources`/`formatSources` (`<source id=N from=...>`) + `ragSystemTemplate` (the `RAG_CITATION_TEMPLATE` - cite `[N]`, don't invent) → `buildRagBlock` (8 KB `RAG_DEFAULT_BLOCK_BUDGET` cap + an omitted-count notice, never silent truncation). The wiring site is the `turnEngine.ts` knowledge-injection point (≈ the `buildKnowledgeBlock` fold). **Don't mistake `buildKnowledgeBlock` for a ranked retriever** - it isn't, and these primitives aren't wired to it yet.
|
|
1386
|
+
|
|
1387
|
+
---
|
|
1388
|
+
|
|
1389
|
+
## LM Studio
|
|
1390
|
+
|
|
1391
|
+
`server/src/providers/lmstudio.ts`. Pure HTTP, no subprocess - a standalone module that talks LM Studio's **OpenAI-compatible** REST API .
|
|
1392
|
+
|
|
1393
|
+
**Standing verdict: OpenAI-compat endpoint, NOT the SDK.** LM Studio is a *runtime* (an Ollama competitor), not a frontend; its app/engine are closed-source and only the client SDKs are public. It exposes an OpenAI-compatible API on `http://localhost:1234/v1` (`/chat/completions`, `/models`, `/embeddings`). Adding it as a configurable OpenAI-compat endpoint reuses Arco's existing HTTP plumbing for near-zero cost - adopting the native `lmstudio.js` `ws://` SDK would add a dependency tracking LM Studio's app version for features Arco already owns (its own tool-loop). It is **not** modeled on llama.cpp's lifecycle-coupled worker either; it's its own module.
|
|
1394
|
+
|
|
1395
|
+
### Spawn
|
|
1396
|
+
|
|
1397
|
+
One streaming `POST ${baseUrl}/chat/completions` per turn (SSE `data:` lines, `[DONE]` terminator). No subprocess. The module **reuses the shared Ollama runtime** - `ThinkSplitter`, `parseRenderedTranscript`, the `ollamaTools` tool runtime, and `deterministicSummary` - so the tool-loop, think-handling, and transcript reconstruction behave the same as Ollama.
|
|
1398
|
+
|
|
1399
|
+
### Base-URL cascade
|
|
1400
|
+
|
|
1401
|
+
`getLmstudioBase()` resolves `settings.lmstudio.baseUrl`, then `LMSTUDIO_URL_BASE`, then defaults to `http://localhost:1234/v1`. The configured value supports DD12 config-value interpolation (`!cmd ...` and `${ENV}`) through `resolveConfigValue` before `normalizeBase`. A bare `host:port` gets `/v1` appended; for example, `http://localhost:1234` works.
|
|
1402
|
+
|
|
1403
|
+
### Capability detection
|
|
1404
|
+
|
|
1405
|
+
`probeLmstudio()` hits `/v1/models` to populate the CONFIG-tab model dropdown (this also fixed a latent empty-dropdown gap on the llama.cpp path). **The OpenAI `/v1/models` surface omits vision/tool/ctx capability metadata** - a thin optional `lms`-CLI probe could enrich those flags later; that enrichment is **stubbed today** (documented follow-up).
|
|
1406
|
+
|
|
1407
|
+
### Registration
|
|
1408
|
+
|
|
1409
|
+
`lmstudio` is a first-class provider registered across the full stack: providers/models/settings types, dispatch, auth, `turnEngine`, and all client pickers + the SettingsPanel endpoint editor. It surfaces in `GET /api/auth-status` (`apiProvider: "lmstudio:<base>"`, `subscriptionType: "local"`, `installedModels` from the probe).
|
|
1410
|
+
|
|
1411
|
+
### Not a cluster member
|
|
1412
|
+
|
|
1413
|
+
LM Studio is **not** wired as a cluster member, unlike Ollama and llama.cpp (which run peer tools in-process, capped per cluster by the local runtime capacity setting in Connections, default one member). Cluster peer tools are not registered for it. It is supported in Chat (including Incognito).
|
|
1414
|
+
|
|
1415
|
+
---
|
|
1416
|
+
|
|
1417
|
+
## Strata
|
|
1418
|
+
|
|
1419
|
+
Operator setup, memory tiers, assets, provenance and recovery: [STRATA.md](STRATA.md).
|
|
1420
|
+
|
|
1421
|
+
`server/src/providers/strata.ts`. Standalone inference service, separate from
|
|
1422
|
+
Ollama, LM Studio and Arco's managed llama.cpp daemon. The selectable **STRATA**
|
|
1423
|
+
provider defaults to `http://127.0.0.1:8081/v1`; configure
|
|
1424
|
+
`settings.strata.baseUrl` (Settings → STRATA ENDPOINT) or `STRATA_URL_BASE`.
|
|
1425
|
+
Existing provider endpoints/defaults are preserved. Strata user services own the memory limits; Arco never resizes them.
|
|
1426
|
+
The operator can unload its model with the header FREE VRAM button; the next
|
|
1427
|
+
request reloads it through Strata.
|
|
1428
|
+
|
|
1429
|
+
**Discovery/auth.** `GET /models` supplies model IDs, `meta.n_ctx` (the configured
|
|
1430
|
+
context), and `architecture.input_modalities` (vision only when `image` is
|
|
1431
|
+
advertised). `GET /api/auth-status` adds `strata` with `apiProvider: strata:<base>`,
|
|
1432
|
+
`subscriptionType: local`, installed models and capabilities. No login/API key is
|
|
1433
|
+
required for the standalone service.
|
|
1434
|
+
|
|
1435
|
+
**Prepared profiles.** An optional operator registry at
|
|
1436
|
+
`~/.arco/strata-profiles.json` (`ARCO_STRATA_PROFILES` overrides the path)
|
|
1437
|
+
adds installed profiles even while the engine is unloaded/stopped. It contains
|
|
1438
|
+
`baseUrl`, `launcher: { python, script }` (absolute paths), and `profiles` entries
|
|
1439
|
+
with `id`, `model`, `label`, `unit`, `config`. Only an exactly matching loopback
|
|
1440
|
+
HTTP endpoint is managed. Each configuration must match its model ID and have
|
|
1441
|
+
readable engine, tokenizer, pack, native/Ple GGUF and image-encoder files.
|
|
1442
|
+
Inactive context/vision come from those prepared configs; live `/models`
|
|
1443
|
+
capabilities take precedence. Auth status carries `installedModelLabels` without
|
|
1444
|
+
changing the exact IDs sent to inference.
|
|
1445
|
+
|
|
1446
|
+
Selection takes effect on the next message and retains the conversation. A
|
|
1447
|
+
serial Strata turn slot (mandatory even with `ARCO_LOCAL_PROVIDER_SERIAL_QUEUE=0`)
|
|
1448
|
+
covers loading and the entire tool loop. Before a different profile starts,
|
|
1449
|
+
Arco refuses active other local providers or external Strata requests,
|
|
1450
|
+
verifies the endpoint belongs to a registered active service, and runs the
|
|
1451
|
+
launcher's read-only `check-switch <id>` (GPU-workload/Ollama guards). It then stops
|
|
1452
|
+
only the old registered unit, starts the selected unit, and verifies its live
|
|
1453
|
+
model ID/loaded state. The target service repeats its full RAM/VRAM/startup
|
|
1454
|
+
preflight. FREE VRAM and new local turns are blocked during the switch.
|
|
1455
|
+
Failures/cancellation restore the old profile (including its unloaded state)
|
|
1456
|
+
before releasing the switch guard; notices are persisted in the transcript.
|
|
1457
|
+
Unregistered/remote connections retain HTTP-only operation.
|
|
1458
|
+
|
|
1459
|
+
The registry exposes only profiles installed for the configured service.
|
|
1460
|
+
Profile names, model IDs, context windows and vision support vary by
|
|
1461
|
+
installation. One profile is resident at a time; alternating tabs reloads their
|
|
1462
|
+
selected weights. Other providers remain available. The registry is local
|
|
1463
|
+
configuration and stays outside Git.
|
|
1464
|
+
|
|
1465
|
+
**Transport.** Reuses `OpenAIHttpWorkerProcess` in `lmstudio.ts`: streaming SSE,
|
|
1466
|
+
fragmented indexed tool calls, usage, image data URLs, transcript replay and a
|
|
1467
|
+
bounded server-side tool loop. `reasoning_content` streams to thinking and is
|
|
1468
|
+
preserved inside tool-call round trips. Strata exposes `none`, `low`, `medium`, and `high` directly; `none`
|
|
1469
|
+
disables reasoning and Strata maps `high` to Qwen xhigh. Legacy higher effort
|
|
1470
|
+
values normalize to `high`. Final usage carries the discovered context and last prompt tokens.
|
|
1471
|
+
One serial Strata slot avoids concurrent Arco requests to the single-request
|
|
1472
|
+
engine. Cancel aborts HTTP and settles the worker; Strata remains running.
|
|
1473
|
+
The shared loop's `ARCO_LMSTUDIO_*` turn/stall bounds apply to both HTTP
|
|
1474
|
+
connections. Strata retains the shared runtime result (Read: 32K; other tools:
|
|
1475
|
+
64K), matching Ollama. It skips LM Studio's extra compacting pass (6K
|
|
1476
|
+
head/tail or 200 Read lines), so middle lines and fetched evidence survive
|
|
1477
|
+
within those runtime caps. LM Studio keeps its existing compacting policy.
|
|
1478
|
+
|
|
1479
|
+
**Speed/version/lifecycle.** Native SSE `timings` supplies decode and fresh-prefill
|
|
1480
|
+
tokens and milliseconds, summed across tool rounds. `primary_complete.genSpeed`
|
|
1481
|
+
drives the Agent and Chat composer readout after each turn, excluding tool time.
|
|
1482
|
+
PROVIDERS displays the installed engine from `/v1/status` and compares GitHub
|
|
1483
|
+
releases at boot and every four hours; newer releases turn yellow and link to
|
|
1484
|
+
upstream release notes. FREE VRAM uses `/v1/unload` only on loopback, refuses
|
|
1485
|
+
active local turns and reviewers, and blocks new local turns during unloading.
|
|
1486
|
+
It also unloads local Ollama, managed llama.cpp and LM Studio LLMs, including
|
|
1487
|
+
providers hidden in the picker. No model files or configured limits change.
|
|
1488
|
+
|
|
1489
|
+
**Tools/privacy.** Agent uses the existing local tool registry (including
|
|
1490
|
+
SearXNG-backed `WebSearch` and `WebFetch`) and honors AUTO/SAFE plus primitive
|
|
1491
|
+
allowlists. Saved Chat uses `chatWebArmed()`; armed Chat exposes and executes
|
|
1492
|
+
exactly the web pair, and repeats the allowlist check at dispatch. Offline Chat
|
|
1493
|
+
omits tools. No project tools, skills, shell or MCP in Chat. No Incognito:
|
|
1494
|
+
Strata's independent request logs and encoded-image cache cannot meet the strict
|
|
1495
|
+
boundary. Strata is not a cluster member.
|
|
1496
|
+
|
|
1497
|
+
**Vision depends on the configured profile.** A profile may enable an image
|
|
1498
|
+
encoder and set its device, thread count, and token cap. Resource limits and
|
|
1499
|
+
encoder settings belong to the Strata service; Arco does not resize them. After
|
|
1500
|
+
a profile change, restart Strata and check its live capabilities. Arco does not
|
|
1501
|
+
infer vision from a model name.
|
|
1502
|
+
|
|
1503
|
+
**Validation.** `npm run test:strata-provider` exercises discovery, SSE chunks,
|
|
1504
|
+
reasoning, image payloads, web tool round trips and hallucinated project-tool
|
|
1505
|
+
rejection. `test:strata-profiles` checks refusal/rollback/cancellation and prepared configs;
|
|
1506
|
+
`smoke:strata-profiles` uses isolated fake services to verify discovery, serial
|
|
1507
|
+
turns, same-tab switching and conversation retention. `smoke:strata-controls` boots an isolated source server with a fake
|
|
1508
|
+
runtime and exercises capabilities, None effort, speed WS events and the HTTP
|
|
1509
|
+
unload busy/idle paths. `test:local-model-unload` covers runtime protocols and
|
|
1510
|
+
local-turn guards; `test:strata-ui` checks rates and effort choices. Existing
|
|
1511
|
+
`smoke:lmstudio-provider` remains green. Opt-in
|
|
1512
|
+
`smoke:strata-live` drives actual Chat WebSearch/WebFetch, an attached image
|
|
1513
|
+
question, reasoning, context accounting, and Agent WebSearch over WebSocket (requires a Strata service,
|
|
1514
|
+
SearXNG, `STRATA_SMOKE_IMAGE`, and a throwaway Arco with auth off). Live tests
|
|
1515
|
+
must isolate `os.homedir()` too: a second server sharing the production PID
|
|
1516
|
+
registry would reap the first server's workers.
|
|
1517
|
+
|
|
1518
|
+
---
|
|
1519
|
+
|
|
1520
|
+
## DeepSeek (Xolotl)
|
|
1521
|
+
|
|
1522
|
+
`server/src/providers/deepseek.ts` reuses `OpenAIHttpWorkerProcess` with its own
|
|
1523
|
+
identity, endpoint and prepared profile manager. See [DEEPSEEK.md](DEEPSEEK.md)
|
|
1524
|
+
for installation-specific assets, memory limits, registration and recovery.
|
|
1525
|
+
|
|
1526
|
+
**Transport/replay.** Streaming Chat Completions at loopback port 8150. Arco
|
|
1527
|
+
rebuilds conversation history and owns the normal bounded tool loop; saved Chat
|
|
1528
|
+
gets only its armed web pair. Strict Incognito, clusters and Computer selection
|
|
1529
|
+
are not enabled. Prepared vision configs forward native OpenAI image parts;
|
|
1530
|
+
text-only configs reject images before loading. Live modality readiness must
|
|
1531
|
+
match the prepared profile. The native reasoning
|
|
1532
|
+
channel and assistant reasoning for tool rounds are preserved; request effort
|
|
1533
|
+
is none/low/medium/high, with an 8192 thinking budget and 16384 total output cap.
|
|
1534
|
+
Context size comes from the configured service model and includes input, history,
|
|
1535
|
+
thinking and output. The worker uses runtime timings and the final round's prompt
|
|
1536
|
+
count for measured context and rates.
|
|
1537
|
+
|
|
1538
|
+
**Discovery/auth.** `settings.deepseek.baseUrl` → `DEEPSEEK_URL_BASE` →
|
|
1539
|
+
`http://127.0.0.1:8150/v1`. A matching validated operator registry populates
|
|
1540
|
+
`authStatus.deepseek` and both Exact/Light labels/capabilities while stopped;
|
|
1541
|
+
`loggedIn` means prepared availability, not loaded residency. `/api/deepseek`
|
|
1542
|
+
reports actual service/engine state. Xolotl's `--ctx`/Engram schema is separate
|
|
1543
|
+
from Qwen's Strata registry.
|
|
1544
|
+
|
|
1545
|
+
**Lifecycle.** Whole turns are always serialized. The shared local-operation
|
|
1546
|
+
guard excludes profile switches, FREE VRAM and new local turns. Only the
|
|
1547
|
+
registered guarded launcher may start/stop `deepseek-flash@exact/light.service`;
|
|
1548
|
+
Arco never spawns the engine or stops other GPU workloads. Before a switch, verify service
|
|
1549
|
+
identity and external request inactivity; check those workloads before stopping the old
|
|
1550
|
+
profile, then let guarded start run its full asset/mount/resource checks. Verify
|
|
1551
|
+
the selected served identity, actual context and text-only state. Failure/cancel
|
|
1552
|
+
cleans up the target and attempts guarded restoration of the previous loaded
|
|
1553
|
+
profile. Idle-unloaded engines restart through this guard too. Explicit unload
|
|
1554
|
+
stops the whole service cgroup and verifies inactive state plus endpoint loss.
|
|
1555
|
+
|
|
1556
|
+
**Version tracking.** `runtimeVersions.ts` reads registered Xolotl checkout HEAD
|
|
1557
|
+
without loading an engine; `capabilities.xolotlRevision` is compared to upstream
|
|
1558
|
+
HEAD through `latestVersions.xolotl`. Strata and Xolotl version rows open
|
|
1559
|
+
in-app release/source-history views, with GitHub only as an explicit link.
|
|
1560
|
+
Matching Xolotl revisions show up-to-date without requesting a self-comparison. Source drift is not semver ordering or a
|
|
1561
|
+
binary build guarantee. Strata's installed version now falls back to local
|
|
1562
|
+
`engine/BUILD.json` while its endpoint is stopped. Neither path auto-updates.
|
|
1563
|
+
|
|
1564
|
+
**Verification.** `test:deepseek`, `smoke:deepseek`, existing Strata/unload/Chat
|
|
1565
|
+
regressions and help/doc checks run without real GPU services. Live model tests
|
|
1566
|
+
require operator coordination and leave both profiles stopped afterward.
|
|
1567
|
+
|
|
1568
|
+
---
|
|
1569
|
+
|
|
1570
|
+
## llama.cpp
|
|
1571
|
+
|
|
1572
|
+
`server/src/providers/llamacpp.ts` (provider) + `server/src/providers/llamacppManager.ts` (lifecycle) + `server/src/llamacppCatalog.ts` (operator-declared model registry).
|
|
1573
|
+
|
|
1574
|
+
Supported in Chat (tools omitted) but rejected for Incognito: the shared daemon always writes `~/.arco/llamacpp.log`.
|
|
1575
|
+
|
|
1576
|
+
Why this provider exists alongside Ollama: vision-capable architectures often land in `llama.cpp` weeks before Ollama wires up the multimodal projector path. Qwen3.6 was the motivating case (Ollama issue 14730: `unknown model architecture: 'qwen35moe'` on the multimodal path). The text-only ergonomic edge of Ollama is unchanged; llama.cpp is the escape hatch when you need a feature Ollama hasn't shipped yet.
|
|
1577
|
+
|
|
1578
|
+
**Fit engine.** The fit engine sizes GGUF models against *detected* hardware - `server/src/hardware/fit.ts` estimates VRAM (weights + KV-cache + overhead), the max context that fits, throughput, and a fit verdict/score for a given `{params, quant, arch}` on the box's probed GPU(s)/VRAM. On Apple Silicon the engine derives the Metal GPU's bandwidth from the probed GPU-core count against published unified-memory figures and sizes against a unified-memory VRAM budget, so a Metal GPU now scores a real verdict instead of an automatic `NO`.
|
|
1579
|
+
|
|
1580
|
+
> **Operator health readout.** The System modal's **Models** tab (A3 - `docs/DIAGNOSTICS.md` Local model health panel) surfaces, for llama.cpp: the `llama-server` binary path, registered loadouts, the lifecycle-manager snapshot (state / alias / port / pid), the **last launch args** (an additive `lastLaunchArgs` field on `LlamacppManagerStatus`, retained on the existing spawn path - read-only forensics, never read back by spawn/keepalive/reap) and a **last-stderr tail** of `~/.arco/llamacpp.log`. For model files it surfaces the detected hardware profile, downloaded GGUFs under `~/.arco/models`, and **fit-score mismatch warnings** - registered loadouts scored against the detected hardware with the same pure `scoreFit` used here (verdict `NO`/`TIGHT`). When a `llama-server` launch fails, `llamacppServeDiagnose.ts` classifies the failure against an ordered registry of known causes (binary-missing, port-in-use, OOM, ctx-too-large, ...) and returns a structured diagnosis - cause + human message + one-click fixes that lower `ctxSize` / `ngl` or add a `--port` / `extraArgs` escape hatch - surfaced in the same panel under `model-health.llamacpp-*` keys. It is read-only and **never spawns a model or changes lifecycle**.
|
|
1581
|
+
|
|
1582
|
+
Two non-obvious differences from Ollama:
|
|
1583
|
+
|
|
1584
|
+
1. **Operator-declared model registry, not auto-discovery.** llama-server is one model per process and needs explicit `-m` / `--mmproj` / `-c` / `-ngl` flags. The catalog at `~/.arco/llamacpp.json` names each loadout up front; the lifecycle manager spawns `llama-server` with the right flags on first use.
|
|
1585
|
+
2. **Arco owns the daemon process.** Ollama runs as its own systemd / homebrew daemon; llama-server is spawned + babysat by Arco. Switching models is SIGTERM old → wait → spawn new. Idle eviction reclaims VRAM after `ARCO_LLAMACPP_KEEPALIVE_MS` (default 10 minutes).
|
|
1586
|
+
|
|
1587
|
+
### Spawn
|
|
1588
|
+
|
|
1589
|
+
`POST /v1/chat/completions` with `stream: true`. OpenAI SSE format (not Ollama NDJSON). Workers always go through `llamacppManager.ensureLoaded(alias)` first, which blocks 20-30s on the cold-start of a 17GB GGUF and is a no-op once loaded.
|
|
1590
|
+
|
|
1591
|
+
### Lifecycle manager
|
|
1592
|
+
|
|
1593
|
+
Singleton in `llamacppManager.ts`:
|
|
1594
|
+
|
|
1595
|
+
- `ensureLoaded(alias)` - start / switch as needed. Concurrent callers requesting the same alias share one spawn (de-duped via `loadingPromise`). Different-alias-during-load waits for the in-flight load to finish before triggering the switch.
|
|
1596
|
+
- `unload()` - operator-facing eviction (POST `/api/llamacpp-unload`). Frees VRAM without waiting for the idle timer.
|
|
1597
|
+
- `shutdown()` - wired into the SIGTERM/SIGINT handler in `server/src/index.ts` so spawned llama-server processes don't outlive Arco.
|
|
1598
|
+
- Idle timer - re-checks `lastUsedAt` at fire time and re-arms if the deadline moved (concurrent ensureLoaded calls bump it).
|
|
1599
|
+
- **Stale orphan reaping** - before each load/unload cycle the manager walks `pgrep -af llama-server` for descendants of dead Arco PIDs and `kill -9`s them. Crash-recovery aside (orphan reaping at boot handles that), this catches the case where a previous `llama-server` survived a partial server-restart with its IPC channel detached; without the reap the next `ensureLoaded` would race two listeners against the same port.
|
|
1600
|
+
- **Version cache busted on binary mtime change.** `--version` parsing is cheap but not free; the manager caches the parsed version keyed on the binary's mtime. Replacing `/usr/local/bin/llama-server` (package upgrade, manual rebuild, etc.) bumps the mtime and the next call re-probes - no need to restart Arco to pick up a fresh build.
|
|
1601
|
+
|
|
1602
|
+
`llama-server` stdout/stderr piped to `~/.arco/llamacpp.log` for debugging hung loads.
|
|
1603
|
+
|
|
1604
|
+
### Model registry
|
|
1605
|
+
|
|
1606
|
+
`~/.arco/llamacpp.json`. Bootstrapped on first server start with a stub:
|
|
1607
|
+
|
|
1608
|
+
```json
|
|
1609
|
+
{
|
|
1610
|
+
"$example": {
|
|
1611
|
+
"alias": "qwen3.6-vl",
|
|
1612
|
+
"ggufPath": "/path/to/Qwen3.6-27B-UD-Q4_K_XL.gguf",
|
|
1613
|
+
"mmprojPath": "/path/to/mmproj-BF16.gguf",
|
|
1614
|
+
"ctxSize": 32768,
|
|
1615
|
+
"ngl": 999,
|
|
1616
|
+
"capabilities": { "tools": true, "vision": true, "thinking": true }
|
|
1617
|
+
},
|
|
1618
|
+
"models": []
|
|
1619
|
+
}
|
|
1620
|
+
```
|
|
1621
|
+
|
|
1622
|
+
| Field | Purpose |
|
|
1623
|
+
|---|---|
|
|
1624
|
+
| `alias` | Operator-chosen identifier. Shows in the model picker, used as the `model` field in the chat-completion request, displayed on the worker badge. |
|
|
1625
|
+
| `ggufPath` | Absolute path to the GGUF. Must be readable by the Arco server process. |
|
|
1626
|
+
| `mmprojPath` | Absolute path to the vision projector GGUF. Required for vision; declaring `capabilities.vision: true` without an mmproj silently drops images and emits a system_notice. |
|
|
1627
|
+
| `ctxSize` | `-c` flag. Picks `llama-server`'s built-in default if unset (often 4096 - usually too small for modern models, set this explicitly). |
|
|
1628
|
+
| `ngl` | `-ngl` flag. `999` = offload everything to GPU. Drop to a positive integer if you need to keep some layers on CPU for VRAM headroom. |
|
|
1629
|
+
| `chatTemplate` | Override for the embedded GGUF chat template. Rare - only set when the embedded one is wrong. |
|
|
1630
|
+
| `extraArgs` | Escape-hatch for raw `llama-server` flags (`--rope-freq-base`, `--top-k`, etc.). |
|
|
1631
|
+
| `capabilities` | Operator-declared `{tools, vision, thinking}`. Mirrored to AuthStatus so the model picker badges match Ollama's. |
|
|
1632
|
+
|
|
1633
|
+
The first entry is the default model.
|
|
1634
|
+
|
|
1635
|
+
### Vision
|
|
1636
|
+
|
|
1637
|
+
OpenAI multimodal shape - `content` becomes an array:
|
|
1638
|
+
|
|
1639
|
+
```json
|
|
1640
|
+
{
|
|
1641
|
+
"role": "user",
|
|
1642
|
+
"content": [
|
|
1643
|
+
{"type": "text", "text": "what's in this screenshot?"},
|
|
1644
|
+
{"type": "image_url", "image_url": {"url": "data:image/png;base64,..."}}
|
|
1645
|
+
]
|
|
1646
|
+
}
|
|
1647
|
+
```
|
|
1648
|
+
|
|
1649
|
+
Same 5 MB cap and `.png/.jpg/.jpeg/.gif/.webp` allowlist as the Ollama path.
|
|
1650
|
+
|
|
1651
|
+
### Tool runtime
|
|
1652
|
+
|
|
1653
|
+
Reused from `ollamaTools.ts` - the local-tool runtime (Bash/Read/Write/etc.) is provider-agnostic. AUTO mode executes; SAFE mode returns a denial string the model treats as the tool result so the loop converges without an operator-approval ping-pong. `isKnownOllamaTool()` is a strict allowlist gate; tools the model invents are rejected.
|
|
1654
|
+
|
|
1655
|
+
OpenAI fragment-assembly: tool calls arrive across multiple SSE events, partial by `index`. Reassembled in `partialToolCalls` map, emitted as a single `ToolCall[]` once `finish_reason === 'tool_calls'`.
|
|
1656
|
+
|
|
1657
|
+
**XML tool-call fallback.** Some Qwen builds emit `<tool_call>{...}</tool_call>` XML markup in `reasoning_content` instead of structured `delta.tool_calls[]`. The provider sniffs for this fallback and parses the XML payload as a synthetic tool call so the loop still progresses. Without this fallback the model would emit a tool-shaped reasoning block and then hang waiting on a tool result that never comes.
|
|
1658
|
+
|
|
1659
|
+
**Thinking coalescing.** `reasoning_content` deltas can fire many times per second; we coalesce them on a `~ARCO_LLAMACPP_THINKING_FLUSH_MS` interval before emitting `primary_thinking_chunk` events to avoid saturating the WebSocket send buffer.
|
|
1660
|
+
|
|
1661
|
+
**Reviewer-mode tool allowlist.** When `runReviewer.ts` dispatches a llama.cpp reviewer, it injects `READ_ONLY_LLAMACPP_TOOLS` (Read, Grep, Glob, WebSearch, WebFetch - same shape as Ollama's READ_ONLY_OLLAMA_TOOLS) instead of the full primary-mode set. Plus a `LOCAL_REVIEWER_ADDENDUM` framing addendum explicitly tells the reviewer to use those tools to verify diff claims against the live tree, not just opine on the diff text. See [Primitives: Review Local-reviewer addendum](PRIMITIVES.md#local-reviewer-addendum).
|
|
1662
|
+
|
|
1663
|
+
### Auth
|
|
1664
|
+
|
|
1665
|
+
`probeLlamacpp()`: `llama-server` found on `PATH` (`llama-server.exe` on Windows; override via `ARCO_LLAMACPP_BIN`) AND `~/.arco/llamacpp.json` parses cleanly. No login flow - local + auth-less like Ollama.
|
|
1666
|
+
|
|
1667
|
+
### Capability detection
|
|
1668
|
+
|
|
1669
|
+
Operator-declared in the catalog; no `--show`-equivalent on llama-server. Setting `capabilities.vision: true` without an `mmprojPath` is allowed (the validator doesn't reject it) but the provider drops images and emits a system_notice - guard at the UI layer where useful.
|
|
1670
|
+
|
|
1671
|
+
### Quirks
|
|
1672
|
+
|
|
1673
|
+
- **Cold-start latency.** First turn after a switch is 20-30s for a 17GB GGUF (mmap + VRAM transfer). UI shows nothing useful during this window today; status is queryable via `GET /api/llamacpp-live`.
|
|
1674
|
+
- **One model at a time.** Switching aliases mid-workflow forces a kill + reload. Operators who want concurrent models should run multiple Arco-external `llama-server` instances; this manager owns exactly one.
|
|
1675
|
+
- **`--jinja` always on.** Required for OpenAI-style tool calling. Cheap on non-tool turns; mandatory on tool turns. Not configurable.
|
|
1676
|
+
- **Effort mapping.** `low` prepends `/no_think` to the system prompt (same Qwen-family convention as Ollama). Other efforts leave native thinking on. The two-value picker (`low` / `high`) matches Ollama's.
|
|
1677
|
+
- **CPU fallback.** If Vulkan / CUDA isn't available at runtime, `llama-server` falls back to CPU silently. Inference will be unusably slow; check `~/.arco/llamacpp.log` if a model loads but each turn takes minutes.
|
|
1678
|
+
- **Vision projector compatibility.** mmproj files are model-specific. The Qwen3.6 mmproj won't work with Qwen3-VL or any other model. Pull the projector from the same HuggingFace repo as the GGUF.
|
|
1679
|
+
- **No retry / throttle.** Same as Ollama - local backend, no quota tracking.
|
|
1680
|
+
- **Mid-turn steer.** Same hook shape as the Ollama path. `LlamacppWorkerProcess.run` calls `WorkerConfig.drainSteer` after `messages.push(...toolResults); toolTurn++;` and *before* the recovery checks (tool-loop coach termination, tool-cap auto-continue). Drains the whole steering bucket each fire; follow-up bucket is left alone. Recovery arms above the hook (reasoning runaway / stall / wall_clock / empty completion) `continue` from their own arms and never reach the hook within their iteration - by design; they are conversation-repair flows that own their own injected user message. Tool-cap auto-continue sits below the hook and runs on the same iteration if both fire, so the steer + recap both reach the next call. The drain is destructive (splice), so a same-iteration re-call returns `[]` - no double-deliver under any retry path.
|
|
1681
|
+
|
|
1682
|
+
### Auto-recovery
|
|
1683
|
+
|
|
1684
|
+
Local thinking models fail in three specific ways that the lifecycle alone can't handle: reasoning runaway (model emits `reasoning_content` for minutes without ever committing), tool-cap exhaustion (50-turn cap fires on legitimately long work), and context fill (96K cap is small compared to Claude). The provider runs an in-place auto-recovery system that keeps the conversation going without operator intervention.
|
|
1685
|
+
|
|
1686
|
+
Distinct from the heavyweight Handoff primitive (which spawns a fresh workflow with a chosen summarizer model - tuned for Claude/Codex flows). Auto-recovery operates inside the same worker on the same workflow, just intelligently resetting the in-memory message stack when something goes sideways.
|
|
1687
|
+
|
|
1688
|
+
Four detection paths, all gated by `ARCO_LLAMACPP_AUTO_RECOVER` (default on):
|
|
1689
|
+
|
|
1690
|
+
| Trigger | Detection | Recovery |
|
|
1691
|
+
|---|---|---|
|
|
1692
|
+
| Reasoning runaway | `reasoning_content` exceeds `ARCO_LLAMACPP_REASONING_BUDGET` tokens (default 8000) with no `content` or `tool_calls` arrived | Abort stream, inject a fake assistant + user pair telling the model to commit to action. Continue. |
|
|
1693
|
+
| Stream stall | No SSE event for `ARCO_LLAMACPP_STALL_TIMEOUT_MS` (default 90s) | Abort stream, build deterministic summary of progress so far, inject as user message, continue. |
|
|
1694
|
+
| Tool-cap hit | `MAX_TOOL_TURNS` (default 50) exhausted without final answer | Build deterministic recap of tool calls + files, inject as user message asking to continue or wrap up, reset counter. |
|
|
1695
|
+
| Context fill | `lastInputTokens / ctxSize >= ARCO_LLAMACPP_COMPACT_THRESHOLD` (default 0.85), checked at clean turn boundaries only | Warn-only `system_notice` suggesting Handoff. The old in-turn compaction was removed 2026-09-25: it replaced a local message array (the next turn rebuilt the full transcript and overflowed again), streamed its summary into the persisted answer, and paid a generation every over-threshold turn. |
|
|
1696
|
+
|
|
1697
|
+
The three recovering paths share one budget (the context-fill row only warns and no longer spends it): `ARCO_LLAMACPP_MAX_RECOVERIES` (default 2 per operator turn). Once exhausted, the provider falls through to the normal failure path. Each recovery emits a `system_notice` so the operator sees what happened without having to dig through logs.
|
|
1698
|
+
|
|
1699
|
+
The deterministic-summary path (used by stall + tool-cap recovery) walks the message stack and extracts: tools used + counts, files read, files written, last 10 Bash commands, last 3 substantial assistant text snippets. No LLM call required - works even when the model is unresponsive.
|
|
1700
|
+
|
|
1701
|
+
The compaction path (context fill) does require a model call. The model summarizes its own work with a structured prompt anchored on the operator's original ask. The summary becomes the new conversation seed; the original tool history is dropped.
|
|
1702
|
+
|
|
1703
|
+
### Environment overrides
|
|
1704
|
+
|
|
1705
|
+
| Var | Default | Purpose |
|
|
1706
|
+
|---|---|---|
|
|
1707
|
+
| `ARCO_LLAMACPP_BIN` | `/usr/local/bin/llama-server` | Binary path (for other installs) |
|
|
1708
|
+
| `ARCO_LLAMACPP_PORT` | `8923` | Port the manager spawns llama-server on |
|
|
1709
|
+
| `ARCO_LLAMACPP_HOST` | `127.0.0.1` | Bind host |
|
|
1710
|
+
| `ARCO_LLAMACPP_KEEPALIVE_MS` | `600000` (10 min) | Idle eviction window. `0` = never evict. |
|
|
1711
|
+
| `ARCO_LLAMACPP_MAX_TOOL_TURNS` | `50` | Tool-loop iterations per operator turn before recovery (or failure if recovery exhausted) |
|
|
1712
|
+
| `ARCO_LLAMACPP_AUTO_RECOVER` | `true` | Master kill-switch for auto-recovery system |
|
|
1713
|
+
| `ARCO_LLAMACPP_REASONING_BUDGET` | `8000` | Reasoning tokens before runaway intervention |
|
|
1714
|
+
| `ARCO_LLAMACPP_COMPACT_THRESHOLD` | `0.85` | Context fill fraction that raises the suggest-Handoff notice |
|
|
1715
|
+
| `ARCO_LLAMACPP_MAX_RECOVERIES` | `2` | Total auto-recovery actions per operator turn |
|
|
1716
|
+
| `ARCO_LLAMACPP_STALL_TIMEOUT_MS` | `90000` | SSE event timeout before stall-recovery fires |
|
|
1717
|
+
| `ARCO_LOOP_COACH_THRESHOLD` | `2` | Identical (tool, args) calls before loop coach fires (shared with Ollama) |
|
|
1718
|
+
|
|
1719
|
+
---
|
|
1720
|
+
|
|
1721
|
+
## External MCP integrations
|
|
1722
|
+
|
|
1723
|
+
External MCP servers that Arco surfaces as operator-attachable per-tab options. Unlike the in-process per-cluster MCP server (Cluster + scope), these are operator-installed binaries running on the same machine. Arco's job is the UX (toggle, status, re-index button) + persistence of intent + spawn-time wiring to inject the server entry into the worker's `--mcp-config`.
|
|
1724
|
+
|
|
1725
|
+
Each entry below follows the same shape: install path → operator surface → fences → persistence shape.
|
|
1726
|
+
|
|
1727
|
+
### `codebase-memory-mcp` (`DeusData/codebase-memory-mcp`)
|
|
1728
|
+
|
|
1729
|
+
Tree-sitter → SQLite knowledge graph (Cypher-ish queries + BM25 + vector). 14 MCP tools including `search_graph`, `detect_changes` (git-diff blast radius), and `manage_adr`. **Deterministic, no LLM in the server itself** - the binary's value is structural code understanding, not curated memory. The only LLM-write surface in the entire package is `manage_adr`, and it is operator-prompted only (the model writes an ADR when the operator types "make an ADR for this") - passing the no-LLM-curated-memory test.
|
|
1730
|
+
|
|
1731
|
+
**Install path.** Single static binary. Operator-installed once per machine; see `docs/OPERATIONS.md`. **Hard invariant**: Arco ALWAYS invokes the binary with `--skip-config` because the binary's default install/run behavior auto-edits agent config files (`~/.claude/settings.json` and similar). The flag is wired into the one-shot reindex spawn at `server/src/index.ts` and must persist into the deferred F9 spawn-site wiring.
|
|
1732
|
+
|
|
1733
|
+
**Operator surface.**
|
|
1734
|
+
- **CONFIG tab → `INDEXES & MEMORY` section** (`client/src/components/RightPanel/CodebaseMemorySection.tsx`). Per-tab "Attach codebase memory" checkbox, operator-typed index-path field (defaults to the workflow's cwd), status line, "Re-index now" button.
|
|
1735
|
+
- **FILES tab → `BLAST RADIUS` sub-tab** (`client/src/components/RightPanel/BlastRadiusTab.tsx`). Shown only when memory is attached. Renders `detect_changes` output for the current `git diff` against the index (full rendering ships with the F9 follow-up - placeholder today).
|
|
1736
|
+
|
|
1737
|
+
**Wire shape.** Three WS messages - `attach_codebase_memory { workflowId, indexPath? }` / `detach_codebase_memory { workflowId }` (client→server), and `codebase_memory_state { workflowId, attached, indexPath?, lastIndexedAt?, fileCount? }` (server→client, fires on attach / detach / reindex). One HTTP route: `POST /api/workflows/:wfId/codebase-memory/reindex { indexPath? }` → 200 with `{ lastIndexedAt, fileCount? }` on success, 503 `binary_not_installed` when the binary isn't on PATH.
|
|
1738
|
+
|
|
1739
|
+
**Persistence.** `WorkflowConfig.codebaseMemory` + `WorkflowMeta.codebaseMemory` (same shape) carry the operator's intent across server restart. Detach retains `indexPath` so re-attaching is one click.
|
|
1740
|
+
|
|
1741
|
+
**Spawn-site wiring (deferred - F9).** The actual `--mcp-config` write-in at CLI spawn time piggybacks on Cluster Arco's `mcpConfigWriter`. 's attach toggle records intent only; the worker never invokes the MCP today. This spawn-site wiring remains deferred.
|
|
1742
|
+
|
|
1743
|
+
**Hard fences (autonomy four-question test).** (1) Operator-initiated - every action is a click. (2) Deterministic - tree-sitter + BM25 + SQL queries; no LLM in the loop on Arco's side. (3) Visible in `events.jsonl` - `codebase_memory_state` rides `broadcastWorkflow` which seq-stamps + persists. (4) Reversible - detach toggle is one click; the on-disk index is operator-managed.
|
|
1744
|
+
|
|
1745
|
+
### Adding a new external MCP
|
|
1746
|
+
|
|
1747
|
+
Future entries (e.g. operator-installed Linear / Jira MCPs) should follow the same shape: per-tab toggle on the CONFIG tab, intent persisted to `WorkflowConfig`/`WorkflowMeta`, a single workflow-scoped `<name>_state` push, optional HTTP one-shot endpoint for operator-initiated actions, spawn-site wiring through whatever `mcpConfigWriter` exists at the time. The brief lives here; the implementation lives in its own slice.
|
|
1748
|
+
|
|
1749
|
+
---
|
|
1750
|
+
|
|
1751
|
+
## Comparison matrix
|
|
1752
|
+
|
|
1753
|
+
| | Claude (CLI) | Claude (Native) | Codex (exec) | Codex (appserver) | Ollama | llama.cpp | LM Studio |
|
|
1754
|
+
|---|---|---|---|---|---|---|---|
|
|
1755
|
+
| Spawn | subprocess per turn | in-process SDK (long-lived) | subprocess per turn | subprocess long-lived (one per tab) | HTTP | HTTP (Arco-managed daemon) | HTTP (OpenAI-compat `/v1`) |
|
|
1756
|
+
| Stream format | NDJSON | SSE (Anthropic Messages) | NDJSON (`--json`) | NDJSON over stdio (no `jsonrpc:"2.0"` envelope) | NDJSON | OpenAI SSE | OpenAI SSE |
|
|
1757
|
+
| Session resume | UUID `--resume` | replay-from-`events.jsonl` (Arco-internal; no rollout file; append-only prefix + preserved thinking) | thread_id `exec resume` | `thread/resume` JSON-RPC | none | none | none |
|
|
1758
|
+
| Native session file | `~/.claude/projects/.../X.jsonl` | - | `~/.codex/sessions/.../rollout-X.jsonl` | `~/.codex/sessions/.../rollout-X.jsonl` | - | - | - |
|
|
1759
|
+
| Tool use | yes (rich) | yes (in-process Bash/Read/Edit/Grep/Glob/KillShell/TodoWrite/Task/AskUserQuestion/EnterPlanMode) | yes | yes | yes (server-side allowlist) | yes (server-side allowlist) | yes (shared Ollama server-side runtime) |
|
|
1760
|
+
| Reasoning blocks | yes | yes (interleaved when model supports) | yes | yes | yes (`message.thinking` native + `<think>` fallback) | yes (OpenAI `reasoning_content`) | yes (OpenAI `reasoning_content` + `<think>` fallback) |
|
|
1761
|
+
| Effort levels | up to 5 | up to 5 | model/catalog-driven; Astra: low through ultra | model/catalog-driven; Astra: low through ultra | per model (low=off + `thinking.values` levels; else low / high) | 2 (low / high) | 2 (low / high) |
|
|
1762
|
+
| Auth | subscription / API key | OAuth subscription (`~/.arco/auth.json`) | subscription / API key | subscription / API key | none | none | none |
|
|
1763
|
+
| Throttle detection | yes (regex + Retry-After) | yes (structured Anthropic error envelope) | yes (30 min cooldown) | yes (`error.codexErrorInfo`) | n/a | n/a | n/a |
|
|
1764
|
+
| Retry on transient errors | yes (15/30/60s) | yes (header-aware `retry-after`, 15/30/60s fallback) | no | no | no | no | no |
|
|
1765
|
+
| Mid-turn cancel | yes (SIGKILL) | yes (loop-abort, in-process) | yes (SIGKILL) | yes (`turn/interrupt` + 5s ack; SIGKILL fallback) | yes (abort fetch) | yes (abort fetch) | yes (abort fetch) |
|
|
1766
|
+
| Mid-turn steer | post-turn drain | drain hook between tool-result append + next API call | post-turn drain | `turn/steer` RPC (precondition: `expectedTurnId`) | yes (between tool-loop iterations) | yes (between tool-loop iterations) | yes (between tool-loop iterations) |
|
|
1767
|
+
| Concurrent-writer guard | yes | n/a (Arco-internal session) | no | no | n/a | n/a | n/a |
|
|
1768
|
+
| Auto-handoff support | yes | yes | yes (rollout snapshot) | yes (rollout snapshot) | yes | no - in-place auto-recovery instead (context fill / stall / tool-cap / reasoning runaway) | no |
|
|
1769
|
+
| Server-side context-mgmt | n/a | operator-armed (`compact` OFF by default - CONFIG ADVANCED Claude API compaction (beta) toggle, gated on catalog support; `clear_thinking` / `clear_tool_uses` intentionally off) | n/a | n/a | n/a | n/a | n/a |
|
|
1770
|
+
| Cluster peer tools | per-spawn stdio MCP child via `--mcp-config` | registered in-process | per-turn stdio MCP child via `-c mcp_servers.*` TOML overrides | per-appserver-process stdio MCP child via `-c mcp_servers.*` TOML overrides | in-process tool registry (`localClusterCapacity`, default 1) | in-process tool registry (`localClusterCapacity`, default 1) | no |
|
|
1771
|
+
| Chat tabs | yes (+ web) | yes (+ web) | yes (+ web) | yes (+ web) | yes (+ web) | yes (not Incognito) | yes |
|
|
1772
|
+
| Single-consumer | no | no | no | no | no | one model at a time per Arco (manager-owned) | no |
|
|
1773
|
+
| Best at | long sessions, terminal interop, reviewers, handoff destinations | low-latency tool-loop work, server-side context mgmt, plan-mode + sandbox tools, Task fan-out | second-opinion review, primary work | primary work with mid-turn steer + structured cancel | local single-shot, sub-tasks | local multimodal, architectures Ollama hasn't shipped yet | local models via the LM Studio runtime (OpenAI-compat) |
|
|
1774
|
+
|
|
1775
|
+
**Cursor** (one of the eight primary providers) is likewise not a matrix column: a long-lived per-workflow ACP worker (`server/src/providers/cursor/`) driving `cursor-agent acp` - subprocess long-lived, JSON-RPC/ACP stream, `session/load` resume, `session/set_model` live swap, `session/cancel` + 5s hard-kill, post-turn steer drain, no per-turn tokens on the wire (Usage tab is authoritative). It IS a cluster member (`cursor` ∈ `ClusterMemberProvider`) - **cluster peer tools: in-process loopback StreamableHTTP MCP server** (Cursor ACP honors http/sse only, not stdio; fresh-only membership). See the [Cursor](#cursor) section above.
|
|
1776
|
+
|
|
1777
|
+
---
|
|
1778
|
+
|
|
1779
|
+
## Error-classifier taxonomy
|
|
1780
|
+
|
|
1781
|
+
`server/src/providers/errorClassifier.ts` maps a provider error to a
|
|
1782
|
+
`FailoverReason` and a `FailoverAction`. It complements `quota.ts`: quota
|
|
1783
|
+
tracks provider *availability*, the classifier decides the *action* the
|
|
1784
|
+
retry/fallback layer should take. Pure and side-effect-free -
|
|
1785
|
+
`classifyError(provider, err)` matches on both numeric status codes
|
|
1786
|
+
(401/402/403/404/413/422/429/5xx) and case-insensitive substrings against the
|
|
1787
|
+
flattened error message/type/code. It handles raw strings, `Error` objects, and
|
|
1788
|
+
nested `{ status, error: { type, message } }` / Codex `codexErrorInfo` shapes.
|
|
1789
|
+
|
|
1790
|
+
> **Scope:** C1 ships the classifier module + its smoke only. The first consumer
|
|
1791
|
+
> that wires `action` into control flow is **C2 - provider fallback chains**
|
|
1792
|
+
> (below). C1/C2 do **not** rewire the live single-provider error path: the
|
|
1793
|
+
> existing `markThrottled` parsing in `claude.ts` / `codex.ts` and
|
|
1794
|
+
> the live primary turn are untouched, and a live primary turn never falls back.
|
|
1795
|
+
|
|
1796
|
+
`classifyError(provider: ProviderName, err: unknown) → { reason, action, permanent }`.
|
|
1797
|
+
`permanent` is true when retrying the *same* request against the *same* provider
|
|
1798
|
+
can never succeed (C2 fails closed fast rather than burning the backoff ladder).
|
|
1799
|
+
|
|
1800
|
+
| Reason | Action | Permanent | Trigger examples | Providers |
|
|
1801
|
+
|---|---|---|---|---|
|
|
1802
|
+
| `auth` | `rotate` | no | 401, `Unauthorized`, `token expired` / `reauthenticate` | all |
|
|
1803
|
+
| `auth_permanent` | `fail` | yes | `invalid_api_key`, `authentication_error`, `revoked`, 403 `permission_error` | Claude, Codex |
|
|
1804
|
+
| `billing` | `rotate` | yes | 402, `insufficient_quota`, `credit balance too low`, `past_due` | Claude, Codex |
|
|
1805
|
+
| `rate_limit` | `backoff_then_rotate` | no | 429, `rate_limit_error`, `usage limit reached`, `too many requests` | Claude, Codex |
|
|
1806
|
+
| `overloaded` | `backoff` | no | `overloaded_error`, 503/529, `service unavailable`, `capacity` | Claude |
|
|
1807
|
+
| `context_overflow` | `compress` | no | `prompt is too long`, `context_length_exceeded`, 413, `request too large` | Claude, Codex |
|
|
1808
|
+
| `model_not_found` | `fallback` | no | `model_not_found`, `does not exist`, `has been deprecated`, 404 on a model route | Claude, Codex |
|
|
1809
|
+
| `content_policy_blocked` | `no_retry` | yes | `content policy`, `safety` / `responsible ai` filter, `output_blocked` | Claude |
|
|
1810
|
+
| `oauth_long_context_beta_forbidden` | `fail` | yes | Anthropic `oauth_long_context_beta` beta forbidden for an OAuth/subscription account | Claude (Native) |
|
|
1811
|
+
| `invalid_request` | `no_retry` | yes | 400/422, malformed request not otherwise classified | all |
|
|
1812
|
+
| `server_error` | `backoff` | no | generic 5xx | all |
|
|
1813
|
+
| `network` | `backoff` | no | `ECONNRESET`, `ETIMEDOUT`, `fetch failed`, `socket hang up` | all |
|
|
1814
|
+
| `unknown` | `backoff` | no | anything unmatched (conservative - a transient blip gets a retry, not a fatal verdict) | all |
|
|
1815
|
+
|
|
1816
|
+
Smoke: `npm run smoke:error-classify` (pure unit - no WS, no server boot).
|
|
1817
|
+
|
|
1818
|
+
---
|
|
1819
|
+
|
|
1820
|
+
## Provider fallback chains
|
|
1821
|
+
|
|
1822
|
+
`server/src/providers/fallbackChain.ts` runs a **bounded job** (a reviewer or a
|
|
1823
|
+
research leg - never a live operator conversation) across an ordered list of
|
|
1824
|
+
provider "legs". It spawns leg 0; if that leg fails with a classified error
|
|
1825
|
+
whose `action` says "this provider can't serve us, move on", it advances to the
|
|
1826
|
+
next leg. The first leg that succeeds wins; if every leg is exhausted, the
|
|
1827
|
+
**last** leg's error result is returned verbatim so the caller's existing
|
|
1828
|
+
error-surfacing path fires unchanged.
|
|
1829
|
+
|
|
1830
|
+
This is a **higher-level construct than** `WorkerManager`'s per-spawn
|
|
1831
|
+
`fallbackModel` (a same-provider model swap inside one spawn). The chain is a
|
|
1832
|
+
sequence of full `spawn()` calls across different `{provider, model}` legs; the
|
|
1833
|
+
two compose (each leg may carry its own `fallbackModel`).
|
|
1834
|
+
|
|
1835
|
+
**Which `FailoverAction`s advance the chain** (single source of truth:
|
|
1836
|
+
`ADVANCING_ACTIONS` in `fallbackChain.ts`):
|
|
1837
|
+
|
|
1838
|
+
| Action | Advance? | Why |
|
|
1839
|
+
|---|---|---|
|
|
1840
|
+
| `fallback` | **yes** | a model/provider swap is exactly what the chain is for (`model_not_found`) |
|
|
1841
|
+
| `rotate` | **yes** | "this provider/account can't serve us" (transient `auth`, `billing`) |
|
|
1842
|
+
| `backoff_then_rotate` | **yes** | the binding case: a throttle (`rate_limit`). A bounded job moves on rather than sitting in an in-place backoff. |
|
|
1843
|
+
| `backoff` | no | a *bare* backoff (`overloaded` / `server_error` / `network` / `unknown`) is a same-leg retry concern - C2 surfaces it, no in-place retry |
|
|
1844
|
+
| `compress` | no | `context_overflow` routes to compaction/handoff, **never** fallback - a sibling provider has the same window problem with the same payload |
|
|
1845
|
+
| `no_retry` | no | `content_policy_blocked` / `invalid_request` - a verbatim retry anywhere fails the same way |
|
|
1846
|
+
| `fail` | no | `auth_permanent` / `oauth_long_context_beta_forbidden` - a human step; surface it |
|
|
1847
|
+
|
|
1848
|
+
Note the deliberate split: `backoff_then_rotate` advances (the throttle case),
|
|
1849
|
+
but a bare `backoff` does not. Advancing is a **pure rule** - `classifyError`'s
|
|
1850
|
+
action is in the advancing set AND another leg exists. No LLM decides anything.
|
|
1851
|
+
|
|
1852
|
+
**Operator config (no UI in C2).** Per-role chains live under `fallbackChains`
|
|
1853
|
+
in `~/.arco/settings.json` (the standard defaults → global → project cascade,
|
|
1854
|
+
sanitized in `settings.ts`). The server **reads** them and never writes them
|
|
1855
|
+
back - the "config read, not write" fence. Shape:
|
|
1856
|
+
|
|
1857
|
+
```jsonc
|
|
1858
|
+
{
|
|
1859
|
+
"fallbackChains": {
|
|
1860
|
+
"reviewer": [
|
|
1861
|
+
{ "provider": "codex", "model": "gpt-5", "effort": "high" },
|
|
1862
|
+
{ "provider": "ollama", "model": "qwen3-coder" }
|
|
1863
|
+
],
|
|
1864
|
+
"research": [
|
|
1865
|
+
{ "provider": "claude", "model": "sonnet" }
|
|
1866
|
+
]
|
|
1867
|
+
// "seed" is reserved but NOT consumed in C2 (see fence below)
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
```
|
|
1871
|
+
|
|
1872
|
+
For a job, the **effective chain** is `[primaryLeg, ...the role's configured
|
|
1873
|
+
legs minus a leg equal to the primary]`. When the role is unset/empty the chain
|
|
1874
|
+
is just `[primaryLeg]` - i.e. **today's behavior, no fallback, no regression**.
|
|
1875
|
+
Each advance emits a `provider_fell_back` event (chat system-notice +
|
|
1876
|
+
`events.jsonl`); see [`PROTOCOL.md`](PROTOCOL.md).
|
|
1877
|
+
|
|
1878
|
+
**Wired call sites:** the reviewer (`runReviewer.ts`, role `reviewer`) and the
|
|
1879
|
+
deep-research leg (`runResearch.ts`, role `research`),
|
|
1880
|
+
resolved in `workflowHandlers.ts` (`resolveFallbackLegs`, which resolves Codex
|
|
1881
|
+
accounts per leg and drops a leg it can't authenticate).
|
|
1882
|
+
|
|
1883
|
+
**Fence (bounded-only + logged + no live swap):**
|
|
1884
|
+
|
|
1885
|
+
- The **live primary turn never falls back.** It runs through `seedWorker.ts`'s
|
|
1886
|
+
`runPrimaryTurn`, which is *not* routed through the chain. A live primary turn
|
|
1887
|
+
fails closed and surfaces to the operator. The handoff seed also runs through
|
|
1888
|
+
`runPrimaryTurn` (it *is* the primary-turn primitive, just with a seed prompt),
|
|
1889
|
+
so the `seed` chain role is **deferred** - wiring it would mean routing the
|
|
1890
|
+
primary path through the chain, which the fence forbids.
|
|
1891
|
+
- Every advance is **logged** (`provider_fell_back` → `events.jsonl`).
|
|
1892
|
+
- The chain is **operator-opted-in** (hand-configured) and **reversible**
|
|
1893
|
+
(remove the chain → fallback stops; a failed run still surfaces the last leg's
|
|
1894
|
+
error). Clears the four-question test in `CLAUDE.md`.
|
|
1895
|
+
|
|
1896
|
+
Smoke: `npm run smoke:fallback` (pure unit - no WS, no server boot, no live
|
|
1897
|
+
providers; stubs a throttle on leg 0 and asserts leg 1 runs + one
|
|
1898
|
+
`provider_fell_back` fires, plus the `compress`/single-leg negatives).
|
|
1899
|
+
|
|
1900
|
+
---
|
|
1901
|
+
|
|
1902
|
+
## Cross-references
|
|
1903
|
+
|
|
1904
|
+
- The provider abstraction interface: `server/src/providers/types.ts`
|
|
1905
|
+
- Factory: `server/src/providers/index.ts`
|
|
1906
|
+
- How providers plug into the primitive flows: [`PRIMITIVES.md`](PRIMITIVES.md)
|
|
1907
|
+
- The protocol messages providers emit: [`PROTOCOL.md`](PROTOCOL.md) (`worker_*` and `primary_*` groups)
|
|
1908
|
+
- Capability detection: `server/src/capabilities.ts`
|
|
1909
|
+
- Auth flows: `server/src/auth.ts`
|
|
1910
|
+
- Quota / throttle tracking: `server/src/quota.ts`
|
|
1911
|
+
- Error-classifier taxonomy: `server/src/providers/errorClassifier.ts` (see the taxonomy table above)
|
|
1912
|
+
- "Don't regress X" invariants: [`GOTCHAS.md`](GOTCHAS.md)
|
|
1913
|
+
|
|
1914
|
+
Strata 0.2 separates app/Terminal and engine versions. `latestVersions.strata`
|
|
1915
|
+
tracks engine packages from the component feed (release-note/legacy fallbacks),
|
|
1916
|
+
not the app tag; current details are in [STRATA.md](STRATA.md#engine-and-component-updates).
|
|
1917
|
+
|
|
1918
|
+
## Retired provider history
|
|
1919
|
+
|
|
1920
|
+
Z.ai, Antigravity, and Gemini support have been removed. Existing workflow
|
|
1921
|
+
metadata, transcripts, artifacts and provider identity remain readable through
|
|
1922
|
+
the normal history tools. A retired provider cannot start or resume work; choose
|
|
1923
|
+
a supported provider explicitly for new work. Arco does not uninstall external
|
|
1924
|
+
applications or delete their profiles or credentials.
|
|
1925
|
+
|
|
1926
|
+
For Antigravity and Gemini, updating unrelated settings preserves retired
|
|
1927
|
+
defaults until they are explicitly changed. Z.ai is different: legacy Z.ai
|
|
1928
|
+
settings, including a Z.ai default provider and its model, are ignored when
|
|
1929
|
+
settings are read, while existing secret files are left in place. Anything that
|
|
1930
|
+
still names Z.ai (a saved template, a create request, a login or update-check
|
|
1931
|
+
request) gets the Z.ai removal notice rather than a generic unsupported-provider
|
|
1932
|
+
error.
|
|
1933
|
+
|
|
1934
|
+
## Related links
|
|
1935
|
+
|
|
1936
|
+
- [Feature reference](FEATURES.md)
|
|
1937
|
+
- [Settings](SETTINGS.md)
|
|
1938
|
+
- [Gotchas](GOTCHAS.md)
|
|
1939
|
+
- [Documentation style](STYLE.md)
|