arco-workbench 0.1.9 → 0.2.1
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-BbR3xmfD.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BLdwwQ4D.js → ThemedBackgroundShaderImpl-UMjbs9ZN.js} +1 -1
- package/client/dist/assets/XtermView-n135qz-f.js +10 -0
- package/client/dist/assets/{galleryEditor-CI8ClzBa.js → galleryEditor-CFSke4by.js} +1 -1
- package/client/dist/assets/index-CVJVD2Vn.css +1 -0
- package/client/dist/assets/index-DeoJbjI3.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 -4
- 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 +221 -71
- 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 +4 -2
- 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 +18 -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 +56 -17
- 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 +27 -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 +16 -8
- 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/appUpdateStore.ts +7 -1
- 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 +183 -87
- 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 +117 -32
- 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 +61 -10
- 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 +25 -16
- 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 +29 -4
- 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 +92 -26
- 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 +21 -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 +29 -0
- package/server/dist/providers/antigravity/usage.d.ts +7 -0
- package/server/dist/providers/antigravity/usage.js +36 -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 +53 -29
- package/server/dist/updateManager.d.ts +2 -4
- package/server/dist/updateManager.js +4 -1
- package/server/dist/windowsCommand.d.ts +15 -0
- package/server/dist/windowsCommand.js +85 -4
- 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 +18 -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 +25 -0
- package/server/src/providers/antigravity/usage.ts +30 -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 +50 -29
- package/server/src/updateManager.ts +5 -2
- package/server/src/windowsCommand.ts +83 -4
- 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 +29 -4
- 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 +29 -4
- 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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MobileQuestionBar } from './MobileQuestionBar';
|
|
2
|
+
import { DirectorContinuePrompt } from './DirectorContinuePrompt';
|
|
1
3
|
import { PhoneUploadButton } from './PhoneUpload';
|
|
2
4
|
import { effectiveCodexTransport } from '@arco/shared';
|
|
3
5
|
import { TurnTimer } from './TurnTimer';
|
|
@@ -47,7 +49,7 @@ import {
|
|
|
47
49
|
effortsForModel,
|
|
48
50
|
} from '../utils/format';
|
|
49
51
|
import type { UploadResult } from '../utils/uploadAttachment';
|
|
50
|
-
import { useLayoutRange } from '../layout/layoutRange';
|
|
52
|
+
import { useLayout, useLayoutRange } from '../layout/layoutRange';
|
|
51
53
|
import { ToolbarMore, useToolbarOverflow } from '../layout/ToolbarOverflow';
|
|
52
54
|
import { useKeepInWindow } from '../layout/keepInWindow';
|
|
53
55
|
|
|
@@ -139,6 +141,7 @@ export interface Props {
|
|
|
139
141
|
// present ⇒ new-tab path (App creates the workflow + defers the
|
|
140
142
|
// research_request via the spawn-token registry); absent ⇒ in-tab dispatch
|
|
141
143
|
// against this workflow. App wires this off requestResearch / createWorkflow.
|
|
144
|
+
researchProject?: boolean;
|
|
142
145
|
onResearch?: (
|
|
143
146
|
researcher: { provider: ProviderName; model: ModelName; effort: EffortLevel; providerAccountRef?: string },
|
|
144
147
|
topic: string,
|
|
@@ -320,7 +323,60 @@ function ComposerSendButtons({ jobId, blocked, hasAttachments, busy, canInterrup
|
|
|
320
323
|
</>;
|
|
321
324
|
}
|
|
322
325
|
|
|
323
|
-
|
|
326
|
+
// Mobile view: the thumb row's buttons beside the draft: the options button
|
|
327
|
+
// that shows the composer's other rows, and SEND. While a turn runs SEND's
|
|
328
|
+
// place holds STOP; with a draft it holds STEER with STOP beside it.
|
|
329
|
+
function PhoneSendButtons({ jobId, blocked, hasAttachments, busy, optionsOpen, onToggleOptions, onSend, onStop }: {
|
|
330
|
+
jobId: string; blocked: boolean; hasAttachments: boolean; busy: boolean; optionsOpen: boolean;
|
|
331
|
+
onToggleOptions: () => void; onSend: () => void; onStop: () => void;
|
|
332
|
+
}) {
|
|
333
|
+
const draft = useDraftStore((s) => s.drafts[jobId] ?? '');
|
|
334
|
+
const disabled = blocked || (!draft.trim() && !hasAttachments);
|
|
335
|
+
const base = { minWidth: '44px', minHeight: '44px', padding: '0 12px', background: 'transparent', borderRadius: '4px', fontSize: '13px', letterSpacing: '0.5px', whiteSpace: 'nowrap' as const, flexShrink: 0 };
|
|
336
|
+
return <>
|
|
337
|
+
<button type="button" data-testid="composer-phone-options" data-help="mobile.composer-options" aria-expanded={optionsOpen} aria-label="Message options"
|
|
338
|
+
title="Attach files, model, skills, recipient and the other composer tools" onClick={onToggleOptions} className="display-font"
|
|
339
|
+
style={{ ...base, padding: 0, border: `1px solid ${optionsOpen ? 'var(--color-accent-primary)' : 'var(--color-border-hairline)'}`, color: 'var(--color-fg)', fontSize: '18px' }}>
|
|
340
|
+
{optionsOpen ? '\u00D7' : '+'}
|
|
341
|
+
</button>
|
|
342
|
+
{busy && <button type="button" data-testid="composer-phone-stop" data-help="composer.cancel" onClick={onStop} className="display-font"
|
|
343
|
+
aria-label="Stop the current turn" title="Stop the current turn"
|
|
344
|
+
style={{ ...base, padding: disabled ? '0 12px' : 0, border: '1px solid var(--color-danger)', color: 'var(--color-danger)', fontWeight: 700, cursor: 'pointer' }}>
|
|
345
|
+
{'\u25A0'}{disabled ? ' STOP' : ''}
|
|
346
|
+
</button>}
|
|
347
|
+
{(!busy || !disabled) && <button type="button" data-testid="composer-phone-send" data-help="composer.send" onClick={onSend} disabled={disabled} className="display-font"
|
|
348
|
+
title={busy ? 'Steer: the agent reads this at the next point it can, without stopping the turn' : 'Send message'}
|
|
349
|
+
style={{ ...base, border: '1px solid var(--color-accent-primary)', color: 'var(--color-accent-primary)', fontWeight: 600, opacity: disabled ? 0.5 : 1, cursor: disabled ? 'not-allowed' : 'pointer' }}>
|
|
350
|
+
{busy ? 'STEER' : 'SEND'}
|
|
351
|
+
</button>}
|
|
352
|
+
</>;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// Mobile view, while a turn runs, in the message tools: with a draft,
|
|
356
|
+
// QUEUE FOR AFTER (the follow-up that desktop sends with Alt+Enter) and,
|
|
357
|
+
// where the provider supports it, INTERRUPT & SEND.
|
|
358
|
+
function PhoneBusyButtons({ jobId, blocked, hasAttachments, canInterrupt, onQueue, onInterrupt }: {
|
|
359
|
+
jobId: string; blocked: boolean; hasAttachments: boolean; canInterrupt: boolean; onQueue: () => void; onInterrupt: () => void;
|
|
360
|
+
}) {
|
|
361
|
+
const draft = useDraftStore((s) => s.drafts[jobId] ?? '');
|
|
362
|
+
const hasDraft = !blocked && (!!draft.trim() || hasAttachments);
|
|
363
|
+
if (!hasDraft) return null;
|
|
364
|
+
const base = { flex: '1 1 0', minWidth: 0, minHeight: '48px', padding: '0 10px', background: 'transparent', borderRadius: '4px', fontSize: '13px', letterSpacing: '0.5px', cursor: 'pointer' };
|
|
365
|
+
return (
|
|
366
|
+
<div data-testid="composer-phone-busy" data-phone-option="" style={{ display: 'flex', gap: '8px', marginTop: '8px' }}>
|
|
367
|
+
<button type="button" data-testid="composer-phone-queue" data-help="mobile.composer-queue" onClick={onQueue} className="display-font"
|
|
368
|
+
title="Queue this message to send when the current turn ends" style={{ ...base, border: '1px solid var(--color-accent-secondary)', color: 'var(--color-fg)' }}>
|
|
369
|
+
QUEUE FOR AFTER
|
|
370
|
+
</button>
|
|
371
|
+
{canInterrupt && <button type="button" data-help="composer.interrupt" onClick={onInterrupt} className="display-font"
|
|
372
|
+
title="Stop the current turn and send this message next" style={{ ...base, border: '1px solid var(--color-warning)', color: 'var(--color-fg)' }}>
|
|
373
|
+
INTERRUPT & SEND
|
|
374
|
+
</button>}
|
|
375
|
+
</div>
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export function TerminalInput({ job, researchProject = false, onSend, onCancel, onCancelQueued, onUpload, onReview, onHandoff, onSpawn, onUpdatePrimary, onCompact, onFold, onSetToolPosture, onSetProjectTrust, onArmPlanMode, onBackToCluster, clusterControls, clusterContext, memberRole, onTranscriptSend, onReviewViaMember, onResearch }: Props) {
|
|
324
380
|
// Composer text lives in the store keyed by job.id so each tab keeps its
|
|
325
381
|
// own draft across tab switches. Empty tab reads back as ''.
|
|
326
382
|
// NOT a subscription — see the ComposerTextarea note above. Handlers read the
|
|
@@ -329,6 +385,11 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
329
385
|
const setDraft = useAppStore((s) => s.setDraft);
|
|
330
386
|
const readDraft = useCallback(() => readDraftFor(job.id), [job.id]);
|
|
331
387
|
const setValue = useCallback((next: string) => setDraft(job.id, next), [setDraft, job.id]);
|
|
388
|
+
// The selected messages as text, for SECOND OPINION and the mobile view's COPY and QUOTE.
|
|
389
|
+
const selectedExcerpt = () => {
|
|
390
|
+
const picked = new Set(useMessageSelectionStore.getState().selected[job.id] ?? []);
|
|
391
|
+
return job.messages.filter((m) => picked.has(m.id)).map((m) => formatRow(m, job.config.name)).filter(Boolean).join('\n\n');
|
|
392
|
+
};
|
|
332
393
|
// §D1 — the `@`-context-ref chips render in ContextRefChips, which does its
|
|
333
394
|
// own draft subscription + parse. Keeping that out of this component is what
|
|
334
395
|
// stops a keystroke re-rendering the composer's whole tree.
|
|
@@ -354,7 +415,12 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
354
415
|
const [pendingUploads, setPendingUploads] = useState(0);
|
|
355
416
|
const uploading = pendingUploads > 0;
|
|
356
417
|
const toolbarRef = useRef<HTMLDivElement | null>(null);
|
|
357
|
-
|
|
418
|
+
// Mobile view (docs/CLIENT.md "Mobile view"): one thumb row holds the
|
|
419
|
+
// draft, the options button and SEND or STEER; everything else is behind
|
|
420
|
+
// the options button, which shows the toolbar and footer rows wrapped.
|
|
421
|
+
const phone = useLayout().phone;
|
|
422
|
+
const [phoneOptions, setPhoneOptions] = useState(false);
|
|
423
|
+
const toolbarOneLine = useLayoutRange() !== 'standard' && !phone;
|
|
358
424
|
const toolbarHidden = useToolbarOverflow(toolbarRef, toolbarOneLine, TOOLBAR_KEEP);
|
|
359
425
|
const [uploadError, setUploadError] = useState<string | null>(null);
|
|
360
426
|
// One-shot choices stay with the draft, including EDIT replies for inactive tabs.
|
|
@@ -477,7 +543,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
477
543
|
case 'review': if (!onReview) return false; setShowReviewDialog(true); return true;
|
|
478
544
|
case 'handoff': if (!onHandoff) return false; setShowHandoffDialog(true); return true;
|
|
479
545
|
case 'spawn': if (!onSpawn) return false; setShowSpawnDialog(true); return true;
|
|
480
|
-
case 'plan': setShowPlanDialog(true); return true;
|
|
546
|
+
case 'plan': if (researchProject) return false; setShowPlanDialog(true); return true;
|
|
481
547
|
case 'docs': if (!onSpawn) return false; setShowDocsDialog(true); return true;
|
|
482
548
|
case 'git': if (!job.config.workingDirectory || !onSpawn) return false; setShowGitDialog(true); return true;
|
|
483
549
|
case 'tuneup': setShowTuneupDialog(true); return true;
|
|
@@ -550,6 +616,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
550
616
|
&& (
|
|
551
617
|
((provider === 'codex' && resolvedCodexTransport === 'appserver'))
|
|
552
618
|
|| provider === 'cursor'
|
|
619
|
+
|| provider === 'antigravity-cli'
|
|
553
620
|
|| (provider === 'claude' && resolvedClaudeTransport === 'native')
|
|
554
621
|
// WP3 — Ollama has no transport requirement. The worker is stateless per
|
|
555
622
|
// turn, so the button arms a force-compact that runs at the start of the
|
|
@@ -814,14 +881,17 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
814
881
|
|
|
815
882
|
return (
|
|
816
883
|
<div
|
|
884
|
+
data-composer=""
|
|
885
|
+
data-phone-options-open={(phone && phoneOptions) || undefined}
|
|
817
886
|
style={{
|
|
818
887
|
borderTop: '1px solid var(--color-border-hairline)',
|
|
819
888
|
background: 'var(--color-bg-input)',
|
|
820
|
-
padding: '10px 20px',
|
|
889
|
+
padding: phone ? '6px calc(8px + env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left))' : '10px 20px',
|
|
821
890
|
position: 'relative',
|
|
822
891
|
zIndex: 10,
|
|
823
892
|
flexShrink: 0,
|
|
824
893
|
transition: 'all 0.2s ease',
|
|
894
|
+
...(phone && phoneOptions ? { maxHeight: 'calc(var(--phone-vh, 100dvh) / var(--ui-scale, 1) * 0.72)', overflowY: 'auto' as const, borderTop: '2px solid var(--color-accent-primary)', boxShadow: '0 0 0 100vmax rgba(0,0,0,0.55)' } : {}),
|
|
825
895
|
}}
|
|
826
896
|
>
|
|
827
897
|
<input
|
|
@@ -832,7 +902,17 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
832
902
|
style={{ display: 'none' }}
|
|
833
903
|
/>
|
|
834
904
|
|
|
835
|
-
|
|
905
|
+
{/* Mobile view: the tools open as a sheet with its own title row. */}
|
|
906
|
+
{phone && phoneOptions && (
|
|
907
|
+
<div data-phone-option="" className="display-font" style={{ display: 'flex', alignItems: 'center', gap: '8px', margin: '0 0 8px', paddingBottom: '6px', borderBottom: '1px solid var(--color-border-hairline)' }}>
|
|
908
|
+
<span style={{ flex: 1, fontSize: '14px', fontWeight: 600, letterSpacing: '1px', color: 'var(--color-fg)' }}>MESSAGE TOOLS</span>
|
|
909
|
+
<button type="button" data-testid="composer-phone-options-close" onClick={() => setPhoneOptions(false)} className="display-font" style={{ minHeight: '44px', padding: '0 12px', fontSize: '13px', letterSpacing: '0.5px' }}>CLOSE</button>
|
|
910
|
+
</div>
|
|
911
|
+
)}
|
|
912
|
+
{phone && <MobileQuestionBar workflowId={job.id} />}
|
|
913
|
+
<DirectorContinuePrompt workflowId={job.id} />
|
|
914
|
+
{phone && onCancelQueued && <QueuedMessagesIndicator job={job} onCancel={onCancelQueued} />}
|
|
915
|
+
<div data-testid="composer-status-line" data-phone-option="" style={{ display: 'flex', flexWrap: 'wrap', alignItems: 'center', gap: '6px', marginBottom: '6px', minWidth: 0, minHeight: isBusy ? '24px' : undefined, position: 'relative', paddingRight: job.busy && job.turnStartedAt !== undefined ? '96px' : 0 }}>
|
|
836
916
|
<TurnTimer busy={job.busy === true} startedAt={job.turnStartedAt} />
|
|
837
917
|
<NorthStarBar job={job} onUpdatePrimary={onUpdatePrimary} />
|
|
838
918
|
{planModeToggleVisible && <button type="button" data-help="composer.plan-first" aria-pressed={planModeArmed} onClick={() => setPlanModeArmed((v) => !v)} title="Plan before editing on the next turn. This is separate from the attached project plan." className="display-font" style={{ marginLeft: 'auto', flexShrink: 0, padding: '3px 8px', border: '1px solid var(--color-border-hairline)', borderRadius: '3px', background: 'transparent', color: planModeArmed ? 'var(--color-warning)' : 'var(--color-accent-secondary-dim)', cursor: 'pointer', fontSize: '10px', whiteSpace: 'nowrap' }}>PLAN FIRST (next turn)</button>}
|
|
@@ -842,12 +922,12 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
842
922
|
<button type="button" title="Dismiss the compacted conversation notice; resume on your own when ready." aria-label="Dismiss compacted notice" onClick={() => clearCompacting(job.id)}>×</button>
|
|
843
923
|
</span>
|
|
844
924
|
)}
|
|
845
|
-
{onCancelQueued && <QueuedMessagesIndicator job={job} onCancel={onCancelQueued} />}
|
|
846
|
-
{clusterForJob && <SkillsControl cluster={clusterForJob} memberId={job.id}
|
|
925
|
+
{!phone && onCancelQueued && <QueuedMessagesIndicator job={job} onCancel={onCancelQueued} />}
|
|
926
|
+
{clusterForJob && <div data-phone-option=""><SkillsControl cluster={clusterForJob} memberId={job.id} /></div>}
|
|
847
927
|
{/* Standing pins persist in WorkflowConfig/meta.json and are re-injected
|
|
848
928
|
every turn. They remain visible until explicitly removed. */}
|
|
849
|
-
{pinnedSkills.length > 0 && (
|
|
850
|
-
<div style={{ display: 'flex', gap: '6px', flexWrap: 'wrap', alignItems: 'center' }}>
|
|
929
|
+
{job.config.primaryProvider !== 'antigravity-cli' && pinnedSkills.length > 0 && (
|
|
930
|
+
<div data-phone-option="" style={{ display: 'flex', gap: '6px', flexWrap: 'wrap', alignItems: 'center' }}>
|
|
851
931
|
<span className="display-font" style={{ fontSize: '9px', letterSpacing: '1px', color: 'var(--color-fg-muted)' }}>
|
|
852
932
|
PINNED SKILLS:
|
|
853
933
|
</span>
|
|
@@ -874,7 +954,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
874
954
|
)}
|
|
875
955
|
|
|
876
956
|
{/* One-shot picks inline into the next turn only, then clear. */}
|
|
877
|
-
{pickedSkills.length > 0 && (
|
|
957
|
+
{job.config.primaryProvider !== 'antigravity-cli' && pickedSkills.length > 0 && (
|
|
878
958
|
<div style={{ display: 'flex', gap: '6px', flexWrap: 'wrap', alignItems: 'center' }}>
|
|
879
959
|
<span className="display-font" style={{ fontSize: '9px', letterSpacing: '1px', color: 'var(--color-fg-muted)' }}>
|
|
880
960
|
INLINE SKILLS:
|
|
@@ -1080,21 +1160,33 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1080
1160
|
</div>
|
|
1081
1161
|
)}
|
|
1082
1162
|
|
|
1163
|
+
{/* Mobile view: recipients other than the member shown stay visible
|
|
1164
|
+
beside the draft while the options are closed, so the operator sees
|
|
1165
|
+
who SEND reaches (the header names the member shown, whom STOP acts on). */}
|
|
1166
|
+
{phone && clusterControls?.customRecipients && (
|
|
1167
|
+
<button type="button" data-testid="composer-phone-recipients" data-help="cluster.recipients" onClick={clusterControls.onChooseRecipients}
|
|
1168
|
+
aria-label={`Sending to ${clusterControls.recipientLabel}. Choose recipients.`} className="display-font"
|
|
1169
|
+
style={{ display: 'flex', alignItems: 'center', gap: '6px', width: '100%', minHeight: '44px', marginBottom: '6px', padding: '0 12px', background: 'transparent',
|
|
1170
|
+
border: '2px solid var(--color-warning)', borderRadius: '4px', color: 'var(--color-fg)', fontSize: '13px', letterSpacing: '0.5px', cursor: 'pointer', overflow: 'hidden', whiteSpace: 'nowrap' }}>
|
|
1171
|
+
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis' }}>SENDING TO {clusterControls.recipientLabel}</span><span aria-hidden="true">{'\u25BE'}</span>
|
|
1172
|
+
</button>
|
|
1173
|
+
)}
|
|
1083
1174
|
{/* Send choices wrap below the draft so both stay visible at narrow widths. */}
|
|
1084
1175
|
<div
|
|
1085
1176
|
className="glow-border"
|
|
1086
1177
|
data-help="composer.input"
|
|
1087
1178
|
style={{
|
|
1088
1179
|
display: 'flex',
|
|
1089
|
-
flexWrap: 'wrap',
|
|
1090
|
-
alignItems: 'flex-start',
|
|
1180
|
+
flexWrap: phone ? 'nowrap' : 'wrap',
|
|
1181
|
+
alignItems: phone ? 'flex-end' : 'flex-start',
|
|
1182
|
+
gap: phone ? '6px' : undefined,
|
|
1091
1183
|
border: '1px solid var(--color-border-bright)',
|
|
1092
1184
|
borderRadius: '4px',
|
|
1093
|
-
padding: '8px 12px',
|
|
1185
|
+
padding: phone ? '4px 4px 4px 10px' : '8px 12px',
|
|
1094
1186
|
background: 'var(--color-bg-sunken)',
|
|
1095
1187
|
}}
|
|
1096
1188
|
>
|
|
1097
|
-
<span
|
|
1189
|
+
{!phone && <span
|
|
1098
1190
|
className="display-font glow-text"
|
|
1099
1191
|
style={{
|
|
1100
1192
|
marginRight: '10px',
|
|
@@ -1105,7 +1197,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1105
1197
|
}}
|
|
1106
1198
|
>
|
|
1107
1199
|
{isBusy ? '...' : '>'}
|
|
1108
|
-
</span>
|
|
1200
|
+
</span>}
|
|
1109
1201
|
|
|
1110
1202
|
<ComposerTextarea
|
|
1111
1203
|
jobId={job.id}
|
|
@@ -1115,7 +1207,9 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1115
1207
|
disabled={isCompacting}
|
|
1116
1208
|
isBusy={isBusy}
|
|
1117
1209
|
placeholder={
|
|
1118
|
-
uploading
|
|
1210
|
+
phone && !uploading && !isCompacting
|
|
1211
|
+
? (isBusy ? 'Steer now, or queue for after this turn' : (clusterControls?.placeholder ?? 'Message'))
|
|
1212
|
+
: uploading
|
|
1119
1213
|
? 'Uploading file...'
|
|
1120
1214
|
: isCompacting
|
|
1121
1215
|
? 'Compacting conversation… composer is locked until it finishes'
|
|
@@ -1127,7 +1221,9 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1127
1221
|
}
|
|
1128
1222
|
/>
|
|
1129
1223
|
|
|
1130
|
-
<
|
|
1224
|
+
{phone && <PhoneSendButtons jobId={job.id} blocked={uploading || isCompacting} hasAttachments={attachments.length > 0} busy={isBusy}
|
|
1225
|
+
optionsOpen={phoneOptions} onToggleOptions={() => setPhoneOptions((v) => !v)} onSend={() => handleSubmit(isBusy ? 'steer' : undefined)} onStop={onCancel} />}
|
|
1226
|
+
{!phone && <div style={{ flexBasis: '100%', display: 'flex', flexWrap: 'wrap', alignItems: 'center',
|
|
1131
1227
|
justifyContent: 'flex-end', gap: '6px', marginTop: '6px' }}>
|
|
1132
1228
|
{isBusy && (
|
|
1133
1229
|
<span
|
|
@@ -1175,14 +1271,22 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1175
1271
|
✕ CANCEL
|
|
1176
1272
|
</button>
|
|
1177
1273
|
)}
|
|
1178
|
-
</div>
|
|
1274
|
+
</div>}
|
|
1179
1275
|
</div>
|
|
1276
|
+
{phone && isBusy && <PhoneBusyButtons jobId={job.id} blocked={uploading || isCompacting} hasAttachments={attachments.length > 0}
|
|
1277
|
+
canInterrupt={interruptAvailable} onQueue={() => handleSubmit('follow-up', false)} onInterrupt={() => handleSubmit('interrupt', false)} />}
|
|
1278
|
+
{phone && <div data-phone-option="" style={{ display: 'flex', justifyContent: 'flex-end', marginTop: '6px' }}><TidyComposer key={job.id} jobId={job.id} disabled={uploading || isCompacting} /></div>}
|
|
1180
1279
|
|
|
1181
1280
|
<MessageSelectionBar jobId={job.id} onSecondOpinion={() => {
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1281
|
+
openCompareDialog(job.id, selectedExcerpt());
|
|
1282
|
+
}}
|
|
1283
|
+
onCopy={phone ? () => { void navigator.clipboard?.writeText(selectedExcerpt()).then(() => useMessageSelectionStore.getState().clear(job.id), () => { /* clipboard blocked: the selection stays */ }); } : undefined}
|
|
1284
|
+
onQuote={phone ? () => {
|
|
1285
|
+
const quote = selectedExcerpt().split('\n').map((line) => `> ${line}`.trimEnd()).join('\n');
|
|
1286
|
+
const draft = readDraftFor(job.id);
|
|
1287
|
+
setValue(`${draft}${draft.trim() ? '\n\n' : ''}${quote}\n\n`);
|
|
1288
|
+
useMessageSelectionStore.getState().clear(job.id);
|
|
1289
|
+
} : undefined} onForward={onTranscriptSend && clusterForJob && clusterForJob.members.length > 1 ? () => setShowForwardDialog(true) : undefined} />
|
|
1186
1290
|
|
|
1187
1291
|
{/* Toolbar row — permanent second line. Primitives on the left,
|
|
1188
1292
|
live status + tokens on the right. Stays visible at narrow widths
|
|
@@ -1192,6 +1296,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1192
1296
|
<div
|
|
1193
1297
|
ref={toolbarRef}
|
|
1194
1298
|
data-testid="composer-toolbar"
|
|
1299
|
+
data-phone-option=""
|
|
1195
1300
|
style={{
|
|
1196
1301
|
display: 'flex',
|
|
1197
1302
|
alignItems: 'center',
|
|
@@ -1222,7 +1327,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1222
1327
|
+ FILE
|
|
1223
1328
|
</button>
|
|
1224
1329
|
</span>
|
|
1225
|
-
<PhoneUploadButton workflowId={job.id} />
|
|
1330
|
+
<PhoneUploadButton workflowId={job.id} onPhonePick={() => fileInputRef.current?.click()} />
|
|
1226
1331
|
|
|
1227
1332
|
{hubLinked && onUpdatePrimary && (
|
|
1228
1333
|
<button
|
|
@@ -1278,7 +1383,9 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1278
1383
|
disabled={isBusy}
|
|
1279
1384
|
data-help="composer.compact"
|
|
1280
1385
|
className="display-font"
|
|
1281
|
-
title={
|
|
1386
|
+
title={provider === 'antigravity-cli'
|
|
1387
|
+
? 'Send /compact to Gemini in the current session.'
|
|
1388
|
+
: isBusy
|
|
1282
1389
|
? 'Compact runs between turns: wait for the current turn to finish.'
|
|
1283
1390
|
: provider === 'codex'
|
|
1284
1391
|
? 'Native /compact: Codex summarizes earlier thread history server-side so the next turn starts with a smaller prompt. App-server compact path; far cheaper than a Handoff.'
|
|
@@ -1471,7 +1578,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1471
1578
|
|
|
1472
1579
|
<BriefControl scope="worker" targetId={job.id} clusterId={clusterControls ? clusterControls.clusterId : undefined} label="BRIEF" data-help="composer.brief" testId="composer-brief" title="A short synopsis of this worker from facts Arco can see. Read-only; sends nothing." />
|
|
1473
1580
|
|
|
1474
|
-
<button
|
|
1581
|
+
{!researchProject && <button
|
|
1475
1582
|
onClick={() => setShowPlanDialog(true)}
|
|
1476
1583
|
data-help="composer.plan"
|
|
1477
1584
|
className="display-font"
|
|
@@ -1489,7 +1596,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1489
1596
|
}}
|
|
1490
1597
|
>
|
|
1491
1598
|
☰ PLAN
|
|
1492
|
-
</button>
|
|
1599
|
+
</button>}
|
|
1493
1600
|
|
|
1494
1601
|
{onSpawn && (
|
|
1495
1602
|
<button
|
|
@@ -1579,6 +1686,15 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1579
1686
|
</button>
|
|
1580
1687
|
)}
|
|
1581
1688
|
|
|
1689
|
+
{job.config.kind !== 'chat' && job.config.workingDirectory && !clusterForJob?.research && (
|
|
1690
|
+
<button type="button" className="display-font" data-help="composer.research-this"
|
|
1691
|
+
title="Open a new research project for this project. The current draft is copied into its brief."
|
|
1692
|
+
onClick={() => useAppStore.getState().openCreatorWith({ mode: 'research', researchPrefill: { sourceProject: job.config.workingDirectory, brief: readDraft() } })}
|
|
1693
|
+
style={{ padding: '3px 8px', background: 'transparent', border: '1px solid var(--color-border-hairline)', borderRadius: 3, color: 'var(--color-accent-secondary-dim)', cursor: 'pointer', fontSize: 10, letterSpacing: '1px', whiteSpace: 'nowrap' }}>
|
|
1694
|
+
RESEARCH THIS
|
|
1695
|
+
</button>
|
|
1696
|
+
)}
|
|
1697
|
+
|
|
1582
1698
|
{/* §B1 — COMPARE: race one prompt across N read-only legs. Store-driven
|
|
1583
1699
|
(no prop) so the handler stays out of this near-cap file; the dialog
|
|
1584
1700
|
+ grid are globally mounted. */}
|
|
@@ -1609,7 +1725,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1609
1725
|
</div>
|
|
1610
1726
|
|
|
1611
1727
|
{/* Hint row — keyboard shortcuts + toolbox. */}
|
|
1612
|
-
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', rowGap: '6px', marginTop: '4px', fontSize: '10px', fontFamily: 'var(--font-display)', color: 'var(--color-fg-muted)', letterSpacing: '1px', padding: '0 4px' }}>
|
|
1728
|
+
<div data-phone-option="" style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', flexWrap: 'wrap', rowGap: '6px', marginTop: '4px', fontSize: '10px', fontFamily: 'var(--font-display)', color: 'var(--color-fg-muted)', letterSpacing: '1px', padding: '0 4px' }}>
|
|
1613
1729
|
<span style={{ flex: '1 1 220px', minWidth: 0 }}>
|
|
1614
1730
|
<span ref={chipRef} data-help="composer.footer.model" style={{ position: 'relative', color: 'var(--color-accent-primary)', opacity: 0.85 }}>
|
|
1615
1731
|
{String(job.config.primaryProvider ?? 'claude').toUpperCase()}
|
|
@@ -1721,8 +1837,8 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1721
1837
|
return <span style={{ marginLeft: 6, color: 'var(--color-fg-muted)', fontSize: '9px' }}>(WILL LOAD ON NEXT TURN)</span>;
|
|
1722
1838
|
})()}
|
|
1723
1839
|
</span>
|
|
1724
|
-
|
|
1725
|
-
DROP / PASTE TO ATTACH · SHIFT+ENTER FOR NEWLINE
|
|
1840
|
+
{!phone && <><span style={{ opacity: 0.5 }}>{' · '}</span>
|
|
1841
|
+
DROP / PASTE TO ATTACH · SHIFT+ENTER FOR NEWLINE</>}
|
|
1726
1842
|
</span>
|
|
1727
1843
|
<div style={{ display: 'flex', alignItems: 'center', gap: '10px', flexWrap: 'wrap', justifyContent: 'flex-start' }}>
|
|
1728
1844
|
{onBackToCluster && (
|
|
@@ -1756,7 +1872,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1756
1872
|
{/* DD8 — inline an Arco skill (incl. operator-only ones, hidden from
|
|
1757
1873
|
the model manifest) into the next turn. */}
|
|
1758
1874
|
{clusterControls && <ClusterComposerButtons controls={clusterControls} />}
|
|
1759
|
-
<div ref={skillMenuRef} style={{ position: 'relative' }} data-help="composer.skills">
|
|
1875
|
+
{job.config.primaryProvider === 'antigravity-cli' ? <span data-help="composer.skills" style={{ fontSize: '10px', color: 'var(--color-fg-muted)' }}>Gemini uses skills installed in the Antigravity CLI.</span> : <div ref={skillMenuRef} style={{ position: 'relative' }} data-help="composer.skills">
|
|
1760
1876
|
<button
|
|
1761
1877
|
onClick={() => setSkillMenuOpen((v) => !v)}
|
|
1762
1878
|
title="Choose skills to apply once, pin to this tab, or insert a supported agent skill."
|
|
@@ -1909,7 +2025,8 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
|
|
|
1909
2025
|
</div>
|
|
1910
2026
|
)}
|
|
1911
2027
|
</div>
|
|
1912
|
-
|
|
2028
|
+
}
|
|
2029
|
+
{!phone && <span>{isBusy ? '↵ STEER · ⌥↵ FOLLOW-UP' : 'ENTER TO SEND'}</span>}
|
|
1913
2030
|
</div>
|
|
1914
2031
|
</div>
|
|
1915
2032
|
|
|
@@ -11,7 +11,7 @@ import { DirectoryBrowser } from './media/DirectoryPicker';
|
|
|
11
11
|
|
|
12
12
|
const field: CSSProperties = { width: '100%', minWidth: 0, display: 'block' };
|
|
13
13
|
const button: CSSProperties = { padding: '5px 10px', cursor: 'pointer', fontSize: '11px', letterSpacing: '1px' };
|
|
14
|
-
const labels: Record<ProviderName, string> = { claude: 'Claude', codex: 'Codex', cursor: 'Cursor', ollama: 'Ollama', llamacpp: 'llama.cpp', lmstudio: 'LM Studio', strata: 'Strata', deepseek: 'DeepSeek' };
|
|
14
|
+
const labels: Record<ProviderName, string> = { claude: 'Claude', codex: 'Codex', cursor: 'Cursor', ollama: 'Ollama', llamacpp: 'llama.cpp', lmstudio: 'LM Studio', strata: 'Strata', deepseek: 'DeepSeek', 'antigravity-cli': 'Antigravity CLI' };
|
|
15
15
|
|
|
16
16
|
export function TranscriptWorkerDialog({ workflowId, onCancel, onMembers }: { workflowId: string; onCancel: () => void; onMembers?: () => void }) {
|
|
17
17
|
const job = useAppStore(s => s.jobs[workflowId]);
|
|
@@ -46,7 +46,7 @@ export function TranscriptWorkerDialog({ workflowId, onCancel, onMembers }: { wo
|
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
if (!offeredEfforts.includes(effort)) setEffort(offeredEfforts.includes('medium') ? 'medium' : offeredEfforts[0]);
|
|
48
48
|
}, [provider, model, offeredEfforts.join('|'), effort]);
|
|
49
|
-
const providers = PRIMARY_PROVIDERS.filter(value => enabled(value) && !!auth?.[value]?.loggedIn);
|
|
49
|
+
const providers = PRIMARY_PROVIDERS.filter(value => value !== 'antigravity-cli' && enabled(value) && !!auth?.[value]?.loggedIn);
|
|
50
50
|
const prefaceBytes = new TextEncoder().encode(preface).length;
|
|
51
51
|
const inputKey = JSON.stringify([turns, includePartial, preface]);
|
|
52
52
|
const invalidate = () => { setPreview(null); setError(''); };
|
|
@@ -8,7 +8,7 @@ type State = { mode: 'service' | 'foreground' | 'docker'; platform?: string; pac
|
|
|
8
8
|
export function UpdateAction({ latest, url, autoConfirm = false }: { latest: string | null; url: string | null; autoConfirm?: boolean }) {
|
|
9
9
|
const surface = useRef<HTMLDivElement>(null);
|
|
10
10
|
const [state, setState] = useState<State | null>(null);
|
|
11
|
-
const [confirm, setConfirm] = useState(
|
|
11
|
+
const [confirm, setConfirm] = useState<string | null>(null);
|
|
12
12
|
const [pending, setPending] = useState(false);
|
|
13
13
|
const [message, setMessage] = useState('');
|
|
14
14
|
const [resultMessage, setResultMessage] = useState('');
|
|
@@ -37,8 +37,11 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
|
|
|
37
37
|
}, [pending]);
|
|
38
38
|
const asked = useRef(false);
|
|
39
39
|
useEffect(() => {
|
|
40
|
-
if (autoConfirm && !asked.current && state?.mode === 'service' && latest) { asked.current = true; setConfirm(
|
|
40
|
+
if (autoConfirm && !asked.current && state?.mode === 'service' && latest) { asked.current = true; setConfirm(latest); }
|
|
41
41
|
}, [autoConfirm, state, latest]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (confirm !== null && confirm !== latest) setConfirm(null);
|
|
44
|
+
}, [confirm, latest]);
|
|
42
45
|
useEffect(() => {
|
|
43
46
|
let live = true; let request = 0;
|
|
44
47
|
const refresh = async () => {
|
|
@@ -65,7 +68,7 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
|
|
|
65
68
|
const start = async () => {
|
|
66
69
|
useAppUpdateStore.getState().showResultAt(resultSurfaceId, true);
|
|
67
70
|
startedAttempt.current = null;
|
|
68
|
-
setConfirm(
|
|
71
|
+
setConfirm(null); setPending(true); setFallback(false); setResultMessage(''); setMessage('Starting update. Arco will reconnect after restart.');
|
|
69
72
|
try {
|
|
70
73
|
const response = await fetch('/api/update-manager', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ expectedLatest: latest }) });
|
|
71
74
|
const result = await response.json();
|
|
@@ -84,7 +87,7 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
|
|
|
84
87
|
void navigator.clipboard.writeText(value).then(() => setMessage('Command copied.'), () => setMessage('Could not copy the command.'));
|
|
85
88
|
};
|
|
86
89
|
return <div data-help="settings.update-action" style={{ marginTop: 8 }}>
|
|
87
|
-
{state.mode === 'service' && latest ? <button type="button" disabled={pending} onClick={() => setConfirm(
|
|
90
|
+
{state.mode === 'service' && latest ? <button type="button" disabled={pending} onClick={() => setConfirm(latest)}>UPDATE AND RESTART</button> : <>
|
|
88
91
|
{state.mode === 'foreground' && state.platform === 'win32' && <div>Stop Arco before updating, then run {state.packaged ? 'arco start' : 'npm start'}.</div>}
|
|
89
92
|
{state.mode === 'foreground' && state.platform === 'darwin' && <div>Restart the foreground process or the configured launchd job after updating.</div>}
|
|
90
93
|
{command ? <><code>{command}</code>{' '}
|
|
@@ -93,13 +96,13 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
|
|
|
93
96
|
{fallback && <div><code>{state.packaged ? 'arco update' : 'npm run arco:update'}</code>{' '}<button type="button" onClick={() => copy(state.packaged ? 'arco update' : 'npm run arco:update')}>COPY COMMAND</button></div>}
|
|
94
97
|
{message && <div role="status">{message}</div>}
|
|
95
98
|
{ownsResult && resultMessage && <div role="status">{resultMessage}</div>}
|
|
96
|
-
{confirm && createPortal(<div role="dialog" aria-modal="true" aria-label="Confirm update" style={{ position: 'fixed', inset: 0, zIndex: 10000, background: 'rgba(0,0,0,.6)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
|
99
|
+
{confirm !== null && confirm === latest && createPortal(<div role="dialog" aria-modal="true" aria-label="Confirm update" style={{ position: 'fixed', inset: 0, zIndex: 10000, background: 'rgba(0,0,0,.6)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
|
97
100
|
<div ref={surface} style={{ background: 'var(--color-bg-elevated)', color: 'var(--color-fg)', border: '1px solid var(--color-border)', padding: 20, ...confirmationSurfaceSize }}>
|
|
98
101
|
<WorkSurfaceControls surface={surface} storageKey="update-confirm" />
|
|
99
102
|
<p>Update to {latest} and restart Arco? Running turns will stop.</p>
|
|
100
103
|
{url && <p><a href={url} target="_blank" rel="noopener noreferrer">Release notes</a></p>}
|
|
101
104
|
<button type="button" onClick={() => void start()}>UPDATE AND RESTART</button>{' '}
|
|
102
|
-
<button type="button" onClick={() => setConfirm(
|
|
105
|
+
<button type="button" onClick={() => setConfirm(null)}>CANCEL</button>
|
|
103
106
|
</div>
|
|
104
107
|
</div>, document.body)}
|
|
105
108
|
</div>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LocalRuntimeIndicator } from './LocalRuntimeStatus';
|
|
2
|
-
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { useEffect, useRef, useState, type ReactElement } from 'react';
|
|
3
3
|
import { useAppStore } from '../stores/appStore';
|
|
4
4
|
import { formatTokens } from './RightPanel/format';
|
|
5
5
|
import { CursorIncludedGauge } from './CursorIncludedGauge';
|
|
@@ -9,6 +9,8 @@ import { claudeAuthPresentation, selectedClaudeTransport } from '../utils/claude
|
|
|
9
9
|
import { refreshClaudeAllowance } from '../utils/claudeAllowance';
|
|
10
10
|
import { dismissProviderHovers, useProviderHover } from './providerPanelState';
|
|
11
11
|
import { useKeepInWindow } from '../layout/keepInWindow';
|
|
12
|
+
import { providerIndicator, providerShown, type ProviderIndicator } from './providerIndicator';
|
|
13
|
+
import { useStartupStore } from '../stores/startupStore';
|
|
12
14
|
|
|
13
15
|
interface Props {
|
|
14
16
|
usage: UsageInfo | null;
|
|
@@ -25,22 +27,128 @@ export function UsageBar({ usage }: Props) {
|
|
|
25
27
|
const authStatus = useAppStore((s) => s.authStatus);
|
|
26
28
|
const codexUsage = useAppStore((s) => s.codexUsage);
|
|
27
29
|
const cursorUsage = useAppStore((s) => s.cursorUsage);
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
30
|
+
const settings = useAppStore((s) => s.settings);
|
|
31
|
+
const capabilities = useAppStore((s) => s.capabilities);
|
|
32
|
+
const tabTransport = useAppStore(s => s.activeJobId ? s.jobs[s.activeJobId]?.config.claudeTransport : undefined);
|
|
33
|
+
const forceCli = useAppStore(s => {
|
|
34
|
+
const config = s.activeJobId ? s.jobs[s.activeJobId]?.config : undefined;
|
|
35
|
+
return (config?.primaryProvider ?? 'claude') === 'claude' && config?.ultracode === true;
|
|
36
|
+
});
|
|
37
|
+
const codexAccount = useAppStore(s => {
|
|
38
|
+
const config = s.activeJobId ? s.jobs[s.activeJobId]?.config : undefined;
|
|
39
|
+
return config?.primaryProvider === 'codex' ? config.providerAccountRef : undefined;
|
|
40
|
+
});
|
|
41
|
+
const input = { auth: authStatus, capabilities, claudeTransport: selectedClaudeTransport(tabTransport, settings?.claude?.transport, forceCli), codexAccount };
|
|
42
|
+
// An enabled provider keeps its slot whatever its state; a disabled one
|
|
43
|
+
// disappears, as in the Versions list. Only a ready provider shows usage.
|
|
44
|
+
const slot = (provider: 'claude' | 'codex' | 'cursor' | 'antigravity-cli', ready: () => ReactElement) => {
|
|
45
|
+
if (!providerShown(settings, provider)) return null;
|
|
46
|
+
const view = providerIndicator(provider, input);
|
|
47
|
+
return view.state === 'ready' ? ready() : <ProviderNeeds key={provider} view={view} />;
|
|
48
|
+
};
|
|
33
49
|
|
|
34
50
|
return (
|
|
35
51
|
<div data-help="header.live-status" style={{ display: 'flex', alignItems: 'center', gap: '10px' }}>
|
|
36
|
-
{
|
|
37
|
-
{
|
|
38
|
-
{
|
|
52
|
+
{slot('claude', () => <ClaudeStatus usage={usage} />)}
|
|
53
|
+
{slot('codex', () => <CodexStatus usage={codexUsage} />)}
|
|
54
|
+
{slot('cursor', () => <CursorStatus usage={cursorUsage} />)}
|
|
55
|
+
{slot('antigravity-cli', () => <AntigravityStatus />)}
|
|
39
56
|
<LocalRuntimeIndicator />
|
|
40
57
|
</div>
|
|
41
58
|
);
|
|
42
59
|
}
|
|
43
60
|
|
|
61
|
+
function AntigravityStatus() {
|
|
62
|
+
const [open, setOpen] = useProviderHover();
|
|
63
|
+
const placeRef = useKeepInWindow();
|
|
64
|
+
const [pools, setPools] = useState<Array<{ name: string; percentLeft: number; reset: string }> | null>(null);
|
|
65
|
+
const [loading, setLoading] = useState(false);
|
|
66
|
+
const [failed, setFailed] = useState(false);
|
|
67
|
+
const request = useRef(0);
|
|
68
|
+
const inFlight = useRef(false);
|
|
69
|
+
const refresh = async () => {
|
|
70
|
+
if (inFlight.current) return;
|
|
71
|
+
inFlight.current = true;
|
|
72
|
+
const id = ++request.current;
|
|
73
|
+
setLoading(true);
|
|
74
|
+
try {
|
|
75
|
+
const response = await fetch('/api/antigravity-usage');
|
|
76
|
+
const data = response.ok ? await response.json() : null;
|
|
77
|
+
if (id === request.current) {
|
|
78
|
+
const next = Array.isArray(data?.pools) ? data.pools : null;
|
|
79
|
+
setPools(next);
|
|
80
|
+
setFailed(!next);
|
|
81
|
+
}
|
|
82
|
+
} catch { if (id === request.current) { setPools(null); setFailed(true); } }
|
|
83
|
+
finally { inFlight.current = false; if (id === request.current) setLoading(false); }
|
|
84
|
+
};
|
|
85
|
+
useEffect(() => { if (open) void refresh(); }, [open]);
|
|
86
|
+
const groups = new Map<string, Array<{ name: string; percentLeft: number; reset: string }>>();
|
|
87
|
+
for (const pool of pools ?? []) {
|
|
88
|
+
const [family, ...rest] = pool.name.split(' · ');
|
|
89
|
+
const rows = groups.get(family) ?? [];
|
|
90
|
+
const bucket = rest.join(' · ') || family;
|
|
91
|
+
const label = /five[ -]?hour|5[ -]?hour/i.test(bucket) ? 'Five hour' : /weekly/i.test(bucket) ? 'Weekly' : bucket.replace(/\s+Limit(?: Remaining)?$/i, '');
|
|
92
|
+
rows.push({ ...pool, name: label });
|
|
93
|
+
groups.set(family, rows);
|
|
94
|
+
}
|
|
95
|
+
return <div style={{ position: 'relative', display: 'flex', alignItems: 'center' }}
|
|
96
|
+
onMouseEnter={() => setOpen(true)} onMouseLeave={() => setOpen(false)}
|
|
97
|
+
onFocus={() => setOpen(true)} onBlur={e => { if (!e.currentTarget.contains(e.relatedTarget)) setOpen(false); }}
|
|
98
|
+
onClick={e => { if ((e.target as HTMLElement).closest('[data-testid="provider-dot"]')) setOpen(true); }}
|
|
99
|
+
onKeyDown={e => { if ((e.key === 'Enter' || e.key === ' ') && (e.target as HTMLElement).closest('[data-testid="provider-dot"]')) { e.preventDefault(); setOpen(true); } }}>
|
|
100
|
+
<StatusDot letter="G" name="Antigravity CLI" state="live" title="Antigravity CLI: LIVE (hover for usage)" />
|
|
101
|
+
{open && <div ref={placeRef} role="tooltip" style={{ position: 'absolute', top: '100%', right: 0, boxSizing: 'border-box', minWidth: 'min(340px, calc(100vw / var(--ui-scale, 1) - 48px))', padding: '10px 14px', background: 'var(--color-bg-panel)', border: '1px solid var(--color-border-hairline)', borderRadius: '4px', boxShadow: '0 8px 24px rgba(0, 0, 0, 0.45)', fontFamily: 'var(--font-content)', zIndex: 30 }}>
|
|
102
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '8px', fontSize: '11px', lineHeight: 1.45 }}>
|
|
103
|
+
<UsageTitle name="Antigravity CLI" onRefresh={() => void refresh()} busy={loading} failed={failed} />
|
|
104
|
+
{loading && pools && <span role="status">Updating usage...</span>}
|
|
105
|
+
{loading && !pools ? <span>Loading usage...</span> : pools ? [...groups].map(([family, rows]) => <div key={family} style={{ display: 'flex', flexDirection: 'column', gap: '6px' }}>
|
|
106
|
+
<span>{family}</span>
|
|
107
|
+
{rows.map((row, index) => <UsageRow key={`${row.name}-${index}`} label={row.name} util={100 - row.percentLeft} resetsAt={row.reset} />)}
|
|
108
|
+
</div>) : <span>Usage unavailable here; run /usage in agy.</span>}
|
|
109
|
+
</div>
|
|
110
|
+
</div>}
|
|
111
|
+
</div>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// A provider that is not ready: the same letter and slot, a dot coloured by
|
|
115
|
+
// what it needs, and the need in words on hover, focus and for screen
|
|
116
|
+
// readers. When it needs the operator, a click or tap opens its Connections
|
|
117
|
+
// entry; while its status is still being checked it only describes itself.
|
|
118
|
+
function ProviderNeeds({ view }: { view: ProviderIndicator }) {
|
|
119
|
+
const color = view.state === 'runtime'
|
|
120
|
+
? 'var(--color-danger)'
|
|
121
|
+
: view.state === 'checking' || view.state === 'unknown'
|
|
122
|
+
? 'var(--color-fg-muted)'
|
|
123
|
+
: 'var(--color-warning)';
|
|
124
|
+
const label = `${view.name}: ${view.text}`;
|
|
125
|
+
const content = (
|
|
126
|
+
<>
|
|
127
|
+
<span aria-hidden style={{ width: '7px', height: '7px', borderRadius: '50%', boxSizing: 'border-box', background: view.state === 'checking' || view.state === 'unknown' ? 'transparent' : color, border: `1.5px ${view.state === 'sign-in' || view.state === 'rejected' ? 'dashed' : 'solid'} ${color}`, flexShrink: 0, opacity: view.state === 'checking' || view.state === 'unknown' ? 0.6 : 1 }} />
|
|
128
|
+
{view.letter}
|
|
129
|
+
</>
|
|
130
|
+
);
|
|
131
|
+
const style = { display: 'inline-flex', alignItems: 'center', gap: '4px', fontSize: '10px', letterSpacing: '0.5px', color, border: 0, padding: 0, background: 'transparent', font: 'inherit', fontFamily: 'var(--font-display)' } as const;
|
|
132
|
+
if (!view.attention) {
|
|
133
|
+
return <span role="img" tabIndex={0} title={label} aria-label={label} data-testid="provider-dot" data-provider={view.provider} data-state={view.state} className="display-font" style={style}>{content}</span>;
|
|
134
|
+
}
|
|
135
|
+
return (
|
|
136
|
+
<button
|
|
137
|
+
type="button"
|
|
138
|
+
title={label}
|
|
139
|
+
aria-label={label}
|
|
140
|
+
data-testid="provider-dot"
|
|
141
|
+
data-provider={view.provider}
|
|
142
|
+
data-state={view.state}
|
|
143
|
+
className="display-font provider-status-link"
|
|
144
|
+
onClick={() => { dismissProviderHovers(); useStartupStore.getState().openConnections(view.provider); }}
|
|
145
|
+
style={{ ...style, cursor: 'pointer' }}
|
|
146
|
+
>
|
|
147
|
+
{content}
|
|
148
|
+
</button>
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
44
152
|
// The compact dot trigger shared by every provider. `live` = filled accent dot,
|
|
45
153
|
// `ready` = hollow ring (daemon up but idle), `down` = filled danger dot.
|
|
46
154
|
type DotState = 'live' | 'ready' | 'down';
|
|
@@ -195,7 +303,7 @@ function CursorStatus({ usage }: { usage: CursorUsageInfo | null }) {
|
|
|
195
303
|
) : (
|
|
196
304
|
<span style={{ color: 'var(--color-fg-muted)' }}>
|
|
197
305
|
{usage?.needsLogin
|
|
198
|
-
?
|
|
306
|
+
? 'Not signed in to Cursor. Sign in from Connections.'
|
|
199
307
|
: (usage?.error ?? 'Cursor usage has not loaded yet.')}
|
|
200
308
|
</span>
|
|
201
309
|
)}
|