arco-workbench 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +14 -12
- package/README.md +5 -3
- package/client/dist/THIRD_PARTY_LICENSES.txt +3912 -0
- package/client/dist/assets/{PhosphorBackdrop-DRu16-Is.js → PhosphorBackdrop-9jNRO1ZM.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BLdwwQ4D.js → ThemedBackgroundShaderImpl-tUi3k54Y.js} +1 -1
- package/client/dist/assets/XtermView-B7BOSnVo.js +10 -0
- package/client/dist/assets/{galleryEditor-CI8ClzBa.js → galleryEditor-Ohc2h9cD.js} +1 -1
- package/client/dist/assets/index-CVJVD2Vn.css +1 -0
- package/client/dist/assets/index-ILGXWriO.js +638 -0
- package/client/dist/index.html +3 -3
- package/client/src/App.tsx +42 -9
- package/client/src/components/AskUserQuestionNotice.tsx +37 -10
- package/client/src/components/AttachmentPill.tsx +3 -2
- package/client/src/components/AuthReloginNotice.tsx +25 -6
- package/client/src/components/AutomaticMessage.tsx +3 -1
- package/client/src/components/CatchMeUp.tsx +4 -1
- package/client/src/components/ChatMessage.tsx +43 -5
- package/client/src/components/ChatModeView.tsx +20 -4
- package/client/src/components/ChatPanel.tsx +5 -0
- package/client/src/components/ClusterActivityTab.tsx +9 -3
- package/client/src/components/ClusterComposerButtons.tsx +5 -3
- package/client/src/components/ClusterPlanTab.tsx +55 -8
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +38 -99
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +36 -12
- package/client/src/components/ClusterRightPanel/MailboxModal.tsx +61 -8
- package/client/src/components/ClusterRightPanel/MemberRow.tsx +46 -14
- package/client/src/components/ClusterRightPanel/PhoneMemberList.tsx +56 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +38 -9
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +6 -5
- package/client/src/components/ClusterRightPanel/index.tsx +188 -39
- package/client/src/components/ClusterRightPanel/memberSettings.ts +2 -2
- package/client/src/components/ClusterRightPanel/panels.ts +1 -0
- package/client/src/components/ClusterRightPanel/types.ts +5 -1
- package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +82 -0
- package/client/src/components/ClusterTab.tsx +76 -23
- package/client/src/components/ClusterTaskBoardTab.tsx +35 -6
- package/client/src/components/Connections/Connections.tsx +5 -8
- package/client/src/components/Connections/model.ts +2 -2
- package/client/src/components/DialogShell.tsx +4 -0
- package/client/src/components/DirectorContinuePrompt.tsx +56 -0
- package/client/src/components/FileExplorer.tsx +54 -1
- package/client/src/components/FileViewerModal.tsx +39 -7
- package/client/src/components/FirstRun.tsx +3 -2
- package/client/src/components/ForwardMessages.tsx +6 -3
- package/client/src/components/GateApprovalNotice.tsx +7 -4
- package/client/src/components/GeminiSkillNotice.tsx +12 -0
- package/client/src/components/GeminiSubagentLine.tsx +5 -0
- package/client/src/components/GitDialog.tsx +15 -6
- package/client/src/components/GitOtherWork.tsx +2 -1
- package/client/src/components/HandoffDialog.tsx +3 -2
- package/client/src/components/HeaderVersionBox.tsx +6 -2
- package/client/src/components/HistoryTab.tsx +127 -108
- package/client/src/components/Home/HomeView.tsx +14 -3
- package/client/src/components/Home/ResearchLibrary.tsx +107 -0
- package/client/src/components/Home/home.css +6 -0
- package/client/src/components/LoginFlow.tsx +12 -5
- package/client/src/components/MemberCard.tsx +8 -2
- package/client/src/components/MemberPane.tsx +12 -4
- package/client/src/components/MobileNotices.tsx +26 -0
- package/client/src/components/MobileQuestionBar.tsx +35 -0
- package/client/src/components/MobileShell.tsx +811 -0
- package/client/src/components/MobileTextSize.tsx +27 -0
- package/client/src/components/NativeSubagentControls.tsx +12 -1
- package/client/src/components/NorthStarBar.tsx +2 -0
- package/client/src/components/NotificationToasts.tsx +6 -2
- package/client/src/components/OperatorQuestionNotice.tsx +2 -2
- package/client/src/components/PendingQuestionsButton.tsx +44 -5
- package/client/src/components/PhoneUpload.tsx +4 -2
- package/client/src/components/PlanComposerDialog.tsx +7 -7
- package/client/src/components/ProjectsSettings.tsx +3 -0
- package/client/src/components/ProvidersPopover.tsx +9 -6
- package/client/src/components/PurgeConversationModal.tsx +1 -1
- package/client/src/components/QueuedMessagesIndicator.tsx +1 -1
- package/client/src/components/Recall/RecallView.tsx +31 -8
- package/client/src/components/ResearchFolderSetting.tsx +64 -0
- package/client/src/components/RightPanel/ActivityTab.tsx +9 -4
- package/client/src/components/RightPanel/BlastRadiusTab.tsx +6 -8
- package/client/src/components/RightPanel/ConfigTab.tsx +18 -10
- package/client/src/components/RightPanel/FilesTab.tsx +34 -19
- package/client/src/components/RightPanel/PlanTab.tsx +67 -24
- package/client/src/components/RightPanel/UsageTab.tsx +30 -3
- package/client/src/components/RightPanel/index.tsx +42 -3
- package/client/src/components/RuntimeStateBanner.tsx +8 -0
- package/client/src/components/ScratchCloseDialog.tsx +124 -0
- package/client/src/components/SettingsPanel.tsx +181 -69
- package/client/src/components/SkillActivityIndicator.tsx +93 -0
- package/client/src/components/SystemHeader.tsx +2 -7
- package/client/src/components/SystemModal.tsx +37 -45
- package/client/src/components/TabBar.tsx +52 -8
- package/client/src/components/TabContextMenu.tsx +12 -102
- package/client/src/components/TaskCard.tsx +13 -17
- package/client/src/components/TaskChildComposer.tsx +24 -0
- package/client/src/components/TasksPanel.tsx +7 -17
- package/client/src/components/Terminal/FloatingTerminalWindow.tsx +11 -3
- package/client/src/components/Terminal/FloatingWindow.tsx +36 -14
- package/client/src/components/Terminal/XtermView.tsx +19 -2
- package/client/src/components/Terminal/phoneKeys.ts +9 -0
- package/client/src/components/TerminalInput.tsx +149 -32
- package/client/src/components/TranscriptWorkerDialog.tsx +2 -2
- package/client/src/components/UpdateAction.tsx +9 -6
- package/client/src/components/UsageBar.tsx +118 -10
- package/client/src/components/UserManual/MobileManualContent.tsx +58 -0
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +8 -5
- package/client/src/components/WorkflowCreator/PastChatsList.tsx +3 -1
- package/client/src/components/WorkflowCreator/ProjectPicker.tsx +3 -3
- package/client/src/components/WorkflowCreator/ResearchStartForm.tsx +335 -0
- package/client/src/components/WorkflowCreator/index.tsx +124 -36
- package/client/src/components/WorkflowCreator/memberProviders.ts +20 -5
- package/client/src/components/WorkflowCreator/pendingTemplateApply.ts +20 -0
- package/client/src/components/WorkflowCreator/types.ts +18 -0
- package/client/src/components/WorkflowStatusChip.tsx +1 -0
- package/client/src/components/WorkflowView.tsx +51 -13
- package/client/src/components/chatMessageLabel.ts +4 -0
- package/client/src/components/clusterActivity.helpers.ts +5 -1
- package/client/src/components/clusterNeedsYou.ts +3 -8
- package/client/src/components/clusterSurface.helpers.ts +6 -1
- package/client/src/components/composer/submitComposer.ts +7 -1
- package/client/src/components/help/HelpBanner.tsx +10 -5
- package/client/src/components/help/HelpPopover.tsx +5 -0
- package/client/src/components/media/MediaModalHost.tsx +13 -8
- package/client/src/components/plans/PhonePlanView.tsx +66 -0
- package/client/src/components/plans/phonePlanChecklist.ts +45 -0
- package/client/src/components/providerIndicator.ts +83 -0
- package/client/src/components/research/AddResearcherSection.tsx +50 -0
- package/client/src/components/research/ExportResearchDialog.tsx +52 -0
- package/client/src/components/research/QuickResearchOverview.tsx +92 -0
- package/client/src/components/research/RerunResearchDialog.tsx +61 -0
- package/client/src/components/research/ResearchCloseDialog.tsx +98 -0
- package/client/src/components/research/ResearchRemoveDialog.tsx +37 -0
- package/client/src/components/research/ResearchReopenDialog.tsx +160 -0
- package/client/src/components/research/ResearchResultsTab.css +289 -0
- package/client/src/components/research/ResearchResultsTab.tsx +207 -0
- package/client/src/components/research/ResearchRoundsStrip.tsx +127 -0
- package/client/src/components/research/SavedQuickKeep.tsx +58 -0
- package/client/src/components/research/SendResearchDialog.tsx +126 -0
- package/client/src/components/research/StartResearchProjectDialog.tsx +108 -0
- package/client/src/components/research/researchExports.ts +26 -0
- package/client/src/components/research/researchLinks.tsx +30 -0
- package/client/src/components/research/researchView.ts +64 -0
- package/client/src/components/research/researcherRow.tsx +104 -0
- package/client/src/components/settings/AppVersionSection.tsx +2 -0
- package/client/src/components/settings/SettingsLayout.tsx +23 -4
- package/client/src/components/settings/navigation.ts +4 -4
- package/client/src/components/settings/settings.css +18 -0
- package/client/src/components/usageVisibility.ts +4 -6
- package/client/src/components/workSurface/WorkSurfaceControls.tsx +7 -0
- package/client/src/explorer/StorageLens.tsx +10 -3
- package/client/src/help/content/chat.tsx +5 -8
- package/client/src/help/content/cluster.tsx +70 -30
- package/client/src/help/content/composer.tsx +13 -8
- package/client/src/help/content/header.tsx +17 -24
- package/client/src/help/content/media.tsx +2 -2
- package/client/src/help/content/misc.tsx +174 -38
- package/client/src/help/content/recall.tsx +2 -2
- package/client/src/help/content/rightPanel.tsx +8 -8
- package/client/src/help/content/settings.tsx +48 -14
- package/client/src/help/content/tabbar.tsx +6 -2
- package/client/src/help/manualSections/actions.tsx +7 -2
- package/client/src/help/manualSections/chat.tsx +16 -15
- package/client/src/help/manualSections/clusters.tsx +348 -69
- package/client/src/help/manualSections/configuration.tsx +25 -18
- package/client/src/help/manualSections/deepseek.tsx +4 -5
- package/client/src/help/manualSections/gettingStarted.tsx +30 -26
- package/client/src/help/manualSections/maintenance.tsx +9 -5
- package/client/src/help/manualSections/plans.tsx +4 -4
- package/client/src/help/manualSections/powerFeatures.tsx +51 -18
- package/client/src/help/manualSections/providers.tsx +56 -21
- package/client/src/help/manualSections/reference.tsx +6 -6
- package/client/src/help/manualSections/strata.tsx +8 -8
- package/client/src/help/manualSections/workflows.tsx +3 -3
- package/client/src/help/manualSections/workspace.tsx +115 -39
- package/client/src/hooks/useWebSocket.ts +21 -4
- package/client/src/layout/PhoneBottomSheet.tsx +71 -0
- package/client/src/layout/PhonePage.tsx +71 -0
- package/client/src/layout/SlideOut.tsx +36 -9
- package/client/src/layout/layoutRange.ts +41 -4
- package/client/src/layout/phoneChip.ts +14 -0
- package/client/src/layout/phoneOverlay.ts +81 -0
- package/client/src/layout/phonePageActions.ts +40 -0
- package/client/src/stores/appStore.ts +36 -10
- package/client/src/stores/appStore.types.ts +29 -3
- package/client/src/stores/directorContinueStore.ts +22 -0
- package/client/src/stores/draftStore.ts +56 -2
- package/client/src/stores/phoneStore.ts +196 -0
- package/client/src/stores/terminalStore.ts +8 -0
- package/client/src/styles/contextual-help.css +10 -0
- package/client/src/styles/global.css +293 -0
- package/client/src/themes/apply.ts +9 -1
- package/client/src/themes/bootstrap.ts +21 -1
- package/client/src/themes/providerThemes.ts +1 -0
- package/client/src/utils/codexAccountHome.ts +9 -0
- package/client/src/utils/format.ts +8 -2
- package/client/src/utils/gitBranchMark.ts +3 -0
- package/client/src/utils/homeModel.ts +7 -0
- package/client/src/utils/longPress.ts +64 -0
- package/client/src/utils/modelCatalog.ts +4 -0
- package/client/src/utils/providerStatusCheck.ts +30 -0
- package/client/src/utils/startupGate.ts +6 -0
- package/client/src/ws/handleServerMessage.ts +106 -7
- package/docs/ARCHITECTURE.md +63 -37
- package/docs/ARCHITECTURE_REVIEW.md +1 -1
- package/docs/BACKUP.md +60 -9
- package/docs/CHAT.md +15 -11
- package/docs/CHECKPOINTS.md +2 -0
- package/docs/CLIENT.md +70 -36
- package/docs/DEEPSEEK.md +9 -10
- package/docs/DIAGNOSTICS.md +8 -7
- package/docs/DOCKER.md +16 -2
- package/docs/EXTENDING.md +10 -26
- package/docs/FEATURES.md +23 -15
- package/docs/GENESIS.md +3 -1
- package/docs/GETTING_STARTED.md +82 -16
- package/docs/GIT_WORKBENCH.md +5 -5
- package/docs/GLOSSARY.md +36 -23
- package/docs/GOTCHAS.md +102 -67
- package/docs/HTTP_API.md +182 -86
- package/docs/INDEX.md +1 -0
- package/docs/KNOWLEDGE.md +2 -2
- package/docs/LOCAL_SERVICES.md +9 -8
- package/docs/MCP_REGISTRY.md +18 -13
- package/docs/MEDIA_STUDIO.md +7 -11
- package/docs/OPERATIONS.md +101 -24
- package/docs/OPERATOR_ACTIONS.md +24 -22
- package/docs/PERSISTENCE.md +65 -24
- package/docs/PHOSPHOR_DEMO.md +1 -4
- package/docs/PLAN_OR_BOARD.md +2 -2
- package/docs/PRIMITIVES.md +17 -17
- package/docs/PROTOCOL.md +60 -9
- package/docs/PROTOCOL_CLUSTER.md +92 -22
- package/docs/PROTOCOL_PRIMITIVES.md +10 -4
- package/docs/PROVIDERS.md +291 -145
- package/docs/RECALL.md +40 -31
- package/docs/REMOTE_MANAGEMENT.md +27 -51
- package/docs/REPO_LAYOUT.md +4 -3
- package/docs/RESEARCH.md +189 -0
- package/docs/RESUME_INDEX.md +10 -19
- package/docs/SERVICE_MODE.md +11 -5
- package/docs/SETTINGS.md +18 -13
- package/docs/STORAGE_PLAN.md +3 -3
- package/docs/STRATA.md +14 -11
- package/docs/TASK_LEDGER.md +19 -8
- package/docs/TERMINAL.md +14 -10
- package/docs/THIRD_PARTY.md +21 -4
- package/docs/VOICE.md +16 -28
- package/native/linux-arm64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +1 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +9 -1
- package/node_modules/@arco/shared/dist/clusterRolePresets.js +13 -4
- package/node_modules/@arco/shared/dist/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +7 -0
- package/node_modules/@arco/shared/dist/protocol/autoPickup.js +22 -11
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +1 -1
- package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +18 -3
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +177 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.js +48 -2
- package/node_modules/@arco/shared/dist/protocol/handoffs.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/models.js +4 -3
- package/node_modules/@arco/shared/dist/protocol/providers.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/providers.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +28 -3
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +3 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +42 -0
- package/node_modules/@arco/shared/dist/protocol/tasks.js +17 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +2 -0
- package/node_modules/@arco/shared/dist/researchActivity.d.ts +4 -0
- package/node_modules/@arco/shared/dist/researchActivity.js +29 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +3 -2
- package/scripts/packaging/services.mjs +19 -2
- package/scripts/packaging/update.mjs +9 -0
- package/server/dist/arcoHome.js +19 -3
- package/server/dist/auth.d.ts +4 -2
- package/server/dist/auth.js +42 -4
- package/server/dist/authLoginSession.d.ts +2 -1
- package/server/dist/authLoginSession.js +13 -3
- package/server/dist/capabilities.d.ts +2 -2
- package/server/dist/capabilities.js +11 -6
- package/server/dist/chatMode.d.ts +3 -0
- package/server/dist/chatMode.js +25 -2
- package/server/dist/checkedFile.d.ts +1 -1
- package/server/dist/checkedFile.js +48 -41
- package/server/dist/cliUpdateDecision.js +1 -1
- package/server/dist/clusterAutoTurn.d.ts +4 -1
- package/server/dist/clusterAutoTurn.js +25 -4
- package/server/dist/clusterBusyReminder.js +2 -1
- package/server/dist/clusterDirector.js +5 -2
- package/server/dist/clusterMailTally.d.ts +11 -0
- package/server/dist/clusterMailTally.js +29 -0
- package/server/dist/clusterMailbox.d.ts +8 -1
- package/server/dist/clusterMailbox.js +53 -4
- package/server/dist/clusterOpenWork.d.ts +22 -0
- package/server/dist/clusterOpenWork.js +85 -0
- package/server/dist/clusterPeerOps.d.ts +32 -5
- package/server/dist/clusterPeerOps.js +253 -49
- package/server/dist/clusterPlanBridge.d.ts +7 -1
- package/server/dist/clusterPlanBridge.js +58 -0
- package/server/dist/clusterPlanStore.d.ts +6 -0
- package/server/dist/clusterPlanStore.js +58 -0
- package/server/dist/clusterPresets.js +23 -3
- package/server/dist/clusterProgress.js +2 -2
- package/server/dist/clusterSkills.js +2 -2
- package/server/dist/clusterSnapshots.d.ts +1 -0
- package/server/dist/clusterSnapshots.js +7 -1
- package/server/dist/clusterStore.d.ts +34 -1
- package/server/dist/clusterStore.js +194 -21
- package/server/dist/clusterTurnOrigin.d.ts +2 -0
- package/server/dist/clusterTurnOrigin.js +19 -0
- package/server/dist/connectionCatalog.js +1 -0
- package/server/dist/cursorUsage.js +3 -3
- package/server/dist/defaults/models.md +11 -14
- package/server/dist/directorContinue.d.ts +47 -0
- package/server/dist/directorContinue.js +311 -0
- package/server/dist/directorContinueHook.d.ts +3 -0
- package/server/dist/directorContinueHook.js +16 -0
- package/server/dist/effortValidation.d.ts +3 -0
- package/server/dist/effortValidation.js +34 -0
- package/server/dist/fileAccessPolicy.js +1 -0
- package/server/dist/fileFetch.d.ts +7 -1
- package/server/dist/fileFetch.js +50 -29
- package/server/dist/geminiMembers.d.ts +8 -0
- package/server/dist/geminiMembers.js +113 -0
- package/server/dist/git.d.ts +3 -0
- package/server/dist/git.js +17 -24
- package/server/dist/gitOtherWork.js +5 -4
- package/server/dist/gitSnapshots.js +66 -5
- package/server/dist/http/authLoginRoutes.js +1 -1
- package/server/dist/http/clusterRoutes.js +466 -4
- package/server/dist/http/diagnosticsRoutes.js +8 -0
- package/server/dist/http/fileWriteRoutes.js +11 -3
- package/server/dist/http/phoneUploadRoutes.js +2 -1
- package/server/dist/http/readConfinement.d.ts +11 -0
- package/server/dist/http/readConfinement.js +30 -0
- package/server/dist/http/recallRoutes.js +1 -1
- package/server/dist/http/router.js +48 -11
- package/server/dist/http/storageRoutes.js +114 -7
- package/server/dist/http/workflowDataRoutes.js +20 -0
- package/server/dist/http/writeConfinement.js +12 -1
- package/server/dist/index.d.ts +13 -0
- package/server/dist/index.js +353 -56
- package/server/dist/initialProviders.js +1 -1
- package/server/dist/manualCompactCapability.js +1 -1
- package/server/dist/mcp/clusterMcpLoopback.d.ts +1 -0
- package/server/dist/mcp/clusterMcpLoopback.js +1 -0
- package/server/dist/mcp/clusterMcpServer.js +3 -2
- package/server/dist/mcp/clusterMcpTools.d.ts +3 -0
- package/server/dist/mcp/clusterMcpTools.js +79 -25
- package/server/dist/mcp/mcpConfigWriter.d.ts +1 -0
- package/server/dist/mcp/mcpConfigWriter.js +2 -0
- package/server/dist/mcp/workerMailBridge.d.ts +17 -0
- package/server/dist/mcp/workerMailBridge.js +104 -0
- package/server/dist/planStore.js +1 -0
- package/server/dist/primitives/seedWorker.d.ts +10 -1
- package/server/dist/primitives/seedWorker.js +14 -15
- package/server/dist/project/taskLedger.d.ts +3 -0
- package/server/dist/project/taskLedger.js +16 -0
- package/server/dist/providers/{cursor → acp}/acpJsonRpc.js +1 -1
- package/server/dist/providers/acp/permissionGate.d.ts +3 -0
- package/server/dist/providers/acp/permissionGate.js +46 -0
- package/server/dist/providers/antigravity/index.d.ts +15 -0
- package/server/dist/providers/antigravity/index.js +251 -0
- package/server/dist/providers/antigravity/researchSignIn.d.ts +24 -0
- package/server/dist/providers/antigravity/researchSignIn.js +93 -0
- package/server/dist/providers/antigravity/status.d.ts +18 -0
- package/server/dist/providers/antigravity/status.js +28 -0
- package/server/dist/providers/antigravity/usage.d.ts +7 -0
- package/server/dist/providers/antigravity/usage.js +35 -0
- package/server/dist/providers/claude/researcherFence.d.ts +7 -0
- package/server/dist/providers/claude/researcherFence.js +27 -0
- package/server/dist/providers/claude-native/catalog.d.ts +2 -1
- package/server/dist/providers/claude-native/catalog.js +4 -0
- package/server/dist/providers/claude-native/index.d.ts +1 -0
- package/server/dist/providers/claude-native/index.js +9 -1
- package/server/dist/providers/claude-native/peerTools.d.ts +1 -0
- package/server/dist/providers/claude-native/peerTools.js +26 -4
- package/server/dist/providers/claude-native/taskAdmission.d.ts +7 -1
- package/server/dist/providers/claude-native/taskAdmission.js +30 -8
- package/server/dist/providers/claude-native/tools.d.ts +1 -0
- package/server/dist/providers/claude-native/tools.js +47 -18
- package/server/dist/providers/claude-native/worker.d.ts +22 -1
- package/server/dist/providers/claude-native/worker.js +281 -51
- package/server/dist/providers/claude-native/workerHelpers.d.ts +5 -0
- package/server/dist/providers/claude-native/workerHelpers.js +95 -5
- package/server/dist/providers/claude.d.ts +2 -0
- package/server/dist/providers/claude.js +194 -22
- package/server/dist/providers/clusterTaskToolDefinitions.js +2 -1
- package/server/dist/providers/codex-appserver/heldCommands.d.ts +2 -2
- package/server/dist/providers/codex-appserver/heldCommands.js +9 -3
- package/server/dist/providers/codex-appserver/index.d.ts +9 -0
- package/server/dist/providers/codex-appserver/index.js +106 -5
- package/server/dist/providers/codex-appserver/lateCommands.js +1 -0
- package/server/dist/providers/codex-appserver/modelAvailability.d.ts +20 -0
- package/server/dist/providers/codex-appserver/modelAvailability.js +34 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +11 -0
- package/server/dist/providers/codex-appserver/worker.js +199 -25
- package/server/dist/providers/codex.js +1 -0
- package/server/dist/providers/codexVersion.d.ts +2 -0
- package/server/dist/providers/codexVersion.js +8 -0
- package/server/dist/providers/codexWebSearch.js +1 -1
- package/server/dist/providers/cursor/agentEnv.d.ts +20 -0
- package/server/dist/providers/cursor/agentEnv.js +93 -0
- package/server/dist/providers/cursor/authState.js +2 -1
- package/server/dist/providers/cursor/authToken.d.ts +25 -2
- package/server/dist/providers/cursor/authToken.js +118 -27
- package/server/dist/providers/cursor/catalog.d.ts +6 -0
- package/server/dist/providers/cursor/catalog.js +91 -1
- package/server/dist/providers/cursor/chatSandbox.d.ts +3 -1
- package/server/dist/providers/cursor/chatSandbox.js +24 -8
- package/server/dist/providers/cursor/isolated.d.ts +6 -0
- package/server/dist/providers/cursor/isolated.js +313 -0
- package/server/dist/providers/cursor/isolatedVersion.d.ts +6 -0
- package/server/dist/providers/cursor/isolatedVersion.js +35 -0
- package/server/dist/providers/cursor/modelMap.js +9 -5
- package/server/dist/providers/cursor/print.js +10 -8
- package/server/dist/providers/cursor/worker.js +8 -3
- package/server/dist/providers/index.js +10 -2
- package/server/dist/providers/llamacpp.js +3 -2
- package/server/dist/providers/ollama.d.ts +3 -2
- package/server/dist/providers/ollama.js +29 -10
- package/server/dist/providers/ollamaTools.d.ts +3 -0
- package/server/dist/providers/ollamaTools.js +31 -29
- package/server/dist/research/exportResults.d.ts +15 -0
- package/server/dist/research/exportResults.js +60 -0
- package/server/dist/research/isolatedArtifact.d.ts +4 -0
- package/server/dist/research/isolatedArtifact.js +56 -0
- package/server/dist/research/quickPromotion.d.ts +27 -0
- package/server/dist/research/quickPromotion.js +402 -0
- package/server/dist/research/quickResearchChat.d.ts +4 -0
- package/server/dist/research/quickResearchChat.js +187 -0
- package/server/dist/research/researchClose.d.ts +31 -0
- package/server/dist/research/researchClose.js +373 -0
- package/server/dist/research/researchCopy.d.ts +16 -0
- package/server/dist/research/researchCopy.js +180 -0
- package/server/dist/research/researchCreate.d.ts +40 -0
- package/server/dist/research/researchCreate.js +334 -0
- package/server/dist/research/researchDoctrine.d.ts +2 -0
- package/server/dist/research/researchDoctrine.js +26 -0
- package/server/dist/research/researchFolder.d.ts +23 -0
- package/server/dist/research/researchFolder.js +191 -0
- package/server/dist/research/researchLibrary.d.ts +54 -0
- package/server/dist/research/researchLibrary.js +281 -0
- package/server/dist/research/researchRetry.d.ts +25 -0
- package/server/dist/research/researchRetry.js +96 -0
- package/server/dist/research/researchRounds.d.ts +108 -0
- package/server/dist/research/researchRounds.js +996 -0
- package/server/dist/research/researchState.d.ts +112 -0
- package/server/dist/research/researchState.js +191 -0
- package/server/dist/research/researchTools.d.ts +57 -0
- package/server/dist/research/researchTools.js +57 -0
- package/server/dist/research/researchTripwires.d.ts +18 -0
- package/server/dist/research/researchTripwires.js +196 -0
- package/server/dist/research/resultSelection.d.ts +27 -0
- package/server/dist/research/resultSelection.js +161 -0
- package/server/dist/research/savedQuickPromotion.d.ts +19 -0
- package/server/dist/research/savedQuickPromotion.js +259 -0
- package/server/dist/research/sendToProject.d.ts +36 -0
- package/server/dist/research/sendToProject.js +293 -0
- package/server/dist/server/broadcast.d.ts +5 -1
- package/server/dist/server/broadcast.js +45 -5
- package/server/dist/server/updateCheck.js +1 -0
- package/server/dist/settings.js +27 -3
- package/server/dist/skillActivity.d.ts +11 -0
- package/server/dist/skillActivity.js +33 -0
- package/server/dist/smartPickup.d.ts +1 -0
- package/server/dist/smartPickup.js +12 -4
- package/server/dist/smartPickupAdapters.js +3 -2
- package/server/dist/smartPickupEvaluator.d.ts +1 -0
- package/server/dist/smartPickupObserver.js +47 -14
- package/server/dist/storageActions.d.ts +9 -0
- package/server/dist/storageActions.js +5 -0
- package/server/dist/storageOverview.d.ts +1 -0
- package/server/dist/storageOverview.js +12 -5
- package/server/dist/taskDispatcher.js +3 -2
- package/server/dist/toolboxWorkflow.js +2 -1
- package/server/dist/updateCheck.d.ts +3 -2
- package/server/dist/updateCheck.js +39 -1
- package/server/dist/workers/StreamParser.d.ts +1 -0
- package/server/dist/workers/StreamParser.js +23 -1
- package/server/dist/workers/WorkerManager.d.ts +4 -0
- package/server/dist/workers/WorkerManager.js +5 -1
- package/server/dist/workers/antigravityIsolatedLaunch.d.ts +25 -0
- package/server/dist/workers/antigravityIsolatedLaunch.js +88 -0
- package/server/dist/workers/checkedLinuxWorker.d.ts +38 -0
- package/server/dist/workers/checkedLinuxWorker.js +192 -0
- package/server/dist/workers/claudeAccessLease.d.ts +24 -0
- package/server/dist/workers/claudeAccessLease.js +157 -0
- package/server/dist/workers/claudeAccessSource.d.ts +2 -0
- package/server/dist/workers/claudeAccessSource.js +27 -0
- package/server/dist/workers/claudeIsolatedLaunch.d.ts +19 -0
- package/server/dist/workers/claudeIsolatedLaunch.js +104 -0
- package/server/dist/workers/cliResearcherDoctrine.d.ts +4 -0
- package/server/dist/workers/cliResearcherDoctrine.js +20 -0
- package/server/dist/workers/codexAccessLease.d.ts +26 -0
- package/server/dist/workers/codexAccessLease.js +208 -0
- package/server/dist/workers/codexIsolatedLaunch.d.ts +21 -0
- package/server/dist/workers/codexIsolatedLaunch.js +95 -0
- package/server/dist/workers/codexIsolatedPolicy.d.ts +5 -0
- package/server/dist/workers/codexIsolatedPolicy.js +49 -0
- package/server/dist/workers/cursorIsolatedLaunch.d.ts +37 -0
- package/server/dist/workers/cursorIsolatedLaunch.js +178 -0
- package/server/dist/workers/isolatedCliHome.d.ts +4 -0
- package/server/dist/workers/isolatedCliHome.js +107 -0
- package/server/dist/workers/limits.js +1 -1
- package/server/dist/workers/linuxWorkerSandbox.d.ts +48 -0
- package/server/dist/workers/linuxWorkerSandbox.js +192 -0
- package/server/dist/workers/processKill.d.ts +2 -0
- package/server/dist/workers/processKill.js +28 -2
- package/server/dist/workers/providerRuntimeDiscovery.d.ts +13 -0
- package/server/dist/workers/providerRuntimeDiscovery.js +126 -0
- package/server/dist/workers/researchSandboxAvailability.d.ts +3 -0
- package/server/dist/workers/researchSandboxAvailability.js +78 -0
- package/server/dist/workers/workerAccessPass.d.ts +12 -0
- package/server/dist/workers/workerAccessPass.js +123 -0
- package/server/dist/workers/workerHiddenDirectories.d.ts +3 -0
- package/server/dist/workers/workerHiddenDirectories.js +16 -0
- package/server/dist/workers/workerSocketDirectory.d.ts +2 -0
- package/server/dist/workers/workerSocketDirectory.js +16 -0
- package/server/dist/workers/workerWebProxy.d.ts +28 -0
- package/server/dist/workers/workerWebProxy.js +206 -0
- package/server/dist/workflowMeta.d.ts +5 -0
- package/server/dist/workflowMeta.js +7 -3
- package/server/dist/workflowStore.js +43 -25
- package/server/dist/workflows/purgeWorkflow.js +15 -0
- package/server/dist/workflows/types.d.ts +6 -0
- package/server/dist/workspace.d.ts +1 -0
- package/server/dist/workspace.js +8 -0
- package/server/dist/ws/clusterHandlers.d.ts +5 -0
- package/server/dist/ws/clusterHandlers.js +373 -26
- package/server/dist/ws/clusterMembers.d.ts +5 -0
- package/server/dist/ws/clusterMembers.js +15 -5
- package/server/dist/ws/compactHandlers.js +43 -8
- package/server/dist/ws/compareHandlers.d.ts +12 -0
- package/server/dist/ws/compareHandlers.js +32 -14
- package/server/dist/ws/handoffHandlers.js +39 -3
- package/server/dist/ws/operatorQuestionHandlers.d.ts +5 -0
- package/server/dist/ws/operatorQuestionHandlers.js +17 -2
- package/server/dist/ws/taskLedgerHandlers.js +1 -0
- package/server/dist/ws/taskLifecycle.d.ts +25 -1
- package/server/dist/ws/taskLifecycle.js +53 -1
- package/server/dist/ws/turnEngine.d.ts +18 -1
- package/server/dist/ws/turnEngine.js +281 -52
- package/server/dist/ws/turnPrompt.js +3 -1
- package/server/dist/ws/updatePrimaryConfig.js +11 -3
- package/server/dist/ws/workflowHandlers.js +17 -4
- package/server/package.json +1 -1
- package/server/src/arcoHome.ts +16 -3
- package/server/src/auth.ts +50 -6
- package/server/src/authLoginSession.ts +10 -5
- package/server/src/capabilities.ts +13 -8
- package/server/src/chatMode.ts +24 -2
- package/server/src/checkedFile.ts +42 -31
- package/server/src/cliUpdateDecision.ts +1 -1
- package/server/src/clusterAutoTurn.ts +29 -5
- package/server/src/clusterBusyReminder.ts +2 -1
- package/server/src/clusterDirector.ts +5 -2
- package/server/src/clusterMailTally.ts +28 -0
- package/server/src/clusterMailbox.ts +49 -4
- package/server/src/clusterOpenWork.ts +94 -0
- package/server/src/clusterPeerOps.ts +238 -52
- package/server/src/clusterPlanBridge.ts +54 -1
- package/server/src/clusterPlanStore.ts +59 -0
- package/server/src/clusterPresets.ts +17 -3
- package/server/src/clusterProgress.ts +2 -2
- package/server/src/clusterSkills.ts +2 -2
- package/server/src/clusterSnapshots.ts +7 -1
- package/server/src/clusterStore.ts +192 -20
- package/server/src/clusterTurnOrigin.ts +19 -0
- package/server/src/connectionCatalog.ts +1 -0
- package/server/src/cursorUsage.ts +3 -3
- package/server/src/defaults/models.md +11 -14
- package/server/src/directorContinue.ts +309 -0
- package/server/src/directorContinueHook.ts +15 -0
- package/server/src/effortValidation.ts +31 -0
- package/server/src/fileAccessPolicy.ts +1 -0
- package/server/src/fileFetch.ts +47 -29
- package/server/src/geminiMembers.ts +116 -0
- package/server/src/git.ts +20 -22
- package/server/src/gitOtherWork.ts +5 -4
- package/server/src/gitSnapshots.ts +53 -5
- package/server/src/http/authLoginRoutes.ts +2 -2
- package/server/src/http/clusterRoutes.ts +314 -6
- package/server/src/http/diagnosticsRoutes.ts +9 -0
- package/server/src/http/fileWriteRoutes.ts +13 -5
- package/server/src/http/phoneUploadRoutes.ts +2 -1
- package/server/src/http/readConfinement.ts +30 -0
- package/server/src/http/recallRoutes.ts +1 -1
- package/server/src/http/router.ts +43 -10
- package/server/src/http/storageRoutes.ts +86 -7
- package/server/src/http/workflowDataRoutes.ts +20 -0
- package/server/src/http/writeConfinement.ts +10 -1
- package/server/src/index.ts +295 -18
- package/server/src/initialProviders.ts +1 -1
- package/server/src/manualCompactCapability.ts +1 -1
- package/server/src/mcp/clusterMcpLoopback.ts +2 -0
- package/server/src/mcp/clusterMcpServer.ts +3 -2
- package/server/src/mcp/clusterMcpTools.ts +83 -27
- package/server/src/mcp/mcpConfigWriter.ts +4 -0
- package/server/src/mcp/workerMailBridge.ts +99 -0
- package/server/src/planStore.ts +1 -0
- package/server/src/primitives/seedWorker.ts +19 -14
- package/server/src/project/taskLedger.ts +23 -0
- package/server/src/providers/{cursor → acp}/acpJsonRpc.ts +3 -3
- package/server/src/providers/acp/permissionGate.ts +47 -0
- package/server/src/providers/antigravity/index.ts +187 -0
- package/server/src/providers/antigravity/researchSignIn.ts +76 -0
- package/server/src/providers/antigravity/status.ts +24 -0
- package/server/src/providers/antigravity/usage.ts +29 -0
- package/server/src/providers/claude/researcherFence.ts +25 -0
- package/server/src/providers/claude-native/catalog.ts +5 -0
- package/server/src/providers/claude-native/index.ts +8 -1
- package/server/src/providers/claude-native/peerTools.ts +24 -4
- package/server/src/providers/claude-native/taskAdmission.ts +35 -9
- package/server/src/providers/claude-native/tools.ts +39 -19
- package/server/src/providers/claude-native/worker.ts +270 -52
- package/server/src/providers/claude-native/workerHelpers.ts +88 -5
- package/server/src/providers/claude.ts +160 -22
- package/server/src/providers/clusterTaskToolDefinitions.ts +2 -1
- package/server/src/providers/codex-appserver/heldCommands.ts +7 -3
- package/server/src/providers/codex-appserver/index.ts +87 -3
- package/server/src/providers/codex-appserver/lateCommands.ts +1 -0
- package/server/src/providers/codex-appserver/modelAvailability.ts +40 -0
- package/server/src/providers/codex-appserver/worker.ts +155 -25
- package/server/src/providers/codex.ts +1 -0
- package/server/src/providers/codexVersion.ts +9 -0
- package/server/src/providers/codexWebSearch.ts +1 -1
- package/server/src/providers/cursor/agentEnv.ts +103 -0
- package/server/src/providers/cursor/authState.ts +2 -1
- package/server/src/providers/cursor/authToken.ts +137 -31
- package/server/src/providers/cursor/catalog.ts +89 -1
- package/server/src/providers/cursor/chatSandbox.ts +20 -8
- package/server/src/providers/cursor/isolated.ts +282 -0
- package/server/src/providers/cursor/isolatedVersion.ts +33 -0
- package/server/src/providers/cursor/modelMap.ts +9 -5
- package/server/src/providers/cursor/print.ts +10 -8
- package/server/src/providers/cursor/worker.ts +8 -3
- package/server/src/providers/index.ts +10 -2
- package/server/src/providers/llamacpp.ts +3 -1
- package/server/src/providers/ollama.ts +30 -11
- package/server/src/providers/ollamaTools.ts +33 -27
- package/server/src/research/exportResults.ts +47 -0
- package/server/src/research/isolatedArtifact.ts +48 -0
- package/server/src/research/quickPromotion.ts +325 -0
- package/server/src/research/quickResearchChat.ts +147 -0
- package/server/src/research/researchClose.ts +340 -0
- package/server/src/research/researchCopy.ts +170 -0
- package/server/src/research/researchCreate.ts +306 -0
- package/server/src/research/researchDoctrine.ts +27 -0
- package/server/src/research/researchFolder.ts +202 -0
- package/server/src/research/researchLibrary.ts +306 -0
- package/server/src/research/researchRetry.ts +86 -0
- package/server/src/research/researchRounds.ts +891 -0
- package/server/src/research/researchState.ts +309 -0
- package/server/src/research/researchTools.ts +59 -0
- package/server/src/research/researchTripwires.ts +158 -0
- package/server/src/research/resultSelection.ts +127 -0
- package/server/src/research/savedQuickPromotion.ts +174 -0
- package/server/src/research/sendToProject.ts +220 -0
- package/server/src/server/broadcast.ts +39 -5
- package/server/src/server/updateCheck.ts +1 -0
- package/server/src/settings.ts +22 -5
- package/server/src/skillActivity.ts +35 -0
- package/server/src/smartPickup.ts +14 -4
- package/server/src/smartPickupAdapters.ts +3 -2
- package/server/src/smartPickupEvaluator.ts +3 -0
- package/server/src/smartPickupObserver.ts +38 -12
- package/server/src/storageActions.ts +6 -0
- package/server/src/storageOverview.ts +13 -6
- package/server/src/taskDispatcher.ts +3 -1
- package/server/src/toolboxWorkflow.ts +2 -1
- package/server/src/updateCheck.ts +31 -3
- package/server/src/workers/StreamParser.ts +20 -1
- package/server/src/workers/WorkerManager.ts +10 -1
- package/server/src/workers/antigravityIsolatedLaunch.ts +82 -0
- package/server/src/workers/checkedLinuxWorker.ts +212 -0
- package/server/src/workers/claudeAccessLease.ts +122 -0
- package/server/src/workers/claudeAccessSource.ts +20 -0
- package/server/src/workers/claudeIsolatedLaunch.ts +91 -0
- package/server/src/workers/cliResearcherDoctrine.ts +20 -0
- package/server/src/workers/codexAccessLease.ts +146 -0
- package/server/src/workers/codexIsolatedLaunch.ts +72 -0
- package/server/src/workers/codexIsolatedPolicy.ts +38 -0
- package/server/src/workers/cursorIsolatedLaunch.ts +159 -0
- package/server/src/workers/isolatedCliHome.ts +75 -0
- package/server/src/workers/limits.ts +1 -1
- package/server/src/workers/linuxWorkerSandbox.ts +193 -0
- package/server/src/workers/processKill.ts +34 -2
- package/server/src/workers/providerRuntimeDiscovery.ts +108 -0
- package/server/src/workers/researchSandboxAvailability.ts +68 -0
- package/server/src/workers/workerAccessPass.ts +96 -0
- package/server/src/workers/workerHiddenDirectories.ts +16 -0
- package/server/src/workers/workerSocketDirectory.ts +13 -0
- package/server/src/workers/workerWebProxy.ts +194 -0
- package/server/src/workflowMeta.ts +10 -3
- package/server/src/workflowStore.ts +39 -26
- package/server/src/workflows/purgeWorkflow.ts +18 -0
- package/server/src/workflows/types.ts +13 -0
- package/server/src/workspace.ts +8 -0
- package/server/src/ws/clusterHandlers.ts +302 -26
- package/server/src/ws/clusterMembers.ts +15 -5
- package/server/src/ws/compactHandlers.ts +37 -5
- package/server/src/ws/compareHandlers.ts +34 -11
- package/server/src/ws/handoffHandlers.ts +36 -3
- package/server/src/ws/operatorQuestionHandlers.ts +14 -2
- package/server/src/ws/taskLedgerHandlers.ts +1 -0
- package/server/src/ws/taskLifecycle.ts +58 -4
- package/server/src/ws/turnEngine.ts +265 -49
- package/server/src/ws/turnPrompt.ts +3 -1
- package/server/src/ws/updatePrimaryConfig.ts +10 -3
- package/server/src/ws/workflowHandlers.ts +15 -4
- package/shared/dist/clusterCoordination.d.ts +1 -0
- package/shared/dist/clusterCoordination.js +9 -1
- package/shared/dist/clusterRolePresets.js +13 -4
- package/shared/dist/index.d.ts +1 -0
- package/shared/dist/index.js +1 -0
- package/shared/dist/protocol/autoPickup.d.ts +7 -0
- package/shared/dist/protocol/autoPickup.js +22 -11
- package/shared/dist/protocol/chat.d.ts +1 -1
- package/shared/dist/protocol/checkpoints.d.ts +1 -0
- package/shared/dist/protocol/clientMessages.d.ts +18 -3
- package/shared/dist/protocol/clusters.d.ts +177 -4
- package/shared/dist/protocol/clusters.js +48 -2
- package/shared/dist/protocol/handoffs.d.ts +1 -0
- package/shared/dist/protocol/models.d.ts +6 -1
- package/shared/dist/protocol/models.js +4 -3
- package/shared/dist/protocol/providers.d.ts +3 -2
- package/shared/dist/protocol/providers.js +1 -1
- package/shared/dist/protocol/serverMessages.d.ts +28 -3
- package/shared/dist/protocol/settings.d.ts +4 -0
- package/shared/dist/protocol/settings.js +3 -1
- package/shared/dist/protocol/tasks.d.ts +42 -0
- package/shared/dist/protocol/tasks.js +17 -0
- package/shared/dist/protocol/workflows.d.ts +4 -0
- package/shared/dist/protocol/workflows.js +2 -0
- package/shared/dist/researchActivity.d.ts +4 -0
- package/shared/dist/researchActivity.js +29 -0
- package/shared/src/clusterCoordination.ts +12 -1
- package/shared/src/clusterRolePresets.ts +13 -4
- package/shared/src/index.ts +2 -0
- package/shared/src/protocol/autoPickup.ts +28 -11
- package/shared/src/protocol/chat.ts +1 -1
- package/shared/src/protocol/checkpoints.ts +1 -0
- package/shared/src/protocol/clientMessages.ts +14 -0
- package/shared/src/protocol/clusters.ts +231 -5
- package/shared/src/protocol/handoffs.ts +1 -0
- package/shared/src/protocol/models.ts +11 -4
- package/shared/src/protocol/providers.ts +6 -3
- package/shared/src/protocol/reviews.ts +2 -2
- package/shared/src/protocol/serverMessages.ts +28 -3
- package/shared/src/protocol/settings.ts +14 -1
- package/shared/src/protocol/tasks.ts +73 -0
- package/shared/src/protocol/workflows.ts +8 -0
- package/shared/src/researchActivity.ts +23 -0
- package/client/dist/assets/XtermView-Xk7_9JaH.js +0 -10
- package/client/dist/assets/index-BEFgrUJJ.css +0 -1
- package/client/dist/assets/index-C7WzZfsr.js +0 -614
- package/client/src/components/HeaderAuthChip.tsx +0 -207
- /package/server/dist/providers/{cursor → acp}/acpJsonRpc.d.ts +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { WorkSurfaceControls } from './workSurface/WorkSurfaceControls';
|
|
3
|
+
|
|
4
|
+
export interface ScratchCloseTarget { id: string; name: string }
|
|
5
|
+
interface Measurement { exists: boolean; bytes: number; measuredAt: number; keptItems: number; busy: boolean }
|
|
6
|
+
interface Row { target: ScratchCloseTarget; measurement?: Measurement; error?: string; selected: boolean }
|
|
7
|
+
|
|
8
|
+
function formatBytes(bytes: number): string {
|
|
9
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
10
|
+
const units = ['KiB', 'MiB', 'GiB', 'TiB'];
|
|
11
|
+
let n = bytes / 1024, i = 0;
|
|
12
|
+
while (n >= 1024 && i < units.length - 1) { n /= 1024; i++; }
|
|
13
|
+
return `${n.toFixed(1)} ${units[i]}`;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// All callers use the same close choice and the existing EMPTY SCRATCH route.
|
|
17
|
+
// A failed measurement never becomes zero and a failed action never closes.
|
|
18
|
+
export function ScratchCloseDialog({ targets, onCancel, onContinue, onStop }: {
|
|
19
|
+
targets: ScratchCloseTarget[]; onCancel: () => void; onContinue: () => void; onStop?: (workflowId: string) => void;
|
|
20
|
+
}) {
|
|
21
|
+
const [rows, setRows] = useState<Row[] | null>(null);
|
|
22
|
+
const [limit, setLimit] = useState(1024 ** 3);
|
|
23
|
+
const [error, setError] = useState('');
|
|
24
|
+
const [working, setWorking] = useState(false);
|
|
25
|
+
const surface = useRef<HTMLDivElement>(null);
|
|
26
|
+
const keepButton = useRef<HTMLButtonElement>(null);
|
|
27
|
+
const focused = useRef(false);
|
|
28
|
+
const continued = useRef(false);
|
|
29
|
+
const finish = useRef(onContinue); finish.current = onContinue;
|
|
30
|
+
const targetKey = targets.map((target) => target.id).join('|');
|
|
31
|
+
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
const previous = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
34
|
+
return () => { if (previous?.isConnected) previous.focus(); };
|
|
35
|
+
}, []);
|
|
36
|
+
|
|
37
|
+
async function measure() {
|
|
38
|
+
setWorking(true); setError('');
|
|
39
|
+
try {
|
|
40
|
+
const measured = await Promise.all(targets.map(async (target): Promise<Row> => {
|
|
41
|
+
try {
|
|
42
|
+
const response = await fetch(`/api/storage/scratch?${new URLSearchParams({ workflowId: target.id })}`);
|
|
43
|
+
const result = await response.json();
|
|
44
|
+
if (!response.ok) throw new Error(result.error || 'Scratch could not be measured.');
|
|
45
|
+
return { target, measurement: result as Measurement, selected: false };
|
|
46
|
+
} catch (err) { return { target, error: err instanceof Error ? err.message : 'Scratch could not be measured.', selected: false }; }
|
|
47
|
+
}));
|
|
48
|
+
setRows(measured);
|
|
49
|
+
if (measured.every((row) => row.measurement && !row.measurement.exists) && !continued.current) {
|
|
50
|
+
continued.current = true; finish.current();
|
|
51
|
+
}
|
|
52
|
+
} finally { setWorking(false); }
|
|
53
|
+
}
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
void measure();
|
|
56
|
+
void fetch('/api/storage/policy').then((r) => r.json()).then((policy) => {
|
|
57
|
+
if (typeof policy.scratchWarningGiB === 'number') setLimit(policy.scratchWarningGiB * 1024 ** 3);
|
|
58
|
+
}).catch(() => setError('The scratch warning setting could not be read.'));
|
|
59
|
+
// Targets are snapshotted by each caller at the time it opens the dialog.
|
|
60
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61
|
+
}, [targetKey]);
|
|
62
|
+
useEffect(() => { if (rows && !working && !focused.current) { focused.current = true; keepButton.current?.focus(); } }, [rows, working]);
|
|
63
|
+
|
|
64
|
+
async function close(empty: boolean) {
|
|
65
|
+
if (!rows || working) return;
|
|
66
|
+
setWorking(true); setError('');
|
|
67
|
+
try {
|
|
68
|
+
const selected = empty ? rows.filter((row) => targets.length === 1 ? row.measurement?.exists : row.selected) : [];
|
|
69
|
+
for (const row of selected) {
|
|
70
|
+
if (row.measurement?.busy && onStop) {
|
|
71
|
+
onStop(row.target.id);
|
|
72
|
+
let idle = false;
|
|
73
|
+
for (let attempt = 0; attempt < 20; attempt++) {
|
|
74
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
75
|
+
const status = await fetch(`/api/storage/scratch?${new URLSearchParams({ workflowId: row.target.id, busyOnly: '1' })}`);
|
|
76
|
+
if (!status.ok) throw new Error(`${row.target.name}: could not check whether the turn stopped.`);
|
|
77
|
+
if (!(await status.json() as Measurement).busy) { idle = true; break; }
|
|
78
|
+
}
|
|
79
|
+
if (!idle) throw new Error(`${row.target.name}: the turn is still running; scratch was not emptied.`);
|
|
80
|
+
}
|
|
81
|
+
const response = await fetch('/api/storage/empty-scratch', {
|
|
82
|
+
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
83
|
+
body: JSON.stringify({ workflowId: row.target.id, confirm: true, onClose: true }),
|
|
84
|
+
});
|
|
85
|
+
const result = await response.json();
|
|
86
|
+
if (!response.ok) throw new Error(`${row.target.name}: ${result.message || result.error || 'Scratch could not be emptied.'}`);
|
|
87
|
+
}
|
|
88
|
+
continued.current = true; onContinue();
|
|
89
|
+
} catch (err) { setError(err instanceof Error ? err.message : 'Scratch could not be emptied.'); }
|
|
90
|
+
finally { setWorking(false); }
|
|
91
|
+
}
|
|
92
|
+
return <div style={{ position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.6)', display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 2000 }}>
|
|
93
|
+
<div ref={surface} role="dialog" aria-modal="true" aria-labelledby="scratch-close-title" data-help="storage.empty-scratch" onKeyDown={(event) => {
|
|
94
|
+
if (event.key === 'Escape' && !working) { event.preventDefault(); onCancel(); }
|
|
95
|
+
if (event.key !== 'Tab') return;
|
|
96
|
+
const controls = [...(surface.current?.querySelectorAll<HTMLElement>('button:not(:disabled), input:not(:disabled), [tabindex="0"]') ?? [])].filter((el) => el.offsetParent !== null);
|
|
97
|
+
if (!controls.length) { event.preventDefault(); return; }
|
|
98
|
+
const index = controls.indexOf(document.activeElement as HTMLElement);
|
|
99
|
+
if ((event.shiftKey && index <= 0) || (!event.shiftKey && (index < 0 || index === controls.length - 1))) {
|
|
100
|
+
event.preventDefault(); controls[event.shiftKey ? controls.length - 1 : 0].focus();
|
|
101
|
+
}
|
|
102
|
+
}} style={{ background: 'var(--color-bg-elevated)', color: 'var(--color-fg)', border: '1px solid var(--color-border)', padding: 16, width: 'min(600px, calc(94vw / var(--ui-scale, 1)))', maxHeight: 'calc(90vh / var(--ui-scale, 1))', overflow: 'auto' }}>
|
|
103
|
+
<WorkSurfaceControls surface={surface} storageKey="scratch-close" />
|
|
104
|
+
<h2 id="scratch-close-title">{targets.length === 1 ? 'Empty scratch for this conversation?' : 'Empty scratch for selected members?'}</h2>
|
|
105
|
+
<p>Intermediate files may be needed if you resume it. Kept files stay.</p>
|
|
106
|
+
{!rows && <p>Measuring scratch...</p>}
|
|
107
|
+
{rows?.map((row, index) => <div key={row.target.id} style={{ padding: '6px 0' }}>
|
|
108
|
+
{targets.length > 1 && row.measurement?.exists && <input type="checkbox" style={{ width: 24, height: 24, verticalAlign: 'middle' }} checked={row.selected} aria-label={`Empty scratch for ${row.target.name}`} onChange={(e) => setRows((previous) => previous?.map((entry, i) => i === index ? { ...entry, selected: e.target.checked } : entry) ?? null)} />}
|
|
109
|
+
{' '}<strong>{row.target.name}</strong>: {row.error ? <span role="alert">Measurement failed: {row.error}</span> : row.measurement ? <>
|
|
110
|
+
{formatBytes(row.measurement.bytes)}; measured {new Date(row.measurement.measuredAt).toLocaleString()}; {row.measurement.keptItems} KEEP {row.measurement.keptItems === 1 ? 'mark' : 'marks'}.
|
|
111
|
+
{row.measurement.bytes > limit && <span role="status"> Scratch exceeds the warning limit.</span>}
|
|
112
|
+
</> : 'Measuring...'}
|
|
113
|
+
</div>)}
|
|
114
|
+
{rows && <p>Measurements may be stale if scratch changed. Use REFRESH to measure again.</p>}
|
|
115
|
+
{error && <p role="alert">{error}</p>}
|
|
116
|
+
<div style={{ display: 'flex', flexWrap: 'wrap', gap: 8, marginTop: 12 }}>
|
|
117
|
+
<button ref={keepButton} style={{ minHeight: 40 }} type="button" disabled={working || !rows} onClick={() => void close(false)}>KEEP SCRATCH</button>
|
|
118
|
+
<button style={{ minHeight: 40 }} type="button" disabled={working || !rows || !rows.some((row) => targets.length === 1 ? row.measurement?.exists : row.selected)} onClick={() => void close(true)}>EMPTY SCRATCH AND CLOSE</button>
|
|
119
|
+
<button style={{ minHeight: 40 }} type="button" disabled={working} onClick={() => void measure()}>REFRESH</button>
|
|
120
|
+
<button style={{ minHeight: 40 }} type="button" disabled={working} onClick={onCancel}>CANCEL</button>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
</div>;
|
|
124
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { codexProfileHomeLabel } from '../utils/codexAccountHome';
|
|
1
2
|
import { NativeSubagentDefaults } from './NativeSubagentControls';
|
|
2
3
|
import { ProvidersPopover } from './ProvidersPopover';
|
|
3
4
|
import { PreviewPortsSection } from './settings/PreviewPortsSection';
|
|
@@ -14,14 +15,17 @@ import { SettingsLayout, SettingsSection } from './settings/SettingsLayout';
|
|
|
14
15
|
import { MediaAccessSettings } from './MediaAccessSettings';
|
|
15
16
|
import { VoiceSetupSettings } from './VoiceSetupSettings';
|
|
16
17
|
import { DeepSeekControls } from './DeepSeekControls';
|
|
17
|
-
import { useEffect, useRef, useState } from 'react';
|
|
18
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
18
19
|
import { useAppStore } from '../stores/appStore';
|
|
19
20
|
import { useStartupStore } from '../stores/startupStore';
|
|
21
|
+
import { useRecallStore } from '../stores/recallStore';
|
|
20
22
|
import { ClaudeNativeAuthRow } from './ClaudeNativeAuthRow';
|
|
21
|
-
import type { AuthStatus, AuthStatusByProvider, AuthLoginTarget, AuthLoginResult, ArcoSettings, ProviderName, ModelName, EffortLevel, ProviderAccountProfile, DiscoveredEndpoint, EndpointDiscoverResponse } from '@arco/shared';
|
|
23
|
+
import type { AuthStatus, AuthStatusByProvider, AuthLoginTarget, LoginSessionTarget, AuthLoginResult, ArcoSettings, ProviderName, ModelName, EffortLevel, ProviderAccountProfile, DiscoveredEndpoint, EndpointDiscoverResponse } from '@arco/shared';
|
|
22
24
|
import { activeProjectCwd } from '../utils/activeProject';
|
|
23
25
|
import { RunAsPicker, type RunAsSelection } from './RunAsPicker';
|
|
24
26
|
import { LoginCommand } from './LoginCommand';
|
|
27
|
+
import { LoginFlow } from './LoginFlow';
|
|
28
|
+
import { checkProviderStatus } from '../utils/providerStatusCheck';
|
|
25
29
|
import { THEME_REGISTRY, DEFAULT_THEME_ID } from '../themes/registry';
|
|
26
30
|
import type { Theme } from '../themes/types';
|
|
27
31
|
import { FONT_PACKS } from '../themes/fontPacks';
|
|
@@ -45,6 +49,10 @@ interface Props {
|
|
|
45
49
|
onClose: () => void;
|
|
46
50
|
}
|
|
47
51
|
|
|
52
|
+
function loginStatus(provider: AuthLoginTarget, status: AuthStatus | null | undefined): AuthStatus | null | undefined {
|
|
53
|
+
return provider === 'codex' ? status?.defaultAccount ?? status : status;
|
|
54
|
+
}
|
|
55
|
+
|
|
48
56
|
export function SettingsPanel({ onClose }: Props) {
|
|
49
57
|
const authStatus = useAppStore((s) => s.authStatus);
|
|
50
58
|
const setAuthStatus = useAppStore((s) => s.setAuthStatus);
|
|
@@ -87,7 +95,9 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
87
95
|
setTextBrightnessDraft(settings?.textBrightness ?? DEFAULT_TEXT_BRIGHTNESS);
|
|
88
96
|
}, [settings?.textBrightness]);
|
|
89
97
|
const messageBoxSize = useMessageBoxSize();
|
|
90
|
-
const layoutMode = useLayout()
|
|
98
|
+
const { mode: layoutMode, phone } = useLayout();
|
|
99
|
+
const summarizeOnClose = useRecallStore((s) => s.summarizeOnClose);
|
|
100
|
+
const setSummarizeOnClose = useRecallStore((s) => s.setSummarizeOnClose);
|
|
91
101
|
const saveUiScale = async (uiScale: number) => {
|
|
92
102
|
if (!settings) return;
|
|
93
103
|
const previous = settings;
|
|
@@ -105,9 +115,24 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
105
115
|
const capabilities = useAppStore((s) => s.capabilities);
|
|
106
116
|
const ollamaLive = useAppStore((s) => s.ollamaLive);
|
|
107
117
|
const llamacppLive = useAppStore((s) => s.llamacppLive);
|
|
108
|
-
const [loginPending, setLoginPending] = useState<
|
|
118
|
+
const [loginPending, setLoginPending] = useState<LoginSessionTarget | null>(null);
|
|
119
|
+
// docs/RESEARCH.md "Gemini researchers": the separate research sign-in, shown when the sandbox can run Gemini.
|
|
120
|
+
const [geminiResearch, setGeminiResearch] = useState<{ available: boolean; signIn?: 'missing' | 'ready' | 'expired' } | null>(null);
|
|
121
|
+
const refreshGeminiResearch = useCallback(async () => {
|
|
122
|
+
try {
|
|
123
|
+
const response = await fetch('/api/diagnostics/research-sandbox');
|
|
124
|
+
if (!response.ok) return;
|
|
125
|
+
const result = await response.json() as { gemini?: boolean; geminiSignIn?: 'missing' | 'ready' | 'expired' };
|
|
126
|
+
setGeminiResearch({ available: result.gemini === true, signIn: result.geminiSignIn });
|
|
127
|
+
} catch { /* the row stays hidden */ }
|
|
128
|
+
}, []);
|
|
129
|
+
useEffect(() => { void refreshGeminiResearch(); }, [refreshGeminiResearch]);
|
|
109
130
|
const [manualHint, setManualHint] = useState<string | null>(null);
|
|
110
131
|
const [loginCommand, setLoginCommand] = useState<string | null>(null);
|
|
132
|
+
// Providers whose sign-in runs inside Arco (the Connections flow) show it at
|
|
133
|
+
// their own row instead of a command at the bottom of the section.
|
|
134
|
+
const [inAppLogin, setInAppLogin] = useState<AuthLoginResult | null>(null);
|
|
135
|
+
const [inAppNote, setInAppNote] = useState<string | null>(null);
|
|
111
136
|
const [savingProvider, setSavingProvider] = useState<ProviderName | null>(null);
|
|
112
137
|
const pollRef = useRef<ReturnType<typeof setInterval> | null>(null);
|
|
113
138
|
|
|
@@ -117,6 +142,8 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
117
142
|
const [operatorSaving, setOperatorSaving] = useState(false);
|
|
118
143
|
const [ollamaBaseDraft, setOllamaBaseDraft] = useState<string>(settings?.ollama?.baseUrl ?? '');
|
|
119
144
|
const [ollamaBaseSaving, setOllamaBaseSaving] = useState(false);
|
|
145
|
+
const [ollamaSmallSaving, setOllamaSmallSaving] = useState(false);
|
|
146
|
+
const [ollamaSmallError, setOllamaSmallError] = useState('');
|
|
120
147
|
const [ollamaUtilitySaving, setOllamaUtilitySaving] = useState(false);
|
|
121
148
|
// Free-text model + host drafts: the utility model may live on a REMOTE host
|
|
122
149
|
// (not in the local /api/tags list), so a dropdown can't offer it — the
|
|
@@ -184,6 +211,7 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
184
211
|
strata: settings?.enabledProviders.strata !== false,
|
|
185
212
|
deepseek: settings?.enabledProviders.deepseek !== false,
|
|
186
213
|
cursor: settings?.enabledProviders.cursor !== false,
|
|
214
|
+
'antigravity-cli': settings?.enabledProviders['antigravity-cli'] === true,
|
|
187
215
|
[provider]: !current,
|
|
188
216
|
},
|
|
189
217
|
};
|
|
@@ -232,6 +260,15 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
232
260
|
}
|
|
233
261
|
};
|
|
234
262
|
|
|
263
|
+
const setOllamaSmallContext = async (enabled: boolean) => {
|
|
264
|
+
setOllamaSmallSaving(true); setOllamaSmallError('');
|
|
265
|
+
try {
|
|
266
|
+
const response = await fetch('/api/settings', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ ollama: { smallContextTools: enabled } }) });
|
|
267
|
+
setSettings(await readSavedSettings(response));
|
|
268
|
+
} catch { setOllamaSmallError('Could not save the Ollama small-context setting.'); }
|
|
269
|
+
finally { setOllamaSmallSaving(false); }
|
|
270
|
+
};
|
|
271
|
+
|
|
235
272
|
// M7/M8 — global compaction utility model (settings.ollama.utility.model).
|
|
236
273
|
// This is the small Ollama model that WRITES auto-compaction summaries; with
|
|
237
274
|
// none set, compaction falls back to a deterministic text digest. `null`
|
|
@@ -369,21 +406,28 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
369
406
|
const [catalogSaving, setCatalogSaving] = useState(false);
|
|
370
407
|
const [catalogError, setCatalogError] = useState<string | null>(null);
|
|
371
408
|
|
|
409
|
+
const catalogLoadId = useRef(0);
|
|
372
410
|
const openCatalogEditor = async () => {
|
|
411
|
+
// Every open reads the file again and SAVE stays off until that read
|
|
412
|
+
// succeeds, so a failed or in-flight load can never arm it.
|
|
413
|
+
const id = ++catalogLoadId.current;
|
|
373
414
|
setCatalogOpen(true);
|
|
374
415
|
setCatalogError(null);
|
|
375
|
-
|
|
416
|
+
setCatalogLoaded(false);
|
|
376
417
|
try {
|
|
377
418
|
const res = await fetch('/api/catalog');
|
|
378
|
-
const data = await res.json() as { contents
|
|
379
|
-
|
|
419
|
+
const data = await res.json() as { contents?: unknown; error?: string };
|
|
420
|
+
if (!res.ok || typeof data.contents !== 'string') throw new Error(data.error ?? `HTTP ${res.status}`);
|
|
421
|
+
if (id !== catalogLoadId.current) return;
|
|
422
|
+
setCatalogDraft(data.contents);
|
|
380
423
|
setCatalogLoaded(true);
|
|
381
424
|
} catch (err) {
|
|
382
|
-
setCatalogError(err instanceof Error ? err.message : String(err));
|
|
425
|
+
if (id === catalogLoadId.current) setCatalogError(err instanceof Error ? err.message : String(err));
|
|
383
426
|
}
|
|
384
427
|
};
|
|
385
428
|
|
|
386
429
|
const saveCatalog = async () => {
|
|
430
|
+
if (!catalogLoaded) return;
|
|
387
431
|
setCatalogSaving(true);
|
|
388
432
|
setCatalogError(null);
|
|
389
433
|
try {
|
|
@@ -404,17 +448,13 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
404
448
|
}
|
|
405
449
|
};
|
|
406
450
|
|
|
407
|
-
const cancelCatalogEdit =
|
|
408
|
-
//
|
|
451
|
+
const cancelCatalogEdit = () => {
|
|
452
|
+
// Discard the draft; the next open reads the file again.
|
|
453
|
+
catalogLoadId.current++;
|
|
409
454
|
setCatalogOpen(false);
|
|
410
455
|
setCatalogError(null);
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
const res = await fetch('/api/catalog');
|
|
414
|
-
const data = await res.json() as { contents: string };
|
|
415
|
-
setCatalogDraft(data.contents ?? '');
|
|
416
|
-
} catch { /* leave stale draft: edit button will re-read */ }
|
|
417
|
-
}
|
|
456
|
+
setCatalogLoaded(false);
|
|
457
|
+
setCatalogDraft('');
|
|
418
458
|
};
|
|
419
459
|
|
|
420
460
|
const refresh = async () => {
|
|
@@ -437,22 +477,36 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
437
477
|
return () => { if (pollRef.current) clearInterval(pollRef.current); };
|
|
438
478
|
}, [loginPending]);
|
|
439
479
|
|
|
480
|
+
// A finished in-app sign-in gives way to the row's LIVE state.
|
|
481
|
+
useEffect(() => {
|
|
482
|
+
const provider = inAppLogin?.session?.provider;
|
|
483
|
+
if (provider && provider !== 'antigravity-cli' && provider !== 'gemini-research' && loginStatus(provider, authStatus?.[provider])?.loggedIn) setInAppLogin(null);
|
|
484
|
+
}, [authStatus, inAppLogin]);
|
|
485
|
+
|
|
440
486
|
// Clear loginPending once the target provider flips to loggedIn.
|
|
441
487
|
useEffect(() => {
|
|
442
488
|
if (!loginPending || !authStatus) return;
|
|
443
|
-
if (authStatus[loginPending]?.loggedIn) {
|
|
489
|
+
if (loginPending !== 'antigravity-cli' && loginPending !== 'gemini-research' && loginStatus(loginPending, authStatus[loginPending])?.loggedIn) {
|
|
444
490
|
setLoginPending(null);
|
|
445
491
|
}
|
|
446
492
|
}, [authStatus, loginPending]);
|
|
447
493
|
|
|
448
|
-
const startLogin = async (provider:
|
|
494
|
+
const startLogin = async (provider: LoginSessionTarget) => {
|
|
449
495
|
setLoginPending(provider);
|
|
450
496
|
setManualHint(null);
|
|
451
497
|
setLoginCommand(null);
|
|
498
|
+
setInAppLogin(null);
|
|
499
|
+
setInAppNote(null);
|
|
500
|
+
const inApp = provider === 'codex' || provider === 'cursor' || provider === 'antigravity-cli' || provider === 'gemini-research';
|
|
452
501
|
try {
|
|
453
|
-
const res = await fetch(`/api/auth-login?provider=${provider}`, { method: 'POST' });
|
|
502
|
+
const res = await fetch(`/api/auth-login?provider=${provider}${inApp ? '&inApp=1' : ''}`, { method: 'POST' });
|
|
454
503
|
const data = (await res.json()) as AuthLoginResult;
|
|
455
|
-
if (
|
|
504
|
+
if (!res.ok) throw new Error();
|
|
505
|
+
if (inApp && data.session) {
|
|
506
|
+
// The flow at the row shows the link, progress and any failure.
|
|
507
|
+
setInAppLogin(data);
|
|
508
|
+
setLoginPending(null);
|
|
509
|
+
} else if (data.command) {
|
|
456
510
|
// Keep loginPending so the fast poll flips the row LIVE when it lands.
|
|
457
511
|
setLoginCommand(data.command);
|
|
458
512
|
setManualHint(data.manual ?? null);
|
|
@@ -466,6 +520,33 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
466
520
|
}
|
|
467
521
|
};
|
|
468
522
|
|
|
523
|
+
// After an in-app sign-in, run the same explicit check as Connections and
|
|
524
|
+
// publish it to the shared status, so the top bar and the pickers update now.
|
|
525
|
+
const finishInAppLogin = async (provider: LoginSessionTarget) => {
|
|
526
|
+
if (provider === 'gemini-research') {
|
|
527
|
+
setGeminiResearch(previous => previous ? { ...previous, signIn: 'ready' } : previous);
|
|
528
|
+
setInAppLogin(null); setInAppNote(null);
|
|
529
|
+
await refreshGeminiResearch();
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
if (provider === 'antigravity-cli') {
|
|
533
|
+
const current = useAppStore.getState().authStatus;
|
|
534
|
+
if (current) setAuthStatus({ ...current, 'antigravity-cli': { ...current['antigravity-cli'], loggedIn: true, probeFailed: false, signInRejected: false, error: undefined } });
|
|
535
|
+
setInAppLogin(null); setInAppNote(null);
|
|
536
|
+
void checkProviderStatus(provider);
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
const status = await checkProviderStatus(provider);
|
|
540
|
+
const checkedStatus = loginStatus(provider, status);
|
|
541
|
+
if (!checkedStatus) {
|
|
542
|
+
setInAppNote('Sign-in finished, but Arco could not check the status. Press LOG IN to try again, or use Check connection in Connections.');
|
|
543
|
+
} else if (!checkedStatus.loggedIn) {
|
|
544
|
+
setInAppNote(checkedStatus.error ? `Sign-in finished, but the status still reads not signed in: ${checkedStatus.error}` : 'Sign-in finished, but the status still reads not signed in. Press LOG IN to try again.');
|
|
545
|
+
} else {
|
|
546
|
+
setInAppNote(null);
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
|
|
469
550
|
const phosphorActive = THEME_REGISTRY[activeThemeId]?.family === 'phosphor';
|
|
470
551
|
const llamacppReady = settings?.enabledProviders?.llamacpp !== false && !!authStatus?.llamacpp?.loggedIn;
|
|
471
552
|
|
|
@@ -734,11 +815,12 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
734
815
|
ENABLED PROVIDERS
|
|
735
816
|
</div>
|
|
736
817
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '6px', marginBottom: '14px' }}>
|
|
737
|
-
{(['claude', 'codex', 'cursor', 'ollama', 'llamacpp', 'lmstudio', 'strata', 'deepseek'] as ProviderName[]).map((p) => {
|
|
818
|
+
{(['claude', 'codex', 'cursor', 'antigravity-cli', 'ollama', 'llamacpp', 'lmstudio', 'strata', 'deepseek'] as ProviderName[]).map((p) => {
|
|
738
819
|
const enabled = settings?.enabledProviders[p] !== false;
|
|
739
820
|
const label = p === 'claude' ? 'CLAUDE'
|
|
740
821
|
: p === 'codex' ? 'CODEX'
|
|
741
822
|
: p === 'cursor' ? 'CURSOR'
|
|
823
|
+
: p === 'antigravity-cli' ? 'ANTIGRAVITY CLI'
|
|
742
824
|
: p === 'ollama' ? 'OLLAMA'
|
|
743
825
|
: p === 'deepseek' ? 'XOLOTL' : p === 'strata' ? 'STRATA' : p === 'lmstudio' ? 'LM STUDIO'
|
|
744
826
|
: 'LLAMA.CPP';
|
|
@@ -748,6 +830,7 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
748
830
|
? 'Local worker provider: manual model registry, vision-capable'
|
|
749
831
|
: p === 'deepseek' ? 'DeepSeek V4.1 Flash · Exact / Light · local inference' : p === 'strata' ? 'Standalone Qwen inference: web and image input' : p === 'lmstudio'
|
|
750
832
|
? 'Local worker provider: OpenAI-compatible endpoint (default :1234)'
|
|
833
|
+
: p === 'antigravity-cli' ? 'Interactive agent tabs through agy ACP'
|
|
751
834
|
: p === 'cursor'
|
|
752
835
|
? 'ACP Agent; print Chat/review: live model catalog (cursor-agent login)'
|
|
753
836
|
: p === 'codex'
|
|
@@ -821,6 +904,12 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
821
904
|
/>
|
|
822
905
|
|
|
823
906
|
</div>
|
|
907
|
+
<ProviderRow label="CODEX (OPENAI)" provider="codex" status={loginStatus('codex', authStatus?.codex) ?? undefined} loginPending={loginPending === 'codex'} onLogin={() => startLogin('codex')} />
|
|
908
|
+
{inAppLogin?.session?.provider === 'codex' && (
|
|
909
|
+
<div data-testid="settings-codex-login" style={{ padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px' }}>
|
|
910
|
+
<LoginFlow result={inAppLogin} onRestart={() => void startLogin('codex')} onComplete={() => { void finishInAppLogin('codex'); }} />
|
|
911
|
+
</div>
|
|
912
|
+
)}
|
|
824
913
|
<CodexProfilesSection />
|
|
825
914
|
|
|
826
915
|
|
|
@@ -831,7 +920,54 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
831
920
|
loginPending={loginPending === 'cursor'}
|
|
832
921
|
onLogin={() => startLogin('cursor')}
|
|
833
922
|
/>
|
|
923
|
+
{inAppLogin?.session?.provider === 'cursor' && (
|
|
924
|
+
<div data-testid="settings-cursor-login" style={{ padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px' }}>
|
|
925
|
+
<LoginFlow
|
|
926
|
+
result={inAppLogin}
|
|
927
|
+
onRestart={() => void startLogin('cursor')}
|
|
928
|
+
onComplete={() => { void finishInAppLogin('cursor'); }}
|
|
929
|
+
/>
|
|
930
|
+
</div>
|
|
931
|
+
)}
|
|
932
|
+
<ProviderRow
|
|
933
|
+
label="ANTIGRAVITY CLI"
|
|
934
|
+
provider="antigravity-cli"
|
|
935
|
+
status={authStatus?.['antigravity-cli']}
|
|
936
|
+
loginPending={loginPending === 'antigravity-cli'}
|
|
937
|
+
onLogin={() => startLogin('antigravity-cli')}
|
|
938
|
+
/>
|
|
939
|
+
{inAppLogin?.session?.provider === 'antigravity-cli' && (
|
|
940
|
+
<div data-testid="settings-antigravity-login" style={{ padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px' }}>
|
|
941
|
+
<LoginFlow result={inAppLogin} onRestart={() => void startLogin('antigravity-cli')} onComplete={() => { void finishInAppLogin('antigravity-cli'); }} />
|
|
942
|
+
</div>
|
|
943
|
+
)}
|
|
944
|
+
{geminiResearch?.available && settings?.enabledProviders['antigravity-cli'] === true && (
|
|
945
|
+
<div data-help="settings.gemini-research" data-testid="settings-gemini-research">
|
|
946
|
+
<ProviderRow
|
|
947
|
+
label="GEMINI FOR RESEARCH"
|
|
948
|
+
status={{ loggedIn: geminiResearch.signIn === 'ready', ...(geminiResearch.signIn === 'expired' ? { error: 'sign-in expired; sign in again' } : {}) }}
|
|
949
|
+
loginPending={loginPending === 'gemini-research'}
|
|
950
|
+
onLogin={() => startLogin('gemini-research')}
|
|
951
|
+
/>
|
|
952
|
+
</div>
|
|
953
|
+
)}
|
|
954
|
+
{inAppLogin?.session?.provider === 'gemini-research' && (
|
|
955
|
+
<div data-testid="settings-gemini-research-login" style={{ padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px' }}>
|
|
956
|
+
<LoginFlow result={inAppLogin} onRestart={() => void startLogin('gemini-research')} onComplete={() => { void finishInAppLogin('gemini-research'); }} />
|
|
957
|
+
</div>
|
|
958
|
+
)}
|
|
959
|
+
{inAppNote && (
|
|
960
|
+
<div role="alert" data-testid="settings-cursor-login-note" style={{ fontSize: '11px', color: 'var(--color-warning)', fontFamily: 'var(--font-body)', padding: '0 14px' }}>
|
|
961
|
+
{inAppNote}
|
|
962
|
+
</div>
|
|
963
|
+
)}
|
|
834
964
|
<div id="connection-advanced-ollama" style={{ display: 'flex', flexDirection: 'column', gap: '4px', padding: '10px 14px', border: '1px solid var(--color-border-hairline)', borderRadius: '4px', background: 'var(--color-bg-sunken)' }}>
|
|
965
|
+
<label data-help="settings.ollama-small-context" style={{ display: 'flex', alignItems: 'center', gap: 8, minHeight: 44 }}>
|
|
966
|
+
<input type="checkbox" disabled={ollamaSmallSaving} checked={settings?.ollama?.smallContextTools === true} onChange={e => void setOllamaSmallContext(e.target.checked)} />
|
|
967
|
+
Small-context tools for Ollama cluster members
|
|
968
|
+
</label>
|
|
969
|
+
<p style={{ margin: '0 0 8px', color: 'var(--color-fg-muted)' }}>Keeps file, shell, mailbox and plan reading. WebSearch, WebFetch, board changes and plan changes are unavailable to these members while this is on.</p>
|
|
970
|
+
{ollamaSmallError && <p role="alert">{ollamaSmallError}</p>}
|
|
835
971
|
<label htmlFor="ollama-endpoint" className="display-font" style={{ fontSize: '10px', letterSpacing: '2px', color: 'var(--color-accent-primary-dim)' }}>
|
|
836
972
|
OLLAMA ENDPOINT
|
|
837
973
|
</label>
|
|
@@ -1158,6 +1294,10 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
1158
1294
|
|
|
1159
1295
|
<SettingsSection id="utility-agent">
|
|
1160
1296
|
<UtilityAgentPicker />
|
|
1297
|
+
{phone && <label data-help="recall.summarize-on-close" style={{ display: 'flex', alignItems: 'center', gap: 8, minHeight: 44 }}>
|
|
1298
|
+
<input type="checkbox" checked={summarizeOnClose} onChange={(e) => setSummarizeOnClose(e.target.checked)} />
|
|
1299
|
+
Summarize on tab close
|
|
1300
|
+
</label>}
|
|
1161
1301
|
</SettingsSection>
|
|
1162
1302
|
|
|
1163
1303
|
<SettingsSection id="notification-channels">
|
|
@@ -1204,10 +1344,8 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
1204
1344
|
</SettingsSection>
|
|
1205
1345
|
|
|
1206
1346
|
{/* Slot 12 — model catalog editor. Inline expandable section instead
|
|
1207
|
-
of a separate modal; operator-edited models.md
|
|
1208
|
-
|
|
1209
|
-
"operator-configurable catalog overrides surfaced in UI" item
|
|
1210
|
-
without adding another header button. */}
|
|
1347
|
+
of a separate modal; operator-edited models.md is a free-form notes file that no turn reads;
|
|
1348
|
+
the editor is kept inline instead of in a separate modal. */}
|
|
1211
1349
|
<SettingsSection id="catalog">
|
|
1212
1350
|
<div data-help="settings.catalog">
|
|
1213
1351
|
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '8px' }}>
|
|
@@ -1235,7 +1373,7 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
1235
1373
|
</div>
|
|
1236
1374
|
{!catalogOpen && (
|
|
1237
1375
|
<div style={{ fontSize: '10px', color: 'var(--color-fg-muted)', fontFamily: 'var(--font-body)', lineHeight: '1.6' }}>
|
|
1238
|
-
~/.arco/models.md:
|
|
1376
|
+
~/.arco/models.md: free-form notes file. Arco does not read it into any turn.
|
|
1239
1377
|
</div>
|
|
1240
1378
|
)}
|
|
1241
1379
|
{catalogOpen && (
|
|
@@ -1268,7 +1406,7 @@ export function SettingsPanel({ onClose }: Props) {
|
|
|
1268
1406
|
<div style={{ display: 'flex', gap: '8px' }}>
|
|
1269
1407
|
<button
|
|
1270
1408
|
onClick={saveCatalog}
|
|
1271
|
-
disabled={catalogSaving}
|
|
1409
|
+
disabled={catalogSaving || !catalogLoaded}
|
|
1272
1410
|
className="display-font"
|
|
1273
1411
|
style={{
|
|
1274
1412
|
flex: 1,
|
|
@@ -1887,7 +2025,7 @@ function ProjectTrustSection({ activeCwd }: { activeCwd: string }) {
|
|
|
1887
2025
|
|
|
1888
2026
|
interface ProviderRowProps {
|
|
1889
2027
|
label: string;
|
|
1890
|
-
provider?:
|
|
2028
|
+
provider?: AuthLoginTarget;
|
|
1891
2029
|
status?: AuthStatus;
|
|
1892
2030
|
loginPending: boolean;
|
|
1893
2031
|
onLogin: () => void;
|
|
@@ -1912,7 +2050,6 @@ function defaultCodexProfileDraft(n: number): CodexProfileDraft {
|
|
|
1912
2050
|
id,
|
|
1913
2051
|
label,
|
|
1914
2052
|
shortLabel,
|
|
1915
|
-
codexHome: `~/.arco/provider-accounts/codex-${id}`,
|
|
1916
2053
|
authBrowser: { command: '' },
|
|
1917
2054
|
authArgsText: '',
|
|
1918
2055
|
};
|
|
@@ -1950,23 +2087,17 @@ function CodexProfilesSection() {
|
|
|
1950
2087
|
const authStatus = useAppStore((s) => s.authStatus);
|
|
1951
2088
|
const setAuthStatus = useAppStore((s) => s.setAuthStatus);
|
|
1952
2089
|
const [drafts, setDrafts] = useState<CodexProfileDraft[]>([]);
|
|
2090
|
+
const [expanded, setExpanded] = useState(false);
|
|
2091
|
+
const initialized = useRef(false);
|
|
1953
2092
|
const [saving, setSaving] = useState(false);
|
|
1954
2093
|
const [loginPending, setLoginPending] = useState<string | null>(null);
|
|
1955
2094
|
const [error, setError] = useState<string | null>(null);
|
|
1956
2095
|
const [loginCommand, setLoginCommand] = useState<{ id: string; command: string } | null>(null);
|
|
1957
2096
|
const [editingIds, setEditingIds] = useState<Set<string>>(new Set());
|
|
1958
2097
|
const savedProfileIds = new Set((settings?.providerAccounts?.codex ?? []).map((p) => p.id));
|
|
1959
|
-
const providerLoggedIn = authStatus?.codex?.loggedIn === true;
|
|
1960
|
-
const profileCount = settings?.providerAccounts?.codex?.length ?? 0;
|
|
1961
|
-
const liveProfileCount = authStatus?.codex?.accountStatuses?.filter((s) => s.loggedIn).length ?? 0;
|
|
1962
|
-
const codexSubline = profileCount > 0
|
|
1963
|
-
? `${profileCount} profile${profileCount === 1 ? '' : 's'} configured · ${liveProfileCount} live`
|
|
1964
|
-
: providerLoggedIn
|
|
1965
|
-
? (authStatus?.codex?.email ? `${authStatus.codex.email} · default Codex auth` : 'default Codex auth live')
|
|
1966
|
-
: (authStatus?.codex?.error || 'not authenticated');
|
|
1967
|
-
|
|
1968
2098
|
useEffect(() => {
|
|
1969
2099
|
const profiles = settings?.providerAccounts?.codex ?? [];
|
|
2100
|
+
if (settings && !initialized.current) { initialized.current = true; setExpanded(profiles.length > 0); }
|
|
1970
2101
|
setDrafts(profiles.map((p) => ({
|
|
1971
2102
|
...p,
|
|
1972
2103
|
authArgsText: p.authBrowser?.args?.join(' ') ?? '',
|
|
@@ -2057,30 +2188,10 @@ function CodexProfilesSection() {
|
|
|
2057
2188
|
};
|
|
2058
2189
|
|
|
2059
2190
|
return (
|
|
2060
|
-
<div
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
borderRadius: '4px',
|
|
2065
|
-
padding: '12px 14px',
|
|
2066
|
-
background: providerLoggedIn ? 'var(--color-accent-primary-a05)' : 'var(--color-bg-sunken)',
|
|
2067
|
-
}}
|
|
2068
|
-
>
|
|
2069
|
-
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '10px', marginBottom: '10px' }}>
|
|
2070
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '2px', minWidth: 0 }}>
|
|
2071
|
-
<span className="display-font" style={{ fontSize: '12px', letterSpacing: '2px', color: providerLoggedIn ? 'var(--color-accent-primary)' : 'var(--color-fg-muted)' }}>
|
|
2072
|
-
CODEX (OPENAI)
|
|
2073
|
-
</span>
|
|
2074
|
-
<span style={{ fontSize: '10px', color: providerLoggedIn ? 'var(--color-accent-primary-dim)' : 'var(--color-warning-dim)', fontFamily: 'var(--font-body)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
|
|
2075
|
-
{codexSubline}
|
|
2076
|
-
</span>
|
|
2077
|
-
</div>
|
|
2078
|
-
<div style={{ display: 'flex', gap: '6px' }}>
|
|
2079
|
-
{providerLoggedIn && (
|
|
2080
|
-
<span className="display-font" style={{ fontSize: '10px', letterSpacing: '1px', color: 'var(--color-accent-primary)', padding: '4px 10px', border: '1px solid var(--color-accent-primary)', borderRadius: '3px' }}>
|
|
2081
|
-
LIVE
|
|
2082
|
-
</span>
|
|
2083
|
-
)}
|
|
2191
|
+
<div data-help="settings.codex-profiles" style={{ border: '1px solid var(--color-border-hairline)', borderRadius: '4px', padding: '12px 14px', background: 'var(--color-bg-sunken)' }}>
|
|
2192
|
+
<button type="button" aria-expanded={expanded} onClick={() => setExpanded(!expanded)} className="display-font" style={{ background: 'transparent', border: 0, color: 'var(--color-accent-primary)', cursor: 'pointer', padding: '4px 0', fontSize: '11px', letterSpacing: '1px' }}>MORE ACCOUNTS</button>
|
|
2193
|
+
{expanded && <>
|
|
2194
|
+
<div style={{ display: 'flex', justifyContent: 'flex-end', gap: '6px', marginBottom: '10px' }}>
|
|
2084
2195
|
<button
|
|
2085
2196
|
onClick={() => setDrafts((prev) => [...prev, defaultCodexProfileDraft(prev.length + 1)])}
|
|
2086
2197
|
className="display-font"
|
|
@@ -2096,14 +2207,13 @@ function CodexProfilesSection() {
|
|
|
2096
2207
|
>
|
|
2097
2208
|
{saving ? 'SAVING...' : 'SAVE'}
|
|
2098
2209
|
</button>
|
|
2099
|
-
</div>
|
|
2100
2210
|
</div>
|
|
2101
2211
|
<div className="display-font" style={{ fontSize: '9px', letterSpacing: '1.5px', color: 'var(--color-accent-primary-dim)', marginBottom: '8px' }}>
|
|
2102
2212
|
PROFILES
|
|
2103
2213
|
</div>
|
|
2104
2214
|
{drafts.length === 0 && (
|
|
2105
2215
|
<div style={{ fontSize: '10px', color: 'var(--color-fg-muted)', fontFamily: 'var(--font-body)', marginBottom: '8px' }}>
|
|
2106
|
-
Add
|
|
2216
|
+
Add profiles for separate OpenAI accounts and route Codex tabs through their own CODEX_HOME directories.
|
|
2107
2217
|
</div>
|
|
2108
2218
|
)}
|
|
2109
2219
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '8px' }}>
|
|
@@ -2163,7 +2273,7 @@ function CodexProfilesSection() {
|
|
|
2163
2273
|
<input
|
|
2164
2274
|
value={profile.codexHome ?? ''}
|
|
2165
2275
|
onChange={(e) => updateDraft(profile.id, { codexHome: e.target.value })}
|
|
2166
|
-
placeholder="
|
|
2276
|
+
placeholder="Default: Arco data folder / provider-accounts / codex-profile ID"
|
|
2167
2277
|
style={inputStyle}
|
|
2168
2278
|
title="CODEX_HOME"
|
|
2169
2279
|
/>
|
|
@@ -2193,7 +2303,7 @@ function CodexProfilesSection() {
|
|
|
2193
2303
|
</div>
|
|
2194
2304
|
<div style={{ display: 'flex', gap: '8px', minWidth: 0, fontSize: '10px', fontFamily: 'var(--font-body)', color: 'var(--color-fg-muted)' }}>
|
|
2195
2305
|
<span className="display-font" style={{ minWidth: '58px', color: 'var(--color-accent-primary-dim)', letterSpacing: '1px' }}>HOME</span>
|
|
2196
|
-
<span style={{ color: 'var(--color-accent-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{profile
|
|
2306
|
+
<span style={{ color: 'var(--color-accent-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{codexProfileHomeLabel(profile)}</span>
|
|
2197
2307
|
</div>
|
|
2198
2308
|
<div style={{ display: 'flex', gap: '8px', minWidth: 0, fontSize: '10px', fontFamily: 'var(--font-body)', color: 'var(--color-fg-muted)' }}>
|
|
2199
2309
|
<span className="display-font" style={{ minWidth: '58px', color: 'var(--color-accent-primary-dim)', letterSpacing: '1px' }}>BROWSER</span>
|
|
@@ -2280,6 +2390,7 @@ function CodexProfilesSection() {
|
|
|
2280
2390
|
{error}
|
|
2281
2391
|
</div>
|
|
2282
2392
|
)}
|
|
2393
|
+
</>}
|
|
2283
2394
|
</div>
|
|
2284
2395
|
);
|
|
2285
2396
|
}
|
|
@@ -2332,7 +2443,8 @@ function ProviderRow({ label, provider, status, loginPending, onLogin, variant,
|
|
|
2332
2443
|
return status?.email ? `${status.email} · ChatGPT OAuth` : 'ChatGPT OAuth';
|
|
2333
2444
|
}
|
|
2334
2445
|
if (loggedIn) return status?.email || 'authenticated';
|
|
2335
|
-
|
|
2446
|
+
if (status?.error) return status.probeFailed ? `status unknown: ${status.error}` : status.error;
|
|
2447
|
+
return 'not authenticated';
|
|
2336
2448
|
})();
|
|
2337
2449
|
return (
|
|
2338
2450
|
<div
|
|
@@ -2350,7 +2462,7 @@ function ProviderRow({ label, provider, status, loginPending, onLogin, variant,
|
|
|
2350
2462
|
<span className="display-font" style={{ fontSize: '12px', letterSpacing: '2px', color: loggedIn ? 'var(--color-accent-primary)' : 'var(--color-fg-muted)' }}>
|
|
2351
2463
|
{label}
|
|
2352
2464
|
</span>
|
|
2353
|
-
<span style={{ fontSize: '10px', color: usesOpenAiApiKey ? 'var(--color-warning)' : loggedIn ? 'var(--color-accent-primary-dim)' : 'var(--color-warning-dim)', fontFamily: 'var(--font-body)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
|
|
2465
|
+
<span style={{ fontSize: '10px', color: usesOpenAiApiKey ? 'var(--color-warning)' : loggedIn ? 'var(--color-accent-primary-dim)' : 'var(--color-warning-dim)', fontFamily: 'var(--font-body)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: !loggedIn && status?.error && !isLocalRuntime ? 'normal' : 'nowrap' }}>
|
|
2354
2466
|
{subline}
|
|
2355
2467
|
</span>
|
|
2356
2468
|
{usesOpenAiApiKey && (
|