claude-code-best 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AddWorkspaceDirectory-C7od6sFQ.js +1 -0
- package/dist/chunks/App-EfHjElWP.js +1 -0
- package/dist/chunks/ApproveApiKey-CSz0291w.js +1 -0
- package/dist/chunks/ApproveApiKey-Cc5SaLqs.js +1 -0
- package/dist/chunks/AssistantSessionChooser-mLIhDlxW.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-OkUSMj0I.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-BCdft-m_.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-BPlrCIo-.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-BbPaorIs.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-D8fk-Ib5.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-Dyv4mI_o.js +1 -0
- package/dist/chunks/DesktopHandoff-BQwx7qWA.js +1 -0
- package/dist/chunks/DevChannelsDialog-CujM8Ivu.js +1 -0
- package/dist/chunks/DiffDialog-Byv1UJvS.js +3 -0
- package/dist/chunks/Doctor-CRrE5Sf4.js +1 -0
- package/dist/chunks/Doctor-Cv7wbi6C.js +3 -0
- package/dist/chunks/ExitFlow-DKusdm_v.js +2 -0
- package/dist/chunks/Feedback-Diw8XUr-.js +2 -0
- package/dist/chunks/Grove-CAi037VV.js +11 -0
- package/dist/chunks/Grove-CgX5Fdeh.js +1 -0
- package/dist/chunks/HybridTransport-CP0RopXu.js +4 -0
- package/dist/chunks/ITermBackend-RvD4VX7c.js +1 -0
- package/dist/chunks/InvalidConfigDialog-Bhlgysxl.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-dGStgJZN.js +1 -0
- package/dist/chunks/MCPConnectionManager-D5a9ysw2.js +1 -0
- package/dist/chunks/McpParsingWarnings-B_z9pZ_8.js +1 -0
- package/dist/chunks/MessageSelector-CEvbAZGv.js +3 -0
- package/dist/chunks/Messages-DTmFVhRG.js +11 -0
- package/dist/chunks/Onboarding-BoAtphYb.js +1 -0
- package/dist/chunks/OverageCreditUpsell-DA7Ne7Mj.js +1 -0
- package/dist/chunks/PluginSettings-D3bQRsge.js +17 -0
- package/dist/chunks/PromptInputFooterSuggestions-DhIQ0Nge.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-B__j9zE6.js +1 -0
- package/dist/chunks/QueryEngine-CMcQGyql.js +1 -0
- package/dist/chunks/REPL-B1BS9jwx.js +147 -0
- package/dist/chunks/REPL-C9f3ToGu.js +1 -0
- package/dist/chunks/RemoteCallout-Bwe1ESr9.js +1 -0
- package/dist/chunks/RemoteSessionManager-BKD4YmzY.js +2 -0
- package/dist/chunks/ResumeConversation-DxqbAKA4.js +1 -0
- package/dist/chunks/SSETransport-D3e5KNL3.js +4 -0
- package/dist/chunks/SearchExtraToolsTool-BVAhywUI.js +1 -0
- package/dist/chunks/SentryErrorBoundary-D-YZTGQG.js +2 -0
- package/dist/chunks/SentryErrorBoundary-M1ipwe1n.js +1 -0
- package/dist/chunks/Settings-D5EWYL40.js +2 -0
- package/dist/chunks/TeleportProgress-C3Ubx1Se.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-D_ax3xQy.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-DeVKIXQp.js +1 -0
- package/dist/chunks/ThemePicker-DKmIL5Ku.js +1 -0
- package/dist/chunks/TmuxBackend-Bm_cRJ2x.js +9 -0
- package/dist/chunks/TrustDialog-ClXFMKj6.js +1 -0
- package/dist/chunks/TungstenTool-B40YHYXC.js +1 -0
- package/dist/chunks/ValidationErrorsList-SdQADfvA.js +2 -0
- package/dist/chunks/WelcomeV2-BijS6i2Z.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-CGEQ5ClB.js +2 -0
- package/dist/chunks/add-dir-B7kleB6k.js +1 -0
- package/dist/chunks/agentDisplay-Dr1XbOAu.js +1 -0
- package/dist/chunks/agents-CpLvvWpO.js +103 -0
- package/dist/chunks/agents-Dy5YOJC9.js +2 -0
- package/dist/chunks/ant-gwf-4eGN.js +1 -0
- package/dist/chunks/api-BdbBnz5c.js +1 -0
- package/dist/chunks/api-CDmgYrwN.js +1 -0
- package/dist/chunks/asciicast-C_1Pi99k.js +4 -0
- package/dist/chunks/asciicast-DA6TudSH.js +1 -0
- package/dist/chunks/assistant-1usDIXtk.js +1 -0
- package/dist/chunks/assistant-BMviqf0l.js +1 -0
- package/dist/chunks/assistant-BULedprW.js +1 -0
- package/dist/chunks/auth-CvHVr2A5.js +1 -0
- package/dist/chunks/auth-ORBmEqnH.js +1 -0
- package/dist/chunks/autoMode-DSMM2seL.js +45 -0
- package/dist/chunks/autonomy-Dj6Nzxus.js +19 -0
- package/dist/chunks/autonomy-TtBO2TAe.js +1 -0
- package/dist/chunks/autonomyPanel-CbmU7lPg.js +1 -0
- package/dist/chunks/backgroundHousekeeping-BAvSPaZ5.js +1 -0
- package/dist/chunks/backgroundHousekeeping-Cp2RvmEN.js +17 -0
- package/dist/chunks/banner-D9Cq292T.js +2 -0
- package/dist/chunks/bg-CngkAkgc.js +1 -0
- package/dist/chunks/bg-DgpgS_VU.js +9 -0
- package/dist/chunks/branch-Cj5TGroO.js +3 -0
- package/dist/chunks/break-cache-DrIa8RdW.js +8 -0
- package/dist/chunks/bridge-CsqJAoEg.js +2 -0
- package/dist/chunks/bridgeConfig-B49H_B9L.js +1 -0
- package/dist/chunks/bridgeConfig-pjDV5Z2l.js +1 -0
- package/dist/chunks/bridgeEnabled-D9jI6X-w.js +1 -0
- package/dist/chunks/bridgeEnabled-DsG2JvIr.js +1 -0
- package/dist/chunks/bridgeMain-CNmR9iDD.js +68 -0
- package/dist/chunks/bridgeMain-DYCShrcV.js +1 -0
- package/dist/chunks/bridgeMessaging-DN0X35NX.js +1 -0
- package/dist/chunks/bridgePointer-Clcvh52n.js +1 -0
- package/dist/chunks/browser-Bt-ckCaU.js +1 -0
- package/dist/chunks/btw-BOg0RTKl.js +1 -0
- package/dist/chunks/buddy-BFuPeIxM.js +3 -0
- package/dist/chunks/bypassPermissionsKillswitch-kxVnIVRs.js +1 -0
- package/dist/chunks/caches-BsYvQnWV.js +1 -0
- package/dist/chunks/caches-BumkMuGA.js +3 -0
- package/dist/chunks/ccrClient-BI1QPLmN.js +1 -0
- package/dist/chunks/changeDetector-By54zja0.js +1 -0
- package/dist/chunks/channelNotification-CoZSFUlb.js +1 -0
- package/dist/chunks/channelNotification-Cx82K1CD.js +1 -0
- package/dist/chunks/chrome-C_5EZcdc.js +1 -0
- package/dist/chunks/chromeNativeHost-BldB1Zzi.js +1 -0
- package/dist/chunks/claudeDesktop-BqTW_pbB.js +1 -0
- package/dist/chunks/cleanup-rCLlo4w8.js +1 -0
- package/dist/chunks/clear-BQr2zTyP.js +1 -0
- package/dist/chunks/cliLaunch-Citfs01Q.js +1 -0
- package/dist/chunks/client-BbavFXJZ.js +1 -0
- package/dist/chunks/color-DOsgZO2n.js +1 -0
- package/dist/chunks/commands-CfwfGt3T.js +1 -0
- package/dist/chunks/commitAttribution-CH9C_hoL.js +1 -0
- package/dist/chunks/commitAttribution-iKd8bTOI.js +2 -0
- package/dist/chunks/common-Bi4yZBkh.js +1 -0
- package/dist/chunks/common-Da57Qwms.js +1 -0
- package/dist/chunks/common-NEOWMwtB.js +1 -0
- package/dist/chunks/compact-B6Muofhz.js +3 -0
- package/dist/chunks/companion-B_LrjSk5.js +1 -0
- package/dist/chunks/completionCache-BQgiR45Q.js +1 -0
- package/dist/chunks/completionCache-C7hDqIDL.js +4 -0
- package/dist/chunks/config-CJd9kJ57.js +1 -0
- package/dist/chunks/config-CQd4IkXo.js +1 -0
- package/dist/chunks/context-noninteractive-DCYvLxWx.js +1 -0
- package/dist/chunks/context-noninteractive-DZsSp-ES.js +54 -0
- package/dist/chunks/context-qAHTuazZ.js +1 -0
- package/dist/chunks/conversation-DYUVAAQt.js +1 -0
- package/dist/chunks/conversation-NrAy2em3.js +1 -0
- package/dist/chunks/copy-B2jhZndZ.js +7 -0
- package/dist/chunks/createSSHSession-CKdoEmAg.js +6 -0
- package/dist/chunks/createSession-Czx7_nf6.js +1 -0
- package/dist/chunks/createSession-WkBw7wdn.js +1 -0
- package/dist/chunks/cronJitterConfig-2u6WAlti.js +6 -0
- package/dist/chunks/crossProjectResume-CjJISRBQ.js +40 -0
- package/dist/chunks/daemon-BRKR4D1D.js +2 -0
- package/dist/chunks/datadog-QSR9B7CZ.js +1 -0
- package/dist/chunks/datadog-YsyhnDmr.js +1 -0
- package/dist/chunks/desktop-BN9pHpK_.js +1 -0
- package/dist/chunks/detached-C_2ZXr7X.js +5 -0
- package/dist/chunks/detectRepository-2ICvGD0U.js +1 -0
- package/dist/chunks/detectRepository-BLwSmun2.js +1 -0
- package/dist/chunks/detection-0mMj--Bt.js +1 -0
- package/dist/chunks/detection-95TCHkW8.js +1 -0
- package/dist/chunks/diff-BTtUFuf-.js +1 -0
- package/dist/chunks/directoryCompletion-DqtWZsoW.js +1 -0
- package/dist/chunks/doctor-BKBb426q.js +1 -0
- package/dist/chunks/earlyInput-CFYRGxau.js +2 -0
- package/dist/chunks/earlyInput-D3OhUZ4G.js +1 -0
- package/dist/chunks/effort-ClhxMqY6.js +9 -0
- package/dist/chunks/entry-CJlJ47nP.js +14 -0
- package/dist/chunks/env-C2A9gV_G.js +1 -0
- package/dist/chunks/envLessBridgeConfig-C9UUbQCo.js +1 -0
- package/dist/chunks/envLessBridgeConfig-DSJqg3Ox.js +1 -0
- package/dist/chunks/execFileNoThrow-azCkYhmF.js +1 -0
- package/dist/chunks/executor-BVh1PTF-.js +1561 -0
- package/dist/chunks/executor-CvTuHx-k.js +1 -0
- package/dist/chunks/exit-DxY3yJrp.js +1 -0
- package/dist/chunks/export-DS2esu8D.js +2 -0
- package/dist/chunks/exportRenderer-DX2L5fQ7.js +1 -0
- package/dist/chunks/extra-usage-DaxUQk9I.js +1 -0
- package/dist/chunks/extra-usage-XJxfHsbe.js +1 -0
- package/dist/chunks/extra-usage-core-D84ifgBo.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-fxqxHnIt.js +1 -0
- package/dist/chunks/extraUsage-P_NGI1-I.js +1 -0
- package/dist/chunks/extractMemories-B3cTWsph.js +1 -0
- package/dist/chunks/fast-CHiQGMBE.js +1 -0
- package/dist/chunks/fast-CpN8lLnE.js +1 -0
- package/dist/chunks/featureCheck-CUJ2rPM6.js +1 -0
- package/dist/chunks/feedback-CqRsOG3c.js +1 -0
- package/dist/chunks/fileStateCache-BhVfo23e.js +1 -0
- package/dist/chunks/files-Bdr_PQyV.js +2 -0
- package/dist/chunks/findExecutable-BHQl4NaS.js +1 -0
- package/dist/chunks/firstPartyEventLogger-CM0V7Uev.js +1 -0
- package/dist/chunks/flushGate-DNutWuOE.js +1 -0
- package/dist/chunks/gates-C4JvRq4i.js +1 -0
- package/dist/chunks/gates-DvjyKZVA.js +1 -0
- package/dist/chunks/gemini-B0M6SQSG.js +1 -0
- package/dist/chunks/generateRecap-DhDOgXn3.js +1 -0
- package/dist/chunks/generateSessionName-CoFR2wgK.js +1 -0
- package/dist/chunks/genericProcessUtils-tJxf3yqB.js +23 -0
- package/dist/chunks/git-C0IuvuIy.js +6 -0
- package/dist/chunks/git-hSvFiuiG.js +1 -0
- package/dist/chunks/githubRepoPathMapping-DGiSNykv.js +1 -0
- package/dist/chunks/goal-DRb6pPAp.js +3 -0
- package/dist/chunks/grok-emDua_hT.js +1 -0
- package/dist/chunks/growthbook-COAneL48.js +1 -0
- package/dist/chunks/heapdump-CA6DHA8G.js +5 -0
- package/dist/chunks/help-XXY7deZm.js +1 -0
- package/dist/chunks/hooks-C6zZYnDi.js +79 -0
- package/dist/chunks/hooks-DOej0jqp.js +1 -0
- package/dist/chunks/hostAdapter-DZbdeXCV.js +1 -0
- package/dist/chunks/hostGuard-DSOEyH-P.js +1 -0
- package/dist/chunks/ide-BLRNkzVx.js +2 -0
- package/dist/chunks/inboundAttachments-60kD5Qt_.js +1 -0
- package/dist/chunks/inboundAttachments-BBYxcnvj.js +1 -0
- package/dist/chunks/initReplBridge-Dt2aQBia.js +1 -0
- package/dist/chunks/insights-BBugI3tW.js +822 -0
- package/dist/chunks/install-CuVHbwyW.js +1 -0
- package/dist/chunks/install-github-app-ByyzrlM9.js +147 -0
- package/dist/chunks/install-slack-app-CJGtmacz.js +1 -0
- package/dist/chunks/instrumentation-C8zvzMg1.js +12 -0
- package/dist/chunks/job-DBf6aPQX.js +2 -0
- package/dist/chunks/jwtUtils-BQXXBwqW.js +1 -0
- package/dist/chunks/keybindings-Bi7SMp5-.js +2 -0
- package/dist/chunks/lang-CVDkUhjk.js +1 -0
- package/dist/chunks/language-BYeqMX74.js +1 -0
- package/dist/chunks/language-BoKr5ylY.js +1 -0
- package/dist/chunks/launchAgentsPlatform-BKqxMFFn.js +1 -0
- package/dist/chunks/launchAutofixPr-CauX6gOB.js +18 -0
- package/dist/chunks/launchLocalMemory-Brrd_BJC.js +3 -0
- package/dist/chunks/launchLocalVault-DtAn656A.js +3 -0
- package/dist/chunks/launchMemoryStores-x7_Id7Yr.js +1 -0
- package/dist/chunks/launchOnboarding-DkamFByn.js +8 -0
- package/dist/chunks/launchSchedule-DjNQNxW4.js +1 -0
- package/dist/chunks/launchSkillStore-D2GUGhDD.js +1 -0
- package/dist/chunks/launchTeleport-DTfhiZkf.js +3 -0
- package/dist/chunks/launchVault-BZ2Po4r8.js +1 -0
- package/dist/chunks/loadAgentsDir-C_wFhytF.js +4697 -0
- package/dist/chunks/loadAgentsDir-whRB0phu.js +1 -0
- package/dist/chunks/loadPluginHooks-CYZjzxyO.js +1 -0
- package/dist/chunks/localSearch-B0p0_bjP.js +1 -0
- package/dist/chunks/localSearch-DAwFmV2Y.js +1 -0
- package/dist/chunks/log-DSV4Ht5l.js +1 -0
- package/dist/chunks/login-C1uE6Pg9.js +1 -0
- package/dist/chunks/login-DOyB64Rv.js +1 -0
- package/dist/chunks/logoV2Utils-BJHvwGup.js +1 -0
- package/dist/chunks/logout-DTPo3Myl.js +1 -0
- package/dist/chunks/magicDocs-DPZzG7Z2.js +57 -0
- package/dist/chunks/main-CNwSLti2.js +1312 -0
- package/dist/chunks/main-CfkIGrBF.js +31 -0
- package/dist/chunks/mappers-Dxs_kNJH.js +1 -0
- package/dist/chunks/mcp-CVnFM6nR.js +6 -0
- package/dist/chunks/mcp-CbDDqdzF.js +2 -0
- package/dist/chunks/mcp-CzfQB8BT.js +1 -0
- package/dist/chunks/mcpServer-BJNjQXsU.js +1 -0
- package/dist/chunks/mcpServer-Py4Iz9Hx.js +1 -0
- package/dist/chunks/memoize-DJ1XCN-z.js +1 -0
- package/dist/chunks/memory-BdUqEKio.js +1 -0
- package/dist/chunks/mobile-BMglW1NB.js +2 -0
- package/dist/chunks/mode-CqGusjoT.js +2 -0
- package/dist/chunks/model-BBULcn7y.js +1 -0
- package/dist/chunks/model-BOc_-7m0.js +1 -0
- package/dist/chunks/onChangeAppState-BkRihYau.js +1 -0
- package/dist/chunks/openai-yNI_zoao.js +10 -0
- package/dist/chunks/overageCreditGrant-Cbh0_fbM.js +1 -0
- package/dist/chunks/panel-BYfvo_mR.js +1 -0
- package/dist/chunks/panel-D3wvAEFE.js +1 -0
- package/dist/chunks/panelCall-t10Sud9A.js +1 -0
- package/dist/chunks/parser-DGXE1uWd.js +1 -0
- package/dist/chunks/passes-D_iS6DaC.js +1 -0
- package/dist/chunks/path-BE28AJwZ.js +1 -0
- package/dist/chunks/paths-Ci1iwL5Y.js +36 -0
- package/dist/chunks/permissions-BE-1pIly.js +1 -0
- package/dist/chunks/permissions-CHvu4-yX.js +3 -0
- package/dist/chunks/pipeTransport-EAYXsubu.js +1 -0
- package/dist/chunks/plan-CP5nq_EB.js +1 -0
- package/dist/chunks/platform-mh9ypxS8.js +2 -0
- package/dist/chunks/plugin-8apy_RBT.js +1 -0
- package/dist/chunks/pluginAutoupdate-ClrgF5b3.js +1 -0
- package/dist/chunks/pluginBlocklist-B1LVo0j_.js +1 -0
- package/dist/chunks/pluginCliCommands-eqyMBWcP.js +1 -0
- package/dist/chunks/pluginFlagging-BiTDVP10.js +1 -0
- package/dist/chunks/pluginOperations-gZ-iCmhu.js +2 -0
- package/dist/chunks/pluginStartupCheck-DCDWHam6.js +1 -0
- package/dist/chunks/pluginStartupCheck-EjLvCXru.js +1 -0
- package/dist/chunks/plugins-BAIVqfi8.js +4 -0
- package/dist/chunks/policyLimits-Cdp3QwZ1.js +1 -0
- package/dist/chunks/pollConfig-_2W7bHoW.js +1 -0
- package/dist/chunks/poller-BA1jhG3F.js +1 -0
- package/dist/chunks/poor-Dii0mpOW.js +1 -0
- package/dist/chunks/poorMode-DzEL0cu0.js +1 -0
- package/dist/chunks/poorMode-aDmmvJ_e.js +1 -0
- package/dist/chunks/print-BwSmcUQu.js +39 -0
- package/dist/chunks/privacy-settings-DaAgSLKw.js +1 -0
- package/dist/chunks/processBashCommand-BZ1_JKu4.js +1 -0
- package/dist/chunks/processSlashCommand-v1Rvzxwn.js +6 -0
- package/dist/chunks/projectContext-Cd7V9pES.js +1 -0
- package/dist/chunks/prompt-6ZKyqv6z.js +227 -0
- package/dist/chunks/prompt-DPqKtC0b.js +1 -0
- package/dist/chunks/prompt-WjMHPk90.js +1 -0
- package/dist/chunks/promptEditor-Dz41P-3I.js +4 -0
- package/dist/chunks/protocolHandler-CHGHjfdf.js +13 -0
- package/dist/chunks/rate-limit-options-BlU9av7g.js +1 -0
- package/dist/chunks/rcDebugLog-C42A0pX1.js +11 -0
- package/dist/chunks/referral-IIcY3jkp.js +1 -0
- package/dist/chunks/refresh-DTGEx7X_.js +1 -0
- package/dist/chunks/registerProtocol-BkNncGMI.js +36 -0
- package/dist/chunks/registry-CBqb7wbi.js +1 -0
- package/dist/chunks/release-notes-BxzOD-zP.js +4 -0
- package/dist/chunks/releaseNotes-C8KQGZHq.js +2 -0
- package/dist/chunks/reload-plugins-gYyC6_g8.js +1 -0
- package/dist/chunks/remote-env-CEJH5aJh.js +1 -0
- package/dist/chunks/remoteBridgeCore-Dte7ZUAN.js +1 -0
- package/dist/chunks/remoteControlServer-GN-eDbEz.js +3 -0
- package/dist/chunks/rename-BEU6BNRp.js +1 -0
- package/dist/chunks/renderOptions-Caca3bCd.js +1 -0
- package/dist/chunks/resume-D36S2rXg.js +2 -0
- package/dist/chunks/ripgrep-Bzwdi5-K.js +5 -0
- package/dist/chunks/ripgrep-DEa1djpJ.js +1 -0
- package/dist/chunks/runtimeObserver-CDMCeww2.js +1 -0
- package/dist/chunks/runtimeObserver-DaKaKNVW.js +10 -0
- package/dist/chunks/sandbox-adapter-DqTuhgud.js +1 -0
- package/dist/chunks/sandbox-toggle-BPO26t48.js +1 -0
- package/dist/chunks/searchExtraTools-Brae4wmG.js +1 -0
- package/dist/chunks/sentry-9EbPa1Xu.js +13 -0
- package/dist/chunks/session-D18B22u4.js +2 -0
- package/dist/chunks/sessionDiscovery-B-OTvXJf.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-BXsK8Dwf.js +1 -0
- package/dist/chunks/sessionMemory-Bv-AYifm.js +1 -0
- package/dist/chunks/sessionMemory-Ctauybzs.js +1 -0
- package/dist/chunks/sessionMemoryUtils-D-bzdsAT.js +1 -0
- package/dist/chunks/sessionObserver-ardnTJ37.js +20 -0
- package/dist/chunks/sessionObserver-j8D9hidw.js +1 -0
- package/dist/chunks/sessionStorage-Cw5ibYWA.js +1 -0
- package/dist/chunks/sessionStoragePortable-CJUZrbIq.js +3 -0
- package/dist/chunks/sessionTitle-DEKvIVCK.js +14 -0
- package/dist/chunks/sessionTracing-CJUUEWZ4.js +11 -0
- package/dist/chunks/settingsSync-BWt3oUR7.js +1 -0
- package/dist/chunks/setup-BECFDOT9.js +9 -0
- package/dist/chunks/setup-CDxkPTCq.js +2 -0
- package/dist/chunks/setup-CmCTB2T_.js +1 -0
- package/dist/chunks/shadowedRuleDetection-BbALfdxE.js +1 -0
- package/dist/chunks/shellQuote-CBjhlaFO.js +1 -0
- package/dist/chunks/sideQuestion-BHK6dd1q.js +20 -0
- package/dist/chunks/sink-DFWgcGHX.js +1 -0
- package/dist/chunks/sink-Do5fWbUC.js +1 -0
- package/dist/chunks/sinks-BnkxTOU9.js +1 -0
- package/dist/chunks/sinks-Dc9V7k6a.js +2 -0
- package/dist/chunks/skill-learning-BHW9G3Dn.js +5 -0
- package/dist/chunks/skillChangeDetector-DwAvG835.js +1 -0
- package/dist/chunks/skillGapStore-DVMbI2yy.js +1 -0
- package/dist/chunks/skillGapStore-Wa7s6orv.js +5 -0
- package/dist/chunks/skillGenerator-CBuoIFsH.js +8 -0
- package/dist/chunks/skillLearning-BI2YDG3K.js +1 -0
- package/dist/chunks/skillLearning-BZMJRJPp.js +1 -0
- package/dist/chunks/skillPanel-2w82nkOl.js +28 -0
- package/dist/chunks/skillSearchPanel-7BhCBkdh.js +21 -0
- package/dist/chunks/skills-D5rMEo2w.js +1 -0
- package/dist/chunks/sprites-uNWgVZT6.js +1 -0
- package/dist/chunks/src-BGzuPZ5q.js +26 -0
- package/dist/chunks/src-kgpr3s-l.js +1 -0
- package/dist/chunks/startupProfiler-CAntGAbs.js +3 -0
- package/dist/chunks/startupProfiler-WtUzkMKV.js +1 -0
- package/dist/chunks/stats-D0CJB2HV.js +1 -0
- package/dist/chunks/status-nte1Arzy.js +1 -0
- package/dist/chunks/statusNoticeHelpers-Lqf99003.js +1 -0
- package/dist/chunks/stdio-Cg20AQ5W.js +1 -0
- package/dist/chunks/stickers-DDAm--86.js +1 -0
- package/dist/chunks/stringUtils-KZoO4GUd.js +4 -0
- package/dist/chunks/subprocessEnv-D4Cbyl2J.js +1 -0
- package/dist/chunks/systemPromptSections-CVpefuSD.js +1 -0
- package/dist/chunks/tag-BnvWS9HE.js +11 -0
- package/dist/chunks/tasks-CEs-pxkC.js +1 -0
- package/dist/chunks/teamHelpers-D4vCj2hP.js +1 -0
- package/dist/chunks/teamHelpers-D8R_gGLb.js +1 -0
- package/dist/chunks/teammateModeSnapshot-BDJ1JTcl.js +1 -0
- package/dist/chunks/teammateModeSnapshot-Bdra3VIJ.js +1 -0
- package/dist/chunks/teleport-RxTr4aCi.js +1 -0
- package/dist/chunks/templateJobs-BDKGtmr3.js +12 -0
- package/dist/chunks/terminalSetup-Bbvq-9Xl.js +1 -0
- package/dist/chunks/terminalSetup-C1X-sXwp.js +33 -0
- package/dist/chunks/theme-DXv6bV7f.js +1 -0
- package/dist/chunks/thinkback-CMsW7mvG.js +1 -0
- package/dist/chunks/thinkback-DRJBz3Is.js +1 -0
- package/dist/chunks/thinkback-play-CFdkpzlj.js +1 -0
- package/dist/chunks/tmux-DelKEjda.js +1 -0
- package/dist/chunks/toolEventObserver-CF7T7FBH.js +1 -0
- package/dist/chunks/toolEventObserver-DDJV8cvW.js +1 -0
- package/dist/chunks/toolPool-0zCdXfEu.js +1 -0
- package/dist/chunks/toolPool-BJv0sBnR.js +1 -0
- package/dist/chunks/trustedDevice-C5s2au0k.js +1 -0
- package/dist/chunks/trustedDevice-C9nJhhyZ.js +1 -0
- package/dist/chunks/tui-DoOiz2RW.js +6 -0
- package/dist/chunks/types-BCy5hsQR.js +1 -0
- package/dist/chunks/types-KeqFPzY5.js +17 -0
- package/dist/chunks/udsClient-CBF_cZFW.js +1 -0
- package/dist/chunks/ultrareviewCommand-BEv1_AS1.js +3 -0
- package/dist/chunks/undercover-DPVt2WN7.js +31 -0
- package/dist/chunks/undercover-DYa00dVv.js +1 -0
- package/dist/chunks/up-DaiW-V1N.js +12 -0
- package/dist/chunks/updateCCB-D-4naIUu.js +11 -0
- package/dist/chunks/upgrade-BHj8ALep.js +1 -0
- package/dist/chunks/upgrade-CSld83v7.js +1 -0
- package/dist/chunks/upload-DVlE8SRp.js +1 -0
- package/dist/chunks/upstreamproxy-CLf1UaJv.js +11 -0
- package/dist/chunks/usage-B_bY46ep.js +1 -0
- package/dist/chunks/usage-D4Ubnttz.js +1 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHi41Ku_.js +1 -0
- package/dist/chunks/useMainLoopModel-D3tJJC3y.js +1 -0
- package/dist/chunks/useManagePlugins-B4kcqcyY.js +1 -0
- package/dist/chunks/useMergedTools-CTQl4cdV.js +1 -0
- package/dist/chunks/useSearchInput-JPayBRPC.js +1 -0
- package/dist/chunks/useSettingsErrors-YTgPxnRZ.js +1 -0
- package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
- package/dist/chunks/useVoice-CaBv3G13.js +1 -0
- package/dist/chunks/util-Q70qdjeS.js +1 -0
- package/dist/chunks/utils-Cr-x1Oyd.js +1 -0
- package/dist/chunks/validatePlugin-6lg9B564.js +1 -0
- package/dist/chunks/vim-zOsQBIp4.js +1 -0
- package/dist/chunks/voice-DBQevAhk.js +2 -0
- package/dist/chunks/voice-YtzCcIoM.js +8 -0
- package/dist/chunks/voiceModeEnabled-CjBjjeNR.js +1 -0
- package/dist/chunks/voiceModeEnabled-DK6u8Aaj.js +1 -0
- package/dist/chunks/voiceStreamSTT-B8CTbb_6.js +1 -0
- package/dist/chunks/voiceStreamSTT-CCkOfmdI.js +1 -0
- package/dist/chunks/web-tools-CGqBqo07.js +1 -0
- package/dist/chunks/windowsPaths-BeDSnJ23.js +2 -0
- package/dist/chunks/windowsPaths-ttHiMKpR.js +1 -0
- package/dist/chunks/workerRegistry-Bx6FvTZF.js +1 -0
- package/dist/chunks/worktree-DPpgPLLG.js +1 -0
- package/dist/chunks/worktreeModeEnabled-RtizNgNg.js +1 -0
- package/dist/chunks/xml-CVF7dWfi.js +1 -0
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/AddWorkspaceDirectory-BqR8LhJq.js +0 -1
- package/dist/chunks/App-DkBMWXkK.js +0 -1
- package/dist/chunks/ApproveApiKey-5xd0lUV7.js +0 -1
- package/dist/chunks/ApproveApiKey-Dmr2VaVA.js +0 -1
- package/dist/chunks/AssistantSessionChooser-C7rigDkQ.js +0 -1
- package/dist/chunks/BackgroundTasksDialog-RtEwbumC.js +0 -2
- package/dist/chunks/BypassPermissionsModeDialog-7s3ULbNF.js +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-Bjv-sERa.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-BTysDIlI.js +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DosNL91g.js +0 -1
- package/dist/chunks/ConsoleOAuthFlow-Cc1yaM-M.js +0 -1
- package/dist/chunks/DesktopHandoff-Cy89ZB_9.js +0 -1
- package/dist/chunks/DevChannelsDialog-ws8prcNK.js +0 -1
- package/dist/chunks/DiffDialog-BhqgxA7o.js +0 -3
- package/dist/chunks/Doctor-BWouB_9X.js +0 -1
- package/dist/chunks/Doctor-Ts5k8hn1.js +0 -3
- package/dist/chunks/ExitFlow-BBoImtT_.js +0 -2
- package/dist/chunks/Feedback-BVbSMBwY.js +0 -2
- package/dist/chunks/Grove-CTQrX7WO.js +0 -1
- package/dist/chunks/Grove-ZMHK4CBZ.js +0 -11
- package/dist/chunks/HybridTransport-B9g074Y1.js +0 -4
- package/dist/chunks/ITermBackend-DaFK8DOH.js +0 -1
- package/dist/chunks/InvalidConfigDialog-BkZkVKB4.js +0 -1
- package/dist/chunks/InvalidSettingsDialog-Lr60eQWj.js +0 -1
- package/dist/chunks/MCPConnectionManager-DmJ6dLOp.js +0 -1
- package/dist/chunks/McpParsingWarnings-CE2pQPXV.js +0 -1
- package/dist/chunks/MessageSelector-BT1FDbwv.js +0 -3
- package/dist/chunks/Messages-DT2gDtrJ.js +0 -11
- package/dist/chunks/Onboarding-DsqnXQel.js +0 -1
- package/dist/chunks/OverageCreditUpsell-UWtCrOmN.js +0 -1
- package/dist/chunks/PluginSettings-OJQz3d5V.js +0 -17
- package/dist/chunks/PromptInputFooterSuggestions-BImBB6Yk.js +0 -1
- package/dist/chunks/PromptInputHelpMenu-CblAb9vk.js +0 -1
- package/dist/chunks/QueryEngine-_re1pGHr.js +0 -1
- package/dist/chunks/REPL-eBTeslsR.js +0 -147
- package/dist/chunks/REPL-wIg0cBqS.js +0 -1
- package/dist/chunks/RemoteCallout-DMQai8_P.js +0 -1
- package/dist/chunks/RemoteSessionManager-DQmsHvj_.js +0 -2
- package/dist/chunks/ResumeConversation-D81hDeTl.js +0 -1
- package/dist/chunks/SSETransport-BbeM6bi9.js +0 -4
- package/dist/chunks/SearchExtraToolsTool-QbJQCWXd.js +0 -1
- package/dist/chunks/SentryErrorBoundary-BQJXHbWh.js +0 -2
- package/dist/chunks/SentryErrorBoundary-Cnw74oVG.js +0 -1
- package/dist/chunks/Settings-DiXc-_IG.js +0 -2
- package/dist/chunks/TeleportProgress-B3oRJlWH.js +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-GPuEipFy.js +0 -1
- package/dist/chunks/TeleportResumeWrapper-CcDuR6o9.js +0 -1
- package/dist/chunks/ThemePicker-BjSRjA_L.js +0 -1
- package/dist/chunks/TmuxBackend-BE3zsPKE.js +0 -9
- package/dist/chunks/TrustDialog-B6Qg0xUr.js +0 -1
- package/dist/chunks/TungstenTool-C5IqKVr0.js +0 -1
- package/dist/chunks/ValidationErrorsList-C5BoLiye.js +0 -2
- package/dist/chunks/WelcomeV2-BJAKZYz1.js +0 -1
- package/dist/chunks/WindowsTerminalBackend-BcwpxU2Q.js +0 -2
- package/dist/chunks/add-dir-OR7-VVcq.js +0 -1
- package/dist/chunks/agentDisplay-CMqTUh0A.js +0 -1
- package/dist/chunks/agents-DRtgUZ6t.js +0 -103
- package/dist/chunks/agents-EolUGDZB.js +0 -2
- package/dist/chunks/ant-Bgl31h7a.js +0 -1
- package/dist/chunks/api-BpQPVgif.js +0 -1
- package/dist/chunks/api-xFvB7WoB.js +0 -1
- package/dist/chunks/asciicast-CJObpRg9.js +0 -1
- package/dist/chunks/asciicast-Dr_Div_R.js +0 -4
- package/dist/chunks/assistant-CENsWvTb.js +0 -1
- package/dist/chunks/assistant-CHawoD04.js +0 -1
- package/dist/chunks/assistant-s7XNIA76.js +0 -1
- package/dist/chunks/auth-DX12yVM8.js +0 -1
- package/dist/chunks/auth-h6VL9BbC.js +0 -1
- package/dist/chunks/autoMode-BDzVqEPm.js +0 -45
- package/dist/chunks/autonomy-CeqOXzJl.js +0 -19
- package/dist/chunks/autonomy-D2YudQnH.js +0 -1
- package/dist/chunks/autonomyPanel-B0OQV4lv.js +0 -1
- package/dist/chunks/backgroundHousekeeping-CvHD981l.js +0 -17
- package/dist/chunks/backgroundHousekeeping-DMkk-QoZ.js +0 -1
- package/dist/chunks/banner-DNLUJFS_.js +0 -2
- package/dist/chunks/bg-D_H-uZDS.js +0 -9
- package/dist/chunks/bg-FtpmvQuT.js +0 -1
- package/dist/chunks/branch-D44HjlJp.js +0 -3
- package/dist/chunks/break-cache-ByJ7U2Ts.js +0 -8
- package/dist/chunks/bridge-4sldfa8u.js +0 -2
- package/dist/chunks/bridgeConfig-BM7iHryd.js +0 -1
- package/dist/chunks/bridgeConfig-CcCNsSBX.js +0 -1
- package/dist/chunks/bridgeEnabled-CYddgTU1.js +0 -1
- package/dist/chunks/bridgeEnabled-DoT2l1Oj.js +0 -1
- package/dist/chunks/bridgeMain-DaO51duk.js +0 -68
- package/dist/chunks/bridgeMain-Dc4-ZK69.js +0 -1
- package/dist/chunks/bridgeMessaging-IlSWKGmC.js +0 -1
- package/dist/chunks/bridgePointer-fFD_tbSk.js +0 -1
- package/dist/chunks/browser-DwnUS505.js +0 -1
- package/dist/chunks/btw-CrdUyRUP.js +0 -1
- package/dist/chunks/buddy-Ci0hdCf9.js +0 -3
- package/dist/chunks/bypassPermissionsKillswitch-BWOlc_sK.js +0 -1
- package/dist/chunks/caches-BHRJHGlc.js +0 -1
- package/dist/chunks/caches-CitduRKp.js +0 -3
- package/dist/chunks/ccrClient-yNKhQYnf.js +0 -1
- package/dist/chunks/changeDetector-B1tCH9Pa.js +0 -1
- package/dist/chunks/channelNotification-D8NPg8I8.js +0 -1
- package/dist/chunks/channelNotification-oE3eipDZ.js +0 -1
- package/dist/chunks/chrome-CwAwCY0V.js +0 -1
- package/dist/chunks/chromeNativeHost-63xqELw-.js +0 -1
- package/dist/chunks/claudeDesktop-CX1AsJie.js +0 -1
- package/dist/chunks/cleanup-C0gyKaOb.js +0 -1
- package/dist/chunks/clear-B5D08sZ0.js +0 -1
- package/dist/chunks/cliLaunch-8aeIk2ts.js +0 -1
- package/dist/chunks/client-un1k_6md.js +0 -1
- package/dist/chunks/color-BtVvrSvq.js +0 -1
- package/dist/chunks/commands--qEK1j9j.js +0 -1
- package/dist/chunks/commitAttribution-AEb-sE-t.js +0 -1
- package/dist/chunks/commitAttribution-HP_CWP0X.js +0 -2
- package/dist/chunks/common-BBRP_KzA.js +0 -1
- package/dist/chunks/common-BD4Q7osK.js +0 -1
- package/dist/chunks/common-C56I-_O3.js +0 -1
- package/dist/chunks/compact-BNhxD2UA.js +0 -3
- package/dist/chunks/companion-BlhNrZiL.js +0 -1
- package/dist/chunks/completionCache-BHSsdkBs.js +0 -1
- package/dist/chunks/completionCache-Daqaxlf3.js +0 -4
- package/dist/chunks/config-9z8716kz.js +0 -1
- package/dist/chunks/config-f8Cx16Z6.js +0 -1
- package/dist/chunks/context-BdOjhAmM.js +0 -1
- package/dist/chunks/context-noninteractive-CnaDbgvf.js +0 -54
- package/dist/chunks/context-noninteractive-DRM7gbFk.js +0 -1
- package/dist/chunks/conversation-B9pq-m4L.js +0 -1
- package/dist/chunks/conversation-DUxXVrGj.js +0 -1
- package/dist/chunks/copy-Cjl0-hg1.js +0 -7
- package/dist/chunks/createSSHSession-CYaHalxc.js +0 -6
- package/dist/chunks/createSession-DoR2K7ay.js +0 -1
- package/dist/chunks/createSession-VlSLvi7J.js +0 -1
- package/dist/chunks/cronJitterConfig-DjSd7nvj.js +0 -6
- package/dist/chunks/crossProjectResume-CDWr5DFl.js +0 -40
- package/dist/chunks/daemon-FAp0WyY6.js +0 -2
- package/dist/chunks/datadog-CahWdK03.js +0 -1
- package/dist/chunks/datadog-DPkKCR8M.js +0 -1
- package/dist/chunks/desktop-y3mzgaWo.js +0 -1
- package/dist/chunks/detached-Brq3-vHi.js +0 -5
- package/dist/chunks/detectRepository-CSN3yxkq.js +0 -1
- package/dist/chunks/detectRepository-CbR0WgtE.js +0 -1
- package/dist/chunks/detection-BPPZCanO.js +0 -1
- package/dist/chunks/detection-DrdKrqbQ.js +0 -1
- package/dist/chunks/diff-hpp0dp6U.js +0 -1
- package/dist/chunks/directoryCompletion-DAc3u1K2.js +0 -1
- package/dist/chunks/doctor-B230p0R_.js +0 -1
- package/dist/chunks/earlyInput-BFcdUMaX.js +0 -2
- package/dist/chunks/earlyInput-vv9abU2L.js +0 -1
- package/dist/chunks/effort-D7i2v6vd.js +0 -9
- package/dist/chunks/entry-Du3gtq9o.js +0 -14
- package/dist/chunks/env-BH-OBzcA.js +0 -1
- package/dist/chunks/envLessBridgeConfig-CKD4eOEe.js +0 -1
- package/dist/chunks/envLessBridgeConfig-DI0ouryy.js +0 -1
- package/dist/chunks/execFileNoThrow-B_aZH_GP.js +0 -1
- package/dist/chunks/executor-BJb5d6mo.js +0 -1
- package/dist/chunks/executor-Dmn3RTuI.js +0 -1561
- package/dist/chunks/exit-fntBGxEC.js +0 -1
- package/dist/chunks/export-Dy9M7FnZ.js +0 -2
- package/dist/chunks/exportRenderer-Ckv4v0ye.js +0 -1
- package/dist/chunks/extra-usage-DLEvlKzs.js +0 -1
- package/dist/chunks/extra-usage-core-3KkeQSve.js +0 -1
- package/dist/chunks/extra-usage-noninteractive-DUezD54f.js +0 -1
- package/dist/chunks/extra-usage-pU11YXHS.js +0 -1
- package/dist/chunks/extraUsage-B-l-oe-7.js +0 -1
- package/dist/chunks/extractMemories-CXarlmZp.js +0 -1
- package/dist/chunks/fast-BzfzSH7K.js +0 -1
- package/dist/chunks/fast-CbLu_WYL.js +0 -1
- package/dist/chunks/featureCheck-p7OeCYzj.js +0 -1
- package/dist/chunks/feedback-DiyZIbov.js +0 -1
- package/dist/chunks/fileStateCache-C7-TxF8G.js +0 -1
- package/dist/chunks/files-DYvAZGxp.js +0 -2
- package/dist/chunks/firstPartyEventLogger-Dig8Mv7_.js +0 -1
- package/dist/chunks/flushGate-Ci3NHOV4.js +0 -1
- package/dist/chunks/gates-CtkQH6jy.js +0 -1
- package/dist/chunks/gates-xscCu8-N.js +0 -1
- package/dist/chunks/gemini-BCuY2aYj.js +0 -1
- package/dist/chunks/generateRecap-DA0SNyFR.js +0 -1
- package/dist/chunks/generateSessionName-BtQ4NGXP.js +0 -1
- package/dist/chunks/genericProcessUtils-D-78JZxz.js +0 -23
- package/dist/chunks/git-BZEgupMC.js +0 -1
- package/dist/chunks/git-DayFjsvj.js +0 -6
- package/dist/chunks/githubRepoPathMapping-C5RkiJWj.js +0 -1
- package/dist/chunks/goal-B6GHfd9J.js +0 -3
- package/dist/chunks/grok-DDM6xYuy.js +0 -1
- package/dist/chunks/growthbook-D-Po5Uxl.js +0 -1
- package/dist/chunks/heapdump-DHlUfpVV.js +0 -5
- package/dist/chunks/help-BulgC9m7.js +0 -1
- package/dist/chunks/hooks-D5AcFnD1.js +0 -1
- package/dist/chunks/hooks-jxIrev-X.js +0 -79
- package/dist/chunks/hostAdapter-BvraKy0o.js +0 -1
- package/dist/chunks/hostGuard-CWijeIyE.js +0 -1
- package/dist/chunks/ide-tx4qMFln.js +0 -2
- package/dist/chunks/inboundAttachments-C93Q7Dvt.js +0 -1
- package/dist/chunks/inboundAttachments-DxcFiX4f.js +0 -1
- package/dist/chunks/initReplBridge-BEldrf6f.js +0 -1
- package/dist/chunks/insights-HEsEDeCQ.js +0 -822
- package/dist/chunks/install-DRsM0bJO.js +0 -1
- package/dist/chunks/install-github-app-BVK5Z95c.js +0 -147
- package/dist/chunks/install-slack-app-DCw3O2J_.js +0 -1
- package/dist/chunks/instrumentation-DJ-R1s8C.js +0 -12
- package/dist/chunks/job-CUz_OGIq.js +0 -2
- package/dist/chunks/jwtUtils-DVyv2jab.js +0 -1
- package/dist/chunks/keybindings-Chr5nGBu.js +0 -2
- package/dist/chunks/lang-C7kJlPIh.js +0 -1
- package/dist/chunks/language-CQXwoDkI.js +0 -1
- package/dist/chunks/language-Lx3WlBN6.js +0 -1
- package/dist/chunks/launchAgentsPlatform-Fsslu42L.js +0 -1
- package/dist/chunks/launchAutofixPr-Cww8uS_5.js +0 -18
- package/dist/chunks/launchLocalMemory-BywmyvSJ.js +0 -3
- package/dist/chunks/launchLocalVault-BU3a5NV7.js +0 -3
- package/dist/chunks/launchMemoryStores-QUCODCJS.js +0 -1
- package/dist/chunks/launchOnboarding-BriZ0oIA.js +0 -8
- package/dist/chunks/launchSchedule-uLm7zt_B.js +0 -1
- package/dist/chunks/launchSkillStore-DMo2bV8X.js +0 -1
- package/dist/chunks/launchTeleport-DgQWSfXM.js +0 -3
- package/dist/chunks/launchVault-DfnBBFne.js +0 -1
- package/dist/chunks/loadAgentsDir-Br5fGLLI.js +0 -4697
- package/dist/chunks/loadAgentsDir-DDYPdQKP.js +0 -1
- package/dist/chunks/loadPluginHooks-C4soqr6g.js +0 -1
- package/dist/chunks/localSearch-CELyiWF6.js +0 -1
- package/dist/chunks/localSearch-DhZMcy5t.js +0 -1
- package/dist/chunks/log-DS97_rIr.js +0 -1
- package/dist/chunks/login-CvvIpkpq.js +0 -1
- package/dist/chunks/login-DjgITOAw.js +0 -1
- package/dist/chunks/logoV2Utils-BN_HrHSc.js +0 -1
- package/dist/chunks/logout-DOFJpZEJ.js +0 -1
- package/dist/chunks/magicDocs-2Zr7bYY_.js +0 -57
- package/dist/chunks/main-BafHJuKH.js +0 -31
- package/dist/chunks/main-D61CvHRy.js +0 -1312
- package/dist/chunks/mappers-BCiceNt3.js +0 -1
- package/dist/chunks/mcp-BV4m1Gbl.js +0 -2
- package/dist/chunks/mcp-CrAgAK9u.js +0 -1
- package/dist/chunks/mcp-DK4m73gO.js +0 -6
- package/dist/chunks/mcpServer-7zyXl9Wg.js +0 -1
- package/dist/chunks/mcpServer-sa9Z183j.js +0 -1
- package/dist/chunks/memoize-CPexXTP7.js +0 -1
- package/dist/chunks/memory-BrJPVgxn.js +0 -1
- package/dist/chunks/mobile-Cydobb55.js +0 -2
- package/dist/chunks/mode-Cr-NTlRa.js +0 -2
- package/dist/chunks/model-CCjuMV6k.js +0 -1
- package/dist/chunks/model-aJS_plgM.js +0 -1
- package/dist/chunks/onChangeAppState-C9EvI3EH.js +0 -1
- package/dist/chunks/openai-Cvb_-1A-.js +0 -10
- package/dist/chunks/overageCreditGrant-cGQilawd.js +0 -1
- package/dist/chunks/panel-ByW1omJn.js +0 -1
- package/dist/chunks/panel-DO_faHV-.js +0 -1
- package/dist/chunks/panelCall-DqZuxAf0.js +0 -1
- package/dist/chunks/parser-DbKSpFRq.js +0 -1
- package/dist/chunks/passes-DsrceO14.js +0 -1
- package/dist/chunks/path-nCzt96pE.js +0 -1
- package/dist/chunks/paths-DfGsIjPm.js +0 -39
- package/dist/chunks/permissions-CjPIu4IE.js +0 -3
- package/dist/chunks/permissions-Ps_D01ZB.js +0 -1
- package/dist/chunks/pipeTransport-C5u1K0wu.js +0 -1
- package/dist/chunks/plan-YjMAcn6g.js +0 -1
- package/dist/chunks/platform-DYZVoA9J.js +0 -2
- package/dist/chunks/plugin-Oux5bBQj.js +0 -1
- package/dist/chunks/pluginAutoupdate-Dl9U-fbk.js +0 -1
- package/dist/chunks/pluginBlocklist-BzI5DNeN.js +0 -1
- package/dist/chunks/pluginCliCommands-CExAcsaR.js +0 -1
- package/dist/chunks/pluginFlagging-BeqrbhgG.js +0 -1
- package/dist/chunks/pluginOperations-s0FQGOBm.js +0 -2
- package/dist/chunks/pluginStartupCheck-BVag9B-T.js +0 -1
- package/dist/chunks/pluginStartupCheck-BuorUEEf.js +0 -1
- package/dist/chunks/plugins-DTQHVJtY.js +0 -4
- package/dist/chunks/policyLimits-zoyF_6O4.js +0 -1
- package/dist/chunks/pollConfig-C19GiX7i.js +0 -1
- package/dist/chunks/poller-DADqVTWi.js +0 -1
- package/dist/chunks/poor-Bx5vvamq.js +0 -1
- package/dist/chunks/poorMode-BCoeB5zB.js +0 -1
- package/dist/chunks/poorMode-CTd_csCl.js +0 -1
- package/dist/chunks/print-UXl3rG8y.js +0 -39
- package/dist/chunks/privacy-settings-e43D9a4o.js +0 -1
- package/dist/chunks/processBashCommand-CvR9-gf8.js +0 -1
- package/dist/chunks/processSlashCommand-CB3wyAX7.js +0 -6
- package/dist/chunks/projectContext-D3_u80TY.js +0 -1
- package/dist/chunks/prompt-53lRY98R.js +0 -1
- package/dist/chunks/prompt-B8M-HLIS.js +0 -227
- package/dist/chunks/prompt-CooZNM1u.js +0 -1
- package/dist/chunks/promptEditor-CHiopfD7.js +0 -4
- package/dist/chunks/protocolHandler-DjivYn8H.js +0 -13
- package/dist/chunks/rate-limit-options-B-vndk5W.js +0 -1
- package/dist/chunks/rcDebugLog-BoroyfjB.js +0 -11
- package/dist/chunks/referral-DOqhciQu.js +0 -1
- package/dist/chunks/refresh-C8uLznwm.js +0 -1
- package/dist/chunks/registerProtocol-4lQ7O4Cc.js +0 -36
- package/dist/chunks/registry-q6v98JYd.js +0 -1
- package/dist/chunks/release-notes-C7JHshX3.js +0 -4
- package/dist/chunks/releaseNotes-CXY-xAja.js +0 -2
- package/dist/chunks/reload-plugins-DLS5lQcc.js +0 -1
- package/dist/chunks/remote-env-DhHea8yK.js +0 -1
- package/dist/chunks/remoteBridgeCore-BhOLhQIA.js +0 -1
- package/dist/chunks/remoteControlServer-CI0F83pg.js +0 -3
- package/dist/chunks/rename-DiKWWCzB.js +0 -1
- package/dist/chunks/renderOptions-DKe32LfM.js +0 -1
- package/dist/chunks/resume-DA4ToJFW.js +0 -2
- package/dist/chunks/runtimeObserver-BfVC8KK9.js +0 -1
- package/dist/chunks/runtimeObserver-DetZ5Tek.js +0 -10
- package/dist/chunks/sandbox-adapter-wh4cKN45.js +0 -1
- package/dist/chunks/sandbox-toggle-D8MgV0DT.js +0 -1
- package/dist/chunks/searchExtraTools-DbPpcAPw.js +0 -1
- package/dist/chunks/sentry-C3sL9nhF.js +0 -13
- package/dist/chunks/session-Bd-4QCqc.js +0 -2
- package/dist/chunks/sessionDiscovery-D_KPF86E.js +0 -1
- package/dist/chunks/sessionFileAccessHooks-COne5L2E.js +0 -1
- package/dist/chunks/sessionMemory-0Jqo1_MV.js +0 -1
- package/dist/chunks/sessionMemory-BDt_8bNB.js +0 -1
- package/dist/chunks/sessionMemoryUtils-BFIJ1nqF.js +0 -1
- package/dist/chunks/sessionObserver-CEky1SLb.js +0 -1
- package/dist/chunks/sessionObserver-CQxIKV8D.js +0 -20
- package/dist/chunks/sessionStorage-D1XhqZyW.js +0 -1
- package/dist/chunks/sessionStoragePortable-DJZ_6cL8.js +0 -3
- package/dist/chunks/sessionTitle-CB0ZEkS_.js +0 -14
- package/dist/chunks/sessionTracing-BIKXLTJZ.js +0 -11
- package/dist/chunks/settingsSync-pI3L3CeR.js +0 -1
- package/dist/chunks/setup-BSi50fkU.js +0 -1
- package/dist/chunks/setup-DjsmjRKQ.js +0 -2
- package/dist/chunks/setup-Dq0_SRA1.js +0 -9
- package/dist/chunks/shadowedRuleDetection-DvAjOOPL.js +0 -1
- package/dist/chunks/shellQuote-D8XPeqkc.js +0 -1
- package/dist/chunks/sideQuestion-BrTA8ooG.js +0 -20
- package/dist/chunks/sink-CqWxcRl9.js +0 -1
- package/dist/chunks/sink-Dkat5kH9.js +0 -1
- package/dist/chunks/sinks--frMI4-5.js +0 -2
- package/dist/chunks/sinks-CvPAVcMY.js +0 -1
- package/dist/chunks/skill-learning-2LV0yuwF.js +0 -5
- package/dist/chunks/skillChangeDetector-B5CGPl7e.js +0 -1
- package/dist/chunks/skillGapStore-Dc29T-OG.js +0 -1
- package/dist/chunks/skillGapStore-KzRf6Ezr.js +0 -5
- package/dist/chunks/skillGenerator-BdOHsgc4.js +0 -8
- package/dist/chunks/skillLearning-CdcVIG14.js +0 -1
- package/dist/chunks/skillLearning-DXWMxSA2.js +0 -1
- package/dist/chunks/skillPanel-zMY8o-86.js +0 -28
- package/dist/chunks/skillSearchPanel-l8aolUP8.js +0 -21
- package/dist/chunks/skills-BeMWJPup.js +0 -1
- package/dist/chunks/sprites-qel_EgTP.js +0 -1
- package/dist/chunks/src-BIPP3_mo.js +0 -26
- package/dist/chunks/src-DJXKJavk.js +0 -1
- package/dist/chunks/startupProfiler-CnDpob1v.js +0 -3
- package/dist/chunks/startupProfiler-TrMfE6Q4.js +0 -1
- package/dist/chunks/stats-CEBfahqM.js +0 -1
- package/dist/chunks/status-C9KXyfDk.js +0 -1
- package/dist/chunks/statusNoticeHelpers-CxoN9oDh.js +0 -1
- package/dist/chunks/stdio-BEEzuxaZ.js +0 -1
- package/dist/chunks/stickers-eHrGA1W5.js +0 -1
- package/dist/chunks/subprocessEnv-CggQWZCx.js +0 -1
- package/dist/chunks/systemPromptSections-DB93ZNWP.js +0 -1
- package/dist/chunks/tag-Dvl7Us9y.js +0 -11
- package/dist/chunks/tasks-BhiwUF0n.js +0 -1
- package/dist/chunks/teamHelpers-COQazluD.js +0 -1
- package/dist/chunks/teamHelpers-Mgfrv-Jf.js +0 -1
- package/dist/chunks/teammateModeSnapshot-8EWjlA-s.js +0 -1
- package/dist/chunks/teammateModeSnapshot-BV-P8s5r.js +0 -1
- package/dist/chunks/teleport-U5Zgqw3H.js +0 -1
- package/dist/chunks/templateJobs-C3idypN_.js +0 -12
- package/dist/chunks/terminalSetup-CmAEgt-5.js +0 -33
- package/dist/chunks/terminalSetup-mvAN4no7.js +0 -1
- package/dist/chunks/theme-BD2H4vJi.js +0 -1
- package/dist/chunks/thinkback-BOByXYp2.js +0 -1
- package/dist/chunks/thinkback-Dzu2mnNF.js +0 -1
- package/dist/chunks/thinkback-play-BX1K2UMY.js +0 -1
- package/dist/chunks/tmux-DruHFjDy.js +0 -1
- package/dist/chunks/toolEventObserver-B6cLV_dK.js +0 -1
- package/dist/chunks/toolEventObserver-i6it3p2_.js +0 -1
- package/dist/chunks/toolPool--2gNFbrz.js +0 -1
- package/dist/chunks/toolPool-dNV2JxUI.js +0 -1
- package/dist/chunks/trustedDevice-DY8OosTr.js +0 -1
- package/dist/chunks/trustedDevice-zya_Ml1N.js +0 -1
- package/dist/chunks/tui-KoYD82tT.js +0 -6
- package/dist/chunks/types-CQ1wrnQ0.js +0 -1
- package/dist/chunks/types-D5R26wwH.js +0 -17
- package/dist/chunks/udsClient-RkYuzeZC.js +0 -1
- package/dist/chunks/ultrareviewCommand-CCkKby4J.js +0 -3
- package/dist/chunks/undercover-CIutVLEO.js +0 -1
- package/dist/chunks/undercover-D9O2McNG.js +0 -31
- package/dist/chunks/up-BPM85EYl.js +0 -12
- package/dist/chunks/updateCCB-Bmn3Y63Y.js +0 -11
- package/dist/chunks/upgrade-D3rVOeHO.js +0 -1
- package/dist/chunks/upgrade-Dq3l14ZY.js +0 -1
- package/dist/chunks/upload-1PmElPfW.js +0 -1
- package/dist/chunks/upstreamproxy-BBTSJnad.js +0 -11
- package/dist/chunks/usage-B5G8FOZ3.js +0 -1
- package/dist/chunks/usage-VtTu7beE.js +0 -1
- package/dist/chunks/useMainLoopModel-CaQLIr1V.js +0 -1
- package/dist/chunks/useManagePlugins-BvoeOnqq.js +0 -1
- package/dist/chunks/useMergedTools-C133BfRp.js +0 -1
- package/dist/chunks/useSearchInput-CROB7AbC.js +0 -1
- package/dist/chunks/useSettingsErrors-DRxtFXoe.js +0 -1
- package/dist/chunks/useVoice-BQ9aSFJe.js +0 -1
- package/dist/chunks/util-BZnJgF79.js +0 -1
- package/dist/chunks/utils-4gsxQpga.js +0 -1
- package/dist/chunks/validatePlugin-DlrnBhPA.js +0 -1
- package/dist/chunks/vim-BXQCLoFJ.js +0 -1
- package/dist/chunks/voice-CeRmLRHT.js +0 -2
- package/dist/chunks/voice-QHyDff3f.js +0 -8
- package/dist/chunks/voiceModeEnabled-Bq_rttkL.js +0 -1
- package/dist/chunks/voiceModeEnabled-CLAVCVLW.js +0 -1
- package/dist/chunks/voiceStreamSTT-BDKenO5F.js +0 -1
- package/dist/chunks/voiceStreamSTT-CL52x8wZ.js +0 -1
- package/dist/chunks/windowsPaths-43st5EQF.js +0 -1
- package/dist/chunks/windowsPaths-DerzGPcz.js +0 -2
- package/dist/chunks/workerRegistry-BUD3lBk_.js +0 -1
- package/dist/chunks/worktree-C0f9Ke-R.js +0 -1
- package/dist/chunks/worktreeModeEnabled-THQb19xR.js +0 -1
- package/dist/chunks/xml-DvVQHZ1N.js +0 -1
- /package/dist/chunks/{Dialog-DYFGqyDs.js → Dialog-91X6ZGg9.js} +0 -0
- /package/dist/chunks/{InProcessTransport-B0mmAoxw.js → InProcessTransport-B9II3BiO.js} +0 -0
- /package/dist/chunks/{ListItem-OFARanN7.js → ListItem-DCQhApdJ.js} +0 -0
- /package/dist/chunks/{PermissionDialog-5MlJf7ew.js → PermissionDialog-_WQPRYHQ.js} +0 -0
- /package/dist/chunks/{PressEnterToContinue-BdA9zDGs.js → PressEnterToContinue-BJ58eCFC.js} +0 -0
- /package/dist/chunks/{SearchBox-DfOmUoaI.js → SearchBox-CkO4rQ-9.js} +0 -0
- /package/dist/chunks/{TungstenTool-V-Bwqlx3.js → TungstenTool-CnAF4y0E.js} +0 -0
- /package/dist/chunks/{attributionHooks-DZJjA8p9.js → attributionHooks-VGSpz4mk.js} +0 -0
- /package/dist/chunks/{attributionTrailer-CZY9XTcr.js → attributionTrailer-C8uqiLIb.js} +0 -0
- /package/dist/chunks/{autoModeDenials-CGAtAGGf.js → autoModeDenials-DlO5g6E9.js} +0 -0
- /package/dist/chunks/{bedrockClient-DZgaJTHp.js → bedrockClient-BUmO2U-X.js} +0 -0
- /package/dist/chunks/{capacityWake-BXlUpptF.js → capacityWake-DtmDHwEt.js} +0 -0
- /package/dist/chunks/{ccshareResume-CZggHNOf.js → ccshareResume-DKwcd0Vc.js} +0 -0
- /package/dist/chunks/{computerUseLock-BoEK9xYv.js → computerUseLock-Diig5B8p.js} +0 -0
- /package/dist/chunks/{connectHeadless-KNT0Sg7Z.js → connectHeadless-ByewVfOb.js} +0 -0
- /package/dist/chunks/{constants-41VpZw2G.js → constants-BljlAJOX.js} +0 -0
- /package/dist/chunks/{controlMessageCompat-BJhFiS7u.js → controlMessageCompat-Ds-CF-sM.js} +0 -0
- /package/dist/chunks/{cron-DiW7eIPP.js → cron-g_P3I5uT.js} +0 -0
- /package/dist/chunks/{dangerousBackend-ByOAEFld.js → dangerousBackend-Dkjtndh1.js} +0 -0
- /package/dist/chunks/{debugUtils-CiEnbhiz.js → debugUtils-l8nsUZ6R.js} +0 -0
- /package/dist/chunks/{distRoot-CcxmnzqQ.js → distRoot-BNg_iO5-.js} +0 -0
- /package/dist/chunks/{escHotkey-DfdC44i7.js → escHotkey-D8WgbSyj.js} +0 -0
- /package/dist/chunks/{esm-C-1qL9Mn.js → esm-vlR7mK5b.js} +0 -0
- /package/dist/chunks/{eventLoopStallDetector-l83_98VR.js → eventLoopStallDetector-bYy0fesH.js} +0 -0
- /package/dist/chunks/{exit-_obETqBv.js → exit-DOBLl8jN.js} +0 -0
- /package/dist/chunks/{featureCheck-Cm0YNDXO.js → featureCheck-j7P30mry.js} +0 -0
- /package/dist/chunks/{fpsMetrics-DOI_SIeY.js → fpsMetrics-DKWp7vng.js} +0 -0
- /package/dist/chunks/{fuse-Bp7rmZ5x.js → fuse-D3B-UE5Y.js} +0 -0
- /package/dist/chunks/{hash-BRmOQc3c.js → hash-CaUkS-30.js} +0 -0
- /package/dist/chunks/{index.min-BJnb9GQI.js → index.min-BNgJ2wVD.js} +0 -0
- /package/dist/chunks/{instinctParser-Bxhe2LOF.js → instinctParser-DOtj1Kni.js} +0 -0
- /package/dist/chunks/{intl-Pse97ORk.js → intl-CLeE9DsD.js} +0 -0
- /package/dist/chunks/{launchCommand-Du91jxMC.js → launchCommand-9eYsPG7W.js} +0 -0
- /package/dist/chunks/{lazySchema-2sOku3cX.js → lazySchema-B0QShMaQ.js} +0 -0
- /package/dist/chunks/{lib-B4Q0Nrpb.js → lib-Cf16LgKj.js} +0 -0
- /package/dist/chunks/{lockfile-CeCEBLtN.js → lockfile-C3JsqLpb.js} +0 -0
- /package/dist/chunks/{modalContext-CmSKRyea.js → modalContext-c5Yqx_CQ.js} +0 -0
- /package/dist/chunks/{normalization-Cox8C0dP.js → normalization-BLfP0Kqt.js} +0 -0
- /package/dist/chunks/{observationStore-BaPq7CKI.js → observationStore-rLlDwRtG.js} +0 -0
- /package/dist/chunks/{openaiShared-Crt0cZLO.js → openaiShared-C-AuktRP.js} +0 -0
- /package/dist/chunks/{output-style-BkOnFmfe.js → output-style-B64-Zum6.js} +0 -0
- /package/dist/chunks/{parseConnectUrl-BFNiff4c.js → parseConnectUrl-DL390ePs.js} +0 -0
- /package/dist/chunks/{parser-BXWr_mLL.js → parser-aIWfAYnt.js} +0 -0
- /package/dist/chunks/{permissions-DXLfdE7b.js → permissions-BsVJvaEe.js} +0 -0
- /package/dist/chunks/{postCommitAttribution-CA9Z2sqn.js → postCommitAttribution-D8MoHFoz.js} +0 -0
- /package/dist/chunks/{projectContext-CwJlxP2Y.js → projectContext-Dn7umMp6.js} +0 -0
- /package/dist/chunks/{prompt-4tea6NJQ.js → prompt-IqfIbvg9.js} +0 -0
- /package/dist/chunks/{proxy-nPT6a6QY.js → proxy-CF7ZDxaW.js} +0 -0
- /package/dist/chunks/{rewind-DTk4TFYB.js → rewind-Djt1zU_3.js} +0 -0
- /package/dist/chunks/{rollback-DbSpxmJE.js → rollback-CtS4yEQx.js} +0 -0
- /package/dist/chunks/{sanitization-DD414_3t.js → sanitization-Ds6zRQyx.js} +0 -0
- /package/dist/chunks/{sdkHeapDumpMonitor-fNRF2fbK.js → sdkHeapDumpMonitor-DLMMNeqo.js} +0 -0
- /package/dist/chunks/{semver-Tw0AFar5.js → semver-Di5OaTd5.js} +0 -0
- /package/dist/chunks/{server-DTd90dmm.js → server-DONKdvGc.js} +0 -0
- /package/dist/chunks/{serverBanner-B7UaaCCl.js → serverBanner-DIyjgIM-.js} +0 -0
- /package/dist/chunks/{serverLog-DRvGpDtt.js → serverLog-D1N5yx8A.js} +0 -0
- /package/dist/chunks/{sessionDataUploader-BDsz_1Uy.js → sessionDataUploader-CsNePsOb.js} +0 -0
- /package/dist/chunks/{sessionManager-Bh-Z-YXy.js → sessionManager-BOmgJd1l.js} +0 -0
- /package/dist/chunks/{slashCommandParsing-Cari0pNg.js → slashCommandParsing-BfanVchF.js} +0 -0
- /package/dist/chunks/{sleep-8Eb9j_Ly.js → sleep-C6koP5Ka.js} +0 -0
- /package/dist/chunks/{src-x7u_sB6m.js → src-BWpNn6Yz.js} +0 -0
- /package/dist/chunks/{src-BRAdBA8A.js → src-C-Ho8kYe.js} +0 -0
- /package/dist/chunks/{src-BlLavFUS.js → src-Cu58IYYb.js} +0 -0
- /package/dist/chunks/{src-CI_jaaBj.js → src-d2UJ68oX.js} +0 -0
- /package/dist/chunks/{state-Ce1HlR-H.js → state-BiRT9RAF.js} +0 -0
- /package/dist/chunks/{staticRender-Br64h1E1.js → staticRender-C5v46np_.js} +0 -0
- /package/dist/chunks/{stdio-D4cT86R0.js → stdio-Oy68T2eE.js} +0 -0
- /package/dist/chunks/{store-DhI7Lcan.js → store-DYC8zeL1.js} +0 -0
- /package/dist/chunks/{subprocessEnv-DV6q6o6w.js → subprocessEnv-DIeTJ-xE.js} +0 -0
- /package/dist/chunks/{systemPromptSections-BcN_XBTx.js → systemPromptSections-DY7epA2Y.js} +0 -0
- /package/dist/chunks/{systemTheme-dDbitcxB.js → systemTheme-eRWGHYSL.js} +0 -0
- /package/dist/chunks/{teammate-DMYOtLTK.js → teammate-CbskW5G9.js} +0 -0
- /package/dist/chunks/{types-RJTEOuIt.js → types-C0nqJFkV.js} +0 -0
- /package/dist/chunks/{useKeybinding-FsOnjW6T.js → useKeybinding-DPOUuymz.js} +0 -0
- /package/dist/chunks/{workSecret-qRMNrQy2.js → workSecret-DJu7k30X.js} +0 -0
- /package/dist/chunks/{worktreeModeEnabled-Db6b_Iy_.js → worktreeModeEnabled-KtHEqeFA.js} +0 -0
- /package/dist/chunks/{xdg-CBxMmQux.js → xdg-BFD9ydDV.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-DR8-3Aex.js";import{Rn as t,b as n,t as r,x as i}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{cn as o,on as s}from"./paths-Ci1iwL5Y.js";import{n as c,r as l}from"./analytics-DqMQntaB.js";import{Iy as u,Ly as d,cC as f,lC as p}from"./loadAgentsDir-C_wFhytF.js";import{t as m}from"./WelcomeV2-BijS6i2Z.js";import{t as h}from"./useManagePlugins-B4kcqcyY.js";import{n as g,t as _}from"./MCPConnectionManager-D5a9ysw2.js";import{n as v}from"./onChangeAppState-BkRihYau.js";import{cwd as y}from"process";var b=e(t(),1);r(),d(),c(),g(),p(),s();var x=a();async function S(e){l(`tengu_setup_token_command`,{});let t=!o(),{ConsoleOAuthFlow:r}=await import(`./ConsoleOAuthFlow-Dyv4mI_o.js`);await new Promise(a=>{e.render((0,x.jsx)(f,{onChangeAppState:v,children:(0,x.jsx)(u,{children:(0,x.jsxs)(i,{flexDirection:`column`,gap:1,children:[(0,x.jsx)(m,{}),t&&(0,x.jsxs)(i,{flexDirection:`column`,children:[(0,x.jsx)(n,{color:`warning`,children:`Warning: You already have authentication configured via environment variable or API key helper.`}),(0,x.jsx)(n,{color:`warning`,children:`The setup-token command will create a new OAuth token which you can use instead.`})]}),(0,x.jsx)(r,{onDone:()=>{a()},mode:`setup-token`,startingMessage:`This will guide you through long-lived (1-year) auth token setup for your Claude account. Claude subscription required.`})]})})}))}),e.unmount(),process.exit(0)}var C=b.lazy(()=>import(`./Doctor-CRrE5Sf4.js`).then(e=>({default:e.Doctor})));function w({onDone:e}){return h(),(0,x.jsx)(b.Suspense,{fallback:null,children:(0,x.jsx)(C,{onDone:e})})}async function T(e){l(`tengu_doctor_command`,{}),await new Promise(t=>{e.render((0,x.jsx)(f,{children:(0,x.jsx)(u,{children:(0,x.jsx)(_,{dynamicMcpConfig:void 0,isStrictMcpConfig:!1,children:(0,x.jsx)(w,{onDone:()=>{t()}})})})}))}),e.unmount(),process.exit(0)}async function E(e,t){let{setup:n}=await import(`./setup-CDxkPTCq.js`);await n(y(),`default`,!1,!1,void 0,!1);let{install:r}=await import(`./install-CuVHbwyW.js`);await new Promise(n=>{let i=[];e&&i.push(e),t.force&&i.push(`--force`),r.call(e=>{n(),process.exit(+!!e.includes(`failed`))},{},i)})}export{T as doctorHandler,E as installHandler,S as setupTokenHandler};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fp as e,jp as t}from"./loadAgentsDir-C_wFhytF.js";e();export{t as clearWebFetchCache};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{Tt as r}from"./schemas-BGAvj1T4.js";import{t as i}from"./v4-f1i_CNUT.js";import{as as a,cs as o,ls as s,ss as c,us as l}from"./paths-Ci1iwL5Y.js";import{B as u,D as d,E as f,G as p,O as ee,U as m,_ as h,h as g,l as _,p as v,z as y}from"./debug-otxXY3j-.js";import{o as te,s as b}from"./log-DSV4Ht5l.js";import{AA as x,QA as S,XA as C,ZA as w,dj as T,fj as ne,hj as re,kA as E,mj as ie}from"./loadAgentsDir-C_wFhytF.js";import{homedir as ae}from"os";import*as D from"path";import{join as oe,resolve as se}from"path";import{randomBytes as O}from"crypto";import{readFile as k,readdir as A,rename as j,stat as M,unlink as N,writeFile as P}from"fs/promises";function F(){return oe(E(),H)}async function I(){let e=F();try{let t=d(await k(e,{encoding:`utf-8`}));if(typeof t!=`object`||!t||!(`version`in t)||!(`fetchedAt`in t)||!(`counts`in t))return v(`Install counts cache has invalid structure`),null;let n=t;if(n.version!==V)return v(`Install counts cache version mismatch (got ${n.version}, expected ${V})`),null;if(typeof n.fetchedAt!=`string`||!Array.isArray(n.counts))return v(`Install counts cache has invalid structure`),null;let r=new Date(n.fetchedAt).getTime();return Number.isNaN(r)?(v(`Install counts cache has invalid fetchedAt timestamp`),null):n.counts.every(e=>typeof e==`object`&&!!e&&typeof e.plugin==`string`&&typeof e.unique_installs==`number`)?Date.now()-r>W?(v(`Install counts cache is stale (>24h old)`),null):{version:n.version,fetchedAt:n.fetchedAt,counts:n.counts}:(v(`Install counts cache has malformed entries`),null)}catch(e){return u(e)!==`ENOENT`&&v(`Failed to load install counts cache: ${y(e)}`),null}}async function L(e){let t=F(),n=`${t}.${O(8).toString(`hex`)}.tmp`;try{let r=E();await g().mkdir(r),await P(n,ee(e,null,2),{encoding:`utf-8`,mode:384}),await j(n,t),v(`Install counts cache saved successfully`)}catch(e){b(e);try{await N(n)}catch{}}}async function R(){v(`Fetching install counts from ${U}`);let e=performance.now();try{let n=await t.get(U,{timeout:1e4});if(!n.data?.plugins||!Array.isArray(n.data.plugins))throw Error(`Invalid response format from install counts API`);return S(`install_counts`,U,`success`,performance.now()-e),n.data.plugins}catch(t){throw S(`install_counts`,U,`failure`,performance.now()-e,C(t)),t}}async function z(){let e=await I();if(e){v(`Using cached install counts`),S(`install_counts`,U,`cache_hit`,0);let t=new Map;for(let n of e.counts)t.set(n.plugin,n.unique_installs);return t}try{let e=await R();await L({version:V,fetchedAt:new Date().toISOString(),counts:e});let t=new Map;for(let n of e)t.set(n.plugin,n.unique_installs);return t}catch(e){return b(e),v(`Failed to fetch install counts: ${y(e)}`),null}}function B(e){if(e<1e3)return String(e);if(e<1e6){let t=(e/1e3).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}K`:`${t}K`}let t=(e/1e6).toFixed(1);return t.endsWith(`.0`)?`${t.slice(0,-2)}M`:`${t}M`}var V,H,U,W,G=e((()=>{n(),_(),m(),h(),te(),f(),w(),x(),V=1,H=`install-counts-cache.json`,U=`https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json`,W=1440*60*1e3}));async function K(e){let t=e.trim(),n=g(),r=t.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(r?.[1]){let e=r[1],t=r[3];return t?{source:`git`,url:e,ref:t}:{source:`git`,url:e}}if(t.startsWith(`http://`)||t.startsWith(`https://`)){let e=t.match(/^([^#]+)(#(.+))?$/),n=e?.[1]||t,r=e?.[3];if(n.endsWith(`.git`)||n.includes(`/_git/`))return r?{source:`git`,url:n,ref:r}:{source:`git`,url:n};let i;try{i=new URL(n)}catch{return{source:`url`,url:n}}if((i.hostname===`github.com`||i.hostname===`www.github.com`)&&i.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let e=n.endsWith(`.git`)?n:`${n}.git`;return r?{source:`git`,url:e,ref:r}:{source:`git`,url:e}}return{source:`url`,url:n}}let i=process.platform===`win32`&&(t.startsWith(`.\\`)||t.startsWith(`..\\`)||/^[a-zA-Z]:[/\\]/.test(t));if(t.startsWith(`./`)||t.startsWith(`../`)||t.startsWith(`/`)||t.startsWith(`~`)||i){let e=se(t.startsWith(`~`)?t.replace(/^~/,ae()):t),r;try{r=await n.stat(e)}catch(t){let n=u(t);return{error:n===`ENOENT`?`Path does not exist: ${e}`:`Cannot access path: ${e} (${n??t})`}}return r.isFile()?e.endsWith(`.json`)?{source:`file`,path:e}:{error:`File path must point to a .json file (marketplace.json), but got: ${e}`}:r.isDirectory()?{source:`directory`,path:e}:{error:`Path is neither a file nor a directory: ${e}`}}if(t.includes(`/`)&&!t.startsWith(`@`)){if(t.includes(`:`))return null;let e=t.match(/^([^#@]+)(?:[#@](.+))?$/),n=e?.[1]||t,r=e?.[2];return r?{source:`github`,repo:n,ref:r}:{source:`github`,repo:n}}return null}var ce=e((()=>{m(),h()}));function le(e){let t=D.basename(e),n=D.basename(D.dirname(e));return t===`plugin.json`?`plugin`:t===`marketplace.json`?`marketplace`:n===`.claude-plugin`?`plugin`:`unknown`}function q(e){return e.issues.map(e=>({path:e.path.join(`.`)||`root`,message:e.message,code:e.code}))}function J(e,t,n,r){e.includes(`..`)&&n.push({path:t,message:r?`Path contains "..": ${e}. ${r}`:`Path contains ".." which could be a path traversal attempt: ${e}`})}function ue(e){let t=e.replace(/^(\.\.\/)+/,``);return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${t===e?`./plugins/my-plugin`:`./${t}`}" instead of "${e}".`}async function Y(e){let t=[],n=[],r=D.resolve(e),i;try{i=await k(r,{encoding:`utf-8`})}catch(e){let t=u(e),n;return n=t===`ENOENT`?`File not found: ${r}`:t===`EISDIR`?`Path is not a file: ${r}`:`Failed to read file: ${y(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:r,fileType:`plugin`}}let a;try{a=d(i)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${y(e)}`}],warnings:[],filePath:r,fileType:`plugin`}}if(a&&typeof a==`object`){let e=a;e.commands&&(Array.isArray(e.commands)?e.commands:[e.commands]).forEach((e,n)=>{typeof e==`string`&&J(e,`commands[${n}]`,t)}),e.agents&&(Array.isArray(e.agents)?e.agents:[e.agents]).forEach((e,n)=>{typeof e==`string`&&J(e,`agents[${n}]`,t)}),e.skills&&(Array.isArray(e.skills)?e.skills:[e.skills]).forEach((e,n)=>{typeof e==`string`&&J(e,`skills[${n}]`,t)})}let o=a;if(typeof a==`object`&&a){let e=a,t=Object.keys(e).filter(e=>$.has(e));if(t.length>0){let r={...e};for(let e of t)delete r[e],n.push({path:e,message:`Field '${e}' belongs in the marketplace entry (marketplace.json), not plugin.json. It's harmless here but unused — Claude Code ignores it at load time.`});o=r}}let s=c().strict().safeParse(o);if(s.success||t.push(...q(s.error)),s.success){let e=s.data;/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e.name)||n.push({path:`name`,message:`Plugin name "${e.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`}),e.version||n.push({path:`version`,message:`No version specified. Consider adding a version following semver (e.g., "1.0.0")`}),e.description||n.push({path:`description`,message:`No description provided. Adding a description helps users understand what your plugin does`}),e.author||n.push({path:`author`,message:`No author information provided. Consider adding author details for plugin attribution`})}return{success:t.length===0,errors:t,warnings:n,filePath:r,fileType:`plugin`}}async function X(e){let t=[],n=[],i=D.resolve(e),a;try{a=await k(i,{encoding:`utf-8`})}catch(e){let t=u(e),n;return n=t===`ENOENT`?`File not found: ${i}`:t===`EISDIR`?`Path is not a file: ${i}`:`Failed to read file: ${y(e)}`,{success:!1,errors:[{path:`file`,message:n,code:t}],warnings:[],filePath:i,fileType:`marketplace`}}let c;try{c=d(a)}catch(e){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${y(e)}`}],warnings:[],filePath:i,fileType:`marketplace`}}if(c&&typeof c==`object`){let e=c;Array.isArray(e.plugins)&&e.plugins.forEach((e,n)=>{if(e&&typeof e==`object`&&`source`in e){let r=e.source;typeof r==`string`&&J(r,`plugins[${n}].source`,t,ue(r)),r&&typeof r==`object`&&`path`in r&&typeof r.path==`string`&&J(r.path,`plugins[${n}].source.path`,t)}})}let l=s().extend({plugins:r(o().strict())}).strict().safeParse(c);if(l.success||t.push(...q(l.error)),l.success){let e=l.data;if((!e.plugins||e.plugins.length===0)&&n.push({path:`plugins`,message:`Marketplace has no plugins defined`}),e.plugins){e.plugins.forEach((n,r)=>{e.plugins.filter(e=>e.name===n.name).length>1&&t.push({path:`plugins[${r}].name`,message:`Duplicate plugin name "${n.name}" found in marketplace`})});let r=D.dirname(i),a=D.basename(r)===`.claude-plugin`?D.dirname(r):r;for(let[t,r]of e.plugins.entries()){if(!r.version||typeof r.source!=`string`||!r.source.startsWith(`./`))continue;let e=D.join(a,r.source,`.claude-plugin`,`plugin.json`),i;try{let t=d(await k(e,{encoding:`utf-8`}));typeof t.version==`string`&&(i=t.version)}catch{continue}i&&i!==r.version&&n.push({path:`plugins[${t}].version`,message:`Entry declares version "${r.version}" but ${r.source}/.claude-plugin/plugin.json says "${i}". At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. Update this entry to "${i}" to match.`})}}e.metadata?.description||n.push({path:`metadata.description`,message:`No marketplace description provided. Adding a description helps users understand what this marketplace offers`})}return{success:t.length===0,errors:t,warnings:n,filePath:i,fileType:`marketplace`}}function de(e,t,n){let r=[],i=[],a=t.match(T);if(!a)return i.push({path:`frontmatter`,message:`No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata.`}),{success:!0,errors:r,warnings:i,filePath:e,fileType:n};let o=a[1]||``,s;try{s=re(o)}catch(t){return r.push({path:`frontmatter`,message:`YAML frontmatter failed to parse: ${y(t)}. At runtime this ${n} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n}}if(typeof s!=`object`||!s||Array.isArray(s))return r.push({path:`frontmatter`,message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(s)?`an array`:s===null?`null`:typeof s}.`}),{success:!1,errors:r,warnings:i,filePath:e,fileType:n};let c=s;if(c.description!==void 0){let e=c.description;typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`&&e!==null&&r.push({path:`description`,message:`description must be a string, got ${Array.isArray(e)?`array`:typeof e}. At runtime this value is dropped.`})}else i.push({path:`description`,message:`No description in frontmatter. A description helps users and Claude understand when to use this ${n}.`});c.name!==void 0&&c.name!==null&&typeof c.name!=`string`&&r.push({path:`name`,message:`name must be a string, got ${typeof c.name}.`});let l=c[`allowed-tools`];l!=null&&(typeof l!=`string`&&!Array.isArray(l)?r.push({path:`allowed-tools`,message:`allowed-tools must be a string or array of strings, got ${typeof l}.`}):Array.isArray(l)&&l.some(e=>typeof e!=`string`)&&r.push({path:`allowed-tools`,message:`allowed-tools array must contain only strings.`}));let u=c.shell;if(u!=null)if(typeof u!=`string`)r.push({path:`shell`,message:`shell must be a string, got ${typeof u}.`});else{let e=u.trim().toLowerCase();e!==`bash`&&e!==`powershell`&&r.push({path:`shell`,message:`shell must be 'bash' or 'powershell', got '${u}'.`})}return{success:r.length===0,errors:r,warnings:i,filePath:e,fileType:n}}async function Z(e){let t;try{t=await k(e,{encoding:`utf-8`})}catch(t){return u(t)===`ENOENT`?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:[{path:`file`,message:`Failed to read file: ${y(t)}`}],warnings:[],filePath:e,fileType:`hooks`}}let n;try{n=d(t)}catch(t){return{success:!1,errors:[{path:`json`,message:`Invalid JSON syntax: ${y(t)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:e,fileType:`hooks`}}let r=a().safeParse(n);return r.success?{success:!0,errors:[],warnings:[],filePath:e,fileType:`hooks`}:{success:!1,errors:q(r.error),warnings:[],filePath:e,fileType:`hooks`}}async function Q(e,t){let n;try{n=await A(e,{withFileTypes:!0})}catch(e){let t=u(e);if(t===`ENOENT`||t===`ENOTDIR`)return[];throw e}if(t)return n.filter(e=>e.isDirectory()).map(t=>D.join(e,t.name,`SKILL.md`));let r=[];for(let t of n){let n=D.join(e,t.name);t.isDirectory()?r.push(...await Q(n,!1)):t.isFile()&&t.name.toLowerCase().endsWith(`.md`)&&r.push(n)}return r}async function fe(e){let t=[],n=[[`skill`,D.join(e,`skills`)],[`agent`,D.join(e,`agents`)],[`command`,D.join(e,`commands`)]];for(let[e,r]of n){let n=await Q(r,e===`skill`);for(let r of n){let n;try{n=await k(r,{encoding:`utf-8`})}catch(n){if(p(n))continue;t.push({success:!1,errors:[{path:`file`,message:`Failed to read: ${y(n)}`}],warnings:[],filePath:r,fileType:e});continue}let i=de(r,n,e);(i.errors.length>0||i.warnings.length>0)&&t.push(i)}}let r=await Z(D.join(e,`hooks`,`hooks.json`));return(r.errors.length>0||r.warnings.length>0)&&t.push(r),t}async function pe(e){let t=D.resolve(e),n=null;try{n=await M(t)}catch(e){if(!p(e))throw e}if(n?.isDirectory()){let e=await X(D.join(t,`.claude-plugin`,`marketplace.json`));if(e.errors[0]?.code!==`ENOENT`)return e;let n=await Y(D.join(t,`.claude-plugin`,`plugin.json`));return n.errors[0]?.code===`ENOENT`?{success:!1,errors:[{path:`directory`,message:`No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json`}],warnings:[],filePath:t,fileType:`plugin`}:n}switch(le(e)){case`plugin`:return Y(e);case`marketplace`:return X(e);case`unknown`:try{let n=d(await k(t,{encoding:`utf-8`}));if(Array.isArray(n.plugins))return X(e)}catch(e){if(u(e)===`ENOENT`)return{success:!1,errors:[{path:`file`,message:`File not found: ${t}`}],warnings:[],filePath:t,fileType:`plugin`}}return Y(e)}}var $,me=e((()=>{i(),m(),ne(),f(),ie(),l(),$=new Set([`category`,`source`,`tags`,`strict`,`id`])}));export{K as a,G as c,ce as i,pe as n,B as o,fe as r,z as s,me as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Cc as t,dc as n,yc as r}from"./paths-Ci1iwL5Y.js";import{n as i,r as a}from"./analytics-DqMQntaB.js";var o;e((()=>{i(),r(),o=async()=>{let e=n().editorMode||`normal`;e===`emacs`&&(e=`normal`);let r=e===`normal`?`vim`:`normal`;return t(e=>({...e,editorMode:r})),a(`tengu_editor_mode_changed`,{mode:r,source:`command`}),{type:`text`,value:`Editor mode set to ${r}. ${r===`vim`?`Use Escape key to toggle between INSERT and NORMAL modes.`:`Using standard (readline) keyboard bindings.`}`}}}))();export{o as call};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Cc as t,Ka as n,dc as r,lo as i,oo as a,yc as o}from"./paths-Ci1iwL5Y.js";import{n as s,r as c}from"./analytics-DqMQntaB.js";import{AT as l,BA as u,WA as d,jT as f}from"./loadAgentsDir-C_wFhytF.js";import{n as p,r as m}from"./voiceModeEnabled-CjBjjeNR.js";import{n as h,t as g}from"./useVoice-CaBv3G13.js";var _,v;e((()=>{g(),f(),s(),o(),u(),a(),p(),_=2,v=async e=>{if(!m())return{type:`text`,value:`Voice mode is not available.`};let a=n(),o=a.voiceEnabled===!0,s=e?.trim().toLowerCase();if(o&&s===`doubao`)return i(`userSettings`,{voiceProvider:`doubao`}).error?{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`}:(d.notifyChange(`userSettings`),{type:`text`,value:`Voice mode switched to Doubao ASR. Hold ${l(`voice:pushToTalk`,`Chat`,`Space`)} to record.`});if(o&&s===`anthropic`)return i(`userSettings`,{voiceProvider:`anthropic`}).error?{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`}:(d.notifyChange(`userSettings`),{type:`text`,value:`Voice mode switched to Anthropic STT. Hold ${l(`voice:pushToTalk`,`Chat`,`Space`)} to record.`});if(o)return i(`userSettings`,{voiceEnabled:!1}).error?{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`}:(d.notifyChange(`userSettings`),c(`tengu_voice_toggled`,{enabled:!1}),{type:`text`,value:`Voice mode disabled.`});let u=s===`doubao`?`doubao`:`anthropic`,{isVoiceStreamAvailable:f}=await import(`./voiceStreamSTT-CCkOfmdI.js`),{checkRecordingAvailability:p}=await import(`./voice-YtzCcIoM.js`),g=await p();if(!g.available)return{type:`text`,value:g.reason??`Voice mode is not available in this environment.`};if(u!==`doubao`&&!f())return{type:`text`,value:`Voice mode requires a Claude.ai account. Please run /login to sign in.`};let{checkVoiceDependencies:v,requestMicrophonePermission:y}=await import(`./voice-YtzCcIoM.js`),b=await v();if(!b.available)return{type:`text`,value:`No audio recording tool found.${b.installCommand?`\nInstall audio recording tools? Run: ${b.installCommand}`:`
|
|
2
|
+
Install SoX manually for audio recording.`}`};if(!await y()){let e;return e=process.platform===`win32`?`Settings → Privacy → Microphone`:process.platform===`linux`?`your system's audio settings`:`System Settings → Privacy & Security → Microphone`,{type:`text`,value:`Microphone access is denied. To enable it, go to ${e}, then run /voice again.`}}if(i(`userSettings`,{voiceEnabled:!0,...u===`doubao`?{voiceProvider:`doubao`}:{}}).error)return{type:`text`,value:`Failed to update settings. Check your settings file for syntax errors.`};d.notifyChange(`userSettings`),c(`tengu_voice_toggled`,{enabled:!0});let x=l(`voice:pushToTalk`,`Chat`,`Space`),S=``,C=u===`doubao`?`Doubao ASR`:`Anthropic`;if(u!==`doubao`){let e=h(a.language),n=r(),i=n.voiceLangHintLastLanguage!==e.code,o=i?0:n.voiceLangHintShownCount??0,s=!e.fellBackFrom&&o<_;e.fellBackFrom?S=` Note: "${e.fellBackFrom}" is not a supported dictation language; using English. Change it via /config.`:s&&(S=` Dictation language: ${e.code} (/config to change).`),(i||s)&&t(t=>({...t,voiceLangHintShownCount:o+ +!!s,voiceLangHintLastLanguage:e.code}))}return{type:`text`,value:`Voice mode enabled (${C}). Hold ${x} to record.${S}`}}}))();export{v as call};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{f as t,s as n,u as r}from"./envUtils-BWeoiL4Y.js";import{l as i,p as a}from"./debug-otxXY3j-.js";import{o,s}from"./log-DSV4Ht5l.js";import{i as c,o as l}from"./platform-mh9ypxS8.js";import{readFile as u}from"fs/promises";import{spawn as d,spawnSync as f}from"child_process";function p(){return O??(O=(async()=>{let e=Date.now(),t=await import(`./src-DzH9IdOo.js`);return t.isNativeAudioAvailable(),D=t,a(`[voice] audio-capture-napi loaded in ${Date.now()-e}ms`),t})()),O}function m(e){return f(e,[`--version`],{stdio:`ignore`,timeout:3e3}).error===void 0}function h(){return N??(N=new Promise(e=>{let t=d(`arecord`,[`-f`,`S16_LE`,`-r`,String(k),`-c`,String(A),`-t`,`raw`,`/dev/null`],{stdio:[`ignore`,`ignore`,`pipe`]}),n=``;t.stderr?.on(`data`,e=>{n+=e.toString()});let r=setTimeout((e,t)=>{e.kill(`SIGTERM`),t({ok:!0,stderr:``})},150,t,e);t.once(`close`,t=>{clearTimeout(r),e({ok:t===0,stderr:n.trim()})}),t.once(`error`,()=>{clearTimeout(r),e({ok:!1,stderr:`arecord: command not found`})})})),N}function g(){N=null}function _(){return P??(P=u(`/proc/asound/cards`,`utf8`).then(e=>{let t=e.trim();return t!==``&&!t.includes(`no soundcards`)},()=>!1)),P}function v(){P=null}function y(){if(process.platform===`darwin`)return m(`brew`)?{cmd:`brew`,args:[`install`,`sox`],displayCommand:`brew install sox`}:null;if(process.platform===`linux`){if(m(`apt-get`))return{cmd:`sudo`,args:[`apt-get`,`install`,`-y`,`sox`],displayCommand:`sudo apt-get install sox`};if(m(`dnf`))return{cmd:`sudo`,args:[`dnf`,`install`,`-y`,`sox`],displayCommand:`sudo dnf install sox`};if(m(`pacman`))return{cmd:`sudo`,args:[`pacman`,`-S`,`--noconfirm`,`sox`],displayCommand:`sudo pacman -S sox`}}return null}async function b(){if((await p()).isNativeAudioAvailable())return{available:!0,missing:[],installCommand:null};if(process.platform===`win32`)return{available:!1,missing:[`Voice mode requires the native audio module (not loaded)`],installCommand:null};if(process.platform===`linux`&&m(`arecord`))return{available:!0,missing:[],installCommand:null};let e=[];m(`rec`)||e.push(`sox (rec command)`);let t=e.length>0?y():null;return{available:e.length===0,missing:e,installCommand:t?.displayCommand??null}}async function x(){return(await p()).isNativeAudioAvailable()?await C(e=>{},()=>{},{silenceDetection:!1})?(E(),!0):!1:!0}async function S(){if(t()||r(process.env.CLAUDE_CODE_REMOTE))return{available:!1,reason:`Voice mode requires microphone access, but no audio device is available in this environment.
|
|
2
|
+
|
|
3
|
+
To use voice mode, run Claude Code locally instead.`};if((await p()).isNativeAudioAvailable())return{available:!0,reason:null};if(process.platform===`win32`)return{available:!1,reason:`Voice recording requires the native audio module, which could not be loaded.`};let e=`Voice mode could not access an audio device in WSL.
|
|
4
|
+
|
|
5
|
+
WSL2 with WSLg (Windows 11) provides audio via PulseAudio — if you are on Windows 10 or WSL1, run Claude Code in native Windows instead.`;if(process.platform===`linux`&&m(`arecord`)){let t=await h();if(t.ok)return{available:!0,reason:null};if(c()===`wsl`)return{available:!1,reason:e};a(`[voice] arecord probe failed: ${t.stderr}`)}if(!m(`rec`)){if(c()===`wsl`)return{available:!1,reason:e};let t=y();return{available:!1,reason:t?`Voice mode requires SoX for audio recording. Install it with: ${t.displayCommand}`:`Voice mode requires SoX for audio recording. Install SoX manually:
|
|
6
|
+
macOS: brew install sox
|
|
7
|
+
Ubuntu/Debian: sudo apt-get install sox
|
|
8
|
+
Fedora: sudo dnf install sox`}}return{available:!0,reason:null}}async function C(e,t,n){a(`[voice] startRecording called, platform=${process.platform}`);let r=await p(),i=r.isNativeAudioAvailable()&&(process.platform!==`linux`||await _()),o=n?.silenceDetection!==!1;return i&&((I||r.isNativeRecordingActive())&&(r.stopNativeRecording(),I=!1),r.startNativeRecording(t=>{e(t)},()=>{o&&(I=!1,t())}))?(I=!0,!0):process.platform===`win32`?(a(`[voice] Windows native recording unavailable, no fallback`),!1):process.platform===`linux`&&m(`arecord`)&&(await h()).ok?T(e,t):w(e,t,n)}function w(e,t,n){let r=n?.silenceDetection!==!1,i=[`-q`,`--buffer`,`1024`,`-t`,`raw`,`-r`,String(k),`-e`,`signed`,`-b`,`16`,`-c`,String(A),`-`];r&&i.push(`silence`,`1`,`0.1`,M,`1`,j,M);let a=d(`rec`,i,{stdio:[`pipe`,`pipe`,`pipe`]});return F=a,a.stdout?.on(`data`,t=>{e(t)}),a.stderr?.on(`data`,()=>{}),a.on(`close`,()=>{F=null,t()}),a.on(`error`,e=>{s(e),F=null,t()}),!0}function T(e,t){let n=d(`arecord`,[`-f`,`S16_LE`,`-r`,String(k),`-c`,String(A),`-t`,`raw`,`-q`,`-`],{stdio:[`pipe`,`pipe`,`pipe`]});return F=n,n.stdout?.on(`data`,t=>{e(t)}),n.stderr?.on(`data`,()=>{}),n.on(`close`,()=>{F=null,t()}),n.on(`error`,e=>{s(e),F=null,t()}),!0}function E(){if(I&&D){D.stopNativeRecording(),I=!1;return}F&&(F.kill(`SIGTERM`),F=null)}var D,O,k,A,j,M,N,P,F,I;e((()=>{i(),n(),o(),l(),D=null,O=null,k=16e3,A=1,j=`2.0`,M=`3%`,N=null,P=null,F=null,I=!1}))();export{v as _resetAlsaCardsForTesting,g as _resetArecordProbeForTesting,S as checkRecordingAvailability,b as checkVoiceDependencies,x as requestMicrophonePermission,C as startRecording,E as stopRecording};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Jt as t,S as n,_ as r,cn as i,on as a}from"./paths-Ci1iwL5Y.js";function o(){return!r(`tengu_amber_quartz_disabled`,!1)}function s(){return i()?!!t()?.accessToken:!1}function c(){return s()&&o()}function l(){return o()}var u=e((()=>{n(),a()}));export{c as a,o as i,u as n,l as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,i as t,n}from"./voiceModeEnabled-CjBjjeNR.js";n();export{t as isVoiceGrowthBookEnabled,e as isVoiceModeEnabled};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,r as n}from"./wrapper-D5qL1aQL.js";import{Jt as r,Pt as i,S as a,St as o,_ as s,cn as c,on as l,wt as u}from"./paths-Ci1iwL5Y.js";import{D as d,E as f,O as p,l as m,p as h}from"./debug-otxXY3j-.js";import{l as g,u as _}from"./oauth-CdZEzMww.js";import{o as v,s as y}from"./log-DSV4Ht5l.js";import{c as b,g as x,h as S,l as C,u as w}from"./proxy-CF7ZDxaW.js";function T(){if(!c())return!1;let e=r();return e!==null&&e.accessToken!==null}async function E(e,t){await i();let a=r();if(!a?.accessToken)return h(`[voice_stream] No OAuth token available`),null;let c=process.env.VOICE_STREAM_BASE_URL||g().BASE_API_URL.replace(`https://`,`wss://`).replace(`http://`,`ws://`);process.env.VOICE_STREAM_BASE_URL&&h(`[voice_stream] Using VOICE_STREAM_BASE_URL override: ${process.env.VOICE_STREAM_BASE_URL}`);let l=new URLSearchParams({encoding:`linear16`,sample_rate:`16000`,channels:`1`,endpointing_ms:`300`,utterance_end_ms:`1000`,language:t?.language??`en`}),u=s(`tengu_cobalt_frost`,!1);if(u&&(l.set(`use_conversation_engine`,`true`),l.set(`stt_provider`,`deepgram-nova3`),h(`[voice_stream] Nova 3 gate enabled (tengu_cobalt_frost)`)),t?.keyterms?.length)for(let e of t.keyterms)l.append(`keyterms`,e);let f=`${c}${k}?${l.toString()}`;h(`[voice_stream] Connecting to ${f}`);let m={Authorization:`Bearer ${a.accessToken}`,"User-Agent":o(),"x-app":`cli`},_=S(),v=new n(f,typeof Bun<`u`?{headers:m,proxy:C(f),tls:_||void 0}:{headers:m,agent:b(f),..._}),x=null,w=!1,T=!1,E=!1,M=!1,N=null,P=null,F={send(e){if(v.readyState===n.OPEN){if(T){h(`[voice_stream] Dropping audio chunk after CloseStream: ${String(e.length)} bytes`);return}h(`[voice_stream] Sending audio chunk: ${String(e.length)} bytes`),v.send(Buffer.from(e))}},finalize(){return E||T?Promise.resolve(`ws_already_closed`):(E=!0,new Promise(t=>{let r=setTimeout(()=>N?.(`safety_timeout`),j.safety),i=setTimeout(()=>N?.(`no_data_timeout`),j.noData);if(P=()=>{clearTimeout(i),P=null},N=n=>{if(clearTimeout(r),clearTimeout(i),N=null,P=null,I){h(`[voice_stream] Promoting unreported interim before ${n} resolve`);let t=I;I=``,e.onTranscript(t,!0)}h(`[voice_stream] Finalize resolved via ${n}`),t(n)},v.readyState===n.CLOSED||v.readyState===n.CLOSING){N(`ws_already_closed`);return}setTimeout(()=>{T=!0,v.readyState===n.OPEN&&(h(`[voice_stream] Sending CloseStream (finalize)`),v.send(O))},0)}))},close(){T=!0,x&&(clearInterval(x),x=null),w=!1,v.readyState===n.OPEN&&v.close()},isConnected(){return w&&v.readyState===n.OPEN}};v.on(`open`,()=>{h(`[voice_stream] WebSocket connected`),w=!0,h(`[voice_stream] Sending initial KeepAlive`),v.send(D),x=setInterval(e=>{e.readyState===n.OPEN&&(h(`[voice_stream] Sending periodic KeepAlive`),e.send(D))},A,v),e.onReady(F)});let I=``;return v.on(`message`,t=>{let n=t.toString();h(`[voice_stream] Message received (${String(n.length)} chars): ${n.slice(0,200)}`);let r;try{r=d(n)}catch{return}switch(r.type){case`TranscriptText`:{let t=r.data;if(h(`[voice_stream] TranscriptText: "${t??``}"`),T&&P?.(),t){if(!u&&I){let n=I.trimStart(),r=t.trimStart();n&&r&&!r.startsWith(n)&&!n.startsWith(r)&&(h(`[voice_stream] Auto-finalizing previous segment (new segment detected): "${I}"`),e.onTranscript(I,!0))}I=t,e.onTranscript(t,!1)}break}case`TranscriptEndpoint`:{h(`[voice_stream] TranscriptEndpoint received, lastTranscriptText="${I}"`);let t=I;I=``,t&&e.onTranscript(t,!0),T&&N?.(`post_closestream_endpoint`);break}case`TranscriptError`:{let t=r.description??r.error_code??`unknown transcription error`;h(`[voice_stream] TranscriptError: ${t}`),E||e.onError(t);break}case`error`:{let t=r.message??p(r);h(`[voice_stream] Server error: ${t}`),E||e.onError(t);break}default:break}}),v.on(`close`,(t,n)=>{let r=n?.toString()??``;if(h(`[voice_stream] WebSocket closed: code=${String(t)} reason="${r}"`),w=!1,x&&(clearInterval(x),x=null),I){h(`[voice_stream] Promoting unreported interim transcript to final on close`);let t=I;I=``,e.onTranscript(t,!0)}N?.(`ws_close`),!E&&!M&&t!==1e3&&t!==1005&&e.onError(`Connection closed: code ${String(t)}${r?` — ${r}`:``}`),e.onClose()}),v.on(`unexpected-response`,(t,n)=>{let r=n.statusCode??0;if(r===101){h(`[voice_stream] unexpected-response fired with 101; ignoring`);return}h(`[voice_stream] Upgrade rejected: status=${String(r)} cf-mitigated=${String(n.headers[`cf-mitigated`])} cf-ray=${String(n.headers[`cf-ray`])}`),M=!0,n.resume(),t.destroy(),!E&&e.onError(`WebSocket upgrade rejected with HTTP ${String(r)}`,{fatal:r>=400&&r<500})}),v.on(`error`,t=>{y(t),h(`[voice_stream] WebSocket error: ${t.message}`),E||e.onError(`Voice stream connection error: ${t.message}`)}),F}var D,O,k,A,j,M=e((()=>{t(),_(),l(),m(),u(),v(),x(),w(),f(),a(),D=`{"type":"KeepAlive"}`,O=`{"type":"CloseStream"}`,k=`/api/ws/speech_to_text/voice_stream`,A=8e3,j={safety:5e3,noData:1500}}));export{T as i,E as n,M as r,j as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,r as t}from"./voiceStreamSTT-B8CTbb_6.js";t();export{e as isVoiceStreamAvailable};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{F as n,Rn as r,b as i,n as a,r as o,t as s,x as c,xt as l}from"./src-Di342QoJ.js";import{t as u}from"./jsx-runtime-D-D469L8.js";import{lo as d,no as f,oo as p}from"./paths-Ci1iwL5Y.js";import{t as m}from"./useTerminalSize-Du-EamDN.js";import{n as h,t as g}from"./useExitOnCtrlCDWithKeybindings-BHi41Ku_.js";import{n as _,r as v}from"./modalContext-c5Yqx_CQ.js";function y({tab:e,adapters:t,current:n,fieldLabel:r,onConfigure:a,onSwitchTab:o,onSelectAdapter:s,onClose:u,contentHeight:d}){let[f,p]=(0,T.useState)(Math.max(0,t.findIndex(e=>e.key===n)));return l((n,r)=>{if(r.upArrow)p(e=>Math.max(0,e-1));else if(r.downArrow)p(e=>Math.min(e+1,t.length-1));else if(r.tab&&e===`search`)o(`fetch`),p(0);else if(r.tab&&e===`fetch`)o(`search`),p(0);else if(r.escape)u();else if(r.return){let e=t[f];e&&a(e)}else if(n===` `){let e=t[f];e&&s(e.key)}}),(0,E.jsxs)(c,{flexDirection:`column`,padding:1,children:[(0,E.jsx)(i,{bold:!0,children:r}),(0,E.jsx)(c,{flexDirection:`column`,marginTop:1,children:t.map((e,t)=>{let r=e.key===n,a=t===f,o=a||r;return(0,E.jsxs)(c,{flexDirection:`row`,children:[(0,E.jsxs)(i,{color:r?`success`:void 0,children:[a?`›`:` `,(0,E.jsxs)(i,{color:r?`success`:void 0,children:[` `,r?`●`:`○`,` `]})]}),(0,E.jsx)(i,{bold:r,backgroundColor:o?`suggestion`:void 0,color:o?`inverseText`:void 0,children:e.label}),(0,E.jsx)(i,{children:` `}),(0,E.jsx)(i,{dimColor:!r,children:e.description})]},e.key)})}),(0,E.jsxs)(c,{marginTop:1,flexDirection:`row`,gap:2,children:[(0,E.jsxs)(i,{dimColor:!0,children:[`↑↓`,` navigate · Space select · Enter config · Esc close`]}),(0,E.jsx)(i,{dimColor:!0,children:`Tab switch tab`})]})]})}function b(e){let t=[];switch(e.key){case`tavily`:t.push({key:`tavilyEndpointUrl`,label:`Endpoint URL`,placeholder:`https://tavily.claude-code-best.win`,maskInput:!1,getValue:e=>e.tavilyEndpointUrl??`https://tavily.claude-code-best.win`,setValue:(e,t)=>({...e,tavilyEndpointUrl:t||void 0})});break;case`brave`:t.push({key:`braveApiKey`,label:`API Key`,placeholder:`BSA...`,maskInput:!0,getValue:e=>e.braveApiKey??``,setValue:(e,t)=>({...e,braveApiKey:t||void 0})});break;case`exa`:t.push({key:`exaApiKey`,label:`API Key`,placeholder:`exa-...`,maskInput:!0,getValue:e=>e.exaApiKey??``,setValue:(e,t)=>({...e,exaApiKey:t||void 0})}),t.push({key:`exaEndpointUrl`,label:`Endpoint URL`,placeholder:`https://mcp.exa.ai/mcp`,maskInput:!1,getValue:e=>e.exaEndpointUrl??`https://mcp.exa.ai/mcp`,setValue:(e,t)=>({...e,exaEndpointUrl:t||void 0})});break;case`http`:t.push({key:`webFetchHttpTimeoutMs`,label:`Timeout (ms)`,placeholder:`60000`,maskInput:!1,getValue:e=>String(e.webFetchHttpTimeoutMs??6e4),setValue:(e,t)=>({...e,webFetchHttpTimeoutMs:t&&Number(t)||void 0})});break;default:break}return t}function x({adapter:e,onBack:t,onSave:n,onSelect:r}){let i=b(e),a=f();return i.length===0?(0,E.jsx)(S,{adapter:e,onBack:t,onSelect:r}):(0,E.jsx)(C,{fields:i,adapter:e,onBack:t,onSave:n,settings:a})}function S({adapter:e,onBack:t,onSelect:n}){let[r,a]=(0,T.useState)(0);return l((i,o)=>{o.upArrow||o.downArrow?a(e=>+(e===0)):o.escape?t():o.return&&(r===0?n(`Selected ${e.label}.`):t())}),(0,E.jsxs)(c,{flexDirection:`column`,padding:1,children:[(0,E.jsx)(i,{bold:!0,children:e.label}),(0,E.jsxs)(c,{flexDirection:`column`,marginTop:1,children:[(0,E.jsx)(i,{children:e.description}),(0,E.jsx)(c,{marginTop:1,children:(0,E.jsx)(i,{dimColor:!0,children:`No additional configuration needed.`})})]}),(0,E.jsxs)(c,{flexDirection:`column`,marginTop:1,children:[(0,E.jsxs)(c,{children:[(0,E.jsxs)(i,{children:[r===0?`›`:` `,` `]}),(0,E.jsx)(i,{backgroundColor:r===0?`suggestion`:void 0,color:r===0?`inverseText`:void 0,bold:!0,children:`[ Select & Close ]`})]}),(0,E.jsxs)(c,{children:[(0,E.jsxs)(i,{children:[r===1?`›`:` `,` `]}),(0,E.jsx)(i,{backgroundColor:r===1?`suggestion`:void 0,color:r===1?`inverseText`:void 0,children:`[ Back ]`})]})]}),(0,E.jsx)(c,{marginTop:1,children:(0,E.jsxs)(i,{dimColor:!0,children:[`↑↓`,` navigate · Enter confirm · Esc back`]})})]})}function C({fields:e,adapter:t,onBack:n,onSave:r,settings:a}){let[o,s]=(0,T.useState)(0),[u,f]=(0,T.useState)(!1),[p,m]=(0,T.useState)(``),[h,g]=(0,T.useState)(0),_=(0,T.useCallback)(()=>{f(!1),m(``),g(0)},[]);e.length-1;let v=e.length,y=e.length+1,b=(0,T.useCallback)(()=>{let n={...a};for(let t of e){let e=t.getValue(a);n=t.setValue(n,e)}d(`userSettings`,n),r(`Configuration saved for ${t.label}.`)},[e,a,t.label,r]),x=(0,T.useCallback)(()=>{let t=e[o];if(!t)return;let n=t.getValue(a);m(n),g(n.length),f(!0)},[o,e,a]),S=(0,T.useCallback)(()=>{let t=e[o];if(!t)return;let n=t.setValue({...a},p);Object.assign(a,n),f(!1)},[o,e,a,p]);return l((e,t)=>{u?t.escape?_():t.return?S():t.backspace||t.delete?m(e=>{let t=h;return t>0?(g(t-1),e.slice(0,t-1)+e.slice(t)):e}):t.leftArrow?g(e=>Math.max(0,e-1)):t.rightArrow?g(e=>Math.min(p.length,e+1)):e&&e.length===1&&!t.ctrl&&!t.meta&&m(t=>{let n=h;return g(n+1),t.slice(0,n)+e+t.slice(n)}):t.upArrow?s(e=>Math.max(0,e-1)):t.downArrow?s(e=>Math.min(y,e+1)):t.escape?n():t.return&&(o===v?b():o===y?n():x())}),(0,E.jsxs)(c,{flexDirection:`column`,padding:1,children:[(0,E.jsxs)(i,{bold:!0,children:[t.label,` Configuration`]}),(0,E.jsxs)(c,{flexDirection:`column`,marginTop:1,children:[e.map((e,t)=>{let n=t===o&&!u,r=e.getValue(a),s=u&&t===o?e.maskInput?`•`.repeat(p.length):p:e.maskInput&&r?`•`.repeat(Math.min(r.length,16)):r;return(0,E.jsxs)(c,{flexDirection:`row`,children:[(0,E.jsxs)(i,{children:[n?`›`:` `,` `]}),(0,E.jsxs)(i,{dimColor:!0,children:[e.label,`: `]}),(0,E.jsx)(i,{backgroundColor:n?`suggestion`:void 0,color:u&&t===o?`success`:n?`inverseText`:void 0,children:s||(0,E.jsx)(i,{dimColor:!0,children:`(empty)`})}),u&&t===o&&(0,E.jsxs)(i,{dimColor:!0,children:[` |`,` pos `,h,`/`,p.length]})]},e.key)}),(0,E.jsxs)(c,{marginTop:1,children:[(0,E.jsxs)(i,{children:[o===v?`›`:` `,` `]}),(0,E.jsx)(i,{backgroundColor:o===v?`suggestion`:void 0,color:o===v?`inverseText`:void 0,bold:!0,children:`[ Save ]`})]}),(0,E.jsxs)(c,{children:[(0,E.jsxs)(i,{children:[o===y?`›`:` `,` `]}),(0,E.jsx)(i,{backgroundColor:o===y?`suggestion`:void 0,color:o===y?`inverseText`:void 0,children:`[ Back ]`})]})]}),(0,E.jsx)(c,{marginTop:1,children:(0,E.jsx)(i,{dimColor:!0,children:u?`←→ move cursor · Type to edit · Enter confirm · Esc cancel edit`:`↑↓ navigate · Enter edit field · Esc go back`})})]})}function w({onClose:e,_context:t}){let[r,i]=(0,T.useState)(`search`),[s,c]=(0,T.useState)({kind:`main`}),l=f(),u=l.webSearchAdapter??`tavily`,p=l.webFetchAdapter??`tavily`,m=v(),{rows:g}=n(),_=m?g+1:Math.max(14,Math.min(Math.floor(g*.7),24));h();let b=(0,T.useCallback)(t=>{let n=r;d(`userSettings`,{[n===`search`?`webSearchAdapter`:`webFetchAdapter`]:t});let i=(n===`search`?D:O).find(e=>e.key===t)?.label??t;e(`${n===`search`?`Web search`:`Web fetch`} backend set to ${i}.`)},[r,e]),S=(0,T.useCallback)(e=>{c({kind:`config`,adapter:e})},[]),C=(0,T.useCallback)(()=>{c({kind:`main`})},[]),w=(0,T.useCallback)(t=>{e(t)},[e]),k=(0,T.useCallback)(t=>{let n=s.adapter;d(`userSettings`,{[(s.kind===`config`?D.some(e=>e.key===n.key)?`search`:`fetch`:r)===`search`?`webSearchAdapter`:`webFetchAdapter`]:n.key}),e(t)},[e,s,r]);return s.kind===`config`?(0,E.jsx)(x,{adapter:s.adapter,onBack:C,onSave:w,onSelect:k}):(0,E.jsxs)(o,{title:`Web Tools`,contentHeight:_,children:[(0,E.jsx)(a,{title:`Search`,children:(0,E.jsx)(y,{tab:r,adapters:D,current:u,fieldLabel:`Choose a web search backend:`,onConfigure:S,onSwitchTab:i,onSelectAdapter:b,onClose:()=>e(`Web tools panel dismissed`),contentHeight:_})},`search`),(0,E.jsx)(a,{title:`Fetch`,children:(0,E.jsx)(y,{tab:r,adapters:O,current:p,fieldLabel:`Choose a web fetch backend:`,onConfigure:S,onSwitchTab:i,onSelectAdapter:b,onClose:()=>e(`Web tools panel dismissed`),contentHeight:_})},`fetch`)]})}var T,E,D,O,k;e((()=>{r(),T=t(r(),1),s(),g(),m(),_(),p(),E=u(),D=[{key:`tavily`,label:`Tavily`,description:`Tavily Search API (default)`,hasConfig:!0},{key:`api`,label:`Anthropic API`,description:`Anthropic server-side web search`,hasConfig:!1},{key:`bing`,label:`Bing`,description:`Scrape Bing HTML results`,hasConfig:!1},{key:`brave`,label:`Brave`,description:`Brave Search API (needs API key)`,hasConfig:!0},{key:`exa`,label:`Exa`,description:`Exa AI search (MCP endpoint)`,hasConfig:!0}],O=[{key:`tavily`,label:`Tavily Extract`,description:`Use Tavily /extract (default)`,hasConfig:!0},{key:`http`,label:`HTTP Direct`,description:`Fetch URL directly via HTTP`,hasConfig:!0}],k=async(e,t)=>(0,E.jsx)(w,{onClose:e,_context:t})}))();export{k as call};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./memoize-DNnuA2aU.js";import{l as r,p as i}from"./debug-otxXY3j-.js";import{n as a,t as o}from"./cwd--iizewsn.js";import{n as s,t as c}from"./execSyncWrapper-Bn7EJqtD.js";import{i as l,o as u}from"./platform-mh9ypxS8.js";import{n as d,t as f}from"./memoize-DJ1XCN-z.js";import*as p from"path";import{existsSync as m}from"fs";import*as h from"path/win32";function g(e){return m(e)}function _(e){if(e===`git`){for(let e of[`C:\\Program Files\\Git\\cmd\\git.exe`,`C:\\Program Files (x86)\\Git\\cmd\\git.exe`])if(g(e))return e}try{let t=c(`where.exe ${e}`,{stdio:`pipe`,encoding:`utf8`}).trim().split(`\r
|
|
2
|
+
`).filter(Boolean),n=o().toLowerCase();for(let e of t){let t=p.resolve(e).toLowerCase();if(p.dirname(t).toLowerCase()===n||t.startsWith(n+p.sep)){i(`Skipping potentially malicious executable in current directory: ${e}`);continue}return e}return null}catch{return null}}function v(){if(l()===`windows`){let e=y();process.env.SHELL=e,process.env.CLAUDE_CODE_GIT_BASH_PATH=e,i(`Using bash path: "${e}"`)}}var y,b,x,S=e((()=>{n(),a(),r(),s(),f(),u(),y=t(()=>{if(process.env.CLAUDE_CODE_GIT_BASH_PATH){if(g(process.env.CLAUDE_CODE_GIT_BASH_PATH))return process.env.CLAUDE_CODE_GIT_BASH_PATH;console.error(`Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "${process.env.CLAUDE_CODE_GIT_BASH_PATH}"`),process.exit(1)}let e=_(`git`);if(e){let t=h.join(e,`..`,`..`,`bin`,`bash.exe`);if(g(t))return t}console.error(`Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe`),process.exit(1)}),b=d(e=>{if(e.startsWith(`\\\\`))return e.replace(/\\/g,`/`);let t=e.match(/^([A-Za-z]):[/\\]/);return t?`/`+t[1].toLowerCase()+e.slice(2).replace(/\\/g,`/`):e.replace(/\\/g,`/`)},e=>e,500),x=d(e=>{if(e.startsWith(`//`))return e.replace(/\//g,`\\`);let t=e.match(/^\/cygdrive\/([A-Za-z])(\/|$)/);if(t){let n=t[1].toUpperCase(),r=e.slice((`/cygdrive/`+t[1]).length);return n+`:`+(r||`\\`).replace(/\//g,`\\`)}let n=e.match(/^\/([A-Za-z])(\/|$)/);if(n){let t=n[1].toUpperCase(),r=e.slice(2);return t+`:`+(r||`\\`).replace(/\//g,`\\`)}return e.replace(/\//g,`\\`)},e=>e,500)}));export{b as a,v as i,S as n,x as r,y as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t}from"./windowsPaths-BeDSnJ23.js";t();export{e as setShellIfWindows};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jt as e,on as t}from"./paths-Ci1iwL5Y.js";import{U as n,z as r}from"./debug-otxXY3j-.js";import{o as i,t as a}from"./bridgeMain-CNmR9iDD.js";import{resolve as o}from"path";t(),n();var s=78,c=1;async function l(e){if(!e){console.error(`Error: --daemon-worker requires a worker kind`),process.exitCode=s;return}switch(e){case`remoteControl`:await u();break;default:console.error(`Error: unknown daemon worker kind '${e}'`),process.exitCode=s}}async function u(){let t=process.env.DAEMON_WORKER_DIR||o(`.`),n=process.env.DAEMON_WORKER_NAME||void 0,l=process.env.DAEMON_WORKER_SPAWN_MODE||`same-dir`,u=parseInt(process.env.DAEMON_WORKER_CAPACITY||`4`,10),d=process.env.DAEMON_WORKER_PERMISSION||void 0,f=process.env.DAEMON_WORKER_SANDBOX===`1`,p=process.env.DAEMON_WORKER_TIMEOUT_MS?parseInt(process.env.DAEMON_WORKER_TIMEOUT_MS,10):void 0,m=process.env.DAEMON_WORKER_CREATE_SESSION!==`0`,h=new AbortController,g=()=>h.abort();process.on(`SIGTERM`,g),process.on(`SIGINT`,g);let _={dir:t,name:n,spawnMode:l,capacity:u,permissionMode:d,sandbox:f,sessionTimeoutMs:p,createSessionOnStart:m,getAccessToken:()=>e()?.accessToken,onAuth401:async t=>!!e()?.accessToken,log:e=>{console.log(`[remoteControl] ${e}`)}};try{await i(_,h.signal)}catch(e){e instanceof a?(console.error(`[remoteControl] permanent error: ${e.message}`),process.exitCode=s):(console.error(`[remoteControl] transient error: ${r(e)}`),process.exitCode=c)}finally{process.off(`SIGTERM`,g),process.off(`SIGINT`,g)}}export{l as runDaemonWorker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ct as e,Ot as t}from"./loadAgentsDir-C_wFhytF.js";t();export{e as execIntoTmuxWorktree};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./worktreeModeEnabled-KtHEqeFA.js";t();export{e as isWorktreeModeEnabled};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{es as t,no as n,oo as r,us as i}from"./paths-Ci1iwL5Y.js";function a(e){d.set(e.name,e)}function o(e){return e.endsWith(`@${f}`)}function s(e){return d.get(e)}function c(){let e=n(),t=[],r=[];for(let[n,i]of d){if(i.isAvailable&&!i.isAvailable())continue;let a=`${n}@${f}`,o=e?.enabledPlugins?.[a],s=o===void 0?i.defaultEnabled??!0:o===!0,c={name:n,manifest:{name:n,description:i.description,version:i.version},path:f,source:a,repository:a,enabled:s,isBuiltin:!0,hooksConfig:i.hooks,mcpServers:i.mcpServers};s?t.push(c):r.push(c)}return{enabled:t,disabled:r}}function l(){let{enabled:e}=c(),t=[];for(let n of e){let e=d.get(n.name);if(e?.skills)for(let n of e.skills)t.push(u(n))}return t}function u(e){return{type:`prompt`,name:e.name,description:e.description,hasUserSpecifiedDescription:!0,allowedTools:e.allowedTools??[],argumentHint:e.argumentHint,whenToUse:e.whenToUse,model:e.model,disableModelInvocation:e.disableModelInvocation??!1,userInvocable:e.userInvocable??!0,contentLength:0,source:`bundled`,loadedFrom:`bundled`,hooks:e.hooks,context:e.context,agent:e.agent,isEnabled:e.isEnabled??(()=>!0),isHidden:!(e.userInvocable??!0),progressMessage:`running`,getPromptForCommand:e.getPromptForCommand}}var d,f,p=e((()=>{r(),d=new Map,f=`builtin`}));function m(e){if(e.includes(`@`)){let t=e.split(`@`);return{name:t[0]||``,marketplace:t[1]}}return{name:e}}function h(e){return e!==void 0&&t.has(e.toLowerCase())}function g(e){if(e===`managed`)throw Error(`Cannot install plugins to managed scope`);return y[e]}function _(e){return v[e]}var v,y,b=e((()=>{i(),v={policySettings:`managed`,userSettings:`user`,projectSettings:`project`,localSettings:`local`,flagSettings:`flag`},y={user:`userSettings`,project:`projectSettings`,local:`localSettings`}}));function x(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`)}function S(e){return x(e).replace(/"/g,`"`).replace(/'/g,`'`)}var C=e((()=>{}));export{h as a,_ as c,l as d,c as f,a as h,b as i,f as l,o as m,S as n,m as o,p,C as r,g as s,x as t,s as u};
|
package/dist/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import{s as e,u as t}from"./chunks/envUtils-BWeoiL4Y.js";var n=globalThis.performance,r=new Map,i=new Map;function a(){return n.now()}function o(e){return r.set(e,a()),{name:e,entryType:`mark`,startTime:r.get(e),duration:0}}function s(e,t,n){let o,s;if(typeof t==`string`){let e=r.get(t),i=n?r.get(n):a();o=e??a(),s=(i??a())-o}else t&&typeof t==`object`?(o=t.start??0,s=(t.end??a())-o):(o=0,s=a());i.set(e,{name:e,startTime:o,duration:s})}function c(e){return e===`mark`?[...r.entries()].map(([e,t])=>({name:e,entryType:`mark`,startTime:t,duration:0})):e===`measure`?[...i.values()].map(e=>({name:e.name,entryType:`measure`,startTime:e.startTime,duration:e.duration})):[]}function l(e,t){return c(t??`mark`).concat(t===void 0?c(`measure`):[]).filter(t=>t.name===e)}function u(e){e===void 0?r.clear():r.delete(e)}function d(e){e===void 0?i.clear():i.delete(e)}var f={now:a,mark:o,measure:s,getEntriesByType:c,getEntriesByName:l,clearMarks:u,clearMeasures:d,clearResourceTimings:(()=>{}),setResourceTimingBufferSize:(()=>{}),markResourceTiming:(()=>{}),get timeOrigin(){return n.timeOrigin},get onresourcetimingbufferfull(){return n.onresourcetimingbufferfull},set onresourcetimingbufferfull(e){},toJSON(){return n.toJSON()}};function p(){globalThis.__performanceShimInstalled||(globalThis.__performanceShimInstalled=!0,globalThis.performance=f)}if(p(),e(),globalThis.MACRO===void 0&&(globalThis.MACRO={VERSION:process.env.CLAUDE_CODE_VERSION||`2.1.888`,BUILD_TIME:new Date().toISOString(),FEEDBACK_CHANNEL:``,ISSUES_EXPLAINER:``,NATIVE_PACKAGE_URL:``,PACKAGE_URL:``,VERSION_CHANGELOG:``}),t(process.env.CLAUDE_CODE_FORCE_INTERACTIVE)){for(let e of[process.stdin,process.stdout,process.stderr])if(!e.isTTY)try{Object.defineProperty(e,`isTTY`,{value:!0,configurable:!0})}catch{}}if(process.env.COREPACK_ENABLE_AUTO_PIN=`0`,process.env.CLAUDE_CODE_REMOTE===`true`){let e=process.env.NODE_OPTIONS||``;process.env.NODE_OPTIONS=e?`${e} --max-old-space-size=8192`:`--max-old-space-size=8192`}async function m(){let e=process.argv.slice(2);if(e.length===1&&(e[0]===`--version`||e[0]===`-v`||e[0]===`-V`)){console.log(`2.7.
|
|
2
|
+
import{s as e,u as t}from"./chunks/envUtils-BWeoiL4Y.js";var n=globalThis.performance,r=new Map,i=new Map;function a(){return n.now()}function o(e){return r.set(e,a()),{name:e,entryType:`mark`,startTime:r.get(e),duration:0}}function s(e,t,n){let o,s;if(typeof t==`string`){let e=r.get(t),i=n?r.get(n):a();o=e??a(),s=(i??a())-o}else t&&typeof t==`object`?(o=t.start??0,s=(t.end??a())-o):(o=0,s=a());i.set(e,{name:e,startTime:o,duration:s})}function c(e){return e===`mark`?[...r.entries()].map(([e,t])=>({name:e,entryType:`mark`,startTime:t,duration:0})):e===`measure`?[...i.values()].map(e=>({name:e.name,entryType:`measure`,startTime:e.startTime,duration:e.duration})):[]}function l(e,t){return c(t??`mark`).concat(t===void 0?c(`measure`):[]).filter(t=>t.name===e)}function u(e){e===void 0?r.clear():r.delete(e)}function d(e){e===void 0?i.clear():i.delete(e)}var f={now:a,mark:o,measure:s,getEntriesByType:c,getEntriesByName:l,clearMarks:u,clearMeasures:d,clearResourceTimings:(()=>{}),setResourceTimingBufferSize:(()=>{}),markResourceTiming:(()=>{}),get timeOrigin(){return n.timeOrigin},get onresourcetimingbufferfull(){return n.onresourcetimingbufferfull},set onresourcetimingbufferfull(e){},toJSON(){return n.toJSON()}};function p(){globalThis.__performanceShimInstalled||(globalThis.__performanceShimInstalled=!0,globalThis.performance=f)}if(p(),e(),globalThis.MACRO===void 0&&(globalThis.MACRO={VERSION:process.env.CLAUDE_CODE_VERSION||`2.1.888`,BUILD_TIME:new Date().toISOString(),FEEDBACK_CHANNEL:``,ISSUES_EXPLAINER:``,NATIVE_PACKAGE_URL:``,PACKAGE_URL:``,VERSION_CHANGELOG:``}),t(process.env.CLAUDE_CODE_FORCE_INTERACTIVE)){for(let e of[process.stdin,process.stdout,process.stderr])if(!e.isTTY)try{Object.defineProperty(e,`isTTY`,{value:!0,configurable:!0})}catch{}}if(process.env.COREPACK_ENABLE_AUTO_PIN=`0`,process.env.CLAUDE_CODE_REMOTE===`true`){let e=process.env.NODE_OPTIONS||``;process.env.NODE_OPTIONS=e?`${e} --max-old-space-size=8192`:`--max-old-space-size=8192`}async function m(){let e=process.argv.slice(2);if(e.length===1&&(e[0]===`--version`||e[0]===`-v`||e[0]===`-V`)){console.log(`2.7.1 (Claude Code)`);return}let{profileCheckpoint:t}=await import(`./chunks/startupProfiler-WtUzkMKV.js`);if(t(`cli_entry`),process.argv[2]===`--claude-in-chrome-mcp`){t(`cli_claude_in_chrome_mcp_path`);let{runClaudeInChromeMcpServer:e}=await import(`./chunks/mcpServer-Py4Iz9Hx.js`);await e();return}else if(process.argv[2]===`--chrome-native-host`){t(`cli_chrome_native_host_path`);let{runChromeNativeHost:e}=await import(`./chunks/chromeNativeHost-BldB1Zzi.js`);await e();return}else if(process.argv[2]===`--computer-use-mcp`){t(`cli_computer_use_mcp_path`);let{runComputerUseMcpServer:e}=await import(`./chunks/mcpServer-BJNjQXsU.js`);await e();return}if(process.argv[2]===`--acp`){t(`cli_acp_path`);let{runAcpAgent:e}=await import(`./chunks/entry-CJlJ47nP.js`);await e();return}if(e[0]===`weixin`){t(`cli_weixin_path`);let{handleWeixinCli:n}=await import(`./chunks/src-BGzuPZ5q.js`),{enableConfigs:r}=await import(`./chunks/config-CJd9kJ57.js`),{initializeAnalyticsSink:i}=await import(`./chunks/sink-DFWgcGHX.js`),{shutdownDatadog:a}=await import(`./chunks/datadog-QSR9B7CZ.js`),{shutdown1PEventLogging:o}=await import(`./chunks/firstPartyEventLogger-CM0V7Uev.js`),{logForDebugging:s}=await import(`./chunks/debug-DIYxb3SF.js`),{ChannelPermissionRequestNotificationSchema:c}=await import(`./chunks/channelNotification-Cx82K1CD.js`);await n(e.slice(1),{enableConfigs:r,initializeAnalyticsSink:i,shutdownDatadog:a,shutdown1PEventLogging:o,logForDebugging:s,registerPermissionHandler(e,t){e.setNotificationHandler(c(),async e=>t(e.params))}},`2.7.1`);return}if(e[0]===`--daemon-worker`||e[0]?.startsWith(`--daemon-worker=`)){let t=e[0]===`--daemon-worker`?e[1]:e[0].split(`=`)[1],{runDaemonWorker:n}=await import(`./chunks/workerRegistry-Bx6FvTZF.js`);await n(t);return}if(e[0]===`remote-control`||e[0]===`rc`||e[0]===`remote`||e[0]===`sync`||e[0]===`bridge`){t(`cli_bridge_path`);let{enableConfigs:n}=await import(`./chunks/config-CJd9kJ57.js`);n();let{getBridgeDisabledReason:r,checkBridgeMinVersion:i}=await import(`./chunks/bridgeEnabled-DsG2JvIr.js`),{BRIDGE_LOGIN_ERROR:a}=await import(`./chunks/types-BCy5hsQR.js`),{bridgeMain:o}=await import(`./chunks/bridgeMain-DYCShrcV.js`),{exitWithError:s}=await import(`./chunks/process-CWupreF6.js`),{getClaudeAIOAuthTokens:c}=await import(`./chunks/auth-CvHVr2A5.js`),{getBridgeAccessToken:l}=await import(`./chunks/bridgeConfig-B49H_B9L.js`);!c()?.accessToken&&!l()&&s(a);let u=await r();u&&s(`Error: ${u}`);let d=i();d&&s(d);let{waitForPolicyLimitsToLoad:f,isPolicyAllowed:p}=await import(`./chunks/policyLimits-Cdp3QwZ1.js`);await f(),p(`allow_remote_control`)||s(`Error: Remote Control is disabled by your organization's policy.`),await o(e.slice(1));return}if(e[0]===`daemon`){t(`cli_daemon_path`);let{enableConfigs:n}=await import(`./chunks/config-CJd9kJ57.js`);n();let{setShellIfWindows:r}=await import(`./chunks/windowsPaths-ttHiMKpR.js`);r();let{initSinks:i}=await import(`./chunks/sinks-BnkxTOU9.js`);i();let{daemonMain:a}=await import(`./chunks/main-CfkIGrBF.js`);await a(e.slice(1));return}if(e[0]===`autonomy`){t(`cli_autonomy_path`);let{getAutonomyCommandText:n}=await import(`./chunks/autonomy-TtBO2TAe.js`),r=await n(e.slice(1).join(` `));await new Promise((e,t)=>{process.stdout.write(`${r}\n`,n=>{if(n){t(n);return}e()})}),process.exit(0)}if(e.includes(`--bg`)||e.includes(`--background`)){t(`cli_daemon_path`);let{enableConfigs:n}=await import(`./chunks/config-CJd9kJ57.js`);n();let{setShellIfWindows:r}=await import(`./chunks/windowsPaths-ttHiMKpR.js`);r(),await(await import(`./chunks/bg-CngkAkgc.js`)).handleBgStart(e.filter(e=>e!==`--bg`&&e!==`--background`));return}if(e[0]===`ps`||e[0]===`logs`||e[0]===`attach`||e[0]===`kill`){let n=e[0]===`ps`?`status`:e[0];console.error(`[deprecated] Use: claude daemon ${n}${e[1]?` `+e[1]:``}`),t(`cli_daemon_path`);let{enableConfigs:r}=await import(`./chunks/config-CJd9kJ57.js`);r();let{setShellIfWindows:i}=await import(`./chunks/windowsPaths-ttHiMKpR.js`);i();let{initSinks:a}=await import(`./chunks/sinks-BnkxTOU9.js`);a();let{daemonMain:o}=await import(`./chunks/main-CfkIGrBF.js`);await o([e[0]===`ps`?`status`:e[0],...e.slice(1)]);return}if(e[0]===`job`){t(`cli_templates_path`);let{templatesMain:n}=await import(`./chunks/templateJobs-BDKGtmr3.js`);await n(e.slice(1)),process.exit(0)}if(e[0]===`new`||e[0]===`list`||e[0]===`reply`){console.error(`[deprecated] Use: claude job ${e[0]} ${e.slice(1).join(` `)}`.trim()),t(`cli_templates_path`);let{templatesMain:n}=await import(`./chunks/templateJobs-BDKGtmr3.js`);await n(e),process.exit(0)}if((e.includes(`--tmux`)||e.includes(`--tmux=classic`))&&(e.includes(`-w`)||e.includes(`--worktree`)||e.some(e=>e.startsWith(`--worktree=`)))){t(`cli_tmux_worktree_fast_path`);let{enableConfigs:n}=await import(`./chunks/config-CJd9kJ57.js`);n();let{isWorktreeModeEnabled:r}=await import(`./chunks/worktreeModeEnabled-RtizNgNg.js`);if(r()){let{execIntoTmuxWorktree:t}=await import(`./chunks/worktree-DPpgPLLG.js`),n=await t(e);if(n.handled)return;if(n.error){let{exitWithError:e}=await import(`./chunks/process-CWupreF6.js`);e(n.error)}}}e.length===1&&(e[0]===`--update`||e[0]===`--upgrade`)&&(process.argv=[process.argv[0],process.argv[1],`update`]),e.includes(`--bare`)&&(process.env.CLAUDE_CODE_SIMPLE=`1`);let{startCapturingEarlyInput:n}=await import(`./chunks/earlyInput-D3OhUZ4G.js`);n(),t(`cli_before_main_import`);let{main:r}=await import(`./chunks/main-CNwSLti2.js`);t(`cli_after_main_import`),await r(),t(`cli_after_main_complete`)}await m();export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-best",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Reverse-engineered Anthropic Claude Code CLI — interactive AI coding assistant in the terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "claude-code-best <claude-code-best@proton.me>",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{Ct as i,Rn as a,b as o,f as s,g as c,h as l,t as u,tt as d,wt as f,x as p}from"./src-Di342QoJ.js";import{t as m}from"./jsx-runtime-D-D469L8.js";import{B as h,DC as g,EC as _,R as v,aS as y,dS as b,fS as x,oS as S,z as C}from"./loadAgentsDir-Br5fGLLI.js";import{t as w}from"./useKeybinding-FsOnjW6T.js";import{r as T,t as E}from"./directoryCompletion-DAc3u1K2.js";import{r as D,t as O}from"./PromptInputFooterSuggestions-BImBB6Yk.js";function k(){return(0,P.jsx)(o,{dimColor:!0,children:`Claude Code will be able to read files in this directory and make edits when auto-accept edits is on.`})}function A({path:e}){return(0,P.jsxs)(p,{flexDirection:`column`,paddingX:2,gap:1,children:[(0,P.jsx)(o,{color:`permission`,children:e}),(0,P.jsx)(k,{})]})}function j({value:e,onChange:t,onSubmit:n,error:i,suggestions:a,selectedSuggestion:s}){return(0,P.jsxs)(p,{flexDirection:`column`,children:[(0,P.jsx)(o,{children:`Enter the path to the directory:`}),(0,P.jsx)(p,{borderDimColor:!0,borderStyle:`round`,marginY:1,paddingLeft:1,children:(0,P.jsx)(b,{showCursor:!0,placeholder:`Directory path${r.ellipsis}`,value:e,onChange:t,onSubmit:n,columns:80,cursorOffset:e.length,onChangeCursorOffset:()=>{}})}),a.length>0&&(0,P.jsx)(p,{marginBottom:1,children:(0,P.jsx)(O,{suggestions:a,selectedSuggestion:s})}),i&&(0,P.jsx)(o,{color:`error`,children:i})]})}function M({onAddDirectory:e,onCancel:t,permissionContext:n,directoryPath:r}){let[i,a]=(0,N.useState)(``),[u,m]=(0,N.useState)(null),[g,b]=(0,N.useState)([]),[x,S]=(0,N.useState)(0),C=(0,N.useMemo)(()=>F,[]),w=f((0,N.useCallback)(async e=>{if(!e){b([]),S(0);return}b(await E(e)),S(0)},[]),100);(0,N.useEffect)(()=>{w(i)},[i,w]);let T=(0,N.useCallback)(e=>{a(e.id+`/`),m(null)},[]),D=(0,N.useCallback)(async t=>{let r=await h(t,n);r.resultType===`success`?e(r.absolutePath,!1):m(v(r))},[n,e]);d(`confirm:no`,t,{context:`Settings`});let O=(0,N.useCallback)(e=>{if(g.length>0){if(e.key===`tab`){e.preventDefault();let t=g[x];t&&T(t);return}if(e.key===`return`){e.preventDefault();let t=g[x];t&&D(t.id+`/`);return}if(e.key===`up`||e.ctrl&&e.key===`p`){e.preventDefault(),S(e=>e<=0?g.length-1:e-1);return}if(e.key===`down`||e.ctrl&&e.key===`n`){e.preventDefault(),S(e=>e>=g.length-1?0:e+1);return}}},[g,x,T,D]),M=(0,N.useCallback)(n=>{if(r)switch(n){case`yes-session`:e(r,!1);break;case`yes-remember`:e(r,!0);break;case`no`:t();break}},[r,e,t]);return(0,P.jsx)(p,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:O,children:(0,P.jsx)(s,{title:`Add directory to workspace`,onCancel:t,color:`permission`,isCancelActive:!1,inputGuide:r?void 0:e=>e.pending?(0,P.jsxs)(o,{children:[`Press `,e.keyName,` again to exit`]}):(0,P.jsxs)(l,{children:[(0,P.jsx)(c,{shortcut:`Tab`,action:`complete`}),(0,P.jsx)(c,{shortcut:`Enter`,action:`add`}),(0,P.jsx)(_,{action:`confirm:no`,context:`Settings`,fallback:`Esc`,description:`cancel`})]}),children:r?(0,P.jsxs)(p,{flexDirection:`column`,gap:1,children:[(0,P.jsx)(A,{path:r}),(0,P.jsx)(y,{options:C,onChange:M,onCancel:()=>M(`no`)})]}):(0,P.jsxs)(p,{flexDirection:`column`,gap:1,marginX:2,children:[(0,P.jsx)(k,{}),(0,P.jsx)(j,{value:i,onChange:a,onSubmit:D,error:u,suggestions:g,selectedSuggestion:x})]})})})}var N,P,F,I=e((()=>{n(),a(),N=t(a(),1),i(),C(),x(),u(),w(),T(),g(),S(),D(),P=m(),F=[{value:`yes-session`,label:`Yes, for this session`},{value:`yes-remember`,label:`Yes, and remember this directory`},{value:`no`,label:`No`}]}));export{I as n,M as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DR8-3Aex.js";import{Rn as e,S as t,t as n}from"./src-Di342QoJ.js";import{t as r}from"./jsx-runtime-D-D469L8.js";import{Ac as i,Pc as a,Sc as o}from"./paths-DfGsIjPm.js";import{cC as s,lC as c}from"./loadAgentsDir-Br5fGLLI.js";import{n as l}from"./onChangeAppState-C9EvI3EH.js";import{t as u}from"./fpsMetrics-DOI_SIeY.js";import{t as d}from"./stats-CEBfahqM.js";e(),c(),n(),i();var f=r();function p({getFpsMetrics:e,stats:n,initialState:r,children:i}){return(0,f.jsx)(u,{getFpsMetrics:e,children:(0,f.jsx)(d,{store:n,children:(0,f.jsx)(s,{initialState:r,onChangeAppState:l,children:(0,f.jsx)(t,{initialState:o().theme,onThemeSave:e=>a(t=>({...t,theme:e})),children:i})})})})}export{p as App};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-DR8-3Aex.js";import{Rn as e,b as t,f as n,t as r}from"./src-Di342QoJ.js";import{t as i}from"./jsx-runtime-D-D469L8.js";import{Ac as a,Pc as o}from"./paths-DfGsIjPm.js";import{By as s,aS as c}from"./loadAgentsDir-Br5fGLLI.js";e(),r(),a(),s();var l=i();function u({customApiKeyTruncated:e,onDone:r}){function i(t){switch(t){case`yes`:o(t=>({...t,customApiKeyResponses:{...t.customApiKeyResponses,approved:[...t.customApiKeyResponses?.approved??[],e]}})),r(!0);break;case`no`:o(t=>({...t,customApiKeyResponses:{...t.customApiKeyResponses,rejected:[...t.customApiKeyResponses?.rejected??[],e]}})),r(!1);break}}return(0,l.jsxs)(n,{title:`Detected a custom API key in your environment`,color:`warning`,onCancel:()=>i(`no`),children:[(0,l.jsxs)(t,{children:[(0,l.jsx)(t,{bold:!0,children:`ANTHROPIC_API_KEY`}),(0,l.jsxs)(t,{children:[`: sk-ant-...`,e]})]}),(0,l.jsx)(t,{children:`Do you want to use this API key?`}),(0,l.jsx)(c,{defaultValue:`no`,defaultFocusValue:`no`,options:[{label:`Yes`,value:`yes`},{label:(0,l.jsxs)(t,{children:[`No (`,(0,l.jsx)(t,{bold:!0,children:`recommended`}),`)`]}),value:`no`}],onChange:e=>i(e),onCancel:()=>i(`no`)})]})}export{u as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./ApproveApiKey-5xd0lUV7.js";export{e as ApproveApiKey};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DR8-3Aex.js";import{Rn as t,b as n,d as r,f as i,nt as a,t as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{sS as l,uS as u}from"./loadAgentsDir-Br5fGLLI.js";import{t as d}from"./useKeybinding-FsOnjW6T.js";import{t as f}from"./Dialog-DYFGqyDs.js";import{t as p}from"./ListItem-OFARanN7.js";var m=e(t(),1);o(),f(),p(),l(),d();var h=c();function g({sessions:e,onSelect:t,onCancel:o}){u(`assistant-session-chooser`);let[c,l]=(0,m.useState)(0);return a({"select:next":()=>l(t=>(t+1)%e.length),"select:previous":()=>l(t=>(t-1+e.length)%e.length),"select:accept":()=>t(e[c].id)},{context:`Select`}),(0,h.jsx)(i,{title:`Select Assistant Session`,onCancel:o,hideInputGuide:!0,children:(0,h.jsxs)(s,{flexDirection:`column`,gap:1,children:[(0,h.jsx)(n,{children:`Multiple sessions found. Select one to attach:`}),(0,h.jsx)(s,{flexDirection:`column`,children:e.map((e,t)=>(0,h.jsx)(r,{isFocused:c===t,children:(0,h.jsxs)(s,{children:[(0,h.jsx)(n,{children:e.title||e.id.slice(0,20)}),(0,h.jsxs)(n,{dimColor:!0,children:[` [`,e.status,`]`]})]})},e.id))}),(0,h.jsx)(n,{dimColor:!0,children:`↑↓ navigate · Enter select · Esc cancel`})]})})}export{g as AssistantSessionChooser};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n,r}from"./chunk-DR8-3Aex.js";import{n as i,t as a}from"./figures-gfT9mM8P.js";import{B as o,F as s,Q as c,Rn as l,T as u,b as d,f,g as p,h as m,nt as h,t as g,x as _}from"./src-Di342QoJ.js";import{t as v}from"./jsx-runtime-D-D469L8.js";import{Gs as y,Po as b,jo as x,rs as S}from"./paths-DfGsIjPm.js";import{S as C,U as w,_ as T,z as ee}from"./debug-otxXY3j-.js";import{n as E,r as D}from"./analytics-DqMQntaB.js";import{S as te,b as O,x as ne}from"./teammate-DMYOtLTK.js";import{C as k,E as A,d as re,f as ie,m as ae,x as j}from"./startupProfiler-CnDpob1v.js";import{$u as M,A_ as oe,Au as se,BE as ce,Bj as le,Cv as ue,Dv as de,Eu as fe,Ev as N,Fv as pe,In as me,Mn as he,Mu as ge,OT as _e,Oo as ve,Pn as ye,Pu as be,Qh as xe,Qu as Se,Uo as Ce,Uu as we,VE as Te,Wu as Ee,Xg as De,Xy as P,Yy as F,Zg as Oe,Zo as ke,aS as Ae,ab as je,bp as Me,da as Ne,db as Pe,eb as Fe,eg as Ie,eo as Le,fC as Re,fb as ze,hT as Be,j_ as Ve,jn as He,kT as Ue,ku as We,lC as Ge,la as Ke,lb as qe,nC as Je,oS as Ye,rC as Xe,sS as Ze,uC as Qe,uS as $e,ub as et,vp as tt,xp as nt,yp as rt,zj as it,zv as at}from"./loadAgentsDir-Br5fGLLI.js";import{Qn as ot,Xn as st,Zn as ct,fn as lt,sn as ut}from"./prompt-B8M-HLIS.js";import{n as dt,t as ft}from"./browser-DwnUS505.js";import{t as I}from"./useKeybinding-FsOnjW6T.js";import{a as pt,c as mt}from"./constants-41VpZw2G.js";import{t as ht}from"./Dialog-DYFGqyDs.js";import{i as gt,n as _t}from"./mappers-BCiceNt3.js";function vt(e){return typeof e==`object`&&!!e&&`type`in e&&e.type===`local_agent`}function yt(e){return{...e,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:he(e.status)?Date.now()+Ct:void 0}}function bt(e,t){D(`tengu_transcript_view_enter`,{}),t(t=>{let n=t.tasks[e],r=t.viewingAgentTaskId,i=r===void 0?void 0:t.tasks[r],a=r!==void 0&&r!==e&&vt(i)&&i.retain,o=vt(n)&&(!n.retain||n.evictAfter!==void 0),s=t.viewingAgentTaskId!==e||t.viewSelectionMode!==`viewing-agent`;if(!o&&!s&&!a)return t;let c=t.tasks;return(a||o)&&(c={...t.tasks},a&&(c[r]=yt(i)),o&&(c[e]={...n,retain:!0,evictAfter:void 0})),{...t,viewingAgentTaskId:e,viewSelectionMode:`viewing-agent`,tasks:c}})}function xt(e){D(`tengu_transcript_view_exit`,{}),e(e=>{let t=e.viewingAgentTaskId,n={...e,viewingAgentTaskId:void 0,viewSelectionMode:`none`};if(t===void 0)return e.viewSelectionMode===`none`?e:n;let r=e.tasks[t];return!vt(r)||!r.retain?n:{...n,tasks:{...e.tasks,[t]:yt(r)}}})}function St(e,t){t(t=>{let n=t.tasks[e];if(!vt(n))return t;if(n.status===`running`)return n.abortController?.abort(),t;if(n.evictAfter===0)return t;let r=t.viewingAgentTaskId===e;return{...t,tasks:{...t.tasks,[e]:{...yt(n),evictAfter:0}},...r&&{viewingAgentTaskId:void 0,viewSelectionMode:`none`}}})}var Ct,wt=t((()=>{E(),He(),Ct=3e4}));function Tt(e,t,n){let r=st(t,e.toolName);if(!r)return e.toolName;try{let t=r.inputSchema.safeParse(e.input),i=t.success?t.data:{},a=r.userFacingName(i);if(!a)return e.toolName;let o=r.renderToolUseMessage(i,{theme:n,verbose:!1});return o?(0,Et.jsxs)(d,{children:[a,`(`,o,`)`]}):a}catch{return e.toolName}}var Et,Dt=t((()=>{l(),g(),ot(),Et=v()}));function Ot(e){return e===`completed`||e===`failed`||e===`killed`}function kt(e,t){let{isIdle:n,awaitingApproval:r,hasError:i,shutdownRequested:o}=t??{};return i?a.cross:r?a.questionMarkPrefix:o?a.warning:e===`running`?n?a.ellipsis:a.play:e===`completed`?a.tick:e===`failed`||e===`killed`?a.cross:a.bullet}function At(e,t){let{isIdle:n,awaitingApproval:r,hasError:i,shutdownRequested:a}=t??{};return i?`error`:r||a?`warning`:n?`background`:e===`completed`?`success`:e===`failed`?`error`:e===`killed`?`warning`:`background`}function jt(e){return e.shutdownRequested?`stopping`:e.awaitingPlanApproval?`awaiting approval`:e.isIdle?`idle`:(e.progress?.recentActivities&&Ee(e.progress.recentActivities))??e.progress?.lastActivity?.activityDescription??`working`}function Mt(e,t){if(!t)return!1;let n=!1;for(let t of Object.values(e))if(!(!et(t)||process.env.USER_TYPE===`ant`&&be(t))&&(n=!0,t.type!==`in_process_teammate`))return!1;return n}var Nt=t((()=>{i(),ge(),qe(),we()}));function Pt({agent:e,onDone:t,onKillAgent:n,onBack:r}){let[i]=u(),a=(0,Ft.useMemo)(()=>Se(ct()),[]),o=P(e.startTime,e.status===`running`,1e3,e.totalPausedMs??0);h({"confirm:yes":t},{context:`Confirmation`});let s=i=>{i.key===` `?(i.preventDefault(),t()):i.key===`left`&&r?(i.preventDefault(),r()):i.key===`x`&&e.status===`running`&&n&&(i.preventDefault(),n())},c=ve(e.prompt,`plan`),l=e.prompt.length>300?e.prompt.substring(0,297)+`…`:e.prompt,g=e.result?.totalTokens??e.progress?.tokenCount,v=e.result?.totalToolUseCount??e.progress?.toolUseCount;return(0,L.jsx)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:s,children:(0,L.jsx)(f,{title:(0,L.jsxs)(d,{children:[e.selectedAgent?.agentType??`agent`,` › `,e.description||`Async agent`]}),subtitle:(0,L.jsxs)(d,{children:[e.status!==`running`&&(0,L.jsxs)(d,{color:At(e.status),children:[kt(e.status),` `,e.status===`completed`?`Completed`:e.status===`failed`?`Failed`:`Stopped`,` · `]}),(0,L.jsxs)(d,{dimColor:!0,children:[o,g!==void 0&&g>0&&(0,L.jsxs)(L.Fragment,{children:[` · `,ae(g),` tokens`]}),v!==void 0&&v>0&&(0,L.jsxs)(L.Fragment,{children:[` `,`· `,v,` `,v===1?`tool`:`tools`]})]})]}),onCancel:t,color:`background`,inputGuide:t=>t.pending?(0,L.jsxs)(d,{children:[`Press `,t.keyName,` again to exit`]}):(0,L.jsxs)(m,{children:[r&&(0,L.jsx)(p,{shortcut:`←`,action:`go back`}),(0,L.jsx)(p,{shortcut:`Esc/Enter/Space`,action:`close`}),e.status===`running`&&n&&(0,L.jsx)(p,{shortcut:`x`,action:`stop`})]}),children:(0,L.jsxs)(_,{flexDirection:`column`,children:[e.status===`running`&&e.progress?.recentActivities&&e.progress.recentActivities.length>0&&(0,L.jsxs)(_,{flexDirection:`column`,children:[(0,L.jsx)(d,{bold:!0,dimColor:!0,children:`Progress`}),e.progress.recentActivities.map((t,n)=>(0,L.jsxs)(d,{dimColor:n<e.progress.recentActivities.length-1,wrap:`truncate-end`,children:[n===e.progress.recentActivities.length-1?`› `:` `,Tt(t,a,i)]},n))]}),c?(0,L.jsx)(_,{marginTop:1,children:(0,L.jsx)(De,{addMargin:!1,planContent:c})}):(0,L.jsxs)(_,{flexDirection:`column`,marginTop:1,children:[(0,L.jsx)(d,{bold:!0,dimColor:!0,children:`Prompt`}),(0,L.jsx)(d,{wrap:`wrap`,children:l})]}),e.status===`failed`&&e.error&&(0,L.jsxs)(_,{flexDirection:`column`,marginTop:1,children:[(0,L.jsx)(d,{bold:!0,color:`error`,children:`Error`}),(0,L.jsx)(d,{color:`error`,wrap:`wrap`,children:e.error})]})]})})})}var Ft,L,It=t((()=>{Ft=n(l(),1),F(),g(),I(),ot(),M(),j(),Ce(),Oe(),Dt(),Nt(),L=v()}));function Lt(e,t,n,r){if(!e)return`${t} found · ${n} verified`;if(e===`synthesizing`){let e=[`${n} verified`];return r>0&&e.push(`${r} refuted`),e.push(`deduping`),e.join(` · `)}if(e===`verifying`){let e=[`${t} found`,`${n} verified`];return r>0&&e.push(`${r} refuted`),e.join(` · `)}return t>0?`${t} found`:`finding`}function Rt({text:e,phase:t=0}){return(0,R.jsx)(R.Fragment,{children:[...e].map((e,n)=>(0,R.jsx)(d,{color:it(n+t),children:e},n))})}function zt(e,t,n){let r=(0,Ht.useRef)(e),i=(0,Ht.useRef)(t);return n||e<r.current?r.current=e:e>r.current&&t!==i.current&&(r.current+=1,i.current=t),r.current}function Bt({session:e}){let t=Xe().prefersReducedMotion??!1,n=e.reviewProgress,r=e.status===`running`,[,i]=o(r&&!t?Ut:null),a=n?.bugsFound??0,s=n?.bugsVerified??0,c=n?.bugsRefuted??0,l=t||!r,u=zt(a,i,l),f=zt(s,i,l),p=zt(c,i,l),m=Math.floor(i/(Ut*3))%7;if(e.status===`completed`)return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(d,{color:`background`,children:[`◆`,` `]}),(0,R.jsx)(Rt,{text:`ultrareview`,phase:0}),(0,R.jsx)(d,{dimColor:!0,children:` ready · shift+↓ to view`})]});if(e.status===`failed`)return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(d,{color:`background`,children:[`◆`,` `]}),(0,R.jsx)(Rt,{text:`ultrareview`,phase:0}),(0,R.jsxs)(d,{color:`error`,dimColor:!0,children:[` · `,`error`]})]});let h=n?Lt(n.stage,u,f,p):`setting up`;return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(d,{color:`background`,children:[`◇`,` `]}),(0,R.jsx)(Rt,{text:`ultrareview`,phase:r?m:0}),(0,R.jsxs)(d,{dimColor:!0,children:[` · `,h]})]})}function Vt({session:e}){if(e.isRemoteReview)return(0,R.jsx)(Bt,{session:e});if(e.status===`completed`)return(0,R.jsx)(d,{bold:!0,color:`success`,dimColor:!0,children:`done`});if(e.status===`failed`)return(0,R.jsx)(d,{bold:!0,color:`error`,dimColor:!0,children:`error`});if(!e.todoList.length)return(0,R.jsxs)(d,{dimColor:!0,children:[e.status,`…`]});let t=O(e.todoList,e=>e.status===`completed`),n=e.todoList.length;return(0,R.jsxs)(d,{dimColor:!0,children:[t,`/`,n]})}var Ht,R,Ut,Wt=t((()=>{Ht=n(l(),1),y(),Je(),g(),ne(),le(),R=v(),Ut=80}));function z({status:e,label:t,suffix:n}){return(0,B.jsxs)(d,{color:e===`completed`?`success`:e===`failed`?`error`:e===`killed`?`warning`:void 0,dimColor:!0,children:[`(`,t??e,n,`)`]})}function Gt({shell:e}){switch(e.status){case`completed`:return(0,B.jsx)(z,{status:`completed`,label:`done`});case`failed`:return(0,B.jsx)(z,{status:`failed`,label:`error`});case`killed`:return(0,B.jsx)(z,{status:`killed`,label:`stopped`});case`running`:case`pending`:return(0,B.jsx)(z,{status:`running`})}}var B,Kt=t((()=>{g(),B=v()}));function qt({task:e,maxActivityWidth:t}){let n=t??40;switch(e.type){case`local_bash`:return(0,V.jsxs)(d,{children:[k(e.kind===`monitor`?e.description:e.command,n,!0),` `,(0,V.jsx)(Gt,{shell:e})]});case`remote_agent`:return e.isRemoteReview?(0,V.jsx)(d,{children:(0,V.jsx)(Vt,{session:e})}):(0,V.jsxs)(d,{children:[(0,V.jsxs)(d,{dimColor:!0,children:[e.status===`running`||e.status===`pending`?`◇`:`◆`,` `]}),k(e.title,n,!0),(0,V.jsx)(d,{dimColor:!0,children:` · `}),(0,V.jsx)(Vt,{session:e})]});case`local_agent`:return(0,V.jsxs)(d,{children:[k(e.description,n,!0),` `,(0,V.jsx)(z,{status:e.status,label:e.status===`completed`?`done`:void 0,suffix:e.status===`completed`&&!e.notified?`, unread`:void 0})]});case`in_process_teammate`:{let t=jt(e);return(0,V.jsxs)(d,{children:[(0,V.jsxs)(d,{color:ze(e.identity.color),children:[`@`,e.identity.agentName]}),(0,V.jsxs)(d,{dimColor:!0,children:[`: `,k(t,n,!0)]})]})}case`local_workflow`:{let t=e;return(0,V.jsxs)(d,{children:[k(t.workflowName??e.summary??e.description,n,!0),` `,(0,V.jsx)(z,{status:e.status,label:e.status===`running`?`${t.agentCount} ${b(t.agentCount,`agent`)}`:e.status===`completed`?`done`:void 0,suffix:e.status===`completed`&&!e.notified?`, unread`:void 0})]})}case`monitor_mcp`:return(0,V.jsxs)(d,{children:[k(e.description,n,!0),` `,(0,V.jsx)(z,{status:e.status,label:e.status===`completed`?`done`:void 0,suffix:e.status===`completed`&&!e.notified?`, unread`:void 0})]});case`dream`:{let t=e.filesTouched.length,n=e.phase===`updating`&&t>0?`${t} ${b(t,`file`)}`:`${e.sessionsReviewing} ${b(e.sessionsReviewing,`session`)}`;return(0,V.jsxs)(d,{children:[e.description,` `,(0,V.jsxs)(d,{dimColor:!0,children:[`· `,e.phase,` · `,n]}),` `,(0,V.jsx)(z,{status:e.status,label:e.status===`completed`?`done`:void 0,suffix:e.status===`completed`&&!e.notified?`, unread`:void 0})]})}}}var V,Jt=t((()=>{l(),g(),Pe(),j(),x(),y(),Wt(),Kt(),Nt(),V=v()}));function Yt({task:e,onDone:t,onBack:n,onKill:r}){let i=P(e.startTime,e.status===`running`,1e3,0);h({"confirm:yes":t},{context:`Confirmation`});let a=i=>{i.key===` `?(i.preventDefault(),t()):i.key===`left`&&n?(i.preventDefault(),n()):i.key===`x`&&e.status===`running`&&r&&(i.preventDefault(),r())},o=e.turns.filter(e=>e.text!==``),s=o.slice(-Xt),c=o.length-s.length;return(0,H.jsx)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:a,children:(0,H.jsx)(f,{title:`Memory consolidation`,subtitle:(0,H.jsxs)(d,{dimColor:!0,children:[i,` · reviewing `,e.sessionsReviewing,` `,b(e.sessionsReviewing,`session`),e.filesTouched.length>0&&(0,H.jsxs)(H.Fragment,{children:[` `,`· `,e.filesTouched.length,` `,b(e.filesTouched.length,`file`),` touched`]})]}),onCancel:t,color:`background`,inputGuide:t=>t.pending?(0,H.jsxs)(d,{children:[`Press `,t.keyName,` again to exit`]}):(0,H.jsxs)(m,{children:[n&&(0,H.jsx)(p,{shortcut:`←`,action:`go back`}),(0,H.jsx)(p,{shortcut:`Esc/Enter/Space`,action:`close`}),e.status===`running`&&r&&(0,H.jsx)(p,{shortcut:`x`,action:`stop`})]}),children:(0,H.jsxs)(_,{flexDirection:`column`,gap:1,children:[(0,H.jsxs)(d,{children:[(0,H.jsx)(d,{bold:!0,children:`Status:`}),` `,e.status===`running`?(0,H.jsx)(d,{color:`background`,children:`running`}):e.status===`completed`?(0,H.jsx)(d,{color:`success`,children:e.status}):(0,H.jsx)(d,{color:`error`,children:e.status})]}),s.length===0?(0,H.jsx)(d,{dimColor:!0,children:e.status===`running`?`Starting…`:`(no text output)`}):(0,H.jsxs)(H.Fragment,{children:[c>0&&(0,H.jsxs)(d,{dimColor:!0,children:[`(`,c,` earlier `,b(c,`turn`),`)`]}),s.map((e,t)=>(0,H.jsxs)(_,{flexDirection:`column`,children:[(0,H.jsx)(d,{wrap:`wrap`,children:e.text}),e.toolUseCount>0&&(0,H.jsxs)(d,{dimColor:!0,children:[` `,`(`,e.toolUseCount,` `,b(e.toolUseCount,`tool`),`)`]})]},t))]})]})})})}var H,Xt,Zt=t((()=>{l(),F(),g(),I(),x(),H=v(),Xt=6}));function Qt({teammate:e,onDone:t,onKill:n,onBack:r,onForeground:i}){let[a]=u(),o=(0,$t.useMemo)(()=>Se(ct()),[]),s=P(e.startTime,e.status===`running`,1e3,e.totalPausedMs??0);h({"confirm:yes":t},{context:`Confirmation`});let c=a=>{a.key===` `?(a.preventDefault(),t()):a.key===`left`&&r?(a.preventDefault(),r()):a.key===`x`&&e.status===`running`&&n?(a.preventDefault(),n()):a.key===`f`&&e.status===`running`&&i&&(a.preventDefault(),i())},l=jt(e),g=e.result?.totalTokens??e.progress?.tokenCount,v=e.result?.totalToolUseCount??e.progress?.toolUseCount,y=A(e.prompt,300);return(0,U.jsx)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:c,children:(0,U.jsxs)(f,{title:(0,U.jsxs)(d,{children:[(0,U.jsxs)(d,{color:ze(e.identity.color),children:[`@`,e.identity.agentName]}),l&&(0,U.jsxs)(d,{dimColor:!0,children:[` (`,l,`)`]})]}),subtitle:(0,U.jsxs)(d,{children:[e.status!==`running`&&(0,U.jsxs)(d,{color:e.status===`completed`?`success`:e.status===`killed`?`warning`:`error`,children:[e.status===`completed`?`Completed`:e.status===`failed`?`Failed`:`Stopped`,` · `]}),(0,U.jsxs)(d,{dimColor:!0,children:[s,g!==void 0&&g>0&&(0,U.jsxs)(U.Fragment,{children:[` · `,ae(g),` tokens`]}),v!==void 0&&v>0&&(0,U.jsxs)(U.Fragment,{children:[` `,`· `,v,` `,v===1?`tool`:`tools`]})]})]}),onCancel:t,color:`background`,inputGuide:t=>t.pending?(0,U.jsxs)(d,{children:[`Press `,t.keyName,` again to exit`]}):(0,U.jsxs)(m,{children:[r&&(0,U.jsx)(p,{shortcut:`←`,action:`go back`}),(0,U.jsx)(p,{shortcut:`Esc/Enter/Space`,action:`close`}),e.status===`running`&&n&&(0,U.jsx)(p,{shortcut:`x`,action:`stop`}),e.status===`running`&&i&&(0,U.jsx)(p,{shortcut:`f`,action:`foreground`})]}),children:[e.status===`running`&&e.progress?.recentActivities&&e.progress.recentActivities.length>0&&(0,U.jsxs)(_,{flexDirection:`column`,children:[(0,U.jsx)(d,{bold:!0,dimColor:!0,children:`Progress`}),e.progress.recentActivities.map((t,n)=>(0,U.jsxs)(d,{dimColor:n<e.progress.recentActivities.length-1,wrap:`truncate-end`,children:[n===e.progress.recentActivities.length-1?`› `:` `,Tt(t,o,a)]},n))]}),(0,U.jsxs)(_,{flexDirection:`column`,marginTop:1,children:[(0,U.jsx)(d,{bold:!0,dimColor:!0,children:`Prompt`}),(0,U.jsx)(d,{wrap:`wrap`,children:y})]}),e.status===`failed`&&e.error&&(0,U.jsxs)(_,{flexDirection:`column`,marginTop:1,children:[(0,U.jsx)(d,{bold:!0,color:`error`,children:`Error`}),(0,U.jsx)(d,{color:`error`,wrap:`wrap`,children:e.error})]})]})})}var $t,U,en=t((()=>{$t=n(l(),1),F(),g(),I(),ot(),M(),j(),Pe(),Dt(),Nt(),U=v()}));function tn(e,t){if(e===`ExitPlanMode`)return`Review the plan in Claude Code on the web`;if(!t||typeof t!=`object`)return e;if(e===`AskUserQuestion`&&`questions`in t){let e=t.questions;if(Array.isArray(e)&&e[0]&&typeof e[0]==`object`){let t=`question`in e[0]&&typeof e[0].question==`string`&&e[0].question?e[0].question:`header`in e[0]&&typeof e[0].header==`string`?e[0].header:null;if(t)return`Answer in browser: ${A(t.replace(/\s+/g,` `).trim(),50)}`}}for(let n of Object.values(t))if(typeof n==`string`&&n.trim())return`${e} ${A(n.replace(/\s+/g,` `).trim(),60)}`;return e}function nn({session:e,onDone:t,onBack:n,onKill:r}){let i=e.status===`running`||e.status===`pending`,o=e.ultraplanPhase,s=i?o?cn[o]:`running`:e.status,l=P(e.startTime,i,1e3,0,e.endTime),{agentsWorking:u,toolCalls:p,lastToolCall:m}=(0,W.useMemo)(()=>{let t=0,n=0,r=null;for(let i of e.log){if(i.type!==`assistant`)continue;let e=i.message?.content??[];for(let i of e)i.type===`tool_use`&&(n++,r=i,(i.name===`Agent`||i.name===`Task`)&&t++)}return{agentsWorking:1+t,toolCalls:n,lastToolCall:r?tn(r.name,r.input):null}},[e.log]),h=N(e.sessionId),g=n??(()=>t(`Remote session details dismissed`,{display:`system`})),[v,y]=(0,W.useState)(!1);return v?(0,G.jsx)(f,{title:`Stop ultraplan?`,onCancel:()=>y(!1),color:`background`,children:(0,G.jsxs)(_,{flexDirection:`column`,gap:1,children:[(0,G.jsx)(d,{dimColor:!0,children:`This will terminate the Claude Code on the web session.`}),(0,G.jsx)(Ae,{options:[{label:`Terminate session`,value:`stop`},{label:`Back`,value:`back`}],onChange:e=>{e===`stop`?(r?.(),g()):y(!1)}})]})}):(0,G.jsx)(f,{title:(0,G.jsxs)(d,{children:[(0,G.jsxs)(d,{color:`background`,children:[o===`plan_ready`?`◆`:`◇`,` `]}),(0,G.jsx)(d,{bold:!0,children:`ultraplan`}),(0,G.jsxs)(d,{dimColor:!0,children:[` · `,l,` · `,s]})]}),onCancel:g,color:`background`,children:(0,G.jsxs)(_,{flexDirection:`column`,gap:1,children:[(0,G.jsxs)(d,{children:[o===`plan_ready`&&(0,G.jsxs)(d,{color:`success`,children:[a.tick,` `]}),u,` `,b(u,`agent`),` `,o?ln[o]:`working`,` · `,p,` tool`,` `,b(p,`call`)]}),m&&(0,G.jsx)(d,{dimColor:!0,children:m}),(0,G.jsx)(c,{url:h,children:(0,G.jsx)(d,{dimColor:!0,children:h})}),(0,G.jsx)(Ae,{options:[{label:`Review in Claude Code on the web`,value:`open`},...r&&i?[{label:`Stop ultraplan`,value:`stop`}]:[],{label:`Back`,value:`back`}],onChange:e=>{switch(e){case`open`:dt(h),t();return;case`stop`:y(!0);return;case`back`:g();return}}})]})})}function rn({stage:e,completed:t,hasProgress:n}){let r=e?un.indexOf(e):-1,i=!t&&!n;return(0,G.jsxs)(d,{children:[i?(0,G.jsx)(d,{color:`background`,children:`Setup`}):(0,G.jsx)(d,{dimColor:!0,children:`Setup`}),(0,G.jsx)(d,{dimColor:!0,children:` → `}),un.map((e,n)=>{let a=!t&&!i&&n===r;return(0,G.jsxs)(W.Fragment,{children:[n>0&&(0,G.jsx)(d,{dimColor:!0,children:` → `}),a?(0,G.jsx)(d,{color:`background`,children:dn[e]}):(0,G.jsx)(d,{dimColor:!0,children:dn[e]})]},e)}),t&&(0,G.jsx)(d,{color:`success`,children:` ✓`})]})}function an(e){let t=e.reviewProgress;if(!t)return e.status===`completed`?`done`:`setting up`;let n=t.bugsVerified,r=t.bugsRefuted??0;if(e.status===`completed`){let e=[`${n} ${b(n,`finding`)}`];return r>0&&e.push(`${r} refuted`),e.join(` · `)}return Lt(t.stage,t.bugsFound,n,r)}function on({session:e,onDone:t,onBack:n,onKill:r}){let i=e.status===`completed`,a=e.status===`running`||e.status===`pending`,[o,s]=(0,W.useState)(!1),l=P(e.startTime,a,1e3,0,e.endTime),u=()=>t(`Remote session details dismissed`,{display:`system`}),h=n??u,g=N(e.sessionId),v=i?`ready`:a?`running`:e.status;if(o)return(0,G.jsx)(f,{title:`Stop ultrareview?`,onCancel:()=>s(!1),color:`background`,children:(0,G.jsxs)(_,{flexDirection:`column`,gap:1,children:[(0,G.jsx)(d,{dimColor:!0,children:`This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded.`}),(0,G.jsx)(Ae,{options:[{label:`Stop ultrareview`,value:`stop`},{label:`Back`,value:`back`}],onChange:e=>{e===`stop`?(r?.(),h()):s(!1)}})]})});let y=i?[{label:`Open in Claude Code on the web`,value:`open`},{label:`Dismiss`,value:`dismiss`}]:[{label:`Open in Claude Code on the web`,value:`open`},...r&&a?[{label:`Stop ultrareview`,value:`stop`}]:[],{label:`Back`,value:`back`}];return(0,G.jsx)(f,{title:(0,G.jsxs)(d,{children:[(0,G.jsxs)(d,{color:`background`,children:[i?`◆`:`◇`,` `]}),(0,G.jsx)(d,{bold:!0,children:`ultrareview`}),(0,G.jsxs)(d,{dimColor:!0,children:[` · `,l,` · `,v]})]}),onCancel:h,color:`background`,inputGuide:e=>e.pending?(0,G.jsxs)(d,{children:[`Press `,e.keyName,` again to exit`]}):(0,G.jsxs)(m,{children:[(0,G.jsx)(p,{shortcut:`Enter`,action:`select`}),(0,G.jsx)(p,{shortcut:`Esc`,action:`go back`})]}),children:(0,G.jsxs)(_,{flexDirection:`column`,gap:1,children:[(0,G.jsx)(rn,{stage:e.reviewProgress?.stage,completed:i,hasProgress:!!e.reviewProgress}),(0,G.jsxs)(_,{flexDirection:`column`,children:[(0,G.jsx)(d,{children:an(e)}),(0,G.jsx)(c,{url:g,children:(0,G.jsx)(d,{dimColor:!0,children:g})})]}),(0,G.jsx)(Ae,{options:y,onChange:e=>{switch(e){case`open`:dt(g),t();break;case`stop`:s(!0);break;case`back`:h();break;case`dismiss`:u();break}}})]})})}function sn({session:e,toolUseContext:t,onDone:n,onBack:r,onKill:i}){let[a,o]=(0,W.useState)(!1),[s,l]=(0,W.useState)(null),u=(0,W.useMemo)(()=>e.isUltraplan||e.isRemoteReview?[]:ke(gt(e.log)).filter(e=>e.type!==`progress`).slice(-3),[e]);if(e.isUltraplan)return(0,G.jsx)(nn,{session:e,onDone:n,onBack:r,onKill:i});if(e.isRemoteReview)return(0,G.jsx)(on,{session:e,onDone:n,onBack:r,onKill:i});let h=()=>n(`Remote session details dismissed`,{display:`system`}),g=e=>{e.key===` `?(e.preventDefault(),n(`Remote session details dismissed`,{display:`system`})):e.key===`left`&&r?(e.preventDefault(),r()):e.key===`t`&&!a?(e.preventDefault(),v()):e.key===`return`&&(e.preventDefault(),h())};async function v(){o(!0),l(null);try{await at(e.sessionId)}catch(e){l(ee(e))}finally{o(!1)}}let y=A(e.title,50),b=e.status===`pending`?`starting`:e.status;return(0,G.jsx)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:g,children:(0,G.jsxs)(f,{title:`Remote session details`,onCancel:h,color:`background`,inputGuide:e=>e.pending?(0,G.jsxs)(d,{children:[`Press `,e.keyName,` again to exit`]}):(0,G.jsxs)(m,{children:[r&&(0,G.jsx)(p,{shortcut:`←`,action:`go back`}),(0,G.jsx)(p,{shortcut:`Esc/Enter/Space`,action:`close`}),!a&&(0,G.jsx)(p,{shortcut:`t`,action:`teleport`})]}),children:[(0,G.jsxs)(_,{flexDirection:`column`,children:[(0,G.jsxs)(d,{children:[(0,G.jsx)(d,{bold:!0,children:`Status`}),`:`,` `,b===`running`||b===`starting`?(0,G.jsx)(d,{color:`background`,children:b}):b===`completed`?(0,G.jsx)(d,{color:`success`,children:b}):(0,G.jsx)(d,{color:`error`,children:b})]}),(0,G.jsxs)(d,{children:[(0,G.jsx)(d,{bold:!0,children:`Runtime`}),`: `,re((e.endTime??Date.now())-e.startTime)]}),(0,G.jsxs)(d,{wrap:`truncate-end`,children:[(0,G.jsx)(d,{bold:!0,children:`Title`}),`: `,y]}),(0,G.jsxs)(d,{children:[(0,G.jsx)(d,{bold:!0,children:`Progress`}),`: `,(0,G.jsx)(Vt,{session:e})]}),(0,G.jsxs)(d,{children:[(0,G.jsx)(d,{bold:!0,children:`Session URL`}),`:`,` `,(0,G.jsx)(c,{url:N(e.sessionId),children:(0,G.jsx)(d,{dimColor:!0,children:N(e.sessionId)})})]})]}),e.log.length>0&&(0,G.jsxs)(_,{flexDirection:`column`,marginTop:1,children:[(0,G.jsxs)(d,{children:[(0,G.jsx)(d,{bold:!0,children:`Recent messages`}),`:`]}),(0,G.jsx)(_,{flexDirection:`column`,height:10,overflowY:`hidden`,children:u.map((e,n)=>(0,G.jsx)(xe,{message:e,lookups:Le,addMargin:n>0,tools:t.options.tools,commands:t.options.commands,verbose:t.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:`condensed`,isTranscriptMode:!1,isStatic:!0},n))}),(0,G.jsx)(_,{marginTop:1,children:(0,G.jsxs)(d,{dimColor:!0,italic:!0,children:[`Showing last `,u.length,` of `,e.log.length,` messages`]})})]}),s&&(0,G.jsx)(_,{marginTop:1,children:(0,G.jsxs)(d,{color:`error`,children:[`Teleport failed: `,s]})}),a&&(0,G.jsx)(d,{color:`background`,children:`Teleporting to session…`})]})})}var W,G,cn,ln,un,dn,fn=t((()=>{i(),W=n(l(),1),y(),F(),g(),de(),S(),ut(),lt(),ft(),w(),j(),_t(),Ce(),x(),pe(),Ye(),Ie(),Wt(),G=v(),cn={needs_input:`input required`,plan_ready:`ready`},ln={needs_input:`waiting`,plan_ready:`done`},un=[`finding`,`verifying`,`synthesizing`],dn={finding:`Find`,verifying:`Verify`,synthesizing:`Dedupe`}}));async function pn(e){let t=ye(e.id);try{let e=await C(t,gn);return{content:e.content,bytesTotal:e.bytesTotal}}catch{return{content:``,bytesTotal:0}}}function mn({shell:e,onDone:t,onKillShell:n,onBack:r}){let{columns:i}=s(),[a,o]=(0,K.useState)(()=>pn(e)),c=(0,K.useDeferredValue)(a);(0,K.useEffect)(()=>{if(e.status!==`running`)return;let t=setInterval((e,t)=>e(pn(t)),1e3,o,e);return()=>clearInterval(t)},[e.id,e.status]);let l=()=>t(`Shell details dismissed`,{display:`system`});h({"confirm:yes":l},{context:`Confirmation`});let u=i=>{i.key===` `?(i.preventDefault(),t(`Shell details dismissed`,{display:`system`})):i.key===`left`&&r?(i.preventDefault(),r()):i.key===`x`&&e.status===`running`&&n&&(i.preventDefault(),n())},g=e.kind===`monitor`,v=A(e.command,280);return(0,q.jsx)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:u,children:(0,q.jsxs)(f,{title:g?`Monitor details`:`Shell details`,onCancel:l,color:`background`,inputGuide:t=>t.pending?(0,q.jsxs)(d,{children:[`Press `,t.keyName,` again to exit`]}):(0,q.jsxs)(m,{children:[r&&(0,q.jsx)(p,{shortcut:`←`,action:`go back`}),(0,q.jsx)(p,{shortcut:`Esc/Enter/Space`,action:`close`}),e.status===`running`&&n&&(0,q.jsx)(p,{shortcut:`x`,action:`stop`})]}),children:[(0,q.jsxs)(_,{flexDirection:`column`,children:[(0,q.jsxs)(d,{children:[(0,q.jsx)(d,{bold:!0,children:`Status:`}),` `,e.status===`running`?(0,q.jsxs)(d,{color:`background`,children:[e.status,e.result?.code!==void 0&&` (exit code: ${e.result.code})`]}):e.status===`completed`?(0,q.jsxs)(d,{color:`success`,children:[e.status,e.result?.code!==void 0&&` (exit code: ${e.result.code})`]}):(0,q.jsxs)(d,{color:`error`,children:[e.status,e.result?.code!==void 0&&` (exit code: ${e.result.code})`]})]}),(0,q.jsxs)(d,{children:[(0,q.jsx)(d,{bold:!0,children:`Runtime:`}),` `,re((e.endTime??Date.now())-e.startTime)]}),(0,q.jsxs)(d,{wrap:`wrap`,children:[(0,q.jsx)(d,{bold:!0,children:g?`Script:`:`Command:`}),` `,v]})]}),(0,q.jsxs)(_,{flexDirection:`column`,children:[(0,q.jsx)(d,{bold:!0,children:`Output:`}),(0,q.jsx)(K.Suspense,{fallback:(0,q.jsx)(d,{dimColor:!0,children:`Loading output…`}),children:(0,q.jsx)(hn,{outputPromise:c,columns:i})})]})]})})}function hn({outputPromise:e,columns:t}){let{content:n,bytesTotal:r}=(0,K.use)(e);if(!n)return(0,q.jsx)(d,{dimColor:!0,children:`No output available`});let i=[],a=n.length;for(let e=0;e<10&&a>0;e++){let e=n.lastIndexOf(`
|
|
2
|
-
`,a-1);i.push(e+1),a=e}i.reverse();let o=r>n.length,s=[];for(let e=0;e<i.length;e++){let t=i[e],r=e<i.length-1?i[e+1]-1:n.length,a=n.slice(t,r);a&&s.push(a)}return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(_,{borderStyle:`round`,paddingX:1,flexDirection:`column`,height:12,maxWidth:t-6,children:s.map((e,t)=>(0,q.jsx)(d,{wrap:`truncate-end`,children:e},t))}),(0,q.jsxs)(d,{dimColor:!0,italic:!0,children:[`Showing ${s.length} lines`,o?` of ${ie(r)}`:``]})]})}var K,q,gn,_n=t((()=>{K=n(l(),1),Be(),g(),I(),j(),T(),me(),q=v(),gn=8192})),vn=t((()=>{g()})),yn=t((()=>{g()})),bn=r({MonitorMcpDetailDialog:()=>xn});function xn({task:e,onBack:t,onKill:n}){let r=P(e.startTime,e.status===`running`,1e3,0);return h({},{context:`MonitorMcpDetail`}),(0,J.jsx)(_,{flexDirection:`column`,tabIndex:0,borderStyle:`round`,onKeyDown:r=>{r.key===`left`&&t?(r.preventDefault(),t()):r.key===`x`&&e.status===`running`&&n&&(r.preventDefault(),n())},children:(0,J.jsx)(f,{title:`MCP Monitor`,subtitle:(0,J.jsxs)(d,{dimColor:!0,children:[r,` · `,e.serverName,`:`,e.resourceUri]}),onCancel:t??(()=>{}),inputGuide:()=>(0,J.jsxs)(m,{children:[t&&(0,J.jsx)(p,{shortcut:`←`,action:`go back`}),(0,J.jsx)(p,{shortcut:`Esc`,action:`close`}),e.status===`running`&&n&&(0,J.jsx)(p,{shortcut:`x`,action:`stop`})]}),children:(0,J.jsxs)(_,{flexDirection:`column`,gap:1,children:[(0,J.jsxs)(d,{children:[(0,J.jsx)(d,{bold:!0,children:`Status:`}),` `,e.status===`running`?(0,J.jsx)(d,{color:`ansi:green`,children:`running`}):e.status===`completed`?(0,J.jsx)(d,{color:`ansi:green`,children:e.status}):(0,J.jsx)(d,{color:`ansi:red`,children:e.status})]}),(0,J.jsxs)(d,{children:[(0,J.jsx)(d,{bold:!0,children:`Description:`}),` `,e.description]}),(0,J.jsxs)(d,{children:[(0,J.jsx)(d,{bold:!0,children:`Server:`}),` `,e.serverName]}),(0,J.jsxs)(d,{children:[(0,J.jsx)(d,{bold:!0,children:`Resource:`}),` `,e.resourceUri]}),e.command&&(0,J.jsxs)(d,{children:[(0,J.jsx)(d,{bold:!0,children:`Command:`}),` `,e.command]})]})})})}var J,Sn=t((()=>{l(),F(),g(),I(),vn(),ht(),yn(),J=v()}));function Cn(e,t){return Object.values(e??{}).filter(et).filter(e=>!(e.type===`local_agent`&&e.id===t))}function wn({onDone:e,toolUseContext:t,initialDetailTaskId:n}){let r=Qe(e=>e.tasks),i=Qe(e=>e.foregroundedTaskId),a=Qe(e=>e.expandedView)===`teammates`,o=Re(),s=Ue(`chat:killAgents`,`Chat`,`ctrl+x ctrl+k`),c=r,l=(0,X.useRef)(!1),[u,g]=(0,X.useState)(()=>{if(n)return l.current=!0,{mode:`detail`,itemId:n};let e=Cn(c,i);return e.length===1?(l.current=!0,{mode:`detail`,itemId:e[0].id}):{mode:`list`}}),[v,y]=(0,X.useState)(0);$e(`background-tasks-dialog`);let{bashTasks:b,remoteSessions:x,agentTasks:S,teammateTasks:C,workflowTasks:w,mcpMonitors:T,dreamTasks:ee,allSelectableItems:E}=(0,X.useMemo)(()=>{let e=Object.values(c??{}).filter(et).map(Tn).sort((e,t)=>{let n=e.status,r=t.status;if(n===`running`&&r!==`running`)return-1;if(n!==`running`&&r===`running`)return 1;let i=`task`in e?e.task.startTime:0;return(`task`in t?t.task.startTime:0)-i}),t=e.filter(e=>e.type===`local_bash`),n=e.filter(e=>e.type===`remote_agent`),r=e.filter(e=>e.type===`local_agent`&&e.id!==i),o=e.filter(e=>e.type===`local_workflow`),s=e.filter(e=>e.type===`monitor_mcp`),l=e.filter(e=>e.type===`dream`),u=a?[]:e.filter(e=>e.type===`in_process_teammate`),d=u.length>0?[{id:`__leader__`,type:`leader`,label:`@${pt}`,status:`running`}]:[];return{bashTasks:t,remoteSessions:n,agentTasks:r,workflowTasks:o,mcpMonitors:s,dreamTasks:l,teammateTasks:[...d,...u],allSelectableItems:[...d,...u,...t,...s,...n,...r,...o,...l]}},[c,i,a]),D=E[v]??null;h({"confirm:previous":()=>y(e=>Math.max(0,e-1)),"confirm:next":()=>y(e=>Math.min(E.length-1,e+1)),"confirm:yes":()=>{let t=E[v];t&&(t.type===`leader`?(xt(o),e(`Viewing leader`,{display:`system`})):g({mode:`detail`,itemId:t.id}))}},{context:`Confirmation`,isActive:u.mode===`list`});let ne=t=>{if(u.mode!==`list`)return;if(t.key===`left`){t.preventDefault(),e(`Background tasks dialog dismissed`,{display:`system`});return}let n=E[v];n&&(t.key===`x`&&(t.preventDefault(),n.type===`local_bash`&&n.status===`running`?k(n.id):n.type===`local_agent`&&n.status===`running`?A(n.id):n.type===`in_process_teammate`&&n.status===`running`?re(n.id):n.type===`local_workflow`&&n.status===`running`&&Q?Q(n.id,o):n.type===`monitor_mcp`&&n.status===`running`&&$?$(n.id,o):n.type===`dream`&&n.status===`running`?ie(n.id):n.type===`remote_agent`&&n.status===`running`&&(n.task.isUltraplan?Ne(n.id,n.task.sessionId,o):ae(n.id))),t.key===`f`&&(n.type===`in_process_teammate`&&n.status===`running`?(t.preventDefault(),bt(n.id,o),e(`Viewing teammate`,{display:`system`})):n.type===`leader`&&(t.preventDefault(),xt(o),e(`Viewing leader`,{display:`system`}))))};async function k(e){await fe.kill(e,o)}async function A(e){await se.kill(e,o)}async function re(e){await Fe.kill(e,o)}async function ie(e){await Me.kill(e,o)}async function ae(e){await ue.kill(e,o)}let j=(0,X.useEffectEvent)(e);(0,X.useEffect)(()=>{if(u.mode!==`list`){let e=(c??{})[u.itemId];(!e||e.type!==`local_workflow`&&!et(e))&&(l.current?j(`Background tasks dialog dismissed`,{display:`system`}):g({mode:`list`}))}let e=E.length;v>=e&&e>0&&y(e-1)},[u,c,v,E,j]);let M=()=>{l.current&&E.length<=1?e(`Background tasks dialog dismissed`,{display:`system`}):(l.current=!1,g({mode:`list`}))};if(u.mode!==`list`&&c){let n=c[u.itemId];if(!n)return null;switch(n.type){case`local_bash`:return(0,Z.jsx)(mn,{shell:n,onDone:e,onKillShell:()=>void k(n.id),onBack:M},`shell-${n.id}`);case`local_agent`:return(0,Z.jsx)(Pt,{agent:n,onDone:e,onKillAgent:()=>void A(n.id),onBack:M},`agent-${n.id}`);case`remote_agent`:return(0,Z.jsx)(sn,{session:n,onDone:e,toolUseContext:t,onBack:M,onKill:n.status===`running`?n.isUltraplan?()=>void Ne(n.id,n.sessionId,o):()=>void ae(n.id):void 0},`session-${n.id}`);case`in_process_teammate`:return(0,Z.jsx)(Qt,{teammate:n,onDone:e,onKill:n.status===`running`?()=>void re(n.id):void 0,onBack:M,onForeground:n.status===`running`?()=>{bt(n.id,o),e(`Viewing teammate`,{display:`system`})}:void 0},`teammate-${n.id}`);case`local_workflow`:{let e=n.status===`running`&&Q?()=>Q(n.id,o):void 0;return(0,Z.jsx)(_,{flexDirection:`column`,tabIndex:0,borderStyle:`round`,onKeyDown:t=>{t.key===`left`?(t.preventDefault(),M()):t.key===`x`&&e&&(t.preventDefault(),e())},children:(0,Z.jsx)(f,{title:n.workflowName,subtitle:(0,Z.jsxs)(d,{dimColor:!0,children:[n.status,n.summary?` · ${n.summary}`:``]}),onCancel:M,inputGuide:()=>(0,Z.jsxs)(m,{children:[(0,Z.jsx)(p,{shortcut:`←`,action:`go back`}),(0,Z.jsx)(p,{shortcut:`Esc`,action:`close`}),e&&(0,Z.jsx)(p,{shortcut:`x`,action:`stop`})]}),children:n.status===`failed`&&n.error?(0,Z.jsxs)(_,{flexDirection:`column`,children:[(0,Z.jsxs)(d,{color:`error`,children:[`失败原因:`,n.error]}),(0,Z.jsx)(d,{color:`subtle`,children:`用 /workflows 查看阶段与 agent 实时进度`})]}):(0,Z.jsx)(d,{color:`subtle`,children:`用 /workflows 查看阶段与 agent 实时进度`})})},`workflow-${n.id}`)}case`monitor_mcp`:return Dn?(0,Z.jsx)(Dn,{task:n,onKill:n.status===`running`&&$?()=>$(n.id,o):void 0,onBack:M},`monitor-mcp-${n.id}`):null;case`dream`:return(0,Z.jsx)(Yt,{task:n,onDone:()=>e(`Background tasks dialog dismissed`,{display:`system`}),onBack:M,onKill:n.status===`running`?()=>void ie(n.id):void 0},`dream-${n.id}`)}}let oe=O(b,e=>e.status===`running`),ce=O(x,e=>e.status===`running`||e.status===`pending`)+O(S,e=>e.status===`running`),le=O(C,e=>e.status===`running`),de=te([...le>0?[(0,Z.jsxs)(d,{children:[le,` `,le===1?`agent`:`agents`]},`teammates`)]:[],...oe>0?[(0,Z.jsxs)(d,{children:[oe,` `,oe===1?`active shell`:`active shells`]},`shells`)]:[],...ce>0?[(0,Z.jsxs)(d,{children:[ce,` `,ce===1?`active agent`:`active agents`]},`agents`)]:[]],e=>(0,Z.jsx)(d,{children:` · `},`separator-${e}`)),N=[(0,Z.jsx)(p,{shortcut:`↑/↓`,action:`select`},`upDown`),(0,Z.jsx)(p,{shortcut:`Enter`,action:`view`},`enter`),...D?.type===`in_process_teammate`&&D.status===`running`?[(0,Z.jsx)(p,{shortcut:`f`,action:`foreground`},`foreground`)]:[],...(D?.type===`local_bash`||D?.type===`local_agent`||D?.type===`in_process_teammate`||D?.type===`local_workflow`||D?.type===`monitor_mcp`||D?.type===`dream`||D?.type===`remote_agent`)&&D.status===`running`?[(0,Z.jsx)(p,{shortcut:`x`,action:`stop`},`kill`)]:[],...S.some(e=>e.status===`running`)?[(0,Z.jsx)(p,{shortcut:s,action:`stop all agents`},`kill-all`)]:[],(0,Z.jsx)(p,{shortcut:`←/Esc`,action:`close`},`esc`)],pe=()=>e(`Background tasks dialog dismissed`,{display:`system`});function me(e){return e.pending?(0,Z.jsxs)(d,{children:[`Press `,e.keyName,` again to exit`]}):(0,Z.jsx)(m,{children:N})}return(0,Z.jsx)(_,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:ne,children:(0,Z.jsx)(f,{title:`Background tasks`,subtitle:(0,Z.jsx)(Z.Fragment,{children:de}),onCancel:pe,color:`background`,inputGuide:me,children:E.length===0?(0,Z.jsx)(d,{dimColor:!0,children:`No tasks currently running`}):(0,Z.jsxs)(_,{flexDirection:`column`,children:[C.length>0&&(0,Z.jsxs)(_,{flexDirection:`column`,children:[(b.length>0||x.length>0||S.length>0)&&(0,Z.jsxs)(d,{dimColor:!0,children:[(0,Z.jsxs)(d,{bold:!0,children:[` `,`Agents`]}),` (`,O(C,e=>e.type!==`leader`),`)`]}),(0,Z.jsx)(_,{flexDirection:`column`,children:(0,Z.jsx)(En,{teammateTasks:C,currentSelectionId:D?.id})})]}),b.length>0&&(0,Z.jsxs)(_,{flexDirection:`column`,marginTop:+(C.length>0),children:[(C.length>0||x.length>0||S.length>0)&&(0,Z.jsxs)(d,{dimColor:!0,children:[(0,Z.jsxs)(d,{bold:!0,children:[` `,`Shells`]}),` (`,b.length,`)`]}),(0,Z.jsx)(_,{flexDirection:`column`,children:b.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===D?.id},e.id))})]}),T.length>0&&(0,Z.jsxs)(_,{flexDirection:`column`,marginTop:+(C.length>0||b.length>0),children:[(0,Z.jsxs)(d,{dimColor:!0,children:[(0,Z.jsxs)(d,{bold:!0,children:[` `,`Monitors`]}),` (`,T.length,`)`]}),(0,Z.jsx)(_,{flexDirection:`column`,children:T.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===D?.id},e.id))})]}),x.length>0&&(0,Z.jsxs)(_,{flexDirection:`column`,marginTop:+(C.length>0||b.length>0||T.length>0),children:[(0,Z.jsxs)(d,{dimColor:!0,children:[(0,Z.jsxs)(d,{bold:!0,children:[` `,`Remote agents`]}),` (`,x.length,`)`]}),(0,Z.jsx)(_,{flexDirection:`column`,children:x.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===D?.id},e.id))})]}),S.length>0&&(0,Z.jsxs)(_,{flexDirection:`column`,marginTop:+(C.length>0||b.length>0||T.length>0||x.length>0),children:[(0,Z.jsxs)(d,{dimColor:!0,children:[(0,Z.jsxs)(d,{bold:!0,children:[` `,`Local agents`]}),` (`,S.length,`)`]}),(0,Z.jsx)(_,{flexDirection:`column`,children:S.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===D?.id},e.id))})]}),w.length>0&&(0,Z.jsxs)(_,{flexDirection:`column`,marginTop:+(C.length>0||b.length>0||T.length>0||x.length>0||S.length>0),children:[(0,Z.jsxs)(d,{dimColor:!0,children:[(0,Z.jsxs)(d,{bold:!0,children:[` `,`Workflows`]}),` (`,w.length,`)`]}),(0,Z.jsx)(_,{flexDirection:`column`,children:w.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===D?.id},e.id))})]}),ee.length>0&&(0,Z.jsx)(_,{flexDirection:`column`,marginTop:+(C.length>0||b.length>0||T.length>0||x.length>0||S.length>0||w.length>0),children:(0,Z.jsx)(_,{flexDirection:`column`,children:ee.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===D?.id},e.id))})})]})})})}function Tn(e){switch(e.type){case`local_bash`:return{id:e.id,type:`local_bash`,label:e.kind===`monitor`?e.description:e.command,status:e.status,task:e};case`remote_agent`:return{id:e.id,type:`remote_agent`,label:e.title,status:e.status,task:e};case`local_agent`:return{id:e.id,type:`local_agent`,label:e.description,status:e.status,task:e};case`in_process_teammate`:return{id:e.id,type:`in_process_teammate`,label:`@${e.identity.agentName}`,status:e.status,task:e};case`local_workflow`:return{id:e.id,type:`local_workflow`,label:e.summary??e.description,status:e.status,task:e};case`monitor_mcp`:return{id:e.id,type:`monitor_mcp`,label:e.description,status:e.status,task:e};case`dream`:return{id:e.id,type:`dream`,label:e.description,status:e.status,task:e}}}function Y({item:e,isSelected:t}){let{columns:n}=s(),r=Math.max(30,n-26),i=Te();return(0,Z.jsxs)(_,{flexDirection:`row`,children:[(0,Z.jsx)(d,{dimColor:i&&t,children:t?a.pointer+` `:` `}),(0,Z.jsx)(d,{color:t&&!i?`suggestion`:void 0,children:e.type===`leader`?(0,Z.jsxs)(d,{children:[`@`,pt]}):(0,Z.jsx)(qt,{task:e.task,maxActivityWidth:r})})]})}function En({teammateTasks:e,currentSelectionId:t}){let n=e.filter(e=>e.type===`leader`),r=e.filter(e=>e.type===`in_process_teammate`),i=new Map;for(let e of r){let t=e.task.identity.teamName,n=i.get(t);n?n.push(e):i.set(t,[e])}return(0,Z.jsx)(Z.Fragment,{children:[...i.entries()].map(([e,r])=>(0,Z.jsxs)(_,{flexDirection:`column`,children:[(0,Z.jsxs)(d,{dimColor:!0,children:[` `,`Team: `,e,` (`,r.length+n.length,`)`]}),n.map(n=>(0,Z.jsx)(Y,{item:n,isSelected:n.id===t},`${n.id}-${e}`)),r.map(e=>(0,Z.jsx)(Y,{item:e,isSelected:e.id===t},e.id))]},e))})}var X,Z,Q,$,Dn,On=t((()=>{i(),X=n(l(),1),ce(),Be(),Ge(),wt(),nt(),je(),ge(),We(),de(),qe(),ne(),mt(),Ke(),Ze(),g(),I(),_e(),It(),Jt(),Zt(),en(),fn(),_n(),Z=v(),Q=(rt(),e(tt))?.killWorkflowTask??null,$=(Ve(),e(oe))?.killMonitorMcp??null,Dn=(Sn(),e(bn)).MonitorMcpDetailDialog}));export{Mt as a,wt as c,Ot as i,St as l,On as n,bt as o,Nt as r,xt as s,wn as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DR8-3Aex.js";import{J as t,Q as n,Rn as r,b as i,f as a,t as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{lo as l,oo as u}from"./paths-DfGsIjPm.js";import{n as d,r as f}from"./analytics-DqMQntaB.js";import{By as p,TE as m,aS as h,wE as g}from"./loadAgentsDir-Br5fGLLI.js";var _=e(r(),1);d(),o(),m(),u(),p();var v=c();function y({onAccept:e}){let[r,o]=_.useState(null);_.useEffect(()=>{if(r!==null){let e=r,t=setTimeout(()=>g(e));return()=>clearTimeout(t)}},[r]),_.useEffect(()=>{f(`tengu_bypass_permissions_mode_dialog_shown`,{})},[]);function c(t){switch(t){case`accept`:f(`tengu_bypass_permissions_mode_dialog_accept`,{}),l(`userSettings`,{skipDangerousModePermissionPrompt:!0}),e();break;case`decline`:o(1);break}}let u=(0,_.useCallback)(()=>{o(0)},[]);return r===null?(0,v.jsxs)(a,{title:`WARNING: Claude Code running in Bypass Permissions mode`,color:`error`,onCancel:u,children:[(0,v.jsxs)(s,{flexDirection:`column`,gap:1,children:[(0,v.jsxs)(i,{children:[`In Bypass Permissions mode, Claude Code will not ask for your approval before running potentially dangerous commands.`,(0,v.jsx)(t,{}),`This mode should only be used in a sandboxed container/VM that has restricted internet access and can easily be restored if damaged.`]}),(0,v.jsx)(i,{children:`By proceeding, you accept all responsibility for actions taken while running in Bypass Permissions mode.`}),(0,v.jsx)(n,{url:`https://code.claude.com/docs/en/security`})]}),(0,v.jsx)(h,{options:[{label:`No, exit`,value:`decline`},{label:`Yes, I accept`,value:`accept`}],onChange:e=>c(e)})]}):null}export{y as BypassPermissionsModeDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DR8-3Aex.js";import{J as t,Q as n,Rn as r,b as i,f as a,t as o,x as s,xt as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{Ac as u,Pc as d}from"./paths-DfGsIjPm.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{n as m,t as h}from"./setup-Dq0_SRA1.js";var g=e(r(),1);f(),o(),h(),u();var _=l(),v=`https://claude.ai/chrome`,y=`https://clau.de/chrome/permissions`;function b({onDone:e}){let[r,o]=g.useState(!1);return g.useEffect(()=>{p(`tengu_claude_in_chrome_onboarding_shown`,{}),m().then(o),d(e=>({...e,hasCompletedClaudeInChromeOnboarding:!0}))},[]),c((t,n)=>{n.return&&e()}),(0,_.jsx)(a,{title:`Claude in Chrome (Beta)`,onCancel:e,color:`chromeYellow`,children:(0,_.jsxs)(s,{flexDirection:`column`,gap:1,children:[(0,_.jsxs)(i,{children:[`Claude in Chrome works with the Chrome extension to let you control your browser directly from Claude Code. You can navigate websites, fill forms, capture screenshots, record GIFs, and debug with console logs and network requests.`,!r&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(t,{}),(0,_.jsx)(t,{}),`Requires the Chrome extension. Get started at `,(0,_.jsx)(n,{url:v})]})]}),(0,_.jsxs)(i,{dimColor:!0,children:[`Site-level permissions are inherited from the Chrome extension. Manage permissions in the Chrome extension settings to control which sites Claude can browse, click, and type on`,r&&(0,_.jsxs)(_.Fragment,{children:[` `,`(`,(0,_.jsx)(n,{url:y}),`)`]}),`.`]}),(0,_.jsxs)(i,{dimColor:!0,children:[`For more info, use`,` `,(0,_.jsx)(i,{bold:!0,color:`chromeYellow`,children:`/chrome`}),` `,`or visit `,(0,_.jsx)(n,{url:`https://code.claude.com/docs/en/chrome`})]})]})})}export{b as ClaudeInChromeOnboarding};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./ClaudeMdExternalIncludesDialog-DosNL91g.js";e();export{t as ClaudeMdExternalIncludesDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Q as n,Rn as r,b as i,f as a,t as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{Ac as l,Nc as u}from"./paths-DfGsIjPm.js";import{n as d,r as f}from"./analytics-DqMQntaB.js";import{By as p,aS as m}from"./loadAgentsDir-Br5fGLLI.js";function h({onDone:e,isStandaloneDialog:t,externalIncludes:r}){g.useEffect(()=>{f(`tengu_claude_md_includes_dialog_shown`,{})},[]);let o=(0,g.useCallback)(t=>{t===`no`?(f(`tengu_claude_md_external_includes_dialog_declined`,{}),u(e=>({...e,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}))):(f(`tengu_claude_md_external_includes_dialog_accepted`,{}),u(e=>({...e,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}))),e()},[e]);return(0,_.jsxs)(a,{title:`Allow external CLAUDE.md file imports?`,color:`warning`,onCancel:(0,g.useCallback)(()=>{o(`no`)},[o]),hideBorder:!t,hideInputGuide:!t,children:[(0,_.jsx)(i,{children:`This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories.`}),r&&r.length>0&&(0,_.jsxs)(s,{flexDirection:`column`,children:[(0,_.jsx)(i,{dimColor:!0,children:`External imports:`}),r.map((e,t)=>(0,_.jsxs)(i,{dimColor:!0,children:[` `,e.path]},t))]}),(0,_.jsxs)(i,{dimColor:!0,children:[`Important: Only use Claude Code with files you trust. Accessing untrusted files may pose security risks`,` `,(0,_.jsx)(n,{url:`https://code.claude.com/docs/en/security`}),` `]}),(0,_.jsx)(m,{options:[{label:`Yes, allow external imports`,value:`yes`},{label:`No, disable external imports`,value:`no`}],onChange:e=>o(e)})]})}var g,_,v=e((()=>{g=t(r(),1),d(),o(),l(),p(),_=c()}));export{v as n,h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Uy as e,Wy as t}from"./loadAgentsDir-Br5fGLLI.js";t();export{e as ConsoleOAuthFlow};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{t as n}from"./semver-Cq33BYay.js";import{Rn as r,b as i,l as a,t as o,x as s,xt as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{Ct as u,cn as d}from"./state-sIHsFpDu.js";import{al as f,el as p}from"./paths-DfGsIjPm.js";import{U as m,l as h,p as g,z as _}from"./debug-otxXY3j-.js";import{n as v,t as y}from"./cwd--iizewsn.js";import{r as b,t as x}from"./execFileNoThrow-B_aZH_GP.js";import{CE as S,Fr as C,TE as w,hr as T}from"./loadAgentsDir-Br5fGLLI.js";import{n as E,t as D}from"./browser-DwnUS505.js";import{n as O,r as k}from"./semver-Tw0AFar5.js";import{join as A}from"path";import{readdir as j}from"fs/promises";function M(){let e=[process.argv[1]||``,process.execPath||``],t=[`/build-ant/`,`/build-ant-native/`,`/build-external/`,`/build-external-native/`];return e.some(e=>t.some(t=>e.includes(t)))}function N(e){let t=M()?`claude-dev`:`claude`,n=new URL(`${t}://resume`);return n.searchParams.set(`session`,e),n.searchParams.set(`cwd`,y()),n.toString()}async function P(){if(M())return!0;let e=process.platform;if(e===`darwin`)return f(`/Applications/Claude.app`);if(e===`linux`){let{code:e,stdout:t}=await x(`xdg-mime`,[`query`,`default`,`x-scheme-handler/claude`]);return e===0&&t.trim().length>0}else if(e===`win32`){let{code:e}=await x(`reg`,[`query`,`HKEY_CLASSES_ROOT\\claude`,`/ve`]);return e===0}return!1}async function F(){let e=process.platform;if(e===`darwin`){let{code:e,stdout:t}=await x(`defaults`,[`read`,`/Applications/Claude.app/Contents/Info.plist`,`CFBundleShortVersionString`]);if(e!==0)return null;let n=t.trim();return n.length>0?n:null}else if(e===`win32`){let e=process.env.LOCALAPPDATA;if(!e)return null;let t=A(e,`AnthropicClaude`);try{let e=(await j(t)).filter(e=>e.startsWith(`app-`)).map(e=>e.slice(4)).filter(e=>(0,z.coerce)(e)!==null).sort((e,t)=>{let n=(0,z.coerce)(e),r=(0,z.coerce)(t);return n.compare(r)});return e.length>0?e[e.length-1]:null}catch{return null}}return null}async function I(){if(!await P())return{status:`not-installed`};let e;try{e=await F()}catch{return{status:`ready`,version:`unknown`}}if(!e)return{status:`ready`,version:`unknown`};let t=(0,z.coerce)(e);return!t||!O(t.version,B)?{status:`version-too-old`,version:e}:{status:`ready`,version:e}}async function L(e){let t=process.platform;if(g(`Opening deep link: ${e}`),t===`darwin`){if(M()){let{code:t}=await x(`osascript`,[`-e`,`tell application "Electron" to open location "${e}"`]);return t===0}let{code:t}=await x(`open`,[e]);return t===0}else if(t===`linux`){let{code:t}=await x(`xdg-open`,[e]);return t===0}else if(t===`win32`){let{code:t}=await x(`cmd`,[`/c`,`start`,``,e]);return t===0}return!1}async function R(){let e=u();if(!await P())return{success:!1,error:`Claude Desktop is not installed. Install it from https://claude.ai/download`};let t=N(e);return await L(t)?{success:!0,deepLinkUrl:t}:{success:!1,error:`Failed to open Claude Desktop. Please try opening it manually.`,deepLinkUrl:t}}var z,B,V=e((()=>{z=n(),d(),v(),h(),b(),p(),k(),B=`1.1.2396`}));function H(){switch(process.platform){case`win32`:return`https://claude.ai/api/desktop/win32/x64/exe/latest/redirect`;default:return`https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect`}}function U({onDone:e}){let[t,n]=(0,W.useState)(`checking`),[r,o]=(0,W.useState)(null),[l,u]=(0,W.useState)(``);return c(n=>{if(t===`error`){e(r??`Unknown error`,{display:`system`});return}t===`prompt-download`&&(n===`y`||n===`Y`?(E(H()).catch(()=>{}),e(`Starting download. Re-run /desktop once you\u2019ve installed the app.\nLearn more at ${K}`,{display:`system`})):(n===`n`||n===`N`)&&e(`The desktop app is required for /desktop. Learn more at ${K}`,{display:`system`}))}),(0,W.useEffect)(()=>{async function t(){n(`checking`);let t=await I();if(t.status===`not-installed`){u(`Claude Desktop is not installed.`),n(`prompt-download`);return}if(t.status===`version-too-old`){u(`Claude Desktop needs to be updated (found v${t.version}, need v1.1.2396+).`),n(`prompt-download`);return}n(`flushing`),await T(),n(`opening`);let r=await R();if(!r.success){o(r.error??`Failed to open Claude Desktop`),n(`error`);return}n(`success`),setTimeout(async e=>{e(`Session transferred to Claude Desktop`,{display:`system`}),await S(0,`other`)},500,e)}t().catch(e=>{o(_(e)),n(`error`)})},[e]),t===`error`?(0,G.jsxs)(s,{flexDirection:`column`,paddingX:2,children:[(0,G.jsxs)(i,{color:`error`,children:[`Error: `,r]}),(0,G.jsx)(i,{dimColor:!0,children:`Press any key to continue…`})]}):t===`prompt-download`?(0,G.jsxs)(s,{flexDirection:`column`,paddingX:2,children:[(0,G.jsx)(i,{children:l}),(0,G.jsx)(i,{children:`Download now? (y/n)`})]}):(0,G.jsx)(a,{message:{checking:`Checking for Claude Desktop…`,flushing:`Saving session…`,opening:`Opening Claude Desktop…`,success:`Opening in Claude Desktop…`}[t]})}var W,G,K,q=e((()=>{W=t(r(),1),o(),V(),D(),m(),w(),C(),G=l(),K=`https://clau.de/desktop`}));export{q as n,U as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DR8-3Aex.js";import{Rn as t,b as n,f as r,t as i,x as a}from"./src-Di342QoJ.js";import{t as o}from"./jsx-runtime-D-D469L8.js";import{By as s,TE as c,aS as l,wE as u}from"./loadAgentsDir-Br5fGLLI.js";var d=e(t(),1);i(),c(),s();var f=o();function p({channels:e,onAccept:t}){let[i,o]=d.useState(null);d.useEffect(()=>{if(i!==null){let e=i,t=setTimeout(()=>u(e));return()=>clearTimeout(t)}},[i]);function s(e){switch(e){case`accept`:t();break;case`exit`:o(1);break}}let c=(0,d.useCallback)(()=>{o(0)},[]);return i===null?(0,f.jsxs)(r,{title:`WARNING: Loading development channels`,color:`error`,onCancel:c,children:[(0,f.jsxs)(a,{flexDirection:`column`,gap:1,children:[(0,f.jsx)(n,{children:`--dangerously-load-development-channels is for local channel development only. Do not use this option to run channels you have downloaded off the internet.`}),(0,f.jsx)(n,{children:`Please use --channels to run a list of approved channels.`}),(0,f.jsxs)(n,{dimColor:!0,children:[`Channels:`,` `,e.map(e=>e.kind===`plugin`?`plugin:${e.name}@${e.marketplace}`:`server:${e.name}`).join(`, `)]})]}),(0,f.jsx)(l,{options:[{label:`I am using this for local development`,value:`accept`},{label:`Exit`,value:`exit`}],onChange:e=>s(e)})]}):null}export{p as DevChannelsDialog};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{F as i,Rn as a,b as o,f as s,h as c,m as l,nt as u,t as d,x as f}from"./src-Di342QoJ.js";import{t as p}from"./jsx-runtime-D-D469L8.js";import{Po as m,el as h,jo as g,sl as _}from"./paths-DfGsIjPm.js";import{n as v,t as y}from"./cwd--iizewsn.js";import{T as b,x}from"./startupProfiler-CnDpob1v.js";import{OT as S,bm as C,dm as w,fm as T,hT as E,kT as D,sS as O,uS as k,vm as A,ym as j}from"./loadAgentsDir-Br5fGLLI.js";import{t as M}from"./useKeybinding-FsOnjW6T.js";import{resolve as N}from"path";function P(){let[e,t]=(0,F.useState)(null),[n,r]=(0,F.useState)(new Map),[i,a]=(0,F.useState)(!0);return(0,F.useEffect)(()=>{let e=!1;async function n(){try{let[n,i]=await Promise.all([A(),j()]);e||(t(n),r(i),a(!1))}catch{e||(t(null),r(new Map),a(!1))}}return n(),()=>{e=!0}},[]),(0,F.useMemo)(()=>{if(!e)return{stats:null,files:[],hunks:new Map,loading:i};let{stats:t,perFileStats:r}=e,a=[];for(let[e,t]of r){let r=n.get(e),i=t.isUntracked??!1,o=!t.isBinary&&!i&&!r,s=t.added+t.removed,c=!o&&!t.isBinary&&s>I;a.push({path:e,linesAdded:t.added,linesRemoved:t.removed,isBinary:t.isBinary,isLargeFile:o,isTruncated:c,isUntracked:i})}return a.sort((e,t)=>e.path.localeCompare(t.path)),{stats:t,files:a,hunks:n,loading:!1}},[e,n,i])}var F,I,L=e((()=>{F=t(a(),1),C(),I=400}));function R(e){if(!e||typeof e!=`object`)return!1;let t=e,n=typeof t.filePath==`string`,r=Array.isArray(t.structuredPatch)&&t.structuredPatch.length>0,i=t.type===`create`&&typeof t.content==`string`;return n&&(r||i)}function z(e){return`type`in e&&(e.type===`create`||e.type===`update`)}function B(e){let t=0,n=0;for(let r of e)for(let e of r.lines)e.startsWith(`+`)?t++:e.startsWith(`-`)&&n++;return{added:t,removed:n}}function V(e){if(e.type!==`user`)return``;let t=e.message.content,n=typeof t==`string`?t:``;return n.length<=30?n:n.slice(0,29)+`…`}function H(e){let t=0,n=0;for(let r of e.files.values())t+=r.linesAdded,n+=r.linesRemoved;e.stats={filesChanged:e.files.size,linesAdded:t,linesRemoved:n}}function U(e){let t=(0,W.useRef)({completedTurns:[],currentTurn:null,lastProcessedIndex:0,lastTurnIndex:0});return(0,W.useMemo)(()=>{let n=t.current;e.length<n.lastProcessedIndex&&(n.completedTurns=[],n.currentTurn=null,n.lastProcessedIndex=0,n.lastTurnIndex=0);for(let t=n.lastProcessedIndex;t<e.length;t++){let r=e[t];if(!(!r||r.type!==`user`)){if(!(r.toolUseResult||Array.isArray(r.message.content)&&r.message.content[0]?.type===`tool_result`)&&!r.isMeta)n.currentTurn&&n.currentTurn.files.size>0&&(H(n.currentTurn),n.completedTurns.push(n.currentTurn)),n.lastTurnIndex++,n.currentTurn={turnIndex:n.lastTurnIndex,userPromptPreview:V(r),timestamp:r.timestamp,files:new Map,stats:{filesChanged:0,linesAdded:0,linesRemoved:0}};else if(n.currentTurn&&r.toolUseResult){let e=r.toolUseResult;if(R(e)){let{filePath:t,structuredPatch:r}=e,i=`type`in e&&e.type===`create`,a=n.currentTurn.files.get(t);if(a||(a={filePath:t,hunks:[],isNewFile:i,linesAdded:0,linesRemoved:0},n.currentTurn.files.set(t,a)),i&&r.length===0&&z(e)){let t=e.content.split(`
|
|
2
|
-
`),n={oldStart:0,oldLines:0,newStart:1,newLines:t.length,lines:t.map(e=>`+`+e)};a.hunks.push(n),a.linesAdded+=t.length}else{a.hunks.push(...r);let{added:e,removed:t}=B(r);a.linesAdded+=e,a.linesRemoved+=t}i&&(a.isNewFile=!0)}}}}n.lastProcessedIndex=e.length;let r=[...n.completedTurns];return n.currentTurn&&n.currentTurn.files.size>0&&(H(n.currentTurn),r.push(n.currentTurn)),r.reverse()},[e])}var W,G=e((()=>{W=t(a(),1)}));function K({filePath:e,hunks:t,isLargeFile:n,isBinary:r,isTruncated:a,isUntracked:s}){let{columns:c}=i(),{firstLine:u,fileContent:d}=(0,q.useMemo)(()=>{if(!e)return{firstLine:null,fileContent:void 0};let t=_(N(y(),e));return{firstLine:t?.split(`
|
|
3
|
-
`)[0]??null,fileContent:t??void 0}},[e]);return s?(0,J.jsxs)(f,{flexDirection:`column`,width:`100%`,children:[(0,J.jsxs)(f,{children:[(0,J.jsx)(o,{bold:!0,children:e}),(0,J.jsx)(o,{dimColor:!0,children:` (untracked)`})]}),(0,J.jsx)(l,{padding:4}),(0,J.jsxs)(f,{flexDirection:`column`,children:[(0,J.jsx)(o,{dimColor:!0,italic:!0,children:`New file not yet staged.`}),(0,J.jsxs)(o,{dimColor:!0,italic:!0,children:["Run `git add ",e,"` to see line counts."]})]})]}):r?(0,J.jsxs)(f,{flexDirection:`column`,width:`100%`,children:[(0,J.jsx)(f,{children:(0,J.jsx)(o,{bold:!0,children:e})}),(0,J.jsx)(l,{padding:4}),(0,J.jsx)(f,{flexDirection:`column`,children:(0,J.jsx)(o,{dimColor:!0,italic:!0,children:`Binary file - cannot display diff`})})]}):n?(0,J.jsxs)(f,{flexDirection:`column`,width:`100%`,children:[(0,J.jsx)(f,{children:(0,J.jsx)(o,{bold:!0,children:e})}),(0,J.jsx)(l,{padding:4}),(0,J.jsx)(f,{flexDirection:`column`,children:(0,J.jsx)(o,{dimColor:!0,italic:!0,children:`Large file - diff exceeds 1 MB limit`})})]}):(0,J.jsxs)(f,{flexDirection:`column`,width:`100%`,children:[(0,J.jsxs)(f,{children:[(0,J.jsx)(o,{bold:!0,children:e}),a&&(0,J.jsx)(o,{dimColor:!0,children:` (truncated)`})]}),(0,J.jsx)(l,{padding:4}),(0,J.jsx)(f,{flexDirection:`column`,children:t.length===0?(0,J.jsx)(o,{dimColor:!0,children:`No diff content`}):t.map((t,n)=>(0,J.jsx)(w,{patch:t,filePath:e,firstLine:u,fileContent:d,dim:!1,width:c-2-2},n))}),a&&(0,J.jsx)(o,{dimColor:!0,italic:!0,children:`… diff truncated (exceeded 400 line limit)`})]})}var q,J,ee=e((()=>{q=t(a(),1),E(),d(),v(),h(),T(),J=p()}));function te({files:e,selectedIndex:t}){let{columns:n}=i(),{startIndex:r,endIndex:a}=(0,Y.useMemo)(()=>{if(e.length===0||e.length<=Z)return{startIndex:0,endIndex:e.length};let n=Math.max(0,t-Math.floor(Z/2)),r=n+Z;return r>e.length&&(r=e.length,n=Math.max(0,r-Z)),{startIndex:n,endIndex:r}},[e.length,t]);if(e.length===0)return(0,X.jsx)(o,{dimColor:!0,children:`No changed files`});let s=e.slice(r,a),c=r>0,l=a<e.length,u=e.length>Z,d=Math.max(20,n-16-3-4);return(0,X.jsxs)(f,{flexDirection:`column`,children:[u&&(0,X.jsx)(o,{dimColor:!0,children:c?` ↑ ${r} more ${m(r,`file`)}`:` `}),s.map((e,n)=>(0,X.jsx)(ne,{file:e,isSelected:r+n===t,maxPathWidth:d},e.path)),u&&(0,X.jsx)(o,{dimColor:!0,children:l?` ↓ ${e.length-a} more ${m(e.length-a,`file`)}`:` `})]})}function ne({file:e,isSelected:t,maxPathWidth:n}){let i=b(e.path,n),a=`${t?r.pointer+` `:` `}${i}`;return(0,X.jsxs)(f,{flexDirection:`row`,children:[(0,X.jsx)(o,{bold:t,color:t?`background`:void 0,inverse:t,children:a}),(0,X.jsx)(f,{flexGrow:1}),(0,X.jsx)(re,{file:e,isSelected:t})]})}function re({file:e,isSelected:t}){return e.isUntracked?(0,X.jsx)(o,{dimColor:!t,italic:!0,children:`untracked`}):e.isBinary?(0,X.jsx)(o,{dimColor:!t,italic:!0,children:`Binary file`}):e.isLargeFile?(0,X.jsx)(o,{dimColor:!t,italic:!0,children:`Large file modified`}):(0,X.jsxs)(o,{children:[e.linesAdded>0&&(0,X.jsxs)(o,{color:`diffAddedWord`,bold:t,children:[`+`,e.linesAdded]}),e.linesAdded>0&&e.linesRemoved>0&&` `,e.linesRemoved>0&&(0,X.jsxs)(o,{color:`diffRemovedWord`,bold:t,children:[`-`,e.linesRemoved]}),e.isTruncated&&(0,X.jsx)(o,{dimColor:!t,children:` (truncated)`})]})}var Y,X,Z,ie=e((()=>{n(),Y=t(a(),1),E(),d(),x(),g(),X=p(),Z=5}));function ae(e){let t=Array.from(e.files.values()).map(e=>({path:e.filePath,linesAdded:e.linesAdded,linesRemoved:e.linesRemoved,isBinary:!1,isLargeFile:!1,isTruncated:!1,isNewFile:e.isNewFile})).sort((e,t)=>e.path.localeCompare(t.path)),n=new Map;for(let t of e.files.values())n.set(t.filePath,t.hunks);return{stats:{filesCount:e.stats.filesChanged,linesAdded:e.stats.linesAdded,linesRemoved:e.stats.linesRemoved},files:t,hunks:n,loading:!1}}function oe({messages:e,onDone:t}){let n=P(),r=U(e),[i,a]=(0,Q.useState)(`list`),[l,d]=(0,Q.useState)(0),[p,h]=(0,Q.useState)(0),g=(0,Q.useMemo)(()=>[{type:`current`},...r.map(e=>({type:`turn`,turn:e}))],[r]),_=g[p],v=_?.type===`turn`?_.turn:null,y=(0,Q.useMemo)(()=>v?ae(v):n,[v,n]),b=y.files[l],x=(0,Q.useMemo)(()=>b&&y.hunks.get(b.path)||[],[b,y.hunks]);(0,Q.useEffect)(()=>{p>=g.length&&h(Math.max(0,g.length-1))},[g.length,p]);let S=(0,Q.useRef)(p);(0,Q.useEffect)(()=>{S.current!==p&&(d(0),S.current=p)},[p]),k(`diff-dialog`),u({"diff:previousSource":()=>{i===`detail`?a(`list`):i===`list`&&g.length>1&&h(e=>Math.max(0,e-1))},"diff:nextSource":()=>{i===`list`&&g.length>1&&h(e=>Math.min(g.length-1,e+1))},"diff:back":()=>{i===`detail`&&a(`list`)},"diff:viewDetails":()=>{i===`list`&&b&&a(`detail`)},"diff:previousFile":()=>{i===`list`&&d(e=>Math.max(0,e-1))},"diff:nextFile":()=>{i===`list`&&d(e=>Math.min(y.files.length-1,e+1))}},{context:`DiffDialog`});let C=y.stats?(0,$.jsxs)(o,{dimColor:!0,children:[y.stats.filesCount,` `,m(y.stats.filesCount,`file`),` changed`,y.stats.linesAdded>0&&(0,$.jsxs)(o,{color:`diffAddedWord`,children:[` +`,y.stats.linesAdded]}),y.stats.linesRemoved>0&&(0,$.jsxs)(o,{color:`diffRemovedWord`,children:[` -`,y.stats.linesRemoved]})]}):null,w=v?`Turn ${v.turnIndex}`:`Uncommitted changes`,T=v?v.userPromptPreview?`"${v.userPromptPreview}"`:``:`(git diff HEAD)`,E=g.length>1?(0,$.jsxs)(f,{children:[p>0&&(0,$.jsx)(o,{dimColor:!0,children:`◀ `}),g.map((e,t)=>{let n=t===p,r=e.type===`current`?`Current`:`T${e.turn.turnIndex}`;return(0,$.jsxs)(o,{dimColor:!n,bold:n,children:[t>0?` · `:``,r]},t)}),p<g.length-1&&(0,$.jsx)(o,{dimColor:!0,children:` ▶`})]}):null,O=D(`diff:dismiss`,`DiffDialog`,`esc`),A=y.loading?`Loading diff…`:v?`No file changes in this turn`:y.stats&&y.stats.filesCount>0&&y.files.length===0?`Too many files to display details`:`Working tree is clean`,j=(0,$.jsxs)(o,{children:[w,T&&(0,$.jsxs)(o,{dimColor:!0,children:[` `,T]})]});function M(){i===`detail`?a(`list`):t(`Diff dialog dismissed`,{display:`system`})}return(0,$.jsxs)(s,{title:j,onCancel:M,color:`background`,inputGuide:e=>e.pending?(0,$.jsxs)(o,{children:[`Press `,e.keyName,` again to exit`]}):i===`list`?(0,$.jsxs)(c,{children:[g.length>1&&(0,$.jsx)(o,{children:`←/→ source`}),(0,$.jsx)(o,{children:`↑/↓ select`}),(0,$.jsx)(o,{children:`Enter view`}),(0,$.jsxs)(o,{children:[O,` close`]})]}):(0,$.jsxs)(c,{children:[(0,$.jsx)(o,{children:`← back`}),(0,$.jsxs)(o,{children:[O,` close`]})]}),children:[E,C,y.files.length===0?(0,$.jsx)(f,{marginTop:1,children:(0,$.jsx)(o,{dimColor:!0,children:A})}):i===`list`?(0,$.jsx)(f,{flexDirection:`column`,marginTop:1,children:(0,$.jsx)(te,{files:y.files,selectedIndex:l})}):(0,$.jsx)(f,{flexDirection:`column`,marginTop:1,children:(0,$.jsx)(K,{filePath:b?.path||``,hunks:x,isLargeFile:b?.isLargeFile,isBinary:b?.isBinary,isTruncated:b?.isTruncated,isUntracked:b?.isUntracked})})]})}var Q,$;e((()=>{Q=t(a(),1),O(),L(),G(),d(),M(),S(),g(),ee(),ie(),$=p()}))();export{oe as DiffDialog};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,t}from"./Doctor-Ts5k8hn1.js";e();export{t as Doctor};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{n as i,t as a}from"./figures-gfT9mM8P.js";import{Rn as o,b as s,nt as c,p as l,t as u,x as d}from"./src-Di342QoJ.js";import{t as f}from"./jsx-runtime-D-D469L8.js";import{cn as p,ot as ee}from"./state-sIHsFpDu.js";import{Dr as m,Ka as h,Po as g,Pr as _,Ro as v,Vo as y,al as b,cr as te,dr as x,el as S,jo as C,oo as w}from"./paths-DfGsIjPm.js";import{$k as T,FT as E,IA as D,IT as O,JT as k,LT as ne,NA as A,PT as re,XT as ie,Xc as j,Xk as ae,YT as oe,Yc as se,ZT as ce,Zk as M,_h as N,_x as P,bh as F,bx as I,dj as L,dl as R,dp as z,fj as B,lC as V,lp as H,qT as U,qk as W,uC as G,ul as le,up as ue,vh as de,vx as fe,xh as pe,yh as me,yx as he}from"./loadAgentsDir-Br5fGLLI.js";import{t as ge}from"./useKeybinding-FsOnjW6T.js";import{l as _e,u as ve}from"./referral-DOqhciQu.js";import{a as ye,i as be}from"./xdg-CBxMmQux.js";import{n as xe,t as Se}from"./McpParsingWarnings-CE2pQPXV.js";import{n as Ce,t as we}from"./PressEnterToContinue-BdA9zDGs.js";import{n as Te,t as Ee}from"./ValidationErrorsList-C5BoLiye.js";import{n as De,t as Oe}from"./useSettingsErrors-DRxtFXoe.js";import{n as ke,t as Ae}from"./shadowedRuleDetection-DvAjOOPL.js";import{n as je,r as Me,t as K}from"./statusNoticeHelpers-CxoN9oDh.js";import{join as q}from"path";function Ne(){if(!ne())return null;let e=re();if(e.length===0)return null;let t=e.filter(e=>e.severity===`error`),n=e.filter(e=>e.severity===`warning`);return(0,J.jsxs)(d,{flexDirection:`column`,marginTop:1,marginBottom:1,children:[(0,J.jsx)(s,{bold:!0,color:t.length>0?`error`:`warning`,children:`Keybinding Configuration Issues`}),(0,J.jsxs)(d,{children:[(0,J.jsx)(s,{dimColor:!0,children:`Location: `}),(0,J.jsx)(s,{dimColor:!0,children:E()})]}),(0,J.jsxs)(d,{marginLeft:1,flexDirection:`column`,marginTop:1,children:[t.map((e,t)=>(0,J.jsxs)(d,{flexDirection:`column`,children:[(0,J.jsxs)(d,{children:[(0,J.jsx)(s,{dimColor:!0,children:`└ `}),(0,J.jsx)(s,{color:`error`,children:`[Error]`}),(0,J.jsxs)(s,{dimColor:!0,children:[` `,e.message]})]}),e.suggestion&&(0,J.jsx)(d,{marginLeft:3,children:(0,J.jsxs)(s,{dimColor:!0,children:[`→ `,e.suggestion]})})]},`error-${t}`)),n.map((e,t)=>(0,J.jsxs)(d,{flexDirection:`column`,children:[(0,J.jsxs)(d,{children:[(0,J.jsx)(s,{dimColor:!0,children:`└ `}),(0,J.jsx)(s,{color:`warning`,children:`[Warning]`}),(0,J.jsxs)(s,{dimColor:!0,children:[` `,e.message]})]}),e.suggestion&&(0,J.jsx)(d,{marginLeft:3,children:(0,J.jsxs)(s,{dimColor:!0,children:[`→ `,e.suggestion]})})]},`warning-${t}`))]})]})}var J,Pe=e((()=>{o(),u(),O(),J=f()}));function Fe(){if(!A.isSupportedPlatform()||!A.isSandboxEnabledInSettings())return null;let e=A.checkDependencies(),t=e.errors.length>0,n=e.warnings.length>0;return!t&&!n?null:(0,Y.jsxs)(d,{flexDirection:`column`,children:[(0,Y.jsx)(s,{bold:!0,children:`Sandbox`}),(0,Y.jsxs)(s,{children:[`└ Status: `,(0,Y.jsx)(s,{color:t?`error`:`warning`,children:t?`Missing dependencies`:`Available (with warnings)`})]}),e.errors.map((e,t)=>(0,Y.jsxs)(s,{color:`error`,children:[`└ `,e]},t)),e.warnings.map((e,t)=>(0,Y.jsxs)(s,{color:`warning`,children:[`└ `,e]},t)),t&&(0,Y.jsx)(s,{dimColor:!0,children:`└ Run /sandbox for install instructions`})]})}var Y,Ie=e((()=>{o(),u(),D(),Y=f()}));async function Le(){let e=ae(await M());if(e.length===0)return null;let t=e.sort((e,t)=>t.content.length-e.content.length).map(e=>`${e.path}: ${e.content.length.toLocaleString()} chars`);return{type:`claudemd_files`,severity:`warning`,message:e.length===1?`Large CLAUDE.md file detected (${e[0].content.length.toLocaleString()} chars > ${W.toLocaleString()})`:`${e.length} large CLAUDE.md files detected (each > ${W.toLocaleString()} chars)`,details:t,currentValue:e.length,threshold:W}}async function X(e){if(!e)return null;let t=je(e);if(t<=15e3)return null;let n=e.activeAgents.filter(e=>e.source!==`built-in`).map(e=>{let t=`${e.agentType}: ${e.whenToUse}`;return{name:e.agentType,tokens:j(t)}}).sort((e,t)=>t.tokens-e.tokens),r=n.slice(0,5).map(e=>`${e.name}: ~${e.tokens.toLocaleString()} tokens`);return n.length>5&&r.push(`(${n.length-5} more custom agents)`),{type:`agent_descriptions`,severity:`warning`,message:`Large agent descriptions (~${t.toLocaleString()} tokens > ${K.toLocaleString()})`,details:r,currentValue:t,threshold:K}}async function Re(e,t,n){let r=e.filter(e=>e.isMcp);if(r.length===0)return null;try{let{mcpToolTokens:r,mcpToolDetails:i}=await le(e,t,n,m());if(r<=Z)return null;let a=new Map;for(let e of i){let t=e.name.split(`__`)[1]||`unknown`,n=a.get(t)||{count:0,tokens:0};a.set(t,{count:n.count+1,tokens:n.tokens+e.tokens})}let o=Array.from(a.entries()).sort((e,t)=>t[1].tokens-e[1].tokens),s=o.slice(0,5).map(([e,t])=>`${e}: ${t.count} tools (~${t.tokens.toLocaleString()} tokens)`);return o.length>5&&s.push(`(${o.length-5} more servers)`),{type:`mcp_tools`,severity:`warning`,message:`Large MCP tools context (~${r.toLocaleString()} tokens > ${Z.toLocaleString()})`,details:s,currentValue:r,threshold:Z}}catch{let e=r.reduce((e,t)=>e+j(((t.name?.length||0)+t.description.length).toString()),0);return e<=Z?null:{type:`mcp_tools`,severity:`warning`,message:`Large MCP tools context (~${e.toLocaleString()} tokens estimated > ${Z.toLocaleString()})`,details:[`${r.length} MCP tools detected (token count estimated)`],currentValue:e,threshold:Z}}}async function ze(e){let t=Ae(await e(),{sandboxAutoAllowEnabled:A.isSandboxingEnabled()&&A.isAutoAllowBashIfSandboxedEnabled()});if(t.length===0)return null;let n=t.flatMap(e=>[`${y(e.rule.ruleValue)}: ${e.reason}`,` Fix: ${e.fix}`]);return{type:`unreachable_rules`,severity:`warning`,message:`${t.length} ${g(t.length,`unreachable permission rule`)} detected`,details:n,currentValue:t.length,threshold:0}}async function Be(e,t,n){let[r,i,a,o]=await Promise.all([Le(),X(t),Re(e,n,t),ze(n)]);return{claudeMdWarning:r,agentWarning:i,mcpWarning:a,unreachableRulesWarning:o}}var Z,Ve=e((()=>{se(),R(),T(),_(),v(),ke(),D(),Me(),C(),Z=25e3}));function He({promise:e}){let t=(0,Q.use)(e);return t.latest?(0,$.jsxs)($.Fragment,{children:[t.stable&&(0,$.jsxs)(s,{children:[`└ Stable version: `,t.stable]}),(0,$.jsxs)(s,{children:[`└ Latest version: `,t.latest]})]}):(0,$.jsx)(s,{dimColor:!0,children:`└ Failed to fetch versions`})}function Ue({onDone:e}){let t=G(e=>e.agentDefinitions),r=G(e=>e.mcp.tools),i=G(e=>e.toolPermissionContext),o=G(e=>e.plugins.errors);ve();let u=(0,Q.useMemo)(()=>r||[],[r]),[f,p]=(0,Q.useState)(null),[m,g]=(0,Q.useState)(null),[_,v]=(0,Q.useState)(null),[y,x]=(0,Q.useState)(null),S=De(),C=(0,Q.useMemo)(()=>U().then(e=>(e.installationType===`native`?oe:ie)().catch(()=>({latest:null,stable:null}))),[]),w=h()?.autoUpdatesChannel??`latest`,T=S.filter(e=>e.mcpErrorMetadata===void 0),E=(0,Q.useMemo)(()=>[{name:`BASH_MAX_OUTPUT_LENGTH`,default:N,upperLimit:de},{name:`TASK_MAX_OUTPUT_LENGTH`,default:H,upperLimit:ue},{name:`CLAUDE_CODE_MAX_OUTPUT_TOKENS`,...te(`claude-opus-4-7`)}].map(e=>{let t=process.env[e.name],n=pe(e.name,t,e.default,e.upperLimit);return{name:e.name,...n}}).filter(e=>e.status!==`valid`),[]);(0,Q.useEffect)(()=>{U().then(p),(async()=>{let e=q(n(),`agents`),r=q(ee(),`.claude`,`agents`),{activeAgents:a,allAgents:o,failedFiles:s}=t,[c,l]=await Promise.all([b(e),b(r)]);if(g({activeAgents:a.map(e=>({agentType:e.agentType,source:e.source})),userAgentsDir:e,projectAgentsDir:r,userDirExists:c,projectDirExists:l,failedFiles:s}),v(await Be(u,{activeAgents:a,allAgents:o,failedFiles:s},async()=>i)),I()){let e=q(be(),`claude`,`locks`),t=P(e);x({enabled:!0,locks:fe(e),locksDir:e,staleLocksCleaned:t})}else x({enabled:!1,locks:[],locksDir:``,staleLocksCleaned:0})})()},[i,u,t]);let D=(0,Q.useCallback)(()=>{e(`Claude Code diagnostics dismissed`,{display:`system`})},[e]);return c({"confirm:yes":D,"confirm:no":D},{context:`Confirmation`}),f?(0,$.jsxs)(l,{children:[(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,children:`Diagnostics`}),(0,$.jsxs)(s,{children:[`└ Currently running: `,f.installationType,` (`,f.version,`)`]}),f.packageManager&&(0,$.jsxs)(s,{children:[`└ Package manager: `,f.packageManager]}),(0,$.jsxs)(s,{children:[`└ Path: `,f.installationPath]}),(0,$.jsxs)(s,{children:[`└ Invoked: `,f.invokedBinary]}),(0,$.jsxs)(s,{children:[`└ Config install method: `,f.configInstallMethod]}),(0,$.jsxs)(s,{children:[`└ Search: `,f.ripgrepStatus.working?`OK`:`Not working`,` (`,f.ripgrepStatus.mode===`embedded`?`bundled`:f.ripgrepStatus.mode===`builtin`?`vendor`:f.ripgrepStatus.systemPath||`system`,`)`]}),f.recommendation&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{}),(0,$.jsxs)(s,{color:`warning`,children:[`Recommendation: `,f.recommendation.split(`
|
|
2
|
-
`)[0]]}),(0,$.jsx)(s,{dimColor:!0,children:f.recommendation.split(`
|
|
3
|
-
`)[1]})]}),f.multipleInstallations.length>1&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{}),(0,$.jsx)(s,{color:`warning`,children:`Warning: Multiple installations found`}),f.multipleInstallations.map((e,t)=>(0,$.jsxs)(s,{children:[`└ `,e.type,` at `,e.path]},t))]}),f.warnings.length>0&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(s,{}),f.warnings.map((e,t)=>(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsxs)(s,{color:`warning`,children:[`Warning: `,e.issue]}),(0,$.jsxs)(s,{children:[`Fix: `,e.fix]})]},t))]}),T.length>0&&(0,$.jsxs)(d,{flexDirection:`column`,marginTop:1,marginBottom:1,children:[(0,$.jsx)(s,{bold:!0,children:`Invalid Settings`}),(0,$.jsx)(Ee,{errors:T})]})]}),(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,children:`Updates`}),(0,$.jsxs)(s,{children:[`└ Auto-updates: `,f.packageManager?`Managed by package manager`:f.autoUpdates]}),f.hasUpdatePermissions!==null&&(0,$.jsxs)(s,{children:[`└ Update permissions: `,f.hasUpdatePermissions?`Yes`:`No (requires sudo)`]}),(0,$.jsxs)(s,{children:[`└ Auto-update channel: `,w]}),(0,$.jsx)(Q.Suspense,{fallback:null,children:(0,$.jsx)(He,{promise:C})})]}),(0,$.jsx)(Fe,{}),(0,$.jsx)(Se,{}),(0,$.jsx)(Ne,{}),E.length>0&&(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,children:`Environment Variables`}),E.map((e,t)=>(0,$.jsxs)(s,{children:[`└ `,e.name,`:`,` `,(0,$.jsx)(s,{color:e.status===`capped`?`warning`:`error`,children:e.message})]},t))]}),y?.enabled&&(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,children:`Version Locks`}),y.staleLocksCleaned>0&&(0,$.jsxs)(s,{dimColor:!0,children:[`└ Cleaned `,y.staleLocksCleaned,` stale lock(s)`]}),y.locks.length===0?(0,$.jsx)(s,{dimColor:!0,children:`└ No active version locks`}):y.locks.map((e,t)=>(0,$.jsxs)(s,{children:[`└ `,e.version,`: PID `,e.pid,` `,e.isProcessRunning?(0,$.jsx)(s,{children:`(running)`}):(0,$.jsx)(s,{color:`warning`,children:`(stale)`})]},t))]}),m?.failedFiles&&m.failedFiles.length>0&&(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,color:`error`,children:`Agent Parse Errors`}),(0,$.jsxs)(s,{color:`error`,children:[`└ Failed to parse `,m.failedFiles.length,` agent file(s):`]}),m.failedFiles.map((e,t)=>(0,$.jsxs)(s,{dimColor:!0,children:[` `,`└ `,e.path,`: `,e.error]},t))]}),o.length>0&&(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,color:`error`,children:`Plugin Errors`}),(0,$.jsxs)(s,{color:`error`,children:[`└ `,o.length,` plugin error(s) detected:`]}),o.map((e,t)=>(0,$.jsxs)(s,{dimColor:!0,children:[` `,`└ `,e.source||`unknown`,`plugin`in e&&e.plugin?` [${e.plugin}]`:``,`: `,L(e)]},t))]}),_?.unreachableRulesWarning&&(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,color:`warning`,children:`Unreachable Permission Rules`}),(0,$.jsxs)(s,{children:[`└`,` `,(0,$.jsxs)(s,{color:`warning`,children:[a.warning,` `,_.unreachableRulesWarning.message]})]}),_.unreachableRulesWarning.details.map((e,t)=>(0,$.jsxs)(s,{dimColor:!0,children:[` `,`└ `,e]},t))]}),_&&(_.claudeMdWarning||_.agentWarning||_.mcpWarning)&&(0,$.jsxs)(d,{flexDirection:`column`,children:[(0,$.jsx)(s,{bold:!0,children:`Context Usage Warnings`}),_.claudeMdWarning&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(s,{children:[`└`,` `,(0,$.jsxs)(s,{color:`warning`,children:[a.warning,` `,_.claudeMdWarning.message]})]}),(0,$.jsxs)(s,{children:[` `,`└ Files:`]}),_.claudeMdWarning.details.map((e,t)=>(0,$.jsxs)(s,{dimColor:!0,children:[` `,`└ `,e]},t))]}),_.agentWarning&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(s,{children:[`└`,` `,(0,$.jsxs)(s,{color:`warning`,children:[a.warning,` `,_.agentWarning.message]})]}),(0,$.jsxs)(s,{children:[` `,`└ Top contributors:`]}),_.agentWarning.details.map((e,t)=>(0,$.jsxs)(s,{dimColor:!0,children:[` `,`└ `,e]},t))]}),_.mcpWarning&&(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(s,{children:[`└`,` `,(0,$.jsxs)(s,{color:`warning`,children:[a.warning,` `,_.mcpWarning.message]})]}),(0,$.jsxs)(s,{children:[` `,`└ MCP servers:`]}),_.mcpWarning.details.map((e,t)=>(0,$.jsxs)(s,{dimColor:!0,children:[` `,`└ `,e]},t))]})]}),(0,$.jsx)(d,{children:(0,$.jsx)(we,{})})]}):(0,$.jsx)(l,{children:(0,$.jsx)(s,{dimColor:!0,children:`Checking installation status…`})})}var Q,$,We=e((()=>{i(),Q=t(o(),1),Pe(),xe(),x(),r(),p(),u(),Ce(),Ie(),Te(),Oe(),_e(),ge(),V(),B(),ce(),Ve(),k(),F(),S(),he(),w(),me(),z(),ye(),$=f()}));export{We as n,Ue as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t,o as n}from"./chunk-DR8-3Aex.js";import{Rn as r,b as i,f as a,t as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{Cl as l,wl as u}from"./paths-DfGsIjPm.js";import{l as d,p as f}from"./debug-otxXY3j-.js";import{n as p,r as m}from"./analytics-DqMQntaB.js";import{r as h,t as g}from"./execFileNoThrow-B_aZH_GP.js";import{Ai as _,At as v,CE as y,Fr as b,Jy as x,Ky as S,Ot as C,TE as w,Tt as T,aS as E,by as D,jt as O,mh as k,oS as A,ph as j,vt as M,yy as N}from"./loadAgentsDir-Br5fGLLI.js";function P(){(b(),e(_)).saveWorktreeState(null)}function F({onDone:e,onCancel:t}){let[n,r]=(0,I.useState)(`loading`),[o,c]=(0,I.useState)([]),[l,u]=(0,I.useState)(0),[d,p]=(0,I.useState)(),h=T();if((0,I.useEffect)(()=>{async function e(){let e=[],t=await g(`git`,[`status`,`--porcelain`]);if(t.stdout&&(e=t.stdout.split(`
|
|
2
|
-
`).filter(e=>e.trim()!==``),c(e)),h){let{stdout:t}=await g(`git`,[`rev-list`,`--count`,`${h.originalHeadCommit}..HEAD`]),n=parseInt(t.trim(),10)||0;if(u(n),e.length===0&&n===0){r(`removing`),M().then(()=>{process.chdir(h.originalCwd),k(h.originalCwd),P(),N.cache.clear?.(),p(`Worktree removed (no changes)`)}).catch(e=>{f(`Failed to clean up worktree: ${e}`,{level:`error`}),p(`Worktree cleanup failed, exiting anyway`)}).then(()=>{r(`done`)});return}else r(`asking`)}}e()},[h]),(0,I.useEffect)(()=>{n===`done`&&e(d)},[n,e,d]),!h)return e(`No active worktree session found`,{display:`system`}),null;if(n===`loading`||n===`done`)return null;async function _(e){if(!h)return;let t=!!h.tmuxSessionName;if(e===`keep`||e===`keep-with-tmux`)r(`keeping`),m(`tengu_worktree_kept`,{commits:l,changed_files:o.length}),await v(),process.chdir(h.originalCwd),k(h.originalCwd),P(),N.cache.clear?.(),p(t?`Worktree kept. Your work is saved at ${h.worktreePath} on branch ${h.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${h.tmuxSessionName}`:`Worktree kept. Your work is saved at ${h.worktreePath} on branch ${h.worktreeBranch}`),r(`done`);else if(e===`keep-kill-tmux`)r(`keeping`),m(`tengu_worktree_kept`,{commits:l,changed_files:o.length}),h.tmuxSessionName&&await O(h.tmuxSessionName),await v(),process.chdir(h.originalCwd),k(h.originalCwd),P(),N.cache.clear?.(),p(`Worktree kept at ${h.worktreePath} on branch ${h.worktreeBranch}. Tmux session terminated.`),r(`done`);else if(e===`remove`||e===`remove-with-tmux`){r(`removing`),m(`tengu_worktree_removed`,{commits:l,changed_files:o.length}),h.tmuxSessionName&&await O(h.tmuxSessionName);try{await M(),process.chdir(h.originalCwd),k(h.originalCwd),P(),N.cache.clear?.()}catch(e){f(`Failed to clean up worktree: ${e}`,{level:`error`}),p(`Worktree cleanup failed, exiting anyway`),r(`done`);return}let e=t?` Tmux session terminated.`:``;l>0&&o.length>0?p(`Worktree removed. ${l} ${l===1?`commit`:`commits`} and uncommitted changes were discarded.${e}`):l>0?p(`Worktree removed. ${l} ${l===1?`commit`:`commits`} on ${h.worktreeBranch} ${l===1?`was`:`were`} discarded.${e}`):o.length>0?p(`Worktree removed. Uncommitted changes were discarded.${e}`):p(`Worktree removed.${e}`),r(`done`)}}if(n===`keeping`)return(0,L.jsxs)(s,{flexDirection:`row`,marginY:1,children:[(0,L.jsx)(S,{}),(0,L.jsx)(i,{children:`Keeping worktree…`})]});if(n===`removing`)return(0,L.jsxs)(s,{flexDirection:`row`,marginY:1,children:[(0,L.jsx)(S,{}),(0,L.jsx)(i,{children:`Removing worktree…`})]});let y=h.worktreeBranch,b=o.length>0,x=l>0,C=``;C=b&&x?`You have ${o.length} uncommitted ${o.length===1?`file`:`files`} and ${l} ${l===1?`commit`:`commits`} on ${y}. All will be lost if you remove.`:b?`You have ${o.length} uncommitted ${o.length===1?`file`:`files`}. These will be lost if you remove the worktree.`:x?`You have ${l} ${l===1?`commit`:`commits`} on ${y}. The branch will be deleted if you remove the worktree.`:`You are working in a worktree. Keep it to continue working there, or remove it to clean up.`;function w(){if(t){t();return}_(`keep`)}let D=b||x?`All changes and commits will be lost.`:`Clean up the worktree directory.`,A=!!h.tmuxSessionName,j=A?[{label:`Keep worktree and tmux session`,value:`keep-with-tmux`,description:`Stays at ${h.worktreePath}. Reattach with: tmux attach -t ${h.tmuxSessionName}`},{label:`Keep worktree, kill tmux session`,value:`keep-kill-tmux`,description:`Keeps worktree at ${h.worktreePath}, terminates tmux session.`},{label:`Remove worktree and tmux session`,value:`remove-with-tmux`,description:D}]:[{label:`Keep worktree`,value:`keep`,description:`Stays at ${h.worktreePath}`},{label:`Remove worktree`,value:`remove`,description:D}];return(0,L.jsx)(a,{title:`Exiting worktree session`,subtitle:C,onCancel:w,children:(0,L.jsx)(E,{defaultFocusValue:A?`keep-with-tmux`:`keep`,options:j,onChange:_})})}var I,L,R=t((()=>{I=n(r(),1),p(),d(),o(),h(),D(),j(),C(),A(),x(),L=c()}));function z(){return u(H)??`Goodbye!`}function B({showWorktree:e,onDone:t,onCancel:n}){async function r(e){t(e??z()),await y(0,`prompt_input_exit`)}return e?(0,V.jsx)(F,{onDone:r,onCancel:n}):null}var V,H,U=t((()=>{l(),r(),w(),R(),V=c(),H=[`Goodbye!`,`See ya!`,`Bye!`,`Catch you later!`]}));export{U as n,B as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./axios-DhfaybwJ.js";import{F as i,Rn as a,b as o,f as s,g as c,h as l,t as u,tt as d,x as f,xt as ee}from"./src-Di342QoJ.js";import{t as p}from"./jsx-runtime-D-D469L8.js";import{cn as m,q as h}from"./state-sIHsFpDu.js";import{F as te,M as g,Pt as _,St as v,bt as y,on as b,wt as x}from"./paths-DfGsIjPm.js";import{E as S,O as C,l as w,p as T}from"./debug-otxXY3j-.js";import{n as E,r as ne}from"./analytics-DqMQntaB.js";import{c as D,f as re,v as O}from"./git-DayFjsvj.js";import{a as k,n as A}from"./env-BH-OBzcA.js";import{d as j,f as ie,i as ae,o as oe,s as M}from"./log-DS97_rIr.js";import{Ar as se,DC as ce,EC as N,Fr as P,No as F,Qo as I,Uo as L,dS as R,fS as z,fr as B,hT as V,lk as H,nk as U,nt as W,qr as G,tk as le,tt as ue}from"./loadAgentsDir-Br5fGLLI.js";import{X as de}from"./rcDebugLog-BoroyfjB.js";import{n as fe,t as pe}from"./browser-DwnUS505.js";import{t as me}from"./useKeybinding-FsOnjW6T.js";import{readFile as he,stat as ge}from"fs/promises";function K(e){let t=e;return t=t.replace(/"(sk-ant[^\s"']{24,})"/g,`"[REDACTED_API_KEY]"`),t=t.replace(/(?<![A-Za-z0-9"'])(sk-ant-?[A-Za-z0-9_-]{10,})(?![A-Za-z0-9"'])/g,`[REDACTED_API_KEY]`),t=t.replace(/AWS key: "(AWS[A-Z0-9]{20,})"/g,`AWS key: "[REDACTED_AWS_KEY]"`),t=t.replace(/(AKIA[A-Z0-9]{16})/g,`[REDACTED_AWS_KEY]`),t=t.replace(/(?<![A-Za-z0-9])(AIza[A-Za-z0-9_-]{35})(?![A-Za-z0-9])/g,`[REDACTED_GCP_KEY]`),t=t.replace(/(?<![A-Za-z0-9])([a-z0-9-]+@[a-z0-9-]+\.iam\.gserviceaccount\.com)(?![A-Za-z0-9])/g,`[REDACTED_GCP_SERVICE_ACCOUNT]`),t=t.replace(/(["']?x-api-key["']?\s*[:=]\s*["']?)[^"',\s)}\]]+/gi,`$1[REDACTED_API_KEY]`),t=t.replace(/(["']?authorization["']?\s*[:=]\s*["']?(bearer\s+)?)[^"',\s)}\]]+/gi,`$1[REDACTED_TOKEN]`),t=t.replace(/(AWS[_-][A-Za-z0-9_]+\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,`$1[REDACTED_AWS_VALUE]`),t=t.replace(/(GOOGLE[_-][A-Za-z0-9_]+\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,`$1[REDACTED_GCP_VALUE]`),t=t.replace(/((API[-_]?KEY|TOKEN|SECRET|PASSWORD)\s*[=:]\s*)["']?[^"',\s)}\]]+["']?/gi,`$1[REDACTED]`),t}function q(){return ae().map(e=>{let t={...e};return t&&typeof t.error==`string`&&(t.error=K(t.error)),t})}async function _e(){try{let e=se(),{size:t}=await ge(e);return t>52428800?(T(`Skipping raw transcript read: file too large (${t} bytes)`,{level:`warn`}),null):await he(e,`utf-8`)}catch{return null}}function ve({abortSignal:e,messages:t,initialDescription:n,onDone:r,backgroundTasks:a={}}){let[u,p]=(0,X.useState)(`userInput`),[m,g]=(0,X.useState)(0),[_,v]=(0,X.useState)(n??``),[y,b]=(0,X.useState)(null),[x,S]=(0,X.useState)(null),[C,w]=(0,X.useState)({isGit:!1,gitState:null}),[T,E]=(0,X.useState)(null),O=i().columns-4;(0,X.useEffect)(()=>{async function e(){let e=await re(),t=null;e&&(t=await D()),w({isGit:e,gitState:t})}e()},[]);let k=(0,X.useCallback)(async()=>{p(`submitting`),S(null),b(null);let n=q(),r=F(t)?.requestId??null,[i,o]=await Promise.all([G(),_e()]),s=B(a),c={...i,...s},l={latestAssistantMessageId:r,message_count:t.length,datetime:new Date().toISOString(),description:_,platform:A.platform,gitRepo:C.isGit,terminal:A.terminal,version:`2.7.0`,transcript:I(t),errors:n,lastApiRequest:h(),...Object.keys(c).length>0&&{subagentTranscripts:c},...o&&{rawTranscriptJsonl:o}},[u,d]=await Promise.all([xe(l,e),be(_,e)]);E(d),u.success?(u.feedbackId&&(b(u.feedbackId),ne(`tengu_bug_report_submitted`,{feedback_id:u.feedbackId,last_assistant_message_id:r}),te(`tengu_bug_report_description`,{feedback_id:u.feedbackId,description:K(_)})),p(`done`)):(u.isZdrOrg?S(`Feedback collection is not available for organizations with custom data retention policies.`):S(`Could not submit feedback. Please try again later.`),p(`userInput`))},[_,C.isGit,t]),j=(0,X.useCallback)(()=>{if(u===`done`){r(x?`Error submitting feedback / bug report`:`Feedback / bug report submitted`,{display:`system`});return}r(`Feedback / bug report cancelled`,{display:`system`})},[u,x,r]);return d(`confirm:no`,j,{context:`Settings`,isActive:u===`userInput`}),ee((e,t)=>{if(u===`done`){t.return&&T&&fe(ye(y??``,T,_,q())),r(x?`Error submitting feedback / bug report`:`Feedback / bug report submitted`,{display:`system`});return}if(x&&u!==`userInput`){r(`Error submitting feedback / bug report`,{display:`system`});return}u===`consent`&&(t.return||e===` `)&&k()}),(0,Z.jsxs)(s,{title:`Submit Feedback / Bug Report`,onCancel:j,isCancelActive:u!==`userInput`,inputGuide:e=>e.pending?(0,Z.jsxs)(o,{children:[`Press `,e.keyName,` again to exit`]}):u===`userInput`?(0,Z.jsxs)(l,{children:[(0,Z.jsx)(c,{shortcut:`Enter`,action:`continue`}),(0,Z.jsx)(N,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}):u===`consent`?(0,Z.jsxs)(l,{children:[(0,Z.jsx)(c,{shortcut:`Enter`,action:`submit`}),(0,Z.jsx)(N,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]}):null,children:[u===`userInput`&&(0,Z.jsxs)(f,{flexDirection:`column`,gap:1,children:[(0,Z.jsx)(o,{children:`Describe the issue below:`}),(0,Z.jsx)(R,{value:_,onChange:e=>{v(e),x&&S(null)},columns:O,onSubmit:()=>p(`consent`),onExitMessage:()=>r(`Feedback cancelled`,{display:`system`}),cursorOffset:m,onChangeCursorOffset:g,showCursor:!0}),x&&(0,Z.jsxs)(f,{flexDirection:`column`,gap:1,children:[(0,Z.jsx)(o,{color:`error`,children:x}),(0,Z.jsx)(o,{dimColor:!0,children:`Edit and press Enter to retry, or Esc to cancel`})]})]}),u===`consent`&&(0,Z.jsxs)(f,{flexDirection:`column`,children:[(0,Z.jsx)(o,{children:`This report will include:`}),(0,Z.jsxs)(f,{marginLeft:2,flexDirection:`column`,children:[(0,Z.jsxs)(o,{children:[`- Your feedback / bug description: `,(0,Z.jsx)(o,{dimColor:!0,children:_})]}),(0,Z.jsxs)(o,{children:[`- Environment info:`,` `,(0,Z.jsxs)(o,{dimColor:!0,children:[A.platform,`, `,A.terminal,`, v`,`2.7.0`]})]}),C.gitState&&(0,Z.jsxs)(o,{children:[`- Git repo metadata:`,` `,(0,Z.jsxs)(o,{dimColor:!0,children:[C.gitState.branchName,C.gitState.commitHash?`, ${C.gitState.commitHash.slice(0,7)}`:``,C.gitState.remoteUrl?` @ ${C.gitState.remoteUrl}`:``,!C.gitState.isHeadOnRemote&&`, not synced`,!C.gitState.isClean&&`, has local changes`]})]}),(0,Z.jsx)(o,{children:`- Current session transcript`})]}),(0,Z.jsx)(f,{marginTop:1,children:(0,Z.jsx)(o,{wrap:`wrap`,dimColor:!0,children:`We will use your feedback to debug related issues or to improve Claude Code's functionality (eg. to reduce the risk of bugs occurring in the future).`})}),(0,Z.jsx)(f,{marginTop:1,children:(0,Z.jsxs)(o,{children:[`Press `,(0,Z.jsx)(o,{bold:!0,children:`Enter`}),` to confirm and submit.`]})})]}),u===`submitting`&&(0,Z.jsx)(f,{flexDirection:`row`,gap:1,children:(0,Z.jsx)(o,{children:`Submitting report…`})}),u===`done`&&(0,Z.jsxs)(f,{flexDirection:`column`,children:[x?(0,Z.jsx)(o,{color:`error`,children:x}):(0,Z.jsx)(o,{color:`success`,children:`Thank you for your report!`}),y&&(0,Z.jsxs)(o,{dimColor:!0,children:[`Feedback ID: `,y]}),(0,Z.jsxs)(f,{marginTop:1,children:[(0,Z.jsx)(o,{children:`Press `}),(0,Z.jsx)(o,{bold:!0,children:`Enter `}),(0,Z.jsx)(o,{children:`to open your browser and draft a GitHub issue, or any other key to close.`})]})]})]})}function ye(e,t,n,r){let i=K(t),a=`**Bug Description**\n${K(n)}\n\n**Environment Info**\n- Platform: ${A.platform}\n- Terminal: ${A.terminal}\n- Version: 2.7.0\n- Feedback ID: ${e}\n\n**Errors**\n\`\`\`json\n`,o=C(r),s=`${$}/new?title=${encodeURIComponent(i)}&labels=user-reported,bug&body=`,c=encodeURIComponent(a),l=encodeURIComponent(o),u=Q-s.length-c.length-15-46;if(u<=0){let e=Q-s.length-9-46-50,t=a+o+"\n```\n",n=encodeURIComponent(t);if(n.length>e){n=n.slice(0,e);let t=n.lastIndexOf(`%`);t>=n.length-2&&(n=n.slice(0,t))}return s+n+`%E2%80%A6%0A**Note%3A**%20Content%20was%20truncated.%0A`}if(l.length<=u)return s+c+l+`%0A%60%60%60%0A`;let d=l.slice(0,u-9-50),f=d.lastIndexOf(`%`);return f>=d.length-2&&(d=d.slice(0,f)),s+c+d+`%E2%80%A6%0A%60%60%60%0A%0A**Note%3A**%20Content%20was%20truncated.%0A`}async function be(e,t){try{let n=(await W({systemPrompt:de([`Generate a concise, technical issue title (max 80 chars) for a public GitHub issue based on this bug report for Claude Code.`,`Claude Code is an agentic coding CLI based on the Anthropic API.`,`The title should:`,`- Include the type of issue [Bug] or [Feature Request] as the first thing in the title`,`- Be concise, specific and descriptive of the actual problem`,`- Use technical terminology appropriate for a software issue`,`- For error messages, extract the key error (e.g., "Missing Tool Result Block" rather than the full message)`,`- Be direct and clear for developers to understand the problem`,`- If you cannot determine a clear issue, use "Bug Report: [brief description]"`,`- Any LLM API errors are from the Anthropic API, not from any other model provider`,`Your response will be directly used as the title of the Github issue, and as such should not contain any other commentary or explaination`,`Examples of good titles include: "[Bug] Auto-Compact triggers to soon", "[Bug] Anthropic API Error: Missing Tool Result Block", "[Bug] Error: Invalid Model Name for Opus"`]),userPrompt:e,signal:t,options:{hasAppendSystemPrompt:!1,toolChoice:void 0,isNonInteractiveSession:!1,agents:[],querySource:`feedback`,mcpTools:[]}}))?.message?.content?.[0],r=n?.type===`text`?n.text:`Bug Report`;return U(r)?J(e):r}catch(t){return M(t),J(e)}}function J(e){let t=e.split(`
|
|
2
|
-
`)[0]||``;if(t.length<=60&&t.length>5)return t;let n=t.slice(0,60);if(t.length>60){let e=n.lastIndexOf(` `);e>30&&(n=n.slice(0,e)),n+=`...`}return n.length<10?`Bug Report`:n}function Y(e){if(e instanceof Error){let t=Error(K(e.message));e.stack&&(t.stack=K(e.stack)),M(t)}else{let t=K(String(e));M(Error(t))}}async function xe(e,t){if(ie())return{success:!1};try{await _();let r=y();if(r.error)return{success:!1};let i={"Content-Type":`application/json`,"User-Agent":v(),...r.headers},a=await n.post(`https://api.anthropic.com/api/claude_cli_feedback`,{content:C(e)},{headers:i,timeout:3e4,signal:t});if(a.status===200){let e=a.data;return e?.feedback_id?{success:!0,feedbackId:e.feedback_id}:(Y(Error(`Failed to submit feedback: request did not return feedback_id`)),{success:!1})}return Y(Error(`Failed to submit feedback:`+a.status)),{success:!1}}catch(e){if(n.isCancel(e))return{success:!1};if(n.isAxiosError(e)&&e.response?.status===403){let t=e.response.data;if(t?.error?.type===`permission_error`&&t?.error?.message?.includes(`Custom data retention settings`))return Y(Error(`Cannot submit feedback because custom data retention settings are enabled`)),{success:!1,isZdrOrg:!0}}return Y(e),{success:!1}}}var X,Z,Q,$,Se=e((()=>{r(),a(),X=t(a(),1),m(),g(),E(),L(),V(),u(),me(),ue(),le(),b(),pe(),w(),k(),O(),x(),oe(),j(),P(),S(),H(),ce(),z(),Z=p(),Q=7250,$=process.env.USER_TYPE===`ant`?`https://github.com/anthropics/claude-cli-internal/issues`:`https://github.com/anthropics/claude-code/issues`}));export{Se as n,K as r,ve as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,t}from"./Grove-ZMHK4CBZ.js";e();export{t as GroveDialog};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Q as n,Rn as r,b as i,f as a,g as o,h as s,t as c,x as l,xt as u}from"./src-Di342QoJ.js";import{t as d}from"./jsx-runtime-D-D469L8.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{By as m,SE as h,_E as g,aS as _,hE as v,vE as y,xE as b,yE as x}from"./loadAgentsDir-Br5fGLLI.js";function S(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(i,{children:[`An update to our Consumer Terms and Privacy Policy will take effect on `,(0,D.jsx)(i,{bold:!0,children:`October 8, 2025`}),`. You can accept the updated terms today.`]}),(0,D.jsxs)(l,{flexDirection:`column`,children:[(0,D.jsx)(i,{children:`What's changing?`}),(0,D.jsx)(l,{paddingLeft:1,children:(0,D.jsxs)(i,{children:[(0,D.jsx)(i,{children:`· `}),(0,D.jsx)(i,{bold:!0,children:`You can help improve Claude `}),(0,D.jsxs)(i,{children:[`— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (`,(0,D.jsx)(n,{url:`https://claude.ai/settings/data-privacy-controls`}),`).`]})]})}),(0,D.jsx)(l,{paddingLeft:1,children:(0,D.jsxs)(i,{children:[(0,D.jsx)(i,{children:`· `}),(0,D.jsx)(i,{bold:!0,children:`Updates to data retention `}),(0,D.jsx)(i,{children:`— To help us improve our AI models and safety protections, we're extending data retention to 5 years.`})]})})]}),(0,D.jsxs)(i,{children:[`Learn more (`,(0,D.jsx)(n,{url:`https://www.anthropic.com/news/updates-to-our-consumer-terms`}),`) or read the updated Consumer Terms (`,(0,D.jsx)(n,{url:`https://anthropic.com/legal/terms`}),`) and Privacy Policy (`,(0,D.jsx)(n,{url:`https://anthropic.com/legal/privacy`}),`)`]})]})}function C(){return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(i,{children:`We've updated our Consumer Terms and Privacy Policy.`}),(0,D.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,D.jsx)(i,{children:`What's changing?`}),(0,D.jsxs)(l,{flexDirection:`column`,children:[(0,D.jsx)(i,{bold:!0,children:`Help improve Claude`}),(0,D.jsx)(i,{children:`Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings`}),(0,D.jsx)(n,{url:`https://claude.ai/settings/data-privacy-controls`})]}),(0,D.jsxs)(l,{flexDirection:`column`,children:[(0,D.jsx)(i,{bold:!0,children:`How this affects data retention`}),(0,D.jsx)(i,{children:`Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime.`})]})]}),(0,D.jsxs)(i,{children:[`Learn more (`,(0,D.jsx)(n,{url:`https://www.anthropic.com/news/updates-to-our-consumer-terms`}),`) or read the updated Consumer Terms (`,(0,D.jsx)(n,{url:`https://anthropic.com/legal/terms`}),`) and Privacy Policy (`,(0,D.jsx)(n,{url:`https://anthropic.com/legal/privacy`}),`)`]})]})}function w({showIfAlreadyViewed:e,location:t,onDone:n}){let[r,c]=(0,E.useState)(null),[u,d]=(0,E.useState)(null);if((0,E.useEffect)(()=>{async function r(){let[r,i]=await Promise.all([y(),g()]),a=i.success?i.data:null;d(a);let o=v(r,i,e);if(c(o),!o){n(`skip_rendering`);return}b(),p(`tengu_grove_policy_viewed`,{location:t,dismissable:a?.notice_is_grace_period})}r()},[e,t,n]),r===null||!r)return null;async function f(e){switch(e){case`accept_opt_in`:await h(!0),p(`tengu_grove_policy_submitted`,{state:!0,dismissable:u?.notice_is_grace_period});break;case`accept_opt_out`:await h(!1),p(`tengu_grove_policy_submitted`,{state:!1,dismissable:u?.notice_is_grace_period});break;case`defer`:p(`tengu_grove_policy_dismissed`,{state:!0});break;case`escape`:p(`tengu_grove_policy_escaped`,{});break}n(e)}let m=u?.domain_excluded?[{label:`Accept terms · Help improve Claude: OFF (for emails with your domain)`,value:`accept_opt_out`}]:[{label:`Accept terms · Help improve Claude: ON`,value:`accept_opt_in`},{label:`Accept terms · Help improve Claude: OFF`,value:`accept_opt_out`}];function x(){if(u?.notice_is_grace_period){f(`defer`);return}f(`escape`)}return(0,D.jsxs)(a,{title:`Updates to Consumer Terms and Policies`,color:`professionalBlue`,onCancel:x,inputGuide:e=>e.pending?(0,D.jsxs)(i,{children:[`Press `,e.keyName,` again to exit`]}):(0,D.jsxs)(s,{children:[(0,D.jsx)(o,{shortcut:`Enter`,action:`confirm`}),(0,D.jsx)(o,{shortcut:`Esc`,action:`cancel`})]}),children:[(0,D.jsxs)(l,{flexDirection:`row`,children:[(0,D.jsx)(l,{flexDirection:`column`,gap:1,flexGrow:1,children:u?.notice_is_grace_period?(0,D.jsx)(S,{}):(0,D.jsx)(C,{})}),(0,D.jsx)(l,{flexShrink:0,children:(0,D.jsx)(i,{color:`professionalBlue`,children:O})})]}),(0,D.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,D.jsxs)(l,{flexDirection:`column`,children:[(0,D.jsx)(i,{bold:!0,children:`Please select how you'd like to continue`}),(0,D.jsx)(i,{children:`Your choice takes effect immediately upon confirmation.`})]}),(0,D.jsx)(_,{options:[...m,...u?.notice_is_grace_period?[{label:`Not now`,value:`defer`}]:[]],onChange:e=>f(e),onCancel:x})]})]})}function T({settings:e,domainExcluded:t,onDone:r}){let[c,d]=(0,E.useState)(e.grove_enabled);E.useEffect(()=>{p(`tengu_grove_privacy_settings_viewed`,{})},[]),u(async(e,n)=>{if(!t&&(n.tab||n.return||e===` `)){let e=!c;d(e),await h(e)}});let f=(0,D.jsx)(i,{color:`error`,children:`false`});return t?f=(0,D.jsx)(i,{color:`error`,children:`false (for emails with your domain)`}):c&&(f=(0,D.jsx)(i,{color:`success`,children:`true`})),(0,D.jsxs)(a,{title:`Data Privacy`,color:`professionalBlue`,onCancel:r,inputGuide:e=>e.pending?(0,D.jsxs)(i,{children:[`Press `,e.keyName,` again to exit`]}):t?(0,D.jsx)(o,{shortcut:`Esc`,action:`cancel`}):(0,D.jsxs)(s,{children:[(0,D.jsx)(o,{shortcut:`Enter/Tab/Space`,action:`toggle`}),(0,D.jsx)(o,{shortcut:`Esc`,action:`cancel`})]}),children:[(0,D.jsxs)(i,{children:[`Review and manage your privacy settings at`,` `,(0,D.jsx)(n,{url:`https://claude.ai/settings/data-privacy-controls`})]}),(0,D.jsxs)(l,{children:[(0,D.jsx)(l,{width:44,children:(0,D.jsx)(i,{bold:!0,children:`Help improve Claude`})}),(0,D.jsx)(l,{children:f})]})]})}var E,D,O,k=e((()=>{E=t(r()),f(),c(),x(),m(),D=d(),O=` _____________
|
|
2
|
-
| \\ \\
|
|
3
|
-
| NEW TERMS \\__\\
|
|
4
|
-
| |
|
|
5
|
-
| ---------- |
|
|
6
|
-
| ---------- |
|
|
7
|
-
| ---------- |
|
|
8
|
-
| ---------- |
|
|
9
|
-
| ---------- |
|
|
10
|
-
| |
|
|
11
|
-
|______________|`}));export{T as n,k as r,w as t};
|