@claudiolabs/claudin 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.0.4-hb5yf83k.mjs +1 -0
- package/dist/chunks/App-1.0.4-ee5phav9.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +7 -0
- package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +6 -0
- package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +1 -0
- package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +1 -0
- package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +1 -0
- package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +110 -0
- package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +3 -0
- package/dist/chunks/api-1.0.4-h4pnj11w.mjs +1 -0
- package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +1 -0
- package/dist/chunks/assistant-1.0.4-cezj138d.mjs +1 -0
- package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +1 -0
- package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +1 -0
- package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +1 -0
- package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +4 -0
- package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +1 -0
- package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +1 -0
- package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +3 -0
- package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +4 -0
- package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +1 -0
- package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +1 -0
- package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +1 -0
- package/dist/chunks/cli-1.0.4-08e3sn18.mjs +2 -0
- package/dist/chunks/cli-1.0.4-092qjm5g.mjs +25 -0
- package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +2 -0
- package/dist/chunks/cli-1.0.4-0pqf799x.mjs +2 -0
- package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +16 -0
- package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +67 -0
- package/dist/chunks/cli-1.0.4-1bg07n68.mjs +4 -0
- package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-1j122zyj.mjs +2 -0
- package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +20 -0
- package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +2 -0
- package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +50 -0
- package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2vrfse65.mjs +2 -0
- package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +24 -0
- package/dist/chunks/cli-1.0.4-3289hbrr.mjs +6 -0
- package/dist/chunks/cli-1.0.4-34jdejmp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +2 -0
- package/dist/chunks/cli-1.0.4-3b0061a4.mjs +2 -0
- package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +3 -0
- package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +3 -0
- package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +2 -0
- package/dist/chunks/cli-1.0.4-4sfp975c.mjs +2 -0
- package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +24 -0
- package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5663sqrh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +2 -0
- package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +2 -0
- package/dist/chunks/cli-1.0.4-618n4yb3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +2 -0
- package/dist/chunks/cli-1.0.4-75pszwff.mjs +12 -0
- package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +2 -0
- package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +39 -0
- package/dist/chunks/cli-1.0.4-7jd24agk.mjs +2 -0
- package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +4 -0
- package/dist/chunks/cli-1.0.4-80hrkybp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-85cb91sn.mjs +4 -0
- package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +2 -0
- package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +3 -0
- package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +8 -0
- package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +2 -0
- package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +2 -0
- package/dist/chunks/cli-1.0.4-95nw81kz.mjs +2 -0
- package/dist/chunks/cli-1.0.4-982xabhy.mjs +2 -0
- package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +59 -0
- package/dist/chunks/cli-1.0.4-9re52te8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-9w88pg39.mjs +12 -0
- package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +2 -0
- package/dist/chunks/cli-1.0.4-a14svdr8.mjs +1 -0
- package/dist/chunks/cli-1.0.4-avmcefxg.mjs +10 -0
- package/dist/chunks/cli-1.0.4-azntz5z2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +133 -0
- package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-bneycyws.mjs +2 -0
- package/dist/chunks/cli-1.0.4-bnsdazas.mjs +3 -0
- package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +2 -0
- package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +2 -0
- package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +58 -0
- package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +2 -0
- package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +2 -0
- package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e26gm32b.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +2 -0
- package/dist/chunks/cli-1.0.4-e86sgy00.mjs +3 -0
- package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +2 -0
- package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +5 -0
- package/dist/chunks/cli-1.0.4-ef5asahs.mjs +4 -0
- package/dist/chunks/cli-1.0.4-emp66cxw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +6 -0
- package/dist/chunks/cli-1.0.4-ex22h376.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f0t68sye.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f20q38cw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +15 -0
- package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +2 -0
- package/dist/chunks/cli-1.0.4-f965h6gd.mjs +7 -0
- package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +3 -0
- package/dist/chunks/cli-1.0.4-fcswm1md.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +2 -0
- package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +2 -0
- package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +2 -0
- package/dist/chunks/cli-1.0.4-genhzh1b.mjs +2 -0
- package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +5 -0
- package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ghzbww61.mjs +34 -0
- package/dist/chunks/cli-1.0.4-gqc15qng.mjs +6 -0
- package/dist/chunks/cli-1.0.4-gssg75hx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-gyjecspm.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +3 -0
- package/dist/chunks/cli-1.0.4-hwje79ka.mjs +2 -0
- package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +3 -0
- package/dist/chunks/cli-1.0.4-j17mhs88.mjs +18 -0
- package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +5471 -0
- package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +2 -0
- package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +2 -0
- package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +2 -0
- package/dist/chunks/cli-1.0.4-k20sr786.mjs +3 -0
- package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +2 -0
- package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +3 -0
- package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +2 -0
- package/dist/chunks/cli-1.0.4-m240wvtt.mjs +9 -0
- package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ndy339bx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-nfpfve45.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +2 -0
- package/dist/chunks/cli-1.0.4-nws4fp34.mjs +2 -0
- package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +18 -0
- package/dist/chunks/cli-1.0.4-p618f4eb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +18 -0
- package/dist/chunks/cli-1.0.4-pxqvx117.mjs +3 -0
- package/dist/chunks/cli-1.0.4-q00a51mt.mjs +4 -0
- package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +199 -0
- package/dist/chunks/cli-1.0.4-q97cke3f.mjs +2 -0
- package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +5 -0
- package/dist/chunks/cli-1.0.4-qka1j546.mjs +4 -0
- package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +2 -0
- package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +25 -0
- package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +17 -0
- package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +42 -0
- package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +12 -0
- package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +12 -0
- package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +24 -0
- package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +2 -0
- package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +4 -0
- package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +2 -0
- package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +2 -0
- package/dist/chunks/cli-1.0.4-s6m720bj.mjs +2 -0
- package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +2 -0
- package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +2 -0
- package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +2 -0
- package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +2 -0
- package/dist/chunks/cli-1.0.4-t915kvpv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-th3f10e2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +3 -0
- package/dist/chunks/cli-1.0.4-v2973j5k.mjs +15 -0
- package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +2 -0
- package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +4 -0
- package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +2 -0
- package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +3 -0
- package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +6 -0
- package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +15 -0
- package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +4 -0
- package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +2 -0
- package/dist/chunks/cli-1.0.4-wb91dheq.mjs +2 -0
- package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +2 -0
- package/dist/chunks/cli-1.0.4-wryebn9y.mjs +2 -0
- package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +2 -0
- package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +2 -0
- package/dist/chunks/cli-1.0.4-xcegbj23.mjs +21 -0
- package/dist/chunks/cli-1.0.4-xjef6vra.mjs +2 -0
- package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +45 -0
- package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +2 -0
- package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +2 -0
- package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +2 -0
- package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +2 -0
- package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ya22eazw.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ygedgw05.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yp6300fv.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yq119gwk.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yq19e16e.mjs +4 -0
- package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +2 -0
- package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +17 -0
- package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +133 -0
- package/dist/chunks/cli-1.0.4-z5zmw573.mjs +2 -0
- package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +2 -0
- package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +2 -0
- package/dist/chunks/cli-1.0.4-znj63zs7.mjs +2 -0
- package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +2 -0
- package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +2 -0
- package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +2 -0
- package/dist/chunks/client-1.0.4-tejrj09r.mjs +1 -0
- package/dist/chunks/color-1.0.4-148b97be.mjs +1 -0
- package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +3 -0
- package/dist/chunks/config-1.0.4-a5enjc0b.mjs +1 -0
- package/dist/chunks/config-1.0.4-q23nqw9d.mjs +1 -0
- package/dist/chunks/constants-1.0.4-635bzfez.mjs +1 -0
- package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +1 -0
- package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +1 -0
- package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +9 -0
- package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +1 -0
- package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +1 -0
- package/dist/chunks/debug-1.0.4-dym46dbc.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +1446 -0
- package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +1 -0
- package/dist/chunks/detection-1.0.4-02gwawhp.mjs +1 -0
- package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +1 -0
- package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +1 -0
- package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +10 -0
- package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +1 -0
- package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +1 -0
- package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +1 -0
- package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +1 -0
- package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +1 -0
- package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +1 -0
- package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +1 -0
- package/dist/chunks/fast-1.0.4-qb539j3d.mjs +1 -0
- package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +1 -0
- package/dist/chunks/git-1.0.4-ag4cdf47.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +1 -0
- package/dist/chunks/goal-1.0.4-w76hde3j.mjs +4 -0
- package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +1 -0
- package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +1 -0
- package/dist/chunks/headless-1.0.4-4htsajcx.mjs +2 -0
- package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +6 -0
- package/dist/chunks/help-1.0.4-mb80yzdd.mjs +1 -0
- package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +3 -0
- package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +1 -0
- package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +79 -0
- package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +1 -0
- package/dist/chunks/index-1.0.4-0ds0yar8.mjs +2 -0
- package/dist/chunks/index-1.0.4-0swpjsxv.mjs +1 -0
- package/dist/chunks/index-1.0.4-1adr1cev.mjs +1 -0
- package/dist/chunks/index-1.0.4-2cqwak8f.mjs +1 -0
- package/dist/chunks/index-1.0.4-45r2p2fr.mjs +1 -0
- package/dist/chunks/index-1.0.4-578fqjbt.mjs +5 -0
- package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +1 -0
- package/dist/chunks/index-1.0.4-bq00jtej.mjs +1 -0
- package/dist/chunks/index-1.0.4-d3963jrf.mjs +1 -0
- package/dist/chunks/index-1.0.4-db6y9w6p.mjs +9 -0
- package/dist/chunks/index-1.0.4-eqa6324a.mjs +30 -0
- package/dist/chunks/index-1.0.4-fgtct7wa.mjs +1 -0
- package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +1 -0
- package/dist/chunks/index-1.0.4-kkxqenx5.mjs +17 -0
- package/dist/chunks/index-1.0.4-m48vcxbj.mjs +2 -0
- package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +9 -0
- package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +1 -0
- package/dist/chunks/index-1.0.4-qj0raz1t.mjs +1 -0
- package/dist/chunks/index-1.0.4-rb8h15jh.mjs +1 -0
- package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +1 -0
- package/dist/chunks/index-1.0.4-xadhy3m9.mjs +1 -0
- package/dist/chunks/index-1.0.4-ynqjejnh.mjs +1 -0
- package/dist/chunks/index-1.0.4-zw32d5rq.mjs +1 -0
- package/dist/chunks/init-1.0.4-tdv5z99g.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +1 -0
- package/dist/chunks/ink-1.0.4-w371tr8m.mjs +1 -0
- package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +870 -0
- package/dist/chunks/install-1.0.4-k86wrfgy.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +1 -0
- package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +2 -0
- package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +1 -0
- package/dist/chunks/log-1.0.4-q4mkknks.mjs +1 -0
- package/dist/chunks/main-1.0.4-fpq69x53.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +1 -0
- package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +1 -0
- package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +17 -0
- package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +4 -0
- package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +1 -0
- package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +3 -0
- package/dist/chunks/model-1.0.4-7q33dte0.mjs +2 -0
- package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +1 -0
- package/dist/chunks/node-1.0.4-t61fwtvv.mjs +12 -0
- package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +14 -0
- package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +1 -0
- package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +1 -0
- package/dist/chunks/passes-1.0.4-kvwashgz.mjs +1 -0
- package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +3 -0
- package/dist/chunks/permissions-1.0.4-pmabr578.mjs +1 -0
- package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +1 -0
- package/dist/chunks/plist-1.0.4-de9w52d2.mjs +1 -0
- package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +1 -0
- package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +2 -0
- package/dist/chunks/print-1.0.4-zg0pxx71.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +1 -0
- package/dist/chunks/process-1.0.4-trh5g80m.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +9 -0
- package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +1 -0
- package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +1 -0
- package/dist/chunks/prompts-1.0.4-an41ccab.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +13 -0
- package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +34 -0
- package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +1 -0
- package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +2 -0
- package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +1 -0
- package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +1 -0
- package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +2 -0
- package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +1 -0
- package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +1 -0
- package/dist/chunks/session-1.0.4-4fb52nd1.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +1 -0
- package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +1 -0
- package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +5 -0
- package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +1 -0
- package/dist/chunks/skills-1.0.4-www28gn6.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +1 -0
- package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +1 -0
- package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +6 -0
- package/dist/chunks/status-1.0.4-zymfx8mp.mjs +1 -0
- package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +1 -0
- package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +1 -0
- package/dist/chunks/teleport-1.0.4-x93h61td.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +1 -0
- package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +1 -0
- package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +1 -0
- package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +1 -0
- package/dist/chunks/tools-1.0.4-606qnn5t.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +69 -0
- package/dist/chunks/types-1.0.4-1kpkjthf.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +4 -0
- package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +86 -0
- package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +1 -0
- package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +1 -0
- package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +1 -0
- package/dist/chunks/util-1.0.4-3cjy2f82.mjs +1 -0
- package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +1 -0
- package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +1 -0
- package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +1 -0
- package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +132 -0
- package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +1 -0
- package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +1 -0
- package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +0 -1
- package/dist/chunks/App-1.0.3-rd1a3qee.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +0 -7
- package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +0 -6
- package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +0 -1
- package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +0 -1
- package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +0 -1
- package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +0 -110
- package/dist/chunks/agents-1.0.3-0qny02r7.mjs +0 -3
- package/dist/chunks/api-1.0.3-j9q39zt3.mjs +0 -1
- package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +0 -1
- package/dist/chunks/assistant-1.0.3-8swg0237.mjs +0 -1
- package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +0 -1
- package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +0 -1
- package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +0 -1
- package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +0 -4
- package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +0 -1
- package/dist/chunks/btw-1.0.3-7vqng7en.mjs +0 -1
- package/dist/chunks/buddy-1.0.3-k48yw852.mjs +0 -3
- package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +0 -4
- package/dist/chunks/caches-1.0.3-syrefgh1.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +0 -1
- package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +0 -1
- package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +0 -1
- package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-087x46pf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +0 -1
- package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-10cqqc79.mjs +0 -2
- package/dist/chunks/cli-1.0.3-13m8868e.mjs +0 -2
- package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1462khnb.mjs +0 -3
- package/dist/chunks/cli-1.0.3-17cer107.mjs +0 -2
- package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +0 -4
- package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +0 -4
- package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1m413b59.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1psnx21q.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1v65dc93.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +0 -2
- package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +0 -5471
- package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3gtteknj.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3j050hfw.mjs +0 -3
- package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +0 -3
- package/dist/chunks/cli-1.0.3-3y945bqk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4eym93f1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +0 -199
- package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +0 -12
- package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +0 -4
- package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5kneybr4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +0 -16
- package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +0 -6
- package/dist/chunks/cli-1.0.3-5w74xeth.mjs +0 -3
- package/dist/chunks/cli-1.0.3-607t5t97.mjs +0 -2
- package/dist/chunks/cli-1.0.3-627y4tma.mjs +0 -2
- package/dist/chunks/cli-1.0.3-63tn3q21.mjs +0 -2
- package/dist/chunks/cli-1.0.3-63xjee3t.mjs +0 -3
- package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +0 -4
- package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +0 -21
- package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +0 -3
- package/dist/chunks/cli-1.0.3-82ky54w7.mjs +0 -15
- package/dist/chunks/cli-1.0.3-87me6r9c.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8a694ts0.mjs +0 -6
- package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8hw15ers.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +0 -2
- package/dist/chunks/cli-1.0.3-960aw98y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +0 -2
- package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +0 -3
- package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-a630qcdb.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ancybhm3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-apbdyngz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ar488ss1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +0 -4
- package/dist/chunks/cli-1.0.3-ax2geagm.mjs +0 -18
- package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ay89chqh.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b14b158b.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b72086ew.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +0 -24
- package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +0 -25
- package/dist/chunks/cli-1.0.3-bg3frggm.mjs +0 -5
- package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +0 -3
- package/dist/chunks/cli-1.0.3-c38hr99q.mjs +0 -2
- package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-c570dde7.mjs +0 -24
- package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cnb1yved.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-d7597p9k.mjs +0 -133
- package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-djd4asp9.mjs +0 -25
- package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +0 -20
- package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e315jy0y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +0 -2
- package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +0 -2
- package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +0 -45
- package/dist/chunks/cli-1.0.3-eta6q17m.mjs +0 -2
- package/dist/chunks/cli-1.0.3-exj8yag8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +0 -2
- package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +0 -2
- package/dist/chunks/cli-1.0.3-g5w729g4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +0 -12
- package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +0 -4
- package/dist/chunks/cli-1.0.3-hg04k516.mjs +0 -3
- package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-htx4273d.mjs +0 -39
- package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j72ztden.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +0 -2
- package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +0 -6
- package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +0 -2
- package/dist/chunks/cli-1.0.3-k99msp02.mjs +0 -17
- package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +0 -59
- package/dist/chunks/cli-1.0.3-khw95075.mjs +0 -2
- package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +0 -2
- package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +0 -2
- package/dist/chunks/cli-1.0.3-m45p13pd.mjs +0 -2
- package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +0 -3
- package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +0 -12
- package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +0 -4
- package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n99q1npz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nama3pwj.mjs +0 -7
- package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ntywpqre.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +0 -2
- package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +0 -24
- package/dist/chunks/cli-1.0.3-pc93arct.mjs +0 -10
- package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +0 -67
- package/dist/chunks/cli-1.0.3-phh30dq0.mjs +0 -4
- package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +0 -5
- package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +0 -3
- package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-q9hw6148.mjs +0 -2
- package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +0 -34
- package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +0 -2
- package/dist/chunks/cli-1.0.3-r274tqxg.mjs +0 -2
- package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +0 -3
- package/dist/chunks/cli-1.0.3-ra9brq66.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rapppvd0.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +0 -15
- package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +0 -58
- package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rpry44n3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +0 -2
- package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +0 -5
- package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +0 -6
- package/dist/chunks/cli-1.0.3-sz2d376e.mjs +0 -2
- package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +0 -2
- package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +0 -133
- package/dist/chunks/cli-1.0.3-t7p3714v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-tjewxa84.mjs +0 -2
- package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +0 -9
- package/dist/chunks/cli-1.0.3-v658mswv.mjs +0 -12
- package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +0 -3
- package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +0 -15
- package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +0 -50
- package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +0 -2
- package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +0 -42
- package/dist/chunks/cli-1.0.3-xarnzm58.mjs +0 -2
- package/dist/chunks/cli-1.0.3-xf2r8496.mjs +0 -2
- package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +0 -4
- package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +0 -17
- package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +0 -2
- package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +0 -4
- package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +0 -2
- package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +0 -2
- package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +0 -18
- package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +0 -2
- package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +0 -2
- package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +0 -18
- package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +0 -8
- package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +0 -2
- package/dist/chunks/client-1.0.3-qkqk8q23.mjs +0 -1
- package/dist/chunks/color-1.0.3-x0qygswm.mjs +0 -1
- package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +0 -3
- package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +0 -1
- package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +0 -1
- package/dist/chunks/constants-1.0.3-wk9v349h.mjs +0 -1
- package/dist/chunks/context-1.0.3-6sarjqp3.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +0 -1
- package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +0 -1
- package/dist/chunks/copy-1.0.3-575pc6gc.mjs +0 -9
- package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +0 -1
- package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +0 -1
- package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +0 -1446
- package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +0 -1
- package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +0 -1
- package/dist/chunks/diff-1.0.3-43a1txqm.mjs +0 -1
- package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +0 -1
- package/dist/chunks/effort-1.0.3-28cxc122.mjs +0 -10
- package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +0 -1
- package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +0 -1
- package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +0 -1
- package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +0 -1
- package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +0 -1
- package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +0 -1
- package/dist/chunks/export-1.0.3-4r98t7vv.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +0 -1
- package/dist/chunks/fast-1.0.3-4atx5cja.mjs +0 -1
- package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +0 -1
- package/dist/chunks/git-1.0.3-tpyzsser.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +0 -1
- package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +0 -4
- package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +0 -1
- package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +0 -1
- package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +0 -2
- package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +0 -6
- package/dist/chunks/help-1.0.3-e1qcej38.mjs +0 -1
- package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +0 -3
- package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +0 -79
- package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +0 -1
- package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +0 -1
- package/dist/chunks/index-1.0.3-15ym353c.mjs +0 -1
- package/dist/chunks/index-1.0.3-1tyen96a.mjs +0 -1
- package/dist/chunks/index-1.0.3-22c46a9g.mjs +0 -1
- package/dist/chunks/index-1.0.3-293khy5y.mjs +0 -1
- package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +0 -1
- package/dist/chunks/index-1.0.3-4g5be32x.mjs +0 -5
- package/dist/chunks/index-1.0.3-5h227bav.mjs +0 -17
- package/dist/chunks/index-1.0.3-83nb50h7.mjs +0 -1
- package/dist/chunks/index-1.0.3-f3xy16k0.mjs +0 -1
- package/dist/chunks/index-1.0.3-fp6xhcab.mjs +0 -2
- package/dist/chunks/index-1.0.3-gecs01pd.mjs +0 -1
- package/dist/chunks/index-1.0.3-gwt3epj3.mjs +0 -30
- package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +0 -9
- package/dist/chunks/index-1.0.3-j1rfqkax.mjs +0 -1
- package/dist/chunks/index-1.0.3-k6ze856z.mjs +0 -1
- package/dist/chunks/index-1.0.3-n8qxa0er.mjs +0 -1
- package/dist/chunks/index-1.0.3-pa0eqyya.mjs +0 -1
- package/dist/chunks/index-1.0.3-qacj9f9z.mjs +0 -1
- package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +0 -1
- package/dist/chunks/index-1.0.3-w0d2skgw.mjs +0 -2
- package/dist/chunks/index-1.0.3-w6sndqyw.mjs +0 -9
- package/dist/chunks/index-1.0.3-z42381sj.mjs +0 -1
- package/dist/chunks/index-1.0.3-zfk75xdr.mjs +0 -1
- package/dist/chunks/init-1.0.3-1756vwh2.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +0 -1
- package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +0 -1
- package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +0 -870
- package/dist/chunks/install-1.0.3-zttqn1ez.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +0 -1
- package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +0 -2
- package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +0 -1
- package/dist/chunks/log-1.0.3-wzytzthn.mjs +0 -1
- package/dist/chunks/main-1.0.3-jzwehebm.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +0 -1
- package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +0 -1
- package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +0 -4
- package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +0 -17
- package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +0 -1
- package/dist/chunks/memory-1.0.3-esv79kf8.mjs +0 -3
- package/dist/chunks/model-1.0.3-9b4d36sd.mjs +0 -1
- package/dist/chunks/model-1.0.3-bh1t2s45.mjs +0 -2
- package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +0 -12
- package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +0 -14
- package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +0 -1
- package/dist/chunks/parser-1.0.3-avw926ew.mjs +0 -1
- package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +0 -1
- package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +0 -3
- package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +0 -1
- package/dist/chunks/plan-1.0.3-emxq5t72.mjs +0 -1
- package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +0 -1
- package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +0 -1
- package/dist/chunks/plugins-1.0.3-x021vefh.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +0 -2
- package/dist/chunks/print-1.0.3-w721s1pr.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +0 -1
- package/dist/chunks/process-1.0.3-xedhq816.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +0 -9
- package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +0 -1
- package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +0 -1
- package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +0 -13
- package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +0 -34
- package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +0 -1
- package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +0 -2
- package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +0 -1
- package/dist/chunks/rename-1.0.3-090y3y3t.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +0 -1
- package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +0 -2
- package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +0 -1
- package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +0 -1
- package/dist/chunks/session-1.0.3-26qz9f9c.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +0 -1
- package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +0 -1
- package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +0 -5
- package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +0 -1
- package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +0 -1
- package/dist/chunks/state-1.0.3-7hxpebf0.mjs +0 -1
- package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +0 -6
- package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +0 -1
- package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +0 -1
- package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +0 -1
- package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +0 -1
- package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +0 -1
- package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +0 -1
- package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +0 -1
- package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +0 -69
- package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +0 -4
- package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +0 -86
- package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +0 -1
- package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +0 -1
- package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +0 -1
- package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +0 -1
- package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +0 -1
- package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +0 -1
- package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +0 -1
- package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +0 -132
- package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +0 -1
- package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +0 -1
- package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +0 -7
- /package/dist/chunks/{cli-1.0.3-43683395.mjs → cli-1.0.4-1eb2472e.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-qf5pjy0v.mjs → cli-1.0.4-a2brsa8c.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-adgwsvq3.mjs → cli-1.0.4-fyekx70j.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-hn2qw1pk.mjs → cli-1.0.4-jrvveh6t.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-25zd2770.mjs → cli-1.0.4-rh4j3s0t.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-vzm5gxzn.mjs → cli-1.0.4-rhq4w2pj.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-77dec30x.mjs → cli-1.0.4-sx5bf3zy.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-cf280jvq.mjs → cli-1.0.4-zjh4h68p.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{N7 as P2,P7 as x8}from"./cli-1.0.4-9w88pg39.mjs";import{R7 as h,S7 as mZ}from"./cli-1.0.4-3289hbrr.mjs";import{b8 as d5,d8 as w8}from"./cli-1.0.4-8jya5ew3.mjs";import{C9 as N5,E9 as dZ,Fba as o1,Hca as n4,Iea as m5,Jca as nZ,Kca as I1,Kda as l,Kea as W4,Lca as h8,Mda as e1,Nda as zZ,Oba as WZ,Qea as c5,Rda as Z4,S8 as T4,T$ as y1,T8 as a,Tea as L,U$ as A8,U8 as K2,V8 as b0,W8 as M4,Wea as $0,X8 as a2,b9 as R0,c9 as G1,eea as V4,faa as s1,gda as d,gea as $4,gfa as N,jca as P,jea as b2,kea as tZ,lca as j2,lda as p5,m9 as D5,mda as C,oca as Q0,ofa as a0,p9 as cZ,pca as M,pda as K,vda as r1,waa as VZ,yca as B0}from"./cli-1.0.4-q0rnwhn4.mjs";import{Aga as v1,oga as A0,qga as P4}from"./cli-1.0.4-d8bjdz7n.mjs";import{Eha as I5,Fha as d4,Gha as j0,Iha as z8,Jha as G8,Lha as b,Mha as M0}from"./cli-1.0.4-hfn9tnb6.mjs";import{Nha as x,Qha as B2}from"./cli-1.0.4-34jdejmp.mjs";import{Cia as l2,Gia as y8,Qia as z,Sia as d0,Tia as Z0,uia as L5,yia as pZ}from"./cli-1.0.4-vpcfce7x.mjs";import{oja as p,qja as q1,vja as V1}from"./cli-1.0.4-7pxrd0w5.mjs";import{Bja as F,Dja as u,Fja as k2,Ija as c4,Lja as g,yja as K5}from"./cli-1.0.4-ex22h376.mjs";import{Ama as a1,Ana as J1,Bna as Q1,Cna as X1,Dna as Y1,Ema as k4,Jma as I0,Kma as J2,Pna as x2,cna as f,jna as _1,lla as Y0,mla as w1,mma as p1,mpa as J0}from"./cli-1.0.4-n5mydt2f.mjs";import{Lpa as I,Mpa as i0}from"./cli-1.0.4-z5zmw573.mjs";import{gqa as k,yqa as q2}from"./cli-1.0.4-j17mhs88.mjs";import{Uqa as y0,Wqa as c2,Xqa as R,Yqa as e}from"./cli-1.0.4-rhq4w2pj.mjs";function T5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:V}=$.shift();try{let G=await Z.apply(V,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var M5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=k2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P2(),...J&&{requestHandler:new(await import("./index-1.0.4-ak4tdd7x.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.4-zw32d5rq.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function g$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=k2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P2(),...J&&{requestHandler:new(await import("./index-1.0.4-ak4tdd7x.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.4-zw32d5rq.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function B8(Z){return Z.startsWith("anthropic.")}function H8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function R8(Z){let $=H8(Z);for(let J of j8)if($.startsWith(`${J}.anthropic.`))return J;return}function m$(Z,$){let J=R8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(B8(Z))return`${$}.${Z}`;return Z}var S5,p$,j8;var h5=R(()=>{i0();n();g();a0();x8();S5=I(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw N(X),X}});p$=I(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return N($),null}});j8=["us","eu","apac","global"]});var E2,_2,v2,y2,I2,T2,M2,S2,C2,s0,o0,r0,A2,h2,f2,G0,d$,f5;var u2=R(()=>{E2={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"},_2={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"},v2={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"},y2={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"},I2={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"},T2={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"},M2={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"},S2={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"},C2={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"},s0={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"},o0={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"},r0={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"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-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"},h2={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"},f2={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"},G0={haiku35:v2,haiku45:y2,sonnet35:_2,sonnet37:E2,sonnet40:I2,sonnet45:T2,sonnet46:h2,sonnet5:f2,opus40:M2,opus41:S2,opus45:C2,opus46:s0,opus47:o0,opus48:r0,fable5:A2},d$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function u5(){return Object.values(e0)}var e0,g2;var p2=R(()=>{e0={"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}}},g2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>U8,getCopilotDisplayName:()=>b8,getCatalogCopilotMaxOutputTokens:()=>P8,getCatalogCopilotContextWindow:()=>k8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>O8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function K8(){if(g5)return;g5=!0,p5(()=>{let Z=E0();if(Z&&x0!==Z)n2()})}function d2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function L8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function D8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["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:L8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(m5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),F8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...d5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let V=new Set,G=[];for(let B of q.data){let H=D8(B);if(!H||V.has(H.model.id))continue;V.add(H.model.id),G.push(H)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){K8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(m2===Z)return;Z2.finally(()=>n2());return}m2=Z,Z2=t5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,m2=null})}function N8(){return t}function U8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return u5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function b8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function O8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function k8(Z){return $2(Z)?.model.limit.context}function P8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var F8=5000,t=null,x0=null,Z2=null,m2=null,g5=!1;var v0=R(()=>{$0();w8();c5();l();Z0();p2()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.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 $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function ZJ(){return W()==="firstParty"}function $J(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(v0(),y0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function JJ(){return W()}function QJ(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var i=R(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of i5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await S5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of i5){let X=G0[Q].firstParty;J[Q]=C5($,X)||Z[Q]}return J}function l5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=f5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function v8(){if(I0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}a5()}function j(){let Z=I0();if(Z===null)return v8(),l5(Q2(W()));return l5(Z)}async function BJ(){if(I0()!==null)return;if(W()!=="bedrock"){J2(Q2(W()));return}await a5()}var i5,a5;var Y2=R(()=>{J0();a0();M5();B0();h5();u2();i();i5=Object.keys(G0);a5=T5(async()=>{if(I0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){N(Z)}})});function FJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=T0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=K(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function KJ(){if(s5!==null)return s5;if(!O())return!1;let Z=v();if(Z==="max"||Z==="pro")return!0;let J=K().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var s5=null;var o5=R(()=>{n();l();g()});function UJ(Z){return Z}function bJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=R(()=>{o5()});async function yJ(){let $=K().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${b().BASE_API_URL}/api/claude_cli_profile`;try{return(await k.get(Q,{headers:{"x-api-key":J,"anthropic-beta":j0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function H0(Z){let $=`${b().BASE_API_URL}/api/oauth/profile`;try{return(await k.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var t2=R(()=>{q2();M0();n();l();a0()});import{mkdirSync as I8,writeFileSync as T8}from"fs";function C8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{I8(V2,{recursive:!0,mode:448}),T8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function $1(Z,$){try{let Q=l2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!q1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function W1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=$1($,J);return X(G),G}let V=parseInt(q,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=l2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),X(H),C8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${V}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:M8,label:"OAuth token",getCached:J1,setCached:Q1})}function i2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:S8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",M8,S8,fJ;var z1=R(()=>{J0();Z0();g();V1();y8();M8=`${V2}/.oauth_token`,S8=`${V2}/.api_key`,fJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=a();if((await R0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var B1=R(()=>{G1();a2()});function dJ(Z){return Z?.name==="CredentialsProviderError"}function j1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function s2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function H1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var R1=R(()=>{Z0()});class S{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!S.instance)S.instance=new S;return S.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(S.instance)S.instance.changed.clear(),S.instance=null}}var F1=R(()=>{w1()});var G2="claude-code-20250219",K1="interleaved-thinking-2025-05-14",S0="context-1m-2025-08-07",L1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",U1="tool-search-tool-2025-10-19",iJ="effort-2025-11-24",aJ="task-budgets-2026-03-13",b1="prompt-caching-scope-2026-01-05",sJ="extended-cache-ttl-2025-04-11",oJ="fast-mode-2026-02-01",O1="redact-thinking-2026-02-12",k1="thinking-token-count-2026-05-13",P1="token-efficient-tools-2026-03-28",rJ="afk-mode-2026-01-31",eJ="advisor-tool-2026-03-01",r2,Z3;var e2=R(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),Z3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(W()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function T1(){if(!A())return!1;return u8()===null}function f8(Z,$){switch(Z){case"free":return $==="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 · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function u8(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!y1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(_.status==="disabled"){if(_.reason==="network_error"||_.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=f8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function K3(){return"opus"+(f0()?"[1m]":"")}function L3(Z){if(!A())return!1;if(!T1())return!1;if(!M1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function M1(Z){if(!A())return!1;let $=Z??h0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function g8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!Z5)z("Fast mode cooldown expired, re-enabling fast mode"),Z5=!0,C1.emit();w0={status:"active"}}return w0}function U3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},Z5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),S1.emit(Z,$)}function b3(){w0={status:"active"}}function O3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},j2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function p8(Z){switch(Z){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 · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function m8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function P3(Z){let $=p8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!m8(Z))j2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function c8(){return g8().status==="cooldown"}function E3(Z,$){let J=A()&&T1()&&!!$&&M1(Z);if(J&&c8())return"cooldown";if(J)return"on";return"off"}async function d8(Z){let $=`${b().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":j0}:{"x-api-key":Z.apiKey};return(await k.get($,{headers:J})).data}function v3(){if(!A())return;if(_.status!=="pending")return;_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function y3(){if(I1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<n8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return d8(q)};async function X(){try{let Y;try{Y=await Q()}catch(V){if(k.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await J5(B),Y=await Q();else throw V}else throw V}let q=_.status!=="pending"?_.status==="enabled":K().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)j2("userSettings",{fastMode:void 0});C((V)=>({...V,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=K().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${_.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=X(),C0}var F3="Opus 4.7",w0,Z5=!1,S1,C1,D3,N3,A1,k3,_,$5,_3,n8=30000,E1=0,C0=null;var h1=R(()=>{q2();M0();v1();J0();B2();n();A8();l();Z0();g();F0();i();h8();B0();w1();w0={status:"active"},S1=Y0(),C1=Y0(),D3=S1.subscribe,N3=C1.subscribe;A1=Y0(),k3=A1.subscribe;_={status:"pending"},$5=Y0(),_3=$5.subscribe});function r8(Z){for(let $ of o8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return l8;return L0}function e8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function ZZ(Z,$){let J=U(Z);if(J===D(s0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=u1[J];if(!Q){let X=r8(Z);if(X)return X;return $Z(Z,J),u1[U(h0())]??s8}return Q}function $Z(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function JZ(Z,$){let J=ZZ(Z,$);return e8(J,$)}function h3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return JZ(Z,J)}function g1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${g1(Z.inputTokens)}/${g1(Z.outputTokens)} per Mtok`}var K0,f1,L0,t8,l8,i8,a8,s8,o8,u1;var c1=R(()=>{B2();J0();h1();u2();F0();K0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},f1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},t8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},l8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},i8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},a8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},s8=L0,o8=[{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}}];u1={[D(v2.firstParty)]:i8,[D(y2.firstParty)]:a8,[D(_2.firstParty)]:K0,[D(E2.firstParty)]:K0,[D(I2.firstParty)]:K0,[D(T2.firstParty)]:K0,[D(h2.firstParty)]:K0,[D(f2.firstParty)]:K0,[D(M2.firstParty)]:f1,[D(S2.firstParty)]:f1,[D(C2.firstParty)]:L0,[D(s0.firstParty)]:L0,[D(o0.firstParty)]:L0,[D(r0.firstParty)]:L0,[D(A2.firstParty)]:t8}});function m(Z){return QZ.includes(Z)}function D0(Z){return XZ.includes(Z)}var QZ,XZ;var X5=R(()=>{QZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];XZ=["sonnet","opus","haiku"]});function YZ(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function qZ(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(d1(J,$))return!0;if(!$.startsWith("claude-")&&d1(J,`claude-${$}`))return!0;return!1}function n1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function t1(Z){let $=M()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!D0(X)||!n1(X,Y))return!0}for(let q of Y)if(D0(q)&&!n1(q,Y)&&YZ(X,q))return!0;if(m(X)){let q=T(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(T(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(qZ(X,q))return!0}return!1}var l1=R(()=>{B0();X5();F0();Y2()});function H2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function U0(){let Z=L();if(!Z?.model)return;return e1(Z.model)}function W9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return J4()}function z9(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=a1();if($!==void 0)Z=$;else{let J=M()||{},Q=H2(J.model),Y=U0()||Q||void 0,q=r1(),V=H2(q.activeModelForProject);if(V){let G=Z4()?.id,B=q.activeModelForProjectProfileId;Z=B===void 0||B===G?V:Y}else Z=Y}if(Z&&!t1(Z))return;return Z}function G9(){let Z=Y5();if(Z!==void 0&&Z!==null)return T(Z);return Q4()}function GZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return j().opus46;return j().opus48}function u0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=U0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=U0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function x9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return u0();return J}function h0(){let Z=U0();if(W()==="github"){let $=M()||{};return H2($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(R2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return u0()}function Q4(){return T(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";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-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function U(Z){return D(X2(Z))}function xZ(Z=!1){if(R2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?i1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?i1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function B9(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(T(Z))}function i1(Z){if(W()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${s1})`:""} ${$}`}function f0(){if(V0()||W5()||W()!=="firstParty")return!1;if(O()&&v()===null)return!1;return!0}function j9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return o1(Z);return Y4(Z)}function X4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g2[Z])return g2[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(v0(),y0(_0));return $(Z)??null}return null}switch(Z){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 j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function H9(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=H2(Z);if(!$)return u0();let J=$.toLowerCase(),Q=s(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return u0()+(Q?"[1m]":"");case"sonnet":return u0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return GZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(W()==="firstParty"&&jZ(X)&&HZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function R9(Z,$){if(s(Z)||!s($))return Z;if(q5(T(Z)))return Z+"[1m]";return Z}function jZ(Z){return BZ.includes(Z)}function HZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function w9(Z){if(Z===null){if(O())return`Default (${xZ()})`;return`Default (${Q4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function F9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=U(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function K9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function L9(Z){let $=U(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var BZ;var F0=R(()=>{J0();$0();l();$4();n();V5();g();zZ();Y2();c1();B0();i();VZ();l1();X5();WZ();p2();BZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function N9(){}var q4=()=>{};var j4={};c2(j4,{prefetchOpenAICompatibleModels:()=>OZ,getDiscoveredContextWindow:()=>RZ,discoverOpenAICompatibleModelOptions:()=>B4});function RZ(Z){return G4.get(Z)}function wZ(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function x4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function FZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function KZ(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(FZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function LZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&x4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function DZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function NZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function UZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await k.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let V=q.id?.trim();if(!V||J.has(V))continue;J.add(V);let G=q.name?.trim()||V,B=q.context_length??null;if(B&&B>0)G4.set(V,B);let H=B?` · ${NZ(B)}`:"";Y.push({value:V,label:G,description:`${V}${H}`})}if(Y.length>0)return Y.sort((q,V)=>{let G=String(q.value).split("/")[0]??"",B=String(V.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(q.value).localeCompare(String(V.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function bZ(Z,$){try{let J=await k.get(Z,{headers:$,timeout:z4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function B4(){if(W()!=="openai")return[];let Z=wZ(),$=KZ(Z),J=await UZ(LZ(Z),$);if(J.length>0)return J;let Q=DZ(Z);if(Q)return bZ(Q,$);return[]}function OZ(){if(g0)return g0;return g0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await B4();if($.length>0)V4($)}catch{}finally{g0=null}})(),g0}var z4=5000,G4,g0=null;var H4=R(()=>{q2();$0();c5();Z0();i();$4();G4=new Map});function w4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=R4($,J);if(X!==void 0)return X;return R4(Z,J)}function R4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function F4(Z){try{let{getDiscoveredContextWindow:J}=(H4(),y0(j4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=w4(kZ,EZ,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(v0(),y0(_0));return J(Z)}catch{return}}function K4(Z){let $=w4(PZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(v0(),y0(_0));return J(Z)}catch{return}}var kZ,PZ,EZ,_Z;var L4=R(()=>{$0();kZ={"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,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":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,"kimi-for-coding":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},PZ={"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,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":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,"kimi-for-coding":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},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function D4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function s(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=U(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function p9(Z,$){if(s(Z))return 1e6;if(D4()){let Q=F4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),vZ}let J=z5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G5&&V0())return G5;return J.max_input_tokens}if(!V0()&&(U(Z).includes("fable-5")||U(Z).includes("sonnet-5")))return 1e6;if($?.includes(S0)&&q5(Z))return 1e6;if(TZ(Z))return 1e6;return G5}function TZ(Z){if(V0())return!1;if(s(Z))return!1;if(!U(Z).includes("sonnet-4-6"))return!1;return K().clientDataCache?.coral_reef_sonnet==="true"}function m9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function c9(Z){let $,J;if(D4()){let Y=K4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=U(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=yZ,J=IZ;let X=z5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G5=200000,vZ,f9=20000,yZ=32000,IZ=64000,u9=8000,g9=64000;var V5=R(()=>{e2();$0();l();g();F0();q4();L4();vZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var MZ,N4;var U4=R(()=>{i0();i();MZ=[{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"}],N4=I((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of MZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function SZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function VQ(Z){if(!Z||Z.length===0)return;if(O()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=SZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function b4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=U(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function CZ(Z){let $=U(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=U(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function hZ(Z){let $=U(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function WQ(Z){let $=U(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function zQ(){let Z=W();if(Z==="vertex"||Z==="bedrock")return U1;return N1}function O4(){return(W()==="firstParty"||W()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function GQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function xQ(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=k4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function v4(){x5.cache?.clear?.(),_4.cache?.clear?.(),fZ.cache?.clear?.()}var E4,x5,_4,fZ;var y4=R(()=>{i0();v1();J0();e2();M0();n();V5();g();F0();U4();i();B0();E4=[S0];x5=I((Z)=>{let $=[],J=U(Z).includes("haiku"),Q=W(),X=O4();if(!J)$.push(G2);if(O())$.push(j0);if(s(Z))$.push(S0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&b4(Z))$.push(K1);if(X&&b4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(O1),$.push(k1);let Y=AZ(Z);if(O4()&&Y)$.push(L1);let q=P4("tengu_tool_pear"),V=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&hZ(Z)&&q)$.push(D1);if(X&&V)$.push(P1);if(Q==="vertex"&&CZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(b1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=I((Z)=>{let $=x5(Z);if(W()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),fZ=I((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as uZ}from"child_process";function I4(Z){return new Promise(($)=>{uZ("security",["find-generic-password","-a",K2(),"-w","-s",Z],{encoding:"utf-8",timeout:gZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function wQ(){if(process.platform!=="darwin"||F2||u())return;let Z=I4(a(T4)),$=I4(a());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)M4(J.stdout);if(!Q.timedOut)B5={stdout:Q.stdout}})}async function FQ(){if(F2)await F2}function S4(){return B5}function j5(){B5=null}var gZ=1e4,B5=null,F2=null;var C4=R(()=>{g();a2()});function H5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((V,G,B)=>{V?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var A4=()=>{};function DQ(){return h4}function f4(){h4.clear()}var h4;var u4=R(()=>{h4=new Map});var y$={};c2(y$,{validateForceLoginOrg:()=>v$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>v5,removeApiKey:()=>w$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>B$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>j$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>$$,isUsing3PServices:()=>U2,isTeamSubscriber:()=>U$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>D$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>R2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>b$,isCustomApiKeyApproved:()=>R$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>k5,isAwsAuthRefreshFromProjectSettings:()=>b5,isAnthropicAuthEnabled:()=>P0,is1PApiCustomer:()=>L$,hasProfileScope:()=>q0,hasOpusAccess:()=>N$,hasAnthropicApiKeyAuth:()=>oZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>v,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>k$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T0,getApiKeyHelperElapsedMs:()=>rZ,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>y5,clearGcpCredentialsCache:()=>x$,clearAwsCredentialsCache:()=>q$,clearApiKeyHelperCache:()=>Z$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>s4});import{exec as i4}from"child_process";import{mkdir as lZ,stat as iZ}from"fs/promises";import{join as aZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function P0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=U2(),J=(M()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function T0(){if(u()){if(o())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(W2()){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(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function oZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=L();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:w5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=c4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=i2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!U2()&&!J&&!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(J&&!U2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&K().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=i2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w5(),source:"apiKeyHelper"}}let Y=O2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(u())return P("flagSettings")?.apiKeyHelper;return(M()||{}).apiKeyHelper}function a4(){let Z=o();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function U5(){return(M()||{}).awsAuthRefresh}function b5(){let Z=U5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function O5(){return(M()||{}).awsCredentialExport}function k5(){let Z=O5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function s4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return sZ}function rZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=s4();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!c)c={promise:g4(Z,!1,O0),startedAt:null};return y.value}if(c)return c.promise;return c={promise:g4(Z,!0,O0),startedAt:Date.now()},c.promise}async function g4(Z,$,J){try{let Q=await eZ(Z);if(J!==O0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==O0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===O0)c=null}}async function eZ(Z){let $=o();if(!$)return null;if(a4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await R0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w5(){return y?.value??null}function Z$(){O0++,y=null,c=null}function $$(Z){if(a4()&&!d())return;o4(Z)}async function Q$(){let Z=U5();if(!Z)return!1;if(b5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await s2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return r4(Z)}}function r4(Z){z("Running AWS auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=i4(Z,{timeout:X$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function Y$(){let Z=O5();if(!Z)return null;if(k5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await s2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await R0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=L5($.stdout.trim());if(!j1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function q$(){z0.cache.clear()}function P5(){return(M()||{}).gcpAuthRefresh}function E5(){let Z=P5();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function e4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=H5(V$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function z$(){let Z=P5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await e4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Z8(Z)}function Z8(Z){z("Running GCP auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=i4(Z,{timeout:G$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function x$(){_5.cache.clear()}function B$(){if(!P5())return;if(E5()){if(!d()&&!f())return}_5()}function j$(){let Z=U5(),$=O5();if(!Z&&!$)return;if(b5()||k5()){if(!d()&&!f())return}z0(),j()}function H$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function v5(Z){if(!H$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await $8();let $=!1;if(process.platform==="darwin")try{let Q=a(),X=K2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
|
|
2
|
+
`;await R0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),O2.cache.clear?.(),j5()}function R$(Z){let $=K(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function w$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),O2.cache.clear?.(),j5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(Z){if(!k0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=b2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),v4(),f4(),Y}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function y5(){w.cache?.clear?.(),b0()}async function F$(){try{let{mtimeMs:Z}=await iZ(aZ(K5(),".credentials.json"));if(Z!==p4)p4=Z,y5()}catch{w.cache?.clear?.()}}function J5(Z){let $=R5.get(Z);if($)return $;let J=K$(Z).finally(()=>{R5.delete(Z)});return R5.set(Z,J),J}async function K$(Z){y5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await b2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=F5(Z,$).finally(()=>{p0=null}),p0}return F5(Z,$)}async function F5(Z,$){await F$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),b0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=K5();await lZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await n4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await H5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(V),x("tengu_oauth_token_refresh_lock_error",{error:p(V)}),!1}try{w.cache?.clear?.(),b0();let V=await c0();if(!V?.refreshToken||!m0(V.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return J8(G),w.cache?.clear?.(),b0(),!0}catch(V){N(V),w.cache?.clear?.(),b0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function O(){if(!P0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function L$(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function N2(){return P0()?K().oauthAccount:void 0}function D$(){let $=N2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function N$(){let Z=v();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function v(){if(e5())return r5();if(!P0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function R2(){return v()==="max"}function U$(){return v()==="team"}function w2(){return v()==="team"&&Q8()==="default_claude_max_5x"}function b$(){return v()==="enterprise"}function W5(){return v()==="pro"}function Q8(){if(!P0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(v()){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 U2(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(M()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function k$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||O$.toString());if(L2&&Date.now()-m4<$)return L2;if(q8()){if(!d())return{}}try{let J=D5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=L5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return L2=Q,m4=Date.now(),L2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function P$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=v();return O()&&Z!==null&&P$(Z)}function _$(){if(W()!=="firstParty")return;let{source:$}=T0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=X8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function v$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!P0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=T0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await H0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} 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 Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="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: ${Z}
|
|
10
|
+
Token organization: ${Y}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var sZ=300000,y=null,c=null,O0=0,J$=3600000,X$=180000,z0,V$=5000,W$=3600000,G$=180000,_5,O2,w,p4=0,R5,p0=null,L2=null,m4=0,O$=1740000,V8;var n=R(()=>{mZ();G1();i0();M0();B2();Y2();i();J0();$0();Z1();l4();t2();z1();B1();R1();F1();y4();l();Z0();g();V1();cZ();nZ();a0();dZ();tZ();C4();a2();B0();A4();pZ();u4();z0=N5(async()=>{let Z=await Q$(),$=await Y$();if(Z||$)await H1();return $},J$);_5=N5(async()=>{return await z$()},W$);O2=I(()=>{if(u())return null;if(process.platform==="darwin"){let $=S4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=a();try{let Q=D5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=K();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=I(()=>{if(u())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 Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=b2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});R5=new Map;V8=class V8 extends Error{}});function k0(Z){return Boolean(Z?.includes(I5))}function I$(Z){return Z?.split(" ").filter(Boolean)??[]}function G7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:V,loginMethod:G}){let B=X?b().CLAUDE_AI_AUTHORIZE_URL:b().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",b().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?b().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[I5]:G8;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),q)H.searchParams.append("orgUUID",q);if(V)H.searchParams.append("login_hint",V);if(G)H.searchParams.append("login_method",G);return H.toString()}async function x7(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?b().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:b().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let V=await k.post(b().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("tengu_oauth_token_exchange_success",{}),V.data}async function t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:b().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await k.post(b().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:V}=X,G=Date.now()+V*1000,B=I$(X.scope);x("tengu_oauth_token_refresh_success",{});let H=K(),W0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await T$(Y);if(E&&H.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((l0)=>({...l0,oauthAccount:l0.oauthAccount?{...l0.oauthAccount,...r}:l0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=k.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function B7(Z){let $=await k.get(b().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!K().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function j7(Z){try{let $=await k.post(b().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await v5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function T$(Z){let $=await H0(Z),J=$?.organization?.organization_type,Q=null;switch(J){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 X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function H7(){let $=K().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await H0(J))?.organization?.uuid;if(!X)return null;return X}async function R7(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!K().oauthAccount)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=K();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await H0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return W8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function W8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:V}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var l4=R(()=>{q2();B2();M0();n();l();Z0();t2()});
|
|
16
|
+
export{wQ as o3,FQ as p3,C4 as q3,T5 as r3,M5 as s3,g$ as t3,p$ as u3,B8 as v3,R8 as w3,m$ as x3,h5 as y3,s0 as z3,o0 as A3,G0 as B3,u2 as C3,n2 as D3,U8 as E3,v0 as F3,W as G3,ZJ as H3,$J as I3,JJ as J3,QJ as K3,i as L3,j as M3,BJ as N3,Y2 as O3,FJ as P3,KJ as Q3,o5 as R3,UJ as S3,bJ as T3,Z1 as U3,yJ as V3,H0 as W3,t2 as X3,k0 as Y3,I$ as Z3,G7 as _3,x7 as $3,t4 as a4,B7 as b4,j7 as c4,m0 as d4,T$ as e4,H7 as f4,R7 as g4,W8 as h4,l4 as i4,fJ as j4,C8 as k4,$1 as l4,z1 as m4,z2 as n4,B1 as o4,dJ as p4,R1 as q4,S as r4,F1 as s4,S0 as t4,L1 as u4,D1 as v4,iJ as w4,aJ as x4,b1 as y4,sJ as z4,oJ as A4,O1 as B4,rJ as C4,eJ as D4,Z3 as E4,e2 as F4,A as G4,T1 as H4,u8 as I4,F3 as J4,K3 as K4,L3 as L4,M1 as M4,D3 as N4,N3 as O4,g8 as P4,U3 as Q4,b3 as R4,O3 as S4,k3 as T4,P3 as U4,c8 as V4,E3 as W4,_3 as X4,v3 as Y4,y3 as Z4,h1 as _4,K0 as $4,t8 as a5,i8 as b5,a8 as c5,Q5 as d5,JZ as e5,h3 as f5,m1 as g5,c1 as h5,QZ as i5,X5 as j5,t1 as k5,l1 as l5,W9 as m5,z9 as n5,Y5 as o5,G9 as p5,GZ as q5,N0 as r5,u0 as s5,J4 as t5,x9 as u5,h0 as v5,Q4 as w5,D as x5,U as y5,xZ as z5,B9 as A5,i1 as B5,f0 as C5,j9 as D5,X4 as E5,Y4 as F5,H9 as G5,T as H5,R9 as I5,HZ as J5,w9 as K5,F9 as L5,K9 as M5,L9 as N5,F0 as O5,N9 as P5,q4 as Q5,B4 as R5,OZ as S5,H4 as T5,f9 as U5,u9 as V5,g9 as W5,V0 as X5,s as Y5,p9 as Z5,TZ as _5,m9 as $5,c9 as a6,V5 as b6,N4 as c6,U4 as d6,VQ as e6,hZ as f6,WQ as g6,zQ as h6,O4 as i6,GQ as j6,_4 as k6,fZ as l6,xQ as m6,v4 as n6,y4 as o6,H5 as p6,A4 as q6,DQ as r6,f4 as s6,u4 as t6,P0 as u6,T0 as v6,X0 as w6,oZ as x6,n0 as y6,o as z6,b5 as A6,k5 as B6,s4 as C6,rZ as D6,o4 as E6,w5 as F6,Z$ as G6,$$ as H6,r4 as I6,z0 as J6,q$ as K6,E5 as L6,e4 as M6,Z8 as N6,_5 as O6,x$ as P6,B$ as Q6,j$ as R6,O2 as S6,v5 as T6,R$ as U6,w$ as V6,J8 as W6,w as X6,y5 as Y6,J5 as Z6,c0 as _6,t0 as $6,O as a7,q0 as b7,L$ as c7,N2 as d7,D$ as e7,N$ as f7,v as g7,R2 as h7,U$ as i7,w2 as j7,b$ as k7,W5 as l7,Q8 as m7,X8 as n7,U2 as o7,q8 as p7,k$ as q7,E$ as r7,_$ as s7,v$ as t7,y$ as u7,n as v7};
|