lcclaude 1.0.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/.env.example +21 -0
- package/README.en.md +333 -0
- package/README.md +333 -0
- package/bin/lcclaude.js +30 -0
- package/dist/preload.js +15 -0
- package/dist/runtime/bun-bundle-shim.js +10 -0
- package/dist/runtime/bun-wrap-shim.js +63 -0
- package/dist/src/QueryEngine.js +804 -0
- package/dist/src/Task.js +40 -0
- package/dist/src/Tool.js +33 -0
- package/dist/src/assistant/sessionHistory.js +39 -0
- package/dist/src/bootstrap/state.js +985 -0
- package/dist/src/bridge/bridgeApi.js +254 -0
- package/dist/src/bridge/bridgeConfig.js +14 -0
- package/dist/src/bridge/bridgeDebug.js +64 -0
- package/dist/src/bridge/bridgeEnabled.js +55 -0
- package/dist/src/bridge/bridgeMain.js +1547 -0
- package/dist/src/bridge/bridgeMessaging.js +249 -0
- package/dist/src/bridge/bridgePermissionCallbacks.js +7 -0
- package/dist/src/bridge/bridgePointer.js +105 -0
- package/dist/src/bridge/bridgeStatusUtil.js +81 -0
- package/dist/src/bridge/bridgeUI.js +375 -0
- package/dist/src/bridge/capacityWake.js +26 -0
- package/dist/src/bridge/codeSessionApi.js +78 -0
- package/dist/src/bridge/createSession.js +227 -0
- package/dist/src/bridge/debugUtils.js +80 -0
- package/dist/src/bridge/envLessBridgeConfig.js +61 -0
- package/dist/src/bridge/flushGate.js +32 -0
- package/dist/src/bridge/inboundAttachments.js +106 -0
- package/dist/src/bridge/inboundMessages.js +38 -0
- package/dist/src/bridge/initReplBridge.js +276 -0
- package/dist/src/bridge/jwtUtils.js +131 -0
- package/dist/src/bridge/pollConfig.js +28 -0
- package/dist/src/bridge/pollConfigDefaults.js +15 -0
- package/dist/src/bridge/remoteBridgeCore.js +511 -0
- package/dist/src/bridge/replBridge.js +1098 -0
- package/dist/src/bridge/replBridgeHandle.js +14 -0
- package/dist/src/bridge/replBridgeTransport.js +147 -0
- package/dist/src/bridge/sessionIdCompat.js +16 -0
- package/dist/src/bridge/sessionRunner.js +349 -0
- package/dist/src/bridge/trustedDevice.js +113 -0
- package/dist/src/bridge/types.js +6 -0
- package/dist/src/bridge/workSecret.js +51 -0
- package/dist/src/buddy/CompanionSprite.js +435 -0
- package/dist/src/buddy/companion.js +104 -0
- package/dist/src/buddy/prompt.js +31 -0
- package/dist/src/buddy/sprites.js +500 -0
- package/dist/src/buddy/types.js +85 -0
- package/dist/src/buddy/useBuddyNotification.js +93 -0
- package/dist/src/cli/exit.js +13 -0
- package/dist/src/cli/handlers/agents.js +55 -0
- package/dist/src/cli/handlers/auth.js +255 -0
- package/dist/src/cli/handlers/autoMode.js +117 -0
- package/dist/src/cli/handlers/mcp.js +304 -0
- package/dist/src/cli/handlers/plugins.js +538 -0
- package/dist/src/cli/handlers/util.js +119 -0
- package/dist/src/cli/ndjsonSafeStringify.js +8 -0
- package/dist/src/cli/print.js +3112 -0
- package/dist/src/cli/remoteIO.js +161 -0
- package/dist/src/cli/structuredIO.js +489 -0
- package/dist/src/cli/transports/HybridTransport.js +145 -0
- package/dist/src/cli/transports/SSETransport.js +403 -0
- package/dist/src/cli/transports/SerialBatchEventUploader.js +154 -0
- package/dist/src/cli/transports/WebSocketTransport.js +497 -0
- package/dist/src/cli/transports/WorkerStateUploader.js +69 -0
- package/dist/src/cli/transports/ccrClient.js +522 -0
- package/dist/src/cli/transports/transportUtils.js +25 -0
- package/dist/src/cli/update.js +361 -0
- package/dist/src/commands/add-dir/add-dir.js +140 -0
- package/dist/src/commands/add-dir/index.js +8 -0
- package/dist/src/commands/add-dir/validation.js +67 -0
- package/dist/src/commands/advisor.js +96 -0
- package/dist/src/commands/agents/agents.js +12 -0
- package/dist/src/commands/agents/index.js +7 -0
- package/dist/src/commands/ant-trace/index.js +1 -0
- package/dist/src/commands/autofix-pr/index.js +1 -0
- package/dist/src/commands/backfill-sessions/index.js +1 -0
- package/dist/src/commands/branch/branch.js +168 -0
- package/dist/src/commands/branch/index.js +9 -0
- package/dist/src/commands/break-cache/index.js +1 -0
- package/dist/src/commands/bridge/bridge.js +519 -0
- package/dist/src/commands/bridge/index.js +21 -0
- package/dist/src/commands/bridge-kick.js +145 -0
- package/dist/src/commands/brief.js +66 -0
- package/dist/src/commands/btw/btw.js +281 -0
- package/dist/src/commands/btw/index.js +9 -0
- package/dist/src/commands/bughunter/index.js +1 -0
- package/dist/src/commands/chrome/chrome.js +394 -0
- package/dist/src/commands/chrome/index.js +10 -0
- package/dist/src/commands/clear/caches.js +69 -0
- package/dist/src/commands/clear/clear.js +5 -0
- package/dist/src/commands/clear/conversation.js +156 -0
- package/dist/src/commands/clear/index.js +9 -0
- package/dist/src/commands/color/color.js +57 -0
- package/dist/src/commands/color/index.js +9 -0
- package/dist/src/commands/commit-push-pr.js +145 -0
- package/dist/src/commands/commit.js +83 -0
- package/dist/src/commands/compact/compact.js +161 -0
- package/dist/src/commands/compact/index.js +11 -0
- package/dist/src/commands/config/config.js +9 -0
- package/dist/src/commands/config/index.js +8 -0
- package/dist/src/commands/context/context-noninteractive.js +256 -0
- package/dist/src/commands/context/context.js +33 -0
- package/dist/src/commands/context/index.js +21 -0
- package/dist/src/commands/copy/copy.js +397 -0
- package/dist/src/commands/copy/index.js +7 -0
- package/dist/src/commands/cost/cost.js +21 -0
- package/dist/src/commands/cost/index.js +15 -0
- package/dist/src/commands/createMovedToPluginCommand.js +40 -0
- package/dist/src/commands/ctx_viz/index.js +1 -0
- package/dist/src/commands/debug-tool-call/index.js +1 -0
- package/dist/src/commands/desktop/desktop.js +7 -0
- package/dist/src/commands/desktop/index.js +22 -0
- package/dist/src/commands/diff/diff.js +10 -0
- package/dist/src/commands/diff/index.js +6 -0
- package/dist/src/commands/doctor/doctor.js +7 -0
- package/dist/src/commands/doctor/index.js +9 -0
- package/dist/src/commands/effort/effort.js +181 -0
- package/dist/src/commands/effort/index.js +11 -0
- package/dist/src/commands/env/index.js +1 -0
- package/dist/src/commands/exit/exit.js +25 -0
- package/dist/src/commands/exit/index.js +9 -0
- package/dist/src/commands/export/export.js +79 -0
- package/dist/src/commands/export/index.js +8 -0
- package/dist/src/commands/extra-usage/extra-usage-core.js +85 -0
- package/dist/src/commands/extra-usage/extra-usage-noninteractive.js +11 -0
- package/dist/src/commands/extra-usage/extra-usage.js +17 -0
- package/dist/src/commands/extra-usage/index.js +27 -0
- package/dist/src/commands/fast/fast.js +345 -0
- package/dist/src/commands/fast/index.js +23 -0
- package/dist/src/commands/feedback/feedback.js +15 -0
- package/dist/src/commands/feedback/index.js +13 -0
- package/dist/src/commands/files/files.js +13 -0
- package/dist/src/commands/files/index.js +9 -0
- package/dist/src/commands/good-claude/index.js +1 -0
- package/dist/src/commands/heapdump/heapdump.js +15 -0
- package/dist/src/commands/heapdump/index.js +9 -0
- package/dist/src/commands/help/help.js +12 -0
- package/dist/src/commands/help/index.js +7 -0
- package/dist/src/commands/hooks/hooks.js +14 -0
- package/dist/src/commands/hooks/index.js +8 -0
- package/dist/src/commands/ide/ide.js +702 -0
- package/dist/src/commands/ide/index.js +8 -0
- package/dist/src/commands/init-verifiers.js +258 -0
- package/dist/src/commands/init.js +240 -0
- package/dist/src/commands/insights.js +2212 -0
- package/dist/src/commands/install-github-app/ApiKeyStep.js +290 -0
- package/dist/src/commands/install-github-app/CheckExistingSecretStep.js +265 -0
- package/dist/src/commands/install-github-app/CheckGitHubStep.js +16 -0
- package/dist/src/commands/install-github-app/ChooseRepoStep.js +282 -0
- package/dist/src/commands/install-github-app/CreatingStep.js +87 -0
- package/dist/src/commands/install-github-app/ErrorStep.js +157 -0
- package/dist/src/commands/install-github-app/ExistingWorkflowStep.js +164 -0
- package/dist/src/commands/install-github-app/InstallAppStep.js +166 -0
- package/dist/src/commands/install-github-app/OAuthFlowStep.js +335 -0
- package/dist/src/commands/install-github-app/SuccessStep.js +173 -0
- package/dist/src/commands/install-github-app/WarningsStep.js +140 -0
- package/dist/src/commands/install-github-app/index.js +10 -0
- package/dist/src/commands/install-github-app/install-github-app.js +612 -0
- package/dist/src/commands/install-github-app/setupGitHubActions.js +223 -0
- package/dist/src/commands/install-slack-app/index.js +9 -0
- package/dist/src/commands/install-slack-app/install-slack-app.js +23 -0
- package/dist/src/commands/install.js +348 -0
- package/dist/src/commands/issue/index.js +1 -0
- package/dist/src/commands/keybindings/index.js +10 -0
- package/dist/src/commands/keybindings/keybindings.js +43 -0
- package/dist/src/commands/login/index.js +9 -0
- package/dist/src/commands/login/login.js +105 -0
- package/dist/src/commands/logout/index.js +8 -0
- package/dist/src/commands/logout/logout.js +68 -0
- package/dist/src/commands/mcp/addCommand.js +157 -0
- package/dist/src/commands/mcp/index.js +9 -0
- package/dist/src/commands/mcp/mcp.js +85 -0
- package/dist/src/commands/mcp/xaaIdpCommand.js +135 -0
- package/dist/src/commands/memory/index.js +7 -0
- package/dist/src/commands/memory/memory.js +95 -0
- package/dist/src/commands/mobile/index.js +8 -0
- package/dist/src/commands/mobile/mobile.js +324 -0
- package/dist/src/commands/mock-limits/index.js +1 -0
- package/dist/src/commands/model/index.js +14 -0
- package/dist/src/commands/model/model.js +289 -0
- package/dist/src/commands/oauth-refresh/index.js +1 -0
- package/dist/src/commands/onboarding/index.js +1 -0
- package/dist/src/commands/output-style/index.js +8 -0
- package/dist/src/commands/output-style/output-style.js +5 -0
- package/dist/src/commands/passes/index.js +20 -0
- package/dist/src/commands/passes/passes.js +23 -0
- package/dist/src/commands/perf-issue/index.js +1 -0
- package/dist/src/commands/permissions/index.js +8 -0
- package/dist/src/commands/permissions/permissions.js +11 -0
- package/dist/src/commands/plan/index.js +8 -0
- package/dist/src/commands/plan/plan.js +151 -0
- package/dist/src/commands/plugin/AddMarketplace.js +202 -0
- package/dist/src/commands/plugin/BrowseMarketplace.js +918 -0
- package/dist/src/commands/plugin/DiscoverPlugins.js +935 -0
- package/dist/src/commands/plugin/ManageMarketplaces.js +1018 -0
- package/dist/src/commands/plugin/ManagePlugins.js +2230 -0
- package/dist/src/commands/plugin/PluginErrors.js +118 -0
- package/dist/src/commands/plugin/PluginOptionsDialog.js +396 -0
- package/dist/src/commands/plugin/PluginOptionsFlow.js +80 -0
- package/dist/src/commands/plugin/PluginSettings.js +1313 -0
- package/dist/src/commands/plugin/PluginTrustWarning.js +50 -0
- package/dist/src/commands/plugin/UnifiedInstalledCell.js +749 -0
- package/dist/src/commands/plugin/ValidatePlugin.js +113 -0
- package/dist/src/commands/plugin/index.js +9 -0
- package/dist/src/commands/plugin/parseArgs.js +61 -0
- package/dist/src/commands/plugin/plugin.js +8 -0
- package/dist/src/commands/plugin/pluginDetailsHelpers.js +114 -0
- package/dist/src/commands/plugin/usePagination.js +75 -0
- package/dist/src/commands/pr_comments/index.js +49 -0
- package/dist/src/commands/privacy-settings/index.js +11 -0
- package/dist/src/commands/privacy-settings/privacy-settings.js +58 -0
- package/dist/src/commands/rate-limit-options/index.js +15 -0
- package/dist/src/commands/rate-limit-options/rate-limit-options.js +211 -0
- package/dist/src/commands/release-notes/index.js +8 -0
- package/dist/src/commands/release-notes/release-notes.js +38 -0
- package/dist/src/commands/reload-plugins/index.js +8 -0
- package/dist/src/commands/reload-plugins/reload-plugins.js +27 -0
- package/dist/src/commands/remote-env/index.js +12 -0
- package/dist/src/commands/remote-env/remote-env.js +7 -0
- package/dist/src/commands/remote-setup/api.js +121 -0
- package/dist/src/commands/remote-setup/index.js +14 -0
- package/dist/src/commands/remote-setup/remote-setup.js +173 -0
- package/dist/src/commands/rename/generateSessionName.js +51 -0
- package/dist/src/commands/rename/index.js +9 -0
- package/dist/src/commands/rename/rename.js +52 -0
- package/dist/src/commands/reset-limits/index.js +4 -0
- package/dist/src/commands/resume/index.js +9 -0
- package/dist/src/commands/resume/resume.js +281 -0
- package/dist/src/commands/review/UltrareviewOverageDialog.js +112 -0
- package/dist/src/commands/review/reviewRemote.js +193 -0
- package/dist/src/commands/review/ultrareviewCommand.js +50 -0
- package/dist/src/commands/review/ultrareviewEnabled.js +5 -0
- package/dist/src/commands/review.js +45 -0
- package/dist/src/commands/rewind/index.js +10 -0
- package/dist/src/commands/rewind/rewind.js +6 -0
- package/dist/src/commands/sandbox-toggle/index.js +35 -0
- package/dist/src/commands/sandbox-toggle/sandbox-toggle.js +61 -0
- package/dist/src/commands/security-review.js +228 -0
- package/dist/src/commands/session/index.js +13 -0
- package/dist/src/commands/session/session.js +185 -0
- package/dist/src/commands/share/index.js +1 -0
- package/dist/src/commands/skills/index.js +7 -0
- package/dist/src/commands/skills/skills.js +8 -0
- package/dist/src/commands/stats/index.js +7 -0
- package/dist/src/commands/stats/stats.js +7 -0
- package/dist/src/commands/status/index.js +8 -0
- package/dist/src/commands/status/status.js +9 -0
- package/dist/src/commands/statusline.js +20 -0
- package/dist/src/commands/stickers/index.js +8 -0
- package/dist/src/commands/stickers/stickers.js +13 -0
- package/dist/src/commands/summary/index.js +1 -0
- package/dist/src/commands/tag/index.js +9 -0
- package/dist/src/commands/tag/tag.js +250 -0
- package/dist/src/commands/tasks/index.js +8 -0
- package/dist/src/commands/tasks/tasks.js +8 -0
- package/dist/src/commands/teleport/index.js +1 -0
- package/dist/src/commands/terminalSetup/index.js +15 -0
- package/dist/src/commands/terminalSetup/terminalSetup.js +425 -0
- package/dist/src/commands/theme/index.js +7 -0
- package/dist/src/commands/theme/theme.js +58 -0
- package/dist/src/commands/thinkback/index.js +9 -0
- package/dist/src/commands/thinkback/thinkback.js +569 -0
- package/dist/src/commands/thinkback-play/index.js +11 -0
- package/dist/src/commands/thinkback-play/thinkback-play.js +31 -0
- package/dist/src/commands/ultraplan.js +361 -0
- package/dist/src/commands/upgrade/index.js +11 -0
- package/dist/src/commands/upgrade/upgrade.js +37 -0
- package/dist/src/commands/usage/index.js +7 -0
- package/dist/src/commands/usage/usage.js +9 -0
- package/dist/src/commands/version.js +15 -0
- package/dist/src/commands/vim/index.js +8 -0
- package/dist/src/commands/vim/vim.js +24 -0
- package/dist/src/commands/voice/index.js +17 -0
- package/dist/src/commands/voice/voice.js +117 -0
- package/dist/src/commands.js +476 -0
- package/dist/src/components/AgentProgressLine.js +202 -0
- package/dist/src/components/App.js +53 -0
- package/dist/src/components/ApproveApiKey.js +156 -0
- package/dist/src/components/AutoModeOptInDialog.js +154 -0
- package/dist/src/components/AutoUpdater.js +178 -0
- package/dist/src/components/AutoUpdaterWrapper.js +91 -0
- package/dist/src/components/AwsAuthStatusBox.js +119 -0
- package/dist/src/components/BaseTextInput.js +158 -0
- package/dist/src/components/BashModeProgress.js +65 -0
- package/dist/src/components/BridgeDialog.js +460 -0
- package/dist/src/components/BypassPermissionsModeDialog.js +111 -0
- package/dist/src/components/ChannelDowngradeDialog.js +114 -0
- package/dist/src/components/ClaudeCodeHint/PluginHintMenu.js +120 -0
- package/dist/src/components/ClaudeInChromeOnboarding.js +176 -0
- package/dist/src/components/ClaudeMdExternalIncludesDialog.js +172 -0
- package/dist/src/components/ClickableImageRef.js +74 -0
- package/dist/src/components/CompactSummary.js +220 -0
- package/dist/src/components/ConfigurableShortcutHint.js +33 -0
- package/dist/src/components/ConsoleOAuthFlow.js +841 -0
- package/dist/src/components/ContextSuggestions.js +85 -0
- package/dist/src/components/ContextVisualization.js +878 -0
- package/dist/src/components/CoordinatorAgentStatus.js +304 -0
- package/dist/src/components/CostThresholdDialog.js +66 -0
- package/dist/src/components/CtrlOToExpand.js +56 -0
- package/dist/src/components/CustomSelect/SelectMulti.js +246 -0
- package/dist/src/components/CustomSelect/index.js +2 -0
- package/dist/src/components/CustomSelect/option-map.js +32 -0
- package/dist/src/components/CustomSelect/select-input-option.js +558 -0
- package/dist/src/components/CustomSelect/select-option.js +39 -0
- package/dist/src/components/CustomSelect/select.js +803 -0
- package/dist/src/components/CustomSelect/use-multi-select-state.js +175 -0
- package/dist/src/components/CustomSelect/use-select-input.js +163 -0
- package/dist/src/components/CustomSelect/use-select-navigation.js +334 -0
- package/dist/src/components/CustomSelect/use-select-state.js +30 -0
- package/dist/src/components/DesktopHandoff.js +214 -0
- package/dist/src/components/DesktopUpsell/DesktopUpsellStartup.js +185 -0
- package/dist/src/components/DevBar.js +53 -0
- package/dist/src/components/DevChannelsDialog.js +128 -0
- package/dist/src/components/DiagnosticsDisplay.js +149 -0
- package/dist/src/components/EffortCallout.js +302 -0
- package/dist/src/components/EffortIndicator.js +30 -0
- package/dist/src/components/ExitFlow.js +45 -0
- package/dist/src/components/ExportDialog.js +160 -0
- package/dist/src/components/FallbackToolUseErrorMessage.js +149 -0
- package/dist/src/components/FallbackToolUseRejectedMessage.js +18 -0
- package/dist/src/components/FastIcon.js +49 -0
- package/dist/src/components/Feedback.js +589 -0
- package/dist/src/components/FeedbackSurvey/FeedbackSurvey.js +219 -0
- package/dist/src/components/FeedbackSurvey/FeedbackSurveyView.js +168 -0
- package/dist/src/components/FeedbackSurvey/TranscriptSharePrompt.js +147 -0
- package/dist/src/components/FeedbackSurvey/submitTranscriptShare.js +70 -0
- package/dist/src/components/FeedbackSurvey/useDebouncedDigitInput.js +45 -0
- package/dist/src/components/FeedbackSurvey/useFeedbackSurvey.js +242 -0
- package/dist/src/components/FeedbackSurvey/useMemorySurvey.js +188 -0
- package/dist/src/components/FeedbackSurvey/usePostCompactSurvey.js +200 -0
- package/dist/src/components/FeedbackSurvey/useSurveyState.js +81 -0
- package/dist/src/components/FileEditToolDiff.js +193 -0
- package/dist/src/components/FileEditToolUpdatedMessage.js +162 -0
- package/dist/src/components/FileEditToolUseRejectedMessage.js +215 -0
- package/dist/src/components/FilePathLink.js +33 -0
- package/dist/src/components/FullscreenLayout.js +592 -0
- package/dist/src/components/GlobalSearchDialog.js +371 -0
- package/dist/src/components/HelpV2/Commands.js +99 -0
- package/dist/src/components/HelpV2/General.js +48 -0
- package/dist/src/components/HelpV2/HelpV2.js +231 -0
- package/dist/src/components/HighlightedCode/Fallback.js +200 -0
- package/dist/src/components/HighlightedCode.js +219 -0
- package/dist/src/components/HistorySearchDialog.js +144 -0
- package/dist/src/components/IdeAutoConnectDialog.js +172 -0
- package/dist/src/components/IdeOnboardingDialog.js +249 -0
- package/dist/src/components/IdeStatusIndicator.js +68 -0
- package/dist/src/components/IdleReturnDialog.js +126 -0
- package/dist/src/components/InterruptedByUser.js +25 -0
- package/dist/src/components/InvalidConfigDialog.js +173 -0
- package/dist/src/components/InvalidSettingsDialog.js +94 -0
- package/dist/src/components/KeybindingWarnings.js +144 -0
- package/dist/src/components/LanguagePicker.js +112 -0
- package/dist/src/components/LogSelector.js +1775 -0
- package/dist/src/components/LogoV2/AnimatedAsterisk.js +49 -0
- package/dist/src/components/LogoV2/AnimatedClawd.js +105 -0
- package/dist/src/components/LogoV2/ChannelsNotice.js +334 -0
- package/dist/src/components/LogoV2/Clawd.js +285 -0
- package/dist/src/components/LogoV2/CondensedLogo.js +218 -0
- package/dist/src/components/LogoV2/EmergencyTip.js +47 -0
- package/dist/src/components/LogoV2/Feed.js +140 -0
- package/dist/src/components/LogoV2/FeedColumn.js +67 -0
- package/dist/src/components/LogoV2/GuestPassesUpsell.js +90 -0
- package/dist/src/components/LogoV2/LogoV2.js +774 -0
- package/dist/src/components/LogoV2/Opus1mMergeNotice.js +68 -0
- package/dist/src/components/LogoV2/OverageCreditUpsell.js +154 -0
- package/dist/src/components/LogoV2/VoiceModeNotice.js +75 -0
- package/dist/src/components/LogoV2/WelcomeV2.js +976 -0
- package/dist/src/components/LogoV2/feedConfigs.js +89 -0
- package/dist/src/components/LspRecommendation/LspRecommendationMenu.js +128 -0
- package/dist/src/components/MCPServerApprovalDialog.js +121 -0
- package/dist/src/components/MCPServerDesktopImportDialog.js +249 -0
- package/dist/src/components/MCPServerDialogCopy.js +24 -0
- package/dist/src/components/MCPServerMultiselectDialog.js +173 -0
- package/dist/src/components/ManagedSettingsSecurityDialog/ManagedSettingsSecurityDialog.js +199 -0
- package/dist/src/components/ManagedSettingsSecurityDialog/utils.js +75 -0
- package/dist/src/components/Markdown.js +200 -0
- package/dist/src/components/MarkdownTable.js +215 -0
- package/dist/src/components/MemoryUsageIndicator.js +33 -0
- package/dist/src/components/Message.js +638 -0
- package/dist/src/components/MessageModel.js +43 -0
- package/dist/src/components/MessageResponse.js +99 -0
- package/dist/src/components/MessageRow.js +350 -0
- package/dist/src/components/MessageSelector.js +1021 -0
- package/dist/src/components/MessageTimestamp.js +63 -0
- package/dist/src/components/Messages.js +576 -0
- package/dist/src/components/ModelPicker.js +582 -0
- package/dist/src/components/NativeAutoUpdater.js +169 -0
- package/dist/src/components/NotebookEditToolUseRejectedMessage.js +123 -0
- package/dist/src/components/OffscreenFreeze.js +21 -0
- package/dist/src/components/Onboarding.js +307 -0
- package/dist/src/components/OutputStylePicker.js +128 -0
- package/dist/src/components/PackageManagerAutoUpdater.js +116 -0
- package/dist/src/components/Passes/Passes.js +242 -0
- package/dist/src/components/PrBadge.js +119 -0
- package/dist/src/components/PressEnterToContinue.js +24 -0
- package/dist/src/components/PromptInput/HistorySearchInput.js +64 -0
- package/dist/src/components/PromptInput/IssueFlagBanner.js +6 -0
- package/dist/src/components/PromptInput/Notifications.js +343 -0
- package/dist/src/components/PromptInput/PromptInput.js +1837 -0
- package/dist/src/components/PromptInput/PromptInputFooter.js +192 -0
- package/dist/src/components/PromptInput/PromptInputFooterLeftSide.js +504 -0
- package/dist/src/components/PromptInput/PromptInputFooterSuggestions.js +296 -0
- package/dist/src/components/PromptInput/PromptInputHelpMenu.js +508 -0
- package/dist/src/components/PromptInput/PromptInputModeIndicator.js +92 -0
- package/dist/src/components/PromptInput/PromptInputQueuedCommands.js +90 -0
- package/dist/src/components/PromptInput/PromptInputStashNotice.js +30 -0
- package/dist/src/components/PromptInput/SandboxPromptFooterHint.js +80 -0
- package/dist/src/components/PromptInput/ShimmeredInput.js +157 -0
- package/dist/src/components/PromptInput/VoiceIndicator.js +138 -0
- package/dist/src/components/PromptInput/inputModes.js +24 -0
- package/dist/src/components/PromptInput/inputPaste.js +46 -0
- package/dist/src/components/PromptInput/useMaybeTruncateInput.js +36 -0
- package/dist/src/components/PromptInput/usePromptInputPlaceholder.js +39 -0
- package/dist/src/components/PromptInput/useShowFastIconHint.js +19 -0
- package/dist/src/components/PromptInput/useSwarmBanner.js +99 -0
- package/dist/src/components/PromptInput/utils.js +25 -0
- package/dist/src/components/QuickOpenDialog.js +272 -0
- package/dist/src/components/RemoteCallout.js +81 -0
- package/dist/src/components/RemoteEnvironmentDialog.js +451 -0
- package/dist/src/components/ResumeTask.js +361 -0
- package/dist/src/components/SandboxViolationExpandedView.js +134 -0
- package/dist/src/components/ScrollKeybindingHandler.js +589 -0
- package/dist/src/components/SearchBox.js +111 -0
- package/dist/src/components/SentryErrorBoundary.js +17 -0
- package/dist/src/components/SessionBackgroundHint.js +103 -0
- package/dist/src/components/SessionPreview.js +263 -0
- package/dist/src/components/Settings/Config.js +1776 -0
- package/dist/src/components/Settings/Settings.js +159 -0
- package/dist/src/components/Settings/Status.js +315 -0
- package/dist/src/components/Settings/Usage.js +503 -0
- package/dist/src/components/ShowInIDEPrompt.js +212 -0
- package/dist/src/components/SkillImprovementSurvey.js +204 -0
- package/dist/src/components/Spinner/FlashingChar.js +60 -0
- package/dist/src/components/Spinner/GlimmerMessage.js +391 -0
- package/dist/src/components/Spinner/ShimmerChar.js +30 -0
- package/dist/src/components/Spinner/SpinnerAnimationRow.js +248 -0
- package/dist/src/components/Spinner/SpinnerGlyph.js +105 -0
- package/dist/src/components/Spinner/TeammateSpinnerLine.js +243 -0
- package/dist/src/components/Spinner/TeammateSpinnerTree.js +360 -0
- package/dist/src/components/Spinner/index.js +7 -0
- package/dist/src/components/Spinner/teammateSelectHint.js +1 -0
- package/dist/src/components/Spinner/useShimmerAnimation.js +17 -0
- package/dist/src/components/Spinner/useStalledAnimation.js +47 -0
- package/dist/src/components/Spinner/utils.js +65 -0
- package/dist/src/components/Spinner.js +596 -0
- package/dist/src/components/Stats.js +1415 -0
- package/dist/src/components/StatusLine.js +264 -0
- package/dist/src/components/StatusNotices.js +50 -0
- package/dist/src/components/StructuredDiff/Fallback.js +379 -0
- package/dist/src/components/StructuredDiff/colorDiff.js +21 -0
- package/dist/src/components/StructuredDiff.js +170 -0
- package/dist/src/components/StructuredDiffList.js +30 -0
- package/dist/src/components/TagTabs.js +124 -0
- package/dist/src/components/TaskListV2.js +430 -0
- package/dist/src/components/TeammateViewHeader.js +112 -0
- package/dist/src/components/TeleportError.js +200 -0
- package/dist/src/components/TeleportProgress.js +175 -0
- package/dist/src/components/TeleportRepoMismatchDialog.js +160 -0
- package/dist/src/components/TeleportResumeWrapper.js +207 -0
- package/dist/src/components/TeleportStash.js +159 -0
- package/dist/src/components/TextInput.js +94 -0
- package/dist/src/components/ThemePicker.js +428 -0
- package/dist/src/components/ThinkingToggle.js +233 -0
- package/dist/src/components/TokenWarning.js +165 -0
- package/dist/src/components/ToolUseLoader.js +44 -0
- package/dist/src/components/TrustDialog/TrustDialog.js +337 -0
- package/dist/src/components/TrustDialog/utils.js +149 -0
- package/dist/src/components/ValidationErrorsList.js +169 -0
- package/dist/src/components/VimTextInput.js +142 -0
- package/dist/src/components/VirtualMessageList.js +745 -0
- package/dist/src/components/WorkflowMultiselectDialog.js +173 -0
- package/dist/src/components/WorktreeExitDialog.js +228 -0
- package/dist/src/components/agents/AgentDetail.js +371 -0
- package/dist/src/components/agents/AgentEditor.js +191 -0
- package/dist/src/components/agents/AgentNavigationFooter.js +28 -0
- package/dist/src/components/agents/AgentsList.js +623 -0
- package/dist/src/components/agents/AgentsMenu.js +897 -0
- package/dist/src/components/agents/ColorPicker.js +170 -0
- package/dist/src/components/agents/ModelSelector.js +79 -0
- package/dist/src/components/agents/ToolSelector.js +581 -0
- package/dist/src/components/agents/agentFileUtils.js +142 -0
- package/dist/src/components/agents/generateAgent.js +160 -0
- package/dist/src/components/agents/new-agent-creation/CreateAgentWizard.js +101 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ColorStep.js +108 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ConfirmStep.js +551 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ConfirmStepWrapper.js +73 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/DescriptionStep.js +176 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/GenerateStep.js +176 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/LocationStep.js +104 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/MemoryStep.js +136 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/MethodStep.js +105 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ModelStep.js +75 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/PromptStep.js +185 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/ToolsStep.js +81 -0
- package/dist/src/components/agents/new-agent-creation/wizard-steps/TypeStep.js +146 -0
- package/dist/src/components/agents/types.js +4 -0
- package/dist/src/components/agents/utils.js +14 -0
- package/dist/src/components/agents/validateAgent.js +66 -0
- package/dist/src/components/design-system/Byline.js +53 -0
- package/dist/src/components/design-system/Dialog.js +171 -0
- package/dist/src/components/design-system/Divider.js +107 -0
- package/dist/src/components/design-system/FuzzyPicker.js +316 -0
- package/dist/src/components/design-system/KeyboardShortcutHint.js +63 -0
- package/dist/src/components/design-system/ListItem.js +186 -0
- package/dist/src/components/design-system/LoadingState.js +72 -0
- package/dist/src/components/design-system/Pane.js +67 -0
- package/dist/src/components/design-system/ProgressBar.js +67 -0
- package/dist/src/components/design-system/Ratchet.js +83 -0
- package/dist/src/components/design-system/StatusIcon.js +60 -0
- package/dist/src/components/design-system/Tabs.js +332 -0
- package/dist/src/components/design-system/ThemeProvider.js +117 -0
- package/dist/src/components/design-system/ThemedBox.js +123 -0
- package/dist/src/components/design-system/ThemedText.js +68 -0
- package/dist/src/components/design-system/color.js +13 -0
- package/dist/src/components/diff/DiffDetailView.js +388 -0
- package/dist/src/components/diff/DiffDialog.js +489 -0
- package/dist/src/components/diff/DiffFileList.js +359 -0
- package/dist/src/components/grove/Grove.js +710 -0
- package/dist/src/components/hooks/HooksConfigMenu.js +626 -0
- package/dist/src/components/hooks/PromptDialog.js +96 -0
- package/dist/src/components/hooks/SelectEventMode.js +169 -0
- package/dist/src/components/hooks/SelectHookMode.js +127 -0
- package/dist/src/components/hooks/SelectMatcherMode.js +156 -0
- package/dist/src/components/hooks/ViewHookMode.js +275 -0
- package/dist/src/components/mcp/CapabilitiesSection.js +68 -0
- package/dist/src/components/mcp/ElicitationDialog.js +1330 -0
- package/dist/src/components/mcp/MCPAgentServerMenu.js +275 -0
- package/dist/src/components/mcp/MCPListPanel.js +671 -0
- package/dist/src/components/mcp/MCPReconnect.js +210 -0
- package/dist/src/components/mcp/MCPRemoteServerMenu.js +906 -0
- package/dist/src/components/mcp/MCPSettings.js +415 -0
- package/dist/src/components/mcp/MCPStdioServerMenu.js +276 -0
- package/dist/src/components/mcp/MCPToolDetailView.js +316 -0
- package/dist/src/components/mcp/MCPToolListView.js +169 -0
- package/dist/src/components/mcp/McpParsingWarnings.js +319 -0
- package/dist/src/components/mcp/index.js +8 -0
- package/dist/src/components/mcp/utils/reconnectHelpers.js +28 -0
- package/dist/src/components/memory/MemoryFileSelector.js +459 -0
- package/dist/src/components/memory/MemoryUpdateNotification.js +51 -0
- package/dist/src/components/messageActions.js +464 -0
- package/dist/src/components/messages/AdvisorMessage.js +202 -0
- package/dist/src/components/messages/AssistantRedactedThinkingMessage.js +34 -0
- package/dist/src/components/messages/AssistantTextMessage.js +373 -0
- package/dist/src/components/messages/AssistantThinkingMessage.js +105 -0
- package/dist/src/components/messages/AssistantToolUseMessage.js +414 -0
- package/dist/src/components/messages/AttachmentMessage.js +764 -0
- package/dist/src/components/messages/CollapsedReadSearchContent.js +651 -0
- package/dist/src/components/messages/CompactBoundaryMessage.js +27 -0
- package/dist/src/components/messages/GroupedToolUseContent.js +42 -0
- package/dist/src/components/messages/HighlightedThinkingText.js +215 -0
- package/dist/src/components/messages/HookProgressMessage.js +150 -0
- package/dist/src/components/messages/PlanApprovalMessage.js +294 -0
- package/dist/src/components/messages/RateLimitMessage.js +164 -0
- package/dist/src/components/messages/ShutdownMessage.js +180 -0
- package/dist/src/components/messages/SystemAPIErrorMessage.js +162 -0
- package/dist/src/components/messages/SystemTextMessage.js +1145 -0
- package/dist/src/components/messages/TaskAssignmentMessage.js +100 -0
- package/dist/src/components/messages/UserAgentNotificationMessage.js +89 -0
- package/dist/src/components/messages/UserBashInputMessage.js +67 -0
- package/dist/src/components/messages/UserBashOutputMessage.js +56 -0
- package/dist/src/components/messages/UserChannelMessage.js +145 -0
- package/dist/src/components/messages/UserCommandMessage.js +146 -0
- package/dist/src/components/messages/UserImageMessage.js +59 -0
- package/dist/src/components/messages/UserLocalCommandOutputMessage.js +226 -0
- package/dist/src/components/messages/UserMemoryInputMessage.js +101 -0
- package/dist/src/components/messages/UserPlanMessage.js +56 -0
- package/dist/src/components/messages/UserPromptMessage.js +54 -0
- package/dist/src/components/messages/UserResourceUpdateMessage.js +131 -0
- package/dist/src/components/messages/UserTeammateMessage.js +215 -0
- package/dist/src/components/messages/UserTextMessage.js +207 -0
- package/dist/src/components/messages/UserToolResultMessage/RejectedPlanMessage.js +46 -0
- package/dist/src/components/messages/UserToolResultMessage/RejectedToolUseMessage.js +21 -0
- package/dist/src/components/messages/UserToolResultMessage/UserToolCanceledMessage.js +18 -0
- package/dist/src/components/messages/UserToolResultMessage/UserToolErrorMessage.js +90 -0
- package/dist/src/components/messages/UserToolResultMessage/UserToolRejectMessage.js +80 -0
- package/dist/src/components/messages/UserToolResultMessage/UserToolResultMessage.js +116 -0
- package/dist/src/components/messages/UserToolResultMessage/UserToolSuccessMessage.js +73 -0
- package/dist/src/components/messages/UserToolResultMessage/utils.js +41 -0
- package/dist/src/components/messages/nullRenderingAttachments.js +40 -0
- package/dist/src/components/messages/teamMemCollapsed.js +160 -0
- package/dist/src/components/messages/teamMemSaved.js +9 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.js +696 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/PreviewBox.js +263 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/PreviewQuestionView.js +384 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/QuestionNavigationBar.js +228 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/QuestionView.js +611 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/SubmitQuestionsView.js +218 -0
- package/dist/src/components/permissions/AskUserQuestionPermissionRequest/use-multiple-choice-state.js +98 -0
- package/dist/src/components/permissions/BashPermissionRequest/BashPermissionRequest.js +458 -0
- package/dist/src/components/permissions/BashPermissionRequest/bashToolUseOptions.js +90 -0
- package/dist/src/components/permissions/ComputerUseApproval/ComputerUseApproval.js +567 -0
- package/dist/src/components/permissions/EnterPlanModePermissionRequest/EnterPlanModePermissionRequest.js +175 -0
- package/dist/src/components/permissions/ExitPlanModePermissionRequest/ExitPlanModePermissionRequest.js +728 -0
- package/dist/src/components/permissions/FallbackPermissionRequest.js +385 -0
- package/dist/src/components/permissions/FileEditPermissionRequest/FileEditPermissionRequest.js +205 -0
- package/dist/src/components/permissions/FilePermissionDialog/FilePermissionDialog.js +188 -0
- package/dist/src/components/permissions/FilePermissionDialog/ideDiffConfig.js +13 -0
- package/dist/src/components/permissions/FilePermissionDialog/permissionOptions.js +159 -0
- package/dist/src/components/permissions/FilePermissionDialog/useFilePermissionDialog.js +129 -0
- package/dist/src/components/permissions/FilePermissionDialog/usePermissionHandler.js +100 -0
- package/dist/src/components/permissions/FileWritePermissionRequest/FileWritePermissionRequest.js +186 -0
- package/dist/src/components/permissions/FileWritePermissionRequest/FileWriteToolDiff.js +110 -0
- package/dist/src/components/permissions/FilesystemPermissionRequest/FilesystemPermissionRequest.js +143 -0
- package/dist/src/components/permissions/NotebookEditPermissionRequest/NotebookEditPermissionRequest.js +194 -0
- package/dist/src/components/permissions/NotebookEditPermissionRequest/NotebookEditToolDiff.js +278 -0
- package/dist/src/components/permissions/PermissionDecisionDebugInfo.js +709 -0
- package/dist/src/components/permissions/PermissionDialog.js +90 -0
- package/dist/src/components/permissions/PermissionExplanation.js +298 -0
- package/dist/src/components/permissions/PermissionPrompt.js +327 -0
- package/dist/src/components/permissions/PermissionRequest.js +164 -0
- package/dist/src/components/permissions/PermissionRequestTitle.js +85 -0
- package/dist/src/components/permissions/PermissionRuleExplanation.js +112 -0
- package/dist/src/components/permissions/PowerShellPermissionRequest/PowerShellPermissionRequest.js +263 -0
- package/dist/src/components/permissions/PowerShellPermissionRequest/powershellToolUseOptions.js +70 -0
- package/dist/src/components/permissions/SandboxPermissionRequest.js +205 -0
- package/dist/src/components/permissions/SedEditPermissionRequest/SedEditPermissionRequest.js +259 -0
- package/dist/src/components/permissions/SkillPermissionRequest/SkillPermissionRequest.js +424 -0
- package/dist/src/components/permissions/WebFetchPermissionRequest/WebFetchPermissionRequest.js +299 -0
- package/dist/src/components/permissions/WorkerBadge.js +56 -0
- package/dist/src/components/permissions/WorkerPendingPermission.js +158 -0
- package/dist/src/components/permissions/hooks.js +128 -0
- package/dist/src/components/permissions/rules/AddPermissionRules.js +203 -0
- package/dist/src/components/permissions/rules/AddWorkspaceDirectory.js +437 -0
- package/dist/src/components/permissions/rules/PermissionRuleDescription.js +101 -0
- package/dist/src/components/permissions/rules/PermissionRuleInput.js +208 -0
- package/dist/src/components/permissions/rules/PermissionRuleList.js +1382 -0
- package/dist/src/components/permissions/rules/RecentDenialsTab.js +229 -0
- package/dist/src/components/permissions/rules/RemoveWorkspaceDirectory.js +123 -0
- package/dist/src/components/permissions/rules/WorkspaceTab.js +161 -0
- package/dist/src/components/permissions/shellPermissionHelpers.js +219 -0
- package/dist/src/components/permissions/useShellPermissionFeedback.js +98 -0
- package/dist/src/components/permissions/utils.js +18 -0
- package/dist/src/components/sandbox/SandboxConfigTab.js +195 -0
- package/dist/src/components/sandbox/SandboxDependenciesTab.js +265 -0
- package/dist/src/components/sandbox/SandboxDoctorSection.js +80 -0
- package/dist/src/components/sandbox/SandboxOverridesTab.js +272 -0
- package/dist/src/components/sandbox/SandboxSettings.js +374 -0
- package/dist/src/components/shell/ExpandShellOutputContext.js +25 -0
- package/dist/src/components/shell/OutputLine.js +107 -0
- package/dist/src/components/shell/ShellProgressMessage.js +189 -0
- package/dist/src/components/shell/ShellTimeDisplay.js +78 -0
- package/dist/src/components/skills/SkillsMenu.js +310 -0
- package/dist/src/components/tasks/AsyncAgentDetailDialog.js +353 -0
- package/dist/src/components/tasks/BackgroundTask.js +428 -0
- package/dist/src/components/tasks/BackgroundTaskStatus.js +522 -0
- package/dist/src/components/tasks/BackgroundTasksDialog.js +784 -0
- package/dist/src/components/tasks/DreamDetailDialog.js +353 -0
- package/dist/src/components/tasks/InProcessTeammateDetailDialog.js +393 -0
- package/dist/src/components/tasks/RemoteSessionDetailDialog.js +1188 -0
- package/dist/src/components/tasks/RemoteSessionProgress.js +310 -0
- package/dist/src/components/tasks/ShellDetailDialog.js +511 -0
- package/dist/src/components/tasks/ShellProgress.js +93 -0
- package/dist/src/components/tasks/renderToolActivity.js +34 -0
- package/dist/src/components/tasks/taskStatusUtils.js +77 -0
- package/dist/src/components/teams/TeamStatus.js +95 -0
- package/dist/src/components/teams/TeamsDialog.js +734 -0
- package/dist/src/components/ui/OrderedList.js +74 -0
- package/dist/src/components/ui/OrderedListItem.js +53 -0
- package/dist/src/components/ui/TreeSelect.js +307 -0
- package/dist/src/components/wizard/WizardDialogLayout.js +71 -0
- package/dist/src/components/wizard/WizardNavigationFooter.js +36 -0
- package/dist/src/components/wizard/WizardProvider.js +211 -0
- package/dist/src/components/wizard/index.js +4 -0
- package/dist/src/components/wizard/useWizard.js +9 -0
- package/dist/src/constants/apiLimits.js +11 -0
- package/dist/src/constants/betas.js +28 -0
- package/dist/src/constants/common.js +16 -0
- package/dist/src/constants/cyberRiskInstruction.js +1 -0
- package/dist/src/constants/errorIds.js +1 -0
- package/dist/src/constants/figures.js +31 -0
- package/dist/src/constants/files.js +115 -0
- package/dist/src/constants/github-app.js +139 -0
- package/dist/src/constants/keys.js +4 -0
- package/dist/src/constants/messages.js +1 -0
- package/dist/src/constants/oauth.js +141 -0
- package/dist/src/constants/outputStyles.js +155 -0
- package/dist/src/constants/product.js +25 -0
- package/dist/src/constants/prompts.js +544 -0
- package/dist/src/constants/spinnerVerbs.js +201 -0
- package/dist/src/constants/system.js +46 -0
- package/dist/src/constants/systemPromptSections.js +27 -0
- package/dist/src/constants/toolLimits.js +6 -0
- package/dist/src/constants/tools.js +75 -0
- package/dist/src/constants/turnCompletionVerbs.js +10 -0
- package/dist/src/constants/xml.js +54 -0
- package/dist/src/context/QueuedMessageContext.js +57 -0
- package/dist/src/context/fpsMetrics.js +26 -0
- package/dist/src/context/mailbox.js +37 -0
- package/dist/src/context/modalContext.js +26 -0
- package/dist/src/context/notifications.js +176 -0
- package/dist/src/context/overlayContext.js +92 -0
- package/dist/src/context/promptOverlayContext.js +99 -0
- package/dist/src/context/stats.js +203 -0
- package/dist/src/context/voice.js +62 -0
- package/dist/src/context.js +119 -0
- package/dist/src/coordinator/coordinatorMode.js +323 -0
- package/dist/src/cost-tracker.js +234 -0
- package/dist/src/costHook.js +19 -0
- package/dist/src/dialogLaunchers.js +92 -0
- package/dist/src/entrypoints/agentSdkTypes.js +51 -0
- package/dist/src/entrypoints/cli.js +92 -0
- package/dist/src/entrypoints/init.js +199 -0
- package/dist/src/entrypoints/mcp.js +132 -0
- package/dist/src/entrypoints/npm-bin.js +6 -0
- package/dist/src/entrypoints/sandboxTypes.js +34 -0
- package/dist/src/entrypoints/sdk/controlSchemas.js +347 -0
- package/dist/src/entrypoints/sdk/coreSchemas.js +1019 -0
- package/dist/src/entrypoints/sdk/coreTypes.generated.js +1 -0
- package/dist/src/entrypoints/sdk/coreTypes.js +38 -0
- package/dist/src/entrypoints/sdk/runtimeTypes.js +1 -0
- package/dist/src/entrypoints/sdk/settingsTypes.generated.js +1 -0
- package/dist/src/entrypoints/sdk/toolTypes.js +1 -0
- package/dist/src/history.js +297 -0
- package/dist/src/hooks/fileSuggestions.js +460 -0
- package/dist/src/hooks/notifs/useAutoModeUnavailableNotification.js +39 -0
- package/dist/src/hooks/notifs/useCanSwitchToExistingSubscription.js +64 -0
- package/dist/src/hooks/notifs/useDeprecationWarningNotification.js +43 -0
- package/dist/src/hooks/notifs/useFastModeNotification.js +161 -0
- package/dist/src/hooks/notifs/useIDEStatusIndicator.js +187 -0
- package/dist/src/hooks/notifs/useInstallMessages.js +25 -0
- package/dist/src/hooks/notifs/useLspInitializationNotification.js +147 -0
- package/dist/src/hooks/notifs/useMcpConnectivityStatus.js +154 -0
- package/dist/src/hooks/notifs/useModelMigrationNotifications.js +45 -0
- package/dist/src/hooks/notifs/useNpmDeprecationNotification.js +24 -0
- package/dist/src/hooks/notifs/usePluginAutoupdateNotification.js +93 -0
- package/dist/src/hooks/notifs/usePluginInstallationStatus.js +143 -0
- package/dist/src/hooks/notifs/useRateLimitWarningNotification.js +118 -0
- package/dist/src/hooks/notifs/useSettingsErrors.js +67 -0
- package/dist/src/hooks/notifs/useStartupNotification.js +24 -0
- package/dist/src/hooks/notifs/useTeammateShutdownNotification.js +61 -0
- package/dist/src/hooks/renderPlaceholder.js +27 -0
- package/dist/src/hooks/toolPermission/PermissionContext.js +186 -0
- package/dist/src/hooks/toolPermission/handlers/coordinatorHandler.js +22 -0
- package/dist/src/hooks/toolPermission/handlers/interactiveHandler.js +194 -0
- package/dist/src/hooks/toolPermission/handlers/swarmWorkerHandler.js +79 -0
- package/dist/src/hooks/toolPermission/permissionLogging.js +114 -0
- package/dist/src/hooks/unifiedSuggestions.js +115 -0
- package/dist/src/hooks/useAfterFirstRender.js +12 -0
- package/dist/src/hooks/useApiKeyVerification.js +58 -0
- package/dist/src/hooks/useArrowKeyHistory.js +176 -0
- package/dist/src/hooks/useAssistantHistory.js +150 -0
- package/dist/src/hooks/useAwaySummary.js +95 -0
- package/dist/src/hooks/useBackgroundTaskNavigation.js +163 -0
- package/dist/src/hooks/useBlink.js +10 -0
- package/dist/src/hooks/useCanUseTool.js +144 -0
- package/dist/src/hooks/useCancelRequest.js +165 -0
- package/dist/src/hooks/useChromeExtensionNotification.js +55 -0
- package/dist/src/hooks/useClaudeCodeHintRecommendation.js +113 -0
- package/dist/src/hooks/useClipboardImageHint.js +45 -0
- package/dist/src/hooks/useCommandKeybindings.js +81 -0
- package/dist/src/hooks/useCommandQueue.js +8 -0
- package/dist/src/hooks/useCopyOnSelect.js +44 -0
- package/dist/src/hooks/useDeferredHookMessages.js +35 -0
- package/dist/src/hooks/useDiffData.js +62 -0
- package/dist/src/hooks/useDiffInIDE.js +197 -0
- package/dist/src/hooks/useDirectConnect.js +154 -0
- package/dist/src/hooks/useDoublePress.js +36 -0
- package/dist/src/hooks/useDynamicConfig.js +10 -0
- package/dist/src/hooks/useElapsedTime.js +12 -0
- package/dist/src/hooks/useExitOnCtrlCD.js +27 -0
- package/dist/src/hooks/useExitOnCtrlCDWithKeybindings.js +5 -0
- package/dist/src/hooks/useFileHistorySnapshotInit.js +17 -0
- package/dist/src/hooks/useGlobalKeybindings.js +132 -0
- package/dist/src/hooks/useHistorySearch.js +219 -0
- package/dist/src/hooks/useIDEIntegration.js +60 -0
- package/dist/src/hooks/useIdeAtMentioned.js +42 -0
- package/dist/src/hooks/useIdeConnectionStatus.js +18 -0
- package/dist/src/hooks/useIdeLogging.js +26 -0
- package/dist/src/hooks/useIdeSelection.js +78 -0
- package/dist/src/hooks/useInboxPoller.js +626 -0
- package/dist/src/hooks/useInputBuffer.js +69 -0
- package/dist/src/hooks/useIssueFlagBanner.js +101 -0
- package/dist/src/hooks/useLogMessages.js +47 -0
- package/dist/src/hooks/useLspPluginRecommendation.js +163 -0
- package/dist/src/hooks/useMailboxBridge.js +15 -0
- package/dist/src/hooks/useMainLoopModel.js +15 -0
- package/dist/src/hooks/useManagePlugins.js +195 -0
- package/dist/src/hooks/useMemoryUsage.js +17 -0
- package/dist/src/hooks/useMergedClients.js +11 -0
- package/dist/src/hooks/useMergedCommands.js +10 -0
- package/dist/src/hooks/useMergedTools.js +18 -0
- package/dist/src/hooks/useMinDisplayTime.js +19 -0
- package/dist/src/hooks/useNotifyAfterTimeout.js +34 -0
- package/dist/src/hooks/useOfficialMarketplaceNotification.js +50 -0
- package/dist/src/hooks/usePasteHandler.js +129 -0
- package/dist/src/hooks/usePluginRecommendationBase.js +98 -0
- package/dist/src/hooks/usePrStatus.js +77 -0
- package/dist/src/hooks/usePromptSuggestion.js +124 -0
- package/dist/src/hooks/usePromptsFromClaudeInChrome.js +60 -0
- package/dist/src/hooks/useQueueProcessor.js +29 -0
- package/dist/src/hooks/useRemoteSession.js +313 -0
- package/dist/src/hooks/useReplBridge.js +59 -0
- package/dist/src/hooks/useSSHSession.js +161 -0
- package/dist/src/hooks/useScheduledTasks.js +68 -0
- package/dist/src/hooks/useSearchInput.js +285 -0
- package/dist/src/hooks/useSessionBackgrounding.js +120 -0
- package/dist/src/hooks/useSettings.js +4 -0
- package/dist/src/hooks/useSettingsChange.js +10 -0
- package/dist/src/hooks/useSkillImprovementSurvey.js +61 -0
- package/dist/src/hooks/useSkillsChange.js +39 -0
- package/dist/src/hooks/useSwarmInitialization.js +39 -0
- package/dist/src/hooks/useSwarmPermissionPoller.js +141 -0
- package/dist/src/hooks/useTaskListWatcher.js +124 -0
- package/dist/src/hooks/useTasksV2.js +161 -0
- package/dist/src/hooks/useTeammateViewAutoExit.js +35 -0
- package/dist/src/hooks/useTeleportResume.js +75 -0
- package/dist/src/hooks/useTerminalSize.js +11 -0
- package/dist/src/hooks/useTextInput.js +353 -0
- package/dist/src/hooks/useTimeout.js +10 -0
- package/dist/src/hooks/useTurnDiffs.js +131 -0
- package/dist/src/hooks/useTypeahead.js +993 -0
- package/dist/src/hooks/useUpdateNotification.js +21 -0
- package/dist/src/hooks/useVimInput.js +210 -0
- package/dist/src/hooks/useVirtualScroll.js +282 -0
- package/dist/src/hooks/useVoice.js +675 -0
- package/dist/src/hooks/useVoiceEnabled.js +12 -0
- package/dist/src/hooks/useVoiceIntegration.js +391 -0
- package/dist/src/ink/Ansi.js +290 -0
- package/dist/src/ink/bidi.js +72 -0
- package/dist/src/ink/clearTerminal.js +42 -0
- package/dist/src/ink/colorize.js +119 -0
- package/dist/src/ink/components/AlternateScreen.js +60 -0
- package/dist/src/ink/components/App.js +375 -0
- package/dist/src/ink/components/AppContext.js +6 -0
- package/dist/src/ink/components/Box.js +181 -0
- package/dist/src/ink/components/Button.js +167 -0
- package/dist/src/ink/components/ClockContext.js +100 -0
- package/dist/src/ink/components/CursorDeclarationContext.js +3 -0
- package/dist/src/ink/components/ErrorOverview.js +152 -0
- package/dist/src/ink/components/Link.js +42 -0
- package/dist/src/ink/components/Newline.js +29 -0
- package/dist/src/ink/components/NoSelect.js +40 -0
- package/dist/src/ink/components/RawAnsi.js +36 -0
- package/dist/src/ink/components/ScrollBox.js +139 -0
- package/dist/src/ink/components/Spacer.js +16 -0
- package/dist/src/ink/components/StdinContext.js +12 -0
- package/dist/src/ink/components/TerminalFocusContext.js +43 -0
- package/dist/src/ink/components/TerminalSizeContext.js +2 -0
- package/dist/src/ink/components/Text.js +196 -0
- package/dist/src/ink/constants.js +1 -0
- package/dist/src/ink/dom.js +230 -0
- package/dist/src/ink/events/click-event.js +15 -0
- package/dist/src/ink/events/dispatcher.js +126 -0
- package/dist/src/ink/events/emitter.js +26 -0
- package/dist/src/ink/events/event-handlers.js +22 -0
- package/dist/src/ink/events/event.js +9 -0
- package/dist/src/ink/events/focus-event.js +9 -0
- package/dist/src/ink/events/input-event.js +83 -0
- package/dist/src/ink/events/keyboard-event.js +31 -0
- package/dist/src/ink/events/terminal-event.js +60 -0
- package/dist/src/ink/events/terminal-focus-event.js +9 -0
- package/dist/src/ink/focus.js +127 -0
- package/dist/src/ink/frame.js +22 -0
- package/dist/src/ink/get-max-width.js +5 -0
- package/dist/src/ink/hit-test.js +76 -0
- package/dist/src/ink/hooks/use-animation-frame.js +23 -0
- package/dist/src/ink/hooks/use-app.js +4 -0
- package/dist/src/ink/hooks/use-declared-cursor.js +27 -0
- package/dist/src/ink/hooks/use-input.js +31 -0
- package/dist/src/ink/hooks/use-interval.js +38 -0
- package/dist/src/ink/hooks/use-search-highlight.js +21 -0
- package/dist/src/ink/hooks/use-selection.js +47 -0
- package/dist/src/ink/hooks/use-stdin.js +4 -0
- package/dist/src/ink/hooks/use-tab-status.js +48 -0
- package/dist/src/ink/hooks/use-terminal-focus.js +6 -0
- package/dist/src/ink/hooks/use-terminal-title.js +17 -0
- package/dist/src/ink/hooks/use-terminal-viewport.js +40 -0
- package/dist/src/ink/ink.js +978 -0
- package/dist/src/ink/instances.js +2 -0
- package/dist/src/ink/layout/engine.js +4 -0
- package/dist/src/ink/layout/geometry.js +55 -0
- package/dist/src/ink/layout/node.js +60 -0
- package/dist/src/ink/layout/yoga.js +232 -0
- package/dist/src/ink/line-width-cache.js +14 -0
- package/dist/src/ink/log-update.js +408 -0
- package/dist/src/ink/measure-element.js +5 -0
- package/dist/src/ink/measure-text.js +30 -0
- package/dist/src/ink/node-cache.js +19 -0
- package/dist/src/ink/optimizer.js +52 -0
- package/dist/src/ink/output.js +399 -0
- package/dist/src/ink/parse-keypress.js +525 -0
- package/dist/src/ink/reconciler.js +359 -0
- package/dist/src/ink/render-border.js +110 -0
- package/dist/src/ink/render-node-to-output.js +710 -0
- package/dist/src/ink/render-to-screen.js +124 -0
- package/dist/src/ink/renderer.js +73 -0
- package/dist/src/ink/root.js +73 -0
- package/dist/src/ink/screen.js +823 -0
- package/dist/src/ink/searchHighlight.js +48 -0
- package/dist/src/ink/selection.js +507 -0
- package/dist/src/ink/squash-text-nodes.js +40 -0
- package/dist/src/ink/stringWidth.js +134 -0
- package/dist/src/ink/styles.js +279 -0
- package/dist/src/ink/supports-hyperlinks.js +29 -0
- package/dist/src/ink/tabstops.js +35 -0
- package/dist/src/ink/terminal-focus-state.js +33 -0
- package/dist/src/ink/terminal-querier.js +89 -0
- package/dist/src/ink/terminal.js +128 -0
- package/dist/src/ink/termio/ansi.js +53 -0
- package/dist/src/ink/termio/csi.js +158 -0
- package/dist/src/ink/termio/dec.js +31 -0
- package/dist/src/ink/termio/esc.js +36 -0
- package/dist/src/ink/termio/osc.js +275 -0
- package/dist/src/ink/termio/parser.js +293 -0
- package/dist/src/ink/termio/sgr.js +264 -0
- package/dist/src/ink/termio/tokenize.js +176 -0
- package/dist/src/ink/termio/types.js +33 -0
- package/dist/src/ink/termio.js +2 -0
- package/dist/src/ink/useTerminalNotification.js +61 -0
- package/dist/src/ink/warn.js +10 -0
- package/dist/src/ink/widest-line.js +15 -0
- package/dist/src/ink/wrap-text.js +50 -0
- package/dist/src/ink/wrapAnsi.js +5 -0
- package/dist/src/ink.js +55 -0
- package/dist/src/interactiveHelpers.js +231 -0
- package/dist/src/keybindings/KeybindingContext.js +170 -0
- package/dist/src/keybindings/KeybindingProviderSetup.js +225 -0
- package/dist/src/keybindings/defaultBindings.js +228 -0
- package/dist/src/keybindings/loadUserBindings.js +276 -0
- package/dist/src/keybindings/match.js +73 -0
- package/dist/src/keybindings/parser.js +152 -0
- package/dist/src/keybindings/reservedShortcuts.js +82 -0
- package/dist/src/keybindings/resolver.js +116 -0
- package/dist/src/keybindings/schema.js +143 -0
- package/dist/src/keybindings/shortcutFormat.js +24 -0
- package/dist/src/keybindings/template.js +28 -0
- package/dist/src/keybindings/useKeybinding.js +100 -0
- package/dist/src/keybindings/useShortcutDisplay.js +24 -0
- package/dist/src/keybindings/validate.js +313 -0
- package/dist/src/localRecoveryCli.js +256 -0
- package/dist/src/main.js +2489 -0
- package/dist/src/memdir/findRelevantMemories.js +76 -0
- package/dist/src/memdir/memdir.js +264 -0
- package/dist/src/memdir/memoryAge.js +24 -0
- package/dist/src/memdir/memoryScan.js +36 -0
- package/dist/src/memdir/memoryTypes.js +190 -0
- package/dist/src/memdir/paths.js +106 -0
- package/dist/src/memdir/teamMemPaths.js +133 -0
- package/dist/src/memdir/teamMemPrompts.js +87 -0
- package/dist/src/migrations/migrateAutoUpdatesToSettings.js +41 -0
- package/dist/src/migrations/migrateBypassPermissionsAcceptedToSettings.js +29 -0
- package/dist/src/migrations/migrateEnableAllProjectMcpServersToSettings.js +70 -0
- package/dist/src/migrations/migrateFennecToOpus.js +27 -0
- package/dist/src/migrations/migrateLegacyOpusToCurrent.js +30 -0
- package/dist/src/migrations/migrateOpusToOpus1m.js +23 -0
- package/dist/src/migrations/migrateReplBridgeEnabledToRemoteControlAtStartup.js +13 -0
- package/dist/src/migrations/migrateSonnet1mToSonnet45.js +29 -0
- package/dist/src/migrations/migrateSonnet45ToSonnet46.js +41 -0
- package/dist/src/migrations/resetAutoModeOptInForDefaultOffer.js +11 -0
- package/dist/src/migrations/resetProToOpusDefault.js +42 -0
- package/dist/src/moreright/useMoreRight.js +7 -0
- package/dist/src/native-ts/color-diff/index.js +729 -0
- package/dist/src/native-ts/file-index/index.js +246 -0
- package/dist/src/native-ts/yoga-layout/enums.js +96 -0
- package/dist/src/native-ts/yoga-layout/index.js +1638 -0
- package/dist/src/outputStyles/loadOutputStylesDir.js +47 -0
- package/dist/src/plugins/builtinPlugins.js +86 -0
- package/dist/src/plugins/bundled/index.js +1 -0
- package/dist/src/projectOnboardingState.js +56 -0
- package/dist/src/query/config.js +14 -0
- package/dist/src/query/deps.js +12 -0
- package/dist/src/query/stopHooks.js +251 -0
- package/dist/src/query/tokenBudget.js +47 -0
- package/dist/src/query.js +813 -0
- package/dist/src/remote/RemoteSessionManager.js +144 -0
- package/dist/src/remote/SessionsWebSocket.js +231 -0
- package/dist/src/remote/remotePermissionBridge.js +57 -0
- package/dist/src/remote/sdkMessageAdapter.js +161 -0
- package/dist/src/replLauncher.js +15 -0
- package/dist/src/schemas/hooks.js +71 -0
- package/dist/src/screens/Doctor.js +988 -0
- package/dist/src/screens/REPL.js +3588 -0
- package/dist/src/screens/ResumeConversation.js +396 -0
- package/dist/src/server/createDirectConnectSession.js +55 -0
- package/dist/src/server/directConnectManager.js +131 -0
- package/dist/src/server/types.js +7 -0
- package/dist/src/services/AgentSummary/agentSummary.js +114 -0
- package/dist/src/services/MagicDocs/magicDocs.js +151 -0
- package/dist/src/services/MagicDocs/prompts.js +85 -0
- package/dist/src/services/PromptSuggestion/promptSuggestion.js +350 -0
- package/dist/src/services/PromptSuggestion/speculation.js +590 -0
- package/dist/src/services/SessionMemory/prompts.js +220 -0
- package/dist/src/services/SessionMemory/sessionMemory.js +277 -0
- package/dist/src/services/SessionMemory/sessionMemoryUtils.js +94 -0
- package/dist/src/services/analytics/config.js +8 -0
- package/dist/src/services/analytics/datadog.js +217 -0
- package/dist/src/services/analytics/firstPartyEventLogger.js +223 -0
- package/dist/src/services/analytics/firstPartyEventLoggingExporter.js +500 -0
- package/dist/src/services/analytics/growthbook.js +597 -0
- package/dist/src/services/analytics/index.js +56 -0
- package/dist/src/services/analytics/metadata.js +507 -0
- package/dist/src/services/analytics/sink.js +44 -0
- package/dist/src/services/analytics/sinkKillswitch.js +6 -0
- package/dist/src/services/api/adminRequests.js +40 -0
- package/dist/src/services/api/bootstrap.js +104 -0
- package/dist/src/services/api/claude.js +1851 -0
- package/dist/src/services/api/client.js +209 -0
- package/dist/src/services/api/dumpPrompts.js +145 -0
- package/dist/src/services/api/emptyUsage.js +15 -0
- package/dist/src/services/api/errorUtils.js +137 -0
- package/dist/src/services/api/errors.js +641 -0
- package/dist/src/services/api/filesApi.js +409 -0
- package/dist/src/services/api/firstTokenDate.js +42 -0
- package/dist/src/services/api/grove.js +222 -0
- package/dist/src/services/api/logging.js +478 -0
- package/dist/src/services/api/metricsOptOut.js +87 -0
- package/dist/src/services/api/overageCreditGrant.js +83 -0
- package/dist/src/services/api/promptCacheBreakDetection.js +411 -0
- package/dist/src/services/api/referral.js +178 -0
- package/dist/src/services/api/sessionIngress.js +264 -0
- package/dist/src/services/api/ultrareviewQuota.js +23 -0
- package/dist/src/services/api/usage.js +34 -0
- package/dist/src/services/api/withRetry.js +454 -0
- package/dist/src/services/autoDream/autoDream.js +197 -0
- package/dist/src/services/autoDream/config.js +9 -0
- package/dist/src/services/autoDream/consolidationLock.js +76 -0
- package/dist/src/services/autoDream/consolidationPrompt.js +61 -0
- package/dist/src/services/awaySummary.js +58 -0
- package/dist/src/services/claudeAiLimits.js +269 -0
- package/dist/src/services/claudeAiLimitsHook.js +18 -0
- package/dist/src/services/compact/apiMicrocompact.js +82 -0
- package/dist/src/services/compact/autoCompact.js +151 -0
- package/dist/src/services/compact/compact.js +957 -0
- package/dist/src/services/compact/compactWarningHook.js +5 -0
- package/dist/src/services/compact/compactWarningState.js +8 -0
- package/dist/src/services/compact/grouping.js +20 -0
- package/dist/src/services/compact/microCompact.js +265 -0
- package/dist/src/services/compact/postCompactCleanup.js +23 -0
- package/dist/src/services/compact/prompt.js +303 -0
- package/dist/src/services/compact/sessionMemoryCompact.js +316 -0
- package/dist/src/services/compact/timeBasedMCConfig.js +9 -0
- package/dist/src/services/diagnosticTracking.js +195 -0
- package/dist/src/services/extractMemories/extractMemories.js +309 -0
- package/dist/src/services/extractMemories/prompts.js +113 -0
- package/dist/src/services/internalLogging.js +53 -0
- package/dist/src/services/lsp/LSPClient.js +252 -0
- package/dist/src/services/lsp/LSPDiagnosticRegistry.js +179 -0
- package/dist/src/services/lsp/LSPServerInstance.js +245 -0
- package/dist/src/services/lsp/LSPServerManager.js +217 -0
- package/dist/src/services/lsp/config.js +38 -0
- package/dist/src/services/lsp/manager.js +132 -0
- package/dist/src/services/lsp/passiveFeedback.js +150 -0
- package/dist/src/services/mcp/InProcessTransport.js +37 -0
- package/dist/src/services/mcp/MCPConnectionManager.js +56 -0
- package/dist/src/services/mcp/SdkControlTransport.js +54 -0
- package/dist/src/services/mcp/auth.js +1419 -0
- package/dist/src/services/mcp/channelAllowlist.js +24 -0
- package/dist/src/services/mcp/channelNotification.js +118 -0
- package/dist/src/services/mcp/channelPermissions.js +89 -0
- package/dist/src/services/mcp/claudeai.js +95 -0
- package/dist/src/services/mcp/client.js +1896 -0
- package/dist/src/services/mcp/config.js +942 -0
- package/dist/src/services/mcp/elicitationHandler.js +171 -0
- package/dist/src/services/mcp/envExpansion.js +19 -0
- package/dist/src/services/mcp/headersHelper.js +64 -0
- package/dist/src/services/mcp/mcpStringUtils.js +33 -0
- package/dist/src/services/mcp/normalization.js +8 -0
- package/dist/src/services/mcp/oauthPort.js +47 -0
- package/dist/src/services/mcp/officialRegistry.js +42 -0
- package/dist/src/services/mcp/types.js +82 -0
- package/dist/src/services/mcp/useManageMCPConnections.js +536 -0
- package/dist/src/services/mcp/utils.js +284 -0
- package/dist/src/services/mcp/vscodeSdkMcp.js +55 -0
- package/dist/src/services/mcp/xaa.js +237 -0
- package/dist/src/services/mcp/xaaIdpLogin.js +286 -0
- package/dist/src/services/mcpServerApproval.js +39 -0
- package/dist/src/services/mockRateLimits.js +548 -0
- package/dist/src/services/notifier.js +112 -0
- package/dist/src/services/oauth/auth-code-listener.js +129 -0
- package/dist/src/services/oauth/client.js +341 -0
- package/dist/src/services/oauth/crypto.js +15 -0
- package/dist/src/services/oauth/getOauthProfile.js +44 -0
- package/dist/src/services/oauth/index.js +98 -0
- package/dist/src/services/plugins/PluginInstallationManager.js +111 -0
- package/dist/src/services/plugins/pluginCliCommands.js +173 -0
- package/dist/src/services/plugins/pluginOperations.js +597 -0
- package/dist/src/services/policyLimits/index.js +418 -0
- package/dist/src/services/policyLimits/types.js +5 -0
- package/dist/src/services/preventSleep.js +95 -0
- package/dist/src/services/rateLimitMessages.js +194 -0
- package/dist/src/services/rateLimitMocking.js +58 -0
- package/dist/src/services/remoteManagedSettings/index.js +368 -0
- package/dist/src/services/remoteManagedSettings/securityCheck.js +52 -0
- package/dist/src/services/remoteManagedSettings/syncCache.js +50 -0
- package/dist/src/services/remoteManagedSettings/syncCacheState.js +48 -0
- package/dist/src/services/remoteManagedSettings/types.js +7 -0
- package/dist/src/services/settingsSync/index.js +368 -0
- package/dist/src/services/settingsSync/types.js +18 -0
- package/dist/src/services/teamMemorySync/index.js +731 -0
- package/dist/src/services/teamMemorySync/secretScanner.js +210 -0
- package/dist/src/services/teamMemorySync/teamMemSecretGuard.js +4 -0
- package/dist/src/services/teamMemorySync/types.js +23 -0
- package/dist/src/services/teamMemorySync/watcher.js +197 -0
- package/dist/src/services/tips/tipHistory.js +17 -0
- package/dist/src/services/tips/tipRegistry.js +578 -0
- package/dist/src/services/tips/tipScheduler.js +37 -0
- package/dist/src/services/tokenEstimation.js +283 -0
- package/dist/src/services/toolUseSummary/toolUseSummaryGenerator.js +75 -0
- package/dist/src/services/tools/StreamingToolExecutor.js +311 -0
- package/dist/src/services/tools/toolExecution.js +1009 -0
- package/dist/src/services/tools/toolHooks.js +384 -0
- package/dist/src/services/tools/toolOrchestration.js +96 -0
- package/dist/src/services/vcr.js +233 -0
- package/dist/src/services/voice.js +315 -0
- package/dist/src/services/voiceKeyterms.js +57 -0
- package/dist/src/services/voiceStreamSTT.js +265 -0
- package/dist/src/setup.js +235 -0
- package/dist/src/skills/bundled/batch.js +114 -0
- package/dist/src/skills/bundled/claudeApi.js +149 -0
- package/dist/src/skills/bundled/claudeApiContent.js +63 -0
- package/dist/src/skills/bundled/claudeInChrome.js +31 -0
- package/dist/src/skills/bundled/debug.js +89 -0
- package/dist/src/skills/bundled/index.js +22 -0
- package/dist/src/skills/bundled/keybindings.js +303 -0
- package/dist/src/skills/bundled/loop.js +86 -0
- package/dist/src/skills/bundled/loremIpsum.js +257 -0
- package/dist/src/skills/bundled/remember.js +78 -0
- package/dist/src/skills/bundled/scheduleRemoteAgents.js +360 -0
- package/dist/src/skills/bundled/simplify.js +70 -0
- package/dist/src/skills/bundled/skillify.js +179 -0
- package/dist/src/skills/bundled/stuck.js +76 -0
- package/dist/src/skills/bundled/updateConfig.js +471 -0
- package/dist/src/skills/bundled/verify/SKILL.md.js +1 -0
- package/dist/src/skills/bundled/verify/examples/cli.md.js +1 -0
- package/dist/src/skills/bundled/verify/examples/server.md.js +1 -0
- package/dist/src/skills/bundled/verify.js +27 -0
- package/dist/src/skills/bundled/verifyContent.js +8 -0
- package/dist/src/skills/bundledSkills.js +114 -0
- package/dist/src/skills/loadSkillsDir.js +583 -0
- package/dist/src/skills/mcpSkillBuilders.js +10 -0
- package/dist/src/state/AppState.js +153 -0
- package/dist/src/state/AppStateStore.js +115 -0
- package/dist/src/state/onChangeAppState.js +94 -0
- package/dist/src/state/selectors.js +29 -0
- package/dist/src/state/store.js +21 -0
- package/dist/src/state/teammateViewHelpers.js +89 -0
- package/dist/src/tasks/DreamTask/DreamTask.js +79 -0
- package/dist/src/tasks/InProcessTeammateTask/InProcessTeammateTask.js +70 -0
- package/dist/src/tasks/InProcessTeammateTask/types.js +15 -0
- package/dist/src/tasks/LocalAgentTask/LocalAgentTask.js +444 -0
- package/dist/src/tasks/LocalMainSessionTask.js +262 -0
- package/dist/src/tasks/LocalShellTask/LocalShellTask.js +419 -0
- package/dist/src/tasks/LocalShellTask/guards.js +3 -0
- package/dist/src/tasks/LocalShellTask/killShellTasks.js +44 -0
- package/dist/src/tasks/RemoteAgentTask/RemoteAgentTask.js +550 -0
- package/dist/src/tasks/pillLabel.js +53 -0
- package/dist/src/tasks/stopTask.js +53 -0
- package/dist/src/tasks/types.js +9 -0
- package/dist/src/tasks.js +22 -0
- package/dist/src/tools/AgentTool/AgentTool.js +919 -0
- package/dist/src/tools/AgentTool/UI.js +912 -0
- package/dist/src/tools/AgentTool/agentColorManager.js +42 -0
- package/dist/src/tools/AgentTool/agentDisplay.js +45 -0
- package/dist/src/tools/AgentTool/agentMemory.js +85 -0
- package/dist/src/tools/AgentTool/agentMemorySnapshot.js +109 -0
- package/dist/src/tools/AgentTool/agentToolUtils.js +387 -0
- package/dist/src/tools/AgentTool/built-in/claudeCodeGuideAgent.js +159 -0
- package/dist/src/tools/AgentTool/built-in/exploreAgent.js +66 -0
- package/dist/src/tools/AgentTool/built-in/generalPurposeAgent.js +26 -0
- package/dist/src/tools/AgentTool/built-in/planAgent.js +81 -0
- package/dist/src/tools/AgentTool/built-in/statuslineSetup.js +140 -0
- package/dist/src/tools/AgentTool/built-in/verificationAgent.js +146 -0
- package/dist/src/tools/AgentTool/builtInAgents.js +32 -0
- package/dist/src/tools/AgentTool/constants.js +7 -0
- package/dist/src/tools/AgentTool/forkSubagent.js +108 -0
- package/dist/src/tools/AgentTool/loadAgentsDir.js +409 -0
- package/dist/src/tools/AgentTool/prompt.js +194 -0
- package/dist/src/tools/AgentTool/resumeAgent.js +169 -0
- package/dist/src/tools/AgentTool/runAgent.js +457 -0
- package/dist/src/tools/AskUserQuestionTool/AskUserQuestionTool.js +282 -0
- package/dist/src/tools/AskUserQuestionTool/prompt.js +38 -0
- package/dist/src/tools/BashTool/BashTool.js +867 -0
- package/dist/src/tools/BashTool/BashToolResultMessage.js +208 -0
- package/dist/src/tools/BashTool/UI.js +189 -0
- package/dist/src/tools/BashTool/bashCommandHelpers.js +145 -0
- package/dist/src/tools/BashTool/bashPermissions.js +1193 -0
- package/dist/src/tools/BashTool/bashSecurity.js +1464 -0
- package/dist/src/tools/BashTool/commandSemantics.js +70 -0
- package/dist/src/tools/BashTool/commentLabel.js +8 -0
- package/dist/src/tools/BashTool/destructiveCommandWarning.js +74 -0
- package/dist/src/tools/BashTool/modeValidation.js +65 -0
- package/dist/src/tools/BashTool/pathValidation.js +771 -0
- package/dist/src/tools/BashTool/prompt.js +307 -0
- package/dist/src/tools/BashTool/readOnlyValidation.js +1312 -0
- package/dist/src/tools/BashTool/sedEditParser.js +179 -0
- package/dist/src/tools/BashTool/sedValidation.js +379 -0
- package/dist/src/tools/BashTool/shouldUseSandbox.js +102 -0
- package/dist/src/tools/BashTool/toolName.js +1 -0
- package/dist/src/tools/BashTool/utils.js +145 -0
- package/dist/src/tools/BriefTool/BriefTool.js +106 -0
- package/dist/src/tools/BriefTool/UI.js +158 -0
- package/dist/src/tools/BriefTool/attachments.js +54 -0
- package/dist/src/tools/BriefTool/prompt.js +19 -0
- package/dist/src/tools/BriefTool/upload.js +37 -0
- package/dist/src/tools/ConfigTool/ConfigTool.js +304 -0
- package/dist/src/tools/ConfigTool/UI.js +76 -0
- package/dist/src/tools/ConfigTool/constants.js +1 -0
- package/dist/src/tools/ConfigTool/prompt.js +76 -0
- package/dist/src/tools/ConfigTool/supportedSettings.js +141 -0
- package/dist/src/tools/EnterPlanModeTool/EnterPlanModeTool.js +91 -0
- package/dist/src/tools/EnterPlanModeTool/UI.js +49 -0
- package/dist/src/tools/EnterPlanModeTool/constants.js +1 -0
- package/dist/src/tools/EnterPlanModeTool/prompt.js +154 -0
- package/dist/src/tools/EnterWorktreeTool/EnterWorktreeTool.js +97 -0
- package/dist/src/tools/EnterWorktreeTool/UI.js +25 -0
- package/dist/src/tools/EnterWorktreeTool/constants.js +1 -0
- package/dist/src/tools/EnterWorktreeTool/prompt.js +30 -0
- package/dist/src/tools/ExitPlanModeTool/ExitPlanModeV2Tool.js +287 -0
- package/dist/src/tools/ExitPlanModeTool/UI.js +128 -0
- package/dist/src/tools/ExitPlanModeTool/constants.js +2 -0
- package/dist/src/tools/ExitPlanModeTool/prompt.js +25 -0
- package/dist/src/tools/ExitWorktreeTool/ExitWorktreeTool.js +217 -0
- package/dist/src/tools/ExitWorktreeTool/UI.js +36 -0
- package/dist/src/tools/ExitWorktreeTool/constants.js +1 -0
- package/dist/src/tools/ExitWorktreeTool/prompt.js +32 -0
- package/dist/src/tools/FileEditTool/FileEditTool.js +447 -0
- package/dist/src/tools/FileEditTool/UI.js +289 -0
- package/dist/src/tools/FileEditTool/constants.js +4 -0
- package/dist/src/tools/FileEditTool/prompt.js +22 -0
- package/dist/src/tools/FileEditTool/types.js +37 -0
- package/dist/src/tools/FileEditTool/utils.js +411 -0
- package/dist/src/tools/FileReadTool/FileReadTool.js +759 -0
- package/dist/src/tools/FileReadTool/UI.js +232 -0
- package/dist/src/tools/FileReadTool/imageProcessor.js +34 -0
- package/dist/src/tools/FileReadTool/limits.js +28 -0
- package/dist/src/tools/FileReadTool/prompt.js +25 -0
- package/dist/src/tools/FileWriteTool/FileWriteTool.js +300 -0
- package/dist/src/tools/FileWriteTool/UI.js +460 -0
- package/dist/src/tools/FileWriteTool/prompt.js +16 -0
- package/dist/src/tools/GlobTool/GlobTool.js +155 -0
- package/dist/src/tools/GlobTool/UI.js +58 -0
- package/dist/src/tools/GlobTool/prompt.js +6 -0
- package/dist/src/tools/GrepTool/GrepTool.js +390 -0
- package/dist/src/tools/GrepTool/UI.js +254 -0
- package/dist/src/tools/GrepTool/prompt.js +16 -0
- package/dist/src/tools/LSPTool/LSPTool.js +541 -0
- package/dist/src/tools/LSPTool/UI.js +275 -0
- package/dist/src/tools/LSPTool/formatters.js +353 -0
- package/dist/src/tools/LSPTool/prompt.js +20 -0
- package/dist/src/tools/LSPTool/schemas.js +82 -0
- package/dist/src/tools/LSPTool/symbolContext.js +43 -0
- package/dist/src/tools/ListMcpResourcesTool/ListMcpResourcesTool.js +91 -0
- package/dist/src/tools/ListMcpResourcesTool/UI.js +26 -0
- package/dist/src/tools/ListMcpResourcesTool/prompt.js +18 -0
- package/dist/src/tools/MCPTool/MCPTool.js +57 -0
- package/dist/src/tools/MCPTool/UI.js +433 -0
- package/dist/src/tools/MCPTool/classifyForCollapse.js +509 -0
- package/dist/src/tools/MCPTool/prompt.js +2 -0
- package/dist/src/tools/McpAuthTool/McpAuthTool.js +139 -0
- package/dist/src/tools/NotebookEditTool/NotebookEditTool.js +364 -0
- package/dist/src/tools/NotebookEditTool/UI.js +115 -0
- package/dist/src/tools/NotebookEditTool/constants.js +1 -0
- package/dist/src/tools/NotebookEditTool/prompt.js +2 -0
- package/dist/src/tools/PowerShellTool/PowerShellTool.js +700 -0
- package/dist/src/tools/PowerShellTool/UI.js +154 -0
- package/dist/src/tools/PowerShellTool/clmTypes.js +147 -0
- package/dist/src/tools/PowerShellTool/commandSemantics.js +37 -0
- package/dist/src/tools/PowerShellTool/commonParameters.js +17 -0
- package/dist/src/tools/PowerShellTool/destructiveCommandWarning.js +70 -0
- package/dist/src/tools/PowerShellTool/gitSafety.js +102 -0
- package/dist/src/tools/PowerShellTool/modeValidation.js +203 -0
- package/dist/src/tools/PowerShellTool/pathValidation.js +1259 -0
- package/dist/src/tools/PowerShellTool/powershellPermissions.js +791 -0
- package/dist/src/tools/PowerShellTool/powershellSecurity.js +612 -0
- package/dist/src/tools/PowerShellTool/prompt.js +130 -0
- package/dist/src/tools/PowerShellTool/readOnlyValidation.js +1000 -0
- package/dist/src/tools/PowerShellTool/toolName.js +1 -0
- package/dist/src/tools/REPLTool/constants.js +27 -0
- package/dist/src/tools/REPLTool/primitiveTools.js +21 -0
- package/dist/src/tools/ReadMcpResourceTool/ReadMcpResourceTool.js +115 -0
- package/dist/src/tools/ReadMcpResourceTool/UI.js +37 -0
- package/dist/src/tools/ReadMcpResourceTool/prompt.js +15 -0
- package/dist/src/tools/RemoteTriggerTool/RemoteTriggerTool.js +138 -0
- package/dist/src/tools/RemoteTriggerTool/UI.js +28 -0
- package/dist/src/tools/RemoteTriggerTool/prompt.js +12 -0
- package/dist/src/tools/ScheduleCronTool/CronCreateTool.js +117 -0
- package/dist/src/tools/ScheduleCronTool/CronDeleteTool.js +83 -0
- package/dist/src/tools/ScheduleCronTool/CronListTool.js +77 -0
- package/dist/src/tools/ScheduleCronTool/UI.js +73 -0
- package/dist/src/tools/ScheduleCronTool/prompt.js +67 -0
- package/dist/src/tools/SendMessageTool/SendMessageTool.js +561 -0
- package/dist/src/tools/SendMessageTool/UI.js +30 -0
- package/dist/src/tools/SendMessageTool/constants.js +1 -0
- package/dist/src/tools/SendMessageTool/prompt.js +32 -0
- package/dist/src/tools/SkillTool/SkillTool.js +614 -0
- package/dist/src/tools/SkillTool/UI.js +141 -0
- package/dist/src/tools/SkillTool/constants.js +1 -0
- package/dist/src/tools/SkillTool/prompt.js +161 -0
- package/dist/src/tools/SleepTool/prompt.js +14 -0
- package/dist/src/tools/SyntheticOutputTool/SyntheticOutputTool.js +120 -0
- package/dist/src/tools/TaskCreateTool/TaskCreateTool.js +106 -0
- package/dist/src/tools/TaskCreateTool/constants.js +1 -0
- package/dist/src/tools/TaskCreateTool/prompt.js +48 -0
- package/dist/src/tools/TaskGetTool/TaskGetTool.js +110 -0
- package/dist/src/tools/TaskGetTool/constants.js +1 -0
- package/dist/src/tools/TaskGetTool/prompt.js +23 -0
- package/dist/src/tools/TaskListTool/TaskListTool.js +92 -0
- package/dist/src/tools/TaskListTool/constants.js +1 -0
- package/dist/src/tools/TaskListTool/prompt.js +38 -0
- package/dist/src/tools/TaskOutputTool/TaskOutputTool.js +688 -0
- package/dist/src/tools/TaskOutputTool/constants.js +1 -0
- package/dist/src/tools/TaskStopTool/TaskStopTool.js +97 -0
- package/dist/src/tools/TaskStopTool/UI.js +39 -0
- package/dist/src/tools/TaskStopTool/prompt.js +7 -0
- package/dist/src/tools/TaskUpdateTool/TaskUpdateTool.js +279 -0
- package/dist/src/tools/TaskUpdateTool/constants.js +1 -0
- package/dist/src/tools/TaskUpdateTool/prompt.js +76 -0
- package/dist/src/tools/TeamCreateTool/TeamCreateTool.js +161 -0
- package/dist/src/tools/TeamCreateTool/UI.js +4 -0
- package/dist/src/tools/TeamCreateTool/constants.js +1 -0
- package/dist/src/tools/TeamCreateTool/prompt.js +113 -0
- package/dist/src/tools/TeamDeleteTool/TeamDeleteTool.js +96 -0
- package/dist/src/tools/TeamDeleteTool/UI.js +14 -0
- package/dist/src/tools/TeamDeleteTool/constants.js +1 -0
- package/dist/src/tools/TeamDeleteTool/prompt.js +16 -0
- package/dist/src/tools/TodoWriteTool/TodoWriteTool.js +86 -0
- package/dist/src/tools/TodoWriteTool/constants.js +1 -0
- package/dist/src/tools/TodoWriteTool/prompt.js +181 -0
- package/dist/src/tools/ToolSearchTool/ToolSearchTool.js +266 -0
- package/dist/src/tools/ToolSearchTool/constants.js +1 -0
- package/dist/src/tools/ToolSearchTool/prompt.js +40 -0
- package/dist/src/tools/TungstenTool/TungstenLiveMonitor.js +4 -0
- package/dist/src/tools/TungstenTool/TungstenTool.js +39 -0
- package/dist/src/tools/WebFetchTool/UI.js +91 -0
- package/dist/src/tools/WebFetchTool/WebFetchTool.js +234 -0
- package/dist/src/tools/WebFetchTool/preapproved.js +122 -0
- package/dist/src/tools/WebFetchTool/prompt.js +37 -0
- package/dist/src/tools/WebFetchTool/utils.js +303 -0
- package/dist/src/tools/WebSearchTool/UI.js +109 -0
- package/dist/src/tools/WebSearchTool/WebSearchTool.js +313 -0
- package/dist/src/tools/WebSearchTool/prompt.js +32 -0
- package/dist/src/tools/WorkflowTool/constants.js +1 -0
- package/dist/src/tools/shared/gitOperationTracking.js +158 -0
- package/dist/src/tools/shared/spawnMultiAgent.js +630 -0
- package/dist/src/tools/testing/TestingPermissionTool.js +66 -0
- package/dist/src/tools/utils.js +15 -0
- package/dist/src/tools.js +184 -0
- package/dist/src/types/command.js +6 -0
- package/dist/src/types/connectorText.js +3 -0
- package/dist/src/types/generated/events_mono/claude_code/v1/claude_code_internal_event.js +525 -0
- package/dist/src/types/generated/events_mono/common/v1/auth.js +38 -0
- package/dist/src/types/generated/events_mono/growthbook/v1/growthbook_experiment_event.js +112 -0
- package/dist/src/types/generated/google/protobuf/timestamp.js +33 -0
- package/dist/src/types/hooks.js +121 -0
- package/dist/src/types/ids.js +10 -0
- package/dist/src/types/logs.js +9 -0
- package/dist/src/types/permissions.js +12 -0
- package/dist/src/types/plugin.js +64 -0
- package/dist/src/types/textInputTypes.js +10 -0
- package/dist/src/upstreamproxy/relay.js +274 -0
- package/dist/src/upstreamproxy/upstreamproxy.js +161 -0
- package/dist/src/utils/CircularBuffer.js +51 -0
- package/dist/src/utils/Cursor.js +1006 -0
- package/dist/src/utils/QueryGuard.js +57 -0
- package/dist/src/utils/Shell.js +260 -0
- package/dist/src/utils/ShellCommand.js +277 -0
- package/dist/src/utils/abortController.js +31 -0
- package/dist/src/utils/activityManager.js +91 -0
- package/dist/src/utils/advisor.js +63 -0
- package/dist/src/utils/agentContext.js +36 -0
- package/dist/src/utils/agentId.js +36 -0
- package/dist/src/utils/agentSwarmsEnabled.js +17 -0
- package/dist/src/utils/agenticSessionSearch.js +194 -0
- package/dist/src/utils/analyzeContext.js +692 -0
- package/dist/src/utils/ansiToPng.js +211 -0
- package/dist/src/utils/ansiToSvg.js +171 -0
- package/dist/src/utils/api.js +435 -0
- package/dist/src/utils/apiPreconnect.js +19 -0
- package/dist/src/utils/appleTerminalBackup.js +91 -0
- package/dist/src/utils/argumentSubstitution.js +58 -0
- package/dist/src/utils/array.js +12 -0
- package/dist/src/utils/asciicast.js +149 -0
- package/dist/src/utils/attachments.js +1854 -0
- package/dist/src/utils/attribution.js +215 -0
- package/dist/src/utils/auth.js +1197 -0
- package/dist/src/utils/authFileDescriptor.js +106 -0
- package/dist/src/utils/authPortable.js +14 -0
- package/dist/src/utils/autoModeDenials.js +10 -0
- package/dist/src/utils/autoRunIssue.js +126 -0
- package/dist/src/utils/autoUpdater.js +339 -0
- package/dist/src/utils/aws.js +30 -0
- package/dist/src/utils/awsAuthStatusManager.js +55 -0
- package/dist/src/utils/background/remote/preconditions.js +134 -0
- package/dist/src/utils/background/remote/remoteSession.js +42 -0
- package/dist/src/utils/backgroundHousekeeping.js +47 -0
- package/dist/src/utils/bash/ParsedCommand.js +194 -0
- package/dist/src/utils/bash/ShellSnapshot.js +333 -0
- package/dist/src/utils/bash/ast.js +1422 -0
- package/dist/src/utils/bash/bashParser.js +3625 -0
- package/dist/src/utils/bash/bashPipeCommand.js +138 -0
- package/dist/src/utils/bash/commands.js +668 -0
- package/dist/src/utils/bash/heredoc.js +288 -0
- package/dist/src/utils/bash/parser.js +110 -0
- package/dist/src/utils/bash/prefix.js +119 -0
- package/dist/src/utils/bash/registry.js +20 -0
- package/dist/src/utils/bash/shellCompletion.js +127 -0
- package/dist/src/utils/bash/shellPrefix.js +11 -0
- package/dist/src/utils/bash/shellQuote.js +159 -0
- package/dist/src/utils/bash/shellQuoting.js +43 -0
- package/dist/src/utils/bash/specs/alias.js +11 -0
- package/dist/src/utils/bash/specs/index.js +16 -0
- package/dist/src/utils/bash/specs/nohup.js +10 -0
- package/dist/src/utils/bash/specs/pyright.js +88 -0
- package/dist/src/utils/bash/specs/sleep.js +10 -0
- package/dist/src/utils/bash/specs/srun.js +28 -0
- package/dist/src/utils/bash/specs/time.js +10 -0
- package/dist/src/utils/bash/specs/timeout.js +17 -0
- package/dist/src/utils/bash/treeSitterAnalysis.js +259 -0
- package/dist/src/utils/betas.js +199 -0
- package/dist/src/utils/billing.js +47 -0
- package/dist/src/utils/binaryCheck.js +25 -0
- package/dist/src/utils/browser.js +47 -0
- package/dist/src/utils/bufferedWriter.js +73 -0
- package/dist/src/utils/bundledMode.js +6 -0
- package/dist/src/utils/caCerts.js +47 -0
- package/dist/src/utils/caCertsConfig.js +32 -0
- package/dist/src/utils/cachePaths.js +22 -0
- package/dist/src/utils/classifierApprovals.js +61 -0
- package/dist/src/utils/classifierApprovalsHook.js +8 -0
- package/dist/src/utils/claudeCodeHints.js +83 -0
- package/dist/src/utils/claudeDesktop.js +87 -0
- package/dist/src/utils/claudeInChrome/chromeNativeHost.js +353 -0
- package/dist/src/utils/claudeInChrome/common.js +416 -0
- package/dist/src/utils/claudeInChrome/mcpServer.js +190 -0
- package/dist/src/utils/claudeInChrome/prompt.js +60 -0
- package/dist/src/utils/claudeInChrome/setup.js +239 -0
- package/dist/src/utils/claudeInChrome/setupPortable.js +133 -0
- package/dist/src/utils/claudeInChrome/toolRendering.js +224 -0
- package/dist/src/utils/claudemd.js +727 -0
- package/dist/src/utils/cleanup.js +423 -0
- package/dist/src/utils/cleanupRegistry.js +8 -0
- package/dist/src/utils/cliArgs.js +21 -0
- package/dist/src/utils/cliHighlight.js +27 -0
- package/dist/src/utils/codeIndexing.js +92 -0
- package/dist/src/utils/collapseBackgroundBashNotifications.js +58 -0
- package/dist/src/utils/collapseHookSummaries.js +38 -0
- package/dist/src/utils/collapseReadSearch.js +569 -0
- package/dist/src/utils/collapseTeammateShutdowns.js +34 -0
- package/dist/src/utils/combinedAbortSignal.js +28 -0
- package/dist/src/utils/commandLifecycle.js +7 -0
- package/dist/src/utils/commitAttribution.js +510 -0
- package/dist/src/utils/completionCache.js +126 -0
- package/dist/src/utils/computerUse/appNames.js +104 -0
- package/dist/src/utils/computerUse/cleanup.js +37 -0
- package/dist/src/utils/computerUse/common.js +25 -0
- package/dist/src/utils/computerUse/computerUseLock.js +117 -0
- package/dist/src/utils/computerUse/drainRunLoop.js +44 -0
- package/dist/src/utils/computerUse/escHotkey.js +33 -0
- package/dist/src/utils/computerUse/executor.js +303 -0
- package/dist/src/utils/computerUse/gates.js +40 -0
- package/dist/src/utils/computerUse/hostAdapter.js +48 -0
- package/dist/src/utils/computerUse/inputLoader.js +10 -0
- package/dist/src/utils/computerUse/mcpServer.js +61 -0
- package/dist/src/utils/computerUse/setup.js +25 -0
- package/dist/src/utils/computerUse/swiftLoader.js +7 -0
- package/dist/src/utils/computerUse/toolRendering.js +96 -0
- package/dist/src/utils/computerUse/wrapper.js +242 -0
- package/dist/src/utils/concurrentSessions.js +108 -0
- package/dist/src/utils/config.js +801 -0
- package/dist/src/utils/configConstants.js +11 -0
- package/dist/src/utils/contentArray.js +19 -0
- package/dist/src/utils/context.js +135 -0
- package/dist/src/utils/contextAnalysis.js +152 -0
- package/dist/src/utils/contextSuggestions.js +141 -0
- package/dist/src/utils/controlMessageCompat.js +17 -0
- package/dist/src/utils/conversationRecovery.js +278 -0
- package/dist/src/utils/cron.js +182 -0
- package/dist/src/utils/cronJitterConfig.js +22 -0
- package/dist/src/utils/cronScheduler.js +295 -0
- package/dist/src/utils/cronTasks.js +183 -0
- package/dist/src/utils/cronTasksLock.js +116 -0
- package/dist/src/utils/crossProjectResume.js +36 -0
- package/dist/src/utils/crypto.js +3 -0
- package/dist/src/utils/cwd.js +16 -0
- package/dist/src/utils/debug.js +170 -0
- package/dist/src/utils/debugFilter.js +69 -0
- package/dist/src/utils/deepLink/banner.js +52 -0
- package/dist/src/utils/deepLink/parseDeepLink.js +68 -0
- package/dist/src/utils/deepLink/protocolHandler.js +66 -0
- package/dist/src/utils/deepLink/registerProtocol.js +206 -0
- package/dist/src/utils/deepLink/terminalLauncher.js +321 -0
- package/dist/src/utils/deepLink/terminalPreference.js +26 -0
- package/dist/src/utils/desktopDeepLink.js +154 -0
- package/dist/src/utils/detectRepository.js +98 -0
- package/dist/src/utils/diagLogs.js +47 -0
- package/dist/src/utils/diff.js +92 -0
- package/dist/src/utils/directMemberMessage.js +27 -0
- package/dist/src/utils/displayTags.js +12 -0
- package/dist/src/utils/doctorContextWarnings.js +151 -0
- package/dist/src/utils/doctorDiagnostic.js +388 -0
- package/dist/src/utils/dxt/helpers.js +36 -0
- package/dist/src/utils/dxt/zip.js +112 -0
- package/dist/src/utils/earlyInput.js +98 -0
- package/dist/src/utils/editor.js +105 -0
- package/dist/src/utils/effort.js +188 -0
- package/dist/src/utils/embeddedTools.js +10 -0
- package/dist/src/utils/env.js +284 -0
- package/dist/src/utils/envDynamic.js +91 -0
- package/dist/src/utils/envUtils.js +88 -0
- package/dist/src/utils/envValidation.js +26 -0
- package/dist/src/utils/errorLogSink.js +142 -0
- package/dist/src/utils/errors.js +123 -0
- package/dist/src/utils/exampleCommands.js +133 -0
- package/dist/src/utils/execFileNoThrow.js +82 -0
- package/dist/src/utils/execFileNoThrowPortable.js +52 -0
- package/dist/src/utils/execSyncWrapper.js +16 -0
- package/dist/src/utils/exportRenderer.js +78 -0
- package/dist/src/utils/extraUsage.js +16 -0
- package/dist/src/utils/fastMode.js +331 -0
- package/dist/src/utils/file.js +318 -0
- package/dist/src/utils/fileHistory.js +662 -0
- package/dist/src/utils/fileOperationAnalytics.js +23 -0
- package/dist/src/utils/filePersistence/filePersistence.js +165 -0
- package/dist/src/utils/filePersistence/outputsScanner.js +72 -0
- package/dist/src/utils/filePersistence/types.js +3 -0
- package/dist/src/utils/fileRead.js +53 -0
- package/dist/src/utils/fileReadCache.js +54 -0
- package/dist/src/utils/fileStateCache.js +79 -0
- package/dist/src/utils/findExecutable.js +5 -0
- package/dist/src/utils/fingerprint.js +30 -0
- package/dist/src/utils/forkedAgent.js +253 -0
- package/dist/src/utils/format.js +200 -0
- package/dist/src/utils/formatBriefTimestamp.js +49 -0
- package/dist/src/utils/fpsTracker.js +32 -0
- package/dist/src/utils/frontmatterParser.js +159 -0
- package/dist/src/utils/fsOperations.js +548 -0
- package/dist/src/utils/fullscreen.js +83 -0
- package/dist/src/utils/generatedFiles.js +96 -0
- package/dist/src/utils/generators.js +60 -0
- package/dist/src/utils/genericProcessUtils.js +96 -0
- package/dist/src/utils/getWorktreePaths.js +30 -0
- package/dist/src/utils/getWorktreePathsPortable.js +14 -0
- package/dist/src/utils/ghPrStatus.js +51 -0
- package/dist/src/utils/git/gitConfigParser.js +166 -0
- package/dist/src/utils/git/gitFilesystem.js +413 -0
- package/dist/src/utils/git/gitignore.js +52 -0
- package/dist/src/utils/git.js +520 -0
- package/dist/src/utils/gitDiff.js +291 -0
- package/dist/src/utils/gitSettings.js +10 -0
- package/dist/src/utils/github/ghAuthStatus.js +15 -0
- package/dist/src/utils/githubRepoPathMapping.js +92 -0
- package/dist/src/utils/glob.js +65 -0
- package/dist/src/utils/gracefulShutdown.js +274 -0
- package/dist/src/utils/groupToolUses.js +107 -0
- package/dist/src/utils/handlePromptSubmit.js +323 -0
- package/dist/src/utils/hash.js +21 -0
- package/dist/src/utils/headlessProfiler.js +95 -0
- package/dist/src/utils/heapDumpService.js +157 -0
- package/dist/src/utils/heatmap.js +118 -0
- package/dist/src/utils/highlightMatch.js +28 -0
- package/dist/src/utils/hooks/AsyncHookRegistry.js +190 -0
- package/dist/src/utils/hooks/apiQueryHookHelper.js +67 -0
- package/dist/src/utils/hooks/execAgentHook.js +216 -0
- package/dist/src/utils/hooks/execHttpHook.js +106 -0
- package/dist/src/utils/hooks/execPromptHook.js +153 -0
- package/dist/src/utils/hooks/fileChangedWatcher.js +154 -0
- package/dist/src/utils/hooks/hookEvents.js +92 -0
- package/dist/src/utils/hooks/hookHelpers.js +43 -0
- package/dist/src/utils/hooks/hooksConfigManager.js +386 -0
- package/dist/src/utils/hooks/hooksConfigSnapshot.js +52 -0
- package/dist/src/utils/hooks/hooksSettings.js +175 -0
- package/dist/src/utils/hooks/postSamplingHooks.js +26 -0
- package/dist/src/utils/hooks/registerFrontmatterHooks.js +34 -0
- package/dist/src/utils/hooks/registerSkillHooks.js +24 -0
- package/dist/src/utils/hooks/sessionHooks.js +176 -0
- package/dist/src/utils/hooks/skillImprovement.js +200 -0
- package/dist/src/utils/hooks/ssrfGuard.js +157 -0
- package/dist/src/utils/hooks.js +2879 -0
- package/dist/src/utils/horizontalScroll.js +72 -0
- package/dist/src/utils/http.js +80 -0
- package/dist/src/utils/hyperlink.js +13 -0
- package/dist/src/utils/iTermBackup.js +46 -0
- package/dist/src/utils/ide.js +938 -0
- package/dist/src/utils/idePathConversion.js +47 -0
- package/dist/src/utils/idleTimeout.js +33 -0
- package/dist/src/utils/imagePaste.js +190 -0
- package/dist/src/utils/imageResizer.js +459 -0
- package/dist/src/utils/imageStore.js +109 -0
- package/dist/src/utils/imageValidation.js +61 -0
- package/dist/src/utils/immediateCommand.js +4 -0
- package/dist/src/utils/inProcessTeammateHelpers.js +28 -0
- package/dist/src/utils/ink.js +14 -0
- package/dist/src/utils/intl.js +61 -0
- package/dist/src/utils/jetbrains.js +130 -0
- package/dist/src/utils/json.js +182 -0
- package/dist/src/utils/jsonRead.js +4 -0
- package/dist/src/utils/keyboardShortcuts.js +8 -0
- package/dist/src/utils/lazySchema.js +4 -0
- package/dist/src/utils/listSessionsImpl.js +219 -0
- package/dist/src/utils/localInstaller.js +86 -0
- package/dist/src/utils/lockfile.js +19 -0
- package/dist/src/utils/log.js +164 -0
- package/dist/src/utils/logoV2Utils.js +192 -0
- package/dist/src/utils/mailbox.js +51 -0
- package/dist/src/utils/managedEnv.js +90 -0
- package/dist/src/utils/managedEnvConstants.js +136 -0
- package/dist/src/utils/markdown.js +216 -0
- package/dist/src/utils/markdownConfigLoader.js +293 -0
- package/dist/src/utils/mcp/dateTimeParser.js +73 -0
- package/dist/src/utils/mcp/elicitationValidation.js +208 -0
- package/dist/src/utils/mcpInstructionsDelta.js +71 -0
- package/dist/src/utils/mcpOutputStorage.js +124 -0
- package/dist/src/utils/mcpValidation.js +138 -0
- package/dist/src/utils/mcpWebSocketTransport.js +152 -0
- package/dist/src/utils/memoize.js +125 -0
- package/dist/src/utils/memory/types.js +8 -0
- package/dist/src/utils/memory/versions.js +4 -0
- package/dist/src/utils/memoryFileDetection.js +151 -0
- package/dist/src/utils/messagePredicates.js +3 -0
- package/dist/src/utils/messageQueueManager.js +267 -0
- package/dist/src/utils/messages/mappers.js +198 -0
- package/dist/src/utils/messages/systemInit.js +47 -0
- package/dist/src/utils/messages.js +3450 -0
- package/dist/src/utils/model/agent.js +91 -0
- package/dist/src/utils/model/aliases.js +16 -0
- package/dist/src/utils/model/antModels.js +23 -0
- package/dist/src/utils/model/bedrock.js +158 -0
- package/dist/src/utils/model/check1mAccess.js +49 -0
- package/dist/src/utils/model/configs.js +81 -0
- package/dist/src/utils/model/contextWindowUpgradeCheck.js +32 -0
- package/dist/src/utils/model/deprecation.js +56 -0
- package/dist/src/utils/model/model.js +377 -0
- package/dist/src/utils/model/modelAllowlist.js +91 -0
- package/dist/src/utils/model/modelCapabilities.js +97 -0
- package/dist/src/utils/model/modelOptions.js +403 -0
- package/dist/src/utils/model/modelStrings.js +112 -0
- package/dist/src/utils/model/modelSupportOverrides.js +32 -0
- package/dist/src/utils/model/providers.js +23 -0
- package/dist/src/utils/model/validateModel.js +108 -0
- package/dist/src/utils/modelCost.js +135 -0
- package/dist/src/utils/modifiers.js +22 -0
- package/dist/src/utils/mtls.js +101 -0
- package/dist/src/utils/nativeInstaller/download.js +309 -0
- package/dist/src/utils/nativeInstaller/index.js +9 -0
- package/dist/src/utils/nativeInstaller/installer.js +1104 -0
- package/dist/src/utils/nativeInstaller/packageManagers.js +174 -0
- package/dist/src/utils/nativeInstaller/pidLock.js +230 -0
- package/dist/src/utils/notebook.js +170 -0
- package/dist/src/utils/objectGroupBy.js +12 -0
- package/dist/src/utils/pasteStore.js +61 -0
- package/dist/src/utils/path.js +65 -0
- package/dist/src/utils/pdf.js +199 -0
- package/dist/src/utils/pdfUtils.js +36 -0
- package/dist/src/utils/peerAddress.js +9 -0
- package/dist/src/utils/permissions/PermissionMode.js +82 -0
- package/dist/src/utils/permissions/PermissionPromptToolResultSchema.js +62 -0
- package/dist/src/utils/permissions/PermissionResult.js +10 -0
- package/dist/src/utils/permissions/PermissionRule.js +7 -0
- package/dist/src/utils/permissions/PermissionUpdate.js +219 -0
- package/dist/src/utils/permissions/PermissionUpdateSchema.js +49 -0
- package/dist/src/utils/permissions/autoModeState.js +26 -0
- package/dist/src/utils/permissions/bashClassifier.js +29 -0
- package/dist/src/utils/permissions/bypassPermissionsKillswitch.js +69 -0
- package/dist/src/utils/permissions/classifierDecision.js +56 -0
- package/dist/src/utils/permissions/classifierShared.js +14 -0
- package/dist/src/utils/permissions/dangerousPatterns.js +44 -0
- package/dist/src/utils/permissions/denialTracking.js +28 -0
- package/dist/src/utils/permissions/filesystem.js +889 -0
- package/dist/src/utils/permissions/getNextPermissionMode.js +51 -0
- package/dist/src/utils/permissions/pathValidation.js +230 -0
- package/dist/src/utils/permissions/permissionExplainer.js +162 -0
- package/dist/src/utils/permissions/permissionRuleParser.js +90 -0
- package/dist/src/utils/permissions/permissionSetup.js +770 -0
- package/dist/src/utils/permissions/permissions.js +585 -0
- package/dist/src/utils/permissions/permissionsLoader.js +160 -0
- package/dist/src/utils/permissions/shadowedRuleDetection.js +81 -0
- package/dist/src/utils/permissions/shellRuleMatching.js +108 -0
- package/dist/src/utils/permissions/yoloClassifier.js +868 -0
- package/dist/src/utils/planModeV2.js +45 -0
- package/dist/src/utils/plans.js +232 -0
- package/dist/src/utils/platform.js +102 -0
- package/dist/src/utils/plugins/addDirPluginSettings.js +30 -0
- package/dist/src/utils/plugins/cacheUtils.js +144 -0
- package/dist/src/utils/plugins/dependencyResolver.js +118 -0
- package/dist/src/utils/plugins/fetchTelemetry.js +65 -0
- package/dist/src/utils/plugins/gitAvailability.js +18 -0
- package/dist/src/utils/plugins/headlessPluginInstall.js +92 -0
- package/dist/src/utils/plugins/hintRecommendation.js +95 -0
- package/dist/src/utils/plugins/installCounts.js +144 -0
- package/dist/src/utils/plugins/installedPluginsManager.js +645 -0
- package/dist/src/utils/plugins/loadPluginAgents.js +197 -0
- package/dist/src/utils/plugins/loadPluginCommands.js +488 -0
- package/dist/src/utils/plugins/loadPluginHooks.js +170 -0
- package/dist/src/utils/plugins/loadPluginOutputStyles.js +98 -0
- package/dist/src/utils/plugins/lspPluginIntegration.js +216 -0
- package/dist/src/utils/plugins/lspRecommendation.js +193 -0
- package/dist/src/utils/plugins/managedPlugins.js +18 -0
- package/dist/src/utils/plugins/marketplaceHelpers.js +309 -0
- package/dist/src/utils/plugins/marketplaceManager.js +1225 -0
- package/dist/src/utils/plugins/mcpPluginIntegration.js +336 -0
- package/dist/src/utils/plugins/mcpbHandler.js +487 -0
- package/dist/src/utils/plugins/officialMarketplace.js +5 -0
- package/dist/src/utils/plugins/officialMarketplaceGcs.js +118 -0
- package/dist/src/utils/plugins/officialMarketplaceStartupCheck.js +267 -0
- package/dist/src/utils/plugins/orphanedPluginFilter.js +47 -0
- package/dist/src/utils/plugins/parseMarketplaceInput.js +75 -0
- package/dist/src/utils/plugins/performStartupChecks.js +34 -0
- package/dist/src/utils/plugins/pluginAutoupdate.js +130 -0
- package/dist/src/utils/plugins/pluginBlocklist.js +66 -0
- package/dist/src/utils/plugins/pluginDirectories.js +78 -0
- package/dist/src/utils/plugins/pluginFlagging.js +122 -0
- package/dist/src/utils/plugins/pluginIdentifier.js +37 -0
- package/dist/src/utils/plugins/pluginInstallationHelpers.js +281 -0
- package/dist/src/utils/plugins/pluginLoader.js +1596 -0
- package/dist/src/utils/plugins/pluginOptionsStorage.js +162 -0
- package/dist/src/utils/plugins/pluginPolicy.js +5 -0
- package/dist/src/utils/plugins/pluginStartupCheck.js +176 -0
- package/dist/src/utils/plugins/pluginVersioning.js +53 -0
- package/dist/src/utils/plugins/reconciler.js +133 -0
- package/dist/src/utils/plugins/refresh.js +96 -0
- package/dist/src/utils/plugins/schemas.js +411 -0
- package/dist/src/utils/plugins/validatePlugin.js +573 -0
- package/dist/src/utils/plugins/walkPluginMarkdown.js +30 -0
- package/dist/src/utils/plugins/zipCache.js +211 -0
- package/dist/src/utils/plugins/zipCacheAdapters.js +93 -0
- package/dist/src/utils/powershell/dangerousCmdlets.js +97 -0
- package/dist/src/utils/powershell/parser.js +929 -0
- package/dist/src/utils/powershell/staticPrefix.js +142 -0
- package/dist/src/utils/preflightChecks.js +196 -0
- package/dist/src/utils/privacyLevel.js +21 -0
- package/dist/src/utils/process.js +42 -0
- package/dist/src/utils/processUserInput/processBashCommand.js +109 -0
- package/dist/src/utils/processUserInput/processSlashCommand.js +600 -0
- package/dist/src/utils/processUserInput/processTextPrompt.js +54 -0
- package/dist/src/utils/processUserInput/processUserInput.js +272 -0
- package/dist/src/utils/profilerBase.js +15 -0
- package/dist/src/utils/promptCategory.js +21 -0
- package/dist/src/utils/promptEditor.js +115 -0
- package/dist/src/utils/promptShellExecution.js +76 -0
- package/dist/src/utils/proxy.js +228 -0
- package/dist/src/utils/queryContext.js +83 -0
- package/dist/src/utils/queryHelpers.js +329 -0
- package/dist/src/utils/queryProfiler.js +177 -0
- package/dist/src/utils/queueProcessor.js +41 -0
- package/dist/src/utils/readEditContext.js +131 -0
- package/dist/src/utils/readFileInRange.js +212 -0
- package/dist/src/utils/releaseNotes.js +186 -0
- package/dist/src/utils/renderOptions.js +45 -0
- package/dist/src/utils/ripgrep.js +383 -0
- package/dist/src/utils/sandbox/sandbox-adapter.js +505 -0
- package/dist/src/utils/sandbox/sandbox-ui-utils.js +3 -0
- package/dist/src/utils/sanitization.js +33 -0
- package/dist/src/utils/screenshotClipboard.js +73 -0
- package/dist/src/utils/sdkEventQueue.js +36 -0
- package/dist/src/utils/secureStorage/fallbackStorage.js +45 -0
- package/dist/src/utils/secureStorage/index.js +9 -0
- package/dist/src/utils/secureStorage/keychainPrefetch.js +43 -0
- package/dist/src/utils/secureStorage/macOsKeychainHelpers.js +42 -0
- package/dist/src/utils/secureStorage/macOsKeychainStorage.js +147 -0
- package/dist/src/utils/secureStorage/plainTextStorage.js +77 -0
- package/dist/src/utils/semanticBoolean.js +4 -0
- package/dist/src/utils/semanticNumber.js +11 -0
- package/dist/src/utils/semver.js +43 -0
- package/dist/src/utils/sequential.js +30 -0
- package/dist/src/utils/sessionActivity.js +95 -0
- package/dist/src/utils/sessionEnvVars.js +13 -0
- package/dist/src/utils/sessionEnvironment.js +113 -0
- package/dist/src/utils/sessionFileAccessHooks.js +150 -0
- package/dist/src/utils/sessionIngressAuth.js +79 -0
- package/dist/src/utils/sessionRestore.js +205 -0
- package/dist/src/utils/sessionStart.js +119 -0
- package/dist/src/utils/sessionState.js +48 -0
- package/dist/src/utils/sessionStorage.js +2891 -0
- package/dist/src/utils/sessionStoragePortable.js +486 -0
- package/dist/src/utils/sessionTitle.js +89 -0
- package/dist/src/utils/sessionUrl.js +33 -0
- package/dist/src/utils/set.js +38 -0
- package/dist/src/utils/settings/allErrors.js +11 -0
- package/dist/src/utils/settings/applySettingsChange.js +40 -0
- package/dist/src/utils/settings/changeDetector.js +279 -0
- package/dist/src/utils/settings/constants.js +119 -0
- package/dist/src/utils/settings/internalWrites.js +15 -0
- package/dist/src/utils/settings/managedPath.js +19 -0
- package/dist/src/utils/settings/mdm/constants.js +33 -0
- package/dist/src/utils/settings/mdm/rawRead.js +72 -0
- package/dist/src/utils/settings/mdm/settings.js +160 -0
- package/dist/src/utils/settings/permissionValidation.js +169 -0
- package/dist/src/utils/settings/pluginOnlyPolicy.js +19 -0
- package/dist/src/utils/settings/schemaOutput.js +7 -0
- package/dist/src/utils/settings/settings.js +530 -0
- package/dist/src/utils/settings/settingsCache.js +36 -0
- package/dist/src/utils/settings/toolValidationConfig.js +58 -0
- package/dist/src/utils/settings/types.js +224 -0
- package/dist/src/utils/settings/validateEditTool.js +26 -0
- package/dist/src/utils/settings/validation.js +160 -0
- package/dist/src/utils/settings/validationTips.js +94 -0
- package/dist/src/utils/shell/bashProvider.js +123 -0
- package/dist/src/utils/shell/outputLimits.js +7 -0
- package/dist/src/utils/shell/powershellDetection.js +50 -0
- package/dist/src/utils/shell/powershellProvider.js +50 -0
- package/dist/src/utils/shell/prefix.js +183 -0
- package/dist/src/utils/shell/readOnlyCommandValidation.js +1347 -0
- package/dist/src/utils/shell/resolveDefaultShell.js +4 -0
- package/dist/src/utils/shell/shellProvider.js +2 -0
- package/dist/src/utils/shell/shellToolUtils.js +10 -0
- package/dist/src/utils/shell/specPrefix.js +152 -0
- package/dist/src/utils/shellConfig.js +88 -0
- package/dist/src/utils/sideQuery.js +108 -0
- package/dist/src/utils/sideQuestion.js +78 -0
- package/dist/src/utils/signal.js +18 -0
- package/dist/src/utils/sinks.js +6 -0
- package/dist/src/utils/skills/skillChangeDetector.js +184 -0
- package/dist/src/utils/slashCommandParsing.js +25 -0
- package/dist/src/utils/sleep.js +43 -0
- package/dist/src/utils/sliceAnsi.js +48 -0
- package/dist/src/utils/slowOperations.js +165 -0
- package/dist/src/utils/standaloneAgent.js +7 -0
- package/dist/src/utils/startupProfiler.js +106 -0
- package/dist/src/utils/staticRender.js +78 -0
- package/dist/src/utils/stats.js +598 -0
- package/dist/src/utils/statsCache.js +223 -0
- package/dist/src/utils/status.js +361 -0
- package/dist/src/utils/statusNoticeDefinitions.js +280 -0
- package/dist/src/utils/statusNoticeHelpers.js +10 -0
- package/dist/src/utils/stream.js +72 -0
- package/dist/src/utils/streamJsonStdoutGuard.js +73 -0
- package/dist/src/utils/streamlinedTransform.js +130 -0
- package/dist/src/utils/stringUtils.js +108 -0
- package/dist/src/utils/subprocessEnv.js +42 -0
- package/dist/src/utils/suggestions/commandSuggestions.js +301 -0
- package/dist/src/utils/suggestions/directoryCompletion.js +134 -0
- package/dist/src/utils/suggestions/shellHistoryCompletion.js +65 -0
- package/dist/src/utils/suggestions/skillUsageTracking.js +33 -0
- package/dist/src/utils/suggestions/slackChannelSuggestions.js +141 -0
- package/dist/src/utils/swarm/It2SetupPrompt.js +537 -0
- package/dist/src/utils/swarm/backends/ITermBackend.js +153 -0
- package/dist/src/utils/swarm/backends/InProcessBackend.js +160 -0
- package/dist/src/utils/swarm/backends/PaneBackendExecutor.js +171 -0
- package/dist/src/utils/swarm/backends/TmuxBackend.js +458 -0
- package/dist/src/utils/swarm/backends/detection.js +43 -0
- package/dist/src/utils/swarm/backends/it2Setup.js +134 -0
- package/dist/src/utils/swarm/backends/registry.js +220 -0
- package/dist/src/utils/swarm/backends/teammateModeSnapshot.js +33 -0
- package/dist/src/utils/swarm/backends/types.js +3 -0
- package/dist/src/utils/swarm/constants.js +11 -0
- package/dist/src/utils/swarm/inProcessRunner.js +818 -0
- package/dist/src/utils/swarm/leaderPermissionBridge.js +20 -0
- package/dist/src/utils/swarm/permissionSync.js +474 -0
- package/dist/src/utils/swarm/reconnection.js +55 -0
- package/dist/src/utils/swarm/spawnInProcess.js +164 -0
- package/dist/src/utils/swarm/spawnUtils.js +76 -0
- package/dist/src/utils/swarm/teamHelpers.js +320 -0
- package/dist/src/utils/swarm/teammateInit.js +65 -0
- package/dist/src/utils/swarm/teammateLayoutManager.js +40 -0
- package/dist/src/utils/swarm/teammateModel.js +5 -0
- package/dist/src/utils/swarm/teammatePromptAddendum.js +11 -0
- package/dist/src/utils/systemDirectories.js +42 -0
- package/dist/src/utils/systemPrompt.js +41 -0
- package/dist/src/utils/systemPromptType.js +3 -0
- package/dist/src/utils/systemTheme.js +61 -0
- package/dist/src/utils/taggedId.js +27 -0
- package/dist/src/utils/task/TaskOutput.js +244 -0
- package/dist/src/utils/task/diskOutput.js +267 -0
- package/dist/src/utils/task/framework.js +178 -0
- package/dist/src/utils/task/outputFormatting.js +21 -0
- package/dist/src/utils/task/sdkProgress.js +18 -0
- package/dist/src/utils/tasks.js +481 -0
- package/dist/src/utils/teamDiscovery.js +33 -0
- package/dist/src/utils/teamMemoryOps.js +40 -0
- package/dist/src/utils/teammate.js +132 -0
- package/dist/src/utils/teammateContext.js +17 -0
- package/dist/src/utils/teammateMailbox.js +541 -0
- package/dist/src/utils/telemetry/betaSessionTracing.js +255 -0
- package/dist/src/utils/telemetry/bigqueryExporter.js +162 -0
- package/dist/src/utils/telemetry/events.js +46 -0
- package/dist/src/utils/telemetry/instrumentation.js +534 -0
- package/dist/src/utils/telemetry/logger.js +26 -0
- package/dist/src/utils/telemetry/perfettoTracing.js +636 -0
- package/dist/src/utils/telemetry/pluginTelemetry.js +99 -0
- package/dist/src/utils/telemetry/sessionTracing.js +564 -0
- package/dist/src/utils/telemetry/skillLoadedEvent.js +22 -0
- package/dist/src/utils/telemetryAttributes.js +50 -0
- package/dist/src/utils/teleport/api.js +236 -0
- package/dist/src/utils/teleport/environmentSelection.js +42 -0
- package/dist/src/utils/teleport/environments.js +74 -0
- package/dist/src/utils/teleport/gitBundle.js +153 -0
- package/dist/src/utils/teleport.js +856 -0
- package/dist/src/utils/tempfile.js +7 -0
- package/dist/src/utils/terminal.js +65 -0
- package/dist/src/utils/terminalPanel.js +133 -0
- package/dist/src/utils/textHighlighting.js +109 -0
- package/dist/src/utils/theme.js +465 -0
- package/dist/src/utils/thinking.js +92 -0
- package/dist/src/utils/timeouts.js +22 -0
- package/dist/src/utils/tmuxSocket.js +216 -0
- package/dist/src/utils/todo/types.js +9 -0
- package/dist/src/utils/tokenBudget.js +54 -0
- package/dist/src/utils/tokens.js +123 -0
- package/dist/src/utils/toolErrors.js +87 -0
- package/dist/src/utils/toolPool.js +22 -0
- package/dist/src/utils/toolResultStorage.js +444 -0
- package/dist/src/utils/toolSchemaCache.js +7 -0
- package/dist/src/utils/toolSearch.js +314 -0
- package/dist/src/utils/transcriptSearch.js +143 -0
- package/dist/src/utils/treeify.js +89 -0
- package/dist/src/utils/truncate.js +113 -0
- package/dist/src/utils/ultraplan/ccrSession.js +187 -0
- package/dist/src/utils/ultraplan/keyword.js +81 -0
- package/dist/src/utils/ultraplan/prompt.txt.js +1 -0
- package/dist/src/utils/unaryLogging.js +15 -0
- package/dist/src/utils/undercover.js +57 -0
- package/dist/src/utils/user.js +111 -0
- package/dist/src/utils/userAgent.js +3 -0
- package/dist/src/utils/userPromptKeywords.js +13 -0
- package/dist/src/utils/uuid.js +11 -0
- package/dist/src/utils/warningHandler.js +74 -0
- package/dist/src/utils/which.js +50 -0
- package/dist/src/utils/windowsPaths.js +104 -0
- package/dist/src/utils/withResolvers.js +9 -0
- package/dist/src/utils/words.js +763 -0
- package/dist/src/utils/workloadContext.js +9 -0
- package/dist/src/utils/worktree.js +841 -0
- package/dist/src/utils/worktreeModeEnabled.js +3 -0
- package/dist/src/utils/xdg.js +24 -0
- package/dist/src/utils/xml.js +6 -0
- package/dist/src/utils/yaml.js +6 -0
- package/dist/src/utils/zodToJsonSchema.js +10 -0
- package/dist/src/vim/motions.js +54 -0
- package/dist/src/vim/operators.js +329 -0
- package/dist/src/vim/textObjects.js +137 -0
- package/dist/src/vim/transitions.js +324 -0
- package/dist/src/vim/types.js +60 -0
- package/dist/src/voice/voiceModeEnabled.js +18 -0
- package/dist/stubs/ant-claude-for-chrome-mcp.js +6 -0
- package/dist/stubs/color-diff-napi.js +30 -0
- package/litellm.yaml +25 -0
- package/package.json +93 -0
|
@@ -0,0 +1,1776 @@
|
|
|
1
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { Box, Text, useTheme, useThemeSetting, useTerminalFocus } from "../../ink.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { useState, useCallback } from "react";
|
|
5
|
+
import { useKeybinding, useKeybindings } from "../../keybindings/useKeybinding.js";
|
|
6
|
+
import figures from "figures";
|
|
7
|
+
import { saveGlobalConfig, getCurrentProjectConfig } from "../../utils/config.js";
|
|
8
|
+
import { normalizeApiKeyForConfig } from "../../utils/authPortable.js";
|
|
9
|
+
import { getGlobalConfig, getAutoUpdaterDisabledReason, formatAutoUpdaterDisabledReason, getRemoteControlAtStartup } from "../../utils/config.js";
|
|
10
|
+
import chalk from "chalk";
|
|
11
|
+
import { permissionModeTitle, permissionModeFromString, toExternalPermissionMode, isExternalPermissionMode, EXTERNAL_PERMISSION_MODES, PERMISSION_MODES } from "../../utils/permissions/PermissionMode.js";
|
|
12
|
+
import { getAutoModeEnabledState, hasAutoModeOptInAnySource, transitionPlanAutoMode } from "../../utils/permissions/permissionSetup.js";
|
|
13
|
+
import { logError } from "../../utils/log.js";
|
|
14
|
+
import { logEvent } from "../../services/analytics/index.js";
|
|
15
|
+
import { isBridgeEnabled } from "../../bridge/bridgeEnabled.js";
|
|
16
|
+
import { ThemePicker } from "../ThemePicker.js";
|
|
17
|
+
import { useAppState, useSetAppState, useAppStateStore } from "../../state/AppState.js";
|
|
18
|
+
import { ModelPicker } from "../ModelPicker.js";
|
|
19
|
+
import { modelDisplayString, isOpus1mMergeEnabled } from "../../utils/model/model.js";
|
|
20
|
+
import { isBilledAsExtraUsage } from "../../utils/extraUsage.js";
|
|
21
|
+
import { ClaudeMdExternalIncludesDialog } from "../ClaudeMdExternalIncludesDialog.js";
|
|
22
|
+
import { ChannelDowngradeDialog } from "../ChannelDowngradeDialog.js";
|
|
23
|
+
import { Dialog } from "../design-system/Dialog.js";
|
|
24
|
+
import { Select } from "../CustomSelect/index.js";
|
|
25
|
+
import { OutputStylePicker } from "../OutputStylePicker.js";
|
|
26
|
+
import { LanguagePicker } from "../LanguagePicker.js";
|
|
27
|
+
import { getExternalClaudeMdIncludes, getMemoryFiles, hasExternalClaudeMdIncludes } from "../../utils/claudemd.js";
|
|
28
|
+
import { KeyboardShortcutHint } from "../design-system/KeyboardShortcutHint.js";
|
|
29
|
+
import { ConfigurableShortcutHint } from "../ConfigurableShortcutHint.js";
|
|
30
|
+
import { Byline } from "../design-system/Byline.js";
|
|
31
|
+
import { useTabHeaderFocus } from "../design-system/Tabs.js";
|
|
32
|
+
import { useIsInsideModal } from "../../context/modalContext.js";
|
|
33
|
+
import { SearchBox } from "../SearchBox.js";
|
|
34
|
+
import { isSupportedTerminal, hasAccessToIDEExtensionDiffFeature } from "../../utils/ide.js";
|
|
35
|
+
import { getInitialSettings, getSettingsForSource, updateSettingsForSource } from "../../utils/settings/settings.js";
|
|
36
|
+
import { getUserMsgOptIn, setUserMsgOptIn } from "../../bootstrap/state.js";
|
|
37
|
+
import { DEFAULT_OUTPUT_STYLE_NAME } from "../../constants/outputStyles.js";
|
|
38
|
+
import { isEnvTruthy, isRunningOnHomespace } from "../../utils/envUtils.js";
|
|
39
|
+
import { getFeatureValue_CACHED_MAY_BE_STALE } from "../../services/analytics/growthbook.js";
|
|
40
|
+
import { isAgentSwarmsEnabled } from "../../utils/agentSwarmsEnabled.js";
|
|
41
|
+
import { getCliTeammateModeOverride, clearCliTeammateModeOverride } from "../../utils/swarm/backends/teammateModeSnapshot.js";
|
|
42
|
+
import { getHardcodedTeammateModelFallback } from "../../utils/swarm/teammateModel.js";
|
|
43
|
+
import { useSearchInput } from "../../hooks/useSearchInput.js";
|
|
44
|
+
import { useTerminalSize } from "../../hooks/useTerminalSize.js";
|
|
45
|
+
import { clearFastModeCooldown, FAST_MODE_MODEL_DISPLAY, isFastModeAvailable, isFastModeEnabled, getFastModeModel, isFastModeSupportedByModel } from "../../utils/fastMode.js";
|
|
46
|
+
import { isFullscreenEnvEnabled } from "../../utils/fullscreen.js";
|
|
47
|
+
export function Config({
|
|
48
|
+
onClose,
|
|
49
|
+
context,
|
|
50
|
+
setTabsHidden,
|
|
51
|
+
onIsSearchModeChange,
|
|
52
|
+
contentHeight
|
|
53
|
+
}) {
|
|
54
|
+
const {
|
|
55
|
+
headerFocused,
|
|
56
|
+
focusHeader
|
|
57
|
+
} = useTabHeaderFocus();
|
|
58
|
+
const insideModal = useIsInsideModal();
|
|
59
|
+
const [, setTheme] = useTheme();
|
|
60
|
+
const themeSetting = useThemeSetting();
|
|
61
|
+
const [globalConfig, setGlobalConfig] = useState(getGlobalConfig());
|
|
62
|
+
const initialConfig = React.useRef(getGlobalConfig());
|
|
63
|
+
const [settingsData, setSettingsData] = useState(getInitialSettings());
|
|
64
|
+
const initialSettingsData = React.useRef(getInitialSettings());
|
|
65
|
+
const [currentOutputStyle, setCurrentOutputStyle] = useState(settingsData?.outputStyle || DEFAULT_OUTPUT_STYLE_NAME);
|
|
66
|
+
const initialOutputStyle = React.useRef(currentOutputStyle);
|
|
67
|
+
const [currentLanguage, setCurrentLanguage] = useState(settingsData?.language);
|
|
68
|
+
const initialLanguage = React.useRef(currentLanguage);
|
|
69
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
70
|
+
const [scrollOffset, setScrollOffset] = useState(0);
|
|
71
|
+
const [isSearchMode, setIsSearchMode] = useState(true);
|
|
72
|
+
const isTerminalFocused = useTerminalFocus();
|
|
73
|
+
const {
|
|
74
|
+
rows
|
|
75
|
+
} = useTerminalSize();
|
|
76
|
+
const paneCap = contentHeight ?? Math.min(Math.floor(rows * 0.8), 30);
|
|
77
|
+
const maxVisible = Math.max(5, paneCap - 10);
|
|
78
|
+
const mainLoopModel = useAppState((s) => s.mainLoopModel);
|
|
79
|
+
const verbose = useAppState((s_0) => s_0.verbose);
|
|
80
|
+
const thinkingEnabled = useAppState((s_1) => s_1.thinkingEnabled);
|
|
81
|
+
const isFastMode = useAppState((s_2) => isFastModeEnabled() ? s_2.fastMode : false);
|
|
82
|
+
const promptSuggestionEnabled = useAppState((s_3) => s_3.promptSuggestionEnabled);
|
|
83
|
+
const showAutoInDefaultModePicker = false;
|
|
84
|
+
const showDefaultViewPicker = false;
|
|
85
|
+
const setAppState = useSetAppState();
|
|
86
|
+
const [changes, setChanges] = useState({});
|
|
87
|
+
const initialThinkingEnabled = React.useRef(thinkingEnabled);
|
|
88
|
+
const [initialLocalSettings] = useState(() => getSettingsForSource("localSettings"));
|
|
89
|
+
const [initialUserSettings] = useState(() => getSettingsForSource("userSettings"));
|
|
90
|
+
const initialThemeSetting = React.useRef(themeSetting);
|
|
91
|
+
const store = useAppStateStore();
|
|
92
|
+
const [initialAppState] = useState(() => {
|
|
93
|
+
const s_4 = store.getState();
|
|
94
|
+
return {
|
|
95
|
+
mainLoopModel: s_4.mainLoopModel,
|
|
96
|
+
mainLoopModelForSession: s_4.mainLoopModelForSession,
|
|
97
|
+
verbose: s_4.verbose,
|
|
98
|
+
thinkingEnabled: s_4.thinkingEnabled,
|
|
99
|
+
fastMode: s_4.fastMode,
|
|
100
|
+
promptSuggestionEnabled: s_4.promptSuggestionEnabled,
|
|
101
|
+
isBriefOnly: s_4.isBriefOnly,
|
|
102
|
+
replBridgeEnabled: s_4.replBridgeEnabled,
|
|
103
|
+
replBridgeOutboundOnly: s_4.replBridgeOutboundOnly,
|
|
104
|
+
settings: s_4.settings
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
const [initialUserMsgOptIn] = useState(() => getUserMsgOptIn());
|
|
108
|
+
const isDirty = React.useRef(false);
|
|
109
|
+
const [showThinkingWarning, setShowThinkingWarning] = useState(false);
|
|
110
|
+
const [showSubmenu, setShowSubmenu] = useState(null);
|
|
111
|
+
const {
|
|
112
|
+
query: searchQuery,
|
|
113
|
+
setQuery: setSearchQuery,
|
|
114
|
+
cursorOffset: searchCursorOffset
|
|
115
|
+
} = useSearchInput({
|
|
116
|
+
isActive: isSearchMode && showSubmenu === null && !headerFocused,
|
|
117
|
+
onExit: () => setIsSearchMode(false),
|
|
118
|
+
onExitUp: focusHeader,
|
|
119
|
+
passthroughCtrlKeys: ["c", "d"]
|
|
120
|
+
});
|
|
121
|
+
const ownsEsc = isSearchMode && !headerFocused;
|
|
122
|
+
React.useEffect(() => {
|
|
123
|
+
onIsSearchModeChange?.(ownsEsc);
|
|
124
|
+
}, [ownsEsc, onIsSearchModeChange]);
|
|
125
|
+
const isConnectedToIde = hasAccessToIDEExtensionDiffFeature(context.options.mcpClients);
|
|
126
|
+
const isFileCheckpointingAvailable = !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING);
|
|
127
|
+
const memoryFiles = React.use(getMemoryFiles(true));
|
|
128
|
+
const shouldShowExternalIncludesToggle = hasExternalClaudeMdIncludes(memoryFiles);
|
|
129
|
+
const autoUpdaterDisabledReason = getAutoUpdaterDisabledReason();
|
|
130
|
+
function onChangeMainModelConfig(value) {
|
|
131
|
+
const previousModel = mainLoopModel;
|
|
132
|
+
logEvent("tengu_config_model_changed", {
|
|
133
|
+
from_model: previousModel,
|
|
134
|
+
to_model: value
|
|
135
|
+
});
|
|
136
|
+
setAppState((prev) => ({
|
|
137
|
+
...prev,
|
|
138
|
+
mainLoopModel: value,
|
|
139
|
+
mainLoopModelForSession: null
|
|
140
|
+
}));
|
|
141
|
+
setChanges((prev_0) => {
|
|
142
|
+
const valStr = modelDisplayString(value) + (isBilledAsExtraUsage(value, false, isOpus1mMergeEnabled()) ? " · Billed as extra usage" : "");
|
|
143
|
+
if ("model" in prev_0) {
|
|
144
|
+
const {
|
|
145
|
+
model,
|
|
146
|
+
...rest
|
|
147
|
+
} = prev_0;
|
|
148
|
+
return {
|
|
149
|
+
...rest,
|
|
150
|
+
model: valStr
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
return {
|
|
154
|
+
...prev_0,
|
|
155
|
+
model: valStr
|
|
156
|
+
};
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function onChangeVerbose(value_0) {
|
|
160
|
+
saveGlobalConfig((current) => ({
|
|
161
|
+
...current,
|
|
162
|
+
verbose: value_0
|
|
163
|
+
}));
|
|
164
|
+
setGlobalConfig({
|
|
165
|
+
...getGlobalConfig(),
|
|
166
|
+
verbose: value_0
|
|
167
|
+
});
|
|
168
|
+
setAppState((prev_1) => ({
|
|
169
|
+
...prev_1,
|
|
170
|
+
verbose: value_0
|
|
171
|
+
}));
|
|
172
|
+
setChanges((prev_2) => {
|
|
173
|
+
if ("verbose" in prev_2) {
|
|
174
|
+
const {
|
|
175
|
+
verbose: verbose_0,
|
|
176
|
+
...rest_0
|
|
177
|
+
} = prev_2;
|
|
178
|
+
return rest_0;
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
...prev_2,
|
|
182
|
+
verbose: value_0
|
|
183
|
+
};
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
const settingsItems = [
|
|
187
|
+
{
|
|
188
|
+
id: "autoCompactEnabled",
|
|
189
|
+
label: "Auto-compact",
|
|
190
|
+
value: globalConfig.autoCompactEnabled,
|
|
191
|
+
type: "boolean",
|
|
192
|
+
onChange(autoCompactEnabled) {
|
|
193
|
+
saveGlobalConfig((current_0) => ({
|
|
194
|
+
...current_0,
|
|
195
|
+
autoCompactEnabled
|
|
196
|
+
}));
|
|
197
|
+
setGlobalConfig({
|
|
198
|
+
...getGlobalConfig(),
|
|
199
|
+
autoCompactEnabled
|
|
200
|
+
});
|
|
201
|
+
logEvent("tengu_auto_compact_setting_changed", {
|
|
202
|
+
enabled: autoCompactEnabled
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: "spinnerTipsEnabled",
|
|
208
|
+
label: "Show tips",
|
|
209
|
+
value: settingsData?.spinnerTipsEnabled ?? true,
|
|
210
|
+
type: "boolean",
|
|
211
|
+
onChange(spinnerTipsEnabled) {
|
|
212
|
+
updateSettingsForSource("localSettings", {
|
|
213
|
+
spinnerTipsEnabled
|
|
214
|
+
});
|
|
215
|
+
setSettingsData((prev_3) => ({
|
|
216
|
+
...prev_3,
|
|
217
|
+
spinnerTipsEnabled
|
|
218
|
+
}));
|
|
219
|
+
logEvent("tengu_tips_setting_changed", {
|
|
220
|
+
enabled: spinnerTipsEnabled
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "prefersReducedMotion",
|
|
226
|
+
label: "Reduce motion",
|
|
227
|
+
value: settingsData?.prefersReducedMotion ?? false,
|
|
228
|
+
type: "boolean",
|
|
229
|
+
onChange(prefersReducedMotion) {
|
|
230
|
+
updateSettingsForSource("localSettings", {
|
|
231
|
+
prefersReducedMotion
|
|
232
|
+
});
|
|
233
|
+
setSettingsData((prev_4) => ({
|
|
234
|
+
...prev_4,
|
|
235
|
+
prefersReducedMotion
|
|
236
|
+
}));
|
|
237
|
+
setAppState((prev_5) => ({
|
|
238
|
+
...prev_5,
|
|
239
|
+
settings: {
|
|
240
|
+
...prev_5.settings,
|
|
241
|
+
prefersReducedMotion
|
|
242
|
+
}
|
|
243
|
+
}));
|
|
244
|
+
logEvent("tengu_reduce_motion_setting_changed", {
|
|
245
|
+
enabled: prefersReducedMotion
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
id: "thinkingEnabled",
|
|
251
|
+
label: "Thinking mode",
|
|
252
|
+
value: thinkingEnabled ?? true,
|
|
253
|
+
type: "boolean",
|
|
254
|
+
onChange(enabled) {
|
|
255
|
+
setAppState((prev_6) => ({
|
|
256
|
+
...prev_6,
|
|
257
|
+
thinkingEnabled: enabled
|
|
258
|
+
}));
|
|
259
|
+
updateSettingsForSource("userSettings", {
|
|
260
|
+
alwaysThinkingEnabled: enabled ? undefined : false
|
|
261
|
+
});
|
|
262
|
+
logEvent("tengu_thinking_toggled", {
|
|
263
|
+
enabled
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
...isFastModeEnabled() && isFastModeAvailable() ? [{
|
|
268
|
+
id: "fastMode",
|
|
269
|
+
label: `Fast mode (${FAST_MODE_MODEL_DISPLAY} only)`,
|
|
270
|
+
value: !!isFastMode,
|
|
271
|
+
type: "boolean",
|
|
272
|
+
onChange(enabled_0) {
|
|
273
|
+
clearFastModeCooldown();
|
|
274
|
+
updateSettingsForSource("userSettings", {
|
|
275
|
+
fastMode: enabled_0 ? true : undefined
|
|
276
|
+
});
|
|
277
|
+
if (enabled_0) {
|
|
278
|
+
setAppState((prev_7) => ({
|
|
279
|
+
...prev_7,
|
|
280
|
+
mainLoopModel: getFastModeModel(),
|
|
281
|
+
mainLoopModelForSession: null,
|
|
282
|
+
fastMode: true
|
|
283
|
+
}));
|
|
284
|
+
setChanges((prev_8) => ({
|
|
285
|
+
...prev_8,
|
|
286
|
+
model: getFastModeModel(),
|
|
287
|
+
"Fast mode": "ON"
|
|
288
|
+
}));
|
|
289
|
+
} else {
|
|
290
|
+
setAppState((prev_9) => ({
|
|
291
|
+
...prev_9,
|
|
292
|
+
fastMode: false
|
|
293
|
+
}));
|
|
294
|
+
setChanges((prev_10) => ({
|
|
295
|
+
...prev_10,
|
|
296
|
+
"Fast mode": "OFF"
|
|
297
|
+
}));
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}] : [],
|
|
301
|
+
...getFeatureValue_CACHED_MAY_BE_STALE("tengu_chomp_inflection", false) ? [{
|
|
302
|
+
id: "promptSuggestionEnabled",
|
|
303
|
+
label: "Prompt suggestions",
|
|
304
|
+
value: promptSuggestionEnabled,
|
|
305
|
+
type: "boolean",
|
|
306
|
+
onChange(enabled_1) {
|
|
307
|
+
setAppState((prev_11) => ({
|
|
308
|
+
...prev_11,
|
|
309
|
+
promptSuggestionEnabled: enabled_1
|
|
310
|
+
}));
|
|
311
|
+
updateSettingsForSource("userSettings", {
|
|
312
|
+
promptSuggestionEnabled: enabled_1 ? undefined : false
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}] : [],
|
|
316
|
+
...[],
|
|
317
|
+
...isFileCheckpointingAvailable ? [{
|
|
318
|
+
id: "fileCheckpointingEnabled",
|
|
319
|
+
label: "Rewind code (checkpoints)",
|
|
320
|
+
value: globalConfig.fileCheckpointingEnabled,
|
|
321
|
+
type: "boolean",
|
|
322
|
+
onChange(enabled_3) {
|
|
323
|
+
saveGlobalConfig((current_2) => ({
|
|
324
|
+
...current_2,
|
|
325
|
+
fileCheckpointingEnabled: enabled_3
|
|
326
|
+
}));
|
|
327
|
+
setGlobalConfig({
|
|
328
|
+
...getGlobalConfig(),
|
|
329
|
+
fileCheckpointingEnabled: enabled_3
|
|
330
|
+
});
|
|
331
|
+
logEvent("tengu_file_history_snapshots_setting_changed", {
|
|
332
|
+
enabled: enabled_3
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
}] : [],
|
|
336
|
+
{
|
|
337
|
+
id: "verbose",
|
|
338
|
+
label: "Verbose output",
|
|
339
|
+
value: verbose,
|
|
340
|
+
type: "boolean",
|
|
341
|
+
onChange: onChangeVerbose
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: "terminalProgressBarEnabled",
|
|
345
|
+
label: "Terminal progress bar",
|
|
346
|
+
value: globalConfig.terminalProgressBarEnabled,
|
|
347
|
+
type: "boolean",
|
|
348
|
+
onChange(terminalProgressBarEnabled) {
|
|
349
|
+
saveGlobalConfig((current_3) => ({
|
|
350
|
+
...current_3,
|
|
351
|
+
terminalProgressBarEnabled
|
|
352
|
+
}));
|
|
353
|
+
setGlobalConfig({
|
|
354
|
+
...getGlobalConfig(),
|
|
355
|
+
terminalProgressBarEnabled
|
|
356
|
+
});
|
|
357
|
+
logEvent("tengu_terminal_progress_bar_setting_changed", {
|
|
358
|
+
enabled: terminalProgressBarEnabled
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
...getFeatureValue_CACHED_MAY_BE_STALE("tengu_terminal_sidebar", false) ? [{
|
|
363
|
+
id: "showStatusInTerminalTab",
|
|
364
|
+
label: "Show status in terminal tab",
|
|
365
|
+
value: globalConfig.showStatusInTerminalTab ?? false,
|
|
366
|
+
type: "boolean",
|
|
367
|
+
onChange(showStatusInTerminalTab) {
|
|
368
|
+
saveGlobalConfig((current_4) => ({
|
|
369
|
+
...current_4,
|
|
370
|
+
showStatusInTerminalTab
|
|
371
|
+
}));
|
|
372
|
+
setGlobalConfig({
|
|
373
|
+
...getGlobalConfig(),
|
|
374
|
+
showStatusInTerminalTab
|
|
375
|
+
});
|
|
376
|
+
logEvent("tengu_terminal_tab_status_setting_changed", {
|
|
377
|
+
enabled: showStatusInTerminalTab
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
}] : [],
|
|
381
|
+
{
|
|
382
|
+
id: "showTurnDuration",
|
|
383
|
+
label: "Show turn duration",
|
|
384
|
+
value: globalConfig.showTurnDuration,
|
|
385
|
+
type: "boolean",
|
|
386
|
+
onChange(showTurnDuration) {
|
|
387
|
+
saveGlobalConfig((current_5) => ({
|
|
388
|
+
...current_5,
|
|
389
|
+
showTurnDuration
|
|
390
|
+
}));
|
|
391
|
+
setGlobalConfig({
|
|
392
|
+
...getGlobalConfig(),
|
|
393
|
+
showTurnDuration
|
|
394
|
+
});
|
|
395
|
+
logEvent("tengu_show_turn_duration_setting_changed", {
|
|
396
|
+
enabled: showTurnDuration
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
id: "defaultPermissionMode",
|
|
402
|
+
label: "Default permission mode",
|
|
403
|
+
value: settingsData?.permissions?.defaultMode || "default",
|
|
404
|
+
options: (() => {
|
|
405
|
+
const priorityOrder = ["default", "plan"];
|
|
406
|
+
const allModes = EXTERNAL_PERMISSION_MODES;
|
|
407
|
+
const excluded = ["bypassPermissions"];
|
|
408
|
+
if (false) {}
|
|
409
|
+
return [...priorityOrder, ...allModes.filter((m) => !priorityOrder.includes(m) && !excluded.includes(m))];
|
|
410
|
+
})(),
|
|
411
|
+
type: "enum",
|
|
412
|
+
onChange(mode) {
|
|
413
|
+
const parsedMode = permissionModeFromString(mode);
|
|
414
|
+
const validatedMode = isExternalPermissionMode(parsedMode) ? toExternalPermissionMode(parsedMode) : parsedMode;
|
|
415
|
+
const result = updateSettingsForSource("userSettings", {
|
|
416
|
+
permissions: {
|
|
417
|
+
...settingsData?.permissions,
|
|
418
|
+
defaultMode: validatedMode
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
if (result.error) {
|
|
422
|
+
logError(result.error);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
setSettingsData((prev_12) => ({
|
|
426
|
+
...prev_12,
|
|
427
|
+
permissions: {
|
|
428
|
+
...prev_12?.permissions,
|
|
429
|
+
defaultMode: validatedMode
|
|
430
|
+
}
|
|
431
|
+
}));
|
|
432
|
+
setChanges((prev_13) => ({
|
|
433
|
+
...prev_13,
|
|
434
|
+
defaultPermissionMode: mode
|
|
435
|
+
}));
|
|
436
|
+
logEvent("tengu_config_changed", {
|
|
437
|
+
setting: "defaultPermissionMode",
|
|
438
|
+
value: mode
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
...[],
|
|
443
|
+
{
|
|
444
|
+
id: "respectGitignore",
|
|
445
|
+
label: "Respect .gitignore in file picker",
|
|
446
|
+
value: globalConfig.respectGitignore,
|
|
447
|
+
type: "boolean",
|
|
448
|
+
onChange(respectGitignore) {
|
|
449
|
+
saveGlobalConfig((current_6) => ({
|
|
450
|
+
...current_6,
|
|
451
|
+
respectGitignore
|
|
452
|
+
}));
|
|
453
|
+
setGlobalConfig({
|
|
454
|
+
...getGlobalConfig(),
|
|
455
|
+
respectGitignore
|
|
456
|
+
});
|
|
457
|
+
logEvent("tengu_respect_gitignore_setting_changed", {
|
|
458
|
+
enabled: respectGitignore
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
id: "copyFullResponse",
|
|
464
|
+
label: "Always copy full response (skip /copy picker)",
|
|
465
|
+
value: globalConfig.copyFullResponse,
|
|
466
|
+
type: "boolean",
|
|
467
|
+
onChange(copyFullResponse) {
|
|
468
|
+
saveGlobalConfig((current_7) => ({
|
|
469
|
+
...current_7,
|
|
470
|
+
copyFullResponse
|
|
471
|
+
}));
|
|
472
|
+
setGlobalConfig({
|
|
473
|
+
...getGlobalConfig(),
|
|
474
|
+
copyFullResponse
|
|
475
|
+
});
|
|
476
|
+
logEvent("tengu_config_changed", {
|
|
477
|
+
setting: "copyFullResponse",
|
|
478
|
+
value: String(copyFullResponse)
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
},
|
|
482
|
+
...isFullscreenEnvEnabled() ? [{
|
|
483
|
+
id: "copyOnSelect",
|
|
484
|
+
label: "Copy on select",
|
|
485
|
+
value: globalConfig.copyOnSelect ?? true,
|
|
486
|
+
type: "boolean",
|
|
487
|
+
onChange(copyOnSelect) {
|
|
488
|
+
saveGlobalConfig((current_8) => ({
|
|
489
|
+
...current_8,
|
|
490
|
+
copyOnSelect
|
|
491
|
+
}));
|
|
492
|
+
setGlobalConfig({
|
|
493
|
+
...getGlobalConfig(),
|
|
494
|
+
copyOnSelect
|
|
495
|
+
});
|
|
496
|
+
logEvent("tengu_config_changed", {
|
|
497
|
+
setting: "copyOnSelect",
|
|
498
|
+
value: String(copyOnSelect)
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
}] : [],
|
|
502
|
+
autoUpdaterDisabledReason ? {
|
|
503
|
+
id: "autoUpdatesChannel",
|
|
504
|
+
label: "Auto-update channel",
|
|
505
|
+
value: "disabled",
|
|
506
|
+
type: "managedEnum",
|
|
507
|
+
onChange() {}
|
|
508
|
+
} : {
|
|
509
|
+
id: "autoUpdatesChannel",
|
|
510
|
+
label: "Auto-update channel",
|
|
511
|
+
value: settingsData?.autoUpdatesChannel ?? "latest",
|
|
512
|
+
type: "managedEnum",
|
|
513
|
+
onChange() {}
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
id: "theme",
|
|
517
|
+
label: "Theme",
|
|
518
|
+
value: themeSetting,
|
|
519
|
+
type: "managedEnum",
|
|
520
|
+
onChange: setTheme
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
id: "notifChannel",
|
|
524
|
+
label: "Notifications",
|
|
525
|
+
value: globalConfig.preferredNotifChannel,
|
|
526
|
+
options: ["auto", "iterm2", "terminal_bell", "iterm2_with_bell", "kitty", "ghostty", "notifications_disabled"],
|
|
527
|
+
type: "enum",
|
|
528
|
+
onChange(notifChannel) {
|
|
529
|
+
saveGlobalConfig((current_9) => ({
|
|
530
|
+
...current_9,
|
|
531
|
+
preferredNotifChannel: notifChannel
|
|
532
|
+
}));
|
|
533
|
+
setGlobalConfig({
|
|
534
|
+
...getGlobalConfig(),
|
|
535
|
+
preferredNotifChannel: notifChannel
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
...[],
|
|
540
|
+
{
|
|
541
|
+
id: "outputStyle",
|
|
542
|
+
label: "Output style",
|
|
543
|
+
value: currentOutputStyle,
|
|
544
|
+
type: "managedEnum",
|
|
545
|
+
onChange: () => {}
|
|
546
|
+
},
|
|
547
|
+
...showDefaultViewPicker ? [{
|
|
548
|
+
id: "defaultView",
|
|
549
|
+
label: "What you see by default",
|
|
550
|
+
value: settingsData?.defaultView === undefined ? "default" : String(settingsData.defaultView),
|
|
551
|
+
options: ["transcript", "chat", "default"],
|
|
552
|
+
type: "enum",
|
|
553
|
+
onChange(selected) {
|
|
554
|
+
const defaultView = selected === "default" ? undefined : selected;
|
|
555
|
+
updateSettingsForSource("localSettings", {
|
|
556
|
+
defaultView
|
|
557
|
+
});
|
|
558
|
+
setSettingsData((prev_17) => ({
|
|
559
|
+
...prev_17,
|
|
560
|
+
defaultView
|
|
561
|
+
}));
|
|
562
|
+
const nextBrief = defaultView === "chat";
|
|
563
|
+
setAppState((prev_18) => {
|
|
564
|
+
if (prev_18.isBriefOnly === nextBrief)
|
|
565
|
+
return prev_18;
|
|
566
|
+
return {
|
|
567
|
+
...prev_18,
|
|
568
|
+
isBriefOnly: nextBrief
|
|
569
|
+
};
|
|
570
|
+
});
|
|
571
|
+
setUserMsgOptIn(nextBrief);
|
|
572
|
+
setChanges((prev_19) => ({
|
|
573
|
+
...prev_19,
|
|
574
|
+
"Default view": selected
|
|
575
|
+
}));
|
|
576
|
+
logEvent("tengu_default_view_setting_changed", {
|
|
577
|
+
value: defaultView ?? "unset"
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
}] : [],
|
|
581
|
+
{
|
|
582
|
+
id: "language",
|
|
583
|
+
label: "Language",
|
|
584
|
+
value: currentLanguage ?? "Default (English)",
|
|
585
|
+
type: "managedEnum",
|
|
586
|
+
onChange: () => {}
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
id: "editorMode",
|
|
590
|
+
label: "Editor mode",
|
|
591
|
+
value: globalConfig.editorMode === "emacs" ? "normal" : globalConfig.editorMode || "normal",
|
|
592
|
+
options: ["normal", "vim"],
|
|
593
|
+
type: "enum",
|
|
594
|
+
onChange(value_1) {
|
|
595
|
+
saveGlobalConfig((current_13) => ({
|
|
596
|
+
...current_13,
|
|
597
|
+
editorMode: value_1
|
|
598
|
+
}));
|
|
599
|
+
setGlobalConfig({
|
|
600
|
+
...getGlobalConfig(),
|
|
601
|
+
editorMode: value_1
|
|
602
|
+
});
|
|
603
|
+
logEvent("tengu_editor_mode_changed", {
|
|
604
|
+
mode: value_1,
|
|
605
|
+
source: "config_panel"
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
id: "prStatusFooterEnabled",
|
|
611
|
+
label: "Show PR status footer",
|
|
612
|
+
value: globalConfig.prStatusFooterEnabled ?? true,
|
|
613
|
+
type: "boolean",
|
|
614
|
+
onChange(enabled_4) {
|
|
615
|
+
saveGlobalConfig((current_14) => {
|
|
616
|
+
if (current_14.prStatusFooterEnabled === enabled_4)
|
|
617
|
+
return current_14;
|
|
618
|
+
return {
|
|
619
|
+
...current_14,
|
|
620
|
+
prStatusFooterEnabled: enabled_4
|
|
621
|
+
};
|
|
622
|
+
});
|
|
623
|
+
setGlobalConfig({
|
|
624
|
+
...getGlobalConfig(),
|
|
625
|
+
prStatusFooterEnabled: enabled_4
|
|
626
|
+
});
|
|
627
|
+
logEvent("tengu_pr_status_footer_setting_changed", {
|
|
628
|
+
enabled: enabled_4
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
id: "model",
|
|
634
|
+
label: "Model",
|
|
635
|
+
value: mainLoopModel === null ? "Default (recommended)" : mainLoopModel,
|
|
636
|
+
type: "managedEnum",
|
|
637
|
+
onChange: onChangeMainModelConfig
|
|
638
|
+
},
|
|
639
|
+
...isConnectedToIde ? [{
|
|
640
|
+
id: "diffTool",
|
|
641
|
+
label: "Diff tool",
|
|
642
|
+
value: globalConfig.diffTool ?? "auto",
|
|
643
|
+
options: ["terminal", "auto"],
|
|
644
|
+
type: "enum",
|
|
645
|
+
onChange(diffTool) {
|
|
646
|
+
saveGlobalConfig((current_15) => ({
|
|
647
|
+
...current_15,
|
|
648
|
+
diffTool
|
|
649
|
+
}));
|
|
650
|
+
setGlobalConfig({
|
|
651
|
+
...getGlobalConfig(),
|
|
652
|
+
diffTool
|
|
653
|
+
});
|
|
654
|
+
logEvent("tengu_diff_tool_changed", {
|
|
655
|
+
tool: diffTool,
|
|
656
|
+
source: "config_panel"
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
}] : [],
|
|
660
|
+
...!isSupportedTerminal() ? [{
|
|
661
|
+
id: "autoConnectIde",
|
|
662
|
+
label: "Auto-connect to IDE (external terminal)",
|
|
663
|
+
value: globalConfig.autoConnectIde ?? false,
|
|
664
|
+
type: "boolean",
|
|
665
|
+
onChange(autoConnectIde) {
|
|
666
|
+
saveGlobalConfig((current_16) => ({
|
|
667
|
+
...current_16,
|
|
668
|
+
autoConnectIde
|
|
669
|
+
}));
|
|
670
|
+
setGlobalConfig({
|
|
671
|
+
...getGlobalConfig(),
|
|
672
|
+
autoConnectIde
|
|
673
|
+
});
|
|
674
|
+
logEvent("tengu_auto_connect_ide_changed", {
|
|
675
|
+
enabled: autoConnectIde,
|
|
676
|
+
source: "config_panel"
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
}] : [],
|
|
680
|
+
...isSupportedTerminal() ? [{
|
|
681
|
+
id: "autoInstallIdeExtension",
|
|
682
|
+
label: "Auto-install IDE extension",
|
|
683
|
+
value: globalConfig.autoInstallIdeExtension ?? true,
|
|
684
|
+
type: "boolean",
|
|
685
|
+
onChange(autoInstallIdeExtension) {
|
|
686
|
+
saveGlobalConfig((current_17) => ({
|
|
687
|
+
...current_17,
|
|
688
|
+
autoInstallIdeExtension
|
|
689
|
+
}));
|
|
690
|
+
setGlobalConfig({
|
|
691
|
+
...getGlobalConfig(),
|
|
692
|
+
autoInstallIdeExtension
|
|
693
|
+
});
|
|
694
|
+
logEvent("tengu_auto_install_ide_extension_changed", {
|
|
695
|
+
enabled: autoInstallIdeExtension,
|
|
696
|
+
source: "config_panel"
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
}] : [],
|
|
700
|
+
{
|
|
701
|
+
id: "claudeInChromeDefaultEnabled",
|
|
702
|
+
label: "Claude in Chrome enabled by default",
|
|
703
|
+
value: globalConfig.claudeInChromeDefaultEnabled ?? true,
|
|
704
|
+
type: "boolean",
|
|
705
|
+
onChange(enabled_5) {
|
|
706
|
+
saveGlobalConfig((current_18) => ({
|
|
707
|
+
...current_18,
|
|
708
|
+
claudeInChromeDefaultEnabled: enabled_5
|
|
709
|
+
}));
|
|
710
|
+
setGlobalConfig({
|
|
711
|
+
...getGlobalConfig(),
|
|
712
|
+
claudeInChromeDefaultEnabled: enabled_5
|
|
713
|
+
});
|
|
714
|
+
logEvent("tengu_claude_in_chrome_setting_changed", {
|
|
715
|
+
enabled: enabled_5
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
},
|
|
719
|
+
...isAgentSwarmsEnabled() ? (() => {
|
|
720
|
+
const cliOverride = getCliTeammateModeOverride();
|
|
721
|
+
const label = cliOverride ? `Teammate mode [overridden: ${cliOverride}]` : "Teammate mode";
|
|
722
|
+
return [{
|
|
723
|
+
id: "teammateMode",
|
|
724
|
+
label,
|
|
725
|
+
value: globalConfig.teammateMode ?? "auto",
|
|
726
|
+
options: ["auto", "tmux", "in-process"],
|
|
727
|
+
type: "enum",
|
|
728
|
+
onChange(mode_0) {
|
|
729
|
+
if (mode_0 !== "auto" && mode_0 !== "tmux" && mode_0 !== "in-process") {
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
clearCliTeammateModeOverride(mode_0);
|
|
733
|
+
saveGlobalConfig((current_19) => ({
|
|
734
|
+
...current_19,
|
|
735
|
+
teammateMode: mode_0
|
|
736
|
+
}));
|
|
737
|
+
setGlobalConfig({
|
|
738
|
+
...getGlobalConfig(),
|
|
739
|
+
teammateMode: mode_0
|
|
740
|
+
});
|
|
741
|
+
logEvent("tengu_teammate_mode_changed", {
|
|
742
|
+
mode: mode_0
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
}, {
|
|
746
|
+
id: "teammateDefaultModel",
|
|
747
|
+
label: "Default teammate model",
|
|
748
|
+
value: teammateModelDisplayString(globalConfig.teammateDefaultModel),
|
|
749
|
+
type: "managedEnum",
|
|
750
|
+
onChange() {}
|
|
751
|
+
}];
|
|
752
|
+
})() : [],
|
|
753
|
+
...[],
|
|
754
|
+
...shouldShowExternalIncludesToggle ? [{
|
|
755
|
+
id: "showExternalIncludesDialog",
|
|
756
|
+
label: "External CLAUDE.md includes",
|
|
757
|
+
value: (() => {
|
|
758
|
+
const projectConfig = getCurrentProjectConfig();
|
|
759
|
+
if (projectConfig.hasClaudeMdExternalIncludesApproved) {
|
|
760
|
+
return "true";
|
|
761
|
+
} else {
|
|
762
|
+
return "false";
|
|
763
|
+
}
|
|
764
|
+
})(),
|
|
765
|
+
type: "managedEnum",
|
|
766
|
+
onChange() {}
|
|
767
|
+
}] : [],
|
|
768
|
+
...process.env.ANTHROPIC_API_KEY && !isRunningOnHomespace() ? [{
|
|
769
|
+
id: "apiKey",
|
|
770
|
+
label: jsxDEV_7x81h0kn(Text, {
|
|
771
|
+
children: [
|
|
772
|
+
"Use custom API key:",
|
|
773
|
+
" ",
|
|
774
|
+
jsxDEV_7x81h0kn(Text, {
|
|
775
|
+
bold: true,
|
|
776
|
+
children: normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY)
|
|
777
|
+
}, undefined, false, undefined, this)
|
|
778
|
+
]
|
|
779
|
+
}, undefined, true, undefined, this),
|
|
780
|
+
searchText: "Use custom API key",
|
|
781
|
+
value: Boolean(process.env.ANTHROPIC_API_KEY && globalConfig.customApiKeyResponses?.approved?.includes(normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY))),
|
|
782
|
+
type: "boolean",
|
|
783
|
+
onChange(useCustomKey) {
|
|
784
|
+
saveGlobalConfig((current_22) => {
|
|
785
|
+
const updated = {
|
|
786
|
+
...current_22
|
|
787
|
+
};
|
|
788
|
+
if (!updated.customApiKeyResponses) {
|
|
789
|
+
updated.customApiKeyResponses = {
|
|
790
|
+
approved: [],
|
|
791
|
+
rejected: []
|
|
792
|
+
};
|
|
793
|
+
}
|
|
794
|
+
if (!updated.customApiKeyResponses.approved) {
|
|
795
|
+
updated.customApiKeyResponses = {
|
|
796
|
+
...updated.customApiKeyResponses,
|
|
797
|
+
approved: []
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
if (!updated.customApiKeyResponses.rejected) {
|
|
801
|
+
updated.customApiKeyResponses = {
|
|
802
|
+
...updated.customApiKeyResponses,
|
|
803
|
+
rejected: []
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
if (process.env.ANTHROPIC_API_KEY) {
|
|
807
|
+
const truncatedKey = normalizeApiKeyForConfig(process.env.ANTHROPIC_API_KEY);
|
|
808
|
+
if (useCustomKey) {
|
|
809
|
+
updated.customApiKeyResponses = {
|
|
810
|
+
...updated.customApiKeyResponses,
|
|
811
|
+
approved: [...(updated.customApiKeyResponses.approved ?? []).filter((k) => k !== truncatedKey), truncatedKey],
|
|
812
|
+
rejected: (updated.customApiKeyResponses.rejected ?? []).filter((k_0) => k_0 !== truncatedKey)
|
|
813
|
+
};
|
|
814
|
+
} else {
|
|
815
|
+
updated.customApiKeyResponses = {
|
|
816
|
+
...updated.customApiKeyResponses,
|
|
817
|
+
approved: (updated.customApiKeyResponses.approved ?? []).filter((k_1) => k_1 !== truncatedKey),
|
|
818
|
+
rejected: [...(updated.customApiKeyResponses.rejected ?? []).filter((k_2) => k_2 !== truncatedKey), truncatedKey]
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
return updated;
|
|
823
|
+
});
|
|
824
|
+
setGlobalConfig(getGlobalConfig());
|
|
825
|
+
}
|
|
826
|
+
}] : []
|
|
827
|
+
];
|
|
828
|
+
const filteredSettingsItems = React.useMemo(() => {
|
|
829
|
+
if (!searchQuery)
|
|
830
|
+
return settingsItems;
|
|
831
|
+
const lowerQuery = searchQuery.toLowerCase();
|
|
832
|
+
return settingsItems.filter((setting) => {
|
|
833
|
+
if (setting.id.toLowerCase().includes(lowerQuery))
|
|
834
|
+
return true;
|
|
835
|
+
const searchableText = "searchText" in setting ? setting.searchText : setting.label;
|
|
836
|
+
return searchableText.toLowerCase().includes(lowerQuery);
|
|
837
|
+
});
|
|
838
|
+
}, [settingsItems, searchQuery]);
|
|
839
|
+
React.useEffect(() => {
|
|
840
|
+
if (selectedIndex >= filteredSettingsItems.length) {
|
|
841
|
+
const newIndex = Math.max(0, filteredSettingsItems.length - 1);
|
|
842
|
+
setSelectedIndex(newIndex);
|
|
843
|
+
setScrollOffset(Math.max(0, newIndex - maxVisible + 1));
|
|
844
|
+
return;
|
|
845
|
+
}
|
|
846
|
+
setScrollOffset((prev_21) => {
|
|
847
|
+
if (selectedIndex < prev_21)
|
|
848
|
+
return selectedIndex;
|
|
849
|
+
if (selectedIndex >= prev_21 + maxVisible)
|
|
850
|
+
return selectedIndex - maxVisible + 1;
|
|
851
|
+
return prev_21;
|
|
852
|
+
});
|
|
853
|
+
}, [filteredSettingsItems.length, selectedIndex, maxVisible]);
|
|
854
|
+
const adjustScrollOffset = useCallback((newIndex_0) => {
|
|
855
|
+
setScrollOffset((prev_22) => {
|
|
856
|
+
if (newIndex_0 < prev_22)
|
|
857
|
+
return newIndex_0;
|
|
858
|
+
if (newIndex_0 >= prev_22 + maxVisible)
|
|
859
|
+
return newIndex_0 - maxVisible + 1;
|
|
860
|
+
return prev_22;
|
|
861
|
+
});
|
|
862
|
+
}, [maxVisible]);
|
|
863
|
+
const handleSaveAndClose = useCallback(() => {
|
|
864
|
+
if (showSubmenu !== null) {
|
|
865
|
+
return;
|
|
866
|
+
}
|
|
867
|
+
const formattedChanges = Object.entries(changes).map(([key, value_2]) => {
|
|
868
|
+
logEvent("tengu_config_changed", {
|
|
869
|
+
key,
|
|
870
|
+
value: value_2
|
|
871
|
+
});
|
|
872
|
+
return `Set ${key} to ${chalk.bold(value_2)}`;
|
|
873
|
+
});
|
|
874
|
+
const effectiveApiKey = isRunningOnHomespace() ? undefined : process.env.ANTHROPIC_API_KEY;
|
|
875
|
+
const initialUsingCustomKey = Boolean(effectiveApiKey && initialConfig.current.customApiKeyResponses?.approved?.includes(normalizeApiKeyForConfig(effectiveApiKey)));
|
|
876
|
+
const currentUsingCustomKey = Boolean(effectiveApiKey && globalConfig.customApiKeyResponses?.approved?.includes(normalizeApiKeyForConfig(effectiveApiKey)));
|
|
877
|
+
if (initialUsingCustomKey !== currentUsingCustomKey) {
|
|
878
|
+
formattedChanges.push(`${currentUsingCustomKey ? "Enabled" : "Disabled"} custom API key`);
|
|
879
|
+
logEvent("tengu_config_changed", {
|
|
880
|
+
key: "env.ANTHROPIC_API_KEY",
|
|
881
|
+
value: currentUsingCustomKey
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
if (globalConfig.theme !== initialConfig.current.theme) {
|
|
885
|
+
formattedChanges.push(`Set theme to ${chalk.bold(globalConfig.theme)}`);
|
|
886
|
+
}
|
|
887
|
+
if (globalConfig.preferredNotifChannel !== initialConfig.current.preferredNotifChannel) {
|
|
888
|
+
formattedChanges.push(`Set notifications to ${chalk.bold(globalConfig.preferredNotifChannel)}`);
|
|
889
|
+
}
|
|
890
|
+
if (currentOutputStyle !== initialOutputStyle.current) {
|
|
891
|
+
formattedChanges.push(`Set output style to ${chalk.bold(currentOutputStyle)}`);
|
|
892
|
+
}
|
|
893
|
+
if (currentLanguage !== initialLanguage.current) {
|
|
894
|
+
formattedChanges.push(`Set response language to ${chalk.bold(currentLanguage ?? "Default (English)")}`);
|
|
895
|
+
}
|
|
896
|
+
if (globalConfig.editorMode !== initialConfig.current.editorMode) {
|
|
897
|
+
formattedChanges.push(`Set editor mode to ${chalk.bold(globalConfig.editorMode || "emacs")}`);
|
|
898
|
+
}
|
|
899
|
+
if (globalConfig.diffTool !== initialConfig.current.diffTool) {
|
|
900
|
+
formattedChanges.push(`Set diff tool to ${chalk.bold(globalConfig.diffTool)}`);
|
|
901
|
+
}
|
|
902
|
+
if (globalConfig.autoConnectIde !== initialConfig.current.autoConnectIde) {
|
|
903
|
+
formattedChanges.push(`${globalConfig.autoConnectIde ? "Enabled" : "Disabled"} auto-connect to IDE`);
|
|
904
|
+
}
|
|
905
|
+
if (globalConfig.autoInstallIdeExtension !== initialConfig.current.autoInstallIdeExtension) {
|
|
906
|
+
formattedChanges.push(`${globalConfig.autoInstallIdeExtension ? "Enabled" : "Disabled"} auto-install IDE extension`);
|
|
907
|
+
}
|
|
908
|
+
if (globalConfig.autoCompactEnabled !== initialConfig.current.autoCompactEnabled) {
|
|
909
|
+
formattedChanges.push(`${globalConfig.autoCompactEnabled ? "Enabled" : "Disabled"} auto-compact`);
|
|
910
|
+
}
|
|
911
|
+
if (globalConfig.respectGitignore !== initialConfig.current.respectGitignore) {
|
|
912
|
+
formattedChanges.push(`${globalConfig.respectGitignore ? "Enabled" : "Disabled"} respect .gitignore in file picker`);
|
|
913
|
+
}
|
|
914
|
+
if (globalConfig.copyFullResponse !== initialConfig.current.copyFullResponse) {
|
|
915
|
+
formattedChanges.push(`${globalConfig.copyFullResponse ? "Enabled" : "Disabled"} always copy full response`);
|
|
916
|
+
}
|
|
917
|
+
if (globalConfig.copyOnSelect !== initialConfig.current.copyOnSelect) {
|
|
918
|
+
formattedChanges.push(`${globalConfig.copyOnSelect ? "Enabled" : "Disabled"} copy on select`);
|
|
919
|
+
}
|
|
920
|
+
if (globalConfig.terminalProgressBarEnabled !== initialConfig.current.terminalProgressBarEnabled) {
|
|
921
|
+
formattedChanges.push(`${globalConfig.terminalProgressBarEnabled ? "Enabled" : "Disabled"} terminal progress bar`);
|
|
922
|
+
}
|
|
923
|
+
if (globalConfig.showStatusInTerminalTab !== initialConfig.current.showStatusInTerminalTab) {
|
|
924
|
+
formattedChanges.push(`${globalConfig.showStatusInTerminalTab ? "Enabled" : "Disabled"} terminal tab status`);
|
|
925
|
+
}
|
|
926
|
+
if (globalConfig.showTurnDuration !== initialConfig.current.showTurnDuration) {
|
|
927
|
+
formattedChanges.push(`${globalConfig.showTurnDuration ? "Enabled" : "Disabled"} turn duration`);
|
|
928
|
+
}
|
|
929
|
+
if (globalConfig.remoteControlAtStartup !== initialConfig.current.remoteControlAtStartup) {
|
|
930
|
+
const remoteLabel = globalConfig.remoteControlAtStartup === undefined ? "Reset Remote Control to default" : `${globalConfig.remoteControlAtStartup ? "Enabled" : "Disabled"} Remote Control for all sessions`;
|
|
931
|
+
formattedChanges.push(remoteLabel);
|
|
932
|
+
}
|
|
933
|
+
if (settingsData?.autoUpdatesChannel !== initialSettingsData.current?.autoUpdatesChannel) {
|
|
934
|
+
formattedChanges.push(`Set auto-update channel to ${chalk.bold(settingsData?.autoUpdatesChannel ?? "latest")}`);
|
|
935
|
+
}
|
|
936
|
+
if (formattedChanges.length > 0) {
|
|
937
|
+
onClose(formattedChanges.join(`
|
|
938
|
+
`));
|
|
939
|
+
} else {
|
|
940
|
+
onClose("Config dialog dismissed", {
|
|
941
|
+
display: "system"
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
}, [showSubmenu, changes, globalConfig, mainLoopModel, currentOutputStyle, currentLanguage, settingsData?.autoUpdatesChannel, isFastModeEnabled() ? settingsData?.fastMode : undefined, onClose]);
|
|
945
|
+
const revertChanges = useCallback(() => {
|
|
946
|
+
if (themeSetting !== initialThemeSetting.current) {
|
|
947
|
+
setTheme(initialThemeSetting.current);
|
|
948
|
+
}
|
|
949
|
+
saveGlobalConfig(() => initialConfig.current);
|
|
950
|
+
const il = initialLocalSettings;
|
|
951
|
+
updateSettingsForSource("localSettings", {
|
|
952
|
+
spinnerTipsEnabled: il?.spinnerTipsEnabled,
|
|
953
|
+
prefersReducedMotion: il?.prefersReducedMotion,
|
|
954
|
+
defaultView: il?.defaultView,
|
|
955
|
+
outputStyle: il?.outputStyle
|
|
956
|
+
});
|
|
957
|
+
const iu = initialUserSettings;
|
|
958
|
+
updateSettingsForSource("userSettings", {
|
|
959
|
+
alwaysThinkingEnabled: iu?.alwaysThinkingEnabled,
|
|
960
|
+
fastMode: iu?.fastMode,
|
|
961
|
+
promptSuggestionEnabled: iu?.promptSuggestionEnabled,
|
|
962
|
+
autoUpdatesChannel: iu?.autoUpdatesChannel,
|
|
963
|
+
minimumVersion: iu?.minimumVersion,
|
|
964
|
+
language: iu?.language,
|
|
965
|
+
...{},
|
|
966
|
+
syntaxHighlightingDisabled: iu?.syntaxHighlightingDisabled,
|
|
967
|
+
permissions: iu?.permissions === undefined ? undefined : {
|
|
968
|
+
...iu.permissions,
|
|
969
|
+
defaultMode: iu.permissions.defaultMode
|
|
970
|
+
}
|
|
971
|
+
});
|
|
972
|
+
const ia = initialAppState;
|
|
973
|
+
setAppState((prev_23) => ({
|
|
974
|
+
...prev_23,
|
|
975
|
+
mainLoopModel: ia.mainLoopModel,
|
|
976
|
+
mainLoopModelForSession: ia.mainLoopModelForSession,
|
|
977
|
+
verbose: ia.verbose,
|
|
978
|
+
thinkingEnabled: ia.thinkingEnabled,
|
|
979
|
+
fastMode: ia.fastMode,
|
|
980
|
+
promptSuggestionEnabled: ia.promptSuggestionEnabled,
|
|
981
|
+
isBriefOnly: ia.isBriefOnly,
|
|
982
|
+
replBridgeEnabled: ia.replBridgeEnabled,
|
|
983
|
+
replBridgeOutboundOnly: ia.replBridgeOutboundOnly,
|
|
984
|
+
settings: ia.settings,
|
|
985
|
+
toolPermissionContext: transitionPlanAutoMode(prev_23.toolPermissionContext)
|
|
986
|
+
}));
|
|
987
|
+
if (getUserMsgOptIn() !== initialUserMsgOptIn) {
|
|
988
|
+
setUserMsgOptIn(initialUserMsgOptIn);
|
|
989
|
+
}
|
|
990
|
+
}, [themeSetting, setTheme, initialLocalSettings, initialUserSettings, initialAppState, initialUserMsgOptIn, setAppState]);
|
|
991
|
+
const handleEscape = useCallback(() => {
|
|
992
|
+
if (showSubmenu !== null) {
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
if (isDirty.current) {
|
|
996
|
+
revertChanges();
|
|
997
|
+
}
|
|
998
|
+
onClose("Config dialog dismissed", {
|
|
999
|
+
display: "system"
|
|
1000
|
+
});
|
|
1001
|
+
}, [showSubmenu, revertChanges, onClose]);
|
|
1002
|
+
useKeybinding("confirm:no", handleEscape, {
|
|
1003
|
+
context: "Settings",
|
|
1004
|
+
isActive: showSubmenu === null && !isSearchMode && !headerFocused
|
|
1005
|
+
});
|
|
1006
|
+
useKeybinding("settings:close", handleSaveAndClose, {
|
|
1007
|
+
context: "Settings",
|
|
1008
|
+
isActive: showSubmenu === null && !isSearchMode && !headerFocused
|
|
1009
|
+
});
|
|
1010
|
+
const toggleSetting = useCallback(() => {
|
|
1011
|
+
const setting_0 = filteredSettingsItems[selectedIndex];
|
|
1012
|
+
if (!setting_0 || !setting_0.onChange) {
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
if (setting_0.type === "boolean") {
|
|
1016
|
+
isDirty.current = true;
|
|
1017
|
+
setting_0.onChange(!setting_0.value);
|
|
1018
|
+
if (setting_0.id === "thinkingEnabled") {
|
|
1019
|
+
const newValue = !setting_0.value;
|
|
1020
|
+
const backToInitial = newValue === initialThinkingEnabled.current;
|
|
1021
|
+
if (backToInitial) {
|
|
1022
|
+
setShowThinkingWarning(false);
|
|
1023
|
+
} else if (context.messages.some((m_0) => m_0.type === "assistant")) {
|
|
1024
|
+
setShowThinkingWarning(true);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
if (setting_0.id === "theme" || setting_0.id === "model" || setting_0.id === "teammateDefaultModel" || setting_0.id === "showExternalIncludesDialog" || setting_0.id === "outputStyle" || setting_0.id === "language") {
|
|
1030
|
+
switch (setting_0.id) {
|
|
1031
|
+
case "theme":
|
|
1032
|
+
setShowSubmenu("Theme");
|
|
1033
|
+
setTabsHidden(true);
|
|
1034
|
+
return;
|
|
1035
|
+
case "model":
|
|
1036
|
+
setShowSubmenu("Model");
|
|
1037
|
+
setTabsHidden(true);
|
|
1038
|
+
return;
|
|
1039
|
+
case "teammateDefaultModel":
|
|
1040
|
+
setShowSubmenu("TeammateModel");
|
|
1041
|
+
setTabsHidden(true);
|
|
1042
|
+
return;
|
|
1043
|
+
case "showExternalIncludesDialog":
|
|
1044
|
+
setShowSubmenu("ExternalIncludes");
|
|
1045
|
+
setTabsHidden(true);
|
|
1046
|
+
return;
|
|
1047
|
+
case "outputStyle":
|
|
1048
|
+
setShowSubmenu("OutputStyle");
|
|
1049
|
+
setTabsHidden(true);
|
|
1050
|
+
return;
|
|
1051
|
+
case "language":
|
|
1052
|
+
setShowSubmenu("Language");
|
|
1053
|
+
setTabsHidden(true);
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
if (setting_0.id === "autoUpdatesChannel") {
|
|
1058
|
+
if (autoUpdaterDisabledReason) {
|
|
1059
|
+
setShowSubmenu("EnableAutoUpdates");
|
|
1060
|
+
setTabsHidden(true);
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
const currentChannel = settingsData?.autoUpdatesChannel ?? "latest";
|
|
1064
|
+
if (currentChannel === "latest") {
|
|
1065
|
+
setShowSubmenu("ChannelDowngrade");
|
|
1066
|
+
setTabsHidden(true);
|
|
1067
|
+
} else {
|
|
1068
|
+
isDirty.current = true;
|
|
1069
|
+
updateSettingsForSource("userSettings", {
|
|
1070
|
+
autoUpdatesChannel: "latest",
|
|
1071
|
+
minimumVersion: undefined
|
|
1072
|
+
});
|
|
1073
|
+
setSettingsData((prev_24) => ({
|
|
1074
|
+
...prev_24,
|
|
1075
|
+
autoUpdatesChannel: "latest",
|
|
1076
|
+
minimumVersion: undefined
|
|
1077
|
+
}));
|
|
1078
|
+
logEvent("tengu_autoupdate_channel_changed", {
|
|
1079
|
+
channel: "latest"
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
if (setting_0.type === "enum") {
|
|
1085
|
+
isDirty.current = true;
|
|
1086
|
+
const currentIndex = setting_0.options.indexOf(setting_0.value);
|
|
1087
|
+
const nextIndex = (currentIndex + 1) % setting_0.options.length;
|
|
1088
|
+
setting_0.onChange(setting_0.options[nextIndex]);
|
|
1089
|
+
return;
|
|
1090
|
+
}
|
|
1091
|
+
}, [autoUpdaterDisabledReason, filteredSettingsItems, selectedIndex, settingsData?.autoUpdatesChannel, setTabsHidden]);
|
|
1092
|
+
const moveSelection = (delta) => {
|
|
1093
|
+
setShowThinkingWarning(false);
|
|
1094
|
+
const newIndex_1 = Math.max(0, Math.min(filteredSettingsItems.length - 1, selectedIndex + delta));
|
|
1095
|
+
setSelectedIndex(newIndex_1);
|
|
1096
|
+
adjustScrollOffset(newIndex_1);
|
|
1097
|
+
};
|
|
1098
|
+
useKeybindings({
|
|
1099
|
+
"select:previous": () => {
|
|
1100
|
+
if (selectedIndex === 0) {
|
|
1101
|
+
setShowThinkingWarning(false);
|
|
1102
|
+
setIsSearchMode(true);
|
|
1103
|
+
setScrollOffset(0);
|
|
1104
|
+
} else {
|
|
1105
|
+
moveSelection(-1);
|
|
1106
|
+
}
|
|
1107
|
+
},
|
|
1108
|
+
"select:next": () => moveSelection(1),
|
|
1109
|
+
"scroll:lineUp": () => moveSelection(-1),
|
|
1110
|
+
"scroll:lineDown": () => moveSelection(1),
|
|
1111
|
+
"select:accept": toggleSetting,
|
|
1112
|
+
"settings:search": () => {
|
|
1113
|
+
setIsSearchMode(true);
|
|
1114
|
+
setSearchQuery("");
|
|
1115
|
+
}
|
|
1116
|
+
}, {
|
|
1117
|
+
context: "Settings",
|
|
1118
|
+
isActive: showSubmenu === null && !isSearchMode && !headerFocused
|
|
1119
|
+
});
|
|
1120
|
+
const handleKeyDown = useCallback((e) => {
|
|
1121
|
+
if (showSubmenu !== null)
|
|
1122
|
+
return;
|
|
1123
|
+
if (headerFocused)
|
|
1124
|
+
return;
|
|
1125
|
+
if (isSearchMode) {
|
|
1126
|
+
if (e.key === "escape") {
|
|
1127
|
+
e.preventDefault();
|
|
1128
|
+
if (searchQuery.length > 0) {
|
|
1129
|
+
setSearchQuery("");
|
|
1130
|
+
} else {
|
|
1131
|
+
setIsSearchMode(false);
|
|
1132
|
+
}
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
if (e.key === "return" || e.key === "down" || e.key === "wheeldown") {
|
|
1136
|
+
e.preventDefault();
|
|
1137
|
+
setIsSearchMode(false);
|
|
1138
|
+
setSelectedIndex(0);
|
|
1139
|
+
setScrollOffset(0);
|
|
1140
|
+
}
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1143
|
+
if (e.key === "left" || e.key === "right" || e.key === "tab") {
|
|
1144
|
+
e.preventDefault();
|
|
1145
|
+
toggleSetting();
|
|
1146
|
+
return;
|
|
1147
|
+
}
|
|
1148
|
+
if (e.ctrl || e.meta)
|
|
1149
|
+
return;
|
|
1150
|
+
if (e.key === "j" || e.key === "k" || e.key === "/")
|
|
1151
|
+
return;
|
|
1152
|
+
if (e.key.length === 1 && e.key !== " ") {
|
|
1153
|
+
e.preventDefault();
|
|
1154
|
+
setIsSearchMode(true);
|
|
1155
|
+
setSearchQuery(e.key);
|
|
1156
|
+
}
|
|
1157
|
+
}, [showSubmenu, headerFocused, isSearchMode, searchQuery, setSearchQuery, toggleSetting]);
|
|
1158
|
+
return jsxDEV_7x81h0kn(Box, {
|
|
1159
|
+
flexDirection: "column",
|
|
1160
|
+
width: "100%",
|
|
1161
|
+
tabIndex: 0,
|
|
1162
|
+
autoFocus: true,
|
|
1163
|
+
onKeyDown: handleKeyDown,
|
|
1164
|
+
children: showSubmenu === "Theme" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1165
|
+
children: [
|
|
1166
|
+
jsxDEV_7x81h0kn(ThemePicker, {
|
|
1167
|
+
onThemeSelect: (setting_1) => {
|
|
1168
|
+
isDirty.current = true;
|
|
1169
|
+
setTheme(setting_1);
|
|
1170
|
+
setShowSubmenu(null);
|
|
1171
|
+
setTabsHidden(false);
|
|
1172
|
+
},
|
|
1173
|
+
onCancel: () => {
|
|
1174
|
+
setShowSubmenu(null);
|
|
1175
|
+
setTabsHidden(false);
|
|
1176
|
+
},
|
|
1177
|
+
hideEscToCancel: true,
|
|
1178
|
+
skipExitHandling: true
|
|
1179
|
+
}, undefined, false, undefined, this),
|
|
1180
|
+
jsxDEV_7x81h0kn(Box, {
|
|
1181
|
+
children: jsxDEV_7x81h0kn(Text, {
|
|
1182
|
+
dimColor: true,
|
|
1183
|
+
italic: true,
|
|
1184
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1185
|
+
children: [
|
|
1186
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1187
|
+
shortcut: "Enter",
|
|
1188
|
+
action: "select"
|
|
1189
|
+
}, undefined, false, undefined, this),
|
|
1190
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1191
|
+
action: "confirm:no",
|
|
1192
|
+
context: "Confirmation",
|
|
1193
|
+
fallback: "Esc",
|
|
1194
|
+
description: "cancel"
|
|
1195
|
+
}, undefined, false, undefined, this)
|
|
1196
|
+
]
|
|
1197
|
+
}, undefined, true, undefined, this)
|
|
1198
|
+
}, undefined, false, undefined, this)
|
|
1199
|
+
}, undefined, false, undefined, this)
|
|
1200
|
+
]
|
|
1201
|
+
}, undefined, true, undefined, this) : showSubmenu === "Model" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1202
|
+
children: [
|
|
1203
|
+
jsxDEV_7x81h0kn(ModelPicker, {
|
|
1204
|
+
initial: mainLoopModel,
|
|
1205
|
+
onSelect: (model_0, _effort) => {
|
|
1206
|
+
isDirty.current = true;
|
|
1207
|
+
onChangeMainModelConfig(model_0);
|
|
1208
|
+
setShowSubmenu(null);
|
|
1209
|
+
setTabsHidden(false);
|
|
1210
|
+
},
|
|
1211
|
+
onCancel: () => {
|
|
1212
|
+
setShowSubmenu(null);
|
|
1213
|
+
setTabsHidden(false);
|
|
1214
|
+
},
|
|
1215
|
+
showFastModeNotice: isFastModeEnabled() ? isFastMode && isFastModeSupportedByModel(mainLoopModel) && isFastModeAvailable() : false
|
|
1216
|
+
}, undefined, false, undefined, this),
|
|
1217
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1218
|
+
dimColor: true,
|
|
1219
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1220
|
+
children: [
|
|
1221
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1222
|
+
shortcut: "Enter",
|
|
1223
|
+
action: "confirm"
|
|
1224
|
+
}, undefined, false, undefined, this),
|
|
1225
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1226
|
+
action: "confirm:no",
|
|
1227
|
+
context: "Confirmation",
|
|
1228
|
+
fallback: "Esc",
|
|
1229
|
+
description: "cancel"
|
|
1230
|
+
}, undefined, false, undefined, this)
|
|
1231
|
+
]
|
|
1232
|
+
}, undefined, true, undefined, this)
|
|
1233
|
+
}, undefined, false, undefined, this)
|
|
1234
|
+
]
|
|
1235
|
+
}, undefined, true, undefined, this) : showSubmenu === "TeammateModel" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1236
|
+
children: [
|
|
1237
|
+
jsxDEV_7x81h0kn(ModelPicker, {
|
|
1238
|
+
initial: globalConfig.teammateDefaultModel ?? null,
|
|
1239
|
+
skipSettingsWrite: true,
|
|
1240
|
+
headerText: "Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",
|
|
1241
|
+
onSelect: (model_1, _effort_0) => {
|
|
1242
|
+
setShowSubmenu(null);
|
|
1243
|
+
setTabsHidden(false);
|
|
1244
|
+
if (globalConfig.teammateDefaultModel === undefined && model_1 === null) {
|
|
1245
|
+
return;
|
|
1246
|
+
}
|
|
1247
|
+
isDirty.current = true;
|
|
1248
|
+
saveGlobalConfig((current_23) => current_23.teammateDefaultModel === model_1 ? current_23 : {
|
|
1249
|
+
...current_23,
|
|
1250
|
+
teammateDefaultModel: model_1
|
|
1251
|
+
});
|
|
1252
|
+
setGlobalConfig({
|
|
1253
|
+
...getGlobalConfig(),
|
|
1254
|
+
teammateDefaultModel: model_1
|
|
1255
|
+
});
|
|
1256
|
+
setChanges((prev_25) => ({
|
|
1257
|
+
...prev_25,
|
|
1258
|
+
teammateDefaultModel: teammateModelDisplayString(model_1)
|
|
1259
|
+
}));
|
|
1260
|
+
logEvent("tengu_teammate_default_model_changed", {
|
|
1261
|
+
model: model_1
|
|
1262
|
+
});
|
|
1263
|
+
},
|
|
1264
|
+
onCancel: () => {
|
|
1265
|
+
setShowSubmenu(null);
|
|
1266
|
+
setTabsHidden(false);
|
|
1267
|
+
}
|
|
1268
|
+
}, undefined, false, undefined, this),
|
|
1269
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1270
|
+
dimColor: true,
|
|
1271
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1272
|
+
children: [
|
|
1273
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1274
|
+
shortcut: "Enter",
|
|
1275
|
+
action: "confirm"
|
|
1276
|
+
}, undefined, false, undefined, this),
|
|
1277
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1278
|
+
action: "confirm:no",
|
|
1279
|
+
context: "Confirmation",
|
|
1280
|
+
fallback: "Esc",
|
|
1281
|
+
description: "cancel"
|
|
1282
|
+
}, undefined, false, undefined, this)
|
|
1283
|
+
]
|
|
1284
|
+
}, undefined, true, undefined, this)
|
|
1285
|
+
}, undefined, false, undefined, this)
|
|
1286
|
+
]
|
|
1287
|
+
}, undefined, true, undefined, this) : showSubmenu === "ExternalIncludes" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1288
|
+
children: [
|
|
1289
|
+
jsxDEV_7x81h0kn(ClaudeMdExternalIncludesDialog, {
|
|
1290
|
+
onDone: () => {
|
|
1291
|
+
setShowSubmenu(null);
|
|
1292
|
+
setTabsHidden(false);
|
|
1293
|
+
},
|
|
1294
|
+
externalIncludes: getExternalClaudeMdIncludes(memoryFiles)
|
|
1295
|
+
}, undefined, false, undefined, this),
|
|
1296
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1297
|
+
dimColor: true,
|
|
1298
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1299
|
+
children: [
|
|
1300
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1301
|
+
shortcut: "Enter",
|
|
1302
|
+
action: "confirm"
|
|
1303
|
+
}, undefined, false, undefined, this),
|
|
1304
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1305
|
+
action: "confirm:no",
|
|
1306
|
+
context: "Confirmation",
|
|
1307
|
+
fallback: "Esc",
|
|
1308
|
+
description: "disable external includes"
|
|
1309
|
+
}, undefined, false, undefined, this)
|
|
1310
|
+
]
|
|
1311
|
+
}, undefined, true, undefined, this)
|
|
1312
|
+
}, undefined, false, undefined, this)
|
|
1313
|
+
]
|
|
1314
|
+
}, undefined, true, undefined, this) : showSubmenu === "OutputStyle" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1315
|
+
children: [
|
|
1316
|
+
jsxDEV_7x81h0kn(OutputStylePicker, {
|
|
1317
|
+
initialStyle: currentOutputStyle,
|
|
1318
|
+
onComplete: (style) => {
|
|
1319
|
+
isDirty.current = true;
|
|
1320
|
+
setCurrentOutputStyle(style ?? DEFAULT_OUTPUT_STYLE_NAME);
|
|
1321
|
+
setShowSubmenu(null);
|
|
1322
|
+
setTabsHidden(false);
|
|
1323
|
+
updateSettingsForSource("localSettings", {
|
|
1324
|
+
outputStyle: style
|
|
1325
|
+
});
|
|
1326
|
+
logEvent("tengu_output_style_changed", {
|
|
1327
|
+
style: style ?? DEFAULT_OUTPUT_STYLE_NAME,
|
|
1328
|
+
source: "config_panel",
|
|
1329
|
+
settings_source: "localSettings"
|
|
1330
|
+
});
|
|
1331
|
+
},
|
|
1332
|
+
onCancel: () => {
|
|
1333
|
+
setShowSubmenu(null);
|
|
1334
|
+
setTabsHidden(false);
|
|
1335
|
+
}
|
|
1336
|
+
}, undefined, false, undefined, this),
|
|
1337
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1338
|
+
dimColor: true,
|
|
1339
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1340
|
+
children: [
|
|
1341
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1342
|
+
shortcut: "Enter",
|
|
1343
|
+
action: "confirm"
|
|
1344
|
+
}, undefined, false, undefined, this),
|
|
1345
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1346
|
+
action: "confirm:no",
|
|
1347
|
+
context: "Confirmation",
|
|
1348
|
+
fallback: "Esc",
|
|
1349
|
+
description: "cancel"
|
|
1350
|
+
}, undefined, false, undefined, this)
|
|
1351
|
+
]
|
|
1352
|
+
}, undefined, true, undefined, this)
|
|
1353
|
+
}, undefined, false, undefined, this)
|
|
1354
|
+
]
|
|
1355
|
+
}, undefined, true, undefined, this) : showSubmenu === "Language" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1356
|
+
children: [
|
|
1357
|
+
jsxDEV_7x81h0kn(LanguagePicker, {
|
|
1358
|
+
initialLanguage: currentLanguage,
|
|
1359
|
+
onComplete: (language) => {
|
|
1360
|
+
isDirty.current = true;
|
|
1361
|
+
setCurrentLanguage(language);
|
|
1362
|
+
setShowSubmenu(null);
|
|
1363
|
+
setTabsHidden(false);
|
|
1364
|
+
updateSettingsForSource("userSettings", {
|
|
1365
|
+
language
|
|
1366
|
+
});
|
|
1367
|
+
logEvent("tengu_language_changed", {
|
|
1368
|
+
language: language ?? "default",
|
|
1369
|
+
source: "config_panel"
|
|
1370
|
+
});
|
|
1371
|
+
},
|
|
1372
|
+
onCancel: () => {
|
|
1373
|
+
setShowSubmenu(null);
|
|
1374
|
+
setTabsHidden(false);
|
|
1375
|
+
}
|
|
1376
|
+
}, undefined, false, undefined, this),
|
|
1377
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1378
|
+
dimColor: true,
|
|
1379
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1380
|
+
children: [
|
|
1381
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1382
|
+
shortcut: "Enter",
|
|
1383
|
+
action: "confirm"
|
|
1384
|
+
}, undefined, false, undefined, this),
|
|
1385
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1386
|
+
action: "confirm:no",
|
|
1387
|
+
context: "Settings",
|
|
1388
|
+
fallback: "Esc",
|
|
1389
|
+
description: "cancel"
|
|
1390
|
+
}, undefined, false, undefined, this)
|
|
1391
|
+
]
|
|
1392
|
+
}, undefined, true, undefined, this)
|
|
1393
|
+
}, undefined, false, undefined, this)
|
|
1394
|
+
]
|
|
1395
|
+
}, undefined, true, undefined, this) : showSubmenu === "EnableAutoUpdates" ? jsxDEV_7x81h0kn(Dialog, {
|
|
1396
|
+
title: "Enable Auto-Updates",
|
|
1397
|
+
onCancel: () => {
|
|
1398
|
+
setShowSubmenu(null);
|
|
1399
|
+
setTabsHidden(false);
|
|
1400
|
+
},
|
|
1401
|
+
hideBorder: true,
|
|
1402
|
+
hideInputGuide: true,
|
|
1403
|
+
children: autoUpdaterDisabledReason?.type !== "config" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1404
|
+
children: [
|
|
1405
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1406
|
+
children: autoUpdaterDisabledReason?.type === "env" ? "Auto-updates are controlled by an environment variable and cannot be changed here." : "Auto-updates are disabled in development builds."
|
|
1407
|
+
}, undefined, false, undefined, this),
|
|
1408
|
+
autoUpdaterDisabledReason?.type === "env" && jsxDEV_7x81h0kn(Text, {
|
|
1409
|
+
dimColor: true,
|
|
1410
|
+
children: [
|
|
1411
|
+
"Unset ",
|
|
1412
|
+
autoUpdaterDisabledReason.envVar,
|
|
1413
|
+
" to re-enable auto-updates."
|
|
1414
|
+
]
|
|
1415
|
+
}, undefined, true, undefined, this)
|
|
1416
|
+
]
|
|
1417
|
+
}, undefined, true, undefined, this) : jsxDEV_7x81h0kn(Select, {
|
|
1418
|
+
options: [{
|
|
1419
|
+
label: "Enable with latest channel",
|
|
1420
|
+
value: "latest"
|
|
1421
|
+
}, {
|
|
1422
|
+
label: "Enable with stable channel",
|
|
1423
|
+
value: "stable"
|
|
1424
|
+
}],
|
|
1425
|
+
onChange: (channel) => {
|
|
1426
|
+
isDirty.current = true;
|
|
1427
|
+
setShowSubmenu(null);
|
|
1428
|
+
setTabsHidden(false);
|
|
1429
|
+
saveGlobalConfig((current_24) => ({
|
|
1430
|
+
...current_24,
|
|
1431
|
+
autoUpdates: true
|
|
1432
|
+
}));
|
|
1433
|
+
setGlobalConfig({
|
|
1434
|
+
...getGlobalConfig(),
|
|
1435
|
+
autoUpdates: true
|
|
1436
|
+
});
|
|
1437
|
+
updateSettingsForSource("userSettings", {
|
|
1438
|
+
autoUpdatesChannel: channel,
|
|
1439
|
+
minimumVersion: undefined
|
|
1440
|
+
});
|
|
1441
|
+
setSettingsData((prev_26) => ({
|
|
1442
|
+
...prev_26,
|
|
1443
|
+
autoUpdatesChannel: channel,
|
|
1444
|
+
minimumVersion: undefined
|
|
1445
|
+
}));
|
|
1446
|
+
logEvent("tengu_autoupdate_enabled", {
|
|
1447
|
+
channel
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
}, undefined, false, undefined, this)
|
|
1451
|
+
}, undefined, false, undefined, this) : showSubmenu === "ChannelDowngrade" ? jsxDEV_7x81h0kn(ChannelDowngradeDialog, {
|
|
1452
|
+
currentVersion: MACRO.VERSION,
|
|
1453
|
+
onChoice: (choice) => {
|
|
1454
|
+
setShowSubmenu(null);
|
|
1455
|
+
setTabsHidden(false);
|
|
1456
|
+
if (choice === "cancel") {
|
|
1457
|
+
return;
|
|
1458
|
+
}
|
|
1459
|
+
isDirty.current = true;
|
|
1460
|
+
const newSettings = {
|
|
1461
|
+
autoUpdatesChannel: "stable"
|
|
1462
|
+
};
|
|
1463
|
+
if (choice === "stay") {
|
|
1464
|
+
newSettings.minimumVersion = MACRO.VERSION;
|
|
1465
|
+
}
|
|
1466
|
+
updateSettingsForSource("userSettings", newSettings);
|
|
1467
|
+
setSettingsData((prev_27) => ({
|
|
1468
|
+
...prev_27,
|
|
1469
|
+
...newSettings
|
|
1470
|
+
}));
|
|
1471
|
+
logEvent("tengu_autoupdate_channel_changed", {
|
|
1472
|
+
channel: "stable",
|
|
1473
|
+
minimum_version_set: choice === "stay"
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
}, undefined, false, undefined, this) : jsxDEV_7x81h0kn(Box, {
|
|
1477
|
+
flexDirection: "column",
|
|
1478
|
+
gap: 1,
|
|
1479
|
+
marginY: insideModal ? undefined : 1,
|
|
1480
|
+
children: [
|
|
1481
|
+
jsxDEV_7x81h0kn(SearchBox, {
|
|
1482
|
+
query: searchQuery,
|
|
1483
|
+
isFocused: isSearchMode && !headerFocused,
|
|
1484
|
+
isTerminalFocused,
|
|
1485
|
+
cursorOffset: searchCursorOffset,
|
|
1486
|
+
placeholder: "Search settings…"
|
|
1487
|
+
}, undefined, false, undefined, this),
|
|
1488
|
+
jsxDEV_7x81h0kn(Box, {
|
|
1489
|
+
flexDirection: "column",
|
|
1490
|
+
children: filteredSettingsItems.length === 0 ? jsxDEV_7x81h0kn(Text, {
|
|
1491
|
+
dimColor: true,
|
|
1492
|
+
italic: true,
|
|
1493
|
+
children: [
|
|
1494
|
+
'No settings match "',
|
|
1495
|
+
searchQuery,
|
|
1496
|
+
'"'
|
|
1497
|
+
]
|
|
1498
|
+
}, undefined, true, undefined, this) : jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1499
|
+
children: [
|
|
1500
|
+
scrollOffset > 0 && jsxDEV_7x81h0kn(Text, {
|
|
1501
|
+
dimColor: true,
|
|
1502
|
+
children: [
|
|
1503
|
+
figures.arrowUp,
|
|
1504
|
+
" ",
|
|
1505
|
+
scrollOffset,
|
|
1506
|
+
" more above"
|
|
1507
|
+
]
|
|
1508
|
+
}, undefined, true, undefined, this),
|
|
1509
|
+
filteredSettingsItems.slice(scrollOffset, scrollOffset + maxVisible).map((setting_2, i) => {
|
|
1510
|
+
const actualIndex = scrollOffset + i;
|
|
1511
|
+
const isSelected = actualIndex === selectedIndex && !headerFocused && !isSearchMode;
|
|
1512
|
+
return jsxDEV_7x81h0kn(React.Fragment, {
|
|
1513
|
+
children: jsxDEV_7x81h0kn(Box, {
|
|
1514
|
+
children: [
|
|
1515
|
+
jsxDEV_7x81h0kn(Box, {
|
|
1516
|
+
width: 44,
|
|
1517
|
+
children: jsxDEV_7x81h0kn(Text, {
|
|
1518
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1519
|
+
children: [
|
|
1520
|
+
isSelected ? figures.pointer : " ",
|
|
1521
|
+
" ",
|
|
1522
|
+
setting_2.label
|
|
1523
|
+
]
|
|
1524
|
+
}, undefined, true, undefined, this)
|
|
1525
|
+
}, undefined, false, undefined, this),
|
|
1526
|
+
jsxDEV_7x81h0kn(Box, {
|
|
1527
|
+
children: setting_2.type === "boolean" ? jsxDEV_7x81h0kn(Fragment_8vg9x3sq, {
|
|
1528
|
+
children: [
|
|
1529
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1530
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1531
|
+
children: setting_2.value.toString()
|
|
1532
|
+
}, undefined, false, undefined, this),
|
|
1533
|
+
showThinkingWarning && setting_2.id === "thinkingEnabled" && jsxDEV_7x81h0kn(Text, {
|
|
1534
|
+
color: "warning",
|
|
1535
|
+
children: [
|
|
1536
|
+
" ",
|
|
1537
|
+
"Changing thinking mode mid-conversation will increase latency and may reduce quality."
|
|
1538
|
+
]
|
|
1539
|
+
}, undefined, true, undefined, this)
|
|
1540
|
+
]
|
|
1541
|
+
}, undefined, true, undefined, this) : setting_2.id === "theme" ? jsxDEV_7x81h0kn(Text, {
|
|
1542
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1543
|
+
children: THEME_LABELS[setting_2.value.toString()] ?? setting_2.value.toString()
|
|
1544
|
+
}, undefined, false, undefined, this) : setting_2.id === "notifChannel" ? jsxDEV_7x81h0kn(Text, {
|
|
1545
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1546
|
+
children: jsxDEV_7x81h0kn(NotifChannelLabel, {
|
|
1547
|
+
value: setting_2.value.toString()
|
|
1548
|
+
}, undefined, false, undefined, this)
|
|
1549
|
+
}, undefined, false, undefined, this) : setting_2.id === "defaultPermissionMode" ? jsxDEV_7x81h0kn(Text, {
|
|
1550
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1551
|
+
children: permissionModeTitle(setting_2.value)
|
|
1552
|
+
}, undefined, false, undefined, this) : setting_2.id === "autoUpdatesChannel" && autoUpdaterDisabledReason ? jsxDEV_7x81h0kn(Box, {
|
|
1553
|
+
flexDirection: "column",
|
|
1554
|
+
children: [
|
|
1555
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1556
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1557
|
+
children: "disabled"
|
|
1558
|
+
}, undefined, false, undefined, this),
|
|
1559
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1560
|
+
dimColor: true,
|
|
1561
|
+
children: [
|
|
1562
|
+
"(",
|
|
1563
|
+
formatAutoUpdaterDisabledReason(autoUpdaterDisabledReason),
|
|
1564
|
+
")"
|
|
1565
|
+
]
|
|
1566
|
+
}, undefined, true, undefined, this)
|
|
1567
|
+
]
|
|
1568
|
+
}, undefined, true, undefined, this) : jsxDEV_7x81h0kn(Text, {
|
|
1569
|
+
color: isSelected ? "suggestion" : undefined,
|
|
1570
|
+
children: setting_2.value.toString()
|
|
1571
|
+
}, undefined, false, undefined, this)
|
|
1572
|
+
}, isSelected ? "selected" : "unselected", false, undefined, this)
|
|
1573
|
+
]
|
|
1574
|
+
}, undefined, true, undefined, this)
|
|
1575
|
+
}, setting_2.id, false, undefined, this);
|
|
1576
|
+
}),
|
|
1577
|
+
scrollOffset + maxVisible < filteredSettingsItems.length && jsxDEV_7x81h0kn(Text, {
|
|
1578
|
+
dimColor: true,
|
|
1579
|
+
children: [
|
|
1580
|
+
figures.arrowDown,
|
|
1581
|
+
" ",
|
|
1582
|
+
filteredSettingsItems.length - scrollOffset - maxVisible,
|
|
1583
|
+
" ",
|
|
1584
|
+
"more below"
|
|
1585
|
+
]
|
|
1586
|
+
}, undefined, true, undefined, this)
|
|
1587
|
+
]
|
|
1588
|
+
}, undefined, true, undefined, this)
|
|
1589
|
+
}, undefined, false, undefined, this),
|
|
1590
|
+
headerFocused ? jsxDEV_7x81h0kn(Text, {
|
|
1591
|
+
dimColor: true,
|
|
1592
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1593
|
+
children: [
|
|
1594
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1595
|
+
shortcut: "←/→ tab",
|
|
1596
|
+
action: "switch"
|
|
1597
|
+
}, undefined, false, undefined, this),
|
|
1598
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1599
|
+
shortcut: "↓",
|
|
1600
|
+
action: "return"
|
|
1601
|
+
}, undefined, false, undefined, this),
|
|
1602
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1603
|
+
action: "confirm:no",
|
|
1604
|
+
context: "Settings",
|
|
1605
|
+
fallback: "Esc",
|
|
1606
|
+
description: "close"
|
|
1607
|
+
}, undefined, false, undefined, this)
|
|
1608
|
+
]
|
|
1609
|
+
}, undefined, true, undefined, this)
|
|
1610
|
+
}, undefined, false, undefined, this) : isSearchMode ? jsxDEV_7x81h0kn(Text, {
|
|
1611
|
+
dimColor: true,
|
|
1612
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1613
|
+
children: [
|
|
1614
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1615
|
+
children: "Type to filter"
|
|
1616
|
+
}, undefined, false, undefined, this),
|
|
1617
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1618
|
+
shortcut: "Enter/↓",
|
|
1619
|
+
action: "select"
|
|
1620
|
+
}, undefined, false, undefined, this),
|
|
1621
|
+
jsxDEV_7x81h0kn(KeyboardShortcutHint, {
|
|
1622
|
+
shortcut: "↑",
|
|
1623
|
+
action: "tabs"
|
|
1624
|
+
}, undefined, false, undefined, this),
|
|
1625
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1626
|
+
action: "confirm:no",
|
|
1627
|
+
context: "Settings",
|
|
1628
|
+
fallback: "Esc",
|
|
1629
|
+
description: "clear"
|
|
1630
|
+
}, undefined, false, undefined, this)
|
|
1631
|
+
]
|
|
1632
|
+
}, undefined, true, undefined, this)
|
|
1633
|
+
}, undefined, false, undefined, this) : jsxDEV_7x81h0kn(Text, {
|
|
1634
|
+
dimColor: true,
|
|
1635
|
+
children: jsxDEV_7x81h0kn(Byline, {
|
|
1636
|
+
children: [
|
|
1637
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1638
|
+
action: "select:accept",
|
|
1639
|
+
context: "Settings",
|
|
1640
|
+
fallback: "Space",
|
|
1641
|
+
description: "change"
|
|
1642
|
+
}, undefined, false, undefined, this),
|
|
1643
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1644
|
+
action: "settings:close",
|
|
1645
|
+
context: "Settings",
|
|
1646
|
+
fallback: "Enter",
|
|
1647
|
+
description: "save"
|
|
1648
|
+
}, undefined, false, undefined, this),
|
|
1649
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1650
|
+
action: "settings:search",
|
|
1651
|
+
context: "Settings",
|
|
1652
|
+
fallback: "/",
|
|
1653
|
+
description: "search"
|
|
1654
|
+
}, undefined, false, undefined, this),
|
|
1655
|
+
jsxDEV_7x81h0kn(ConfigurableShortcutHint, {
|
|
1656
|
+
action: "confirm:no",
|
|
1657
|
+
context: "Settings",
|
|
1658
|
+
fallback: "Esc",
|
|
1659
|
+
description: "cancel"
|
|
1660
|
+
}, undefined, false, undefined, this)
|
|
1661
|
+
]
|
|
1662
|
+
}, undefined, true, undefined, this)
|
|
1663
|
+
}, undefined, false, undefined, this)
|
|
1664
|
+
]
|
|
1665
|
+
}, undefined, true, undefined, this)
|
|
1666
|
+
}, undefined, false, undefined, this);
|
|
1667
|
+
}
|
|
1668
|
+
function teammateModelDisplayString(value) {
|
|
1669
|
+
if (value === undefined) {
|
|
1670
|
+
return modelDisplayString(getHardcodedTeammateModelFallback());
|
|
1671
|
+
}
|
|
1672
|
+
if (value === null)
|
|
1673
|
+
return "Default (leader's model)";
|
|
1674
|
+
return modelDisplayString(value);
|
|
1675
|
+
}
|
|
1676
|
+
const THEME_LABELS = {
|
|
1677
|
+
auto: "Auto (match terminal)",
|
|
1678
|
+
dark: "Dark mode",
|
|
1679
|
+
light: "Light mode",
|
|
1680
|
+
"dark-daltonized": "Dark mode (colorblind-friendly)",
|
|
1681
|
+
"light-daltonized": "Light mode (colorblind-friendly)",
|
|
1682
|
+
"dark-ansi": "Dark mode (ANSI colors only)",
|
|
1683
|
+
"light-ansi": "Light mode (ANSI colors only)"
|
|
1684
|
+
};
|
|
1685
|
+
function NotifChannelLabel(t0) {
|
|
1686
|
+
const $ = _c(4);
|
|
1687
|
+
const {
|
|
1688
|
+
value
|
|
1689
|
+
} = t0;
|
|
1690
|
+
switch (value) {
|
|
1691
|
+
case "auto": {
|
|
1692
|
+
return "Auto";
|
|
1693
|
+
}
|
|
1694
|
+
case "iterm2": {
|
|
1695
|
+
let t1;
|
|
1696
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1697
|
+
t1 = jsxDEV_7x81h0kn(Text, {
|
|
1698
|
+
children: [
|
|
1699
|
+
"iTerm2 ",
|
|
1700
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1701
|
+
dimColor: true,
|
|
1702
|
+
children: "(OSC 9)"
|
|
1703
|
+
}, undefined, false, undefined, this)
|
|
1704
|
+
]
|
|
1705
|
+
}, undefined, true, undefined, this);
|
|
1706
|
+
$[0] = t1;
|
|
1707
|
+
} else {
|
|
1708
|
+
t1 = $[0];
|
|
1709
|
+
}
|
|
1710
|
+
return t1;
|
|
1711
|
+
}
|
|
1712
|
+
case "terminal_bell": {
|
|
1713
|
+
let t1;
|
|
1714
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1715
|
+
t1 = jsxDEV_7x81h0kn(Text, {
|
|
1716
|
+
children: [
|
|
1717
|
+
"Terminal Bell ",
|
|
1718
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1719
|
+
dimColor: true,
|
|
1720
|
+
children: "(\\a)"
|
|
1721
|
+
}, undefined, false, undefined, this)
|
|
1722
|
+
]
|
|
1723
|
+
}, undefined, true, undefined, this);
|
|
1724
|
+
$[1] = t1;
|
|
1725
|
+
} else {
|
|
1726
|
+
t1 = $[1];
|
|
1727
|
+
}
|
|
1728
|
+
return t1;
|
|
1729
|
+
}
|
|
1730
|
+
case "kitty": {
|
|
1731
|
+
let t1;
|
|
1732
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1733
|
+
t1 = jsxDEV_7x81h0kn(Text, {
|
|
1734
|
+
children: [
|
|
1735
|
+
"Kitty ",
|
|
1736
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1737
|
+
dimColor: true,
|
|
1738
|
+
children: "(OSC 99)"
|
|
1739
|
+
}, undefined, false, undefined, this)
|
|
1740
|
+
]
|
|
1741
|
+
}, undefined, true, undefined, this);
|
|
1742
|
+
$[2] = t1;
|
|
1743
|
+
} else {
|
|
1744
|
+
t1 = $[2];
|
|
1745
|
+
}
|
|
1746
|
+
return t1;
|
|
1747
|
+
}
|
|
1748
|
+
case "ghostty": {
|
|
1749
|
+
let t1;
|
|
1750
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1751
|
+
t1 = jsxDEV_7x81h0kn(Text, {
|
|
1752
|
+
children: [
|
|
1753
|
+
"Ghostty ",
|
|
1754
|
+
jsxDEV_7x81h0kn(Text, {
|
|
1755
|
+
dimColor: true,
|
|
1756
|
+
children: "(OSC 777)"
|
|
1757
|
+
}, undefined, false, undefined, this)
|
|
1758
|
+
]
|
|
1759
|
+
}, undefined, true, undefined, this);
|
|
1760
|
+
$[3] = t1;
|
|
1761
|
+
} else {
|
|
1762
|
+
t1 = $[3];
|
|
1763
|
+
}
|
|
1764
|
+
return t1;
|
|
1765
|
+
}
|
|
1766
|
+
case "iterm2_with_bell": {
|
|
1767
|
+
return "iTerm2 w/ Bell";
|
|
1768
|
+
}
|
|
1769
|
+
case "notifications_disabled": {
|
|
1770
|
+
return "Disabled";
|
|
1771
|
+
}
|
|
1772
|
+
default: {
|
|
1773
|
+
return value;
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}
|