@claudiolabs/claudin 1.1.36 → 1.1.38
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/App-1.1.38-ywjx5zwg.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.38-g8aaewqn.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.38-3xp2vky0.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.38-ng5ew4f1.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.38-pb4syd5b.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.38-v5m7388w.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.38-7xpy0azc.mjs +6 -0
- package/dist/chunks/Doctor-1.1.38-8c786cbs.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.38-gsmc5cbg.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.38-34mcvk0g.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.38-4tzaxt0t.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.38-5aqykfy4.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.38-hg33ngjd.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.38-e0dgakf3.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.38-s1stmw8z.mjs +1 -0
- package/dist/chunks/REPL-1.1.38-24nb99vc.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.38-ph61hy3h.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.38-waf94h4c.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.38-8zeez0vw.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.38-x67yqx1x.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.38-s7acgm11.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.38-xdxg0v37.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.38-ze3nezmq.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.38-4hejnp0f.mjs +1 -0
- package/dist/chunks/add-dir-1.1.38-9njmqx1q.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.38-2vgbffh0.mjs +1 -0
- package/dist/chunks/agents-1.1.38-p9ee8aj6.mjs +3 -0
- package/dist/chunks/agents-1.1.38-td2q9455.mjs +110 -0
- package/dist/chunks/api-1.1.38-8mx12h9x.mjs +1 -0
- package/dist/chunks/asciicast-1.1.38-ge5twq4b.mjs +1 -0
- package/dist/chunks/auth-1.1.38-qd9cf36r.mjs +1 -0
- package/dist/chunks/auth-1.1.38-z9s1s7ya.mjs +1 -0
- package/dist/chunks/autoMode-1.1.38-k48yn49s.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.38-akdcfhnr.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.38-x4vhee3g.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.38-bvd35tyn.mjs +1 -0
- package/dist/chunks/branch-1.1.38-ne2jsk2x.mjs +4 -0
- package/dist/chunks/bridge-1.1.38-vdxahb1p.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.38-yf7zjpvf.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.38-eszbcc63.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.38-ywfxh5hm.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.38-jvevzgc3.mjs +1 -0
- package/dist/chunks/btw-1.1.38-hqjfa45a.mjs +1 -0
- package/dist/chunks/buddy-1.1.38-rq8ak7jk.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.38-dvwdm93b.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.38-pxpr6at8.mjs +4 -0
- package/dist/chunks/caches-1.1.38-mxte3pjs.mjs +1 -0
- package/dist/chunks/cd-1.1.38-nj8jwk5n.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.38-94tj322p.mjs +1 -0
- package/dist/chunks/claudemd-1.1.38-y4ajc9p8.mjs +1 -0
- package/dist/chunks/clear-1.1.38-17hx54za.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.38-e3qy2b07.mjs +1 -0
- package/dist/chunks/cli-1.1.38-06jvwc43.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0cf6ttc6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0dj1dmtd.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0q1t1zs8.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0x84gwbc.mjs +2 -0
- package/dist/chunks/cli-1.1.38-16r42mm1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1bv62dee.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1c3thcc3.mjs +10 -0
- package/dist/chunks/cli-1.1.38-1e3jefp8.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1jc6vgde.mjs +25 -0
- package/dist/chunks/cli-1.1.38-1k5hq477.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1kce30qe.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1wavwd72.mjs +10 -0
- package/dist/chunks/cli-1.1.38-20a2a6n3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-21x08w6j.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2a4wcbby.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2jp2m8e4.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2p7f0cx3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2x7b4x0w.mjs +3 -0
- package/dist/chunks/cli-1.1.38-2zbkp90c.mjs +2 -0
- package/dist/chunks/cli-1.1.38-37he9dkq.mjs +2 -0
- package/dist/chunks/cli-1.1.38-38f3b9as.mjs +2 -0
- package/dist/chunks/cli-1.1.38-3a7tvcmx.mjs +2 -0
- package/dist/chunks/cli-1.1.38-3c43sfc3.mjs +34 -0
- package/dist/chunks/cli-1.1.38-3d6qg7yb.mjs +7 -0
- package/dist/chunks/cli-1.1.38-3ez6bs0j.mjs +39 -0
- package/dist/chunks/cli-1.1.38-3gyfttrt.mjs +2 -0
- package/dist/chunks/cli-1.1.38-3j9z8bce.mjs +11 -0
- package/dist/chunks/cli-1.1.38-3q70db32.mjs +2 -0
- package/dist/chunks/cli-1.1.38-41hbjb5d.mjs +3 -0
- package/dist/chunks/cli-1.1.38-44ay6q12.mjs +2 -0
- package/dist/chunks/cli-1.1.38-48ykmxgd.mjs +2 -0
- package/dist/chunks/cli-1.1.38-4dvqxnwp.mjs +9 -0
- package/dist/chunks/cli-1.1.38-4g2k1n93.mjs +133 -0
- package/dist/chunks/cli-1.1.38-4vabm3a1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-4wdys8df.mjs +2 -0
- package/dist/chunks/cli-1.1.38-4x6r8r0g.mjs +21 -0
- package/dist/chunks/cli-1.1.38-5edb5t1a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-5zr9x873.mjs +18 -0
- package/dist/chunks/cli-1.1.38-62gxd3va.mjs +2 -0
- package/dist/chunks/cli-1.1.38-6dwdjwfe.mjs +2 -0
- package/dist/chunks/cli-1.1.38-6g33twaj.mjs +2 -0
- package/dist/chunks/cli-1.1.38-6hng9dxr.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7a0vpxbg.mjs +7 -0
- package/dist/chunks/cli-1.1.38-7vygkwbt.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7wqs4198.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7y52ea97.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7zvbnxfm.mjs +2 -0
- package/dist/chunks/cli-1.1.38-839xw74z.mjs +24 -0
- package/dist/chunks/cli-1.1.38-8br976cg.mjs +2 -0
- package/dist/chunks/cli-1.1.38-8jshtkmf.mjs +2 -0
- package/dist/chunks/cli-1.1.38-8m9096qg.mjs +6 -0
- package/dist/chunks/cli-1.1.38-91q945ws.mjs +3 -0
- package/dist/chunks/cli-1.1.38-92g30wbv.mjs +2 -0
- package/dist/chunks/cli-1.1.38-9p14cyab.mjs +2 -0
- package/dist/chunks/cli-1.1.38-9x263zph.mjs +10 -0
- package/dist/chunks/cli-1.1.38-a2j7607w.mjs +2 -0
- package/dist/chunks/cli-1.1.38-a678cgp1.mjs +251 -0
- package/dist/chunks/cli-1.1.38-a9wkqach.mjs +2 -0
- package/dist/chunks/cli-1.1.38-abavft6n.mjs +6 -0
- package/dist/chunks/cli-1.1.38-ac33weys.mjs +2 -0
- package/dist/chunks/cli-1.1.38-an3fdzsz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-aspnz4m6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-axhwttsc.mjs +9 -0
- package/dist/chunks/cli-1.1.38-azkppcr1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-azv9c3jv.mjs +2 -0
- package/dist/chunks/cli-1.1.38-b56dgy8f.mjs +2 -0
- package/dist/chunks/cli-1.1.38-c0w5gdqr.mjs +2 -0
- package/dist/chunks/cli-1.1.38-c7x1esyq.mjs +6 -0
- package/dist/chunks/cli-1.1.38-cmnad0aj.mjs +8 -0
- package/dist/chunks/cli-1.1.38-cp5m26rk.mjs +3 -0
- package/dist/chunks/cli-1.1.38-cpq50ma6.mjs +15 -0
- package/dist/chunks/cli-1.1.38-cq1f1j06.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ctcgmvy1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-d3xjq2jk.mjs +4 -0
- package/dist/chunks/cli-1.1.38-dfcp3asv.mjs +17 -0
- package/dist/chunks/cli-1.1.38-dggxcj2x.mjs +2 -0
- package/dist/chunks/cli-1.1.38-dxtw8tjv.mjs +2 -0
- package/dist/chunks/cli-1.1.38-dz4qs0ht.mjs +2 -0
- package/dist/chunks/cli-1.1.38-e09rc4b8.mjs +20 -0
- package/dist/chunks/cli-1.1.38-e0q3xyay.mjs +2 -0
- package/dist/chunks/cli-1.1.38-e5by1ynv.mjs +6 -0
- package/dist/chunks/cli-1.1.38-e6j30tde.mjs +3 -0
- package/dist/chunks/cli-1.1.38-e84gxv9a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-eafpexwg.mjs +2 -0
- package/dist/chunks/cli-1.1.38-exexvj4k.mjs +5 -0
- package/dist/chunks/cli-1.1.38-f6be5pxz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-f7fq44hz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-fembxywm.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ffkc8ker.mjs +42 -0
- package/dist/chunks/cli-1.1.38-fgwfzs50.mjs +2 -0
- package/dist/chunks/cli-1.1.38-fr1kxnk2.mjs +2 -0
- package/dist/chunks/cli-1.1.38-frcvjcgw.mjs +2 -0
- package/dist/chunks/cli-1.1.38-fyw4xbm7.mjs +3 -0
- package/dist/chunks/cli-1.1.38-g4av033p.mjs +26 -0
- package/dist/chunks/cli-1.1.38-g94v4hq7.mjs +2 -0
- package/dist/chunks/cli-1.1.38-gdcz0rss.mjs +2 -0
- package/dist/chunks/cli-1.1.38-gp49bfxk.mjs +2 -0
- package/dist/chunks/cli-1.1.38-gqpmcnnv.mjs +15 -0
- package/dist/chunks/cli-1.1.38-gtjexepq.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h013mt1h.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h0643t2a.mjs +63 -0
- package/dist/chunks/cli-1.1.38-h1fqbjjb.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h2f789qa.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h6qtpp5r.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h83nx1a5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-haa4vwxj.mjs +2 -0
- package/dist/chunks/cli-1.1.38-hkbb3sr7.mjs +2 -0
- package/dist/chunks/cli-1.1.38-hvc5ed6c.mjs +2 -0
- package/dist/chunks/cli-1.1.38-jakpq48k.mjs +2 -0
- package/dist/chunks/cli-1.1.38-jr0vb3er.mjs +4 -0
- package/dist/chunks/cli-1.1.38-jrf85w1a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ka1w0zwc.mjs +2 -0
- package/dist/chunks/cli-1.1.38-kcykd1e5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-kjt1gn6d.mjs +135 -0
- package/dist/chunks/cli-1.1.38-kns8wjke.mjs +2 -0
- package/dist/chunks/cli-1.1.38-kqkm7ndz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-m66mmsr6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-m9k89rb6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-mbfqg6za.mjs +3 -0
- package/dist/chunks/cli-1.1.38-md7mbf9q.mjs +2 -0
- package/dist/chunks/cli-1.1.38-mh6a6g83.mjs +4 -0
- package/dist/chunks/cli-1.1.38-mnr9k9j8.mjs +2 -0
- package/dist/chunks/cli-1.1.38-n5tx4p12.mjs +15 -0
- package/dist/chunks/cli-1.1.38-n9xftqbp.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ndbzsvf1.mjs +4 -0
- package/dist/chunks/cli-1.1.38-nmmd7xh9.mjs +4 -0
- package/dist/chunks/cli-1.1.38-npc1f8rb.mjs +3 -0
- package/dist/chunks/cli-1.1.38-nr3yx2kb.mjs +4 -0
- package/dist/chunks/cli-1.1.38-nzbcas3j.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pab9ct4p.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pah268nz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pdv3syxb.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pe2vd8sk.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pksnvm8s.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pnngv0r7.mjs +2 -0
- package/dist/chunks/cli-1.1.38-q3emeb23.mjs +2 -0
- package/dist/chunks/cli-1.1.38-q3yhkwkh.mjs +3 -0
- package/dist/chunks/cli-1.1.38-q8ewcabe.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qackcmc3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qebn65cx.mjs +50 -0
- package/dist/chunks/cli-1.1.38-qfpkjbx1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qv0rqvhj.mjs +4 -0
- package/dist/chunks/cli-1.1.38-qw1jxc9j.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qwkjfytz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qyg5n01q.mjs +2 -0
- package/dist/chunks/cli-1.1.38-r3r6jmgz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-rp0tsnde.mjs +2 -0
- package/dist/chunks/cli-1.1.38-rvjmh1y0.mjs +4 -0
- package/dist/chunks/cli-1.1.38-s1nggz9g.mjs +16 -0
- package/dist/chunks/cli-1.1.38-s8evhc7a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-sjrfgskz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-sywjrgh0.mjs +2 -0
- package/dist/chunks/cli-1.1.38-t8k5snq9.mjs +24 -0
- package/dist/chunks/cli-1.1.38-tk968ykv.mjs +5497 -0
- package/dist/chunks/cli-1.1.38-tvh77h3r.mjs +2 -0
- package/dist/chunks/cli-1.1.38-v40xwwad.mjs +2 -0
- package/dist/chunks/cli-1.1.38-vbxptsq5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-wbww08bk.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ww8j7xpn.mjs +2 -0
- package/dist/chunks/cli-1.1.38-wwezb1bz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-x0j2v4e5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xag86y98.mjs +24 -0
- package/dist/chunks/cli-1.1.38-xf78kmy6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xpar3nmx.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xpjv8r2g.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xr1c1bn4.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xvwb3d6n.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y1w55df3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y3k2y9f2.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y57qzkxr.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y66mw08s.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y79rqp8p.mjs +60 -0
- package/dist/chunks/cli-1.1.38-y7ahpffc.mjs +2 -0
- package/dist/chunks/cli-1.1.38-yctmyw1a.mjs +25 -0
- package/dist/chunks/cli-1.1.38-yfhvhcvt.mjs +5 -0
- package/dist/chunks/cli-1.1.38-ygyme6j6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-yhp9b0b0.mjs +2 -0
- package/dist/chunks/cli-1.1.38-yk5s276s.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z02gnn41.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z2mnaz67.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z6abxdx3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z8x4q5cc.mjs +12 -0
- package/dist/chunks/cli-1.1.38-z9faf3ft.mjs +6 -0
- package/dist/chunks/cli-1.1.38-zj7fa197.mjs +2 -0
- package/dist/chunks/cli-1.1.38-zx5nqvq6.mjs +2 -0
- package/dist/chunks/client-1.1.38-7hcrtb3q.mjs +1 -0
- package/dist/chunks/color-1.1.38-eqrtxm9k.mjs +1 -0
- package/dist/chunks/compact-1.1.38-ya34rk57.mjs +2 -0
- package/dist/chunks/config-1.1.38-bbe0h0fj.mjs +1 -0
- package/dist/chunks/config-1.1.38-bfaptzc8.mjs +1 -0
- package/dist/chunks/constants-1.1.38-yytvwzgs.mjs +1 -0
- package/dist/chunks/context-1.1.38-2mgwzmk2.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.38-8bj0e1ac.mjs +1 -0
- package/dist/chunks/conversation-1.1.38-9hdq28pm.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.38-s4pj5tsz.mjs +1 -0
- package/dist/chunks/copy-1.1.38-f83q42a2.mjs +9 -0
- package/dist/chunks/cost-1.1.38-8wheqk0q.mjs +1 -0
- package/dist/chunks/createSession-1.1.38-m815jqhf.mjs +1 -0
- package/dist/chunks/debug-1.1.38-0nc58m79.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.38-t4spryyh.mjs +1458 -0
- package/dist/chunks/desktop-1.1.38-6tbjry9x.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.38-fkd9xdma.mjs +1 -0
- package/dist/chunks/detection-1.1.38-21frnq82.mjs +1 -0
- package/dist/chunks/diff-1.1.38-bqd4vh6q.mjs +1 -0
- package/dist/chunks/doctor-1.1.38-yedjk1t9.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.38-2tq437dy.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.38-ag144tcy.mjs +1 -0
- package/dist/chunks/effort-1.1.38-w8zmwjyn.mjs +13 -0
- package/dist/chunks/engine-1.1.38-9p06hk6t.mjs +1 -0
- package/dist/chunks/envUtils-1.1.38-0x5t3jcn.mjs +1 -0
- package/dist/chunks/errors-1.1.38-x5yfskn2.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.38-j3f50kg4.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.38-vtsaz9ex.mjs +1 -0
- package/dist/chunks/exit-1.1.38-2az07cgq.mjs +1 -0
- package/dist/chunks/explorer-1.1.38-f8v6fw0n.mjs +1 -0
- package/dist/chunks/export-1.1.38-ryfsevs9.mjs +2 -0
- package/dist/chunks/fast-1.1.38-pqjeb7br.mjs +1 -0
- package/dist/chunks/feedback-1.1.38-a735me7a.mjs +16 -0
- package/dist/chunks/git-1.1.38-ea24mp87.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.38-mrk9kw4h.mjs +1 -0
- package/dist/chunks/goal-1.1.38-t7b2x0m7.mjs +4 -0
- package/dist/chunks/headless-1.1.38-xa7n2h6a.mjs +2 -0
- package/dist/chunks/heapdump-1.1.38-0kkahje0.mjs +6 -0
- package/dist/chunks/help-1.1.38-c6fc5w2g.mjs +1 -0
- package/dist/chunks/hooks-1.1.38-020dm4m5.mjs +79 -0
- package/dist/chunks/hooks-1.1.38-d6nx1th8.mjs +1 -0
- package/dist/chunks/ide-1.1.38-w88jdkwh.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.38-dr7f0p7d.mjs +1 -0
- package/dist/chunks/import-1.1.38-tjgkgqtj.mjs +260 -0
- package/dist/chunks/inboundAttachments-1.1.38-96y0me8c.mjs +1 -0
- package/dist/chunks/index-1.1.38-0p1da46q.mjs +1 -0
- package/dist/chunks/index-1.1.38-0vkksyqf.mjs +1 -0
- package/dist/chunks/index-1.1.38-32wb94y5.mjs +1 -0
- package/dist/chunks/index-1.1.38-b7v4mc41.mjs +1 -0
- package/dist/chunks/index-1.1.38-d5147beb.mjs +1 -0
- package/dist/chunks/index-1.1.38-e7f6p4gc.mjs +2 -0
- package/dist/chunks/index-1.1.38-fmvxdssr.mjs +1 -0
- package/dist/chunks/index-1.1.38-fx4e6n5y.mjs +9 -0
- package/dist/chunks/index-1.1.38-g6wrndbn.mjs +1 -0
- package/dist/chunks/index-1.1.38-h6safnqh.mjs +1 -0
- package/dist/chunks/index-1.1.38-he0r1v5h.mjs +1 -0
- package/dist/chunks/index-1.1.38-nqht0jy4.mjs +1 -0
- package/dist/chunks/index-1.1.38-nzxyzk3n.mjs +1 -0
- package/dist/chunks/index-1.1.38-psktz1tc.mjs +23 -0
- package/dist/chunks/index-1.1.38-r550x6ay.mjs +2 -0
- package/dist/chunks/index-1.1.38-t56hya6b.mjs +9 -0
- package/dist/chunks/index-1.1.38-t8ehet13.mjs +1 -0
- package/dist/chunks/index-1.1.38-trn75xj8.mjs +1 -0
- package/dist/chunks/index-1.1.38-tz1ab367.mjs +1 -0
- package/dist/chunks/index-1.1.38-wj6bvgqh.mjs +1 -0
- package/dist/chunks/index-1.1.38-wwvwtd47.mjs +30 -0
- package/dist/chunks/index-1.1.38-x4crzvcp.mjs +5 -0
- package/dist/chunks/index-1.1.38-xwfqwn8f.mjs +1 -0
- package/dist/chunks/init-1.1.38-kt9fktc1.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.38-89egcf9a.mjs +1 -0
- package/dist/chunks/ink-1.1.38-jgsp2t7f.mjs +1 -0
- package/dist/chunks/insights-1.1.38-hq19aerm.mjs +870 -0
- package/dist/chunks/install-1.1.38-gyyxk8ck.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.38-f2jf37sk.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.38-tset69kh.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.38-m06ry3jx.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.38-1c7vvamf.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.38-0bgzxgy4.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.38-07neaje5.mjs +1 -0
- package/dist/chunks/log-1.1.38-7yxczk1m.mjs +1 -0
- package/dist/chunks/main-1.1.38-ckkpf6pm.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.38-wgkdf5th.mjs +1 -0
- package/dist/chunks/mcp-1.1.38-5g1dkaq3.mjs +4 -0
- package/dist/chunks/mcp-1.1.38-pv2q4v1t.mjs +1 -0
- package/dist/chunks/mcp-1.1.38-rw32ezwj.mjs +17 -0
- package/dist/chunks/mcpb-1.1.38-2j8knvey.mjs +1 -0
- package/dist/chunks/memory-1.1.38-ee240zz4.mjs +128 -0
- package/dist/chunks/model-1.1.38-0ap9xmp3.mjs +1 -0
- package/dist/chunks/model-1.1.38-5qmke302.mjs +2 -0
- package/dist/chunks/new-1.1.38-ahnzb47c.mjs +1 -0
- package/dist/chunks/node-1.1.38-8hxn3e6r.mjs +15 -0
- package/dist/chunks/node-1.1.38-v0zbmtyr.mjs +1 -0
- package/dist/chunks/oauth-1.1.38-5me1vtg3.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.38-12snq1gc.mjs +14 -0
- package/dist/chunks/output-style-1.1.38-zb5mtnss.mjs +1 -0
- package/dist/chunks/package-V72LKFNW-1.1.38-q7hcwdtx.mjs +1 -0
- package/dist/chunks/permissions-1.1.38-5kw7w85c.mjs +1 -0
- package/dist/chunks/permissions-1.1.38-nk2ndszr.mjs +3 -0
- package/dist/chunks/plan-1.1.38-z3dqqjh7.mjs +1 -0
- package/dist/chunks/plist-1.1.38-56sqgq6h.mjs +1 -0
- package/dist/chunks/plugin-1.1.38-03de52xp.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.38-0v5j57bh.mjs +1 -0
- package/dist/chunks/plugins-1.1.38-zmnat29k.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.38-s4pt4ahn.mjs +2 -0
- package/dist/chunks/print-1.1.38-9ar632da.mjs +57 -0
- package/dist/chunks/process-1.1.38-ndydtgs9.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.38-xj8xy6j7.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.38-rq94k8j4.mjs +9 -0
- package/dist/chunks/prompt-1.1.38-q5jst5dw.mjs +1 -0
- package/dist/chunks/prompt-1.1.38-qwzt31qc.mjs +1 -0
- package/dist/chunks/prompts-1.1.38-brvz08qv.mjs +1 -0
- package/dist/chunks/provider-1.1.38-zvnh7rf6.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.38-a0jrr70y.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.38-qj7m9ae0.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.38-kn98yfrh.mjs +26 -0
- package/dist/chunks/registry-1.1.38-02xa1gxq.mjs +1 -0
- package/dist/chunks/release-notes-1.1.38-kmxj255k.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.38-n429fwj8.mjs +2 -0
- package/dist/chunks/remote-env-1.1.38-4ecvn8ra.mjs +1 -0
- package/dist/chunks/rename-1.1.38-ah715pv0.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.38-d6n16rnp.mjs +1 -0
- package/dist/chunks/resume-1.1.38-tv3f819g.mjs +2 -0
- package/dist/chunks/rewind-1.1.38-6wc124dk.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.38-d7ta609y.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.38-n01n145x.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.38-pyjs3awv.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.38-54tec9n4.mjs +1 -0
- package/dist/chunks/session-1.1.38-d20mp4b0.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.38-44je31rv.mjs +1 -0
- package/dist/chunks/settings-1.1.38-x6fb5kk1.mjs +1 -0
- package/dist/chunks/setup-1.1.38-cryd3k7j.mjs +12 -0
- package/dist/chunks/sinks-1.1.38-xt06cywv.mjs +1 -0
- package/dist/chunks/skills-1.1.38-7kbrgpe5.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.38-w24hm0h1.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.38-pmp6wqj9.mjs +1 -0
- package/dist/chunks/state-1.1.38-ttzekhjw.mjs +1 -0
- package/dist/chunks/stats-1.1.38-w347vz1w.mjs +1 -0
- package/dist/chunks/status-1.1.38-h7pzkbmj.mjs +1 -0
- package/dist/chunks/stickers-1.1.38-p6n5mskj.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.38-3b6nr5kd.mjs +1 -0
- package/dist/chunks/tasks-1.1.38-jrznh7eb.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.38-b920q217.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.38-30rjbjkp.mjs +1 -0
- package/dist/chunks/teleport-1.1.38-kqj15kwz.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.38-a1j9tav3.mjs +1 -0
- package/dist/chunks/theme-1.1.38-zqgshtd8.mjs +1 -0
- package/dist/chunks/toolPool-1.1.38-rjxnejc9.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.38-bsgpwrqw.mjs +1 -0
- package/dist/chunks/tools-1.1.38-hphgtq98.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.38-6zmefgdf.mjs +69 -0
- package/dist/chunks/types-1.1.38-yaz6xzxg.mjs +1 -0
- package/dist/chunks/update-1.1.38-qkmfgy3f.mjs +72 -0
- package/dist/chunks/upload-1.1.38-25jm1g5x.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.38-kdzcx35q.mjs +14 -0
- package/dist/chunks/usage-1.1.38-17yqaf62.mjs +1 -0
- package/dist/chunks/util-1.1.38-e3nemqk5.mjs +1 -0
- package/dist/chunks/utils-1.1.38-709jv8e9.mjs +1 -0
- package/dist/chunks/vim-1.1.38-jtz13d73.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.38-fb6heqjg.mjs +13 -0
- package/dist/chunks/wiki-1.1.38-fpkcyk67.mjs +132 -0
- package/dist/chunks/workflows-1.1.38-mj7dax7d.mjs +1 -0
- package/dist/chunks/worktree-1.1.38-9zf6zp7r.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.38-01veveaw.mjs +1 -0
- package/dist/chunks/wrapper-1.1.38-7cvdwcn2.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/dist/help.txt +1 -1
- package/package.json +9 -9
- package/dist/chunks/App-1.1.36-4ypa2ky6.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.36-r5r4cwsv.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.36-v3mtkjve.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.36-m4wb4rn1.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.36-7v5ebgve.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.36-xpxzdymv.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.36-f49re5tc.mjs +0 -6
- package/dist/chunks/Doctor-1.1.36-2dspbc9p.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.36-9ajm3kh8.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.36-js7zf4na.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.36-4qp5v3qb.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.36-vesfpg6k.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.36-bg3y18da.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.36-n2rz26c0.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.36-tr7atyyg.mjs +0 -1
- package/dist/chunks/REPL-1.1.36-k3q58fha.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.36-qa0m768f.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.36-sg79pgf7.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.36-2q0d269f.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.36-rngjq7f6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.36-mrzttk9n.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.36-ycekhs3r.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.36-awrjghme.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.36-r7zqb99r.mjs +0 -1
- package/dist/chunks/add-dir-1.1.36-mrfh3vg4.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.36-50aq6x28.mjs +0 -1
- package/dist/chunks/agents-1.1.36-p154bdnq.mjs +0 -110
- package/dist/chunks/agents-1.1.36-qvdrqv2q.mjs +0 -3
- package/dist/chunks/api-1.1.36-fw1zvw5c.mjs +0 -1
- package/dist/chunks/asciicast-1.1.36-pabx88c3.mjs +0 -1
- package/dist/chunks/auth-1.1.36-nxs2defd.mjs +0 -1
- package/dist/chunks/auth-1.1.36-vxpyyv86.mjs +0 -1
- package/dist/chunks/autoMode-1.1.36-ew03cpb1.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.36-m3aspqak.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.36-dvg6tvq8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.36-q1ejq881.mjs +0 -1
- package/dist/chunks/branch-1.1.36-ev37nqdg.mjs +0 -4
- package/dist/chunks/bridge-1.1.36-1yp5eghy.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.36-yxs52053.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.36-ghh2yqhm.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.36-6v5c06t6.mjs +0 -64
- package/dist/chunks/bridgePointer-1.1.36-2rgfyyde.mjs +0 -1
- package/dist/chunks/btw-1.1.36-065ma89f.mjs +0 -1
- package/dist/chunks/buddy-1.1.36-a1z9gs49.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.36-bvheegzj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.36-0bq3fz34.mjs +0 -4
- package/dist/chunks/caches-1.1.36-8swj463y.mjs +0 -1
- package/dist/chunks/cd-1.1.36-wwqk3h8r.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.36-325wbhtb.mjs +0 -1
- package/dist/chunks/claudemd-1.1.36-2vv85v0v.mjs +0 -1
- package/dist/chunks/clear-1.1.36-xnqf2tm7.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.36-g72pkm2k.mjs +0 -1
- package/dist/chunks/cli-1.1.36-02vb8r9t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0ar5v8he.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0d7qj290.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0qdd3hmz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0qtyffhw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0v8c69pm.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0zzq8bfp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-12bsh7j9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1dhxpexj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1dr6aakq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1fmfztzp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1yk5zdh0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1z1m015s.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2720p0e9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2awc366j.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2mqhd52j.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2sbmjg5a.mjs +0 -2
- package/dist/chunks/cli-1.1.36-33pcdm87.mjs +0 -2
- package/dist/chunks/cli-1.1.36-34sqd3h3.mjs +0 -15
- package/dist/chunks/cli-1.1.36-3fe93rwy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3gx0bht8.mjs +0 -4
- package/dist/chunks/cli-1.1.36-3kd43x1y.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3mmakdzj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3xkn8kcw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3z14wtaa.mjs +0 -2
- package/dist/chunks/cli-1.1.36-40x4f5k7.mjs +0 -34
- package/dist/chunks/cli-1.1.36-422dmh6w.mjs +0 -2
- package/dist/chunks/cli-1.1.36-43fkjqy9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-451x9avw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4ajy0ys9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4g1wf6an.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4jwgcerx.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4pfza5vq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4ssz80b2.mjs +0 -60
- package/dist/chunks/cli-1.1.36-5de80y14.mjs +0 -26
- package/dist/chunks/cli-1.1.36-5few49rp.mjs +0 -7
- package/dist/chunks/cli-1.1.36-5kmv74s2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-5nkhhy5f.mjs +0 -7
- package/dist/chunks/cli-1.1.36-5nkv3yj2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-5zzwcyt7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-659qh6fs.mjs +0 -15
- package/dist/chunks/cli-1.1.36-65fkb20j.mjs +0 -12
- package/dist/chunks/cli-1.1.36-69zmc79s.mjs +0 -2
- package/dist/chunks/cli-1.1.36-6g1w2zbr.mjs +0 -4
- package/dist/chunks/cli-1.1.36-6jv1ss2p.mjs +0 -2
- package/dist/chunks/cli-1.1.36-6q7sfj4e.mjs +0 -4
- package/dist/chunks/cli-1.1.36-6yqvdwyp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-703pmf6z.mjs +0 -135
- package/dist/chunks/cli-1.1.36-72hptg9d.mjs +0 -2
- package/dist/chunks/cli-1.1.36-72p8zdsg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-72sph7cp.mjs +0 -3
- package/dist/chunks/cli-1.1.36-775g6c3z.mjs +0 -2
- package/dist/chunks/cli-1.1.36-789jh18m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-79jcadbx.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7byzkddk.mjs +0 -3
- package/dist/chunks/cli-1.1.36-7tprmtpr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7xx3rm4x.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7ywn6pq1.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7z5n90ex.mjs +0 -3
- package/dist/chunks/cli-1.1.36-80gqbr44.mjs +0 -2
- package/dist/chunks/cli-1.1.36-814rb1qn.mjs +0 -2
- package/dist/chunks/cli-1.1.36-89dhnv3q.mjs +0 -2
- package/dist/chunks/cli-1.1.36-8k2z8yvv.mjs +0 -4
- package/dist/chunks/cli-1.1.36-8mc299mk.mjs +0 -6
- package/dist/chunks/cli-1.1.36-8s4n3bf2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-8vncd2t8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-90xk1ctt.mjs +0 -4
- package/dist/chunks/cli-1.1.36-97zq0wp5.mjs +0 -2
- package/dist/chunks/cli-1.1.36-9k371kgm.mjs +0 -15
- package/dist/chunks/cli-1.1.36-9xnre98h.mjs +0 -2
- package/dist/chunks/cli-1.1.36-a4gh459t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-adsb7266.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ahr5fnjy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-apycha28.mjs +0 -2
- package/dist/chunks/cli-1.1.36-as3jtdj6.mjs +0 -4
- package/dist/chunks/cli-1.1.36-aypab30m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-b0rge62y.mjs +0 -133
- package/dist/chunks/cli-1.1.36-b54n0msa.mjs +0 -2
- package/dist/chunks/cli-1.1.36-b77v7k9g.mjs +0 -3
- package/dist/chunks/cli-1.1.36-bsfazmtt.mjs +0 -2
- package/dist/chunks/cli-1.1.36-bxrew2k8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-bywrsksg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-c3rd4cfc.mjs +0 -10
- package/dist/chunks/cli-1.1.36-c4k9g1dk.mjs +0 -2
- package/dist/chunks/cli-1.1.36-c4pkjm54.mjs +0 -2
- package/dist/chunks/cli-1.1.36-cm2kys6t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-cya5x9g3.mjs +0 -2
- package/dist/chunks/cli-1.1.36-d4bd8qw2.mjs +0 -4
- package/dist/chunks/cli-1.1.36-dpn3xp4e.mjs +0 -2
- package/dist/chunks/cli-1.1.36-dt9kgcr3.mjs +0 -2
- package/dist/chunks/cli-1.1.36-e5xkjjtj.mjs +0 -21
- package/dist/chunks/cli-1.1.36-ef3vjg8b.mjs +0 -9
- package/dist/chunks/cli-1.1.36-f6yxszv5.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fd7xaf6g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fhnpvzaf.mjs +0 -6
- package/dist/chunks/cli-1.1.36-fj9nx7k4.mjs +0 -10
- package/dist/chunks/cli-1.1.36-fw6d7jyv.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fxpd9jmz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-gfn4xejp.mjs +0 -17
- package/dist/chunks/cli-1.1.36-gfx5kkq4.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ggr2pkp7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-gpks9z9m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-h74yjk66.mjs +0 -2
- package/dist/chunks/cli-1.1.36-haxnmraq.mjs +0 -24
- package/dist/chunks/cli-1.1.36-hqmz0657.mjs +0 -3
- package/dist/chunks/cli-1.1.36-hvnr6rta.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jnftcw4c.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jpcwwd65.mjs +0 -5
- package/dist/chunks/cli-1.1.36-jqn2tez7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jx3e7dft.mjs +0 -9
- package/dist/chunks/cli-1.1.36-k14jc4fv.mjs +0 -2
- package/dist/chunks/cli-1.1.36-kzxdhaaz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-m11p0exg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-m981mqsb.mjs +0 -39
- package/dist/chunks/cli-1.1.36-mam7e8zn.mjs +0 -11
- package/dist/chunks/cli-1.1.36-mmre9943.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n44emd29.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n5etyd9m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n9knhbs6.mjs +0 -6
- package/dist/chunks/cli-1.1.36-nnzqwcsc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-nqy7mzrt.mjs +0 -45
- package/dist/chunks/cli-1.1.36-nw3mandv.mjs +0 -50
- package/dist/chunks/cli-1.1.36-p0w1dm9g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-p375v620.mjs +0 -6
- package/dist/chunks/cli-1.1.36-p7w1197h.mjs +0 -2
- package/dist/chunks/cli-1.1.36-psd41gmc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-pwszcwqb.mjs +0 -2
- package/dist/chunks/cli-1.1.36-pxy9g55g.mjs +0 -20
- package/dist/chunks/cli-1.1.36-q2e0arg8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-q4a30pjq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-q9xgs0j5.mjs +0 -3
- package/dist/chunks/cli-1.1.36-qdefh0tg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-qm9492fw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-qn4td7gm.mjs +0 -4
- package/dist/chunks/cli-1.1.36-qxdw7xas.mjs +0 -3
- package/dist/chunks/cli-1.1.36-qyd8fnkc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-r241fh82.mjs +0 -5
- package/dist/chunks/cli-1.1.36-r2svaxxt.mjs +0 -25
- package/dist/chunks/cli-1.1.36-rh00pabh.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rkcfjk5n.mjs +0 -8
- package/dist/chunks/cli-1.1.36-rp1ck3rr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rqhp2xt1.mjs +0 -24
- package/dist/chunks/cli-1.1.36-rv222he2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rwa4g74g.mjs +0 -3
- package/dist/chunks/cli-1.1.36-rwqe4psg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-s8jcsdgb.mjs +0 -16
- package/dist/chunks/cli-1.1.36-s9ar9y3g.mjs +0 -42
- package/dist/chunks/cli-1.1.36-sd51t79y.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ss62b517.mjs +0 -63
- package/dist/chunks/cli-1.1.36-t0ncrwb0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-t6sjxpcb.mjs +0 -251
- package/dist/chunks/cli-1.1.36-tda1q99k.mjs +0 -2
- package/dist/chunks/cli-1.1.36-tvr7rnm0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-v0s0vqmm.mjs +0 -5551
- package/dist/chunks/cli-1.1.36-v5nxnkwj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-vdy55pxe.mjs +0 -2
- package/dist/chunks/cli-1.1.36-vz7m93en.mjs +0 -2
- package/dist/chunks/cli-1.1.36-w1nf9wd0.mjs +0 -10
- package/dist/chunks/cli-1.1.36-w23zxn8g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wdrt641n.mjs +0 -25
- package/dist/chunks/cli-1.1.36-wdvzyaky.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wfgjsqkk.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wwwj09sw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x0qqxv1t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x11fzb6n.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x1761kx6.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xf45p3qr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xj95r55n.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xs4p38vb.mjs +0 -6
- package/dist/chunks/cli-1.1.36-xvwc8bka.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ya2s1rfy.mjs +0 -18
- package/dist/chunks/cli-1.1.36-yew13j62.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ykz9vwbf.mjs +0 -2
- package/dist/chunks/cli-1.1.36-yrgfywq5.mjs +0 -24
- package/dist/chunks/cli-1.1.36-z5djkbwy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zax3mr51.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zbn66hn9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zd032ger.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zeahx79z.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zey2drb2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zv6ffhhy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zw8q3z61.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zzpdy0k8.mjs +0 -2
- package/dist/chunks/client-1.1.36-ydq31jce.mjs +0 -1
- package/dist/chunks/color-1.1.36-9fjvayey.mjs +0 -1
- package/dist/chunks/compact-1.1.36-p42ft3yq.mjs +0 -2
- package/dist/chunks/config-1.1.36-42ab04bq.mjs +0 -1
- package/dist/chunks/config-1.1.36-x636yezt.mjs +0 -1
- package/dist/chunks/constants-1.1.36-ba1bvty5.mjs +0 -1
- package/dist/chunks/context-1.1.36-zjvkgfrr.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.36-f5rax1ah.mjs +0 -1
- package/dist/chunks/conversation-1.1.36-jd5867c5.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.36-dg9s10xt.mjs +0 -1
- package/dist/chunks/copy-1.1.36-95ds743c.mjs +0 -9
- package/dist/chunks/cost-1.1.36-vhm8f7tp.mjs +0 -1
- package/dist/chunks/createSession-1.1.36-haxa0dvw.mjs +0 -1
- package/dist/chunks/debug-1.1.36-fvyvxmx1.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.36-24ag19wj.mjs +0 -1458
- package/dist/chunks/desktop-1.1.36-n6x2epmn.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.36-ktxtd4ej.mjs +0 -1
- package/dist/chunks/detection-1.1.36-s8z7d4bm.mjs +0 -1
- package/dist/chunks/diff-1.1.36-0mrzd4kw.mjs +0 -1
- package/dist/chunks/doctor-1.1.36-tta8yrqq.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.36-1j38851d.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.36-rv44jymf.mjs +0 -1
- package/dist/chunks/effort-1.1.36-yd22tc48.mjs +0 -13
- package/dist/chunks/engine-1.1.36-cf09xwf2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.36-e9dd4q6g.mjs +0 -1
- package/dist/chunks/errors-1.1.36-86veg19m.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.36-nmf2s84f.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.36-naz9kbtt.mjs +0 -1
- package/dist/chunks/exit-1.1.36-53t418pg.mjs +0 -1
- package/dist/chunks/explorer-1.1.36-pgghex3j.mjs +0 -1
- package/dist/chunks/export-1.1.36-1ynxg1wb.mjs +0 -2
- package/dist/chunks/fast-1.1.36-f64h2t2k.mjs +0 -1
- package/dist/chunks/feedback-1.1.36-vgb10qbs.mjs +0 -16
- package/dist/chunks/git-1.1.36-f934674g.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.36-f2yec5gh.mjs +0 -1
- package/dist/chunks/goal-1.1.36-yyy0jkwz.mjs +0 -4
- package/dist/chunks/headless-1.1.36-47ts4j1h.mjs +0 -2
- package/dist/chunks/heapdump-1.1.36-hhwpz3jf.mjs +0 -6
- package/dist/chunks/help-1.1.36-zr7z9tga.mjs +0 -1
- package/dist/chunks/hooks-1.1.36-and1agcb.mjs +0 -79
- package/dist/chunks/hooks-1.1.36-qgd5x79v.mjs +0 -1
- package/dist/chunks/ide-1.1.36-afc5wn8q.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.36-ycj021z0.mjs +0 -1
- package/dist/chunks/import-1.1.36-jrjb5s4n.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.36-h1yrtqms.mjs +0 -1
- package/dist/chunks/index-1.1.36-048ng2px.mjs +0 -1
- package/dist/chunks/index-1.1.36-1mbx6axa.mjs +0 -1
- package/dist/chunks/index-1.1.36-1rzdb7w0.mjs +0 -1
- package/dist/chunks/index-1.1.36-312tvs2v.mjs +0 -2
- package/dist/chunks/index-1.1.36-46vz4hm5.mjs +0 -5
- package/dist/chunks/index-1.1.36-4dth0mx8.mjs +0 -1
- package/dist/chunks/index-1.1.36-5bc8t250.mjs +0 -9
- package/dist/chunks/index-1.1.36-6mpk59p2.mjs +0 -1
- package/dist/chunks/index-1.1.36-83wpkv8f.mjs +0 -30
- package/dist/chunks/index-1.1.36-8s1fe47p.mjs +0 -9
- package/dist/chunks/index-1.1.36-95xjkxf6.mjs +0 -1
- package/dist/chunks/index-1.1.36-c90kzpg9.mjs +0 -1
- package/dist/chunks/index-1.1.36-ectpcy01.mjs +0 -1
- package/dist/chunks/index-1.1.36-f33wa99v.mjs +0 -1
- package/dist/chunks/index-1.1.36-fgj4arq3.mjs +0 -23
- package/dist/chunks/index-1.1.36-fr144w7s.mjs +0 -1
- package/dist/chunks/index-1.1.36-keejgmvt.mjs +0 -1
- package/dist/chunks/index-1.1.36-knytd0n4.mjs +0 -1
- package/dist/chunks/index-1.1.36-m21fh89b.mjs +0 -1
- package/dist/chunks/index-1.1.36-n3tpswv4.mjs +0 -1
- package/dist/chunks/index-1.1.36-q6468dg7.mjs +0 -1
- package/dist/chunks/index-1.1.36-svzjvq7t.mjs +0 -1
- package/dist/chunks/index-1.1.36-vpaaz84z.mjs +0 -2
- package/dist/chunks/init-1.1.36-16rj95sf.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.36-xganfz86.mjs +0 -1
- package/dist/chunks/ink-1.1.36-ayvk483m.mjs +0 -1
- package/dist/chunks/insights-1.1.36-0kqbkgbz.mjs +0 -870
- package/dist/chunks/install-1.1.36-3v0b55mh.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.36-6ybyxdq5.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.36-040ssrxp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.36-2fm0smr3.mjs +0 -1
- package/dist/chunks/latestVersionCache-1.1.36-9fa4kpt8.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.36-t9mhqgv5.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.36-vf3yqk6b.mjs +0 -1
- package/dist/chunks/log-1.1.36-zazc6e80.mjs +0 -1
- package/dist/chunks/main-1.1.36-r3b0ysm4.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.36-nksy6dte.mjs +0 -1
- package/dist/chunks/mcp-1.1.36-7fbqeb90.mjs +0 -17
- package/dist/chunks/mcp-1.1.36-d2df02nr.mjs +0 -4
- package/dist/chunks/mcp-1.1.36-dj3ctzg2.mjs +0 -1
- package/dist/chunks/mcpb-1.1.36-7hcc3bm8.mjs +0 -1
- package/dist/chunks/memory-1.1.36-4h4pw21v.mjs +0 -128
- package/dist/chunks/model-1.1.36-3vvdafvs.mjs +0 -1
- package/dist/chunks/model-1.1.36-pvrxzcbd.mjs +0 -2
- package/dist/chunks/node-1.1.36-xhks7s8w.mjs +0 -15
- package/dist/chunks/node-1.1.36-z1nceabc.mjs +0 -1
- package/dist/chunks/oauth-1.1.36-w0jf6x39.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.36-m75hvh8e.mjs +0 -14
- package/dist/chunks/output-style-1.1.36-c0mgemjb.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.36-kfm7v15k.mjs +0 -1
- package/dist/chunks/permissions-1.1.36-20jz1yq3.mjs +0 -3
- package/dist/chunks/permissions-1.1.36-mtf6m3pf.mjs +0 -1
- package/dist/chunks/plan-1.1.36-r2k6ysce.mjs +0 -1
- package/dist/chunks/plist-1.1.36-8vg2xrj2.mjs +0 -1
- package/dist/chunks/plugin-1.1.36-xa4j4bj2.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.36-7bczq621.mjs +0 -1
- package/dist/chunks/plugins-1.1.36-ck8ycs01.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.36-yt9dm2yh.mjs +0 -2
- package/dist/chunks/print-1.1.36-gcmgxxx7.mjs +0 -57
- package/dist/chunks/process-1.1.36-4kdmcjeq.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.36-5tbfja2m.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.36-db99hjpc.mjs +0 -9
- package/dist/chunks/prompt-1.1.36-7qyxemw6.mjs +0 -1
- package/dist/chunks/prompt-1.1.36-tx374tzn.mjs +0 -1
- package/dist/chunks/prompts-1.1.36-gj1pggdg.mjs +0 -1
- package/dist/chunks/provider-1.1.36-d73knpnr.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.36-v0p0gdag.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.36-bzznd00d.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.36-8s9pb6g7.mjs +0 -26
- package/dist/chunks/registry-1.1.36-4bt4ac4z.mjs +0 -1
- package/dist/chunks/release-notes-1.1.36-zbexvzjp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.36-n8nwygb8.mjs +0 -2
- package/dist/chunks/remote-env-1.1.36-fr8j8hcc.mjs +0 -1
- package/dist/chunks/rename-1.1.36-x06agpgx.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.36-2hp08v6r.mjs +0 -1
- package/dist/chunks/resume-1.1.36-1srfb0q2.mjs +0 -2
- package/dist/chunks/rewind-1.1.36-zkycjr7d.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.36-4m9s4acv.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.36-jbtcynyc.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.36-xrvrh2qp.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.36-2yw8m1jq.mjs +0 -1
- package/dist/chunks/session-1.1.36-dxen3cg6.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.36-dbt045aw.mjs +0 -1
- package/dist/chunks/settings-1.1.36-jb6t4nt2.mjs +0 -1
- package/dist/chunks/setup-1.1.36-7ady6j9j.mjs +0 -12
- package/dist/chunks/sinks-1.1.36-j124tdmn.mjs +0 -1
- package/dist/chunks/skills-1.1.36-wad885e2.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.36-0xnygcy5.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.36-6mvjw2sk.mjs +0 -1
- package/dist/chunks/state-1.1.36-mwqgyp6n.mjs +0 -1
- package/dist/chunks/stats-1.1.36-yzk5t8nc.mjs +0 -1
- package/dist/chunks/status-1.1.36-8b177p6e.mjs +0 -1
- package/dist/chunks/stickers-1.1.36-kdxt4s8f.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.36-g1a43154.mjs +0 -1
- package/dist/chunks/tasks-1.1.36-cnmsc211.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.36-1pwk4n3y.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.36-2stc51nw.mjs +0 -1
- package/dist/chunks/teleport-1.1.36-tdvpgdhd.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.36-agbzd4wd.mjs +0 -1
- package/dist/chunks/theme-1.1.36-2w481ds6.mjs +0 -1
- package/dist/chunks/toolPool-1.1.36-hdw9b8ht.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.36-ccs29nek.mjs +0 -1
- package/dist/chunks/tools-1.1.36-zqsjpqnk.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.36-pwcp7479.mjs +0 -69
- package/dist/chunks/types-1.1.36-bwfasf0g.mjs +0 -1
- package/dist/chunks/update-1.1.36-hzk0xj2g.mjs +0 -72
- package/dist/chunks/upload-1.1.36-mb3a5t01.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.36-x1y5p82n.mjs +0 -14
- package/dist/chunks/usage-1.1.36-qzytaj6z.mjs +0 -1
- package/dist/chunks/util-1.1.36-kb0yef79.mjs +0 -1
- package/dist/chunks/utils-1.1.36-fm3eywyj.mjs +0 -1
- package/dist/chunks/vim-1.1.36-x7adhmdd.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.36-4s334wzz.mjs +0 -13
- package/dist/chunks/wiki-1.1.36-dn9csm8a.mjs +0 -132
- package/dist/chunks/workflows-1.1.36-v5b9khnt.mjs +0 -1
- package/dist/chunks/worktree-1.1.36-cesdwabt.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.36-m20cdekt.mjs +0 -1
- package/dist/chunks/wrapper-1.1.36-1m0td68t.mjs +0 -7
- /package/dist/chunks/{cli-1.1.36-7v42aqn9.mjs → cli-1.1.38-0sbej1sm.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.36-6kq395h8.mjs → cli-1.1.38-fckt5c5p.mjs} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
-
- a short flag is a single dash and a single character
|
|
3
|
-
- either use a single dash and a single character (for a short flag)
|
|
4
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
-
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
-
- too many long flags`);throw Error(`${_}
|
|
7
|
-
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
-
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
-
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
-
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
-
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
-
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
-
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
-
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
-
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
-
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
-
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
-
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
-
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
-
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
-
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
-
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
-
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
-
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as q,S as r,E as s};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Hl as jQ,QM as E,RM as MQ,vm as h,wm as wQ,xm as u,ym as LQ}from"./cli-1.1.36-v0s0vqmm.mjs";import{Aia as j,Dia as XQ,mia as U,qia as UQ}from"./cli-1.1.36-jpcwwd65.mjs";import{$ia as _,fja as vQ}from"./cli-1.1.36-6g1w2zbr.mjs";import{Npa as GQ,Rpa as C}from"./cli-1.1.36-c4pkjm54.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
|
|
2
|
-
`).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
|
|
3
|
-
`).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
|
|
4
|
-
`))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
|
|
5
|
-
`).length;return W.endsWith(`
|
|
6
|
-
`)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
|
|
7
|
-
export{o as Of,I as Pf,A as Qf,T as Rf,N as Sf,p as Tf,x as Uf,F as Vf,RQ as Wf,QZ as Xf,ZZ as Yf,fQ as Zf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{gb as T}from"./cli-1.1.36-q2e0arg8.mjs";import{ac as o,bc as vq}from"./cli-1.1.36-b54n0msa.mjs";import{AF as Aq,BF as p,CF as Qq,Cm as qq,DL as a,EL as bq,PR as Zq,TK as Bq,UK as Tq,Ul as P,Zi as C,am as t,lm as y,qm as e,sO as D,tO as Xq,wF as f,yD as m,zD as Jq,zm as I}from"./cli-1.1.36-v0s0vqmm.mjs";import{mU as c,nU as g,yU as Gq}from"./cli-1.1.36-ahr5fnjy.mjs";import{bda as h,nda as j,oda as i,ufa as V,zfa as r}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as S,Dia as s,mia as x,qia as l}from"./cli-1.1.36-jpcwwd65.mjs";import{ija as U,tja as n}from"./cli-1.1.36-0qtyffhw.mjs";import{Doa as wq,Zma as L,wma as v}from"./cli-1.1.36-bsfazmtt.mjs";import{Opa as _q}from"./cli-1.1.36-c4pkjm54.mjs";bq();async function R(){}wq();import{join as K}from"path";s();n();l();Jq();r();Xq();e();Zq();Qq();Gq();i();qq();t();var $q=30;function N(){let Q=((h()||{}).cleanupPeriodDays??$q)*24*60*60*1000;return new Date(Date.now()-Q)}function d(G,q){return{messages:G.messages+q.messages,errors:G.errors+q.errors}}function zq(G){let q=G.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(q)}async function O(G,q,Q){let J={messages:0,errors:0};try{let X=await x().readdir(G);for(let Z of X)try{if(zq(Z.name)<q)if(await x().unlink(K(G,Z.name)),Q)J.messages++;else J.errors++}catch(z){V(z)}}catch(X){if(X instanceof Error&&"code"in X&&X.code!=="ENOENT")V(X)}return J}async function Kq(){let G=x(),q=N(),Q=T.errors(),J=T.baseLogs(),X=await O(Q,q,!1);try{let Z;try{Z=await G.readdir(J)}catch{return X}let z=Z.filter(($)=>$.isDirectory()&&$.name.startsWith("mcp-logs-")).map(($)=>K(J,$.name));for(let $ of z)X=d(X,await O($,q,!0)),await Y($,G)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")V(Z)}return X}async function M(G,q,Q){if((await Q.stat(G)).mtime<q)return await Q.unlink(G),!0;return!1}async function Y(G,q){try{await q.rmdir(G)}catch{}}async function Yq(){let G=N(),q={messages:0,errors:0},Q=C(),J=x(),X;try{X=await J.readdir(Q)}catch{return q}for(let Z of X){if(!Z.isDirectory())continue;let z=K(Q,Z.name),$;try{$=await J.readdir(z)}catch{q.errors++;continue}for(let W of $)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await M(K(z,W.name),G,J))q.messages++}catch{q.errors++}}else if(W.isDirectory()){let A=K(z,W.name),_=K(A,I),k;try{k=await J.readdir(_)}catch{await Y(A,J);continue}for(let w of k)if(w.isFile())try{if(await M(K(_,w.name),G,J))q.messages++}catch{q.errors++}else if(w.isDirectory()){let B=K(_,w.name),H;try{H=await J.readdir(B)}catch{continue}for(let F of H){if(!F.isFile())continue;try{if(await M(K(B,F.name),G,J))q.messages++}catch{q.errors++}}await Y(B,J)}await Y(_,J),await Y(A,J)}await Y(z,J)}return q}async function E(G,q,Q=!0){let J=N(),X={messages:0,errors:0},Z=x(),z;try{z=await Z.readdir(G)}catch{return X}for(let $ of z){if(!$.isFile()||!$.name.endsWith(q))continue;try{if(await M(K(G,$.name),J,Z))X.messages++}catch{X.errors++}}if(Q)await Y(G,Z);return X}async function xq(){let G=y(),q=await E(G,".md"),Q=K(U(),"plans");if(Q!==G){let J=await E(Q,".md");return d(q,J)}return q}async function Wq(){let G=N(),q={messages:0,errors:0},Q=x();try{let J=U(),X=K(J,"file-history"),Z;try{Z=await Q.readdir(X)}catch{return q}let z=Z.filter(($)=>$.isDirectory()).map(($)=>K(X,$.name));await Promise.all(z.map(async($)=>{try{if((await Q.stat($)).mtime<G)await Q.rm($,{recursive:!0,force:!0}),q.messages++}catch{q.errors++}})),await Y(X,Q)}catch(J){V(J)}return q}async function Nq(){let G=N(),q={messages:0,errors:0},Q=x();try{let J=U(),X=K(J,"session-env"),Z;try{Z=await Q.readdir(X)}catch{return q}let z=Z.filter(($)=>$.isDirectory()).map(($)=>K(X,$.name));for(let $ of z)try{if((await Q.stat($)).mtime<G)await Q.rm($,{recursive:!0,force:!0}),q.messages++}catch{q.errors++}await Y(X,Q)}catch(J){V(J)}return q}async function Vq(){let G=N(),q={messages:0,errors:0},Q=x();try{let J=K(U(),"tasks"),X=g(c()),Z;try{Z=await Q.readdir(J)}catch{return q}for(let z of Z){if(!z.isDirectory()||z.name===X)continue;let $=K(J,z.name);try{if(await Uq($,Q)<G)await Q.rm($,{recursive:!0,force:!0}),q.messages++}catch{q.errors++}}await Y(J,Q)}catch(J){V(J)}return q}async function Uq(G,q){let Q=(await q.stat(G)).mtime,J=await q.readdir(G).catch(()=>[]);for(let X of J){if(!X.isFile())continue;try{let{mtime:Z}=await q.stat(K(G,X.name));if(Z>Q)Q=Z}catch{}}return Q}async function Mq(){let G=N(),q={messages:0,errors:0},Q=x(),J=K(U(),"debug"),X;try{X=await Q.readdir(J)}catch{return q}for(let Z of X){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await M(K(J,Z.name),G,Q))q.messages++}catch{q.errors++}}return q}async function u(){let{errors:G}=p();if(G.length>0&&j("cleanupPeriodDays")){S("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await Kq(),await Yq(),await xq(),await Wq(),await Nq(),await Vq(),await Mq(),await m(),await D(N());let q=await P(N())}Aq();vq();var Lq=(Tq(),_q(Bq)),b=600000;function nq(){R(),Lq.initExtractMemories(),a(),o();let G=!0;async function q(){if(L()&&v()>Date.now()-60000){setTimeout(q,b).unref();return}if(G)G=!1,await u();if(L()&&v()>Date.now()-60000){setTimeout(q,b).unref();return}await f()}setTimeout(q,b).unref()}
|
|
2
|
-
export{nq as ta};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Be as zZ,ve as ZX}from"./cli-1.1.36-zzpdy0k8.mjs";import{uf as nJ,vf as aJ,wf as DX}from"./cli-1.1.36-vz7m93en.mjs";import{$A as SX,AE as YZ,An as IX,Bk as o0,Bx as s,CD as O0,CK as RQ,Co as pX,Cx as U0,DD as a0,Dk as NQ,Ej as OQ,Ek as EJ,GC as EQ,HC as jX,IC as t0,IQ as zX,JC as vQ,JD as QX,KD as ZZ,KG as XX,NQ as WX,QG as qZ,RH as m0,SG as c0,SH as WQ,TG as XJ,UD as YQ,UG as OJ,UQ as KQ,VD as CZ,WD as qQ,ZM as D0,_A as FQ,_M as tJ,aB as K0,bB as PQ,bm as C0,cA as bQ,cm as IJ,cx as Z0,dA as dX,dx as f0,eI as _Q,fI as gQ,gI as cX,hG as T0,ix as LX,jx as AZ,kO as y0,kx as D,lO as CX,lx as P0,mI as w0,nG as zQ,nI as $J,nO as oQ,oI as iJ,oM as x0,ox as e,pB as u0,pI as vX,pn as KX,px as H0,qn as LZ,rM as VQ,sB as ZQ,tE as AX,vn as NX,wE as bZ,xl as wX,yn as PZ,zE as yJ,zK as s0,zl as wZ,zn as kJ,zo as CQ}from"./cli-1.1.36-v0s0vqmm.mjs";import{EX as Y0,MV as V0,QV as n0,YW as w,_W as Y,cX as vJ,mX as AQ}from"./cli-1.1.36-4ssz80b2.mjs";import{WY as JX,XY as XZ}from"./cli-1.1.36-7z5n90ex.mjs";import{b1 as n,c1 as Z,d1 as z,e1 as r}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as A0}from"./cli-1.1.36-apycha28.mjs";import{o6 as hJ,v6 as KZ}from"./cli-1.1.36-7xx3rm4x.mjs";import{$$ as MX,$aa as LJ,Bca as d0,Pba as $Q,R8 as t,S8 as NJ,Sba as iQ,Uaa as L0,Uba as sX,Vaa as M0,aaa as E0,caa as KJ,tca as X0}from"./cli-1.1.36-t6sjxpcb.mjs";import{Ffa as I0,Ifa as N0,Kfa as GX,Mfa as ZJ,Nfa as i0,Wfa as h0}from"./cli-1.1.36-6q7sfj4e.mjs";import{Aia as XQ,Dia as gX,oia as VX,qia as FZ}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as tQ,fja as QZ}from"./cli-1.1.36-6g1w2zbr.mjs";import{Npa as J0,Opa as fX,Qpa as RZ,Rpa as o}from"./cli-1.1.36-c4pkjm54.mjs";function g0(X){return typeof X==="object"&&X!==null&&"type"in X&&X.type==="local_agent"}function zJ(X){return{...X,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:kJ(X.status)?Date.now()+yX:void 0}}function WJ(X,J){J((Q)=>{let q=Q.tasks[X],V=Q.viewingAgentTaskId,W=V!==void 0?Q.tasks[V]:void 0,N=V!==void 0&&V!==X&&g0(W)&&W.retain,G=g0(q)&&(!q.retain||q.evictAfter!==void 0),H=Q.viewingAgentTaskId!==X||Q.viewSelectionMode!=="viewing-agent";if(!G&&!H&&!N)return Q;let U=Q.tasks;if(N||G){if(U={...Q.tasks},N)U[V]=zJ(W);if(G)U[X]={...q,retain:!0,evictAfter:void 0}}return{...Q,viewingAgentTaskId:X,viewSelectionMode:"viewing-agent",tasks:U}})}function VJ(X){X((J)=>{let Q=J.viewingAgentTaskId,q={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Q===void 0)return J.viewSelectionMode==="none"?J:q;let V=J.tasks[Q];if(!g0(V)||!V.retain)return q;return{...q,tasks:{...J.tasks,[Q]:zJ(V)}}})}function jZ(X,J){J((Q)=>{let q=Q.tasks[X];if(!g0(q))return Q;if(q.status==="running")return q.abortController?.abort(),Q;if(q.evictAfter===0)return Q;let V=Q.viewingAgentTaskId===X;return{...Q,tasks:{...Q.tasks,[X]:{...zJ(q),evictAfter:0}},...V&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var yX=30000;var rJ=o(()=>{IX()});function dZ(X){return typeof X==="object"&&X!==null&&"type"in X&&X.type==="mcp_server"}function GJ(X){return{type:X.connectionType,reconnectAttempt:X.reconnectAttempt,maxReconnectAttempts:X.maxReconnectAttempts}}function v0(X){return X.connectionType==="connected"}var S0=()=>{};function j0(X){let J=[w0(X.container),iJ(X.container,X.restartCount)];if(X.container.state==="running"){let Q=$J(X.container);if(Q)J.push(Q)}return J.join(BX)}var BX=" · ";var p0=o(()=>{vX()});function FJ(X){switch(X.connectionType){case"connected":return t.tick;case"failed":return t.cross;case"needs-auth":return t.triangleUpOutline;case"pending":case"disabled":return t.radioOff}}function sJ(X){switch(aJ(GJ(X))){case"active":return"success";case"inactive":return"warning";case"failed":return"error"}}function _X(X){if(X.connectionType!=="connected")return null;if(X.toolCount>0)return`${X.toolCount} ${X0(X.toolCount,"tool")}`;if(X.resourceCount>0)return`${X.resourceCount} ${X0(X.resourceCount,"resource")}`;return null}function PJ(X){let J=[X.serverName,nJ(GJ(X))],Q=_X(X);if(Q)J.push(Q);if(X.connectionType==="failed"&&X.error){let q=X.error.split(`
|
|
2
|
-
`)[0]?.trim()??"";if(q!=="")J.push(q.length>oJ?`${q.slice(0,oJ)}…`:q)}return J.join(hX)}function eJ(X){return`${FJ(X)} ${PJ(X)}`}var hX=" · ",oJ=60;var HJ=o(()=>{NJ();S0();DX();d0()});function B0(X){switch(X.type){case"local_bash":return X.kind==="monitor"?X.description:X.command;case"remote_agent":return X.title;case"local_agent":return X.description;case"local_workflow":return X.summary??X.description;case"monitor_mcp":return X.description;case"dream":return X.description;case"in_process_teammate":return`@${X.identity.agentName}`;case"container":return j0(X);case"mcp_server":return eJ(X);default:return""}}var UJ=o(()=>{p0();HJ()});function JQ(X){if(X.status!=="running")return null;switch(X.type){case"container":return D0(X)?"stop":null;case"mcp_server":return v0(X)?"disconnect":null;default:return"stop"}}var QQ=o(()=>{tJ();S0()});function l0(X,J){if(JQ(X)===null)return;switch(X.type){case"container":J((Q)=>({...Q,pendingContainerStop:{taskId:X.id,name:w0(X.container),startedByUs:X.startedByUs}}));return;case"mcp_server":J((Q)=>({...Q,pendingMcpDisconnect:{taskId:X.id,serverName:X.serverName,toolCount:X.toolCount}}));return;case"local_bash":x0.kill(X.id,J);return;case"local_agent":u0.kill(X.id,J);return;case"in_process_teammate":T0.kill(X.id,J);return;case"monitor_mcp":YQ.kill(X.id,J);return;case"dream":m0.kill(X.id,J);return;case"remote_agent":c0.kill(X.id,J);return;default:{XQ(`killBackgroundTask: unhandled task type ${String(X.type)}`);return}}}var GQ=o(()=>{WQ();zQ();ZQ();VQ();qQ();OJ();p0();QQ();gX()});function k0(X,J,Q){let q=NQ(J,X.toolName);if(!q)return X.toolName;try{let V=q.inputSchema.safeParse(X.input),W=V.success?V.data:{},N=q.userFacingName(W);if(!N)return X.toolName;let G=q.renderToolUseMessage(W,{theme:Q,verbose:!1});if(G)return z(Y,{children:[N,"(",G,")"]});return N}catch{return X.toolName}}var RJ=o(()=>{Y0();EJ();r()});function OY(X){return X==="completed"||X==="failed"||X==="killed"}function HQ(X,J){let{isIdle:Q,awaitingApproval:q,hasError:V,shutdownRequested:W}=J??{};if(V)return t.cross;if(q)return t.questionMarkPrefix;if(W)return t.warning;if(X==="running"){if(Q)return t.ellipsis;return t.play}if(X==="completed")return t.tick;if(X==="failed"||X==="killed")return t.cross;return t.bullet}function UQ(X,J){let{isIdle:Q,awaitingApproval:q,hasError:V,shutdownRequested:W}=J??{};if(V)return"error";if(q)return"warning";if(W)return"warning";if(Q)return"background";if(X==="completed")return"success";if(X==="failed")return"error";if(X==="killed")return"warning";return"background"}function r0(X){if(X.shutdownRequested)return"stopping";if(X.awaitingPlanApproval)return"awaiting approval";if(X.isIdle)return"idle";return(X.progress?.recentActivities&&FQ(X.progress.recentActivities))??X.progress?.lastActivity?.activityDescription??"working"}function EY(X,J){if(!J)return!1;let Q=!1;for(let q of Object.values(X)){if(!K0(q))continue;if(Q=!0,q.type!=="in_process_teammate")return!1}return Q}var $0=o(()=>{NJ();PQ();SX()});function MQ(X){let J=fQ.c(54),{agent:Q,onDone:q,onKillAgent:V,onBack:W}=X,[N]=n0(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=s0(o0()),J[0]=G;else G=J[0];let H=G,U=O0(Q.startTime,Q.status==="running",1000,Q.totalPausedMs??0),P;if(J[1]!==q)P={"confirm:yes":q},J[1]=q,J[2]=P;else P=J[2];let E;if(J[3]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[3]=E;else E=J[3];Z0(P,E);let O;if(J[4]!==Q.status||J[5]!==W||J[6]!==q||J[7]!==V)O=(S)=>{if(S.key===" ")S.preventDefault(),q();else if(S.key==="left"&&W)S.preventDefault(),W();else if(S.key==="x"&&Q.status==="running"&&V)S.preventDefault(),V()},J[4]=Q.status,J[5]=W,J[6]=q,J[7]=V,J[8]=O;else O=J[8];let M=O,f;if(J[9]!==Q.prompt)f=OQ(Q.prompt,"plan"),J[9]=Q.prompt,J[10]=f;else f=J[10];let R=f,C=Q.prompt.length>300?Q.prompt.substring(0,297)+"…":Q.prompt,K=Q.result?.totalTokens??Q.progress?.tokenCount,b=Q.result?.totalToolUseCount??Q.progress?.toolUseCount,B=Q.selectedAgent?.agentType??"agent",I=Q.description||"Async agent",y;if(J[11]!==B||J[12]!==I)y=z(Y,{children:[B," ›"," ",I]}),J[11]=B,J[12]=I,J[13]=y;else y=J[13];let _=y,L;if(J[14]!==Q.status)L=Q.status!=="running"&&z(Y,{color:UQ(Q.status),children:[HQ(Q.status)," ",Q.status==="completed"?"Completed":Q.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Q.status,J[15]=L;else L=J[15];let A;if(J[16]!==K)A=K!==void 0&&K>0&&z(n,{children:[" · ",i0(K)," tokens"]}),J[16]=K,J[17]=A;else A=J[17];let d;if(J[18]!==b)d=b!==void 0&&b>0&&z(n,{children:[" ","· ",b," ",b===1?"tool":"tools"]}),J[18]=b,J[19]=d;else d=J[19];let u;if(J[20]!==U||J[21]!==A||J[22]!==d)u=z(Y,{dimColor:!0,children:[U,A,d]}),J[20]=U,J[21]=A,J[22]=d,J[23]=u;else u=J[23];let m;if(J[24]!==u||J[25]!==L)m=z(Y,{children:[L,u]}),J[24]=u,J[25]=L,J[26]=m;else m=J[26];let c=m,j;if(J[27]!==Q.status||J[28]!==W||J[29]!==V)j=(S)=>S.pending?z(Y,{children:["Press ",S.keyName," again to exit"]}):z(e,{children:[W&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),Q.status==="running"&&V&&Z(D,{shortcut:"x",action:"stop"})]}),J[27]=Q.status,J[28]=W,J[29]=V,J[30]=j;else j=J[30];let h;if(J[31]!==Q.progress||J[32]!==Q.status||J[33]!==N)h=Q.status==="running"&&Q.progress?.recentActivities&&Q.progress.recentActivities.length>0&&z(w,{flexDirection:"column",children:[Z(Y,{bold:!0,dimColor:!0,children:"Progress"}),Q.progress.recentActivities.map((S,x)=>z(Y,{dimColor:x<Q.progress.recentActivities.length-1,wrap:"truncate-end",children:[x===Q.progress.recentActivities.length-1?"› ":" ",k0(S,H,N)]},x))]}),J[31]=Q.progress,J[32]=Q.status,J[33]=N,J[34]=h;else h=J[34];let l;if(J[35]!==C||J[36]!==R)l=R?Z(w,{marginTop:1,children:Z(EQ,{addMargin:!1,planContent:R})}):z(w,{flexDirection:"column",marginTop:1,children:[Z(Y,{bold:!0,dimColor:!0,children:"Prompt"}),Z(Y,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=R,J[37]=l;else l=J[37];let v;if(J[38]!==Q.error||J[39]!==Q.status)v=Q.status==="failed"&&Q.error&&z(w,{flexDirection:"column",marginTop:1,children:[Z(Y,{bold:!0,color:"error",children:"Error"}),Z(Y,{color:"error",wrap:"wrap",children:Q.error})]}),J[38]=Q.error,J[39]=Q.status,J[40]=v;else v=J[40];let T;if(J[41]!==h||J[42]!==l||J[43]!==v)T=z(w,{flexDirection:"column",children:[h,l,v]}),J[41]=h,J[42]=l,J[43]=v,J[44]=T;else T=J[44];let g;if(J[45]!==q||J[46]!==c||J[47]!==j||J[48]!==T||J[49]!==_)g=Z(s,{title:_,subtitle:c,onCancel:q,color:"background",inputGuide:j,children:T}),J[45]=q,J[46]=c,J[47]=j,J[48]=T,J[49]=_,J[50]=g;else g=J[50];let p;if(J[51]!==M||J[52]!==g)p=Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:M,children:g}),J[51]=M,J[52]=g,J[53]=p;else p=J[53];return p}var fQ;var wQ=o(()=>{a0();Y0();f0();EJ();RQ();h0();KQ();H0();U0();P0();jX();RJ();$0();r();fQ=J0(V0(),1)});function AJ(X,J,Q,q){if(!X)return`${J} found · ${Q} verified`;if(X==="synthesizing"){let V=[`${Q} verified`];if(q>0)V.push(`${q} refuted`);return V.push("deduping"),V.join(" · ")}if(X==="verifying"){let V=[`${J} found`,`${Q} verified`];if(q>0)V.push(`${q} refuted`);return V.join(" · ")}return J>0?`${J} found`:"finding"}function fJ(X){let J=e0.c(5),{text:Q,phase:q}=X,V=q===void 0?0:q,W;if(J[0]!==Q)W=[...Q],J[0]=Q,J[1]=W;else W=J[1];let N;if(J[2]!==V||J[3]!==W)N=Z(n,{children:W.map((G,H)=>Z(Y,{color:CQ(H+V),children:G},H))}),J[2]=V,J[3]=W,J[4]=N;else N=J[4];return N}function MJ(X,J,Q){let q=wJ.useRef(X),V=wJ.useRef(J);if(Q||X<q.current)q.current=X;else if(X>q.current&&J!==V.current)q.current+=1,V.current=J;return q.current}function uX(X){let J=e0.c(15),{session:Q}=X,V=bQ().prefersReducedMotion??!1,W=Q.reviewProgress,N=Q.status==="running",[,G]=AQ(N&&!V?LQ:null),H=W?.bugsFound??0,U=W?.bugsVerified??0,P=W?.bugsRefuted??0,E=V||!N,O=MJ(H,G,E),M=MJ(U,G,E),f=MJ(P,G,E),R=Math.floor(G/(LQ*3))%7;if(Q.status==="completed"){let L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=z(n,{children:[z(Y,{color:"background",children:[M0," "]}),Z(fJ,{text:"ultrareview",phase:0}),Z(Y,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=L;else L=J[0];return L}if(Q.status==="failed"){let L;if(J[1]===Symbol.for("react.memo_cache_sentinel"))L=z(n,{children:[z(Y,{color:"background",children:[M0," "]}),Z(fJ,{text:"ultrareview",phase:0}),z(Y,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=L;else L=J[1];return L}let C;if(J[2]!==O||J[3]!==W||J[4]!==f||J[5]!==M)C=!W?"setting up":AJ(W.stage,O,M,f),J[2]=O,J[3]=W,J[4]=f,J[5]=M,J[6]=C;else C=J[6];let K=C,b;if(J[7]===Symbol.for("react.memo_cache_sentinel"))b=z(Y,{color:"background",children:[L0," "]}),J[7]=b;else b=J[7];let B=N?R:0,I;if(J[8]!==B)I=Z(fJ,{text:"ultrareview",phase:B}),J[8]=B,J[9]=I;else I=J[9];let y;if(J[10]!==K)y=z(Y,{dimColor:!0,children:[" · ",K]}),J[10]=K,J[11]=y;else y=J[11];let _;if(J[12]!==I||J[13]!==y)_=z(n,{children:[b,I,y]}),J[12]=I,J[13]=y,J[14]=_;else _=J[14];return _}function _0(X){let J=e0.c(11),{session:Q}=X;if(Q.isRemoteReview){let G;if(J[0]!==Q)G=Z(uX,{session:Q}),J[0]=Q,J[1]=G;else G=J[1];return G}if(Q.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=Z(Y,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Q.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=Z(Y,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Q.todoList.length){let G;if(J[4]!==Q.status)G=z(Y,{dimColor:!0,children:[Q.status,"…"]}),J[4]=Q.status,J[5]=G;else G=J[5];return G}let q;if(J[6]!==Q.todoList)q=E0(Q.todoList,TX),J[6]=Q.todoList,J[7]=q;else q=J[7];let V=q,W=Q.todoList.length,N;if(J[8]!==V||J[9]!==W)N=z(Y,{dimColor:!0,children:[V,"/",W]}),J[8]=V,J[9]=W,J[10]=N;else N=J[10];return N}function TX(X){return X.status==="completed"}var e0,wJ,LQ=80;var CJ=o(()=>{LJ();dX();Y0();KJ();pX();r();e0=J0(V0(),1),wJ=J0(A0(),1)});function G0(X){let J=bJ.c(4),{status:Q,label:q,suffix:V}=X,W=q??Q,N=Q==="completed"?"success":Q==="failed"?"error":Q==="killed"?"warning":void 0,G;if(J[0]!==N||J[1]!==W||J[2]!==V)G=z(Y,{color:N,dimColor:!0,children:["(",W,V,")"]}),J[0]=N,J[1]=W,J[2]=V,J[3]=G;else G=J[3];return G}function IQ(X){let J=bJ.c(4),{shell:Q}=X;switch(Q.status){case"completed":{let q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=Z(G0,{status:"completed",label:"done"}),J[0]=q;else q=J[0];return q}case"failed":{let q;if(J[1]===Symbol.for("react.memo_cache_sentinel"))q=Z(G0,{status:"failed",label:"error"}),J[1]=q;else q=J[1];return q}case"killed":{let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=Z(G0,{status:"killed",label:"stopped"}),J[2]=q;else q=J[2];return q}case"running":case"pending":{let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=Z(G0,{status:"running"}),J[3]=q;else q=J[3];return q}}}var bJ;var yQ=o(()=>{Y0();r();bJ=J0(V0(),1)});function DQ(X){let J=BQ.c(92),{task:Q,maxActivityWidth:q}=X,V=q??40;switch(Q.type){case"local_bash":{let W=Q.kind==="monitor"?Q.description:Q.command,N;if(J[0]!==V||J[1]!==W)N=N0(W,V,!0),J[0]=V,J[1]=W,J[2]=N;else N=J[2];let G;if(J[3]!==Q)G=Z(IQ,{shell:Q}),J[3]=Q,J[4]=G;else G=J[4];let H;if(J[5]!==N||J[6]!==G)H=z(Y,{children:[N," ",G]}),J[5]=N,J[6]=G,J[7]=H;else H=J[7];return H}case"remote_agent":{if(Q.isRemoteReview){let O;if(J[8]!==Q)O=Z(Y,{children:Z(_0,{session:Q})}),J[8]=Q,J[9]=O;else O=J[9];return O}let N=Q.status==="running"||Q.status==="pending"?L0:M0,G;if(J[10]!==N)G=z(Y,{dimColor:!0,children:[N," "]}),J[10]=N,J[11]=G;else G=J[11];let H;if(J[12]!==V||J[13]!==Q.title)H=N0(Q.title,V,!0),J[12]=V,J[13]=Q.title,J[14]=H;else H=J[14];let U;if(J[15]===Symbol.for("react.memo_cache_sentinel"))U=Z(Y,{dimColor:!0,children:" · "}),J[15]=U;else U=J[15];let P;if(J[16]!==Q)P=Z(_0,{session:Q}),J[16]=Q,J[17]=P;else P=J[17];let E;if(J[18]!==G||J[19]!==H||J[20]!==P)E=z(Y,{children:[G,H,U,P]}),J[18]=G,J[19]=H,J[20]=P,J[21]=E;else E=J[21];return E}case"local_agent":{let W;if(J[22]!==V||J[23]!==Q.description)W=N0(Q.description,V,!0),J[22]=V,J[23]=Q.description,J[24]=W;else W=J[24];let N=Q.status==="completed"?"done":void 0,G=Q.status==="completed"&&!Q.notified?", unread":void 0,H;if(J[25]!==N||J[26]!==G||J[27]!==Q.status)H=Z(G0,{status:Q.status,label:N,suffix:G}),J[25]=N,J[26]=G,J[27]=Q.status,J[28]=H;else H=J[28];let U;if(J[29]!==W||J[30]!==H)U=z(Y,{children:[W," ",H]}),J[29]=W,J[30]=H,J[31]=U;else U=J[31];return U}case"in_process_teammate":{let W,N,G,H,U,P;if(J[32]!==V||J[33]!==Q){let M=r0(Q);N=Y;let f;if(J[40]!==Q.identity.color)f=t0(Q.identity.color),J[40]=Q.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Q.identity.agentName)P=z(Y,{color:f,children:["@",Q.identity.agentName]}),J[42]=f,J[43]=Q.identity.agentName,J[44]=P;else P=J[44];W=Y,G=!0,H=": ",U=N0(M,V,!0),J[32]=V,J[33]=Q,J[34]=W,J[35]=N,J[36]=G,J[37]=H,J[38]=U,J[39]=P}else W=J[34],N=J[35],G=J[36],H=J[37],U=J[38],P=J[39];let E;if(J[45]!==W||J[46]!==G||J[47]!==H||J[48]!==U)E=z(W,{dimColor:G,children:[H,U]}),J[45]=W,J[46]=G,J[47]=H,J[48]=U,J[49]=E;else E=J[49];let O;if(J[50]!==N||J[51]!==P||J[52]!==E)O=z(N,{children:[P,E]}),J[50]=N,J[51]=P,J[52]=E,J[53]=O;else O=J[53];return O}case"local_workflow":{let W=Q.workflowName??Q.summary??Q.description,N;if(J[54]!==V||J[55]!==W)N=N0(W,V,!0),J[54]=V,J[55]=W,J[56]=N;else N=J[56];let G;if(J[57]!==Q.agentCount||J[58]!==Q.status)G=Q.status==="running"?`${Q.agentCount} ${X0(Q.agentCount,"agent")}`:Q.status==="completed"?"done":void 0,J[57]=Q.agentCount,J[58]=Q.status,J[59]=G;else G=J[59];let H=Q.status==="completed"&&!Q.notified?", unread":void 0,U;if(J[60]!==G||J[61]!==H||J[62]!==Q.status)U=Z(G0,{status:Q.status,label:G,suffix:H}),J[60]=G,J[61]=H,J[62]=Q.status,J[63]=U;else U=J[63];let P;if(J[64]!==N||J[65]!==U)P=z(Y,{children:[N," ",U]}),J[64]=N,J[65]=U,J[66]=P;else P=J[66];return P}case"monitor_mcp":{let W;if(J[67]!==V||J[68]!==Q.description)W=N0(Q.description,V,!0),J[67]=V,J[68]=Q.description,J[69]=W;else W=J[69];let N=Q.status==="completed"?"done":void 0,G=Q.status==="completed"&&!Q.notified?", unread":void 0,H;if(J[70]!==N||J[71]!==G||J[72]!==Q.status)H=Z(G0,{status:Q.status,label:N,suffix:G}),J[70]=N,J[71]=G,J[72]=Q.status,J[73]=H;else H=J[73];let U;if(J[74]!==W||J[75]!==H)U=z(Y,{children:[W," ",H]}),J[74]=W,J[75]=H,J[76]=U;else U=J[76];return U}case"dream":{let W=Q.filesTouched.length,N;if(J[77]!==W||J[78]!==Q.phase||J[79]!==Q.sessionsReviewing)N=Q.phase==="updating"&&W>0?`${W} ${X0(W,"file")}`:`${Q.sessionsReviewing} ${X0(Q.sessionsReviewing,"session")}`,J[77]=W,J[78]=Q.phase,J[79]=Q.sessionsReviewing,J[80]=N;else N=J[80];let G=N,H;if(J[81]!==G||J[82]!==Q.phase)H=z(Y,{dimColor:!0,children:["· ",Q.phase," · ",G]}),J[81]=G,J[82]=Q.phase,J[83]=H;else H=J[83];let U=Q.status==="completed"?"done":void 0,P=Q.status==="completed"&&!Q.notified?", unread":void 0,E;if(J[84]!==U||J[85]!==P||J[86]!==Q.status)E=Z(G0,{status:Q.status,label:U,suffix:P}),J[84]=U,J[85]=P,J[86]=Q.status,J[87]=E;else E=J[87];let O;if(J[88]!==H||J[89]!==E||J[90]!==Q.description)O=z(Y,{children:[Q.description," ",H," ",E]}),J[88]=H,J[89]=E,J[90]=Q.description,J[91]=O;else O=J[91];return O}case"container":return Z(Y,{children:N0(B0(Q),V,!0)});case"mcp_server":return Z(Y,{children:N0(B0(Q),V,!0)})}}var BQ;var hQ=o(()=>{Y0();h0();vQ();d0();LJ();CJ();yQ();$0();UJ();r();BQ=J0(V0(),1)});function SQ(X){return lX.test(X)}function kX(X){return["logs","--tail",String(JJ),"--timestamps",X]}function rX(X,J){let Q=[],q=0;for(let V of[X,J]){let W="";for(let N of V.split(`
|
|
3
|
-
`)){if(N==="")continue;let G=xX.exec(N);if(G)W=G[1],Q.push({key:W,seq:q++,line:{time:G[2],text:G[3]}});else Q.push({key:W,seq:q++,line:{time:null,text:N}})}}return Q.sort((V,W)=>V.key===W.key?V.seq-W.seq:V.key<W.key?-1:1),Q.slice(-JJ).map((V)=>V.line)}async function jQ(X,J){let Q=await gQ(kX(X),{timeout:mX,abortSignal:J});if(Q.code!==0)return{kind:"error",message:Q.unavailable?_Q(Q.unavailable):Q.stderr.split(`
|
|
4
|
-
`).find((W)=>W.trim()!=="")??`docker logs exited with code ${Q.code}`};let q=rX(Q.stdout,Q.stderr);return q.length===0?{kind:"empty"}:{kind:"ok",lines:q}}var JJ=50,mX=1e4,xX,lX;var pQ=o(()=>{cX();xX=/^(\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}:\d{2})\.\d+Z) (.*)$/;lX=/^[[(]?(?:\d{4}-\d{2}-\d{2}[T ])?\d{2}:\d{2}:\d{2}/});function uQ({task:X,onDone:J,onBack:Q,onStop:q}){let{columns:V}=C0(),[W,N]=b0.useState(null),G=X.container.id,H=X.container.state==="running";b0.useEffect(()=>{let O=!1,M=new AbortController,f=async()=>{let C=await jQ(G,M.signal);if(!O)N(C)};if(f(),!H)return()=>{O=!0,M.abort()};let R=setInterval(()=>void f(),$X);return()=>{O=!0,M.abort(),clearInterval(R)}},[G,H]);let U=b0.useCallback(()=>J("Container logs dismissed",{display:"system"}),[J]);Z0({"confirm:yes":U},{context:"Confirmation"});let P=(O)=>{if(O.key===" ")O.preventDefault(),U();else if(O.key==="left"&&Q)O.preventDefault(),Q();else if(O.key==="x"&&q)O.preventDefault(),q()},E=(O)=>{if(O.pending)return z(Y,{children:["Press ",O.keyName," again to exit"]});return z(e,{children:[Q&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),q&&Z(D,{shortcut:"x",action:"stop container"})]})};return Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:z(s,{title:`Logs · ${w0(X.container)}`,subtitle:Z(Y,{children:j0(X)}),onCancel:U,color:"background",inputGuide:E,children:[Z(w,{marginX:2,flexDirection:"column",children:z(Y,{children:[Z(Y,{bold:!0,children:"Image:"})," ",X.container.image]})}),Z(iX,{logs:W,columns:V})]})})}function iX({logs:X,columns:J}){if(X===null)return Z(w,{marginX:2,children:Z(Y,{dimColor:!0,children:"Loading logs…"})});if(X.kind==="error")return Z(w,{marginX:2,flexDirection:"column",children:Z(Y,{color:"error",children:X.message})});if(X.kind==="empty")return Z(w,{marginX:2,flexDirection:"column",children:Z(Y,{dimColor:!0,children:"No logs written yet."})});let Q=X.lines.slice(-dQ);return z(w,{marginX:2,flexDirection:"column",children:[Z(w,{borderStyle:"round",paddingX:1,flexDirection:"column",height:dQ+2,maxWidth:J-6,children:Q.map((q,V)=>z(Y,{wrap:"truncate-end",children:[q.time!==null&&q.text!==""&&!SQ(q.text)&&z(Y,{dimColor:!0,children:[q.time," "]}),q.text]},V))}),z(Y,{dimColor:!0,italic:!0,children:["Showing ",Q.length," of the last ",JJ," lines"]})]})}var b0,dQ=14,$X=2000;var TQ=o(()=>{Y0();H0();U0();P0();f0();IJ();p0();pQ();r();b0=J0(A0(),1)});function mQ(X){let J=cQ.c(70),{task:Q,onDone:q,onBack:V,onKill:W}=X,N=O0(Q.startTime,Q.status==="running",1000,0),G;if(J[0]!==q)G={"confirm:yes":q},J[0]=q,J[1]=G;else G=J[1];let H;if(J[2]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[2]=H;else H=J[2];Z0(G,H);let U;if(J[3]!==V||J[4]!==q||J[5]!==W||J[6]!==Q.status)U=(h)=>{if(h.key===" ")h.preventDefault(),q();else if(h.key==="left"&&V)h.preventDefault(),V();else if(h.key==="x"&&Q.status==="running"&&W)h.preventDefault(),W()},J[3]=V,J[4]=q,J[5]=W,J[6]=Q.status,J[7]=U;else U=J[7];let P=U,E,O,M,f,R,C,K,b,B,I,y,_,L,A,d,u;if(J[8]!==N||J[9]!==P||J[10]!==V||J[11]!==q||J[12]!==W||J[13]!==Q.filesTouched.length||J[14]!==Q.sessionsReviewing||J[15]!==Q.status||J[16]!==Q.turns){let h=Q.turns.filter(aX),l=h.slice(-oX),v=h.length-l.length;M=w,K="column",b=0,B=!0,I=P,O=s,d="Memory consolidation";let T=Q.sessionsReviewing,g;if(J[33]!==Q.sessionsReviewing)g=X0(Q.sessionsReviewing,"session"),J[33]=Q.sessionsReviewing,J[34]=g;else g=J[34];let p;if(J[35]!==Q.filesTouched.length)p=Q.filesTouched.length>0&&z(n,{children:[" ","· ",Q.filesTouched.length," ",X0(Q.filesTouched.length,"file")," touched"]}),J[35]=Q.filesTouched.length,J[36]=p;else p=J[36];if(J[37]!==N||J[38]!==g||J[39]!==p||J[40]!==Q.sessionsReviewing)u=z(Y,{dimColor:!0,children:[N," · reviewing ",T," ",g,p]}),J[37]=N,J[38]=g,J[39]=p,J[40]=Q.sessionsReviewing,J[41]=u;else u=J[41];if(f=q,R="background",J[42]!==V||J[43]!==W||J[44]!==Q.status)C=(x)=>x.pending?z(Y,{children:["Press ",x.keyName," again to exit"]}):z(e,{children:[V&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),Q.status==="running"&&W&&Z(D,{shortcut:"x",action:"stop"})]}),J[42]=V,J[43]=W,J[44]=Q.status,J[45]=C;else C=J[45];E=w,y="column",_=1;let S;if(J[46]===Symbol.for("react.memo_cache_sentinel"))S=Z(Y,{bold:!0,children:"Status:"}),J[46]=S;else S=J[46];if(J[47]!==Q.status)L=z(Y,{children:[S," ",Q.status==="running"?Z(Y,{color:"background",children:"running"}):Q.status==="completed"?Z(Y,{color:"success",children:Q.status}):Z(Y,{color:"error",children:Q.status})]}),J[47]=Q.status,J[48]=L;else L=J[48];A=l.length===0?Z(Y,{dimColor:!0,children:Q.status==="running"?"Starting…":"(no text output)"}):z(n,{children:[v>0&&z(Y,{dimColor:!0,children:["(",v," earlier ",X0(v,"turn"),")"]}),l.map(nX)]}),J[8]=N,J[9]=P,J[10]=V,J[11]=q,J[12]=W,J[13]=Q.filesTouched.length,J[14]=Q.sessionsReviewing,J[15]=Q.status,J[16]=Q.turns,J[17]=E,J[18]=O,J[19]=M,J[20]=f,J[21]=R,J[22]=C,J[23]=K,J[24]=b,J[25]=B,J[26]=I,J[27]=y,J[28]=_,J[29]=L,J[30]=A,J[31]=d,J[32]=u}else E=J[17],O=J[18],M=J[19],f=J[20],R=J[21],C=J[22],K=J[23],b=J[24],B=J[25],I=J[26],y=J[27],_=J[28],L=J[29],A=J[30],d=J[31],u=J[32];let m;if(J[49]!==E||J[50]!==y||J[51]!==_||J[52]!==L||J[53]!==A)m=z(E,{flexDirection:y,gap:_,children:[L,A]}),J[49]=E,J[50]=y,J[51]=_,J[52]=L,J[53]=A,J[54]=m;else m=J[54];let c;if(J[55]!==O||J[56]!==f||J[57]!==R||J[58]!==C||J[59]!==m||J[60]!==d||J[61]!==u)c=Z(O,{title:d,subtitle:u,onCancel:f,color:R,inputGuide:C,children:m}),J[55]=O,J[56]=f,J[57]=R,J[58]=C,J[59]=m,J[60]=d,J[61]=u,J[62]=c;else c=J[62];let j;if(J[63]!==M||J[64]!==K||J[65]!==b||J[66]!==B||J[67]!==I||J[68]!==c)j=Z(M,{flexDirection:K,tabIndex:b,autoFocus:B,onKeyDown:I,children:c}),J[63]=M,J[64]=K,J[65]=b,J[66]=B,J[67]=I,J[68]=c,J[69]=j;else j=J[69];return j}function nX(X,J){return z(w,{flexDirection:"column",children:[Z(Y,{wrap:"wrap",children:X.text}),X.toolUseCount>0&&z(Y,{dimColor:!0,children:[" ","(",X.toolUseCount," ",X0(X.toolUseCount,"tool"),")"]})]},J)}function aX(X){return X.text!==""}var cQ,oX=6;var xQ=o(()=>{a0();Y0();f0();d0();H0();U0();P0();r();cQ=J0(V0(),1)});function kQ(X){let J=lQ.c(63),{teammate:Q,onDone:q,onKill:V,onBack:W,onForeground:N}=X,[G]=n0(),H;if(J[0]===Symbol.for("react.memo_cache_sentinel"))H=s0(o0()),J[0]=H;else H=J[0];let U=H,P=O0(Q.startTime,Q.status==="running",1000,Q.totalPausedMs??0),E;if(J[1]!==q)E={"confirm:yes":q},J[1]=q,J[2]=E;else E=J[2];let O;if(J[3]===Symbol.for("react.memo_cache_sentinel"))O={context:"Confirmation"},J[3]=O;else O=J[3];Z0(E,O);let M;if(J[4]!==W||J[5]!==q||J[6]!==N||J[7]!==V||J[8]!==Q.status)M=(k)=>{if(k.key===" ")k.preventDefault(),q();else if(k.key==="left"&&W)k.preventDefault(),W();else if(k.key==="x"&&Q.status==="running"&&V)k.preventDefault(),V();else if(k.key==="f"&&Q.status==="running"&&N)k.preventDefault(),N()},J[4]=W,J[5]=q,J[6]=N,J[7]=V,J[8]=Q.status,J[9]=M;else M=J[9];let f=M,R;if(J[10]!==Q)R=r0(Q),J[10]=Q,J[11]=R;else R=J[11];let C=R,K=Q.result?.totalTokens??Q.progress?.tokenCount,b=Q.result?.totalToolUseCount??Q.progress?.toolUseCount,B;if(J[12]!==Q.prompt)B=I0(Q.prompt,300),J[12]=Q.prompt,J[13]=B;else B=J[13];let I=B,y;if(J[14]!==Q.identity.color)y=t0(Q.identity.color),J[14]=Q.identity.color,J[15]=y;else y=J[15];let _;if(J[16]!==y||J[17]!==Q.identity.agentName)_=z(Y,{color:y,children:["@",Q.identity.agentName]}),J[16]=y,J[17]=Q.identity.agentName,J[18]=_;else _=J[18];let L;if(J[19]!==C)L=C&&z(Y,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=L;else L=J[20];let A;if(J[21]!==_||J[22]!==L)A=z(Y,{children:[_,L]}),J[21]=_,J[22]=L,J[23]=A;else A=J[23];let d=A,u;if(J[24]!==Q.status)u=Q.status!=="running"&&z(Y,{color:Q.status==="completed"?"success":Q.status==="killed"?"warning":"error",children:[Q.status==="completed"?"Completed":Q.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Q.status,J[25]=u;else u=J[25];let m;if(J[26]!==K)m=K!==void 0&&K>0&&z(n,{children:[" · ",i0(K)," tokens"]}),J[26]=K,J[27]=m;else m=J[27];let c;if(J[28]!==b)c=b!==void 0&&b>0&&z(n,{children:[" ","· ",b," ",b===1?"tool":"tools"]}),J[28]=b,J[29]=c;else c=J[29];let j;if(J[30]!==P||J[31]!==m||J[32]!==c)j=z(Y,{dimColor:!0,children:[P,m,c]}),J[30]=P,J[31]=m,J[32]=c,J[33]=j;else j=J[33];let h;if(J[34]!==u||J[35]!==j)h=z(Y,{children:[u,j]}),J[34]=u,J[35]=j,J[36]=h;else h=J[36];let l=h,v;if(J[37]!==W||J[38]!==N||J[39]!==V||J[40]!==Q.status)v=(k)=>k.pending?z(Y,{children:["Press ",k.keyName," again to exit"]}):z(e,{children:[W&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),Q.status==="running"&&V&&Z(D,{shortcut:"x",action:"stop"}),Q.status==="running"&&N&&Z(D,{shortcut:"f",action:"foreground"})]}),J[37]=W,J[38]=N,J[39]=V,J[40]=Q.status,J[41]=v;else v=J[41];let T;if(J[42]!==Q.progress||J[43]!==Q.status||J[44]!==G)T=Q.status==="running"&&Q.progress?.recentActivities&&Q.progress.recentActivities.length>0&&z(w,{flexDirection:"column",children:[Z(Y,{bold:!0,dimColor:!0,children:"Progress"}),Q.progress.recentActivities.map((k,$)=>z(Y,{dimColor:$<Q.progress.recentActivities.length-1,wrap:"truncate-end",children:[$===Q.progress.recentActivities.length-1?"› ":" ",k0(k,U,G)]},$))]}),J[42]=Q.progress,J[43]=Q.status,J[44]=G,J[45]=T;else T=J[45];let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=Z(Y,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=g;else g=J[46];let p;if(J[47]!==I)p=z(w,{flexDirection:"column",marginTop:1,children:[g,Z(Y,{wrap:"wrap",children:I})]}),J[47]=I,J[48]=p;else p=J[48];let S;if(J[49]!==Q.error||J[50]!==Q.status)S=Q.status==="failed"&&Q.error&&z(w,{flexDirection:"column",marginTop:1,children:[Z(Y,{bold:!0,color:"error",children:"Error"}),Z(Y,{color:"error",wrap:"wrap",children:Q.error})]}),J[49]=Q.error,J[50]=Q.status,J[51]=S;else S=J[51];let x;if(J[52]!==q||J[53]!==l||J[54]!==v||J[55]!==T||J[56]!==p||J[57]!==S||J[58]!==d)x=z(s,{title:d,subtitle:l,onCancel:q,color:"background",inputGuide:v,children:[T,p,S]}),J[52]=q,J[53]=l,J[54]=v,J[55]=T,J[56]=p,J[57]=S,J[58]=d,J[59]=x;else x=J[59];let a;if(J[60]!==f||J[61]!==x)a=Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:x}),J[60]=f,J[61]=x,J[62]=a;else a=J[62];return a}var lQ;var rQ=o(()=>{a0();Y0();f0();EJ();RQ();h0();vQ();H0();U0();P0();RJ();$0();r();lQ=J0(V0(),1)});function nQ({task:X,onDone:J,onBack:Q,onDisconnect:q}){let V=y0((P)=>P.mcp.tools),W=QJ.useMemo(()=>{let P=$Q(X.serverName);return V.map((E)=>E.name).filter((E)=>typeof E==="string"&&E.startsWith(P)).map((E)=>iQ(E,X.serverName)).sort()},[V,X.serverName]),N=QJ.useCallback(()=>J("MCP server details dismissed",{display:"system"}),[J]);Z0({"confirm:yes":N},{context:"Confirmation"});let G=(P)=>{if(P.key===" ")P.preventDefault(),N();else if(P.key==="left"&&Q)P.preventDefault(),Q();else if(P.key==="x"&&q)P.preventDefault(),q()},H=(P)=>{if(P.pending)return z(Y,{children:["Press ",P.keyName," again to exit"]});return z(e,{children:[Q&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),q&&Z(D,{shortcut:"x",action:"disconnect"})]})},U=X.connectionType==="failed"&&X.error?X.error.split(`
|
|
5
|
-
`).slice(0,tX):[];return Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:G,children:z(s,{title:`MCP · ${X.serverName}`,subtitle:z(Y,{children:[z(Y,{color:sJ(X),children:[FJ(X)," "]}),PJ(X)]}),onCancel:N,color:"background",inputGuide:H,children:[z(w,{marginX:2,flexDirection:"column",children:[z(Y,{children:[Z(Y,{bold:!0,children:"Transport:"})," ",X.transport," · ",Z(Y,{bold:!0,children:"Scope:"})," ",X.scope]}),X.serverInfo&&z(Y,{children:[Z(Y,{bold:!0,children:"Server:"})," ",X.serverInfo.name," v",X.serverInfo.version]}),X.resourceCount>0&&z(Y,{children:[Z(Y,{bold:!0,children:"Resources:"})," ",X.resourceCount]})]}),U.length>0&&z(w,{marginX:2,marginTop:1,flexDirection:"column",children:[Z(Y,{bold:!0,children:"Error"}),U.map((P,E)=>Z(Y,{color:"error",wrap:"truncate-end",children:P},E))]}),Z(JZ,{names:W})]})})}function JZ({names:X}){if(X.length===0)return Z(w,{marginX:2,marginTop:1,children:Z(Y,{dimColor:!0,children:"This server contributes no tools."})});let J=X.slice(0,eX),Q=X.length-J.length;return z(w,{marginX:2,marginTop:1,flexDirection:"column",children:[z(Y,{bold:!0,children:["Tools (",X.length,")"]}),J.map((q)=>z(Y,{dimColor:!0,wrap:"truncate-end",children:[" ",q]},q)),Q>0&&z(Y,{dimColor:!0,italic:!0,children:[" ","and ",Q," more"]})]})}var QJ,eX=12,tX=6;var aQ=o(()=>{Y0();H0();U0();P0();f0();oQ();HJ();sX();r();QJ=J0(A0(),1)});function WZ(X){let J=BJ.c(15),{stage:Q,completed:q,hasProgress:V}=X,W;if(J[0]!==Q)W=Q?sQ.indexOf(Q):-1,J[0]=Q,J[1]=W;else W=J[1];let N=W,G=!q&&!V,H;if(J[2]!==G)H=G?Z(Y,{color:"background",children:"Setup"}):Z(Y,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=H;else H=J[3];let U;if(J[4]===Symbol.for("react.memo_cache_sentinel"))U=Z(Y,{dimColor:!0,children:" → "}),J[4]=U;else U=J[4];let P;if(J[5]!==q||J[6]!==N||J[7]!==G)P=sQ.map((M,f)=>{let R=!q&&!G&&f===N;return z(R0.default.Fragment,{children:[f>0&&Z(Y,{dimColor:!0,children:" → "}),R?Z(Y,{color:"background",children:eQ[M]}):Z(Y,{dimColor:!0,children:eQ[M]})]},M)}),J[5]=q,J[6]=N,J[7]=G,J[8]=P;else P=J[8];let E;if(J[9]!==q)E=q&&Z(Y,{color:"success",children:" ✓"}),J[9]=q,J[10]=E;else E=J[10];let O;if(J[11]!==H||J[12]!==P||J[13]!==E)O=z(Y,{children:[H,U,P,E]}),J[11]=H,J[12]=P,J[13]=E,J[14]=O;else O=J[14];return O}function VZ(X){let J=X.reviewProgress;if(!J)return X.status==="completed"?"done":"setting up";let Q=J.bugsVerified,q=J.bugsRefuted??0;if(X.status==="completed"){let V=[`${Q} ${X0(Q,"finding")}`];if(q>0)V.push(`${q} refuted`);return V.join(" · ")}return AJ(J.stage,J.bugsFound,Q,q)}function GZ(X){let J=BJ.c(56),{session:Q,onDone:q,onBack:V,onKill:W}=X,N=Q.status==="completed",G=Q.status==="running"||Q.status==="pending",[H,U]=R0.useState(!1),P=O0(Q.startTime,G,1000,0,Q.endTime),E;if(J[0]!==q)E=()=>q("Remote session details dismissed",{display:"system"}),J[0]=q,J[1]=E;else E=J[1];let O=E,M=V??O,f;if(J[2]!==Q.sessionId)f=XJ(Q.sessionId),J[2]=Q.sessionId,J[3]=f;else f=J[3];let R=f,C=N?"ready":G?"running":Q.status;if(H){let x;if(J[4]===Symbol.for("react.memo_cache_sentinel"))x=()=>U(!1),J[4]=x;else x=J[4];let a;if(J[5]===Symbol.for("react.memo_cache_sentinel"))a=Z(Y,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=a;else a=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k={label:"Stop ultrareview",value:"stop"},J[6]=k;else k=J[6];let $;if(J[7]===Symbol.for("react.memo_cache_sentinel"))$=[k,{label:"Back",value:"back"}],J[7]=$;else $=J[7];let F;if(J[8]!==M||J[9]!==W)F=Z(s,{title:"Stop ultrareview?",onCancel:x,color:"background",children:z(w,{flexDirection:"column",gap:1,children:[a,Z(yJ,{options:$,onChange:(Q0)=>{if(Q0==="stop")W?.(),M();else U(!1)}})]})}),J[8]=M,J[9]=W,J[10]=F;else F=J[10];return F}let K;if(J[11]!==N||J[12]!==W||J[13]!==G)K=N?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...W&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=N,J[12]=W,J[13]=G,J[14]=K;else K=J[14];let b=K,B;if(J[15]!==M||J[16]!==O||J[17]!==q||J[18]!==R)B=(x)=>{J:switch(x){case"open":{JX(R),q();break J}case"stop":{U(!0);break J}case"back":{M();break J}case"dismiss":O()}},J[15]=M,J[16]=O,J[17]=q,J[18]=R,J[19]=B;else B=J[19];let I=B,y=N?M0:L0,_;if(J[20]!==y)_=z(Y,{color:"background",children:[y," "]}),J[20]=y,J[21]=_;else _=J[21];let L;if(J[22]===Symbol.for("react.memo_cache_sentinel"))L=Z(Y,{bold:!0,children:"ultrareview"}),J[22]=L;else L=J[22];let A;if(J[23]!==P||J[24]!==C)A=z(Y,{dimColor:!0,children:[" · ",P," · ",C]}),J[23]=P,J[24]=C,J[25]=A;else A=J[25];let d;if(J[26]!==_||J[27]!==A)d=z(Y,{children:[_,L,A]}),J[26]=_,J[27]=A,J[28]=d;else d=J[28];let u=Q.reviewProgress?.stage,m=!!Q.reviewProgress,c;if(J[29]!==N||J[30]!==u||J[31]!==m)c=Z(WZ,{stage:u,completed:N,hasProgress:m}),J[29]=N,J[30]=u,J[31]=m,J[32]=c;else c=J[32];let j;if(J[33]!==Q)j=VZ(Q),J[33]=Q,J[34]=j;else j=J[34];let h;if(J[35]!==j)h=Z(Y,{children:j}),J[35]=j,J[36]=h;else h=J[36];let l;if(J[37]!==R)l=Z(Y,{dimColor:!0,children:R}),J[37]=R,J[38]=l;else l=J[38];let v;if(J[39]!==R||J[40]!==l)v=Z(vJ,{url:R,children:l}),J[39]=R,J[40]=l,J[41]=v;else v=J[41];let T;if(J[42]!==h||J[43]!==v)T=z(w,{flexDirection:"column",children:[h,v]}),J[42]=h,J[43]=v,J[44]=T;else T=J[44];let g;if(J[45]!==I||J[46]!==b)g=Z(yJ,{options:b,onChange:I}),J[45]=I,J[46]=b,J[47]=g;else g=J[47];let p;if(J[48]!==c||J[49]!==T||J[50]!==g)p=z(w,{flexDirection:"column",gap:1,children:[c,T,g]}),J[48]=c,J[49]=T,J[50]=g,J[51]=p;else p=J[51];let S;if(J[52]!==M||J[53]!==p||J[54]!==d)S=Z(s,{title:d,onCancel:M,color:"background",inputGuide:NZ,children:p}),J[52]=M,J[53]=p,J[54]=d,J[55]=S;else S=J[55];return S}function NZ(X){return X.pending?z(Y,{children:["Press ",X.keyName," again to exit"]}):z(e,{children:[Z(D,{shortcut:"Enter",action:"select"}),Z(D,{shortcut:"Esc",action:"go back"})]})}function YX({session:X,toolUseContext:J,onDone:Q,onBack:q,onKill:V}){let[W,N]=R0.useState(!1),[G,H]=R0.useState(null),U=R0.useMemo(()=>{if(X.isRemoteReview)return[];return zX(ZX(X.log)).filter((R)=>R.type!=="progress").slice(-3)},[X]);if(X.isRemoteReview)return Z(GZ,{session:X,onDone:Q,onBack:q,onKill:V});let P=()=>Q("Remote session details dismissed",{display:"system"}),E=(R)=>{if(R.key===" ")R.preventDefault(),Q("Remote session details dismissed",{display:"system"});else if(R.key==="left"&&q)R.preventDefault(),q();else if(R.key==="t"&&!W)R.preventDefault(),O();else if(R.key==="return")R.preventDefault(),P()};async function O(){N(!0),H(null);try{await XX(X.sessionId)}catch(R){H(tQ(R))}finally{N(!1)}}let M=I0(X.title,50),f=X.status==="pending"?"starting":X.status;return Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:E,children:z(s,{title:"Remote session details",onCancel:P,color:"background",inputGuide:(R)=>R.pending?z(Y,{children:["Press ",R.keyName," again to exit"]}):z(e,{children:[q&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),!W&&Z(D,{shortcut:"t",action:"teleport"})]}),children:[z(w,{flexDirection:"column",children:[z(Y,{children:[Z(Y,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?Z(Y,{color:"background",children:f}):f==="completed"?Z(Y,{color:"success",children:f}):Z(Y,{color:"error",children:f})]}),z(Y,{children:[Z(Y,{bold:!0,children:"Runtime"}),":"," ",ZJ((X.endTime??Date.now())-X.startTime)]}),z(Y,{wrap:"truncate-end",children:[Z(Y,{bold:!0,children:"Title"}),": ",M]}),z(Y,{children:[Z(Y,{bold:!0,children:"Progress"}),":"," ",Z(_0,{session:X})]}),z(Y,{children:[Z(Y,{bold:!0,children:"Session URL"}),":"," ",Z(vJ,{url:XJ(X.sessionId),children:Z(Y,{dimColor:!0,children:XJ(X.sessionId)})})]})]}),X.log.length>0&&z(w,{flexDirection:"column",marginTop:1,children:[z(Y,{children:[Z(Y,{bold:!0,children:"Recent messages"}),":"]}),Z(w,{flexDirection:"column",height:10,overflowY:"hidden",children:U.map((R,C)=>Z(QX,{message:R,lookups:WX,addMargin:C>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},C))}),Z(w,{marginTop:1,children:z(Y,{dimColor:!0,italic:!0,children:["Showing last ",U.length," of ",X.log.length," ","messages"]})})]}),G&&Z(w,{marginTop:1,children:z(Y,{color:"error",children:["Teleport failed: ",G]})}),W&&Z(Y,{color:"background",children:"Teleporting to session…"})]})})}var BJ,R0,sQ,eQ;var qX=o(()=>{LJ();a0();Y0();OJ();XZ();QZ();h0();zZ();KQ();d0();qZ();YZ();H0();U0();P0();ZZ();CJ();r();BJ=J0(V0(),1),R0=J0(A0(),1),sQ=["finding","verifying","synthesizing"],eQ={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function FX(X){let J=NX(X.id);try{let Q=await VX(J,HZ);return{content:Q.content,bytesTotal:Q.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function PX(X){let J=DJ.c(57),{shell:Q,onDone:q,onKillShell:V,onBack:W}=X,{columns:N}=C0(),G;if(J[0]!==Q)G=()=>FX(Q),J[0]=Q,J[1]=G;else G=J[1];let[H,U]=q0.useState(G),P=q0.useDeferredValue(H),E;if(J[2]!==Q)E=()=>{if(Q.status!=="running")return;let $=setInterval(UZ,1000,U,Q);return()=>clearInterval($)},J[2]=Q,J[3]=E;else E=J[3];let O;if(J[4]!==Q.id||J[5]!==Q.status)O=[Q.id,Q.status],J[4]=Q.id,J[5]=Q.status,J[6]=O;else O=J[6];q0.useEffect(E,O);let M;if(J[7]!==q)M=()=>q("Shell details dismissed",{display:"system"}),J[7]=q,J[8]=M;else M=J[8];let f=M,R;if(J[9]!==f)R={"confirm:yes":f},J[9]=f,J[10]=R;else R=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];Z0(R,C);let K;if(J[12]!==W||J[13]!==q||J[14]!==V||J[15]!==Q.status)K=($)=>{if($.key===" ")$.preventDefault(),q("Shell details dismissed",{display:"system"});else if($.key==="left"&&W)$.preventDefault(),W();else if($.key==="x"&&Q.status==="running"&&V)$.preventDefault(),V()},J[12]=W,J[13]=q,J[14]=V,J[15]=Q.status,J[16]=K;else K=J[16];let b=K,B=Q.kind==="monitor",I;if(J[17]!==Q.command)I=I0(Q.command,280),J[17]=Q.command,J[18]=I;else I=J[18];let y=I,_=B?"Monitor details":"Shell details",L;if(J[19]!==W||J[20]!==V||J[21]!==Q.status)L=($)=>$.pending?z(Y,{children:["Press ",$.keyName," again to exit"]}):z(e,{children:[W&&Z(D,{shortcut:"←",action:"go back"}),Z(D,{shortcut:"Esc/Enter/Space",action:"close"}),Q.status==="running"&&V&&Z(D,{shortcut:"x",action:"stop"})]}),J[19]=W,J[20]=V,J[21]=Q.status,J[22]=L;else L=J[22];let A;if(J[23]===Symbol.for("react.memo_cache_sentinel"))A=Z(Y,{bold:!0,children:"Status:"}),J[23]=A;else A=J[23];let d;if(J[24]!==Q.result||J[25]!==Q.status)d=z(Y,{children:[A," ",Q.status==="running"?z(Y,{color:"background",children:[Q.status,Q.result?.code!==void 0&&` (exit code: ${Q.result.code})`]}):Q.status==="completed"?z(Y,{color:"success",children:[Q.status,Q.result?.code!==void 0&&` (exit code: ${Q.result.code})`]}):z(Y,{color:"error",children:[Q.status,Q.result?.code!==void 0&&` (exit code: ${Q.result.code})`]})]}),J[24]=Q.result,J[25]=Q.status,J[26]=d;else d=J[26];let u;if(J[27]===Symbol.for("react.memo_cache_sentinel"))u=Z(Y,{bold:!0,children:"Runtime:"}),J[27]=u;else u=J[27];let m;if(J[28]!==Q.endTime)m=Q.endTime??Date.now(),J[28]=Q.endTime,J[29]=m;else m=J[29];let c=m-Q.startTime,j;if(J[30]!==c)j=ZJ(c),J[30]=c,J[31]=j;else j=J[31];let h;if(J[32]!==j)h=z(Y,{children:[u," ",j]}),J[32]=j,J[33]=h;else h=J[33];let l=B?"Script:":"Command:",v;if(J[34]!==l)v=Z(Y,{bold:!0,children:l}),J[34]=l,J[35]=v;else v=J[35];let T;if(J[36]!==y||J[37]!==v)T=z(Y,{wrap:"wrap",children:[v," ",y]}),J[36]=y,J[37]=v,J[38]=T;else T=J[38];let g;if(J[39]!==d||J[40]!==h||J[41]!==T)g=z(w,{flexDirection:"column",children:[d,h,T]}),J[39]=d,J[40]=h,J[41]=T,J[42]=g;else g=J[42];let p;if(J[43]===Symbol.for("react.memo_cache_sentinel"))p=Z(Y,{bold:!0,children:"Output:"}),J[43]=p;else p=J[43];let S;if(J[44]===Symbol.for("react.memo_cache_sentinel"))S=Z(Y,{dimColor:!0,children:"Loading output…"}),J[44]=S;else S=J[44];let x;if(J[45]!==N||J[46]!==P)x=z(w,{flexDirection:"column",children:[p,Z(q0.Suspense,{fallback:S,children:Z(OZ,{outputPromise:P,columns:N})})]}),J[45]=N,J[46]=P,J[47]=x;else x=J[47];let a;if(J[48]!==f||J[49]!==L||J[50]!==g||J[51]!==x||J[52]!==_)a=z(s,{title:_,onCancel:f,color:"background",inputGuide:L,children:[g,x]}),J[48]=f,J[49]=L,J[50]=g,J[51]=x,J[52]=_,J[53]=a;else a=J[53];let k;if(J[54]!==b||J[55]!==a)k=Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:b,children:a}),J[54]=b,J[55]=a,J[56]=k;else k=J[56];return k}function UZ(X,J){return X(FX(J))}function OZ(X){let J=DJ.c(19),{outputPromise:Q,columns:q}=X,{content:V,bytesTotal:W}=q0.use(Q);if(!V){let R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=Z(Y,{dimColor:!0,children:"No output available"}),J[0]=R;else R=J[0];return R}let N,G;if(J[1]!==W||J[2]!==V){let R=[],C=V.length;for(let K=0;K<10&&C>0;K++){let b=V.lastIndexOf(`
|
|
6
|
-
`,C-1);R.push(b+1),C=b}R.reverse(),N=W>V.length,G=[];for(let K=0;K<R.length;K++){let b=R[K],B=K<R.length-1?R[K+1]-1:V.length,I=V.slice(b,B);if(I)G.push(I)}J[1]=W,J[2]=V,J[3]=N,J[4]=G}else N=J[3],G=J[4];let H=q-6,U;if(J[5]!==G)U=G.map(EZ),J[5]=G,J[6]=U;else U=J[6];let P;if(J[7]!==H||J[8]!==U)P=Z(w,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:H,children:U}),J[7]=H,J[8]=U,J[9]=P;else P=J[9];let E=`Showing ${G.length} lines`,O;if(J[10]!==W||J[11]!==N)O=N?` of ${GX(W)}`:"",J[10]=W,J[11]=N,J[12]=O;else O=J[12];let M;if(J[13]!==E||J[14]!==O)M=z(Y,{dimColor:!0,italic:!0,children:[E,O]}),J[13]=E,J[14]=O,J[15]=M;else M=J[15];let f;if(J[16]!==P||J[17]!==M)f=z(n,{children:[P,M]}),J[16]=P,J[17]=M,J[18]=f;else f=J[18];return f}function EZ(X,J){return Z(Y,{wrap:"truncate-end",children:X},J)}var DJ,q0,HZ=8192;var HX=o(()=>{IJ();Y0();f0();h0();FZ();PZ();H0();U0();P0();r();DJ=J0(V0(),1),q0=J0(A0(),1)});var UX={};RZ(UX,{default:()=>MZ});var fZ=()=>null,MZ;var OX=o(()=>{MZ=fZ});function yZ(X,J){return Object.values(X??{}).filter(K0).filter((q)=>!(q.type==="local_agent"&&q.id===J))}function zW({onDone:X,toolUseContext:J,initialDetailTaskId:Q}){let q=y0((F)=>F.tasks),V=y0((F)=>F.foregroundedTaskId),W=y0((F)=>F.expandedView)==="teammates",N=CX(),G=LX("chat:killAgents","Chat","ctrl+x ctrl+k"),H=q,U=F0.useRef(!1),[P,E]=F0.useState(()=>{if(Q)return U.current=!0,{mode:"detail",itemId:Q};let F=yZ(H,V);if(F.length===1)return U.current=!0,{mode:"detail",itemId:F[0].id};return{mode:"list"}}),[O,M]=F0.useState(0);AX("background-tasks-dialog");let{bashTasks:f,remoteSessions:R,agentTasks:C,teammateTasks:K,workflowTasks:b,mcpMonitors:B,containerTasks:I,mcpServerTasks:y,dreamTasks:_,allSelectableItems:L}=F0.useMemo(()=>{let W0=Object.values(H??{}).filter(K0).map(vZ).sort((i,qJ)=>{let xJ=i.status,lJ=qJ.status;if(xJ==="running"&&lJ!=="running")return-1;if(xJ!=="running"&&lJ==="running")return 1;let bX="task"in i?i.task.startTime:0;return("task"in qJ?qJ.task.startTime:0)-bX}),gJ=W0.filter((i)=>i.type==="local_bash"),SJ=W0.filter((i)=>i.type==="remote_agent"),jJ=W0.filter((i)=>i.type==="local_agent"&&i.id!==V),pJ=W0.filter((i)=>i.type==="local_workflow"),dJ=W0.filter((i)=>i.type==="monitor_mcp"),uJ=W0.filter((i)=>i.type==="container"),TJ=W0.filter((i)=>i.type==="mcp_server"),cJ=W0.filter((i)=>i.type==="dream"),YJ=W?[]:W0.filter((i)=>i.type==="in_process_teammate"),mJ=YJ.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:gJ,remoteSessions:SJ,agentTasks:jJ,workflowTasks:pJ,mcpMonitors:dJ,containerTasks:uJ,mcpServerTasks:TJ,dreamTasks:cJ,teammateTasks:[...mJ,...YJ],allSelectableItems:[...mJ,...YJ,...gJ,...dJ,...uJ,...TJ,...SJ,...jJ,...pJ,...cJ]}},[H,V,W]),A=L[O]??null;Z0({"confirm:previous":()=>M((F)=>Math.max(0,F-1)),"confirm:next":()=>M((F)=>Math.min(L.length-1,F+1)),"confirm:yes":()=>{let F=L[O];if(F)if(F.type==="leader")VJ(N),X("Viewing leader",{display:"system"});else E({mode:"detail",itemId:F.id})}},{context:"Confirmation",isActive:P.mode==="list"});let d=(F)=>{if(P.mode!=="list")return;if(F.key==="left"){F.preventDefault(),X("Background tasks dialog dismissed",{display:"system"});return}let Q0=L[O];if(!Q0)return;if(F.key==="x"){if(F.preventDefault(),Q0.type!=="leader")l0(Q0.task,N)}if(F.key==="f"){if(Q0.type==="in_process_teammate"&&Q0.status==="running")F.preventDefault(),WJ(Q0.id,N),X("Viewing teammate",{display:"system"});else if(Q0.type==="leader")F.preventDefault(),VJ(N),X("Viewing leader",{display:"system"})}};async function u(F){await x0.kill(F,N)}async function m(F){await u0.kill(F,N)}async function c(F){await T0.kill(F,N)}async function j(F){await m0.kill(F,N)}async function h(F){await c0.kill(F,N)}let l=KX(X);F0.useEffect(()=>{if(P.mode!=="list"){let Q0=(H??{})[P.itemId];if(!Q0||Q0.type!=="local_workflow"&&!K0(Q0))if(U.current)l("Background tasks dialog dismissed",{display:"system"});else E({mode:"list"})}let F=L.length;if(O>=F&&F>0)M(F-1)},[P,H,O,L,l]);let v=()=>{if(U.current&&L.length<=1)X("Background tasks dialog dismissed",{display:"system"});else U.current=!1,E({mode:"list"})};if(P.mode!=="list"&&H){let F=H[P.itemId];if(!F)return null;switch(F.type){case"local_bash":return Z(PX,{shell:F,onDone:X,onKillShell:()=>void u(F.id),onBack:v},`shell-${F.id}`);case"local_agent":return Z(MQ,{agent:F,onDone:X,onKillAgent:()=>void m(F.id),onBack:v},`agent-${F.id}`);case"remote_agent":return Z(YX,{session:F,onDone:X,toolUseContext:J,onBack:v,onKill:F.status!=="running"?void 0:()=>void h(F.id)},`session-${F.id}`);case"in_process_teammate":return Z(kQ,{teammate:F,onDone:X,onKill:F.status==="running"?()=>void c(F.id):void 0,onBack:v,onForeground:F.status==="running"?()=>{WJ(F.id,N),X("Viewing teammate",{display:"system"})}:void 0},`teammate-${F.id}`);case"monitor_mcp":if(!RX)return null;return Z(RX,{task:F,onKill:F.status==="running"&&EX?()=>EX(F.id,N):void 0,onBack:v},`monitor-mcp-${F.id}`);case"dream":return Z(mQ,{task:F,onDone:()=>X("Background tasks dialog dismissed",{display:"system"}),onBack:v,onKill:F.status==="running"?()=>void j(F.id):void 0},`dream-${F.id}`);case"container":return Z(uQ,{task:F,onDone:X,onBack:v,onStop:D0(F)?()=>l0(F,N):void 0},`container-${F.id}`);case"mcp_server":return Z(nQ,{task:F,onDone:X,onBack:v,onDisconnect:v0(F)?()=>l0(F,N):void 0},`mcp-${F.id}`)}}let T=E0(f,(F)=>F.status==="running"),g=E0(R,(F)=>F.status==="running"||F.status==="pending")+E0(C,(F)=>F.status==="running"),p=E0(K,(F)=>F.status==="running"),S=MX([...p>0?[z(Y,{children:[p," ",p!==1?"agents":"agent"]},"teammates")]:[],...T>0?[z(Y,{children:[T," ",T!==1?"active shells":"active shell"]},"shells")]:[],...g>0?[z(Y,{children:[g," ",g!==1?"active agents":"active agent"]},"agents")]:[]],(F)=>Z(Y,{children:" · "},`separator-${F}`)),x=A!==null&&A.type!=="leader"&&(A.type==="container"?D0(A.task):A.type==="mcp_server"?v0(A.task):A.status==="running"),a=[Z(D,{shortcut:"↑/↓",action:"select"},"upDown"),...A?[Z(D,{shortcut:"Enter",action:A.type==="container"?"logs":"view"},"enter")]:[],...A?.type==="in_process_teammate"&&A.status==="running"?[Z(D,{shortcut:"f",action:"foreground"},"foreground")]:[],...x?[Z(D,{shortcut:"x",action:A?.type==="container"?"stop container":A?.type==="mcp_server"?"disconnect":"stop"},"kill")]:[],...C.some((F)=>F.status==="running")?[Z(D,{shortcut:G,action:"stop all agents"},"kill-all")]:[],Z(D,{shortcut:"←/Esc",action:"close"},"esc")],k=()=>X("Background tasks dialog dismissed",{display:"system"});function $(F){if(F.pending)return z(Y,{children:["Press ",F.keyName," again to exit"]});return Z(e,{children:a})}return Z(w,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:d,children:Z(s,{title:"Background tasks",subtitle:Z(n,{children:S}),onCancel:k,color:"background",inputGuide:$,children:L.length===0?Z(Y,{dimColor:!0,children:"No tasks currently running"}):z(w,{flexDirection:"column",children:[K.length>0&&z(w,{flexDirection:"column",children:[(f.length>0||R.length>0||C.length>0)&&z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Agents"]})," (",E0(K,(F)=>F.type!=="leader"),")"]}),Z(w,{flexDirection:"column",children:Z(BZ,{teammateTasks:K,currentSelectionId:A?.id})})]}),f.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0?1:0,children:[(K.length>0||R.length>0||C.length>0)&&z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),Z(w,{flexDirection:"column",children:f.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),B.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0?1:0,children:[z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Monitors"]})," (",B.length,")"]}),Z(w,{flexDirection:"column",children:B.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),I.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0||B.length>0?1:0,children:[z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Containers"]})," (",I.length,")"]}),Z(w,{flexDirection:"column",children:I.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),y.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0||B.length>0||I.length>0?1:0,children:[z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","MCP"]})," (",y.length,")"]}),Z(w,{flexDirection:"column",children:y.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),R.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0||B.length>0||I.length>0||y.length>0?1:0,children:[z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Remote agents"]})," (",R.length,")"]}),Z(w,{flexDirection:"column",children:R.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),C.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0||B.length>0||I.length>0||y.length>0||R.length>0?1:0,children:[z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),Z(w,{flexDirection:"column",children:C.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),b.length>0&&z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0||B.length>0||I.length>0||y.length>0||R.length>0||C.length>0?1:0,children:[z(Y,{dimColor:!0,children:[z(Y,{bold:!0,children:[" ","Workflows"]})," (",b.length,")"]}),Z(w,{flexDirection:"column",children:b.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})]}),_.length>0&&Z(w,{flexDirection:"column",marginTop:K.length>0||f.length>0||B.length>0||I.length>0||y.length>0||R.length>0||C.length>0||b.length>0?1:0,children:Z(w,{flexDirection:"column",children:_.map((F)=>Z(z0,{item:F,isSelected:F.id===A?.id},F.id))})})]})})})}function vZ(X){let J=B0(X);switch(X.type){case"local_bash":return{id:X.id,type:"local_bash",label:J,status:X.status,task:X};case"remote_agent":return{id:X.id,type:"remote_agent",label:J,status:X.status,task:X};case"local_agent":return{id:X.id,type:"local_agent",label:J,status:X.status,task:X};case"in_process_teammate":return{id:X.id,type:"in_process_teammate",label:J,status:X.status,task:X};case"local_workflow":return{id:X.id,type:"local_workflow",label:J,status:X.status,task:X};case"monitor_mcp":return{id:X.id,type:"monitor_mcp",label:J,status:X.status,task:X};case"dream":return{id:X.id,type:"dream",label:J,status:X.status,task:X};case"container":return{id:X.id,type:"container",label:J,status:X.status,task:X};case"mcp_server":return{id:X.id,type:"mcp_server",label:J,status:X.status,task:X};default:throw Error(`toListItem: unhandled task type ${String(X.type)}`)}}function z0(X){let J=_J.c(14),{item:Q,isSelected:q}=X,{columns:V}=C0(),W=Math.max(30,V-26),N;if(J[0]===Symbol.for("react.memo_cache_sentinel"))N=wX(),J[0]=N;else N=J[0];let G=N,H=G&&q,U=q?t.pointer+" ":" ",P;if(J[1]!==H||J[2]!==U)P=Z(Y,{dimColor:H,children:U}),J[1]=H,J[2]=U,J[3]=P;else P=J[3];let E=q&&!G?"suggestion":void 0,O;if(J[4]!==Q.task||J[5]!==Q.type||J[6]!==W)O=Q.type==="leader"?z(Y,{children:["@",hJ]}):Z(DQ,{task:Q.task,maxActivityWidth:W}),J[4]=Q.task,J[5]=Q.type,J[6]=W,J[7]=O;else O=J[7];let M;if(J[8]!==E||J[9]!==O)M=Z(Y,{color:E,children:O}),J[8]=E,J[9]=O,J[10]=M;else M=J[10];let f;if(J[11]!==P||J[12]!==M)f=z(w,{flexDirection:"row",children:[P,M]}),J[11]=P,J[12]=M,J[13]=f;else f=J[13];return f}function BZ(X){let J=_J.c(3),{teammateTasks:Q,currentSelectionId:q}=X,V;if(J[0]!==q||J[1]!==Q){let W=Q.filter(hZ),N=Q.filter(DZ),G=new Map;for(let U of N){let P=U.task.identity.teamName,E=G.get(P);if(E)E.push(U);else G.set(P,[U])}let H=[...G.entries()];V=Z(n,{children:H.map((U)=>{let[P,E]=U,O=E.length+W.length;return z(w,{flexDirection:"column",children:[z(Y,{dimColor:!0,children:[" ","Team: ",P," (",O,")"]}),W.map((M)=>Z(z0,{item:M,isSelected:M.id===q},`${M.id}-${P}`)),E.map((M)=>Z(z0,{item:M,isSelected:M.id===q},M.id))]},P)})}),J[0]=q,J[1]=Q,J[2]=V}else V=J[2];return V}function DZ(X){return X.type==="in_process_teammate"}function hZ(X){return X.type==="leader"}var _J,F0,IZ,EX,RX;var _Z=o(()=>{NJ();wZ();LZ();IJ();oQ();rJ();WQ();zQ();ZQ();VQ();OJ();tJ();S0();PQ();UJ();GQ();KJ();KZ();bZ();Y0();f0();AZ();KJ();H0();U0();P0();wQ();hQ();TQ();xQ();rQ();aQ();qX();HX();r();_J=J0(V0(),1),F0=J0(A0(),1),IZ=(qQ(),fX(CZ)),EX=IZ?.killMonitorMcp??null,RX=(OX(),fX(UX)).MonitorMcpDetailDialog});
|
|
7
|
-
export{WJ as $d,VJ as ae,jZ as be,rJ as ce,dZ as de,GJ as ee,S0 as fe,FJ as ge,sJ as he,PJ as ie,HJ as je,B0 as ke,UJ as le,JQ as me,QQ as ne,l0 as oe,GQ as pe,OY as qe,EY as re,$0 as se,zW as te,_Z as ue};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lja as B,mja as H,tja as V}from"./cli-1.1.36-0qtyffhw.mjs";import{Rpa as Q}from"./cli-1.1.36-c4pkjm54.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
|
|
2
|
-
export{$ as vi,Y as wi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{M9 as A,_da as L,ufa as B,zfa as N}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as z,Dia as K}from"./cli-1.1.36-jpcwwd65.mjs";import{Qpa as I,Rpa as J}from"./cli-1.1.36-c4pkjm54.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
|
|
2
|
-
export{P as $5,Q as a6,R as b6,H as c6,U as d6,V as e6,W as f6};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{_0 as $J,a1 as TJ}from"./cli-1.1.36-7tprmtpr.mjs";import{F9 as QJ,H9 as jJ,K9 as w,V_ as K,W_ as f,_da as E,b_ as YJ,bda as ZJ,c_ as xJ,oda as NJ,t9 as U,ufa as q,v9 as P,zfa as m}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as W,Dia as wJ,dia as k,eia as L,iia as b,mia as y,qia as D}from"./cli-1.1.36-jpcwwd65.mjs";import{$ia as M,Kia as JJ,aja as B,dja as g,fja as N}from"./cli-1.1.36-6g1w2zbr.mjs";import{ija as O,tja as I}from"./cli-1.1.36-0qtyffhw.mjs";import{Rpa as x}from"./cli-1.1.36-c4pkjm54.mjs";import{access as u,chmod as vJ,writeFile as BJ}from"fs/promises";import{homedir as d}from"os";import{join as v}from"path";function T(){return v(O(),"local")}function GJ(J=d()){return v(J,".claude","local")}function h(J){let Q=J?.homeDir??d(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),GJ(Q)]))}function p(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function RJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function A(){return v(T(),"claudin")}function iJ(){return RJ(U())}async function F(J,Q,Y){try{return await BJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function _J(){try{let J=T();await y().mkdir(J),await F(v(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=A();if(await F(Q,`#!/bin/sh
|
|
2
|
-
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function eJ(J,Q){try{if(!await _J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:T(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function rJ(){for(let J of h())for(let Q of p(J))try{return await u(Q),!0}catch{}return!1}async function JQ(){for(let J of h())for(let Q of p(J))try{return await u(Q),J}catch{}return null}function QQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var c=x(()=>{P();E();I();N();f();D();m();b()});import{open as OJ,readFile as MJ,stat as yJ}from"fs/promises";import{homedir as n}from"os";import{join as V}from"path";function C(J){let Q=J?.homedir??n(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:V(Z,".zshrc"),bash:V(Q,".bashrc"),fish:V(Q,".config/fish/config.fish")}}function s(J){let Q=!1;return{filtered:J.filter((Z)=>{if(t.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===A())return Q=!0,!1}}return!0}),hadAlias:Q}}async function S(J){try{return(await MJ(J,{encoding:"utf8"})).split(`
|
|
3
|
-
`)}catch(Q){if(g(Q))return null;throw Q}}async function l(J,Q){let Y=await OJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
-
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=C(J);for(let Y of Object.values(Q)){let Z=await S(Y);if(!Z)continue;for(let $ of Z)if(t.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function XQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??n(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var t;var a=x(()=>{N();c();t=/^\s*alias\s+claude\s*=/});import{constants as qJ}from"fs";import{access as KJ,readFile as AJ,stat as VJ,writeFile as o}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function CJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function WJ(){return CJ()?"bun":"npm"}function XJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function FJ(){let J=await K("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function i(J){try{let Q=await AJ(H(J,"package.json"),"utf8"),Y=L(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function e(J){return J==="bun"?Promise.resolve(XJ()):FJ()}async function IJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await e(Z);if(!$)return;let X=await i($);if(!X)return;let R=await e(J),_=R?await i(R):null;if(_&&X===_)return;W(`update: repairing stale ${Z} install ${X} at ${$}`);let j=await K(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(j.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${j.stdout} ${j.stderr}`));return}if(Z==="bun")await zJ();Y?.(`Repaired old version ${X} at ${$}`)}async function kJ(J,Q){let Y=await K("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!LJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await K("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function zJ(){let J=XJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await KJ(Q,qJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await VJ(Y)).size>SJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await kJ(Q,J))return!1;return W("update: repaired Bun global launcher via install.cjs"),!0}async function SQ(){}async function LQ(){return}async function FQ(){return}function IQ(J){let Y=ZJ()?.minimumVersion;if(!Y)return!1;let Z=!$J(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function HJ(){return H(O(),".update.lock")}async function bJ(){let J=y(),Q=HJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<r)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<r)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await o(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await o(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function DJ(){let J=y(),Q=HJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function PJ(){let J=WJ()==="bun",Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:z()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function fJ(){try{let J=await PJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await KJ(J,qJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function kQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function bQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=L(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function DQ(J){return null}async function PQ(){return{latest:null,stable:null}}async function fQ(J,Q){if(!await bJ())return q(new G("Another process is currently installing an update")),"in_progress";try{await EJ();let Y=WJ();if(Y==="npm"&&QJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),console.error(`
|
|
5
|
-
Error: Windows NPM detected in WSL
|
|
6
|
-
|
|
7
|
-
You're running Claudin in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
-
This configuration is not supported for updates.
|
|
9
|
-
|
|
10
|
-
To fix this issue:
|
|
11
|
-
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
-
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
-
3. Try updating again with 'claudin update'
|
|
14
|
-
`),"install_failed";let{hasPermissions:Z}=await fJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await K(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await zJ(),await IJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await DJ()}}async function EJ(){let J=C();for(let[,Q]of Object.entries(J))try{let Y=await S(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=s(Y);if($)await l(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,SJ=4096,LJ,r=300000;var mJ=x(()=>{P();E();wJ();jJ();I();N();f();D();m();xJ();TJ();NJ();a();b();G=class G extends JJ{};LJ=/ENOENT/i});
|
|
15
|
-
export{iJ as MS,eJ as NS,rJ as OS,JQ as PS,QQ as QS,c as RS,C as SS,s as TS,S as US,l as VS,UJ as WS,XQ as XS,a as YS,XJ as ZS,zJ as _S,SQ as $S,LQ as aT,FQ as bT,IQ as cT,HJ as dT,fJ as eT,kQ as fT,bQ as gT,DQ as hT,PQ as iT,fQ as jT,mJ as kT};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{F5 as D}from"./cli-1.1.36-b0rge62y.mjs";import{$7 as H,r8 as RG}from"./cli-1.1.36-rqhp2xt1.mjs";import{y8 as XG}from"./cli-1.1.36-xs4p38vb.mjs";import{Aia as W,Dia as a,mia as L,qia as JG}from"./cli-1.1.36-jpcwwd65.mjs";import{kja as c,lja as jG,tja as GG}from"./cli-1.1.36-0qtyffhw.mjs";import{apa as q,bpa as g}from"./cli-1.1.36-cm2kys6t.mjs";import{Npa as WG,Rpa as j,Spa as e}from"./cli-1.1.36-c4pkjm54.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
-
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
-
\r
|
|
4
|
-
`);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
-
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
-
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
|
|
7
|
-
`;let $=n(K);K.write(`${X}\r
|
|
8
|
-
`);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
|
|
9
|
-
`;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
|
|
10
|
-
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
-
`);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.36-svzjvq7t.mjs"),import("./index-1.1.36-5bc8t250.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
-
export{yG as i5,i as j5,N as k5,gG as l5,aG as m5,iG as n5,KG as o5,MJ as p5,HJ as q5,OG as r5,E as s5,y as t5,_J as u5,jJ as v5,qJ as w5,UJ as x5,NJ as y5,TJ as z5,FJ as A5,PG as B5};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$e as J,_e as A,af as $,df as G}from"./cli-1.1.36-zw8q3z61.mjs";import{K9 as O,M9 as R,S9 as b,_da as w,cea as S,dea as C,kea as x,wea as h}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aha as m,rha as N}from"./cli-1.1.36-6yqvdwyp.mjs";import{ija as F,tja as D}from"./cli-1.1.36-0qtyffhw.mjs";import{Rpa as E}from"./cli-1.1.36-c4pkjm54.mjs";import{existsSync as T}from"fs";import{dirname as f}from"path";function M(q,z,Q={}){if(!T(q))return{outcome:"noSource",copiedKeys:0};let B=A(q);if(!B)return{outcome:"unparseableSource",copiedKeys:0};let L=T(z),U=L?A(z)??{}:{},I={...U},W=0;for(let V of Q.keys??Object.keys(B)){if(!(V in B))continue;if(V in U)continue;I[V]=B[V],W+=1}if(W===0&&L)return{outcome:"merged",copiedKeys:0};try{$(f(z)),J(z,I)}catch(V){return{outcome:"writeFailed",copiedKeys:0,message:V instanceof Error?V.message:String(V)}}return{outcome:"merged",copiedKeys:W}}var k=E(()=>{G()});import{chmodSync as v,existsSync as _,readFileSync as j,writeFileSync as y}from"fs";import{homedir as H}from"os";import{join as Z}from"path";function P(q){return Z(q,".claude")}function d(q,z,Q,B){let L=Z(q,".credentials.json"),U=Z(z,".credentials.json");if(!_(L))return 0;try{if(_(U)){let W=j(L),V=j(U);if(W.equals(V))return v(U,384),0;return B.push(`${U} already exists with different content — kept new file untouched`),0}$(z);let I=j(L);return y(U,I),v(U,384),g(I)}catch(I){return Q.push(`failed to copy .credentials.json: ${I instanceof Error?I.message:String(I)}`),0}}function g(q){try{let z=JSON.parse(q.toString("utf8"));if(z&&typeof z==="object")return Object.keys(z).length}catch{}return 1}function c(q,z,Q){let B=M(Z(q,"settings.json"),Z(z,"settings.json"),{keys:u});if(B.outcome==="unparseableSource")Q.push("legacy settings.json could not be parsed; skipped");else if(B.outcome==="writeFailed")Q.push(`failed to write settings.json: ${B.message}`);return B.copiedKeys}function K(q){return Z(q,`.claude${N()}.json`)}function l(q){return Z(q,`config${N()}.json`)}function p(q,z,Q){let B=K(q),L=l(z),U=M(B,L);if(U.outcome==="unparseableSource")return Q.push(`legacy ${B} could not be parsed; skipped`),0;if(U.outcome==="writeFailed")return Q.push(`failed to write ${L}: ${U.message}`),0;if(U.outcome==="noSource")return 0;return b(null),U.copiedKeys}function a(){let z=R().claudeToClaudinMigratedAt;if(typeof z==="string"&&z.length>0)return{migrated:!0,at:z};return{migrated:!1}}function n(q){O((z)=>({...z,claudeToClaudinMigratedAt:q}))}async function Zq(q={}){let z=q.homeDir??H(),Q=P(z),B=q.newDir??F(),L=[],U=[],I={tokens:0,settingsKeys:0,globalConfigKeys:0,anthropicProfileCreated:!1,errors:L,warnings:U,alreadyMigrated:!1,legacyDir:Q,newDir:B},W=_(K(z));if(!_(Q)&&!W)return I;let V=a();if(V.migrated&&!q.force)return I.alreadyMigrated=!0,I.migratedAt=V.at,I;try{$(B)}catch(Y){return L.push(`failed to create ${B}: ${Y instanceof Error?Y.message:String(Y)}`),I}if(_(Q))I.tokens=d(Q,B,L,U),I.settingsKeys=c(Q,B,L);if(I.globalConfigKeys=p(z,B,U),I.anthropicProfileCreated=i(B,I.tokens,U),L.length===0){let Y=new Date().toISOString();n(Y),I.migratedAt=Y}return I}function i(q,z,Q){if(z<=0)return!1;let B=Z(q,".credentials.json"),L;try{L=JSON.parse(j(B,"utf8"))}catch(X){return Q.push(`failed to read migrated .credentials.json for profile bootstrap: ${X instanceof Error?X.message:String(X)}`),!1}let I=L?.claudeAiOauth?.accessToken;if(typeof I!=="string"||I.length===0)return!1;let W=C();if(W.some((X)=>X.provider==="anthropic"))return!1;let V=S("anthropic"),Y={provider:"anthropic",name:V.name,baseUrl:V.baseUrl,model:V.model};try{if(!x(Y,{makeActive:W.length===0}))return Q.push("anthropic profile could not be saved after migration"),!1;return!0}catch(X){return Q.push(`failed to create anthropic profile: ${X instanceof Error?X.message:String(X)}`),!1}}function _q(q){if(q.alreadyMigrated)return`nothing to do (last run: ${q.migratedAt??"unknown"}). Pass --force to re-run.`;let z=[];z.push(`${q.tokens} token${q.tokens===1?"":"s"}`),z.push(`${q.settingsKeys} settings key${q.settingsKeys===1?"":"s"}`),z.push(`${q.globalConfigKeys} global config key${q.globalConfigKeys===1?"":"s"}`),z.push(q.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let Q=z.join(", "),B=`. ${q.legacyDir} kept untouched. Run /import to bring skills, MCP servers, agents and commands.`,L=`${Q}${B}`;if(q.warnings.length>0)L+=` Warnings: ${q.warnings.join("; ")}`;if(q.errors.length>0)L+=` Errors: ${q.errors.join("; ")}`;return L}function o(q=H()){return _(P(q))}function t(q=H()){return _(K(q))}function $q(q=H()){let z=R();if(z.claudeToClaudinMigratedAt)return!1;if(z.legacyMigrationSkipped===!0)return!1;return o(q)||t(q)}function jq(){O((q)=>({...q,legacyMigrationSkipped:!0}))}var u;var s=E(()=>{m();w();G();k();D();h();u=["customApiKeyResponses","providerProfiles","activeProviderProfileId"]});
|
|
2
|
-
export{Zq as Vc,_q as Wc,o as Xc,$q as Yc,jq as Zc,s as _c};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Epa as w,gpa as Q,hpa as V,ipa as W,jpa as X,kpa as Y,lpa as Z}from"./cli-1.1.36-s9ar9y3g.mjs";import{Rpa as v}from"./cli-1.1.36-c4pkjm54.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
|
|
2
|
-
`),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
|
|
3
|
-
`)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
|
|
4
|
-
export{B as Kia,L as Lia,_ as Mia,S as Nia,k as Oia,F as Pia,D as Qia,P as Ria,x as Sia,y as Tia,T as Uia,O as Via,R as Wia,U as Xia,f as Yia,N as Zia,I as _ia,$ as $ia,A as aja,p as bja,C as cja,h as dja,E as eja,b as fja};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{X4 as Z,Y4 as T,c5 as f,h5 as WB}from"./cli-1.1.36-s8jcsdgb.mjs";import{G9 as w,H9 as JB,M9 as _,Tda as v,V8 as O,W8 as BB,_da as QB}from"./cli-1.1.36-t6sjxpcb.mjs";import{Lga as A,Nga as KB}from"./cli-1.1.36-jqn2tez7.mjs";import{lja as F,tja as e}from"./cli-1.1.36-0qtyffhw.mjs";import{$ja as R,Aka as s,Doa as a,dla as U,ela as i,pla as M,qla as m,zka as S}from"./cli-1.1.36-bsfazmtt.mjs";import{apa as q,bpa as t}from"./cli-1.1.36-cm2kys6t.mjs";import{Rpa as K}from"./cli-1.1.36-c4pkjm54.mjs";function u(B,J){return B+b(h()*(J-B+1))}var b,h,x;var G=K(()=>{b=Math.floor,h=Math.random;x=u});function p(B){var J=B.length;return J?B[x(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=p});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function c(B){return B==null?[]:z(B,U(B))}var C;var I=K(()=>{P();i();C=c});function n(B){return Y(C(B))}var k;var E=K(()=>{H();I();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,g.cache.clear?.()}function TB(){W=null,Q=null,g.cache.clear?.(),j.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return j()}var W=null,Q=null,g,j;var ZB=K(()=>{BB();t();a();WB();QB();KB();JB();e();g=q((B)=>{let J=v(),X=_(),$,N,D;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let V=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(V))D=V}}let L=Z(),d=L?.organizationUuid,y=L?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:w(),organizationUuid:d,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:D,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});j=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:A()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
|
|
2
|
-
export{kB as sT,r as tT,vB as uT,TB as vT,j as wT,ZB as xT};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{ega as X,iga as w,jga as L,kga as _}from"./cli-1.1.36-m11p0exg.mjs";import{Aia as x,Dia as rD,gia as HD,iia as cD,mia as vD,qia as mD}from"./cli-1.1.36-jpcwwd65.mjs";import{ija as UD,lja as zD,tja as hD}from"./cli-1.1.36-0qtyffhw.mjs";import{$ja as KD,Doa as PD}from"./cli-1.1.36-bsfazmtt.mjs";import{Rpa as V,Spa as gD}from"./cli-1.1.36-c4pkjm54.mjs";var S=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED9\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEFA](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDEC2\uDEC6\uDEC8\uDECC-\uDEDD\uDEDF-\uDEEB\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g};var W=()=>{};var T=161,f=1114109,p,l=12288,g=65510,P,h=4352,c=262141,G;var m=V(()=>{p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],P=[12288,12288,65281,65376,65504,65510],G=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141]});var J=(D,F)=>{let u=0,C=Math.floor(D.length/2)-1;while(u<=C){let E=Math.floor((u+C)/2),B=E*2;if(F<D[B])C=E-1;else if(F>D[B+1])u=E+1;else return!0}return!1};var r=()=>{};function OD(D){let F=D[0],u=D[1];for(let C=0;C<D.length;C+=2){let E=D[C],B=D[C+1];if(a>=E&&a<=B)return[E,B];if(B-E>u-F)F=E,u=B}return[F,u]}var a=19968,MD,bD,d=(D)=>{if(D<T||D>f)return!1;return J(p,D)},n=(D)=>{if(D<l||D>g)return!1;return J(P,D)},s=(D)=>{if(D>=MD&&D<=bD)return!0;if(D<h||D>c)return!1;return J(G,D)};var i=V(()=>{m();r();[MD,bD]=OD(G)});function _D(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function N(D,{ambiguousAsWide:F=!1}={}){if(_D(D),n(D)||s(D)||F&&d(D))return 2;return 1}var o=V(()=>{i()});function M({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var t=()=>{};function b(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);if(!D.includes("\x1B")&&!D.includes(""))return D;return D.replace(kD,"")}var kD;var e=V(()=>{t();kD=M()});function ED(D){let F=0,u=D.replace(RD,()=>{return F++,""});return{count:F,stripped:u}}function BD(D){if(typeof D!=="string"||D.length===0)return 0;if(D.includes(CD)){let{count:C,stripped:E}=ED(D);return C+BD(E)}let F=!0;for(let C=0;C<D.length;C++){let E=D.charCodeAt(C);if(E>=127||E===27){F=!1;break}}if(F){let C=0;for(let E=0;E<D.length;E++)if(D.charCodeAt(E)>31)C++;return C}if(D.includes("\x1B")){if(D=b(D),D.length===0)return 0}if(!wD(D)){let C=0;for(let E of D){let B=E.codePointAt(0);if(!uD(B))C+=N(B,{ambiguousAsWide:!1})}return C}let u=0;for(let{segment:C}of X().segment(D)){if(DD.lastIndex=0,DD.test(C)&&ID(C)){u+=LD(C);continue}for(let E of C){let B=E.codePointAt(0);if(!uD(B)){u+=N(B,{ambiguousAsWide:!1});break}}}return u}function wD(D){for(let F of D){let u=F.codePointAt(0);if(u>=127744&&u<=129791)return!0;if(u>=9728&&u<=10175)return!0;if(u>=127462&&u<=127487)return!0;if(u>=65024&&u<=65039)return!0;if(u===8205)return!0;if(u===8419)return!0}return!1}function LD(D){let F=D.codePointAt(0);if(F>=127462&&F<=127487){let u=0;for(let C of D)u++;return u===1?1:2}if(D.length===2){if(D.codePointAt(1)===65039&&(F>=48&&F<=57||F===35||F===42))return 1}return 2}function ID(D){return D.includes("️")||D.includes("⃣")||yD.test(D)}function uD(D){if(D>=32&&D<127)return!1;if(D>=160&&D<768)return D===173;if(D<=31||D>=127&&D<=159)return!0;if(D>=8203&&D<=8205||D===65279||D>=8288&&D<=8292)return!0;if(D>=65024&&D<=65039||D>=917760&&D<=917999)return!0;if(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)return!0;if(D>=2304&&D<=3407){let F=D&127;if(F<=3)return!0;if(F>=58&&F<=79)return!0;if(F>=81&&F<=87)return!0;if(F>=98&&F<=99)return!0}if(D===3633||D>=3636&&D<=3642||D>=3655&&D<=3662||D===3761||D>=3764&&D<=3772||D>=3784&&D<=3789)return!0;if(D>=1536&&D<=1541||D===1757||D===1807||D===2274)return!0;if(D>=55296&&D<=57343)return!0;if(D>=917504&&D<=917631)return!0;return!1}var DD,yD,CD="\uDBFB\uDEEE",RD,O,FD,$;var AD=V(()=>{W();o();e();_();DD=S(),yD=/^\p{Emoji_Presentation}/u,RD=/\u{10EEEE}\p{M}{0,3}/gu;O=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,FD={ambiguousIsNarrow:!0},$=O?(D)=>{if(D.includes(CD)){let{count:F,stripped:u}=ED(D);return F+(u.length>0?O(u,FD):0)}return O(D,FD)}:BD});function xD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"…";if(F<5)return K(u,F);let C=u.lastIndexOf("/"),E=C>=0?u.slice(C):u,B=C>=0?u.slice(0,C):"",A=$(E);if(A>=F-1)return k(D,F);let Q=F-1-A;if(Q<=0)return k(E,F);return QD(B,Q)+"…"+E}function K(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F-1)break;E+=B,C+=A}return E+"…"}function k(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=[...X().segment(u)],E=0,B=C.length;for(let A=C.length-1;A>=0;A--){let Q=$(C[A].segment);if(E+Q>F-1)break;E+=Q,B=A}return"…"+C.slice(B).map((A)=>A.segment).join("")}function QD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F)break;E+=B,C+=A}return E}function SD(D,F,u=!1){let C=D??"";if(C==="")return"";let E=C;if(u){let B=C.indexOf(`
|
|
2
|
-
`);if(B!==-1){if(E=C.substring(0,B),$(E)+1>F)return K(E,F);return`${E}…`}}if($(E)<=F)return E;return K(E,F)}var VD=V(()=>{AD();_()});function U(D){let F=D/1024;if(F<1)return`${D} bytes`;if(F<1024)return`${F.toFixed(1).replace(/\.0$/,"")}KB`;let u=F/1024;if(u<1024)return`${u.toFixed(1).replace(/\.0$/,"")}MB`;return`${(u/1024).toFixed(1).replace(/\.0$/,"")}GB`}function yu(D){return`${(D/1000).toFixed(1)}s`}function Ru(D,F){if(D<60000){if(D===0)return"0s";if(D<1000)return`${(D/1000).toFixed(1)}s`;return`${Math.floor(D/1000).toString()}s`}let u=Math.floor(D/86400000),C=Math.floor(D%86400000/3600000),E=Math.floor(D%3600000/60000),B=Math.round(D%60000/1000);if(B===60)B=0,E++;if(E===60)E=0,C++;if(C===24)C=0,u++;let A=F?.hideTrailingZeros;if(F?.mostSignificantOnly){if(u>0)return`${u}d`;if(C>0)return`${C}h`;if(E>0)return`${E}m`;return`${B}s`}if(u>0){if(A&&C===0&&E===0)return`${u}d`;if(A&&E===0)return`${u}d ${C}h`;return`${u}d ${C}h ${E}m`}if(C>0){if(A&&E===0&&B===0)return`${C}h`;if(A&&B===0)return`${C}h ${E}m`;return`${C}h ${E}m ${B}s`}if(E>0){if(A&&B===0)return`${E}m`;return`${E}m ${B}s`}return`${B}s`}function TD(D){let F=D>=1000;return WD(F).format(D).toLowerCase()}function wu(D){return TD(D).replace(".0","")}function $D(D,F={}){let{style:u="narrow",numeric:C="always",now:E=new Date}=F,B=D.getTime()-E.getTime(),A=Math.trunc(B/1000),Q=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:q,seconds:Y,shortUnit:j}of Q)if(Math.abs(A)>=Y){let Z=Math.trunc(A/Y);if(u==="narrow")return A<0?`${Math.abs(Z)}${j} ago`:`in ${Z}${j}`;return w("long",C).format(Z,q)}if(u==="narrow")return A<=0?"0s ago":"in 0s";return w(u,C).format(0,"second")}function fD(D,F={}){let{now:u=new Date,...C}=F;if(D>u)return $D(D,{...C,now:u});return $D(D,{...C,numeric:"always",now:u})}function Lu(D){let F=D.fileSize!==void 0?U(D.fileSize):`${D.messageCount} messages`,u=[fD(D.modified,{style:"short"}),...D.gitBranch?[D.gitBranch]:[],F];if(D.tag)u.push(`#${D.tag}`);if(D.agentSetting)u.push(`@${D.agentSetting}`);if(D.prNumber)u.push(D.prRepository?`${D.prRepository}#${D.prNumber}`:`#${D.prNumber}`);return u.join(" · ")}function pD(D,F=!1,u=!0){if(!D)return;let C=new Date(D*1000),E=new Date,B=C.getMinutes();if((C.getTime()-E.getTime())/3600000>24){let q={month:"short",day:"numeric",hour:u?"numeric":void 0,minute:!u||B===0?void 0:"2-digit",hour12:u?!0:void 0};if(C.getFullYear()!==E.getFullYear())q.year="numeric";return C.toLocaleString("en-US",q).replace(/ ([AP]M)/i,(j,Z)=>Z.toLowerCase())+(F?` (${L()})`:"")}return C.toLocaleTimeString("en-US",{hour:"numeric",minute:B===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(q,Y)=>Y.toLowerCase())+(F?` (${L()})`:"")}function Iu(D,F=!1,u=!0){let C=new Date(D);return`${pD(Math.floor(C.getTime()/1000),F,u)}`}function lD(D){if(D<60000)return`${Math.max(1,Math.ceil(D/1000))}s`;let F=Math.max(1,Math.ceil(D/60000)),u=Math.floor(F/1440),C=Math.floor(F%1440/60),E=F%60;if(u>0)return C>0?`${u}d ${C}h`:`${u}d`;if(C>0)return E>0?`${C}h ${E}m`:`${C}h`;return`${E}m`}function xu(D,F){if(!D)return;let u=Date.parse(D);if(!Number.isFinite(u))return;let C=u-F;if(C<=0)return"Resetting now";return`Resets in ${lD(C)}`}var y=null,R=null,WD=(D)=>{if(D){if(!y)y=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return y}else{if(!R)R=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return R}};var qD=V(()=>{_();VD()});function H(){if(!I)I=gD("perf_hooks").performance;return I}function z(D){return D.toFixed(3)}function XD(D,F,u,C,E,B,A=""){let Q=C?` | RSS: ${U(C.rss)}, Heap: ${U(C.heapUsed)}`:"";return`[+${z(D).padStart(E)}ms] (+${z(F).padStart(B)}ms) ${u}${A}${Q}`}var I=null;var YD=V(()=>{qD()});import{dirname as aD,join as dD}from"path";function iD(D){if(!GD)return;if(H().mark(D),v)ND.push(process.memoryUsage())}function ZD(){if(!v)return"Startup profiling not enabled";let F=H().getEntriesByType("mark");if(F.length===0)return"No profiling checkpoints recorded";let u=[];u.push("=".repeat(80)),u.push("STARTUP PROFILING REPORT"),u.push("=".repeat(80)),u.push("");let C=0;for(let[B,A]of F.entries())u.push(XD(A.startTime,A.startTime-C,A.name,ND[B],8,7)),C=A.startTime;let E=F[F.length-1];return u.push(""),u.push(`Total startup time: ${z(E?.startTime??0)}ms`),u.push("=".repeat(80)),u.join(`
|
|
3
|
-
`)}function oD(){if(JD)return;if(JD=!0,eD(),v){let D=tD(),F=aD(D);vD().mkdirSync(F),HD(D,ZD(),{encoding:"utf8",flush:!0}),x("Startup profiling report:"),x(ZD())}}function tD(){return dD(UD(),"startup-perf",`${KD()}.txt`)}function eD(){if(!jD)return;let F=H().getEntriesByType("mark");if(F.length===0)return;let u=new Map;for(let E of F)u.set(E.name,E.startTime);let C={};for(let[E,[B,A]]of Object.entries(sD)){let Q=u.get(B),q=u.get(A);if(Q!==void 0&&q!==void 0)C[`${E}_ms`]=Math.round(q-Q)}C.checkpoint_count=F.length}var v,nD=0.005,jD,GD,ND,sD,JD=!1;var Du=V(()=>{PD();rD();hD();mD();YD();cD();v=zD(process.env.CLAUDIN_PROFILE_STARTUP),jD=Math.random()<nD,GD=v||jD,ND=[],sD={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(GD)iD("profiler_initialized"),process.on("exit",()=>{try{oD()}catch{}})});
|
|
4
|
-
export{b as Afa,e as Bfa,$ as Cfa,AD as Dfa,xD as Efa,K as Ffa,k as Gfa,QD as Hfa,SD as Ifa,VD as Jfa,U as Kfa,yu as Lfa,Ru as Mfa,TD as Nfa,wu as Ofa,$D as Pfa,fD as Qfa,Lu as Rfa,pD as Sfa,Iu as Tfa,lD as Ufa,xu as Vfa,qD as Wfa,H as Xfa,z as Yfa,XD as Zfa,YD as _fa,iD as $fa,oD as aga,tD as bga,eD as cga,Du as dga};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rpa as M}from"./cli-1.1.36-c4pkjm54.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
-
export{W as rha,Q as sha,K as tha,X as uha,Y as vha,Z as wha,y as xha,G as yha,h as zha,w as Aha};
|