claude-code-zanii 2.8.4
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/README.md +146 -0
- package/dist/chunks/AddWorkspaceDirectory-y_rd6sRl.js +1 -0
- package/dist/chunks/App-DgWSavG1.js +1 -0
- package/dist/chunks/ApproveApiKey-CJKWha-a.js +1 -0
- package/dist/chunks/ApproveApiKey-DTs2ExZH.js +1 -0
- package/dist/chunks/AssistantSessionChooser-BAhVk4id.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-XU_JPh7R.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-DV0Pi7ys.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-6erm_8Fn.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-CjBvzB5s.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-ts0XnWwl.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-DySPdSqQ.js +1 -0
- package/dist/chunks/CustomSelect-DqZxzBZP.js +1 -0
- package/dist/chunks/DesktopHandoff-5c90JK88.js +1 -0
- package/dist/chunks/DevChannelsDialog-DCMderzu.js +1 -0
- package/dist/chunks/Dialog-Dgg8bqcG.js +1 -0
- package/dist/chunks/DiffDialog-BU765aqh.js +6 -0
- package/dist/chunks/Doctor-B73iDB-d.js +3 -0
- package/dist/chunks/Doctor-CLZDdNRo.js +1 -0
- package/dist/chunks/ExitFlow-DBqn2mUf.js +2 -0
- package/dist/chunks/Feedback-D-JHabwi.js +2 -0
- package/dist/chunks/Grove-D-uQNMMo.js +11 -0
- package/dist/chunks/HybridTransport-B-G4QJcy.js +4 -0
- package/dist/chunks/ITermBackend-KP1vKsRN.js +1 -0
- package/dist/chunks/InProcessTransport-ByBEKxrQ.js +1 -0
- package/dist/chunks/InvalidConfigDialog-CMqiZ5nG.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-CjPCKzVZ.js +1 -0
- package/dist/chunks/ListItem-B6MyhHvM.js +1 -0
- package/dist/chunks/MCPConnectionManager-BJ8PcYPe.js +1 -0
- package/dist/chunks/Message-DNxJ_tMS.js +1 -0
- package/dist/chunks/MessageSelector-D79Ug71B.js +3 -0
- package/dist/chunks/Messages-CtIbkB2M.js +11 -0
- package/dist/chunks/Onboarding-DVrgKrI9.js +1 -0
- package/dist/chunks/OverageCreditUpsell-D_td1ss4.js +1 -0
- package/dist/chunks/PermissionDialog-BCS22yEO.js +1 -0
- package/dist/chunks/PermissionDialog-C5O1fL53.js +1 -0
- package/dist/chunks/PermissionRequestTitle-CtlbBU9t.js +1 -0
- package/dist/chunks/PluginSettings-OPrg-_3N.js +17 -0
- package/dist/chunks/PressEnterToContinue-DmzxIgbZ.js +1 -0
- package/dist/chunks/PromptInputFooterSuggestions-CcsKj5DK.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-JedFdsxU.js +1 -0
- package/dist/chunks/REPL-ByhyIRnf.js +1 -0
- package/dist/chunks/REPL-Clve-8zC.js +157 -0
- package/dist/chunks/RemoteCallout-BZcabEKb.js +1 -0
- package/dist/chunks/RemoteSessionManager-C2PIFDHt.js +1 -0
- package/dist/chunks/ResumeConversation-D3ZRTFcF.js +1 -0
- package/dist/chunks/SSETransport-DmZWnH0k.js +4 -0
- package/dist/chunks/SearchBox-DQg2Ph0V.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-CLO4nt6N.js +1 -0
- package/dist/chunks/SentryErrorBoundary-BVfBaOOU.js +2 -0
- package/dist/chunks/SentryErrorBoundary-DIaVFad-.js +1 -0
- package/dist/chunks/Settings-rOCxQdS8.js +2 -0
- package/dist/chunks/TeleportProgress-CP8IY6bz.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-DMmHgBqo.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-D5wEAW1-.js +1 -0
- package/dist/chunks/ThemePicker-Bgr7yOQB.js +1 -0
- package/dist/chunks/TmuxBackend-BzbtUtP1.js +9 -0
- package/dist/chunks/TrustDialog-BI5U3BQ0.js +1 -0
- package/dist/chunks/TungstenTool-CiQclNwj.js +1 -0
- package/dist/chunks/TungstenTool-kMqy-ifa.js +1 -0
- package/dist/chunks/ValidationErrorsList-DprGtB2w.js +2 -0
- package/dist/chunks/WelcomeV2-C4vfBnIy.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-BSoezOCE.js +2 -0
- package/dist/chunks/add-dir-DpOmv6kv.js +1 -0
- package/dist/chunks/agentDisplay-DuYEwOwO.js +1 -0
- package/dist/chunks/agents-BlurXZrF.js +2 -0
- package/dist/chunks/agents-DhZf7ftU.js +103 -0
- package/dist/chunks/ajv-CDrSAj3O.js +8 -0
- package/dist/chunks/analytics-i6X1et4O.js +1 -0
- package/dist/chunks/ant-D9hd_iYy.js +1 -0
- package/dist/chunks/api-CoaOHwDQ.js +4 -0
- package/dist/chunks/api-DvyGR-L7.js +1 -0
- package/dist/chunks/api-YHYC4Zdk.js +1 -0
- package/dist/chunks/artifacts-BMAYdaqh.js +1 -0
- package/dist/chunks/asciicast-DpHRoebc.js +1 -0
- package/dist/chunks/asciicast-HG1EoAQe.js +4 -0
- package/dist/chunks/assistant-D4-qcNT1.js +1 -0
- package/dist/chunks/assistant-DO2ZmZn1.js +1 -0
- package/dist/chunks/assistant-Dd86NmJM.js +1 -0
- package/dist/chunks/attributionHooks-BUmHrLhB.js +1 -0
- package/dist/chunks/attributionTrailer-r2Pbpu2N.js +1 -0
- package/dist/chunks/auth-CF3BGNYT.js +1 -0
- package/dist/chunks/auth-DwWwG43F.js +1 -0
- package/dist/chunks/auth-V_Xk2iea.js +1 -0
- package/dist/chunks/autoMode-DUksX5_i.js +45 -0
- package/dist/chunks/autoModeDenials-0CPO-Jbu.js +1 -0
- package/dist/chunks/autonomy-C5mNhAdz.js +21 -0
- package/dist/chunks/autonomy-CLt1dWaC.js +1 -0
- package/dist/chunks/autonomyPanel-rioFnrQO.js +1 -0
- package/dist/chunks/axios-DPuSPBlH.js +1 -0
- package/dist/chunks/axios-Zh7qGPze.js +12 -0
- package/dist/chunks/backgroundHousekeeping-BGtfqu-J.js +1 -0
- package/dist/chunks/backgroundHousekeeping-BqKZEvy0.js +17 -0
- package/dist/chunks/banner-BGLr3KYQ.js +2 -0
- package/dist/chunks/base64-js-B1tFNiG0.js +1 -0
- package/dist/chunks/bedrockClient-BFzWuhQK.js +15 -0
- package/dist/chunks/bg-B-YgGwLj.js +9 -0
- package/dist/chunks/bg-IU4gG3jc.js +1 -0
- package/dist/chunks/branch-BWY5W7hf.js +3 -0
- package/dist/chunks/break-cache-CY-O23fJ.js +8 -0
- package/dist/chunks/bridge-CqWd70vK.js +2 -0
- package/dist/chunks/bridgeConfig-CWO8AmCY.js +1 -0
- package/dist/chunks/bridgeConfig-D38y9eXn.js +1 -0
- package/dist/chunks/bridgeConfig-EwUq__ct.js +1 -0
- package/dist/chunks/bridgeConfig-GYR-LUiu.js +1 -0
- package/dist/chunks/bridgeEnabled-DKqmLnKO.js +1 -0
- package/dist/chunks/bridgeEnabled-DZIGDtfY.js +1 -0
- package/dist/chunks/bridgeMain-CXVks2ND.js +1 -0
- package/dist/chunks/bridgeMain-D4nsECwJ.js +68 -0
- package/dist/chunks/bridgeMessaging-BUOZU_ba.js +1 -0
- package/dist/chunks/bridgePointer-BpzIEsD_.js +1 -0
- package/dist/chunks/browser-D1vC3BNd.js +1 -0
- package/dist/chunks/btw-CVXJwoXo.js +1 -0
- package/dist/chunks/buddy-BLcvL8lP.js +3 -0
- package/dist/chunks/bundledMode-DQNSSQbt.js +1 -0
- package/dist/chunks/caches-BrfvzKn5.js +1 -0
- package/dist/chunks/caches-CkSv3MfC.js +3 -0
- package/dist/chunks/capacityWake-BWCSatN6.js +1 -0
- package/dist/chunks/changeDetector-DEZU6tum.js +1 -0
- package/dist/chunks/changeDetector-Df7c6U3d.js +1 -0
- package/dist/chunks/channelAllowlist-BApjAS0V.js +1 -0
- package/dist/chunks/channelNotification-BjWwF85R.js +1 -0
- package/dist/chunks/channelNotification-D01YVwNj.js +1 -0
- package/dist/chunks/chokidar-DPwMBcWI.js +1 -0
- package/dist/chunks/chokidar-DkDXNCTz.js +1 -0
- package/dist/chunks/chrome-D7coxEOI.js +1 -0
- package/dist/chunks/chromeNativeHost-CPj9M_4-.js +1 -0
- package/dist/chunks/chunk-DR8-3Aex.js +1 -0
- package/dist/chunks/classPrivateFieldSet2-DZkxcFPS.js +1 -0
- package/dist/chunks/claudeAiLimitsHook-ATshVrOH.js +1 -0
- package/dist/chunks/claudeDesktop-PVa9tWsM.js +1 -0
- package/dist/chunks/cleanup-C-PGmKpV.js +1 -0
- package/dist/chunks/clear-CxGE9Ntr.js +1 -0
- package/dist/chunks/cliLaunch-CMXoY_LO.js +1 -0
- package/dist/chunks/client-BWED8Tbu.js +35 -0
- package/dist/chunks/client-CinDjeSq.js +7 -0
- package/dist/chunks/client-CpXGg9e0.js +1 -0
- package/dist/chunks/color-B3w_VQTn.js +1 -0
- package/dist/chunks/color-convert-BQZnVz_5.js +1 -0
- package/dist/chunks/commands-DFp48zwy.js +1 -0
- package/dist/chunks/commitAttribution-B0cXmbvv.js +2 -0
- package/dist/chunks/commitAttribution-DRSKRoH6.js +1 -0
- package/dist/chunks/common-BX7bn3hg.js +1 -0
- package/dist/chunks/common-Ce3LanTX.js +1 -0
- package/dist/chunks/common-DdLQuE2_.js +1 -0
- package/dist/chunks/common-HfKcqOYK.js +1 -0
- package/dist/chunks/compact-C8ljGMdo.js +3 -0
- package/dist/chunks/companion-mD1jw6xX.js +1 -0
- package/dist/chunks/completionCache-BqQXVTa9.js +1 -0
- package/dist/chunks/completionCache-BtP4vfAi.js +4 -0
- package/dist/chunks/computerUseLock-ADE_PhIK.js +1 -0
- package/dist/chunks/config-CmyaIIOY.js +1 -0
- package/dist/chunks/config-Rl1Y_Dtq.js +1 -0
- package/dist/chunks/connectHeadless-MFABhXpz.js +1 -0
- package/dist/chunks/constants-BM62Vf_X.js +1 -0
- package/dist/chunks/constants-BfXy-5cI.js +1 -0
- package/dist/chunks/context-BeiZkUNq.js +1 -0
- package/dist/chunks/context-noninteractive-CRdF3iv8.js +54 -0
- package/dist/chunks/controlMessageCompat-591iGHUK.js +1 -0
- package/dist/chunks/conversation-BoguXZEI.js +1 -0
- package/dist/chunks/conversation-yhs7tT-g.js +1 -0
- package/dist/chunks/copy-BpeUcqku.js +7 -0
- package/dist/chunks/createSSHSession-B3JOB4TE.js +6 -0
- package/dist/chunks/createSession-BJSnFBGt.js +1 -0
- package/dist/chunks/createSession-CnRHI3RU.js +1 -0
- package/dist/chunks/cron-iqTFGIos.js +1 -0
- package/dist/chunks/cronScheduler-zRXhgEEU.js +6 -0
- package/dist/chunks/cronTasks-CMJldfoP.js +2 -0
- package/dist/chunks/crossProjectResume-DxO6TX30.js +40 -0
- package/dist/chunks/cwd-B2guYBbl.js +1 -0
- package/dist/chunks/cwd-B5bbyUwz.js +1 -0
- package/dist/chunks/cwd-BXiaJzLh.js +1 -0
- package/dist/chunks/daemon-B3v4OoOu.js +2 -0
- package/dist/chunks/dangerousBackend-OmCzoW35.js +1 -0
- package/dist/chunks/datadog-3-Vvz0yz.js +1 -0
- package/dist/chunks/datadog-BQlp3bTs.js +1 -0
- package/dist/chunks/debug-BDBIipC1.js +2 -0
- package/dist/chunks/debug-C7tW7DFW.js +1 -0
- package/dist/chunks/debug-CjIaNjpK.js +5 -0
- package/dist/chunks/debugUtils-Dsg-UHeg.js +1 -0
- package/dist/chunks/defineProperty-CaCI0a5T.js +1 -0
- package/dist/chunks/desktop-C_SS0068.js +1 -0
- package/dist/chunks/detached-B7RNZeyl.js +5 -0
- package/dist/chunks/detect-libc-DFFGDzPC.js +1 -0
- package/dist/chunks/detectRepository-BnTCJAXR.js +1 -0
- package/dist/chunks/detectRepository-Gobn9eFt.js +1 -0
- package/dist/chunks/detection-CN_uLGU2.js +1 -0
- package/dist/chunks/detection-DW6grIlc.js +1 -0
- package/dist/chunks/diff-B8YmRG5T.js +1 -0
- package/dist/chunks/directoryCompletion-J560aATd.js +1 -0
- package/dist/chunks/dist-B1wOprSs.js +29 -0
- package/dist/chunks/dist-DZQOarNX.js +5 -0
- package/dist/chunks/dist-HZfkKiUF.js +20 -0
- package/dist/chunks/dist-es-4xyrZoNc2.js +1 -0
- package/dist/chunks/dist-es-6kjvVbJd.js +1 -0
- package/dist/chunks/dist-es-BJldFHbt.js +3 -0
- package/dist/chunks/dist-es-BM013UFT.js +1 -0
- package/dist/chunks/dist-es-BPPewn1A.js +1 -0
- package/dist/chunks/dist-es-BZGG3Hnm.js +1 -0
- package/dist/chunks/dist-es-BZjJL64k2.js +1 -0
- package/dist/chunks/dist-es-BctcPxLN.js +1 -0
- package/dist/chunks/dist-es-Bf2jR30y.js +1 -0
- package/dist/chunks/dist-es-BgLoR-hQ.js +1 -0
- package/dist/chunks/dist-es-BismPcTW.js +1 -0
- package/dist/chunks/dist-es-BrPzXmSP.js +1 -0
- package/dist/chunks/dist-es-Bu21Wvhs.js +1 -0
- package/dist/chunks/dist-es-BuWNNAXW.js +1 -0
- package/dist/chunks/dist-es-Bz11sFiK2.js +1 -0
- package/dist/chunks/dist-es-C5VplyPL2.js +5 -0
- package/dist/chunks/dist-es-C66BuLgn.js +1 -0
- package/dist/chunks/dist-es-CCIzgNln2.js +1 -0
- package/dist/chunks/dist-es-CLyx7Kge2.js +1 -0
- package/dist/chunks/dist-es-CUbatGdn.js +1 -0
- package/dist/chunks/dist-es-CYe_-TbD.js +1 -0
- package/dist/chunks/dist-es-C_IHUdzL.js +1 -0
- package/dist/chunks/dist-es-Ci_rKlMr.js +1 -0
- package/dist/chunks/dist-es-ClDZBAj7.js +1 -0
- package/dist/chunks/dist-es-Cp--qjOi.js +1 -0
- package/dist/chunks/dist-es-CzE4kW1L.js +9 -0
- package/dist/chunks/dist-es-DUg5w7-v.js +1 -0
- package/dist/chunks/dist-es-Dl0ZRczY.js +1 -0
- package/dist/chunks/dist-es-Do_155z5.js +1 -0
- package/dist/chunks/dist-es-DxIM0jd82.js +1 -0
- package/dist/chunks/dist-es-Fav2oBDs.js +1 -0
- package/dist/chunks/dist-es-TZjwPaGn.js +1 -0
- package/dist/chunks/dist-es-W22ud2el2.js +1 -0
- package/dist/chunks/dist-es-aU8-02YH.js +1 -0
- package/dist/chunks/dist-es-b3yZSGx82.js +1 -0
- package/dist/chunks/dist-es-dIP5JtXz.js +5 -0
- package/dist/chunks/dist-es-mQ4HvnYs2.js +1 -0
- package/dist/chunks/distRoot-CJaacAHy.js +1 -0
- package/dist/chunks/doctor-DLZPF4iY.js +1 -0
- package/dist/chunks/earlyInput-BTI1CSNt.js +2 -0
- package/dist/chunks/earlyInput-BwGtzhhP.js +1 -0
- package/dist/chunks/effort-BaHvpBWr.js +9 -0
- package/dist/chunks/entry-_e-lyRwv.js +14 -0
- package/dist/chunks/env-CesrOJJq.js +1 -0
- package/dist/chunks/envLessBridgeConfig-4oys0_9A.js +1 -0
- package/dist/chunks/envLessBridgeConfig-DJ1Sts3F.js +1 -0
- package/dist/chunks/envUtils-CFG7IQID.js +1 -0
- package/dist/chunks/errorLogSink-Ti4Suoz6.js +2 -0
- package/dist/chunks/escHotkey-CVn_80xM.js +259 -0
- package/dist/chunks/esm-BFnjHW38.js +1 -0
- package/dist/chunks/esm-BQg_LX3V.js +1 -0
- package/dist/chunks/esm-BtC6CMmM.js +1 -0
- package/dist/chunks/esm-BwzC0MQp.js +1 -0
- package/dist/chunks/esm-CFybeQ_Q.js +1 -0
- package/dist/chunks/esm-CK-5CT5X.js +1 -0
- package/dist/chunks/esm-CL1OwlZB.js +1 -0
- package/dist/chunks/esm-CMzgSTAl.js +1 -0
- package/dist/chunks/esm-CPE_H2Lx.js +1 -0
- package/dist/chunks/esm-CcWquv5a.js +10 -0
- package/dist/chunks/esm-CeNEpRZt.js +1 -0
- package/dist/chunks/esm-D7hykoRB.js +1 -0
- package/dist/chunks/esm-DUtcefEV.js +1 -0
- package/dist/chunks/esm-DhrUwJBp.js +1 -0
- package/dist/chunks/esm-Duu1fRQ8.js +1 -0
- package/dist/chunks/esm-Ght2BaU2.js +1 -0
- package/dist/chunks/esm-Q6Yz2GMx.js +56 -0
- package/dist/chunks/esm-WONEiurY.js +13 -0
- package/dist/chunks/event-streams-BumpU1aB.js +1 -0
- package/dist/chunks/eventLoopStallDetector-DxyFdg1h.js +1 -0
- package/dist/chunks/execAsync-ChKxDZ8C.js +1 -0
- package/dist/chunks/execFileNoThrow-DdmR1mBS.js +1 -0
- package/dist/chunks/execSyncWrapper-Ch4TNj8u.js +1 -0
- package/dist/chunks/execa-BMaINL7N.js +34 -0
- package/dist/chunks/executor-C7INr19-.js +1 -0
- package/dist/chunks/executor-Dnf3YYma.js +1604 -0
- package/dist/chunks/exit-BakzsOD0.js +1 -0
- package/dist/chunks/exit-CiDn2tN9.js +2 -0
- package/dist/chunks/export-b-6pqMqz.js +2 -0
- package/dist/chunks/exportRenderer-RxtEIyTm.js +1 -0
- package/dist/chunks/extra-usage-7EPJNjNW.js +1 -0
- package/dist/chunks/extra-usage-ChvuewCq.js +1 -0
- package/dist/chunks/extra-usage-core-BVhLtoDF.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-_Njh6q-q.js +1 -0
- package/dist/chunks/extraUsage-qOBMQB6g.js +1 -0
- package/dist/chunks/extractMemories-CRBVNiG1.js +1 -0
- package/dist/chunks/fast-C4uw_g7o.js +1 -0
- package/dist/chunks/fast-CEaIzaPl.js +1 -0
- package/dist/chunks/featureCheck-B1GSTyhh.js +1 -0
- package/dist/chunks/featureCheck-DKigAPal.js +1 -0
- package/dist/chunks/feedback-Bf3TjjuD.js +1 -0
- package/dist/chunks/figures-fES5sASd.js +1 -0
- package/dist/chunks/fileStateCache-DAsLEZau.js +1 -0
- package/dist/chunks/files-B-m_4X8b.js +2 -0
- package/dist/chunks/findExecutable-D8vJrFnO.js +1 -0
- package/dist/chunks/firstPartyEventLogger-BtrGagNa.js +1 -0
- package/dist/chunks/flushGate-2zqab-Pp.js +1 -0
- package/dist/chunks/foundry-sdk-CtX8C0x3.js +1 -0
- package/dist/chunks/fpsMetrics-ts_jaF3g.js +1 -0
- package/dist/chunks/fuse-ivQ_eRwF.js +1 -0
- package/dist/chunks/gates-CmKoQ0O-.js +1 -0
- package/dist/chunks/gates-_wbPDQ3M.js +1 -0
- package/dist/chunks/gemini-DRx495gn.js +3 -0
- package/dist/chunks/generateRecap-Cv8gd_QF.js +1 -0
- package/dist/chunks/generateSessionName-Dpjg-u_x.js +1 -0
- package/dist/chunks/genericProcessUtils-BFJMxLqn.js +23 -0
- package/dist/chunks/getMachineId-bsd-C9pL9Ajr.js +1 -0
- package/dist/chunks/getMachineId-darwin-Ma4F9rJg.js +2 -0
- package/dist/chunks/getMachineId-linux-C0lXMqsj.js +1 -0
- package/dist/chunks/getMachineId-unsupported-ByHQTXat.js +1 -0
- package/dist/chunks/getMachineId-win-DZsXZmTz.js +1 -0
- package/dist/chunks/git-Bj8Ow4pJ.js +6 -0
- package/dist/chunks/git-Q_b4oZ17.js +1 -0
- package/dist/chunks/githubRepoPathMapping-DGivBX9h.js +1 -0
- package/dist/chunks/goal-BrHEJv8o.js +3 -0
- package/dist/chunks/goalStorage-CsuPOQbk.js +1 -0
- package/dist/chunks/graceful-fs-BuPWC-vB.js +2 -0
- package/dist/chunks/grok-CDkDDaY_.js +1 -0
- package/dist/chunks/growthbook-D3_Cr9n-.js +1 -0
- package/dist/chunks/growthbook-p4aJ_UMv.js +32 -0
- package/dist/chunks/hash-KW-tVnPp.js +1 -0
- package/dist/chunks/heapdump-CloylIZ9.js +5 -0
- package/dist/chunks/help-DpSJlHIc.js +1 -0
- package/dist/chunks/hooks-2pogt8nv.js +79 -0
- package/dist/chunks/hooks-BBODdwnE.js +1 -0
- package/dist/chunks/hostAdapter-B5KTUqhv.js +1 -0
- package/dist/chunks/hostGuard-DyWr2TwE.js +1 -0
- package/dist/chunks/httpAuthSchemes-CgPbtGos.js +13 -0
- package/dist/chunks/ide-CJEcfBZq.js +2 -0
- package/dist/chunks/inboundAttachments-RNpYpRTO.js +1 -0
- package/dist/chunks/index.min-DCDiLq-j.js +1 -0
- package/dist/chunks/initReplBridge-D2E6IM2B.js +1 -0
- package/dist/chunks/initReplBridge-p2uwDBPx.js +1 -0
- package/dist/chunks/insights-DnpZScKs.js +822 -0
- package/dist/chunks/install-D_vTxUlG.js +1 -0
- package/dist/chunks/install-github-app-BK8A7g3i.js +147 -0
- package/dist/chunks/install-slack-app-C47R9VoI.js +1 -0
- package/dist/chunks/instinctParser-DxKdI3JC.js +1 -0
- package/dist/chunks/instrumentation-DkdAJFrZ.js +12 -0
- package/dist/chunks/intl-Pse97ORk.js +1 -0
- package/dist/chunks/isObject-DaxDnPKm.js +1 -0
- package/dist/chunks/isSymbol-D7QeUnS5.js +1 -0
- package/dist/chunks/job-opl00C4l.js +2 -0
- package/dist/chunks/json-bigint-BRRVs1dv.js +8 -0
- package/dist/chunks/jsx-runtime-BTgGEFjL.js +1 -0
- package/dist/chunks/jws-B_ieuaZg.js +3 -0
- package/dist/chunks/jwtUtils-D-tJzoJY.js +1 -0
- package/dist/chunks/keybindings-mRf9VSe8.js +2 -0
- package/dist/chunks/lang-eH4EJErj.js +1 -0
- package/dist/chunks/language-DD9ar6RA.js +1 -0
- package/dist/chunks/language-EZLNdETg.js +1 -0
- package/dist/chunks/launchAgentsPlatform-Cq0_7-IM.js +1 -0
- package/dist/chunks/launchAutofixPr-Bw7aUHUs.js +18 -0
- package/dist/chunks/launchCommand-Bk1Fn-qZ.js +1 -0
- package/dist/chunks/launchLocalMemory-CLBCUgwd.js +3 -0
- package/dist/chunks/launchLocalVault-BfWJWrBg.js +3 -0
- package/dist/chunks/launchMemoryStores-DdnSVSDZ.js +1 -0
- package/dist/chunks/launchOnboarding-ziCEX3GI.js +8 -0
- package/dist/chunks/launchSchedule-G_c7sgmy.js +1 -0
- package/dist/chunks/launchSkillStore-Z1Kd7nCg.js +1 -0
- package/dist/chunks/launchTeleport-Dp9AFbPx.js +3 -0
- package/dist/chunks/launchVault-hwK-Ljek.js +1 -0
- package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
- package/dist/chunks/lib-BHRYgENJ.js +8 -0
- package/dist/chunks/lib-DRyNc7xD.js +2 -0
- package/dist/chunks/lib-Ddq71jM5.js +14 -0
- package/dist/chunks/loadAgentsDir-Bz0FfcVt.js +5620 -0
- package/dist/chunks/loadAgentsDir-CLM0ws7u.js +1 -0
- package/dist/chunks/loadPluginHooks-B5SIS2uo.js +1 -0
- package/dist/chunks/loadSso-RY87rrJO.js +1 -0
- package/dist/chunks/localSearch-BLF6PSv2.js +1 -0
- package/dist/chunks/localSearch-CTycGe3E.js +1 -0
- package/dist/chunks/localSearch-inDahM8I.js +1 -0
- package/dist/chunks/lockfile--gk1HDM6.js +1 -0
- package/dist/chunks/log-B-Nj3Yed.js +1 -0
- package/dist/chunks/log-DVv8YiNo.js +1 -0
- package/dist/chunks/login-BeLvLowc.js +1 -0
- package/dist/chunks/login-DUUOeNoz.js +1 -0
- package/dist/chunks/logoV2Utils-D5SpeZ3C.js +1 -0
- package/dist/chunks/logout-C2QuTBdS.js +1 -0
- package/dist/chunks/magicDocs-CUXKi-Wv.js +57 -0
- package/dist/chunks/main-CFhpWtpC.js +1420 -0
- package/dist/chunks/main-sboa5RKc.js +31 -0
- package/dist/chunks/mappers-DLkk0PZz.js +1 -0
- package/dist/chunks/mcp-C2f6IgAp.js +2 -0
- package/dist/chunks/mcp-Djui9m3_.js +6 -0
- package/dist/chunks/mcp-DvTSxrJ4.js +1 -0
- package/dist/chunks/mcpServer-DMA0bdFC.js +1 -0
- package/dist/chunks/mcpServer-DxEHfW2v.js +1 -0
- package/dist/chunks/memoize-Bg2dXTzV.js +1 -0
- package/dist/chunks/memoize-DNnuA2aU.js +1 -0
- package/dist/chunks/memory-B9io9Zcv.js +1 -0
- package/dist/chunks/mobile-CPnnvkQV.js +2 -0
- package/dist/chunks/modalContext-B1b0Gsro.js +1 -0
- package/dist/chunks/mode-BDgwh_Xb.js +2 -0
- package/dist/chunks/model-B6cpEh-s.js +1 -0
- package/dist/chunks/model-BcunOCC9.js +1 -0
- package/dist/chunks/modelOptions-CHUHQ9WG.js +1 -0
- package/dist/chunks/normalization-cjPqid31.js +1 -0
- package/dist/chunks/oauth-CnBLewrU.js +1 -0
- package/dist/chunks/oauth-DMPGYAoZ.js +1 -0
- package/dist/chunks/observationStore-DVBxrSdI.js +4 -0
- package/dist/chunks/onChangeAppState-M61XDN6V.js +1 -0
- package/dist/chunks/open-CsUNPSNx.js +1 -0
- package/dist/chunks/openai-BHvlYW3m.js +2 -0
- package/dist/chunks/output-style-BtKuBrs4.js +1 -0
- package/dist/chunks/outputStyles-hHuIBkRB.js +84 -0
- package/dist/chunks/overageCreditGrant-BLFT-rF3.js +1 -0
- package/dist/chunks/p-map-C-WNcN6g.js +1 -0
- package/dist/chunks/p-map-CQ2NythB.js +1 -0
- package/dist/chunks/package-9IAs5Qf0.js +1 -0
- package/dist/chunks/panel-27xLZI7c.js +1 -0
- package/dist/chunks/panel-NoDfShEZ.js +1 -0
- package/dist/chunks/panelCall-CEOWVNCM.js +1 -0
- package/dist/chunks/parseConnectUrl-CxU4IX9o.js +1 -0
- package/dist/chunks/parser-DGlAnaNj.js +1 -0
- package/dist/chunks/parser-DGoLe2RS.js +1 -0
- package/dist/chunks/passes-CExcqu66.js +1 -0
- package/dist/chunks/path-uaxlnhva.js +1 -0
- package/dist/chunks/permissions-B3PceQul.js +1 -0
- package/dist/chunks/permissions-DezIL2xF.js +3 -0
- package/dist/chunks/permissions-DnpI8Whh.js +1 -0
- package/dist/chunks/pipeTransport-CB_Wq_Kx.js +1 -0
- package/dist/chunks/plan-cfZBclh9.js +1 -0
- package/dist/chunks/platform-BXz_rgpy.js +2 -0
- package/dist/chunks/plist-DLGDWBD6.js +6 -0
- package/dist/chunks/plugin-CuhENLRs.js +1 -0
- package/dist/chunks/pluginAutoupdate-wTeOXfQe.js +1 -0
- package/dist/chunks/pluginBlocklist-D6pkKfXr.js +1 -0
- package/dist/chunks/pluginCliCommands-DqxdCwsq.js +1 -0
- package/dist/chunks/pluginFlagging-CjH48f-K.js +1 -0
- package/dist/chunks/pluginOperations-DMFYB3pK.js +2 -0
- package/dist/chunks/pluginStartupCheck-BW3_KfZz.js +1 -0
- package/dist/chunks/pluginStartupCheck-Cj2BMjVw.js +1 -0
- package/dist/chunks/plugins-CarsG2v8.js +4 -0
- package/dist/chunks/policyLimits-DFn1vHkN.js +1 -0
- package/dist/chunks/pollConfig-C8nODJY1.js +1 -0
- package/dist/chunks/poller-DXZJ-dUP.js +1 -0
- package/dist/chunks/poor-C7GQ4a5X.js +1 -0
- package/dist/chunks/poorMode-CBe0rfxB.js +1 -0
- package/dist/chunks/poorMode-CbZTudtw.js +1 -0
- package/dist/chunks/postCommitAttribution--vvAWIqD.js +1 -0
- package/dist/chunks/print-CwwtGSbK.js +114 -0
- package/dist/chunks/privacy-settings-Bz8cAVp5.js +11 -0
- package/dist/chunks/privacyLevel-CRCHhztk.js +1 -0
- package/dist/chunks/process-CnhUplBr.js +1 -0
- package/dist/chunks/process-X4vCP9x0.js +1 -0
- package/dist/chunks/processBashCommand-NL0YEUqW.js +3 -0
- package/dist/chunks/processSlashCommand-FPMWElsI.js +6 -0
- package/dist/chunks/processSlashCommand-_oJs6_w8.js +6 -0
- package/dist/chunks/processUserInput-QAJK0XSn.js +1 -0
- package/dist/chunks/projectContext-B21hXj9q.js +1 -0
- package/dist/chunks/projectContext-DbTQHQS3.js +1 -0
- package/dist/chunks/prompt-C6eleu4x.js +1 -0
- package/dist/chunks/prompt-CUdoQXyN.js +1 -0
- package/dist/chunks/prompt-CsBCtw4l.js +228 -0
- package/dist/chunks/prompt-hnIDYhP4.js +54 -0
- package/dist/chunks/promptEditor-CrlVcc17.js +4 -0
- package/dist/chunks/protectedNamespace-Cn4901XG.js +1 -0
- package/dist/chunks/protocolHandler-DM_w7sJ5.js +13 -0
- package/dist/chunks/protocols-CpoQzjyI.js +7 -0
- package/dist/chunks/proxy-9WvtUy8E.js +99 -0
- package/dist/chunks/rate-limit-options-BehQ3MoX.js +1 -0
- package/dist/chunks/rcDebugLog-BbHlIxCm.js +11 -0
- package/dist/chunks/referral-BfAZEIZL.js +1 -0
- package/dist/chunks/refresh-Bl3Miver.js +1 -0
- package/dist/chunks/registerProtocol-BHZ3vZED.js +36 -0
- package/dist/chunks/registerSkillHooks-BR7v5qDA.js +1 -0
- package/dist/chunks/registry-C2igpRd-.js +1 -0
- package/dist/chunks/release-notes-C_Cou6ye.js +4 -0
- package/dist/chunks/releaseNotes-DveQShyB.js +2 -0
- package/dist/chunks/reload-plugins-D-pAUoB5.js +1 -0
- package/dist/chunks/remote-env-C_dBgbgo.js +1 -0
- package/dist/chunks/remoteBridgeCore-BxWhTy1u.js +1 -0
- package/dist/chunks/remoteControlServer-D3OjUlB-.js +3 -0
- package/dist/chunks/rename-f3m0ETSt.js +1 -0
- package/dist/chunks/renderOptions-QZLxGnh_.js +1 -0
- package/dist/chunks/replBridge-qeVmCJOb.js +1 -0
- package/dist/chunks/resume-CM_8p9Iu.js +2 -0
- package/dist/chunks/rewind-0cB7o6fx.js +1 -0
- package/dist/chunks/ripgrep-BEWqxrpl.js +5 -0
- package/dist/chunks/ripgrep-G82m12Ng.js +1 -0
- package/dist/chunks/rollback-CVo2gqgR.js +11 -0
- package/dist/chunks/runtimeObserver-1EdvvoYw.js +1 -0
- package/dist/chunks/runtimeObserver-CX6vepq9.js +10 -0
- package/dist/chunks/sandbox-adapter-DzHfW2tH.js +1 -0
- package/dist/chunks/sandbox-toggle-N6KgmH2T.js +1 -0
- package/dist/chunks/sanitization-CIBpY9KT.js +1 -0
- package/dist/chunks/satisfies-B7ZvBUQP.js +1 -0
- package/dist/chunks/schemas-Bwt-7U5W.js +40 -0
- package/dist/chunks/sdk-Drp69kIx.js +1 -0
- package/dist/chunks/sdkHeapDumpMonitor-B9GVkISU.js +1 -0
- package/dist/chunks/searchExtraTools-BphNJsl8.js +1 -0
- package/dist/chunks/semver-BsItM2Z4.js +1 -0
- package/dist/chunks/semver-D3lOjiBN.js +1 -0
- package/dist/chunks/sentry-ySzRCXGd.js +1 -0
- package/dist/chunks/server-C8nMDji6.js +1 -0
- package/dist/chunks/server-XZG51Slr.js +1 -0
- package/dist/chunks/serverBanner-D68EBGzH.js +1 -0
- package/dist/chunks/serverLog-hv2hc5US.js +1 -0
- package/dist/chunks/session-CVoGFb8a.js +2 -0
- package/dist/chunks/sessionDataUploader-BaD1Q7v3.js +1 -0
- package/dist/chunks/sessionDiscovery-D7g66TX6.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-9lPjspRX.js +1 -0
- package/dist/chunks/sessionManager-BhOjMNAP.js +1 -0
- package/dist/chunks/sessionMemory-BA6cdxqP.js +1 -0
- package/dist/chunks/sessionMemory-CtEhIRGF.js +1 -0
- package/dist/chunks/sessionMemoryUtils-D_B92ypa.js +1 -0
- package/dist/chunks/sessionObserver-CESI-uVZ.js +1 -0
- package/dist/chunks/sessionObserver-SpE_eglb.js +20 -0
- package/dist/chunks/sessionRestore-DqsqYK4K.js +1 -0
- package/dist/chunks/sessionState-Dgky34M4.js +1 -0
- package/dist/chunks/sessionStorage-DJb5HKhQ.js +1 -0
- package/dist/chunks/sessionStorage-DSMfHTcg.js +1 -0
- package/dist/chunks/sessionStoragePortable-DyM_hZnp.js +3 -0
- package/dist/chunks/sessionTitle-Bzxk_EW9.js +14 -0
- package/dist/chunks/sessionTracing-DR8O0686.js +12 -0
- package/dist/chunks/setup-BHNS9sBS.js +9 -0
- package/dist/chunks/setup-BafJxZ0F.js +4 -0
- package/dist/chunks/setup-MLNNYLi6.js +1 -0
- package/dist/chunks/shadowedRuleDetection-Ch9gTxfD.js +1 -0
- package/dist/chunks/shellQuote-3s6tV-hK.js +1 -0
- package/dist/chunks/sideQuestion-BBn6XIOD.js +20 -0
- package/dist/chunks/signal-BTxmab6r.js +1 -0
- package/dist/chunks/signin-ChbUAEGq.js +1 -0
- package/dist/chunks/sink-B1qICbRh.js +1 -0
- package/dist/chunks/sink-yBIcxQf1.js +1 -0
- package/dist/chunks/sinks-C7weduDR.js +1 -0
- package/dist/chunks/skill-learning-08nEdOJ2.js +5 -0
- package/dist/chunks/skillGapStore-CuvWGqFb.js +5 -0
- package/dist/chunks/skillGapStore-DmMuDXKO.js +1 -0
- package/dist/chunks/skillGenerator-mEMjcmmm.js +8 -0
- package/dist/chunks/skillLearning-B3a-8Ys3.js +1 -0
- package/dist/chunks/skillLearning-q5T6o0mH.js +1 -0
- package/dist/chunks/skillPanel-BuUMhONI.js +28 -0
- package/dist/chunks/skillSearchPanel-BUEv7Sm9.js +21 -0
- package/dist/chunks/skillUsageTracking-BBTiWOKB.js +1 -0
- package/dist/chunks/skills-DvQuQfDW.js +1 -0
- package/dist/chunks/slashCommandParsing-BkTC3GRb.js +1 -0
- package/dist/chunks/sleep-CC8jykQd.js +1 -0
- package/dist/chunks/slowOperations-niPqC54V.js +1 -0
- package/dist/chunks/sprites-C5X62Vyh.js +1 -0
- package/dist/chunks/src-58uAJYF_.js +6 -0
- package/dist/chunks/src-7Y8fx6gl.js +2 -0
- package/dist/chunks/src-BuserDTl.js +1 -0
- package/dist/chunks/src-CMY4XoRy.js +1 -0
- package/dist/chunks/src-CfeAM1FB.js +1 -0
- package/dist/chunks/src-CxT2FDXy.js +1 -0
- package/dist/chunks/src-CyQf7rVu.js +26 -0
- package/dist/chunks/src-DJLbU8sT.js +1 -0
- package/dist/chunks/src-DJQlyVK6.js +5 -0
- package/dist/chunks/src-DNHWYkls.js +53 -0
- package/dist/chunks/src-DU_g0n_Q.js +1 -0
- package/dist/chunks/src-DhqzQjMg.js +19 -0
- package/dist/chunks/src-Duzv1Znh.js +1 -0
- package/dist/chunks/src-OBx6GAig.js +1 -0
- package/dist/chunks/src-WjnK2Dbo.js +1 -0
- package/dist/chunks/src-hjAMxWFj.js +7 -0
- package/dist/chunks/src-lLwoqdC0.js +9 -0
- package/dist/chunks/src-yRsWbJp_.js +2 -0
- package/dist/chunks/sso-oidc-yfC-A2A2.js +1 -0
- package/dist/chunks/startupProfiler-4P7GdVw6.js +3 -0
- package/dist/chunks/startupProfiler-CipS0otN.js +1 -0
- package/dist/chunks/state-9wSimHaL.js +1 -0
- package/dist/chunks/state-BQkyHx88.js +1 -0
- package/dist/chunks/state-CEAUTY3A.js +1 -0
- package/dist/chunks/state-CUZTq6r0.js +1 -0
- package/dist/chunks/state-U0HNbTx8.js +1 -0
- package/dist/chunks/staticRender-BB3CisKd.js +1 -0
- package/dist/chunks/stats-Dyi2U_mq.js +1 -0
- package/dist/chunks/status-CSL-GMou.js +1 -0
- package/dist/chunks/statusNoticeHelpers-BaXE951d.js +1 -0
- package/dist/chunks/stdio-BuUJYJFs.js +3 -0
- package/dist/chunks/stdio-iX0TTmbp.js +1 -0
- package/dist/chunks/stickers-2CRSckfH.js +1 -0
- package/dist/chunks/store-DdfsZvtr.js +1 -0
- package/dist/chunks/stringUtils-U7kMYMJq.js +4 -0
- package/dist/chunks/sts-CJmdeT7s.js +1 -0
- package/dist/chunks/subprocessEnv-DKTILev5.js +1 -0
- package/dist/chunks/subprocessEnv-WjRguKWf.js +1 -0
- package/dist/chunks/supports-color-DaytqqjM.js +1 -0
- package/dist/chunks/systemPromptSections-BnrxBWdc.js +1 -0
- package/dist/chunks/systemPromptSections-Dk6azdAb.js +1 -0
- package/dist/chunks/systemTheme-C1GNqIfy.js +1 -0
- package/dist/chunks/tag-C4cH016L.js +11 -0
- package/dist/chunks/tasks-CEdUW3RQ.js +1 -0
- package/dist/chunks/teamHelpers-CTA_CtTT.js +1 -0
- package/dist/chunks/teamHelpers-D65qZInv.js +1 -0
- package/dist/chunks/teammate-C-FiRloZ.js +1 -0
- package/dist/chunks/teammateModeSnapshot-DWRG5-Us.js +1 -0
- package/dist/chunks/teammateModeSnapshot-DtgsNj1G.js +1 -0
- package/dist/chunks/teleport-C_UgMy0V.js +1 -0
- package/dist/chunks/templateJobs-CMbS0tuk.js +12 -0
- package/dist/chunks/terminalSetup--jwGVap8.js +33 -0
- package/dist/chunks/terminalSetup-zID-wokH.js +1 -0
- package/dist/chunks/theme-C6XwTpVy.js +1 -0
- package/dist/chunks/thinkback-CVLnmLAT.js +1 -0
- package/dist/chunks/thinkback-MeOOO7gf.js +1 -0
- package/dist/chunks/thinkback-play-D7G260F4.js +1 -0
- package/dist/chunks/tmux-DtYJuTWh.js +1 -0
- package/dist/chunks/toolEventObserver-BtC9xDYY.js +1 -0
- package/dist/chunks/toolEventObserver-MfsHAt8h.js +1 -0
- package/dist/chunks/toolPool-CEi_2xIH.js +1 -0
- package/dist/chunks/toolPool-CdYJcCnc.js +1 -0
- package/dist/chunks/trustedDevice-CjQTGAa4.js +1 -0
- package/dist/chunks/trustedDevice-DADcxAAs.js +1 -0
- package/dist/chunks/tui-B8Ijq4Pk.js +6 -0
- package/dist/chunks/turndown.es-T-Xe93nc.js +69 -0
- package/dist/chunks/types-BVelRhgb.js +17 -0
- package/dist/chunks/types-Bqp3meR4.js +1 -0
- package/dist/chunks/types-CNmINIu3.js +1 -0
- package/dist/chunks/types-DgzOOCDl.js +3 -0
- package/dist/chunks/udsClient-ClY_0CKr.js +1 -0
- package/dist/chunks/ultrareviewCommand-CqvHj9Io.js +3 -0
- package/dist/chunks/undercover-CVCVOSrs.js +1 -0
- package/dist/chunks/undercover-CbxiJO2b.js +31 -0
- package/dist/chunks/up-CBJhVVbd.js +12 -0
- package/dist/chunks/updateCCB-DPPpquAw.js +11 -0
- package/dist/chunks/upgrade-DaaHOvft.js +1 -0
- package/dist/chunks/upgrade-k7ZvAWZ0.js +1 -0
- package/dist/chunks/upload-CEDxwMa1.js +1 -0
- package/dist/chunks/upstreamproxy-BtGJ2LRi.js +11 -0
- package/dist/chunks/usage-CsUSu4fb.js +1 -0
- package/dist/chunks/usage-oABvixCs.js +1 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-CBce_-hb.js +1 -0
- package/dist/chunks/useExitOnCtrlCDWithKeybindings-CLYjTZXb.js +1 -0
- package/dist/chunks/useKeybinding-DAQL_dB_.js +1 -0
- package/dist/chunks/useMainLoopModel-QC_H3esG.js +1 -0
- package/dist/chunks/useManageMCPConnections-bf-VfJGD.js +1 -0
- package/dist/chunks/useManagePlugins-CXdYUpit.js +1 -0
- package/dist/chunks/useMergedTools-DERzhQOJ.js +1 -0
- package/dist/chunks/useSearchInput-nqhdILI2.js +1 -0
- package/dist/chunks/useTerminalSize-DzV4aaTi.js +1 -0
- package/dist/chunks/useVoice-CO69xtWC.js +1 -0
- package/dist/chunks/util-C8wqPqv0.js +1 -0
- package/dist/chunks/utils-CDFsSXHr.js +1 -0
- package/dist/chunks/utils-ZO5TryVH.js +1 -0
- package/dist/chunks/v4-DLhvDPkt.js +1 -0
- package/dist/chunks/validatePlugin-C4cd71Yz.js +1 -0
- package/dist/chunks/vertex-sdk-CC3U26o7.js +9 -0
- package/dist/chunks/vim-BNiQx5Vf.js +1 -0
- package/dist/chunks/voice-BCbnJzYL.js +8 -0
- package/dist/chunks/voice-BJyz9KZO.js +8 -0
- package/dist/chunks/voice-CP2ULpju.js +2 -0
- package/dist/chunks/voiceModeEnabled-C-pa8B3Q.js +1 -0
- package/dist/chunks/voiceModeEnabled-CMtRN2pa.js +1 -0
- package/dist/chunks/voiceStreamSTT-31b2u0rj.js +1 -0
- package/dist/chunks/voiceStreamSTT-Fkhm6Ftg.js +1 -0
- package/dist/chunks/voiceStreamSTT-sI-hg-aP.js +1 -0
- package/dist/chunks/web-tools-CLmlPgLk.js +1 -0
- package/dist/chunks/which-C0ex-06E.js +1 -0
- package/dist/chunks/windowsPaths-C5TNvKYu.js +1 -0
- package/dist/chunks/windowsPaths-Kue_7s52.js +1 -0
- package/dist/chunks/workSecret-Dh5Ayceu.js +1 -0
- package/dist/chunks/workerRegistry-B5iWYqpK.js +1 -0
- package/dist/chunks/worktree-BypJA0GB.js +1 -0
- package/dist/chunks/worktreeModeEnabled-DPTdK3JV.js +1 -0
- package/dist/chunks/worktreeModeEnabled-Dtrcn7eD.js +1 -0
- package/dist/chunks/wrapper-BDPb4PTV.js +6 -0
- package/dist/chunks/wrapper-DRTs77RK.js +1 -0
- package/dist/chunks/xdg-BaVL-FHd.js +1 -0
- package/dist/chunks/xml-E8VMPwdJ.js +1 -0
- package/dist/chunks/zod-B_P2Eo_D.js +1 -0
- package/dist/cli-bun.js +2 -0
- package/dist/cli-node.js +2 -0
- package/dist/cli.js +2 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/dist/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/package.json +233 -0
- package/scripts/postinstall.cjs +389 -0
- package/scripts/run-parallel.mjs +10 -0
- package/scripts/setup-chrome-mcp.mjs +70 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-CaCI0a5T.js";import{a as r,i,t as ee}from"./dist-es-Cp--qjOi.js";import{A as te,C as ne,D as re,E as ie,F as ae,I as oe,L as se,M as ce,N as le,O as ue,P as de,R as fe,S as a,_ as o,a as pe,b as me,c as he,d as ge,f as _e,g as ve,h as ye,i as be,j as xe,k as Se,l as Ce,m as we,p as Te,r as Ee,s as De,t as Oe,u as ke,v as Ae,w as je,x as Me,y as Ne,z as Pe}from"./dist-es-dIP5JtXz.js";import{C as Fe,S as Ie,c as Le,d as Re,f as s,g as ze,n as Be,t as c,v as Ve}from"./httpAuthSchemes-CgPbtGos.js";import{n as l,r as He,t as Ue}from"./dist-es-BctcPxLN.js";import{i as We,n as Ge,t as Ke}from"./dist-es-6kjvVbJd.js";import{I as qe,L as Je,N as Ye,P as Xe,R as Ze,v as u,x as Qe,y as d,z as $e}from"./protocols-CpoQzjyI.js";import{n as et,t as tt}from"./dist-es-C66BuLgn.js";import{a as nt,d as rt,g as it,h as at,i as ot,m as st,n as ct,o as lt,r as ut,t as f,u as p}from"./dist-es-Bu21Wvhs.js";import{g as dt,i as ft,p as pt,t as mt}from"./client-CinDjeSq.js";import{n as m,t as ht}from"./dist-es-BismPcTW.js";import{a as gt,c as _t,d as vt,f as yt,i as bt,n as xt,o as St,s as Ct,t as h,u as wt}from"./dist-es-C_IHUdzL.js";import{n as Tt,t as Et}from"./package-9IAs5Qf0.js";function Dt(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sso-oauth`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Ot(e){return{schemeId:`smithy.api#noAuth`}}var g,_,v,y=e((()=>{c(),Ue(),g=async(e,t,n)=>({operation:He(t).operation,region:await l(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),_=e=>{let t=[];switch(e.operation){case`CreateToken`:t.push(Ot(e));break;default:t.push(Dt(e))}return t},v=e=>{let t=Be(e);return Object.assign(t,{authSchemePreference:l(e.authSchemePreference??[])})}})),b,x,S=e((()=>{b=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:`sso-oauth`}),x={UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),C,w,T,E,D,O,k,A,j,M,N,P,kt,F,At,jt,Mt=e((()=>{p(),C=`ref`,w=-1,T=!0,E=`isSet`,D=`PartitionResult`,O=`booleanEquals`,k=`getAttr`,A={[C]:`Endpoint`},j={[C]:D},M={},N=[{[C]:`Region`}],P={conditions:[[E,[A]],[E,N],[`aws.partition`,N,D],[O,[{[C]:`UseFIPS`},T]],[O,[{[C]:`UseDualStack`},T]],[O,[{fn:k,argv:[j,`supportsDualStack`]},T]],[O,[{fn:k,argv:[j,`supportsFIPS`]},T]],[`stringEquals`,[{fn:k,argv:[j,`name`]},`aws-us-gov`]]],results:[[w],[w,`Invalid Configuration: FIPS and custom endpoint are not supported`],[w,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[A,M],[`https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,M],[w,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://oidc.{Region}.amazonaws.com`,M],[`https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}`,M],[w,`FIPS is enabled but this partition does not support FIPS`],[`https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}`,M],[w,`DualStack is enabled but this partition does not support DualStack`],[`https://oidc.{Region}.{PartitionResult#dnsSuffix}`,M],[w,`Invalid Configuration: Missing Region`]]},kt=2,F=1e8,At=new Int32Array([-1,1,-1,0,13,3,1,4,F+12,2,5,F+12,3,8,6,4,7,F+11,5,F+9,F+10,4,11,9,6,10,F+8,7,F+6,F+7,5,12,F+5,6,F+4,F+5,3,F+1,14,4,F+2,F+3]),jt=it.from(At,kt,P.conditions,P.results)})),Nt,Pt,Ft=e((()=>{te(),p(),Mt(),Nt=new at({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`]}),Pt=(e,t={})=>Nt.get(e,()=>rt(jt,{endpointParams:e,logger:t.logger})),st.aws=xe})),I,L=e((()=>{h(),I=class e extends _t{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),It,Lt,Rt,zt,Bt,R,Vt,Ht,Ut,Wt,Gt,Kt=e((()=>{L(),t(),It=class e extends I{constructor(t){super({name:`AccessDeniedException`,$fault:`client`,...t}),n(this,`name`,`AccessDeniedException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`reason`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},Lt=class e extends I{constructor(t){super({name:`AuthorizationPendingException`,$fault:`client`,...t}),n(this,`name`,`AuthorizationPendingException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Rt=class e extends I{constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),n(this,`name`,`ExpiredTokenException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},zt=class e extends I{constructor(t){super({name:`InternalServerException`,$fault:`server`,...t}),n(this,`name`,`InternalServerException`),n(this,`$fault`,`server`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Bt=class e extends I{constructor(t){super({name:`InvalidClientException`,$fault:`client`,...t}),n(this,`name`,`InvalidClientException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},R=class e extends I{constructor(t){super({name:`InvalidGrantException`,$fault:`client`,...t}),n(this,`name`,`InvalidGrantException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Vt=class e extends I{constructor(t){super({name:`InvalidRequestException`,$fault:`client`,...t}),n(this,`name`,`InvalidRequestException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`reason`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},Ht=class e extends I{constructor(t){super({name:`InvalidScopeException`,$fault:`client`,...t}),n(this,`name`,`InvalidScopeException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ut=class e extends I{constructor(t){super({name:`SlowDownException`,$fault:`client`,...t}),n(this,`name`,`SlowDownException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Wt=class e extends I{constructor(t){super({name:`UnauthorizedClientException`,$fault:`client`,...t}),n(this,`name`,`UnauthorizedClientException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Gt=class e extends I{constructor(t){super({name:`UnsupportedGrantTypeException`,$fault:`client`,...t}),n(this,`name`,`UnsupportedGrantTypeException`),n(this,`$fault`,`client`),n(this,`error`,void 0),n(this,`error_description`,void 0),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}}})),qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,z,mn,hn,gn,_n,vn,B,yn,V,bn,xn,H,Sn,U,W,Cn,G,wn,Tn,En,K,q,Dn,J,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Y,Wn,Gn,Kn,X=e((()=>{u(),Kt(),L(),qt=`AccessDeniedException`,Jt=`AuthorizationPendingException`,Yt=`AccessToken`,Xt=`ClientSecret`,Zt=`CreateToken`,Qt=`CreateTokenRequest`,$t=`CreateTokenResponse`,en=`CodeVerifier`,tn=`ExpiredTokenException`,nn=`InvalidClientException`,rn=`InvalidGrantException`,an=`InvalidRequestException`,on=`InternalServerException`,sn=`InvalidScopeException`,cn=`IdToken`,ln=`RefreshToken`,un=`SlowDownException`,dn=`UnauthorizedClientException`,fn=`UnsupportedGrantTypeException`,pn=`accessToken`,z=`client`,mn=`clientId`,hn=`clientSecret`,gn=`codeVerifier`,_n=`code`,vn=`deviceCode`,B=`error`,yn=`expiresIn`,V=`error_description`,bn=`grantType`,xn=`http`,H=`httpError`,Sn=`idToken`,U=`reason`,W=`refreshToken`,Cn=`redirectUri`,G=`smithy.ts.sdk.synthetic.com.amazonaws.ssooidc`,wn=`scope`,Tn=`server`,En=`tokenType`,K=`com.amazonaws.ssooidc`,q=d.for(G),Dn=[-3,G,`SSOOIDCServiceException`,0,[],[]],q.registerError(Dn,I),J=d.for(K),On=[-3,K,qt,{[B]:z,[H]:400},[B,U,V],[0,0,0]],J.registerError(On,It),kn=[-3,K,Jt,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(kn,Lt),An=[-3,K,tn,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(An,Rt),jn=[-3,K,on,{[B]:Tn,[H]:500},[B,V],[0,0]],J.registerError(jn,zt),Mn=[-3,K,nn,{[B]:z,[H]:401},[B,V],[0,0]],J.registerError(Mn,Bt),Nn=[-3,K,rn,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(Nn,R),Pn=[-3,K,an,{[B]:z,[H]:400},[B,U,V],[0,0,0]],J.registerError(Pn,Vt),Fn=[-3,K,sn,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(Fn,Ht),In=[-3,K,un,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(In,Ut),Ln=[-3,K,dn,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(Ln,Wt),Rn=[-3,K,fn,{[B]:z,[H]:400},[B,V],[0,0]],J.registerError(Rn,Gt),zn=[q,J],Bn=[0,K,Yt,8,0],Vn=[0,K,Xt,8,0],Hn=[0,K,en,8,0],Un=[0,K,cn,8,0],Y=[0,K,ln,8,0],Wn=[3,K,Qt,0,[mn,hn,bn,vn,_n,W,wn,Cn,gn],[0,[()=>Vn,0],0,0,0,[()=>Y,0],64,0,[()=>Hn,0]],3],Gn=[3,K,$t,0,[pn,En,yn,W,Sn],[[()=>Bn,0],0,1,[()=>Y,0],[()=>Un,0]]],Kn=[9,K,Zt,{[xn]:[`POST`,`/token`,200]},()=>Wn,()=>Gn]})),qn,Jn=e((()=>{c(),pe(),s(),h(),tt(),Je(),Ke(),y(),Ft(),X(),qn=e=>({apiVersion:`2019-06-10`,base64Decoder:e?.base64Decoder??$e,base64Encoder:e?.base64Encoder??Ze,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Pt,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??_,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Re},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new ze}],logger:e?.logger??new xt,protocol:e?.protocol??De,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.ssooidc`,errorTypeRegistries:zn,version:`2019-06-10`,serviceTarget:`AWSSSOOIDCService`},serviceId:e?.serviceId??`SSO OIDC`,urlParser:e?.urlParser??et,utf8Decoder:e?.utf8Decoder??We,utf8Encoder:e?.utf8Encoder??Ge})})),Yn,Xn=e((()=>{Et(),mt(),c(),we(),f(),Te(),o(),ht(),Ye(),h(),ke(),he(),ft(),Jn(),Yn=e=>{St(process.version);let t=Ce(e),n=()=>t().then(Ct),r=qn(e);dt(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??m(Le,i),bodyLengthChecker:e?.bodyLengthChecker??ge,defaultUserAgentProvider:e?.defaultUserAgentProvider??ve({serviceId:r.serviceId,clientVersion:Tt.version}),maxAttempts:e?.maxAttempts??m(Ne,e),region:e?.region??m(ot,{...ut,...i}),requestHandler:qe.create(e?.requestHandler??n),retryMode:e?.retryMode??m({...me,default:async()=>(await n()).retryMode||pt},e),sha256:e?.sha256??_e.bind(null,`sha256`),streamCollector:e?.streamCollector??Xe,useDualstackEndpoint:e?.useDualstackEndpoint??m(lt,i),useFipsEndpoint:e?.useFipsEndpoint??m(nt,i),userAgentAppId:e?.userAgentAppId??m(ye,i)}}})),Zn,Qn,$n=e((()=>{Zn=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Qn=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),er,tr=e((()=>{Oe(),ee(),h(),$n(),er=(e,t)=>{let n=Object.assign(Ee(e),bt(e),i(e),Zn(e));return t.forEach(e=>e.configure(n)),Object.assign(e,be(n),gt(n),r(n),Qn(n))}})),Z,nr=e((()=>{fe(),ae(),le(),ue(),f(),s(),u(),re(),a(),o(),h(),y(),S(),Xn(),tr(),t(),Z=class extends yt{constructor(...[e]){let t=Yn(e||{});super(t),n(this,`config`,void 0),this.initConfig=t,this.config=er(v(ne(Pe(ct(Me(ce(b(t))))))),e?.extensions||[]),this.middlewareStack.use(Qe(this.config)),this.middlewareStack.use(Se(this.config)),this.middlewareStack.use(Ae(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(se(this.config)),this.middlewareStack.use(oe(this.config)),this.middlewareStack.use(de(this.config)),this.middlewareStack.use(Fe(this.config,{httpAuthSchemeParametersProvider:g,identityProviderConfigProvider:async e=>new Ve({"aws.auth#sigv4":e.credentials})})),this.middlewareStack.use(Ie(this.config))}destroy(){super.destroy()}}})),Q,rr=e((()=>{a(),h(),S(),X(),Q=class extends vt.classBuilder().ep(x).m(function(e,t,n,r){return[je(n,e.getEndpointParameterInstructions())]}).s(`AWSSSOOIDCService`,`CreateToken`,{}).n(`SSOOIDCClient`,`CreateTokenCommand`).sc(Kn).build(){}})),ir,$,ar=e((()=>{h(),rr(),nr(),ir={CreateTokenCommand:Q},$=class extends Z{},wt(ir,$)})),or=e((()=>{rr()})),sr=e((()=>{})),cr=e((()=>{}));e((()=>{nr(),ar(),or(),X(),sr(),Kt(),cr(),L()}))();export{Q as CreateTokenCommand,Z as SSOOIDCClient};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n,u as r}from"./envUtils-CFG7IQID.js";import{n as i,t as a}from"./defineProperty-CaCI0a5T.js";import{Cn as o,t as s}from"./src-DNHWYkls.js";import{A as ee,E as c,_ as l,h as te,l as u,p as d}from"./debug-CjIaNjpK.js";import{L as ne,j as f}from"./state-BQkyHx88.js";import{n as p,r as m}from"./analytics-i6X1et4O.js";import{a as h,n as g,r as _,s as v}from"./intl-Pse97ORk.js";import{dirname as re,join as ie}from"path";function y(e,t){if(o(e)<=t)return e;if(t<=0)return`…`;if(t<5)return b(e,t);let n=e.lastIndexOf(`/`),r=n>=0?e.slice(n):e,i=n>=0?e.slice(0,n):``,a=o(r);if(a>=t-1)return x(e,t);let s=t-1-a;return s<=0?x(r,t):S(i,s)+`…`+r}function b(e,t){if(o(e)<=t)return e;if(t<=1)return`…`;let n=0,r=``;for(let{segment:i}of g().segment(e)){let e=o(i);if(n+e>t-1)break;r+=i,n+=e}return r+`…`}function x(e,t){if(o(e)<=t)return e;if(t<=1)return`…`;let n=[...g().segment(e)],r=0,i=n.length;for(let e=n.length-1;e>=0;e--){let a=o(n[e].segment);if(r+a>t-1)break;r+=a,i=e}return`…`+n.slice(i).map(e=>e.segment).join(``)}function S(e,t){if(o(e)<=t)return e;if(t<=0)return``;let n=0,r=``;for(let{segment:i}of g().segment(e)){let e=o(i);if(n+e>t)break;r+=i,n+=e}return r}function C(e,t,n=!1){if(e==null)return``;let r=e;if(n){let n=e.indexOf(`
|
|
2
|
+
`);if(n!==-1)return r=e.substring(0,n),o(r)+1>t?b(r,t):`${r}…`}return o(r)<=t?r:b(r,t)}var w=e((()=>{s(),v()}));function T(e){let t=e/1024;if(t<1)return`${e} bytes`;if(t<1024)return`${t.toFixed(1).replace(/\.0$/,``)}KB`;let n=t/1024;return n<1024?`${n.toFixed(1).replace(/\.0$/,``)}MB`:`${(n/1024).toFixed(1).replace(/\.0$/,``)}GB`}function ae(e){return`${(e/1e3).toFixed(1)}s`}function E(e,t){if(e<6e4)return e===0?`0s`:e<1?`${(e/1e3).toFixed(1)}s`:`${Math.floor(e/1e3).toString()}s`;let n=Math.floor(e/864e5),r=Math.floor(e%864e5/36e5),i=Math.floor(e%36e5/6e4),a=Math.round(e%6e4/1e3);a===60&&(a=0,i++),i===60&&(i=0,r++),r===24&&(r=0,n++);let o=t?.hideTrailingZeros;return t?.mostSignificantOnly?n>0?`${n}d`:r>0?`${r}h`:i>0?`${i}m`:`${a}s`:n>0?o&&r===0&&i===0?`${n}d`:o&&i===0?`${n}d ${r}h`:`${n}d ${r}h ${i}m`:r>0?o&&i===0&&a===0?`${r}h`:o&&a===0?`${r}h ${i}m`:`${r}h ${i}m ${a}s`:i>0?o&&a===0?`${i}m`:`${i}m ${a}s`:`${a}s`}function D(e){return I(e>=1e3).format(e).toLowerCase()}function O(e){return D(e).replace(`.0`,``)}function k(e,t={}){let{style:n=`narrow`,numeric:r=`always`,now:i=new Date}=t,a=e.getTime()-i.getTime(),o=Math.trunc(a/1e3);for(let{unit:e,seconds:t,shortUnit:i}of[{unit:`year`,seconds:31536e3,shortUnit:`y`},{unit:`month`,seconds:2592e3,shortUnit:`mo`},{unit:`week`,seconds:604800,shortUnit:`w`},{unit:`day`,seconds:86400,shortUnit:`d`},{unit:`hour`,seconds:3600,shortUnit:`h`},{unit:`minute`,seconds:60,shortUnit:`m`},{unit:`second`,seconds:1,shortUnit:`s`}])if(Math.abs(o)>=t){let a=Math.trunc(o/t);return n===`narrow`?o<0?`${Math.abs(a)}${i} ago`:`in ${a}${i}`:_(`long`,r).format(a,e)}return n===`narrow`?o<=0?`0s ago`:`in 0s`:_(n,r).format(0,`second`)}function A(e,t={}){let{now:n=new Date,...r}=t;return e>n?k(e,{...r,now:n}):k(e,{...r,numeric:`always`,now:n})}function j(e){let t=e.fileSize===void 0?`${e.messageCount} messages`:T(e.fileSize),n=[A(e.modified,{style:`short`}),...e.gitBranch?[e.gitBranch]:[],t];return e.tag&&n.push(`#${e.tag}`),e.agentSetting&&n.push(`@${e.agentSetting}`),e.prNumber&&n.push(e.prRepository?`${e.prRepository}#${e.prNumber}`:`#${e.prNumber}`),n.join(` · `)}function M(e,t=!1,n=!0){if(!e)return;let r=new Date(e*1e3),i=new Date,a=r.getMinutes();if((r.getTime()-i.getTime())/(1e3*60*60)>24){let e={month:`short`,day:`numeric`,hour:n?`numeric`:void 0,minute:!n||a===0?void 0:`2-digit`,hour12:n?!0:void 0};return r.getFullYear()!==i.getFullYear()&&(e.year=`numeric`),r.toLocaleString(`en-US`,e).replace(/ ([AP]M)/i,(e,t)=>t.toLowerCase())+(t?` (${h()})`:``)}return r.toLocaleTimeString(`en-US`,{hour:`numeric`,minute:a===0?void 0:`2-digit`,hour12:!0}).replace(/ ([AP]M)/i,(e,t)=>t.toLowerCase())+(t?` (${h()})`:``)}function N(e,t=!1,n=!0){let r=new Date(e);return`${M(Math.floor(r.getTime()/1e3),t,n)}`}var P,F,I,L=e((()=>{v(),w(),P=null,F=null,I=e=>e?(P||(P=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1,minimumFractionDigits:1})),P):(F||(F=new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1,minimumFractionDigits:0})),F)}));function R(){return H}function z(e){return e.toFixed(3)}function B(e,t,n,r,i,a,o=``){let s=r?` | RSS: ${T(r.rss)}, Heap: ${T(r.heapUsed)}`:``;return`[+${z(e).padStart(i)}ms] (+${z(t).padStart(a)}ms) ${n}${o}${s}`}var V,H,U=e((()=>{L(),i(),V=class{constructor(){a(this,`marks`,new Map),a(this,`_origin`,void 0),this._origin=Number(process.hrtime.bigint()/1000n)/1e3}mark(e){this.marks.set(e,this.now())}getEntriesByType(e){if(e!==`mark`)return[];let t=[];for(let[e,n]of this.marks)t.push({name:e,startTime:n,entryType:`mark`});return t}clearMarks(e){e===void 0?this.marks.clear():this.marks.delete(e)}now(){return Number(process.hrtime.bigint()/1000n)/1e3-this._origin}},H=new V}));function W(e){X&&(R().mark(e),J&&Z.push(process.memoryUsage()))}function G(){if(!J)return`Startup profiling not enabled`;let e=R().getEntriesByType(`mark`);if(e.length===0)return`No profiling checkpoints recorded`;let t=[];t.push(`=`.repeat(80)),t.push(`STARTUP PROFILING REPORT`),t.push(`=`.repeat(80)),t.push(``);let n=0;for(let[r,i]of e.entries())t.push(B(i.startTime,i.startTime-n,i.name,Z[r],8,7)),n=i.startTime;let r=e[e.length-1];return t.push(``),t.push(`Total startup time: ${z(r?.startTime??0)}ms`),t.push(`=`.repeat(80)),t.join(`
|
|
3
|
+
`)}function K(){if(!$){if($=!0,oe(),J){let e=q(),t=re(e);te().mkdirSync(t),ee(e,G(),{encoding:`utf8`,flush:!0}),d(`Startup profiling report:`),d(G())}R().clearMarks(),Z.length=0}}function q(){return ie(t(),`startup-perf`,`${f()}.txt`)}function oe(){if(!Y)return;let e=R().getEntriesByType(`mark`);if(e.length===0)return;let t=new Map;for(let n of e)t.set(n.name,n.startTime);let n={};for(let[e,[r,i]]of Object.entries(Q)){let a=t.get(r),o=t.get(i);a!==void 0&&o!==void 0&&(n[`${e}_ms`]=Math.round(o-a))}n.checkpoint_count=e.length,m(`tengu_startup_perf`,n)}var J,Y,X,Z,Q,$,se=e((()=>{ne(),p(),u(),n(),l(),U(),c(),J=r(process.env.CLAUDE_CODE_PROFILE_STARTUP),Y=process.env.USER_TYPE===`ant`||Math.random()<.005,X=J||Y,Z=[],Q={import_time:[`cli_entry`,`main_tsx_imports_loaded`],init_time:[`init_function_start`,`init_function_end`],settings_time:[`eagerLoadSettings_start`,`eagerLoadSettings_end`],total_time:[`cli_entry`,`main_after_run`]},X&&W(`profiler_initialized`),$=!1}));export{x as C,y as S,S as T,ae as _,z as a,w as b,U as c,j as d,D as f,M as g,N as h,K as i,E as l,A as m,se as n,B as o,k as p,W as r,R as s,q as t,T as u,O as v,b as w,C as x,L as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./startupProfiler-4P7GdVw6.js";e();export{t as profileCheckpoint};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ht as e,Mn as t,ln as n,t as r}from"./state-CUZTq6r0.js";e();export{r as addInvokedSkill,n as setCwdState,t as setOriginalCwd};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{a as t,n,o as r,t as i}from"./signal-BTxmab6r.js";import{realpathSync as a}from"fs";import{cwd as ee}from"process";function te(){let e=``;if(typeof process<`u`&&typeof process.cwd==`function`&&typeof a==`function`){let t=ee();try{e=a(t).normalize(`NFC`)}catch{e=t.normalize(`NFC`)}}return{originalCwd:e,projectRoot:e,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:e,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:`cli`,sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:[`userSettings`,`projectSettings`,`localSettings`,`flagSettings`,`policySettings`],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:r(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,...process.env.USER_TYPE===`ant`?{replBridgeActive:!1}:{},directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,promptCache1hAllowlist:null,promptCache1hEligible:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,cacheEditingHeaderLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function ne(){return Q.sessionId}function o(e,t=null){Q.planSlugCache.delete(Q.sessionId),Q.sessionId=e,Q.sessionProjectDir=t,$.emit(e)}function s(){return Q.originalCwd}function c(){return Q.projectRoot}function l(e){Q.originalCwd=e.normalize(`NFC`)}function u(e){Q.projectRoot=e.normalize(`NFC`)}function d(e,t){Q.totalAPIDuration+=e,Q.totalAPIDurationWithoutRetries+=t}function f(e){Q.lastMainRequestId=e}function p(){return Q.lastApiCompletionTimestamp}function m(e){Q.lastApiCompletionTimestamp=e}function h(){Q.pendingPostCompaction=!0}function g(){let e=Q.pendingPostCompaction;return Q.pendingPostCompaction=!1,e}function _(e){Q.mainLoopModelOverride=e}function v(){return Q.sdkBetas}function y(){return Q.modelStrings}function b(e){Q.modelStrings=e}function x(){return Q.prCounter}function S(){return Q.commitCounter}function C(){return Q.loggerProvider}function w(e){Q.loggerProvider=e}function T(){return Q.eventLogger}function E(e){Q.eventLogger=e}function D(){return Q.meterProvider}function O(e){Q.meterProvider=e}function k(){return Q.tracerProvider}function A(e){Q.tracerProvider=e}function j(){return!Q.isInteractive}function M(){return Q.sdkAgentProgressSummariesEnabled}function N(e){Q.sdkAgentProgressSummariesEnabled=e}function P(){return Q.kairosActive}function F(){return Q.userMsgOptIn}function I(){return Q.questionPreviewFormat}function L(){return Q.agentColorMap}function R(){return Q.flagSettingsInline}function z(e){Q.flagSettingsInline=e}function B(){return Q.lastAPIRequest}function V(e){Q.scheduledTasksEnabled=e}function re(){return Q.sessionPersistenceDisabled}function H(){return Q.hasExitedPlanMode}function U(e){Q.hasExitedPlanMode=e}function W(e){Q.needsPlanModeExitAttachment=e}function G(e,t){t===`plan`&&e!==`plan`&&(Q.needsPlanModeExitAttachment=!1),e===`plan`&&t!==`plan`&&(Q.needsPlanModeExitAttachment=!0)}function K(e){Q.needsAutoModeExitAttachment=e}function q(e){Q.initJsonSchema=e}function J(){return Q.initJsonSchema}function Y(e){Q.registeredHooks||(Q.registeredHooks={});for(let[t,n]of Object.entries(e)){let e=t;Q.registeredHooks[e]||(Q.registeredHooks[e]=[]),Q.registeredHooks[e].push(...n??[])}}function X(e){Q.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:e.sessionId}}function ie(){return Q.teleportedSessionInfo}function ae(){Q.teleportedSessionInfo&&(Q.teleportedSessionInfo.hasLoggedFirstMessage=!0)}function oe(e,t,n,r=null){let i=`${r??``}:${e}`;Q.invokedSkills.set(i,{skillName:e,skillPath:t,content:n,invokedAt:Date.now(),agentId:r})}function se(e){for(let[t,n]of Q.invokedSkills)n.agentId===e&&Q.invokedSkills.delete(t)}function ce(){return Q.mainThreadAgentType}function le(e){Q.mainThreadAgentType=e}function ue(){return Q.allowedChannels}function de(e){Q.allowedChannels=e}function fe(){return Q.promptCache1hAllowlist}function pe(e){Q.promptCache1hAllowlist=e}function me(){return Q.promptCache1hEligible}function he(e){Q.promptCache1hEligible=e}function Z(){return Q.afkModeHeaderLatched}function ge(e){Q.afkModeHeaderLatched=e}function _e(){return Q.fastModeHeaderLatched}function ve(e){Q.fastModeHeaderLatched=e}function ye(){return Q.cacheEditingHeaderLatched}function be(){return Q.promptId}function xe(e){Q.promptId=e}var Q,$,Se=e((()=>{t(),n(),Q=te(),$=i(),$.subscribe}));export{le as $,v as A,h as B,x as C,be as D,me as E,G as F,ve as G,ge as H,H as I,q as J,z as K,Se as L,ie as M,k as N,I as O,F as P,_ as Q,re as R,s as S,fe as T,de as U,Y as V,E as W,f as X,m as Y,w as Z,p as _,Z as a,u as at,D as b,ye as c,xe as ct,_e as d,X as dt,O as et,R as f,A as ft,B as g,P as h,g as i,l as it,ne as j,M as k,S as l,V as lt,j as m,d as n,K as nt,L as o,pe as ot,J as p,o as pt,U as q,se as r,W as rt,ue as s,he as st,oe as t,b as tt,T as u,N as ut,C as v,c as w,y as x,ce as y,ae as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as e,j as t}from"./state-BQkyHx88.js";e();export{t as getSessionId};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{a as t,c as n,i as r,n as i,o as a,r as o,s,t as c}from"./signal-BTxmab6r.js";import{realpathSync as l}from"fs";import{cwd as ee}from"process";function te(){let e=``;if(typeof process<`u`&&typeof process.cwd==`function`&&typeof l==`function`){let t=ee();try{e=l(t).normalize(`NFC`)}catch{e=t.normalize(`NFC`)}}return{originalCwd:e,projectRoot:e,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:e,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:`cli`,sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:[`userSettings`,`projectSettings`,`localSettings`,`flagSettings`,`policySettings`],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:a(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],chromeFlagOverride:void 0,useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,...process.env.USER_TYPE===`ant`?{replBridgeActive:!1}:{},directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,promptCache1hAllowlist:null,promptCache1hEligible:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,cacheEditingHeaderLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function ne(){return U.sessionId}function re(e={}){return e.setCurrentAsParent&&(U.parentSessionId=U.sessionId),U.planSlugCache.delete(U.sessionId),U.sessionId=a(),U.sessionProjectDir=null,U.sessionId}function ie(){return U.parentSessionId}function ae(e,t=null){U.planSlugCache.delete(U.sessionId),U.sessionId=e,U.sessionProjectDir=t,W.emit(e)}function oe(){return U.sessionProjectDir}function se(){return U.originalCwd}function ce(){return U.projectRoot}function le(e){U.originalCwd=e.normalize(`NFC`)}function ue(e){U.projectRoot=e.normalize(`NFC`)}function de(){return U.cwd}function fe(e){U.cwd=e.normalize(`NFC`)}function pe(){return U.directConnectServerUrl}function u(e){U.directConnectServerUrl=e}function d(e,t,n){U.modelUsage[n]=t,U.totalCostUSD+=e}function f(){return U.totalCostUSD}function p(){return U.totalAPIDuration}function m(){return Date.now()-U.startTime}function h(){return U.totalAPIDurationWithoutRetries}function g(){return U.totalToolDuration}function _(e){U.totalToolDuration+=e,U.turnToolDurationMs+=e,U.turnToolCount++}function v(){return U.turnHookDurationMs}function y(e){U.turnHookDurationMs+=e,U.turnHookCount++}function b(){U.turnHookDurationMs=0,U.turnHookCount=0}function x(){return U.turnHookCount}function S(){return U.turnToolDurationMs}function C(){U.turnToolDurationMs=0,U.turnToolCount=0}function w(){return U.turnToolCount}function T(){return U.turnClassifierDurationMs}function E(e){U.turnClassifierDurationMs+=e,U.turnClassifierCount++}function D(){U.turnClassifierDurationMs=0,U.turnClassifierCount=0}function O(){return U.turnClassifierCount}function k(){return U.statsStore}function A(e){U.statsStore=e}function j(e){e?M():K=!0}function M(){U.lastInteractionTime=Date.now(),K=!1}function N(e,t){U.totalLinesAdded+=e,U.totalLinesRemoved+=t}function P(){return U.totalLinesAdded}function F(){return U.totalLinesRemoved}function I(){return n(Object.values(U.modelUsage),`inputTokens`)}function L(){return n(Object.values(U.modelUsage),`outputTokens`)}function R(){return n(Object.values(U.modelUsage),`cacheReadInputTokens`)}function z(){return n(Object.values(U.modelUsage),`cacheCreationInputTokens`)}function B(){return n(Object.values(U.modelUsage),`webSearchRequests`)}function me(){return L()-q}function he(){return J}function ge(e){q=L(),J=e,Y=0}function _e(){return Y}function ve(){Y++}function ye(){U.hasUnknownModelCost=!0}function be(){return U.hasUnknownModelCost}function xe(){return U.lastMainRequestId}function Se(){return U.lastApiCompletionTimestamp}function Ce(e){U.lastApiCompletionTimestamp=e}function we(){return U.lastInteractionTime}function Te(){return X}async function Ee(){for(;X;)await new Promise(e=>setTimeout(e,Z).unref?.())}function De(){return U.modelUsage}function Oe(e){return U.modelUsage[e]}function ke(){return U.mainLoopModelOverride}function Ae(){return U.initialMainLoopModel}function je(e){U.mainLoopModelOverride=e}function Me(e){U.initialMainLoopModel=e}function Ne(){return U.sdkBetas}function Pe(e){U.sdkBetas=e}function Fe(){U.totalCostUSD=0,U.totalAPIDuration=0,U.totalAPIDurationWithoutRetries=0,U.totalToolDuration=0,U.startTime=Date.now(),U.totalLinesAdded=0,U.totalLinesRemoved=0,U.hasUnknownModelCost=!1,U.modelUsage={},U.promptId=null}function Ie({totalCostUSD:e,totalAPIDuration:t,totalAPIDurationWithoutRetries:n,totalToolDuration:r,totalLinesAdded:i,totalLinesRemoved:a,lastDuration:o,modelUsage:s}){U.totalCostUSD=e,U.totalAPIDuration=t,U.totalAPIDurationWithoutRetries=n,U.totalToolDuration=r,U.totalLinesAdded=i,U.totalLinesRemoved=a,s&&(U.modelUsage=s),o&&(U.startTime=Date.now()-o)}function Le(e,t){U.meter=e,U.sessionCounter=t(`claude_code.session.count`,{description:`Count of CLI sessions started`}),U.locCounter=t(`claude_code.lines_of_code.count`,{description:`Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed`}),U.prCounter=t(`claude_code.pull_request.count`,{description:`Number of pull requests created`}),U.commitCounter=t(`claude_code.commit.count`,{description:`Number of git commits created`}),U.costCounter=t(`claude_code.cost.usage`,{description:`Cost of the Claude Code session`,unit:`USD`}),U.tokenCounter=t(`claude_code.token.usage`,{description:`Number of tokens used`,unit:`tokens`}),U.codeEditToolDecisionCounter=t(`claude_code.code_edit_tool.decision`,{description:`Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools`}),U.activeTimeCounter=t(`claude_code.active_time.total`,{description:`Total active time in seconds`,unit:`s`})}function Re(){return U.sessionCounter}function ze(){return U.locCounter}function Be(){return U.costCounter}function Ve(){return U.tokenCounter}function He(){return U.codeEditToolDecisionCounter}function Ue(){return U.activeTimeCounter}function V(){return!U.isInteractive}function We(){return U.isInteractive}function Ge(e){U.isInteractive=e}function Ke(){return U.clientType}function qe(e){U.clientType=e}function Je(){return U.sdkAgentProgressSummariesEnabled}function Ye(){return U.kairosActive}function Xe(e){U.kairosActive=e}function Ze(){return U.strictToolResultPairing}function Qe(){return U.userMsgOptIn}function $e(e){U.userMsgOptIn=e}function H(e){U.sessionSource=e}function et(e){U.questionPreviewFormat=e}function tt(){return U.flagSettingsPath}function nt(e){U.flagSettingsPath=e}function rt(){return U.flagSettingsInline}function it(){return U.sessionIngressToken}function at(e){U.sessionIngressToken=e}function ot(){return U.oauthTokenFromFd}function st(e){U.oauthTokenFromFd=e}function ct(){return U.apiKeyFromFd}function lt(e){U.apiKeyFromFd=e}function ut(e){U.lastAPIRequest=e}function dt(e){U.lastAPIRequestMessages=e}function ft(e){U.lastClassifierRequests=e}function pt(e){U.cachedClaudeMdContent=e}function mt(){return U.cachedClaudeMdContent}function ht(){return U.allowedSettingSources}function gt(e){U.allowedSettingSources=e}function _t(){return V()&&U.clientType!==`claude-vscode`}function vt(e){U.inlinePlugins=e}function yt(){return U.inlinePlugins}function bt(e){U.chromeFlagOverride=e}function xt(){return U.chromeFlagOverride}function St(e){U.useCoworkPlugins=e,r()}function Ct(){return U.useCoworkPlugins}function wt(e){U.sessionBypassPermissionsMode=e}function Tt(){return U.sessionBypassPermissionsMode}function Et(e){U.scheduledTasksEnabled=e}function Dt(){return U.scheduledTasksEnabled}function Ot(){return U.sessionCronTasks}function kt(e){U.sessionCronTasks.push(e)}function At(e){if(e.length===0)return 0;let t=new Set(e),n=U.sessionCronTasks.filter(e=>!t.has(e.id)),r=U.sessionCronTasks.length-n.length;return r===0?0:(U.sessionCronTasks=n,r)}function jt(e){U.sessionTrustAccepted=e}function Mt(){return U.sessionTrustAccepted}function Nt(e){U.sessionPersistenceDisabled=e}function Pt(){return U.sessionPersistenceDisabled}function Ft(){return U.hasExitedPlanMode}function It(e){U.hasExitedPlanMode=e}function Lt(){return U.needsPlanModeExitAttachment}function Rt(e){U.needsPlanModeExitAttachment=e}function zt(e,t){t===`plan`&&e!==`plan`&&(U.needsPlanModeExitAttachment=!1),e===`plan`&&t!==`plan`&&(U.needsPlanModeExitAttachment=!0)}function Bt(){return U.needsAutoModeExitAttachment}function Vt(e){U.needsAutoModeExitAttachment=e}function Ht(e,t){if(e===`auto`&&t===`plan`||e===`plan`&&t===`auto`)return;let n=e===`auto`,r=t===`auto`;r&&!n&&(U.needsAutoModeExitAttachment=!1),n&&!r&&(U.needsAutoModeExitAttachment=!0)}function Ut(){return U.lspRecommendationShownThisSession}function Wt(e){U.lspRecommendationShownThisSession=e}function Gt(e){U.registeredHooks||(U.registeredHooks={});for(let[t,n]of Object.entries(e)){let e=t;U.registeredHooks[e]||(U.registeredHooks[e]=[]),U.registeredHooks[e].push(...n??[])}}function Kt(){return U.registeredHooks}function qt(){if(!U.registeredHooks)return;let e={};for(let[t,n]of Object.entries(U.registeredHooks)){let r=(n??[]).filter(e=>!(`pluginRoot`in e));r.length>0&&(e[t]=r)}U.registeredHooks=Object.keys(e).length>0?e:null}function Jt(){return U.planSlugCache}function Yt(e,t){if(U.planSlugCache.size>=50){let e=U.planSlugCache.keys().next().value;e!==void 0&&U.planSlugCache.delete(e)}U.planSlugCache.set(e,t)}function Xt(){return U.sessionCreatedTeams}function Zt(e){U.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:e.sessionId}}function Qt(e,t,n,r=null){let i=`${r??``}:${e}`;U.invokedSkills.set(i,{skillName:e,skillPath:t,content:n,invokedAt:Date.now(),agentId:r})}function $t(e){let t=e??null,n=new Map;for(let[e,r]of U.invokedSkills)r.agentId===t&&n.set(e,r);return n}function en(e){if(!e||e.size===0){U.invokedSkills.clear();return}for(let[t,n]of U.invokedSkills)(n.agentId===null||!e.has(n.agentId))&&U.invokedSkills.delete(t)}function tn(){if(U.slowOperations.length===0)return $;let e=Date.now();return U.slowOperations.some(t=>e-t.timestamp>=Q)&&(U.slowOperations=U.slowOperations.filter(t=>e-t.timestamp<Q),U.slowOperations.length===0)?$:U.slowOperations}function nn(){return U.mainThreadAgentType}function rn(e){U.mainThreadAgentType=e}function an(){return U.isRemoteMode}function on(e){U.isRemoteMode=e}function sn(){return U.systemPromptSectionCache}function cn(e,t){if(U.systemPromptSectionCache.size>=100){let e=U.systemPromptSectionCache.keys().next().value;e!==void 0&&U.systemPromptSectionCache.delete(e)}U.systemPromptSectionCache.set(e,t)}function ln(){U.systemPromptSectionCache.clear()}function un(){return U.lastEmittedDate}function dn(e){U.lastEmittedDate=e}function fn(){return U.additionalDirectoriesForClaudeMd}function pn(e){U.additionalDirectoriesForClaudeMd=e}function mn(){return U.allowedChannels}function hn(e){U.allowedChannels=e}function gn(){return U.hasDevChannels}function _n(e){U.hasDevChannels=e}function vn(){U.afkModeHeaderLatched=null,U.fastModeHeaderLatched=null,U.cacheEditingHeaderLatched=null}function yn(){return U.promptId}var U,W,G,K,q,J,Y,X,Z,Q,$,bn=e((()=>{s(),t(),o(),i(),U=te(),W=c(),G=W.subscribe,q=0,J=null,Y=0,X=!1,Z=150,Q=1e4,$=[]}));export{Je as $,b as $t,yt as A,Rt as An,me as At,xe as B,Nt as Bn,be as Bt,he as C,ft as Cn,L as Ct,tt as D,rn as Dn,T as Dt,rt as E,je as En,O as Et,Te as F,et as Fn,Qe as Ft,ot as G,Zt as Gn,Lt as Gt,ke as H,jt as Hn,bn as Ht,Ye as I,Et as In,Ht as It,Jt as J,ge as Jn,re as Jt,se as K,St as Kn,G as Kt,Se as L,Pe as Ln,zt as Lt,We as M,le as Mn,S as Mt,V as N,Yt as Nn,Oe as Nt,gn as O,Le as On,x as Ot,an as P,ue as Pn,Ct as Pt,Dt as Q,D as Qt,un as R,wt as Rn,Ft as Rt,Be as S,Ce as Sn,F as St,pe as T,Wt as Tn,B as Tt,nn as U,A as Un,Pt as Ut,ze as V,H as Vn,ve as Vt,De as W,cn as Wn,Bt as Wt,yn as X,j as Xn,At as Xt,ce as Y,ae as Yn,Gt as Yt,Kt as Z,Ee as Zn,Fe as Zt,_e as _,Ge as _n,R as _t,N as a,pt as an,ne as at,Ke as b,ut as bn,I as bt,vn as c,Ie as cn,Mt as ct,ln as d,nt as dn,Ze as dt,C as en,Ne as et,Ue as f,_n as fn,sn as ft,ct as g,vt as gn,z as gt,ht as h,Me as hn,h as ht,d as i,lt as in,Ot as it,$t as j,st as jn,w as jt,Ae as k,Vt as kn,v as kt,en as l,fe as ln,tn as lt,mn as m,ye as mn,p as mt,kt as n,hn as nn,Re as nt,E as o,bt as on,it as ot,fn as p,It as pn,Ve as pt,ie as q,$e as qn,_t as qt,_ as r,gt as rn,Xt as rt,y as s,qe as sn,oe as st,Qt as t,pn as tn,Tt as tt,qt as u,u as un,k as ut,mt as v,on as vn,f as vt,de as w,dn as wn,g as wt,He as x,dt as xn,P as xt,xt as y,Xe as yn,m as yt,we as z,at as zn,Ut as zt};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-CFG7IQID.js";import{dirname as r,join as i}from"path";import{mkdirSync as a,readFileSync as o,unlinkSync as s,writeFileSync as c}from"fs";function l(e=`remote-control`){return i(t(),`daemon`,`${e}.json`)}function u(e,t=`remote-control`){let n=l(t);a(r(n),{recursive:!0}),c(n,JSON.stringify(e,null,2),`utf-8`)}function d(e=`remote-control`){let t=l(e);try{let e=o(t,`utf-8`);return JSON.parse(e)}catch{return null}}function f(e=`remote-control`){let t=l(e);try{s(t)}catch{}}function p(e){try{return process.kill(e,0),!0}catch{return!1}}function m(e=`remote-control`){let t=d(e);return t?p(t.pid)?{status:`running`,state:t}:(f(e),{status:`stale`}):{status:`stopped`}}async function h(e=`remote-control`,t=1e4){let n=d(e);if(!n)return!1;let{pid:r}=n;if(!p(r))return f(e),!1;try{process.kill(r,`SIGTERM`)}catch{return f(e),!1}let i=Date.now()+t;for(;Date.now()<i;){if(!p(r))return f(e),!0;await new Promise(e=>setTimeout(e,200))}try{process.kill(r,`SIGKILL`)}catch{}return await new Promise(e=>setTimeout(e,500)),f(e),!0}var g=e((()=>{n()}));export{u as a,h as i,m as n,f as r,g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{H as n,Mt as r,Rn as i,Tn as a,t as o,wn as s}from"./src-DNHWYkls.js";import{t as c}from"./jsx-runtime-BTgGEFjL.js";import{PassThrough as l}from"stream";function u({children:e}){let{exit:t}=n();return(0,m.useLayoutEffect)(()=>{let e=setTimeout(t,0);return()=>clearTimeout(e)},[t]),(0,h.jsx)(h.Fragment,{children:e})}function d(e){let t=e.indexOf(g);if(t===-1)return e;let n=t+8,r=e.indexOf(_,n);return r===-1?e:e.slice(n,r)}async function f(e,t){let n=``,i=new l;return t!==void 0&&(i.columns=t),i.on(`data`,e=>{n+=e.toString()}),await(await r((0,h.jsx)(u,{children:e}),{stdout:i,patchConsole:!1})).waitUntilExit(),d(n)}async function p(e,t){return a(await f(e,t))}var m,h,g,_,v=e((()=>{i(),m=t(i(),1),s(),o(),h=c(),g=`\x1B[?2026h`,_=`\x1B[?2026l`}));export{f as n,p as r,v as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-DR8-3Aex.js";import{Rn as t}from"./src-DNHWYkls.js";import{t as n}from"./jsx-runtime-BTgGEFjL.js";import{_s as r,bs as i}from"./growthbook-p4aJ_UMv.js";var a=e(t(),1);r();var o=n();function s(e,t){let n=t/100*(e.length-1),r=Math.floor(n),i=Math.ceil(n);return r===i?e[r]:e[r]+(e[i]-e[r])*(n-r)}var c=1024;function l(){let e=new Map,t=new Map,n=new Map;return{increment(t,n=1){e.set(t,(e.get(t)??0)+n)},set(t,n){e.set(t,n)},observe(e,n){let r=t.get(e);if(r||(r={reservoir:[],count:0,sum:0,min:n,max:n},t.set(e,r)),r.count++,r.sum+=n,n<r.min&&(r.min=n),n>r.max&&(r.max=n),r.reservoir.length<c)r.reservoir.push(n);else{let e=Math.floor(Math.random()*r.count);e<c&&(r.reservoir[e]=n)}},add(e,t){let r=n.get(e);r||(r=new Set,n.set(e,r)),r.add(t)},getAll(){let r=Object.fromEntries(e);for(let[e,n]of t){if(n.count===0)continue;r[`${e}_count`]=n.count,r[`${e}_min`]=n.min,r[`${e}_max`]=n.max,r[`${e}_avg`]=n.sum/n.count;let t=[...n.reservoir].sort((e,t)=>e-t);r[`${e}_p50`]=s(t,50),r[`${e}_p95`]=s(t,95),r[`${e}_p99`]=s(t,99)}for(let[e,t]of n)r[e]=t.size;return r}}}var u=(0,a.createContext)(null);function d({store:e,children:t}){let n=(0,a.useMemo)(()=>l(),[]),r=e??n;return(0,a.useEffect)(()=>{let e=()=>{let e=r.getAll();Object.keys(e).length>0&&i(t=>({...t,lastSessionMetrics:e}))};return process.on(`exit`,e),()=>{process.off(`exit`,e)}},[r]),(0,o.jsx)(u.Provider,{value:r,children:t})}export{l as n,d as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t}from"./src-DNHWYkls.js";import{t as n}from"./jsx-runtime-BTgGEFjL.js";import{n as r,t as i}from"./Settings-rOCxQdS8.js";async function a(e,t){return(0,o.jsx)(i,{onClose:e,context:t,defaultTab:`Status`})}var o;e((()=>{t(),r(),o=n()}))();export{a as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Xu as t,Yu as n}from"./loadAgentsDir-Bz0FfcVt.js";function r(e){return e?e.activeAgents.filter(e=>e.source!==`built-in`).reduce((e,n)=>e+t(`${n.agentType}: ${n.whenToUse}`),0):0}var i,a=e((()=>{n(),i=15e3}));export{r as n,a as r,i as t};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{B as t,T as n}from"./server-XZG51Slr.js";function r(e){return n.parse(JSON.parse(e))}function i(e){return JSON.stringify(e)+`
|
|
2
|
+
`}var a,o=e((()=>{t(),a=class{append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(`
|
|
3
|
+
`);if(e===-1)return null;let t=this._buffer.toString(`utf8`,0,e).replace(/\r$/,``);return this._buffer=this._buffer.subarray(e+1),r(t)}clear(){this._buffer=void 0}}}));export{o as n,i as r,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,r as n,t as r}from"./stdio-BuUJYJFs.js";import i from"node:process";var a,o=e((()=>{t(),a=class{constructor(e=i.stdin,t=i.stdout){this._stdin=e,this._stdout=t,this._readBuffer=new r,this._started=!1,this._ondata=e=>{this._readBuffer.append(e),this.processReadBuffer()},this._onerror=e=>{this.onerror?.(e)}}async start(){if(this._started)throw Error(`StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.`);this._started=!0,this._stdin.on(`data`,this._ondata),this._stdin.on(`error`,this._onerror)}processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e===null)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off(`data`,this._ondata),this._stdin.off(`error`,this._onerror),this._stdin.listenerCount(`data`)===0&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(t=>{let r=n(e);this._stdout.write(r)?t():this._stdout.once(`drain`,t)})}}}));export{o as n,a as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./browser-D1vC3BNd.js";async function r(){let e=`https://www.stickermule.com/claudecode`;return await t(e)?{type:`text`,value:`Opening sticker page in browser…`}:{type:`text`,value:`Failed to open browser. Visit: ${e}`}}e((()=>{n()}))();export{r as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";function t(e,t){i={...i,providerId:e,buckets:t},r()}function n(e,t){i={...i,providerId:e,...t===null?{balance:void 0}:{balance:t}},r()}function r(){for(let e of a)try{e(i)}catch{}}var i,a,o=e((()=>{i={providerId:`unknown`,buckets:[]},a=new Set}));export{n,t as r,o as t};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";function t(e,t){if(r===null){n.push({eventName:e,metadata:t,async:!1});return}r.logEvent(e,t)}var n,r,i=e((()=>{n=[],r=null}));function a(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function s(e,t,n=t+`s`){return e===1?t:n}function c(e){let t=e.indexOf(`
|
|
2
|
+
`);return t===-1?e:e.slice(0,t)}function l(e,t,n=0){let r=0,i=e.indexOf(t,n);for(;i!==-1;)r++,i=e.indexOf(t,i+1);return r}function u(e){return e.replace(/[0-9]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248))}function d(e){return e.replace(/\u3000/g,` `)}function f(e,t=`,`,n=m){let r=`...[truncated]`,i=``;for(let a of e){let e=i?t:``,o=e+a;if(i.length+o.length<=n)i+=o;else{let t=n-i.length-e.length-14;return t>0?i+=e+a.slice(0,t)+r:i+=r,i}}return i}function p(e,t){let n=e.split(`
|
|
3
|
+
`);return n.length<=t?e:n.slice(0,t).join(`
|
|
4
|
+
`)+`…`}var m,h=e((()=>{m=2**21}));export{h as a,s as c,i as d,t as f,c as i,f as l,l as n,u as o,a as r,d as s,o as t,p as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-CaCI0a5T.js";import{a as r,i,t as a}from"./dist-es-Cp--qjOi.js";import{A as o,C as s,D as c,E as l,F as u,I as d,L as ee,M as te,N as ne,O as re,P as ie,R as ae,S as f,T as oe,_ as se,a as ce,b as le,c as ue,d as de,f as fe,g as pe,h as me,i as he,j as ge,k as _e,l as ve,m as ye,n as be,o as xe,p as Se,r as Ce,t as we,u as Te,v as Ee,w as De,x as Oe,y as ke,z as Ae}from"./dist-es-dIP5JtXz.js";import{C as je,S as Me,c as Ne,d as Pe,f as p,g as Fe,n as Ie,o as Le,s as Re,t as m,u as ze,v as Be}from"./httpAuthSchemes-CgPbtGos.js";import{n as Ve,r as He,t as Ue}from"./dist-es-BctcPxLN.js";import{i as We,n as Ge,t as Ke}from"./dist-es-6kjvVbJd.js";import{I as qe,L as Je,N as Ye,P as Xe,R as Ze,v as Qe,x as $e,y as et,z as tt}from"./protocols-CpoQzjyI.js";import{n as nt,t as rt}from"./dist-es-C66BuLgn.js";import{a as it,d as at,g as ot,h as st,i as ct,m as lt,n as ut,o as dt,r as ft,t as pt,u as mt}from"./dist-es-Bu21Wvhs.js";import{g as ht,h as gt,i as _t,p as vt,t as yt}from"./client-CinDjeSq.js";import{n as h,t as bt}from"./dist-es-BismPcTW.js";import{a as xt,c as St,d as Ct,f as wt,i as Tt,n as Et,o as Dt,s as Ot,t as g,u as kt}from"./dist-es-C_IHUdzL.js";import{n as At,t as jt}from"./dist-es-Bf2jR30y.js";import{n as Mt,t as Nt}from"./package-9IAs5Qf0.js";var _,v,y,b,Pt,x,S,C,w,T,E,Ft,It,D,O,k,Lt,A,Rt,j,zt,Bt,Vt=e((()=>{mt(),_=`ref`,v=-1,y=!0,b=`isSet`,Pt=`PartitionResult`,x=`booleanEquals`,S=`stringEquals`,C=`getAttr`,w=`us-east-1`,T=`sigv4`,E=`sts`,Ft=`https://sts.{Region}.{PartitionResult#dnsSuffix}`,It={[_]:`Endpoint`},D={[_]:`Region`},O={[_]:Pt},k={},Lt=[D],A={conditions:[[b,[It]],[b,Lt],[`aws.partition`,Lt,Pt],[x,[{[_]:`UseFIPS`},y]],[x,[{[_]:`UseDualStack`},y]],[S,[D,`aws-global`]],[x,[{[_]:`UseGlobalEndpoint`},y]],[S,[D,`eu-central-1`]],[x,[{fn:C,argv:[O,`supportsDualStack`]},y]],[x,[{fn:C,argv:[O,`supportsFIPS`]},y]],[S,[D,`ap-south-1`]],[S,[D,`eu-north-1`]],[S,[D,`eu-west-1`]],[S,[D,`eu-west-2`]],[S,[D,`eu-west-3`]],[S,[D,`sa-east-1`]],[S,[D,w]],[S,[D,`us-east-2`]],[S,[D,`us-west-2`]],[S,[D,`us-west-1`]],[S,[D,`ca-central-1`]],[S,[D,`ap-southeast-1`]],[S,[D,`ap-northeast-1`]],[S,[D,`ap-southeast-2`]],[S,[{fn:C,argv:[O,`name`]},`aws-us-gov`]]],results:[[v],[`https://sts.amazonaws.com`,{authSchemes:[{name:T,signingName:E,signingRegion:w}]}],[Ft,{authSchemes:[{name:T,signingName:E,signingRegion:`{Region}`}]}],[v,`Invalid Configuration: FIPS and custom endpoint are not supported`],[v,`Invalid Configuration: Dualstack and custom endpoint are not supported`],[It,k],[`https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}`,k],[v,`FIPS and DualStack are enabled, but this partition does not support one or both`],[`https://sts.{Region}.amazonaws.com`,k],[`https://sts-fips.{Region}.{PartitionResult#dnsSuffix}`,k],[v,`FIPS is enabled but this partition does not support FIPS`],[`https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}`,k],[v,`DualStack is enabled but this partition does not support DualStack`],[Ft,k],[v,`Invalid Configuration: Missing Region`]]},Rt=2,j=1e8,zt=new Int32Array([-1,1,-1,0,30,3,1,4,j+14,2,5,j+14,3,25,6,4,24,7,5,j+1,8,6,9,j+13,7,j+1,10,10,j+1,11,11,j+1,12,12,j+1,13,13,j+1,14,14,j+1,15,15,j+1,16,16,j+1,17,17,j+1,18,18,j+1,19,19,j+1,20,20,j+1,21,21,j+1,22,22,j+1,23,23,j+1,j+2,8,j+11,j+12,4,28,26,9,27,j+10,24,j+8,j+9,8,29,j+7,9,j+6,j+7,3,j+3,31,4,j+4,j+5]),Bt=ot.from(zt,Rt,A.conditions,A.results)})),Ht,M,Ut=e((()=>{o(),mt(),Vt(),Ht=new st({size:50,params:[`Endpoint`,`Region`,`UseDualStack`,`UseFIPS`,`UseGlobalEndpoint`]}),M=(e,t={})=>Ht.get(e,()=>at(Bt,{endpointParams:e,logger:t.logger})),lt.aws=ge}));function Wt(e){return{schemeId:`aws.auth#sigv4`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Gt(e){return{schemeId:`aws.auth#sigv4a`,signingProperties:{name:`sts`,region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}function Kt(e){return{schemeId:`smithy.api#noAuth`}}var qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn=e((()=>{m(),jt(),f(),Ue(),Ut(),$(),qt=e=>async(t,n,r)=>{if(!r)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let i=await e(t,n,r),a=He(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!a)throw Error(`getEndpointParameterInstructions() is not defined on '${n.commandName}'`);let o=await oe(r,{getEndpointParameterInstructions:a},t);return Object.assign(i,o)},Jt=async(e,t,n)=>({operation:He(t).operation,region:await Ve(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Yt=qt(Jt),Xt=(e,t,n)=>r=>{let i=e(r).properties?.authSchemes;if(!i)return t(r);let a=[];for(let e of i){let{name:t,properties:o={},...s}=e,c=t.toLowerCase();t!==c&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${t}' to '${c}'`);let l;if(c===`sigv4a`){l=`aws.auth#sigv4a`;let e=i.find(e=>{let t=e.name.toLowerCase();return t!==`sigv4a`&&t.startsWith(`sigv4`)});if(At.sigv4aDependency()===`none`&&e)continue}else if(c.startsWith(`sigv4`))l=`aws.auth#sigv4`;else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${c}'`);let u=n[l];if(!u)throw Error(`Could not find HttpAuthOption create function for '${l}'`);let d=u(r);d.schemeId=l,d.signingProperties={...d.signingProperties||{},...s,...o},a.push(d)}return a},Zt=e=>{let t=[];switch(e.operation){case`AssumeRoleWithWebIdentity`:t.push(Kt(e)),t.push(Gt(e));break;default:t.push(Wt(e)),t.push(Gt(e))}return t},Qt=Xt(M,Zt,{"aws.auth#sigv4":Wt,"aws.auth#sigv4a":Gt,"smithy.api#noAuth":Kt}),$t=e=>Object.assign(e,{stsClientCtor:Q}),en=e=>{let t=Re(Ie($t(e)));return Object.assign(t,{authSchemePreference:Ve(e.authSchemePreference??[])})}})),nn,rn,an=e((()=>{nn=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:`sts`}),rn={UseGlobalEndpoint:{type:`builtInParams`,name:`useGlobalEndpoint`},UseFIPS:{type:`builtInParams`,name:`useFipsEndpoint`},Endpoint:{type:`builtInParams`,name:`endpoint`},Region:{type:`builtInParams`,name:`region`},UseDualStack:{type:`builtInParams`,name:`useDualstackEndpoint`}}})),N,P=e((()=>{g(),N=class e extends St{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}})),on,sn,cn,ln,un,dn,fn,pn=e((()=>{P(),t(),on=class e extends N{constructor(t){super({name:`ExpiredTokenException`,$fault:`client`,...t}),n(this,`name`,`ExpiredTokenException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},sn=class e extends N{constructor(t){super({name:`MalformedPolicyDocumentException`,$fault:`client`,...t}),n(this,`name`,`MalformedPolicyDocumentException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},cn=class e extends N{constructor(t){super({name:`PackedPolicyTooLargeException`,$fault:`client`,...t}),n(this,`name`,`PackedPolicyTooLargeException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},ln=class e extends N{constructor(t){super({name:`RegionDisabledException`,$fault:`client`,...t}),n(this,`name`,`RegionDisabledException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},un=class e extends N{constructor(t){super({name:`IDPRejectedClaimException`,$fault:`client`,...t}),n(this,`name`,`IDPRejectedClaimException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},dn=class e extends N{constructor(t){super({name:`InvalidIdentityTokenException`,$fault:`client`,...t}),n(this,`name`,`InvalidIdentityTokenException`),n(this,`$fault`,`client`),Object.setPrototypeOf(this,e.prototype)}},fn=class e extends N{constructor(t){super({name:`IDPCommunicationErrorException`,$fault:`client`,...t}),n(this,`name`,`IDPCommunicationErrorException`),n(this,`$fault`,`client`),n(this,`$retryable`,{}),Object.setPrototypeOf(this,e.prototype)}}})),mn,hn,gn,_n,vn,yn,F,bn,xn,Sn,Cn,I,wn,L,Tn,En,Dn,On,kn,An,jn,Mn,R,z,Nn,Pn,Fn,In,Ln,Rn,B,zn,Bn,V,Vn,H,Hn,Un,U,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,W,G,er,K,q,J,tr,nr,rr,Y,ir,ar,X,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Z=e((()=>{Qe(),pn(),P(),mn=`Arn`,hn=`AccessKeyId`,gn=`AssumeRole`,_n=`AssumedRoleId`,vn=`AssumeRoleRequest`,yn=`AssumeRoleResponse`,F=`AssumedRoleUser`,bn=`AssumeRoleWithWebIdentity`,xn=`AssumeRoleWithWebIdentityRequest`,Sn=`AssumeRoleWithWebIdentityResponse`,Cn=`Audience`,I=`Credentials`,wn=`ContextAssertion`,L=`DurationSeconds`,Tn=`Expiration`,En=`ExternalId`,Dn=`ExpiredTokenException`,On=`IDPCommunicationErrorException`,kn=`IDPRejectedClaimException`,An=`InvalidIdentityTokenException`,jn=`Key`,Mn=`MalformedPolicyDocumentException`,R=`Policy`,z=`PolicyArns`,Nn=`ProviderArn`,Pn=`ProvidedContexts`,Fn=`ProvidedContextsListType`,In=`ProvidedContext`,Ln=`PolicyDescriptorType`,Rn=`ProviderId`,B=`PackedPolicySize`,zn=`PackedPolicyTooLargeException`,Bn=`Provider`,V=`RoleArn`,Vn=`RegionDisabledException`,H=`RoleSessionName`,Hn=`SecretAccessKey`,Un=`SubjectFromWebIdentityToken`,U=`SourceIdentity`,Wn=`SerialNumber`,Gn=`SessionToken`,Kn=`Tags`,qn=`TokenCode`,Jn=`TransitiveTagKeys`,Yn=`Tag`,Xn=`Value`,Zn=`WebIdentityToken`,Qn=`arn`,$n=`accessKeySecretType`,W=`awsQueryError`,G=`client`,er=`clientTokenType`,K=`error`,q=`httpError`,J=`message`,tr=`policyDescriptorListType`,nr=`smithy.ts.sdk.synthetic.com.amazonaws.sts`,rr=`tagListType`,Y=`com.amazonaws.sts`,ir=et.for(nr),ar=[-3,nr,`STSServiceException`,0,[],[]],ir.registerError(ar,N),X=et.for(Y),or=[-3,Y,Dn,{[W]:[`ExpiredTokenException`,400],[K]:G,[q]:400},[J],[0]],X.registerError(or,on),sr=[-3,Y,On,{[W]:[`IDPCommunicationError`,400],[K]:G,[q]:400},[J],[0]],X.registerError(sr,fn),cr=[-3,Y,kn,{[W]:[`IDPRejectedClaim`,403],[K]:G,[q]:403},[J],[0]],X.registerError(cr,un),lr=[-3,Y,An,{[W]:[`InvalidIdentityToken`,400],[K]:G,[q]:400},[J],[0]],X.registerError(lr,dn),ur=[-3,Y,Mn,{[W]:[`MalformedPolicyDocument`,400],[K]:G,[q]:400},[J],[0]],X.registerError(ur,sn),dr=[-3,Y,zn,{[W]:[`PackedPolicyTooLarge`,400],[K]:G,[q]:400},[J],[0]],X.registerError(dr,cn),fr=[-3,Y,Vn,{[W]:[`RegionDisabledException`,403],[K]:G,[q]:403},[J],[0]],X.registerError(fr,ln),pr=[ir,X],mr=[0,Y,$n,8,0],hr=[0,Y,er,8,0],gr=[3,Y,F,0,[_n,mn],[0,0],2],_r=[3,Y,vn,0,[V,H,z,R,L,Kn,Jn,En,Wn,qn,U,Pn],[0,0,()=>Tr,0,1,()=>Dr,64,0,0,0,0,()=>Er],2],vr=[3,Y,yn,0,[I,F,B,U],[[()=>xr,0],()=>gr,1,0]],yr=[3,Y,xn,0,[V,H,Zn,Rn,z,R,L],[0,0,[()=>hr,0],0,()=>Tr,0,1],3],br=[3,Y,Sn,0,[I,Un,F,B,Bn,Cn,U],[[()=>xr,0],0,()=>gr,1,0,0,0]],xr=[3,Y,I,0,[hn,Hn,Gn,Tn],[0,[()=>mr,0],0,4],4],Sr=[3,Y,Ln,0,[Qn],[0]],Cr=[3,Y,In,0,[Nn,wn],[0,0]],wr=[3,Y,Yn,0,[jn,Xn],[0,0],2],Tr=[1,Y,tr,0,()=>Sr],Er=[1,Y,Fn,0,()=>Cr],Dr=[1,Y,rr,0,()=>wr],Or=[9,Y,gn,0,()=>_r,()=>vr],kr=[9,Y,bn,0,()=>yr,()=>br]})),Ar,jr=e((()=>{m(),ce(),jt(),p(),g(),rt(),Je(),Ke(),tn(),Ut(),Z(),Ar=e=>({apiVersion:`2011-06-15`,base64Decoder:e?.base64Decoder??tt,base64Encoder:e?.base64Encoder??Ze,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??M,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Qt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4`),signer:new Pe},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new ze},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new Fe}],logger:e?.logger??new Et,protocol:e?.protocol??xe,protocolSettings:e?.protocolSettings??{defaultNamespace:`com.amazonaws.sts`,errorTypeRegistries:pr,xmlNamespace:`https://sts.amazonaws.com/doc/2011-06-15/`,version:`2011-06-15`,serviceTarget:`AWSSecurityTokenServiceV20110615`},serviceId:e?.serviceId??`STS`,signerConstructor:e?.signerConstructor??At,urlParser:e?.urlParser??nt,utf8Decoder:e?.utf8Decoder??We,utf8Encoder:e?.utf8Encoder??Ge})})),Mr,Nr=e((()=>{Nt(),yt(),m(),ye(),pt(),p(),Se(),se(),bt(),Ye(),g(),Te(),ue(),_t(),jr(),Mr=e=>{Dt(process.version);let t=ve(e),n=()=>t().then(Ot),r=Ar(e);ht(process.version);let i={profile:e?.profile,logger:r.logger};return{...r,...e,runtime:`node`,defaultsMode:t,authSchemePreference:e?.authSchemePreference??h(Ne,i),bodyLengthChecker:e?.bodyLengthChecker??de,defaultUserAgentProvider:e?.defaultUserAgentProvider??pe({serviceId:r.serviceId,clientVersion:Mt.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:`aws.auth#sigv4`,identityProvider:t=>t.getIdentityProvider(`aws.auth#sigv4`)||(async t=>await e.credentialDefaultProvider(t?.__config||{})()),signer:new Pe},{schemeId:`aws.auth#sigv4a`,identityProvider:e=>e.getIdentityProvider(`aws.auth#sigv4a`),signer:new ze},{schemeId:`smithy.api#noAuth`,identityProvider:e=>e.getIdentityProvider(`smithy.api#noAuth`)||(async()=>({})),signer:new Fe}],maxAttempts:e?.maxAttempts??h(ke,e),region:e?.region??h(ct,{...ft,...i}),requestHandler:qe.create(e?.requestHandler??n),retryMode:e?.retryMode??h({...le,default:async()=>(await n()).retryMode||vt},e),sha256:e?.sha256??fe.bind(null,`sha256`),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??h(Le,i),streamCollector:e?.streamCollector??Xe,useDualstackEndpoint:e?.useDualstackEndpoint??h(dt,i),useFipsEndpoint:e?.useFipsEndpoint??h(it,i),userAgentAppId:e?.userAgentAppId??h(me,i)}}})),Pr,Fr,Ir=e((()=>{Pr=e=>{let t=e.httpAuthSchemes,n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(e){let n=t.findIndex(t=>t.schemeId===e.schemeId);n===-1?t.push(e):t.splice(n,1,e)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){r=e},credentials(){return r}}},Fr=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()})})),Lr,Rr=e((()=>{we(),a(),g(),Ir(),Lr=(e,t)=>{let n=Object.assign(Ce(e),Tt(e),i(e),Pr(e));return t.forEach(e=>e.configure(n)),Object.assign(e,he(n),xt(n),r(n),Fr(n))}})),Q,$=e((()=>{ae(),u(),ne(),re(),pt(),p(),Qe(),c(),f(),se(),g(),tn(),an(),Nr(),Rr(),t(),Q=class extends wt{constructor(...[e]){let t=Mr(e||{});super(t),n(this,`config`,void 0),this.initConfig=t,this.config=Lr(en(s(Ae(ut(Oe(te(nn(t))))))),e?.extensions||[]),this.middlewareStack.use($e(this.config)),this.middlewareStack.use(_e(this.config)),this.middlewareStack.use(Ee(this.config)),this.middlewareStack.use(l(this.config)),this.middlewareStack.use(ee(this.config)),this.middlewareStack.use(d(this.config)),this.middlewareStack.use(ie(this.config)),this.middlewareStack.use(je(this.config,{httpAuthSchemeParametersProvider:Yt,identityProviderConfigProvider:async e=>new Be({"aws.auth#sigv4":e.credentials,"aws.auth#sigv4a":e.credentials})})),this.middlewareStack.use(Me(this.config))}destroy(){super.destroy()}}})),zr,Br=e((()=>{f(),g(),an(),Z(),zr=class extends Ct.classBuilder().ep(rn).m(function(e,t,n,r){return[De(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRole`,{}).n(`STSClient`,`AssumeRoleCommand`).sc(Or).build(){}})),Vr,Hr=e((()=>{f(),g(),an(),Z(),Vr=class extends Ct.classBuilder().ep(rn).m(function(e,t,n,r){return[De(n,e.getEndpointParameterInstructions())]}).s(`AWSSecurityTokenServiceV20110615`,`AssumeRoleWithWebIdentity`,{}).n(`STSClient`,`AssumeRoleWithWebIdentityCommand`).sc(kr).build(){}})),Ur,Wr,Gr=e((()=>{g(),Br(),Hr(),$(),Ur={AssumeRoleCommand:zr,AssumeRoleWithWebIdentityCommand:Vr},Wr=class extends Q{},kt(Ur,Wr)})),Kr=e((()=>{Br(),Hr()})),qr=e((()=>{})),Jr,Yr,Xr,Zr,Qr,$r=e((()=>{yt(),we(),Br(),Hr(),Jr=e=>{if(typeof e?.Arn==`string`){let t=e.Arn.split(`:`);if(t.length>4&&t[4]!==``)return t[4]}},Yr=async(e,t,n,r={})=>{let i=typeof e==`function`?await e():e,a=typeof t==`function`?await t():t,o=``,s=i??a??(o=await be(r)());return n?.debug?.(`@aws-sdk/client-sts::resolveRegion`,`accepting first of:`,`${i} (credential provider clientConfig)`,`${a} (contextual client)`,`${o} (STS default: AWS_REGION, profile region, or us-east-1)`),s},Xr=(e,t)=>{let n,r;return async(i,a)=>{if(r=i,!n){let{logger:i=e?.parentClientConfig?.logger,profile:a=e?.parentClientConfig?.profile,region:o,requestHandler:s=e?.parentClientConfig?.requestHandler,credentialProviderLogger:c,userAgentAppId:l=e?.parentClientConfig?.userAgentAppId}=e,u=await Yr(o,e?.parentClientConfig?.region,c,{logger:i,profile:a}),d=!Qr(s);n=new t({...e,userAgentAppId:l,profile:a,credentialDefaultProvider:()=>async()=>r,region:u,requestHandler:d?s:void 0,logger:i})}let{Credentials:o,AssumedRoleUser:s}=await n.send(new zr(a));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${a.RoleArn}`);let c=Jr(s),l={accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration,...o.CredentialScope&&{credentialScope:o.CredentialScope},...c&&{accountId:c}};return gt(l,`CREDENTIALS_STS_ASSUME_ROLE`,`i`),l}},Zr=(e,t)=>{let n;return async r=>{if(!n){let{logger:r=e?.parentClientConfig?.logger,profile:i=e?.parentClientConfig?.profile,region:a,requestHandler:o=e?.parentClientConfig?.requestHandler,credentialProviderLogger:s,userAgentAppId:c=e?.parentClientConfig?.userAgentAppId}=e,l=await Yr(a,e?.parentClientConfig?.region,s,{logger:r,profile:i}),u=!Qr(o);n=new t({...e,userAgentAppId:c,profile:i,region:l,requestHandler:u?o:void 0,logger:r})}let{Credentials:i,AssumedRoleUser:a}=await n.send(new Vr(r));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);let o=Jr(a),s={accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration,...i.CredentialScope&&{credentialScope:i.CredentialScope},...o&&{accountId:o}};return o&>(s,`RESOLVED_ACCOUNT_ID`,`T`),gt(s,`CREDENTIALS_STS_ASSUME_ROLE_WEB_ID`,`k`),s}},Qr=e=>e?.metadata?.handlerProtocol===`h2`})),ei,ti,ni,ri=e((()=>{$r(),$(),ei=(e,t)=>t?class extends e{constructor(e){super(e);for(let e of t)this.middlewareStack.use(e)}}:e,ti=(e={},t)=>Xr(e,ei(Q,t)),ni=(e={},t)=>Zr(e,ei(Q,t))}));e((()=>{$(),Gr(),Kr(),Z(),pn(),qr(),ri(),P()}))();export{ti as getDefaultRoleAssumer,ni as getDefaultRoleAssumerWithWebIdentity};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t,u as n}from"./envUtils-CFG7IQID.js";function r(e){o=e}function i(){let e=o?.()??{};if(!n(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(e).length>0?{...process.env,...e}:process.env;let t={...process.env,...e};for(let e of a)delete t[e],delete t[`INPUT_${e}`];return t}var a,o,s=e((()=>{t(),a=[`ANTHROPIC_API_KEY`,`CLAUDE_CODE_OAUTH_TOKEN`,`ANTHROPIC_AUTH_TOKEN`,`ANTHROPIC_FOUNDRY_API_KEY`,`ANTHROPIC_CUSTOM_HEADERS`,`OTEL_EXPORTER_OTLP_HEADERS`,`OTEL_EXPORTER_OTLP_LOGS_HEADERS`,`OTEL_EXPORTER_OTLP_METRICS_HEADERS`,`OTEL_EXPORTER_OTLP_TRACES_HEADERS`,`AWS_SECRET_ACCESS_KEY`,`AWS_SESSION_TOKEN`,`AWS_BEARER_TOKEN_BEDROCK`,`GOOGLE_APPLICATION_CREDENTIALS`,`AZURE_CLIENT_SECRET`,`AZURE_CLIENT_CERTIFICATE_PATH`,`ACTIONS_ID_TOKEN_REQUEST_TOKEN`,`ACTIONS_ID_TOKEN_REQUEST_URL`,`ACTIONS_RUNTIME_TOKEN`,`ACTIONS_RUNTIME_URL`,`ALL_INPUTS`,`OVERRIDE_GITHUB_TOKEN`,`DEFAULT_WORKFLOW_TOKEN`,`SSH_SIGNING_KEY`]}));export{r as n,i as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./subprocessEnv-DKTILev5.js";t();export{e as registerUpstreamProxyEnvFn};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import n from"node:process";import r from"node:os";import i from"node:tty";var a=t({createSupportsColor:()=>u,default:()=>p});function o(e,t=globalThis.Deno?globalThis.Deno.args:n.argv){let r=e.startsWith(`-`)?``:e.length===1?`-`:`--`,i=t.indexOf(r+e),a=t.indexOf(`--`);return i!==-1&&(a===-1||i<a)}function s(){if(!(`FORCE_COLOR`in d))return;if(d.FORCE_COLOR===`true`)return 1;if(d.FORCE_COLOR===`false`)return 0;if(d.FORCE_COLOR.length===0)return 1;let e=Math.min(Number.parseInt(d.FORCE_COLOR,10),3);if([0,1,2,3].includes(e))return e}function c(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,{streamIsTTY:t,sniffFlags:i=!0}={}){let a=s();a!==void 0&&(f=a);let c=i?f:a;if(c===0)return 0;if(i){if(o(`color=16m`)||o(`color=full`)||o(`color=truecolor`))return 3;if(o(`color=256`))return 2}if(`TF_BUILD`in d&&`AGENT_NAME`in d)return 1;if(e&&!t&&c===void 0)return 0;let l=c||0;if(d.TERM===`dumb`)return l;if(n.platform===`win32`){let e=r.release().split(`.`);return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if(`CI`in d)return[`GITHUB_ACTIONS`,`GITEA_ACTIONS`,`CIRCLECI`].some(e=>e in d)?3:[`TRAVIS`,`APPVEYOR`,`GITLAB_CI`,`BUILDKITE`,`DRONE`].some(e=>e in d)||d.CI_NAME===`codeship`?1:l;if(`TEAMCITY_VERSION`in d)return+!!/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION);if(d.COLORTERM===`truecolor`||d.TERM===`xterm-kitty`||d.TERM===`xterm-ghostty`||d.TERM===`wezterm`)return 3;if(`TERM_PROGRAM`in d){let e=Number.parseInt((d.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(d.TERM_PROGRAM){case`iTerm.app`:return e>=3?3:2;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(d.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)||`COLORTERM`in d?1:l}function u(e,t={}){return c(l(e,{streamIsTTY:e&&e.isTTY,...t}))}var d,f,p,m=e((()=>{({env:d}=n),o(`no-color`)||o(`no-colors`)||o(`color=false`)||o(`color=never`)?f=0:(o(`color`)||o(`colors`)||o(`color=true`)||o(`color=always`))&&(f=1),p={stdout:u({isTTY:i.isatty(1)}),stderr:u({isTTY:i.isatty(2)})}}));export{m as n,a as r,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Ht as t,Wn as n,c as r,d as i,ft as a}from"./state-CUZTq6r0.js";function o(e,t){return{name:e,compute:t,cacheBreak:!1}}function s(e,t,n){return{name:e,compute:t,cacheBreak:!0}}async function c(e){let t=a();return Promise.all(e.map(async e=>{if(!e.cacheBreak&&t.has(e.name))return t.get(e.name)??null;let r=await e.compute();return n(e.name,r),r}))}function l(){i(),r()}var u=e((()=>{t()}));export{o as a,c as i,l as n,u as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./systemPromptSections-BnrxBWdc.js";t();export{e as clearSystemPromptSections};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";function t(){return i===void 0&&(i=r()??`dark`),i}function n(e){return e===`auto`?t():e}function r(){let e=process.env.COLORFGBG;if(!e)return;let t=e.split(`;`),n=t[t.length-1];if(n===void 0||n===``)return;let r=Number(n);if(!(!Number.isInteger(r)||r<0||r>15))return r<=6||r===8?`dark`:`light`}var i,a=e((()=>{}));export{n,a as t};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{In as n,Ln as r,Rn as i,b as a,f as o,t as s,x as c}from"./src-DNHWYkls.js";import{t as l}from"./jsx-runtime-BTgGEFjL.js";import{Ht as u,at as d}from"./state-CUZTq6r0.js";import{G as f,S as p,x as m}from"./privacyLevel-CRCHhztk.js";import{n as h,r as g}from"./analytics-i6X1et4O.js";import{RT as _,br as v,hr as y,nr as b,ui as x,zT as S}from"./loadAgentsDir-Bz0FfcVt.js";import{r as C,t as w}from"./sanitization-CIBpY9KT.js";function T({tagName:e,onConfirm:t,onCancel:n}){return(0,A.jsx)(o,{title:`Remove tag?`,subtitle:`Current tag: #${e}`,onCancel:n,color:`warning`,children:(0,A.jsxs)(c,{flexDirection:`column`,gap:1,children:[(0,A.jsx)(a,{children:`This will remove the tag from the current session.`}),(0,A.jsx)(_,{onChange:e=>e===`yes`?t():n(),options:[{label:`Yes, remove tag`,value:`yes`},{label:`No, keep tag`,value:`no`}]})]})})}function E({tagName:e,onDone:t}){let[r,i]=k.useState(!1),[a,o]=k.useState(null),s=C(e).trim();return k.useEffect(()=>{let e=d();if(!e){t(`No active session to tag`,{display:`system`});return}if(!s){t(`Tag name cannot be empty`,{display:`system`});return}o(e);let r=b(e);r===s?(g(`tengu_tag_command_remove_prompt`,{}),i(!0)):(g(`tengu_tag_command_add`,{is_replacing:!!r}),(async()=>{await x(e,s,y()),t(`Tagged session with ${n.cyan(`#${s}`)}`,{display:`system`})})())},[s,t]),r&&a?(0,A.jsx)(T,{tagName:s,onConfirm:async()=>{g(`tengu_tag_command_remove_confirmed`,{}),await x(a,``,y()),t(`Removed tag ${n.cyan(`#${s}`)}`,{display:`system`})},onCancel:()=>{g(`tengu_tag_command_remove_cancelled`,{}),t(`Kept tag ${n.cyan(`#${s}`)}`,{display:`system`})}}):null}function D({onDone:e}){return k.useEffect(()=>{e(`Usage: /tag <tag-name>
|
|
2
|
+
|
|
3
|
+
Toggle a searchable tag on the current session.
|
|
4
|
+
Run the same command again to remove the tag.
|
|
5
|
+
Tags are displayed after the branch name in /resume and can be searched with /.
|
|
6
|
+
|
|
7
|
+
Examples:
|
|
8
|
+
/tag bugfix # Add tag
|
|
9
|
+
/tag bugfix # Remove tag (toggle)
|
|
10
|
+
/tag feature-auth
|
|
11
|
+
/tag wip`,{display:`system`})},[e]),null}async function O(e,t,n){return n=n?.trim()||``,p.includes(n)||m.includes(n)||!n?(0,A.jsx)(D,{onDone:e}):(0,A.jsx)(E,{tagName:n,onDone:e})}var k,A;e((()=>{r(),k=t(i(),1),u(),S(),s(),f(),h(),w(),v(),A=l()}))();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t}from"./src-DNHWYkls.js";import{t as n}from"./jsx-runtime-BTgGEFjL.js";import{n as r,t as i}from"./BackgroundTasksDialog-XU_JPh7R.js";async function a(e,t){return(0,o.jsx)(i,{toolUseContext:t,onDone:e})}var o;e((()=>{t(),r(),o=n()}))();export{a as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{i as t,n,s as r,u as i}from"./envUtils-CFG7IQID.js";import{In as a,Ln as o,Mn as s,Tt as c,Xn as l,vt as u,wn as ee}from"./schemas-Bwt-7U5W.js";import{t as te}from"./v4-DLhvDPkt.js";import{Ht as d,N as ne,at as re,rt as f}from"./state-CUZTq6r0.js";import{B as p,D as m,E as ie,O as h,U as g,l as _,p as v,z as y}from"./debug-CjIaNjpK.js";import{_ as ae,v as oe}from"./git-Bj8Ow4pJ.js";import{o as se,s as b}from"./log-DVv8YiNo.js";import{n as ce,r as le}from"./execFileNoThrow-DdmR1mBS.js";import{C as ue,_ as de,a as fe,b as pe,f as me,g as he,l as ge,n as _e,w as x,x as ve}from"./teammate-C-FiRloZ.js";import{n as S,t as ye}from"./lazySchema-2sOku3cX.js";import{c as be}from"./constants-BfXy-5cI.js";import{join as C}from"path";import{mkdirSync as xe,readFileSync as Se,writeFileSync as Ce}from"fs";import{mkdir as w,readFile as T,readdir as E,rm as D,unlink as we,writeFile as O}from"fs/promises";function Te(e){H!==e&&(H=e,k())}function k(){try{V.emit()}catch{}}function A(e){return C(N(e),Le)}async function j(e){let t=A(e);try{let e=(await T(t,`utf-8`)).trim(),n=parseInt(e,10);return isNaN(n)?0:n}catch{return 0}}async function Ee(e,t){await O(A(e),String(t))}function De(){return i(process.env.CLAUDE_CODE_ENABLE_TASKS)?!0:!ne()}async function Oe(e){let t=N(e),n=await B(e),r;try{r=await x(n,q);let i=await F(e);i>0&&i>await j(e)&&await Ee(e,i);let a;try{a=await E(t)}catch{a=[]}for(let e of a)if(e.endsWith(`.json`)&&!e.startsWith(`.`)){let n=C(t,e);try{await we(n)}catch{}}k()}finally{r&&await r()}}function ke(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let e=he();return e?e.teamName:fe()||H||re()}function M(e){return e.replace(/[^a-zA-Z0-9_-]/g,`-`)}function N(e){return C(n(),`tasks`,M(e))}function P(e,t){return C(N(e),`${M(t)}.json`)}async function Ae(e){let t=N(e);try{await w(t,{recursive:!0})}catch{}}async function F(e){let t=N(e),n;try{n=await E(t)}catch{return 0}let r=0;for(let e of n){if(!e.endsWith(`.json`))continue;let t=parseInt(e.replace(`.json`,``),10);!isNaN(t)&&t>r&&(r=t)}return r}async function je(e){let[t,n]=await Promise.all([F(e),j(e)]);return Math.max(t,n)}async function Me(e,t){let n=await B(e),r;try{r=await x(n,q);let i=await je(e),a=String(i+1),o={id:a,...t};return await O(P(e,a),h(o,null,2)),k(),a}finally{r&&await r()}}async function I(e,t){let n=P(e,t);try{let e=m(await T(n,`utf-8`));process.env.USER_TYPE===`ant`&&(e.status===`open`?e.status=`pending`:e.status===`resolved`?e.status=`completed`:e.status&&[`planning`,`implementing`,`reviewing`,`verifying`].includes(e.status)&&(e.status=`in_progress`));let r=K().safeParse(e);return r.success?r.data:(v(`[Tasks] Task ${t} failed schema validation: ${r.error.message}`),null)}catch(e){return p(e)===`ENOENT`?null:(v(`[Tasks] Failed to read task ${t}: ${y(e)}`),b(e),null)}}async function L(e,t,n){let r=await I(e,t);if(!r)return null;let i={...r,...n,id:t};return await O(P(e,t),h(i,null,2)),k(),i}async function R(e,t,n){let r=P(e,t);if(!await I(e,t))return null;let i;try{return i=await x(r,q),await L(e,t,n)}finally{await i?.()}}async function z(e){let t=N(e),n;try{n=await E(t)}catch{return[]}let r=n.filter(e=>e.endsWith(`.json`)).map(e=>e.replace(`.json`,``));return(await Promise.all(r.map(t=>I(e,t)))).filter(e=>e!==null)}function Ne(e){return C(N(e),`.lock`)}async function B(e){await Ae(e);let t=Ne(e);try{await O(t,``,{flag:`wx`})}catch{}return t}async function Pe(e,t,n,r={}){let i=P(e,t);if(!await I(e,t))return{success:!1,reason:`task_not_found`};if(r.checkAgentBusy)return Fe(e,t,n);let a;try{a=await x(i,q);let r=await I(e,t);if(!r)return{success:!1,reason:`task_not_found`};if(r.owner&&r.owner!==n)return{success:!1,reason:`already_claimed`,task:r};if(r.status===`completed`)return{success:!1,reason:`already_resolved`,task:r};let o=await z(e),s=new Set(o.filter(e=>e.status!==`completed`).map(e=>e.id)),c=r.blockedBy.filter(e=>s.has(e));return c.length>0?{success:!1,reason:`blocked`,task:r,blockedByTasks:c}:{success:!0,task:await L(e,t,{owner:n})}}catch(e){return v(`[Tasks] Failed to claim task ${t}: ${y(e)}`),b(e),{success:!1,reason:`task_not_found`}}finally{a&&await a()}}async function Fe(e,t,n){let r=await B(e),i;try{i=await x(r,q);let a=await z(e),o=a.find(e=>e.id===t);if(!o)return{success:!1,reason:`task_not_found`};if(o.owner&&o.owner!==n)return{success:!1,reason:`already_claimed`,task:o};if(o.status===`completed`)return{success:!1,reason:`already_resolved`,task:o};let s=new Set(a.filter(e=>e.status!==`completed`).map(e=>e.id)),c=o.blockedBy.filter(e=>s.has(e));if(c.length>0)return{success:!1,reason:`blocked`,task:o,blockedByTasks:c};let l=a.filter(e=>e.status!==`completed`&&e.owner===n&&e.id!==t);return l.length>0?{success:!1,reason:`agent_busy`,task:o,busyWithTasks:l.map(e=>e.id)}:{success:!0,task:await R(e,t,{owner:n})}}catch(e){return v(`[Tasks] Failed to claim task ${t} with busy check: ${y(e)}`),b(e),{success:!1,reason:`task_not_found`}}finally{i&&await i()}}async function Ie(e,t,n,r){let i=(await z(e)).filter(e=>e.status!==`completed`&&(e.owner===t||e.owner===n));for(let t of i)await R(e,t.id,{owner:void 0,status:`pending`});i.length>0&&v(`[Tasks] Unassigned ${i.length} task(s) from ${n}`);let a=`${n} ${r===`terminated`?`was terminated`:`has shut down`}.`;if(i.length>0){let e=i.map(e=>`#${e.id} "${e.subject}"`).join(`, `);a+=` ${i.length} task(s) were unassigned: ${e}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:i.map(e=>({id:e.id,subject:e.subject})),notificationMessage:a}}var V,H,U,W,G,K,Le,q,Re,ze=e((()=>{te(),d(),_(),r(),g(),ye(),ue(),se(),ve(),ie(),ge(),de(),V=pe(),U=V.subscribe,W=[`pending`,`in_progress`,`completed`],G=S(()=>u([`pending`,`in_progress`,`completed`])),K=S(()=>ee({id:o(),subject:o(),description:o(),activeForm:o().optional(),owner:o().optional(),status:G(),blocks:c(o()),blockedBy:c(o()),metadata:s(o(),l()).optional()})),Le=`.highwatermark`,q={retries:{retries:30,minTimeout:5,maxTimeout:100}},Re=`tasklist`}));function J(e){return e===`tmux`||e===`iterm2`||e===`windows-terminal`}var Be=e((()=>{}));function Y(e){return e.replace(/[^a-zA-Z0-9]/g,`-`).toLowerCase()}function X(e){return C(t(),Y(e))}function Z(e){return C(X(e),`config.json`)}function Q(e){try{return m(Se(Z(e),`utf-8`))}catch(t){return p(t)===`ENOENT`||v(`[TeammateTool] Failed to read team file for ${e}: ${y(t)}`),null}}async function Ve(e){try{return m(await T(Z(e),`utf-8`))}catch(t){return p(t)===`ENOENT`||v(`[TeammateTool] Failed to read team file for ${e}: ${y(t)}`),null}}function $(e,t){xe(X(e),{recursive:!0}),Ce(Z(e),h(t,null,2))}async function He(e,t){await w(X(e),{recursive:!0}),await O(Z(e),h(t,null,2))}function Ue(e,t){let n=t.agentId||t.name;if(!n)return v(`[TeammateTool] removeTeammateFromTeamFile called with no identifier`),!1;let r=Q(e);if(!r)return v(`[TeammateTool] Cannot remove teammate ${n}: failed to read team file for "${e}"`),!1;let i=r.members.length;return r.members=r.members.filter(e=>!(t.agentId&&e.agentId===t.agentId||t.name&&e.name===t.name)),r.members.length===i?(v(`[TeammateTool] Teammate ${n} not found in team file for "${e}"`),!1):($(e,r),v(`[TeammateTool] Removed teammate from team file: ${n}`),!0)}function We(e,t){let n=Q(e);if(!n)return!1;let r=n.members.findIndex(e=>e.tmuxPaneId===t);if(r===-1)return!1;if(n.members.splice(r,1),n.hiddenPaneIds){let e=n.hiddenPaneIds.indexOf(t);e!==-1&&n.hiddenPaneIds.splice(e,1)}return $(e,n),v(`[TeammateTool] Removed member with pane ${t} from team ${e}`),!0}function Ge(e,t){let n=Q(e);if(!n)return!1;let r=n.members.findIndex(e=>e.agentId===t);return r===-1?!1:(n.members.splice(r,1),$(e,n),v(`[TeammateTool] Removed member ${t} from team ${e}`),!0)}function Ke(e,t,n){let r=Q(e);if(!r)return!1;let i=r.members.find(e=>e.name===t);if(!i)return v(`[TeammateTool] Cannot set member mode: member ${t} not found in team ${e}`),!1;if(i.mode===n)return!0;let a=r.members.map(e=>e.name===t?{...e,mode:n}:e);return $(e,{...r,members:a}),v(`[TeammateTool] Set member ${t} in team ${e} to mode: ${n}`),!0}function qe(e,t){if(!me())return;let n=t??fe(),r=_e();n&&r&&Ke(n,r,e)}function Je(e,t){let n=Q(e);if(!n)return!1;let r=new Map(t.map(e=>[e.memberName,e.mode])),i=!1,a=n.members.map(e=>{let t=r.get(e.name);return t!==void 0&&e.mode!==t?(i=!0,{...e,mode:t}):e});return i&&($(e,{...n,members:a}),v(`[TeammateTool] Set ${t.length} member modes in team ${e}`)),!0}async function Ye(e,t,n){let r=await Ve(e);if(!r){v(`[TeammateTool] Cannot set member active: team ${e} not found`);return}let i=r.members.find(e=>e.name===t);if(!i){v(`[TeammateTool] Cannot set member active: member ${t} not found in team ${e}`);return}i.isActive!==n&&(i.isActive=n,await He(e,r),v(`[TeammateTool] Set member ${t} in team ${e} to ${n?`active`:`idle`}`))}async function Xe(e){let t=C(e,`.git`),n=null;try{let e=(await T(t,`utf-8`)).trim().match(/^gitdir:\s*(.+)$/);if(e&&e[1]){let t=e[1];n=C(C(t,`..`,`..`),`..`)}}catch{}if(n){let t=await ce(ae(),[`worktree`,`remove`,`--force`,e],{cwd:n});if(t.code===0){v(`[TeammateTool] Removed worktree via git: ${e}`);return}if(t.stderr?.includes(`not a working tree`)){v(`[TeammateTool] Worktree already removed: ${e}`);return}v(`[TeammateTool] git worktree remove failed, falling back to rm: ${t.stderr}`)}try{await D(e,{recursive:!0,force:!0}),v(`[TeammateTool] Removed worktree directory manually: ${e}`)}catch(t){v(`[TeammateTool] Failed to remove worktree ${e}: ${y(t)}`)}}function Ze(e){f().add(e)}async function Qe(){let e=f();if(e.size===0)return;let t=Array.from(e);v(`cleanupSessionTeams: removing ${t.length} orphan team dir(s): ${t.join(`, `)}`),await Promise.allSettled(t.map(e=>$e(e))),await Promise.allSettled(t.map(e=>et(e))),e.clear()}async function $e(e){let t=Q(e);if(!t)return;let n=t.members.filter(e=>e.name!==`team-lead`&&e.tmuxPaneId&&e.backendType&&J(e.backendType));if(n.length===0)return;let[{ensureBackendsRegistered:r,getBackendByType:i},{isInsideTmux:a}]=await Promise.all([import(`./registry-C2igpRd-.js`),import(`./detection-CN_uLGU2.js`)]);await r();let o=!await a();await Promise.allSettled(n.map(async e=>{if(!e.tmuxPaneId||!e.backendType||!J(e.backendType))return;let t=await i(e.backendType).killPane(e.tmuxPaneId,o);v(`cleanupSessionTeams: killPane ${e.name} (${e.backendType} ${e.tmuxPaneId}) → ${t}`)}))}async function et(e){let t=Y(e),n=Q(e),r=[];if(n)for(let e of n.members)e.worktreePath&&r.push(e.worktreePath);for(let e of r)await Xe(e);let i=X(e);try{await D(i,{recursive:!0,force:!0}),v(`[TeammateTool] Cleaned up team directory: ${i}`)}catch(e){v(`[TeammateTool] Failed to clean up team directory ${i}: ${y(e)}`)}let a=N(t);try{await D(a,{recursive:!0,force:!0}),v(`[TeammateTool] Cleaned up tasks directory: ${a}`),k()}catch(e){v(`[TeammateTool] Failed to clean up tasks directory ${a}: ${y(e)}`)}}var tt=e((()=>{te(),d(),_(),r(),g(),le(),oe(),ye(),ie(),ze(),ge(),Be(),be(),S(()=>a({operation:u([`spawnTeam`,`cleanup`]).describe(`Operation: spawnTeam to create a team, cleanup to remove team and task directories.`),agent_type:o().optional().describe(`Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.`),team_name:o().optional().describe(`Name for the new team to create (required for spawnTeam).`),description:o().optional().describe(`Team description/purpose (only used with spawnTeam).`)}))}));export{z as A,Me as C,N as D,ke as E,Te as F,Ie as I,R as L,U as M,Oe as N,ze as O,M as P,Pe as S,I as T,He as _,tt as a,Re as b,Ze as c,Ue as d,Y as f,qe as g,Je as h,Z as i,k as j,De as k,Ge as l,Ke as m,et as n,Q as o,Ye as p,X as r,Ve as s,Qe as t,We as u,Be as v,Ae as w,W as x,J as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,t}from"./teamHelpers-CTA_CtTT.js";e();export{t as cleanupSessionTeams};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./chunk-DR8-3Aex.js";import{s as i,u as a}from"./envUtils-CFG7IQID.js";import{t as o}from"./graceful-fs-BuPWC-vB.js";import{AsyncLocalStorage as s}from"async_hooks";function c(e,t){return e.flatMap((e,n)=>n?[t(n),e]:[e])}function l(e,t){let n=0;for(let r of e)n+=+!!t(r);return n}function u(e){return[...new Set(e)]}var d=t((()=>{})),f=r(((e,t)=>{function n(e,t){typeof t==`boolean`&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(Error(`RetryOperation timeout occurred`)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift();else return!1;var r=this,i=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n);return this._options.unref&&i.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log(`Using RetryOperation.try() is deprecated`),this.attempt(e)},n.prototype.start=function(e){console.log(`Using RetryOperation.start() is deprecated`),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],a=i.message,o=(e[a]||0)+1;e[a]=o,o>=n&&(t=i,n=o)}return t}})),p=r((e=>{var t=f();e.operation=function(n){return new t(e.timeouts(n),{forever:n&&n.forever,unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error(`minTimeout is greater than maxTimeout`);for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort(function(e,t){return e-t}),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*t.minTimeout*t.factor**+e);return r=Math.min(r,t.maxTimeout),r},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],t)typeof t[i]==`function`&&r.push(i);for(var a=0;a<r.length;a++){var o=r[a],s=t[o];t[o]=function(r){var i=e.operation(n),a=Array.prototype.slice.call(arguments,1),o=a.pop();a.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),o.apply(this,arguments))}),i.attempt(function(){r.apply(t,a)})}.bind(t,s),t[o].options=n}}})),m=r(((e,t)=>{t.exports=p()})),h=r(((e,t)=>{t.exports=[`SIGABRT`,`SIGALRM`,`SIGHUP`,`SIGINT`,`SIGTERM`],process.platform!==`win32`&&t.exports.push(`SIGVTALRM`,`SIGXCPU`,`SIGXFSZ`,`SIGUSR2`,`SIGTRAP`,`SIGSYS`,`SIGQUIT`,`SIGIOT`),process.platform===`linux`&&t.exports.push(`SIGIO`,`SIGPOLL`,`SIGPWR`,`SIGSTKFLT`,`SIGUNUSED`)})),g=r(((t,n)=>{var r=global.process,i=function(e){return e&&typeof e==`object`&&typeof e.removeListener==`function`&&typeof e.emit==`function`&&typeof e.reallyExit==`function`&&typeof e.listeners==`function`&&typeof e.kill==`function`&&typeof e.pid==`number`&&typeof e.on==`function`};if(!i(r))n.exports=function(){return function(){}};else{var a=e(`assert`),o=h(),s=/^win/i.test(r.platform),c=e(`events`);typeof c!=`function`&&(c=c.EventEmitter);var l;r.__signal_exit_emitter__?l=r.__signal_exit_emitter__:(l=r.__signal_exit_emitter__=new c,l.count=0,l.emitted={}),l.infinite||(l.setMaxListeners(1/0),l.infinite=!0),n.exports=function(e,t){if(!i(global.process))return function(){};a.equal(typeof e,`function`,`a callback must be provided for exit handler`),p===!1&&m();var n=`exit`;return t&&t.alwaysLast&&(n=`afterexit`),l.on(n,e),function(){l.removeListener(n,e),l.listeners(`exit`).length===0&&l.listeners(`afterexit`).length===0&&u()}};var u=function(){!p||!i(global.process)||(p=!1,o.forEach(function(e){try{r.removeListener(e,f[e])}catch{}}),r.emit=v,r.reallyExit=g,--l.count)};n.exports.unload=u;var d=function(e,t,n){l.emitted[e]||(l.emitted[e]=!0,l.emit(e,t,n))},f={};o.forEach(function(e){f[e]=function(){i(global.process)&&r.listeners(e).length===l.count&&(u(),d(`exit`,null,e),d(`afterexit`,null,e),s&&e===`SIGHUP`&&(e=`SIGINT`),r.kill(r.pid,e))}}),n.exports.signals=function(){return o};var p=!1,m=function(){p||!i(global.process)||(p=!0,l.count+=1,o=o.filter(function(e){try{return r.on(e,f[e]),!0}catch{return!1}}),r.emit=y,r.reallyExit=_)};n.exports.load=m;var g=r.reallyExit,_=function(e){i(global.process)&&(r.exitCode=e||0,d(`exit`,r.exitCode,null),d(`afterexit`,r.exitCode,null),g.call(r,r.exitCode))},v=r.emit,y=function(e,t){if(e===`exit`&&i(global.process)){t!==void 0&&(r.exitCode=t);var n=v.apply(this,arguments);return d(`exit`,r.exitCode,null),d(`afterexit`,r.exitCode,null),n}else return v.apply(this,arguments)}}})),_=r(((e,t)=>{var n=Symbol();function r(e,t,r){let i=t[n];if(i)return t.stat(e,(e,t)=>{if(e)return r(e);r(null,t.mtime,i)});let a=new Date(Math.ceil(Date.now()/1e3)*1e3+5);t.utimes(e,a,a,i=>{if(i)return r(i);t.stat(e,(e,i)=>{if(e)return r(e);let a=i.mtime.getTime()%1e3==0?`s`:`ms`;Object.defineProperty(t,n,{value:a}),r(null,i.mtime,a)})})}function i(e){let t=Date.now();return e===`s`&&(t=Math.ceil(t/1e3)*1e3),new Date(t)}t.exports.probe=r,t.exports.getMtime=i})),v=r(((t,n)=>{var r=e(`path`),i=o(),a=m(),s=g(),c=_(),l={};function u(e,t){return t.lockfilePath||`${e}.lock`}function d(e,t,n){if(!t.realpath)return n(null,r.resolve(e));t.fs.realpath(e,n)}function f(e,t,n){let r=u(e,t);t.fs.mkdir(r,i=>{if(!i)return c.probe(r,t.fs,(e,i,a)=>{if(e)return t.fs.rmdir(r,()=>{}),n(e);n(null,i,a)});if(i.code!==`EEXIST`)return n(i);if(t.stale<=0)return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));t.fs.stat(r,(r,i)=>{if(r)return r.code===`ENOENT`?f(e,{...t,stale:0},n):n(r);if(!p(i,t))return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));h(e,t,r=>{if(r)return n(r);f(e,{...t,stale:0},n)})})})}function p(e,t){return e.mtime.getTime()<Date.now()-t.stale}function h(e,t,n){t.fs.rmdir(u(e,t),e=>{if(e&&e.code!==`ENOENT`)return n(e);n()})}function v(e,t){let n=l[e];n.updateTimeout||(n.updateDelay=n.updateDelay||t.update,n.updateTimeout=setTimeout(()=>{n.updateTimeout=null,t.fs.stat(n.lockfilePath,(r,i)=>{let a=n.lastUpdate+t.stale<Date.now();if(r)return r.code===`ENOENT`||a?y(e,n,Object.assign(r,{code:`ECOMPROMISED`})):(n.updateDelay=1e3,v(e,t));if(n.mtime.getTime()!==i.mtime.getTime())return y(e,n,Object.assign(Error(`Unable to update lock within the stale threshold`),{code:`ECOMPROMISED`}));let o=c.getMtime(n.mtimePrecision);t.fs.utimes(n.lockfilePath,o,o,r=>{let i=n.lastUpdate+t.stale<Date.now();if(!n.released){if(r)return r.code===`ENOENT`||i?y(e,n,Object.assign(r,{code:`ECOMPROMISED`})):(n.updateDelay=1e3,v(e,t));n.mtime=o,n.lastUpdate=Date.now(),n.updateDelay=null,v(e,t)}})})},n.updateDelay),n.updateTimeout.unref&&n.updateTimeout.unref())}function y(e,t,n){t.released=!0,t.updateTimeout&&clearTimeout(t.updateTimeout),l[e]===t&&delete l[e],t.options.onCompromised(n)}function b(e,t,n){t={stale:1e4,update:null,realpath:!0,retries:0,fs:i,onCompromised:e=>{throw e},...t},t.retries=t.retries||0,t.retries=typeof t.retries==`number`?{retries:t.retries}:t.retries,t.stale=Math.max(t.stale||0,2e3),t.update=t.update==null?t.stale/2:t.update||0,t.update=Math.max(Math.min(t.update,t.stale/2),1e3),d(e,t,(e,r)=>{if(e)return n(e);let i=a.operation(t.retries);i.attempt(()=>{f(r,t,(e,a,o)=>{if(i.retry(e))return;if(e)return n(i.mainError());let s=l[r]={lockfilePath:u(r,t),mtime:a,mtimePrecision:o,options:t,lastUpdate:Date.now()};v(r,t),n(null,e=>{if(s.released)return e&&e(Object.assign(Error(`Lock is already released`),{code:`ERELEASED`}));x(r,{...t,realpath:!1},e)})})})})}function x(e,t,n){t={fs:i,realpath:!0,...t},d(e,t,(e,r)=>{if(e)return n(e);let i=l[r];if(!i)return n(Object.assign(Error(`Lock is not acquired/owned by you`),{code:`ENOTACQUIRED`}));i.updateTimeout&&clearTimeout(i.updateTimeout),i.released=!0,delete l[r],h(r,t,n)})}function S(e,t,n){t={stale:1e4,realpath:!0,fs:i,...t},t.stale=Math.max(t.stale||0,2e3),d(e,t,(e,r)=>{if(e)return n(e);t.fs.stat(u(r,t),(e,r)=>e?e.code===`ENOENT`?n(null,!1):n(e):n(null,!p(r,t)))})}function C(){return l}s(()=>{for(let e in l){let t=l[e].options;try{t.fs.rmdirSync(u(e,t))}catch{}}}),n.exports.lock=b,n.exports.unlock=x,n.exports.check=S,n.exports.getLocks=C})),y=r(((e,t)=>{var n=o();function r(e){let t=[`mkdir`,`realpath`,`stat`,`rmdir`,`utimes`],n={...e};return t.forEach(t=>{n[t]=(...n)=>{let r=n.pop(),i;try{i=e[`${t}Sync`](...n)}catch(e){return r(e)}r(null,i)}}),n}function i(e){return(...t)=>new Promise((n,r)=>{t.push((e,t)=>{e?r(e):n(t)}),e(...t)})}function a(e){return(...t)=>{let n,r;if(t.push((e,t)=>{n=e,r=t}),e(...t),n)throw n;return r}}function s(e){if(e={...e},e.fs=r(e.fs||n),typeof e.retries==`number`&&e.retries>0||e.retries&&typeof e.retries.retries==`number`&&e.retries.retries>0)throw Object.assign(Error(`Cannot use retries with the sync api`),{code:`ESYNC`});return e}t.exports={toPromise:i,toSync:a,toSyncOptions:s}})),b=r(((e,t)=>{var n=v(),{toPromise:r,toSync:i,toSyncOptions:a}=y();async function o(e,t){return r(await r(n.lock)(e,t))}function s(e,t){return i(i(n.lock)(e,a(t)))}function c(e,t){return r(n.unlock)(e,t)}function l(e,t){return i(n.unlock)(e,a(t))}function u(e,t){return r(n.check)(e,t)}function d(e,t){return i(n.check)(e,a(t))}t.exports=o,t.exports.lock=o,t.exports.unlock=c,t.exports.lockSync=s,t.exports.unlockSync=l,t.exports.check=u,t.exports.checkSync=d}));function x(){return E||(E=b()),E}function S(e,t){return x().lock(e,t)}function C(e,t){return x().lockSync(e,t)}function w(e,t){return x().unlock(e,t)}function T(e,t){return x().check(e,t)}var E,D=t((()=>{}));function O(){let e=new Set;return{subscribe(t){return e.add(t),()=>{e.delete(t)}},emit(...t){for(let n of e)n(...t)},clear(){e.clear()}}}var k=t((()=>{}));function A(){return P.getStore()}function j(e,t){return P.run(e,t)}function M(){return P.getStore()!==void 0}function N(e){return{...e,isInProcess:!0}}var P,F=t((()=>{P=new s})),I=n({clearDynamicTeamContext:()=>z,createTeammateContext:()=>N,getAgentId:()=>V,getAgentName:()=>H,getDynamicTeamContext:()=>B,getParentSessionId:()=>L,getTeamName:()=>U,getTeammateColor:()=>G,getTeammateContext:()=>A,hasActiveInProcessTeammates:()=>J,hasWorkingInProcessTeammates:()=>Y,isInProcessTeammate:()=>M,isPlanModeRequired:()=>K,isTeamLead:()=>q,isTeammate:()=>W,runWithTeammateContext:()=>j,setDynamicTeamContext:()=>R,waitForTeammatesToBecomeIdle:()=>X});function L(){let e=A();return e?e.parentSessionId:Z?.parentSessionId}function R(e){Z=e}function z(){Z=null}function B(){return Z}function V(){let e=A();return e?e.agentId:Z?.agentId}function H(){let e=A();return e?e.agentName:Z?.agentName}function U(e){let t=A();return t?t.teamName:Z?.teamName?Z.teamName:e?.teamName}function W(){return A()?!0:!!(Z?.agentId&&Z?.teamName)}function G(){let e=A();return e?e.color:Z?.color}function K(){let e=A();return e?e.planModeRequired:Z===null?a(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED):Z.planModeRequired}function q(e){if(!e?.leadAgentId)return!1;let t=V();return t===e.leadAgentId||!t}function J(e){for(let t of Object.values(e.tasks))if(t.type===`in_process_teammate`&&t.status===`running`)return!0;return!1}function Y(e){for(let t of Object.values(e.tasks))if(t.type===`in_process_teammate`&&t.status===`running`&&!t.isIdle)return!0;return!1}function X(e,t){let n=[];for(let[e,r]of Object.entries(t.tasks))r.type===`in_process_teammate`&&r.status===`running`&&!r.isIdle&&n.push(e);return n.length===0?Promise.resolve():new Promise(t=>{let r=n.length,i=()=>{r--,r===0&&t()};e(e=>{let t={...e.tasks};for(let e of n){let n=t[e];n&&n.type===`in_process_teammate`&&(n.isIdle?i():t[e]={...n,onIdleCallbacks:[...n.onIdleCallbacks??[],i]})}return{...e,tasks:t}})})}var Z,Q=t((()=>{F(),i(),Z=null}));export{u as A,D as C,l as D,w as E,d as O,T as S,C as T,F as _,U as a,O as b,Y as c,q as d,W as f,A as g,N as h,L as i,c as k,Q as l,X as m,H as n,G as o,I as p,B as r,J as s,V as t,K as u,M as v,S as w,k as x,j as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{_s as n,ls as r}from"./growthbook-p4aJ_UMv.js";import{l as i,p as a}from"./debug-CjIaNjpK.js";import{o,s}from"./log-DVv8YiNo.js";var c=t({captureTeammateModeSnapshot:()=>f,clearCliTeammateModeOverride:()=>d,getCliTeammateModeOverride:()=>u,getTeammateModeFromSnapshot:()=>p,setCliTeammateModeOverride:()=>l});function l(e){h=e}function u(){return h}function d(e){h=null,m=e,a(`[TeammateModeSnapshot] CLI override cleared, new mode: ${e}`)}function f(){h?(m=h,a(`[TeammateModeSnapshot] Captured from CLI override: ${m}`)):(m=r().teammateMode??`auto`,a(`[TeammateModeSnapshot] Captured from config: ${m}`))}function p(){return m===null&&(s(Error(`getTeammateModeFromSnapshot called before capture - this indicates an initialization bug`)),f()),m??`auto`}var m,h,g=e((()=>{n(),i(),o(),m=null,h=null}));export{g as a,p as i,d as n,l as o,u as r,c as s,f as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,t}from"./teammateModeSnapshot-DWRG5-Us.js";e();export{t as captureTeammateModeSnapshot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Cf as e,_f as t,vf as n,xf as r,yf as i}from"./loadAgentsDir-Bz0FfcVt.js";n();export{t as checkOutTeleportedSessionBranch,i as processMessagesForTeleportResume,r as teleportResumeCodeSession,e as validateGitState};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-CFG7IQID.js";import{BI as r,VI as i,iL as a,rL as o,zI as s}from"./loadAgentsDir-Bz0FfcVt.js";import{basename as c,join as l}from"path";import{appendFileSync as u,mkdirSync as d,readFileSync as f,readdirSync as p,writeFileSync as m}from"fs";import{randomUUID as h}from"crypto";function g(){let e=r(`templates`,process.cwd()),n=l(t(),`templates`);try{return p(n),[...e,n]}catch{return e}}function _(){let e=[],t=new Set;for(let n of g()){let r;try{r=p(n)}catch{continue}for(let i of r){if(!i.endsWith(`.md`))continue;let r=c(i,`.md`);if(t.has(r))continue;t.add(r);let o=l(n,i);try{let{frontmatter:t,content:n}=a(f(o,`utf-8`),o),i=(typeof t.description==`string`?t.description:``)||s(n,`No description`);e.push({name:r,description:i,filePath:o,frontmatter:t,content:n})}catch{}}}return e}function v(e){return _().find(t=>t.name===e)??null}var y=e((()=>{o(),n(),i()}));function b(){return l(t(),`jobs`)}function x(e){return l(b(),e)}function S(e,t,n,r,i){let a=x(e);d(a,{recursive:!0});let o=new Date().toISOString(),s={jobId:e,templateName:t,createdAt:o,updatedAt:o,status:`created`,args:i};return m(l(a,`state.json`),JSON.stringify(s,null,2),`utf-8`),m(l(a,`template.md`),n,`utf-8`),m(l(a,`input.txt`),r,`utf-8`),a}function C(e){try{let t=f(l(x(e),`state.json`),`utf-8`),n=JSON.parse(t);if(typeof n!=`object`||!n)return null;let r=n;return typeof r.jobId!=`string`||typeof r.status!=`string`?null:r}catch{return null}}function w(e,t){let n=x(e),r=C(e);if(!r)return!1;let i=l(n,`replies.jsonl`),a=JSON.stringify({text:t,timestamp:new Date().toISOString()});try{u(i,a+`
|
|
2
|
+
`,`utf-8`)}catch{m(i,a+`
|
|
3
|
+
`,`utf-8`)}let o={...r,updatedAt:new Date().toISOString()};return m(l(n,`state.json`),JSON.stringify(o,null,2),`utf-8`),!0}var T=e((()=>{n()}));async function E(e){let t=e[0];switch(t){case`list`:k();break;case`new`:A(e.slice(1));break;case`reply`:j(e.slice(1));break;case`status`:O(e.slice(1));break;default:console.error(`Unknown template command: ${t}`),D(),process.exitCode=1}}function D(){console.log(`
|
|
4
|
+
Template Job Commands:
|
|
5
|
+
|
|
6
|
+
claude job list List available templates
|
|
7
|
+
claude job new <template> [args] Create a new job from a template
|
|
8
|
+
claude job reply <job-id> <text> Reply to an existing job
|
|
9
|
+
claude job status <job-id> Show job status
|
|
10
|
+
`)}function O(e){let t=e[0];if(!t){console.error(`Usage: claude job status <job-id>`),process.exitCode=1;return}let n=C(t);if(!n){console.error(`Job not found: ${t}`),process.exitCode=1;return}console.log(`Job: ${n.jobId}`),console.log(` Template: ${n.templateName}`),console.log(` Status: ${n.status}`),console.log(` Created: ${n.createdAt}`),console.log(` Updated: ${n.updatedAt}`),console.log(` Args: ${n.args.join(` `)||`(none)`}`)}function k(){let e=_();if(e.length===0){console.log(`No templates found.`),console.log(`Place .md files in .claude/templates/ or ~/.claude/templates/`);return}console.log(`${e.length} template${e.length>1?`s`:``} found:\n`);for(let t of e)console.log(` ${t.name}`),console.log(` ${t.description}`),console.log(` Path: ${t.filePath}`),console.log()}function A(e){let t=e[0];if(!t){console.error(`Usage: claude job new <template> [args...]`),process.exitCode=1;return}let n=v(t);if(!n){console.error(`Template not found: ${t}`),console.log(`
|
|
11
|
+
Available templates:`);for(let e of _())console.log(` ${e.name}`);process.exitCode=1;return}let r=h().slice(0,8),i=e.slice(1).join(` `),a=S(r,t,`---\n${Object.entries(n.frontmatter).map(([e,t])=>`${e}: ${t}`).join(`
|
|
12
|
+
`)}\n---\n${n.content}`,i,e.slice(1));console.log(`Job created: ${r}`),console.log(` Template: ${t}`),console.log(` Directory: ${a}`),i&&console.log(` Input: ${i}`)}function j(e){let t=e[0],n=e.slice(1).join(` `);if(!t||!n){console.error(`Usage: claude job reply <job-id> <text>`),process.exitCode=1;return}if(!C(t)){console.error(`Job not found: ${t}`),process.exitCode=1;return}w(t,n)?(console.log(`Reply added to job ${t}`),console.log(` Directory: ${x(t)}`)):(console.error(`Failed to append reply to job ${t}`),process.exitCode=1)}e((()=>{y(),T()}))();export{E as templatesMain};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./memoize-DNnuA2aU.js";import{$ as r,In as i,Ln as a,t as o,v as s}from"./src-DNHWYkls.js";import{$l as c,Ql as l,_s as u,bs as d,ls as f,ss as p,xs as m}from"./growthbook-p4aJ_UMv.js";import{D as h,E as g,K as _,O as v,U as ee,_ as te,h as ne}from"./debug-CjIaNjpK.js";import{n as re,t as y}from"./cwd-B2guYBbl.js";import{o as b,s as x}from"./log-DVv8YiNo.js";import{r as S,t as C}from"./execFileNoThrow-DdmR1mBS.js";import{i as ie,o as ae}from"./platform-BXz_rgpy.js";import{d as oe,o as se,s as ce}from"./types-BVelRhgb.js";import{a as w,n as T}from"./env-CesrOJJq.js";import{r as le,t as ue}from"./completionCache-BtP4vfAi.js";import{homedir as E,platform as D}from"os";import{dirname as O,join as k}from"path";import{randomBytes as A}from"crypto";import{copyFile as j,mkdir as M,readFile as N,stat as P,writeFile as F}from"fs/promises";import{pathToFileURL as de}from"url";function I(){let e=ne().existsSync(k(y(),`CLAUDE.md`)),t=c(y());return[{key:`workspace`,text:`Ask Claude to create a new app or clone a repository`,isComplete:!1,isCompletable:!0,isEnabled:t},{key:`claudemd`,text:`Run /init to create a CLAUDE.md file with instructions for Claude`,isComplete:e,isCompletable:!0,isEnabled:!t}]}function L(){return I().filter(({isCompletable:e,isEnabled:t})=>e&&t).every(({isComplete:e})=>e)}function R(){p().hasCompletedProjectOnboarding||L()&&d(e=>({...e,hasCompletedProjectOnboarding:!0}))}function z(){d(e=>({...e,projectOnboardingSeenCount:e.projectOnboardingSeenCount+1}))}var B,V=e((()=>{n(),u(),re(),l(),te(),B=t(()=>{let e=p();return e.hasCompletedProjectOnboarding||e.projectOnboardingSeenCount>=4||process.env.IS_DEMO?!1:!L()})}));function fe(e){m(t=>({...t,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:e}))}function H(){m(e=>({...e,appleTerminalSetupInProgress:!1}))}function pe(){let e=f();return{inProgress:e.appleTerminalSetupInProgress??!1,backupPath:e.appleTerminalBackupPath||null}}function U(){return k(E(),`Library`,`Preferences`,`com.apple.Terminal.plist`)}async function me(){let e=U(),t=`${e}.bak`;try{let{code:n}=await C(`defaults`,[`export`,`com.apple.Terminal`,e]);if(n!==0)return null;try{await P(e)}catch{return null}return await C(`defaults`,[`export`,`com.apple.Terminal`,t]),fe(t),t}catch(e){return x(e),null}}async function W(){let{inProgress:e,backupPath:t}=pe();if(!e)return{status:`no_backup`};if(!t)return H(),{status:`no_backup`};try{await P(t)}catch{return H(),{status:`no_backup`}}try{let{code:e}=await C(`defaults`,[`import`,`com.apple.Terminal`,t]);return e===0?(await C(`killall`,[`cfprefsd`]),H(),{status:`restored`}):{status:`failed`,backupPath:t}}catch(e){return x(Error(`Failed to restore Terminal.app settings with: ${e}`)),H(),{status:`failed`,backupPath:t}}}var G=e((()=>{u(),S(),b()}));function he(){let e=process.env.VSCODE_GIT_ASKPASS_MAIN??``,t=process.env.PATH??``;return e.includes(`.vscode-server`)||e.includes(`.cursor-server`)||e.includes(`.windsurf-server`)||t.includes(`.vscode-server`)||t.includes(`.cursor-server`)||t.includes(`.windsurf-server`)}function ge(){return!T.terminal||!(T.terminal in $)?null:$[T.terminal]??null}function K(e){return r()?`\x1b]8;;${de(e).href}\x07${e}\x1b]8;;\x07`:e}function q(){return D()===`darwin`&&T.terminal===`Apple_Terminal`||T.terminal===`vscode`||T.terminal===`cursor`||T.terminal===`windsurf`||T.terminal===`alacritty`||T.terminal===`zed`}async function J(e){let t=``;switch(T.terminal){case`Apple_Terminal`:t=await xe(e);break;case`vscode`:t=await Y(`VSCode`,e);break;case`cursor`:t=await Y(`Cursor`,e);break;case`windsurf`:t=await Y(`Windsurf`,e);break;case`alacritty`:t=await Se(e);break;case`zed`:t=await Ce(e);break;case null:break}return m(e=>[`vscode`,`cursor`,`windsurf`,`alacritty`,`zed`].includes(T.terminal??``)?e.shiftEnterKeyBindingInstalled===!0?e:{...e,shiftEnterKeyBindingInstalled:!0}:T.terminal===`Apple_Terminal`?e.optionAsMetaKeyInstalled===!0?e:{...e,optionAsMetaKeyInstalled:!0}:e),R(),process.env.USER_TYPE===`ant`&&(t+=await le(e)),t}function _e(){return f().shiftEnterKeyBindingInstalled===!0}function ve(){return f().hasUsedBackslashReturn===!0}function ye(){f().hasUsedBackslashReturn||m(e=>({...e,hasUsedBackslashReturn:!0}))}async function be(e,t,n){if(T.terminal&&T.terminal in $)return e(`Shift+Enter is natively supported in ${$[T.terminal]}.
|
|
2
|
+
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`),null;if(!q()){let t=T.terminal||`your current terminal`,n=ie(),r=``;return n===`macos`?r=` • macOS: Apple Terminal
|
|
4
|
+
`:n===`windows`&&(r=` • Windows: Windows Terminal
|
|
5
|
+
`),e(`Terminal setup cannot be run from ${t}.
|
|
6
|
+
|
|
7
|
+
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
+
${i.dim(`Note: You can already use backslash (\\\\) + return to add newlines.`)}
|
|
9
|
+
|
|
10
|
+
To set up the shortcut (optional):
|
|
11
|
+
1. Exit tmux/screen temporarily
|
|
12
|
+
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
+
${r} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
+
• Other: Alacritty
|
|
15
|
+
3. Return to tmux/screen - settings will persist
|
|
16
|
+
|
|
17
|
+
${i.dim(`Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.`)}`),null}return e(await J(t.options.theme)),null}async function Y(e=`VSCode`,t){if(he())return`${s(`warning`,t)(`Cannot install keybindings from a remote ${e} session.`)}${Q}${Q}${e} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${e} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${i.dim(`[
|
|
18
|
+
{
|
|
19
|
+
"key": "shift+enter",
|
|
20
|
+
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
+
"args": { "text": "\\u001b\\r" },
|
|
22
|
+
"when": "terminalFocus"
|
|
23
|
+
}
|
|
24
|
+
]`)}${Q}`;let n=e===`VSCode`?`Code`:e,r=k(E(),D()===`win32`?k(`AppData`,`Roaming`,n,`User`):D()===`darwin`?k(`Library`,`Application Support`,n,`User`):k(`.config`,n,`User`)),a=k(r,`keybindings.json`);try{await M(r,{recursive:!0});let n=`[]`,o=[],c=!1;try{n=await N(a,{encoding:`utf-8`}),c=!0,o=oe(n)??[]}catch(e){if(!_(e))throw e}if(c){let n=`${a}.${A(4).toString(`hex`)}.bak`;try{await j(a,n)}catch{return`${s(`warning`,t)(`Error backing up existing ${e} terminal keybindings. Bailing out.`)}${Q}${i.dim(`See ${K(a)}`)}${Q}${i.dim(`Backup path: ${K(n)}`)}${Q}`}}return o.find(e=>e.key===`shift+enter`&&e.command===`workbench.action.terminal.sendSequence`&&e.when===`terminalFocus`)?`${s(`warning`,t)(`Found existing ${e} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${i.dim(`See ${K(a)}`)}${Q}`:(await F(a,se(n,{key:`shift+enter`,command:`workbench.action.terminal.sendSequence`,args:{text:`\x1B\r`},when:`terminalFocus`}),{encoding:`utf-8`}),`${s(`success`,t)(`Installed ${e} terminal Shift+Enter key binding`)}${Q}${i.dim(`See ${K(a)}`)}${Q}`)}catch(t){throw x(t),Error(`Failed to install ${e} terminal Shift+Enter key binding`)}}async function X(e){let{code:t}=await C(`/usr/libexec/PlistBuddy`,[`-c`,`Add :'Window Settings':'${e}':useOptionAsMetaKey bool true`,U()]);if(t!==0){let{code:t}=await C(`/usr/libexec/PlistBuddy`,[`-c`,`Set :'Window Settings':'${e}':useOptionAsMetaKey true`,U()]);if(t!==0)return x(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${e}`)),!1}return!0}async function Z(e){let{code:t}=await C(`/usr/libexec/PlistBuddy`,[`-c`,`Add :'Window Settings':'${e}':Bell bool false`,U()]);if(t!==0){let{code:t}=await C(`/usr/libexec/PlistBuddy`,[`-c`,`Set :'Window Settings':'${e}':Bell false`,U()]);if(t!==0)return x(Error(`Failed to disable audio bell for Terminal.app profile: ${e}`)),!1}return!0}async function xe(e){try{if(!await me())throw Error(`Failed to create backup of Terminal.app preferences, bailing out`);let{stdout:t,code:n}=await C(`defaults`,[`read`,`com.apple.Terminal`,`Default Window Settings`]);if(n!==0||!t.trim())throw Error(`Failed to read default Terminal.app profile`);let{stdout:r,code:a}=await C(`defaults`,[`read`,`com.apple.Terminal`,`Startup Window Settings`]);if(a!==0||!r.trim())throw Error(`Failed to read startup Terminal.app profile`);let o=!1,c=t.trim(),l=await X(c),u=await Z(c);(l||u)&&(o=!0);let d=r.trim();if(d!==c){let e=await X(d),t=await Z(d);(e||t)&&(o=!0)}if(!o)throw Error(`Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile`);return await C(`killall`,[`cfprefsd`]),H(),`${s(`success`,e)(`Configured Terminal.app settings:`)}${Q}${s(`success`,e)(`- Enabled "Use Option as Meta key"`)}${Q}${s(`success`,e)(`- Switched to visual bell`)}${Q}${i.dim(`Option+Enter will now enter a newline.`)}${Q}${i.dim(`You must restart Terminal.app for changes to take effect.`,e)}${Q}`}catch(e){x(e);let t=await W(),n=`Failed to enable Option as Meta key for Terminal.app.`;throw t.status===`restored`?Error(`${n} Your settings have been restored from backup.`):t.status===`failed`?Error(`${n} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${t.backupPath}`):Error(`${n} No backup was available to restore from.`)}}async function Se(e){let t=[],n=process.env.XDG_CONFIG_HOME;if(n?t.push(k(n,`alacritty`,`alacritty.toml`)):t.push(k(E(),`.config`,`alacritty`,`alacritty.toml`)),D()===`win32`){let e=process.env.APPDATA;e&&t.push(k(e,`alacritty`,`alacritty.toml`))}let r=null,a=``,o=!1;for(let e of t)try{a=await N(e,{encoding:`utf-8`}),r=e,o=!0;break}catch(e){if(!_(e))throw e}if(r||(r=t[0]??null),!r)throw Error(`No valid config path found for Alacritty`);try{if(o){if(a.includes(`mods = "Shift"`)&&a.includes(`key = "Return"`))return`${s(`warning`,e)(`Found existing Alacritty Shift+Enter key binding. Remove it to continue.`)}${Q}${i.dim(`See ${K(r)}`)}${Q}`;let t=A(4).toString(`hex`),n=`${r}.${t}.bak`;try{await j(r,n)}catch{return`${s(`warning`,e)(`Error backing up existing Alacritty config. Bailing out.`)}${Q}${i.dim(`See ${K(r)}`)}${Q}${i.dim(`Backup path: ${K(n)}`)}${Q}`}}else await M(O(r),{recursive:!0});let t=a;return a&&!a.endsWith(`
|
|
25
|
+
`)&&(t+=`
|
|
26
|
+
`),t+=`
|
|
27
|
+
[[keyboard.bindings]]
|
|
28
|
+
key = "Return"
|
|
29
|
+
mods = "Shift"
|
|
30
|
+
chars = "\\u001B\\r"
|
|
31
|
+
`,await F(r,t,{encoding:`utf-8`}),`${s(`success`,e)(`Installed Alacritty Shift+Enter key binding`)}${Q}${s(`success`,e)(`You may need to restart Alacritty for changes to take effect`)}${Q}${i.dim(`See ${K(r)}`)}${Q}`}catch(e){throw x(e),Error(`Failed to install Alacritty Shift+Enter key binding`)}}async function Ce(e){let t=k(E(),`.config`,`zed`),n=k(t,`keymap.json`);try{await M(t,{recursive:!0});let r=`[]`,a=!1;try{r=await N(n,{encoding:`utf-8`}),a=!0}catch(e){if(!_(e))throw e}if(a){if(r.includes(`shift-enter`))return`${s(`warning`,e)(`Found existing Zed Shift+Enter key binding. Remove it to continue.`)}${Q}${i.dim(`See ${K(n)}`)}${Q}`;let t=`${n}.${A(4).toString(`hex`)}.bak`;try{await j(n,t)}catch{return`${s(`warning`,e)(`Error backing up existing Zed keymap. Bailing out.`)}${Q}${i.dim(`See ${K(n)}`)}${Q}${i.dim(`Backup path: ${K(t)}`)}${Q}`}}let o;try{o=h(r),Array.isArray(o)||(o=[])}catch{o=[]}return o.push({context:`Terminal`,bindings:{"shift-enter":[`terminal::SendText`,`\x1B\r`]}}),await F(n,v(o,null,2)+`
|
|
32
|
+
`,{encoding:`utf-8`}),`${s(`success`,e)(`Installed Zed Shift+Enter key binding`)}${Q}${i.dim(`See ${K(n)}`)}${Q}`}catch(e){throw x(e),Error(`Failed to install Zed Shift+Enter key binding`)}}var Q,$,we=e((()=>{a(),o(),V(),G(),ue(),u(),w(),ee(),S(),ce(),b(),ae(),g(),Q=`
|
|
33
|
+
`,$={ghostty:`Ghostty`,kitty:`Kitty`,"iTerm.app":`iTerm2`,WezTerm:`WezTerm`,WarpTerminal:`Warp`}}));export{_e as a,q as c,I as d,z as f,B as h,we as i,W as l,R as m,ge as n,ye as o,V as p,ve as r,J as s,be as t,G as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,i as n,n as r,o as i,r as a,s as o,t as s}from"./terminalSetup--jwGVap8.js";n();export{s as call,r as getNativeCSIuTerminalDisplayName,a as hasUsedBackslashReturn,e as isShiftEnterKeyBindingInstalled,i as markBackslashReturnUsed,o as setupTerminal,t as shouldOfferTerminalSetup};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Rn as t,T as n,p as r,t as i}from"./src-DNHWYkls.js";import{t as a}from"./jsx-runtime-BTgGEFjL.js";import{n as o,t as s}from"./ThemePicker-Bgr7yOQB.js";function c({onDone:e}){let[,t]=n();return(0,l.jsx)(r,{color:`permission`,children:(0,l.jsx)(s,{onThemeSelect:n=>{t(n),e(`Theme set to ${n}`)},onCancel:()=>{e(`Theme picker dismissed`,{display:`system`})},skipExitHandling:!0})})}var l,u;e((()=>{t(),i(),o(),l=a(),u=async(e,t)=>(0,l.jsx)(c,{onDone:e})}))();export{u as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./thinkback-MeOOO7gf.js";e();export{n as call,t as playAnimation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,o as t}from"./chunk-DR8-3Aex.js";import{Lt as n,Rn as r,b as i,f as a,t as o,x as s}from"./src-DNHWYkls.js";import{t as c}from"./jsx-runtime-BTgGEFjL.js";import{Ql as l,nu as u}from"./growthbook-p4aJ_UMv.js";import{G as d,J as f,U as p,l as m,p as h}from"./debug-CjIaNjpK.js";import{r as g,t as _}from"./execa-BMaINL7N.js";import{o as ee,s as v}from"./log-DVv8YiNo.js";import{r as te,t as y}from"./execFileNoThrow-DdmR1mBS.js";import{i as b,o as x}from"./platform-BXz_rgpy.js";import{$a as S,Ew as C,Ha as w,Ja as T,RT as E,Ra as ne,So as re,eo as ie,jI as ae,kI as oe,qa as se,ro as ce,va as D,ww as O,xo as k,ya as A,zT as j}from"./loadAgentsDir-Bz0FfcVt.js";import{n as M,r as N}from"./pluginStartupCheck-Cj2BMjVw.js";import{a as P,s as F}from"./pluginOperations-DMFYB3pK.js";import{join as I}from"path";import{readFile as L}from"fs/promises";function R(){return process.env.USER_TYPE===`ant`?q:oe}function z(){return process.env.USER_TYPE===`ant`?J:Y}function B(){return`thinkback@${R()}`}async function V(){let{enabled:e}=await A(),t=e.find(e=>e.name===`thinkback`||e.source&&e.source.includes(B()));if(!t)return null;let n=I(t.path,`skills`,X);return await u(n)?n:null}async function H(e){let t=I(e,`year_in_review.js`),r=I(e,`player.js`);try{await L(t)}catch(e){return d(e)?{success:!1,message:`No animation found. Run /think-back first to generate one.`}:(v(e),{success:!1,message:`Could not access animation data: ${f(e).message}`})}try{await L(r)}catch(e){return d(e)?{success:!1,message:`Player script not found. The player.js file is missing from the thinkback skill.`}:(v(e),{success:!1,message:`Could not access player script: ${f(e).message}`})}let i=n.get(process.stdout);if(!i)return{success:!1,message:`Failed to access terminal instance`};i.enterAlternateScreen();try{await _(`node`,[r],{stdio:`inherit`,cwd:e,reject:!1})}catch{}finally{i.exitAlternateScreen()}let a=I(e,`year_in_review.html`);if(await u(a)){let e=b();y(e===`macos`?`open`:e===`windows`?`start`:`xdg-open`,[a])}return{success:!0,message:`Year in review animation complete!`}}function U({onReady:e,onError:t}){let[n,r]=(0,G.useState)({phase:`checking`}),[a,o]=(0,G.useState)(``);if((0,G.useEffect)(()=>{async function n(){try{let t=await ie(),n=R(),i=z(),a=B(),s=n in t,c=w(a);if(s?c||(r({phase:`installing-marketplace`}),o(`Updating marketplace…`),h(`Refreshing marketplace ${n}`),await ce(n,e=>{o(e)}),T(),k(),h(`Marketplace ${n} refreshed`)):(r({phase:`installing-marketplace`}),h(`Installing marketplace ${i}`),await se({source:`github`,repo:i},e=>{o(e)}),k(),h(`Marketplace ${n} installed`)),c){let{disabled:e}=await A();if(e.some(e=>e.name===`thinkback`||e.source?.includes(a))){r({phase:`enabling-plugin`}),h(`Enabling plugin ${a}`);let e=await P(a);if(!e.success)throw Error(`Failed to enable plugin: ${e.message}`);k(),h(`Plugin ${a} enabled`)}}else{r({phase:`installing-plugin`}),h(`Installing plugin ${a}`);let e=await N([a]);if(e.failed.length>0){let t=e.failed.map(e=>`${e.name}: ${e.error}`).join(`, `);throw Error(`Failed to install plugin: ${t}`)}k(),h(`Plugin ${a} installed`)}r({phase:`ready`}),e()}catch(e){let n=f(e);v(n),r({phase:`error`,message:n.message}),t(n.message)}}n()},[e,t]),n.phase===`error`)return(0,K.jsx)(s,{flexDirection:`column`,children:(0,K.jsxs)(i,{color:`error`,children:[`Error: `,n.message]})});if(n.phase===`ready`)return null;let c=n.phase===`checking`?`Checking thinkback installation…`:n.phase===`installing-marketplace`?`Installing marketplace…`:n.phase===`enabling-plugin`?`Enabling thinkback plugin…`:`Installing thinkback plugin…`;return(0,K.jsx)(s,{flexDirection:`column`,children:(0,K.jsxs)(s,{children:[(0,K.jsx)(O,{}),(0,K.jsx)(i,{children:a||c})]})})}function W({onDone:e,onAction:t,skillDir:n,hasGenerated:r}){let[o,c]=(0,G.useState)(!1),l=r?[{label:`Play animation`,value:`play`,description:`Watch your year in review`},{label:`Edit content`,value:`edit`,description:`Modify the animation`},{label:`Fix errors`,value:`fix`,description:`Fix validation or rendering issues`},{label:`Regenerate`,value:`regenerate`,description:`Create a new animation from scratch`}]:[{label:`Let's go!`,value:`regenerate`,description:`Generate your personalized animation`}];function u(r){c(!0),r===`play`?H(n).then(()=>{e(void 0,{display:`skip`})}):t(r)}function d(){e(void 0,{display:`skip`})}return o?null:(0,K.jsx)(a,{title:`Think Back on 2025 with Claude Code`,subtitle:`Generate your 2025 Claude Code Think Back (takes a few minutes to run)`,onCancel:d,color:`claude`,children:(0,K.jsxs)(s,{flexDirection:`column`,gap:1,children:[!r&&(0,K.jsxs)(s,{flexDirection:`column`,children:[(0,K.jsx)(i,{children:`Relive your year of coding with Claude.`}),(0,K.jsx)(i,{dimColor:!0,children:`We'll create a personalized ASCII animation celebrating your journey.`})]}),(0,K.jsx)(E,{options:l,onChange:u,visibleOptionCount:5})]})})}function le({onDone:e}){let[t,n]=(0,G.useState)(!1),[r,a]=(0,G.useState)(null),[o,c]=(0,G.useState)(null),[l,d]=(0,G.useState)(null);function f(){n(!0)}let p=(0,G.useCallback)(t=>{a(t),e(`Error with thinkback: ${t}. Try running /plugin to manually install the think-back plugin.`,{display:`system`})},[e]);(0,G.useEffect)(()=>{t&&!o&&!r&&V().then(e=>{e?(h(`Thinkback skill directory: ${e}`),c(e)):p(`Could not find thinkback skill directory`)})},[t,o,r,p]),(0,G.useEffect)(()=>{if(!o)return;let e=I(o,`year_in_review.js`);u(e).then(t=>{h(`Checking for ${e}: ${t?`found`:`not found`}`),d(t)})},[o]);function m(t){e({edit:Z,fix:Q,regenerate:$}[t],{display:`user`,shouldQuery:!0})}return r?(0,K.jsxs)(s,{flexDirection:`column`,children:[(0,K.jsxs)(i,{color:`error`,children:[`Error: `,r]}),(0,K.jsx)(i,{dimColor:!0,children:`Try running /plugin to manually install the think-back plugin.`})]}):t?!o||l===null?(0,K.jsxs)(s,{children:[(0,K.jsx)(O,{}),(0,K.jsx)(i,{children:`Loading thinkback skill…`})]}):(0,K.jsx)(W,{onDone:e,onAction:m,skillDir:o,hasGenerated:l}):(0,K.jsx)(U,{onReady:f,onError:p})}async function ue(e){return(0,K.jsx)(le,{onDone:e})}var G,K,q,J,Y,X,Z,Q,$,de=e((()=>{g(),r(),G=t(r(),1),j(),o(),C(),F(),m(),p(),te(),l(),ee(),x(),re(),ne(),S(),ae(),D(),M(),K=c(),q=`claude-code-marketplace`,J=`anthropics/claude-code-marketplace`,Y=`anthropics/claude-plugins-official`,X=`thinkback`,Z=`Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.`,Q=`Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.`,$=`Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.`}));export{de as n,H as r,ue as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{Ra as t,Wa as n,jI as r,kI as i}from"./loadAgentsDir-Bz0FfcVt.js";import{n as a,r as o}from"./thinkback-MeOOO7gf.js";import{join as s}from"path";function c(){return`thinkback@${process.env.USER_TYPE===`ant`?u:i}`}async function l(){let e=n(),t=c(),r=e.plugins[t];if(!r||r.length===0)return{type:`text`,value:`Thinkback plugin not installed. Run /think-back first to install it.`};let i=r[0];return i?.installPath?{type:`text`,value:(await o(s(i.installPath,`skills`,d))).message}:{type:`text`,value:`Thinkback plugin installation path not found.`}}var u,d;e((()=>{t(),r(),a(),u=`claude-code-marketplace`,d=`thinkback`}))();export{l as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-CaCI0a5T.js";import{r,t as i}from"./execFileNoThrow-DdmR1mBS.js";import{a,i as o,t as s}from"./cliLaunch-CMXoY_LO.js";import{spawnSync as c}from"child_process";var l;e((()=>{r(),o(),t(),l=class{constructor(){n(this,`name`,`tmux`),n(this,`supportsInteractiveInput`,!0)}async available(){let{code:e}=await i(`tmux`,[`-V`],{useCwd:!1});return e===0}async start(e){let t=s(e.args,{env:{...e.env,CLAUDE_CODE_SESSION_KIND:`bg`,CLAUDE_CODE_SESSION_NAME:e.sessionName,CLAUDE_CODE_SESSION_LOG:e.logPath,CLAUDE_CODE_TMUX_SESSION:e.sessionName}}),n=a(t);if(c(`tmux`,[`new-session`,`-d`,`-s`,e.sessionName,n],{stdio:`inherit`,env:t.env}).status!==0)throw Error(`Failed to create tmux session.`);return{pid:0,sessionName:e.sessionName,logPath:e.logPath,engineUsed:`tmux`}}async attach(e){if(!e.tmuxSessionName)throw Error(`Session ${e.sessionId} has no tmux session name.`);if(c(`tmux`,[`attach-session`,`-t`,e.tmuxSessionName],{stdio:`inherit`}).status!==0)throw Error(`Failed to attach to tmux session '${e.tmuxSessionName}'.`)}}}))();export{l as TmuxEngine};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{l as t,p as n}from"./debug-CjIaNjpK.js";import{o as r,s as i}from"./log-DVv8YiNo.js";import{i as a,t as o}from"./observationStore-DVBxrSdI.js";import{randomUUID as s}from"node:crypto";function c(){for(let[e,t]of T)if(t.size>x){let e=t.values(),n=t.size-S;for(let r=0;r<n;r++){let n=e.next();if(n.done)break;t.delete(n.value)}}if(T.size>C){let e=T.size-w,t=0;for(let n of T.keys()){if(t>=e)break;T.delete(n),t++}}}function l(e,t){let n=T.get(e)??new Set;n.add(t),T.delete(e),T.set(e,n),c()}function u(e,t){return T.get(e)?.has(t)??!1}function d(){T.clear()}function f(e){return{id:s(),sessionId:e.sessionId,projectId:e.projectId,projectName:e.projectName,cwd:e.cwd,timestamp:new Date().toISOString(),source:`tool-hook`,turn:e.turn}}function p(){return E||(E=Promise.all([import(`./projectContext-DbTQHQS3.js`),import(`./featureCheck-B1GSTyhh.js`),import(`./runtimeObserver-1EdvvoYw.js`)]).then(([e,t,n])=>({resolveProjectContext:e.resolveProjectContext,isSkillLearningEnabled:t.isSkillLearningEnabled,RUNTIME_SESSION_ID:n.RUNTIME_SESSION_ID,getRuntimeTurn:n.getRuntimeTurn}))),E}function m(){E=void 0}async function h(e,t,r,a){let o;try{let{resolveProjectContext:s,isSkillLearningEnabled:c,RUNTIME_SESSION_ID:l,getRuntimeTurn:u}=await p();if(!c())return a();let d=s(process.cwd());o={sessionId:r.sessionId??l,turn:r.turn??u(),projectId:d.projectId,projectName:d.projectName,cwd:d.cwd,project:d},g(o,e,t).catch(e=>{n(`skill-learning: recordToolStart error`),i(e)})}catch(e){n(`skill-learning: hook setup error`),i(e)}try{let t=await a();return o&&_(o,e,t,`success`).catch(e=>{n(`skill-learning: recordToolComplete error`),i(e)}),t}catch(t){throw o&&v(o,e,t).catch(e=>{n(`skill-learning: recordToolError error`),i(e)}),t}}async function g(e,t,n){return l(e.sessionId,e.turn),o({...f(e),event:`tool_start`,toolName:t,toolInput:b(n)},{project:e.project})}async function _(e,t,n,r=`success`){return l(e.sessionId,e.turn),o({...f(e),event:`tool_complete`,toolName:t,toolOutput:b(n),outcome:r},{project:e.project})}async function v(e,t,n){return l(e.sessionId,e.turn),o({...f(e),event:`tool_complete`,toolName:t,toolOutput:b(n),outcome:`failure`},{project:e.project})}async function y(e,t){return l(e.sessionId,e.turn),o({...f(e),event:`user_message`,messageText:t},{project:e.project})}function b(e){if(e!=null){if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}}var x,S,C,w,T,E,D=e((()=>{a(),t(),r(),x=500,S=250,C=50,w=25,T=new Map}));export{v as a,d as c,_ as i,m as l,D as n,g as o,c as r,y as s,u as t,h as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c,u as l}from"./toolEventObserver-BtC9xDYY.js";i();export{c as hasToolHookObservationsForTurn,o as pruneEmittedTurns,n as recordToolComplete,e as recordToolError,a as recordToolStart,s as recordUserCorrection,t as resetToolHookBookkeeping,r as resetToolHookDepsCache,l as runToolCallWithSkillLearningHooks};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,n as t}from"./chunk-DR8-3Aex.js";import{Fu as n,Hu as r,Pu as i,Uu as a}from"./growthbook-p4aJ_UMv.js";import{aO as o,cA as s,dp as c,fp as l,oO as u,sA as d}from"./loadAgentsDir-Bz0FfcVt.js";function f(e){return h.some(t=>e.endsWith(t))}function p(e){return e.filter(e=>d.has(e.name)||f(e.name))}function m(e,t,r){let[i,o]=a(n([...e,...t],`name`),u),s=(e,t)=>e.name.localeCompare(t.name),c=[...o.sort(s),...i.sort(s)];return g&&g.isCoordinatorMode()?p(c):c}var h,g,_=t((()=>{r(),i(),s(),o(),h=[`subscribe_pr_activity`,`unsubscribe_pr_activity`],g=(l(),e(c))}));export{m as i,_ as n,f as r,p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./toolPool-CEi_2xIH.js";e();export{t as applyCoordinatorToolFilter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,r as t,t as n}from"./trustedDevice-DADcxAAs.js";e();export{n as clearTrustedDeviceToken,t as enrollTrustedDevice};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,n as t}from"./chunk-DR8-3Aex.js";import{n,t as r}from"./memoize-DNnuA2aU.js";import{n as i,t as a}from"./axios-Zh7qGPze.js";import{In as o,Ln as s,O as c,l,m as u,nt as d,t as f}from"./growthbook-p4aJ_UMv.js";import{E as p,O as m,U as h,l as g,p as _,z as v}from"./debug-CjIaNjpK.js";import{n as y,r as b}from"./privacyLevel-CRCHhztk.js";import{l as x,u as S}from"./oauth-DMPGYAoZ.js";import{hostname as C}from"os";function w(){return l(k,!1)}function T(){if(w())return A()}function E(){A.cache?.clear?.()}function D(){if(!w())return;let e=o();try{let t=e.read();t?.trustedDeviceToken&&(delete t.trustedDeviceToken,e.update(t))}catch{}A.cache?.clear?.()}async function O(){try{if(!await f(k)){_(`[trusted-device] Gate ${k} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){_(`[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)`);return}let{getClaudeAIOAuthTokens:t}=(d(),e(c)),n=t()?.accessToken;if(!n){_(`[trusted-device] No OAuth token, skipping enrollment`);return}let r=o();if(b()){_(`[trusted-device] Essential traffic only, skipping enrollment`);return}let a=x().BASE_API_URL,s;try{s=await i.post(`${a}/api/auth/trusted_devices`,{display_name:`Claude Code on ${C()} · ${process.platform}`},{headers:{Authorization:`Bearer ${n}`,"Content-Type":`application/json`},timeout:1e4,validateStatus:e=>e<500})}catch(e){_(`[trusted-device] Enrollment request failed: ${v(e)}`);return}if(s.status!==200&&s.status!==201){_(`[trusted-device] Enrollment failed ${s.status}: ${m(s.data).slice(0,200)}`);return}let l=s.data?.device_token;if(!l||typeof l!=`string`){_(`[trusted-device] Enrollment response missing device_token field`);return}try{let e=r.read();if(!e){_(`[trusted-device] Cannot read storage, skipping token persist`);return}e.trustedDeviceToken=l;let t=r.update(e);if(!t.success){_(`[trusted-device] Failed to persist token: ${t.warning??`unknown`}`);return}A.cache?.clear?.(),_(`[trusted-device] Enrolled device_id=${s.data.device_id??`unknown`}`)}catch(e){_(`[trusted-device] Storage write failed: ${v(e)}`)}}catch(e){_(`[trusted-device] Enrollment error: ${v(e)}`)}}var k,A,j=t((()=>{a(),r(),S(),u(),g(),h(),y(),s(),p(),k=`tengu_sessions_elevated_auth_enforcement`,A=n(()=>process.env.CLAUDE_TRUSTED_DEVICE_TOKEN||o().read()?.trustedDeviceToken)}));export{j as a,T as i,E as n,O as r,D as t};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-CFG7IQID.js";import{Ht as r,N as i}from"./state-CUZTq6r0.js";import{join as a}from"node:path";import{existsSync as o,mkdirSync as s,unlinkSync as c,writeFileSync as l}from"node:fs";function u(){return a(t(),`.tui-mode`)}function d(){return o(u())}function f(){let e=u();return s(t(),{recursive:!0}),l(e,new Date().toISOString(),`utf8`),{type:`text`,value:[`## TUI mode enabled`,``,`Marker written: \`${e}\``,``,`Flicker-free alternate-screen rendering will be active on the next`,`session start. Add this to your shell profile to make it permanent:`,``,` [ -f "$HOME/.claude/.tui-mode" ] && export CLAUDE_CODE_NO_FLICKER=1`,``,"To disable: `/tui off`"].join(`
|
|
2
|
+
`)}}function p(){let e=u();return o(e)?(c(e),{type:`text`,value:[`## TUI mode disabled`,``,`Marker removed: \`${e}\``,``,`Standard (non-alternate-screen) rendering will be used on the next`,`session start.`,``,"To re-enable: `/tui on`"].join(`
|
|
3
|
+
`)}):{type:`text`,value:`TUI mode was not active.`}}async function m(e){let t=e.trim().toLowerCase();if(t===`status`){let e=d(),t=u(),n=process.env.CLAUDE_CODE_NO_FLICKER,r;return r=n===`1`||n===`true`?`CLAUDE_CODE_NO_FLICKER=1 (forced on via env var)`:n===`0`||n===`false`?`CLAUDE_CODE_NO_FLICKER=0 (forced off via env var)`:`CLAUDE_CODE_NO_FLICKER not set`,{type:`text`,value:[`## TUI Mode Status`,``,` Marker file: ${e?`present`:`absent`} (\`${t}\`)`,` Mode: ${e?`enabled`:`disabled`}`,` Env var: ${r}`,``,`Note: changes take effect on the next session start.`].join(`
|
|
4
|
+
`)}}return t===`on`?f():t===`off`?p():t===``||t===`toggle`?d()?p():f():{type:`text`,value:[`Unknown subcommand: "${t}"`,``,h].join(`
|
|
5
|
+
`)}}var h,g,_,v=e((()=>{r(),n(),h=[`Usage: /tui [subcommand]`,``,` (no args) Toggle flicker-free TUI mode (alternate screen buffer)`,` on Enable TUI mode`,` off Disable TUI mode`,` status Show current TUI mode state`,``,`TUI mode uses the ANSI alternate screen buffer (\\x1b[?1049h) so the`,`Claude Code UI occupies a clean full-screen area with no scroll-back`,`flicker. The setting is stored in ~/.claude/.tui-mode and takes effect`,`on the next session start.`,``,`Shell-profile integration (auto-enable on every start):`,` [ -f "$HOME/.claude/.tui-mode" ] && export CLAUDE_CODE_NO_FLICKER=1`,``,`Environment override:`,` CLAUDE_CODE_NO_FLICKER=1 force on (overrides marker)`,` CLAUDE_CODE_NO_FLICKER=0 force off (overrides marker)`].join(`
|
|
6
|
+
`),g={type:`local-jsx`,name:`tui`,description:`Manage flicker-free TUI mode. Open actions or run: status, on, off, toggle`,isHidden:!1,isEnabled:()=>!i(),argumentHint:`[status|on|off|toggle]`,bridgeSafe:!0,getBridgeInvocationError:e=>e.trim()?void 0:`Use /tui status/on/off/toggle over Remote Control.`,load:()=>import(`./panel-NoDfShEZ.js`)},_={type:`local`,name:`tui`,description:`Toggle flicker-free TUI mode (alternate screen buffer). Subcommands: on, off, status`,isHidden:!1,isEnabled:()=>i(),supportsNonInteractive:!0,bridgeSafe:!0,load:async()=>({call:m})}}));export{_ as i,v as n,g as r,m as t};
|