claude-code-best 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AddWorkspaceDirectory-Cj5bvJgD.js +1 -0
- package/dist/chunks/App-2tgSv9lb.js +1 -0
- package/dist/chunks/ApproveApiKey-DWa-XTLb.js +1 -0
- package/dist/chunks/ApproveApiKey-SIUwkD8j.js +1 -0
- package/dist/chunks/AssistantSessionChooser-DF9eeJZS.js +1 -0
- package/dist/chunks/BackgroundTasksDialog-DXJdube9.js +2 -0
- package/dist/chunks/BypassPermissionsModeDialog-BOSW4Zdy.js +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-BW4XHmkw.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-B8oAAHSI.js +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-Bz0JyaOG.js +1 -0
- package/dist/chunks/ConsoleOAuthFlow-DYhmGSkx.js +1 -0
- package/dist/chunks/DesktopHandoff-CcsM_OAS.js +1 -0
- package/dist/chunks/DevChannelsDialog-DXRgY00D.js +1 -0
- package/dist/chunks/Dialog-DYFGqyDs.js +1 -0
- package/dist/chunks/DiffDialog-PvNZfZby.js +3 -0
- package/dist/chunks/Doctor--B1HUENo.js +1 -0
- package/dist/chunks/Doctor-CE_jL9jC.js +3 -0
- package/dist/chunks/ExitFlow-C4ybxKPn.js +2 -0
- package/dist/chunks/Feedback-B5rPGl_C.js +2 -0
- package/dist/chunks/Grove-C2YjB3zL.js +1 -0
- package/dist/chunks/Grove-CKVpREDU.js +11 -0
- package/dist/chunks/HybridTransport-Byjvz-DL.js +4 -0
- package/dist/chunks/ITermBackend-Co9XpeS4.js +1 -0
- package/dist/chunks/InProcessTransport-DB52dh4f.js +1 -0
- package/dist/chunks/InvalidConfigDialog-CNsqbNU3.js +1 -0
- package/dist/chunks/InvalidSettingsDialog-ClnZaN6b.js +1 -0
- package/dist/chunks/ListItem-OFARanN7.js +1 -0
- package/dist/chunks/MCPConnectionManager-CDsa79pu.js +1 -0
- package/dist/chunks/McpParsingWarnings-DZkzoeZf.js +1 -0
- package/dist/chunks/MessageSelector-CkeGQPNM.js +3 -0
- package/dist/chunks/Messages-PfbzLYOU.js +11 -0
- package/dist/chunks/Onboarding-BwoGQB4g.js +1 -0
- package/dist/chunks/OverageCreditUpsell-Q5g2YjQw.js +1 -0
- package/dist/chunks/PermissionDialog-5MlJf7ew.js +1 -0
- package/dist/chunks/PluginSettings-B2ASJ0Rx.js +17 -0
- package/dist/chunks/PressEnterToContinue-BdA9zDGs.js +1 -0
- package/dist/chunks/PromptInputFooterSuggestions-D4lMVCqj.js +1 -0
- package/dist/chunks/PromptInputHelpMenu-BvLtS6an.js +1 -0
- package/dist/chunks/QueryEngine-Av0G5fze.js +1 -0
- package/dist/chunks/REPL-DCwqua0C.js +1 -0
- package/dist/chunks/REPL-Dh8vzGmF.js +97 -0
- package/dist/chunks/RemoteCallout-BV_hoz98.js +1 -0
- package/dist/chunks/RemoteSessionManager-Cxoy1ud2.js +2 -0
- package/dist/chunks/ResumeConversation-B3WuB8rs.js +1 -0
- package/dist/chunks/SSETransport-pIm26VJq.js +4 -0
- package/dist/chunks/SearchBox-DfOmUoaI.js +1 -0
- package/dist/chunks/SearchExtraToolsTool-D70C-cmA.js +1 -0
- package/dist/chunks/SentryErrorBoundary-B6EWoJml.js +2 -0
- package/dist/chunks/SentryErrorBoundary-oJUBarGg.js +1 -0
- package/dist/chunks/Settings-CreAhCsb.js +2 -0
- package/dist/chunks/TeleportProgress-DPzGpyyM.js +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-DqWQX6j8.js +1 -0
- package/dist/chunks/TeleportResumeWrapper-DPSO0S49.js +1 -0
- package/dist/chunks/ThemePicker-DueihHcy.js +1 -0
- package/dist/chunks/TmuxBackend-BNaZNAeP.js +9 -0
- package/dist/chunks/TrustDialog-CIzAlGn9.js +1 -0
- package/dist/chunks/TungstenTool-C5IqKVr0.js +1 -0
- package/dist/chunks/TungstenTool-V-Bwqlx3.js +1 -0
- package/dist/chunks/ValidationErrorsList-1k1qbsRo.js +2 -0
- package/dist/chunks/WelcomeV2-CR6TtXXM.js +1 -0
- package/dist/chunks/WindowsTerminalBackend-C5SeTXqC.js +2 -0
- package/dist/chunks/add-dir-DAMizKzF.js +1 -0
- package/dist/chunks/agentDisplay-B9z7i8b_.js +1 -0
- package/dist/chunks/agents-D5u0p1UC.js +103 -0
- package/dist/chunks/agents-DCh_gEvJ.js +2 -0
- package/dist/chunks/ajv-B_OpU_Uh.js +8 -0
- package/dist/chunks/analytics-DqMQntaB.js +1 -0
- package/dist/chunks/ant-DRJq-cEg.js +1 -0
- package/dist/chunks/api-B6URs6nc.js +1 -0
- package/dist/chunks/api-Dz_3z1kl.js +1 -0
- package/dist/chunks/asciicast-aoKFhc7C.js +1 -0
- package/dist/chunks/asciicast-o5Zg4dJt.js +4 -0
- package/dist/chunks/assistant-BRGDWkKB.js +1 -0
- package/dist/chunks/assistant-tPxOUa-Z.js +1 -0
- package/dist/chunks/assistant-zVegFdAO.js +1 -0
- package/dist/chunks/attributionHooks-PygdohOh.js +1 -0
- package/dist/chunks/attributionTrailer-BpvhXgRP.js +1 -0
- package/dist/chunks/auth-CqURlg4d.js +1 -0
- package/dist/chunks/auth-D4isgfuK.js +1 -0
- package/dist/chunks/autoMode-DVt4K4I2.js +45 -0
- package/dist/chunks/autoModeDenials-Cp6VFdsm.js +1 -0
- package/dist/chunks/autonomy-BZzW8QJZ.js +1 -0
- package/dist/chunks/autonomy-Ffv0QIyl.js +19 -0
- package/dist/chunks/autonomyPanel-MwuzDvv_.js +1 -0
- package/dist/chunks/axios-DLnc2dVy.js +1 -0
- package/dist/chunks/axios-DhfaybwJ.js +12 -0
- package/dist/chunks/backgroundHousekeeping-CYnAG60-.js +17 -0
- package/dist/chunks/backgroundHousekeeping-DUmxC6h0.js +1 -0
- package/dist/chunks/banner-CVXH2xts.js +2 -0
- package/dist/chunks/base64-js-DIVSFswY.js +1 -0
- package/dist/chunks/bedrockClient-qi1-JCOK.js +15 -0
- package/dist/chunks/bg-DK0E4ZtW.js +9 -0
- package/dist/chunks/bg-Dbh5z3Y8.js +1 -0
- package/dist/chunks/branch-DXefFdDE.js +3 -0
- package/dist/chunks/break-cache-ByJ7U2Ts.js +8 -0
- package/dist/chunks/bridge-qr4GQW_c.js +2 -0
- package/dist/chunks/bridgeConfig-CJ-KznTS.js +1 -0
- package/dist/chunks/bridgeConfig-CNbOKpAg.js +1 -0
- package/dist/chunks/bridgeEnabled-5vsPrjuq.js +1 -0
- package/dist/chunks/bridgeEnabled-BUJTCUHY.js +1 -0
- package/dist/chunks/bridgeMain-BimZwc2P.js +68 -0
- package/dist/chunks/bridgeMain-DYL4fl6A.js +1 -0
- package/dist/chunks/bridgeMessaging-BiE0CTqq.js +1 -0
- package/dist/chunks/bridgePointer-FvAMj3re.js +1 -0
- package/dist/chunks/browser-fLRXxIsQ.js +1 -0
- package/dist/chunks/btw-FpimqEqk.js +1 -0
- package/dist/chunks/buddy-BA3Cr067.js +3 -0
- package/dist/chunks/bundledMode-kSQejuY4.js +1 -0
- package/dist/chunks/bypassPermissionsKillswitch-CSC9p8mO.js +1 -0
- package/dist/chunks/caches-BUBkfP2Q.js +3 -0
- package/dist/chunks/caches-CTfNpKhW.js +1 -0
- package/dist/chunks/capacityWake-BXlUpptF.js +1 -0
- package/dist/chunks/ccrClient-BOxUn9EJ.js +1 -0
- package/dist/chunks/ccshareResume-DWLjTF22.js +1 -0
- package/dist/chunks/changeDetector-Y9KV5LgG.js +1 -0
- package/dist/chunks/channelNotification-CC7Xb06W.js +1 -0
- package/dist/chunks/channelNotification-l3EXKDNB.js +1 -0
- package/dist/chunks/chokidar-BcI3rIKm.js +1 -0
- package/dist/chunks/chokidar-SzksMqYp.js +1 -0
- package/dist/chunks/chrome-BnKyWWQL.js +1 -0
- package/dist/chunks/chromeNativeHost-4U39yLtd.js +1 -0
- package/dist/chunks/chunk-DR8-3Aex.js +1 -0
- package/dist/chunks/classPrivateFieldSet2-EAQNhHs8.js +1 -0
- package/dist/chunks/claudeDesktop-D0S1eq1F.js +1 -0
- package/dist/chunks/cleanup-Bg_gFgcj.js +1 -0
- package/dist/chunks/clear-OUVFUt8Z.js +1 -0
- package/dist/chunks/cliLaunch-BQa48gsr.js +1 -0
- package/dist/chunks/client-B47ZvTMo.js +1 -0
- package/dist/chunks/client-CPn1wQyc.js +7 -0
- package/dist/chunks/client-_sjL0I7A.js +35 -0
- package/dist/chunks/color-D5MCzz9h.js +1 -0
- package/dist/chunks/color-convert-ULbeSgNC.js +1 -0
- package/dist/chunks/commands-FJGWgQsa.js +1 -0
- package/dist/chunks/commitAttribution-BFshsh2H.js +2 -0
- package/dist/chunks/commitAttribution-DSv9FggK.js +1 -0
- package/dist/chunks/common-B379wT22.js +1 -0
- package/dist/chunks/common-B_BC3eMY.js +1 -0
- package/dist/chunks/common-CMCv4N_v.js +1 -0
- package/dist/chunks/compact-DWNaf1wR.js +3 -0
- package/dist/chunks/companion-CyK_Dr1U.js +1 -0
- package/dist/chunks/completionCache-DHfUBBMH.js +1 -0
- package/dist/chunks/completionCache-DORrtxkS.js +4 -0
- package/dist/chunks/computerUseLock-BjoDJH2h.js +1 -0
- package/dist/chunks/config-BdCuh6eA.js +1 -0
- package/dist/chunks/config-DNz6Eitr.js +1 -0
- package/dist/chunks/connectHeadless-CwsFt-Mh.js +1 -0
- package/dist/chunks/constants-41VpZw2G.js +1 -0
- package/dist/chunks/context-BOjdTj0i.js +1 -0
- package/dist/chunks/context-noninteractive-Bd2HO-vU.js +1 -0
- package/dist/chunks/context-noninteractive-k2ibficU.js +54 -0
- package/dist/chunks/controlMessageCompat-BJhFiS7u.js +1 -0
- package/dist/chunks/conversation-BP0phkOY.js +1 -0
- package/dist/chunks/conversation-Ci8O_eZ-.js +1 -0
- package/dist/chunks/copy-B0VUJ2rH.js +7 -0
- package/dist/chunks/createSSHSession-DqmkCS_k.js +6 -0
- package/dist/chunks/createSession-B9MhWusY.js +1 -0
- package/dist/chunks/createSession-CJEsHz58.js +1 -0
- package/dist/chunks/cron-DiW7eIPP.js +1 -0
- package/dist/chunks/cronJitterConfig-BzPaa52I.js +6 -0
- package/dist/chunks/crossProjectResume-tWsqBUHc.js +40 -0
- package/dist/chunks/cwd--iizewsn.js +1 -0
- package/dist/chunks/cwd-BgpSJxd7.js +1 -0
- package/dist/chunks/daemon-VYRit6Aq.js +2 -0
- package/dist/chunks/dangerousBackend-BU_PHGR2.js +1 -0
- package/dist/chunks/datadog-Bd1s_VFj.js +1 -0
- package/dist/chunks/datadog-DJowkWhh.js +1 -0
- package/dist/chunks/debug-DM5ezCBS.js +1 -0
- package/dist/chunks/debug-UI3T040K.js +5 -0
- package/dist/chunks/debugUtils-BBMFODKH.js +1 -0
- package/dist/chunks/defineProperty-80gRi2ZW.js +1 -0
- package/dist/chunks/desktop-BDowrzvG.js +1 -0
- package/dist/chunks/detached-D300jlhj.js +5 -0
- package/dist/chunks/detect-libc-DNuQfUvI.js +1 -0
- package/dist/chunks/detectRepository-CBk3S2zv.js +1 -0
- package/dist/chunks/detectRepository-DCTvg4p0.js +1 -0
- package/dist/chunks/detection-CQsNad64.js +1 -0
- package/dist/chunks/detection-DJ-vTbBf.js +1 -0
- package/dist/chunks/diff-auU5sUOw.js +1 -0
- package/dist/chunks/directoryCompletion-DP_4B1GL.js +1 -0
- package/dist/chunks/dist-CanSxOZ1.js +5 -0
- package/dist/chunks/dist-Cg1a1Exw.js +29 -0
- package/dist/chunks/dist-Q7YNoZ0H.js +20 -0
- package/dist/chunks/dist-es-4z5T3Jzm.js +1 -0
- package/dist/chunks/dist-es-B2jg52tM2.js +1 -0
- package/dist/chunks/dist-es-B6OXHQ1S.js +1 -0
- package/dist/chunks/dist-es-B8NEy5hc.js +1 -0
- package/dist/chunks/dist-es-BVGppqE4.js +1 -0
- package/dist/chunks/dist-es-Bcw5GZko.js +1 -0
- package/dist/chunks/dist-es-BoIJpncb.js +9 -0
- package/dist/chunks/dist-es-Bu_Fshi1.js +1 -0
- package/dist/chunks/dist-es-C-1vn4OP2.js +1 -0
- package/dist/chunks/dist-es-C41b_0B5.js +1 -0
- package/dist/chunks/dist-es-CCZYybbG2.js +1 -0
- package/dist/chunks/dist-es-CLK1mey-.js +1 -0
- package/dist/chunks/dist-es-CQz2aNf72.js +1 -0
- package/dist/chunks/dist-es-CSfI8B8l.js +1 -0
- package/dist/chunks/dist-es-CUZBYppo.js +1 -0
- package/dist/chunks/dist-es-CZkzHpjF.js +1 -0
- package/dist/chunks/dist-es-Cbf0_D8d.js +5 -0
- package/dist/chunks/dist-es-ChHe-SVL.js +1 -0
- package/dist/chunks/dist-es-ClYOf0My.js +1 -0
- package/dist/chunks/dist-es-D-kJbj4A2.js +1 -0
- package/dist/chunks/dist-es-D1LN6CJd.js +1 -0
- package/dist/chunks/dist-es-DC1sC3ph.js +1 -0
- package/dist/chunks/dist-es-DGn8uOwQ2.js +1 -0
- package/dist/chunks/dist-es-DK5fTeKM2.js +1 -0
- package/dist/chunks/dist-es-DN7otr6F.js +1 -0
- package/dist/chunks/dist-es-DPM0mPK5.js +1 -0
- package/dist/chunks/dist-es-DqZAh3nG.js +1 -0
- package/dist/chunks/dist-es-DuAZyxJ02.js +5 -0
- package/dist/chunks/dist-es-HVQrM0oE.js +1 -0
- package/dist/chunks/dist-es-OVleIB54.js +1 -0
- package/dist/chunks/dist-es-UAs0rdXg.js +1 -0
- package/dist/chunks/dist-es-WvMMuHmx2.js +1 -0
- package/dist/chunks/dist-es-fjXft-jH.js +1 -0
- package/dist/chunks/dist-es-hdN_ShpZ.js +3 -0
- package/dist/chunks/dist-es-neiUvMJb.js +1 -0
- package/dist/chunks/dist-es-yMYpDtui2.js +1 -0
- package/dist/chunks/dist-es-zjcbuB72.js +1 -0
- package/dist/chunks/distRoot-CcxmnzqQ.js +1 -0
- package/dist/chunks/doctor-bKPp6AeL.js +1 -0
- package/dist/chunks/earlyInput-JGJo1zcC.js +1 -0
- package/dist/chunks/earlyInput-tRkbxFv2.js +2 -0
- package/dist/chunks/effort-BQj2QnnA.js +9 -0
- package/dist/chunks/entry-CUu6-QhT.js +14 -0
- package/dist/chunks/env-chR0gV31.js +1 -0
- package/dist/chunks/envLessBridgeConfig-CixkwbRF.js +1 -0
- package/dist/chunks/envLessBridgeConfig-Ju4W58xf.js +1 -0
- package/dist/chunks/envUtils-BWeoiL4Y.js +1 -0
- package/dist/chunks/escHotkey-Cyz0yyh1.js +259 -0
- package/dist/chunks/esm--xjzB1hI.js +1 -0
- package/dist/chunks/esm-B2HIF0XY.js +1 -0
- package/dist/chunks/esm-BGQPWnJy.js +1 -0
- package/dist/chunks/esm-C-1qL9Mn.js +1 -0
- package/dist/chunks/esm-C3jcs1DH.js +1 -0
- package/dist/chunks/esm-C97WL9nC.js +1 -0
- package/dist/chunks/esm-CIL-SKM8.js +1 -0
- package/dist/chunks/esm-CJlBxjtx.js +1 -0
- package/dist/chunks/esm-CsGLyWmS.js +56 -0
- package/dist/chunks/esm-DQHmDm-H.js +1 -0
- package/dist/chunks/esm-DcdOXSzi.js +1 -0
- package/dist/chunks/esm-DhNYgGTV.js +1 -0
- package/dist/chunks/esm-DxPW7qPs.js +1 -0
- package/dist/chunks/esm-FBUWr3vI.js +1 -0
- package/dist/chunks/esm-QgL6y---.js +10 -0
- package/dist/chunks/esm-v0kPjgVS.js +1 -0
- package/dist/chunks/esm-vIn-YV_h.js +1 -0
- package/dist/chunks/event-streams-BV7ngMXu.js +1 -0
- package/dist/chunks/eventLoopStallDetector-Dnh1fc31.js +1 -0
- package/dist/chunks/execAsync-BkA6ogic.js +1 -0
- package/dist/chunks/execFileNoThrow-CuQN1sz8.js +1 -0
- package/dist/chunks/execSyncWrapper-C2XQnFVo.js +1 -0
- package/dist/chunks/execa-CGue6Z3n.js +34 -0
- package/dist/chunks/executor-4EeD8GNm.js +1561 -0
- package/dist/chunks/executor-BHEuNh5F.js +1 -0
- package/dist/chunks/exit-DijkO8eo.js +1 -0
- package/dist/chunks/exit-_obETqBv.js +2 -0
- package/dist/chunks/export-DA-bBZkX.js +2 -0
- package/dist/chunks/exportRenderer-3y4tGdSB.js +1 -0
- package/dist/chunks/extra-usage-CS6VwKJt.js +1 -0
- package/dist/chunks/extra-usage-DGHEQOrY.js +1 -0
- package/dist/chunks/extra-usage-core-DOgT4u4i.js +1 -0
- package/dist/chunks/extra-usage-noninteractive-DYnfiRlV.js +1 -0
- package/dist/chunks/extraUsage-CfxgfpX_.js +1 -0
- package/dist/chunks/extractMemories-jvjCvtpC.js +1 -0
- package/dist/chunks/fast-Bbtx_Bs1.js +1 -0
- package/dist/chunks/fast-CzRUJBTK.js +1 -0
- package/dist/chunks/featureCheck-Cm0YNDXO.js +1 -0
- package/dist/chunks/featureCheck-p7OeCYzj.js +1 -0
- package/dist/chunks/feedback-FoXtdHAV.js +1 -0
- package/dist/chunks/figures-gfT9mM8P.js +1 -0
- package/dist/chunks/fileStateCache-C7-TxF8G.js +1 -0
- package/dist/chunks/files-DYvAZGxp.js +2 -0
- package/dist/chunks/firstPartyEventLogger-KIwaBY-E.js +1 -0
- package/dist/chunks/flushGate-C2Icy43G.js +1 -0
- package/dist/chunks/foundry-sdk-BFN5VDFQ.js +1 -0
- package/dist/chunks/fpsMetrics-DeezdcwV.js +1 -0
- package/dist/chunks/fuse-Ch_OAlm3.js +1 -0
- package/dist/chunks/gates-CbQLZHtm.js +1 -0
- package/dist/chunks/gates-DSI3vpwO.js +1 -0
- package/dist/chunks/gemini-BrNJGX4k.js +1 -0
- package/dist/chunks/generateRecap-B0fvSCjo.js +1 -0
- package/dist/chunks/generateSessionName-DvRYa39O.js +1 -0
- package/dist/chunks/genericProcessUtils-BGvcwuPt.js +23 -0
- package/dist/chunks/getMachineId-bsd-BMtYGBUL.js +1 -0
- package/dist/chunks/getMachineId-darwin-CiLdFH7z.js +2 -0
- package/dist/chunks/getMachineId-linux-Cr27rIeY.js +1 -0
- package/dist/chunks/getMachineId-unsupported-ceiBLwAN.js +1 -0
- package/dist/chunks/getMachineId-win-DFTmsQHq.js +1 -0
- package/dist/chunks/git-CN3qtTb_.js +6 -0
- package/dist/chunks/git-D23Mzu_K.js +1 -0
- package/dist/chunks/githubRepoPathMapping-Dut3d6nn.js +1 -0
- package/dist/chunks/graceful-fs-Cgc0rjGF.js +2 -0
- package/dist/chunks/grok-Ftoheab3.js +1 -0
- package/dist/chunks/growthbook-BynnuVTn.js +1 -0
- package/dist/chunks/hash-BRmOQc3c.js +1 -0
- package/dist/chunks/heapdump-hQ_w0LPC.js +5 -0
- package/dist/chunks/help-DQsHHv6r.js +1 -0
- package/dist/chunks/hooks-BLLL4iPv.js +1 -0
- package/dist/chunks/hooks-BhVDc8yb.js +79 -0
- package/dist/chunks/hostAdapter-D1eWmmhu.js +1 -0
- package/dist/chunks/hostGuard-zim_4F9V.js +1 -0
- package/dist/chunks/httpAuthSchemes-Wq4XWeLL.js +13 -0
- package/dist/chunks/ide-CPmMXLL-.js +2 -0
- package/dist/chunks/inboundAttachments-Bmf6vYsE.js +1 -0
- package/dist/chunks/inboundAttachments-D-p91z3w.js +1 -0
- package/dist/chunks/index.min-BJnb9GQI.js +1 -0
- package/dist/chunks/initReplBridge-BiHXpDEY.js +1 -0
- package/dist/chunks/insights-CTlTyvjj.js +822 -0
- package/dist/chunks/install-IPuD3Lq8.js +1 -0
- package/dist/chunks/install-github-app-Bmu_sA9e.js +147 -0
- package/dist/chunks/install-slack-app-Rfl81Jqo.js +1 -0
- package/dist/chunks/instinctParser-DHMa8xa0.js +1 -0
- package/dist/chunks/instrumentation-DWwmOmr0.js +12 -0
- package/dist/chunks/intl-Pse97ORk.js +1 -0
- package/dist/chunks/isObject-DaxDnPKm.js +1 -0
- package/dist/chunks/isSymbol-Dp3irZaY.js +1 -0
- package/dist/chunks/job-BXEt0izn.js +2 -0
- package/dist/chunks/json-bigint-OxRwRvup.js +8 -0
- package/dist/chunks/jsx-runtime-D-D469L8.js +1 -0
- package/dist/chunks/jws-2vqRyZtR.js +3 -0
- package/dist/chunks/jwtUtils-CpXwh_du.js +1 -0
- package/dist/chunks/keybindings-DRDgVvqz.js +2 -0
- package/dist/chunks/lang-D3ZHlfT6.js +1 -0
- package/dist/chunks/language-B_-BfBT4.js +1 -0
- package/dist/chunks/language-DcSjogBx.js +1 -0
- package/dist/chunks/launchAgentsPlatform-BPm_VMln.js +1 -0
- package/dist/chunks/launchAutofixPr-D2qac07g.js +2 -0
- package/dist/chunks/launchCommand-Du91jxMC.js +1 -0
- package/dist/chunks/launchLocalMemory-D_hBbXKE.js +3 -0
- package/dist/chunks/launchLocalVault-CPzNWvQ9.js +3 -0
- package/dist/chunks/launchMemoryStores-Djq2KhKb.js +1 -0
- package/dist/chunks/launchOnboarding-Bh6E7vdc.js +8 -0
- package/dist/chunks/launchSchedule-C988bQ-5.js +1 -0
- package/dist/chunks/launchSkillStore-DqrP6Gme.js +1 -0
- package/dist/chunks/launchTeleport-DFhybaq_.js +3 -0
- package/dist/chunks/launchVault-p_CSK4ZQ.js +1 -0
- package/dist/chunks/lazySchema-2sOku3cX.js +1 -0
- package/dist/chunks/lib-B4Q0Nrpb.js +14 -0
- package/dist/chunks/lib-Ca3QWJjN.js +2 -0
- package/dist/chunks/lib-inCisXen.js +8 -0
- package/dist/chunks/loadAgentsDir-Ci5mr0vm.js +4601 -0
- package/dist/chunks/loadAgentsDir-vB1QEZ7H.js +1 -0
- package/dist/chunks/loadPluginHooks-xYCEZ6t5.js +1 -0
- package/dist/chunks/loadSso-sDs471GC.js +1 -0
- package/dist/chunks/localSearch-DtVqtfvk.js +1 -0
- package/dist/chunks/localSearch-Vpn6W5aY.js +1 -0
- package/dist/chunks/lockfile-DBwdlC3K.js +1 -0
- package/dist/chunks/log-CzsijfHZ.js +1 -0
- package/dist/chunks/login-D-N78G6r.js +1 -0
- package/dist/chunks/login-D9IWjvza.js +1 -0
- package/dist/chunks/logoV2Utils-SAulcC5x.js +1 -0
- package/dist/chunks/logout-CFggVS-9.js +1 -0
- package/dist/chunks/magicDocs-BfoeYhin.js +57 -0
- package/dist/chunks/main-C6be1KFk.js +31 -0
- package/dist/chunks/main-DhMlhVj3.js +1108 -0
- package/dist/chunks/mappers-uIrAj-Wd.js +1 -0
- package/dist/chunks/mcp-CAYGNxCb.js +1 -0
- package/dist/chunks/mcp-COQap0SM.js +6 -0
- package/dist/chunks/mcp-DlM0OC6R.js +2 -0
- package/dist/chunks/mcpServer-1SnOWb8_.js +1 -0
- package/dist/chunks/mcpServer-DXvS3v4x.js +1 -0
- package/dist/chunks/memoize-DNnuA2aU.js +1 -0
- package/dist/chunks/memoize-DxwLawI2.js +1 -0
- package/dist/chunks/memory-XccPLQLt.js +1 -0
- package/dist/chunks/mobile-umu5P0cM.js +2 -0
- package/dist/chunks/modalContext-CmSKRyea.js +1 -0
- package/dist/chunks/model-CbiDGGJU.js +1 -0
- package/dist/chunks/model-DdbcxKub.js +1 -0
- package/dist/chunks/normalization-Cox8C0dP.js +1 -0
- package/dist/chunks/oauth-CdZEzMww.js +1 -0
- package/dist/chunks/oauth-CmensepG.js +1 -0
- package/dist/chunks/observationStore-tvkldXUo.js +4 -0
- package/dist/chunks/onChangeAppState-Dp0JIXd8.js +1 -0
- package/dist/chunks/open-CDditBQ-.js +1 -0
- package/dist/chunks/openai-6KcHd4Hw.js +10 -0
- package/dist/chunks/openaiShared-D5lOejS1.js +16 -0
- package/dist/chunks/output-style-XDb9-2Kk.js +1 -0
- package/dist/chunks/overageCreditGrant-DYiB4sr-.js +1 -0
- package/dist/chunks/p-map-9Ud1LOrJ.js +1 -0
- package/dist/chunks/p-map-D7WEmnBE.js +1 -0
- package/dist/chunks/package-BhL7chzt.js +1 -0
- package/dist/chunks/panel-ByW1omJn.js +1 -0
- package/dist/chunks/panel-Bz_8td5D.js +1 -0
- package/dist/chunks/parseConnectUrl-BS6i9JPo.js +1 -0
- package/dist/chunks/parser-CmngCwjB.js +1 -0
- package/dist/chunks/parser-SWIZo39J.js +1 -0
- package/dist/chunks/passes-Cbc6T_Tj.js +1 -0
- package/dist/chunks/path-C4kbwvSH.js +1 -0
- package/dist/chunks/paths-Q2255dD7.js +39 -0
- package/dist/chunks/permissions-BLzPHh_3.js +3 -0
- package/dist/chunks/permissions-DXLfdE7b.js +1 -0
- package/dist/chunks/permissions-Ps_D01ZB.js +1 -0
- package/dist/chunks/pipeTransport-D7NIp3aA.js +1 -0
- package/dist/chunks/plan-DloFVJK7.js +1 -0
- package/dist/chunks/platform-CuyedWpe.js +2 -0
- package/dist/chunks/plist-BO4ZqMZc.js +6 -0
- package/dist/chunks/plugin-XR9IBPMM.js +1 -0
- package/dist/chunks/pluginAutoupdate-Cr9hP0zG.js +1 -0
- package/dist/chunks/pluginBlocklist-CM9uP8CY.js +1 -0
- package/dist/chunks/pluginCliCommands-BQkrvES5.js +1 -0
- package/dist/chunks/pluginFlagging-CJ1--2Kw.js +1 -0
- package/dist/chunks/pluginOperations-B0rLuSvo.js +2 -0
- package/dist/chunks/pluginStartupCheck-Bjdc8zhz.js +1 -0
- package/dist/chunks/pluginStartupCheck-Cu2ezD51.js +1 -0
- package/dist/chunks/plugins-BgOP_8TX.js +4 -0
- package/dist/chunks/policyLimits-CKy_gTEt.js +1 -0
- package/dist/chunks/pollConfig-DhptuhFw.js +1 -0
- package/dist/chunks/poller-Ds0Y6Cir.js +1 -0
- package/dist/chunks/poor-DF0aqXDx.js +1 -0
- package/dist/chunks/poorMode-C5Frra4j.js +1 -0
- package/dist/chunks/poorMode-DJvjO2nW.js +1 -0
- package/dist/chunks/postCommitAttribution-Ehmwzzuq.js +1 -0
- package/dist/chunks/print-CPtR0KTa.js +39 -0
- package/dist/chunks/privacy-settings-e-7lc7Un.js +1 -0
- package/dist/chunks/process-CWupreF6.js +1 -0
- package/dist/chunks/process-DMKLUQIO.js +1 -0
- package/dist/chunks/processBashCommand-D5dC6Mya.js +1 -0
- package/dist/chunks/processSlashCommand-DHRUtZ-C.js +6 -0
- package/dist/chunks/projectContext-0fpRKUeH.js +1 -0
- package/dist/chunks/projectContext-eXMSfgdZ.js +1 -0
- package/dist/chunks/prompt-4tea6NJQ.js +54 -0
- package/dist/chunks/prompt-CQC-mh6u.js +1 -0
- package/dist/chunks/prompt-DEPUnJdB.js +222 -0
- package/dist/chunks/prompt-DawxLANl.js +1 -0
- package/dist/chunks/promptEditor-Ci-h04-5.js +4 -0
- package/dist/chunks/protocolHandler-DhqM32qE.js +13 -0
- package/dist/chunks/protocols-CAyQOlkr.js +7 -0
- package/dist/chunks/proxy-CfZp-wce.js +99 -0
- package/dist/chunks/rate-limit-options-B0l29Zx8.js +1 -0
- package/dist/chunks/rcDebugLog-BbPkkigY.js +11 -0
- package/dist/chunks/referral-ByevBJrE.js +1 -0
- package/dist/chunks/refresh-B_CwwIRX.js +1 -0
- package/dist/chunks/registerProtocol-DzhaQH02.js +36 -0
- package/dist/chunks/registry-DkHA4cRu.js +1 -0
- package/dist/chunks/release-notes-CZthYkei.js +4 -0
- package/dist/chunks/releaseNotes-CwKpIsyd.js +2 -0
- package/dist/chunks/reload-plugins-DxWfXvrN.js +1 -0
- package/dist/chunks/remote-env-BiRLWIrh.js +1 -0
- package/dist/chunks/remoteBridgeCore-nz1fPY1U.js +1 -0
- package/dist/chunks/remoteControlServer-FzLUxh2B.js +3 -0
- package/dist/chunks/rename-DmGuyncE.js +1 -0
- package/dist/chunks/renderOptions-BiyC2rj1.js +1 -0
- package/dist/chunks/resume-7GeU7RMS.js +2 -0
- package/dist/chunks/rewind-CXplHgh_.js +1 -0
- package/dist/chunks/rollback-DbSpxmJE.js +11 -0
- package/dist/chunks/runtimeObserver-Duod-ign.js +10 -0
- package/dist/chunks/runtimeObserver-OgM9ZYxZ.js +1 -0
- package/dist/chunks/sandbox-adapter-CxkhKgaa.js +1 -0
- package/dist/chunks/sandbox-toggle-Cc96R6Ox.js +1 -0
- package/dist/chunks/sanitization-CYp-9DbE.js +1 -0
- package/dist/chunks/satisfies-BaHgd_ie.js +1 -0
- package/dist/chunks/schemas-BGAvj1T4.js +40 -0
- package/dist/chunks/sdk-DEtgRZvI.js +1 -0
- package/dist/chunks/sdkHeapDumpMonitor--fevrC5z.js +1 -0
- package/dist/chunks/searchExtraTools-DQ6e601b.js +1 -0
- package/dist/chunks/semver-Cq33BYay.js +1 -0
- package/dist/chunks/semver-Tw0AFar5.js +1 -0
- package/dist/chunks/sentry-BUHYuYGj.js +13 -0
- package/dist/chunks/server-C5XZSlto.js +1 -0
- package/dist/chunks/server-DzOdtq8A.js +1 -0
- package/dist/chunks/serverBanner-WlSYP-f8.js +1 -0
- package/dist/chunks/serverLog-DtsUvDiY.js +1 -0
- package/dist/chunks/session-DgLqm7ZI.js +2 -0
- package/dist/chunks/sessionDataUploader-Ctjo1bgR.js +1 -0
- package/dist/chunks/sessionDiscovery-DgNea6qa.js +1 -0
- package/dist/chunks/sessionFileAccessHooks-7Svz-7S-.js +1 -0
- package/dist/chunks/sessionManager-Dw72ZUTg.js +1 -0
- package/dist/chunks/sessionMemory-DIrR3zvb.js +1 -0
- package/dist/chunks/sessionMemory-_dmj8lcH.js +1 -0
- package/dist/chunks/sessionMemoryUtils-BdQtSkRx.js +1 -0
- package/dist/chunks/sessionObserver-CuWMVPlT.js +20 -0
- package/dist/chunks/sessionObserver-_adufOGQ.js +1 -0
- package/dist/chunks/sessionStorage-W7okgAlQ.js +1 -0
- package/dist/chunks/sessionStoragePortable-BI9q2WcJ.js +3 -0
- package/dist/chunks/sessionTitle-DzkMzHer.js +14 -0
- package/dist/chunks/sessionTracing-DTjmc0EF.js +11 -0
- package/dist/chunks/settingsSync-CfYDkakY.js +1 -0
- package/dist/chunks/setup-BKUG46jQ.js +9 -0
- package/dist/chunks/setup-CmLngvpJ.js +1 -0
- package/dist/chunks/setup-TqJ7-Nxh.js +2 -0
- package/dist/chunks/shadowedRuleDetection-DesT0yKM.js +1 -0
- package/dist/chunks/shellQuote-DgjT8KBA.js +1 -0
- package/dist/chunks/sideQuestion-BAq0YyKY.js +20 -0
- package/dist/chunks/signin-QEeYpJZw.js +1 -0
- package/dist/chunks/sink-B3uP8Cf8.js +1 -0
- package/dist/chunks/sink-CaWMZBw_.js +1 -0
- package/dist/chunks/sinks-COcy5GnB.js +2 -0
- package/dist/chunks/sinks-oFfsKySL.js +1 -0
- package/dist/chunks/skill-learning-DOIMPtWE.js +5 -0
- package/dist/chunks/skillChangeDetector-CA_Tdx8N.js +1 -0
- package/dist/chunks/skillGapStore-CWuw1dYh.js +1 -0
- package/dist/chunks/skillGapStore-DpEoKhn-.js +5 -0
- package/dist/chunks/skillGenerator-9y3Q4YoO.js +8 -0
- package/dist/chunks/skillLearning-BhM09bQD.js +1 -0
- package/dist/chunks/skillLearning-_o2D06yM.js +1 -0
- package/dist/chunks/skillPanel-Dt24mZTZ.js +28 -0
- package/dist/chunks/skillSearchPanel-gaXN64Fu.js +21 -0
- package/dist/chunks/skills-Dx3dMHYk.js +1 -0
- package/dist/chunks/slashCommandParsing-Cari0pNg.js +1 -0
- package/dist/chunks/sleep-8Eb9j_Ly.js +1 -0
- package/dist/chunks/sprites-5OAB-Ui2.js +1 -0
- package/dist/chunks/src-BIPP3_mo.js +26 -0
- package/dist/chunks/src-BJz1KAd_.js +6 -0
- package/dist/chunks/src-BRAdBA8A.js +1 -0
- package/dist/chunks/src-BRC_BuUP.js +1 -0
- package/dist/chunks/src-BaB-bpCj.js +5 -0
- package/dist/chunks/src-BlLavFUS.js +7 -0
- package/dist/chunks/src-C5yhFG0C.js +19 -0
- package/dist/chunks/src-CI_jaaBj.js +2 -0
- package/dist/chunks/src-CRsA-Z4y.js +1 -0
- package/dist/chunks/src-CYLfL70h.js +1 -0
- package/dist/chunks/src-DJXCzwyJ.js +1 -0
- package/dist/chunks/src-DJXKJavk.js +1 -0
- package/dist/chunks/src-Di342QoJ.js +53 -0
- package/dist/chunks/src-DsMd9Q9e.js +2 -0
- package/dist/chunks/src-DzH9IdOo.js +1 -0
- package/dist/chunks/src-hdbPEvzO.js +9 -0
- package/dist/chunks/src-poaoYkuc.js +1 -0
- package/dist/chunks/src-x7u_sB6m.js +1 -0
- package/dist/chunks/sso-oidc-BX1MlBX0.js +1 -0
- package/dist/chunks/startupProfiler-DnXZaX4A.js +3 -0
- package/dist/chunks/startupProfiler-SOE--nM9.js +1 -0
- package/dist/chunks/state-B2GIOsTB.js +1 -0
- package/dist/chunks/state-Ce1HlR-H.js +1 -0
- package/dist/chunks/state-sIHsFpDu.js +1 -0
- package/dist/chunks/staticRender-Br64h1E1.js +1 -0
- package/dist/chunks/stats-TUExo9iU.js +1 -0
- package/dist/chunks/status-Dghaz1my.js +1 -0
- package/dist/chunks/statusNoticeHelpers-DVZSSXeK.js +1 -0
- package/dist/chunks/stdio-BEEzuxaZ.js +1 -0
- package/dist/chunks/stdio-D4cT86R0.js +3 -0
- package/dist/chunks/stickers-2K05wjSp.js +1 -0
- package/dist/chunks/store-DhI7Lcan.js +1 -0
- package/dist/chunks/sts-BDFJ-6QE.js +1 -0
- package/dist/chunks/subprocessEnv-CggQWZCx.js +1 -0
- package/dist/chunks/subprocessEnv-DV6q6o6w.js +1 -0
- package/dist/chunks/supports-color-lkzOMQ6u.js +1 -0
- package/dist/chunks/systemPromptSections-BcN_XBTx.js +1 -0
- package/dist/chunks/systemPromptSections-DB93ZNWP.js +1 -0
- package/dist/chunks/systemTheme-dDbitcxB.js +1 -0
- package/dist/chunks/tag-ZcVkzFjz.js +11 -0
- package/dist/chunks/tasks-DbB33ekt.js +1 -0
- package/dist/chunks/teamHelpers-BmN9nKz-.js +1 -0
- package/dist/chunks/teamHelpers-yeTNtZbb.js +1 -0
- package/dist/chunks/teammate-DMYOtLTK.js +1 -0
- package/dist/chunks/teammateModeSnapshot-CPjJJDL1.js +1 -0
- package/dist/chunks/teammateModeSnapshot-CsNIJTKi.js +1 -0
- package/dist/chunks/teleport-JHgpwZIh.js +1 -0
- package/dist/chunks/templateJobs-Db630FZD.js +12 -0
- package/dist/chunks/terminalSetup-DJqWE8fc.js +33 -0
- package/dist/chunks/terminalSetup-ygKHrVKR.js +1 -0
- package/dist/chunks/theme-MmfFhdTD.js +1 -0
- package/dist/chunks/thinkback-CrNirB0V.js +1 -0
- package/dist/chunks/thinkback-Quc7KPmi.js +1 -0
- package/dist/chunks/thinkback-play-CQ1s7oqg.js +1 -0
- package/dist/chunks/tmux-CvbhsfwG.js +1 -0
- package/dist/chunks/toolEventObserver-BqMplcIk.js +1 -0
- package/dist/chunks/toolEventObserver-DBq2XBYY.js +1 -0
- package/dist/chunks/toolPool-BkCtTKXz.js +1 -0
- package/dist/chunks/toolPool-C7bOwJfR.js +1 -0
- package/dist/chunks/trustedDevice-C9Zevohz.js +1 -0
- package/dist/chunks/trustedDevice-DEuQUTbz.js +1 -0
- package/dist/chunks/tui-BVc2q4Xv.js +6 -0
- package/dist/chunks/turndown.es-Bv06VjMb.js +69 -0
- package/dist/chunks/types-CQ1wrnQ0.js +1 -0
- package/dist/chunks/types-Csi32ZXh.js +17 -0
- package/dist/chunks/types-RJTEOuIt.js +3 -0
- package/dist/chunks/udsClient-BvG_Jip0.js +1 -0
- package/dist/chunks/ultrareviewCommand-DrlfRrXq.js +3 -0
- package/dist/chunks/undercover-CBeHiWUd.js +1 -0
- package/dist/chunks/undercover-DKn95mh9.js +31 -0
- package/dist/chunks/up-D-U4wUCe.js +12 -0
- package/dist/chunks/updateCCB-CJ7dCUan.js +11 -0
- package/dist/chunks/upgrade-Degqbu8S.js +1 -0
- package/dist/chunks/upgrade-ucJ-lnlY.js +1 -0
- package/dist/chunks/upload-pTZQCPLt.js +1 -0
- package/dist/chunks/upstreamproxy-DcLeL2XX.js +11 -0
- package/dist/chunks/usage-D96a7Cke.js +1 -0
- package/dist/chunks/usage-DVQMUMcC.js +1 -0
- package/dist/chunks/useKeybinding-FsOnjW6T.js +1 -0
- package/dist/chunks/useMainLoopModel-B7ch2o9K.js +1 -0
- package/dist/chunks/useManagePlugins-BfGzHMvO.js +1 -0
- package/dist/chunks/useMergedTools-TemEvCrX.js +1 -0
- package/dist/chunks/useSearchInput-B-V4kIa-.js +1 -0
- package/dist/chunks/useSettingsErrors-B2JGz1s8.js +1 -0
- package/dist/chunks/useVoice-BuwYDm2U.js +1 -0
- package/dist/chunks/util-CeIKZmj9.js +1 -0
- package/dist/chunks/utils-CwhszpkT.js +1 -0
- package/dist/chunks/v4-f1i_CNUT.js +1 -0
- package/dist/chunks/validatePlugin-BlVho93x.js +1 -0
- package/dist/chunks/vertex-sdk-CSGw3fvU.js +9 -0
- package/dist/chunks/vim-DUZQCWUP.js +1 -0
- package/dist/chunks/voice-BkRIHZiM.js +2 -0
- package/dist/chunks/voice-DXiiy8HX.js +8 -0
- package/dist/chunks/voiceModeEnabled-CPQUE3PU.js +1 -0
- package/dist/chunks/voiceModeEnabled-DB8GCzAF.js +1 -0
- package/dist/chunks/voiceStreamSTT-DgoDscHn.js +1 -0
- package/dist/chunks/voiceStreamSTT-Dr_wH1Kh.js +1 -0
- package/dist/chunks/which-DqSAIvp2.js +1 -0
- package/dist/chunks/windowsPaths-C9CigqoF.js +1 -0
- package/dist/chunks/windowsPaths-swxCp7bX.js +2 -0
- package/dist/chunks/workSecret-mS2OrpxF.js +1 -0
- package/dist/chunks/workerRegistry-CT7_kjvY.js +1 -0
- package/dist/chunks/worktree-DU3xtwKW.js +1 -0
- package/dist/chunks/worktreeModeEnabled-Db6b_Iy_.js +1 -0
- package/dist/chunks/worktreeModeEnabled-THQb19xR.js +1 -0
- package/dist/chunks/wrapper-BSK0MCQH.js +1 -0
- package/dist/chunks/wrapper-D5qL1aQL.js +6 -0
- package/dist/chunks/xdg-CBxMmQux.js +1 -0
- package/dist/chunks/xml-DD_ldd3X.js +1 -0
- package/dist/chunks/zod-DT6hytkp.js +1 -0
- package/dist/cli.js +1 -10978
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,t as n}from"./defineProperty-80gRi2ZW.js";import{a as r,i,t as a}from"./dist-es-C41b_0B5.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-Cbf0_D8d.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-Wq4XWeLL.js";import{n as Ve,r as He,t as Ue}from"./dist-es-Bu_Fshi1.js";import{i as We,n as Ge,t as Ke}from"./dist-es-BVGppqE4.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-CAyQOlkr.js";import{n as nt,t as rt}from"./dist-es-CSfI8B8l.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-OVleIB54.js";import{g as ht,h as gt,i as _t,p as vt,t as yt}from"./client-CPn1wQyc.js";import{n as h,t as bt}from"./dist-es-zjcbuB72.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-UAs0rdXg.js";import{n as At,t as jt}from"./dist-es-DqZAh3nG.js";import{n as Mt,t as Nt}from"./package-BhL7chzt.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,t}from"./subprocessEnv-DV6q6o6w.js";t();export{e as registerUpstreamProxyEnvFn};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{s as t,u as n}from"./envUtils-BWeoiL4Y.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,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{At as t,Tr as n,cn as r,l as i,p as a}from"./state-sIHsFpDu.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 r=t();return Promise.all(e.map(async e=>{if(!e.cacheBreak&&r.has(e.name))return r.get(e.name)??null;let t=await e.compute();return n(e.name,t),t}))}function l(){a(),i()}var u=e((()=>{r()}));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-BcN_XBTx.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-Di342QoJ.js";import{t as l}from"./jsx-runtime-D-D469L8.js";import{Ct as u,cn as d}from"./state-sIHsFpDu.js";import{n as f,r as p}from"./analytics-DqMQntaB.js";import{A as m,et as h,j as g}from"./log-CzsijfHZ.js";import{Ar as _,Dx as v,Ox as y,Tr as b,mr as x,yi as S}from"./loadAgentsDir-Ci5mr0vm.js";import{r as C,t as w}from"./sanitization-CYp-9DbE.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)(v,{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=u();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=x(e);r===s?(p(`tengu_tag_command_remove_prompt`,{}),i(!0)):(p(`tengu_tag_command_add`,{is_replacing:!!r}),(async()=>{await S(e,s,b()),t(`Tagged session with ${n.cyan(`#${s}`)}`,{display:`system`})})())},[s,t]),r&&a?(0,A.jsx)(T,{tagName:s,onConfirm:async()=>{p(`tengu_tag_command_remove_confirmed`,{}),await S(a,``,b()),t(`Removed tag ${n.cyan(`#${s}`)}`,{display:`system`})},onCancel:()=>{p(`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()||``,g.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),d(),y(),s(),h(),f(),w(),_(),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-Di342QoJ.js";import{t as n}from"./jsx-runtime-D-D469L8.js";import{n as r,t as i}from"./BackgroundTasksDialog-DXJdube9.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-BWeoiL4Y.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-BGAvj1T4.js";import{t as d}from"./v4-f1i_CNUT.js";import{Ct as te,Fr as ne,Pr as re,U as ie,cn as ae,xt as f}from"./state-sIHsFpDu.js";import{E as p,L as m,R as h,T as g,V as _,d as v,s as y,w as oe}from"./debug-UI3T040K.js";import{_ as se,v as ce}from"./git-CN3qtTb_.js";import{o as le,s as b}from"./log-CzsijfHZ.js";import{n as ue,r as de}from"./execFileNoThrow-CuQN1sz8.js";import{E as x,T as fe,_ as pe,a as S,f as me,g as he,l as ge,n as _e}from"./teammate-DMYOtLTK.js";import{n as C,t as w}from"./lazySchema-2sOku3cX.js";import{c as ve}from"./constants-41VpZw2G.js";import{join as T}from"path";import{mkdirSync as ye,readFileSync as be,writeFileSync as xe}from"fs";import{mkdir as Se,readFile as E,readdir as D,rm as O,unlink as k,writeFile as A}from"fs/promises";function Ce(e){G!==e&&(G=e,j())}function we(){G!==void 0&&(G=void 0,j())}function j(){try{W.emit()}catch{}}function M(e){return T(F(e),Be)}async function N(e){let t=M(e);try{let e=(await E(t,`utf-8`)).trim(),n=parseInt(e,10);return isNaN(n)?0:n}catch{return 0}}async function Te(e,t){await A(M(e),String(t))}function Ee(){return i(process.env.CLAUDE_CODE_ENABLE_TASKS)?!0:!ie()}async function De(e){let t=F(e),n=await U(e),r;try{r=await x(n,q);let i=await R(e);i>0&&i>await N(e)&&await Te(e,i);let a;try{a=await D(t)}catch{a=[]}for(let e of a)if(e.endsWith(`.json`)&&!e.startsWith(`.`)){let n=T(t,e);try{await k(n)}catch{}}j()}finally{r&&await r()}}function Oe(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let e=he();return e?e.teamName:S()||G||te()}function P(e){return e.replace(/[^a-zA-Z0-9_-]/g,`-`)}function F(e){return T(n(),`tasks`,P(e))}function I(e,t){return T(F(e),`${P(t)}.json`)}async function L(e){let t=F(e);try{await Se(t,{recursive:!0})}catch{}}async function R(e){let t=F(e),n;try{n=await D(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 ke(e){let[t,n]=await Promise.all([R(e),N(e)]);return Math.max(t,n)}async function Ae(e,t){let n=await U(e),r;try{r=await x(n,q);let i=await ke(e),a=String(i+1),o={id:a,...t};return await A(I(e,a),p(o,null,2)),j(),a}finally{r&&await r()}}async function z(e,t){let n=I(e,t);try{let e=g(await E(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=ze().safeParse(e);return r.success?r.data:(v(`[Tasks] Task ${t} failed schema validation: ${r.error.message}`),null)}catch(e){return h(e)===`ENOENT`?null:(v(`[Tasks] Failed to read task ${t}: ${m(e)}`),b(e),null)}}async function B(e,t,n){let r=await z(e,t);if(!r)return null;let i={...r,...n,id:t};return await A(I(e,t),p(i,null,2)),j(),i}async function V(e,t,n){let r=I(e,t);if(!await z(e,t))return null;let i;try{return i=await x(r,q),await B(e,t,n)}finally{await i?.()}}async function je(e,t){let n=I(e,t);try{let r=parseInt(t,10);isNaN(r)||r>await N(e)&&await Te(e,r);try{await k(n)}catch(e){if(h(e)===`ENOENT`)return!1;throw e}let i=await H(e);for(let n of i){let r=n.blocks.filter(e=>e!==t),i=n.blockedBy.filter(e=>e!==t);(r.length!==n.blocks.length||i.length!==n.blockedBy.length)&&await V(e,n.id,{blocks:r,blockedBy:i})}return j(),!0}catch{return!1}}async function H(e){let t=F(e),n;try{n=await D(t)}catch{return[]}let r=n.filter(e=>e.endsWith(`.json`)).map(e=>e.replace(`.json`,``));return(await Promise.all(r.map(t=>z(e,t)))).filter(e=>e!==null)}async function Me(e,t,n){let[r,i]=await Promise.all([z(e,t),z(e,n)]);return!r||!i?!1:(r.blocks.includes(n)||await V(e,t,{blocks:[...r.blocks,n]}),i.blockedBy.includes(t)||await V(e,n,{blockedBy:[...i.blockedBy,t]}),!0)}function Ne(e){return T(F(e),`.lock`)}async function U(e){await L(e);let t=Ne(e);try{await A(t,``,{flag:`wx`})}catch{}return t}async function Pe(e,t,n,r={}){let i=I(e,t);if(!await z(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 z(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 H(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 B(e,t,{owner:n})}}catch(e){return v(`[Tasks] Failed to claim task ${t}: ${m(e)}`),b(e),{success:!1,reason:`task_not_found`}}finally{a&&await a()}}async function Fe(e,t,n){let r=await U(e),i;try{i=await x(r,q);let a=await H(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 V(e,t,{owner:n})}}catch(e){return v(`[Tasks] Failed to claim task ${t} with busy check: ${m(e)}`),b(e),{success:!1,reason:`task_not_found`}}finally{i&&await i()}}async function Ie(e,t,n,r){let i=(await H(e)).filter(e=>e.status!==`completed`&&(e.owner===t||e.owner===n));for(let t of i)await V(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 W,G,Le,Re,K,ze,Be,q,Ve,He=e((()=>{d(),ae(),y(),r(),_(),w(),fe(),le(),ne(),oe(),ge(),pe(),W=re(),Le=W.subscribe,Re=[`pending`,`in_progress`,`completed`],K=C(()=>u([`pending`,`in_progress`,`completed`])),ze=C(()=>ee({id:o(),subject:o(),description:o(),activeForm:o().optional(),owner:o().optional(),status:K(),blocks:c(o()),blockedBy:c(o()),metadata:s(o(),l()).optional()})),Be=`.highwatermark`,q={retries:{retries:30,minTimeout:5,maxTimeout:100}},Ve=`tasklist`}));function J(e){return e===`tmux`||e===`iterm2`||e===`windows-terminal`}var Ue=e((()=>{}));function Y(e){return e.replace(/[^a-zA-Z0-9]/g,`-`).toLowerCase()}function We(e){return e.replace(/@/g,`-`)}function X(e){return T(t(),Y(e))}function Z(e){return T(X(e),`config.json`)}function Q(e){try{return g(be(Z(e),`utf-8`))}catch(t){return h(t)===`ENOENT`||v(`[TeammateTool] Failed to read team file for ${e}: ${m(t)}`),null}}async function Ge(e){try{return g(await E(Z(e),`utf-8`))}catch(t){return h(t)===`ENOENT`||v(`[TeammateTool] Failed to read team file for ${e}: ${m(t)}`),null}}function $(e,t){ye(X(e),{recursive:!0}),xe(Z(e),p(t,null,2))}async function Ke(e,t){await Se(X(e),{recursive:!0}),await A(Z(e),p(t,null,2))}function qe(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 Je(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 Ye(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 Xe(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 Ze(e,t){if(!me())return;let n=t??S(),r=_e();n&&r&&Xe(n,r,e)}function Qe(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 $e(e,t,n){let r=await Ge(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 Ke(e,r),v(`[TeammateTool] Set member ${t} in team ${e} to ${n?`active`:`idle`}`))}async function et(e){let t=T(e,`.git`),n=null;try{let e=(await E(t,`utf-8`)).trim().match(/^gitdir:\s*(.+)$/);if(e&&e[1]){let t=e[1];n=T(T(t,`..`,`..`),`..`)}}catch{}if(n){let t=await ue(se(),[`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 O(e,{recursive:!0,force:!0}),v(`[TeammateTool] Removed worktree directory manually: ${e}`)}catch(t){v(`[TeammateTool] Failed to remove worktree ${e}: ${m(t)}`)}}function tt(e){f().add(e)}function nt(e){f().delete(e)}async function rt(){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=>it(e))),await Promise.allSettled(t.map(e=>at(e))),e.clear()}async function it(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-DkHA4cRu.js`),import(`./detection-DJ-vTbBf.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 at(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 et(e);let i=X(e);try{await O(i,{recursive:!0,force:!0}),v(`[TeammateTool] Cleaned up team directory: ${i}`)}catch(e){v(`[TeammateTool] Failed to clean up team directory ${i}: ${m(e)}`)}let a=F(t);try{await O(a,{recursive:!0,force:!0}),v(`[TeammateTool] Cleaned up tasks directory: ${a}`),j()}catch(e){v(`[TeammateTool] Failed to clean up tasks directory ${a}: ${m(e)}`)}}var ot=e((()=>{d(),ae(),y(),r(),_(),de(),ce(),w(),oe(),He(),ge(),Ue(),ve(),C(()=>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{L as A,Ce as B,Re as C,we as D,Pe as E,Ee as F,V as H,H as I,Le as L,Oe as M,F as N,Ae as O,He as P,De as R,Ve as S,Me as T,Ie as V,Ze as _,ot as a,Ue as b,tt as c,qe as d,We as f,Qe as g,Xe as h,Z as i,z as j,je as k,Ye as l,$e as m,at as n,Q as o,Y as p,X as r,Ge as s,rt as t,Je as u,nt as v,K as w,J as x,Ke as y,P as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as e,t}from"./teamHelpers-BmN9nKz-.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-BWeoiL4Y.js";import{t as o}from"./graceful-fs-Cgc0rjGF.js";import{AsyncLocalStorage as s}from"async_hooks";var c=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}})),l=r((e=>{var t=c();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}}})),u=r(((e,t)=>{t.exports=l()})),d=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`)})),f=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=d(),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`),m===!1&&h();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(){!m||!i(global.process)||(m=!1,o.forEach(function(e){try{r.removeListener(e,p[e])}catch{}}),r.emit=v,r.reallyExit=g,--l.count)};n.exports.unload=u;var f=function(e,t,n){l.emitted[e]||(l.emitted[e]=!0,l.emit(e,t,n))},p={};o.forEach(function(e){p[e]=function(){i(global.process)&&r.listeners(e).length===l.count&&(u(),f(`exit`,null,e),f(`afterexit`,null,e),s&&e===`SIGHUP`&&(e=`SIGINT`),r.kill(r.pid,e))}}),n.exports.signals=function(){return o};var m=!1,h=function(){m||!i(global.process)||(m=!0,l.count+=1,o=o.filter(function(e){try{return r.on(e,p[e]),!0}catch{return!1}}),r.emit=y,r.reallyExit=_)};n.exports.load=h;var g=r.reallyExit,_=function(e){i(global.process)&&(r.exitCode=e||0,f(`exit`,r.exitCode,null),f(`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 f(`exit`,r.exitCode,null),f(`afterexit`,r.exitCode,null),n}else return v.apply(this,arguments)}}})),p=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})),m=r(((t,n)=>{var r=e(`path`),i=o(),a=u(),s=f(),c=p(),l={};function d(e,t){return t.lockfilePath||`${e}.lock`}function m(e,t,n){if(!t.realpath)return n(null,r.resolve(e));t.fs.realpath(e,n)}function h(e,t,n){let r=d(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`?h(e,{...t,stale:0},n):n(r);if(!g(i,t))return n(Object.assign(Error(`Lock file is already being held`),{code:`ELOCKED`,file:e}));_(e,t,r=>{if(r)return n(r);h(e,{...t,stale:0},n)})})})}function g(e,t){return e.mtime.getTime()<Date.now()-t.stale}function _(e,t,n){t.fs.rmdir(d(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),m(e,t,(e,r)=>{if(e)return n(e);let i=a.operation(t.retries);i.attempt(()=>{h(r,t,(e,a,o)=>{if(i.retry(e))return;if(e)return n(i.mainError());let s=l[r]={lockfilePath:d(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},m(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],_(r,t,n)})}function S(e,t,n){t={stale:1e4,realpath:!0,fs:i,...t},t.stale=Math.max(t.stale||0,2e3),m(e,t,(e,r)=>{if(e)return n(e);t.fs.stat(d(r,t),(e,r)=>e?e.code===`ENOENT`?n(null,!1):n(e):n(null,!g(r,t)))})}function C(){return l}s(()=>{for(let e in l){let t=l[e].options;try{t.fs.rmdirSync(d(e,t))}catch{}}}),n.exports.lock=b,n.exports.unlock=x,n.exports.check=S,n.exports.getLocks=C})),h=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}})),g=r(((e,t)=>{var n=m(),{toPromise:r,toSync:i,toSyncOptions:a}=h();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 _(){return S||(S=g()),S}function v(e,t){return _().lock(e,t)}function y(e,t){return _().lockSync(e,t)}function b(e,t){return _().unlock(e,t)}function x(e,t){return _().check(e,t)}var S,C=t((()=>{}));function w(e,t){return e.flatMap((e,n)=>n?[t(n),e]:[e])}function T(e,t){let n=0;for(let r of e)n+=+!!t(r);return n}function E(e){return[...new Set(e)]}var D=t((()=>{}));function O(){return M.getStore()}function k(e,t){return M.run(e,t)}function A(){return M.getStore()!==void 0}function j(e){return{...e,isInProcess:!0}}var M,N=t((()=>{M=new s})),P=n({clearDynamicTeamContext:()=>L,createTeammateContext:()=>j,getAgentId:()=>z,getAgentName:()=>B,getDynamicTeamContext:()=>R,getParentSessionId:()=>F,getTeamName:()=>V,getTeammateColor:()=>U,getTeammateContext:()=>O,hasActiveInProcessTeammates:()=>K,hasWorkingInProcessTeammates:()=>q,isInProcessTeammate:()=>A,isPlanModeRequired:()=>W,isTeamLead:()=>G,isTeammate:()=>H,runWithTeammateContext:()=>k,setDynamicTeamContext:()=>I,waitForTeammatesToBecomeIdle:()=>J});function F(){let e=O();return e?e.parentSessionId:Y?.parentSessionId}function I(e){Y=e}function L(){Y=null}function R(){return Y}function z(){let e=O();return e?e.agentId:Y?.agentId}function B(){let e=O();return e?e.agentName:Y?.agentName}function V(e){let t=O();return t?t.teamName:Y?.teamName?Y.teamName:e?.teamName}function H(){return O()?!0:!!(Y?.agentId&&Y?.teamName)}function U(){let e=O();return e?e.color:Y?.color}function W(){let e=O();return e?e.planModeRequired:Y===null?a(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED):Y.planModeRequired}function G(e){if(!e?.leadAgentId)return!1;let t=z();return t===e.leadAgentId||!t}function K(e){for(let t of Object.values(e.tasks))if(t.type===`in_process_teammate`&&t.status===`running`)return!0;return!1}function q(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 J(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 Y,X=t((()=>{N(),i(),Y=null}));export{E as C,y as D,v as E,b as O,w as S,C as T,N as _,V as a,T as b,q as c,G as d,H as f,O as g,j as h,F as i,X as l,J as m,B as n,U as o,P as p,R as r,K as s,z as t,W as u,A as v,x as w,D as x,k as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,r as t}from"./chunk-DR8-3Aex.js";import{Ac as n,Sc as r}from"./paths-Q2255dD7.js";import{d as i,s as a}from"./debug-UI3T040K.js";import{o,s}from"./log-CzsijfHZ.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,i(`[TeammateModeSnapshot] CLI override cleared, new mode: ${e}`)}function f(){h?(m=h,i(`[TeammateModeSnapshot] Captured from CLI override: ${m}`)):(m=r().teammateMode??`auto`,i(`[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(),a(),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-CPjJJDL1.js";e();export{t as captureTeammateModeSnapshot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{av as e,nv as t,rv as n,sv as r,uv as i}from"./loadAgentsDir-Ci5mr0vm.js";n();export{t as checkOutTeleportedSessionBranch,e as processMessagesForTeleportResume,r as teleportResumeCodeSession,i 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-BWeoiL4Y.js";import{RA as r,_ as i,g as a,h as o,zA as s}from"./loadAgentsDir-Ci5mr0vm.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=a(`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 a=l(n,i);try{let{frontmatter:t,content:n}=s(f(a,`utf-8`),a),i=(typeof t.description==`string`?t.description:``)||o(n,`No description`);e.push({name:r,description:i,filePath:a,frontmatter:t,content:n})}catch{}}}return e}function v(e){return _().find(t=>t.name===e)??null}var y=e((()=>{r(),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-Di342QoJ.js";import{Ac as c,Nc as l,Pc as u,Sc as d,bc as f,el as ee,nl as p}from"./paths-Q2255dD7.js";import{E as m,T as h,V as g,W as _,h as te,p as ne,w as re}from"./debug-UI3T040K.js";import{n as ie,t as v}from"./cwd--iizewsn.js";import{a as ae,n as y}from"./env-chR0gV31.js";import{o as b,s as x}from"./log-CzsijfHZ.js";import{i as oe,o as se}from"./platform-CuyedWpe.js";import{r as S,t as C}from"./execFileNoThrow-CuQN1sz8.js";import{d as w,o as T,s as ce}from"./types-Csi32ZXh.js";import{r as le,t as ue}from"./completionCache-DORrtxkS.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(v(),`CLAUDE.md`)),t=p(v());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(){f().hasCompletedProjectOnboarding||L()&&l(e=>({...e,hasCompletedProjectOnboarding:!0}))}function z(){l(e=>({...e,projectOnboardingSeenCount:e.projectOnboardingSeenCount+1}))}var B,V=e((()=>{n(),c(),ie(),ee(),te(),B=t(()=>{let e=f();return e.hasCompletedProjectOnboarding||e.projectOnboardingSeenCount>=4||process.env.IS_DEMO?!1:!L()})}));function fe(e){u(t=>({...t,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:e}))}function H(){u(e=>({...e,appleTerminalSetupInProgress:!1}))}function pe(){let e=d();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((()=>{c(),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!y.terminal||!(y.terminal in $)?null:$[y.terminal]??null}function K(e){return r()?`\x1b]8;;${de(e).href}\x07${e}\x1b]8;;\x07`:e}function q(){return D()===`darwin`&&y.terminal===`Apple_Terminal`||y.terminal===`vscode`||y.terminal===`cursor`||y.terminal===`windsurf`||y.terminal===`alacritty`||y.terminal===`zed`}async function J(e){let t=``;switch(y.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 u(e=>[`vscode`,`cursor`,`windsurf`,`alacritty`,`zed`].includes(y.terminal??``)?e.shiftEnterKeyBindingInstalled===!0?e:{...e,shiftEnterKeyBindingInstalled:!0}:y.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 d().shiftEnterKeyBindingInstalled===!0}function ve(){return d().hasUsedBackslashReturn===!0}function ye(){d().hasUsedBackslashReturn||u(e=>({...e,hasUsedBackslashReturn:!0}))}async function be(e,t,n){if(y.terminal&&y.terminal in $)return e(`Shift+Enter is natively supported in ${$[y.terminal]}.
|
|
2
|
+
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`),null;if(!q()){let t=y.terminal||`your current terminal`,n=oe(),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=w(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,T(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,m(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(),c(),ae(),g(),S(),ce(),b(),se(),re(),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-DJqWE8fc.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-Di342QoJ.js";import{t as a}from"./jsx-runtime-D-D469L8.js";import{n as o,t as s}from"./ThemePicker-DueihHcy.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,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-Di342QoJ.js";import{t as c}from"./jsx-runtime-D-D469L8.js";import{al as l,el as u}from"./paths-Q2255dD7.js";import{K as d,U as f,V as p,d as m,s as h}from"./debug-UI3T040K.js";import{r as g,t as _}from"./execa-CGue6Z3n.js";import{o as ee,s as v}from"./log-CzsijfHZ.js";import{i as te,o as y}from"./platform-CuyedWpe.js";import{r as b,t as x}from"./execFileNoThrow-CuQN1sz8.js";import{As as S,DA as C,Dx as w,Es as T,Fs as E,Gs as ne,Hs as re,Is as ie,Ox as ae,TA as oe,Vs as se,fs as ce,gy as D,lc as O,my as k,ps as A,uc as j}from"./loadAgentsDir-Ci5mr0vm.js";import{n as M,r as N}from"./pluginStartupCheck-Bjdc8zhz.js";import{a as P,s as F}from"./pluginOperations-B0rLuSvo.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 l(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 f(e)?{success:!1,message:`No animation found. Run /think-back first to generate one.`}:(v(e),{success:!1,message:`Could not access animation data: ${d(e).message}`})}try{await L(r)}catch(e){return f(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: ${d(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 l(a)){let e=te();x(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 re(),n=R(),i=z(),a=B(),s=n in t,c=S(a);if(s?c||(r({phase:`installing-marketplace`}),o(`Updating marketplace…`),m(`Refreshing marketplace ${n}`),await ne(n,e=>{o(e)}),ie(),O(),m(`Marketplace ${n} refreshed`)):(r({phase:`installing-marketplace`}),m(`Installing marketplace ${i}`),await E({source:`github`,repo:i},e=>{o(e)}),O(),m(`Marketplace ${n} installed`)),c){let{disabled:e}=await A();if(e.some(e=>e.name===`thinkback`||e.source?.includes(a))){r({phase:`enabling-plugin`}),m(`Enabling plugin ${a}`);let e=await P(a);if(!e.success)throw Error(`Failed to enable plugin: ${e.message}`);O(),m(`Plugin ${a} enabled`)}}else{r({phase:`installing-plugin`}),m(`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}`)}O(),m(`Plugin ${a} installed`)}r({phase:`ready`}),e()}catch(e){let n=d(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)(k,{}),(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)(w,{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),[u,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?(m(`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`);l(e).then(t=>{m(`Checking for ${e}: ${t?`found`:`not found`}`),d(t)})},[o]);function h(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||u===null?(0,K.jsxs)(s,{children:[(0,K.jsx)(k,{}),(0,K.jsx)(i,{children:`Loading thinkback skill…`})]}):(0,K.jsx)(W,{onDone:e,onAction:h,skillDir:o,hasGenerated:u}):(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),ae(),o(),D(),F(),h(),p(),b(),u(),ee(),y(),j(),T(),se(),C(),ce(),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,r as t,t as n}from"./thinkback-CrNirB0V.js";e();export{n as call,t as playAnimation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{DA as t,Es as n,Ms as r,TA as i}from"./loadAgentsDir-Ci5mr0vm.js";import{n as a,r as o}from"./thinkback-CrNirB0V.js";import{join as s}from"path";function c(){return`thinkback@${process.env.USER_TYPE===`ant`?u:i}`}async function l(){let e=r(),t=c(),n=e.plugins[t];if(!n||n.length===0)return{type:`text`,value:`Thinkback plugin not installed. Run /think-back first to install it.`};let i=n[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((()=>{n(),t(),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-80gRi2ZW.js";import{r,t as i}from"./execFileNoThrow-CuQN1sz8.js";import{a,i as o,t as s}from"./cliLaunch-BQa48gsr.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{d as t,s as n}from"./debug-UI3T040K.js";import{o as r,s as i}from"./log-CzsijfHZ.js";import{i as a,t as o}from"./observationStore-tvkldXUo.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-0fpRKUeH.js`),import(`./featureCheck-p7OeCYzj.js`),import(`./runtimeObserver-OgM9ZYxZ.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,n,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,n).catch(e=>{t(`skill-learning: recordToolStart error`),i(e)})}catch(e){t(`skill-learning: hook setup error`),i(e)}try{let n=await a();return o&&_(o,e,n,`success`).catch(e=>{t(`skill-learning: recordToolComplete error`),i(e)}),n}catch(n){throw o&&v(o,e,n).catch(e=>{t(`skill-learning: recordToolError error`),i(e)}),n}}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(),n(),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-BqMplcIk.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{Dl as n,Ol as r,bl as i,yl as a}from"./paths-Q2255dD7.js";import{XC as o,ZC as s,cE as c,sE as l}from"./loadAgentsDir-Ci5mr0vm.js";import{s as u,u as d}from"./prompt-DEPUnJdB.js";function f(e){return h.some(t=>e.endsWith(t))}function p(e){return e.filter(e=>u.has(e.name)||f(e.name))}function m(e,t,n){let[a,o]=r(i([...e,...t],`name`),s),c=(e,t)=>e.name.localeCompare(t.name),l=[...o.sort(c),...a.sort(c)];return g&&g.isCoordinatorMode()?p(l):l}var h,g,_=t((()=>{n(),a(),d(),o(),h=[`subscribe_pr_activity`,`unsubscribe_pr_activity`],g=(c(),e(l))}));export{m as i,_ as n,f as r,p as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as e,t}from"./toolPool-BkCtTKXz.js";e();export{t as applyCoordinatorToolFilter};
|
|
@@ -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-DhfaybwJ.js";import{Bn as o,Mt as s,S as c,Vn as l,_ as u,l as d,on as f}from"./paths-Q2255dD7.js";import{E as p,L as m,V as h,d as g,s as _,w as v}from"./debug-UI3T040K.js";import{l as y,u as b}from"./oauth-CdZEzMww.js";import{d as x,f as S}from"./log-CzsijfHZ.js";import{hostname as C}from"os";function w(){return u(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 d(k)){g(`[trusted-device] Gate ${k} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){g(`[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)`);return}let{getClaudeAIOAuthTokens:t}=(f(),e(s)),n=t()?.accessToken;if(!n){g(`[trusted-device] No OAuth token, skipping enrollment`);return}let r=o();if(S()){g(`[trusted-device] Essential traffic only, skipping enrollment`);return}let a=y().BASE_API_URL,c;try{c=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){g(`[trusted-device] Enrollment request failed: ${m(e)}`);return}if(c.status!==200&&c.status!==201){g(`[trusted-device] Enrollment failed ${c.status}: ${p(c.data).slice(0,200)}`);return}let l=c.data?.device_token;if(!l||typeof l!=`string`){g(`[trusted-device] Enrollment response missing device_token field`);return}try{let e=r.read();if(!e){g(`[trusted-device] Cannot read storage, skipping token persist`);return}e.trustedDeviceToken=l;let t=r.update(e);if(!t.success){g(`[trusted-device] Failed to persist token: ${t.warning??`unknown`}`);return}A.cache?.clear?.(),g(`[trusted-device] Enrolled device_id=${c.data.device_id??`unknown`}`)}catch(e){g(`[trusted-device] Storage write failed: ${m(e)}`)}}catch(e){g(`[trusted-device] Enrollment error: ${m(e)}`)}}var k,A,j=t((()=>{a(),r(),b(),c(),_(),h(),x(),l(),v(),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 @@
|
|
|
1
|
+
import{a as e,r as t,t as n}from"./trustedDevice-C9Zevohz.js";e();export{n as clearTrustedDeviceToken,t as enrollTrustedDevice};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{n as e}from"./chunk-DR8-3Aex.js";import{n as t,s as n}from"./envUtils-BWeoiL4Y.js";import{U as r,cn as i}from"./state-sIHsFpDu.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((()=>{i(),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:()=>!r(),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-Bz_8td5D.js`)},_={type:`local`,name:`tui`,description:`Toggle flicker-free TUI mode (alternate screen buffer). Subcommands: on, off, status`,isHidden:!1,isEnabled:()=>r(),supportsNonInteractive:!0,bridgeSafe:!0,load:async()=>({call:m})}}));export{_ as i,v as n,g as r,m as t};
|