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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Tn as t,wn as n}from"./src-Di342QoJ.js";import{Ct as r,cn as i}from"./state-sIHsFpDu.js";import{et as a}from"./log-DS97_rIr.js";import{Uo as o,by as s,gy as c,ho as l}from"./loadAgentsDir-Br5fGLLI.js";import{fn as u}from"./prompt-B8M-HLIS.js";import{randomUUID as d}from"crypto";function f(e){return e.flatMap(e=>{switch(e.type){case`assistant`:return[{type:`assistant`,message:e.message,uuid:e.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case`user`:return[{type:`user`,message:e.message,uuid:e.uuid??d(),timestamp:e.timestamp??new Date().toISOString(),isMeta:e.isSynthetic}];default:return[]}})}function p(e){let t=e.preservedSegment;return{trigger:e.trigger,pre_tokens:e.preTokens,...t&&{preserved_segment:{head_uuid:t.headUuid,anchor_uuid:t.anchorUuid,tail_uuid:t.tailUuid}}}}function m(e){let t=e,n=t.preserved_segment;return{trigger:t.trigger,preTokens:t.pre_tokens,...n&&{preservedSegment:{headUuid:n.head_uuid,anchorUuid:n.anchor_uuid,tailUuid:n.tail_uuid}}}}function h(e){return e.flatMap(e=>{switch(e.type){case`assistant`:return[{type:`assistant`,message:v(e),session_id:r(),parent_tool_use_id:null,uuid:e.uuid,error:e.error}];case`user`:return[{type:`user`,message:e.message,session_id:r(),parent_tool_use_id:null,uuid:e.uuid,timestamp:e.timestamp,isSynthetic:e.isMeta||e.isVisibleInTranscriptOnly,...e.toolUseResult===void 0?{}:{tool_use_result:e.toolUseResult}}];case`system`:return e.subtype===`compact_boundary`&&e.compactMetadata?[{type:`system`,subtype:`compact_boundary`,session_id:r(),uuid:e.uuid,compact_metadata:p(e.compactMetadata)}]:e.subtype===`local_command`&&(e.content.includes(`<local-command-stdout>`)||e.content.includes(`<local-command-stderr>`))?[g(e.content,e.uuid)]:[];default:return[]}})}function g(e,n){let i=l({content:t(e).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,`$1`).replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,`$1`).trim()});return{type:`assistant`,content:i.message?.content,message:i.message,parent_tool_use_id:null,session_id:r(),uuid:n}}function _(e){if(e)return{type:`rate_limit`,status:e.status,...e.resetsAt!==void 0&&{resetsAt:e.resetsAt},...e.rateLimitType!==void 0&&{rateLimitType:e.rateLimitType},...e.utilization!==void 0&&{utilization:e.utilization},...e.overageStatus!==void 0&&{overageStatus:e.overageStatus},...e.overageResetsAt!==void 0&&{overageResetsAt:e.overageResetsAt},...e.overageDisabledReason!==void 0&&{overageDisabledReason:e.overageDisabledReason},...e.isUsingOverage!==void 0&&{isUsingOverage:e.isUsingOverage},...e.surpassedThreshold!==void 0&&{surpassedThreshold:e.surpassedThreshold}}}function v(e){let t=e.message.content;if(!Array.isArray(t))return e.message;let n=t.map(e=>{if(e.type!==`tool_use`)return e;if(e.name===`ExitPlanMode`){let t=c();if(t)return{...e,input:{...e.input,plan:t}}}return e});return{...e.message,content:n}}var y=e((()=>{i(),a(),u(),n(),o(),s()}));export{p as a,f as i,y as n,h as o,g as r,_ as s,m as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{B as e,M as t,d as n,n as r,t as i}from"./server-DzOdtq8A.js";import{Dr as a,Pr as o}from"./paths-DfGsIjPm.js";import{E as s,O as c}from"./debug-otxXY3j-.js";import{o as l,s as u}from"./log-DS97_rIr.js";import{$u as d,Ba as f,G as p,K as m,Qu as h,Uo as g,bD as _,cl as v,eO as y,fu as b,ho as x,mh as S,ph as C,pu as w,sl as T,tO as E,xD as D,za as O}from"./loadAgentsDir-Br5fGLLI.js";import{Qn as k,Xn as A,Zn as j}from"./prompt-B8M-HLIS.js";import{a as M,o as N}from"./fileStateCache-C7-TxF8G.js";import{n as P,t as F}from"./stdio-BEEzuxaZ.js";r(),P(),e(),D(),O(),k(),d(),E(),N(),l(),g(),o(),m(),C(),s(),w(),T();var I=[f];async function L(e,r,o){let s=M(100);S(e);let l=new i({name:`claude/tengu`,version:`2.7.0`},{capabilities:{tools:{}}});l.setRequestHandler(t,async()=>{let e=j(),t=h(e);return{tools:await Promise.all(t.map(async n=>{let r;if(n.outputSchema){let e=v(n.outputSchema);typeof e==`object`&&e&&`type`in e&&e.type===`object`&&(r=e)}return{...n,description:await n.prompt({getToolPermissionContext:async()=>e,tools:t,agents:[]}),inputSchema:v(n.inputSchema),outputSchema:r}}))}}),l.setRequestHandler(n,async({params:{name:e,arguments:t}})=>{let n=h(j()),i=A(n,e);if(!i)throw Error(`Tool ${e} not found`);let l={abortController:y(),options:{commands:I,tools:n,mainLoopModel:a(),thinkingConfig:{type:`disabled`},mcpClients:[],mcpResources:{},isNonInteractiveSession:!0,debug:r,verbose:o,agentDefinitions:{activeAgents:[],allAgents:[]}},getAppState:()=>_(),setAppState:()=>{},messages:[],readFileState:s,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};try{if(!i.isEnabled())throw Error(`Tool ${e} is not enabled`);let n=await i.validateInput?.(t??{},l);if(n&&!n.result)throw Error(`Tool ${e} input is invalid: ${`message`in n?n.message:String(n)}`);let r=await i.call(t??{},l,p,x({content:[]}));return{content:[{type:`text`,text:typeof r==`string`?r:c(r.data)}]}}catch(e){return u(e),{isError:!0,content:[{type:`text`,text:(e instanceof Error?b(e):[String(e)]).filter(Boolean).join(`
|
|
2
|
-
`).trim()||`Error`}]}}});async function d(){let e=new F;await l.connect(e)}return await d()}export{L as startMCPServer};
|
|
@@ -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{Q as i,Rn as a,T as o,b as s,f as c,g as l,h as u,nt as d,t as f,tt as p,v as m,x as h}from"./src-Di342QoJ.js";import{t as g}from"./jsx-runtime-D-D469L8.js";import{Do as _,Po as v,jo as y}from"./paths-DfGsIjPm.js";import{l as b,u as x}from"./debug-otxXY3j-.js";import{$C as S,By as C,Cw as w,DC as T,EC as E,JC as D,Jy as O,Ky as k,Ow as A,Tw as j,YC as ee,aS as M,dC as te,ew as ne,gw as N,lC as P,uC as F}from"./loadAgentsDir-Br5fGLLI.js";import{D as re,O as ie}from"./rcDebugLog-BoroyfjB.js";import{t as I}from"./useKeybinding-FsOnjW6T.js";import{i as ae,n as L,r as oe}from"./MCPConnectionManager-DmJ6dLOp.js";import{n as se,t as ce}from"./McpParsingWarnings-CE2pQPXV.js";import{a as le,c as R,i as z,l as ue,n as de,o as B,r as fe,s as pe,t as me,u as V}from"./PluginSettings-OJQz3d5V.js";function he({agentServer:e,onCancel:t,onComplete:n}){let[a]=o(),[d,f]=(0,H.useState)(!1),[g,v]=(0,H.useState)(null),[y,b]=(0,H.useState)(null),x=(0,H.useRef)(null);(0,H.useEffect)(()=>()=>x.current?.abort(),[]),p(`confirm:no`,(0,H.useCallback)(()=>{d&&(x.current?.abort(),x.current=null,f(!1),b(null))},[d]),{context:`Confirmation`,isActive:d});let S=(0,H.useCallback)(async()=>{if(!e.needsAuth||!e.url)return;f(!0),v(null);let t=new AbortController;x.current=t;try{let r={type:e.transport,url:e.url};await ne(e.name,r,b,t.signal),n?.(`Authentication successful for ${e.name}. The server will connect when the agent runs.`)}catch(e){e instanceof Error&&!(e instanceof D)&&v(e.message)}finally{f(!1),x.current=null}},[e,n]),C=_(String(e.name));if(d)return(0,U.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,U.jsxs)(s,{color:`claude`,children:[`Authenticating with `,e.name,`…`]}),(0,U.jsxs)(h,{children:[(0,U.jsx)(k,{}),(0,U.jsx)(s,{children:` A browser window will open for authentication`})]}),y&&(0,U.jsxs)(h,{flexDirection:`column`,children:[(0,U.jsx)(s,{dimColor:!0,children:`If your browser doesn't open automatically, copy this URL manually:`}),(0,U.jsx)(i,{url:y})]}),(0,U.jsx)(h,{marginLeft:3,children:(0,U.jsxs)(s,{dimColor:!0,children:[`Return here after authenticating in your browser.`,` `,(0,U.jsx)(E,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]})})]});let w=[];return e.needsAuth&&w.push({label:e.isAuthenticated?`Re-authenticate`:`Authenticate`,value:`auth`}),w.push({label:`Back`,value:`back`}),(0,U.jsxs)(c,{title:`${C} MCP Server`,subtitle:`agent-only`,onCancel:t,inputGuide:e=>e.pending?(0,U.jsxs)(s,{children:[`Press `,e.keyName,` again to exit`]}):(0,U.jsxs)(u,{children:[(0,U.jsx)(l,{shortcut:`↑↓`,action:`navigate`}),(0,U.jsx)(l,{shortcut:`Enter`,action:`confirm`}),(0,U.jsx)(E,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`go back`})]}),children:[(0,U.jsxs)(h,{flexDirection:`column`,gap:0,children:[(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{bold:!0,children:`Type: `}),(0,U.jsx)(s,{dimColor:!0,children:e.transport})]}),e.url&&(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{bold:!0,children:`URL: `}),(0,U.jsx)(s,{dimColor:!0,children:e.url})]}),e.command&&(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{bold:!0,children:`Command: `}),(0,U.jsx)(s,{dimColor:!0,children:e.command})]}),(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{bold:!0,children:`Used by: `}),(0,U.jsx)(s,{dimColor:!0,children:e.sourceAgents.join(`, `)})]}),(0,U.jsxs)(h,{marginTop:1,children:[(0,U.jsx)(s,{bold:!0,children:`Status: `}),(0,U.jsxs)(s,{children:[m(`inactive`,a)(r.radioOff),` not connected (agent-only)`]})]}),e.needsAuth&&(0,U.jsxs)(h,{children:[(0,U.jsx)(s,{bold:!0,children:`Auth: `}),e.isAuthenticated?(0,U.jsxs)(s,{children:[m(`success`,a)(r.tick),` authenticated`]}):(0,U.jsxs)(s,{children:[m(`warning`,a)(r.triangleUpOutline),` may need authentication`]})]})]}),(0,U.jsx)(h,{children:(0,U.jsx)(s,{dimColor:!0,children:`This server connects only when running the agent.`})}),g&&(0,U.jsx)(h,{children:(0,U.jsxs)(s,{color:`error`,children:[`Error: `,g]})}),(0,U.jsx)(h,{children:(0,U.jsx)(M,{options:w,onChange:async e=>{switch(e){case`auth`:await S();break;case`back`:t();break}},onCancel:t})})]})}var H,U,W=e((()=>{n(),H=t(a(),1),f(),I(),S(),y(),T(),C(),O(),U=g()}));function ge(e){switch(e){case`project`:return{label:`Project MCPs`,path:N(e)};case`user`:return{label:`User MCPs`,path:N(e)};case`local`:return{label:`Local MCPs`,path:N(e)};case`enterprise`:return{label:`Enterprise MCPs`};case`dynamic`:return{label:`Built-in MCPs`,path:`always available`};default:return{label:e}}}function _e(e){let t=new Map;for(let n of e){let e=n.scope;t.has(e)||t.set(e,[]),t.get(e).push(n)}for(let[,e]of t)e.sort((e,t)=>e.name.localeCompare(t.name));return t}function ve({servers:e,agentServers:t=[],onSelectServer:n,onSelectAgentServer:a,onComplete:f}){let[p]=o(),[g,_]=(0,G.useState)(0),y=G.useMemo(()=>_e(e.filter(e=>e.client.config.type!==`claudeai-proxy`)),[e]),b=G.useMemo(()=>e.filter(e=>e.client.config.type===`claudeai-proxy`).sort((e,t)=>e.name.localeCompare(t.name)),[e]),S=G.useMemo(()=>(y.get(`dynamic`)??[]).sort((e,t)=>e.name.localeCompare(t.name)),[y]),C=ge(`dynamic`),w=G.useMemo(()=>{let e=[];for(let t of q){let n=y.get(t)??[];for(let t of n)e.push({type:`server`,server:t})}for(let t of b)e.push({type:`server`,server:t});for(let n of t)e.push({type:`agent-server`,agentServer:n});for(let t of S)e.push({type:`server`,server:t});return e},[y,b,t,S]),T=(0,G.useCallback)(()=>{f(`MCP dialog dismissed`,{display:`system`})},[f]);d({"confirm:previous":()=>_(e=>e===0?w.length-1:e-1),"confirm:next":()=>_(e=>e===w.length-1?0:e+1),"confirm:yes":(0,G.useCallback)(()=>{let e=w[g];e&&(e.type===`server`?n(e.server):e.type===`agent-server`&&a&&a(e.agentServer))},[w,g,n,a]),"confirm:no":T},{context:`Confirmation`});let D=e=>w.findIndex(t=>t.type===`server`&&t.server===e),O=e=>w.findIndex(t=>t.type===`agent-server`&&t.agentServer===e),k=x(),A=e.some(e=>e.client.type===`failed`);if(e.length===0&&t.length===0)return null;let j=e=>{let t=D(e),n=g===t,i=``,a=``;if(e.client.type===`disabled`)i=m(`inactive`,p)(r.radioOff),a=`disabled`;else if(e.client.type===`connected`)i=m(`success`,p)(r.tick),a=`connected`;else if(e.client.type===`pending`){i=m(`inactive`,p)(r.radioOff);let{reconnectAttempt:t,maxReconnectAttempts:n}=e.client;a=t&&n?`reconnecting (${t}/${n})…`:`connecting…`}else e.client.type===`needs-auth`?(i=m(`warning`,p)(r.triangleUpOutline),a=`needs authentication`):(i=m(`error`,p)(r.cross),a=`failed`);return(0,K.jsxs)(h,{children:[(0,K.jsx)(s,{color:n?`suggestion`:void 0,children:n?`${r.pointer} `:` `}),(0,K.jsx)(s,{color:n?`suggestion`:void 0,children:e.name}),(0,K.jsxs)(s,{dimColor:!n,children:[` · `,i,` `]}),(0,K.jsx)(s,{dimColor:!n,children:a})]},`${e.name}-${t}`)},ee=e=>{let t=O(e),n=g===t,i=e.needsAuth?m(`warning`,p)(r.triangleUpOutline):m(`inactive`,p)(r.radioOff),a=e.needsAuth?`may need auth`:`agent-only`;return(0,K.jsxs)(h,{children:[(0,K.jsx)(s,{color:n?`suggestion`:void 0,children:n?`${r.pointer} `:` `}),(0,K.jsx)(s,{color:n?`suggestion`:void 0,children:e.name}),(0,K.jsxs)(s,{dimColor:!n,children:[` · `,i,` `]}),(0,K.jsx)(s,{dimColor:!n,children:a})]},`agent-${e.name}-${t}`)},M=e.length+t.length;return(0,K.jsxs)(h,{flexDirection:`column`,children:[(0,K.jsx)(ce,{}),(0,K.jsx)(c,{title:`Manage MCP servers`,subtitle:`${M} ${v(M,`server`)}`,onCancel:T,hideInputGuide:!0,children:(0,K.jsxs)(h,{flexDirection:`column`,children:[q.map(e=>{let t=y.get(e);if(!t||t.length===0)return null;let n=ge(e);return(0,K.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,K.jsxs)(h,{paddingLeft:2,children:[(0,K.jsx)(s,{bold:!0,children:n.label}),n.path&&(0,K.jsxs)(s,{dimColor:!0,children:[` (`,n.path,`)`]})]}),t.map(e=>j(e))]},e)}),b.length>0&&(0,K.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,K.jsx)(h,{paddingLeft:2,children:(0,K.jsx)(s,{bold:!0,children:`claude.ai`})}),b.map(e=>j(e))]}),t.length>0&&(0,K.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,K.jsx)(h,{paddingLeft:2,children:(0,K.jsx)(s,{bold:!0,children:`Agent MCPs`})}),[...new Set(t.flatMap(e=>e.sourceAgents))].map(e=>(0,K.jsxs)(h,{flexDirection:`column`,marginTop:1,children:[(0,K.jsx)(h,{paddingLeft:2,children:(0,K.jsxs)(s,{dimColor:!0,children:[`@`,e]})}),t.filter(t=>t.sourceAgents.includes(e)).map(e=>ee(e))]},e))]}),S.length>0&&(0,K.jsxs)(h,{flexDirection:`column`,marginBottom:1,children:[(0,K.jsxs)(h,{paddingLeft:2,children:[(0,K.jsx)(s,{bold:!0,children:C.label}),C.path&&(0,K.jsxs)(s,{dimColor:!0,children:[` (`,C.path,`)`]})]}),S.map(e=>j(e))]}),(0,K.jsxs)(h,{flexDirection:`column`,children:[A&&(0,K.jsx)(s,{dimColor:!0,children:k?`※ Error logs shown inline with --debug`:`※ Run claude --debug to see error logs`}),(0,K.jsxs)(s,{dimColor:!0,children:[(0,K.jsx)(i,{url:`https://code.claude.com/docs/en/mcp`,children:`https://code.claude.com/docs/en/mcp`}),` for help`]})]})]})}),(0,K.jsx)(h,{paddingX:1,children:(0,K.jsx)(s,{dimColor:!0,italic:!0,children:(0,K.jsxs)(u,{children:[(0,K.jsx)(l,{shortcut:`↑↓`,action:`navigate`}),(0,K.jsx)(l,{shortcut:`Enter`,action:`confirm`}),(0,K.jsx)(E,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]})}var G,K,q,ye=e((()=>{n(),G=t(a(),1),f(),I(),A(),b(),y(),T(),se(),K=g(),q=[`project`,`local`,`user`,`enterprise`]}));function be({serverName:e,onComplete:t}){let[n]=o(),i=te(),a=oe(),[c,l]=(0,J.useState)(!0),[u,d]=(0,J.useState)(null);return(0,J.useEffect)(()=>{async function n(){try{if(!i.getState().mcp.clients.find(t=>t.name===e)){d(`MCP server "${e}" not found`),l(!1),t(`MCP server "${e}" not found`);return}switch((await a(e)).client.type){case`connected`:l(!1),t(`Successfully reconnected to ${e}`);break;case`needs-auth`:d(`${e} requires authentication`),l(!1),t(`${e} requires authentication. Use /mcp to authenticate.`);break;case`pending`:case`failed`:case`disabled`:d(`Failed to reconnect to ${e}`),l(!1),t(`Failed to reconnect to ${e}`);break}}catch(e){let n=e instanceof Error?e.message:String(e);d(n),l(!1),t(`Error: ${n}`)}}n()},[e,a,i,t]),c?(0,Y.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,Y.jsxs)(s,{color:`text`,children:[`Reconnecting to `,(0,Y.jsx)(s,{bold:!0,children:e})]}),(0,Y.jsxs)(h,{children:[(0,Y.jsx)(k,{}),(0,Y.jsx)(s,{children:` Establishing connection to MCP server`})]})]}):u?(0,Y.jsxs)(h,{flexDirection:`column`,gap:1,padding:1,children:[(0,Y.jsxs)(h,{children:[(0,Y.jsxs)(s,{children:[m(`error`,n)(r.cross),` `]}),(0,Y.jsxs)(s,{color:`error`,children:[`Failed to reconnect to `,e]})]}),(0,Y.jsxs)(s,{dimColor:!0,children:[`Error: `,u]})]}):null}var J,Y,xe=e((()=>{n(),J=t(a(),1),f(),L(),P(),O(),Y=g()}));function Se({onComplete:e}){let t=F(e=>e.mcp),n=F(e=>e.agentDefinitions),r=t.clients,[i,a]=X.useState({type:`list`}),[o,s]=X.useState([]),c=(0,X.useMemo)(()=>w(n.allAgents),[n.allAgents]),l=X.useMemo(()=>r.filter(e=>e.name!==`ide`).sort((e,t)=>e.name.localeCompare(t.name)),[r]);switch(X.useEffect(()=>{let e=!1;async function n(){let n=await Promise.all(l.map(async e=>{let n=e.config.scope,r=e.config.type===`sse`,i=e.config.type===`http`,a=e.config.type===`claudeai-proxy`,o;if(r||i){let n=await new ee(e.name,e.config).tokens(),r=re()!==null&&e.type===`connected`,i=e.type===`connected`&&j(t.tools,e.name).length>0;o=!!n||r||i}let s={name:e.name,client:e,scope:n};return a?{...s,transport:`claudeai-proxy`,isAuthenticated:!1,config:e.config}:r?{...s,transport:`sse`,isAuthenticated:o,config:e.config}:i?{...s,transport:`http`,isAuthenticated:o,config:e.config}:{...s,transport:`stdio`,config:e.config}}));e||s(n)}return n(),()=>{e=!0}},[l,t.tools]),(0,X.useEffect)(()=>{o.length===0&&l.length>0||o.length===0&&c.length===0&&e("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.")},[o.length,l.length,c.length,e]),i.type){case`list`:return(0,Z.jsx)(ve,{servers:o,agentServers:c,onSelectServer:e=>a({type:`server-menu`,server:e}),onSelectAgentServer:e=>a({type:`agent-server-menu`,agentServer:e}),onComplete:e,defaultTab:i.defaultTab});case`server-menu`:{let n=j(t.tools,i.server.name),r=i.server.transport===`claudeai-proxy`?`claude.ai`:`Claude Code`;return i.server.transport===`stdio`?(0,Z.jsx)(pe,{server:i.server,serverToolsCount:n.length,onViewTools:()=>a({type:`server-tools`,server:i.server}),onCancel:()=>a({type:`list`,defaultTab:r}),onComplete:e}):(0,Z.jsx)(ue,{server:i.server,serverToolsCount:n.length,onViewTools:()=>a({type:`server-tools`,server:i.server}),onCancel:()=>a({type:`list`,defaultTab:r}),onComplete:e})}case`server-tools`:return(0,Z.jsx)(fe,{server:i.server,onSelectTool:(e,t)=>a({type:`server-tool-detail`,server:i.server,toolIndex:t}),onBack:()=>a({type:`server-menu`,server:i.server})});case`server-tool-detail`:{let e=j(t.tools,i.server.name)[i.toolIndex];return e?(0,Z.jsx)(le,{tool:e,server:i.server,onBack:()=>a({type:`server-tools`,server:i.server})}):(a({type:`server-tools`,server:i.server}),null)}case`agent-server-menu`:return(0,Z.jsx)(he,{agentServer:i.agentServer,onCancel:()=>a({type:`list`,defaultTab:`Agents`}),onComplete:e})}}var X,Z,Ce=e((()=>{X=t(a(),1),S(),A(),P(),ie(),W(),ye(),V(),R(),B(),z(),Z=g()})),we=e((()=>{W(),ye(),xe(),V(),Ce(),R(),B(),z()}));function Te({action:e,target:t,onComplete:n}){let r=F(e=>e.mcp.clients),i=ae(),a=(0,Q.useRef)(!1);return(0,Q.useEffect)(()=>{if(a.current)return;a.current=!0;let o=e===`enable`,s=r.filter(e=>e.name!==`ide`),c=t===`all`?s.filter(e=>o?e.type===`disabled`:e.type!==`disabled`):s.filter(e=>e.name===t);if(c.length===0){n(t===`all`?`All MCP servers are already ${o?`enabled`:`disabled`}`:`MCP server "${t}" not found`);return}for(let e of c)i(e.name);n(t===`all`?`${o?`Enabled`:`Disabled`} ${c.length} MCP server(s)`:`MCP server "${t}" ${o?`enabled`:`disabled`}`)},[e,t,r,i,n]),null}async function Ee(e,t,n){if(n){let t=n.trim().split(/\s+/);if(t[0]===`no-redirect`)return(0,$.jsx)(Se,{onComplete:e});if(t[0]===`reconnect`&&t[1])return(0,$.jsx)(be,{serverName:t.slice(1).join(` `),onComplete:e});if(t[0]===`enable`||t[0]===`disable`)return(0,$.jsx)(Te,{action:t[0],target:t.length>1?t.slice(1).join(` `):`all`,onComplete:e})}return process.env.USER_TYPE===`ant`?(0,$.jsx)(me,{onComplete:e,args:`manage`,showMcpRedirectMessage:!0}):(0,$.jsx)(Se,{onComplete:e})}var Q,$;e((()=>{Q=t(a(),1),we(),xe(),L(),P(),de(),$=g()}))();export{Ee as call};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{o as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./p-map-D7WEmnBE.js";import{Mt as r,Rn as i,T as a,b as o,f as s,g as c,h as l,t as u,v as d,x as ee}from"./src-Di342QoJ.js";import{t as f}from"./jsx-runtime-D-D469L8.js";import{Ac as p,Nc as m,Po as h,Sc as g,bc as _,jo as te}from"./paths-DfGsIjPm.js";import{K as ne,U as re}from"./debug-otxXY3j-.js";import{n as v,r as y}from"./analytics-DqMQntaB.js";import{n as b,o as ie}from"./process-DMKLUQIO.js";import{i as x,o as S}from"./platform-DYZVoA9J.js";import{s as C,u as w}from"./types-D5R26wwH.js";import{$C as T,$x as E,CE as D,DC as O,Dw as k,EC as A,Gw as j,Hy as M,Iw as N,Iy as P,Ly as F,Ow as I,QC as L,Rw as R,TE as z,Vw as B,Vy as V,XC as H,Yx as U,ZC as W,_w as G,cC as K,gw as q,jw as J,lC as ae,rw as oe,tS as se,tw as ce,zw as le}from"./loadAgentsDir-Br5fGLLI.js";import{n as Y,t as X}from"./exit-_obETqBv.js";import{stat as ue}from"fs/promises";import{cwd as de}from"process";n();var Z=e(i(),1);z(),b(),u(),B(),te(),O(),M();var Q=f();function fe({servers:e,scope:t,onDone:n}){let r=Object.keys(e),[i,u]=(0,Z.useState)({});(0,Z.useEffect)(()=>{N().then(({servers:e})=>u(e))},[]);let f=r.filter(e=>i[e]!==void 0);async function p(n){let r=0;for(let a of n){let n=e[a];if(n){let e=a;if(i[e]!==void 0){let t=1;for(;i[`${a}_${t}`]!==void 0;)t++;e=`${a}_${t}`}await J(e,n,t),r++}}g(r)}let[m]=a(),g=(0,Z.useCallback)(e=>{ie(e>0?`\n${d(`success`,m)(`Successfully imported ${e} MCP ${h(e,`server`)} to ${t} config.`)}\n`:`
|
|
2
|
-
No servers were imported.`),n(),D()},[m,t,n]),_=(0,Z.useCallback)(()=>{g(0)},[g]);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(s,{title:`Import MCP Servers from Claude Desktop`,subtitle:`Found ${r.length} MCP ${h(r.length,`server`)} in Claude Desktop.`,color:`success`,onCancel:_,hideInputGuide:!0,children:[f.length>0&&(0,Q.jsx)(o,{color:`warning`,children:`Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix.`}),(0,Q.jsx)(o,{children:`Please select the servers you want to import:`}),(0,Q.jsx)(V,{options:r.map(e=>({label:`${e}${f.includes(e)?` (already exists)`:``}`,value:e})),defaultValue:r.filter(e=>!f.includes(e)),onSubmit:p,onCancel:_,hideIndexes:!0})]}),(0,Q.jsx)(ee,{paddingX:1,children:(0,Q.jsx)(o,{dimColor:!0,italic:!0,children:(0,Q.jsxs)(l,{children:[(0,Q.jsx)(c,{shortcut:`Space`,action:`select`}),(0,Q.jsx)(c,{shortcut:`Enter`,action:`confirm`}),(0,Q.jsx)(A,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})})]})}u(),F(),v(),T(),se(),B(),I(),ae(),p(),re(),z(),C(),S();async function $(e,t){try{let n=await U(e,t);return n.type===`connected`?`✓ Connected`:n.type===`needs-auth`?`! Needs authentication`:`✗ Failed to connect`}catch{return`✗ Connection error`}}async function pe({debug:e,verbose:t}){let n=de();y(`tengu_mcp_start`,{});try{await ue(n)}catch(e){throw ne(e)&&X(`Error: Directory ${n} does not exist`),e}try{let{setup:r}=await import(`./setup-DjsmjRKQ.js`);await r(n,`default`,!1,!1,void 0,!1);let{startMCPServer:i}=await import(`./mcp-BV4m1Gbl.js`);await i(n,e??!1,t??!1)}catch(e){X(`Error: Failed to start MCP server: ${e}`)}}async function me(e,t){let n=R(e),r=()=>{n&&(n.type===`sse`||n.type===`http`)&&(W(e,n),H(e,n))};try{if(t.scope){let n=G(t.scope);y(`tengu_mcp_delete`,{name:e,scope:n}),await j(e,n),r(),process.stdout.write(`Removed MCP server ${e} from ${n} config\n`),Y(`File modified: ${q(n)}`)}let n=_(),i=g(),{servers:a}=le(`project`),o=!!a[e],s=[];if(n.mcpServers?.[e]&&s.push(`local`),o&&s.push(`project`),i.mcpServers?.[e]&&s.push(`user`),s.length===0)X(`No MCP server found with name: "${e}"`);else if(s.length===1){let t=s[0];y(`tengu_mcp_delete`,{name:e,scope:t}),await j(e,t),r(),process.stdout.write(`Removed MCP server "${e}" from ${t} config\n`),Y(`File modified: ${q(t)}`)}else process.stderr.write(`MCP server "${e}" exists in multiple scopes:\n`),s.forEach(e=>{process.stderr.write(` - ${k(e)} (${q(e)})\n`)}),process.stderr.write(`
|
|
3
|
-
To remove from a specific scope, use:
|
|
4
|
-
`),s.forEach(t=>{process.stderr.write(` claude mcp remove "${e}" -s ${t}\n`)}),X()}catch(e){X(e.message)}}async function he(){y(`tengu_mcp_list`,{});let{servers:e}=await N();if(Object.keys(e).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
|
|
5
|
-
`);let n=await t(Object.entries(e),async([e,t])=>({name:e,server:t,status:await $(e,t)}),{concurrency:E()});for(let{name:e,server:t,status:r}of n)if(t.type===`sse`)console.log(`${e}: ${t.url} (SSE) - ${r}`);else if(t.type===`http`)console.log(`${e}: ${t.url} (HTTP) - ${r}`);else if(t.type===`claudeai-proxy`)console.log(`${e}: ${t.url} - ${r}`);else if(!t.type||t.type===`stdio`){let n=t,i=Array.isArray(n.args)?n.args:[];console.log(`${e}: ${n.command} ${i.join(` `)} - ${r}`)}}await D(0)}async function ge(e){y(`tengu_mcp_get`,{name:e});let t=R(e);t||X(`No MCP server found with name: ${e}`),console.log(`${e}:`),console.log(` Scope: ${k(t.scope)}`);let n=await $(e,t);if(console.log(` Status: ${n}`),t.type===`sse`){if(console.log(` Type: sse`),console.log(` URL: ${t.url}`),t.headers){console.log(` Headers:`);for(let[e,n]of Object.entries(t.headers))console.log(` ${e}: ${n}`)}if(t.oauth?.clientId||t.oauth?.callbackPort){let n=[];t.oauth.clientId&&(n.push(`client_id configured`),L(e,t)?.clientSecret&&n.push(`client_secret configured`)),t.oauth.callbackPort&&n.push(`callback_port ${t.oauth.callbackPort}`),console.log(` OAuth: ${n.join(`, `)}`)}}else if(t.type===`http`){if(console.log(` Type: http`),console.log(` URL: ${t.url}`),t.headers){console.log(` Headers:`);for(let[e,n]of Object.entries(t.headers))console.log(` ${e}: ${n}`)}if(t.oauth?.clientId||t.oauth?.callbackPort){let n=[];t.oauth.clientId&&(n.push(`client_id configured`),L(e,t)?.clientSecret&&n.push(`client_secret configured`)),t.oauth.callbackPort&&n.push(`callback_port ${t.oauth.callbackPort}`),console.log(` OAuth: ${n.join(`, `)}`)}}else if(t.type===`stdio`){console.log(` Type: stdio`),console.log(` Command: ${t.command}`);let e=Array.isArray(t.args)?t.args:[];if(console.log(` Args: ${e.join(` `)}`),t.env){console.log(` Environment:`);for(let[e,n]of Object.entries(t.env))console.log(` ${e}=${n}`)}}console.log(`\nTo remove this server, run: claude mcp remove "${e}" -s ${t.scope}`),await D(0)}async function _e(e,t,n){try{let r=G(n.scope),i=w(t),a=n.clientSecret&&i&&typeof i==`object`&&`type`in i&&(i.type===`sse`||i.type===`http`)&&`url`in i&&typeof i.url==`string`&&`oauth`in i&&i.oauth&&typeof i.oauth==`object`&&`clientId`in i.oauth?await ce():void 0;await J(e,i,r);let o=i&&typeof i==`object`&&`type`in i?String(i.type||`stdio`):`stdio`;a&&i&&typeof i==`object`&&`type`in i&&(i.type===`sse`||i.type===`http`)&&`url`in i&&typeof i.url==`string`&&oe(e,{type:i.type,url:i.url},a),y(`tengu_mcp_add`,{scope:r,source:`json`,type:o}),Y(`Added ${o} MCP server ${e} to ${r} config`)}catch(e){X(e.message)}}async function ve(e){try{let t=G(e.scope);y(`tengu_mcp_add`,{scope:t,platform:x(),source:`desktop`});let{readClaudeDesktopMcpServers:n}=await import(`./claudeDesktop-CX1AsJie.js`),i=await n();Object.keys(i).length===0&&Y(`No MCP servers found in Claude Desktop configuration or configuration file does not exist.`);let{unmount:a}=await r((0,Q.jsx)(K,{children:(0,Q.jsx)(P,{children:(0,Q.jsx)(fe,{servers:i,scope:t,onDone:()=>{a()}})})}),{exitOnCtrlC:!0})}catch(e){X(e.message)}}async function ye(){y(`tengu_mcp_reset_mcpjson_choices`,{}),m(e=>({...e,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),Y(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
|
|
6
|
-
You will be prompted for approval next time you start Claude Code.`)}export{ve as mcpAddFromDesktopHandler,_e as mcpAddJsonHandler,ge as mcpGetHandler,he as mcpListHandler,me as mcpRemoveHandler,ye as mcpResetChoicesHandler,pe as mcpServeHandler};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t,u as n}from"./envUtils-BWeoiL4Y.js";import{r,t as i}from"./src-BJz1KAd_.js";import{Ac as a,Jt as o,M as s,Pc as c,S as l,Sc as u,_ as d,_c as f,on as p,z as m}from"./paths-DfGsIjPm.js";import{l as h,p as g}from"./debug-otxXY3j-.js";import{n as _,r as v}from"./analytics-DqMQntaB.js";import{R_ as y,z_ as b}from"./loadAgentsDir-Br5fGLLI.js";import{r as x,t as S}from"./datadog-DPkKCR8M.js";import{c as C,i as w,o as T}from"./common-BBRP_KzA.js";import{n as E,t as D}from"./stdio-BEEzuxaZ.js";import{r as O,t as k}from"./sink-Dkat5kH9.js";import{format as A}from"util";function j(e){return z.some(t=>t===e)}function M(){if(process.env.USER_TYPE===`ant`||d(`tengu_copper_bridge`,!1))return n(process.env.USE_LOCAL_OAUTH)||n(process.env.LOCAL_BRIDGE)?`ws://localhost:8765`:n(process.env.USE_STAGING_OAUTH)?`wss://bridge-staging.claudeusercontent.com`:`wss://bridge.claudeusercontent.com`}function N(){return n(process.env.USE_LOCAL_OAUTH)||n(process.env.LOCAL_BRIDGE)}function P(e){let t=new B,n=M();t.info(`Bridge URL: ${n??`none (using native socket)`}`);let r=e?.CLAUDE_CHROME_PERMISSION_MODE??process.env.CLAUDE_CHROME_PERMISSION_MODE,i;return r&&(j(r)?i=r:t.warn(`Invalid CLAUDE_CHROME_PERMISSION_MODE "${r}". Valid values: ${z.join(`, `)}`)),{serverName:`Claude in Chrome`,logger:t,socketPath:T(),getSocketPaths:w,clientTypeId:`claude-code`,onAuthenticationError:()=>{t.warn(`Authentication error occurred. Please ensure you are logged into the Claude browser extension with the same claude.ai account as Claude Code.`)},onToolCallDisconnected:()=>`Browser extension is not connected. Please ensure the Claude browser extension is installed and running (${I}), and that you are logged into claude.ai with the same account as Claude Code. If this is your first time connecting to Chrome, you may need to restart Chrome for the installation to take effect. If you continue to experience issues, please report a bug: ${L}`,onExtensionPaired:(e,n)=>{c(t=>t.chromeExtension?.pairedDeviceId===e&&t.chromeExtension?.pairedDeviceName===n?t:{...t,chromeExtension:{pairedDeviceId:e,pairedDeviceName:n}}),t.info(`Paired with "${n}" (${e.slice(0,8)})`)},getPersistedDeviceId:()=>u().chromeExtension?.pairedDeviceId,...n&&{bridgeConfig:{url:n,getUserId:async()=>u().oauthAccount?.accountUuid,getOAuthToken:async()=>o()?.accessToken??``,...N()&&{devUserId:`dev_user_local`}}},...i&&{initialPermissionMode:i},...process.env.USER_TYPE===`ant`&&{callAnthropicMessages:async e=>{let t=await b({model:e.model,system:e.system,messages:e.messages,max_tokens:e.max_tokens,stop_sequences:e.stop_sequences,signal:e.signal,skipSystemPromptPrefix:!0,tools:[],querySource:`chrome_mcp`}),n=[];for(let e of t.content)e.type===`text`&&n.push({type:`text`,text:e.text});return{content:n,stop_reason:t.stop_reason,usage:{input_tokens:t.usage.input_tokens,output_tokens:t.usage.output_tokens}}}},trackEvent:(e,t)=>{let n={};if(t)for(let[e,r]of Object.entries(t)){let t=e===`status`?`bridge_status`:e;(typeof r==`boolean`||typeof r==`number`||typeof r==`string`&&R.has(t))&&(n[t]=r)}v(e,n)}}}async function F(){f(),O();let e=r(P()),t=new D,n=!1,i=async()=>{n||(n=!0,await m(),await x(),process.exit(0))};process.stdin.on(`end`,()=>void i()),process.stdin.on(`error`,()=>void i()),g(`[Claude in Chrome] Starting MCP server`),await e.connect(t),g(`[Claude in Chrome] MCP server started`)}var I,L,R,z,B;e((()=>{i(),k(),E(),S(),s(),l(),_(),p(),a(),h(),t(),y(),C(),I=`https://claude.ai/chrome`,L=`https://github.com/anthropics/claude-code/issues/new?labels=bug,claude-in-chrome`,R=new Set([`bridge_status`,`error_type`,`tool_name`]),z=[`ask`,`skip_all_permission_checks`,`follow_a_plan`],B=class{silly(e,t){g(A(e,t??``),{level:`debug`})}debug(e,t){g(A(e,t??``),{level:`debug`})}info(e,t){g(A(e,t??``),{level:`info`})}warn(e,t){g(A(e,t??``),{level:`warn`})}error(e,t){g(A(e,t??``),{level:`error`})}}}))();export{P as createChromeContext,F as runClaudeInChromeMcpServer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{B as t,M as n}from"./server-DzOdtq8A.js";import{Ac as r,M as i,_c as a,z as o}from"./paths-DfGsIjPm.js";import{l as s,p as c}from"./debug-otxXY3j-.js";import{r as l,t as u}from"./datadog-DPkKCR8M.js";import{i as d,r as f,t as p}from"./src-BlLavFUS.js";import{i as m,t as h}from"./gates-CtkQH6jy.js";import{n as g,t as _}from"./hostAdapter-BvraKy0o.js";import{n as v,t as y}from"./stdio-BEEzuxaZ.js";import{r as b,t as x}from"./sink-Dkat5kH9.js";import{homedir as S}from"os";function C(e,t){if(k.some(t=>e.startsWith(t)))return!0;if(t){let n=t.endsWith(`/`)?`${t}Applications/`:`${t}/Applications/`;if(e.startsWith(n))return!0}return!1}function w(e){return A.some(t=>t.test(e))}function T(e,t){let n=new Set;return e.map(e=>e.trim()).filter(e=>!e||e.length>N||t&&!M.test(e)||n.has(e)?!1:(n.add(e),!0)).sort((e,t)=>e.localeCompare(t))}function E(e){let t=T(e,!0);return t.length<=P?t:[...t.slice(0,P),`… and ${t.length-P} more`]}function D(e){return T(e,!1)}function O(e,t){let{alwaysKept:n,rest:r}=e.reduce((e,n)=>(j.has(n.bundleId)?e.alwaysKept.push(n.displayName):C(n.path,t)&&!w(n.displayName)&&e.rest.push(n.displayName),e),{alwaysKept:[],rest:[]}),i=D(n),a=new Set(i);return[...i,...E(r).filter(e=>!a.has(e))]}var k,A,j,M,N,P,F=e((()=>{k=[`/Applications/`,`/System/Applications/`],A=[/Helper(?:$|\s\()/,/Agent(?:$|\s\()/,/Service(?:$|\s\()/,/Uninstaller(?:$|\s\()/,/Updater(?:$|\s\()/,/^\./],j=new Set(`com.apple.Safari,com.google.Chrome,com.microsoft.edgemac,org.mozilla.firefox,company.thebrowser.Browser,com.tinyspeck.slackmacgap,us.zoom.xos,com.microsoft.teams2,com.microsoft.teams,com.apple.MobileSMS,com.apple.mail,com.microsoft.Word,com.microsoft.Excel,com.microsoft.Powerpoint,com.microsoft.Outlook,com.apple.iWork.Pages,com.apple.iWork.Numbers,com.apple.iWork.Keynote,com.google.GoogleDocs,notion.id,com.apple.Notes,md.obsidian,com.linear,com.figma.Desktop,com.microsoft.VSCode,com.apple.Terminal,com.googlecode.iterm2,com.github.GitHubDesktop,com.apple.finder,com.apple.iCal,com.apple.systempreferences`.split(`,`)),M=/^[\p{L}\p{M}\p{N}_ .&'()+-]+$/u,N=40,P=50}));async function I(){let e=_().executor.listInstalledApps(),t,n=new Promise(e=>{t=setTimeout(e,z,void 0)}),r=await Promise.race([e,n]).catch(()=>void 0).finally(()=>clearTimeout(t));if(!r){e.catch(()=>{}),c(`[Computer Use MCP] app enumeration exceeded ${z}ms or failed; tool description omits list`);return}return O(r,S())}async function L(){let e=_(),t=h(),r=f(e,t),i=await I(),a=d(e.executor.capabilities,t,i);return r.setRequestHandler(n,async()=>e.isDisabled()?{tools:[]}:{tools:a}),r}async function R(){a(),b();let e=await L(),t=new y,n=!1,r=async()=>{n||(n=!0,await Promise.all([o(),l()]),process.exit(0))};process.stdin.on(`end`,()=>void r()),process.stdin.on(`error`,()=>void r()),c(`[Computer Use MCP] Starting MCP server`),await e.connect(t),c(`[Computer Use MCP] MCP server started`)}var z;e((()=>{p(),x(),v(),t(),u(),i(),r(),s(),F(),m(),g(),z=1e3}))();export{L as createComputerUseMcpServerForCli,R as runComputerUseMcpServer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{E as t,O as n}from"./debug-otxXY3j-.js";import{o as r,s as i}from"./log-DS97_rIr.js";import{n as a,t as o}from"./index.min-BJnb9GQI.js";function s(e,t=300*1e3){let r=new Map,a=new Map,o=async(...o)=>{let s=n(o),c=r.get(s),l=Date.now();if(!c){let t=a.get(s);if(t)return t;let n=e(...o);a.set(s,n);try{let e=await n;return a.get(s)===n&&r.set(s,{value:e,timestamp:l,refreshing:!1}),e}finally{a.get(s)===n&&a.delete(s)}}if(c&&l-c.timestamp>t&&!c.refreshing){c.refreshing=!0;let t=c;return e(...o).then(e=>{r.get(s)===t&&r.set(s,{value:e,timestamp:Date.now(),refreshing:!1})}).catch(e=>{i(e),r.get(s)===t&&r.delete(s)}),c.value}return r.get(s).value};return o.cache={clear:()=>{r.clear(),a.clear()}},o}function c(e,t,n=100){let r=new o({max:n}),i=(...n)=>{let i=t(...n),a=r.get(i);if(a!==void 0)return a;let o=e(...n);return r.set(i,o),o};return i.cache={clear:()=>r.clear(),size:()=>r.size,delete:e=>r.delete(e),get:e=>r.peek(e),has:e=>r.has(e)},i}var l=e((()=>{a(),r(),t()}));export{c as n,s as r,l as t};
|
|
@@ -1 +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{In as i,Ln as a,Q as o,Rn as s,b as c,d as l,f as u,t as d,tt as f,x as p}from"./src-Di342QoJ.js";import{t as m}from"./jsx-runtime-D-D469L8.js";import{cn as h,ot as g}from"./state-sIHsFpDu.js";import{Zc as ee,a as _,el as v,lo as y,n as te,oo as b,s as x}from"./paths-DfGsIjPm.js";import{B as S,U as C}from"./debug-otxXY3j-.js";import{n as w,r as T}from"./analytics-DqMQntaB.js";import{n as E,t as D}from"./cwd--iizewsn.js";import{r as O,v as k}from"./git-DayFjsvj.js";import{o as A,s as j}from"./log-DS97_rIr.js";import{g as M,x as N}from"./startupProfiler-CnDpob1v.js";import{$k as P,By as F,Cp as ne,Jk as I,Jn as L,Kn as re,Sp as R,Zk as z,aS as ie,lC as ae,ou as oe,su as se,uC as B}from"./loadAgentsDir-Br5fGLLI.js";import{r as ce,t as le}from"./browser-DwnUS505.js";import{t as V}from"./useKeybinding-FsOnjW6T.js";import{l as H,u as U}from"./referral-DOqhciQu.js";import{r as ue,t as de}from"./promptEditor-CHiopfD7.js";import{homedir as fe}from"os";import{join as W,relative as pe}from"path";import{mkdir as G,writeFile as me}from"fs/promises";function he(e){return O(e)!==null}var ge=e((()=>{k()}));function _e({onSelect:e,onCancel:t}){let r=(0,K.use)(z()),a=W(n(),`CLAUDE.md`),o=W(g(),`CLAUDE.md`),s=r.some(e=>e.path===a),u=r.some(e=>e.path===o),d=[...r.filter(e=>e.type!==`AutoMem`&&e.type!==`TeamMem`).map(e=>({...e,exists:!0})),...s?[]:[{path:a,type:`User`,content:``,exists:!1}],...u?[]:[{path:o,type:`Project`,content:``,exists:!1}]],m=new Map,h=d.map(e=>{let t=ee(e.path),n=e.exists?``:` (new)`,r=e.parent?(m.get(e.parent)??0)+1:0;m.set(e.path,r);let i=r>0?` `.repeat(r-1):``,s;s=e.type===`User`&&!e.isNested&&e.path===a?`User memory`:e.type===`Project`&&!e.isNested&&e.path===o?`Project memory`:r>0?`${i}L ${t}${n}`:`${t}`;let c,l=he(g());return c=e.type===`User`&&!e.isNested?`Saved in ~/.claude/CLAUDE.md`:e.type===`Project`&&!e.isNested&&e.path===o?`${l?`Checked in at`:`Saved in`} ./CLAUDE.md`:e.parent?`@-imported`:e.isNested?`dynamically loaded`:``,{label:s,value:e.path,description:c}}),_=[],v=B(e=>e.agentDefinitions);if(x()){_.push({label:`Open auto-memory folder`,value:`${Y}${te()}`,description:``});for(let e of v.activeAgents)if(e.memory){let t=re(e.agentType,e.memory);_.push({label:`Open ${i.bold(e.agentType)} agent memory`,value:`${Y}${t}`,description:`${e.memory} scope`})}}h.push(..._);let b=J&&h.some(e=>e.value===J)?J:h[0]?.value||``,[S,C]=(0,K.useState)(x),[w,E]=(0,K.useState)(se),[D]=(0,K.useState)(x),O=B(e=>Object.values(e.tasks).some(e=>e.type===`dream`&&e.status===`running`)),[k,A]=(0,K.useState)(null);(0,K.useEffect)(()=>{D&&ne().then(A)},[D,O]);let j=O?`running`:k===null?``:k===0?`never`:`last ran ${M(new Date(k))}`,[N,P]=(0,K.useState)(null),F=N!==null,I=+!!D;function L(){let e=!S;y(`userSettings`,{autoMemoryEnabled:e}),C(e),T(`tengu_auto_memory_toggled`,{enabled:e})}function R(){let e=!w;y(`userSettings`,{autoDreamEnabled:e}),E(e),T(`tengu_auto_dream_toggled`,{enabled:e})}return U(),f(`confirm:no`,t,{context:`Confirmation`}),f(`confirm:yes`,()=>{N===0?L():N===1&&R()},{context:`Confirmation`,isActive:F}),f(`select:next`,()=>{P(e=>e!==null&&e<I?e+1:null)},{context:`Select`,isActive:F}),f(`select:previous`,()=>{P(e=>e!==null&&e>0?e-1:e)},{context:`Select`,isActive:F}),(0,q.jsxs)(p,{flexDirection:`column`,width:`100%`,children:[(0,q.jsxs)(p,{flexDirection:`column`,marginBottom:1,children:[(0,q.jsx)(l,{isFocused:N===0,children:(0,q.jsxs)(c,{children:[`Auto-memory: `,S?`on`:`off`]})}),D&&(0,q.jsx)(l,{isFocused:N===1,styled:!1,children:(0,q.jsxs)(c,{color:N===1?`suggestion`:void 0,children:[`Auto-dream: `,w?`on`:`off`,j&&(0,q.jsxs)(c,{dimColor:!0,children:[` · `,j]}),!O&&w&&(0,q.jsx)(c,{dimColor:!0,children:` · /dream to run`})]})})]}),(0,q.jsx)(ie,{defaultFocusValue:b,options:h,isDisabled:F,onChange:t=>{if(t.startsWith(Y)){let e=t.slice(15);G(e,{recursive:!0}).catch(()=>{}).then(()=>ce(e));return}J=t,e(t)},onCancel:t,onUpFromFirstItem:()=>P(I)})]})}var K,q,J,Y,X=e((()=>{a(),s(),K=t(s(),1),h(),H(),d(),V(),_(),w(),oe(),R(),ae(),L(),le(),P(),r(),v(),N(),ge(),b(),F(),q=m(),Y=`__open_folder__`}));function ve(e){let t=fe(),n=D(),r=e.startsWith(t)?`~`+e.slice(t.length):null,i=e.startsWith(n)?`./`+pe(n,e):null;return r&&i?r.length<=i.length?r:i:r||i||e}var ye=e((()=>{s(),d(),E(),m()}));function be({onDone:e}){let t=async t=>{try{t.includes(n())&&await G(n(),{recursive:!0});try{await me(t,``,{encoding:`utf8`,flag:`wx`})}catch(e){if(S(e)!==`EEXIST`)throw e}await de(t);let r=`default`,i=``;process.env.VISUAL?(r=`$VISUAL`,i=process.env.VISUAL):process.env.EDITOR&&(r=`$EDITOR`,i=process.env.EDITOR);let a=r===`default`?``:`Using ${r}="${i}".`,o=a?`> ${a} To change editor, set $EDITOR or $VISUAL environment variable.`:`> To use a different editor, set the $EDITOR or $VISUAL environment variable.`;e(`Opened memory file at ${ve(t)}\n\n${o}`,{display:`system`})}catch(t){j(t),e(`Error opening memory file: ${t}`)}},r=()=>{e(`Cancelled memory editing`,{display:`system`})};return(0,Q.jsx)(u,{title:`Memory`,onCancel:r,color:`remember`,children:(0,Q.jsxs)(p,{flexDirection:`column`,children:[(0,Q.jsx)(Z.Suspense,{fallback:null,children:(0,Q.jsx)(_e,{onSelect:t,onCancel:r})}),(0,Q.jsx)(p,{marginTop:1,children:(0,Q.jsxs)(c,{dimColor:!0,children:[`Learn more: `,(0,Q.jsx)(o,{url:`https://code.claude.com/docs/en/memory`})]})})]})})}var Z,Q,$;e((()=>{Z=t(s(),1),d(),X(),ye(),P(),r(),C(),A(),ue(),Q=m(),$=async e=>(I(),await z(),(0,Q.jsx)(be,{onDone:e}))}))();export{$ as call};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,p as i,t as a,tt as o,x as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{t as l}from"./useKeybinding-FsOnjW6T.js";import{t as u}from"./lib-B4Q0Nrpb.js";function d({onDone:e}){let[t,n]=(0,m.useState)(`ios`),[a,c]=(0,m.useState)({ios:``,android:``}),{url:l}=g[t],u=a[t];(0,m.useEffect)(()=>{async function e(){let[e,t]=await Promise.all([(0,p.toString)(g.ios.url,{type:`utf8`,errorCorrectionLevel:`L`}),(0,p.toString)(g.android.url,{type:`utf8`,errorCorrectionLevel:`L`})]);c({ios:e,android:t})}e().catch(()=>{})},[]),o(`confirm:no`,(0,m.useCallback)(()=>{e()},[e]),{context:`Confirmation`});function d(t){if(t.key===`q`||t.ctrl&&t.key===`c`){t.preventDefault(),e();return}(t.key===`tab`||t.key===`left`||t.key===`right`)&&(t.preventDefault(),n(e=>e===`ios`?`android`:`ios`))}let f=u.split(`
|
|
2
|
-
`).filter(e=>e.length>0);return(0,h.jsx)(i,{children:(0,h.jsxs)(s,{flexDirection:`column`,tabIndex:0,autoFocus:!0,onKeyDown:d,children:[(0,h.jsx)(r,{children:` `}),(0,h.jsx)(r,{children:` `}),f.map((e,t)=>(0,h.jsx)(r,{children:e},t)),(0,h.jsx)(r,{children:` `}),(0,h.jsx)(r,{children:` `}),(0,h.jsxs)(s,{flexDirection:`row`,gap:2,children:[(0,h.jsxs)(r,{children:[(0,h.jsx)(r,{bold:t===`ios`,underline:t===`ios`,children:`iOS`}),(0,h.jsx)(r,{dimColor:!0,children:` / `}),(0,h.jsx)(r,{bold:t===`android`,underline:t===`android`,children:`Android`})]}),(0,h.jsx)(r,{dimColor:!0,children:`(tab to switch, esc to close)`})]}),(0,h.jsx)(r,{dimColor:!0,children:l})]})})}async function f(e){return(0,h.jsx)(d,{onDone:e})}var p,m,h,g;e((()=>{p=u(),n(),m=t(n(),1),a(),l(),h=c(),g={ios:{url:`https://apps.apple.com/app/claude-by-anthropic/id6473753684`},android:{url:`https://play.google.com/store/apps/details?id=com.anthropic.claude`}}}))();export{f as call};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,t as i,x as a}from"./src-Di342QoJ.js";import{t as o}from"./jsx-runtime-D-D469L8.js";import{aS as s,gt as c,ht as l,mt as u,oS as d,pt as f}from"./loadAgentsDir-Br5fGLLI.js";function p({onDone:e}){let t=l(),n=f(),i=(0,m.useMemo)(()=>t.map(e=>({label:(0,h.jsxs)(r,{children:[e.icon,` `,e.name,` `,(0,h.jsxs)(r,{dimColor:!0,children:[`(`,e.slug,`) — `,e.description]})]}),value:e.slug})),[t]);function o(n){c(n);let r=t.find(e=>e.slug===n);e(`${r?.icon} Mode switched to: ${r?.name} (${r?.slug}) — ${r?.description}`,{display:`system`})}function u(){e(`Mode selection cancelled.`,{display:`system`})}return(0,h.jsxs)(a,{flexDirection:`column`,children:[(0,h.jsxs)(a,{marginBottom:1,flexDirection:`column`,children:[(0,h.jsx)(r,{color:`remember`,bold:!0,children:`Select mode`}),(0,h.jsx)(r,{dimColor:!0,children:`Arrow keys to navigate, Enter to select, Esc to cancel.`})]}),(0,h.jsx)(s,{defaultValue:n,options:i,onChange:o,onCancel:u,visibleOptionCount:t.length})]})}var m,h,g;e((()=>{m=t(n(),1),i(),d(),u(),h=o(),g=async(e,t,n)=>{let r=n?.trim().toLowerCase();if(r){let t=l(),n=t.find(e=>e.slug===r);if(!n){e(`Unknown mode: "${r}"\n\nAvailable modes:\n${t.map(e=>`${e.icon} ${e.slug} — ${e.description}`).join(`
|
|
2
|
-
`)}`,{display:`system`});return}c(r),e(`${n.icon} Mode switched to: ${n.name} (${n.slug}) — ${n.description}`,{display:`system`});return}return(0,h.jsx)(p,{onDone:e})}}))();export{g as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Dr as e,Pr as t}from"./paths-DfGsIjPm.js";t();export{e as getMainLoopModel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{In as n,Ln as r,Rn as i}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{$r as o,Lr as s,Pr as c,Qr as l,Si as u,Vr as d,Xr as f,Zr as p,ui as m,vi as h,wr as g,xi as _,yi as v}from"./paths-DfGsIjPm.js";import{n as y,r as b}from"./analytics-DqMQntaB.js";import{A as x,et as S,j as C}from"./log-DS97_rIr.js";import{Bf as w,b_ as T,fC as E,lC as D,uC as O,v_ as k,y_ as A,zf as j}from"./loadAgentsDir-Br5fGLLI.js";import{i as M,n as N,r as P,t as F}from"./extraUsage-B-l-oe-7.js";function I({onDone:e}){let t=O(e=>e.mainLoopModel),r=O(e=>e.mainLoopModelForSession),i=O(e=>e.fastMode),a=E();function o(){b(`tengu_model_command_menu`,{action:`cancel`});let r=H(t);e(`Kept model as ${n.bold(r)}`,{display:`system`})}function c(r,o){b(`tengu_model_command_menu`,{action:r,from_model:t,to_model:r}),a(e=>({...e,mainLoopModel:r,mainLoopModelForSession:null}));let c=`Set model to ${n.bold(H(r))}`;o!==void 0&&(c+=` with ${n.bold(o)} effort`);let l;_()&&(m(),!u(r)&&i?(a(e=>({...e,fastMode:!1})),l=!1):u(r)&&v()&&i&&(c+=` · Fast mode ON`,l=!0)),N(r,l===!0,s())&&(c+=` · Billed as extra usage`),l===!1&&(c+=` · Fast mode OFF`),e(c)}return(0,W.jsx)(P,{initial:t,sessionModel:r,onSelect:c,onCancel:o,isStandaloneCommand:!0,showFastModeNotice:_()&&i&&u(t)&&v()})}function L({args:e,onDone:t}){let r=O(e=>e.fastMode),i=E(),a=e===`default`?null:e;return U.useEffect(()=>{async function e(){if(a&&!p(a)){t(`Model '${a}' is not available. Your organization restricts model selection.`,{display:`system`});return}if(a&&z(a)){t(`Opus 4.7 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m`,{display:`system`});return}if(a&&B(a)){t(`Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m`,{display:`system`});return}if(!a){o(null);return}if(R(a)){o(a);return}try{let{valid:e,error:n}=await w(a);e?o(a):t(n||`Model '${a}' not found`,{display:`system`})}catch(e){t(`Failed to validate model: ${e.message}`,{display:`system`})}}function o(e){i(t=>({...t,mainLoopModel:e,mainLoopModelForSession:null}));let a=`Set model to ${n.bold(H(e))}`,o;_()&&(m(),!u(e)&&r?(i(e=>({...e,fastMode:!1})),o=!1):u(e)&&r&&(a+=` · Fast mode ON`,o=!0)),N(e,o===!0,s())&&(a+=` · Billed as extra usage`),o===!1&&(a+=` · Fast mode OFF`),t(a)}e()},[a,t,i]),null}function R(e){return l.includes(e.toLowerCase().trim())}function z(e){let t=e.toLowerCase();return!k()&&!s()&&t.includes(`opus`)&&t.includes(`[1m]`)}function B(e){let t=e.toLowerCase();return!A()&&(t.includes(`sonnet[1m]`)||t.includes(`sonnet-4-6[1m]`))}function V({onDone:e}){let t=O(e=>e.mainLoopModel),r=O(e=>e.mainLoopModelForSession),i=O(e=>e.effortValue),a=H(t),o=i===void 0?``:` (effort: ${i})`;return e(r?`Current model: ${n.bold(H(r))} (session override from plan mode)\nBase model: ${a}${o}`:`Current model: ${a}${o}`),null}function H(e){let t=d(e??g());return e===null?`${t} (default)`:t}var U,W,G;e((()=>{r(),U=t(i(),1),M(),S(),y(),D(),F(),h(),o(),T(),c(),f(),j(),W=a(),G=async(e,t,n)=>{if(n=n?.trim()||``,C.includes(n))return b(`tengu_model_command_inline_help`,{args:n}),(0,W.jsx)(V,{onDone:e});if(x.includes(n)){e(`Run /model to open the model selection menu, or /model [modelName] to set the model.`,{display:`system`});return}return n?(b(`tengu_model_command_inline`,{args:n}),(0,W.jsx)(L,{args:n,onDone:e})):(0,W.jsx)(I,{onDone:e})}}))();export{G as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cn as e,tr as t}from"./state-sIHsFpDu.js";import{Ac as n,Is as r,It as i,Lt as a,Ns as o,Pc as s,Rt as c,Sc as l,Vs as u,on as d}from"./paths-DfGsIjPm.js";import{J as f,U as p}from"./debug-otxXY3j-.js";import{o as m,s as h}from"./log-DS97_rIr.js";import{Ca as g,Ta as _}from"./loadAgentsDir-Br5fGLLI.js";import{d as v,m as y,p as b}from"./rcDebugLog-BoroyfjB.js";e(),d(),n(),p(),m(),_(),o(),v();function x(e){return t=>({...t,...typeof e.permission_mode==`string`?{toolPermissionContext:{...t.toolPermissionContext,mode:r(e.permission_mode)}}:{},...typeof e.is_ultraplan_mode==`boolean`?{isUltraplanMode:e.is_ultraplan_mode}:{}})}function S({newState:e,oldState:n}){let r=n.toolPermissionContext.mode,o=e.toolPermissionContext.mode;if(r!==o){let t=u(r),i=u(o);t!==i&&y({permission_mode:i,is_ultraplan_mode:i===`plan`&&e.isUltraplanMode&&!n.isUltraplanMode?!0:null}),b(o)}if(e.mainLoopModel!==n.mainLoopModel&&t(e.mainLoopModel),e.expandedView!==n.expandedView){let t=e.expandedView===`tasks`,n=e.expandedView===`teammates`;(l().showExpandedTodos!==t||l().showSpinnerTree!==n)&&s(e=>({...e,showExpandedTodos:t,showSpinnerTree:n}))}if(e.verbose!==n.verbose&&l().verbose!==e.verbose){let t=e.verbose;s(e=>({...e,verbose:t}))}if(process.env.USER_TYPE===`ant`&&e.tungstenPanelVisible!==n.tungstenPanelVisible&&e.tungstenPanelVisible!==void 0&&l().tungstenPanelVisible!==e.tungstenPanelVisible){let t=e.tungstenPanelVisible;s(e=>({...e,tungstenPanelVisible:t}))}if(e.settings!==n.settings)try{i(),a(),c(),e.settings.env!==n.settings.env&&g()}catch(e){h(f(e))}}export{S as n,x as t};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{l as t,s as n,u as r}from"./envUtils-BWeoiL4Y.js";import{ai as i,ci as a,cr as o,dr as s}from"./paths-DfGsIjPm.js";import{l as c,p as l}from"./debug-otxXY3j-.js";import{Eo as u,G_ as d,H_ as f,K_ as p,Qo as ee,Tm as m,U_ as h,Uo as g,W_ as _,Xo as v,cE as y,dD as b,fD as te,km as x,mo as S,nl as C,oE as w,q_ as T,rl as E,sE as D,st as O,tl as k,ut as ne}from"./loadAgentsDir-Br5fGLLI.js";import{$n as A,Qn as j,Zn as M,i as N,r as P,t as F}from"./prompt-B8M-HLIS.js";import{F as I,I as L,L as R,P as z,R as B,Y as V}from"./rcDebugLog-BoroyfjB.js";import{n as H,t as U}from"./openaiShared-Crt0cZLO.js";import{randomUUID as W}from"crypto";function G(e){return typeof e==`string`?e:Array.isArray(e)?e.map(e=>{if(!e||typeof e!=`object`)return``;let t=e;return typeof t.text==`string`?t.text:``}).filter(Boolean).join(`
|
|
2
|
-
`):``}function re(e){if(typeof e==`string`)return e;if(!Array.isArray(e))return G(e);let t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=n;if(e.type===`text`&&typeof e.text==`string`)t.push({type:`input_text`,text:e.text});else if(e.type===`image_url`){let n=e.image_url;typeof n?.url==`string`&&t.push({type:`input_image`,image_url:n.url})}}return t.length>0?t:G(e)}function K(e){let t=[],n=[];for(let r of e){if(!r||typeof r!=`object`)continue;let e=r,i=e.role;if(i===`system`||i===`developer`){let t=G(e.content);t&&n.push(t);continue}if(i===`tool`){let n=e.tool_call_id;typeof n==`string`&&t.push({type:`function_call_output`,call_id:n,output:G(e.content)});continue}if(i===`assistant`){let n=G(e.content);n&&t.push({role:`assistant`,content:n});let r=e.tool_calls;if(Array.isArray(r))for(let e of r){if(!e||typeof e!=`object`)continue;let n=e,r=n.function,i=typeof n.id==`string`?n.id:void 0,a=typeof r?.name==`string`?r.name:void 0;!i||!a||t.push({type:`function_call`,call_id:i,name:a,arguments:typeof r?.arguments==`string`?r.arguments:`{}`})}continue}i===`user`&&t.push({role:`user`,content:re(e.content)})}return{input:t,instructions:n.length>0?n.join(`
|
|
3
|
-
|
|
4
|
-
`):void 0}}function q(e){let t=[];for(let n of e){if(!n||typeof n!=`object`)continue;let e=n.function,r=typeof e?.name==`string`?e.name:void 0;r&&t.push({type:`function`,name:r,description:typeof e?.description==`string`?e.description:``,parameters:e?.parameters&&typeof e.parameters==`object`?e.parameters:{type:`object`,properties:{}},strict:!1})}return t}function J(e){if(e===`required`)return`required`;if(e===`auto`)return`auto`;if(!e||typeof e!=`object`)return e;let t=e,n=t.function;return t.type===`function`&&typeof n?.name==`string`?{type:`function`,name:n.name}:e}function Y(e){let{input:t,instructions:n}=K(e.messages),r=q(e.tools);return{model:e.model,stream:!0,store:!1,input:t,...n?{instructions:n}:{},...r.length>0?{tools:r}:{},...e.toolChoice?{tool_choice:J(e.toolChoice)}:{},...e.reasoningEffort?{reasoning:{effort:e.reasoningEffort}}:{},parallel_tool_calls:!0}}async function*X(e){if(!e.body)throw Error(`ChatGPT response did not include a body`);let t=e.body.getReader(),n=new TextDecoder,r=``;for(;;){let{done:e,value:i}=await t.read();if(e)break;r+=n.decode(i,{stream:!0});let a=r.indexOf(`
|
|
5
|
-
|
|
6
|
-
`);for(;a>=0;){let e=r.slice(0,a);r=r.slice(a+2);let t=e.split(/\r?\n/).filter(e=>e.startsWith(`data:`)).map(e=>e.slice(5).trimStart()).join(`
|
|
7
|
-
`);if(t&&t!==`[DONE]`){let e=JSON.parse(t);e&&typeof e==`object`&&(yield e)}a=r.indexOf(`
|
|
8
|
-
|
|
9
|
-
`)}}}function ie(e){let t=e?.usage,n=t?.input_tokens_details;return{input_tokens:typeof t?.input_tokens==`number`?t.input_tokens:0,output_tokens:typeof t?.output_tokens==`number`?t.output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:typeof n?.cached_tokens==`number`?n.cached_tokens:0}}function ae(e){return e?.status===`incomplete`?`max_tokens`:`end_turn`}async function*oe(e,t){let n=`msg_${W().replace(/-/g,``).slice(0,24)}`,r=new Map,i=!1,a=-1,o=!1,s=!1,c=async function*(){i||(i=!0,yield{type:`message_start`,message:{id:n,type:`message`,role:`assistant`,content:[],model:t,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}})};for await(let t of e){for await(let e of c())yield e;let e=t.type;if(e===`response.output_text.delta`){o||(s&&(yield{type:`content_block_stop`,index:a},s=!1),a++,o=!0,yield{type:`content_block_start`,index:a,content_block:{type:`text`,text:``}}),yield{type:`content_block_delta`,index:a,delta:{type:`text_delta`,text:String(t.delta??``)}};continue}if(e===`response.reasoning_text.delta`){s||(o&&(yield{type:`content_block_stop`,index:a},o=!1),a++,s=!0,yield{type:`content_block_start`,index:a,content_block:{type:`thinking`,thinking:``,signature:``}}),yield{type:`content_block_delta`,index:a,delta:{type:`thinking_delta`,thinking:String(t.delta??``)}};continue}if(e===`response.output_item.added`){let e=t.item,n=typeof t.output_index==`number`?t.output_index:-1;if(e?.type===`function_call`&&n>=0){o&&(yield{type:`content_block_stop`,index:a},o=!1),s&&(yield{type:`content_block_stop`,index:a},s=!1),a++;let t=String(e.call_id??e.id??`call_${n}`),i=String(e.name??``);r.set(n,{contentIndex:a,open:!0,name:i,id:t}),yield{type:`content_block_start`,index:a,content_block:{type:`tool_use`,id:t,name:i,input:{}}}}continue}if(e===`response.function_call_arguments.delta`){let e=typeof t.output_index==`number`?t.output_index:-1,n=r.get(e);n&&(yield{type:`content_block_delta`,index:n.contentIndex,delta:{type:`input_json_delta`,partial_json:String(t.delta??``)}});continue}if(e===`response.output_item.done`){let e=typeof t.output_index==`number`?t.output_index:-1,n=r.get(e);n?.open&&(yield{type:`content_block_stop`,index:n.contentIndex},n.open=!1);continue}if(e===`response.error`){let e=t.error;throw Error(String(e?.message??`ChatGPT Responses API error`))}if(e===`response.failed`){let e=t.response?.error;throw Error(String(e?.message??`ChatGPT Responses API failed`))}if(e===`response.completed`||e===`response.incomplete`){o&&(yield{type:`content_block_stop`,index:a},o=!1),s&&(yield{type:`content_block_stop`,index:a},s=!1);let e=t.response;yield{type:`message_delta`,delta:{stop_reason:ae(e),stop_sequence:null},usage:ie(e)},yield{type:`message_stop`}}}}async function se(e){let t=await w(),n=e.fetchOverride??globalThis.fetch,r={Authorization:`Bearer ${t.accessToken}`,"Content-Type":`application/json`,Accept:`text/event-stream`,"OpenAI-Beta":`responses=experimental`,Origin:`https://chatgpt.com`,Referer:`https://chatgpt.com/`,originator:`claude-code-best`};t.accountId&&(r[`ChatGPT-Account-Id`]=t.accountId);let i=await n(`https://chatgpt.com/backend-api/codex/responses`,{method:`POST`,headers:r,body:JSON.stringify(e.request),signal:e.signal});if(!i.ok){let e=await i.text().catch(()=>``);throw Error(`ChatGPT Responses API request failed (${i.status})${e?`: ${e.slice(0,500)}`:``}`)}return X(i)}var ce=e((()=>{D()}));function Z(e){if(t(process.env.OPENAI_ENABLE_THINKING))return!1;if(r(process.env.OPENAI_ENABLE_THINKING))return!0;let n=e.toLowerCase();return n.includes(`deepseek`)||n.includes(`mimo`)}function le(e,t){return t??(process.env.OPENAI_MAX_TOKENS&&parseInt(process.env.OPENAI_MAX_TOKENS,10)||void 0)??(process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS&&parseInt(process.env.CLAUDE_CODE_MAX_OUTPUT_TOKENS,10)||void 0)??e}function ue(e){let{model:t,messages:n,tools:r,toolChoice:i,enableThinking:a,maxTokens:o,temperatureOverride:s}=e;return{model:t,messages:n,max_tokens:o,...r.length>0&&{tools:r,...i&&{tool_choice:i}},stream:!0,stream_options:{include_usage:!0},...a&&{thinking:{type:`enabled`},enable_thinking:!0,chat_template_kwargs:{thinking:!0,enable_thinking:!0}},...!a&&s!==void 0&&{temperature:s}}}var de=e((()=>{n()}));function Q(e){if(e===`low`)return`low`;if(e===`medium`)return`medium`;if(e===`high`)return`high`;if(e===`xhigh`||e===`max`)return`xhigh`;if(typeof e==`number`)return`high`}function fe(e){let t=process.env.CLAUDE_CODE_EFFORT_LEVEL?.toLowerCase();if(!(t===`auto`||t===`unset`))return Q(t)??Q(e)??`medium`}function pe(e,t,n,r){if(!r||C())return e;let i=t.filter(e=>n.has(e.name)).map(F).sort().join(`
|
|
10
|
-
`);return i?[u({content:`<available-deferred-tools>\n${i}\n</available-deferred-tools>`,isMeta:!0}),...e]:e}function me(e){return e.type===`assistant`||e.type===`user`}function $(e){let{partialMessage:t,contentBlocks:n,tools:r,agentId:i,usage:a,stopReason:o,maxTokens:s}=e,c=[],l=Object.keys(n).sort((e,t)=>Number(e)-Number(t)).map(e=>n[Number(e)]).filter(Boolean);return l.length>0&&t&&c.push({message:{...t,content:v(l,r,i),usage:a,stop_reason:o,stop_sequence:null},requestId:void 0,type:`assistant`,uuid:W(),timestamp:new Date().toISOString()}),o===`max_tokens`&&c.push(S({content:`Output truncated: response exceeded the ${s} token limit. Set OPENAI_MAX_TOKENS or CLAUDE_CODE_MAX_OUTPUT_TOKENS to override.`,apiError:`max_output_tokens`,error:`max_output_tokens`})),c}async function*he(e,t,n,r,a){try{let s=V(a.model),c=ee(e,n),u=await E(a.model,n,a.getToolPermissionContext||(async()=>M()),a.agents||[],a.querySource),h=new Set;if(u)for(let e of n)N(e)&&h.add(e.name);let g=n;u&&h.size>0&&(g=n.filter(e=>!!(!h.has(e.name)||A(e,`SearchExtraTools`))));let v=await Promise.all(g.map(e=>ne(e,{getToolPermissionContext:a.getToolPermissionContext,tools:n,agents:a.agents,allowedAgentTypes:a.allowedAgentTypes,model:a.model,deferLoading:u&&h.has(e.name)}))),b=v.filter(e=>{let t=e;return t.type!==`advisor_20260301`&&t.type!==`computer_20250124`}),x=Z(s),S=B(pe(c.filter(me),n,h,u),t,{enableThinking:x}),C=R(b),w=L(a.toolChoice),T=fe(a.effortValue);if(u){let e=g.filter(e=>h.has(e.name)).length;l(`[OpenAI] Tool search enabled: ${e}/${h.size} deferred tools included, total tools=${C.length}`)}else l(`[OpenAI] Tool search disabled, total tools=${C.length}`);let{upperLimit:D}=o(s),O=le(D,a.maxOutputTokensOverride);l(`[OpenAI] Calling model=${s}, messages=${S.length}, tools=${C.length}, thinking=${x}`);let k=y()?oe(await se({request:Y({model:s,messages:S,tools:C,toolChoice:w,reasoningEffort:T}),signal:r,fetchOverride:a.fetchOverride}),s):I(await f({maxRetries:0,fetchOverride:a.fetchOverride,source:a.querySource}).chat.completions.create(ue({model:s,messages:S,tools:C,toolChoice:w,enableThinking:x,maxTokens:O,temperatureOverride:a.temperatureOverride}),{signal:r}),s),j={},P=[],F=null,z=null,U={input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0},W=0,G=Date.now();for await(let e of k){switch(e.type){case`message_start`:F=e.message,W=Date.now()-G,e.message.usage&&(U={...U,...e.message.usage});break;case`content_block_start`:{let t=e.index,n=e.content_block;n.type===`tool_use`?j[t]={...n,input:``}:n.type===`text`?j[t]={...n,text:``}:n.type===`thinking`?j[t]={...n,thinking:``,signature:``}:j[t]={...n};break}case`content_block_delta`:{let t=e.index,n=e.delta,r=j[t];if(!r)break;n.type===`text_delta`?r.text=(r.text||``)+n.text:n.type===`input_json_delta`?r.input=(r.input||``)+n.partial_json:n.type===`thinking_delta`?r.thinking=(r.thinking||``)+n.thinking:n.type===`signature_delta`&&(r.signature=n.signature);break}case`content_block_stop`:break;case`message_delta`:{let t=e.usage;t&&(U=H(U,t)),e.delta.stop_reason!=null&&(z=e.delta.stop_reason);break}case`message_stop`:if(F){for(let e of $({partialMessage:F,contentBlocks:j,tools:n,agentId:a.agentId,usage:U,stopReason:z,maxTokens:O}))e.type===`assistant`&&P.push(e),yield e;F=null}U.input_tokens+U.output_tokens>0&&m(i(s,U),U,a.model);break}yield{type:`stream_event`,event:e,...e.type===`message_start`?{ttftMs:W}:void 0}}if(te(a.langfuseTrace??null,{model:s,provider:`openai`,input:_(S),output:d(P),usage:{input_tokens:U.input_tokens,output_tokens:U.output_tokens,cache_creation_input_tokens:U.cache_creation_input_tokens,cache_read_input_tokens:U.cache_read_input_tokens},startTime:new Date(G),endTime:new Date,completionStartTime:W>0?new Date(G+W):void 0,tools:p(v),...x&&{thinking:{type:`enabled`}}}),F)for(let e of $({partialMessage:F,contentBlocks:j,tools:n,agentId:a.agentId,usage:U,stopReason:z,maxTokens:O}))yield e}catch(e){let t=e instanceof Error?e.message:String(e);l(`[OpenAI] Error: ${t}`,{level:`error`}),yield S({content:`API Error: ${t}`,apiError:`api_error`,error:e instanceof Error?e:Error(String(e))})}}e((()=>{h(),U(),z(),D(),ce(),g(),O(),j(),c(),x(),a(),de(),b(),T(),s(),k(),P()}))();export{he as queryModelOpenAI};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./axios-DhfaybwJ.js";import{Ac as r,Pc as i,Sc as a,Zt as o,on as s}from"./paths-DfGsIjPm.js";import{l as c,u as l}from"./oauth-CdZEzMww.js";import{d as u,f as d,o as f,s as p}from"./log-DS97_rIr.js";import{a as m,l as h,o as g}from"./api-BpQPVgif.js";async function _(){try{let{accessToken:e,orgUUID:n}=await h(),r=`${c().BASE_API_URL}/api/oauth/organizations/${n}/overage_credit_grant`;return(await t.get(r,{headers:m(e)})).data}catch(e){return p(e),null}}function v(){let e=o()?.organizationUuid;if(!e)return null;let t=a().overageCreditGrantCache?.[e];return!t||Date.now()-t.timestamp>S?null:t.info}function y(){let e=o()?.organizationUuid;if(!e)return;let t=a().overageCreditGrantCache;!t||!(e in t)||i(t=>{let n={...t.overageCreditGrantCache};return delete n[e],{...t,overageCreditGrantCache:n}})}async function b(){if(d())return;let e=o()?.organizationUuid;if(!e)return;let t=await _();t&&i(n=>{let r=n.overageCreditGrantCache?.[e],i=r?.info,a=i&&i.available===t.available&&i.eligible===t.eligible&&i.granted===t.granted&&i.amount_minor_units===t.amount_minor_units&&i.currency===t.currency;if(a&&r&&Date.now()-r.timestamp<=S)return n;let o={info:a?i:t,timestamp:Date.now()};return{...n,overageCreditGrantCache:{...n.overageCreditGrantCache,[e]:o}}})}function x(e){if(e.amount_minor_units==null||!e.currency)return null;if(e.currency.toUpperCase()===`USD`){let t=e.amount_minor_units/100;return Number.isInteger(t)?`$${t}`:`$${t.toFixed(2)}`}return null}var S,C=e((()=>{n(),l(),s(),r(),f(),u(),g(),S=3600*1e3}));export{b as a,y as i,v as n,C as r,x as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{o as l,r as u}from"./break-cache-ByJ7U2Ts.js";async function d(e,t){let n=await u(e);n.type===`text`&&t(n.value,{display:`system`})}function f({onDone:e}){let[t,n]=(0,m.useState)(0),a=(0,m.useMemo)(()=>[{label:`Status`,description:`Show pending marker, always mode, and break count`,run:()=>void d(`status`,e)},{label:`Once`,description:`Break prompt cache on the next API call only`,run:()=>void d(`once`,e)},{label:`Always`,description:`Break prompt cache on every API call`,run:()=>void d(`always`,e)},{label:`Off`,description:`Disable always mode and clear pending once marker`,run:()=>void d(`off`,e)},{label:`Clear Once`,description:`Cancel the pending one-time cache break`,run:()=>void d(`--clear`,e)}],[e]),c=()=>{let e=a[t];e&&e.run()};return s((e,t)=>{if(t.upArrow){n(e=>Math.max(0,e-1));return}if(t.downArrow){n(e=>Math.min(a.length-1,e+1));return}t.return&&c()}),(0,h.jsx)(i,{title:`Break Cache`,subtitle:`${a.length} actions`,onCancel:()=>e(`Break-cache panel dismissed`,{display:`system`}),color:`background`,hideInputGuide:!0,children:(0,h.jsxs)(o,{flexDirection:`column`,children:[a.map((e,n)=>(0,h.jsxs)(o,{flexDirection:`row`,children:[(0,h.jsx)(r,{children:`${n===t?`›`:` `} ${e.label}`.padEnd(g)}),(0,h.jsx)(r,{dimColor:!0,children:e.description})]},e.label)),(0,h.jsx)(o,{marginTop:1,children:(0,h.jsx)(r,{dimColor:!0,children:`↑/↓ select · Enter run · Esc close`})})]})})}async function p(e,t,n){let r=n?.trim()??``;return r?(await d(r,e),null):(0,h.jsx)(f,{onDone:e})}var m,h,g;e((()=>{m=t(n(),1),a(),l(),h=c(),g=28}))();export{p as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,f as i,t as a,x as o,xt as s}from"./src-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{n as l,t as u}from"./tui-KoYD82tT.js";async function d(e,t){let n=await u(e);n.type===`text`&&t(n.value,{display:`system`})}function f({onDone:e}){let[t,n]=(0,m.useState)(0),a=(0,m.useMemo)(()=>[{label:`Status`,description:`Show marker and environment override state`,run:()=>void d(`status`,e)},{label:`Toggle`,description:`Flip persisted TUI mode for the next session`,run:()=>void d(`toggle`,e)},{label:`On`,description:`Enable flicker-free alternate-screen mode`,run:()=>void d(`on`,e)},{label:`Off`,description:`Disable flicker-free alternate-screen mode`,run:()=>void d(`off`,e)}],[e]),c=()=>{let e=a[t];e&&e.run()};return s((e,t)=>{if(t.upArrow){n(e=>Math.max(0,e-1));return}if(t.downArrow){n(e=>Math.min(a.length-1,e+1));return}t.return&&c()}),(0,h.jsx)(i,{title:`TUI Mode`,subtitle:`${a.length} actions`,onCancel:()=>e(`TUI mode panel dismissed`,{display:`system`}),color:`background`,hideInputGuide:!0,children:(0,h.jsxs)(o,{flexDirection:`column`,children:[a.map((e,n)=>(0,h.jsxs)(o,{flexDirection:`row`,children:[(0,h.jsx)(r,{children:`${n===t?`›`:` `} ${e.label}`.padEnd(g)}),(0,h.jsx)(r,{dimColor:!0,children:e.description})]},e.label)),(0,h.jsx)(o,{marginTop:1,children:(0,h.jsx)(r,{dimColor:!0,children:`↑/↓ select · Enter run · Esc close`})})]})})}async function p(e,t,n){let r=n?.trim()??``;return r?(await d(r,e),null):(0,h.jsx)(f,{onDone:e})}var m,h,g;e((()=>{m=t(n(),1),a(),l(),h=c(),g=24}))();export{p as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{B 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{nd as u,rd as d}from"./loadAgentsDir-Br5fGLLI.js";import{n as f,t as p}from"./SentryErrorBoundary-BQJXHbWh.js";function m(e){return e.status===`running`?{mark:`●`,color:`warning`}:e.resultKind===`dead`?{mark:`✗`,color:`error`}:{mark:`✓`,color:`success`}}function h(e){return e?e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e):`0`}function g(e){let t=[];return e.model&&t.push(e.model),t.push(`${h(e.tokenCount)} tok`),t.push(`${e.toolCount??0} tool`),t.join(` · `)}var _,v,y,b,x,S=e((()=>{_={running:`●`,completed:`✓`,failed:`✗`,killed:`■`},v={running:`warning`,completed:`success`,failed:`error`,killed:`subtle`},y={running:`running`,completed:`done`,failed:`failed`,killed:`killed`},b={running:`●`,done:`✓`,pending:`○`},x={running:`warning`,done:`success`,pending:`subtle`}}));function C(e,t){if(e.length<=t)return e;let n=e.match(/#\d+$/);if(!n)return e.slice(0,t);let r=n[0],i=e.slice(0,e.length-r.length),a=t-r.length-1;return`${i.slice(0,a)}…${r}`}function w({agents:e,selectedIndex:t,focused:r}){let[a,o]=n(D),c=E[Math.floor(o/D)%E.length];return e.length===0?(0,T.jsx)(i,{color:`subtle`,children:`(no agents in this phase)`}):(0,T.jsx)(s,{ref:a,flexDirection:`column`,children:e.map((e,n)=>{let a=m(e),o=n===t&&r,l=e.status===`running`?c:a.mark,u=C(e.label??`agent-${e.id}`,O);return(0,T.jsxs)(s,{backgroundColor:o?`selectionBg`:void 0,justifyContent:`space-between`,children:[(0,T.jsxs)(s,{children:[(0,T.jsx)(i,{color:a.color,children:l}),(0,T.jsxs)(i,{children:[` `,u]})]}),(0,T.jsx)(i,{color:`subtle`,children:g(e)})]},e.id)})})}var T,E,D,O,k=e((()=>{r(),o(),S(),T=l(),E=[`·`,`✢`,`✱`,`✶`,`✻`,`✽`],D=120,O=18}));function A(e){let t=new Map(e.phases.map(e=>[e.title,e])),n=new Set,r=[],i=i=>{if(n.has(i))return;n.add(i);let a=t.get(i),o=a?a.status:`pending`,s=e.agents.filter(e=>e.phase===i);r.push({title:i,status:o,done:s.filter(e=>e.status===`done`).length,total:s.length})};for(let t of e.declaredPhases)i(t);for(let t of e.phases)i(t.title);return r}function j(e,t){return t===void 0||t===`All`?e:e.filter(e=>e.phase===t)}function M(e,t){return`${e}#${t.slice(-4)}`}function N(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60),r=t%60;return n<60?`${n}m${String(r).padStart(2,`0`)}s`:`${Math.floor(n/60)}h${String(n%60).padStart(2,`0`)}m`}var P=e((()=>{}));function F({phases:e,agents:t,selectedIndex:r,focused:a}){let[o,c]=n(R),l=L[Math.floor(c/R)%L.length],u=t.length;return(0,I.jsx)(s,{ref:o,flexDirection:`column`,children:[{title:`All`,done:t.filter(e=>e.status===`done`).length,total:u},...e].map((e,t)=>{let n=t===r,o=n&&a,c=e.status===`running`?l:e.status?b[e.status]:` `,u=e.status?x[e.status]:`subtle`;return(0,I.jsxs)(s,{backgroundColor:o?`selectionBg`:void 0,justifyContent:`space-between`,children:[(0,I.jsxs)(s,{children:[(0,I.jsx)(i,{color:n?`claude`:void 0,children:o?`>`:` `}),(0,I.jsx)(i,{children:` `}),(0,I.jsx)(i,{color:u,children:c}),(0,I.jsxs)(i,{children:[` `,e.title]})]}),(0,I.jsxs)(i,{color:`subtle`,children:[e.done,`/`,e.total]})]},e.title)})})}var I,L,R,z=e((()=>{r(),o(),S(),P(),I=l(),L=[`·`,`✢`,`✱`,`✶`,`✻`,`✽`],R=120}));function B({runs:e,activeRunId:t}){return e.length===0?(0,V.jsx)(i,{color:`subtle`,children:`(no runs)`}):(0,V.jsx)(s,{children:e.map(e=>{let n=e.runId===t,r=M(e.workflowName,e.runId),a=`═`.repeat(r.length+2);return(0,V.jsxs)(s,{flexDirection:`column`,marginRight:2,children:[(0,V.jsxs)(s,{children:[(0,V.jsx)(i,{color:v[e.status],children:_[e.status]}),(0,V.jsx)(i,{children:` `}),(0,V.jsx)(i,{color:n?`claude`:void 0,bold:n,children:r})]}),(0,V.jsx)(i,{color:n?`claude`:void 0,children:n?a:``})]},e.runId)})})}var V,H=e((()=>{r(),o(),S(),P(),V=l()}));function U(e,t,n=`normal`){return n===`confirm`?e===`y`||e===`Y`||t.return?`confirmYes`:e===`n`||e===`N`||t.escape||e===`q`?`confirmNo`:null:t.tab||e===` `?t.shift?`prevTab`:`nextTab`:t.escape||e===`q`?`quit`:e===`K`?`killWorkflow`:e===`x`?`killAgent`:e===`r`?`resume`:e===`n`?`newRun`:t.leftArrow?`focusLeft`:t.rightArrow?`focusRight`:t.upArrow?`moveUp`:t.downArrow?`moveDown`:null}function W(e,t=`normal`){c((n,r)=>{let i=U(n,r,t);if(i!==null)switch(i){case`nextTab`:e.nextTab();break;case`prevTab`:e.prevTab();break;case`focusLeft`:e.focusLeft();break;case`focusRight`:e.focusRight();break;case`moveUp`:e.moveUp();break;case`moveDown`:e.moveDown();break;case`killAgent`:e.killAgent();break;case`killWorkflow`:e.killWorkflow();break;case`resume`:e.resumeFocused();break;case`newRun`:e.newRun();break;case`quit`:e.quit();break;case`confirmYes`:e.confirmYes();break;case`confirmNo`:e.confirmNo();break}})}var G=e((()=>{o()}));function K(e,t){if(t===0)return 0;let n=Math.trunc(e);return Number.isNaN(n)||n<0?0:Math.min(n,t-1)}function q(e,t){return!e||!t||e.runId!==t.runId||e.status!==`running`?!1:t.status===`completed`||t.status===`failed`||t.status===`killed`}function J({onDone:e,context:t}){let r=u(),o=(0,Y.useSyncExternalStore)(r.subscribe,()=>r.listRuns(),()=>[]),[c,l]=(0,Y.useState)(null),[d,f]=(0,Y.useState)(`phases`),[p,m]=(0,Y.useState)(0),[h,g]=(0,Y.useState)(0),[_,b]=(0,Y.useState)(null);(0,Y.useEffect)(()=>{r.loadPersistedRuns()},[r]),(0,Y.useEffect)(()=>{if(o.length===0){c!==null&&l(null);return}o.some(e=>e.runId===c)||l(o[0].runId)},[o,c]);let x=o.find(e=>e.runId===c),S=x?A(x):[],C=S.length+1,T=K(p,C),E=(0,Y.useRef)(null);(0,Y.useEffect)(()=>{let t=x?{runId:x.runId,status:x.status}:null,n=E.current;if(E.current=t,!q(n,t))return;let r=setTimeout(()=>e(),800);return()=>{clearTimeout(r)}},[x?.runId,x?.status,e]);let D=T===0?void 0:S[T-1]?.title,O=x?j(x.agents,D):[],k=K(h,O.length),M=e=>{l(e),f(`phases`),m(0),g(0)};W({nextTab:()=>{if(o.length===0)return;let e=o[(o.findIndex(e=>e.runId===c)+1)%o.length];M(e.runId)},prevTab:()=>{if(o.length===0)return;let e=o[(o.findIndex(e=>e.runId===c)-1+o.length)%o.length];M(e.runId)},focusLeft:()=>f(`phases`),focusRight:()=>f(`agents`),moveUp:()=>{d===`phases`?m(e=>K(e-1,C)):g(e=>K(e-1,O.length))},moveDown:()=>{d===`phases`?m(e=>K(e+1,C)):g(e=>K(e+1,O.length))},killAgent:()=>{d!==`agents`||!x||O[k]&&b(`agent`)},killWorkflow:()=>{x&&b(`workflow`)},resumeFocused:()=>{if(!x)return;let n=t.canUseTool;if(!n){e(`resume needs canUseTool context; run /<name> resume from the main session.`);return}r.launch({resumeFromRunId:x.runId,name:x.workflowName},t,n).catch(t=>e(`resume failed: ${t.message}`))},newRun:()=>e(`Tip: start a named workflow with /<name>, or pass name via the Workflow tool.`),quit:()=>{if(_!==null){b(null);return}e()},confirmYes:()=>{if(_===`workflow`&&x){r.kill(x.runId),b(null),e();return}else if(_===`agent`&&x){let e=O[k];e&&r.killAgent(x.runId,e.id)}b(null)},confirmNo:()=>b(null)},_===null?`normal`:`confirm`);let P=o.filter(e=>e.status===`running`).length,I=o.length-P,L=D??`All`,R=x?x.agents.filter(e=>e.status===`done`).length:0,[z]=n(1e3),V=x?Date.now()-x.startedAt:0;return(0,X.jsxs)(s,{ref:z,flexDirection:`column`,borderStyle:`round`,borderColor:`claude`,paddingX:1,children:[(0,X.jsxs)(s,{justifyContent:`space-between`,children:[(0,X.jsx)(i,{bold:!0,children:x?.workflowName??`Workflows`}),x?(0,X.jsxs)(i,{color:`subtle`,children:[R,`/`,x.agentCount,` agents · `,N(V),` ·`,` `,(0,X.jsx)(i,{color:v[x.status],children:y[x.status]})]}):(0,X.jsxs)(i,{color:`subtle`,children:[P,` running · `,I,` done`]})]}),x?.description?(0,X.jsx)(i,{color:`subtle`,children:x.description}):null,o.length>1?(0,X.jsx)(s,{marginTop:1,children:(0,X.jsx)(B,{runs:o,activeRunId:c})}):null,(0,X.jsxs)(s,{flexDirection:`row`,marginTop:1,children:[(0,X.jsxs)(s,{width:`25%`,flexDirection:`column`,children:[(0,X.jsx)(i,{color:d===`phases`?`claude`:`subtle`,bold:!0,children:`Phases`}),(0,X.jsx)(F,{phases:S,agents:x?.agents??[],selectedIndex:T,focused:d===`phases`})]}),(0,X.jsx)(i,{color:`subtle`,children:`│`}),(0,X.jsxs)(s,{flexGrow:1,flexDirection:`column`,children:[(0,X.jsxs)(i,{color:d===`agents`?`claude`:`subtle`,bold:!0,children:[L,` · `,O.length,` agents`]}),(0,X.jsx)(w,{agents:O,selectedIndex:k,focused:d===`agents`})]})]}),(0,X.jsx)(s,{marginTop:1,children:(0,X.jsx)(i,{color:`subtle`,children:_===null?`Tab switch run · ←/→ focus · ↑/↓ move · x kill agent · K kill workflow · r resume · q quit`:`Confirm: y kill · n/Esc cancel`})}),_===null?null:(0,X.jsx)(a,{title:_===`workflow`?`Kill workflow "${x?.workflowName??``}"?`:`Kill agent "${O[k]?.label??``}"?`,subtitle:_===`workflow`?`All in-flight agents will be aborted. Resume will replay from journal.`:`Only this agent aborts; other agents in the workflow keep running.`,onCancel:()=>b(null),color:`warning`,children:(0,X.jsx)(i,{color:`subtle`,children:`Press y to confirm, or n/Esc to cancel.`})})]})}var Y,X,Z=e((()=>{Y=t(r(),1),o(),d(),k(),z(),H(),S(),G(),P(),X=l()})),Q,$;e((()=>{f(),Z(),Q=l(),$=async(e,t,n)=>(0,Q.jsx)(p,{name:`WorkflowsPanel`,children:(0,Q.jsx)(J,{onDone:e,context:t})})}))();export{$ as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,r as t}from"./parser-BXWr_mLL.js";t();export{e as parseCommand};
|
|
@@ -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,p as a,t as o,tn as s,tt as c,x as l,xt as u}from"./src-Di342QoJ.js";import{t as d}from"./jsx-runtime-D-D469L8.js";import{Ac as f,Gs as p,Pc as m,Sc as h}from"./paths-DfGsIjPm.js";import{n as g,r as _}from"./analytics-DqMQntaB.js";import{o as v,s as y}from"./log-DS97_rIr.js";import{b,x}from"./teammate-DMYOtLTK.js";import{t as S}from"./useKeybinding-FsOnjW6T.js";import{i as C,l as w,n as T,o as E,r as D,s as O,u as k}from"./referral-DOqhciQu.js";function A({onDone:e}){let[t,r]=(0,j.useState)(!0),[o,d]=(0,j.useState)([]),[f,p]=(0,j.useState)(!1),[m,h]=(0,j.useState)(null),[g,v]=(0,j.useState)(void 0),x=k(()=>e(`Guest passes dialog dismissed`,{display:`system`}));if(c(`confirm:no`,(0,j.useCallback)(()=>{e(`Guest passes dialog dismissed`,{display:`system`})},[e]),{context:`Confirmation`}),u((t,n)=>{n.return&&m&&s(m).then(t=>{t&&process.stdout.write(t),_(`tengu_guest_passes_link_copied`,{}),e(`Referral link copied to clipboard!`)})}),(0,j.useEffect)(()=>{async function e(){try{let e=await C();if(!e||!e.eligible){p(!1),r(!1);return}p(!0),e.referral_code_details?.referral_link&&h(e.referral_code_details.referral_link),v(e.referrer_reward);let t=e.referral_code_details?.campaign??`claude_code_guest_pass`,n;try{n=await T(t)}catch(e){y(e),p(!1),r(!1);return}let i=n.redemptions||[],a=n.limit||3,o=[];for(let e=0;e<a;e++){let t=i[e];o.push({passNumber:e+1,isAvailable:!t})}d(o),r(!1)}catch(e){y(e),p(!1),r(!1)}}e()},[]),t)return(0,M.jsx)(a,{children:(0,M.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,M.jsx)(i,{dimColor:!0,children:`Loading guest pass information…`}),(0,M.jsx)(i,{dimColor:!0,italic:!0,children:x.pending?(0,M.jsxs)(M.Fragment,{children:[`Press `,x.keyName,` again to exit`]}):(0,M.jsx)(M.Fragment,{children:`Esc to cancel`})})]})});if(!f)return(0,M.jsx)(a,{children:(0,M.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,M.jsx)(i,{children:`Guest passes are not currently available.`}),(0,M.jsx)(i,{dimColor:!0,italic:!0,children:x.pending?(0,M.jsxs)(M.Fragment,{children:[`Press `,x.keyName,` again to exit`]}):(0,M.jsx)(M.Fragment,{children:`Esc to cancel`})})]})});let S=b(o,e=>e.isAvailable),w=[...o].sort((e,t)=>t.isAvailable-+e.isAvailable),E=e=>e.isAvailable?(0,M.jsxs)(l,{flexDirection:`column`,marginRight:1,children:[(0,M.jsx)(i,{children:`┌──────────┐`}),(0,M.jsxs)(i,{children:[` ) CC `,(0,M.jsx)(i,{color:`claude`,children:`✻`}),` ┊ ( `]}),(0,M.jsx)(i,{children:`└──────────┘`})]},e.passNumber):(0,M.jsxs)(l,{flexDirection:`column`,marginRight:1,children:[(0,M.jsx)(i,{dimColor:!0,children:`┌─────────╱`}),(0,M.jsx)(i,{dimColor:!0,children:` ) CC ✻ ┊╱`}),(0,M.jsx)(i,{dimColor:!0,children:`└───────╱`})]},e.passNumber);return(0,M.jsx)(a,{children:(0,M.jsxs)(l,{flexDirection:`column`,gap:1,children:[(0,M.jsxs)(i,{color:`permission`,children:[`Guest passes · `,S,` left`]}),(0,M.jsx)(l,{flexDirection:`row`,marginLeft:2,children:w.slice(0,3).map(e=>E(e))}),m&&(0,M.jsx)(l,{marginLeft:2,children:(0,M.jsx)(i,{children:m})}),(0,M.jsx)(l,{flexDirection:`column`,marginLeft:2,children:(0,M.jsxs)(i,{dimColor:!0,children:[g?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${D(g)} of extra usage to keep building. `:`Share a free week of Claude Code with friends. `,(0,M.jsx)(n,{url:g?`https://support.claude.com/en/articles/13456702-claude-code-guest-passes`:`https://support.claude.com/en/articles/12875061-claude-code-guest-passes`,children:`Terms apply.`})]})}),(0,M.jsx)(l,{children:(0,M.jsx)(i,{dimColor:!0,italic:!0,children:x.pending?(0,M.jsxs)(M.Fragment,{children:[`Press `,x.keyName,` again to exit`]}):(0,M.jsx)(M.Fragment,{children:`Enter to copy link · Esc to cancel`})})})]})})}var j,M,N=e((()=>{r(),j=t(r(),1),p(),w(),o(),S(),g(),O(),x(),v(),M=d()}));async function P(e){let t=!h().hasVisitedPasses;if(t){let e=E();m(t=>({...t,hasVisitedPasses:!0,passesLastSeenRemaining:e??t.passesLastSeenRemaining}))}return _(`tengu_guest_passes_visited`,{is_first_visit:t}),(0,F.jsx)(A,{onDone:e})}var F;e((()=>{r(),N(),g(),O(),f(),F=d()}))();export{P as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{_ as t,h as n}from"./debug-otxXY3j-.js";import{n as r,t as i}from"./cwd--iizewsn.js";import{i as a,o}from"./platform-DYZVoA9J.js";import{n as s,r as c}from"./windowsPaths-DerzGPcz.js";import{l}from"./sessionStoragePortable-DJZ_6cL8.js";import{homedir as u}from"os";import{dirname as d,isAbsolute as f,join as p,normalize as m,posix as h,relative as g,resolve as _}from"path";function v(e,t){let r=t??i()??n().cwd();if(typeof e!=`string`)throw TypeError(`Path must be a string, received ${typeof e}`);if(typeof r!=`string`)throw TypeError(`Base directory must be a string, received ${typeof r}`);if(e.includes(`\0`)||r.includes(`\0`))throw Error(`Path contains null bytes`);let o=e=>e.includes(`/`)&&!e.includes(`\\`)&&!/^[A-Za-z]:/.test(e),s=e.trim();if(!s)return a()===`windows`&&o(r)?h.normalize(r).normalize(`NFC`):m(r).normalize(`NFC`);if(s===`~`)return u().normalize(`NFC`);if(s.startsWith(`~/`))return p(u(),s.slice(2)).normalize(`NFC`);let l=s;if(a()===`windows`&&s.match(/^\/[a-z]\//i))try{l=c(s)}catch{l=s}return f(l)?a()===`windows`&&o(l)?h.normalize(l).normalize(`NFC`):m(l).normalize(`NFC`):a()===`windows`&&o(r)&&!/^[A-Za-z]:/.test(l)&&!l.startsWith(`\\\\`)?h.resolve(r,l).normalize(`NFC`):_(r,l).normalize(`NFC`)}function y(e){let t=g(i(),e);return t.startsWith(`..`)?e:t}function b(e){let t=v(e);if(t.startsWith(`\\\\`)||t.startsWith(`//`))return d(t);try{if(n().statSync(t).isDirectory())return t}catch{}return d(t)}function x(e){return/(?:^|[\\/])\.\.(?:[\\/]|$)/.test(e)}function S(e){return m(e).replace(/\\/g,`/`)}var C=e((()=>{r(),t(),o(),s(),l()}));export{S as a,C as i,v as n,y as o,b as r,x as t};
|