@claudiolabs/claudin 1.1.36 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App-1.1.38-ywjx5zwg.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.38-g8aaewqn.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.38-3xp2vky0.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.38-ng5ew4f1.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.38-pb4syd5b.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.38-v5m7388w.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.38-7xpy0azc.mjs +6 -0
- package/dist/chunks/Doctor-1.1.38-8c786cbs.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.38-gsmc5cbg.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.38-34mcvk0g.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.38-4tzaxt0t.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.38-5aqykfy4.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.38-hg33ngjd.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.38-e0dgakf3.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.38-s1stmw8z.mjs +1 -0
- package/dist/chunks/REPL-1.1.38-24nb99vc.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.38-ph61hy3h.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.38-waf94h4c.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.38-8zeez0vw.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.38-x67yqx1x.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.38-s7acgm11.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.38-xdxg0v37.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.38-ze3nezmq.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.38-4hejnp0f.mjs +1 -0
- package/dist/chunks/add-dir-1.1.38-9njmqx1q.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.38-2vgbffh0.mjs +1 -0
- package/dist/chunks/agents-1.1.38-p9ee8aj6.mjs +3 -0
- package/dist/chunks/agents-1.1.38-td2q9455.mjs +110 -0
- package/dist/chunks/api-1.1.38-8mx12h9x.mjs +1 -0
- package/dist/chunks/asciicast-1.1.38-ge5twq4b.mjs +1 -0
- package/dist/chunks/auth-1.1.38-qd9cf36r.mjs +1 -0
- package/dist/chunks/auth-1.1.38-z9s1s7ya.mjs +1 -0
- package/dist/chunks/autoMode-1.1.38-k48yn49s.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.38-akdcfhnr.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.38-x4vhee3g.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.38-bvd35tyn.mjs +1 -0
- package/dist/chunks/branch-1.1.38-ne2jsk2x.mjs +4 -0
- package/dist/chunks/bridge-1.1.38-vdxahb1p.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.38-yf7zjpvf.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.38-eszbcc63.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.38-ywfxh5hm.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.38-jvevzgc3.mjs +1 -0
- package/dist/chunks/btw-1.1.38-hqjfa45a.mjs +1 -0
- package/dist/chunks/buddy-1.1.38-rq8ak7jk.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.38-dvwdm93b.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.38-pxpr6at8.mjs +4 -0
- package/dist/chunks/caches-1.1.38-mxte3pjs.mjs +1 -0
- package/dist/chunks/cd-1.1.38-nj8jwk5n.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.38-94tj322p.mjs +1 -0
- package/dist/chunks/claudemd-1.1.38-y4ajc9p8.mjs +1 -0
- package/dist/chunks/clear-1.1.38-17hx54za.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.38-e3qy2b07.mjs +1 -0
- package/dist/chunks/cli-1.1.38-06jvwc43.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0cf6ttc6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0dj1dmtd.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0q1t1zs8.mjs +2 -0
- package/dist/chunks/cli-1.1.38-0x84gwbc.mjs +2 -0
- package/dist/chunks/cli-1.1.38-16r42mm1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1bv62dee.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1c3thcc3.mjs +10 -0
- package/dist/chunks/cli-1.1.38-1e3jefp8.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1jc6vgde.mjs +25 -0
- package/dist/chunks/cli-1.1.38-1k5hq477.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1kce30qe.mjs +2 -0
- package/dist/chunks/cli-1.1.38-1wavwd72.mjs +10 -0
- package/dist/chunks/cli-1.1.38-20a2a6n3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-21x08w6j.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2a4wcbby.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2jp2m8e4.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2p7f0cx3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-2x7b4x0w.mjs +3 -0
- package/dist/chunks/cli-1.1.38-2zbkp90c.mjs +2 -0
- package/dist/chunks/cli-1.1.38-37he9dkq.mjs +2 -0
- package/dist/chunks/cli-1.1.38-38f3b9as.mjs +2 -0
- package/dist/chunks/cli-1.1.38-3a7tvcmx.mjs +2 -0
- package/dist/chunks/cli-1.1.38-3c43sfc3.mjs +34 -0
- package/dist/chunks/cli-1.1.38-3d6qg7yb.mjs +7 -0
- package/dist/chunks/cli-1.1.38-3ez6bs0j.mjs +39 -0
- package/dist/chunks/cli-1.1.38-3gyfttrt.mjs +2 -0
- package/dist/chunks/cli-1.1.38-3j9z8bce.mjs +11 -0
- package/dist/chunks/cli-1.1.38-3q70db32.mjs +2 -0
- package/dist/chunks/cli-1.1.38-41hbjb5d.mjs +3 -0
- package/dist/chunks/cli-1.1.38-44ay6q12.mjs +2 -0
- package/dist/chunks/cli-1.1.38-48ykmxgd.mjs +2 -0
- package/dist/chunks/cli-1.1.38-4dvqxnwp.mjs +9 -0
- package/dist/chunks/cli-1.1.38-4g2k1n93.mjs +133 -0
- package/dist/chunks/cli-1.1.38-4vabm3a1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-4wdys8df.mjs +2 -0
- package/dist/chunks/cli-1.1.38-4x6r8r0g.mjs +21 -0
- package/dist/chunks/cli-1.1.38-5edb5t1a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-5zr9x873.mjs +18 -0
- package/dist/chunks/cli-1.1.38-62gxd3va.mjs +2 -0
- package/dist/chunks/cli-1.1.38-6dwdjwfe.mjs +2 -0
- package/dist/chunks/cli-1.1.38-6g33twaj.mjs +2 -0
- package/dist/chunks/cli-1.1.38-6hng9dxr.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7a0vpxbg.mjs +7 -0
- package/dist/chunks/cli-1.1.38-7vygkwbt.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7wqs4198.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7y52ea97.mjs +2 -0
- package/dist/chunks/cli-1.1.38-7zvbnxfm.mjs +2 -0
- package/dist/chunks/cli-1.1.38-839xw74z.mjs +24 -0
- package/dist/chunks/cli-1.1.38-8br976cg.mjs +2 -0
- package/dist/chunks/cli-1.1.38-8jshtkmf.mjs +2 -0
- package/dist/chunks/cli-1.1.38-8m9096qg.mjs +6 -0
- package/dist/chunks/cli-1.1.38-91q945ws.mjs +3 -0
- package/dist/chunks/cli-1.1.38-92g30wbv.mjs +2 -0
- package/dist/chunks/cli-1.1.38-9p14cyab.mjs +2 -0
- package/dist/chunks/cli-1.1.38-9x263zph.mjs +10 -0
- package/dist/chunks/cli-1.1.38-a2j7607w.mjs +2 -0
- package/dist/chunks/cli-1.1.38-a678cgp1.mjs +251 -0
- package/dist/chunks/cli-1.1.38-a9wkqach.mjs +2 -0
- package/dist/chunks/cli-1.1.38-abavft6n.mjs +6 -0
- package/dist/chunks/cli-1.1.38-ac33weys.mjs +2 -0
- package/dist/chunks/cli-1.1.38-an3fdzsz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-aspnz4m6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-axhwttsc.mjs +9 -0
- package/dist/chunks/cli-1.1.38-azkppcr1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-azv9c3jv.mjs +2 -0
- package/dist/chunks/cli-1.1.38-b56dgy8f.mjs +2 -0
- package/dist/chunks/cli-1.1.38-c0w5gdqr.mjs +2 -0
- package/dist/chunks/cli-1.1.38-c7x1esyq.mjs +6 -0
- package/dist/chunks/cli-1.1.38-cmnad0aj.mjs +8 -0
- package/dist/chunks/cli-1.1.38-cp5m26rk.mjs +3 -0
- package/dist/chunks/cli-1.1.38-cpq50ma6.mjs +15 -0
- package/dist/chunks/cli-1.1.38-cq1f1j06.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ctcgmvy1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-d3xjq2jk.mjs +4 -0
- package/dist/chunks/cli-1.1.38-dfcp3asv.mjs +17 -0
- package/dist/chunks/cli-1.1.38-dggxcj2x.mjs +2 -0
- package/dist/chunks/cli-1.1.38-dxtw8tjv.mjs +2 -0
- package/dist/chunks/cli-1.1.38-dz4qs0ht.mjs +2 -0
- package/dist/chunks/cli-1.1.38-e09rc4b8.mjs +20 -0
- package/dist/chunks/cli-1.1.38-e0q3xyay.mjs +2 -0
- package/dist/chunks/cli-1.1.38-e5by1ynv.mjs +6 -0
- package/dist/chunks/cli-1.1.38-e6j30tde.mjs +3 -0
- package/dist/chunks/cli-1.1.38-e84gxv9a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-eafpexwg.mjs +2 -0
- package/dist/chunks/cli-1.1.38-exexvj4k.mjs +5 -0
- package/dist/chunks/cli-1.1.38-f6be5pxz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-f7fq44hz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-fembxywm.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ffkc8ker.mjs +42 -0
- package/dist/chunks/cli-1.1.38-fgwfzs50.mjs +2 -0
- package/dist/chunks/cli-1.1.38-fr1kxnk2.mjs +2 -0
- package/dist/chunks/cli-1.1.38-frcvjcgw.mjs +2 -0
- package/dist/chunks/cli-1.1.38-fyw4xbm7.mjs +3 -0
- package/dist/chunks/cli-1.1.38-g4av033p.mjs +26 -0
- package/dist/chunks/cli-1.1.38-g94v4hq7.mjs +2 -0
- package/dist/chunks/cli-1.1.38-gdcz0rss.mjs +2 -0
- package/dist/chunks/cli-1.1.38-gp49bfxk.mjs +2 -0
- package/dist/chunks/cli-1.1.38-gqpmcnnv.mjs +15 -0
- package/dist/chunks/cli-1.1.38-gtjexepq.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h013mt1h.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h0643t2a.mjs +63 -0
- package/dist/chunks/cli-1.1.38-h1fqbjjb.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h2f789qa.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h6qtpp5r.mjs +2 -0
- package/dist/chunks/cli-1.1.38-h83nx1a5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-haa4vwxj.mjs +2 -0
- package/dist/chunks/cli-1.1.38-hkbb3sr7.mjs +2 -0
- package/dist/chunks/cli-1.1.38-hvc5ed6c.mjs +2 -0
- package/dist/chunks/cli-1.1.38-jakpq48k.mjs +2 -0
- package/dist/chunks/cli-1.1.38-jr0vb3er.mjs +4 -0
- package/dist/chunks/cli-1.1.38-jrf85w1a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ka1w0zwc.mjs +2 -0
- package/dist/chunks/cli-1.1.38-kcykd1e5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-kjt1gn6d.mjs +135 -0
- package/dist/chunks/cli-1.1.38-kns8wjke.mjs +2 -0
- package/dist/chunks/cli-1.1.38-kqkm7ndz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-m66mmsr6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-m9k89rb6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-mbfqg6za.mjs +3 -0
- package/dist/chunks/cli-1.1.38-md7mbf9q.mjs +2 -0
- package/dist/chunks/cli-1.1.38-mh6a6g83.mjs +4 -0
- package/dist/chunks/cli-1.1.38-mnr9k9j8.mjs +2 -0
- package/dist/chunks/cli-1.1.38-n5tx4p12.mjs +15 -0
- package/dist/chunks/cli-1.1.38-n9xftqbp.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ndbzsvf1.mjs +4 -0
- package/dist/chunks/cli-1.1.38-nmmd7xh9.mjs +4 -0
- package/dist/chunks/cli-1.1.38-npc1f8rb.mjs +3 -0
- package/dist/chunks/cli-1.1.38-nr3yx2kb.mjs +4 -0
- package/dist/chunks/cli-1.1.38-nzbcas3j.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pab9ct4p.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pah268nz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pdv3syxb.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pe2vd8sk.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pksnvm8s.mjs +2 -0
- package/dist/chunks/cli-1.1.38-pnngv0r7.mjs +2 -0
- package/dist/chunks/cli-1.1.38-q3emeb23.mjs +2 -0
- package/dist/chunks/cli-1.1.38-q3yhkwkh.mjs +3 -0
- package/dist/chunks/cli-1.1.38-q8ewcabe.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qackcmc3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qebn65cx.mjs +50 -0
- package/dist/chunks/cli-1.1.38-qfpkjbx1.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qv0rqvhj.mjs +4 -0
- package/dist/chunks/cli-1.1.38-qw1jxc9j.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qwkjfytz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-qyg5n01q.mjs +2 -0
- package/dist/chunks/cli-1.1.38-r3r6jmgz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-rp0tsnde.mjs +2 -0
- package/dist/chunks/cli-1.1.38-rvjmh1y0.mjs +4 -0
- package/dist/chunks/cli-1.1.38-s1nggz9g.mjs +16 -0
- package/dist/chunks/cli-1.1.38-s8evhc7a.mjs +2 -0
- package/dist/chunks/cli-1.1.38-sjrfgskz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-sywjrgh0.mjs +2 -0
- package/dist/chunks/cli-1.1.38-t8k5snq9.mjs +24 -0
- package/dist/chunks/cli-1.1.38-tk968ykv.mjs +5497 -0
- package/dist/chunks/cli-1.1.38-tvh77h3r.mjs +2 -0
- package/dist/chunks/cli-1.1.38-v40xwwad.mjs +2 -0
- package/dist/chunks/cli-1.1.38-vbxptsq5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-wbww08bk.mjs +2 -0
- package/dist/chunks/cli-1.1.38-ww8j7xpn.mjs +2 -0
- package/dist/chunks/cli-1.1.38-wwezb1bz.mjs +2 -0
- package/dist/chunks/cli-1.1.38-x0j2v4e5.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xag86y98.mjs +24 -0
- package/dist/chunks/cli-1.1.38-xf78kmy6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xpar3nmx.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xpjv8r2g.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xr1c1bn4.mjs +2 -0
- package/dist/chunks/cli-1.1.38-xvwb3d6n.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y1w55df3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y3k2y9f2.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y57qzkxr.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y66mw08s.mjs +2 -0
- package/dist/chunks/cli-1.1.38-y79rqp8p.mjs +60 -0
- package/dist/chunks/cli-1.1.38-y7ahpffc.mjs +2 -0
- package/dist/chunks/cli-1.1.38-yctmyw1a.mjs +25 -0
- package/dist/chunks/cli-1.1.38-yfhvhcvt.mjs +5 -0
- package/dist/chunks/cli-1.1.38-ygyme6j6.mjs +2 -0
- package/dist/chunks/cli-1.1.38-yhp9b0b0.mjs +2 -0
- package/dist/chunks/cli-1.1.38-yk5s276s.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z02gnn41.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z2mnaz67.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z6abxdx3.mjs +2 -0
- package/dist/chunks/cli-1.1.38-z8x4q5cc.mjs +12 -0
- package/dist/chunks/cli-1.1.38-z9faf3ft.mjs +6 -0
- package/dist/chunks/cli-1.1.38-zj7fa197.mjs +2 -0
- package/dist/chunks/cli-1.1.38-zx5nqvq6.mjs +2 -0
- package/dist/chunks/client-1.1.38-7hcrtb3q.mjs +1 -0
- package/dist/chunks/color-1.1.38-eqrtxm9k.mjs +1 -0
- package/dist/chunks/compact-1.1.38-ya34rk57.mjs +2 -0
- package/dist/chunks/config-1.1.38-bbe0h0fj.mjs +1 -0
- package/dist/chunks/config-1.1.38-bfaptzc8.mjs +1 -0
- package/dist/chunks/constants-1.1.38-yytvwzgs.mjs +1 -0
- package/dist/chunks/context-1.1.38-2mgwzmk2.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.38-8bj0e1ac.mjs +1 -0
- package/dist/chunks/conversation-1.1.38-9hdq28pm.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.38-s4pj5tsz.mjs +1 -0
- package/dist/chunks/copy-1.1.38-f83q42a2.mjs +9 -0
- package/dist/chunks/cost-1.1.38-8wheqk0q.mjs +1 -0
- package/dist/chunks/createSession-1.1.38-m815jqhf.mjs +1 -0
- package/dist/chunks/debug-1.1.38-0nc58m79.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.38-t4spryyh.mjs +1458 -0
- package/dist/chunks/desktop-1.1.38-6tbjry9x.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.38-fkd9xdma.mjs +1 -0
- package/dist/chunks/detection-1.1.38-21frnq82.mjs +1 -0
- package/dist/chunks/diff-1.1.38-bqd4vh6q.mjs +1 -0
- package/dist/chunks/doctor-1.1.38-yedjk1t9.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.38-2tq437dy.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.38-ag144tcy.mjs +1 -0
- package/dist/chunks/effort-1.1.38-w8zmwjyn.mjs +13 -0
- package/dist/chunks/engine-1.1.38-9p06hk6t.mjs +1 -0
- package/dist/chunks/envUtils-1.1.38-0x5t3jcn.mjs +1 -0
- package/dist/chunks/errors-1.1.38-x5yfskn2.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.38-j3f50kg4.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.38-vtsaz9ex.mjs +1 -0
- package/dist/chunks/exit-1.1.38-2az07cgq.mjs +1 -0
- package/dist/chunks/explorer-1.1.38-f8v6fw0n.mjs +1 -0
- package/dist/chunks/export-1.1.38-ryfsevs9.mjs +2 -0
- package/dist/chunks/fast-1.1.38-pqjeb7br.mjs +1 -0
- package/dist/chunks/feedback-1.1.38-a735me7a.mjs +16 -0
- package/dist/chunks/git-1.1.38-ea24mp87.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.38-mrk9kw4h.mjs +1 -0
- package/dist/chunks/goal-1.1.38-t7b2x0m7.mjs +4 -0
- package/dist/chunks/headless-1.1.38-xa7n2h6a.mjs +2 -0
- package/dist/chunks/heapdump-1.1.38-0kkahje0.mjs +6 -0
- package/dist/chunks/help-1.1.38-c6fc5w2g.mjs +1 -0
- package/dist/chunks/hooks-1.1.38-020dm4m5.mjs +79 -0
- package/dist/chunks/hooks-1.1.38-d6nx1th8.mjs +1 -0
- package/dist/chunks/ide-1.1.38-w88jdkwh.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.38-dr7f0p7d.mjs +1 -0
- package/dist/chunks/import-1.1.38-tjgkgqtj.mjs +260 -0
- package/dist/chunks/inboundAttachments-1.1.38-96y0me8c.mjs +1 -0
- package/dist/chunks/index-1.1.38-0p1da46q.mjs +1 -0
- package/dist/chunks/index-1.1.38-0vkksyqf.mjs +1 -0
- package/dist/chunks/index-1.1.38-32wb94y5.mjs +1 -0
- package/dist/chunks/index-1.1.38-b7v4mc41.mjs +1 -0
- package/dist/chunks/index-1.1.38-d5147beb.mjs +1 -0
- package/dist/chunks/index-1.1.38-e7f6p4gc.mjs +2 -0
- package/dist/chunks/index-1.1.38-fmvxdssr.mjs +1 -0
- package/dist/chunks/index-1.1.38-fx4e6n5y.mjs +9 -0
- package/dist/chunks/index-1.1.38-g6wrndbn.mjs +1 -0
- package/dist/chunks/index-1.1.38-h6safnqh.mjs +1 -0
- package/dist/chunks/index-1.1.38-he0r1v5h.mjs +1 -0
- package/dist/chunks/index-1.1.38-nqht0jy4.mjs +1 -0
- package/dist/chunks/index-1.1.38-nzxyzk3n.mjs +1 -0
- package/dist/chunks/index-1.1.38-psktz1tc.mjs +23 -0
- package/dist/chunks/index-1.1.38-r550x6ay.mjs +2 -0
- package/dist/chunks/index-1.1.38-t56hya6b.mjs +9 -0
- package/dist/chunks/index-1.1.38-t8ehet13.mjs +1 -0
- package/dist/chunks/index-1.1.38-trn75xj8.mjs +1 -0
- package/dist/chunks/index-1.1.38-tz1ab367.mjs +1 -0
- package/dist/chunks/index-1.1.38-wj6bvgqh.mjs +1 -0
- package/dist/chunks/index-1.1.38-wwvwtd47.mjs +30 -0
- package/dist/chunks/index-1.1.38-x4crzvcp.mjs +5 -0
- package/dist/chunks/index-1.1.38-xwfqwn8f.mjs +1 -0
- package/dist/chunks/init-1.1.38-kt9fktc1.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.38-89egcf9a.mjs +1 -0
- package/dist/chunks/ink-1.1.38-jgsp2t7f.mjs +1 -0
- package/dist/chunks/insights-1.1.38-hq19aerm.mjs +870 -0
- package/dist/chunks/install-1.1.38-gyyxk8ck.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.38-f2jf37sk.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.38-tset69kh.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.38-m06ry3jx.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.38-1c7vvamf.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.38-0bgzxgy4.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.38-07neaje5.mjs +1 -0
- package/dist/chunks/log-1.1.38-7yxczk1m.mjs +1 -0
- package/dist/chunks/main-1.1.38-ckkpf6pm.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.38-wgkdf5th.mjs +1 -0
- package/dist/chunks/mcp-1.1.38-5g1dkaq3.mjs +4 -0
- package/dist/chunks/mcp-1.1.38-pv2q4v1t.mjs +1 -0
- package/dist/chunks/mcp-1.1.38-rw32ezwj.mjs +17 -0
- package/dist/chunks/mcpb-1.1.38-2j8knvey.mjs +1 -0
- package/dist/chunks/memory-1.1.38-ee240zz4.mjs +128 -0
- package/dist/chunks/model-1.1.38-0ap9xmp3.mjs +1 -0
- package/dist/chunks/model-1.1.38-5qmke302.mjs +2 -0
- package/dist/chunks/new-1.1.38-ahnzb47c.mjs +1 -0
- package/dist/chunks/node-1.1.38-8hxn3e6r.mjs +15 -0
- package/dist/chunks/node-1.1.38-v0zbmtyr.mjs +1 -0
- package/dist/chunks/oauth-1.1.38-5me1vtg3.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.38-12snq1gc.mjs +14 -0
- package/dist/chunks/output-style-1.1.38-zb5mtnss.mjs +1 -0
- package/dist/chunks/package-V72LKFNW-1.1.38-q7hcwdtx.mjs +1 -0
- package/dist/chunks/permissions-1.1.38-5kw7w85c.mjs +1 -0
- package/dist/chunks/permissions-1.1.38-nk2ndszr.mjs +3 -0
- package/dist/chunks/plan-1.1.38-z3dqqjh7.mjs +1 -0
- package/dist/chunks/plist-1.1.38-56sqgq6h.mjs +1 -0
- package/dist/chunks/plugin-1.1.38-03de52xp.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.38-0v5j57bh.mjs +1 -0
- package/dist/chunks/plugins-1.1.38-zmnat29k.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.38-s4pt4ahn.mjs +2 -0
- package/dist/chunks/print-1.1.38-9ar632da.mjs +57 -0
- package/dist/chunks/process-1.1.38-ndydtgs9.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.38-xj8xy6j7.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.38-rq94k8j4.mjs +9 -0
- package/dist/chunks/prompt-1.1.38-q5jst5dw.mjs +1 -0
- package/dist/chunks/prompt-1.1.38-qwzt31qc.mjs +1 -0
- package/dist/chunks/prompts-1.1.38-brvz08qv.mjs +1 -0
- package/dist/chunks/provider-1.1.38-zvnh7rf6.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.38-a0jrr70y.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.38-qj7m9ae0.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.38-kn98yfrh.mjs +26 -0
- package/dist/chunks/registry-1.1.38-02xa1gxq.mjs +1 -0
- package/dist/chunks/release-notes-1.1.38-kmxj255k.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.38-n429fwj8.mjs +2 -0
- package/dist/chunks/remote-env-1.1.38-4ecvn8ra.mjs +1 -0
- package/dist/chunks/rename-1.1.38-ah715pv0.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.38-d6n16rnp.mjs +1 -0
- package/dist/chunks/resume-1.1.38-tv3f819g.mjs +2 -0
- package/dist/chunks/rewind-1.1.38-6wc124dk.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.38-d7ta609y.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.38-n01n145x.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.38-pyjs3awv.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.38-54tec9n4.mjs +1 -0
- package/dist/chunks/session-1.1.38-d20mp4b0.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.38-44je31rv.mjs +1 -0
- package/dist/chunks/settings-1.1.38-x6fb5kk1.mjs +1 -0
- package/dist/chunks/setup-1.1.38-cryd3k7j.mjs +12 -0
- package/dist/chunks/sinks-1.1.38-xt06cywv.mjs +1 -0
- package/dist/chunks/skills-1.1.38-7kbrgpe5.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.38-w24hm0h1.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.38-pmp6wqj9.mjs +1 -0
- package/dist/chunks/state-1.1.38-ttzekhjw.mjs +1 -0
- package/dist/chunks/stats-1.1.38-w347vz1w.mjs +1 -0
- package/dist/chunks/status-1.1.38-h7pzkbmj.mjs +1 -0
- package/dist/chunks/stickers-1.1.38-p6n5mskj.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.38-3b6nr5kd.mjs +1 -0
- package/dist/chunks/tasks-1.1.38-jrznh7eb.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.38-b920q217.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.38-30rjbjkp.mjs +1 -0
- package/dist/chunks/teleport-1.1.38-kqj15kwz.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.38-a1j9tav3.mjs +1 -0
- package/dist/chunks/theme-1.1.38-zqgshtd8.mjs +1 -0
- package/dist/chunks/toolPool-1.1.38-rjxnejc9.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.38-bsgpwrqw.mjs +1 -0
- package/dist/chunks/tools-1.1.38-hphgtq98.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.38-6zmefgdf.mjs +69 -0
- package/dist/chunks/types-1.1.38-yaz6xzxg.mjs +1 -0
- package/dist/chunks/update-1.1.38-qkmfgy3f.mjs +72 -0
- package/dist/chunks/upload-1.1.38-25jm1g5x.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.38-kdzcx35q.mjs +14 -0
- package/dist/chunks/usage-1.1.38-17yqaf62.mjs +1 -0
- package/dist/chunks/util-1.1.38-e3nemqk5.mjs +1 -0
- package/dist/chunks/utils-1.1.38-709jv8e9.mjs +1 -0
- package/dist/chunks/vim-1.1.38-jtz13d73.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.38-fb6heqjg.mjs +13 -0
- package/dist/chunks/wiki-1.1.38-fpkcyk67.mjs +132 -0
- package/dist/chunks/workflows-1.1.38-mj7dax7d.mjs +1 -0
- package/dist/chunks/worktree-1.1.38-9zf6zp7r.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.38-01veveaw.mjs +1 -0
- package/dist/chunks/wrapper-1.1.38-7cvdwcn2.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/dist/help.txt +1 -1
- package/package.json +9 -9
- package/dist/chunks/App-1.1.36-4ypa2ky6.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.36-r5r4cwsv.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.36-v3mtkjve.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.36-m4wb4rn1.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.36-7v5ebgve.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.36-xpxzdymv.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.36-f49re5tc.mjs +0 -6
- package/dist/chunks/Doctor-1.1.36-2dspbc9p.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.36-9ajm3kh8.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.36-js7zf4na.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.36-4qp5v3qb.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.36-vesfpg6k.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.36-bg3y18da.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.36-n2rz26c0.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.36-tr7atyyg.mjs +0 -1
- package/dist/chunks/REPL-1.1.36-k3q58fha.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.36-qa0m768f.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.36-sg79pgf7.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.36-2q0d269f.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.36-rngjq7f6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.36-mrzttk9n.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.36-ycekhs3r.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.36-awrjghme.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.36-r7zqb99r.mjs +0 -1
- package/dist/chunks/add-dir-1.1.36-mrfh3vg4.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.36-50aq6x28.mjs +0 -1
- package/dist/chunks/agents-1.1.36-p154bdnq.mjs +0 -110
- package/dist/chunks/agents-1.1.36-qvdrqv2q.mjs +0 -3
- package/dist/chunks/api-1.1.36-fw1zvw5c.mjs +0 -1
- package/dist/chunks/asciicast-1.1.36-pabx88c3.mjs +0 -1
- package/dist/chunks/auth-1.1.36-nxs2defd.mjs +0 -1
- package/dist/chunks/auth-1.1.36-vxpyyv86.mjs +0 -1
- package/dist/chunks/autoMode-1.1.36-ew03cpb1.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.36-m3aspqak.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.36-dvg6tvq8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.36-q1ejq881.mjs +0 -1
- package/dist/chunks/branch-1.1.36-ev37nqdg.mjs +0 -4
- package/dist/chunks/bridge-1.1.36-1yp5eghy.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.36-yxs52053.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.36-ghh2yqhm.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.36-6v5c06t6.mjs +0 -64
- package/dist/chunks/bridgePointer-1.1.36-2rgfyyde.mjs +0 -1
- package/dist/chunks/btw-1.1.36-065ma89f.mjs +0 -1
- package/dist/chunks/buddy-1.1.36-a1z9gs49.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.36-bvheegzj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.36-0bq3fz34.mjs +0 -4
- package/dist/chunks/caches-1.1.36-8swj463y.mjs +0 -1
- package/dist/chunks/cd-1.1.36-wwqk3h8r.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.36-325wbhtb.mjs +0 -1
- package/dist/chunks/claudemd-1.1.36-2vv85v0v.mjs +0 -1
- package/dist/chunks/clear-1.1.36-xnqf2tm7.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.36-g72pkm2k.mjs +0 -1
- package/dist/chunks/cli-1.1.36-02vb8r9t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0ar5v8he.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0d7qj290.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0qdd3hmz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0qtyffhw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0v8c69pm.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0zzq8bfp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-12bsh7j9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1dhxpexj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1dr6aakq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1fmfztzp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1yk5zdh0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1z1m015s.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2720p0e9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2awc366j.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2mqhd52j.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2sbmjg5a.mjs +0 -2
- package/dist/chunks/cli-1.1.36-33pcdm87.mjs +0 -2
- package/dist/chunks/cli-1.1.36-34sqd3h3.mjs +0 -15
- package/dist/chunks/cli-1.1.36-3fe93rwy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3gx0bht8.mjs +0 -4
- package/dist/chunks/cli-1.1.36-3kd43x1y.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3mmakdzj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3xkn8kcw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3z14wtaa.mjs +0 -2
- package/dist/chunks/cli-1.1.36-40x4f5k7.mjs +0 -34
- package/dist/chunks/cli-1.1.36-422dmh6w.mjs +0 -2
- package/dist/chunks/cli-1.1.36-43fkjqy9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-451x9avw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4ajy0ys9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4g1wf6an.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4jwgcerx.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4pfza5vq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4ssz80b2.mjs +0 -60
- package/dist/chunks/cli-1.1.36-5de80y14.mjs +0 -26
- package/dist/chunks/cli-1.1.36-5few49rp.mjs +0 -7
- package/dist/chunks/cli-1.1.36-5kmv74s2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-5nkhhy5f.mjs +0 -7
- package/dist/chunks/cli-1.1.36-5nkv3yj2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-5zzwcyt7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-659qh6fs.mjs +0 -15
- package/dist/chunks/cli-1.1.36-65fkb20j.mjs +0 -12
- package/dist/chunks/cli-1.1.36-69zmc79s.mjs +0 -2
- package/dist/chunks/cli-1.1.36-6g1w2zbr.mjs +0 -4
- package/dist/chunks/cli-1.1.36-6jv1ss2p.mjs +0 -2
- package/dist/chunks/cli-1.1.36-6q7sfj4e.mjs +0 -4
- package/dist/chunks/cli-1.1.36-6yqvdwyp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-703pmf6z.mjs +0 -135
- package/dist/chunks/cli-1.1.36-72hptg9d.mjs +0 -2
- package/dist/chunks/cli-1.1.36-72p8zdsg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-72sph7cp.mjs +0 -3
- package/dist/chunks/cli-1.1.36-775g6c3z.mjs +0 -2
- package/dist/chunks/cli-1.1.36-789jh18m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-79jcadbx.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7byzkddk.mjs +0 -3
- package/dist/chunks/cli-1.1.36-7tprmtpr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7xx3rm4x.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7ywn6pq1.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7z5n90ex.mjs +0 -3
- package/dist/chunks/cli-1.1.36-80gqbr44.mjs +0 -2
- package/dist/chunks/cli-1.1.36-814rb1qn.mjs +0 -2
- package/dist/chunks/cli-1.1.36-89dhnv3q.mjs +0 -2
- package/dist/chunks/cli-1.1.36-8k2z8yvv.mjs +0 -4
- package/dist/chunks/cli-1.1.36-8mc299mk.mjs +0 -6
- package/dist/chunks/cli-1.1.36-8s4n3bf2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-8vncd2t8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-90xk1ctt.mjs +0 -4
- package/dist/chunks/cli-1.1.36-97zq0wp5.mjs +0 -2
- package/dist/chunks/cli-1.1.36-9k371kgm.mjs +0 -15
- package/dist/chunks/cli-1.1.36-9xnre98h.mjs +0 -2
- package/dist/chunks/cli-1.1.36-a4gh459t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-adsb7266.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ahr5fnjy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-apycha28.mjs +0 -2
- package/dist/chunks/cli-1.1.36-as3jtdj6.mjs +0 -4
- package/dist/chunks/cli-1.1.36-aypab30m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-b0rge62y.mjs +0 -133
- package/dist/chunks/cli-1.1.36-b54n0msa.mjs +0 -2
- package/dist/chunks/cli-1.1.36-b77v7k9g.mjs +0 -3
- package/dist/chunks/cli-1.1.36-bsfazmtt.mjs +0 -2
- package/dist/chunks/cli-1.1.36-bxrew2k8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-bywrsksg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-c3rd4cfc.mjs +0 -10
- package/dist/chunks/cli-1.1.36-c4k9g1dk.mjs +0 -2
- package/dist/chunks/cli-1.1.36-c4pkjm54.mjs +0 -2
- package/dist/chunks/cli-1.1.36-cm2kys6t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-cya5x9g3.mjs +0 -2
- package/dist/chunks/cli-1.1.36-d4bd8qw2.mjs +0 -4
- package/dist/chunks/cli-1.1.36-dpn3xp4e.mjs +0 -2
- package/dist/chunks/cli-1.1.36-dt9kgcr3.mjs +0 -2
- package/dist/chunks/cli-1.1.36-e5xkjjtj.mjs +0 -21
- package/dist/chunks/cli-1.1.36-ef3vjg8b.mjs +0 -9
- package/dist/chunks/cli-1.1.36-f6yxszv5.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fd7xaf6g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fhnpvzaf.mjs +0 -6
- package/dist/chunks/cli-1.1.36-fj9nx7k4.mjs +0 -10
- package/dist/chunks/cli-1.1.36-fw6d7jyv.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fxpd9jmz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-gfn4xejp.mjs +0 -17
- package/dist/chunks/cli-1.1.36-gfx5kkq4.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ggr2pkp7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-gpks9z9m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-h74yjk66.mjs +0 -2
- package/dist/chunks/cli-1.1.36-haxnmraq.mjs +0 -24
- package/dist/chunks/cli-1.1.36-hqmz0657.mjs +0 -3
- package/dist/chunks/cli-1.1.36-hvnr6rta.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jnftcw4c.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jpcwwd65.mjs +0 -5
- package/dist/chunks/cli-1.1.36-jqn2tez7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jx3e7dft.mjs +0 -9
- package/dist/chunks/cli-1.1.36-k14jc4fv.mjs +0 -2
- package/dist/chunks/cli-1.1.36-kzxdhaaz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-m11p0exg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-m981mqsb.mjs +0 -39
- package/dist/chunks/cli-1.1.36-mam7e8zn.mjs +0 -11
- package/dist/chunks/cli-1.1.36-mmre9943.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n44emd29.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n5etyd9m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n9knhbs6.mjs +0 -6
- package/dist/chunks/cli-1.1.36-nnzqwcsc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-nqy7mzrt.mjs +0 -45
- package/dist/chunks/cli-1.1.36-nw3mandv.mjs +0 -50
- package/dist/chunks/cli-1.1.36-p0w1dm9g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-p375v620.mjs +0 -6
- package/dist/chunks/cli-1.1.36-p7w1197h.mjs +0 -2
- package/dist/chunks/cli-1.1.36-psd41gmc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-pwszcwqb.mjs +0 -2
- package/dist/chunks/cli-1.1.36-pxy9g55g.mjs +0 -20
- package/dist/chunks/cli-1.1.36-q2e0arg8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-q4a30pjq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-q9xgs0j5.mjs +0 -3
- package/dist/chunks/cli-1.1.36-qdefh0tg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-qm9492fw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-qn4td7gm.mjs +0 -4
- package/dist/chunks/cli-1.1.36-qxdw7xas.mjs +0 -3
- package/dist/chunks/cli-1.1.36-qyd8fnkc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-r241fh82.mjs +0 -5
- package/dist/chunks/cli-1.1.36-r2svaxxt.mjs +0 -25
- package/dist/chunks/cli-1.1.36-rh00pabh.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rkcfjk5n.mjs +0 -8
- package/dist/chunks/cli-1.1.36-rp1ck3rr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rqhp2xt1.mjs +0 -24
- package/dist/chunks/cli-1.1.36-rv222he2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rwa4g74g.mjs +0 -3
- package/dist/chunks/cli-1.1.36-rwqe4psg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-s8jcsdgb.mjs +0 -16
- package/dist/chunks/cli-1.1.36-s9ar9y3g.mjs +0 -42
- package/dist/chunks/cli-1.1.36-sd51t79y.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ss62b517.mjs +0 -63
- package/dist/chunks/cli-1.1.36-t0ncrwb0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-t6sjxpcb.mjs +0 -251
- package/dist/chunks/cli-1.1.36-tda1q99k.mjs +0 -2
- package/dist/chunks/cli-1.1.36-tvr7rnm0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-v0s0vqmm.mjs +0 -5551
- package/dist/chunks/cli-1.1.36-v5nxnkwj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-vdy55pxe.mjs +0 -2
- package/dist/chunks/cli-1.1.36-vz7m93en.mjs +0 -2
- package/dist/chunks/cli-1.1.36-w1nf9wd0.mjs +0 -10
- package/dist/chunks/cli-1.1.36-w23zxn8g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wdrt641n.mjs +0 -25
- package/dist/chunks/cli-1.1.36-wdvzyaky.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wfgjsqkk.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wwwj09sw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x0qqxv1t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x11fzb6n.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x1761kx6.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xf45p3qr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xj95r55n.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xs4p38vb.mjs +0 -6
- package/dist/chunks/cli-1.1.36-xvwc8bka.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ya2s1rfy.mjs +0 -18
- package/dist/chunks/cli-1.1.36-yew13j62.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ykz9vwbf.mjs +0 -2
- package/dist/chunks/cli-1.1.36-yrgfywq5.mjs +0 -24
- package/dist/chunks/cli-1.1.36-z5djkbwy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zax3mr51.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zbn66hn9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zd032ger.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zeahx79z.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zey2drb2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zv6ffhhy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zw8q3z61.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zzpdy0k8.mjs +0 -2
- package/dist/chunks/client-1.1.36-ydq31jce.mjs +0 -1
- package/dist/chunks/color-1.1.36-9fjvayey.mjs +0 -1
- package/dist/chunks/compact-1.1.36-p42ft3yq.mjs +0 -2
- package/dist/chunks/config-1.1.36-42ab04bq.mjs +0 -1
- package/dist/chunks/config-1.1.36-x636yezt.mjs +0 -1
- package/dist/chunks/constants-1.1.36-ba1bvty5.mjs +0 -1
- package/dist/chunks/context-1.1.36-zjvkgfrr.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.36-f5rax1ah.mjs +0 -1
- package/dist/chunks/conversation-1.1.36-jd5867c5.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.36-dg9s10xt.mjs +0 -1
- package/dist/chunks/copy-1.1.36-95ds743c.mjs +0 -9
- package/dist/chunks/cost-1.1.36-vhm8f7tp.mjs +0 -1
- package/dist/chunks/createSession-1.1.36-haxa0dvw.mjs +0 -1
- package/dist/chunks/debug-1.1.36-fvyvxmx1.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.36-24ag19wj.mjs +0 -1458
- package/dist/chunks/desktop-1.1.36-n6x2epmn.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.36-ktxtd4ej.mjs +0 -1
- package/dist/chunks/detection-1.1.36-s8z7d4bm.mjs +0 -1
- package/dist/chunks/diff-1.1.36-0mrzd4kw.mjs +0 -1
- package/dist/chunks/doctor-1.1.36-tta8yrqq.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.36-1j38851d.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.36-rv44jymf.mjs +0 -1
- package/dist/chunks/effort-1.1.36-yd22tc48.mjs +0 -13
- package/dist/chunks/engine-1.1.36-cf09xwf2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.36-e9dd4q6g.mjs +0 -1
- package/dist/chunks/errors-1.1.36-86veg19m.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.36-nmf2s84f.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.36-naz9kbtt.mjs +0 -1
- package/dist/chunks/exit-1.1.36-53t418pg.mjs +0 -1
- package/dist/chunks/explorer-1.1.36-pgghex3j.mjs +0 -1
- package/dist/chunks/export-1.1.36-1ynxg1wb.mjs +0 -2
- package/dist/chunks/fast-1.1.36-f64h2t2k.mjs +0 -1
- package/dist/chunks/feedback-1.1.36-vgb10qbs.mjs +0 -16
- package/dist/chunks/git-1.1.36-f934674g.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.36-f2yec5gh.mjs +0 -1
- package/dist/chunks/goal-1.1.36-yyy0jkwz.mjs +0 -4
- package/dist/chunks/headless-1.1.36-47ts4j1h.mjs +0 -2
- package/dist/chunks/heapdump-1.1.36-hhwpz3jf.mjs +0 -6
- package/dist/chunks/help-1.1.36-zr7z9tga.mjs +0 -1
- package/dist/chunks/hooks-1.1.36-and1agcb.mjs +0 -79
- package/dist/chunks/hooks-1.1.36-qgd5x79v.mjs +0 -1
- package/dist/chunks/ide-1.1.36-afc5wn8q.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.36-ycj021z0.mjs +0 -1
- package/dist/chunks/import-1.1.36-jrjb5s4n.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.36-h1yrtqms.mjs +0 -1
- package/dist/chunks/index-1.1.36-048ng2px.mjs +0 -1
- package/dist/chunks/index-1.1.36-1mbx6axa.mjs +0 -1
- package/dist/chunks/index-1.1.36-1rzdb7w0.mjs +0 -1
- package/dist/chunks/index-1.1.36-312tvs2v.mjs +0 -2
- package/dist/chunks/index-1.1.36-46vz4hm5.mjs +0 -5
- package/dist/chunks/index-1.1.36-4dth0mx8.mjs +0 -1
- package/dist/chunks/index-1.1.36-5bc8t250.mjs +0 -9
- package/dist/chunks/index-1.1.36-6mpk59p2.mjs +0 -1
- package/dist/chunks/index-1.1.36-83wpkv8f.mjs +0 -30
- package/dist/chunks/index-1.1.36-8s1fe47p.mjs +0 -9
- package/dist/chunks/index-1.1.36-95xjkxf6.mjs +0 -1
- package/dist/chunks/index-1.1.36-c90kzpg9.mjs +0 -1
- package/dist/chunks/index-1.1.36-ectpcy01.mjs +0 -1
- package/dist/chunks/index-1.1.36-f33wa99v.mjs +0 -1
- package/dist/chunks/index-1.1.36-fgj4arq3.mjs +0 -23
- package/dist/chunks/index-1.1.36-fr144w7s.mjs +0 -1
- package/dist/chunks/index-1.1.36-keejgmvt.mjs +0 -1
- package/dist/chunks/index-1.1.36-knytd0n4.mjs +0 -1
- package/dist/chunks/index-1.1.36-m21fh89b.mjs +0 -1
- package/dist/chunks/index-1.1.36-n3tpswv4.mjs +0 -1
- package/dist/chunks/index-1.1.36-q6468dg7.mjs +0 -1
- package/dist/chunks/index-1.1.36-svzjvq7t.mjs +0 -1
- package/dist/chunks/index-1.1.36-vpaaz84z.mjs +0 -2
- package/dist/chunks/init-1.1.36-16rj95sf.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.36-xganfz86.mjs +0 -1
- package/dist/chunks/ink-1.1.36-ayvk483m.mjs +0 -1
- package/dist/chunks/insights-1.1.36-0kqbkgbz.mjs +0 -870
- package/dist/chunks/install-1.1.36-3v0b55mh.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.36-6ybyxdq5.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.36-040ssrxp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.36-2fm0smr3.mjs +0 -1
- package/dist/chunks/latestVersionCache-1.1.36-9fa4kpt8.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.36-t9mhqgv5.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.36-vf3yqk6b.mjs +0 -1
- package/dist/chunks/log-1.1.36-zazc6e80.mjs +0 -1
- package/dist/chunks/main-1.1.36-r3b0ysm4.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.36-nksy6dte.mjs +0 -1
- package/dist/chunks/mcp-1.1.36-7fbqeb90.mjs +0 -17
- package/dist/chunks/mcp-1.1.36-d2df02nr.mjs +0 -4
- package/dist/chunks/mcp-1.1.36-dj3ctzg2.mjs +0 -1
- package/dist/chunks/mcpb-1.1.36-7hcc3bm8.mjs +0 -1
- package/dist/chunks/memory-1.1.36-4h4pw21v.mjs +0 -128
- package/dist/chunks/model-1.1.36-3vvdafvs.mjs +0 -1
- package/dist/chunks/model-1.1.36-pvrxzcbd.mjs +0 -2
- package/dist/chunks/node-1.1.36-xhks7s8w.mjs +0 -15
- package/dist/chunks/node-1.1.36-z1nceabc.mjs +0 -1
- package/dist/chunks/oauth-1.1.36-w0jf6x39.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.36-m75hvh8e.mjs +0 -14
- package/dist/chunks/output-style-1.1.36-c0mgemjb.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.36-kfm7v15k.mjs +0 -1
- package/dist/chunks/permissions-1.1.36-20jz1yq3.mjs +0 -3
- package/dist/chunks/permissions-1.1.36-mtf6m3pf.mjs +0 -1
- package/dist/chunks/plan-1.1.36-r2k6ysce.mjs +0 -1
- package/dist/chunks/plist-1.1.36-8vg2xrj2.mjs +0 -1
- package/dist/chunks/plugin-1.1.36-xa4j4bj2.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.36-7bczq621.mjs +0 -1
- package/dist/chunks/plugins-1.1.36-ck8ycs01.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.36-yt9dm2yh.mjs +0 -2
- package/dist/chunks/print-1.1.36-gcmgxxx7.mjs +0 -57
- package/dist/chunks/process-1.1.36-4kdmcjeq.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.36-5tbfja2m.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.36-db99hjpc.mjs +0 -9
- package/dist/chunks/prompt-1.1.36-7qyxemw6.mjs +0 -1
- package/dist/chunks/prompt-1.1.36-tx374tzn.mjs +0 -1
- package/dist/chunks/prompts-1.1.36-gj1pggdg.mjs +0 -1
- package/dist/chunks/provider-1.1.36-d73knpnr.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.36-v0p0gdag.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.36-bzznd00d.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.36-8s9pb6g7.mjs +0 -26
- package/dist/chunks/registry-1.1.36-4bt4ac4z.mjs +0 -1
- package/dist/chunks/release-notes-1.1.36-zbexvzjp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.36-n8nwygb8.mjs +0 -2
- package/dist/chunks/remote-env-1.1.36-fr8j8hcc.mjs +0 -1
- package/dist/chunks/rename-1.1.36-x06agpgx.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.36-2hp08v6r.mjs +0 -1
- package/dist/chunks/resume-1.1.36-1srfb0q2.mjs +0 -2
- package/dist/chunks/rewind-1.1.36-zkycjr7d.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.36-4m9s4acv.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.36-jbtcynyc.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.36-xrvrh2qp.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.36-2yw8m1jq.mjs +0 -1
- package/dist/chunks/session-1.1.36-dxen3cg6.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.36-dbt045aw.mjs +0 -1
- package/dist/chunks/settings-1.1.36-jb6t4nt2.mjs +0 -1
- package/dist/chunks/setup-1.1.36-7ady6j9j.mjs +0 -12
- package/dist/chunks/sinks-1.1.36-j124tdmn.mjs +0 -1
- package/dist/chunks/skills-1.1.36-wad885e2.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.36-0xnygcy5.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.36-6mvjw2sk.mjs +0 -1
- package/dist/chunks/state-1.1.36-mwqgyp6n.mjs +0 -1
- package/dist/chunks/stats-1.1.36-yzk5t8nc.mjs +0 -1
- package/dist/chunks/status-1.1.36-8b177p6e.mjs +0 -1
- package/dist/chunks/stickers-1.1.36-kdxt4s8f.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.36-g1a43154.mjs +0 -1
- package/dist/chunks/tasks-1.1.36-cnmsc211.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.36-1pwk4n3y.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.36-2stc51nw.mjs +0 -1
- package/dist/chunks/teleport-1.1.36-tdvpgdhd.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.36-agbzd4wd.mjs +0 -1
- package/dist/chunks/theme-1.1.36-2w481ds6.mjs +0 -1
- package/dist/chunks/toolPool-1.1.36-hdw9b8ht.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.36-ccs29nek.mjs +0 -1
- package/dist/chunks/tools-1.1.36-zqsjpqnk.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.36-pwcp7479.mjs +0 -69
- package/dist/chunks/types-1.1.36-bwfasf0g.mjs +0 -1
- package/dist/chunks/update-1.1.36-hzk0xj2g.mjs +0 -72
- package/dist/chunks/upload-1.1.36-mb3a5t01.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.36-x1y5p82n.mjs +0 -14
- package/dist/chunks/usage-1.1.36-qzytaj6z.mjs +0 -1
- package/dist/chunks/util-1.1.36-kb0yef79.mjs +0 -1
- package/dist/chunks/utils-1.1.36-fm3eywyj.mjs +0 -1
- package/dist/chunks/vim-1.1.36-x7adhmdd.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.36-4s334wzz.mjs +0 -13
- package/dist/chunks/wiki-1.1.36-dn9csm8a.mjs +0 -132
- package/dist/chunks/workflows-1.1.36-v5b9khnt.mjs +0 -1
- package/dist/chunks/worktree-1.1.36-cesdwabt.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.36-m20cdekt.mjs +0 -1
- package/dist/chunks/wrapper-1.1.36-1m0td68t.mjs +0 -7
- /package/dist/chunks/{cli-1.1.36-7v42aqn9.mjs → cli-1.1.38-0sbej1sm.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.36-6kq395h8.mjs → cli-1.1.38-fckt5c5p.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mf as NG,nf as UG,qf as VJ}from"./cli-1.1.36-97zq0wp5.mjs";import{Ay as AG,Bx as IG,Cx as KJ,Cy as QJ,Dy as XJ,Ey as TJ,Iz as CG,LE as cG,LO as qJ,MO as CJ,Mz as dJ,Qy as zJ,Sy as MG,Ty as hG,Uy as TG,Vy as dG,Yy as fG,bm as JJ,bx as FG,cm as gJ,dx as hJ,dz as jG,gx as wG,hx as LJ,kO as LG,kx as h,kz as PJ,lO as ZJ,lx as $G,mx as m,nO as uG,nx as DG,ox as t,px as PG,tG as GG,tz as pJ,uG as YJ,zE as JG}from"./cli-1.1.36-v0s0vqmm.mjs";import{EX as qG,MV as BG,QV as kG,WW as C,YW as Y,_W as Q,cX as EG,tX as GJ}from"./cli-1.1.36-4ssz80b2.mjs";import{WY as gG,XY as AJ}from"./cli-1.1.36-7z5n90ex.mjs";import{IZ as eG,TZ as _J}from"./cli-1.1.36-p7w1197h.mjs";import{b1 as a,c1 as L,d1 as X,e1 as x}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as pG}from"./cli-1.1.36-apycha28.mjs";import{X4 as sG,h5 as SJ}from"./cli-1.1.36-s8jcsdgb.mjs";import{Bca as mG,R8 as S,S8 as tG,Sba as OG,Tba as yG,Uba as WJ,sca as HG,tca as FJ,xfa as rG,zfa as bJ}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aha as BJ,zha as _G}from"./cli-1.1.36-6yqvdwyp.mjs";import{_ia as zG,fja as oG}from"./cli-1.1.36-6g1w2zbr.mjs";import{Npa as s,Rpa as e}from"./cli-1.1.36-c4pkjm54.mjs";function WG(J){let G=lG.c(9),{serverToolsCount:Z,serverPromptsCount:F,serverResourcesCount:q}=J,z;if(G[0]!==F||G[1]!==q||G[2]!==Z){if(z=[],Z>0)z.push("tools");if(q>0)z.push("resources");if(F>0)z.push("prompts");G[0]=F,G[1]=q,G[2]=Z,G[3]=z}else z=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==z)W=z.length>0?L(t,{children:z}):"none",G[5]=z,G[6]=W;else W=G[6];let w;if(G[7]!==W)w=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=w;else w=G[8];return w}var lG;var bG=e(()=>{qG();PG();x();lG=s(BG(),1)});function KG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function VG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var SG=()=>{};function NL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),{columns:w}=JJ(),[I,U]=E.default.useState(!1),[p,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=ZJ(),[O,K]=E.default.useState(null),[P,D]=E.useState(!1),N=E.useRef(null),[g,$]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[c,u]=E.useState(null),[n,i]=E.useState(!1),[l,r]=E.useState(!1),v=E.useRef(void 0),B=E.useRef(!1),[vG,QG]=E.useState(""),[kJ,wJ]=E.useState(0),[xG,aG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),v.current!==void 0)clearTimeout(v.current)},[]);let XG=J.isAuthenticated||J.client.type==="connected"&&G>0,YG=NG(),DJ=E.default.useCallback(async()=>{$(!1),T(null),D(!0);try{let V=await YG(J.name);if(V.client.type==="connected")q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){q?.(VG(V,J.name))}finally{D(!1)}},[YG,J.name,q]),MJ=E.default.useCallback(async()=>{await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"needs-auth"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Disconnected from ${J.name}.`),y(!1),u(null),i(!1)},[J.name,J.config,J.scope,f,q]);FG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),FG("confirm:no",()=>{$(!1),T(null)},{context:"Confirmation",isActive:g}),FG("confirm:no",()=>{y(!1),u(null),i(!1)},{context:"Confirmation",isActive:A}),GJ((V,H)=>{if(H.return&&g)DJ();if(H.return&&A)if(n)MJ();else{let M=`${_G().CLAUDE_AI_ORIGIN}/settings/connectors`;u(M),i(!0),gG(M)}if(V==="c"&&!l){let M=O||j||c;if(M)eG(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(r(!0),v.current!==void 0)clearTimeout(v.current);v.current=setTimeout(r,2000,!1)})}});let fJ=HG(String(J.name)),NJ=MG(_.commands,J.name).length,nG=UG(),UJ=E.default.useCallback(async()=>{let V=_G().CLAUDE_AI_ORIGIN,M=sG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let ZG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,o=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${ZG}?product_surface=${o}`}else d=`${V}/settings/connectors`;T(d),$(!0),await gG(d)},[J.config]),RJ=E.default.useCallback(()=>{y(!0)},[]),OJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{await nG(J.name),F()}catch(H){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${zG(H)}`)}},[J.client.type,J.config.type,J.name,nG,F,q]),yJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await AG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await XJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{aG(()=>M)}});let H=await YG(J.name);if(H.client.type==="connected"){let M=XG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(H.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else rG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof QJ))R(H.message)}finally{U(!1),N.current=null,aG(null),QG("")}},[J.isAuthenticated,J.config,J.name,q,YG,XG]),IJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await AG(J.name,J.config),await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"failed"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:O})]}),I&&O&&xG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(qJ,{value:vG,onChange:QG,onSubmit:(H)=>{xG(H.trim()),QG("")},cursorOffset:kJ,onChangeCursorOffset:wJ,columns:w-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),j&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:j})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),n?X(a,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(a,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(XG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!XG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[fJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[C("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),XG?X(Q,{children:[C("success",k)(S.tick)," authenticated"]}):X(Q,{children:[C("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(J.scope)})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:NJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),p&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",p]})}),b.length>0&&L(Y,{marginTop:1,children:L(JG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await yJ();break;case"clear-auth":await IJ();break;case"claudeai-auth":await UJ();break;case"claudeai-clear-auth":RJ();break;case"reconnectMcpServer":D(!0);try{let H=await YG(J.name),{message:M}=KG(H,J.name);q?.(M)}catch(H){q?.(VG(H,J.name))}finally{D(!1)}break;case"toggle-enabled":await OJ();break;case"back":F();break}},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var mJ=e(()=>{tG();BJ();LJ();gJ();_J();qG();hJ();TJ();dJ();VJ();jG();uG();SJ();AJ();oG();bJ();mG();DG();cG();PG();$G();YJ();CJ();bG();SG();x();E=s(pG(),1)});function jL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),w=LG((P)=>P.mcp),I=NG(),U=UG(),[p,R]=RG.useState(!1),_=RG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),F()}catch(D){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${zG(D)}`)}},[J.client.type,J.name,U,F,q]),f=HG(String(J.name)),O=MG(w.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if(p)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(PJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:w.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(JG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let D=await I(J.name),{message:N}=KG(D,J.name);q?.(N)}catch(D){q?.(VG(D,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")F()},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var RG;var $J=e(()=>{tG();LJ();qG();pJ();VJ();jG();uG();oG();mG();DG();cG();PG();$G();YJ();bG();SG();x();RG=s(pG(),1)});function nL(J){let G=EJ.c(44),{tool:Z,server:F,onBack:q}=J,[z,k]=iG.default.useState(""),W,w;if(G[0]!==F.name||G[1]!==Z){w=OG(Z.name,F.name);let r=Z.userFacingName?Z.userFacingName({}):w;W=yG(r),G[0]=F.name,G[1]=Z,G[2]=W,G[3]=w}else W=G[2],w=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let p=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];iG.default.useEffect(K,P);let D;if(G[13]!==p)D=p&&L(Q,{color:"success",children:" [read-only]"}),G[13]=p,G[14]=D;else D=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let $;if(G[19]!==I||G[20]!==D||G[21]!==N||G[22]!==g)$=X(a,{children:[I,D,N,g]}),G[19]=I,G[20]=D,G[21]=N,G[22]=g,G[23]=$;else $=G[23];let j=$,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==w)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:w})]}),G[25]=w,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let c;if(G[28]!==Z.name)c=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=c;else c=G[29];let u;if(G[30]!==z)u=z&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:z})]}),G[30]=z,G[31]=u;else u=G[31];let n;if(G[32]!==Z.inputJSONSchema)n=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((r)=>{let[v,B]=r,QG=Z.inputJSONSchema?.required?.includes(v);return X(Q,{children:["• ",v,QG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},v)})})]}),G[32]=Z.inputJSONSchema,G[33]=n;else n=G[33];let i;if(G[34]!==A||G[35]!==c||G[36]!==u||G[37]!==n)i=X(Y,{flexDirection:"column",children:[A,c,u,n]}),G[34]=A,G[35]=c,G[36]=u,G[37]=n,G[38]=i;else i=G[38];let l;if(G[39]!==q||G[40]!==F.name||G[41]!==i||G[42]!==j)l=L(IG,{title:j,subtitle:F.name,onCancel:q,inputGuide:jJ,children:i}),G[39]=q,G[40]=F.name,G[41]=i,G[42]=j,G[43]=l;else l=G[43];return l}function jJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var EJ,iG;var cJ=e(()=>{qG();WJ();DG();KJ();x();EJ=s(BG(),1),iG=s(pG(),1)});function ZQ(J){let G=HJ.c(21),{server:Z,onSelectTool:F,onBack:q}=J,z=LG(iJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==z||G[2]!==Z.name)K=zJ(z,Z.name),G[1]=z,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,w;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,D)=>{let N=OG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,$=yG(g),j=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:$,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];w=W.map(K),G[4]=Z.name,G[5]=W,G[6]=w}else w=G[6];let I=w,U=`Tools for ${Z.name}`,p=W.length,R;if(G[9]!==W.length)R=FJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${p} ${R}`,f;if(G[11]!==q||G[12]!==F||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(JG,{options:I,onChange:(K)=>{let P=parseInt(K),D=W[P];if(D)F(D,P)},onCancel:q}),G[11]=q,G[12]=F,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(IG,{title:U,subtitle:_,onCancel:q,inputGuide:uJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function iJ(J){return J.mcp.tools}var HJ;var vJ=e(()=>{qG();WJ();jG();uG();mG();DG();cG();PG();KJ();$G();x();HJ=s(BG(),1)});
|
|
2
|
-
export{NL as ef,mJ as ff,jL as gf,$J as hf,nL as if,cJ as jf,ZQ as kf,vJ as lf};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{EX as o,MV as t,QV as p,WW as j,XW as s,YW as F,_W as V}from"./cli-1.1.36-4ssz80b2.mjs";import{c1 as w,d1 as g,e1 as y}from"./cli-1.1.36-z5djkbwy.mjs";import{R8 as $,S8 as a,b9 as _,c9 as n}from"./cli-1.1.36-t6sjxpcb.mjs";import{Npa as i,Rpa as v}from"./cli-1.1.36-c4pkjm54.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
|
|
2
|
-
`)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
|
|
3
|
-
export{Hq as Mf,Mq as Nf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bx as R,Cx as C,LE as A,zE as U}from"./cli-1.1.36-v0s0vqmm.mjs";import{EX as v,MV as d,YW as M,_W as N,cX as P}from"./cli-1.1.36-4ssz80b2.mjs";import{c1 as X,d1 as y,e1 as L}from"./cli-1.1.36-z5djkbwy.mjs";import{_ca as k,oda as T}from"./cli-1.1.36-t6sjxpcb.mjs";import{Npa as E,Rpa as O}from"./cli-1.1.36-c4pkjm54.mjs";function u(I){let f=F.c(18),{onAccept:H,onDecline:q,declineExits:h}=I,J;if(f[1]!==H||f[2]!==q)J=function(m){f:switch(m){case"accept":{k("userSettings",{skipAutoPermissionPrompt:!0}),H();break f}case"accept-default":{k("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),H();break f}case"decline":q()}},f[1]=H,f[2]=q,f[3]=J;else J=f[3];let Y=J,K;if(f[4]===Symbol.for("react.memo_cache_sentinel"))K=y(M,{flexDirection:"column",gap:1,children:[X(N,{children:b}),X(P,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=K;else K=f[4];let Q;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Q=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=Q;else Q=f[5];let V;if(f[6]===Symbol.for("react.memo_cache_sentinel"))V={label:"Yes, enable auto mode",value:"accept"},f[6]=V;else V=f[6];let Z=h?"No, exit":"No, go back",w;if(f[7]!==Z)w=[...Q,V,{label:Z,value:"decline"}],f[7]=Z,f[8]=w;else w=f[8];let z;if(f[9]!==Y)z=(B)=>Y(B),f[9]=Y,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=X(U,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let W;if(f[15]!==q||f[16]!==G)W=y(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[K,G]}),f[15]=q,f[16]=G,f[17]=W;else W=f[17];return W}var F,b="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";var p=O(()=>{v();T();A();C();L();F=E(d(),1)});
|
|
2
|
-
export{b as Pb,u as Qb,p as Rb};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{B5 as $8,z5 as U2}from"./cli-1.1.36-65fkb20j.mjs";import{D5 as A,E5 as i$}from"./cli-1.1.36-8mc299mk.mjs";import{G5 as b5,H5 as o$}from"./cli-1.1.36-0qdd3hmz.mjs";import{F6 as m5,H6 as X8}from"./cli-1.1.36-0d7qj290.mjs";import{$7 as U,r8 as e0}from"./cli-1.1.36-rqhp2xt1.mjs";import{$aa as e8,Aea as r$,Bda as E8,G$ as m1,J$ as l,J9 as u5,K9 as h,Kaa as G2,L8 as N4,M8 as g,M9 as b,M_ as M4,N8 as F2,O8 as w0,O_ as s$,P8 as U4,Q8 as l2,T_ as C4,V8 as W0,W8 as Q1,W_ as a$,Yca as E,Zea as p5,_ca as W2,_da as q0,aea as c1,afa as J4,bda as D,bea as $$,fea as d1,gfa as g5,j9 as k5,jfa as F,l9 as t$,mfa as r,oda as V0,uea as $4,ufa as k,wea as n1,zda as b1,zea as k2,zfa as m0}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aha as O0,sha as O5,tha as S4,uha as j2,wha as o4,xha as e4,zha as N}from"./cli-1.1.36-6yqvdwyp.mjs";import{Aia as W,Cia as f0,Dia as a,eia as A4,iia as l$,mia as d2,qia as k8}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as $2,aja as $1,fja as D8}from"./cli-1.1.36-6g1w2zbr.mjs";import{ija as D5,lja as w,nja as C,pja as N2,tja as f}from"./cli-1.1.36-0qtyffhw.mjs";import{Ana as V2,Cma as g1,Doa as o,Gma as K4,Kma as E0,Lma as s0,Yma as S,Zja as e,_ja as W1,dna as k1,oma as h1,una as a5,vna as r5,wna as o5,xna as e5}from"./cli-1.1.36-bsfazmtt.mjs";import{apa as _,bpa as g0}from"./cli-1.1.36-cm2kys6t.mjs";import{Opa as v0,Qpa as f5,Rpa as G,Spa as t}from"./cli-1.1.36-c4pkjm54.mjs";function y5($){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:X,reject:q,context:j}=J.shift();try{let z=await $.apply(j,Y);X(z)}catch(z){q(z)}}if(Z=!1,J.length>0)Q()}return function(...Y){return new Promise((X,q)=>{J.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var _5=()=>{};function T5($,J){return $.find((Z)=>Z.includes(J))??null}async function h5(){let{BedrockClient:$}=await import("@aws-sdk/client-bedrock"),J=N2(),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 U2(),...Z&&{requestHandler:new(await import("./index-1.1.36-svzjvq7t.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.36-6mpk59p2.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await L0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}async function TJ(){let{BedrockRuntimeClient:$}=await import("@aws-sdk/client-bedrock-runtime"),J=N2(),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 U2(),...Z&&{requestHandler:new(await import("./index-1.1.36-svzjvq7t.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.36-6mpk59p2.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await L0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}function J8($){return $.startsWith("anthropic.")}function Q8($){if(!$.startsWith("arn:"))return $;let J=$.lastIndexOf("/");if(J===-1)return $;return $.substring(J+1)}function Y8($){let J=Q8($);for(let Z of Z8)if(J.startsWith(`${Z}.anthropic.`))return Z;return}function AJ($,J){let Z=Y8($);if(Z)return $.replace(`${Z}.`,`${J}.`);if(J8($))return`${J}.${$}`;return $}var I5,hJ,Z8;var A5=G(()=>{g0();Y0();f();m0();$8();I5=_(async function(){let[$,{ListInferenceProfilesCommand:J}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),Z=[],Q;try{do{let Y=new J({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await $.send(Y);if(X.inferenceProfileSummaries)Z.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return Z.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});hJ=_(async function($){try{let[J,{GetInferenceProfileCommand:Z}]=await Promise.all([h5(),import("@aws-sdk/client-bedrock")]),Q=new Z({inferenceProfileIdentifier:$}),Y=await J.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch(J){return k(J),null}});Z8=["us","eu","apac","global"]});var P2,v2,E2,O2,y2,_2,I2,T2,h2,c0,d0,n0,D0,k0,A2,S2,M2,b0,S5;var C2=G(()=>{P2={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"},v2={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"},E2={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"},O2={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"},y2={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"},_2={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"},I2={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"},T2={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"},h2={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"},A2={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"},S2={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"},M2={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"},b0={haiku35:E2,haiku45:O2,sonnet35:v2,sonnet37:P2,sonnet40:y2,sonnet45:_2,sonnet46:S2,sonnet5:M2,opus40:I2,opus41:T2,opus45:h2,opus46:c0,opus47:d0,opus48:n0,opus5:D0,opus55:k0,fable51:A2},S5=Object.fromEntries(Object.entries(b0).map(([$,J])=>[J.firstParty,$]))});function M5(){return Object.values(l0)}var l0,f2;var u2=G(()=>{l0={"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}}},f2=Object.fromEntries(Object.values(l0).map(($)=>[$.id,$.name]))});var U0={};f5(U0,{prefetchCopilotModelCatalog:()=>m2,normalizeBareCopilotModelId:()=>g2,getEffectiveCopilotModels:()=>z8,getCopilotDisplayName:()=>B8,getCatalogCopilotMaxOutputTokens:()=>G8,getCatalogCopilotContextWindow:()=>H8,fetchCopilotModelCatalog:()=>d5,copilotModelSupportsAnthropicMessages:()=>x8,_setCopilotCatalogForTesting:()=>R8});function N0(){let $=F();if($?.transport!=="github_copilot")return null;return($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function c5(){if(!s)return!1;let $=N0();return $!==null&&X0===$}function V8(){if(C5)return;C5=!0,u5(()=>{let $=N0();if($&&X0!==$)m2()})}function g2($){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 j8($){if(!Array.isArray($))return null;return $.filter((J)=>typeof J==="string")}function W8($){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??{},X=Y.vision===!0||Boolean(Q.vision),q=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:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["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:j8($.supported_endpoints),pickerEnabled:$.model_picker_enabled!==!1}}async function d5(){let $=F();if($?.transport!=="github_copilot")return null;if(p5($.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(),q8);try{let X=await fetch(`${Z}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...m5},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let j=new Set,z=[];for(let x of q.data){let H=W8(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 m2(){V8();let $=N0();if(!$)return;if(s&&X0!==$)s=null,X0=null;if(i0){if(p2===$)return;i0.finally(()=>m2());return}p2=$,i0=d5().then((J)=>{if(J&&N0()===$)s=J,X0=$}).finally(()=>{i0=null,p2=null})}function z8(){if(c5()){let $=s?.filter((J)=>J.pickerEnabled).map((J)=>J.model);if($&&$.length>0)return $}return M5()}function t0($){if(!c5())return;let J=g2($);return s.find((Z)=>Z.model.id===J)}function B8($){let J=g2($);return t0(J)?.model.name??l0[J]?.name}function x8($){let J=t0($);if(!J||J.supportedEndpoints===null)return null;return J.supportedEndpoints.some((Z)=>Z.includes("/v1/messages"))}function H8($){return t0($)?.model.limit.context}function G8($){return t0($)?.model.limit.output}function R8($){s=$,X0=$?N0():null}var q8=5000,s=null,X0=null,i0=null,p2=null,C5=!1;var P0=G(()=>{r();X8();g5();q0();a();u2()});function V(){let $=F();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 nJ(){return V()==="firstParty"}function w8($){let J=F();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(U0)),Y=Q(Z);if(Y!==null)return Y}catch{}return!0}function lJ($){let J=F()?.transport??"anthropic";if(!K8.has(J))return!1;if(J==="github_copilot"&&w8($))return!1;return!0}function n5(){let $=F();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 i5)Z[Q]=b0[Q][J];return Z}async function F8(){let $=a0("bedrock"),J;try{J=await I5()}catch(Q){return k(Q),$}if(!J?.length)return $;let Z={};for(let Q of i5){let Y=b0[Q].firstParty;Z[Q]=T5(J,Y)||$[Q]}return Z}function l5($){let J=D().modelOverrides;if(!J)return $;let Z={...$};for(let[Q,Y]of Object.entries(J)){let X=S5[Q];if(X&&Y)Z[X]=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 L8(){if(E0()!==null)return;if(V()!=="bedrock"){s0(a0(V()));return}t5()}function B(){let $=E0();if($===null)return L8(),l5(a0(V()));return l5($)}async function JZ(){if(E0()!==null)return;if(V()!=="bedrock"){s0(a0(V()));return}await t5()}var i5,t5;var o0=G(()=>{o();m0();_5();V0();A5();C2();u();i5=Object.keys(b0);t5=y5(async()=>{if(E0()!==null)return;try{let $=await F8();s0($)}catch($){k($)}})});async function j0($){let J=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await U.get(J,{headers:{Authorization:`Bearer ${$}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(Z){k(Z)}}var c2=G(()=>{e0();O0();m0()});import{mkdirSync as b8,writeFileSync as N8}from"fs";function v8($,J,Z){if(!w(process.env.CLAUDE_CODE_REMOTE))return;try{b8(J2,{recursive:!0,mode:448}),N8($,J,{encoding:"utf8",mode:384}),W(`Persisted ${Z} to ${$} for subprocess access`)}catch(Q){W(`Failed to persist ${Z} to disk (non-fatal): ${$2(Q)}`,{level:"error"})}}function s5($,J){try{let Q=d2().readFileSync($,{encoding:"utf8"}).trim();if(!Q)return null;return W(`Read ${J} from well-known file ${$}`),Q}catch(Z){if(!$1(Z))W(`Failed to read ${J} from ${$}: ${$2(Z)}`,{level:"debug"});return null}}function J1({envVar:$,wellKnownPath:J,label:Z,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[$];if(!q){let z=s5(J,Z);return Y(z),z}let j=parseInt(q,10);if(Number.isNaN(j))return W(`${$} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let z=d2(),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),v8(J,H,Z),H}catch(z){W(`Failed to read ${Z} from file descriptor ${j}: ${$2(z)}`,{level:"error"});let x=s5(J,Z);return Y(x),x}}function Z2(){return J1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:U8,label:"OAuth token",getCached:a5,setCached:r5})}function n2(){return J1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:P8,label:"API key",getCached:o5,setCached:e5})}var J2="/home/claude/.claude/remote",U8,P8,HZ;var Z1=G(()=>{o();a();f();D8();k8();U8=`${J2}/.oauth_token`,P8=`${J2}/.api_key`,HZ=`${J2}/.session_ingress_token`});async function Y1(){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 i2($){return $.slice(-20)}var X1=G(()=>{Q1();l2()});function LZ($){return $?.name==="CredentialsProviderError"}function q1($){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 t2(){let{STSClient:$,GetCallerIdentityCommand:J}=await import("@aws-sdk/client-sts");await new $().send(new J({}))}async function V1(){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 j1=G(()=>{a()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=e();static getInstance(){if(!T.instance)T.instance=new T;return T.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(T.instance)T.instance.changed.clear(),T.instance=null}}var z1=G(()=>{W1()});var Q2="claude-code-20250219",B1="interleaved-thinking-2025-05-14",y0="context-1m-2025-08-07",Y2="context-management-2025-06-27",NZ="structured-outputs-2025-12-15",s2="web-search-2025-03-05",x1="advanced-tool-use-2025-11-20",H1="tool-search-tool-2025-10-19",UZ="effort-2025-11-24",PZ="task-budgets-2026-03-13",X2="prompt-caching-scope-2026-01-05",vZ="extended-cache-ttl-2025-04-11",EZ="fast-mode-2026-02-01",G1="redact-thinking-2026-02-12",z0="thinking-token-count-2026-05-13",R1="thinking-display-updates-2026-08-18",w1="cache-diagnosis-2026-04-07",K1="thinking-binding-controls-2026-08-01",F1="token-efficient-tools-2026-03-28",L1="afk-mode-2026-01-31",OZ="advisor-tool-2026-03-01",a2,yZ;var q2=G(()=>{a2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),yZ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function O(){if(V()!=="firstParty")return!1;return!w(process.env.CLAUDIN_DISABLE_FAST_MODE)}function N1(){if(!O())return!1;return y8()===null}function O8($,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 y8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!O())return"Fast mode is not available";if(S()&&V2()&&!k1()){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=O8(v.reason,$);return W(`Fast mode unavailable: ${J}`),J}return null}function dZ(){let $=z2($0());return"opus"+(e2()&&!$?"[1m]":"")}function nZ($){if(!O())return!1;if(!N1())return!1;if(!U1($))return!1;let J=D();if(J.fastModePerSessionOptIn)return!1;return J.fastMode===!0}function U1($){if(!O())return!1;let J=$??I0(),Z=I(J).toLowerCase();return Z.includes("opus-5")||Z.includes("opus-4-7")||Z.includes("opus-4-6")}function _8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(O()&&!r2)W("Fast mode cooldown expired, re-enabling fast mode"),r2=!0,v1.emit();B0={status:"active"}}return B0}function tZ($,J){if(!O())return;B0={status:"cooldown",resetAt:$,reason:J},r2=!1;let Z=$-Date.now();W(`Fast mode cooldown triggered (${J}), duration ${Math.round(Z/1000)}s`),P1.emit($,J)}function sZ(){B0={status:"active"}}function aZ(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},W2("userSettings",{fastMode:void 0}),h(($)=>({...$,penguinModeOrgEnabled:!1})),o2.emit(!1)}function I8($){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 T8($){return $==="org_level_disabled_until"||$==="out_of_credits"}function oZ($){let J=I8($);if(W(`Fast mode overage rejection: ${$??"unknown"} — ${J}`),!T8($))W2("userSettings",{fastMode:void 0}),h((Z)=>({...Z,penguinModeOrgEnabled:!1}));E1.emit(J)}function h8(){return _8().status==="cooldown"}function eZ($,J){let Z=O()&&N1()&&!!J&&U1($);if(Z&&h8())return"cooldown";if(Z)return"on";return"off"}async function A8($){let J=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,Z="accessToken"in $?{Authorization:`Bearer ${$.accessToken}`,"anthropic-beta":j2}:{"x-api-key":$.apiKey};return(await U.get(J,{headers:Z})).data}function J7(){if(!O())return;if(v.status!=="pending")return;v=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function Z7(){if(b1())return;if(!O())return;if(_0)return W("Fast mode prefetch in progress, returning in-flight promise"),_0;let $=y1();if(!(K()?.accessToken&&x0())&&!$){v=b().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let Z=Date.now();if(Z-D1<S8){W("Skipping fast mode prefetch, fetched recently");return}D1=Z;let Q=async()=>{let X=K(),q=X?.accessToken&&x0()?{accessToken:X.accessToken}:$?{apiKey:$}:null;if(!q)throw Error("No auth available");return A8(q)};async function Y(){try{let X;try{X=await Q()}catch(j){if(U.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 _1(x),X=await Q();else throw j}else throw j}let q=v.status!=="pending"?v.status==="enabled":b().penguinModeOrgEnabled;if(v=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)W2("userSettings",{fastMode:void 0});h((j)=>({...j,penguinModeOrgEnabled:X.enabled})),o2.emit(X.enabled)}W(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){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)"}: ${X}`,{level:"error"})}finally{_0=null}}return _0=Y(),_0}var cZ="Opus 5.5",B0,r2=!1,P1,v1,lZ,iZ,E1,rZ,v,o2,$7,S8=30000,D1=0,_0=null;var O1=G(()=>{e0();O0();o();Y0();q0();a();f();H0();u();E8();V0();W1();B0={status:"active"},P1=e(),v1=e(),lZ=P1.subscribe,iZ=v1.subscribe;E1=e(),rZ=E1.subscribe;v={status:"pending"},o2=e(),$7=o2.subscribe});function d8($){for(let J of c8)if(J.pattern.test($))return J.cost;return}function $5($){if(O()&&$)return S1;return m}function J5($){if(O()&&$)return S1;return B2[R(D0.firstParty)]??m}function Z5($){if(O()&&$)return C8;return B2[R(k0.firstParty)]??A1}function n8($,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 l8($,J){let Z=L($);if(Z===R(c0.firstParty)||Z===R(d0.firstParty)||Z===R(n0.firstParty)){let Y=J.speed==="fast";return $5(Y)}if(Z===R(k0.firstParty))return Z5(J.speed==="fast");if(Z===R(D0.firstParty))return J5(J.speed==="fast");let Q=B2[Z];if(!Q){let Y=d8($);if(Y)return Y;return i8($,Z),B2[L(I0())]??m8}return Q}function i8($,J){h1()}function t8($,J){let Z=l8($,J);return n8(Z,J)}function j7($,J){let Z={input_tokens:J.inputTokens,output_tokens:J.outputTokens,cache_read_input_tokens:J.cacheReadInputTokens,cache_creation_input_tokens:J.cacheCreationInputTokens};return t8($,Z)}function T1($){if(Number.isInteger($))return`$${$}`;return`$${$.toFixed(2)}`}function x2($){return`${T1($.inputTokens)}/${T1($.outputTokens)} per Mtok`}var M8,T0,I1,m,A1,C8,f8,u8,S1,p8,g8,m8,c8,B2;var M1=G(()=>{o();O1();C2();H0();M8={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},T0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},I1={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},A1={inputTokens:4,outputTokens:20,promptCacheWriteTokens:5,promptCacheWrite1hTokens:8,promptCacheReadTokens:0.2,webSearchRequests:0.01},C8={inputTokens:8,outputTokens:40,promptCacheWriteTokens:10,promptCacheWrite1hTokens:16,promptCacheReadTokens:0.4,webSearchRequests:0.01},f8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},u8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},S1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},p8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},g8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},m8=m,c8=[{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}}];B2={[R(E2.firstParty)]:p8,[R(O2.firstParty)]:g8,[R(v2.firstParty)]:T0,[R(P2.firstParty)]:T0,[R(y2.firstParty)]:T0,[R(_2.firstParty)]:T0,[R(S2.firstParty)]:T0,[R(M2.firstParty)]:M8,[R(I2.firstParty)]:I1,[R(T2.firstParty)]:I1,[R(h2.firstParty)]:m,[R(c0.firstParty)]:m,[R(d0.firstParty)]:m,[R(n0.firstParty)]:m,[R(D0.firstParty)]:m,[R(k0.firstParty)]:A1,[R(A2.firstParty)]:f8,"claude-fable-5":u8}});function c($){return s8.includes($)}function G0($){return a8.includes($)}var s8,a8;var Q5=G(()=>{s8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];a8=["sonnet","opus","haiku"]});function r8($,J){if($.includes(J))return!0;if(c($))return I($).toLowerCase().includes(J);return!1}function C1($,J){if(!$.startsWith(J))return!1;return $.length===J.length||$[J.length]==="-"}function o8($,J){let Z=c($)?I($).toLowerCase():$;if(C1(Z,J))return!0;if(!J.startsWith("claude-")&&C1(Z,`claude-${J}`))return!0;return!1}function f1($,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 u1($){let J=D()||{},{availableModels:Z}=J;if(!Z)return!0;if(Z.length===0)return!1;let Y=r0($).trim().toLowerCase(),X=Z.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!G0(Y)||!f1(Y,X))return!0}for(let q of X)if(G0(q)&&!f1(q,X)&&r8(Y,q))return!0;if(c(Y)){let q=I(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!G0(q)&&c(q)){if(I(q).toLowerCase()===Y)return!0}for(let q of X)if(!G0(q)&&!c(q)){if(o8(Y,q))return!0}return!1}var p1=G(()=>{V0();Q5();H0();o0()});function H2($){if(typeof $!=="string")return;let J=$.trim();return J.length>0?J:void 0}function R0(){let $=F();if(!$?.model)return;return c1($.model)}function T7(){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 l1()}function h7($){return $===B().opus40||$===B().opus41||$===B().opus45||$===B().opus46||$===B().opus47||$===B().opus48||$===B().opus5||$===B().opus55}function z2($){let J=L($);return J.includes("opus-5")||J.includes("sonnet-5")||J.includes("fable-5")}function Y5(){let $,J=g1();if(J!==void 0)$=J;else{let Z=D()||{},Q=H2(Z.model),X=R0()||Q||void 0,q=m1(),j=H2(q.activeModelForProject);if(j){let z=d1()?.id,x=q.activeModelForProjectProfileId;$=x===void 0||x===z?j:X}else $=X}if($&&!u1($))return;return $}function A7(){let $=Y5();if($!==void 0&&$!==null)return I($);return i1()}function J$(){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().sonnet5}function l1(){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 S7($){let{permissionMode:J,mainLoopModel:Z,exceeds200kTokens:Q=!1}=$;if(Y5()==="opusplan"&&J==="plan"&&!Q)return $0();if(Y5()==="haiku"&&J==="plan")return h0();return Z}function I0(){let $=R0();if(V()==="github"){let J=D()||{};return H2(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(V5()||j5()){let J=$0();return J+(e2()&&!z2(J)?"[1m]":"")}return h0()}function i1(){return I(I0())}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"))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"))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 L($){return R(r0($))}function Z$($=!1){if(V5()||j5())return`Opus 5.5 · Most capable for complex work${$?Q$(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function M7($){if($==="opusplan")return"Opus 5.5 in plan mode, else Sonnet 5";return X$(I($))}function C7($){if(V()!=="firstParty")return"";let J=x2($5($));return` ·${$?` (${G2})`:""} ${J}`}function f7($){if(V()!=="firstParty")return"";let J=x2(J5($));return` ·${$?` (${G2})`:""} ${J}`}function Q$($){if(V()!=="firstParty")return"";let J=x2(Z5($));return` ·${$?` (${G2})`:""} ${J}`}function e2(){if(J0()||t1()||V()!=="firstParty")return!1;if(M()&&n()===null)return!1;return!0}function Y$($){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(f2[$])return f2[$];if(V()==="github"){let{getCopilotDisplayName:J}=(P0(),v0(U0));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().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 X$($){let J=Y$($);if(J)return J;if($==="github:copilot")return"GPT-4o";return $}function I($){let J=H2($);if(!J)return h0();let Z=J.toLowerCase(),Q=d(Z),Y=Q?Z.replace(/\[1m]$/i,"").trim():Z;if(c(Y)){let X=(q)=>Q&&!z2(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(h0());case"sonnet":return X(h0());case"haiku":return X(l1());case"opus":return X($0());case"best":return J$();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"&&V$(Y)&&j$())return $0()+(Q?"[1m]":"");if(Q)return J.replace(/\[1m\]$/i,"").trim()+"[1m]";return J}function u7($,J){if(d($)||!d(J))return $;if(X5(I($)))return $+"[1m]";return $}function V$($){return q$.includes($)}function j$(){return!w(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function p7($){if($===null){if(M())return`Default (${Z$()})`;return`Default (${i1()})`}let J=I($);return $===J?J:`${$} (${J})`}function g7($){if(V()==="foundry")return;let J=$.toLowerCase().includes("[1m]"),Z=L($);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"))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 m7($){return $.replace(/\[(1|2)m\]/gi,"")}function c7($){let J=L($);return J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")||J.includes("sonnet-5")}var q$;var H0=G(()=>{o();r();q0();n1();Y0();q5();f();$$();o0();M1();V0();u();e8();p1();Q5();u2();q$=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function W5($){return}var s1=()=>{};function x$($,J={}){if(J.isPro??(B$.test($)||a1.has($)))return!1;if(W$.has($))return!0;if(a1.has($))return!1;let Q=$.match(z$);return Q?Number.parseFloat(Q[1])>5.4:!1}function l7(){return R2.filter(($)=>x$($.id,{isPro:$.isPro}))}var R2,W$,a1,z$,B$,r1,o1;var e1=G(()=>{R2=[{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}],W$=new Set(R2.filter(($)=>!$.isPro).map(($)=>$.id)),a1=new Set(["gpt-5.5-pro"]),z$=/^gpt-(\d+\.\d+)/,B$=/-pro$/;r1=Object.fromEntries(R2.filter(($)=>$.contextInput!==void 0).map(($)=>[$.id,$.contextInput])),o1=Object.fromEntries(R2.filter(($)=>$.contextOutput!==void 0).map(($)=>[$.id,$.contextOutput]))});var q4={};f5(q4,{prefetchOpenAICompatibleModels:()=>b$,getDiscoveredContextWindow:()=>H$,discoverOpenAICompatibleModelOptions:()=>X4});function H$($){return Q4.get($)}function G$(){return(F()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function Y4($){try{let J=new URL($).hostname.toLowerCase();return J.endsWith(".openai.azure.com")||J.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function R$($){try{return new URL($).hostname.toLowerCase().includes("bankr")}catch{return!1}}function w$($){let J=F()?.apiKey?.trim();if(!J)return{};if(R$($))return{"X-API-Key":J};let Z={Authorization:`Bearer ${J}`};if(Y4($))Z["api-key"]=J;return Z}function K$($){let J=$.endsWith("/v1")?`${$}/models`:`${$}/v1/models`,Z=`${$}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&Y4($)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if(J===Z)return[Y(J)];return[Y(J),Y(Z)]}function F$($){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 L$($){if($>=1e6)return`${$/1e6}M ctx`;if($>=1000)return`${Math.round($/1000)}K ctx`;return`${$} ctx`}async function D$($,J){let Z=new Set;for(let Q of $)try{let Y=await U.get(Q,{headers:J,timeout:Z4}),X=[];for(let q of Y.data?.data??[]){let j=q.id?.trim();if(!j||Z.has(j))continue;Z.add(j);let z=q.name?.trim()||j,x=q.context_length??null;if(x&&x>0)Q4.set(j,x);let H=x?` · ${L$(x)}`:"";X.push({value:j,label:z,description:`${j}${H}`})}if(X.length>0)return X.sort((q,j)=>{let z=String(q.value).split("/")[0]??"",x=String(j.value).split("/")[0]??"",H=z.localeCompare(x);return H!==0?H:String(q.value).localeCompare(String(j.value))}),X}catch{W(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function k$($,J){try{let Z=await U.get($,{headers:J,timeout:Z4}),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 X4(){if(V()!=="openai")return[];let $=G$(),J=w$($),Z=await D$(K$($),J);if(Z.length>0)return Z;let Q=F$($);if(Q)return k$(Q,J);return[]}function b$(){if(A0)return A0;return A0=(async()=>{if(!J4()?.startsWith("openai:"))return;try{let J=await X4();if(J.length>0)$4(J)}catch{}finally{A0=null}})(),A0}var Z4=5000,Q4,A0=null;var V4=G(()=>{e0();r();g5();a();u();n1();Q4=new Map});function W4($,J,Z){let Q=F()?.model?.trim();if(Q&&Q!==Z){let X=`${Q}:${Z}`;if(J[X]!==void 0)return J[X];if($[X]!==void 0)return $[X]}let Y=j4(J,Z);if(Y!==void 0)return Y;return j4($,Z)}function j4($,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 z4($){try{let{getDiscoveredContextWindow:Z}=(V4(),v0(q4)),Q=Z($);if(Q!==void 0)return Q}catch{}let J=W4(N$,P$,$);if(J!==void 0)return J;try{let{getCatalogCopilotContextWindow:Z}=(P0(),v0(U0));return Z($)}catch{return}}function B4($){let J=W4(U$,v$,$);if(J!==void 0)return J;try{let{getCatalogCopilotMaxOutputTokens:Z}=(P0(),v0(U0));return Z($)}catch{return}}var N$,U$,P$,v$;var x4=G(()=>{r();e1();N$={"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,...r1,"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},U$={"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,...o1,"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},P$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})(),v$=(()=>{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 H4(){let $=F()?.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 X5($){if(J0())return!1;let J=L($);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 B9($,J){if(d($))return 1e6;if(H4()){let Q=z4($);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."),E$}let Z=W5($);if(Z?.max_input_tokens&&Z.max_input_tokens>=1e5){if(Z.max_input_tokens>z5&&J0())return z5;return Z.max_input_tokens}if(!J0()&&(L($).includes("fable-5")||L($).includes("sonnet-5")||L($).includes("opus-5")))return 1e6;if(J?.includes(y0)&&X5($))return 1e6;if(_$($))return 1e6;return z5}function _$($){if(J0())return!1;if(d($))return!1;if(!L($).includes("sonnet-4-6"))return!1;return b().clientDataCache?.coral_reef_sonnet==="true"}function x9($,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 H9($){let J,Z;if(H4()){let X=B4($);if(X!==void 0)return{default:X,upperLimit:X}}let Q=L($);if(Q.includes("opus-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=O$,Z=y$;let Y=W5($);if(Y?.max_tokens&&Y.max_tokens>=4096)Z=Y.max_tokens,J=Math.min(J,Z);return{default:J,upperLimit:Z}}var z5=200000,E$,z9=20000,O$=32000,y$=64000;var q5=G(()=>{q2();r();q0();f();H0();s1();x4();E$=(()=>{let $=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN($)&&$>0?$:128000})()});var I$,G4;var R4=G(()=>{g0();u();I$=[{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"}],G4=_(($,J)=>{if(V()==="firstParty")return;let Z=$.toLowerCase();for(let Q of I$){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(Z!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes(J)}return},($,J)=>`${$.toLowerCase()}:${J}`)});function h$($){if($.provider!=="firstParty"||!$.profileIsFirstParty)return!1;if(!$.envBaseUrl||$.assumeFirstParty)return!0;try{return new URL($.envBaseUrl).host===T$}catch{return!1}}function x5(){return h$({provider:V(),profileIsFirstParty:n5(),envBaseUrl:process.env.ANTHROPIC_BASE_URL,assumeFirstParty:w(process.env.CLAUDIN_ASSUME_FIRST_PARTY_BASE_URL)})}function w2($){return!S0.has($)&&!w(process.env[B5[$].killswitch])&&x5()}function k9($){return S0.has($)}function b9($){S0.add($)}function N9($){if(S0.size===0)return[...$];let J=new Set([...S0].map((Z)=>B5[Z].header));return $.filter((Z)=>!J.has(Z))}function U9($,J){if($!==400||!J)return null;let Z=A$.exec(J)?.[1];if(Z!==void 0){for(let[Q,{header:Y}]of Object.entries(B5))if(Y&&Z.includes(Y))return Q;return null}if(S$.test(J))return"thinkingDisplayUpdates";if(M$.test(J))return"cacheDiagnosis";if(C$.test(J))return"contextManagement";return null}var B5,T$="api.anthropic.com",S0,A$,S$,M$,C$;var w4=G(()=>{q2();f();u();B5={thinkingDisplayUpdates:{header:R1,killswitch:"CLAUDIN_DISABLE_THINKING_DISPLAY_UPDATES"},thinkingTokenCount:{header:z0,killswitch:"CLAUDIN_DISABLE_THINKING_TOKEN_COUNT"},contextManagement:{header:Y2,killswitch:"CLAUDIN_DISABLE_CONTEXT_MANAGEMENT"},promptCachingScope:{header:X2,killswitch:"CLAUDIN_DISABLE_PROMPT_CACHING_SCOPE"},cacheDiagnosis:{header:w1,killswitch:"CLAUDIN_DISABLE_CACHE_DIAGNOSIS"},afkMode:{header:L1,killswitch:"CLAUDIN_DISABLE_AFK_MODE_BETA"}};S0=new Set;A$=/Unexpected value\(s\) (.+?) for the `anthropic-beta` header/,S$=/\bthinking\.(?:adaptive|enabled)\.display:/,M$=/\bdiagnostics(?:\.[a-z_]+)*:/,C$=/\bcontext_management(?:\.[a-z_0-9]+)*:/});function f$($){let J=[],Z=[];for(let Q of $)if(F4.includes(Q))J.push(Q);else Z.push(Q);return{allowed:J,disallowed:Z}}function u9($){if(!$||$.length===0)return;if(M()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:J,disallowed:Z}=f$($);for(let Q of Z)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${F4.join(", ")}`);return J.length>0?J:void 0}function H5($){let J=G4($,"interleaved_thinking");if(J!==void 0)return J;let Z=L($),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 u$($){let J=L($);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 p$($){let J=L($),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 p9($){let J=L($),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 g$($){if(V()!=="firstParty")return!1;let J=L($);return J.includes("claude-opus-5-5")||J.includes("claude-fable-5-1")}function g9($){let J=L($);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 m9(){let $=V();if($==="vertex"||$==="bedrock")return H1;return x1}function m$(){return(V()==="firstParty"||V()==="foundry")&&!w(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function c9(){if(w(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!w(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function d9($,J){let Z=[...L4($)];if(J?.isAgenticQuery){if(!Z.includes(Q2))Z.push(Q2)}let Q=K4();if(!Q||Q.length===0)return Z;return[...Z,...Q.filter((Y)=>!Z.includes(Y))]}function D4(){G5.cache?.clear?.(),L4.cache?.clear?.(),c$.cache?.clear?.()}var F4,G5,L4,c$;var k4=G(()=>{g0();o();q2();O0();Y0();q5();f();H0();R4();u();V0();w4();F4=[y0];G5=_(($)=>{let J=[],Z=L($).includes("haiku"),Q=V(),Y=m$();if(!Z)J.push(Q2);if(M())J.push(j2);if(d($))J.push(y0);if(!w(process.env.DISABLE_INTERLEAVED_THINKING)&&H5($))J.push(B1);if(Y&&H5($)&&!S()&&D().showThinkingSummaries!==!0&&!x5())J.push(G1),J.push(z0);if(H5($)&&w2("thinkingTokenCount")&&!J.includes(z0))J.push(z0);let X=p$($);if((Y||w2("contextManagement"))&&X)J.push(Y2);if(g$($))J.push(K1);if(Y&&w(process.env.CLAUDIN_JSON_TOOL_USE))J.push(F1);if(Q==="vertex"&&u$($))J.push(s2);if(Q==="foundry")J.push(s2);if(Y||w2("promptCachingScope"))J.push(X2);if(process.env.ANTHROPIC_BETAS)J.push(...process.env.ANTHROPIC_BETAS.split(",").map((q)=>q.trim()).filter(Boolean));return J}),L4=_(($)=>{let J=G5($);if(V()==="bedrock")return J.filter((Z)=>!a2.has(Z));return J}),c$=_(($)=>{return G5($).filter((Z)=>a2.has(Z))})});import{execFile as d$}from"child_process";function b4($){return new Promise((J)=>{d$("security",["find-generic-password","-a",F2(),"-w","-s",$],{encoding:"utf-8",timeout:n$},(Z,Q)=>{J({stdout:Z?null:Q?.trim()||null,timedOut:Boolean(Z&&"killed"in Z&&Z.killed)})})})}function s9(){if(process.platform!=="darwin"||K2||C())return;let $=b4(g(N4)),J=b4(g());K2=Promise.all([$,J]).then(([Z,Q])=>{if(!Z.timedOut)U4(Z.stdout);if(!Q.timedOut)R5={stdout:Q.stdout}})}async function a9(){if(K2)await K2}function P4(){return R5}function w5(){R5=null}var n$=1e4,R5=null,K2=null;var v4=G(()=>{f();l2()});function o9(){return E4}function O4(){E4.clear()}var E4;var y4=G(()=>{E4=new Map});import{exec as p4}from"child_process";import{mkdir as e$,stat as $J}from"fs/promises";import{join as JJ}from"path";function D2(){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 $=L5(),Z=(D()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||Z||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=N5({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!($||Q&&!D2()||X&&!D2())}function g4(){if(C()){if(Z0())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(Z2()){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()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let Z=K();if(F0(Z?.scopes)&&Z?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function y1(){let{key:$}=N5();return $}function N5($={}){let J=(()=>{let q=F();if(q?.transport!=="anthropic")return;let j=q.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:I4(),source:"apiKeyHelper"};return{key:null,source:"none"}}let Z=J;if(V2()&&Z)return{key:Z,source:"ANTHROPIC_API_KEY"};if(w(process.env.CI)){let q=n2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!L5()&&!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&&!L5())return{key:Z,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(Z&&b().customApiKeyResponses?.approved?.includes(i2(Z)))return{key:Z,source:"ANTHROPIC_API_KEY"};let Q=n2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(Z0()){if($.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:I4(),source:"apiKeyHelper"}}let X=E5();if(X)return X;return{key:null,source:"none"}}function Z0(){if(C())return E("flagSettings")?.apiKeyHelper;return(D()||{}).apiKeyHelper}function m4(){let $=Z0();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.apiKeyHelper===$||Z?.apiKeyHelper===$}function U5(){return(D()||{}).awsAuthRefresh}function c4(){let $=U5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsAuthRefresh===$||Z?.awsAuthRefresh===$}function P5(){return(D()||{}).awsCredentialExport}function d4(){let $=P5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsCredentialExport===$||Z?.awsCredentialExport===$}function QJ(){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 ZJ}function TQ(){let $=p?.startedAt;return $?Date.now()-$:0}async function YJ($){if(!Z0())return null;let J=QJ();if(y){if(Date.now()-y.timestamp<J)return y.value;if(!p)p={promise:_4($,!1,K0),startedAt:null};return y.value}if(p)return p.promise;return p={promise:_4($,!0,K0),startedAt:Date.now()},p.promise}async function _4($,J,Z){try{let Q=await XJ($);if(Z!==K0)return Q;if(Q!==null)y={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&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(Z===K0)p=null}}async function XJ($){let J=Z0();if(!J)return null;if(m4()){if(!l()&&!$){let X=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",X),null}}let Z=await W0(J,{shell:!0,timeout:600000,reject:!1});if(Z.failed){let Y=Z.timedOut?"timed out":`exited ${Z.exitCode}`,X=Z.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=Z.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function I4(){return y?.value??null}function hQ(){K0++,y=null,p=null}function AQ($){if(m4()&&!l())return;YJ($)}async function VJ(){let $=U5();if(!$)return!1;if(c4()){if(!l()&&!S()){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 t2(),W("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return WJ($)}}function WJ($){W("Running AWS auth refresh command");let J=T.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=p4($,{timeout:jJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("AWS auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let j=X==="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 zJ(){let $=P5();if(!$)return null;if(d4()){if(!l()&&!S()){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 t2(),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=A4(J.stdout.trim());if(!q1(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 SQ(){L0.cache.clear()}function v5(){return(D()||{}).gcpAuthRefresh}function n4(){let $=v5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.gcpAuthRefresh===$||Z?.gcpAuthRefresh===$}async function xJ(){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=b5(BJ).then(()=>{throw new a4("GCP credentials check timed out")});return await Promise.race([Z,Q]),!0}catch{return!1}}async function GJ(){let $=v5();if(!$)return!1;if(n4()){if(!l()&&!S()){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 xJ())return W("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return wJ($)}function wJ($){W("Running GCP auth refresh command");let J=T.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=p4($,{timeout:RJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("GCP auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let j=X==="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 MQ(){l4.cache.clear()}function CQ(){if(!v5())return;if(n4()){if(!l()&&!S())return}l4()}function fQ(){let $=U5(),J=P5();if(!$&&!J)return;if(c4()||d4()){if(!l()&&!S())return}L0(),B()}function KJ($){return/^[a-zA-Z0-9-_]+$/.test($)}async function i4($){if(!KJ($))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await t4();let J=!1;if(process.platform==="darwin")try{let Q=g(),Y=F2(),X=Buffer.from($,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
|
|
2
|
-
`;await W0("security",["-i"],{input:q,reject:!1}),J=!0}catch(Q){k(Q)}let Z=i2($);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??[]}}}),E5.cache.clear?.(),w5()}async function uQ(){await t4(),h(($)=>({...$,primaryApiKey:void 0})),E5.cache.clear?.(),w5()}async function t4(){try{await Y1()}catch($){k($)}}function FJ($){if(!F0($.scopes))return{success:!0};if(!$.refreshToken||!$.expiresAt)return{success:!0};let J=k2();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?.(),D4(),O4(),Y}catch(Z){return k(Z),{success:!1,warning:"Failed to save OAuth tokens"}}}function s4(){K.cache?.clear?.(),w0()}async function LJ(){try{let{mtimeMs:$}=await $J(JJ(D5(),".credentials.json"));if($!==T4)T4=$,s4()}catch{K.cache?.clear?.()}}function _1($){let J=K5.get($);if(J)return J;let Z=DJ($).finally(()=>{K5.delete($)});return K5.set($,Z),Z}async function DJ($){s4();let J=await L2();if(!J?.refreshToken)return!1;if(J.accessToken!==$)return!0;return b2(0,!0)}async function L2(){if(C())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||Z2())return K();try{let Z=(await k2().readAsync())?.claudeAiOauth;if(!Z?.accessToken)return null;return Z}catch($){return k($),null}}function b2($=0,J=!1){if($===0&&!J){if(M0)return M0;return M0=F5($,J).finally(()=>{M0=null}),M0}return F5($,J)}async function F5($,J){await LJ();let Q=K();if(!J){if(!Q?.refreshToken||!C0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!F0(Q.scopes))return!1;K.cache?.clear?.(),w0();let Y=await L2();if(!Y?.refreshToken||!C0(Y.expiresAt))return!1;let X=D5();await e$(X,{recursive:!0});let q;try{q=await M4(X)}catch(j){if(j.code==="ELOCKED"){if($<5)return await b5(1000+Math.random()*1000),F5($+1,J);return!1}return k(j),!1}try{K.cache?.clear?.(),w0();let j=await L2();if(!j?.refreshToken||!C0(j.expiresAt))return!1;let z=await f4(j.refreshToken,{scopes:F0(j.scopes)?void 0:j.scopes});return FJ(z),K.cache?.clear?.(),w0(),!0}catch(j){k(j),K.cache?.clear?.(),w0();let z=await L2();if(z&&!C0(z.expiresAt))return!0;return!1}finally{await q()}}function M(){if(!u0())return!1;return F0(K()?.scopes)}function x0(){return K()?.scopes?.includes(S4)??!1}function pQ(){{let $=F()?.transport;if($==="bedrock"||$==="vertex"||$==="foundry")return!1}if(M())return!1;return!0}function h4(){return u0()?b().oauthAccount:void 0}function n(){if(!u0())return null;let $=K();if(!$)return null;return $.subscriptionType??null}function V5(){return n()==="max"}function gQ(){return n()==="team"}function j5(){return n()==="team"&&kJ()==="default_claude_max_5x"}function mQ(){return n()==="enterprise"}function t1(){return n()==="pro"}function kJ(){if(!u0())return null;let $=K();if(!$)return null;return $.rateLimitTier??null}function bJ(){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 L5(){let $=F()?.transport;if(!$)return!1;return $!=="anthropic"}function cQ(){if(V()!=="firstParty")return;let{source:J}=g4(),Z={};if(J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")Z.tokenSource=J;else if(M())Z.subscription=bJ();else Z.tokenSource=J;let{key:Q,source:Y}=N5();if(Q)Z.apiKeySource=Y;if(J==="claude.ai"||Y==="/login managed key"){let q=h4()?.organizationName;if(q)Z.organization=q}let X=h4()?.emailAddress;if((J==="claude.ai"||Y==="/login managed key")&&X)Z.email=X;return Z}async function dQ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!u0())return{valid:!0};let $=E("policySettings")?.forceLoginOrgUUID;if(!$)return{valid:!0};await b2();let J=K();if(!J)return{valid:!0};let{source:Z}=g4(),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 X=Y.organization.uuid;if(X===$)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: ${X}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
|
|
13
|
-
but this machine requires organization ${$}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var ZJ=300000,y=null,p=null,K0=0,qJ=3600000,jJ=180000,L0,BJ=5000,HJ=3600000,RJ=180000,l4,E5,K,T4=0,K5,M0=null,a4;var Y0=G(()=>{i$();Q1();g0();O0();o0();u();o();r();u4();c2();Z1();X1();j1();z1();k4();q0();a();f();a$();s$();m0();t$();r$();v4();l2();V0();o$();l$();y4();L0=k5(async()=>{let $=await VJ(),J=await zJ();if($||J)await V1();return J},qJ);l4=k5(async()=>{return await GJ()},HJ);E5=_(()=>{if(C())return null;if(process.platform==="darwin"){let J=P4();if(J){if(J.stdout)return{key:J.stdout,source:"/login managed key"}}else{let Z=g();try{let Q=C4(`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 $=Z2();if($)return{accessToken:$,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=k2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch(J){return k(J),null}});K5=new Map;a4=class a4 extends Error{}});function F0($){return Boolean($?.includes(O5))}function NJ($){return $?.split(" ").filter(Boolean)??[]}function oQ({codeChallenge:$,state:J,port:Z,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:j,loginMethod:z}){let x=Y?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,H=new URL(x);H.searchParams.append("code","true"),H.searchParams.append("client_id",N().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${Z}/callback`);let Q0=X?[O5]:e4;if(H.searchParams.append("scope",Q0.join(" ")),H.searchParams.append("code_challenge",$),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",J),q)H.searchParams.append("orgUUID",q);if(j)H.searchParams.append("login_hint",j);if(z)H.searchParams.append("login_method",z);return H.toString()}async function eQ($,J,Z,Q,Y=!1,X){let q={grant_type:"authorization_code",code:$,redirect_uri:Y?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:Z,state:J};if(X!==void 0)q.expires_in=X;let j=await U.post(N().TOKEN_URL,q,{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 f4($,{scopes:J}={}){let Z={grant_type:"refresh_token",refresh_token:$,client_id:N().CLIENT_ID,scope:((J?.length)?J:o4).join(" ")};try{let Q=await U.post(N().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:X,refresh_token:q=$,expires_in:j}=Y,z=Date.now()+j*1000,x=NJ(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 UJ(X);if(P&&H.oauthAccount){let i={};if(P.displayName!==void 0)i.displayName=P.displayName;if(typeof P.hasExtraUsageEnabled==="boolean")i.hasExtraUsageEnabled=P.hasExtraUsageEnabled;if(P.billingType!==null)i.billingType=P.billingType;if(P.accountCreatedAt!==void 0)i.accountCreatedAt=P.accountCreatedAt;if(P.subscriptionCreatedAt!==void 0)i.subscriptionCreatedAt=P.subscriptionCreatedAt;if(Object.keys(i).length>0)h((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...i}:p0.oauthAccount}))}return{accessToken:X,refreshToken:q,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=U.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw Q}}async function $3($){let J=await U.get(N().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 J3($){try{let Z=(await U.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${$}`}})).data?.raw_key;if(Z)return await i4(Z),Z;return null}catch(J){throw J}}function C0($){if($===null)return!1;let J=300000;return Date.now()+J>=$}async function UJ($){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 Z3(){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 Q3(){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)r4({accountUuid:$,emailAddress:J,organizationUuid:Z})}await b2();let Y=b();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!M()||!x0())return!1;let X=K();if(X?.accessToken){let q=await j0(X.accessToken),j=q?.account,z=q?.organization;if(j){if(Q)W("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return r4({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 r4({accountUuid:$,emailAddress:J,organizationUuid:Z,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:j}){let z={accountUuid:$,emailAddress:J,organizationUuid:Z,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,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 u4=G(()=>{e0();O0();Y0();q0();a();c2()});
|
|
16
|
-
export{s9 as i1,a9 as j1,v4 as k1,y5 as l1,_5 as m1,TJ as n1,hJ as o1,J8 as p1,Y8 as q1,AJ as r1,A5 as s1,c0 as t1,k0 as u1,C2 as v1,m2 as w1,z8 as x1,P0 as y1,V as z1,nJ as A1,w8 as B1,lJ as C1,n5 as D1,u as E1,B as F1,JZ as G1,o0 as H1,j0 as I1,c2 as J1,F0 as K1,NJ as L1,oQ as M1,eQ as N1,f4 as O1,$3 as P1,J3 as Q1,C0 as R1,UJ as S1,Z3 as T1,Q3 as U1,r4 as V1,u4 as W1,HZ as X1,v8 as Y1,s5 as Z1,Z1 as _1,i2 as $1,X1 as a2,LZ as b2,j1 as c2,T as d2,z1 as e2,y0 as f2,Y2 as g2,NZ as h2,UZ as i2,PZ as j2,X2 as k2,vZ as l2,EZ as m2,G1 as n2,R1 as o2,w1 as p2,K1 as q2,L1 as r2,OZ as s2,yZ as t2,q2 as u2,O as v2,N1 as w2,y8 as x2,cZ as y2,dZ as z2,nZ as A2,U1 as B2,lZ as C2,iZ as D2,_8 as E2,tZ as F2,sZ as G2,aZ as H2,rZ as I2,oZ as J2,h8 as K2,eZ as L2,$7 as M2,J7 as N2,Z7 as O2,O1 as P2,T0 as Q2,f8 as R2,p8 as S2,g8 as T2,$5 as U2,t8 as V2,j7 as W2,x2 as X2,M1 as Y2,s8 as Z2,Q5 as _2,u1 as $2,p1 as a3,T7 as b3,h7 as c3,z2 as d3,Y5 as e3,A7 as f3,J$ as g3,$0 as h3,h0 as i3,l1 as j3,S7 as k3,I0 as l3,i1 as m3,R as n3,L as o3,Z$ as p3,M7 as q3,C7 as r3,f7 as s3,Q$ as t3,e2 as u3,Y$ as v3,X$ as w3,I as x3,u7 as y3,j$ as z3,p7 as A3,g7 as B3,m7 as C3,c7 as D3,H0 as E3,l7 as F3,e1 as G3,X4 as H3,b$ as I3,V4 as J3,z9 as K3,J0 as L3,d as M3,B9 as N3,_$ as O3,x9 as P3,H9 as Q3,q5 as R3,G4 as S3,R4 as T3,B5 as U3,x5 as V3,w2 as W3,k9 as X3,b9 as Y3,N9 as Z3,U9 as _3,w4 as $3,u9 as a4,p9 as b4,g9 as c4,m9 as d4,m$ as e4,c9 as f4,L4 as g4,c$ as h4,d9 as i4,D4 as j4,k4,o9 as l4,O4 as m4,y4 as n4,u0 as o4,g4 as p4,y1 as q4,N5 as r4,Z0 as s4,c4 as t4,d4 as u4,QJ as v4,TQ as w4,YJ as x4,I4 as y4,hQ as z4,AQ as A4,WJ as B4,L0 as C4,SQ as D4,n4 as E4,xJ as F4,wJ as G4,l4 as H4,MQ as I4,CQ as J4,fQ as K4,E5 as L4,i4 as M4,uQ as N4,FJ as O4,K as P4,s4 as Q4,_1 as R4,L2 as S4,b2 as T4,M as U4,x0 as V4,pQ as W4,h4 as X4,n as Y4,V5 as Z4,gQ as _4,j5 as $4,mQ as a5,t1 as b5,kJ as c5,bJ as d5,L5 as e5,cQ as f5,dQ as g5,Y0 as h5};
|