claude-code-best 2.7.0 → 2.7.2
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-V2tF7iCY.js +1 -0
- package/dist/chunks/App-DLdRpU7c.js +1 -0
- package/dist/chunks/ApproveApiKey-B7_TCGwt.js +1 -0
- package/dist/chunks/ApproveApiKey-DPws3jax.js +1 -0
- package/dist/chunks/AssistantSessionChooser-D6rS0OVe.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-hGlbm5z5.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-CuEpdRVd.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-CTTKMRbt.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-B-GkVoA_.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-DxJK9NiM.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-LPZ97jsm.js +1 -0
- package/dist/chunks/DesktopHandoff-BjPylhOT.js +1 -0
- package/dist/chunks/DevChannelsDialog-c4YVqBX9.js +1 -0
- package/dist/chunks/DiffDialog-I5wuXw2C.js +3 -0
- package/dist/chunks/Doctor-Cr_MlSPc.js +3 -0
- package/dist/chunks/Doctor-hgf3dMAW.js +1 -0
- package/dist/chunks/ExitFlow-Bz5grDWv.js +2 -0
- package/dist/chunks/Feedback-COgMI5tY.js +2 -0
- package/dist/chunks/Grove-Bwmghb-e.js +1 -0
- package/dist/chunks/Grove-m57x4tY1.js +11 -0
- package/dist/chunks/HybridTransport-Bok4-Ptt.js +4 -0
- package/dist/chunks/ITermBackend-BBSP-NNa.js +1 -0
- package/dist/chunks/InvalidConfigDialog-uTSuSBvO.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-B-Os12-H.js +1 -0
- package/dist/chunks/MCPConnectionManager-y97Inszc.js +1 -0
- package/dist/chunks/McpParsingWarnings-DMFUZw92.js +1 -0
- package/dist/chunks/MessageSelector-DwdAC2io.js +3 -0
- package/dist/chunks/Messages-FEBcX-cT.js +11 -0
- package/dist/chunks/Onboarding-B8qMJaBh.js +1 -0
- package/dist/chunks/OverageCreditUpsell-DnFv5z-z.js +1 -0
- package/dist/chunks/PluginSettings-B_xVgTTp.js +17 -0
- package/dist/chunks/PromptInputFooterSuggestions-DhIQ0Nge.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-CoMkWchC.js +1 -0
- package/dist/chunks/QueryEngine-C7r7O-hH.js +1 -0
- package/dist/chunks/REPL-CmJdJrGO.js +147 -0
- package/dist/chunks/REPL-nP7H_-qa.js +1 -0
- package/dist/chunks/RemoteCallout-4JOZROfT.js +1 -0
- package/dist/chunks/RemoteSessionManager-jcPnywfY.js +2 -0
- package/dist/chunks/ResumeConversation-CZ2Uedkf.js +1 -0
- package/dist/chunks/SSETransport-kEH_p4Yq.js +4 -0
- package/dist/chunks/SearchExtraToolsTool-C64oVFUD.js +1 -0
- package/dist/chunks/SentryErrorBoundary-2E2qGV11.js +1 -0
- package/dist/chunks/SentryErrorBoundary-97iY7Nb7.js +2 -0
- package/dist/chunks/Settings-CuljH0mu.js +2 -0
- package/dist/chunks/TeleportProgress-Ctdqi7iS.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-DyTBg1YD.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-B66clYsG.js +1 -0
- package/dist/chunks/ThemePicker-WKmYvrqz.js +1 -0
- package/dist/chunks/TmuxBackend-OKX2NP14.js +9 -0
- package/dist/chunks/TrustDialog-0anSIf-G.js +1 -0
- package/dist/chunks/TungstenTool-B40YHYXC.js +1 -0
- package/dist/chunks/ValidationErrorsList-CfgC1KJb.js +2 -0
- package/dist/chunks/WelcomeV2-BMHXiNt3.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-fCSGVe4W.js +2 -0
- package/dist/chunks/add-dir-CMtuW667.js +1 -0
- package/dist/chunks/agentDisplay-CgYKW3G7.js +1 -0
- package/dist/chunks/agents-CdqcGm9o.js +103 -0
- package/dist/chunks/agents-D90TsYOf.js +2 -0
- package/dist/chunks/ant-DZjimiuz.js +1 -0
- package/dist/chunks/api-CQWbpxLP.js +1 -0
- package/dist/chunks/api-quOYYOhi.js +1 -0
- package/dist/chunks/asciicast-C_1Pi99k.js +4 -0
- package/dist/chunks/asciicast-DA6TudSH.js +1 -0
- package/dist/chunks/assistant-B5_xx00q.js +1 -0
- package/dist/chunks/assistant-CEmC_DlU.js +1 -0
- package/dist/chunks/assistant-CyVcFPIR.js +1 -0
- package/dist/chunks/auth-CjtaiRtF.js +1 -0
- package/dist/chunks/auth-DsQEVs9W.js +1 -0
- package/dist/chunks/autoMode-DEbM9UaE.js +45 -0
- package/dist/chunks/autonomy-Clap6Swl.js +1 -0
- package/dist/chunks/autonomy-lNpGnyiu.js +19 -0
- package/dist/chunks/autonomyPanel-BqEvfI0e.js +1 -0
- package/dist/chunks/backgroundHousekeeping-D-jt-ocx.js +1 -0
- package/dist/chunks/backgroundHousekeeping-KvOpP_4M.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-CSYB04xC.js +3 -0
- package/dist/chunks/break-cache-DrIa8RdW.js +8 -0
- package/dist/chunks/bridge-DDgASypO.js +2 -0
- package/dist/chunks/bridgeConfig-BdZVEqhx.js +1 -0
- package/dist/chunks/bridgeConfig-DjC4oig1.js +1 -0
- package/dist/chunks/bridgeEnabled-Csn6Ym3k.js +1 -0
- package/dist/chunks/bridgeEnabled-DLRIH243.js +1 -0
- package/dist/chunks/bridgeMain-B5wsmwkN.js +68 -0
- package/dist/chunks/bridgeMain-BN0Sag35.js +1 -0
- package/dist/chunks/bridgeMessaging-ChOzzVWj.js +1 -0
- package/dist/chunks/bridgePointer-Clcvh52n.js +1 -0
- package/dist/chunks/browser-Bt-ckCaU.js +1 -0
- package/dist/chunks/btw-BgjcOoeo.js +1 -0
- package/dist/chunks/buddy-C1wE3noR.js +3 -0
- package/dist/chunks/bypassPermissionsKillswitch-C0diGLRB.js +1 -0
- package/dist/chunks/caches-CIoVGP24.js +3 -0
- package/dist/chunks/caches-DMYdTEAr.js +1 -0
- package/dist/chunks/ccrClient-C1msT1E3.js +1 -0
- package/dist/chunks/changeDetector-DoOBZOt1.js +1 -0
- package/dist/chunks/channelNotification-CWlu9ZWs.js +1 -0
- package/dist/chunks/channelNotification-oZ6vG5R5.js +1 -0
- package/dist/chunks/chrome-Bo9uNZ7s.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-BxdX_MUP.js +1 -0
- package/dist/chunks/cliLaunch-Citfs01Q.js +1 -0
- package/dist/chunks/client-BSoJ_vaA.js +1 -0
- package/dist/chunks/color-CkzktPHt.js +1 -0
- package/dist/chunks/commands-hyVX9-Lh.js +1 -0
- package/dist/chunks/commitAttribution-BwT0TbYF.js +1 -0
- package/dist/chunks/commitAttribution-csu3NO7Y.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-DNGIVZRN.js +3 -0
- package/dist/chunks/companion-Diuav3lA.js +1 -0
- package/dist/chunks/completionCache-BQgiR45Q.js +1 -0
- package/dist/chunks/completionCache-C7hDqIDL.js +4 -0
- package/dist/chunks/config-B25IrkTA.js +1 -0
- package/dist/chunks/config-ODoYZY8i.js +1 -0
- package/dist/chunks/context-CZ5enuPE.js +1 -0
- package/dist/chunks/context-noninteractive-62P5EnN5.js +54 -0
- package/dist/chunks/context-noninteractive-CjuzL9q5.js +1 -0
- package/dist/chunks/conversation-DyhWeHw2.js +1 -0
- package/dist/chunks/conversation-uY-V0SNK.js +1 -0
- package/dist/chunks/copy-9JLr2-Xs.js +7 -0
- package/dist/chunks/createSSHSession-B1hTuDpB.js +6 -0
- package/dist/chunks/createSession-Qurw-N4x.js +1 -0
- package/dist/chunks/createSession-fzjzy0aS.js +1 -0
- package/dist/chunks/cron-DwR6OJuW.js +1 -0
- package/dist/chunks/cronJitterConfig-9OmmYmIT.js +6 -0
- package/dist/chunks/crossProjectResume-B6efoIur.js +40 -0
- package/dist/chunks/daemon-BRKR4D1D.js +2 -0
- package/dist/chunks/datadog-C-llbwzP.js +1 -0
- package/dist/chunks/datadog-SSxsxcC-.js +1 -0
- package/dist/chunks/desktop-CQnMcbex.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-uAwKYa51.js +1 -0
- package/dist/chunks/directoryCompletion-DqtWZsoW.js +1 -0
- package/dist/chunks/doctor-CBF0fkBF.js +1 -0
- package/dist/chunks/earlyInput-CFYRGxau.js +2 -0
- package/dist/chunks/earlyInput-D3OhUZ4G.js +1 -0
- package/dist/chunks/effort-F-bhAM2u.js +9 -0
- package/dist/chunks/entry-DHN_Gr1b.js +14 -0
- package/dist/chunks/env-C2A9gV_G.js +1 -0
- package/dist/chunks/envLessBridgeConfig-CDVtIEWT.js +1 -0
- package/dist/chunks/envLessBridgeConfig-Dg0hNsdi.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-CqcvZJwI.js +1 -0
- package/dist/chunks/export-c6WoGlsG.js +2 -0
- package/dist/chunks/exportRenderer-CaegIP5N.js +1 -0
- package/dist/chunks/extra-usage-Cj8fokgc.js +1 -0
- package/dist/chunks/extra-usage-Dk-wcvAu.js +1 -0
- package/dist/chunks/extra-usage-core-sHzc4eE1.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-D0kqrqsg.js +1 -0
- package/dist/chunks/extraUsage-CbkqfG1U.js +1 -0
- package/dist/chunks/extractMemories-BP8Opsbp.js +1 -0
- package/dist/chunks/fast-DS3iQ1CH.js +1 -0
- package/dist/chunks/fast-DklfqySb.js +1 -0
- package/dist/chunks/featureCheck-CUJ2rPM6.js +1 -0
- package/dist/chunks/feedback-QJynmG5q.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-DlW8BUXq.js +1 -0
- package/dist/chunks/flushGate-CK5B9-Zn.js +1 -0
- package/dist/chunks/gates-6amRNsYl.js +1 -0
- package/dist/chunks/gates-vlrMjO-X.js +1 -0
- package/dist/chunks/gemini-B5ZRjDrh.js +1 -0
- package/dist/chunks/generateRecap-SgRMdsyN.js +1 -0
- package/dist/chunks/generateSessionName-sZFzpwsq.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-DUGvTwPB.js +1 -0
- package/dist/chunks/goal-Dy-GGn9r.js +3 -0
- package/dist/chunks/grok-BG4_buNt.js +1 -0
- package/dist/chunks/growthbook-Br1dDRtd.js +1 -0
- package/dist/chunks/heapdump-B9PVKMxa.js +5 -0
- package/dist/chunks/help-BfWF7xij.js +1 -0
- package/dist/chunks/hooks-BVrhxysz.js +1 -0
- package/dist/chunks/hooks-KK32pxq3.js +79 -0
- package/dist/chunks/hostAdapter-TBJav3vX.js +1 -0
- package/dist/chunks/hostGuard-DSOEyH-P.js +1 -0
- package/dist/chunks/ide-BU1A79BE.js +2 -0
- package/dist/chunks/inboundAttachments-D4tBPCB8.js +1 -0
- package/dist/chunks/inboundAttachments-DWJplT9p.js +1 -0
- package/dist/chunks/initReplBridge-99sUBVEk.js +1 -0
- package/dist/chunks/insights-lDHodCMG.js +822 -0
- package/dist/chunks/install-Bg4ZgW81.js +1 -0
- package/dist/chunks/install-github-app-RLbUq5EL.js +147 -0
- package/dist/chunks/install-slack-app-CHmIwsbm.js +1 -0
- package/dist/chunks/instrumentation-BCiV3SKX.js +12 -0
- package/dist/chunks/job-xOGf0j5Q.js +2 -0
- package/dist/chunks/jwtUtils-BQXXBwqW.js +1 -0
- package/dist/chunks/keybindings-DMbReZ4p.js +2 -0
- package/dist/chunks/lang-A6LUGP_7.js +1 -0
- package/dist/chunks/language-Bzp5KDCE.js +1 -0
- package/dist/chunks/language-CGfURU2y.js +1 -0
- package/dist/chunks/launchAgentsPlatform-Dbpm7Jyo.js +1 -0
- package/dist/chunks/launchAutofixPr-RZfqx5eM.js +18 -0
- package/dist/chunks/launchLocalMemory-DIntbsvg.js +3 -0
- package/dist/chunks/launchLocalVault-CCUw0ayu.js +3 -0
- package/dist/chunks/launchMemoryStores-QJTh8KSP.js +1 -0
- package/dist/chunks/launchOnboarding--Pe30AYd.js +8 -0
- package/dist/chunks/launchSchedule-DjN1RbRX.js +1 -0
- package/dist/chunks/launchSkillStore-CcKmVDz1.js +1 -0
- package/dist/chunks/launchTeleport-BKlEo0yF.js +3 -0
- package/dist/chunks/launchVault-C7UHA-IG.js +1 -0
- package/dist/chunks/loadAgentsDir-ClTeo0nk.js +4697 -0
- package/dist/chunks/loadAgentsDir-CshktEpX.js +1 -0
- package/dist/chunks/loadPluginHooks-DVZmzYLl.js +1 -0
- package/dist/chunks/localSearch-BtLNJRij.js +1 -0
- package/dist/chunks/localSearch-Koc8naSr.js +1 -0
- package/dist/chunks/log-DSV4Ht5l.js +1 -0
- package/dist/chunks/login-BngE89_j.js +1 -0
- package/dist/chunks/login-C3MZQTDL.js +1 -0
- package/dist/chunks/logoV2Utils-DAIIwt5R.js +1 -0
- package/dist/chunks/logout-CXZBaUen.js +1 -0
- package/dist/chunks/magicDocs-C_inI3JJ.js +57 -0
- package/dist/chunks/main-CfkIGrBF.js +31 -0
- package/dist/chunks/main-qqcmncHA.js +1312 -0
- package/dist/chunks/mappers-7BSMbYvH.js +1 -0
- package/dist/chunks/mcp-DRBiobrN.js +2 -0
- package/dist/chunks/mcp-DV8Prhgi.js +1 -0
- package/dist/chunks/mcp-HQ8-nEZ1.js +6 -0
- package/dist/chunks/mcpServer-CLIYAgGs.js +1 -0
- package/dist/chunks/mcpServer-DS0yRfcu.js +1 -0
- package/dist/chunks/memoize-DJ1XCN-z.js +1 -0
- package/dist/chunks/memory-Cz_JaFLF.js +1 -0
- package/dist/chunks/mobile-BMglW1NB.js +2 -0
- package/dist/chunks/mode-Kx0kSZkr.js +2 -0
- package/dist/chunks/model-Bwvn_acH.js +1 -0
- package/dist/chunks/model-CNXtfiLg.js +1 -0
- package/dist/chunks/onChangeAppState-C4ic-Mib.js +1 -0
- package/dist/chunks/openai-CGGSfpPh.js +10 -0
- package/dist/chunks/overageCreditGrant-BqW_6R5v.js +1 -0
- package/dist/chunks/panel-BYfvo_mR.js +1 -0
- package/dist/chunks/panel-D3wvAEFE.js +1 -0
- package/dist/chunks/panelCall-DgPjuhQf.js +1 -0
- package/dist/chunks/parser-DGXE1uWd.js +1 -0
- package/dist/chunks/passes-sYE91Vtr.js +1 -0
- package/dist/chunks/path-BE28AJwZ.js +1 -0
- package/dist/chunks/paths-DO4WOQtD.js +36 -0
- package/dist/chunks/permissions-BE-1pIly.js +1 -0
- package/dist/chunks/permissions-BPerbf1I.js +3 -0
- package/dist/chunks/pipeTransport-CW9zF_UN.js +1 -0
- package/dist/chunks/plan-CDKBVRw6.js +1 -0
- package/dist/chunks/platform-mh9ypxS8.js +2 -0
- package/dist/chunks/plugin-C6US4b8W.js +1 -0
- package/dist/chunks/pluginAutoupdate-BQKtcAhC.js +1 -0
- package/dist/chunks/pluginBlocklist-B8DKXi0i.js +1 -0
- package/dist/chunks/pluginCliCommands-DWCeXYTl.js +1 -0
- package/dist/chunks/pluginFlagging-DFMlWw2P.js +1 -0
- package/dist/chunks/pluginOperations-CKmwDC3G.js +2 -0
- package/dist/chunks/pluginStartupCheck-D6IbyWKe.js +1 -0
- package/dist/chunks/pluginStartupCheck-cYnLsWOs.js +1 -0
- package/dist/chunks/plugins-BwZIRMh_.js +4 -0
- package/dist/chunks/policyLimits-CFLBtFh3.js +1 -0
- package/dist/chunks/pollConfig-C3NjXYFc.js +1 -0
- package/dist/chunks/poller-BA1jhG3F.js +1 -0
- package/dist/chunks/poor-BHhbua95.js +1 -0
- package/dist/chunks/poorMode-CCK7Ek5w.js +1 -0
- package/dist/chunks/poorMode-mtlnXU-z.js +1 -0
- package/dist/chunks/print-kxnXkqGc.js +39 -0
- package/dist/chunks/privacy-settings-DjY1annR.js +1 -0
- package/dist/chunks/processBashCommand-BrqLqSva.js +1 -0
- package/dist/chunks/processSlashCommand-DJGdVGbK.js +6 -0
- package/dist/chunks/projectContext-Cd7V9pES.js +1 -0
- package/dist/chunks/prompt-BZjXpviP.js +1 -0
- package/dist/chunks/prompt-CfM_xGPc.js +227 -0
- package/dist/chunks/prompt-CusKF4-p.js +1 -0
- package/dist/chunks/promptEditor-FI_ewCpV.js +4 -0
- package/dist/chunks/protocolHandler-B7ybKpgJ.js +13 -0
- package/dist/chunks/rate-limit-options-DPJMNNou.js +1 -0
- package/dist/chunks/rcDebugLog-CwU_wJBE.js +11 -0
- package/dist/chunks/referral-Da4mpbd3.js +1 -0
- package/dist/chunks/refresh-B6X4xb9r.js +1 -0
- package/dist/chunks/registerProtocol-D8fFnceq.js +36 -0
- package/dist/chunks/registry-y_z3pTg3.js +1 -0
- package/dist/chunks/release-notes--tnd4K56.js +4 -0
- package/dist/chunks/releaseNotes-BPA229-J.js +2 -0
- package/dist/chunks/reload-plugins-yQ7tEUVh.js +1 -0
- package/dist/chunks/remote-env-CER5UxTX.js +1 -0
- package/dist/chunks/remoteBridgeCore-Bi31i8gt.js +1 -0
- package/dist/chunks/remoteControlServer-oUAcWB4i.js +3 -0
- package/dist/chunks/rename-BTngRRZU.js +1 -0
- package/dist/chunks/renderOptions-Caca3bCd.js +1 -0
- package/dist/chunks/resume-DZHKfBmm.js +2 -0
- package/dist/chunks/ripgrep-Bzwdi5-K.js +5 -0
- package/dist/chunks/ripgrep-DEa1djpJ.js +1 -0
- package/dist/chunks/runtimeObserver-B4KekIF0.js +1 -0
- package/dist/chunks/runtimeObserver-BUOcYxiK.js +10 -0
- package/dist/chunks/sandbox-adapter-C--j-c76.js +1 -0
- package/dist/chunks/sandbox-toggle-DLBL7myN.js +1 -0
- package/dist/chunks/searchExtraTools-CBYp5XeI.js +1 -0
- package/dist/chunks/sentry-B7ZBc8fA.js +13 -0
- package/dist/chunks/session-DWYQk9YN.js +2 -0
- package/dist/chunks/sessionDiscovery-BP0nv36F.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-DVilA3Mm.js +1 -0
- package/dist/chunks/sessionMemory-cMgcTxtP.js +1 -0
- package/dist/chunks/sessionMemory-pT4lc1C-.js +1 -0
- package/dist/chunks/sessionMemoryUtils-BgYf2OvX.js +1 -0
- package/dist/chunks/sessionObserver-CzyEF7mg.js +1 -0
- package/dist/chunks/sessionObserver-D4SV0Ar3.js +20 -0
- package/dist/chunks/sessionStorage-CXBgVAx-.js +1 -0
- package/dist/chunks/sessionStoragePortable-CJUZrbIq.js +3 -0
- package/dist/chunks/sessionTitle-CkrnWEW1.js +14 -0
- package/dist/chunks/sessionTracing-Caw-kvQr.js +11 -0
- package/dist/chunks/settingsSync-Dn_lGonC.js +1 -0
- package/dist/chunks/setup-DGkOT4DX.js +2 -0
- package/dist/chunks/setup-Dihjl7jo.js +9 -0
- package/dist/chunks/setup-II1titXI.js +1 -0
- package/dist/chunks/shadowedRuleDetection-DASW3j9H.js +1 -0
- package/dist/chunks/shellQuote-CBjhlaFO.js +1 -0
- package/dist/chunks/sideQuestion-C1qbLTAL.js +20 -0
- package/dist/chunks/sink-BSPyC453.js +1 -0
- package/dist/chunks/sink-CqOAfFlL.js +1 -0
- package/dist/chunks/sinks-BT_lBY6T.js +2 -0
- package/dist/chunks/sinks-CpuRIC3H.js +1 -0
- package/dist/chunks/skill-learning-kh0HKn6u.js +5 -0
- package/dist/chunks/skillChangeDetector-DQuNepIV.js +1 -0
- package/dist/chunks/skillGapStore-B1gUQXhE.js +5 -0
- package/dist/chunks/skillGapStore-CFmLJlYm.js +1 -0
- package/dist/chunks/skillGenerator-DIAwRpPg.js +8 -0
- package/dist/chunks/skillLearning-Bxu1Uzl-.js +1 -0
- package/dist/chunks/skillLearning-CxAbHYEk.js +1 -0
- package/dist/chunks/skillPanel-B9zJLHKV.js +28 -0
- package/dist/chunks/skillSearchPanel-C1O9sxYS.js +21 -0
- package/dist/chunks/skills-C6_3snFY.js +1 -0
- package/dist/chunks/sprites-59l7vF4l.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-BmGdg4nj.js +1 -0
- package/dist/chunks/status-KLPT7uYP.js +1 -0
- package/dist/chunks/statusNoticeHelpers-DuqyBY-N.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-0vahEnrx.js +11 -0
- package/dist/chunks/tasks-zVPemGv7.js +1 -0
- package/dist/chunks/teamHelpers-B83RwCCC.js +1 -0
- package/dist/chunks/teamHelpers-CXAmvFco.js +1 -0
- package/dist/chunks/teammateModeSnapshot-AdUFmPGC.js +1 -0
- package/dist/chunks/teammateModeSnapshot-CdiglTzv.js +1 -0
- package/dist/chunks/teleport-D6PvdjPy.js +1 -0
- package/dist/chunks/templateJobs-Ox5ZTKjW.js +12 -0
- package/dist/chunks/terminalSetup-Dh70ynBX.js +1 -0
- package/dist/chunks/terminalSetup-hLCi-2uB.js +33 -0
- package/dist/chunks/theme-DxgUVq9C.js +1 -0
- package/dist/chunks/thinkback-C5vFU8dM.js +1 -0
- package/dist/chunks/thinkback-DWgU7Qhr.js +1 -0
- package/dist/chunks/thinkback-play-CDzY6Ux4.js +1 -0
- package/dist/chunks/tmux-DelKEjda.js +1 -0
- package/dist/chunks/toolEventObserver-DPoMAJwr.js +1 -0
- package/dist/chunks/toolEventObserver-jO6-mlFU.js +1 -0
- package/dist/chunks/toolPool-BmA-BnAq.js +1 -0
- package/dist/chunks/toolPool-Dgn1Clq8.js +1 -0
- package/dist/chunks/trustedDevice-CYR5AgSB.js +1 -0
- package/dist/chunks/trustedDevice-D35gYkBT.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-o4GjzoXK.js +3 -0
- package/dist/chunks/undercover-B4xr62Ux.js +31 -0
- package/dist/chunks/undercover-nakrQDLh.js +1 -0
- package/dist/chunks/up-DaiW-V1N.js +12 -0
- package/dist/chunks/updateCCB-Cthn50OV.js +11 -0
- package/dist/chunks/upgrade-D4Id4ebd.js +1 -0
- package/dist/chunks/upgrade-DJTCV8sr.js +1 -0
- package/dist/chunks/upload-BFDXvdfb.js +1 -0
- package/dist/chunks/upstreamproxy-CLf1UaJv.js +11 -0
- package/dist/chunks/usage-Csbso5mD.js +1 -0
- package/dist/chunks/usage-DxudeFLL.js +1 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-BHi41Ku_.js +1 -0
- package/dist/chunks/useMainLoopModel-CEqP4HOc.js +1 -0
- package/dist/chunks/useManagePlugins-BmS3Adja.js +1 -0
- package/dist/chunks/useMergedTools-wR6Bglqq.js +1 -0
- package/dist/chunks/useSearchInput-BhKAGgEN.js +1 -0
- package/dist/chunks/useSettingsErrors-CjK3P-Ki.js +1 -0
- package/dist/chunks/useTerminalSize-Du-EamDN.js +1 -0
- package/dist/chunks/useVoice-DP1hHBWA.js +1 -0
- package/dist/chunks/util-CMSErQoz.js +1 -0
- package/dist/chunks/utils-CAQfwbv8.js +1 -0
- package/dist/chunks/validatePlugin-_g0AqWZG.js +1 -0
- package/dist/chunks/vim-8y-2Q09k.js +1 -0
- package/dist/chunks/voice-BJAsr0K-.js +2 -0
- package/dist/chunks/voice-YtzCcIoM.js +8 -0
- package/dist/chunks/voiceModeEnabled-BD9GZhQ3.js +1 -0
- package/dist/chunks/voiceModeEnabled-DZbxaFIg.js +1 -0
- package/dist/chunks/voiceStreamSTT-B1T-8adN.js +1 -0
- package/dist/chunks/voiceStreamSTT-B39XaGOU.js +1 -0
- package/dist/chunks/web-tools-DVIvcP41.js +1 -0
- package/dist/chunks/windowsPaths-BeDSnJ23.js +2 -0
- package/dist/chunks/windowsPaths-ttHiMKpR.js +1 -0
- package/dist/chunks/workerRegistry-60_UCyc3.js +1 -0
- package/dist/chunks/worktree-DNK8NprA.js +1 -0
- package/dist/chunks/worktreeModeEnabled-RtizNgNg.js +1 -0
- package/dist/chunks/xml-CTdKuU6f.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/cron-DiW7eIPP.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/{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,227 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t,r as n}from"./chunk-DR8-3Aex.js";import{n as r,t as i}from"./memoize-DNnuA2aU.js";import{l as a,s as o,u as s}from"./envUtils-BWeoiL4Y.js";import{n as c,t as l}from"./defineProperty-80gRi2ZW.js";import{Cn as u,Ln as d,Xn as f,wn as p}from"./schemas-BGAvj1T4.js";import{t as ee}from"./v4-f1i_CNUT.js";import{t as te}from"./ajv-B_OpU_Uh.js";import{St as ne,cn as re,n as ie,ut as ae,vn as oe}from"./state-sIHsFpDu.js";import{$o as se,Dr as ce,Pr as le,Qo as ue,S as de,Xo as fe,Yo as pe,Zo as me,_ as he,rs as ge,v as _e}from"./paths-DfGsIjPm.js";import{E as ve,I as ye,K as be,O as xe,U as Se,_ as Ce,h as we,l as Te,p as Ee}from"./debug-otxXY3j-.js";import{J as De,et as Oe,o as ke,s as Ae}from"./log-DS97_rIr.js";import{i as je,o as Me}from"./platform-DYZVoA9J.js";import{s as Ne,u as Pe}from"./types-D5R26wwH.js";import{n as Fe,t as Ie}from"./lazySchema-2sOku3cX.js";import{i as Le,r as Re,t as ze}from"./cron-DiW7eIPP.js";import{join as Be}from"path";import{join as m,parse as Ve,resolve as h,sep as He}from"node:path";import{readFileSync as Ue}from"fs";import{createHash as We}from"node:crypto";import{randomUUID as Ge}from"crypto";import{mkdir as Ke,writeFile as qe}from"fs/promises";import{appendFile as Je,mkdir as Ye,readFile as g,readdir as Xe,rm as Ze,writeFile as Qe}from"node:fs/promises";function $e(e){return e.filter(e=>e.data?.type!==`hook_progress`)}function et(e,t){return e.name===t||(e.aliases?.includes(t)??!1)}function tt(e,t){return e.find(e=>et(e,t))}function nt(e){return{...it,userFacingName:()=>e.name,...e}}var rt,it,at=e((()=>{rt=()=>({mode:`default`,additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!0}),it={isEnabled:()=>!0,isConcurrencySafe:e=>!1,isReadOnly:e=>!1,isDestructive:e=>!1,checkPermissions:(e,t)=>Promise.resolve({behavior:`allow`,updatedInput:e}),toAutoClassifierInput:e=>``,userFacingName:e=>``}})),_,ot=e((()=>{_=`Bash`}));function st(){return`A powerful search tool built on ripgrep
|
|
2
|
-
|
|
3
|
-
Usage:
|
|
4
|
-
- ALWAYS use ${v} for search tasks. NEVER invoke \`grep\` or \`rg\` as a ${_} command. The ${v} tool has been optimized for correct permissions and access.
|
|
5
|
-
- Supports full regex syntax (e.g., "log.*Error", "function\\s+\\w+")
|
|
6
|
-
- Filter files with glob parameter (e.g., "*.js", "**/*.tsx") or type parameter (e.g., "js", "py", "rust")
|
|
7
|
-
- Output modes: "content" shows matching lines, "files_with_matches" shows only file paths (default), "count" shows match counts
|
|
8
|
-
- Use ${se} tool for open-ended searches requiring multiple rounds
|
|
9
|
-
- Pattern syntax: Uses ripgrep (not grep) - literal braces need escaping (use \`interface\\{\\}\` to find \`interface{}\` in Go code)
|
|
10
|
-
- Multiline matching: By default patterns match within single lines only. For cross-line patterns like \`struct \\{[\\s\\S]*?field\`, use \`multiline: true\`
|
|
11
|
-
`}var v,ct=e((()=>{ge(),ot(),v=`Grep`})),lt,ut,dt,ft,pt=e((()=>{lt=`Edit`,ut=`/.claude/**`,dt=`~/.claude/**`,ft=`File has been unexpectedly modified. Read it again before attempting to write it.`}));function mt(e){let t=e.trim();if(!t)return null;if(t.endsWith(`-`)){let e=parseInt(t.slice(0,-1),10);return isNaN(e)||e<1?null:{firstPage:e,lastPage:1/0}}let n=t.indexOf(`-`);if(n===-1){let e=parseInt(t,10);return isNaN(e)||e<1?null:{firstPage:e,lastPage:e}}let r=parseInt(t.slice(0,n),10),i=parseInt(t.slice(n+1),10);return isNaN(r)||isNaN(i)||r<1||i<1||i<r?null:{firstPage:r,lastPage:i}}function ht(){return!ce().toLowerCase().includes(`claude-3-haiku`)}function gt(e){let t=e.startsWith(`.`)?e.slice(1):e;return _t.has(t.toLowerCase())}var _t,vt=e((()=>{le(),_t=new Set([`pdf`])}));function yt(e,t,n){return`Reads a file from the local filesystem. You can access any file directly by using this tool.
|
|
12
|
-
Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid. It is okay to read a file that does not exist; an error will be returned.
|
|
13
|
-
|
|
14
|
-
Usage:
|
|
15
|
-
- The file_path parameter must be an absolute path, not a relative path
|
|
16
|
-
- By default, it reads up to ${xt} lines starting from the beginning of the file${t}
|
|
17
|
-
${n}
|
|
18
|
-
${e}
|
|
19
|
-
- This tool allows Claude Code to read images (eg PNG, JPG, etc). When reading an image file the contents are presented visually as Claude Code is a multimodal LLM.${ht()?`
|
|
20
|
-
- This tool can read PDF files (.pdf). For large PDFs (more than 10 pages), you MUST provide the pages parameter to read specific page ranges (e.g., pages: "1-5"). Reading a large PDF without the pages parameter will fail. Maximum 20 pages per request.`:``}
|
|
21
|
-
- This tool can read Jupyter notebooks (.ipynb files) and returns all cells with their outputs, combining code, text, and visualizations.
|
|
22
|
-
- This tool can only read files, not directories. To read a directory, use an ls command via the ${_} tool.
|
|
23
|
-
- You will regularly be asked to read screenshots. If the user provides a path to a screenshot, ALWAYS use this tool to view the file at the path. This tool will work with all temporary file paths.
|
|
24
|
-
- If you read a file that exists but has empty contents you will receive a system reminder warning in place of file contents.`}var y,bt,xt,St,Ct,wt,Tt,Et=e((()=>{vt(),ot(),y=`Read`,bt=`File unchanged since last read. The content from the earlier Read tool_result in this conversation is still current — refer to that instead of re-reading.`,xt=2e3,St=`Read a file from the local filesystem.`,Ct=`- Results are returned using cat -n format, with line numbers starting at 1`,wt=`- You can optionally specify a line offset and limit (especially handy for long files), but it's recommended to read the whole file by not providing these parameters`,Tt=`- When you already know which part of the file you need, only read that part. This can be important for larger files.`}));function Dt(){return`\n- If this is an existing file, you MUST use the ${y} tool first to read the file's contents. This tool will fail if you did not read the file first.`}function Ot(){return`Writes a file to the local filesystem.
|
|
25
|
-
|
|
26
|
-
Usage:
|
|
27
|
-
- This tool will overwrite the existing file if there is one at the provided path.${Dt()}
|
|
28
|
-
- Prefer the Edit tool for modifying existing files \u2014 it only sends the diff. Only use this tool to create new files or for complete rewrites.
|
|
29
|
-
- NEVER create documentation files (*.md) or README files unless explicitly requested by the User.
|
|
30
|
-
- Only use emojis if the user explicitly requests it. Avoid writing emojis to files unless asked.`}var b,kt=e((()=>{Et(),b=`Write`})),At,jt,Mt=e((()=>{At=`Glob`,jt=`- Fast file pattern matching tool that works with any codebase size
|
|
31
|
-
- Supports glob patterns like "**/*.js" or "src/**/*.ts"
|
|
32
|
-
- Returns matching file paths sorted by modification time
|
|
33
|
-
- Use this tool when you need to find files by name patterns
|
|
34
|
-
- When you are doing an open ended search that may require multiple rounds of globbing and grepping, use the Agent tool instead`})),Nt,Pt=e((()=>{Nt=`NotebookEdit`}));function Ft(e,t,n){return`
|
|
35
|
-
Web page content:
|
|
36
|
-
---
|
|
37
|
-
${e}
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
${t}
|
|
41
|
-
|
|
42
|
-
${n?`Provide a concise response based on the content above. Include relevant details, code examples, and documentation excerpts as needed.`:`Provide a concise response based only on the content above. In your response:
|
|
43
|
-
- Enforce a strict 125-character maximum for quotes from any source document. Open Source Software is ok as long as we respect the license.
|
|
44
|
-
- Use quotation marks for exact language from articles; any language outside of the quotation should never be word-for-word the same.
|
|
45
|
-
- You are not a lawyer and never comment on the legality of your own prompts and responses.
|
|
46
|
-
- Never produce or reproduce exact song lyrics.`}
|
|
47
|
-
`}var It,Lt,Rt=e((()=>{It=`WebFetch`,Lt=`
|
|
48
|
-
- Fetches content from a specified URL and processes it using an AI model
|
|
49
|
-
- Takes a URL and a prompt as input
|
|
50
|
-
- Fetches the URL content, converts HTML to markdown
|
|
51
|
-
- Processes the content with the prompt using a small, fast model
|
|
52
|
-
- Returns the model's response about the content
|
|
53
|
-
- Use this tool when you need to retrieve and analyze web content
|
|
54
|
-
|
|
55
|
-
Usage notes:
|
|
56
|
-
- IMPORTANT: If an MCP-provided web fetch tool is available, prefer using that tool instead of this one, as it may have fewer restrictions.
|
|
57
|
-
- The URL must be a fully-formed valid URL
|
|
58
|
-
- HTTP URLs will be automatically upgraded to HTTPS
|
|
59
|
-
- The prompt should describe what information you want to extract from the page
|
|
60
|
-
- This tool is read-only and does not modify any files
|
|
61
|
-
- Results may be summarized if the content is very large
|
|
62
|
-
- Includes a self-cleaning 15-minute cache for faster responses when repeatedly accessing the same URL
|
|
63
|
-
- When a URL redirects to a different host, the tool will inform you and provide the redirect URL in a special format. You should then make a new WebFetch request with the redirect URL to fetch the content.
|
|
64
|
-
- For GitHub URLs, prefer using the gh CLI via Bash instead (e.g., gh pr view, gh issue view, gh api).
|
|
65
|
-
`})),x,zt,Bt=e((()=>{x=`ExitPlanMode`,zt=`ExitPlanMode`})),S,Vt=e((()=>{S=`EnterPlanMode`})),C,Ht,Ut,Wt,Gt=e((()=>{Bt(),C=`AskUserQuestion`,Ht=`Asks the user multiple choice questions to gather information, clarify ambiguity, understand preferences, make decisions or offer them choices.`,Ut={markdown:`
|
|
66
|
-
Preview feature:
|
|
67
|
-
Use the optional \`preview\` field on options when presenting concrete artifacts that users need to visually compare:
|
|
68
|
-
- ASCII mockups of UI layouts or components
|
|
69
|
-
- Code snippets showing different implementations
|
|
70
|
-
- Diagram variations
|
|
71
|
-
- Configuration examples
|
|
72
|
-
|
|
73
|
-
Preview content is rendered as markdown in a monospace box. Multi-line text with newlines is supported. When any option has a preview, the UI switches to a side-by-side layout with a vertical option list on the left and preview on the right. Do not use previews for simple preference questions where labels and descriptions suffice. Note: previews are only supported for single-select questions (not multiSelect).
|
|
74
|
-
`,html:`
|
|
75
|
-
Preview feature:
|
|
76
|
-
Use the optional \`preview\` field on options when presenting concrete artifacts that users need to visually compare:
|
|
77
|
-
- HTML mockups of UI layouts or components
|
|
78
|
-
- Formatted code snippets showing different implementations
|
|
79
|
-
- Visual comparisons or diagrams
|
|
80
|
-
|
|
81
|
-
Preview content must be a self-contained HTML fragment (no <html>/<body> wrapper, no <script> or <style> tags — use inline style attributes instead). Do not use previews for simple preference questions where labels and descriptions suffice. Note: previews are only supported for single-select questions (not multiSelect).
|
|
82
|
-
`},Wt=`Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
83
|
-
1. Gather user preferences or requirements
|
|
84
|
-
2. Clarify ambiguous instructions
|
|
85
|
-
3. Get decisions on implementation choices as you work
|
|
86
|
-
4. Offer choices to the user about what direction to take.
|
|
87
|
-
|
|
88
|
-
Usage notes:
|
|
89
|
-
- Users will always be able to select "Other" to provide custom text input
|
|
90
|
-
- Use multiSelect: true to allow multiple answers to be selected for a question
|
|
91
|
-
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label
|
|
92
|
-
|
|
93
|
-
Plan mode note: In plan mode, use this tool to clarify requirements or choose between approaches BEFORE finalizing your plan. Do NOT use this tool to ask "Is my plan ready?" or "Should I proceed?" - use ${x} for plan approval. IMPORTANT: Do not reference "the plan" in your questions (e.g., "Do you have feedback about the plan?", "Does the plan look good?") because the user cannot see the plan in the UI until you call ${x}. If you need plan approval, use ${x} instead.
|
|
94
|
-
`}));function Kt(){if(process.env.CLAUDE_CODE_OVERRIDE_DATE)return process.env.CLAUDE_CODE_OVERRIDE_DATE;let e=new Date;return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function qt(){return(process.env.CLAUDE_CODE_OVERRIDE_DATE?new Date(process.env.CLAUDE_CODE_OVERRIDE_DATE):new Date).toLocaleString(`en-US`,{month:`long`,year:`numeric`})}var Jt,Yt=e((()=>{i(),Jt=r(Kt)}));function Xt(){return`
|
|
95
|
-
- Allows Claude to search the web and use the results to inform responses
|
|
96
|
-
- Provides up-to-date information for current events and recent data
|
|
97
|
-
- Returns search result information formatted as search result blocks, including links as markdown hyperlinks
|
|
98
|
-
- Use this tool for accessing information beyond Claude's knowledge cutoff
|
|
99
|
-
- Searches are performed automatically within a single API call
|
|
100
|
-
|
|
101
|
-
CRITICAL REQUIREMENT - You MUST follow this:
|
|
102
|
-
- After answering the user's question, you MUST include a "Sources:" section at the end of your response
|
|
103
|
-
- In the Sources section, list all relevant URLs from the search results as markdown hyperlinks: [Title](URL)
|
|
104
|
-
- This is MANDATORY - never skip including sources in your response
|
|
105
|
-
- Example format:
|
|
106
|
-
|
|
107
|
-
[Your answer here]
|
|
108
|
-
|
|
109
|
-
Sources:
|
|
110
|
-
- [Source Title 1](https://example.com/1)
|
|
111
|
-
- [Source Title 2](https://example.com/2)
|
|
112
|
-
|
|
113
|
-
Usage notes:
|
|
114
|
-
- Domain filtering is supported to include or block specific websites
|
|
115
|
-
- Web search is only available in the US
|
|
116
|
-
|
|
117
|
-
IMPORTANT - Use the correct year in search queries:
|
|
118
|
-
- The current month is ${qt()}. You MUST use this year when searching for recent information, documentation, or current events.
|
|
119
|
-
- Example: If the user asks for "latest React docs", search for "React documentation" with the current year, NOT last year
|
|
120
|
-
`}var w,Zt=e((()=>{Yt(),w=`WebSearch`})),T,Qt=e((()=>{T=`TodoWrite`})),$t,en=e((()=>{$t=`PowerShell`}));function tn(){return je()===`windows`?process.env.USER_TYPE===`ant`?!a(process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL):s(process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL):!1}var E,nn=e((()=>{ot(),en(),o(),Me(),E=[_,$t]})),D,rn=e((()=>{D=`Skill`})),O,an=e((()=>{O=`SendMessage`})),k,on=e((()=>{k=`TaskCreate`})),A,sn=e((()=>{A=`TaskGet`})),j,cn=e((()=>{j=`TaskList`})),M,ln=e((()=>{M=`TaskUpdate`})),N,un=e((()=>{N=`SearchExtraTools`}));function dn(e){return e.isNonInteractiveSession}function fn(e){let t=vn.get(e);if(t)return t;let n=pn(e);return vn.set(e,n),n}function pn(e){try{let t=new mn.Ajv({allErrors:!0});if(!t.validateSchema(e))return{error:t.errorsText(t.errors)};let n=t.compile(e);return{tool:{..._n,inputJSONSchema:e,async call(e){if(!n(e)){let e=n.errors?.map(e=>`${e.instancePath||`root`}: ${e.message}`).join(`, `);throw new ye(`Output does not match required schema: ${e}`,`StructuredOutput schema mismatch: ${(e??``).slice(0,150)}`)}return{data:`Structured output provided successfully`,structured_output:e}}}}}catch(e){return{error:e instanceof Error?e.message:String(e)}}}var mn,hn,gn,P,_n,vn,yn=e((()=>{mn=t(te(),1),ee(),at(),Se(),Ie(),ve(),hn=Fe(()=>p({}).passthrough()),gn=Fe(()=>d().describe(`Structured output tool result`)),P=`StructuredOutput`,_n=nt({isMcp:!1,isEnabled(){return!0},isConcurrencySafe(){return!0},isReadOnly(){return!0},isOpenWorld(){return!1},name:P,searchHint:`return the final response as structured JSON`,maxResultSizeChars:1e5,async description(){return`Return structured output in the requested format`},async prompt(){return`Use this tool to return your final response in the requested structured format. You MUST call this tool exactly once at the end of your response to provide the structured output.`},get inputSchema(){return hn()},get outputSchema(){return gn()},async call(e){return{data:`Structured output provided successfully`,structured_output:e}},async checkPermissions(e){return{behavior:`allow`,updatedInput:e}},renderToolUseMessage(e){let t=Object.keys(e);return t.length===0?null:t.length<=3?t.map(t=>`${t}: ${xe(e[t])}`).join(`, `):`${t.length} fields: ${t.slice(0,3).join(`, `)}…`},renderToolUseRejectedMessage(){return`Structured output rejected`},renderToolUseErrorMessage(){return`Structured output error`},renderToolUseProgressMessage(){return null},renderToolResultMessage(e){return e},mapToolResultToToolResultBlockParam(e,t){return{tool_use_id:t,type:`tool_result`,content:e}}}),vn=new WeakMap})),bn,xn,Sn,Cn=e((()=>{Oe(),bn=`Sleep`,xn=`Wait for a specified duration`,Sn=`Wait for a specified duration. The user can interrupt the sleep at any time.
|
|
121
|
-
|
|
122
|
-
Use this when the user tells you to sleep or rest, when you have nothing to do, or when you're waiting for something.
|
|
123
|
-
|
|
124
|
-
You may receive <${De}> prompts — these are periodic check-ins. Look for useful work to do before sleeping.
|
|
125
|
-
|
|
126
|
-
You can call this concurrently with other tools — it won't interfere with them.
|
|
127
|
-
|
|
128
|
-
Prefer this over \`Bash(sleep ...)\` — it doesn't hold a shell process.
|
|
129
|
-
|
|
130
|
-
Each wake-up costs an API call, but the prompt cache expires after 5 minutes of inactivity — balance accordingly.`})),wn,Tn=e((()=>{wn=`Interact with Language Server Protocol (LSP) servers to get code intelligence features.
|
|
131
|
-
|
|
132
|
-
Supported operations:
|
|
133
|
-
- goToDefinition: Find where a symbol is defined
|
|
134
|
-
- findReferences: Find all references to a symbol
|
|
135
|
-
- hover: Get hover information (documentation, type info) for a symbol
|
|
136
|
-
- documentSymbol: Get all symbols (functions, classes, variables) in a document
|
|
137
|
-
- workspaceSymbol: Search for symbols across the entire workspace
|
|
138
|
-
- goToImplementation: Find implementations of an interface or abstract method
|
|
139
|
-
- prepareCallHierarchy: Get call hierarchy item at a position (functions/methods)
|
|
140
|
-
- incomingCalls: Find all functions/methods that call the function at a position
|
|
141
|
-
- outgoingCalls: Find all functions/methods called by the function at a position
|
|
142
|
-
|
|
143
|
-
All operations require:
|
|
144
|
-
- filePath: The file to operate on
|
|
145
|
-
- line: The line number (1-based, as shown in editors)
|
|
146
|
-
- character: The character offset (1-based, as shown in editors)
|
|
147
|
-
|
|
148
|
-
Note: LSP servers must be configured for the file type. If no server is available, an error will be returned.`})),En=n({VERIFY_PLAN_EXECUTION_TOOL_NAME:()=>F}),F,Dn=e((()=>{F=`VerifyPlanExecution`})),I,On=e((()=>{I=`ExecuteExtraTool`})),kn,An=e((()=>{kn=`EnterWorktree`})),jn,Mn=e((()=>{jn=`ExitWorktree`})),Nn=e((()=>{})),L,R,Pn,z,Fn,B,V=e((()=>{L=`Workflow`,R=`.claude/workflows`,Pn=`.claude/workflow-runs`,z=[`.ts`,`.js`,`.mjs`],Fn=1e3,B=4096}));function In(e){return{[H]:e}}function Ln(e){return typeof e==`object`&&!!e&&H in e}function Rn(e){return e[H]}var H,zn=e((()=>{H=Symbol(`workflow.hostHandle`)}));function Bn(e,t){return e.kind===`agentType`?t.agentType===e.agentType:e.kind===`model`?typeof t.model==`string`&&t.model.startsWith(e.pattern):e.match(t)}var Vn,Hn,Un=e((()=>{c(),Vn=class extends Error{constructor(e){super(e),this.name=`AdapterNotFoundError`}},Hn=class{constructor(){l(this,`adapters`,new Map),l(this,`rules`,[]),l(this,`defaultId`,null)}register(e){return this.adapters.set(e.id,e),this}default(e){return this.defaultId=e,this}route(e){return this.rules.push(e),this}has(e){return this.adapters.has(e)}get(e){return this.adapters.get(e)}resolve(e){for(let t of this.rules)if(Bn(t,e)){let e=this.adapters.get(t.adapter);if(e)return e}if(this.defaultId){let e=this.adapters.get(this.defaultId);if(e)return e}throw new Vn(`No adapter matched (rules=${this.rules.length}, default=${this.defaultId??`none`})`)}async initializeAll(){for(let e of this.adapters.values())await e.initialize?.()}async disposeAll(){for(let e of this.adapters.values())await e.dispose?.()}}}));function Wn(){return 3}function Gn(e){return e===void 0||Number.isNaN(e)?3:Math.max(1,Math.min(Math.trunc(e),16))}var Kn,qn=e((()=>{V(),c(),Kn=class{constructor(e){l(this,`available`,void 0),l(this,`waiters`,[]),this.available=Math.max(1,Math.floor(e))}async acquire(e){if(e?.aborted)throw Error(`Semaphore.acquire aborted (signal already aborted)`);return this.available>0?(--this.available,()=>this.release()):new Promise((t,n)=>{let r=()=>{let e=this.waiters.indexOf(i);e>=0&&this.waiters.splice(e,1),n(Error(`Semaphore.acquire aborted`))},i={wake:()=>{e?.removeEventListener(`abort`,r),t(()=>this.release())},cleanup:()=>e?.removeEventListener(`abort`,r)};e?.addEventListener(`abort`,r,{once:!0}),this.waiters.push(i)})}release(){let e=this.waiters.shift();e?e.wake():this.available+=1}}}));function Jn(e){let t=$n.exec(e);if(!t)return{meta:null,body:e};let n=t.index+t[0].length;for(;n<e.length&&/\s/.test(e[n]);)n++;if(e[n]!==`{`)throw new W("meta must be an object literal `{ ... }`");let r=0,i=n,a=null;for(;n<e.length;n++){let t=e[n];if(a){if(t===`\\`){n++;continue}t===a&&(a=null);continue}if(t===`"`||t===`'`||t==="`"){a=t;continue}if(t===`{`)r++;else if(t===`}`&&(r--,r===0)){n++;break}}if(r!==0)throw new W(`meta literal braces are not closed`);let o=e.slice(i,n),s;try{s=Function(`return (${o})`)()}catch(e){throw new W(`meta must be a plain literal (no variable/function calls/interpolation): ${e.message}`)}return{meta:Yn(s),body:e.slice(0,t.index)+e.slice(n).replace(/^[ \t]*;[ \t]*\n/,`
|
|
149
|
-
`)}}function Yn(e){if(typeof e!=`object`||!e||Array.isArray(e))throw new W(`meta must be an object`);let t=e;if(typeof t.name!=`string`||typeof t.description!=`string`)throw new W(`meta must include string name and description`);return t}function Xn(){let e=function(...e){if(e.length===0)throw new er(`Date.now()/new Date()`);return new Date(...e)};return e.now=()=>{throw new er(`Date.now()`)},e.parse=Date.parse,e.UTC=Date.UTC,e}function Zn(){return new Proxy(Math,{get(e,t,n){return t===`random`?()=>{throw new er(`Math.random()`)}:Reflect.get(e,t,n)}})}function Qn(e){if(/^\s*import\b/m.test(e))throw new W(`workflow scripts are the body of new AsyncFunction (not ESM modules); import is not supported. agent / parallel / pipeline / phase / log / workflow / args / budget are injected as parameters — use them directly.`);if(/\bimport\s*\(/m.test(e))throw new W(`dynamic import(...) is forbidden in workflow scripts: it bypasses the Date/Math sandbox and breaks resume determinism. The sandbox does not guarantee security (same trust level as the LLM), but explicit escapes are prohibited. Inject external dependencies via args.`);if(/^\s*export\b/m.test(e))throw new W(`workflow scripts allow only one export const meta = {...} (already extracted by the engine). Remove other export / export default statements; use top-level return for the result.`)}function U(e){let{meta:t,body:n}=Jn(e);Qn(n);let r;try{r=new tr(`agent`,`parallel`,`pipeline`,`phase`,`log`,`workflow`,`args`,`budget`,`Date`,`Math`,n)}catch(e){throw new W(`Script syntax error: ${e.message}`)}let i=Xn(),a=Zn();return{meta:t,async execute(e,t,n){return r(e.agent,e.parallel,e.pipeline,e.phase,e.log,e.workflow,t,n,i,a)}}}var W,$n,er,tr,nr=e((()=>{W=class extends Error{constructor(e){super(e),this.name=`ScriptError`}},$n=/export\s+const\s+meta\s*=\s*/,er=class extends Error{constructor(e){super(`${e} is not available in workflow scripts (would break resume determinism). Pass timestamps/random seeds via args.`),this.name=`NonDeterministicError`}},tr=Object.getPrototypeOf(async function(){}).constructor}));function rr(e){let{label:t,phase:n,...r}=e,i=Object.keys(r).sort(),a={};for(let e of i)a[e]=r[e];return JSON.stringify(a)}function ir(e,t){return We(`sha256`).update(e+`
|
|
150
|
-
`+rr(t)).digest(`hex`)}function ar(e){let t=t=>m(e,t,`journal.jsonl`);return{async read(e){try{return(await g(t(e),`utf-8`)).split(`
|
|
151
|
-
`).filter(e=>e.trim().length>0).map(e=>JSON.parse(e)).sort((e,t)=>(e.seq??0)-(t.seq??0))}catch{return[]}},async append(n,r){await Ye(m(e,n),{recursive:!0}),await Je(t(n),JSON.stringify(r)+`
|
|
152
|
-
`,`utf-8`)},async truncate(t){await Ze(m(e,t),{recursive:!0,force:!0})}}}var or=e((()=>{})),sr,cr,lr=e((()=>{c(),sr=class extends Error{constructor(){super(`workflow token budget exhausted (budget.total reached the cap)`),this.name=`BudgetExhaustedError`}},cr=class{constructor(e){l(this,`spentTokens`,0),this.total=e}spent(){return this.spentTokens}remaining(){return this.total==null?1/0:Math.max(0,this.total-this.spentTokens)}addOutputTokens(e){e>0&&(this.spentTokens+=e)}assertCanSpend(){if(this.total!=null&&this.spentTokens>=this.total)throw new sr}}}));function ur(e,t){let n=fr.get(t);n||(n=new dr.Ajv({allErrors:!0,strict:!1}).compile(t),fr.set(t,n));let r=n(e);return{valid:r,errors:r?[]:(n.errors??[]).map(e=>e.message??`validation error`)}}var dr,fr,pr=e((()=>{dr=t(te(),1),fr=new WeakMap}));function mr(e,t){let n=h(e),r=h(n,t);return r===n?!0:r.startsWith(n+He)}function hr(e){return typeof e!=`string`||e.length===0||e.includes(`/`)||e.includes(`\\`)||e.includes(`\0`)||e===`.`||e===`..`?null:e}var gr=e((()=>{}));function _r(e){return z.includes(e.toLowerCase())}async function vr(e,t){for(let n of z){let r=h(e,t+n);if(!mr(e,r))return null;try{return{path:r,content:await g(r,`utf-8`)}}catch{}}return null}async function yr(e){let t;try{t=await Xe(e)}catch{return[]}return t.filter(e=>_r(Ve(e).ext)).map(e=>Ve(e).name).sort()}var br=e((()=>{V(),gr()})),G,K,xr=e((()=>{G=class extends Error{constructor(e){super(e),this.name=`WorkflowError`}},K=class extends Error{constructor(){super(`workflow has been aborted`),this.name=`WorkflowAbortedError`}}}));function Sr(e,t){return{semaphore:new Kn(Gn(t)),budget:new cr(e),agentCountBox:{value:0},agentIdSeq:{value:0},depth:0}}function Cr(e){let t=Sr(e.budgetTotal,e.maxConcurrency);return{ports:e.ports,host:e.host,signal:e.signal,runId:e.runId,workflowName:e.workflowName,cwd:e.cwd,resources:t,journal:e.journal?[...e.journal]:[],journalIndex:0,journalInvalidated:!1,currentPhase:null}}var wr=e((()=>{lr(),qn()}));function Tr(e,t){let n=t=>{e.ports.progressEmitter.emit({runId:e.runId,...t})};return{agent:async(t,r={})=>{let i=e.resources;if(i.agentCountBox.value>=1e3)throw new G(`workflow exceeds total agent cap (${Fn})`);let a=i.agentIdSeq.value++,o={prompt:t,...r},s=ir(t,o),c=r.label,l=r.phase??e.currentPhase??void 0;if(!e.journalInvalidated&&e.journalIndex<e.journal.length){let t=e.journal[e.journalIndex];if(t.key===s)return e.journalIndex++,n({type:`agent_done`,agentId:a,label:c,phase:l,result:t.result}),Er(t.result);e.journalInvalidated=!0,e.journal=e.journal.slice(0,e.journalIndex),await e.ports.journalStore.truncate(e.runId)}let u;try{u=await e.resources.semaphore.acquire(e.signal)}catch{throw new K}try{if(e.signal.aborted)throw new K;if(i.budget.assertCanSpend(),e.ports.taskRegistrar.pendingAction(e.runId)?.kind===`skip`)return n({type:`agent_done`,agentId:a,label:c,phase:l,result:{kind:`skipped`}}),null;e.resources.agentCountBox.value++,n({type:`agent_started`,agentId:a,label:c,phase:l});let t=e.ports.agentAdapterRegistry,r=t?{host:e.host,signal:e.signal,runId:e.runId,agentId:a,onProgress:e=>{n({type:`agent_progress`,agentId:a,label:c,phase:l,...e})},...e.ports.taskRegistrar.registerAgentAbort?{registerAgentAbort:(t,n)=>{e.ports.taskRegistrar.registerAgentAbort?.(e.runId,t,n)}}:{},...e.ports.taskRegistrar.unregisterAgentAbort?{unregisterAgentAbort:t=>{e.ports.taskRegistrar.unregisterAgentAbort?.(e.runId,t)}}:{}}:null,u=t?t.resolve(o):null,d=()=>u?u.run(o,r):e.ports.agentRunner.runAgentToResult(o,e.host),f;try{if(f=await d(),f.kind===`dead`){let t=typeof f.detail==`string`?f.detail:``;e.ports.logger.warn?.(`agent "${c??`#${a}`}" returned dead`+(f.reason?` (${f.reason})`:``)+(t?`: ${t.slice(0,150)}`:``)+`; retrying once`),f=await d()}}catch(t){if(t instanceof K)throw t;let n=t instanceof Error?t.message:String(t);e.ports.logger.warn?.(`agent "${c??`#${a}`}" threw (${n}); retrying once`);try{f=await d()}catch(e){if(e instanceof K)throw e;f={kind:`dead`,reason:`runagent-threw`,detail:e instanceof Error?e.message:String(e)}}}f.kind===`ok`&&e.resources.budget.addOutputTokens(f.usage.outputTokens),n({type:`agent_done`,agentId:a,label:c,phase:l,result:f});let p={key:s,seq:a,result:f};return e.journal.push(p),e.journalIndex++,await e.ports.journalStore.append(e.runId,p),Er(f)}finally{u()}},parallel:async t=>{if(t.length>4096)throw new G(`parallel exceeds the per-call items cap (${B})`);return Promise.all(t.map(async(t,n)=>{try{return await t()}catch(t){return e.ports.logger.warn?.(`parallel thunk #${n} failed: ${t.message}`),null}}))},pipeline:async(t,...n)=>{if(t.length>4096)throw new G(`pipeline exceeds the per-call items cap (${B})`);return Promise.all(t.map(async(t,r)=>{try{let e=t;for(let i of n)e=await i(e,t,r);return e}catch(t){return e.ports.logger.warn?.(`pipeline item #${r} failed: ${t.message}`),null}}))},phase:t=>{e.currentPhase&&n({type:`phase_done`,phase:e.currentPhase}),e.currentPhase=t,n({type:`phase_started`,phase:t})},log:e=>{n({type:`log`,message:e})},workflow:async(n,r)=>{if(e.resources.depth>=1)throw new G(`workflow() nesting allows only one level`);return t({...typeof n==`string`?{name:n}:{scriptPath:n.scriptPath},args:r})}}}function Er(e){return e.kind===`ok`?e.output:null}var Dr=e((()=>{V(),xr(),or()}));async function Or(e){let{ports:t}=e,n;try{n=U(e.script)}catch(n){let r=n.message;return t.progressEmitter.emit({type:`run_done`,runId:e.runId,status:`failed`,error:r}),{status:`failed`,error:r}}let r=e.workflowName??n.meta?.name??`workflow`,i=[],a=!1;e.resume&&!e.scriptChanged?i=await t.journalStore.read(e.runId):e.scriptChanged&&(await t.journalStore.truncate(e.runId),a=!0);let o=Cr({ports:t,host:e.host,signal:e.signal,runId:e.runId,workflowName:r,cwd:e.cwd,budgetTotal:e.budgetTotal,maxConcurrency:e.maxConcurrency,journal:i});a&&(o.journalInvalidated=!0),t.progressEmitter.emit({type:`run_started`,runId:e.runId,workflowName:r,meta:n.meta});let s=async t=>{let n=await kr(t,e.cwd),r;try{r=U(n)}catch(e){throw new G(`Sub-workflow script error: ${e.message}`)}let i=o.resources.depth;o.resources.depth+=1;try{let e=Tr(o,s);return await r.execute(e,t.args,o.resources.budget)}finally{o.resources.depth=i}},c=Tr(o,s),l=()=>{o.currentPhase&&t.progressEmitter.emit({type:`phase_done`,runId:e.runId,phase:o.currentPhase})},u;try{u={status:`completed`,returnValue:await n.execute(c,e.args,o.resources.budget)}}catch(e){u=e instanceof K?{status:`killed`}:{status:`failed`,error:e.message}}return l(),t.progressEmitter.emit({type:`run_done`,runId:e.runId,...u}),u}async function kr(e,t){if(e.script)return e.script;if(e.scriptPath)return await g(e.scriptPath,`utf-8`);if(e.name){let n=await vr(m(t,R),e.name);if(!n)throw new G(`Sub-workflow "${e.name}" not found`);return n.content}throw new G(`workflow() requires name or scriptPath`)}var Ar=e((()=>{V(),wr(),xr(),Dr(),br(),nr()}));function jr(e){return{emit:e}}function Mr(){let e=[];return{emitter:{emit:t=>void e.push(t)},events:e}}var Nr=e((()=>{})),Pr,Fr=e((()=>{ee(),Pr=p({script:d().optional().describe(`Self-contained workflow script source (inline)`),name:d().optional().describe(`Named workflow, resolved to .claude/workflows/<name>.ts|js|mjs`),scriptPath:d().optional().describe(`Absolute path to an existing script file`),args:f().optional().describe(`The args global variable passed through to the script. Pass a real JSON value (object/array/string), not a JSON string.`),resumeFromRunId:d().optional().describe(`Resume the specified run, replaying the journal`),description:d().optional().describe(`A short description of this invocation (3-5 words)`),title:d().optional().describe(`Progress viewer title`),maxConcurrency:u().int().min(1).max(16).optional().describe(`Concurrency cap for agent(). Defaults to 3 (max 16). When the workflow contains heavy parallel/pipeline fan-out, you may confirm the desired concurrency with the user via AskUserQuestion before launching.`)})}));async function Ir(e,t,n){let r=m(n,Pn,t);await Ye(r,{recursive:!0});let i=m(r,`script.js`);return await Qe(i,e,`utf-8`),i}var Lr=e((()=>{V()}));function Rr(e){return{name:L,inputSchema:Pr,isEnabled:()=>!0,isReadOnly:()=>!1,async description(){return`Execute a workflow script that orchestrates multiple subagents to complete a task`},async prompt(){return Ur},renderToolUseMessage(e){return e.resumeFromRunId?`Workflow resume: ${e.resumeFromRunId}`:`Workflow: ${e.name??e.scriptPath??(e.script?`inline`:`unknown`)}`},async call(t,n,r,i){let a=e.hostFactory({context:n,canUseTool:r,parentMessage:i}),o,s;try{let e=await Hr(t,a.cwd);o=e.script,s=e.workflowFile}catch(e){return{data:{output:`Error: ${e.message}`}}}try{U(o)}catch(e){return{data:{output:`Error: script validation failed: ${e.message}`}}}let c=t.name??t.title??`workflow`,{runId:l,signal:u}=e.taskRegistrar.register({workflowName:c,...s?{workflowFile:s}:{},...t.description?{summary:t.description}:{},...a.toolUseId?{toolUseId:a.toolUseId}:{},...t.resumeFromRunId?{runId:t.resumeFromRunId}:{}},a.handle);if(!s&&t.script)try{s=await Ir(t.script,l,a.cwd)}catch(t){e.logger.warn?.(`inline script persist failed: ${t.message}`)}Or({script:o,...t.args===void 0?{}:{args:Vr(t.args)},runId:l,workflowName:c,ports:e,host:a.handle,signal:u,cwd:a.cwd,budgetTotal:a.budgetTotal,...t.maxConcurrency===void 0?{}:{maxConcurrency:t.maxConcurrency},...t.resumeFromRunId?{resume:!0}:{}}).then(t=>zr(e,t,l)).catch(t=>e.taskRegistrar.fail(l,t.message));let d=s??`<inline run ${l}>`;return{data:{output:[`Workflow started (running in the background).`,`run_id: ${l}`,`workflow: ${c}`,`script: ${d}`,``,`You will be notified on completion. Use /workflows to view live progress.`].join(`
|
|
153
|
-
`)}}},mapToolResultToToolResultBlockParam(e,t){return{tool_use_id:t,type:`tool_result`,content:[{type:`text`,text:e.output}]}}}}function zr(e,t,n){if(t.status===`completed`){let r=t.returnValue==null?`(no return value)`:Br(t.returnValue);e.taskRegistrar.complete(n,r)}else t.status===`failed`?e.taskRegistrar.fail(n,t.error??`workflow failed`):e.taskRegistrar.kill(n)}function Br(e){if(typeof e==`string`)return e.slice(0,500);try{return JSON.stringify(e).slice(0,500)}catch{return String(e)}}function Vr(e){if(typeof e!=`string`)return e;try{let t=JSON.parse(e);return typeof t==`object`&&t?t:e}catch{return e}}async function Hr(e,t){if(e.script)return{script:e.script};if(e.scriptPath){let n=h(t,e.scriptPath);if(!mr(t,n))throw Error(`scriptPath "${e.scriptPath}" is out of bounds (after resolve, ${n} is not within cwd ${t})`);return{script:await g(n,`utf-8`),workflowFile:n}}if(e.name){if(hr(e.name)===null)throw Error(`Named workflow name "${e.name}" is invalid (contains path separators or is . / ..)`);let n=await vr(m(t,R),e.name);if(!n)throw Error(`Named workflow "${e.name}" not found (looked in ${R}/)`);return{script:n.content,workflowFile:n.path}}throw Error(`One of script, name, or scriptPath must be provided`)}var Ur,Wr=e((()=>{V(),br(),Ar(),nr(),gr(),Fr(),Lr(),Ur='Use the Workflow tool to execute a workflow script that orchestrates multiple subagents deterministically. The script runs in the background; you receive a run_id immediately and are notified on completion.\n\nProvide the script inline via "script", or reference a named workflow via "name" (resolved from .claude/workflows/), or an existing file via "scriptPath". Pass "args" as a real JSON value (object/array/string), not a stringified string.\n\nUse "resumeFromRunId" to resume a prior run — completed agent() calls replay from the journal instantly.\n\nConcurrency: default is 3 (hard ceiling 16). OMIT maxConcurrency to use 3. To set maxConcurrency to ANY value other than 3, you MUST first ask the user via AskUserQuestion — propose 3 / 6 / 9 (or other tiers matching the fan-out width) with 3 marked "(Recommended)". The ONLY exception: the user has ALREADY specified a concurrency number in this session ("use 6", "maxConcurrency 9") — then honor it without re-asking. Never silently raise concurrency above 3 just because the workflow fans out; 3 is the recommended default.\n\nScript execution model (common pitfalls — getting these wrong is the #1 cause of script errors): the script is the body of `new AsyncFunction` — NOT an ESM module, and TypeScript is NOT transpiled. Therefore:\n- Do NOT use `import` — `agent`, `parallel`, `pipeline`, `phase`, `log`, `workflow`, `args`, and `budget` are injected as parameters; reference them directly.\n- Do NOT use TS type annotations, `interface`, `enum`, `as`, or generics — the engine does not transpile, so even a .ts file with type syntax fails to parse.\n- Keep EXACTLY ONE `export const meta = {...}` (plain literal) and remove every other `export` / `export default`.\n- Return the result with a top-level `return`.\nPrefer .js / .mjs. See /ultracode for the full playbook and quality patterns.'})),Gr=e((()=>{V()})),Kr=n({AdapterNotFoundError:()=>Vn,AgentAdapterRegistry:()=>Hn,Budget:()=>cr,BudgetExhaustedError:()=>sr,DEFAULT_MAX_CONCURRENCY:()=>3,MAX_CONCURRENCY_CAP:()=>16,MAX_ITEMS_PER_CALL:()=>B,MAX_TOTAL_AGENTS:()=>Fn,ScriptError:()=>W,Semaphore:()=>Kn,WORKFLOW_DIR_NAME:()=>R,WORKFLOW_RUNS_DIR:()=>Pn,WORKFLOW_SCRIPT_EXTENSIONS:()=>z,WORKFLOW_TOOL_NAME:()=>L,WorkflowAbortedError:()=>K,WorkflowError:()=>G,agentCallKey:()=>ir,clampMaxConcurrency:()=>Gn,createBufferingEmitter:()=>Mr,createEngineContext:()=>Cr,createFileJournalStore:()=>ar,createHostHandle:()=>In,createProgressEmitter:()=>jr,createSharedResources:()=>Sr,createWorkflowTool:()=>Rr,extractMeta:()=>Jn,isHostHandle:()=>Ln,listNamedWorkflows:()=>yr,makeHooks:()=>Tr,maxConcurrency:()=>Wn,parseScript:()=>U,persistInlineScript:()=>Ir,resolveNamedWorkflow:()=>vr,runWorkflow:()=>Or,unwrapHostHandle:()=>Rn,validateAgainstSchema:()=>ur,workflowInputSchema:()=>Pr}),qr=e((()=>{Nn(),V(),zn(),Un(),qn(),nr(),or(),lr(),pr(),br(),xr(),wr(),Dr(),Ar(),Nr(),Wr(),Fr(),Lr(),Gr()}));function Jr(e){return Be(e??ae(),ai)}async function q(e){let t=we(),n;try{n=await t.readFile(Jr(e),{encoding:`utf-8`})}catch(e){return be(e)||Ae(e),[]}let r=Pe(n,!1);if(!r||typeof r!=`object`)return[];let i=r;if(!Array.isArray(i.tasks))return[];let a=[];for(let e of i.tasks){if(!e||typeof e.id!=`string`||typeof e.cron!=`string`||typeof e.prompt!=`string`||typeof e.createdAt!=`number`){Ee(`[ScheduledTasks] skipping malformed task: ${xe(e)}`);continue}if(!Le(e.cron)){Ee(`[ScheduledTasks] skipping task ${e.id} with invalid cron '${e.cron}'`);continue}a.push({id:e.id,cron:e.cron,prompt:e.prompt,createdAt:e.createdAt,...typeof e.lastFiredAt==`number`?{lastFiredAt:e.lastFiredAt}:{},...e.recurring?{recurring:!0}:{},...e.permanent?{permanent:!0}:{}})}return a}function Yr(e){let t;try{t=Ue(Jr(e),`utf-8`)}catch{return!1}let n=Pe(t,!1);if(!n||typeof n!=`object`)return!1;let r=n.tasks;return Array.isArray(r)&&r.length>0}async function Xr(e,t){let n=t??ae();await Ke(Be(n,`.claude`),{recursive:!0});let r={tasks:e.map(({durable:e,...t})=>t)};await qe(Jr(n),xe(r,null,2)+`
|
|
154
|
-
`,`utf-8`)}async function Zr(e,t,n,r,i){let a=Ge().slice(0,8),o={id:a,cron:e,prompt:t,createdAt:Date.now(),...n?{recurring:!0}:{}};if(!r)return ie({...o,...i?{agentId:i}:{}}),a;let s=await q();return s.push(o),await Xr(s),a}async function Qr(e,t){if(e.length===0||t===void 0&&oe(e)===e.length)return;let n=new Set(e),r=await q(t),i=r.filter(e=>!n.has(e.id));i.length!==r.length&&await Xr(i,t)}async function $r(e,t,n){if(e.length===0)return;let r=new Set(e),i=await q(n),a=!1;for(let e of i)r.has(e.id)&&(e.lastFiredAt=t,a=!0);a&&await Xr(i,n)}async function ei(e){let t=await q(e);if(e!==void 0)return t;let n=ne().map(e=>({...e,durable:!1}));return[...t,...n]}function J(e,t){let n=Le(e);if(!n)return null;let r=ze(n,new Date(t));return r?r.getTime():null}function ti(e){let t=parseInt(e.slice(0,8),16)/4294967296;return Number.isFinite(t)?t:0}function ni(e,t,n,r=Y){let i=J(e,t);if(i===null)return null;let a=J(e,i);return a===null?i:i+Math.min(ti(n)*r.recurringFrac*(a-i),r.recurringCapMs)}function ri(e,t,n,r=Y){let i=J(e,t);if(i===null)return null;if(new Date(i).getMinutes()%r.oneShotMinuteMod!==0)return i;let a=r.oneShotFloorMs+ti(n)*(r.oneShotMaxMs-r.oneShotFloorMs);return Math.max(i-a,t)}function ii(e,t){return e.filter(e=>{let n=J(e.cron,e.createdAt);return n!==null&&n<t})}var ai,Y,oi=e((()=>{re(),Re(),Te(),Se(),Ce(),Ne(),ke(),ve(),ai=Be(`.claude`,`scheduled_tasks.json`),Y={recurringFrac:.1,recurringCapMs:900*1e3,oneShotMaxMs:90*1e3,oneShotFloorMs:0,oneShotMinuteMod:30,recurringMaxAgeMs:10080*60*1e3}})),si=n({CRON_CREATE_TOOL_NAME:()=>Z,CRON_DELETE_DESCRIPTION:()=>hi,CRON_DELETE_TOOL_NAME:()=>Q,CRON_LIST_DESCRIPTION:()=>gi,CRON_LIST_TOOL_NAME:()=>$,DEFAULT_MAX_AGE_DAYS:()=>X,buildCronCreateDescription:()=>ui,buildCronCreatePrompt:()=>di,buildCronDeletePrompt:()=>fi,buildCronListPrompt:()=>pi,isDurableCronEnabled:()=>li,isKairosCronEnabled:()=>ci});function ci(){return!s(process.env.CLAUDE_CODE_DISABLE_CRON)}function li(){return _e(`tengu_kairos_cron_durable`,!0,mi)}function ui(e){return e?`Schedule a prompt to run at a future time — either recurring on a cron schedule, or once at a specific time. Pass durable: true to persist to .claude/scheduled_tasks.json; otherwise session-only.`:`Schedule a prompt to run at a future time within this Claude session — either recurring on a cron schedule, or once at a specific time.`}function di(e){return`Schedule a prompt to be enqueued at a future time. Use for both recurring schedules and one-shot reminders.
|
|
155
|
-
|
|
156
|
-
Uses standard 5-field cron in the user's local timezone: minute hour day-of-month month day-of-week. "0 9 * * *" means 9am local — no timezone conversion needed.
|
|
157
|
-
|
|
158
|
-
## One-shot tasks (recurring: false)
|
|
159
|
-
|
|
160
|
-
For "remind me at X" or "at <time>, do Y" requests — fire once then auto-delete.
|
|
161
|
-
Pin minute/hour/day-of-month/month to specific values:
|
|
162
|
-
"remind me at 2:30pm today to check the deploy" → cron: "30 14 <today_dom> <today_month> *", recurring: false
|
|
163
|
-
"tomorrow morning, run the smoke test" → cron: "57 8 <tomorrow_dom> <tomorrow_month> *", recurring: false
|
|
164
|
-
|
|
165
|
-
## Recurring jobs (recurring: true, the default)
|
|
166
|
-
|
|
167
|
-
For "every N minutes" / "every hour" / "weekdays at 9am" requests:
|
|
168
|
-
"*/5 * * * *" (every 5 min), "0 * * * *" (hourly), "0 9 * * 1-5" (weekdays at 9am local)
|
|
169
|
-
|
|
170
|
-
## Avoid the :00 and :30 minute marks when the task allows it
|
|
171
|
-
|
|
172
|
-
Every user who asks for "9am" gets \`0 9\`, and every user who asks for "hourly" gets \`0 *\` — which means requests from across the planet land on the API at the same instant. When the user's request is approximate, pick a minute that is NOT 0 or 30:
|
|
173
|
-
"every morning around 9" → "57 8 * * *" or "3 9 * * *" (not "0 9 * * *")
|
|
174
|
-
"hourly" → "7 * * * *" (not "0 * * * *")
|
|
175
|
-
"in an hour or so, remind me to..." → pick whatever minute you land on, don't round
|
|
176
|
-
|
|
177
|
-
Only use minute 0 or 30 when the user names that exact time and clearly means it ("at 9:00 sharp", "at half past", coordinating with a meeting). When in doubt, nudge a few minutes early or late — the user will not notice, and the fleet will.
|
|
178
|
-
|
|
179
|
-
${e?`## Durability
|
|
180
|
-
|
|
181
|
-
By default (durable: false) the job lives only in this Claude session — nothing is written to disk, and the job is gone when Claude exits. Pass durable: true to write to .claude/scheduled_tasks.json so the job survives restarts. Only use durable: true when the user explicitly asks for the task to persist ("keep doing this every day", "set this up permanently"). Most "remind me in 5 minutes" / "check back in an hour" requests should stay session-only.`:`## Session-only
|
|
182
|
-
|
|
183
|
-
Jobs live only in this Claude session — nothing is written to disk, and the job is gone when Claude exits.`}
|
|
184
|
-
|
|
185
|
-
## Runtime behavior
|
|
186
|
-
|
|
187
|
-
Jobs only fire while the REPL is idle (not mid-query). ${e?`Durable jobs persist to .claude/scheduled_tasks.json and survive session restarts — on next launch they resume automatically. One-shot durable tasks that were missed while the REPL was closed are surfaced for catch-up. Session-only jobs die with the process. `:``}The scheduler adds a small deterministic jitter on top of whatever you pick: recurring tasks fire up to 10% of their period late (max 15 min); one-shot tasks landing on :00 or :30 fire up to 90 s early. Picking an off-minute is still the bigger lever.
|
|
188
|
-
|
|
189
|
-
Recurring tasks auto-expire after ${X} days — they fire one final time, then are deleted. This bounds session lifetime. Tell the user about the ${X}-day limit when scheduling recurring jobs.
|
|
190
|
-
|
|
191
|
-
Returns a job ID you can pass to ${Q}.`}function fi(e){return e?`Cancel a cron job previously scheduled with ${Z}. Removes it from .claude/scheduled_tasks.json (durable jobs) or the in-memory session store (session-only jobs).`:`Cancel a cron job previously scheduled with ${Z}. Removes it from the in-memory session store.`}function pi(e){return e?`List all cron jobs scheduled via ${Z}, both durable (.claude/scheduled_tasks.json) and session-only.`:`List all cron jobs scheduled via ${Z} in this session.`}var mi,X,Z,Q,$,hi,gi,_i=e((()=>{de(),oi(),o(),mi=300*1e3,X=Y.recurringMaxAgeMs/(1440*60*1e3),Z=`CronCreate`,Q=`CronDelete`,$=`CronList`,hi=`Cancel a scheduled cron job by ID`,gi=`List scheduled cron jobs`})),vi,yi,bi,xi,Si,Ci,wi=e((()=>{vi=`LocalMemoryRecall`,yi=100*1024,bi=2*1024,xi=50*1024,Si=4*1024,Ci=8*1024})),Ti,Ei,Di,Oi=e((()=>{Ti=`VaultHttpFetch`,Ei=1048576,Di=3e4})),ki,Ai,ji,Mi,Ni,Pi,Fi=e((()=>{ue(),Bt(),Vt(),ge(),Gt(),fe(),Et(),Zt(),Qt(),ct(),Rt(),Mt(),nn(),pt(),kt(),Pt(),rn(),an(),on(),sn(),cn(),ln(),un(),yn(),Cn(),Tn(),Dn(),On(),An(),Mn(),qr(),_i(),wi(),Oi(),ki=new Set([me,zt,S,...process.env.USER_TYPE===`ant`?[]:[se],C,pe,...[L],vi,Ti]),Ai=new Set([...ki]),ji=new Set([y,w,T,v,It,At,...E,lt,b,Nt,D,P,N,I,kn,jn]),Mi=new Set([k,A,j,M,O,Z,Q,$]),Ni=new Set([se,pe,O,P]),Pi=new Set([...E,y,lt,b,At,v,Nt,se,C,me,pe,k,A,j,M,T,S,zt,F,It,w,`LSP`,D,L,bn,N,I,P])}));function Ii(){return process.env.USER_TYPE===`ant`||he(`tengu_glacier_2xr`,!1)?`Deferred tools appear by name in <system-reminder> messages.`:`Deferred tools appear by name in <available-deferred-tools> messages.`}function Li(e){return!(e.alwaysLoad===!0||Pi.has(e.name))}function Ri(e){return e.name}function zi(){return Bi+Ii()+Vi}var Bi,Vi,Hi=e((()=>{de(),Fi(),un(),Bi=`Search for deferred tools by name or keyword. LOW PRIORITY — only use this tool when no core tool can accomplish the task. Core tools (Read, Edit, Write, Bash, Glob, Grep, Agent, WebFetch, WebSearch, Skill) are always available and should be used directly. This tool is for discovering additional capabilities like MCP tools, cron scheduling, worktree management, agent teams (TeamCreate, TeamDelete, SendMessage), etc.
|
|
192
|
-
|
|
193
|
-
`,Vi=` Returns matching tool names.
|
|
194
|
-
|
|
195
|
-
## Two-step workflow (MUST follow exactly)
|
|
196
|
-
|
|
197
|
-
Deferred tools CANNOT be called directly. You MUST use this two-step pattern:
|
|
198
|
-
|
|
199
|
-
Step 1 — Search: Call this tool (SearchExtraTools) to discover the target tool.
|
|
200
|
-
Input: {"query": "select:CronCreate"}
|
|
201
|
-
Response: "Found 1 deferred tool(s): CronCreate. Use ExecuteExtraTool with {"tool_name": "<name>", "params": {...}} to invoke."
|
|
202
|
-
|
|
203
|
-
Step 2 — Execute: Call ExecuteExtraTool to run the discovered tool.
|
|
204
|
-
Input: {"tool_name": "CronCreate", "params": {"schedule": "*/5 * * * *", "prompt": "check the deploy"}}
|
|
205
|
-
Response: the actual tool result.
|
|
206
|
-
|
|
207
|
-
## Example: user asks "schedule a cron to check deploy every 5 minutes"
|
|
208
|
-
|
|
209
|
-
1. SearchExtraTools({"query": "select:CronCreate"})
|
|
210
|
-
→ Response: Found deferred tool CronCreate
|
|
211
|
-
2. ExecuteExtraTool({"tool_name": "CronCreate", "params": {"schedule": "*/5 * * * *", "prompt": "check the deploy"}})
|
|
212
|
-
→ Response: Cron job created successfully
|
|
213
|
-
|
|
214
|
-
If you don't know the exact tool name, use keyword search first:
|
|
215
|
-
1. SearchExtraTools({"query": "cron schedule"})
|
|
216
|
-
→ Response: Found deferred tool(s): CronCreate
|
|
217
|
-
2. ExecuteExtraTool({"tool_name": "CronCreate", "params": {...}})
|
|
218
|
-
|
|
219
|
-
## Query forms
|
|
220
|
-
- "select:CronCreate" — exact tool name (fastest, preferred when you know the name from <available-deferred-tools>)
|
|
221
|
-
- "select:CronCreate,CronList" — comma-separated multi-select
|
|
222
|
-
- "discover:schedule cron job" — returns tool name + description + schema without loading. Use to understand a tool before calling it.
|
|
223
|
-
- "notebook jupyter" — keyword search, up to max_results best matches
|
|
224
|
-
- "+slack send" — require "slack" in the name, rank by remaining terms
|
|
225
|
-
|
|
226
|
-
## Failure policy
|
|
227
|
-
If ExecuteExtraTool fails, do NOT re-search for the same tool — it will loop. Stop and tell the user what failed.`}));export{Pr as $,et as $n,Zt as $t,fi as A,wt as An,dn as At,Yr as B,ft as Bn,O as Bt,hi as C,Ot as Cn,bn as Ct,X as D,bt as Dn,_n as Dt,$ as E,y as En,P as Et,si as F,gt as Fn,cn as Ft,J as G,ct as Gn,nn as Gt,ni as H,pt as Hn,D as Ht,Y as I,ht as In,A as It,Qr as J,nt as Jn,en as Jt,ri as K,_ as Kn,tn as Kt,Zr as L,mt as Ln,sn as Lt,_i as M,Et as Mn,M as Mt,li as N,yt as Nn,ln as Nt,ui as O,Ct as On,fn as Ot,ci as P,vt as Pn,j as Pt,Ir as Q,at as Qn,Xt as Qt,ii as R,ut as Rn,k as Rt,Z as S,b as Sn,xn as St,gi as T,St as Tn,Cn as Tt,ei as U,v as Un,rn as Ut,oi as V,dt as Vn,an as Vt,$r as W,st as Wn,E as Wt,Kr as X,tt as Xn,Qt as Xt,qr as Y,$e as Yn,T as Yt,Rr as Z,rt as Zn,w as Zt,Si as _,Nt as _n,F as _t,ki as a,Ht as an,U as at,bi as b,At as bn,wn as bt,Ai as c,S as cn,Rn as ct,Di as d,zt as dn,jn as dt,Kt as en,Or as et,Ei as f,Bt as fn,Mn as ft,Ci as g,Ft as gn,On as gt,xi as h,Rt as hn,I as ht,Li as i,Wt as in,ar as it,pi as j,Tt as jn,N as jt,di as k,xt as kn,yn as kt,Mi as l,Vt as ln,R as lt,Oi as m,It as mn,An as mt,zi as n,Yt as nn,yr as nt,ji as o,Ut as on,Hn as ot,Ti as p,Lt as pn,kn as pt,q,ot as qn,$t as qt,Hi as r,C as rn,vr as rt,Ni as s,Gt as sn,In as st,Ri as t,Jt as tn,K as tt,Fi as u,x as un,L as ut,vi as v,Pt as vn,En as vt,Q as w,kt as wn,Sn as wt,wi as x,Mt as xn,Tn as xt,yi as y,jt as yn,Dn as yt,Jr as z,lt as zn,on as zt};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{EA as e,bA as t}from"./loadAgentsDir-Br5fGLLI.js";e();export{t as clearPromptCache};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./memoize-DNnuA2aU.js";import{Lt as r,t as i}from"./src-Di342QoJ.js";import{A as a,E as o,_ as s,h as c,l,p as u}from"./debug-otxXY3j-.js";import{n as d,t as f}from"./execSyncWrapper-Bn7EJqtD.js";import{r as p,t as m}from"./which-BnEnzWhs.js";import{Ax as h,GS as g,Gv as _,KS as v,US as y,VS as b,Wv as x,zx as S}from"./loadAgentsDir-Br5fGLLI.js";import{basename as C}from"path";import{spawn as w,spawnSync as T}from"child_process";function E(e){return!!p(e)}function D(e){let t=C(e.split(` `)[0]??``);return A.find(e=>t.includes(e))}function O(e,t,n){return n?M.has(e)?[`-g`,`${t}:${n}`]:e===`subl`?[`${t}:${n}`]:[t]:[t]}function k(e,t){let n=N();if(!n)return!1;let i=n.split(` `),a=i[0]??n,o=i.slice(1),s=D(n);if(s){let r=O(s,e,t),i={detached:!0,stdio:`ignore`},c;return c=process.platform===`win32`?w(`${n} ${r.map(e=>`"${e}"`).join(` `)}`,{...i,shell:!0}):w(a,[...o,...r],i),c.on(`error`,e=>u(`editor spawn failed: ${e}`,{level:`error`})),c.unref(),!0}let c=r.get(process.stdout);if(!c)return!1;let l=t&&j.test(C(a));c.enterAlternateScreen();try{let r={stdio:`inherit`},i;return i=process.platform===`win32`?T(`${n} ${l?`+${t} `:``}"${e}"`,{...r,shell:!0}):T(a,[...o,...l?[`+${t}`,e]:[e]],r),i.error?(u(`editor spawn failed: ${i.error}`,{level:`error`}),!1):!0}finally{c.exitAlternateScreen()}}var A,j,M,N,P=e((()=>{n(),i(),l(),m(),A=[`code`,`cursor`,`windsurf`,`codium`,`subl`,`atom`,`gedit`,`notepad++`,`notepad`],j=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,M=new Set([`code`,`cursor`,`windsurf`,`codium`]),N=t(()=>process.env.VISUAL?.trim()?process.env.VISUAL.trim():process.env.EDITOR?.trim()?process.env.EDITOR.trim():process.platform===`win32`?`start /wait notepad`:[`code`,`vi`,`nano`].find(e=>E(e)))}));function F(e){return D(e)!==void 0}function I(e){let t=c(),n=r.get(process.stdout);if(!n)throw Error(`Ink instance not found - cannot pause rendering`);let i=N();if(!i)return{content:null};try{t.statSync(e)}catch{return{content:null}}let a=!F(i);a?n.enterAlternateScreen():(n.pause(),n.suspendStdin());try{return f(`${z[i]??i} "${e}"`,{stdio:`inherit`}),{content:t.readFileSync(e,{encoding:`utf-8`})}}catch(e){if(typeof e==`object`&&e&&`status`in e&&typeof e.status==`number`){let t=e.status;if(t!==0)return{content:null,error:`${S(i)} exited with code ${t}`}}return{content:null}}finally{a?n.exitAlternateScreen():(n.resumeStdin(),n.resume())}}function L(e,t,n){let r=e;for(let[e,t]of Object.entries(n))if(t.type===`text`){let n=parseInt(e,10),i=t.content,a=r.indexOf(i);if(a!==-1){let e=y(n,g(i));r=r.slice(0,a)+e+r.slice(a+i.length)}}return r}function R(e,t){let n=c(),r=x();try{a(r,t?b(e,t):e,{encoding:`utf-8`,flush:!0});let n=I(r);if(n.content===null)return n;let i=n.content;return i.endsWith(`
|
|
2
|
-
`)&&!i.endsWith(`
|
|
3
|
-
|
|
4
|
-
`)&&(i=i.slice(0,-1)),t&&(i=L(i,e,t)),{content:i}}finally{try{n.unlinkSync(r)}catch{}}}var z,B=e((()=>{v(),i(),P(),d(),s(),h(),o(),_(),z={code:`code -w`,subl:`subl --wait`}}));export{P as a,N as i,R as n,k as o,B as r,I as t};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{Ac as e,Sc as t}from"./paths-DfGsIjPm.js";import{E as n,O as r,l as i,p as a}from"./debug-otxXY3j-.js";import{n as o,t as s}from"./which-BnEnzWhs.js";import{r as c,t as l}from"./execFileNoThrow-B_aZH_GP.js";import{n as u,t as d}from"./githubRepoPathMapping-C5RkiJWj.js";import{n as f}from"./banner-DNLUJFS_.js";import{a as p,i as m,n as h}from"./registerProtocol-4lQ7O4Cc.js";import{homedir as g}from"os";import{basename as _}from"path";import{spawn as v}from"child_process";n(),m(),h(),e(),i(),c(),s();var y=[{name:`iTerm2`,bundleId:`com.googlecode.iterm2`,app:`iTerm`},{name:`Ghostty`,bundleId:`com.mitchellh.ghostty`,app:`Ghostty`},{name:`Kitty`,bundleId:`net.kovidgoyal.kitty`,app:`kitty`},{name:`Alacritty`,bundleId:`org.alacritty`,app:`Alacritty`},{name:`WezTerm`,bundleId:`com.github.wez.wezterm`,app:`WezTerm`},{name:`Terminal.app`,bundleId:`com.apple.Terminal`,app:`Terminal`}],b=[`ghostty`,`kitty`,`alacritty`,`wezterm`,`gnome-terminal`,`konsole`,`xfce4-terminal`,`mate-terminal`,`tilix`,`xterm`];async function x(){let e=t().deepLinkTerminal;if(e){let t=y.find(t=>t.app===e);if(t)return{name:t.name,command:t.app}}let n=process.env.TERM_PROGRAM;if(n){let e=n.replace(/\.app$/i,``).toLowerCase(),t=y.find(t=>t.app.toLowerCase()===e||t.name.toLowerCase()===e);if(t)return{name:t.name,command:t.app}}for(let e of y){let{code:t,stdout:n}=await l(`mdfind`,[`kMDItemCFBundleIdentifier == "${e.bundleId}"`],{timeout:5e3,useCwd:!1});if(t===0&&n.trim().length>0)return{name:e.name,command:e.app}}for(let e of y){let{code:t}=await l(`ls`,[`/Applications/${e.app}.app`],{timeout:1e3,useCwd:!1});if(t===0)return{name:e.name,command:e.app}}return{name:`Terminal.app`,command:`Terminal`}}async function S(){let e=process.env.TERMINAL;if(e){let t=await o(e);if(t)return{name:_(e),command:t}}let t=await o(`x-terminal-emulator`);if(t)return{name:`x-terminal-emulator`,command:t};for(let e of b){let t=await o(e);if(t)return{name:e,command:t}}return null}async function C(){let e=await o(`wt.exe`);if(e)return{name:`Windows Terminal`,command:e};let t=await o(`pwsh.exe`);if(t)return{name:`PowerShell`,command:t};let n=await o(`powershell.exe`);return n?{name:`PowerShell`,command:n}:{name:`Command Prompt`,command:`cmd.exe`}}async function w(){switch(process.platform){case`darwin`:return x();case`linux`:return S();case`win32`:return C();default:return null}}async function T(e,t){let n=await w();if(!n)return a(`No terminal emulator detected`,{level:`error`}),!1;a(`Launching in terminal: ${n.name} (${n.command})`);let r=[`--deep-link-origin`];switch(t.repo&&(r.push(`--deep-link-repo`,t.repo),t.lastFetchMs!==void 0&&r.push(`--deep-link-last-fetch`,String(t.lastFetchMs))),t.query&&r.push(`--prefill`,t.query),process.platform){case`darwin`:return E(n,e,r,t.cwd);case`linux`:return D(n,e,r,t.cwd);case`win32`:return O(n,e,r,t.cwd);default:return!1}}async function E(e,t,n,r){switch(e.command){case`iTerm`:{let{code:e}=await l(`osascript`,[`-e`,`tell application "iTerm"
|
|
2
|
-
if running then
|
|
3
|
-
create window with default profile
|
|
4
|
-
else
|
|
5
|
-
activate
|
|
6
|
-
end if
|
|
7
|
-
tell current session of current window
|
|
8
|
-
write text ${M(A(t,n,r))}
|
|
9
|
-
end tell
|
|
10
|
-
end tell`],{useCwd:!1});if(e===0)return!0;break}case`Terminal`:{let{code:e}=await l(`osascript`,[`-e`,`tell application "Terminal"
|
|
11
|
-
do script ${M(A(t,n,r))}
|
|
12
|
-
activate
|
|
13
|
-
end tell`],{useCwd:!1});return e===0}case`Ghostty`:{let i=[`-na`,e.command,`--args`,`--window-save-state=never`];r&&i.push(`--working-directory=${r}`),i.push(`-e`,t,...n);let{code:a}=await l(`open`,i,{useCwd:!1});if(a===0)return!0;break}case`Alacritty`:{let i=[`-na`,e.command,`--args`];r&&i.push(`--working-directory`,r),i.push(`-e`,t,...n);let{code:a}=await l(`open`,i,{useCwd:!1});if(a===0)return!0;break}case`kitty`:{let i=[`-na`,e.command,`--args`];r&&i.push(`--directory`,r),i.push(t,...n);let{code:a}=await l(`open`,i,{useCwd:!1});if(a===0)return!0;break}case`WezTerm`:{let i=[`-na`,e.command,`--args`,`start`];r&&i.push(`--cwd`,r),i.push(`--`,t,...n);let{code:a}=await l(`open`,i,{useCwd:!1});if(a===0)return!0;break}}return a(`Failed to launch ${e.name}, falling back to Terminal.app`),E({name:`Terminal.app`,command:`Terminal`},t,n,r)}async function D(e,t,n,r){let i,a;switch(e.name){case`gnome-terminal`:i=r?[`--working-directory=${r}`,`--`]:[`--`],i.push(t,...n);break;case`konsole`:i=r?[`--workdir`,r,`-e`]:[`-e`],i.push(t,...n);break;case`kitty`:i=r?[`--directory`,r]:[],i.push(t,...n);break;case`wezterm`:i=r?[`start`,`--cwd`,r,`--`]:[`start`,`--`],i.push(t,...n);break;case`alacritty`:i=r?[`--working-directory`,r,`-e`]:[`-e`],i.push(t,...n);break;case`ghostty`:i=r?[`--working-directory=${r}`,`-e`]:[`-e`],i.push(t,...n);break;case`xfce4-terminal`:case`mate-terminal`:i=r?[`--working-directory=${r}`,`-x`]:[`-x`],i.push(t,...n);break;case`tilix`:i=r?[`--working-directory=${r}`,`-e`]:[`-e`],i.push(t,...n);break;default:i=[`-e`,t,...n],a=r;break}return k(e.command,i,{cwd:a})}async function O(e,t,n,r){let i=[];switch(e.name){case`Windows Terminal`:r&&i.push(`-d`,r),i.push(`--`,t,...n);break;case`PowerShell`:{let e=r?`Set-Location ${N(r)}; `:``;i.push(`-NoExit`,`-Command`,`${e}& ${N(t)} ${n.map(N).join(` `)}`);break}default:{let e=r?`cd /d ${P(r)} && `:``;i.push(`/k`,`${e}${P(t)} ${n.map(e=>P(e)).join(` `)}`);break}}return k(e.command,i,{windowsVerbatimArguments:e.name===`Command Prompt`})}function k(e,t,n={}){return new Promise(r=>{let i=v(e,t,{detached:!0,stdio:`ignore`,cwd:n.cwd,windowsVerbatimArguments:n.windowsVerbatimArguments});i.once(`error`,t=>{a(`Failed to spawn ${e}: ${t.message}`,{level:`error`}),r(!1)}),i.once(`spawn`,()=>{i.unref(),r(!0)})})}function A(e,t,n){return`${n?`cd ${j(n)} && `:``}${[e,...t].map(j).join(` `)}`}function j(e){return`'${e.replace(/'/g,`'\\''`)}'`}function M(e){return`"${e.replace(/\\/g,`\\\\`).replace(/"/g,`\\"`)}"`}function N(e){return`'${e.replace(/'/g,`''`)}'`}function P(e){return`"${e.replace(/"/g,``).replace(/%/g,`%%`).replace(/(\\+)$/,`$1$1`)}"`}i();async function F(e){a(`Handling deep link URI: ${e}`);let t;try{t=p(e)}catch(e){let t=e instanceof Error?e.message:String(e);return console.error(`Deep link error: ${t}`),1}a(`Parsed deep link action: ${r(t)}`);let{cwd:n,resolvedRepo:i}=await L(t),o=i?await f(n):void 0;return await T(process.execPath,{query:t.query,cwd:n,repo:i,lastFetchMs:o?.getTime()})?0:(console.error(`Failed to open a terminal. Make sure a supported terminal emulator is installed.`),1)}async function I(){if(process.env.__CFBundleIdentifier!==`com.anthropic.claude-code-url-handler`)return null;try{let{waitForUrlEvent:e}=await import(`./src-BRAdBA8A.js`),t=await e(5e3);return t?await F(t):null}catch{return null}}async function L(e){if(e.cwd)return{cwd:e.cwd};if(e.repo){let t=await d(u(e.repo));if(t[0])return a(`Resolved repo ${e.repo} → ${t[0]}`),{cwd:t[0],resolvedRepo:e.repo};a(`No local clone found for repo ${e.repo}, falling back to home`)}return{cwd:g()}}export{F as handleDeepLinkUri,I as handleUrlSchemeLaunch};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,f as r,t as i}from"./src-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{$t as o,Da as s,S as c,Zt as l,_ as u,ka as d,on as f,tn as p}from"./paths-DfGsIjPm.js";import{n as m,r as h}from"./analytics-DqMQntaB.js";import{_a as g,aS as _,c_ as v,l_ as y,oS as b,s_ as x,u_ as S,va as C}from"./loadAgentsDir-Br5fGLLI.js";import{n as w,t as T}from"./extra-usage-DLEvlKzs.js";import{n as E,t as D}from"./upgrade-Dq3l14ZY.js";function O({onDone:e,context:t}){let[n,i]=(0,A.useState)(null),a=v(),c=p(),d=o(),f=l()?.hasExtraUsageEnabled===!0,m=c===`max`&&d===`default_claude_max_20x`,g=c===`team`||c===`enterprise`,b=u(`tengu_jade_anvil_4`,!1),x=(0,A.useMemo)(()=>{let e=[];if(y.isEnabled()){let t=s(),n=g&&!t,r=a.overageDisabledReason===`out_of_credits`||a.overageDisabledReason===`org_level_disabled_until`||a.overageDisabledReason===`org_service_zero_credit_limit`;if(!(n&&r)){let t=a.overageStatus===`rejected`||a.overageStatus===`allowed_warning`,r;r=n?t?`Request more`:`Request extra usage`:f?`Add funds to continue with extra usage`:`Switch to extra usage`,e.push({label:r,value:`extra-usage`})}}!m&&!g&&C.isEnabled()&&e.push({label:`Upgrade your plan`,value:`upgrade`});let t={label:`Stop and wait for limit to reset`,value:`cancel`};return b?[...e,t]:[t,...e]},[b,m,g,f,a.overageStatus,a.overageDisabledReason]);function S(){h(`tengu_rate_limit_options_menu_cancel`,{}),e(void 0,{display:`skip`})}function w(n){n===`upgrade`?(h(`tengu_rate_limit_options_menu_select_upgrade`,{}),D(e,t).then(e=>{e&&i(e)})):n===`extra-usage`?(h(`tengu_rate_limit_options_menu_select_extra_usage`,{}),T(e,t).then(e=>{e&&i(e)})):n===`cancel`&&S()}return n||(0,j.jsx)(r,{title:`What do you want to do?`,onCancel:S,color:`suggestion`,children:(0,j.jsx)(_,{options:x,onChange:w,visibleOptionCount:x.length})})}async function k(e,t){return(0,j.jsx)(O,{onDone:e,context:t})}var A,j;e((()=>{A=t(n(),1),b(),i(),c(),m(),x(),f(),d(),w(),S(),g(),E(),j=a()}))();export{k as call};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{s as n,u as r}from"./envUtils-BWeoiL4Y.js";import{Ct as i,U as a,br as o,cn as s,wt as c}from"./state-sIHsFpDu.js";import{ea as l,na as u,ra as d,ta as f}from"./paths-DfGsIjPm.js";import{Q as p,U as m,Z as h,_ as g,h as _,l as ee,p as v,z as te}from"./debug-otxXY3j-.js";import{F as y,P as ne}from"./git-DayFjsvj.js";import{join as re}from"node:path";import{appendFileSync as ie,existsSync as ae,mkdirSync as oe}from"node:fs";import{homedir as se}from"node:os";import{randomUUID as b}from"crypto";var ce=e((()=>{})),le,ue=e((()=>{le={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:`standard`,cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:``,iterations:[],speed:`standard`}})),de=e((()=>{}));function fe(e){return e}var pe=e((()=>{})),me=e((()=>{ce(),ue(),de(),pe()}));function he(e){return/haiku/i.test(e)?`haiku`:/opus/i.test(e)?`opus`:/sonnet/i.test(e)?`sonnet`:null}function ge(e){if(process.env.OPENAI_MODEL)return process.env.OPENAI_MODEL;let t=e.replace(/\[1m\]$/,``),n=he(t);if(n){let e=`OPENAI_DEFAULT_${n.toUpperCase()}_MODEL`,t=process.env[e];if(t)return t;let r=`ANTHROPIC_DEFAULT_${n.toUpperCase()}_MODEL`,i=process.env[r];if(i)return i}return _e[t]??t}var _e,ve=e((()=>{_e={"claude-sonnet-4-20250514":`gpt-4o`,"claude-sonnet-4-5-20250929":`gpt-4o`,"claude-sonnet-4-6":`gpt-4o`,"claude-opus-4-20250514":`o3`,"claude-opus-4-1-20250805":`o3`,"claude-opus-4-5-20251101":`o3`,"claude-opus-4-6":`o3`,"claude-haiku-4-5-20251001":`gpt-4o-mini`,"claude-3-5-haiku-20241022":`gpt-4o-mini`,"claude-3-7-sonnet-20250219":`gpt-4o`,"claude-3-5-sonnet-20241022":`gpt-4o`}}));function ye(e){return/haiku/i.test(e)?`haiku`:/opus/i.test(e)?`opus`:/sonnet/i.test(e)?`sonnet`:null}function be(){let e=process.env.GROK_MODEL_MAP;if(!e)return null;try{let t=JSON.parse(e);if(t&&typeof t==`object`&&!Array.isArray(t))return t}catch{}return null}function xe(e){if(process.env.GROK_MODEL)return process.env.GROK_MODEL;let t=e.replace(/\[1m\]$/,``),n=ye(t),r=be();if(r&&n&&r[n])return r[n];if(n){let e=`GROK_DEFAULT_${n.toUpperCase()}_MODEL`,t=process.env[e];if(t)return t;let r=`ANTHROPIC_DEFAULT_${n.toUpperCase()}_MODEL`,i=process.env[r];if(i)return i}return x[t]?x[t]:n&&S[n]?S[n]:t}var x,S,Se=e((()=>{x={"claude-sonnet-4-20250514":`grok-3-mini-fast`,"claude-sonnet-4-5-20250929":`grok-3-mini-fast`,"claude-sonnet-4-6":`grok-3-mini-fast`,"claude-opus-4-20250514":`grok-4.20-reasoning`,"claude-opus-4-1-20250805":`grok-4.20-reasoning`,"claude-opus-4-5-20251101":`grok-4.20-reasoning`,"claude-opus-4-6":`grok-4.20-reasoning`,"claude-haiku-4-5-20251001":`grok-3-mini-fast`,"claude-3-5-haiku-20241022":`grok-3-mini-fast`,"claude-3-7-sonnet-20250219":`grok-3-mini-fast`,"claude-3-5-sonnet-20241022":`grok-3-mini-fast`},S={opus:`grok-4.20-reasoning`,sonnet:`grok-3-mini-fast`,haiku:`grok-3-mini-fast`}}));function Ce(e){return/haiku/i.test(e)?`haiku`:/opus/i.test(e)?`opus`:/sonnet/i.test(e)?`sonnet`:null}function we(e){if(process.env.GEMINI_MODEL)return process.env.GEMINI_MODEL;let t=e.replace(/\[1m\]$/i,``),n=Ce(t);if(!n)return t;let r=`GEMINI_DEFAULT_${n.toUpperCase()}_MODEL`,i=process.env[r];if(i)return i;let a=`ANTHROPIC_DEFAULT_${n.toUpperCase()}_MODEL`,o=process.env[a];if(o)return o;throw Error(`Gemini provider requires GEMINI_MODEL or ${r} (or ${a} for backward compatibility) to be configured.`)}var Te=e((()=>{})),C,Ee=e((()=>{C=`_geminiThoughtSignature`}));function w(e){if(!e)return null;try{return JSON.parse(e)}catch{return null}}function De(e,t){let n=[],r=new Map;for(let t of e){if(t.type===`assistant`){let e=je(t);e.parts.length>0&&n.push(e);let i=t.message.content;if(Array.isArray(i))for(let e of i)typeof e!=`string`&&e.type===`tool_use`&&r.set(e.id,e.name);continue}if(t.type===`user`){let e=ke(t,r);e.parts.length>0&&n.push(e)}}let i=Oe(t);return{contents:n,...i?{systemInstruction:{parts:[{text:i}]}}:{}}}function Oe(e){return!e||e.length===0?``:e.filter(Boolean).join(`
|
|
2
|
-
|
|
3
|
-
`)}function ke(e,t){let n=e.message.content;return typeof n==`string`?{role:`user`,parts:T(n)}:Array.isArray(n)?{role:`user`,parts:n.flatMap(e=>Ae(e,t))}:{role:`user`,parts:[]}}function Ae(e,t){if(typeof e==`string`)return T(e);if(e.type===`text`)return T(e.text);if(e.type===`tool_result`){let n=e;return[{functionResponse:{name:t.get(n.tool_use_id)??n.tool_use_id,response:Pe(n)}}]}if(e.type===`image`){let t=e.source;if(t?.type===`base64`&&typeof t.data==`string`)return[{inlineData:{mimeType:t.media_type||`image/png`,data:t.data}}];if(t?.type===`url`&&typeof t.url==`string`)return T(`[image: ${t.url}]`)}return[]}function je(e){let t=e.message.content;if(typeof t==`string`)return{role:`model`,parts:T(t)};if(!Array.isArray(t))return{role:`model`,parts:[]};let n=[];for(let e of t){if(typeof e==`string`){n.push(...T(e));continue}if(e.type===`text`){n.push(...T(e.text,E(e)));continue}if(e.type===`thinking`){let t=Me(e.thinking,e.signature);t&&n.push(t);continue}if(e.type===`tool_use`){let t=e;n.push({functionCall:{name:t.name,args:Ne(t.input)},...E(e)&&{thoughtSignature:E(e)}})}}return{role:`model`,parts:n}}function T(e,t){return typeof e!=`string`||e.length===0?[]:[{text:e,...t&&{thoughtSignature:t}}]}function Me(e,t){if(!(typeof e!=`string`||e.length===0))return{text:e,thought:!0,...t&&{thoughtSignature:t}}}function Ne(e){if(typeof e==`string`){let t=w(e);return t&&typeof t==`object`&&!Array.isArray(t)?t:t===null?{}:{value:t}}return e&&typeof e==`object`&&!Array.isArray(e)?e:e===void 0?{}:{value:e}}function Pe(e){let t=Fe(e.content);return t&&typeof t==`object`&&!Array.isArray(t)?e.is_error?{...t,is_error:!0}:t:{result:t,...e.is_error?{is_error:!0}:{}}}function Fe(e){if(typeof e==`string`)return w(e)??e;if(Array.isArray(e)){let t=e.map(e=>typeof e==`string`?e:e&&typeof e==`object`&&`text`in e&&typeof e.text==`string`?e.text:``).filter(Boolean).join(`
|
|
4
|
-
`);return w(t)??t}return e??``}function E(e){let t=e[C];return typeof t==`string`&&t.length>0?t:void 0}var Ie=e((()=>{Ee()}));function Le(e){if(typeof e==`string`)return O.has(e)?e:void 0;if(Array.isArray(e)){let t=e.filter(e=>typeof e==`string`&&O.has(e)),n=Array.from(new Set(t));return n.length===0?void 0:n.length===1?n[0]:n}}function Re(e){if(e===null)return`null`;if(Array.isArray(e))return`array`;if(typeof e==`string`)return`string`;if(typeof e==`boolean`)return`boolean`;if(typeof e==`number`)return Number.isInteger(e)?`integer`:`number`;if(typeof e==`object`)return`object`}function ze(e){let t=e.map(Re).filter(e=>e!==void 0),n=Array.from(new Set(t));if(n.length!==0)return n.length===1?n[0]:n}function Be(e){return e===void 0?[`null`]:Array.isArray(e)?e.includes(`null`)?e:[...e,`null`]:e===`null`?e:[e,`null`]}function Ve(e){if(!e||typeof e!=`object`||Array.isArray(e))return;let t=Object.entries(e).map(([e,t])=>[e,D(t)]).filter(([,e])=>Object.keys(e).length>0);if(t.length!==0)return Object.fromEntries(t)}function He(e){if(!Array.isArray(e))return;let t=e.map(e=>D(e)).filter(e=>Object.keys(e).length>0);return t.length>0?t:void 0}function D(e){if(!e||typeof e!=`object`||Array.isArray(e))return{};let t=e,n={},r=Le(t.type);t.const===void 0?Array.isArray(t.enum)&&t.enum.length>0&&(n.enum=t.enum,r=r??ze(t.enum)):(n.enum=[t.const],r=r??Re(t.const)),r||(t.properties&&typeof t.properties==`object`?r=`object`:(t.items!==void 0||t.prefixItems!==void 0)&&(r=`array`)),t.nullable===!0&&(r=Be(r)),r&&(n.type=r),typeof t.title==`string`&&(n.title=t.title),typeof t.description==`string`&&(n.description=t.description),typeof t.format==`string`&&(n.format=t.format),typeof t.pattern==`string`&&(n.pattern=t.pattern),typeof t.minimum==`number`?n.minimum=t.minimum:typeof t.exclusiveMinimum==`number`&&(n.minimum=t.exclusiveMinimum),typeof t.maximum==`number`?n.maximum=t.maximum:typeof t.exclusiveMaximum==`number`&&(n.maximum=t.exclusiveMaximum),typeof t.minItems==`number`&&(n.minItems=t.minItems),typeof t.maxItems==`number`&&(n.maxItems=t.maxItems),typeof t.minLength==`number`&&(n.minLength=t.minLength),typeof t.maxLength==`number`&&(n.maxLength=t.maxLength),typeof t.minProperties==`number`&&(n.minProperties=t.minProperties),typeof t.maxProperties==`number`&&(n.maxProperties=t.maxProperties);let i=Ve(t.properties);if(i&&(n.properties=i,n.propertyOrdering=Object.keys(i)),Array.isArray(t.required)){let e=t.required.filter(e=>typeof e==`string`);e.length>0&&(n.required=e)}if(typeof t.additionalProperties==`boolean`)n.additionalProperties=t.additionalProperties;else{let e=D(t.additionalProperties);Object.keys(e).length>0&&(n.additionalProperties=e)}let a=D(t.items);Object.keys(a).length>0&&(n.items=a);let o=He(t.prefixItems);o&&(n.prefixItems=o);let s=He(t.anyOf??t.oneOf);return s&&(n.anyOf=s),n}function Ue(e){let t=D(e);return Object.keys(t).length>0?t:{type:`object`,properties:{}}}function We(e){let t=e.filter(e=>{let t=e.type;return e.type===`custom`||!(`type`in e)||t!==`server`}).map(e=>{let t=e;return{name:t.name||``,description:t.description||``,parametersJsonSchema:Ue(t.input_schema??{type:`object`,properties:{}})}});return t.length>0?[{functionDeclarations:t}]:[]}function Ge(e){if(!e||typeof e!=`object`)return;let t=e;switch(t.type){case`auto`:return{mode:`AUTO`};case`any`:return{mode:`ANY`};case`tool`:return{mode:`ANY`,allowedFunctionNames:typeof t.name==`string`?[t.name]:void 0};default:return}}var O,Ke=e((()=>{O=new Set([`string`,`number`,`integer`,`boolean`,`object`,`array`,`null`])}));async function*qe(e,t){let n=`msg_${b().replace(/-/g,``).slice(0,24)}`,r=!1,i=!1,a=0,o=null,s=!1,c,l=0,u=0,d=0;for await(let i of e){let e=i.usageMetadata;e&&(l=e.promptTokenCount??l,u=(e.candidatesTokenCount??0)+(e.thoughtsTokenCount??0),d=e.cachedContentTokenCount??d),r||(r=!0,yield{type:`message_start`,message:{id:n,type:`message`,role:`assistant`,content:[],model:t,stop_reason:null,stop_sequence:null,usage:{input_tokens:l,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:d}}});let f=i.candidates?.[0],p=f?.content?.parts??[];for(let e of p){if(e.functionCall){o&&(yield{type:`content_block_stop`,index:o.index},o=null),s=!0;let t=a++;yield{type:`content_block_start`,index:t,content_block:{type:`tool_use`,id:`toolu_${b().replace(/-/g,``).slice(0,24)}`,name:e.functionCall.name||``,input:{}}},e.thoughtSignature&&(yield{type:`content_block_delta`,index:t,delta:{type:`signature_delta`,signature:e.thoughtSignature}}),e.functionCall.args&&Object.keys(e.functionCall.args).length>0&&(yield{type:`content_block_delta`,index:t,delta:{type:`input_json_delta`,partial_json:JSON.stringify(e.functionCall.args)}}),yield{type:`content_block_stop`,index:t};continue}let t=Je(e);if(t){(!o||o.type!==t)&&(o&&(yield{type:`content_block_stop`,index:o.index}),o={index:a++,type:t},yield{type:`content_block_start`,index:o.index,content_block:t===`thinking`?{type:`thinking`,thinking:``,signature:``}:{type:`text`,text:``}}),e.text&&(yield{type:`content_block_delta`,index:o.index,delta:t===`thinking`?{type:`thinking_delta`,thinking:e.text}:{type:`text_delta`,text:e.text}}),e.thoughtSignature&&(yield{type:`content_block_delta`,index:o.index,delta:{type:`signature_delta`,signature:e.thoughtSignature}});continue}e.thoughtSignature&&o&&(yield{type:`content_block_delta`,index:o.index,delta:{type:`signature_delta`,signature:e.thoughtSignature}})}f?.finishReason&&(c=f.finishReason)}r&&(o&&(yield{type:`content_block_stop`,index:o.index}),i||(yield{type:`message_delta`,delta:{stop_reason:Ye(c,s),stop_sequence:null},usage:{input_tokens:l,output_tokens:u,cache_creation_input_tokens:0,cache_read_input_tokens:d}},yield{type:`message_stop`},i=!0))}function Je(e){return typeof e.text==`string`?e.thought?`thinking`:`text`:null}function Ye(e,t){switch(e){case`MAX_TOKENS`:return`max_tokens`;default:return t?`tool_use`:`end_turn`}}var Xe=e((()=>{}));function k(e){if(!e||typeof e!=`object`)return null;let t=e,n=0;for(;t&&n<5;){if(t instanceof Error&&`code`in t&&typeof t.code==`string`){let e=t.code,n=nt.has(e);return{code:e,message:t.message,isSSLError:n}}if(t instanceof Error&&`cause`in t&&t.cause!==t)t=t.cause,n++;else break}return null}function Ze(e){let t=k(e);return t?.isSSLError?`SSL certificate error (${t.code}). If you are behind a corporate proxy or TLS-intercepting firewall, set NODE_EXTRA_CA_CERTS to your CA bundle path, or ask IT to allowlist *.anthropic.com. Run /doctor for details.`:null}function A(e){if(e.includes(`<!DOCTYPE html`)||e.includes(`<html`)){let t=e.match(/<title>([^<]+)<\/title>/);return t&&t[1]?t[1].trim():``}return e}function Qe(e){let t=e.message;return t?A(t):``}function $e(e){return typeof e==`object`&&!!e&&`error`in e&&typeof e.error==`object`&&e.error!==null}function et(e){if(!$e(e))return null;let t=e.error,n=t?.error?.message;if(typeof n==`string`&&n.length>0){let e=A(n);if(e.length>0)return e}let r=t?.message;if(typeof r==`string`&&r.length>0){let e=A(r);if(e.length>0)return e}return null}function tt(e){let t=k(e);if(t){let{code:e,isSSLError:n}=t;if(e===`ETIMEDOUT`)return`Request timed out. Check your internet connection and proxy settings`;if(n)switch(e){case`UNABLE_TO_VERIFY_LEAF_SIGNATURE`:case`UNABLE_TO_GET_ISSUER_CERT`:case`UNABLE_TO_GET_ISSUER_CERT_LOCALLY`:return`Unable to connect to API: SSL certificate verification failed. Check your proxy or corporate SSL certificates`;case`CERT_HAS_EXPIRED`:return`Unable to connect to API: SSL certificate has expired`;case`CERT_REVOKED`:return`Unable to connect to API: SSL certificate has been revoked`;case`DEPTH_ZERO_SELF_SIGNED_CERT`:case`SELF_SIGNED_CERT_IN_CHAIN`:return`Unable to connect to API: Self-signed certificate detected. Check your proxy or corporate SSL certificates`;case`ERR_TLS_CERT_ALTNAME_INVALID`:case`HOSTNAME_MISMATCH`:return`Unable to connect to API: SSL certificate hostname mismatch`;case`CERT_NOT_YET_VALID`:return`Unable to connect to API: SSL certificate is not yet valid`;default:return`Unable to connect to API: SSL error (${e})`}}if(e.message===`Connection error.`)return t?.code?`Unable to connect to API (${t.code})`:`Unable to connect to API. Check your internet connection`;if(!e.message)return et(e)??`API error (status ${e.status??`unknown`})`;let n=Qe(e);return n!==e.message&&n.length>0?n:e.message}var nt,rt=e((()=>{nt=new Set([`UNABLE_TO_VERIFY_LEAF_SIGNATURE`,`UNABLE_TO_GET_ISSUER_CERT`,`UNABLE_TO_GET_ISSUER_CERT_LOCALLY`,`CERT_SIGNATURE_FAILURE`,`CERT_NOT_YET_VALID`,`CERT_HAS_EXPIRED`,`CERT_REVOKED`,`CERT_REJECTED`,`CERT_UNTRUSTED`,`DEPTH_ZERO_SELF_SIGNED_CERT`,`SELF_SIGNED_CERT_IN_CHAIN`,`CERT_CHAIN_TOO_LONG`,`PATH_LENGTH_EXCEEDED`,`ERR_TLS_CERT_ALTNAME_INVALID`,`HOSTNAME_MISMATCH`,`ERR_TLS_HANDSHAKE_TIMEOUT`,`ERR_SSL_WRONG_VERSION_NUMBER`,`ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC`])}));function it(e,t,n){let r=[],i=at(t);i&&r.push({role:`system`,content:i});for(let t of e)switch(t.type){case`user`:r.push(...ot(t));break;case`assistant`:r.push(...ct(t));break;default:break}return r}function at(e){return!e||e.length===0?``:e.filter(Boolean).join(`
|
|
5
|
-
|
|
6
|
-
`)}function ot(e){let t=[],n=e.message.content;if(typeof n==`string`)t.push({role:`user`,content:n});else if(Array.isArray(n)){let e=[],r=[],i=[];for(let t of n)if(typeof t==`string`)e.push(t);else if(t.type===`text`)e.push(t.text);else if(t.type===`tool_result`)r.push(t);else if(t.type===`image`){let e=lt(t);e&&i.push(e)}for(let e of r)t.push(st(e));if(i.length>0){let n=[];e.length>0&&n.push({type:`text`,text:e.join(`
|
|
7
|
-
`)}),n.push(...i),t.push({role:`user`,content:n})}else e.length>0&&t.push({role:`user`,content:e.join(`
|
|
8
|
-
`)})}return t}function st(e){let t;return t=typeof e.content==`string`?e.content:Array.isArray(e.content)?e.content.map(e=>typeof e==`string`?e:`text`in e?e.text:``).filter(Boolean).join(`
|
|
9
|
-
`):``,{role:`tool`,tool_call_id:e.tool_use_id,content:t}}function ct(e){let t=e.message.content;if(typeof t==`string`)return[{role:`assistant`,content:t}];if(!Array.isArray(t))return[{role:`assistant`,content:``}];let n=[],r=[],i=[];for(let e of t)if(typeof e==`string`)n.push(e);else if(e.type===`text`)n.push(e.text);else if(e.type===`tool_use`){let t=e;r.push({id:t.id,type:`function`,function:{name:t.name,arguments:typeof t.input==`string`?t.input:JSON.stringify(t.input)}})}else if(e.type===`thinking`){let t=e.thinking;typeof t==`string`&&i.push(t)}return[{role:`assistant`,content:n.length>0?n.join(`
|
|
10
|
-
`):null,...r.length>0&&{tool_calls:r},...i.length>0&&{reasoning_content:i.join(`
|
|
11
|
-
`)}}]}function lt(e){let t=e.source;return t?t.type===`base64`&&typeof t.data==`string`?{type:`image_url`,image_url:{url:`data:${t.media_type||`image/png`};base64,${t.data}`}}:t.type===`url`&&typeof t.url==`string`?{type:`image_url`,image_url:{url:t.url}}:null:null}var ut=e((()=>{}));function dt(e){return e.filter(e=>{let t=e.type;return e.type===`custom`||!(`type`in e)||t!==`server`}).map(e=>{let t=e,n=t.name||``,r=t.description||``,i=t.input_schema;return{type:`function`,function:{name:n,description:r,parameters:j(i||{type:`object`,properties:{}})}}})}function j(e){if(!e||typeof e!=`object`)return e;let t={...e};`const`in t&&(t.enum=[t.const],delete t.const);for(let e of[`properties`,`definitions`,`$defs`,`patternProperties`]){let n=t[e];if(n&&typeof n==`object`){let r={};for(let[e,t]of Object.entries(n))r[e]=t&&typeof t==`object`?j(t):t;t[e]=r}}for(let e of[`items`,`additionalProperties`,`not`,`if`,`then`,`else`,`contains`,`propertyNames`]){let n=t[e];n&&typeof n==`object`&&!Array.isArray(n)&&(t[e]=j(n))}for(let e of[`anyOf`,`oneOf`,`allOf`]){let n=t[e];Array.isArray(n)&&(t[e]=n.map(e=>e&&typeof e==`object`?j(e):e))}return t}function ft(e){if(!e||typeof e!=`object`)return;let t=e;switch(t.type){case`auto`:return`auto`;case`any`:return`required`;case`tool`:return{type:`function`,function:{name:t.name}};default:return}}var pt=e((()=>{}));async function*mt(e,t){let n=`msg_${b().replace(/-/g,``).slice(0,24)}`,r=!1,i=-1,a=new Map,o=!1,s=!1,c=0,l=0,u=0,d=0,f=new Set,p=null,m=!1;for await(let h of e){let e=h.choices?.[0],g=e?.delta;if(h.usage){c=h.usage.prompt_tokens??c;let e=h.usage.prompt_tokens_details?.cached_tokens??d;l=Math.max(0,c-e),u=h.usage.completion_tokens??u,d=e}if(r||(r=!0,yield{type:`message_start`,message:{id:n,type:`message`,role:`assistant`,content:[],model:t,stop_reason:null,stop_sequence:null,usage:{input_tokens:l,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:d}}}),!g)continue;let _=g.reasoning_content;if(_!=null&&(o||(i++,o=!0,f.add(i),yield{type:`content_block_start`,index:i,content_block:{type:`thinking`,thinking:``,signature:``}}),_!==``&&(yield{type:`content_block_delta`,index:i,delta:{type:`thinking_delta`,thinking:_}})),g.content!=null&&g.content!==``&&(s||(o&&(yield{type:`content_block_stop`,index:i},f.delete(i),o=!1),i++,s=!0,f.add(i),yield{type:`content_block_start`,index:i,content_block:{type:`text`,text:``}}),yield{type:`content_block_delta`,index:i,delta:{type:`text_delta`,text:g.content}}),g.tool_calls)for(let e of g.tool_calls){let t=e.index;if(!a.has(t)){o&&(yield{type:`content_block_stop`,index:i},f.delete(i),o=!1),s&&(yield{type:`content_block_stop`,index:i},f.delete(i),s=!1),i++;let n=e.id||`toolu_${b().replace(/-/g,``).slice(0,24)}`,r=e.function?.name||``;a.set(t,{contentIndex:i,id:n,name:r,arguments:``}),f.add(i),yield{type:`content_block_start`,index:i,content_block:{type:`tool_use`,id:n,name:r,input:{}}}}let n=e.function?.arguments;n&&(a.get(t).arguments+=n,yield{type:`content_block_delta`,index:a.get(t).contentIndex,delta:{type:`input_json_delta`,partial_json:n}})}if(e?.finish_reason){o&&(yield{type:`content_block_stop`,index:i},f.delete(i),o=!1),s&&(yield{type:`content_block_stop`,index:i},f.delete(i),s=!1);for(let[,e]of a)f.has(e.contentIndex)&&(yield{type:`content_block_stop`,index:e.contentIndex},f.delete(e.contentIndex));p=e.finish_reason,m=a.size>0}}for(let e of f)yield{type:`content_block_stop`,index:e};p!==null&&(yield{type:`message_delta`,delta:{stop_reason:p===`length`?`max_tokens`:m?`tool_use`:ht(p),stop_sequence:null},usage:{input_tokens:l,output_tokens:u,cache_read_input_tokens:d,cache_creation_input_tokens:0}},yield{type:`message_stop`})}function ht(e){switch(e){case`stop`:return`end_turn`;case`tool_calls`:return`tool_use`;case`length`:return`max_tokens`;case`content_filter`:return`end_turn`;default:return`end_turn`}}var gt=e((()=>{})),_t=e((()=>{me(),ve(),Se(),Te(),Ie(),Ke(),Xe(),Ee(),rt(),ut(),pt(),gt()}));function M(e){a()&&(N.length>=bt&&N.shift(),N.push(e))}function vt(){return N.length===0?[]:N.splice(0).map(e=>({...e,uuid:b(),session_id:i()}))}function yt(e,t,n){M({type:`system`,subtype:`task_notification`,task_id:e,tool_use_id:n?.toolUseId,status:t,output_file:n?.outputFile??``,summary:n?.summary??``,usage:n?.usage})}var bt,N,xt=e((()=>{s(),bt=1e3,N=[]}));function St(){let e=c();if(e!==void 0)return e;let t=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!t){let e=d(process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??l,`session ingress token`);return o(e),e}let n=parseInt(t,10);if(Number.isNaN(n))return v(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${t}`,{level:`error`}),o(null),null;try{let e=_(),t=process.platform===`darwin`||process.platform===`freebsd`?`/dev/fd/${n}`:`/proc/self/fd/${n}`,r=e.readFileSync(t,{encoding:`utf8`}).trim();return r?(v(`Successfully read token from file descriptor ${n}`),o(r),u(l,r,`session ingress token`),r):(v(`File descriptor contained empty token`,{level:`error`}),o(null),null)}catch(e){v(`Failed to read token from file descriptor ${n}: ${te(e)}`,{level:`error`});let t=d(process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??l,`session ingress token`);return o(t),t}}function Ct(){return process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN||St()}function wt(){let e=Ct();if(!e)return{};if(e.startsWith(`sk-ant-sid`)){let t={Cookie:`sessionKey=${e}`},n=process.env.CLAUDE_CODE_ORGANIZATION_UUID;return n&&(t[`X-Organization-Uuid`]=n),t}return{Authorization:`Bearer ${e}`}}function Tt(e){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=e}var Et=e((()=>{s(),f(),ee(),m(),g()})),Dt=t({activateProactive:()=>Ot,deactivateProactive:()=>kt,getActivationSource:()=>Lt,getNextTickAt:()=>It,isContextBlocked:()=>Pt,isProactiveActive:()=>F,isProactivePaused:()=>At,pauseProactive:()=>jt,resumeProactive:()=>Mt,setContextBlocked:()=>Nt,setNextTickAt:()=>Ft,shouldTick:()=>zt,subscribeToProactiveChanges:()=>Rt});function P(){for(let e of V)try{e()}catch{}}function F(){return I}function Ot(e){I||(I=!0,L=!1,R=!1,B=e,P())}function kt(){I&&(I=!1,L=!1,R=!1,z=null,B=void 0,P())}function At(){return L}function jt(){!I||L||(L=!0,z=null,P())}function Mt(){!I||!L||(L=!1,P())}function Nt(e){R!==e&&(R=e,e&&(z=null),P())}function Pt(){return R}function Ft(e){z=e,P()}function It(){return!I||L||R?null:z}function Lt(){return B}function Rt(e){return V.add(e),()=>{V.delete(e)}}function zt(){return I&&!L&&!R}var I,L,R,z,B,V,Bt=e((()=>{I=!1,L=!1,R=!1,z=null,V=new Set}));function Vt(e){Qt=e}function Ht(e,t){if(U=e,!e||!t?.replayCurrent)return;let n=qt();Object.keys(n).length!==0&&e(n)}function Ut(e){$t=e}function Wt(e){return!e||e.enabled!==!0?null:{enabled:!0,phase:e.phase===`standby`||e.phase===`sleeping`?e.phase:null,next_tick_at:typeof e.next_tick_at==`number`?e.next_tick_at:null,sleep_until:typeof e.sleep_until==`number`?e.sleep_until:null}}function Gt(e){return JSON.stringify(e)}function Kt(e){let t={...K};for(let n of Object.keys(e)){let r=e[n];if(r===void 0){delete t[n];continue}t[n]=r}K=t}function qt(){let e={...K};return G?e.automation_state={...G}:`automation_state`in K&&(e.automation_state=K.automation_state??null),e}function Jt(){return en}function Yt(e,t){en=e,Qt?.(e,t),e===`requires_action`&&t?(W=!0,H({pending_action:t})):W&&(W=!1,H({pending_action:null})),e===`idle`&&H({task_summary:null}),e!==`idle`&&Xt(F()?{enabled:!0,phase:null,next_tick_at:null,sleep_until:null}:null),r(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS)&&M({type:`system`,subtype:`session_state_changed`,state:e})}function H(e){Kt(e),U?.(e)}function Xt(e){let t=Wt(e);Gt(t)!==Gt(G)&&(G=t,Kt({automation_state:t}),U?.({automation_state:t}))}function Zt(e){$t?.(e)}var Qt,U,$t,W,en,G,K,tn=e((()=>{Bt(),n(),xt(),Qt=null,U=null,$t=null,W=!1,en=`idle`,G=null,K={}}));function nn(){an(),Z=setInterval(()=>{y(`debug`,`session_keepalive_heartbeat`,{refcount:J}),r(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES)&&q?.()},fn)}function rn(){an(),q!==null&&(Q=setTimeout(()=>{y(`info`,`session_idle_30s`),Q=null},fn))}function an(){Q!==null&&(clearTimeout(Q),Q=null)}function on(e){q=e,J>0&&Z===null&&nn()}function sn(){q=null,Z!==null&&(clearInterval(Z),Z=null),an()}function cn(){r(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES)&&q?.()}function ln(){return q!==null}function un(e){J++,Y.set(e,(Y.get(e)??0)+1),J===1&&(X=Date.now(),q!==null&&Z===null&&nn()),pn||(pn=!0,p(async()=>{y(`info`,`session_activity_at_shutdown`,{refcount:J,active:Object.fromEntries(Y),oldest_activity_ms:J>0&&X!==null?Date.now()-X:null})}))}function dn(e){J>0&&J--;let t=(Y.get(e)??0)-1;t>0?Y.set(e,t):Y.delete(e),J===0&&Z!==null&&(clearInterval(Z),Z=null,rn())}var fn,q,J,Y,X,Z,Q,pn,mn=e((()=>{h(),ne(),n(),fn=3e4,q=null,J=0,Y=new Map,X=null,Z=null,Q=null,pn=!1}));function hn(){let e=re(se(),`.claude`);ae(e)||oe(e,{recursive:!0})}function gn(e){try{_n||(hn(),ie($,`\n===== RC-DEBUG session ${new Date().toISOString()} =====\n`),_n=!0),ie($,`[${new Date().toISOString().slice(11,23)}] ${e}\n`)}catch{}}var $,_n,vn=e((()=>{$=re(se(),`.claude`,`rc-debug.log`),_n=!1}));export{vt as A,tt as B,Dt as C,Ct as D,wt as E,mt as F,De as G,qe as H,ft as I,xe as J,C as K,dt as L,M,xt as N,Et as O,_t as P,it as R,At as S,zt as T,Ge as U,Ze as V,We as W,fe as X,ge as Y,le as Z,Ht as _,on as a,Pt as b,dn as c,tn as d,Xt as f,Ut as g,Yt as h,ln as i,yt as j,Tt as k,sn as l,H as m,gn as n,cn as o,Zt as p,we as q,mn as r,un as s,vn as t,Jt as u,Vt as v,Ft as w,F as x,Bt as y,k as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./axios-DhfaybwJ.js";import{H as i,M as a,Rn as o,nt as s,t as c}from"./src-Di342QoJ.js";import{Ac as l,Pc as u,Sc as d,Zt as f,dn as p,on as m,tn as h}from"./paths-DfGsIjPm.js";import{l as g,p as _}from"./debug-otxXY3j-.js";import{l as v,u as y}from"./oauth-CdZEzMww.js";import{d as b,f as x,o as S,s as C}from"./log-DS97_rIr.js";import{a as w,l as T,o as E}from"./api-BpQPVgif.js";import{t as D}from"./useKeybinding-FsOnjW6T.js";var O=e((()=>{c()}));function k(e,t,n,r=!0){let{exit:o}=i(),[s,c]=(0,A.useState)({pending:!1,keyName:null}),l=(0,A.useMemo)(()=>n??o,[n,o]),u=a(e=>c({pending:e,keyName:`Ctrl-C`}),l),d=a(e=>c({pending:e,keyName:`Ctrl-D`}),l),f=(0,A.useCallback)(()=>{t?.()||u()},[u,t]),p=(0,A.useCallback)(()=>{d()},[d]);return e((0,A.useMemo)(()=>({"app:interrupt":f,"app:exit":p}),[f,p]),{context:`Global`,isActive:r}),s}var A,j=e((()=>{A=t(o(),1),c(),O()}));function M(e,t,n){return k(s,t,e,n)}var N=e((()=>{D(),j()}));async function P(e=`claude_code_guest_pass`){let{accessToken:t,orgUUID:r}=await T(),i={...w(t),"x-organization-uuid":r},a=`${v().BASE_API_URL}/api/oauth/organizations/${r}/referral/eligibility`;return(await n.get(a,{headers:i,params:{campaign:e},timeout:5e3})).data}async function F(e=`claude_code_guest_pass`){let{accessToken:t,orgUUID:r}=await T(),i={...w(t),"x-organization-uuid":r},a=`${v().BASE_API_URL}/api/oauth/organizations/${r}/referral/redemptions`;return(await n.get(a,{headers:i,params:{campaign:e},timeout:1e4})).data}function I(){return!!(f()?.organizationUuid&&p()&&h()===`max`)}function L(){if(!I())return{eligible:!1,needsRefresh:!1,hasCache:!1};let e=f()?.organizationUuid;if(!e)return{eligible:!1,needsRefresh:!1,hasCache:!1};let t=d().passesEligibilityCache?.[e];if(!t)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:n,timestamp:r}=t;return{eligible:n,needsRefresh:Date.now()-r>W,hasCache:!0}}function R(e){let t=K[e.currency]??`${e.currency} `,n=e.amount_minor_units/100;return`${t}${n%1==0?n.toString():n.toFixed(2)}`}function z(){let e=f()?.organizationUuid;return e?d().passesEligibilityCache?.[e]?.referrer_reward??null:null}function B(){let e=f()?.organizationUuid;return e?d().passesEligibilityCache?.[e]?.remaining_passes??null:null}async function V(){if(G)return _(`Passes: Reusing in-flight eligibility fetch`),G;let e=f()?.organizationUuid;return e?(G=(async()=>{try{let t=await P(),n={...t,timestamp:Date.now()};return u(t=>({...t,passesEligibilityCache:{...t.passesEligibilityCache,[e]:n}})),_(`Passes eligibility cached for org ${e}: ${t.eligible}`),t}catch(e){return _(`Failed to fetch and cache passes eligibility`),C(e),null}finally{G=null}})(),G):null}async function H(){if(!I())return null;let e=f()?.organizationUuid;if(!e)return null;let t=d().passesEligibilityCache?.[e],n=Date.now();if(!t)return _(`Passes: No cache, fetching eligibility in background (command unavailable this session)`),V(),null;if(n-t.timestamp>W){_(`Passes: Cache stale, returning cached data and refreshing in background`),V();let{timestamp:e,...n}=t;return n}_(`Passes: Using fresh cached eligibility data`);let{timestamp:r,...i}=t;return i}async function U(){x()||H()}var W,G,K,q=e((()=>{r(),y(),m(),l(),g(),S(),b(),E(),W=1440*60*1e3,G=null,K={USD:`$`,EUR:`€`,GBP:`£`,BRL:`R$`,CAD:`CA$`,AUD:`A$`,NZD:`NZ$`,SGD:`S$`}}));export{z as a,U as c,O as d,H as i,N as l,F as n,B as o,R as r,q as s,L as t,M as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{cn as t,ot as n}from"./state-sIHsFpDu.js";import{U as r,l as i,p as a,z as o}from"./debug-otxXY3j-.js";import{o as s,s as c}from"./log-DS97_rIr.js";import{Bh as l,Gh as u,Hh as d,Oc as f,Wh as p,Yp as m,gc as h,hc as g,i as _,kc as v,nT as y,o as b,oy as x,qp as S,sy as C,tT as w,vs as T,ys as E}from"./loadAgentsDir-Br5fGLLI.js";async function D(e){a(`refreshActivePlugins: clearing all plugin caches`),g(),S();let t=await E(),[r,i]=await Promise.all([f(),_(n())]),{enabled:s,disabled:l,errors:p}=t,[m,h]=await Promise.all([Promise.all(s.map(async e=>{if(e.mcpServers)return Object.keys(e.mcpServers).length;let t=await y(e,p);return t&&(e.mcpServers=t),t?Object.keys(t).length:0})),Promise.all(s.map(async e=>{if(e.lspServers)return Object.keys(e.lspServers).length;let t=await u(e,p);return t&&(e.lspServers=t),t?Object.keys(t).length:0}))]),v=m.reduce((e,t)=>e+t,0),b=h.reduce((e,t)=>e+t,0);e(e=>({...e,plugins:{...e.plugins,enabled:s,disabled:l,commands:r,errors:O(e.plugins.errors,p),needsRefresh:!1},agentDefinitions:i,mcp:{...e.mcp,pluginReconnectKey:e.mcp.pluginReconnectKey+1}})),d();let x=!1;try{await C()}catch(e){x=!0,c(e),a(`refreshActivePlugins: loadPluginHooks failed: ${o(e)}`)}let w=s.reduce((e,t)=>t.hooksConfig?e+Object.values(t.hooksConfig).reduce((e,t)=>e+(t?.reduce((e,t)=>e+t.hooks.length,0)??0),0):e,0);return a(`refreshActivePlugins: ${s.length} enabled, ${r.length} commands, ${i.allAgents.length} agents, ${w} hooks, ${v} MCP, ${b} LSP`),{enabled_count:s.length,disabled_count:l.length,command_count:r.length,agent_count:i.allAgents.length,hook_count:w,mcp_count:v,lsp_count:b,error_count:p.length+ +!!x,agentDefinitions:i,pluginCommands:r}}function O(e,t){let n=e.filter(e=>e.source===`lsp-manager`||e.source.startsWith(`plugin:`)),r=new Set(t.map(k));return[...n.filter(e=>!r.has(k(e))),...t]}function k(e){return e.type===`generic-error`?`generic-error:${e.source}:${e.error}`:`${e.type}:${e.source}`}var A=e((()=>{t(),l(),b(),i(),r(),s(),h(),v(),x(),p(),w(),m(),T()}));export{D as n,A as t};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{n,s as r}from"./envUtils-BWeoiL4Y.js";import{Ka as i,S as a,_ as o,oo as s}from"./paths-DfGsIjPm.js";import{B as c,U as l,l as u,p as d}from"./debug-otxXY3j-.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{n as m,t as h}from"./which-BnEnzWhs.js";import{r as g,t as _}from"./execFileNoThrow-B_aZH_GP.js";import{a as v,r as y,t as b}from"./xdg-CBxMmQux.js";import{n as x,t as S}from"./sanitization-DD414_3t.js";import*as C from"os";import*as w from"path";import{promises as T}from"fs";function E(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<=31||n===127)return!0}return!1}function D(e){let t=e.startsWith(`claude-cli://`)?e:e.startsWith(`claude-cli:`)?e.replace(`${O}:`,`${O}://`):null;if(!t)throw Error(`Invalid deep link: expected ${O}:// scheme, got "${e}"`);let n;try{n=new URL(t)}catch{throw Error(`Invalid deep link URL: "${e}"`)}if(n.hostname!==`open`)throw Error(`Unknown deep link action: "${n.hostname}"`);let r=n.searchParams.get(`cwd`)??void 0,i=n.searchParams.get(`repo`)??void 0,a=n.searchParams.get(`q`);if(r&&!r.startsWith(`/`)&&!/^[a-zA-Z]:[/\\]/.test(r))throw Error(`Invalid cwd in deep link: must be an absolute path, got "${r}"`);if(r&&E(r))throw Error(`Deep link cwd contains disallowed control characters`);if(r&&r.length>j)throw Error(`Deep link cwd exceeds ${j} characters (got ${r.length})`);if(i&&!k.test(i))throw Error(`Invalid repo in deep link: expected "owner/repo", got "${i}"`);let o;if(a&&a.trim().length>0){if(o=x(a.trim()),E(o))throw Error(`Deep link query contains disallowed control characters`);if(o.length>A)throw Error(`Deep link query exceeds ${A} characters (got ${o.length})`)}return{query:o,cwd:r,repo:i}}var O,k,A,j,M=e((()=>{S(),O=`claude-cli`,k=/^[\w.-]+\/[\w.-]+$/,A=5e3,j=4096})),N=t({MACOS_BUNDLE_ID:()=>W,ensureDeepLinkProtocolRegistered:()=>U,isProtocolHandlerCurrent:()=>H,registerProtocolHandler:()=>B});function P(){return w.join(y(),`applications`,K)}function F(e){return`Exec="${e}" --handle-uri %u`}function I(e){return`"${e}" --handle-uri "%1"`}async function L(e){let t=w.join(q,`Contents`);try{await T.rm(q,{recursive:!0})}catch(e){if(c(e)!==`ENOENT`)throw e}await T.mkdir(w.dirname(J),{recursive:!0});let n=`<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleIdentifier</key>
|
|
6
|
-
<string>${W}</string>
|
|
7
|
-
<key>CFBundleName</key>
|
|
8
|
-
<string>${G}</string>
|
|
9
|
-
<key>CFBundleExecutable</key>
|
|
10
|
-
<string>claude</string>
|
|
11
|
-
<key>CFBundleVersion</key>
|
|
12
|
-
<string>1.0</string>
|
|
13
|
-
<key>CFBundlePackageType</key>
|
|
14
|
-
<string>APPL</string>
|
|
15
|
-
<key>LSBackgroundOnly</key>
|
|
16
|
-
<true/>
|
|
17
|
-
<key>CFBundleURLTypes</key>
|
|
18
|
-
<array>
|
|
19
|
-
<dict>
|
|
20
|
-
<key>CFBundleURLName</key>
|
|
21
|
-
<string>Claude Code Deep Link</string>
|
|
22
|
-
<key>CFBundleURLSchemes</key>
|
|
23
|
-
<array>
|
|
24
|
-
<string>${O}</string>
|
|
25
|
-
</array>
|
|
26
|
-
</dict>
|
|
27
|
-
</array>
|
|
28
|
-
</dict>
|
|
29
|
-
</plist>`;await T.writeFile(w.join(t,`Info.plist`),n),await T.symlink(e,J),await _(`/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister`,[`-R`,q],{useCwd:!1}),d(`Registered ${O}:// protocol handler at ${q}`)}async function R(e){await T.mkdir(w.dirname(P()),{recursive:!0});let t=`[Desktop Entry]
|
|
30
|
-
Name=${G}
|
|
31
|
-
Comment=Handle ${O}:// deep links for Claude Code
|
|
32
|
-
${F(e)}
|
|
33
|
-
Type=Application
|
|
34
|
-
NoDisplay=true
|
|
35
|
-
MimeType=x-scheme-handler/${O};
|
|
36
|
-
`;await T.writeFile(P(),t);let n=await m(`xdg-mime`);if(n){let{code:e}=await _(n,[`default`,K,`x-scheme-handler/${O}`],{useCwd:!1});if(e!==0)throw Object.assign(Error(`xdg-mime exited with code ${e}`),{code:`XDG_MIME_FAILED`})}d(`Registered ${O}:// protocol handler at ${P()}`)}async function z(e){for(let t of[[`add`,Y,`/ve`,`/d`,`URL:${G}`,`/f`],[`add`,Y,`/v`,`URL Protocol`,`/d`,``,`/f`],[`add`,X,`/ve`,`/d`,I(e),`/f`]]){let{code:e}=await _(`reg`,t,{useCwd:!1});if(e!==0)throw Object.assign(Error(`reg add exited with code ${e}`),{code:`REG_FAILED`})}d(`Registered ${O}:// protocol handler in Windows registry`)}async function B(e){let t=e??await V();switch(process.platform){case`darwin`:await L(t);break;case`linux`:await R(t);break;case`win32`:await z(t);break;default:throw Error(`Unsupported platform: ${process.platform}`)}}async function V(){let e=process.platform===`win32`?`claude.exe`:`claude`,t=w.join(b(),e);try{return await T.realpath(t),t}catch{return process.execPath}}async function H(e){try{switch(process.platform){case`darwin`:return await T.readlink(J)===e;case`linux`:return(await T.readFile(P(),`utf8`)).includes(F(e));case`win32`:{let{stdout:t,code:n}=await _(`reg`,[`query`,X,`/ve`],{useCwd:!1});return n===0&&t.includes(I(e))}default:return!1}}catch{return!1}}async function U(){if(i().disableDeepLinkRegistration===`disable`||!o(`tengu_lodestone_enabled`,!1))return;let e=await V();if(await H(e))return;let t=w.join(n(),`.deep-link-register-failed`);try{let e=await T.stat(t);if(Date.now()-e.mtimeMs<Z)return}catch{}try{await B(e),p(`tengu_deep_link_registered`,{success:!0}),d(`Auto-registered claude-cli:// deep link protocol handler`),await T.rm(t,{force:!0}).catch(()=>{})}catch(e){let n=c(e);p(`tengu_deep_link_registered`,{success:!1,error_code:n}),d(`Failed to auto-register deep link protocol handler: ${e instanceof Error?e.message:String(e)}`,{level:`warn`}),(n===`EACCES`||n===`ENOSPC`)&&await T.writeFile(t,``).catch(()=>{})}}var W,G,K,q,J,Y,X,Z,Q=e((()=>{M(),a(),f(),u(),r(),l(),g(),s(),h(),v(),W=`com.anthropic.claude-code-url-handler`,G=`Claude Code URL Handler`,K=`claude-code-url-handler.desktop`,q=w.join(C.homedir(),`Applications`,`Claude Code URL Handler.app`),J=w.join(q,`Contents`,`MacOS`,`claude`),Y=`HKEY_CURRENT_USER\\Software\\Classes\\${O}`,X=`${Y}\\shell\\open\\command`,Z=1440*60*1e3}));export{D as a,M as i,Q as n,N as r,W as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ad as e,Bd as t,Dd as n,Fd as r,Id as i,Ld as a,Md as o,Nd as s,Od as c,Pd as l,Rd as u,Vd as d,jd as f,kd as p,zd as m}from"./loadAgentsDir-Br5fGLLI.js";r();export{n as detectAndGetBackend,c as ensureBackendsRegistered,p as getBackendByType,e as getCachedBackend,f as getCachedDetectionResult,o as getInProcessBackend,s as getResolvedTeammateMode,l as getTeammateExecutor,i as isInProcessEnabled,a as markInProcessFallback,u as registerITermBackend,m as registerTmuxBackend,t as registerWindowsTerminalBackend,d as resetBackendDetection};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{a as t,c as n,i as r,o as i,t as a}from"./releaseNotes-CXY-xAja.js";function o(e){return e.map(([e,t])=>`${`Version ${e}:`}\n${t.map(e=>`· ${e}`).join(`
|
|
2
|
-
`)}`).join(`
|
|
3
|
-
|
|
4
|
-
`)}async function s(){let e=[];try{let n=new Promise((e,t)=>{setTimeout(e=>e(Error(`Timeout`)),500,t)});await Promise.race([r(),n]),e=t(await i())}catch{}if(e.length>0)return{type:`text`,value:o(e)};let n=t(await i());return n.length>0?{type:`text`,value:o(n)}:{type:`text`,value:`See the full changelog at: ${a}`}}e((()=>{n()}))();export{s as call};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{t as r}from"./semver-Cq33BYay.js";import{n as i,t as a}from"./axios-DhfaybwJ.js";import{U as o,cn as s}from"./state-sIHsFpDu.js";import{Ac as c,Pc as l,Sc as u}from"./paths-DfGsIjPm.js";import{J as d,U as f}from"./debug-otxXY3j-.js";import{d as p,f as m,o as h,s as g}from"./log-DS97_rIr.js";import{r as _,t as v}from"./semver-Tw0AFar5.js";import{dirname as y,join as b}from"path";import{mkdir as x,readFile as S,writeFile as C}from"fs/promises";function w(){return b(t(),`cache`,`changelog.md`)}async function T(){let e=u();if(!e.cachedChangelog)return;let t=w();try{await x(y(t),{recursive:!0}),await C(t,e.cachedChangelog,{encoding:`utf-8`,flag:`wx`})}catch{}l(({cachedChangelog:e,...t})=>t)}async function E(){if(o()||m())return;let e=await i.get(L);if(e.status===200){let t=e.data;if(t===R)return;let n=w();await x(y(n),{recursive:!0}),await C(n,t,{encoding:`utf-8`}),R=t;let r=Date.now();l(e=>({...e,changelogLastFetched:r}))}}async function D(){if(R!==null)return R;let e=w();try{let t=await S(e,`utf-8`);return R=t,t}catch{return R=``,``}}function O(){return R??``}function k(e){try{if(!e)return{};let t={},n=e.split(/^## /gm).slice(1);for(let e of n){let n=e.trim().split(`
|
|
2
|
-
`);if(n.length===0)continue;let r=n[0];if(!r)continue;let i=r.split(` - `)[0]?.trim()||``;if(!i)continue;let a=n.slice(1).filter(e=>e.trim().startsWith(`- `)).map(e=>e.trim().substring(2).trim()).filter(Boolean);a.length>0&&(t[i]=a)}return t}catch(e){return g(d(e)),{}}}function A(e,t,n=O()){try{let r=k(n),i=(0,P.coerce)(e),a=t?(0,P.coerce)(t):null;if(!a||i&&v(i.version,a.version))return Object.entries(r).filter(([e])=>!a||v(e,a.version)).sort(([e],[t])=>v(e,t)?-1:1).flatMap(([e,t])=>t).filter(Boolean).slice(0,F)}catch(e){return g(d(e)),[]}return[]}function j(e=O()){try{let t=k(e);return Object.keys(t).sort((e,t)=>v(e,t)?1:-1).map(e=>{let n=t[e];if(!n||n.length===0)return null;let r=n.filter(Boolean);return r.length===0?null:[e,r]}).filter(e=>e!==null)}catch(e){return g(d(e)),[]}}async function M(e,t=`2.7.0`){if(process.env.USER_TYPE===`ant`)return{hasReleaseNotes:!1,releaseNotes:[]};let n=await D();(e!==t||!n)&&E().catch(e=>g(d(e)));let r=A(t,e,n);return{hasReleaseNotes:r.length>0,releaseNotes:r}}function N(e,t=`2.7.0`){if(process.env.USER_TYPE===`ant`)return{hasReleaseNotes:!1,releaseNotes:[]};let n=A(t,e);return{hasReleaseNotes:n.length>0,releaseNotes:n}}var P,F,I,L,R,z=e((()=>{a(),P=r(),s(),c(),n(),f(),h(),p(),_(),F=5,I=`https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md`,L=`https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md`,R=null}));export{j as a,z as c,E as i,T as l,M as n,D as o,N as r,O as s,I as t,k as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t}from"./envUtils-BWeoiL4Y.js";import{cn as n}from"./state-sIHsFpDu.js";import{Po as r,jo as i}from"./paths-DfGsIjPm.js";import{WA as a}from"./loadAgentsDir-Br5fGLLI.js";import{t as o}from"./settingsSync-pI3L3CeR.js";import{n as s,t as c}from"./refresh-C8uLznwm.js";function l(e,t){return`${e} ${r(e,t)}`}var u;e((()=>{n(),o(),t(),c(),a(),i(),u=async(e,t)=>{let n=await s(t.setAppState),r=`Reloaded: ${[l(n.enabled_count,`plugin`),l(n.command_count,`skill`),l(n.agent_count,`agent`),l(n.hook_count,`hook`),l(n.mcp_count,`plugin MCP server`),l(n.lsp_count,`plugin LSP server`)].join(` · `)}`;return n.error_count>0&&(r+=`\n${l(n.error_count,`error`)} during load. Run /doctor for details.`),{type:`text`,value:r}}}))();export{u as call};
|
|
@@ -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{In as i,Ln as a,Rn as o,b as s,f as c,g as l,h as u,l as d,t as f,tt as p}from"./src-Di342QoJ.js";import{t as m}from"./jsx-runtime-D-D469L8.js";import{Qa as h,Ys as g,ec as _,lo as v,nc as y,no as b,oo as x}from"./paths-DfGsIjPm.js";import{J as S,U as C}from"./debug-otxXY3j-.js";import{o as w,s as T}from"./log-DS97_rIr.js";import{DC as E,EC as D,ME as O,aS as k,jE as A,oS as j}from"./loadAgentsDir-Br5fGLLI.js";import{t as M}from"./useKeybinding-FsOnjW6T.js";async function N(){let e=await A();if(e.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let t=b()?.remote?.defaultEnvironmentId,n=e.find(e=>e.kind!==`bridge`)??e[0],r=null;if(t){let i=e.find(e=>e.environment_id===t);if(i){n=i;for(let e=g.length-1;e>=0;e--){let n=g[e];if(!(!n||n===`flagSettings`)&&h(n)?.remote?.defaultEnvironmentId===t){r=n;break}}}}return{availableEnvironments:e,selectedEnvironment:n,selectedEnvironmentSource:r}}var P=e((()=>{y(),x(),O()}));function F({onDone:e}){let[t,n]=(0,z.useState)(`loading`),[r,a]=(0,z.useState)([]),[o,l]=(0,z.useState)(null),[u,f]=(0,z.useState)(null),[p,m]=(0,z.useState)(null);(0,z.useEffect)(()=>{let e=!1;async function t(){try{let t=await N();if(e)return;a(t.availableEnvironments),l(t.selectedEnvironment),f(t.selectedEnvironmentSource),n(null)}catch(t){if(e)return;let r=S(t);T(r),m(r.message),n(null)}}return t(),()=>{e=!0}},[]);function h(t){if(t===`cancel`){e();return}n(`updating`);let a=r.find(e=>e.environment_id===t);if(!a){e(`Error: Selected environment not found`);return}v(`localSettings`,{remote:{defaultEnvironmentId:a.environment_id}}),e(`Set default remote environment to ${i.bold(a.name)} (${a.environment_id})`)}return t===`loading`?(0,B.jsx)(c,{title:V,onCancel:e,hideInputGuide:!0,children:(0,B.jsx)(d,{message:`Loading environments…`})}):p?(0,B.jsx)(c,{title:V,onCancel:e,children:(0,B.jsxs)(s,{color:`error`,children:[`Error: `,p]})}):o?r.length===1?(0,B.jsx)(L,{environment:o,onDone:e}):(0,B.jsx)(R,{environments:r,selectedEnvironment:o,selectedEnvironmentSource:u,loadingState:t,onSelect:h,onCancel:e}):(0,B.jsx)(c,{title:V,subtitle:H,onCancel:e,children:(0,B.jsx)(s,{children:`No remote environments available.`})})}function I({environment:e}){return(0,B.jsxs)(s,{children:[r.tick,` Using `,(0,B.jsx)(s,{bold:!0,children:e.name}),` `,(0,B.jsxs)(s,{dimColor:!0,children:[`(`,e.environment_id,`)`]})]})}function L({environment:e,onDone:t}){return p(`confirm:yes`,t,{context:`Confirmation`}),(0,B.jsx)(c,{title:V,subtitle:H,onCancel:t,children:(0,B.jsx)(I,{environment:e})})}function R({environments:e,selectedEnvironment:t,selectedEnvironmentSource:n,loadingState:r,onSelect:i,onCancel:a}){let o=n&&n!==`localSettings`?` (from ${_(n)} settings)`:``;return(0,B.jsxs)(c,{title:V,subtitle:(0,B.jsxs)(s,{children:[`Currently using: `,(0,B.jsx)(s,{bold:!0,children:t.name}),o]}),onCancel:a,hideInputGuide:!0,children:[(0,B.jsx)(s,{dimColor:!0,children:H}),r===`updating`?(0,B.jsx)(d,{message:`Updating…`}):(0,B.jsx)(k,{options:e.map(e=>({label:(0,B.jsxs)(s,{children:[e.name,` `,(0,B.jsxs)(s,{dimColor:!0,children:[`(`,e.environment_id,`)`]})]}),value:e.environment_id})),defaultValue:t.environment_id,onChange:i,onCancel:()=>i(`cancel`),layout:`compact-vertical`}),(0,B.jsx)(s,{dimColor:!0,children:(0,B.jsxs)(u,{children:[(0,B.jsx)(l,{shortcut:`Enter`,action:`select`}),(0,B.jsx)(D,{action:`confirm:no`,context:`Confirmation`,fallback:`Esc`,description:`cancel`})]})})]})}var z,B,V,H,U=e((()=>{a(),n(),o(),z=t(o(),1),f(),M(),C(),w(),y(),x(),P(),E(),j(),B=m(),V=`Select Remote Environment`,H=`Configure environments at: https://claude.ai/code`}));async function W(e){return(0,G.jsx)(F,{onDone:e})}var G;e((()=>{o(),U(),G=m()}))();export{W as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as e,s as t}from"./envUtils-BWeoiL4Y.js";import{n,t as r}from"./axios-DhfaybwJ.js";import{E as i,O as a,Q as o,U as s,Z as c,l,p as u,z as d}from"./debug-otxXY3j-.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{F as m,P as h}from"./git-DayFjsvj.js";import{n as g,t as _}from"./sleep-8Eb9j_Ly.js";import{_ as ee,d as v}from"./rcDebugLog-BoroyfjB.js";import{c as y,d as b,i as x,o as S,s as C}from"./debugUtils-CiEnbhiz.js";import{a as w,i as T}from"./trustedDevice-DY8OosTr.js";import{a as E,r as D}from"./bridgeConfig-CcCNsSBX.js";import{t as te}from"./jwtUtils-DVyv2jab.js";import{t as O}from"./workSecret-qRMNrQy2.js";import{i as k,r as ne}from"./envLessBridgeConfig-DI0ouryy.js";import{a as A,c as j,i as re,n as ie,o as M,r as ae,s as oe,t as N}from"./bridgeMessaging-IlSWKGmC.js";import{r as P,t as se}from"./flushGate-Ci3NHOV4.js";t(),f(),c(),h(),_(),y(),w(),v(),k(),r(),l(),s(),i(),S();var F=`2023-06-01`;function I(e){return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,"anthropic-version":F}}async function ce(e,t,r,i,o){let s=`${e}/v1/code/sessions`,c;try{c=await n.post(s,{title:r,bridge:{},...o?.length?{tags:o}:{}},{headers:I(t),timeout:i,validateStatus:e=>e<500})}catch(e){return u(`[code-session] Session create request failed: ${d(e)}`),null}if(c.status!==200&&c.status!==201){let e=x(c.data);return u(`[code-session] Session create failed ${c.status}${e?`: ${e}`:``}`),null}let l=c.data;return!l||typeof l!=`object`||!(`session`in l)||!l.session||typeof l.session!=`object`||!(`id`in l.session)||typeof l.session.id!=`string`||!l.session.id.startsWith(`cse_`)?(u(`[code-session] No session.id (cse_*) in response: ${a(l).slice(0,200)}`),null):l.session.id}async function L(e,t,r,i,o){let s=`${t}/v1/code/sessions/${e}/bridge`,c=I(r);o&&(c[`X-Trusted-Device-Token`]=o);let l;try{l=await n.post(s,{},{headers:c,timeout:i,validateStatus:e=>e<500})}catch(e){return u(`[code-session] /bridge request failed: ${d(e)}`),null}if(l.status!==200){let e=x(l.data);return u(`[code-session] /bridge failed ${l.status}${e?`: ${e}`:``}`),null}let f=l.data;if(typeof f!=`object`||!f||!(`worker_jwt`in f)||typeof f.worker_jwt!=`string`||!(`expires_in`in f)||typeof f.expires_in!=`number`||!(`api_base_url`in f)||typeof f.api_base_url!=`string`||!(`worker_epoch`in f))return u(`[code-session] /bridge response malformed (need worker_jwt, expires_in, api_base_url, worker_epoch): ${a(f).slice(0,200)}`),null;let p=f.worker_epoch,m=typeof p==`string`?Number(p):p;return typeof m!=`number`||!Number.isFinite(m)||!Number.isSafeInteger(m)?(u(`[code-session] /bridge worker_epoch invalid: ${a(p)}`),null):{worker_jwt:f.worker_jwt,api_base_url:f.api_base_url,expires_in:f.expires_in,worker_epoch:m}}r(),S(),l(),s(),E();var R=`2023-06-01`;function z(e){return{Authorization:`Bearer ${e}`,"Content-Type":`application/json`,"anthropic-version":R}}async function B(t){let{baseUrl:n,orgUUID:r,title:i,getAccessToken:a,onAuth401:s,toSDKMessages:c,initialHistoryCap:l,initialMessages:f,onInboundMessage:h,onUserMessage:g,onPermissionResponse:_,onInterrupt:v,onSetModel:y,onSetMaxThinkingTokens:b,onSetPermissionMode:x,onStateChange:S,outboundOnly:w,tags:T}=t,E=await ne(),D=a();if(!D)return u(`[remote-bridge] No OAuth token`),null;let k=await V(()=>ce(n,D,i,E.http_timeout_ms,T),`createCodeSession`,E);if(!k)return S?.(`failed`,`Session creation failed — see debug log`),C(`v2_session_create_failed`,void 0,!0),null;let F=k;u(`[remote-bridge] Created session ${F}`),m(`info`,`bridge_repl_v2_session_created`);let I=await V(()=>H(F,n,D,E.http_timeout_ms),`fetchRemoteCredentials`,E);if(!I)return S?.(`failed`,`Remote credentials fetch failed — see debug log`),C(`v2_remote_creds_failed`,void 0,!0),U(F,n,D,r,E.http_timeout_ms),null;u(`[remote-bridge] Fetched bridge credentials (expires_in=${I.expires_in}s)`);let L=O(I.api_base_url,F);u(`[remote-bridge] v2 session URL: ${L}`);let R;try{R=await P({sessionUrl:L,ingressToken:I.worker_jwt,sessionId:F,epoch:I.worker_epoch,heartbeatIntervalMs:E.heartbeat_interval_ms,heartbeatJitterFraction:E.heartbeat_jitter_fraction,getAuthToken:()=>I.worker_jwt,outboundOnly:w})}catch(e){return u(`[remote-bridge] v2 transport setup failed: ${d(e)}`,{level:`error`}),S?.(`failed`,`Transport setup failed: ${d(e)}`),C(`v2_transport_setup_failed`,void 0,!0),U(F,n,D,r,E.http_timeout_ms),null}u(`[remote-bridge] v2 transport created (epoch=${I.worker_epoch})`),S?.(`ready`);let z=new N(E.uuid_dedup_buffer_size),B=new Set;if(f)for(let e of f)B.add(e.uuid),z.add(e.uuid);let le=new N(E.uuid_dedup_buffer_size),W=new se,G=!1,K=!1,q=!1,J=!g,Y=`initial`,X;function Z(e){K||p(`tengu_bridge_repl_connect_timeout`,{v2:!0,elapsed_ms:E.connect_timeout_ms,cause:e})}ee(e=>{K||R.reportMetadata(e)},{replayCurrent:!0});let Q=te({refreshBufferMs:E.token_refresh_buffer_ms,getAccessToken:async()=>{let e=a();return s&&await s(e??``),a()??e},onRefresh:(e,t)=>{(async()=>{if(q||K){u(`[remote-bridge] Recovery already in flight, skipping proactive refresh`);return}q=!0;try{let r=await V(()=>H(e,n,t,E.http_timeout_ms),`fetchRemoteCredentials (proactive)`,E);if(!r||K)return;await ue(r,`proactive_refresh`),u(`[remote-bridge] Transport rebuilt (proactive refresh)`)}catch(e){u(`[remote-bridge] Proactive refresh rebuild failed: ${d(e)}`,{level:`error`}),m(`error`,`bridge_repl_v2_proactive_refresh_failed`),K||S?.(`failed`,`Refresh failed: ${d(e)}`)}finally{q=!1}})()},label:`remote`});Q.scheduleFromExpiresIn(F,I.expires_in);function $(){R.setOnConnect(()=>{if(clearTimeout(X),u(`[remote-bridge] v2 transport connected`),m(`info`,`bridge_repl_v2_transport_connected`),p(`tengu_bridge_repl_ws_connected`,{v2:!0,cause:Y}),!G&&f&&f.length>0){G=!0;let e=R;pe(f).catch(e=>u(`[remote-bridge] flushHistory failed: ${e}`)).finally(()=>{R!==e||K||q||(fe(),S?.(`connected`))})}else W.active||S?.(`connected`)}),R.setOnData(e=>{ae(e,z,le,h,_?e=>{R.reportState(`running`),_(e)}:void 0,e=>re(e,{transport:R,sessionId:F,onInterrupt:v,onSetModel:y,onSetMaxThinkingTokens:b,onSetPermissionMode:x,outboundOnly:w}))}),R.setOnClose(e=>{if(clearTimeout(X),!K){if(u(`[remote-bridge] v2 transport closed (code=${e})`),p(`tengu_bridge_repl_ws_closed`,{code:e,v2:!0}),e===401&&!q){de();return}S?.(`failed`,`Transport closed (code ${e})`)}})}async function ue(e,t){Y=t,W.start();try{let t=R.getLastSequenceNum();if(R.close(),R=await P({sessionUrl:O(e.api_base_url,F),ingressToken:e.worker_jwt,sessionId:F,epoch:e.worker_epoch,heartbeatIntervalMs:E.heartbeat_interval_ms,heartbeatJitterFraction:E.heartbeat_jitter_fraction,initialSequenceNum:t,getAuthToken:()=>e.worker_jwt,outboundOnly:w}),K){R.close();return}$(),R.connect(),X=setTimeout(Z,E.connect_timeout_ms,Y),Q.scheduleFromExpiresIn(F,e.expires_in),fe()}finally{W.drop()}}async function de(){if(!q){q=!0,S?.(`reconnecting`,`JWT expired — refreshing`),u(`[remote-bridge] 401 on SSE — attempting JWT refresh`);try{let e=a();s&&await s(e??``);let t=a()??e;if(!t||K){K||S?.(`failed`,`JWT refresh failed: no OAuth token`);return}let r=await V(()=>H(F,n,t,E.http_timeout_ms),`fetchRemoteCredentials (recovery)`,E);if(!r||K){K||S?.(`failed`,`JWT refresh failed after 401`);return}G=!1,await ue(r,`auth_401_recovery`),u(`[remote-bridge] Transport rebuilt after 401`)}catch(e){u(`[remote-bridge] 401 recovery failed: ${d(e)}`,{level:`error`}),m(`error`,`bridge_repl_v2_jwt_refresh_failed`),K||S?.(`failed`,`JWT refresh failed: ${d(e)}`)}finally{q=!1}}}$(),f&&f.length>0&&W.start(),R.connect(),X=setTimeout(Z,E.connect_timeout_ms,Y);function fe(){let e=W.end();if(e.length===0)return;for(let t of e)z.add(t.uuid);let t=c(e).map(e=>({...e,session_id:F}));j(e)&&R.reportState(`running`),u(`[remote-bridge] Drained ${e.length} queued message(s) after flush`),R.writeBatch(t)}async function pe(e){let t=e.filter(A),n=l>0&&t.length>l?t.slice(-l):t;n.length<t.length&&u(`[remote-bridge] Capped initial flush: ${t.length} -> ${n.length} (cap=${l})`);let r=c(n).map(e=>({...e,session_id:F}));if(r.length===0)return;let i=t.at(-1);i&&oe(i)&&R.reportState(`running`),u(`[remote-bridge] Flushing ${r.length} history events`),await R.writeBatch(r)}async function me(){if(K)return;K=!0,Q.cancelAll(),clearTimeout(X),W.drop(),R.reportState(`idle`);let e={...M(F),session_id:F};R.write(e);let t=a(),i=await U(F,n,t,r,E.teardown_archive_timeout_ms);if(i===401&&s)try{await s(t??``),t=a(),i=await U(F,n,t,r,E.teardown_archive_timeout_ms)}catch(e){u(`[remote-bridge] Teardown 401 retry threw: ${d(e)}`,{level:`error`})}R.close();let o=i===`no_token`?`skipped_no_token`:i===`timeout`||i===`error`?`network_error`:i>=500?`server_5xx`:i>=400?`server_4xx`:`ok`;u(`[remote-bridge] Torn down (archive=${i})`),m(`info`,`bridge_repl_v2_teardown`),p(`tengu_bridge_repl_teardown`,{v2:!0,archive_status:o,archive_ok:typeof i==`number`&&i<400,archive_http_status:typeof i==`number`?i:void 0,archive_timeout:i===`timeout`,archive_no_token:i===`no_token`})}let he=o(me);return p(`tengu_bridge_repl_started`,{has_initial_messages:!!(f&&f.length>0),v2:!0,expires_in_s:I.expires_in,inProtectedNamespace:e()}),{bridgeSessionId:F,environmentId:``,sessionIngressUrl:I.api_base_url,writeMessages(e){let t=e.filter(e=>A(e)&&!B.has(e.uuid)&&!z.has(e.uuid));if(t.length===0)return;if(!J)for(let e of t){let t=ie(e);if(t!==void 0&&g?.(t,F)){J=!0;break}}if(W.enqueue(...t)){u(`[remote-bridge] Queued ${t.length} message(s) during flush`);return}for(let e of t)z.add(e.uuid);let n=c(t).map(e=>({...e,session_id:F}));j(t)&&R.reportState(`running`),u(`[remote-bridge] Sending ${t.length} message(s)`),R.writeBatch(n)},writeSdkMessages(e){let t=e.filter(e=>!e.uuid||!z.has(e.uuid));if(t.length===0)return;for(let e of t)e.uuid&&z.add(e.uuid);let n=t.map(e=>({...e,session_id:F}));R.writeBatch(n)},sendControlRequest(e){if(q){u(`[remote-bridge] Dropping control_request during 401 recovery: ${e.request_id}`);return}let t={...e,session_id:F};e.request?.subtype===`can_use_tool`&&R.reportState(`requires_action`),R.write(t),u(`[remote-bridge] Sent control_request request_id=${e.request_id}`)},sendControlResponse(e){if(q){u(`[remote-bridge] Dropping control_response during 401 recovery`);return}let t={...e,session_id:F};R.reportState(`running`),R.write(t),u(`[remote-bridge] Sent control_response`)},sendControlCancelRequest(e){if(q){u(`[remote-bridge] Dropping control_cancel_request during 401 recovery: ${e}`);return}let t={type:`control_cancel_request`,request_id:e,session_id:F};R.reportState(`running`),R.write(t),u(`[remote-bridge] Sent control_cancel_request request_id=${e}`)},sendResult(){if(q){u(`[remote-bridge] Dropping result during 401 recovery`);return}R.reportState(`idle`);let e={...M(F),session_id:F};R.write(e),u(`[remote-bridge] Sent result`)},async teardown(){he(),await me()}}}async function V(e,t,n){let r=n.init_retry_max_attempts;for(let i=1;i<=r;i++){let a=await e();if(a!==null)return a;if(i<r){let e=n.init_retry_base_delay_ms*2**(i-1),a=e*n.init_retry_jitter_fraction*(2*Math.random()-1),o=Math.min(e+a,n.init_retry_max_delay_ms);u(`[remote-bridge] ${t} failed (attempt ${i}/${r}), retrying in ${Math.round(o)}ms`),await g(o)}}return null}async function H(e,t,n,r){let i=await L(e,t,n,r,T());return i?D()?{...i,api_base_url:t}:i:null}async function U(e,t,r,i,a){if(!r)return`no_token`;let o=b(e);try{let e=await n.post(`${t}/v1/sessions/${o}/archive`,{},{headers:{...z(r),"anthropic-beta":`ccr-byoc-2025-07-29`,"x-organization-uuid":i},timeout:a,validateStatus:()=>!0});return u(`[remote-bridge] Archive ${o} status=${e.status}`),e.status}catch(e){return u(`[remote-bridge] Archive failed: ${d(e)}`),n.isAxiosError(e)&&e.code===`ECONNABORTED`?`timeout`:`error`}}export{B as initEnvLessBridgeCore};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Rn as n,b as r,d as i,f as a,nt as o,t as s,x as c}from"./src-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{U as u,z as d}from"./debug-otxXY3j-.js";import{sS as f,uS as p}from"./loadAgentsDir-Br5fGLLI.js";import{t as m}from"./useKeybinding-FsOnjW6T.js";import{a as h,t as g}from"./bridgeConfig-CcCNsSBX.js";import{n as _,r as v}from"./bridgeEnabled-DoT2l1Oj.js";import{a as y,n as b}from"./types-RJTEOuIt.js";import{t as x}from"./Dialog-DYFGqyDs.js";import{t as S}from"./ListItem-OFARanN7.js";import{i as C,o as w,t as T}from"./cliLaunch-8aeIk2ts.js";import{resolve as E}from"path";function D({onDone:e}){let[t,n]=(0,N.useState)(I),[r,i]=(0,N.useState)(null);return(0,N.useEffect)(()=>{if(F&&!F.killed){n(`running`);return}let t=!1;return(async()=>{let r=await k();if(!t){if(r){e(r,{display:`system`});return}n(`starting`);try{A(),t||(n(`running`),I=`running`,e(`Remote Control Server started. Use /remote-control-server to manage.`,{display:`system`}))}catch(r){if(!t){let t=d(r);n(`error`),i(t),I=`error`,e(`Remote Control Server failed to start: ${t}`,{display:`system`})}}}})(),()=>{t=!0}},[]),t===`running`&&F&&!F.killed?(0,P.jsx)(O,{onDone:e}):null}function O({onDone:e}){p(`remote-control-server-dialog`);let[t,n]=(0,N.useState)(2),s=L.slice(-5);function l(){j(),e(`Remote Control Server stopped.`,{display:`system`})}function u(){j();try{A(),e(`Remote Control Server restarted.`,{display:`system`})}catch(t){e(`Failed to restart: ${d(t)}`,{display:`system`})}}function f(){e(void 0,{display:`skip`})}return o({"select:next":()=>n(e=>(e+1)%3),"select:previous":()=>n(e=>(e-1+3)%3),"select:accept":()=>{t===0?l():t===1?u():f()}},{context:`Select`}),(0,P.jsx)(a,{title:`Remote Control Server`,onCancel:f,hideInputGuide:!0,children:(0,P.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,P.jsxs)(r,{children:[`Remote Control Server is`,` `,(0,P.jsx)(r,{bold:!0,color:`success`,children:`running`}),F?` (PID: ${F.pid})`:``]}),s.length>0&&(0,P.jsxs)(c,{flexDirection:`column`,children:[(0,P.jsx)(r,{dimColor:!0,children:`Recent logs:`}),s.map((e,t)=>(0,P.jsx)(r,{dimColor:!0,children:e},t))]}),(0,P.jsxs)(c,{flexDirection:`column`,children:[(0,P.jsx)(i,{isFocused:t===0,children:(0,P.jsx)(r,{children:`Stop server`})}),(0,P.jsx)(i,{isFocused:t===1,children:(0,P.jsx)(r,{children:`Restart server`})}),(0,P.jsx)(i,{isFocused:t===2,children:(0,P.jsx)(r,{children:`Continue`})})]}),(0,P.jsx)(r,{dimColor:!0,children:`Enter to select · Esc to continue`})]})})}async function k(){return await _()||(g()?null:b)}function A(){let e=E(`.`),t=w(T([`daemon`,`start`,`--dir=${e}`]),{cwd:e,stdio:[`ignore`,`pipe`,`pipe`],detached:!1});F=t,L=[],t.stdout?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
|
|
2
|
-
`);for(let e of t)L.push(e),L.length>R&&L.shift()}),t.stderr?.on(`data`,e=>{let t=e.toString().trimEnd().split(`
|
|
3
|
-
`);for(let e of t)L.push(`[err] ${e}`),L.length>R&&L.shift()}),t.on(`exit`,(e,t)=>{F=null,I=`stopped`,L.push(`[daemon] exited (code=${e??`unknown`}, signal=${t})`)}),t.on(`error`,e=>{F=null,I=`error`,L.push(`[daemon] error: ${e.message}`)})}function j(){if(F&&!F.killed){F.kill(`SIGTERM`);let e=F.pid;setTimeout(()=>{try{e&&process.kill(e,0),F&&!F.killed&&F.kill(`SIGKILL`)}catch{}},1e4)}F=null,I=`stopped`}async function M(e,t,n){return(0,P.jsx)(D,{onDone:e})}var N,P,F,I,L,R;e((()=>{n(),N=t(n(),1),v(),h(),y(),x(),S(),f(),s(),m(),C(),u(),P=l(),F=null,I=`stopped`,L=[],R=50}))();export{M as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{n as e}from"./chunk-DR8-3Aex.js";import{Ct as t,cn as n}from"./state-sIHsFpDu.js";import{f as r,l as i}from"./teammate-DMYOtLTK.js";import{Ar as a,Fr as o,Po as s,Si as c,Uo as l,yi as u}from"./loadAgentsDir-Br5fGLLI.js";import{a as d,i as f,r as p}from"./bridgeConfig-CcCNsSBX.js";import{n as m,t as h}from"./generateSessionName-BtQ4NGXP.js";async function g(e,n,i){if(r())return e(`Cannot rename: This session is a swarm teammate. Teammate names are set by the team leader.`,{display:`system`}),null;let o;if(!i||i.trim()===``){let t=await h(s(n.messages),n.abortController.signal);if(!t)return e(`Could not generate a name: no conversation context yet. Usage: /rename <name>`,{display:`system`}),null;o=t}else o=i.trim();let l=t(),d=a();await c(l,o,d);let m=n.getAppState().replBridgeSessionId;if(m){let e=f();import(`./createSession-DoR2K7ay.js`).then(({updateBridgeSessionTitle:t})=>t(m,o,{baseUrl:p(),getAccessToken:e?()=>e:void 0}).catch(()=>{}))}return await u(l,o,d),n.setAppState(e=>({...e,standaloneAgentContext:{...e.standaloneAgentContext,name:o}})),e(`Session renamed to: ${o}`,{display:`system`}),null}e((()=>{n(),d(),l(),o(),i(),m()}))();export{g as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as e,u as t}from"./envUtils-BWeoiL4Y.js";import{o as n,s as r}from"./log-DS97_rIr.js";import{ReadStream as i}from"tty";import{openSync as a}from"fs";e(),n();var o=null;function s(){if(o!==null)return o;if(process.stdin.isTTY){o=void 0;return}if(t(process.env.CI)){o=void 0;return}if(process.argv.includes(`mcp`)){o=void 0;return}if(process.platform===`win32`){o=void 0;return}try{let e=new i(a(`/dev/tty`,`r`));return e.isTTY=!0,o=e,o}catch(e){r(e),o=void 0;return}}function c(e=!1){let t=s(),n={exitOnCtrlC:e};return t&&(n.stdin=t),n}export{c as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./figures-gfT9mM8P.js";import{F as i,In as a,Ln as o,Rn as s,b as c,t as l,tn as u,x as d}from"./src-Di342QoJ.js";import{t as f}from"./jsx-runtime-D-D469L8.js";import{Ct as p,cn as m,ot as h}from"./state-sIHsFpDu.js";import{o as g,s as _}from"./log-DS97_rIr.js";import{Fr as v,Gr as y,Jr as b,Jy as x,Ky as S,Lr as C,Oi as w,Ri as T,Sr as E,Xr as D,_T as O,fv as k,gT as A,hT as j,kr as M,pv as N,zi as P,zr as F}from"./loadAgentsDir-Br5fGLLI.js";import{n as I,r as L}from"./modalContext-CmSKRyea.js";import{a as R,i as z,n as B,o as V,r as H,t as U}from"./crossProjectResume-CDWr5DFl.js";function W(e){switch(e.resultType){case`sessionNotFound`:return`Session ${a.bold(e.arg)} was not found. Run ${a.bold(`/resume`)} without arguments to browse all sessions.`;case`multipleMatches`:return`Found ${e.count} sessions matching ${a.bold(e.arg)}. Run ${a.bold(`/resume`)} to pick one from the list.`}}function G({message:e,args:t,onDone:n}){return J.useEffect(()=>{let e=setTimeout(n,0);return()=>clearTimeout(e)},[n]),(0,Y.jsxs)(d,{flexDirection:`column`,children:[(0,Y.jsxs)(c,{dimColor:!0,children:[r.pointer,` /resume `,t]}),(0,Y.jsx)(A,{children:(0,Y.jsx)(c,{children:e})})]})}function K({onDone:e,onResume:t}){let[n,r]=J.useState([]),[a,o]=J.useState([]),[s,l]=J.useState(!0),[f,m]=J.useState(!1),[g,_]=J.useState(!1),{rows:v}=i(),x=L(),C=J.useCallback(async(t,n)=>{l(!0);try{let i=q(t?await y():await D(n),p());if(i.length===0){e(`No conversations found to resume`);return}r(i)}catch{e(`Failed to load conversations`)}finally{l(!1)}},[e]);J.useEffect(()=>{async function e(){let e=await T(h());o(e),C(!1,e)}e()},[C]);let w=J.useCallback(()=>{let e=!g;_(e),C(e,a)},[g,C,a]);async function E(n){let r=N(M(n));if(!r){e(`Failed to resume conversation`);return}let i=F(n)?await b(n):n,o=U(i,g,a);if(o.isCrossProject){if(o.isSameRepoWorktree){m(!0),t(r,i,`slash_command_picker`);return}let n=await u(o.command);n&&process.stdout.write(n),e([``,`This conversation is from a different directory.`,``,`To resume, run:`,` ${o.command}`,``,`(Command copied to clipboard)`,``].join(`
|
|
2
|
-
`),{display:`user`});return}m(!0),t(r,i,`slash_command_picker`)}function O(){e(`Resume cancelled`,{display:`system`})}return s?(0,Y.jsxs)(d,{children:[(0,Y.jsx)(S,{}),(0,Y.jsx)(c,{children:` Loading conversations…`})]}):f?(0,Y.jsxs)(d,{children:[(0,Y.jsx)(S,{}),(0,Y.jsx)(c,{children:` Resuming conversation…`})]}):(0,Y.jsx)(R,{logs:n,maxHeight:x?Math.floor(v/2):v-2,onCancel:O,onSelect:E,onLogsChanged:()=>C(g,a),showAllProjects:g,onToggleAllProjects:w,onAgenticSearch:H})}function q(e,t){return e.filter(e=>!e.isSidechain&&M(e)!==t)}var J,Y,X;e((()=>{o(),n(),J=t(s(),1),m(),V(),O(),x(),I(),j(),l(),z(),B(),P(),g(),v(),k(),Y=f(),X=async(e,t,n)=>{let r=async(n,r,i)=>{try{await t.resume?.(n,r,i),e(void 0,{display:`skip`})}catch(t){_(t),e(`Failed to resume: ${t.message}`)}},i=n?.trim();if(!i)return(0,Y.jsx)(K,{onDone:e,onResume:r},Date.now());let a=await D(await T(h()));if(a.length===0){let t=`No conversations found to resume.`;return(0,Y.jsx)(G,{message:t,args:i,onDone:()=>e(t)})}let o=N(i);if(o){let e=a.filter(e=>M(e)===o).sort((e,t)=>t.modified.getTime()-e.modified.getTime());if(e.length>0){let t=e[0];return r(o,F(t)?await b(t):t,`slash_command_session_id`),null}let t=await E(o);if(t)return r(o,t,`slash_command_session_id`),null}if(C()){let t=await w(i,{exact:!0});if(t.length===1){let e=t[0],n=M(e);if(n)return r(n,F(e)?await b(e):e,`slash_command_title`),null}if(t.length>1){let n=W({resultType:`multipleMatches`,arg:i,count:t.length});return(0,Y.jsx)(G,{message:n,args:i,onDone:()=>e(n)})}}let s=W({resultType:`sessionNotFound`,arg:i});return(0,Y.jsx)(G,{message:s,args:i,onDone:()=>e(s)})}}))();export{X as call,q as filterResumableSessions};
|