@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{Y5 as N5,_5 as Z8}from"./cli-1.1.38-z8x4q5cc.mjs";import{a6 as A,b6 as a$}from"./cli-1.1.38-z9faf3ft.mjs";import{d6 as U2,e6 as JJ}from"./cli-1.1.38-zx5nqvq6.mjs";import{c7 as c2,e7 as W8}from"./cli-1.1.38-rp0tsnde.mjs";import{Q8 as e0,y8 as N}from"./cli-1.1.38-t8k5snq9.mjs";import{Ada as D,Aea as Q$,Eea as i1,Ffa as m2,I9 as b2,Ifa as L,K9 as r$,Lfa as r,Nda as V0,Tea as Z4,Tfa as k,Vea as l1,Yda as U1,Yea as k5,Yfa as m0,Zea as $J,_da as T8,daa as d1,g_ as p2,gaa as i,h_ as h,hba as G5,i9 as P4,j$ as f4,j9 as g,j_ as b,k9 as L5,l$ as o$,l9 as w0,m9 as v4,n9 as l5,q$ as u4,s9 as W0,t$ as e$,t9 as Y1,vda as E,wfa as g2,xda as W5,xea as X0,yba as Z$,zea as n1,zfa as Q4}from"./cli-1.1.38-a678cgp1.mjs";import{pia as O2,qia as C4,ria as j5,tia as $8,uia as J8,wia as U,xia as y0}from"./cli-1.1.38-z02gnn41.mjs";import{Aja as a,bja as S4,fja as s$,jja as n5,nja as P8,xja as W,zja as f0}from"./cli-1.1.38-yfhvhcvt.mjs";import{Xja as $5,Zja as J1,cka as N8}from"./cli-1.1.38-mh6a6g83.mjs";import{fka as k2,ika as w,kka as C,mka as U5,qka as f}from"./cli-1.1.38-nzbcas3j.mjs";import{Ana as c1,Bpa as o,Ena as F4,Ina as E0,Jna as s0,Wka as e,Wna as M,Xka as z1,boa as b1,mna as M1,soa as r2,toa as o2,uoa as e2,voa as $1,yoa as V5}from"./cli-1.1.38-44ay6q12.mjs";import{$pa as g0,_pa as _}from"./cli-1.1.38-n9xftqbp.mjs";import{Mqa as v0,Oqa as u2,Pqa as G,Qqa as t}from"./cli-1.1.38-y66mw08s.mjs";function _2($){let J=[],Z=!1;async function Q(){if(Z)return;if(J.length===0)return;Z=!0;while(J.length>0){let{args:Y,resolve:q,reject:X,context:j}=J.shift();try{let z=await $.apply(j,Y);q(z)}catch(z){X(z)}}if(Z=!1,J.length>0)Q()}return function(...Y){return new Promise((q,X)=>{J.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var T2=()=>{};function Y8($,J){for(let Z=$.indexOf(J);Z>=0;Z=$.indexOf(J,Z+1))if(!Q8.test($.slice(Z+J.length)))return!0;return!1}function h2($,J){return $.find((Z)=>Y8(Z,J))??null}async function A2(){let{BedrockClient:$}=await import("@aws-sdk/client-bedrock"),J=U5(),Z=w(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await N5(),...Z&&{requestHandler:new(await import("./index-1.1.38-t8ehet13.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.38-0vkksyqf.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await F0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}async function MJ(){let{BedrockRuntimeClient:$}=await import("@aws-sdk/client-bedrock-runtime"),J=U5(),Z=w(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await N5(),...Z&&{requestHandler:new(await import("./index-1.1.38-t8ehet13.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.38-0vkksyqf.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await F0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}function q8($){return $.startsWith("anthropic.")}function V8($){if(!$.startsWith("arn:"))return $;let J=$.lastIndexOf("/");if(J===-1)return $;return $.substring(J+1)}function j8($){let J=V8($);for(let Z of X8)if(J.startsWith(`${Z}.anthropic.`))return Z;return}function CJ($,J){let Z=j8($);if(Z)return $.replace(`${Z}.`,`${J}.`);if(q8($))return`${J}.${$}`;return $}var I2,Q8,SJ,X8;var M2=G(()=>{g0();Y0();f();m0();Z8();I2=_(async function(){let[$,{ListInferenceProfilesCommand:J}]=await Promise.all([A2(),import("@aws-sdk/client-bedrock")]),Z=[],Q;try{do{let Y=new J({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await $.send(Y);if(q.inferenceProfileSummaries)Z.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return Z.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}}),Q8=/^[-.]\d(?!\d)/;SJ=_(async function($){try{let[J,{GetInferenceProfileCommand:Z}]=await Promise.all([A2(),import("@aws-sdk/client-bedrock")]),Q=new Z({inferenceProfileIdentifier:$}),Y=await J.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch(J){return k(J),null}});X8=["us","eu","apac","global"]});var P5,v5,E5,y5,O5,_5,T5,I5,h5,c0,d0,n0,D0,k0,A5,M5,S5,C5,b0,S2;var f5=G(()=>{P5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},v5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},y5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},O5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},I5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},c0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},d0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},n0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},D0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},k0={firstParty:"claude-opus-5-5",bedrock:"anthropic.claude-opus-5-5",vertex:"claude-opus-5-5",foundry:"claude-opus-5-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},S5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C5={firstParty:"claude-sonnet-5-5",bedrock:"anthropic.claude-sonnet-5-5",vertex:"claude-sonnet-5-5",foundry:"claude-sonnet-5-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},b0={haiku35:E5,haiku45:y5,sonnet35:v5,sonnet37:P5,sonnet40:O5,sonnet45:_5,sonnet46:M5,sonnet5:S5,sonnet55:C5,opus40:T5,opus41:I5,opus45:h5,opus46:c0,opus47:d0,opus48:n0,opus5:D0,opus55:k0,fable51:A5},S2=Object.fromEntries(Object.entries(b0).map(([$,J])=>[J.firstParty,$]))});function C2(){return Object.values(i0)}var i0,u5;var p5=G(()=>{i0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},u5=Object.fromEntries(Object.values(i0).map(($)=>[$.id,$.name]))});var N0={};u2(N0,{prefetchCopilotModelCatalog:()=>c5,normalizeBareCopilotModelId:()=>m5,getEffectiveCopilotModels:()=>G8,getCopilotDisplayName:()=>R8,getCatalogCopilotMaxOutputTokens:()=>L8,getCatalogCopilotContextWindow:()=>K8,fetchCopilotModelCatalog:()=>n2,copilotModelSupportsAnthropicMessages:()=>w8,_setCopilotCatalogForTesting:()=>F8});function U0(){let $=L();if($?.transport!=="github_copilot")return null;return($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function d2(){if(!s)return!1;let $=U0();return $!==null&&q0===$}function B8(){if(f2)return;f2=!0,p2(()=>{let $=U0();if($&&q0!==$)c5()})}function m5($){let J=$.split("?",1)[0]??$,Z=J.lastIndexOf(":"),Q=(Z===-1?J:J.slice(Z+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function x8($){if(!Array.isArray($))return null;return $.filter((J)=>typeof J==="string")}function H8($){let J=$.id?.trim();if(!J)return null;let Z=$.capabilities?.type?.trim().toLowerCase();if(Z&&Z!=="chat")return null;if($.policy?.state==="disabled")return null;let Q=$.capabilities?.limits??{},Y=$.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:J,name:$.name?.trim()||J,family:$.capabilities?.family?.trim()||J,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:x8($.supported_endpoints),pickerEnabled:$.model_picker_enabled!==!1}}async function n2(){let $=L();if($?.transport!=="github_copilot")return null;if(g2($.baseUrl)!=="copilot")return null;let J=$.extras?.githubToken??$.apiKey;if(!J)return null;let Z=($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),z8);try{let q=await fetch(`${Z}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...c2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let j=new Set,z=[];for(let x of X.data){let H=H8(x);if(!H||j.has(H.model.id))continue;j.add(H.model.id),z.push(H)}return z.length>0?z:null}catch{return W("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function c5(){B8();let $=U0();if(!$)return;if(s&&q0!==$)s=null,q0=null;if(l0){if(g5===$)return;l0.finally(()=>c5());return}g5=$,l0=n2().then((J)=>{if(J&&U0()===$)s=J,q0=$}).finally(()=>{l0=null,g5=null})}function G8(){if(d2()){let $=s?.filter((J)=>J.pickerEnabled).map((J)=>J.model);if($&&$.length>0)return $}return C2()}function t0($){if(!d2())return;let J=m5($);return s.find((Z)=>Z.model.id===J)}function R8($){let J=m5($);return t0(J)?.model.name??i0[J]?.name}function w8($){let J=t0($);if(!J||J.supportedEndpoints===null)return null;return J.supportedEndpoints.some((Z)=>Z.includes("/v1/messages"))}function K8($){return t0($)?.model.limit.context}function L8($){return t0($)?.model.limit.output}function F8($){s=$,q0=$?U0():null}var z8=5000,s=null,q0=null,l0=null,g5=null,f2=!1;var P0=G(()=>{r();W8();m2();X0();a();p5()});function V(){let $=L();if(!$)return"firstParty";switch($.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let J=$.baseUrl?.toLowerCase()??"";if(J.includes("nvidia"))return"nvidia-nim";if(J.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function tJ(){return V()==="firstParty"}function D8($){let J=L();if(J?.transport!=="github_copilot")return!1;let Z=$?.trim()||J.model?.trim()||"";if(!Z.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(P0(),v0(N0)),Y=Q(Z);if(Y!==null)return Y}catch{}return!0}function sJ($){let J=L()?.transport??"anthropic";if(!k8.has(J))return!1;if(J==="github_copilot"&&D8($))return!1;return!0}function i2(){let $=L();if(!$)return!0;if($.transport!=="anthropic")return!1;let J=$.baseUrl;if(!J)return!0;try{let Z=new URL(J).host;return["api.anthropic.com"].includes(Z)}catch{return!1}}var k8;var u=G(()=>{r();k8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function a0($){let J=$==="codex"||$==="github"?"openai":$,Z={};for(let Q of t2)Z[Q]=b0[Q][J];return Z}async function b8(){let $=a0("bedrock"),J;try{J=await I2()}catch(Q){return k(Q),$}if(!J?.length)return $;let Z={};for(let Q of t2){let Y=b0[Q].firstParty;Z[Q]=h2(J,Y)||$[Q]}return Z}function l2($){let J=D().modelOverrides;if(!J)return $;let Z={...$};for(let[Q,Y]of Object.entries(J)){let q=S2[Q];if(q&&Y)Z[q]=Y}return Z}function r0($){let J;try{J=D().modelOverrides}catch{return $}if(!J)return $;for(let[Z,Q]of Object.entries(J))if(Q===$)return Z;return $}function U8(){if(E0()!==null)return;if(V()!=="bedrock"){s0(a0(V()));return}s2()}function B(){let $=E0();if($===null)return U8(),l2(a0(V()));return l2($)}async function YZ(){if(E0()!==null)return;if(V()!=="bedrock"){s0(a0(V()));return}await s2()}var t2,s2;var o0=G(()=>{o();m0();T2();V0();M2();f5();u();t2=Object.keys(b0);s2=_2(async()=>{if(E0()!==null)return;try{let $=await b8();s0($)}catch($){k($)}})});async function j0($){let J=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await N.get(J,{headers:{Authorization:`Bearer ${$}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(Z){k(Z)}}var d5=G(()=>{e0();y0();m0()});import{mkdirSync as v8,writeFileSync as E8}from"fs";function _8($,J,Z){if(!w(process.env.CLAUDE_CODE_REMOTE))return;try{v8(J5,{recursive:!0,mode:448}),E8($,J,{encoding:"utf8",mode:384}),W(`Persisted ${Z} to ${$} for subprocess access`)}catch(Q){W(`Failed to persist ${Z} to disk (non-fatal): ${$5(Q)}`,{level:"error"})}}function a2($,J){try{let Q=n5().readFileSync($,{encoding:"utf8"}).trim();if(!Q)return null;return W(`Read ${J} from well-known file ${$}`),Q}catch(Z){if(!J1(Z))W(`Failed to read ${J} from ${$}: ${$5(Z)}`,{level:"debug"});return null}}function Z1({envVar:$,wellKnownPath:J,label:Z,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[$];if(!X){let z=a2(J,Z);return Y(z),z}let j=parseInt(X,10);if(Number.isNaN(j))return W(`${$} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let z=n5(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${j}`:`/proc/self/fd/${j}`,H=z.readFileSync(x,{encoding:"utf8"}).trim();if(!H)return W(`File descriptor contained empty ${Z}`,{level:"error"}),Y(null),null;return W(`Successfully read ${Z} from file descriptor ${j}`),Y(H),_8(J,H,Z),H}catch(z){W(`Failed to read ${Z} from file descriptor ${j}: ${$5(z)}`,{level:"error"});let x=a2(J,Z);return Y(x),x}}function Z5(){return Z1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:y8,label:"OAuth token",getCached:r2,setCached:o2})}function i5(){return Z1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:O8,label:"API key",getCached:e2,setCached:$1})}var J5="/home/claude/.claude/remote",y8,O8,wZ;var Q1=G(()=>{o();a();f();N8();P8();y8=`${J5}/.oauth_token`,O8=`${J5}/.api_key`,wZ=`${J5}/.session_ingress_token`});async function q1(){if(process.platform==="darwin"){let $=g();if((await W0(`security delete-generic-password -a $USER -s "${$}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function t5($){return $.slice(-20)}var X1=G(()=>{Y1();l5()});function bZ($){return $?.name==="CredentialsProviderError"}function V1($){if(!$||typeof $!=="object")return!1;let J=$;if(!J.Credentials||typeof J.Credentials!=="object")return!1;let Z=J.Credentials;return typeof Z.AccessKeyId==="string"&&typeof Z.SecretAccessKey==="string"&&typeof Z.SessionToken==="string"&&Z.AccessKeyId.length>0&&Z.SecretAccessKey.length>0&&Z.SessionToken.length>0}async function s5(){let{STSClient:$,GetCallerIdentityCommand:J}=await import("@aws-sdk/client-sts");await new $().send(new J({}))}async function j1(){try{W("Clearing AWS credential provider cache");let{fromIni:$}=await import("@aws-sdk/credential-providers");await $({ignoreCache:!0})(),W("AWS credential provider cache refreshed")}catch($){W("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var W1=G(()=>{a()});class I{static instance=null;status={isAuthenticating:!1,output:[]};changed=e();static getInstance(){if(!I.instance)I.instance=new I;return I.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput($){this.status.output.push($),this.changed.emit(this.getStatus())}setError($){this.status.error=$,this.changed.emit(this.getStatus())}endAuthentication($){if($)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(I.instance)I.instance.changed.clear(),I.instance=null}}var B1=G(()=>{z1()});var Q5="claude-code-20250219",x1="interleaved-thinking-2025-05-14",O0="context-1m-2025-08-07",Y5="context-management-2025-06-27",vZ="structured-outputs-2025-12-15",a5="web-search-2025-03-05",H1="advanced-tool-use-2025-11-20",G1="tool-search-tool-2025-10-19",EZ="effort-2025-11-24",yZ="task-budgets-2026-03-13",q5="prompt-caching-scope-2026-01-05",OZ="extended-cache-ttl-2025-04-11",_Z="fast-mode-2026-02-01",R1="redact-thinking-2026-02-12",z0="thinking-token-count-2026-05-13",w1="thinking-display-updates-2026-08-18",K1="cache-diagnosis-2026-04-07",L1="thinking-binding-controls-2026-08-01",F1="token-efficient-tools-2026-03-28",D1="afk-mode-2026-01-31",TZ="advisor-tool-2026-03-01",r5,IZ;var X5=G(()=>{r5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),IZ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function y(){if(V()!=="firstParty")return!1;return!w(process.env.CLAUDIN_DISABLE_FAST_MODE)}function N1(){if(!y())return!1;return h8()===null}function I8($,J){switch($){case"free":return J==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · enable it at claude.ai/settings/usage";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function h8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!y())return"Fast mode is not available";if(M()&&V5()&&!b1()){if(!E("flagSettings")?.fastMode)return W("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(v.status==="disabled"){if(v.reason==="network_error"||v.reason==="unknown"){if(w(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=K()!==null?"oauth":"api-key",J=I8(v.reason,$);return W(`Fast mode unavailable: ${J}`),J}return null}function lZ(){let $=z5($0());return"opus"+($2()&&!$?"[1m]":"")}function tZ($){if(!y())return!1;if(!N1())return!1;if(!P1($))return!1;let J=D();if(J.fastModePerSessionOptIn)return!1;return J.fastMode===!0}function P1($){if(!y())return!1;let J=$??T0(),Z=T(J).toLowerCase();return Z.includes("opus-5")||Z.includes("opus-4-7")||Z.includes("opus-4-6")}function A8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(y()&&!o5)W("Fast mode cooldown expired, re-enabling fast mode"),o5=!0,E1.emit();B0={status:"active"}}return B0}function rZ($,J){if(!y())return;B0={status:"cooldown",resetAt:$,reason:J},o5=!1;let Z=$-Date.now();W(`Fast mode cooldown triggered (${J}), duration ${Math.round(Z/1000)}s`),v1.emit($,J)}function oZ(){B0={status:"active"}}function eZ(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},W5("userSettings",{fastMode:void 0}),h(($)=>({...$,penguinModeOrgEnabled:!1})),e5.emit(!1)}function M8($){switch($){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · enable it at claude.ai/settings/usage";default:return"Fast mode disabled · extra usage not available"}}function S8($){return $==="org_level_disabled_until"||$==="out_of_credits"}function J7($){let J=M8($);if(W(`Fast mode overage rejection: ${$??"unknown"} — ${J}`),!S8($))W5("userSettings",{fastMode:void 0}),h((Z)=>({...Z,penguinModeOrgEnabled:!1}));y1.emit(J)}function C8(){return A8().status==="cooldown"}function Z7($,J){let Z=y()&&N1()&&!!J&&P1($);if(Z&&C8())return"cooldown";if(Z)return"on";return"off"}async function f8($){let J=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,Z="accessToken"in $?{Authorization:`Bearer ${$.accessToken}`,"anthropic-beta":j5}:{"x-api-key":$.apiKey};return(await N.get(J,{headers:Z})).data}function Y7(){if(!y())return;if(v.status!=="pending")return;v=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function q7(){if(U1())return;if(!y())return;if(_0)return W("Fast mode prefetch in progress, returning in-flight promise"),_0;let $=_1();if(!(K()?.accessToken&&x0())&&!$){v=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let Z=Date.now();if(Z-k1<u8){W("Skipping fast mode prefetch, fetched recently");return}k1=Z;let Q=async()=>{let q=K(),X=q?.accessToken&&x0()?{accessToken:q.accessToken}:$?{apiKey:$}:null;if(!X)throw Error("No auth available");return f8(X)};async function Y(){try{let q;try{q=await Q()}catch(j){if(N.isAxiosError(j)&&(j.response?.status===401||j.response?.status===403&&typeof j.response?.data==="string"&&j.response.data.includes("OAuth token has been revoked"))){let x=K()?.accessToken;if(x)await T1(x),q=await Q();else throw j}else throw j}let X=v.status!=="pending"?v.status==="enabled":b().penguinModeOrgEnabled;if(v=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)W5("userSettings",{fastMode:void 0});h((j)=>({...j,penguinModeOrgEnabled:q.enabled})),e5.emit(q.enabled)}W(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){v=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},W(`Failed to fetch org fast mode status, defaulting to ${v.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"})}finally{_0=null}}return _0=Y(),_0}var iZ="Opus 5.5",B0,o5=!1,v1,E1,sZ,aZ,y1,$7,v,e5,Q7,u8=30000,k1=0,_0=null;var O1=G(()=>{e0();y0();o();Y0();X0();a();f();H0();u();T8();V0();z1();B0={status:"active"},v1=e(),E1=e(),sZ=v1.subscribe,aZ=E1.subscribe;y1=e(),$7=y1.subscribe;v={status:"pending"},e5=e(),Q7=e5.subscribe});function l8($){for(let J of i8)if(J.pattern.test($))return J.cost;return}function J2($){if(y()&&$)return C1;return m}function Z2($){if(y()&&$)return C1;return B5[R(D0.firstParty)]??m}function Q2($){if(y()&&$)return p8;return B5[R(k0.firstParty)]??S1}function t8($,J){let Z=$.promptCacheWrite1hTokens??$.promptCacheWriteTokens,Q=J.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*$.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*Z:(J.cache_creation_input_tokens??0)/1e6*$.promptCacheWriteTokens;return J.input_tokens/1e6*$.inputTokens+J.output_tokens/1e6*$.outputTokens+(J.cache_read_input_tokens??0)/1e6*$.promptCacheReadTokens+Y+(J.server_tool_use?.web_search_requests??0)*$.webSearchRequests}function s8($,J){let Z=F($);if(Z===R(c0.firstParty)||Z===R(d0.firstParty)||Z===R(n0.firstParty)){let Y=J.speed==="fast";return J2(Y)}if(Z===R(k0.firstParty))return Q2(J.speed==="fast");if(Z===R(D0.firstParty))return Z2(J.speed==="fast");let Q=B5[Z];if(!Q){let Y=l8($);if(Y)return Y;return a8($,Z),B5[F(T0())]??n8}return Q}function a8($,J){M1()}function r8($,J){let Z=s8($,J);return t8(Z,J)}function B7($,J){let Z={input_tokens:J.inputTokens,output_tokens:J.outputTokens,cache_read_input_tokens:J.cacheReadInputTokens,cache_creation_input_tokens:J.cacheCreationInputTokens};return r8($,Z)}function A1($){if(Number.isInteger($))return`$${$}`;return`$${$.toFixed(2)}`}function x5($){return`${A1($.inputTokens)}/${A1($.outputTokens)} per Mtok`}var I1,I0,h1,m,S1,p8,g8,m8,C1,c8,d8,n8,i8,B5;var f1=G(()=>{o();O1();f5();H0();I1={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},I0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},h1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},m={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},S1={inputTokens:4,outputTokens:20,promptCacheWriteTokens:5,promptCacheWrite1hTokens:8,promptCacheReadTokens:0.2,webSearchRequests:0.01},p8={inputTokens:8,outputTokens:40,promptCacheWriteTokens:10,promptCacheWrite1hTokens:16,promptCacheReadTokens:0.4,webSearchRequests:0.01},g8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},m8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},C1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},c8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},d8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},n8=m,i8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];B5={[R(E5.firstParty)]:c8,[R(y5.firstParty)]:d8,[R(v5.firstParty)]:I0,[R(P5.firstParty)]:I0,[R(O5.firstParty)]:I0,[R(_5.firstParty)]:I0,[R(M5.firstParty)]:I0,[R(S5.firstParty)]:I1,[R(C5.firstParty)]:I1,[R(T5.firstParty)]:h1,[R(I5.firstParty)]:h1,[R(h5.firstParty)]:m,[R(c0.firstParty)]:m,[R(d0.firstParty)]:m,[R(n0.firstParty)]:m,[R(D0.firstParty)]:m,[R(k0.firstParty)]:S1,[R(A5.firstParty)]:g8,"claude-fable-5":m8}});function c($){return o8.includes($)}function G0($){return e8.includes($)}var o8,e8;var Y2=G(()=>{o8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];e8=["sonnet","opus","haiku"]});function $$($,J){if($.includes(J))return!0;if(c($))return T($).toLowerCase().includes(J);return!1}function u1($,J){if(!$.startsWith(J))return!1;return $.length===J.length||$[J.length]==="-"}function J$($,J){let Z=c($)?T($).toLowerCase():$;if(u1(Z,J))return!0;if(!J.startsWith("claude-")&&u1(Z,`claude-${J}`))return!0;return!1}function p1($,J){for(let Z of J){if(G0(Z))continue;let Q=Z.indexOf($);if(Q===-1)continue;let Y=Q+$.length;if(Y===Z.length||Z[Y]==="-")return!0}return!1}function g1($){let J=D()||{},{availableModels:Z}=J;if(!Z)return!0;if(Z.length===0)return!1;let Y=r0($).trim().toLowerCase(),q=Z.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!G0(Y)||!p1(Y,q))return!0}for(let X of q)if(G0(X)&&!p1(X,q)&&$$(Y,X))return!0;if(c(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!G0(X)&&c(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!G0(X)&&!c(X)){if(J$(Y,X))return!0}return!1}var m1=G(()=>{V0();Y2();H0();o0()});function H5($){if(typeof $!=="string")return;let J=$.trim();return J.length>0?J:void 0}function R0(){let $=L();if(!$?.model)return;return n1($.model)}function M7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let $=R0();if(V()==="gemini")return $||"gemini-2.0-flash-lite";if(V()==="mistral")return $||"ministral-3b-latest";if(V()==="openai")return $||"gpt-4o-mini";if(V()==="codex")return $||"codexspark";if(V()==="github")return $||"github:copilot";if(V()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return $||"MiniMax-M2.5-highspeed";return t1()}function S7($){return $===B().opus40||$===B().opus41||$===B().opus45||$===B().opus46||$===B().opus47||$===B().opus48||$===B().opus5||$===B().opus55}function z5($){let J=F($);return J.includes("opus-5")||J.includes("sonnet-5")||J.includes("fable-5")}function q2(){let $,J=c1();if(J!==void 0)$=J;else{let Z=D()||{},Q=H5(Z.model),q=R0()||Q||void 0,X=d1(),j=H5(X.activeModelForProject);if(j){let z=i1()?.id,x=X.activeModelForProjectProfileId;$=x===void 0||x===z?j:q}else $=q}if($&&!g1($))return;return $}function C7(){let $=q2();if($!==void 0&&$!==null)return T($);return s1()}function Y$(){return $0()}function $0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let $=R0();if(V()==="gemini")return $||"gemini-2.5-pro";if(V()==="mistral")return $||"devstral-latest";if(V()==="openai")return $||"gpt-4o";if(V()==="codex")return $||"gpt-5.5";if(V()==="github")return $||"github:copilot";if(V()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return $||"MiniMax-M2.7";if(V()!=="firstParty")return B().opus46;return B().opus55}function h0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let $=R0();if(V()==="gemini")return $||"gemini-2.0-flash";if(V()==="mistral")return $||"mistral-medium-latest";if(V()==="openai")return $||"gpt-4o";if(V()==="codex")return $||"gpt-5.5";if(V()==="github")return $||"github:copilot";if(V()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return $||"MiniMax-M2.5";if(V()!=="firstParty")return B().sonnet45;return B().sonnet55}function t1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let $=R0();if(V()==="mistral")return $||"ministral-3b-latest";if(V()==="openai")return $||"gpt-4o-mini";if(V()==="codex")return $||"gpt-5.5";if(V()==="github")return $||"github:copilot";if(V()==="gemini")return $||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return $||"MiniMax-M2.5-highspeed";return B().haiku45}function f7($){let{permissionMode:J,mainLoopModel:Z,exceeds200kTokens:Q=!1}=$;if(q2()==="opusplan"&&J==="plan"&&!Q)return $0();if(q2()==="haiku"&&J==="plan")return h0();return Z}function T0(){let $=R0();if(V()==="github"){let J=D()||{};return H5(J.model)||$||"github:copilot"}if(V()==="gemini")return $||"gemini-2.0-flash";if(V()==="mistral")return $||"devstral-latest";if(V()==="openai")return $||"gpt-4o";if(V()==="codex")return $||"gpt-5.5";if(j2()||W2()){let J=$0();return J+($2()&&!z5(J)?"[1m]":"")}return h0()}function s1(){return T(T0())}function R($){if($=$.toLowerCase(),$.includes("claude-fable-5-1"))return"claude-fable-5-1";if($.includes("claude-fable-5"))return"claude-fable-5";if($.includes("claude-opus-5-5")||$.includes("claude-opus-5.5"))return"claude-opus-5-5";if($.includes("claude-opus-5"))return"claude-opus-5";if($.includes("claude-opus-4-8"))return"claude-opus-4-8";if($.includes("claude-opus-4-7"))return"claude-opus-4-7";if($.includes("claude-opus-4-6"))return"claude-opus-4-6";if($.includes("claude-opus-4-5"))return"claude-opus-4-5";if($.includes("claude-opus-4-1"))return"claude-opus-4-1";if($.includes("claude-opus-4"))return"claude-opus-4";if($.includes("claude-sonnet-5-5")||$.includes("claude-sonnet-5.5"))return"claude-sonnet-5-5";if($.includes("claude-sonnet-5"))return"claude-sonnet-5";if($.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if($.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if($.includes("claude-sonnet-4"))return"claude-sonnet-4";if($.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if($.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if($.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if($.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if($.includes("claude-3-opus"))return"claude-3-opus";if($.includes("claude-3-sonnet"))return"claude-3-sonnet";if($.includes("claude-3-haiku"))return"claude-3-haiku";let J=$.match(/(claude-(\d+-\d+-)?\w+)/);if(J&&J[1])return J[1];return $}function F($){return R(r0($))}function q$($=!1){if(j2()||W2())return`Opus 5.5 · Most capable for complex work${$?X$(!0):""}`;return"Sonnet 5.5 · Best for everyday tasks"}function u7($){if($==="opusplan")return"Opus 5.5 in plan mode, else Sonnet 5.5";return j$(T($))}function p7($){if(V()!=="firstParty")return"";let J=x5(J2($));return` ·${$?` (${G5})`:""} ${J}`}function g7($){if(V()!=="firstParty")return"";let J=x5(Z2($));return` ·${$?` (${G5})`:""} ${J}`}function X$($){if(V()!=="firstParty")return"";let J=x5(Q2($));return` ·${$?` (${G5})`:""} ${J}`}function $2(){if(J0()||a1()||V()!=="firstParty")return!1;if(S()&&n()===null)return!1;return!0}function V$($){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(u5[$])return u5[$];if(V()==="github"){let{getCopilotDisplayName:J}=(P0(),v0(N0));return J($)??null}return null}switch($){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable51:return"Fable 5.1";case B().opus55:return"Opus 5.5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet55:return"Sonnet 5.5";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function j$($){let J=V$($);if(J)return J;if($==="github:copilot")return"GPT-4o";return $}function T($){let J=H5($);if(!J)return h0();let Z=J.toLowerCase(),Q=d(Z),Y=Q?Z.replace(/\[1m]$/i,"").trim():Z;if(c(Y)){let q=(X)=>Q&&!z5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(h0());case"sonnet":return q(h0());case"haiku":return q(t1());case"opus":return q($0());case"best":return Y$();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return B().fable51;if(V()==="firstParty"&&z$(Y)&&B$())return $0()+(Q?"[1m]":"");if(Q)return J.replace(/\[1m\]$/i,"").trim()+"[1m]";return J}function m7($,J){if(d($)||!d(J))return $;if(X2(T($)))return $+"[1m]";return $}function z$($){return W$.includes($)}function B$(){return!w(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function c7($){if($===null){if(S())return`Default (${q$()})`;return`Default (${s1()})`}let J=T($);return $===J?J:`${$} (${J})`}function d7($){if(V()==="foundry")return;let J=$.toLowerCase().includes("[1m]"),Z=F($);if(Z.includes("claude-fable-5-1"))return"Fable 5.1";if(Z.includes("claude-fable-5"))return"Fable 5";if(Z.includes("claude-opus-5-5"))return"Opus 5.5";if(Z.includes("claude-opus-5"))return"Opus 5";if(Z.includes("claude-opus-4-8"))return J?"Opus 4.8 (with 1M context)":"Opus 4.8";if(Z.includes("claude-opus-4-7"))return J?"Opus 4.7 (with 1M context)":"Opus 4.7";if(Z.includes("claude-opus-4-6"))return J?"Opus 4.6 (with 1M context)":"Opus 4.6";if(Z.includes("claude-opus-4-5"))return"Opus 4.5";if(Z.includes("claude-opus-4-1"))return"Opus 4.1";if(Z.includes("claude-opus-4"))return"Opus 4";if(Z.includes("claude-sonnet-5-5"))return"Sonnet 5.5";if(Z.includes("claude-sonnet-5"))return"Sonnet 5";if(Z.includes("claude-sonnet-4-6"))return J?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(Z.includes("claude-sonnet-4-5"))return J?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(Z.includes("claude-sonnet-4"))return J?"Sonnet 4 (with 1M context)":"Sonnet 4";if(Z.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(Z.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(Z.includes("claude-haiku-4-5"))return"Haiku 4.5";if(Z.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function n7($){return $.replace(/\[(1|2)m\]/gi,"")}function i7($){let J=F($);return J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")||J.includes("sonnet-5")}var W$;var H0=G(()=>{o();r();X0();l1();Y0();V2();f();Q$();o0();f1();V0();u();Z$();m1();Y2();p5();W$=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z2($){return}var r1=()=>{};function R$($,J={}){if(J.isPro??(G$.test($)||o1.has($)))return!1;if(x$.has($))return!0;if(o1.has($))return!1;let Q=$.match(H$);return Q?Number.parseFloat(Q[1])>5.4:!1}function s7(){return R5.filter(($)=>R$($.id,{isPro:$.isPro}))}var R5,x$,o1,H$,G$,e1,$4;var J4=G(()=>{R5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],x$=new Set(R5.filter(($)=>!$.isPro).map(($)=>$.id)),o1=new Set(["gpt-5.5-pro"]),H$=/^gpt-(\d+\.\d+)/,G$=/-pro$/;e1=Object.fromEntries(R5.filter(($)=>$.contextInput!==void 0).map(($)=>[$.id,$.contextInput])),$4=Object.fromEntries(R5.filter(($)=>$.contextOutput!==void 0).map(($)=>[$.id,$.contextOutput]))});var j4={};u2(j4,{prefetchOpenAICompatibleModels:()=>P$,getDiscoveredContextWindow:()=>w$,discoverOpenAICompatibleModelOptions:()=>V4});function w$($){return q4.get($)}function K$(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function X4($){try{let J=new URL($).hostname.toLowerCase();return J.endsWith(".openai.azure.com")||J.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function L$($){try{return new URL($).hostname.toLowerCase().includes("bankr")}catch{return!1}}function F$($){let J=L()?.apiKey?.trim();if(!J)return{};if(L$($))return{"X-API-Key":J};let Z={Authorization:`Bearer ${J}`};if(X4($))Z["api-key"]=J;return Z}function D$($){let J=$.endsWith("/v1")?`${$}/models`:`${$}/v1/models`,Z=`${$}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&X4($)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if(J===Z)return[Y(J)];return[Y(J),Y(Z)]}function k$($){try{let J=new URL($),Z=J.pathname.replace(/\/+$/,""),Y=`${Z.endsWith("/v1")?Z.slice(0,-3):Z}/api/tags`.replace(/\/{2,}/g,"/");return`${J.origin}${Y}`}catch{return null}}function b$($){if($>=1e6)return`${$/1e6}M ctx`;if($>=1000)return`${Math.round($/1000)}K ctx`;return`${$} ctx`}async function U$($,J){let Z=new Set;for(let Q of $)try{let Y=await N.get(Q,{headers:J,timeout:Y4}),q=[];for(let X of Y.data?.data??[]){let j=X.id?.trim();if(!j||Z.has(j))continue;Z.add(j);let z=X.name?.trim()||j,x=X.context_length??null;if(x&&x>0)q4.set(j,x);let H=x?` · ${b$(x)}`:"";q.push({value:j,label:z,description:`${j}${H}`})}if(q.length>0)return q.sort((X,j)=>{let z=String(X.value).split("/")[0]??"",x=String(j.value).split("/")[0]??"",H=z.localeCompare(x);return H!==0?H:String(X.value).localeCompare(String(j.value))}),q}catch{W(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function N$($,J){try{let Z=await N.get($,{headers:J,timeout:Y4}),Q=new Set;return(Z.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return W(`[ModelDiscovery] Failed to fetch Ollama models from ${$}`),[]}}async function V4(){if(V()!=="openai")return[];let $=K$(),J=F$($),Z=await U$(D$($),J);if(Z.length>0)return Z;let Q=k$($);if(Q)return N$(Q,J);return[]}function P$(){if(A0)return A0;return A0=(async()=>{if(!Q4()?.startsWith("openai:"))return;try{let J=await V4();if(J.length>0)Z4(J)}catch{}finally{A0=null}})(),A0}var Y4=5000,q4,A0=null;var W4=G(()=>{e0();r();m2();a();u();l1();q4=new Map});function B4($,J,Z){let Q=L()?.model?.trim();if(Q&&Q!==Z){let q=`${Q}:${Z}`;if(J[q]!==void 0)return J[q];if($[q]!==void 0)return $[q]}let Y=z4(J,Z);if(Y!==void 0)return Y;return z4($,Z)}function z4($,J){if($[J]!==void 0)return $[J];let Z=Object.keys($).sort((Q,Y)=>Y.length-Q.length);for(let Q of Z)if(J.startsWith(Q))return $[Q];return}function x4($){try{let{getDiscoveredContextWindow:Z}=(W4(),v0(j4)),Q=Z($);if(Q!==void 0)return Q}catch{}let J=B4(v$,y$,$);if(J!==void 0)return J;try{let{getCatalogCopilotContextWindow:Z}=(P0(),v0(N0));return Z($)}catch{return}}function H4($){let J=B4(E$,O$,$);if(J!==void 0)return J;try{let{getCatalogCopilotMaxOutputTokens:Z}=(P0(),v0(N0));return Z($)}catch{return}}var v$,E$,y$,O$;var G4=G(()=>{r();J4();v$={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...e1,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},E$={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...$4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},y$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})(),O$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})()});function R4(){let $=L()?.transport;return $==="openai_compat"||$==="gemini"||$==="mistral"||$==="github_copilot"||$==="codex_responses"}function J0(){return w(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function d($){if(J0())return!1;return/\[1m\]/i.test($)}function X2($){if(J0())return!1;let J=F($);return J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("opus-4-6")||J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")}function G9($,J){if(d($))return 1e6;if(R4()){let Q=x4($);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${$}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),_$}let Z=z2($);if(Z?.max_input_tokens&&Z.max_input_tokens>=1e5){if(Z.max_input_tokens>B2&&J0())return B2;return Z.max_input_tokens}if(!J0()&&(F($).includes("fable-5")||F($).includes("sonnet-5")||F($).includes("opus-5")))return 1e6;if(J?.includes(O0)&&X2($))return 1e6;if(h$($))return 1e6;return B2}function h$($){if(J0())return!1;if(d($))return!1;if(!F($).includes("sonnet-4-6"))return!1;return b().clientDataCache?.coral_reef_sonnet==="true"}function R9($,J){if(!$)return{used:null,remaining:null};let Z=$.input_tokens+$.cache_creation_input_tokens+$.cache_read_input_tokens,Q=Math.round(Z/J*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function w9($){let J,Z;if(R4()){let q=H4($);if(q!==void 0)return{default:q,upperLimit:q}}let Q=F($);if(Q.includes("opus-5-5")||Q.includes("sonnet-5-5"))J=128000,Z=128000;else if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("sonnet-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))J=64000,Z=128000;else if(Q.includes("sonnet-4-6"))J=32000,Z=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))J=32000,Z=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))J=32000,Z=32000;else if(Q.includes("claude-3-opus"))J=4096,Z=4096;else if(Q.includes("claude-3-sonnet"))J=8192,Z=8192;else if(Q.includes("claude-3-haiku"))J=4096,Z=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))J=8192,Z=8192;else if(Q.includes("3-7-sonnet"))J=32000,Z=64000;else J=T$,Z=I$;let Y=z2($);if(Y?.max_tokens&&Y.max_tokens>=4096)Z=Y.max_tokens,J=Math.min(J,Z);return{default:J,upperLimit:Z}}var B2=200000,_$,H9=20000,T$=32000,I$=64000;var V2=G(()=>{X5();r();X0();f();H0();r1();G4();_$=(()=>{let $=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN($)&&$>0?$:128000})()});var A$,w4;var K4=G(()=>{g0();u();A$=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],w4=_(($,J)=>{if(V()==="firstParty")return;let Z=$.toLowerCase();for(let Q of A$){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(Z!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes(J)}return},($,J)=>`${$.toLowerCase()}:${J}`)});function S$($){if($.provider!=="firstParty"||!$.profileIsFirstParty)return!1;if(!$.envBaseUrl||$.assumeFirstParty)return!0;try{return new URL($.envBaseUrl).host===M$}catch{return!1}}function H2(){return S$({provider:V(),profileIsFirstParty:i2(),envBaseUrl:process.env.ANTHROPIC_BASE_URL,assumeFirstParty:w(process.env.CLAUDIN_ASSUME_FIRST_PARTY_BASE_URL)})}function w5($){return!M0.has($)&&!w(process.env[x2[$].killswitch])&&H2()}function N9($){return M0.has($)}function P9($){M0.add($)}function v9($){if(M0.size===0)return[...$];let J=new Set([...M0].map((Z)=>x2[Z].header));return $.filter((Z)=>!J.has(Z))}function E9($,J){if($!==400||!J)return null;let Z=C$.exec(J)?.[1];if(Z!==void 0){for(let[Q,{header:Y}]of Object.entries(x2))if(Y&&Z.includes(Y))return Q;return null}if(f$.test(J))return"thinkingDisplayUpdates";if(u$.test(J))return"cacheDiagnosis";if(p$.test(J))return"contextManagement";return null}var x2,M$="api.anthropic.com",M0,C$,f$,u$,p$;var L4=G(()=>{X5();f();u();x2={thinkingDisplayUpdates:{header:w1,killswitch:"CLAUDIN_DISABLE_THINKING_DISPLAY_UPDATES"},thinkingTokenCount:{header:z0,killswitch:"CLAUDIN_DISABLE_THINKING_TOKEN_COUNT"},contextManagement:{header:Y5,killswitch:"CLAUDIN_DISABLE_CONTEXT_MANAGEMENT"},promptCachingScope:{header:q5,killswitch:"CLAUDIN_DISABLE_PROMPT_CACHING_SCOPE"},cacheDiagnosis:{header:K1,killswitch:"CLAUDIN_DISABLE_CACHE_DIAGNOSIS"},afkMode:{header:D1,killswitch:"CLAUDIN_DISABLE_AFK_MODE_BETA"}};M0=new Set;C$=/Unexpected value\(s\) (.+?) for the `anthropic-beta` header/,f$=/\bthinking\.(?:adaptive|enabled)\.display:/,u$=/\bdiagnostics(?:\.[a-z_]+)*:/,p$=/\bcontext_management(?:\.[a-z_0-9]+)*:/});function g$($){let J=[],Z=[];for(let Q of $)if(D4.includes(Q))J.push(Q);else Z.push(Q);return{allowed:J,disallowed:Z}}function m9($){if(!$||$.length===0)return;if(S()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:J,disallowed:Z}=g$($);for(let Q of Z)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${D4.join(", ")}`);return J.length>0?J:void 0}function G2($){let J=w4($,"interleaved_thinking");if(J!==void 0)return J;let Z=F($),Q=V();if(Q==="foundry")return!0;if(Q==="firstParty")return!Z.includes("claude-3-");return Z.includes("claude-opus-4")||Z.includes("claude-opus-5")||Z.includes("claude-sonnet-5")||Z.includes("claude-sonnet-4")}function m$($){let J=F($);return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("claude-haiku-4")}function c$($){let J=F($),Z=V();if(Z==="foundry")return!0;if(Z==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("claude-haiku-4")}function c9($){let J=F($),Z=V();if(Z!=="firstParty"&&Z!=="foundry")return!1;return J.includes("claude-fable-5")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4-6")||J.includes("claude-sonnet-4-5")||J.includes("claude-opus-4-1")||J.includes("claude-opus-4-5")||J.includes("claude-opus-4-6")||J.includes("claude-opus-4-7")||J.includes("claude-opus-4-8")||J.includes("claude-haiku-4-5")}function d$($){if(V()!=="firstParty")return!1;let J=F($);return J.includes("claude-opus-5-5")||J.includes("claude-fable-5-1")||J.includes("claude-sonnet-5-5")}function d9($){let J=F($);if(!J.startsWith("claude-"))return!1;if(J.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test(J))return!1;return!0}function n9(){let $=V();if($==="vertex"||$==="bedrock")return G1;return H1}function n$(){return(V()==="firstParty"||V()==="foundry")&&!w(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function i9(){if(w(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!w(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function l9($,J){let Z=[...k4($)];if(J?.isAgenticQuery){if(!Z.includes(Q5))Z.push(Q5)}let Q=F4();if(!Q||Q.length===0)return Z;return[...Z,...Q.filter((Y)=>!Z.includes(Y))]}function b4(){R2.cache?.clear?.(),k4.cache?.clear?.(),i$.cache?.clear?.()}var D4,R2,k4,i$;var U4=G(()=>{g0();o();X5();y0();Y0();V2();f();H0();K4();u();V0();L4();D4=[O0];R2=_(($)=>{let J=[],Z=F($).includes("haiku"),Q=V(),Y=n$();if(!Z)J.push(Q5);if(S())J.push(j5);if(d($))J.push(O0);if(!w(process.env.DISABLE_INTERLEAVED_THINKING)&&G2($))J.push(x1);if(Y&&G2($)&&!M()&&D().showThinkingSummaries!==!0&&!H2())J.push(R1),J.push(z0);if(G2($)&&w5("thinkingTokenCount")&&!J.includes(z0))J.push(z0);let q=c$($);if((Y||w5("contextManagement"))&&q)J.push(Y5);if(d$($))J.push(L1);if(Y&&w(process.env.CLAUDIN_JSON_TOOL_USE))J.push(F1);if(Q==="vertex"&&m$($))J.push(a5);if(Q==="foundry")J.push(a5);if(Y||w5("promptCachingScope"))J.push(q5);if(process.env.ANTHROPIC_BETAS)J.push(...process.env.ANTHROPIC_BETAS.split(",").map((X)=>X.trim()).filter(Boolean));return J}),k4=_(($)=>{let J=R2($);if(V()==="bedrock")return J.filter((Z)=>!r5.has(Z));return J}),i$=_(($)=>{return R2($).filter((Z)=>r5.has(Z))})});import{execFile as l$}from"child_process";function N4($){return new Promise((J)=>{l$("security",["find-generic-password","-a",L5(),"-w","-s",$],{encoding:"utf-8",timeout:t$},(Z,Q)=>{J({stdout:Z?null:Q?.trim()||null,timedOut:Boolean(Z&&"killed"in Z&&Z.killed)})})})}function o9(){if(process.platform!=="darwin"||K5||C())return;let $=N4(g(P4)),J=N4(g());K5=Promise.all([$,J]).then(([Z,Q])=>{if(!Z.timedOut)v4(Z.stdout);if(!Q.timedOut)w2={stdout:Q.stdout}})}async function e9(){if(K5)await K5}function E4(){return w2}function K2(){w2=null}var t$=1e4,w2=null,K5=null;var y4=G(()=>{f();l5()});function JQ(){return O4}function _4(){O4.clear()}var O4;var T4=G(()=>{O4=new Map});import{exec as m4}from"child_process";import{mkdir as ZJ,stat as QJ}from"fs/promises";import{join as YJ}from"path";function D5(){return w(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function u0(){if(C())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let $=D2(),Z=(D()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||Z||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=N2({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!($||Q&&!D5()||q&&!D5())}function c4(){if(C()){if(Z0())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(Z5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(Z0()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let Z=K();if(L0(Z?.scopes)&&Z?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function _1(){let{key:$}=N2();return $}function N2($={}){let J=(()=>{let X=L();if(X?.transport!=="anthropic")return;let j=X.apiKey?.trim();return j&&j.length>0?j:void 0})();if(C()){if(J)return{key:J,source:"ANTHROPIC_API_KEY"};if(Z0())return{key:$.skipRetrievingKeyFromApiKeyHelper?null:h4(),source:"apiKeyHelper"};return{key:null,source:"none"}}let Z=J;if(V5()&&Z)return{key:Z,source:"ANTHROPIC_API_KEY"};if(w(process.env.CI)){let X=i5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!D2()&&!Z&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(Z&&!D2())return{key:Z,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(Z&&b().customApiKeyResponses?.approved?.includes(t5(Z)))return{key:Z,source:"ANTHROPIC_API_KEY"};let Q=i5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(Z0()){if($.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:h4(),source:"apiKeyHelper"}}let q=y2();if(q)return q;return{key:null,source:"none"}}function Z0(){if(C())return E("flagSettings")?.apiKeyHelper;return(D()||{}).apiKeyHelper}function d4(){let $=Z0();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.apiKeyHelper===$||Z?.apiKeyHelper===$}function P2(){return(D()||{}).awsAuthRefresh}function n4(){let $=P2();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsAuthRefresh===$||Z?.awsAuthRefresh===$}function v2(){return(D()||{}).awsCredentialExport}function i4(){let $=v2();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsCredentialExport===$||Z?.awsCredentialExport===$}function XJ(){let $=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if($){let J=parseInt($,10);if(!Number.isNaN(J)&&J>=0)return J;W(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${$}`,{level:"error"})}return qJ}function MQ(){let $=p?.startedAt;return $?Date.now()-$:0}async function VJ($){if(!Z0())return null;let J=XJ();if(O){if(Date.now()-O.timestamp<J)return O.value;if(!p)p={promise:I4($,!1,K0),startedAt:null};return O.value}if(p)return p.promise;return p={promise:I4($,!0,K0),startedAt:Date.now()},p.promise}async function I4($,J,Z){try{let Q=await jJ($);if(Z!==K0)return Q;if(Q!==null)O={value:Q,timestamp:Date.now()};return Q}catch(Q){if(Z!==K0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),W(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!J&&O&&O.value!==" ")return O={...O,timestamp:Date.now()},O.value;return O={value:" ",timestamp:Date.now()}," "}finally{if(Z===K0)p=null}}async function jJ($){let J=Z0();if(!J)return null;if(d4()){if(!i()&&!$){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("apiKeyHelper invoked before trust check",q),null}}let Z=await W0(J,{shell:!0,timeout:600000,reject:!1});if(Z.failed){let Y=Z.timedOut?"timed out":`exited ${Z.exitCode}`,q=Z.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=Z.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function h4(){return O?.value??null}function SQ(){K0++,O=null,p=null}function CQ($){if(d4()&&!i())return;VJ($)}async function zJ(){let $=P2();if(!$)return!1;if(n4()){if(!i()&&!M()){let Z=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("awsAuthRefresh invoked before trust check",Z),!1}}try{return W("Fetching AWS caller identity for AWS auth refresh command"),await s5(),W("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return xJ($)}}function xJ($){W("Running AWS auth refresh command");let J=I.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=m4($,{timeout:BJ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)J.addOutput(q),W(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)J.setError(q),W(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)W("AWS auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let j=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(j),J.endAuthentication(!1),Z(!1)}})})}async function HJ(){let $=v2();if(!$)return null;if(i4()){if(!i()&&!M()){let Z=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("awsCredentialExport invoked before trust check",Z),null}}try{return W("Fetching AWS caller identity for credential export command"),await s5(),W("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{W("Running AWS credential export command");let J=await W0($,{shell:!0,reject:!1});if(J.exitCode!==0||!J.stdout)throw Error("awsCredentialExport did not return a valid value");let Z=S4(J.stdout.trim());if(!V1(Z))throw Error("awsCredentialExport did not return valid AWS STS output structure");return W("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:Z.Credentials.AccessKeyId,secretAccessKey:Z.Credentials.SecretAccessKey,sessionToken:Z.Credentials.SessionToken}}catch(J){let Z=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if(J instanceof Error)console.error(Z,J.message);else console.error(Z,J);return null}}}function fQ(){F0.cache.clear()}function E2(){return(D()||{}).gcpAuthRefresh}function l4(){let $=E2();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.gcpAuthRefresh===$||Z?.gcpAuthRefresh===$}async function RJ(){try{let{GoogleAuth:$}=await import("google-auth-library"),J=new $({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),Z=(async()=>{await(await J.getClient()).getAccessToken()})(),Q=U2(GJ).then(()=>{throw new o4("GCP credentials check timed out")});return await Promise.race([Z,Q]),!0}catch{return!1}}async function KJ(){let $=E2();if(!$)return!1;if(l4()){if(!i()&&!M()){let Z=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return f0("gcpAuthRefresh invoked before trust check",Z),!1}}try{if(W("Checking GCP credentials validity for auth refresh"),await RJ())return W("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return FJ($)}function FJ($){W("Running GCP auth refresh command");let J=I.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=m4($,{timeout:LJ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)J.addOutput(q),W(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)J.setError(q),W(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)W("GCP auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let j=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(j),J.endAuthentication(!1),Z(!1)}})})}function uQ(){t4.cache.clear()}function pQ(){if(!E2())return;if(l4()){if(!i()&&!M())return}t4()}function gQ(){let $=P2(),J=v2();if(!$&&!J)return;if(n4()||i4()){if(!i()&&!M())return}F0(),B()}function DJ($){return/^[a-zA-Z0-9-_]+$/.test($)}async function s4($){if(!DJ($))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await a4();let J=!1;if(process.platform==="darwin")try{let Q=g(),Y=L5(),q=Buffer.from($,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
+
`;await W0("security",["-i"],{input:X,reject:!1}),J=!0}catch(Q){k(Q)}let Z=t5($);h((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:J?Q.primaryApiKey:$,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(Z)?Y:[...Y,Z],rejected:Q.customApiKeyResponses?.rejected??[]}}}),y2.cache.clear?.(),K2()}async function mQ(){await a4(),h(($)=>({...$,primaryApiKey:void 0})),y2.cache.clear?.(),K2()}async function a4(){try{await q1()}catch($){k($)}}function kJ($){if(!L0($.scopes))return{success:!0};if(!$.refreshToken||!$.expiresAt)return{success:!0};let J=k5();try{let Z=J.read()||{},Q=Z.claudeAiOauth;Z.claudeAiOauth={accessToken:$.accessToken,refreshToken:$.refreshToken,expiresAt:$.expiresAt,scopes:$.scopes,subscriptionType:$.subscriptionType??Q?.subscriptionType??null,rateLimitTier:$.rateLimitTier??Q?.rateLimitTier??null};let Y=J.update(Z);return K.cache?.clear?.(),b4(),_4(),Y}catch(Z){return k(Z),{success:!1,warning:"Failed to save OAuth tokens"}}}function r4(){K.cache?.clear?.(),w0()}async function bJ(){try{let{mtimeMs:$}=await QJ(YJ(k2(),".credentials.json"));if($!==A4)A4=$,r4()}catch{K.cache?.clear?.()}}function T1($){let J=L2.get($);if(J)return J;let Z=UJ($).finally(()=>{L2.delete($)});return L2.set($,Z),Z}async function UJ($){r4();let J=await F5();if(!J?.refreshToken)return!1;if(J.accessToken!==$)return!0;return b5(0,!0)}async function F5(){if(C())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||Z5())return K();try{let Z=(await k5().readAsync())?.claudeAiOauth;if(!Z?.accessToken)return null;return Z}catch($){return k($),null}}function b5($=0,J=!1){if($===0&&!J){if(S0)return S0;return S0=F2($,J).finally(()=>{S0=null}),S0}return F2($,J)}async function F2($,J){await bJ();let Q=K();if(!J){if(!Q?.refreshToken||!C0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!L0(Q.scopes))return!1;K.cache?.clear?.(),w0();let Y=await F5();if(!Y?.refreshToken||!C0(Y.expiresAt))return!1;let q=k2();await ZJ(q,{recursive:!0});let X;try{X=await f4(q)}catch(j){if(j.code==="ELOCKED"){if($<5)return await U2(1000+Math.random()*1000),F2($+1,J);return!1}return k(j),!1}try{K.cache?.clear?.(),w0();let j=await F5();if(!j?.refreshToken||!C0(j.expiresAt))return!1;let z=await p4(j.refreshToken,{scopes:L0(j.scopes)?void 0:j.scopes});return kJ(z),K.cache?.clear?.(),w0(),!0}catch(j){k(j),K.cache?.clear?.(),w0();let z=await F5();if(z&&!C0(z.expiresAt))return!0;return!1}finally{await X()}}function S(){if(!u0())return!1;return L0(K()?.scopes)}function x0(){return K()?.scopes?.includes(C4)??!1}function cQ(){{let $=L()?.transport;if($==="bedrock"||$==="vertex"||$==="foundry")return!1}if(S())return!1;return!0}function M4(){return u0()?b().oauthAccount:void 0}function n(){if(!u0())return null;let $=K();if(!$)return null;return $.subscriptionType??null}function j2(){return n()==="max"}function dQ(){return n()==="team"}function W2(){return n()==="team"&&NJ()==="default_claude_max_5x"}function nQ(){return n()==="enterprise"}function a1(){return n()==="pro"}function NJ(){if(!u0())return null;let $=K();if(!$)return null;return $.rateLimitTier??null}function PJ(){switch(n()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function D2(){let $=L()?.transport;if(!$)return!1;return $!=="anthropic"}function iQ(){if(V()!=="firstParty")return;let{source:J}=c4(),Z={};if(J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")Z.tokenSource=J;else if(S())Z.subscription=PJ();else Z.tokenSource=J;let{key:Q,source:Y}=N2();if(Q)Z.apiKeySource=Y;if(J==="claude.ai"||Y==="/login managed key"){let X=M4()?.organizationName;if(X)Z.organization=X}let q=M4()?.emailAddress;if((J==="claude.ai"||Y==="/login managed key")&&q)Z.email=q;return Z}async function lQ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!u0())return{valid:!0};let $=E("policySettings")?.forceLoginOrgUUID;if(!$)return{valid:!0};await b5();let J=K();if(!J)return{valid:!0};let{source:Z}=c4(),Q=Z==="CLAUDE_CODE_OAUTH_TOKEN"||Z==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await j0(J.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${$} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===$)return{valid:!0};if(Q)return{valid:!1,message:`The ${Z==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${$}
|
|
10
|
+
Token organization: ${q}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
+
but this machine requires organization ${$}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var qJ=300000,O=null,p=null,K0=0,WJ=3600000,BJ=180000,F0,GJ=5000,wJ=3600000,LJ=180000,t4,y2,K,A4=0,L2,S0=null,o4;var Y0=G(()=>{a$();Y1();g0();y0();o0();u();o();r();g4();d5();Q1();X1();W1();B1();U4();X0();a();f();e$();o$();m0();r$();$J();y4();l5();V0();JJ();s$();T4();F0=b2(async()=>{let $=await zJ(),J=await HJ();if($||J)await j1();return J},WJ);t4=b2(async()=>{return await KJ()},wJ);y2=_(()=>{if(C())return null;if(process.platform==="darwin"){let J=E4();if(J){if(J.stdout)return{key:J.stdout,source:"/login managed key"}}else{let Z=g();try{let Q=u4(`security find-generic-password -a $USER -w -s "${Z}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let $=b();if(!$.primaryApiKey)return null;return{key:$.primaryApiKey,source:"/login managed key"}});K=_(()=>{if(C())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let $=Z5();if($)return{accessToken:$,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=k5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch(J){return k(J),null}});L2=new Map;o4=class o4 extends Error{}});function L0($){return Boolean($?.includes(O2))}function vJ($){return $?.split(" ").filter(Boolean)??[]}function J3({codeChallenge:$,state:J,port:Z,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:j,loginMethod:z}){let x=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(x);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${Z}/callback`);let Q0=q?[O2]:J8;if(H.searchParams.append("scope",Q0.join(" ")),H.searchParams.append("code_challenge",$),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",J),X)H.searchParams.append("orgUUID",X);if(j)H.searchParams.append("login_hint",j);if(z)H.searchParams.append("login_method",z);return H.toString()}async function Z3($,J,Z,Q,Y=!1,q){let X={grant_type:"authorization_code",code:$,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:Z,state:J};if(q!==void 0)X.expires_in=q;let j=await N.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(j.status!==200)throw Error(j.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${j.status}): ${j.statusText}`);return j.data}async function p4($,{scopes:J}={}){let Z={grant_type:"refresh_token",refresh_token:$,client_id:U().CLIENT_ID,scope:((J?.length)?J:$8).join(" ")};try{let Q=await N.post(U().TOKEN_URL,Z,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=$,expires_in:j}=Y,z=Date.now()+j*1000,x=vJ(Y.scope),H=b(),Q0=K(),P=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&Q0?.subscriptionType!=null&&Q0?.rateLimitTier!=null?null:await EJ(q);if(P&&H.oauthAccount){let l={};if(P.displayName!==void 0)l.displayName=P.displayName;if(typeof P.hasExtraUsageEnabled==="boolean")l.hasExtraUsageEnabled=P.hasExtraUsageEnabled;if(P.billingType!==null)l.billingType=P.billingType;if(P.accountCreatedAt!==void 0)l.accountCreatedAt=P.accountCreatedAt;if(P.subscriptionCreatedAt!==void 0)l.subscriptionCreatedAt=P.subscriptionCreatedAt;if(Object.keys(l).length>0)h((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...l}:p0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:z,scopes:x,subscriptionType:P?.subscriptionType??Q0?.subscriptionType??null,rateLimitTier:P?.rateLimitTier??Q0?.rateLimitTier??null,profile:P?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=N.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw Q}}async function Q3($){let J=await N.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${$}`}});if(J.status!==200)throw Error(`Failed to fetch user roles: ${J.statusText}`);let Z=J.data;if(!b().oauthAccount)throw Error("OAuth account information not found in config");h((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:Z.organization_role,workspaceRole:Z.workspace_role,organizationName:Z.organization_name}:Y.oauthAccount}))}async function Y3($){try{let Z=(await N.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${$}`}})).data?.raw_key;if(Z)return await s4(Z),Z;return null}catch(J){throw J}}function C0($){if($===null)return!1;let J=300000;return Date.now()+J>=$}async function EJ($){let J=await j0($),Z=J?.organization?.organization_type,Q=null;switch(Z){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:J?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:J?.organization?.has_extra_usage_enabled??null,billingType:J?.organization?.billing_type??null};if(J?.account?.display_name)Y.displayName=J.account.display_name;if(J?.account?.created_at)Y.accountCreatedAt=J.account.created_at;if(J?.organization?.subscription_created_at)Y.subscriptionCreatedAt=J.organization.subscription_created_at;return{...Y,rawProfile:J}}async function q3(){let J=b().oauthAccount?.organizationUuid;if(J)return J;let Z=K()?.accessToken;if(Z===void 0||!x0())return null;let Y=(await j0(Z))?.organization?.uuid;if(!Y)return null;return Y}async function X3(){let $=process.env.CLAUDE_CODE_ACCOUNT_UUID,J=process.env.CLAUDE_CODE_USER_EMAIL,Z=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean($&&J&&Z);if($&&J&&Z){if(!b().oauthAccount)e4({accountUuid:$,emailAddress:J,organizationUuid:Z})}await b5();let Y=b();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!S()||!x0())return!1;let q=K();if(q?.accessToken){let X=await j0(q.accessToken),j=X?.account,z=X?.organization;if(j){if(Q)W("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return e4({accountUuid:j.uuid,emailAddress:j.email??"",organizationUuid:z?.uuid,displayName:j.display_name||void 0,hasExtraUsageEnabled:z?.has_extra_usage_enabled??!1,billingType:z?.billing_type??void 0,accountCreatedAt:j.created_at,subscriptionCreatedAt:z?.subscription_created_at??void 0}),!0}}return!1}function e4({accountUuid:$,emailAddress:J,organizationUuid:Z,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:j}){let z={accountUuid:$,emailAddress:J,organizationUuid:Z,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:j};if(Q)z.displayName=Q;h((x)=>{if(x.oauthAccount?.accountUuid===z.accountUuid&&x.oauthAccount?.emailAddress===z.emailAddress&&x.oauthAccount?.organizationUuid===z.organizationUuid&&x.oauthAccount?.displayName===z.displayName&&x.oauthAccount?.hasExtraUsageEnabled===z.hasExtraUsageEnabled&&x.oauthAccount?.billingType===z.billingType&&x.oauthAccount?.accountCreatedAt===z.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===z.subscriptionCreatedAt)return x;return{...x,oauthAccount:z}})}var g4=G(()=>{e0();y0();Y0();X0();a();d5()});
|
|
16
|
+
export{o9 as F1,e9 as G1,y4 as H1,_2 as I1,T2 as J1,MJ as K1,SJ as L1,q8 as M1,j8 as N1,CJ as O1,M2 as P1,c0 as Q1,k0 as R1,f5 as S1,c5 as T1,G8 as U1,P0 as V1,V as W1,tJ as X1,D8 as Y1,sJ as Z1,i2 as _1,u as $1,B as a2,YZ as b2,o0 as c2,j0 as d2,d5 as e2,L0 as f2,vJ as g2,J3 as h2,Z3 as i2,p4 as j2,Q3 as k2,Y3 as l2,C0 as m2,EJ as n2,q3 as o2,X3 as p2,e4 as q2,g4 as r2,wZ as s2,_8 as t2,a2 as u2,Q1 as v2,t5 as w2,X1 as x2,bZ as y2,W1 as z2,I as A2,B1 as B2,O0 as C2,Y5 as D2,vZ as E2,EZ as F2,yZ as G2,q5 as H2,OZ as I2,_Z as J2,R1 as K2,w1 as L2,K1 as M2,L1 as N2,D1 as O2,TZ as P2,IZ as Q2,X5 as R2,y as S2,N1 as T2,h8 as U2,iZ as V2,lZ as W2,tZ as X2,P1 as Y2,sZ as Z2,aZ as _2,A8 as $2,rZ as a3,oZ as b3,eZ as c3,$7 as d3,J7 as e3,C8 as f3,Z7 as g3,Q7 as h3,Y7 as i3,q7 as j3,O1 as k3,I1 as l3,I0 as m3,g8 as n3,c8 as o3,d8 as p3,J2 as q3,r8 as r3,B7 as s3,x5 as t3,f1 as u3,o8 as v3,Y2 as w3,g1 as x3,m1 as y3,M7 as z3,S7 as A3,z5 as B3,q2 as C3,C7 as D3,Y$ as E3,$0 as F3,h0 as G3,t1 as H3,f7 as I3,T0 as J3,s1 as K3,R as L3,F as M3,q$ as N3,u7 as O3,p7 as P3,g7 as Q3,X$ as R3,$2 as S3,V$ as T3,j$ as U3,T as V3,m7 as W3,B$ as X3,c7 as Y3,d7 as Z3,n7 as _3,i7 as $3,H0 as a4,s7 as b4,J4 as c4,V4 as d4,P$ as e4,W4 as f4,H9 as g4,J0 as h4,d as i4,G9 as j4,h$ as k4,R9 as l4,w9 as m4,V2 as n4,w4 as o4,K4 as p4,x2 as q4,H2 as r4,w5 as s4,N9 as t4,P9 as u4,v9 as v4,E9 as w4,L4 as x4,m9 as y4,c9 as z4,d$ as A4,d9 as B4,n9 as C4,n$ as D4,i9 as E4,k4 as F4,i$ as G4,l9 as H4,b4 as I4,U4 as J4,JQ as K4,_4 as L4,T4 as M4,u0 as N4,c4 as O4,_1 as P4,N2 as Q4,Z0 as R4,n4 as S4,i4 as T4,XJ as U4,MQ as V4,VJ as W4,h4 as X4,SQ as Y4,CQ as Z4,xJ as _4,F0 as $4,fQ as a5,l4 as b5,RJ as c5,FJ as d5,t4 as e5,uQ as f5,pQ as g5,gQ as h5,y2 as i5,s4 as j5,mQ as k5,kJ as l5,K as m5,r4 as n5,T1 as o5,F5 as p5,b5 as q5,S as r5,x0 as s5,cQ as t5,M4 as u5,n as v5,j2 as w5,dQ as x5,W2 as y5,nQ as z5,a1 as A5,NJ as B5,PJ as C5,D2 as D5,iQ as E5,lQ as F5,Y0 as G5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{gs as M,ks as qq,up as h,wp as Oq,xp as n,zp as Wq}from"./cli-1.1.38-tk968ykv.mjs";import{Q8 as r,y8 as f}from"./cli-1.1.38-t8k5snq9.mjs";import{Tfa as S,Yba as c,Yfa as e,_ba as d,bca as g,cca as u,hca as Vq}from"./cli-1.1.38-a678cgp1.mjs";import{Cha as m,Dha as Uq}from"./cli-1.1.38-h0643t2a.mjs";import{Aja as t,aja as y,bja as R,fja as P,jja as L,nja as T,xja as U}from"./cli-1.1.38-yfhvhcvt.mjs";import{Xja as V,Yja as O,Zja as D,cka as _}from"./cli-1.1.38-mh6a6g83.mjs";import{Pqa as N}from"./cli-1.1.38-y66mw08s.mjs";import{homedir as o}from"os";import{resolve as s}from"path";async function Dq(Q){let q=Q.trim(),$=L(),X=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(X?.[1]){let z=X[1],G=X[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,Z=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return Z?{source:"git",url:G,ref:Z}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return Z?{source:"git",url:J,ref:Z}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=s(q.startsWith("~")?q.replace(/^~/,o()):q),G;try{G=await $.stat(z)}catch(Z){let Y=O(Z);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??Z})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,Z=z?.[2];return Z?{source:"github",repo:G,ref:Z}:{source:"github",repo:G}}return null}var a=N(()=>{_();T()});import{randomBytes as Qq}from"crypto";import{readFile as Xq,rename as Zq,unlink as $q,writeFile as Bq}from"fs/promises";import{join as Gq}from"path";function p(){return Gq(M(),Yq)}async function Jq(){let Q=p();try{let q=await Xq(Q,{encoding:"utf-8"}),$=R(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return U("Install counts cache has invalid structure"),null;let X=$;if(X.version!==w)return U(`Install counts cache version mismatch (got ${X.version}, expected ${w})`),null;if(typeof X.fetchedAt!=="string"||!Array.isArray(X.counts))return U("Install counts cache has invalid structure"),null;let B=new Date(X.fetchedAt).getTime();if(Number.isNaN(B))return U("Install counts cache has invalid fetchedAt timestamp"),null;if(!X.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return U("Install counts cache has malformed entries"),null;if(Date.now()-B>xq)return U("Install counts cache is stale (>24h old)"),null;return{version:X.version,fetchedAt:X.fetchedAt,counts:X.counts}}catch(q){if(O(q)!=="ENOENT")U(`Failed to load install counts cache: ${V(q)}`);return null}}async function Kq(Q){let q=p(),$=`${q}.${Qq(8).toString("hex")}.tmp`;try{let X=M();await L().mkdir(X);let B=y(Q,null,2);await Bq($,B,{encoding:"utf-8",mode:384}),await Zq($,q),U("Install counts cache saved successfully")}catch(X){S(X);try{await $q($)}catch{}}}async function zq(){U(`Fetching install counts from ${b}`);try{let Q=await f.get(b,{timeout:1e4});if(!Q.data?.plugins||!Array.isArray(Q.data.plugins))throw Error("Invalid response format from install counts API");return Q.data.plugins}catch(Q){throw Q}}async function dq(){let Q=await Jq();if(Q){U("Using cached install counts");let q=new Map;for(let $ of Q.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await zq(),$={version:w,fetchedAt:new Date().toISOString(),counts:q};await Kq($);let X=new Map;for(let B of q)X.set(B.plugin,B.unique_installs);return X}catch(q){return S(q),U(`Failed to fetch install counts: ${V(q)}`),null}}function gq(Q){if(Q<1000)return String(Q);if(Q<1e6){let B=(Q/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Q/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var w=1,Yq="install-counts-cache.json",b="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",xq=86400000;var Hq=N(()=>{r();t();_();T();e();P();qq()});import{readdir as Rq,readFile as A,stat as vq}from"fs/promises";import*as H from"path";function Iq(Q){let q=H.basename(Q),$=H.basename(H.dirname(Q));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function C(Q){return Q.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Q,q,$,X){if(Q.includes(".."))$.push({path:q,message:X?`Path contains "..": ${Q}. ${X}`:`Path contains ".." which could be a path traversal attempt: ${Q}`})}function Lq(Q){let q=Q.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Q?`./${q}`:"./plugins/my-plugin"}" instead of "${Q}".`}async function E(Q){let q=[],$=[],X=H.resolve(Q),B;try{B=await A(X,{encoding:"utf-8"})}catch(Z){let Y=O(Z),x;if(Y==="ENOENT")x=`File not found: ${X}`;else if(Y==="EISDIR")x=`Path is not a file: ${X}`;else x=`Failed to read file: ${V(Z)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:X,fileType:"plugin"}}let K;try{K=R(B)}catch(Z){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${V(Z)}`}],warnings:[],filePath:X,fileType:"plugin"}}if(K&&typeof K==="object"){let Z=K;if(Z.commands)(Array.isArray(Z.commands)?Z.commands:[Z.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(Z.agents)(Array.isArray(Z.agents)?Z.agents:[Z.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(Z.skills)(Array.isArray(Z.skills)?Z.skills:[Z.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let Z=K,Y=Object.keys(Z).filter((x)=>Aq.has(x));if(Y.length>0){let x={...Z};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=d().strict().safeParse(z);if(!G.success)q.push(...C(G.error));if(G.success){let Z=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(Z.name))$.push({path:"name",message:`Plugin name "${Z.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!Z.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!Z.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!Z.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:X,fileType:"plugin"}}async function j(Q){let q=[],$=[],X=H.resolve(Q),B;try{B=await A(X,{encoding:"utf-8"})}catch(Z){let Y=O(Z),x;if(Y==="ENOENT")x=`File not found: ${X}`;else if(Y==="EISDIR")x=`Path is not a file: ${X}`;else x=`Failed to read file: ${V(Z)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:X,fileType:"marketplace"}}let K;try{K=R(B)}catch(Z){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${V(Z)}`}],warnings:[],filePath:X,fileType:"marketplace"}}if(K&&typeof K==="object"){let Z=K;if(Array.isArray(Z.plugins))Z.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Lq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=u().extend({plugins:m.array(g().strict())}).strict().safeParse(K);if(!G.success)q.push(...C(G.error));if(G.success){let Z=G.data;if(!Z.plugins||Z.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(Z.plugins){Z.plugins.forEach((J,W)=>{if(Z.plugins.filter((v)=>v.name===J.name).length>1)q.push({path:`plugins[${W}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(X),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,W]of Z.plugins.entries()){if(!W.version||typeof W.source!=="string"||!W.source.startsWith("./"))continue;let k=H.join(x,W.source,".claude-plugin","plugin.json"),v;try{let i=await A(k,{encoding:"utf-8"}),F=R(i);if(typeof F.version==="string")v=F.version}catch{continue}if(v&&v!==W.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${W.version}" but ${W.source}/.claude-plugin/plugin.json says "${v}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${v}" to match.`})}}if(!Z.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:X,fileType:"marketplace"}}function Nq(Q,q,$){let X=[],B=[],K=q.match(n);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:X,warnings:B,filePath:Q,fileType:$};let z=K[1]||"",G;try{G=h(z)}catch(J){return X.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${V(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:X,warnings:B,filePath:Q,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return X.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:X,warnings:B,filePath:Q,fileType:$};let Z=G;if(Z.description!==void 0){let J=Z.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)X.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(Z.name!==void 0&&Z.name!==null&&typeof Z.name!=="string")X.push({path:"name",message:`name must be a string, got ${typeof Z.name}.`});let Y=Z["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))X.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))X.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=Z.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")X.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")X.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:X.length===0,errors:X,warnings:B,filePath:Q,fileType:$}}async function _q(Q){let q;try{q=await A(Q,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Q,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${V(B)}`}],warnings:[],filePath:Q,fileType:"hooks"}}let $;try{$=R(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${V(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Q,fileType:"hooks"}}let X=c().safeParse($);if(!X.success)return{success:!1,errors:C(X.error),warnings:[],filePath:Q,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Q,fileType:"hooks"}}async function l(Q,q){let $;try{$=await Rq(Q,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Q,B.name,"SKILL.md"));let X=[];for(let B of $){let K=H.join(Q,B.name);if(B.isDirectory())X.push(...await l(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))X.push(K)}return X}async function tq(Q){let q=[],$=[["skill",H.join(Q,"skills")],["agent",H.join(Q,"agents")],["command",H.join(Q,"commands")]];for(let[B,K]of $){let z=await l(K,B==="skill");for(let G of z){let Z;try{Z=await A(G,{encoding:"utf-8"})}catch(x){if(D(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${V(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,Z,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let X=await _q(H.join(Q,"hooks","hooks.json"));if(X.errors.length>0||X.warnings.length>0)q.push(X);return q}async function rq(Q){let q=H.resolve(Q),$=null;try{$=await vq(q)}catch(B){if(!D(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await j(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await E(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Iq(Q)){case"plugin":return E(Q);case"marketplace":return j(Q);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=R(B);if(Array.isArray(K.plugins))return j(Q)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return E(Q)}}}var Aq;var wq=N(()=>{Uq();_();Wq();P();Oq();Vq();Aq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Dq as gc,a as hc,dq as ic,gq as jc,Hq as kc,tq as lc,rq as mc,wq as nc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{eW as O}from"./cli-1.1.38-y79rqp8p.mjs";import{B1 as Q,z1 as X}from"./cli-1.1.38-h1fqbjjb.mjs";import{C1 as b}from"./cli-1.1.38-h6qtpp5r.mjs";import{eaa as W,xea as P}from"./cli-1.1.38-a678cgp1.mjs";import{Lqa as U}from"./cli-1.1.38-y66mw08s.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
|
|
2
|
+
export{V as Qa,C as Ra};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{rB as I,uB as X}from"./cli-1.1.38-tk968ykv.mjs";import{ika as H,qka as W}from"./cli-1.1.38-nzbcas3j.mjs";import{Pqa as V}from"./cli-1.1.38-y66mw08s.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
|
|
2
|
+
export{q as td,F as ud,K as vd,Q as wd,R as xd,_ as yd,j as zd,Y as Ad};
|