@claudiolabs/claudin 1.0.4 → 1.0.6
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.6-y5ddd6rm.mjs +1 -0
- package/dist/chunks/App-1.0.6-z0cfvsx2.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.6-bp76pand.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.6-kb0x64qd.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.6-jcaqgq16.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.6-0q6kspv2.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.6-jk4g19kb.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.6-s65h1n7v.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.6-6751p16k.mjs +7 -0
- package/dist/chunks/Doctor-1.0.6-cc0tqw44.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.6-eebwjw79.mjs +6 -0
- package/dist/chunks/Grove-1.0.6-tyg11yr0.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.6-qgb1csqa.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.6-jgmn19nt.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.6-wxwzxegj.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.6-zpt6cx2n.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.6-4008ytyb.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.6-c76hkbn2.mjs +1 -0
- package/dist/chunks/REPL-1.0.6-hg7cv046.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.6-2t7j6b2h.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.6-mtnwwa4g.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.6-6k63h37y.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.6-nwebb6gp.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.6-fkq6szhk.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.6-c6m3x448.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.6-44972q2z.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.6-g641zp1y.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.6-ae177xqc.mjs +1 -0
- package/dist/chunks/add-dir-1.0.6-eyaavpv6.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.6-qbt1z3ca.mjs +1 -0
- package/dist/chunks/agents-1.0.6-sz53kang.mjs +3 -0
- package/dist/chunks/agents-1.0.6-takpvk31.mjs +110 -0
- package/dist/chunks/api-1.0.6-00s3w079.mjs +1 -0
- package/dist/chunks/asciicast-1.0.6-rh0sh1w1.mjs +1 -0
- package/dist/chunks/assistant-1.0.6-7mq19whz.mjs +1 -0
- package/dist/chunks/auth-1.0.6-a3z8ybme.mjs +1 -0
- package/dist/chunks/auth-1.0.6-bzqx8ws6.mjs +1 -0
- package/dist/chunks/autoMode-1.0.6-m7pgefxn.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.6-yrfw3qnm.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.6-n12f3xrc.mjs +1 -0
- package/dist/chunks/branch-1.0.6-ezwk5k5a.mjs +4 -0
- package/dist/chunks/bridge-1.0.6-b8v3yt2n.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.6-nj1zx2fk.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.6-qm5685ej.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.6-8sw3n3ad.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.6-2smhh25w.mjs +1 -0
- package/dist/chunks/btw-1.0.6-cyy1eqy9.mjs +1 -0
- package/dist/chunks/buddy-1.0.6-jye799sc.mjs +3 -0
- package/dist/chunks/cacache-1.0.6-x530c1sq.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.6-j9g3r3t3.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.6-wn9n7a2f.mjs +4 -0
- package/dist/chunks/caches-1.0.6-jb6nfzzy.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.6-nbedzb68.mjs +1 -0
- package/dist/chunks/claudemd-1.0.6-k0ksrf4g.mjs +1 -0
- package/dist/chunks/clear-1.0.6-mwca7g57.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.6-yxdbxzxq.mjs +1 -0
- package/dist/chunks/cli-1.0.6-0g5ayqzn.mjs +2 -0
- package/dist/chunks/cli-1.0.6-0htc91yb.mjs +2 -0
- package/dist/chunks/cli-1.0.6-0n0gtcr0.mjs +2 -0
- package/dist/chunks/cli-1.0.6-0ndt02kt.mjs +2 -0
- package/dist/chunks/cli-1.0.6-0rh0a1m1.mjs +3 -0
- package/dist/chunks/cli-1.0.6-0v6s0baw.mjs +2 -0
- package/dist/chunks/cli-1.0.6-0z6jg1dt.mjs +2 -0
- package/dist/chunks/cli-1.0.6-0zy5g0r0.mjs +3 -0
- package/dist/chunks/cli-1.0.6-1a002r86.mjs +16 -0
- package/dist/chunks/cli-1.0.6-1eet2296.mjs +2 -0
- package/dist/chunks/cli-1.0.6-1mxskrvk.mjs +2 -0
- package/dist/chunks/cli-1.0.6-1pmvs0sa.mjs +2 -0
- package/dist/chunks/cli-1.0.6-2216bkc9.mjs +18 -0
- package/dist/chunks/cli-1.0.6-256zr6e0.mjs +2 -0
- package/dist/chunks/cli-1.0.6-2kk9k86d.mjs +2 -0
- package/dist/chunks/cli-1.0.6-2ktan1c1.mjs +6 -0
- package/dist/chunks/cli-1.0.6-2q17d8ej.mjs +2 -0
- package/dist/chunks/cli-1.0.6-2taykcm3.mjs +2 -0
- package/dist/chunks/cli-1.0.6-2y4xs66t.mjs +2 -0
- package/dist/chunks/cli-1.0.6-34y44ns8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-36s91tek.mjs +2 -0
- package/dist/chunks/cli-1.0.6-39ebgej3.mjs +9 -0
- package/dist/chunks/cli-1.0.6-3fqch3zx.mjs +2 -0
- package/dist/chunks/cli-1.0.6-3jkvpjb7.mjs +2 -0
- package/dist/chunks/cli-1.0.6-3rnmt44c.mjs +199 -0
- package/dist/chunks/cli-1.0.6-429sbhhn.mjs +2 -0
- package/dist/chunks/cli-1.0.6-43ajeraf.mjs +2 -0
- package/dist/chunks/cli-1.0.6-4jw1053r.mjs +2 -0
- package/dist/chunks/cli-1.0.6-4kafzdd3.mjs +2 -0
- package/dist/chunks/cli-1.0.6-4m8qf7d9.mjs +2 -0
- package/dist/chunks/cli-1.0.6-4pez6ae9.mjs +2 -0
- package/dist/chunks/cli-1.0.6-4pmn22p0.mjs +12 -0
- package/dist/chunks/cli-1.0.6-4r68vt91.mjs +4 -0
- package/dist/chunks/cli-1.0.6-4shdcvhj.mjs +2 -0
- package/dist/chunks/cli-1.0.6-4w9smp0a.mjs +4 -0
- package/dist/chunks/cli-1.0.6-52vkzgxe.mjs +2 -0
- package/dist/chunks/cli-1.0.6-53rqxxkh.mjs +2 -0
- package/dist/chunks/cli-1.0.6-55csqcct.mjs +2 -0
- package/dist/chunks/cli-1.0.6-5esxakc4.mjs +2 -0
- package/dist/chunks/cli-1.0.6-5fd5qjm7.mjs +2 -0
- package/dist/chunks/cli-1.0.6-5kmwcmd1.mjs +25 -0
- package/dist/chunks/cli-1.0.6-5qyfr732.mjs +17 -0
- package/dist/chunks/cli-1.0.6-5tx13t22.mjs +2 -0
- package/dist/chunks/cli-1.0.6-61qpjst5.mjs +2 -0
- package/dist/chunks/cli-1.0.6-620sz5j0.mjs +2 -0
- package/dist/chunks/cli-1.0.6-6a9gyk3y.mjs +12 -0
- package/dist/chunks/cli-1.0.6-6g4hkpj7.mjs +4 -0
- package/dist/chunks/cli-1.0.6-6h5a9gax.mjs +2 -0
- package/dist/chunks/cli-1.0.6-6hs6qqxv.mjs +2 -0
- package/dist/chunks/cli-1.0.6-6x2aqc5w.mjs +3 -0
- package/dist/chunks/cli-1.0.6-6zh1kz2j.mjs +2 -0
- package/dist/chunks/cli-1.0.6-6zqt7f43.mjs +59 -0
- package/dist/chunks/cli-1.0.6-74km5nc4.mjs +2 -0
- package/dist/chunks/cli-1.0.6-77j29wff.mjs +2 -0
- package/dist/chunks/cli-1.0.6-78gtt741.mjs +2 -0
- package/dist/chunks/cli-1.0.6-7dcdpthr.mjs +2 -0
- package/dist/chunks/cli-1.0.6-7ebqg37b.mjs +2 -0
- package/dist/chunks/cli-1.0.6-7qta6sp0.mjs +12 -0
- package/dist/chunks/cli-1.0.6-7rxsh83h.mjs +2 -0
- package/dist/chunks/cli-1.0.6-7sc6kks8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-7wtv8nwt.mjs +2 -0
- package/dist/chunks/cli-1.0.6-80ts2fsy.mjs +2 -0
- package/dist/chunks/cli-1.0.6-831s2dg1.mjs +2 -0
- package/dist/chunks/cli-1.0.6-85rq113c.mjs +2 -0
- package/dist/chunks/cli-1.0.6-86chdw6e.mjs +2 -0
- package/dist/chunks/cli-1.0.6-8k0axbmg.mjs +3 -0
- package/dist/chunks/cli-1.0.6-8kamwh44.mjs +15 -0
- package/dist/chunks/cli-1.0.6-8svdc6qx.mjs +2 -0
- package/dist/chunks/cli-1.0.6-8tj1qeak.mjs +2 -0
- package/dist/chunks/cli-1.0.6-8v7ggr2e.mjs +6 -0
- package/dist/chunks/cli-1.0.6-8xtkd26m.mjs +2 -0
- package/dist/chunks/cli-1.0.6-8zcjrs1k.mjs +2 -0
- package/dist/chunks/cli-1.0.6-93qsrgeq.mjs +2 -0
- package/dist/chunks/cli-1.0.6-967pphy3.mjs +3 -0
- package/dist/chunks/cli-1.0.6-9be2xem8.mjs +4 -0
- package/dist/chunks/cli-1.0.6-9m9h23m8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-9p90g9dg.mjs +7 -0
- package/dist/chunks/cli-1.0.6-9pj529zy.mjs +2 -0
- package/dist/chunks/cli-1.0.6-a9n4dj4c.mjs +2 -0
- package/dist/chunks/cli-1.0.6-a9z7f8hm.mjs +2 -0
- package/dist/chunks/cli-1.0.6-aasgkcf0.mjs +3 -0
- package/dist/chunks/cli-1.0.6-anxd75mm.mjs +2 -0
- package/dist/chunks/cli-1.0.6-apvttvwc.mjs +3 -0
- package/dist/chunks/cli-1.0.6-bghnbyek.mjs +2 -0
- package/dist/chunks/cli-1.0.6-bjz810zw.mjs +2 -0
- package/dist/chunks/cli-1.0.6-c3q3ytrc.mjs +2 -0
- package/dist/chunks/cli-1.0.6-cbv9sb7j.mjs +4 -0
- package/dist/chunks/cli-1.0.6-chfda1vf.mjs +2 -0
- package/dist/chunks/cli-1.0.6-ckyrvbe3.mjs +2 -0
- package/dist/chunks/cli-1.0.6-ct081pz5.mjs +2 -0
- package/dist/chunks/cli-1.0.6-d3y2kbdq.mjs +2 -0
- package/dist/chunks/cli-1.0.6-d4d0xfxp.mjs +5 -0
- package/dist/chunks/cli-1.0.6-d8gyb25m.mjs +15 -0
- package/dist/chunks/cli-1.0.6-d9ryhkjn.mjs +2 -0
- package/dist/chunks/cli-1.0.6-dk4qdtxs.mjs +2 -0
- package/dist/chunks/cli-1.0.6-e3cstemm.mjs +67 -0
- package/dist/chunks/cli-1.0.6-f4f6x83j.mjs +24 -0
- package/dist/chunks/cli-1.0.6-f80wk918.mjs +2 -0
- package/dist/chunks/cli-1.0.6-f82p2yzk.mjs +39 -0
- package/dist/chunks/cli-1.0.6-fggt191f.mjs +2 -0
- package/dist/chunks/cli-1.0.6-fj626dhh.mjs +2 -0
- package/dist/chunks/cli-1.0.6-g4v1k4vj.mjs +2 -0
- package/dist/chunks/cli-1.0.6-g9s2ts6j.mjs +2 -0
- package/dist/chunks/cli-1.0.6-gjtt9hjc.mjs +5471 -0
- package/dist/chunks/cli-1.0.6-hcq3hbzz.mjs +3 -0
- package/dist/chunks/cli-1.0.6-hjqc9sb8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-hkaszwz8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-hn9p22wz.mjs +2 -0
- package/dist/chunks/cli-1.0.6-hv2dry5y.mjs +2 -0
- package/dist/chunks/cli-1.0.6-j12sf764.mjs +2 -0
- package/dist/chunks/cli-1.0.6-j3b1c7v8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-j5xkwr5w.mjs +17 -0
- package/dist/chunks/cli-1.0.6-j6sxw4gg.mjs +2 -0
- package/dist/chunks/cli-1.0.6-jfnnwqdv.mjs +4 -0
- package/dist/chunks/cli-1.0.6-jqa1byr3.mjs +2 -0
- package/dist/chunks/cli-1.0.6-jrrb4qbg.mjs +2 -0
- package/dist/chunks/cli-1.0.6-jwysg2r7.mjs +2 -0
- package/dist/chunks/cli-1.0.6-jyqjk8ym.mjs +2 -0
- package/dist/chunks/cli-1.0.6-kajb476n.mjs +2 -0
- package/dist/chunks/cli-1.0.6-kgver18c.mjs +2 -0
- package/dist/chunks/cli-1.0.6-khth3f6c.mjs +1 -0
- package/dist/chunks/cli-1.0.6-kx801kag.mjs +4 -0
- package/dist/chunks/cli-1.0.6-m747en7y.mjs +50 -0
- package/dist/chunks/cli-1.0.6-m96da95q.mjs +2 -0
- package/dist/chunks/cli-1.0.6-mapf4yym.mjs +2 -0
- package/dist/chunks/cli-1.0.6-mgb1vzp0.mjs +6 -0
- package/dist/chunks/cli-1.0.6-mgk6361j.mjs +4 -0
- package/dist/chunks/cli-1.0.6-mt3y4qmj.mjs +18 -0
- package/dist/chunks/cli-1.0.6-mwb4199d.mjs +3 -0
- package/dist/chunks/cli-1.0.6-mzqatpet.mjs +6 -0
- package/dist/chunks/cli-1.0.6-n3apbtd5.mjs +2 -0
- package/dist/chunks/cli-1.0.6-n6yd76q7.mjs +2 -0
- package/dist/chunks/cli-1.0.6-n9zhw61e.mjs +2 -0
- package/dist/chunks/cli-1.0.6-nb4f2zfq.mjs +2 -0
- package/dist/chunks/cli-1.0.6-nbxf3acf.mjs +2 -0
- package/dist/chunks/cli-1.0.6-njnv92az.mjs +2 -0
- package/dist/chunks/cli-1.0.6-nke3e3mv.mjs +2 -0
- package/dist/chunks/cli-1.0.6-nphrz836.mjs +34 -0
- package/dist/chunks/cli-1.0.6-npng9y9t.mjs +2 -0
- package/dist/chunks/cli-1.0.6-nyh2gact.mjs +133 -0
- package/dist/chunks/cli-1.0.6-p2syhbmk.mjs +24 -0
- package/dist/chunks/cli-1.0.6-pem0rvy0.mjs +2 -0
- package/dist/chunks/cli-1.0.6-pgc0vpjm.mjs +2 -0
- package/dist/chunks/cli-1.0.6-pgwdn1q5.mjs +2 -0
- package/dist/chunks/cli-1.0.6-px4bsvf6.mjs +2 -0
- package/dist/chunks/cli-1.0.6-q2yz709r.mjs +2 -0
- package/dist/chunks/cli-1.0.6-q79ba7ng.mjs +24 -0
- package/dist/chunks/cli-1.0.6-qnmkmcq4.mjs +2 -0
- package/dist/chunks/cli-1.0.6-qp2em1hm.mjs +2 -0
- package/dist/chunks/cli-1.0.6-qt11m0ak.mjs +2 -0
- package/dist/chunks/cli-1.0.6-r0n4r13f.mjs +18 -0
- package/dist/chunks/cli-1.0.6-r2508q6q.mjs +2 -0
- package/dist/chunks/cli-1.0.6-r6mzt599.mjs +3 -0
- package/dist/chunks/cli-1.0.6-rkbbyfm8.mjs +21 -0
- package/dist/chunks/cli-1.0.6-rm2htcb3.mjs +2 -0
- package/dist/chunks/cli-1.0.6-rp7q90tp.mjs +42 -0
- package/dist/chunks/cli-1.0.6-rsj4zt4n.mjs +2 -0
- package/dist/chunks/cli-1.0.6-rwke4nxh.mjs +3 -0
- package/dist/chunks/cli-1.0.6-rx5w7fx8.mjs +2 -0
- package/dist/chunks/cli-1.0.6-ry340c4k.mjs +133 -0
- package/dist/chunks/cli-1.0.6-s333n5zg.mjs +8 -0
- package/dist/chunks/cli-1.0.6-s8neseq2.mjs +4 -0
- package/dist/chunks/cli-1.0.6-shakqp36.mjs +2 -0
- package/dist/chunks/cli-1.0.6-snj1v3kf.mjs +2 -0
- package/dist/chunks/cli-1.0.6-sq2d4y85.mjs +2 -0
- package/dist/chunks/cli-1.0.6-sw7g4tgd.mjs +2 -0
- package/dist/chunks/cli-1.0.6-sws40pv9.mjs +2 -0
- package/dist/chunks/cli-1.0.6-t9r7rn29.mjs +2 -0
- package/dist/chunks/cli-1.0.6-tnt5gdq6.mjs +3 -0
- package/dist/chunks/cli-1.0.6-tw4tv5c3.mjs +2 -0
- package/dist/chunks/cli-1.0.6-v08hd9y9.mjs +2 -0
- package/dist/chunks/cli-1.0.6-va933r6s.mjs +2 -0
- package/dist/chunks/cli-1.0.6-vmwnjv3e.mjs +12 -0
- package/dist/chunks/cli-1.0.6-vpwqryae.mjs +45 -0
- package/dist/chunks/cli-1.0.6-vw4q8h8f.mjs +20 -0
- package/dist/chunks/cli-1.0.6-w3ewev2t.mjs +2 -0
- package/dist/chunks/cli-1.0.6-w3xpmc0m.mjs +2 -0
- package/dist/chunks/cli-1.0.6-wc676ed5.mjs +2 -0
- package/dist/chunks/cli-1.0.6-wgprm90p.mjs +2 -0
- package/dist/chunks/cli-1.0.6-wqqq5eh9.mjs +2 -0
- package/dist/chunks/cli-1.0.6-wvn01egx.mjs +2 -0
- package/dist/chunks/cli-1.0.6-x2m8wf3s.mjs +15 -0
- package/dist/chunks/cli-1.0.6-x6q5yg4p.mjs +2 -0
- package/dist/chunks/cli-1.0.6-xgntnn4t.mjs +2 -0
- package/dist/chunks/cli-1.0.6-xhmby05p.mjs +2 -0
- package/dist/chunks/cli-1.0.6-xk2ttvjs.mjs +2 -0
- package/dist/chunks/cli-1.0.6-xr79bf4b.mjs +58 -0
- package/dist/chunks/cli-1.0.6-xsbxh0be.mjs +2 -0
- package/dist/chunks/cli-1.0.6-xx7yggj6.mjs +2 -0
- package/dist/chunks/cli-1.0.6-y406hq26.mjs +2 -0
- package/dist/chunks/cli-1.0.6-y7y63cz5.mjs +25 -0
- package/dist/chunks/cli-1.0.6-y84yqp9s.mjs +9 -0
- package/dist/chunks/cli-1.0.6-yfs94tn1.mjs +2 -0
- package/dist/chunks/cli-1.0.6-ykfbjap8.mjs +4 -0
- package/dist/chunks/cli-1.0.6-ypbzk2re.mjs +2 -0
- package/dist/chunks/cli-1.0.6-ytd9vx4t.mjs +5 -0
- package/dist/chunks/cli-1.0.6-z06mmyvr.mjs +6 -0
- package/dist/chunks/cli-1.0.6-z1vvz38s.mjs +2 -0
- package/dist/chunks/cli-1.0.6-z6c3g4jy.mjs +2 -0
- package/dist/chunks/cli-1.0.6-zbbh8d20.mjs +2 -0
- package/dist/chunks/cli-1.0.6-zcnjjez0.mjs +3 -0
- package/dist/chunks/client-1.0.6-n3e1kq6z.mjs +1 -0
- package/dist/chunks/color-1.0.6-949mf4t9.mjs +1 -0
- package/dist/chunks/compact-1.0.6-pk763zz3.mjs +3 -0
- package/dist/chunks/config-1.0.6-bysc6622.mjs +1 -0
- package/dist/chunks/config-1.0.6-tgr3szh4.mjs +1 -0
- package/dist/chunks/constants-1.0.6-2ytt6s63.mjs +1 -0
- package/dist/chunks/context-1.0.6-c6a94j19.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.6-rs66dgc4.mjs +1 -0
- package/dist/chunks/conversation-1.0.6-jg2wrz10.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.6-pqtevy6f.mjs +1 -0
- package/dist/chunks/copy-1.0.6-8q0c5rxd.mjs +9 -0
- package/dist/chunks/cost-1.0.6-99qahzn2.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.6-d9m8hpvm.mjs +1 -0
- package/dist/chunks/createSession-1.0.6-bst3zcfv.mjs +1 -0
- package/dist/chunks/debug-1.0.6-sp18ckyq.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.6-264e52qb.mjs +1446 -0
- package/dist/chunks/desktop-1.0.6-8f041exs.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.6-5xtpjm37.mjs +1 -0
- package/dist/chunks/detection-1.0.6-rqwbmfnt.mjs +1 -0
- package/dist/chunks/diff-1.0.6-2tfee48c.mjs +1 -0
- package/dist/chunks/doctor-1.0.6-8cd8a94q.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.6-2waz13fa.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.6-xz3zmash.mjs +1 -0
- package/dist/chunks/effort-1.0.6-sxass88w.mjs +10 -0
- package/dist/chunks/engine-1.0.6-m67y6tar.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.6-96am9ft2.mjs +1 -0
- package/dist/chunks/envUtils-1.0.6-rwrw23sx.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.6-eafb1t40.mjs +1 -0
- package/dist/chunks/environments-1.0.6-4rbtnxhr.mjs +1 -0
- package/dist/chunks/errors-1.0.6-tw2j2j5x.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.6-nme5mfvh.mjs +1 -0
- package/dist/chunks/exit-1.0.6-0nhvqr67.mjs +1 -0
- package/dist/chunks/explorer-1.0.6-9va9rmay.mjs +1 -0
- package/dist/chunks/export-1.0.6-42k6mg0d.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.6-1ts30zcb.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.6-ccj017df.mjs +1 -0
- package/dist/chunks/fast-1.0.6-hng6hkgq.mjs +1 -0
- package/dist/chunks/feedback-1.0.6-5xpevqgs.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.6-y50d073s.mjs +1 -0
- package/dist/chunks/git-1.0.6-vdebxyc7.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.6-1am8vwv9.mjs +1 -0
- package/dist/chunks/goal-1.0.6-ragq8khs.mjs +4 -0
- package/dist/chunks/grove-1.0.6-94e2ae96.mjs +1 -0
- package/dist/chunks/growthbook-1.0.6-q95706fh.mjs +1 -0
- package/dist/chunks/headless-1.0.6-2jvpkaj6.mjs +2 -0
- package/dist/chunks/heapdump-1.0.6-6mqe5yjj.mjs +6 -0
- package/dist/chunks/help-1.0.6-3f56hs2r.mjs +1 -0
- package/dist/chunks/hookChains-1.0.6-bsdqvn2p.mjs +3 -0
- package/dist/chunks/hooks-1.0.6-2ymh39cf.mjs +79 -0
- package/dist/chunks/hooks-1.0.6-d56f9xmd.mjs +1 -0
- package/dist/chunks/ide-1.0.6-0hyhzmhe.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.6-xf9rg916.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.6-fz8n9ms8.mjs +1 -0
- package/dist/chunks/index-1.0.6-2bck3pt4.mjs +30 -0
- package/dist/chunks/index-1.0.6-3g0nsrkv.mjs +17 -0
- package/dist/chunks/index-1.0.6-3y7jxvhy.mjs +1 -0
- package/dist/chunks/index-1.0.6-478y2m6e.mjs +2 -0
- package/dist/chunks/index-1.0.6-4b1e7s1x.mjs +1 -0
- package/dist/chunks/index-1.0.6-58j0s67x.mjs +1 -0
- package/dist/chunks/index-1.0.6-5bgvzt3z.mjs +1 -0
- package/dist/chunks/index-1.0.6-5vphvdyy.mjs +1 -0
- package/dist/chunks/index-1.0.6-66q2r5rv.mjs +1 -0
- package/dist/chunks/index-1.0.6-7eqcsb13.mjs +9 -0
- package/dist/chunks/index-1.0.6-7mybgpvp.mjs +9 -0
- package/dist/chunks/index-1.0.6-9h6qgr9j.mjs +1 -0
- package/dist/chunks/index-1.0.6-a1je2hj0.mjs +5 -0
- package/dist/chunks/index-1.0.6-dzem1xyw.mjs +1 -0
- package/dist/chunks/index-1.0.6-h1kbzgbr.mjs +1 -0
- package/dist/chunks/index-1.0.6-jr8edr28.mjs +1 -0
- package/dist/chunks/index-1.0.6-kb626zfj.mjs +1 -0
- package/dist/chunks/index-1.0.6-scap8ztx.mjs +1 -0
- package/dist/chunks/index-1.0.6-sfn887je.mjs +1 -0
- package/dist/chunks/index-1.0.6-trrzmzqw.mjs +2 -0
- package/dist/chunks/index-1.0.6-vxgxky1j.mjs +1 -0
- package/dist/chunks/index-1.0.6-xw59t9mn.mjs +1 -0
- package/dist/chunks/index-1.0.6-zefh4dqr.mjs +1 -0
- package/dist/chunks/init-1.0.6-ceew1r40.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.6-q0q0cs0q.mjs +1 -0
- package/dist/chunks/ink-1.0.6-egfpysk6.mjs +1 -0
- package/dist/chunks/insights-1.0.6-2jg25rtq.mjs +870 -0
- package/dist/chunks/install-1.0.6-g2wbzhrp.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.6-wkch2k0a.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.6-t0yx4g99.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.6-rchtz4a0.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.6-y17rjqq1.mjs +1 -0
- package/dist/chunks/keybindings-1.0.6-fwfn3ph3.mjs +2 -0
- package/dist/chunks/knowledge-1.0.6-ec5ygwxq.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.6-v868fdtg.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.6-tqjw33x8.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.6-0ep8t6k1.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.6-qnt1qmw9.mjs +1 -0
- package/dist/chunks/log-1.0.6-k9cgc2n4.mjs +1 -0
- package/dist/chunks/main-1.0.6-nqg7gj8m.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.6-5ew1phra.mjs +1 -0
- package/dist/chunks/mcp-1.0.6-3knsgg6d.mjs +17 -0
- package/dist/chunks/mcp-1.0.6-na22t28a.mjs +1 -0
- package/dist/chunks/mcp-1.0.6-zkyhgas3.mjs +4 -0
- package/dist/chunks/mcpb-1.0.6-g3b1zqxb.mjs +1 -0
- package/dist/chunks/memory-1.0.6-atzzmaad.mjs +3 -0
- package/dist/chunks/model-1.0.6-57z0x37s.mjs +1 -0
- package/dist/chunks/model-1.0.6-843dkkfz.mjs +2 -0
- package/dist/chunks/node-1.0.6-vxbhm4hf.mjs +12 -0
- package/dist/chunks/oauth-1.0.6-cfc8agdv.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.6-zsb0hbxr.mjs +14 -0
- package/dist/chunks/output-style-1.0.6-qbmq3rnf.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-1.0.6-tkz3dr14.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.6-j4d5nn9v.mjs +1 -0
- package/dist/chunks/parser-1.0.6-v2vwmn92.mjs +1 -0
- package/dist/chunks/passes-1.0.6-n7gy2bm9.mjs +1 -0
- package/dist/chunks/permissions-1.0.6-p5k4trnb.mjs +3 -0
- package/dist/chunks/permissions-1.0.6-sdaqy7tv.mjs +1 -0
- package/dist/chunks/plan-1.0.6-dsq3488z.mjs +1 -0
- package/dist/chunks/plist-1.0.6-gpg0h2dj.mjs +1 -0
- package/dist/chunks/plugin-1.0.6-kj0t0xry.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.6-tr3d9de5.mjs +1 -0
- package/dist/chunks/plugins-1.0.6-7kctwa0e.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.6-qfq4qcnx.mjs +2 -0
- package/dist/chunks/print-1.0.6-9k27napw.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.6-pmkcm2k6.mjs +1 -0
- package/dist/chunks/process-1.0.6-yjr9qgm0.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.6-hjsegdwx.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.6-qtste297.mjs +9 -0
- package/dist/chunks/prompt-1.0.6-3pz6ez1b.mjs +1 -0
- package/dist/chunks/prompt-1.0.6-gz6pqd71.mjs +1 -0
- package/dist/chunks/prompts-1.0.6-dds21kka.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.6-0ks875v7.mjs +13 -0
- package/dist/chunks/provider-1.0.6-9a1x17c8.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.6-rk717k78.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.6-e3rpsc9f.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.6-90etm2re.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.6-nvtknss4.mjs +34 -0
- package/dist/chunks/registry-1.0.6-g4g3tqbv.mjs +1 -0
- package/dist/chunks/release-notes-1.0.6-1s9np58q.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.6-3dd0aedh.mjs +2 -0
- package/dist/chunks/remote-env-1.0.6-gyn1ez8r.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.6-g9538ytn.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.6-mta0cnmb.mjs +1 -0
- package/dist/chunks/rename-1.0.6-q495btpz.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.6-v46krtrw.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.6-cc276asy.mjs +1 -0
- package/dist/chunks/resume-1.0.6-f7sxdm3s.mjs +2 -0
- package/dist/chunks/rewind-1.0.6-6stqe269.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.6-j78xfj1y.mjs +1 -0
- package/dist/chunks/sandbox-adapter-1.0.6-901t5paa.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.6-vc10zpq8.mjs +1 -0
- package/dist/chunks/session-1.0.6-gjwdmj9d.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.6-r2ydd9s8.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.6-9dvjq66r.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.6-6xf0298f.mjs +1 -0
- package/dist/chunks/settings-1.0.6-369qbnap.mjs +1 -0
- package/dist/chunks/setup-1.0.6-n8ec75ht.mjs +5 -0
- package/dist/chunks/sinks-1.0.6-h7v83r07.mjs +1 -0
- package/dist/chunks/skills-1.0.6-srbnw6db.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.6-bt2rwgd4.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.6-hs9cecpe.mjs +1 -0
- package/dist/chunks/state-1.0.6-3m5c8zpc.mjs +1 -0
- package/dist/chunks/stats-1.0.6-df87fq0j.mjs +6 -0
- package/dist/chunks/status-1.0.6-0wmbys8d.mjs +1 -0
- package/dist/chunks/stickers-1.0.6-rn50x1rq.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.6-1p34363n.mjs +1 -0
- package/dist/chunks/tasks-1.0.6-n9dy1nvm.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.6-sbqr7ebq.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.6-shsz85kr.mjs +1 -0
- package/dist/chunks/teleport-1.0.6-thxx543v.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.6-2abyvwnm.mjs +1 -0
- package/dist/chunks/theme-1.0.6-3q8wm8dd.mjs +1 -0
- package/dist/chunks/thinkback-1.0.6-sk8ykxzt.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.6-6202g18m.mjs +1 -0
- package/dist/chunks/toolPool-1.0.6-7f9ny265.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.6-r927q3n6.mjs +1 -0
- package/dist/chunks/tools-1.0.6-49vtha15.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.6-12zgjreg.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.6-m88jykaz.mjs +69 -0
- package/dist/chunks/types-1.0.6-qcw5ptd7.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.6-34s8eh57.mjs +4 -0
- package/dist/chunks/update-1.0.6-10vds9r4.mjs +88 -0
- package/dist/chunks/upgrade-1.0.6-sdwjc086.mjs +1 -0
- package/dist/chunks/upload-1.0.6-tk83fcy2.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.6-8d54f9fn.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.6-ph7g08x7.mjs +1 -0
- package/dist/chunks/usage-1.0.6-3m17gzhd.mjs +1 -0
- package/dist/chunks/util-1.0.6-wh7h4a5g.mjs +1 -0
- package/dist/chunks/utils-1.0.6-5e17hs3n.mjs +1 -0
- package/dist/chunks/vim-1.0.6-4mjggnma.mjs +1 -0
- package/dist/chunks/watcher-1.0.6-6p1xkebx.mjs +1 -0
- package/dist/chunks/wiki-1.0.6-aysp0kpj.mjs +132 -0
- package/dist/chunks/workflows-1.0.6-rnjxwhns.mjs +1 -0
- package/dist/chunks/worktree-1.0.6-8nfcjmff.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.6-4pgx8mqk.mjs +1 -0
- package/dist/chunks/wrapper-1.0.6-crv0bjsj.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/install.cjs +6 -2
- package/package.json +10 -10
- package/dist/chunks/AgentTool-1.0.4-hb5yf83k.mjs +0 -1
- package/dist/chunks/App-1.0.4-ee5phav9.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.4-cc8qfn6m.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.4-k5b5pnrd.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.4-jhajeb8a.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.4-9hz5azec.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.4-g51kch7p.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.4-29trpvey.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.4-j8p9yt42.mjs +0 -7
- package/dist/chunks/Doctor-1.0.4-wzrsp6wf.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.4-nestptq4.mjs +0 -6
- package/dist/chunks/Grove-1.0.4-7b2m2711.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.4-hqbevsrb.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.4-vtmbvxxd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.4-zreb0vxk.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.4-ed1k11kd.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.4-nq3j2bap.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.4-g7qy6jg1.mjs +0 -1
- package/dist/chunks/REPL-1.0.4-ne32y8dw.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.4-fedwb24z.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.4-w95m7f1z.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.4-ck0a2cmq.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.4-w37g1ssr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.4-tk09ztje.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.4-a4nja4px.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.4-q00g76m2.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.4-xce6cp69.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.4-w4scey43.mjs +0 -1
- package/dist/chunks/add-dir-1.0.4-xm5qwknc.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.4-he8e2qfd.mjs +0 -1
- package/dist/chunks/agents-1.0.4-k2bdfryr.mjs +0 -110
- package/dist/chunks/agents-1.0.4-mt84dfn1.mjs +0 -3
- package/dist/chunks/api-1.0.4-h4pnj11w.mjs +0 -1
- package/dist/chunks/asciicast-1.0.4-cafbqek9.mjs +0 -1
- package/dist/chunks/assistant-1.0.4-cezj138d.mjs +0 -1
- package/dist/chunks/auth-1.0.4-0t5pss7v.mjs +0 -1
- package/dist/chunks/auth-1.0.4-3y0wgt5g.mjs +0 -1
- package/dist/chunks/autoMode-1.0.4-vssxz3fz.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.4-drwc61h2.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.4-dn72g8zg.mjs +0 -1
- package/dist/chunks/branch-1.0.4-4gv6bbzr.mjs +0 -4
- package/dist/chunks/bridge-1.0.4-fs3148xw.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.4-tj7j77dy.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.4-g5j98pxj.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.4-47dp2cx1.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.4-rz3s97zd.mjs +0 -1
- package/dist/chunks/btw-1.0.4-q0v29hp5.mjs +0 -1
- package/dist/chunks/buddy-1.0.4-f6rknpnr.mjs +0 -3
- package/dist/chunks/cacache-1.0.4-zqddgev2.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.4-qx7ym4r0.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.4-q2mcbsr3.mjs +0 -4
- package/dist/chunks/caches-1.0.4-bsgbkzpc.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.4-17ztwd14.mjs +0 -1
- package/dist/chunks/claudemd-1.0.4-zdd5de85.mjs +0 -1
- package/dist/chunks/clear-1.0.4-g3cfj02y.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.4-xz0azar2.mjs +0 -1
- package/dist/chunks/cli-1.0.4-08e3sn18.mjs +0 -2
- package/dist/chunks/cli-1.0.4-092qjm5g.mjs +0 -25
- package/dist/chunks/cli-1.0.4-09fgpcwb.mjs +0 -2
- package/dist/chunks/cli-1.0.4-0gpk6g88.mjs +0 -2
- package/dist/chunks/cli-1.0.4-0pqf799x.mjs +0 -2
- package/dist/chunks/cli-1.0.4-0vwtrvvh.mjs +0 -16
- package/dist/chunks/cli-1.0.4-0wp27vrg.mjs +0 -67
- package/dist/chunks/cli-1.0.4-1bg07n68.mjs +0 -4
- package/dist/chunks/cli-1.0.4-1ddc8bnh.mjs +0 -2
- package/dist/chunks/cli-1.0.4-1j122zyj.mjs +0 -2
- package/dist/chunks/cli-1.0.4-1xkgwtah.mjs +0 -20
- package/dist/chunks/cli-1.0.4-1ymz8m3g.mjs +0 -2
- package/dist/chunks/cli-1.0.4-23n5aaxp.mjs +0 -2
- package/dist/chunks/cli-1.0.4-2g15f7sw.mjs +0 -2
- package/dist/chunks/cli-1.0.4-2je9hpfv.mjs +0 -50
- package/dist/chunks/cli-1.0.4-2m2spkt1.mjs +0 -2
- package/dist/chunks/cli-1.0.4-2mqbwapd.mjs +0 -2
- package/dist/chunks/cli-1.0.4-2pfh6nzj.mjs +0 -2
- package/dist/chunks/cli-1.0.4-2vrfse65.mjs +0 -2
- package/dist/chunks/cli-1.0.4-2wh24aeg.mjs +0 -24
- package/dist/chunks/cli-1.0.4-3289hbrr.mjs +0 -6
- package/dist/chunks/cli-1.0.4-34jdejmp.mjs +0 -2
- package/dist/chunks/cli-1.0.4-36qx2z1d.mjs +0 -2
- package/dist/chunks/cli-1.0.4-3b0061a4.mjs +0 -2
- package/dist/chunks/cli-1.0.4-3gmj1s7h.mjs +0 -3
- package/dist/chunks/cli-1.0.4-3k3cpavm.mjs +0 -3
- package/dist/chunks/cli-1.0.4-4m4pwdge.mjs +0 -2
- package/dist/chunks/cli-1.0.4-4sfp975c.mjs +0 -2
- package/dist/chunks/cli-1.0.4-4wmw1p17.mjs +0 -24
- package/dist/chunks/cli-1.0.4-54j7kz1n.mjs +0 -2
- package/dist/chunks/cli-1.0.4-5663sqrh.mjs +0 -2
- package/dist/chunks/cli-1.0.4-5c4tptcb.mjs +0 -2
- package/dist/chunks/cli-1.0.4-5e2v63sy.mjs +0 -2
- package/dist/chunks/cli-1.0.4-5e9fa04w.mjs +0 -2
- package/dist/chunks/cli-1.0.4-618n4yb3.mjs +0 -2
- package/dist/chunks/cli-1.0.4-61v9tj7g.mjs +0 -2
- package/dist/chunks/cli-1.0.4-75pszwff.mjs +0 -12
- package/dist/chunks/cli-1.0.4-7b7qaegg.mjs +0 -2
- package/dist/chunks/cli-1.0.4-7hvk5sex.mjs +0 -39
- package/dist/chunks/cli-1.0.4-7jd24agk.mjs +0 -2
- package/dist/chunks/cli-1.0.4-7pxrd0w5.mjs +0 -4
- package/dist/chunks/cli-1.0.4-80hrkybp.mjs +0 -2
- package/dist/chunks/cli-1.0.4-85cb91sn.mjs +0 -4
- package/dist/chunks/cli-1.0.4-8bmfjgvt.mjs +0 -2
- package/dist/chunks/cli-1.0.4-8ed4gxkm.mjs +0 -3
- package/dist/chunks/cli-1.0.4-8gkb1zg5.mjs +0 -8
- package/dist/chunks/cli-1.0.4-8jya5ew3.mjs +0 -2
- package/dist/chunks/cli-1.0.4-8ws7nhff.mjs +0 -2
- package/dist/chunks/cli-1.0.4-8x3m3esm.mjs +0 -2
- package/dist/chunks/cli-1.0.4-95nw81kz.mjs +0 -2
- package/dist/chunks/cli-1.0.4-982xabhy.mjs +0 -2
- package/dist/chunks/cli-1.0.4-9ber6pxx.mjs +0 -2
- package/dist/chunks/cli-1.0.4-9ra8j4rt.mjs +0 -59
- package/dist/chunks/cli-1.0.4-9re52te8.mjs +0 -2
- package/dist/chunks/cli-1.0.4-9w88pg39.mjs +0 -12
- package/dist/chunks/cli-1.0.4-9ysbahqq.mjs +0 -2
- package/dist/chunks/cli-1.0.4-a14svdr8.mjs +0 -1
- package/dist/chunks/cli-1.0.4-avmcefxg.mjs +0 -10
- package/dist/chunks/cli-1.0.4-azntz5z2.mjs +0 -2
- package/dist/chunks/cli-1.0.4-bg0v2cnc.mjs +0 -133
- package/dist/chunks/cli-1.0.4-bn5k1yhp.mjs +0 -2
- package/dist/chunks/cli-1.0.4-bneycyws.mjs +0 -2
- package/dist/chunks/cli-1.0.4-bnsdazas.mjs +0 -3
- package/dist/chunks/cli-1.0.4-c9sh44ne.mjs +0 -2
- package/dist/chunks/cli-1.0.4-cavq6b0d.mjs +0 -2
- package/dist/chunks/cli-1.0.4-cj3nrnbs.mjs +0 -58
- package/dist/chunks/cli-1.0.4-ctmzb5aw.mjs +0 -2
- package/dist/chunks/cli-1.0.4-cwjz9xzp.mjs +0 -2
- package/dist/chunks/cli-1.0.4-d4gb1vbz.mjs +0 -2
- package/dist/chunks/cli-1.0.4-d8bjdz7n.mjs +0 -2
- package/dist/chunks/cli-1.0.4-dj36xg0v.mjs +0 -2
- package/dist/chunks/cli-1.0.4-e26gm32b.mjs +0 -2
- package/dist/chunks/cli-1.0.4-e2mkdvw8.mjs +0 -2
- package/dist/chunks/cli-1.0.4-e76jy4xn.mjs +0 -2
- package/dist/chunks/cli-1.0.4-e86sgy00.mjs +0 -3
- package/dist/chunks/cli-1.0.4-ec3dh8bt.mjs +0 -2
- package/dist/chunks/cli-1.0.4-edbk5qx2.mjs +0 -5
- package/dist/chunks/cli-1.0.4-ef5asahs.mjs +0 -4
- package/dist/chunks/cli-1.0.4-emp66cxw.mjs +0 -2
- package/dist/chunks/cli-1.0.4-eny7y9k8.mjs +0 -6
- package/dist/chunks/cli-1.0.4-ex22h376.mjs +0 -2
- package/dist/chunks/cli-1.0.4-f0t68sye.mjs +0 -2
- package/dist/chunks/cli-1.0.4-f20q38cw.mjs +0 -2
- package/dist/chunks/cli-1.0.4-f2cmhz31.mjs +0 -15
- package/dist/chunks/cli-1.0.4-f62zwjj2.mjs +0 -2
- package/dist/chunks/cli-1.0.4-f8dd3sqs.mjs +0 -2
- package/dist/chunks/cli-1.0.4-f8eaamkf.mjs +0 -2
- package/dist/chunks/cli-1.0.4-f965h6gd.mjs +0 -7
- package/dist/chunks/cli-1.0.4-fbhgecgx.mjs +0 -2
- package/dist/chunks/cli-1.0.4-fc0bzryc.mjs +0 -3
- package/dist/chunks/cli-1.0.4-fcswm1md.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ffvpb7fz.mjs +0 -2
- package/dist/chunks/cli-1.0.4-fsf2c4j5.mjs +0 -2
- package/dist/chunks/cli-1.0.4-fv9x8ks1.mjs +0 -2
- package/dist/chunks/cli-1.0.4-g3vvvtwh.mjs +0 -2
- package/dist/chunks/cli-1.0.4-g9kftkyg.mjs +0 -2
- package/dist/chunks/cli-1.0.4-genhzh1b.mjs +0 -2
- package/dist/chunks/cli-1.0.4-gf8tchp1.mjs +0 -5
- package/dist/chunks/cli-1.0.4-ghv1wb08.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ghzbww61.mjs +0 -34
- package/dist/chunks/cli-1.0.4-gqc15qng.mjs +0 -6
- package/dist/chunks/cli-1.0.4-gssg75hx.mjs +0 -2
- package/dist/chunks/cli-1.0.4-gyjecspm.mjs +0 -2
- package/dist/chunks/cli-1.0.4-hfn9tnb6.mjs +0 -2
- package/dist/chunks/cli-1.0.4-hnrps9q2.mjs +0 -2
- package/dist/chunks/cli-1.0.4-hrw2yb74.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ht7fqqqw.mjs +0 -2
- package/dist/chunks/cli-1.0.4-htrx7sdv.mjs +0 -2
- package/dist/chunks/cli-1.0.4-hvgsrtj6.mjs +0 -3
- package/dist/chunks/cli-1.0.4-hwje79ka.mjs +0 -2
- package/dist/chunks/cli-1.0.4-hyj1dzkq.mjs +0 -3
- package/dist/chunks/cli-1.0.4-j17mhs88.mjs +0 -18
- package/dist/chunks/cli-1.0.4-jvp0mp87.mjs +0 -5471
- package/dist/chunks/cli-1.0.4-jxsb0m86.mjs +0 -2
- package/dist/chunks/cli-1.0.4-jy8qt85n.mjs +0 -2
- package/dist/chunks/cli-1.0.4-k16cwcs0.mjs +0 -2
- package/dist/chunks/cli-1.0.4-k20sr786.mjs +0 -3
- package/dist/chunks/cli-1.0.4-k6gh1b1a.mjs +0 -2
- package/dist/chunks/cli-1.0.4-kbfs3rn2.mjs +0 -3
- package/dist/chunks/cli-1.0.4-kc0ty8k1.mjs +0 -2
- package/dist/chunks/cli-1.0.4-kv0e5nm5.mjs +0 -2
- package/dist/chunks/cli-1.0.4-m240wvtt.mjs +0 -9
- package/dist/chunks/cli-1.0.4-n5mydt2f.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ndy339bx.mjs +0 -2
- package/dist/chunks/cli-1.0.4-nfpfve45.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ng8nc24b.mjs +0 -2
- package/dist/chunks/cli-1.0.4-nws4fp34.mjs +0 -2
- package/dist/chunks/cli-1.0.4-nz4ff6hn.mjs +0 -18
- package/dist/chunks/cli-1.0.4-p618f4eb.mjs +0 -2
- package/dist/chunks/cli-1.0.4-pae9c0v0.mjs +0 -18
- package/dist/chunks/cli-1.0.4-pxqvx117.mjs +0 -3
- package/dist/chunks/cli-1.0.4-q00a51mt.mjs +0 -4
- package/dist/chunks/cli-1.0.4-q0rnwhn4.mjs +0 -199
- package/dist/chunks/cli-1.0.4-q97cke3f.mjs +0 -2
- package/dist/chunks/cli-1.0.4-qdsf8s2n.mjs +0 -5
- package/dist/chunks/cli-1.0.4-qka1j546.mjs +0 -4
- package/dist/chunks/cli-1.0.4-qng8dpqh.mjs +0 -2
- package/dist/chunks/cli-1.0.4-qpymvg0c.mjs +0 -25
- package/dist/chunks/cli-1.0.4-r4h3tk3k.mjs +0 -17
- package/dist/chunks/cli-1.0.4-r8mtbv7z.mjs +0 -42
- package/dist/chunks/cli-1.0.4-r8x4yv46.mjs +0 -2
- package/dist/chunks/cli-1.0.4-rf2k7z5d.mjs +0 -2
- package/dist/chunks/cli-1.0.4-rhq4w2pj.mjs +0 -2
- package/dist/chunks/cli-1.0.4-rjgeb0fh.mjs +0 -12
- package/dist/chunks/cli-1.0.4-rkb3rkfa.mjs +0 -2
- package/dist/chunks/cli-1.0.4-rkhq9n0r.mjs +0 -12
- package/dist/chunks/cli-1.0.4-rkw1vtxv.mjs +0 -2
- package/dist/chunks/cli-1.0.4-rmrpsgq6.mjs +0 -24
- package/dist/chunks/cli-1.0.4-rntkbdpm.mjs +0 -2
- package/dist/chunks/cli-1.0.4-rsdrrjzt.mjs +0 -4
- package/dist/chunks/cli-1.0.4-rtwmycp0.mjs +0 -2
- package/dist/chunks/cli-1.0.4-s4sdhvre.mjs +0 -2
- package/dist/chunks/cli-1.0.4-s6m720bj.mjs +0 -2
- package/dist/chunks/cli-1.0.4-s8qwtd3t.mjs +0 -2
- package/dist/chunks/cli-1.0.4-scpa8zjb.mjs +0 -2
- package/dist/chunks/cli-1.0.4-sm5wfdec.mjs +0 -2
- package/dist/chunks/cli-1.0.4-t0zs4sf6.mjs +0 -2
- package/dist/chunks/cli-1.0.4-t915kvpv.mjs +0 -2
- package/dist/chunks/cli-1.0.4-th3f10e2.mjs +0 -2
- package/dist/chunks/cli-1.0.4-tt7ejrct.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ttn7e3zf.mjs +0 -3
- package/dist/chunks/cli-1.0.4-v2973j5k.mjs +0 -15
- package/dist/chunks/cli-1.0.4-vckzcaj2.mjs +0 -2
- package/dist/chunks/cli-1.0.4-vde8kvg5.mjs +0 -4
- package/dist/chunks/cli-1.0.4-vdykgt7q.mjs +0 -2
- package/dist/chunks/cli-1.0.4-vnf5ysx9.mjs +0 -3
- package/dist/chunks/cli-1.0.4-vpcfce7x.mjs +0 -6
- package/dist/chunks/cli-1.0.4-vrfgjvj8.mjs +0 -15
- package/dist/chunks/cli-1.0.4-vwwq0bh3.mjs +0 -2
- package/dist/chunks/cli-1.0.4-vxb33mtd.mjs +0 -4
- package/dist/chunks/cli-1.0.4-w6bsa7jc.mjs +0 -2
- package/dist/chunks/cli-1.0.4-wb91dheq.mjs +0 -2
- package/dist/chunks/cli-1.0.4-wfx4vdv5.mjs +0 -2
- package/dist/chunks/cli-1.0.4-wryebn9y.mjs +0 -2
- package/dist/chunks/cli-1.0.4-x4szzhgq.mjs +0 -2
- package/dist/chunks/cli-1.0.4-x8jnn75c.mjs +0 -2
- package/dist/chunks/cli-1.0.4-xcegbj23.mjs +0 -21
- package/dist/chunks/cli-1.0.4-xjef6vra.mjs +0 -2
- package/dist/chunks/cli-1.0.4-xwh8sxe6.mjs +0 -45
- package/dist/chunks/cli-1.0.4-xwwr77p3.mjs +0 -2
- package/dist/chunks/cli-1.0.4-xxktmt2a.mjs +0 -2
- package/dist/chunks/cli-1.0.4-y1kvcxph.mjs +0 -2
- package/dist/chunks/cli-1.0.4-y8a3yd57.mjs +0 -2
- package/dist/chunks/cli-1.0.4-y9e53xfp.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ya22eazw.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ya3aqyvx.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ygedgw05.mjs +0 -2
- package/dist/chunks/cli-1.0.4-yp6300fv.mjs +0 -2
- package/dist/chunks/cli-1.0.4-yq119gwk.mjs +0 -2
- package/dist/chunks/cli-1.0.4-yq19e16e.mjs +0 -4
- package/dist/chunks/cli-1.0.4-yq6mh0a1.mjs +0 -2
- package/dist/chunks/cli-1.0.4-yrgjsn2v.mjs +0 -17
- package/dist/chunks/cli-1.0.4-ywnv6aw8.mjs +0 -2
- package/dist/chunks/cli-1.0.4-z10ppvxj.mjs +0 -133
- package/dist/chunks/cli-1.0.4-z5zmw573.mjs +0 -2
- package/dist/chunks/cli-1.0.4-zcjfmcay.mjs +0 -2
- package/dist/chunks/cli-1.0.4-zka0z8g9.mjs +0 -2
- package/dist/chunks/cli-1.0.4-znj63zs7.mjs +0 -2
- package/dist/chunks/cli-1.0.4-znmw4kr8.mjs +0 -2
- package/dist/chunks/cli-1.0.4-zpvxzd77.mjs +0 -2
- package/dist/chunks/cli-1.0.4-ztznpg9h.mjs +0 -2
- package/dist/chunks/client-1.0.4-tejrj09r.mjs +0 -1
- package/dist/chunks/color-1.0.4-148b97be.mjs +0 -1
- package/dist/chunks/compact-1.0.4-ky0tgnkb.mjs +0 -3
- package/dist/chunks/config-1.0.4-a5enjc0b.mjs +0 -1
- package/dist/chunks/config-1.0.4-q23nqw9d.mjs +0 -1
- package/dist/chunks/constants-1.0.4-635bzfez.mjs +0 -1
- package/dist/chunks/context-1.0.4-fmdfyxfk.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.4-j208qvff.mjs +0 -1
- package/dist/chunks/conversation-1.0.4-mjwd6es3.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.4-w8cpfvcn.mjs +0 -1
- package/dist/chunks/copy-1.0.4-3zg2v8v9.mjs +0 -9
- package/dist/chunks/cost-1.0.4-qbz07cgt.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.4-ck0pjj64.mjs +0 -1
- package/dist/chunks/createSession-1.0.4-zn5jgf43.mjs +0 -1
- package/dist/chunks/debug-1.0.4-dym46dbc.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.4-7b6ynz02.mjs +0 -1446
- package/dist/chunks/desktop-1.0.4-b1awqagy.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.4-5ce0vhvf.mjs +0 -1
- package/dist/chunks/detection-1.0.4-02gwawhp.mjs +0 -1
- package/dist/chunks/diff-1.0.4-pn4a7wgt.mjs +0 -1
- package/dist/chunks/doctor-1.0.4-79m6h5bd.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.4-kxmkxpsz.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.4-xg5zcr37.mjs +0 -1
- package/dist/chunks/effort-1.0.4-8sdpyadq.mjs +0 -10
- package/dist/chunks/engine-1.0.4-wrn82cfg.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.4-x998nrnt.mjs +0 -1
- package/dist/chunks/envUtils-1.0.4-957dzgjm.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.4-06vjqsxt.mjs +0 -1
- package/dist/chunks/environments-1.0.4-4tzw2x67.mjs +0 -1
- package/dist/chunks/errors-1.0.4-tb1hnmsh.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.4-hp5tyv1s.mjs +0 -1
- package/dist/chunks/exit-1.0.4-0e0pjfe4.mjs +0 -1
- package/dist/chunks/explorer-1.0.4-kzv9mf71.mjs +0 -1
- package/dist/chunks/export-1.0.4-8yb3xjhz.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.4-ren9nv10.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.4-s9hgaf3d.mjs +0 -1
- package/dist/chunks/fast-1.0.4-qb539j3d.mjs +0 -1
- package/dist/chunks/feedback-1.0.4-99yaf8cc.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.4-qj82we89.mjs +0 -1
- package/dist/chunks/git-1.0.4-ag4cdf47.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.4-62p8s6py.mjs +0 -1
- package/dist/chunks/goal-1.0.4-w76hde3j.mjs +0 -4
- package/dist/chunks/grove-1.0.4-d8k5pbpk.mjs +0 -1
- package/dist/chunks/growthbook-1.0.4-qkc749a9.mjs +0 -1
- package/dist/chunks/headless-1.0.4-4htsajcx.mjs +0 -2
- package/dist/chunks/heapdump-1.0.4-g2n5m54n.mjs +0 -6
- package/dist/chunks/help-1.0.4-mb80yzdd.mjs +0 -1
- package/dist/chunks/hookChains-1.0.4-bhpn5t16.mjs +0 -3
- package/dist/chunks/hooks-1.0.4-3m8at5nd.mjs +0 -1
- package/dist/chunks/hooks-1.0.4-vqe5g9z0.mjs +0 -79
- package/dist/chunks/ide-1.0.4-8w5pj0k7.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.4-tn6ykvgm.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.4-gs14tq2d.mjs +0 -1
- package/dist/chunks/index-1.0.4-0ds0yar8.mjs +0 -2
- package/dist/chunks/index-1.0.4-0swpjsxv.mjs +0 -1
- package/dist/chunks/index-1.0.4-1adr1cev.mjs +0 -1
- package/dist/chunks/index-1.0.4-2cqwak8f.mjs +0 -1
- package/dist/chunks/index-1.0.4-45r2p2fr.mjs +0 -1
- package/dist/chunks/index-1.0.4-578fqjbt.mjs +0 -5
- package/dist/chunks/index-1.0.4-ak4tdd7x.mjs +0 -1
- package/dist/chunks/index-1.0.4-bq00jtej.mjs +0 -1
- package/dist/chunks/index-1.0.4-d3963jrf.mjs +0 -1
- package/dist/chunks/index-1.0.4-db6y9w6p.mjs +0 -9
- package/dist/chunks/index-1.0.4-eqa6324a.mjs +0 -30
- package/dist/chunks/index-1.0.4-fgtct7wa.mjs +0 -1
- package/dist/chunks/index-1.0.4-fpxnv2m3.mjs +0 -1
- package/dist/chunks/index-1.0.4-kkxqenx5.mjs +0 -17
- package/dist/chunks/index-1.0.4-m48vcxbj.mjs +0 -2
- package/dist/chunks/index-1.0.4-nb8rr4xb.mjs +0 -9
- package/dist/chunks/index-1.0.4-q4bjsgf0.mjs +0 -1
- package/dist/chunks/index-1.0.4-qj0raz1t.mjs +0 -1
- package/dist/chunks/index-1.0.4-rb8h15jh.mjs +0 -1
- package/dist/chunks/index-1.0.4-vhzdmbc5.mjs +0 -1
- package/dist/chunks/index-1.0.4-xadhy3m9.mjs +0 -1
- package/dist/chunks/index-1.0.4-ynqjejnh.mjs +0 -1
- package/dist/chunks/index-1.0.4-zw32d5rq.mjs +0 -1
- package/dist/chunks/init-1.0.4-tdv5z99g.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.4-rg2exhh0.mjs +0 -1
- package/dist/chunks/ink-1.0.4-w371tr8m.mjs +0 -1
- package/dist/chunks/insights-1.0.4-26m6wmhe.mjs +0 -870
- package/dist/chunks/install-1.0.4-k86wrfgy.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.4-kztkmzd8.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.4-jr818vd2.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.4-07hsrhzg.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.4-s8cew0a4.mjs +0 -1
- package/dist/chunks/keybindings-1.0.4-swcsebxv.mjs +0 -2
- package/dist/chunks/knowledge-1.0.4-fmpjrqf4.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.4-q89arrb0.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.4-7pg9fk0z.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.4-djam30bs.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.4-nntzjww6.mjs +0 -1
- package/dist/chunks/log-1.0.4-q4mkknks.mjs +0 -1
- package/dist/chunks/main-1.0.4-fpq69x53.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.4-50dv7phy.mjs +0 -1
- package/dist/chunks/mcp-1.0.4-3fp6t13e.mjs +0 -1
- package/dist/chunks/mcp-1.0.4-5g0fetmg.mjs +0 -17
- package/dist/chunks/mcp-1.0.4-v67mxtdh.mjs +0 -4
- package/dist/chunks/mcpb-1.0.4-bg0cf4nd.mjs +0 -1
- package/dist/chunks/memory-1.0.4-a5sjkye9.mjs +0 -3
- package/dist/chunks/model-1.0.4-7q33dte0.mjs +0 -2
- package/dist/chunks/model-1.0.4-ffc1hzwk.mjs +0 -1
- package/dist/chunks/node-1.0.4-t61fwtvv.mjs +0 -12
- package/dist/chunks/oauth-1.0.4-wa2f4qb5.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.4-j74991mr.mjs +0 -14
- package/dist/chunks/output-style-1.0.4-rrajfa4e.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.4-y2hbwj02.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.4-1krmb0p7.mjs +0 -1
- package/dist/chunks/parser-1.0.4-e0yxtz1k.mjs +0 -1
- package/dist/chunks/passes-1.0.4-kvwashgz.mjs +0 -1
- package/dist/chunks/permissions-1.0.4-apdtqjy6.mjs +0 -3
- package/dist/chunks/permissions-1.0.4-pmabr578.mjs +0 -1
- package/dist/chunks/plan-1.0.4-fsnspnpd.mjs +0 -1
- package/dist/chunks/plist-1.0.4-de9w52d2.mjs +0 -1
- package/dist/chunks/plugin-1.0.4-kaxanxvg.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.4-avqbmty1.mjs +0 -1
- package/dist/chunks/plugins-1.0.4-h4238mxy.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.4-hkk5ypj1.mjs +0 -2
- package/dist/chunks/print-1.0.4-zg0pxx71.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.4-7td5d9xf.mjs +0 -1
- package/dist/chunks/process-1.0.4-trh5g80m.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.4-vhq5y4b0.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.4-27w0dvzd.mjs +0 -9
- package/dist/chunks/prompt-1.0.4-1j8n4q6b.mjs +0 -1
- package/dist/chunks/prompt-1.0.4-p1dmdqgx.mjs +0 -1
- package/dist/chunks/prompts-1.0.4-an41ccab.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.4-6pyn2eqy.mjs +0 -13
- package/dist/chunks/provider-1.0.4-xz9x5xsf.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.4-qmtqnwxj.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.4-5yhz71te.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.4-71w1mhp8.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.4-k68vcvz1.mjs +0 -34
- package/dist/chunks/registry-1.0.4-5am2gh2r.mjs +0 -1
- package/dist/chunks/release-notes-1.0.4-72dkmwym.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.4-6eyjpyz7.mjs +0 -2
- package/dist/chunks/remote-env-1.0.4-6a8j2qxd.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.4-ddgvhxxp.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.4-3eztyv3e.mjs +0 -1
- package/dist/chunks/rename-1.0.4-te7rrrfc.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.4-16sm66q5.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.4-mt8zvgft.mjs +0 -1
- package/dist/chunks/resume-1.0.4-sya6c2c8.mjs +0 -2
- package/dist/chunks/rewind-1.0.4-v0yww1mv.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.4-t1drtsae.mjs +0 -1
- package/dist/chunks/sandbox-adapter-1.0.4-q641tp0g.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.4-c1033f07.mjs +0 -1
- package/dist/chunks/session-1.0.4-4fb52nd1.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.4-0e0rnehv.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.4-vk3q8gh9.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.4-eh1zevz7.mjs +0 -1
- package/dist/chunks/settings-1.0.4-0jpahg4j.mjs +0 -1
- package/dist/chunks/setup-1.0.4-p9hdn98q.mjs +0 -5
- package/dist/chunks/sinks-1.0.4-hs2rw9fa.mjs +0 -1
- package/dist/chunks/skills-1.0.4-www28gn6.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.4-tngewr6e.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.4-w114jwx9.mjs +0 -1
- package/dist/chunks/state-1.0.4-w3xv2kmh.mjs +0 -1
- package/dist/chunks/stats-1.0.4-3vm0apd0.mjs +0 -6
- package/dist/chunks/status-1.0.4-zymfx8mp.mjs +0 -1
- package/dist/chunks/stickers-1.0.4-jwgnam2a.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.4-3vgqj8gm.mjs +0 -1
- package/dist/chunks/tasks-1.0.4-hy7y09mg.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.4-53nq46v0.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.4-3wmvsb1r.mjs +0 -1
- package/dist/chunks/teleport-1.0.4-x93h61td.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.4-fh0en1t5.mjs +0 -1
- package/dist/chunks/theme-1.0.4-wr0m9bga.mjs +0 -1
- package/dist/chunks/thinkback-1.0.4-75kht0mq.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.4-1b1645q9.mjs +0 -1
- package/dist/chunks/toolPool-1.0.4-q895eqqt.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.4-3247wmxa.mjs +0 -1
- package/dist/chunks/tools-1.0.4-606qnn5t.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.4-c2380whv.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.4-43jppw9w.mjs +0 -69
- package/dist/chunks/types-1.0.4-1kpkjthf.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.4-5v4tpqbq.mjs +0 -4
- package/dist/chunks/update-1.0.4-0hj0c9x8.mjs +0 -86
- package/dist/chunks/upgrade-1.0.4-sfxyr5z4.mjs +0 -1
- package/dist/chunks/upload-1.0.4-bcjf0cbz.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.4-t76haqj3.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.4-nn0e71sf.mjs +0 -1
- package/dist/chunks/usage-1.0.4-hh2n5we9.mjs +0 -1
- package/dist/chunks/util-1.0.4-3cjy2f82.mjs +0 -1
- package/dist/chunks/utils-1.0.4-3cv1bh5y.mjs +0 -1
- package/dist/chunks/vim-1.0.4-26wbsc0p.mjs +0 -1
- package/dist/chunks/watcher-1.0.4-ygqk3k29.mjs +0 -1
- package/dist/chunks/wiki-1.0.4-jdevf4fv.mjs +0 -132
- package/dist/chunks/workflows-1.0.4-mg9ts0qs.mjs +0 -1
- package/dist/chunks/worktree-1.0.4-6849hcw1.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.4-3m5c48st.mjs +0 -1
- package/dist/chunks/wrapper-1.0.4-4czm72m1.mjs +0 -7
- /package/dist/chunks/{cli-1.0.4-sx5bf3zy.mjs → cli-1.0.6-eqj39b7c.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.4-a2brsa8c.mjs → cli-1.0.6-esf6g2hg.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.4-1eb2472e.mjs → cli-1.0.6-hg7rd6z8.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.4-jrvveh6t.mjs → cli-1.0.6-m86933bc.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.4-rh4j3s0t.mjs → cli-1.0.6-ntwqb73s.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.4-zjh4h68p.mjs → cli-1.0.6-tefnf8bf.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.4-fyekx70j.mjs → cli-1.0.6-xbk4dr3g.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{p8 as P2,r8 as x8}from"./cli-1.0.6-6a9gyk3y.mjs";import{t8 as h,u8 as mZ}from"./cli-1.0.6-mgb1vzp0.mjs";import{F8 as d5,H8 as w8}from"./cli-1.0.6-0z6jg1dt.mjs";import{F9 as R0,G9 as G1,Iea as V4,Jaa as s1,Kda as d,Kea as $4,Kfa as N,Nca as P,Nea as b2,Oea as tZ,Pca as j2,Pda as p5,Q9 as D5,Qda as C,Sca as Q0,Sfa as a0,T9 as cZ,Tca as M,Tda as K,Zda as r1,_aa as VZ,ada as B0,e_ as N5,g_ as dZ,hca as o1,jda as n4,kfa as m5,lda as nZ,mda as I1,mea as l,mfa as W4,nda as h8,oea as e1,pea as zZ,qca as WZ,sfa as c5,tea as Z4,u9 as T4,v9 as a,vaa as y1,vfa as L,w9 as K2,waa as A8,x9 as b0,y9 as M4,yfa as $0,z9 as a2}from"./cli-1.0.6-3rnmt44c.mjs";import{Sga as A0,Uga as P4,cha as v1}from"./cli-1.0.6-61qpjst5.mjs";import{gia as I5,hia as d4,iia as j0,kia as z8,lia as G8,nia as b,oia as M0}from"./cli-1.0.6-2taykcm3.mjs";import{pia as x,sia as B2}from"./cli-1.0.6-xx7yggj6.mjs";import{Yia as L5,aja as pZ,eja as l2,ija as y8,sja as z,uja as d0,vja as Z0}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as p,Uja as q1,Zja as V1}from"./cli-1.0.6-4r68vt91.mjs";import{aka as K5,dka as F,fka as u,hka as k2,kka as c4,nka as g}from"./cli-1.0.6-77j29wff.mjs";import{Gna as f,Nna as _1,Pla as Y0,Qla as w1,Qma as p1,Qpa as J0,cna as a1,coa as J1,doa as Q1,eoa as X1,foa as Y1,gna as k4,lna as I0,mna as J2,roa as x2}from"./cli-1.0.6-8zcjrs1k.mjs";import{nqa as I,oqa as i0}from"./cli-1.0.6-7sc6kks8.mjs";import{Kqa as k,ara as q2}from"./cli-1.0.6-r0n4r13f.mjs";import{Ara as e,wra as y0,yra as c2,zra as R}from"./cli-1.0.6-c3q3ytrc.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.6-kb626zfj.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.6-3y7jxvhy.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.6-kb626zfj.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.6-3y7jxvhy.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 S3,FQ as T3,C4 as U3,T5 as V3,M5 as W3,g$ as X3,p$ as Y3,B8 as Z3,R8 as _3,m$ as $3,h5 as a4,s0 as b4,o0 as c4,G0 as d4,u2 as e4,n2 as f4,U8 as g4,v0 as h4,W as i4,ZJ as j4,$J as k4,JJ as l4,QJ as m4,i as n4,j as o4,BJ as p4,Y2 as q4,FJ as r4,KJ as s4,o5 as t4,UJ as u4,bJ as v4,Z1 as w4,yJ as x4,H0 as y4,t2 as z4,k0 as A4,I$ as B4,G7 as C4,x7 as D4,t4 as E4,B7 as F4,j7 as G4,m0 as H4,T$ as I4,H7 as J4,R7 as K4,W8 as L4,l4 as M4,fJ as N4,C8 as O4,$1 as P4,z1 as Q4,z2 as R4,B1 as S4,dJ as T4,R1 as U4,S as V4,F1 as W4,S0 as X4,L1 as Y4,D1 as Z4,iJ as _4,aJ as $4,b1 as a5,sJ as b5,oJ as c5,O1 as d5,rJ as e5,eJ as f5,Z3 as g5,e2 as h5,A as i5,T1 as j5,u8 as k5,F3 as l5,K3 as m5,L3 as n5,M1 as o5,D3 as p5,N3 as q5,g8 as r5,U3 as s5,b3 as t5,O3 as u5,k3 as v5,P3 as w5,c8 as x5,E3 as y5,_3 as z5,v3 as A5,y3 as B5,h1 as C5,K0 as D5,t8 as E5,i8 as F5,a8 as G5,Q5 as H5,JZ as I5,h3 as J5,m1 as K5,c1 as L5,QZ as M5,X5 as N5,t1 as O5,l1 as P5,W9 as Q5,z9 as R5,Y5 as S5,G9 as T5,GZ as U5,N0 as V5,u0 as W5,J4 as X5,x9 as Y5,h0 as Z5,Q4 as _5,D as $5,U as a6,xZ as b6,B9 as c6,i1 as d6,f0 as e6,j9 as f6,X4 as g6,Y4 as h6,H9 as i6,T as j6,R9 as k6,HZ as l6,w9 as m6,F9 as n6,K9 as o6,L9 as p6,F0 as q6,N9 as r6,q4 as s6,B4 as t6,OZ as u6,H4 as v6,f9 as w6,u9 as x6,g9 as y6,V0 as z6,s as A6,p9 as B6,TZ as C6,m9 as D6,c9 as E6,V5 as F6,N4 as G6,U4 as H6,VQ as I6,hZ as J6,WQ as K6,zQ as L6,O4 as M6,GQ as N6,_4 as O6,fZ as P6,xQ as Q6,v4 as R6,y4 as S6,H5 as T6,A4 as U6,DQ as V6,f4 as W6,u4 as X6,P0 as Y6,T0 as Z6,X0 as _6,oZ as $6,n0 as a7,o as b7,b5 as c7,k5 as d7,s4 as e7,rZ as f7,o4 as g7,w5 as h7,Z$ as i7,$$ as j7,r4 as k7,z0 as l7,q$ as m7,E5 as n7,e4 as o7,Z8 as p7,_5 as q7,x$ as r7,B$ as s7,j$ as t7,O2 as u7,v5 as v7,R$ as w7,w$ as x7,J8 as y7,w as z7,y5 as A7,J5 as B7,c0 as C7,t0 as D7,O as E7,q0 as F7,L$ as G7,N2 as H7,D$ as I7,N$ as J7,v as K7,R2 as L7,U$ as M7,w2 as N7,b$ as O7,W5 as P7,Q8 as Q7,X8 as R7,U2 as S7,q8 as T7,k$ as U7,E$ as V7,_$ as W7,v$ as X7,y$ as Y7,n as Z7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{zra as P}from"./cli-1.0.6-c3q3ytrc.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
|
|
2
|
+
export{k as GV,w as HV,H as IV,g as JV,V as KV,W as LV,L as MV,Y as NV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{DH as U,EH as w}from"./cli-1.0.6-gjtt9hjc.mjs";import{J0 as k,JY as f,c0 as N,e0 as O}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as M,r3 as H,s3 as R}from"./cli-1.0.6-w3xpmc0m.mjs";import{vra as Y,zra as Z}from"./cli-1.0.6-c3q3ytrc.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
+
export{_ as Hg,A as Ig};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Sa as S}from"./cli-1.0.6-hg7rd6z8.mjs";import{Ua as c}from"./cli-1.0.6-hkaszwz8.mjs";import{Cd as Vq,yd as P}from"./cli-1.0.6-a9n4dj4c.mjs";import{Gd as I,Hd as v,Id as $,Jd as Wq}from"./cli-1.0.6-5fd5qjm7.mjs";import{$y as Gq,Bx as L,Cx as h,DK as E,EK as Qq,Ex as qq,SE as M,TE as Jq,Tt as N,Ut as e,Uy as A,VL as f,Vy as Bq,YL as Tq,Zy as _,dp as C,fp as r}from"./cli-1.0.6-gjtt9hjc.mjs";import{t3 as s}from"./cli-1.0.6-6zh1kz2j.mjs";import{Kfa as F,N9 as D,P9 as n,Sfa as a,u$ as w,w$ as t}from"./cli-1.0.6-3rnmt44c.mjs";import{pia as x,sia as d}from"./cli-1.0.6-xx7yggj6.mjs";import{sja as j,vja as o}from"./cli-1.0.6-z06mmyvr.mjs";import{Rja as y,Zja as l}from"./cli-1.0.6-4r68vt91.mjs";import{vra as p}from"./cli-1.0.6-c3q3ytrc.mjs";Jq();d();Gq();qq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);Bq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=h(),O=L((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await A(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);_(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
|
|
2
|
+
export{Lq as Ra};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{JI as Q,MI as F}from"./cli-1.0.6-gjtt9hjc.mjs";import{sja as b,vja as y}from"./cli-1.0.6-z06mmyvr.mjs";import{Uja as x,Zja as f}from"./cli-1.0.6-4r68vt91.mjs";import{aka as w,nka as R}from"./cli-1.0.6-77j29wff.mjs";import{Qpa as K,Xla as $,_la as j}from"./cli-1.0.6-8zcjrs1k.mjs";import{zra as v}from"./cli-1.0.6-c3q3ytrc.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
|
|
2
|
+
|
|
3
|
+
`:"",B=k===G?`
|
|
4
|
+
|
|
5
|
+
${c}`:"";return`Scheduled loop tick.
|
|
6
|
+
|
|
7
|
+
${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
|
|
8
|
+
|
|
9
|
+
If .claudin/loop.md exists, read it and follow it.
|
|
10
|
+
Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
|
|
11
|
+
Otherwise:
|
|
12
|
+
- continue any unfinished work from the conversation
|
|
13
|
+
- tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
|
|
14
|
+
- run cleanup passes such as bug hunts or simplification when nothing else is pending
|
|
15
|
+
|
|
16
|
+
Do not start new initiatives outside that scope.
|
|
17
|
+
Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
|
|
18
|
+
export{Y as Th,G as Uh,D as Vh,g as Wh,M as Xh,U as Yh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{AM as k,GM as V,gM as C,qM as N,zM as $}from"./cli-1.0.6-gjtt9hjc.mjs";import{J0 as D,JY as P,c0 as f,e0 as t,i0 as v}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as n,r3 as i,s3 as M}from"./cli-1.0.6-w3xpmc0m.mjs";import{vra as w,zra as L}from"./cli-1.0.6-c3q3ytrc.mjs";function W(o){let e=b.c(26),{scope:r,parsingErrors:s,warnings:m}=o,a=s.length>0,g=m.length>0;if(!a&&!g)return null;let p;if(e[0]!==a||e[1]!==g)p=(a||g)&&i(t,{color:a?"error":"warning",children:["[",a?"Failed to parse":"Contains warnings","]"," "]}),e[0]=a,e[1]=g,e[2]=p;else p=e[2];let c;if(e[3]!==r)c=k(r),e[3]=r,e[4]=c;else c=e[4];let l;if(e[5]!==c)l=n(t,{children:c}),e[5]=c,e[6]=l;else l=e[6];let u;if(e[7]!==p||e[8]!==l)u=i(f,{children:[p,l]}),e[7]=p,e[8]=l,e[9]=u;else u=e[9];let E;if(e[10]===Symbol.for("react.memo_cache_sentinel"))E=n(t,{dimColor:!0,children:"Location: "}),e[10]=E;else E=e[10];let h;if(e[11]!==r)h=$(r),e[11]=r,e[12]=h;else h=e[12];let d;if(e[13]!==h)d=i(f,{children:[E,n(t,{dimColor:!0,children:h})]}),e[13]=h,e[14]=d;else d=e[14];let T;if(e[15]!==s)T=s.map(F),e[15]=s,e[16]=T;else T=e[16];let _;if(e[17]!==m)_=m.map(x),e[17]=m,e[18]=_;else _=e[18];let y;if(e[19]!==T||e[20]!==_)y=i(f,{marginLeft:1,flexDirection:"column",children:[T,_]}),e[19]=T,e[20]=_,e[21]=y;else y=e[21];let S;if(e[22]!==y||e[23]!==u||e[24]!==d)S=i(f,{flexDirection:"column",marginTop:1,children:[u,d,y]}),e[22]=y,e[23]=u,e[24]=d,e[25]=S;else S=e[25];return S}function x(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"warning",children:"[Warning]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`warning-${e}`)}function F(o,e){let r=o.mcpErrorMetadata?.serverName;return n(f,{children:i(t,{children:[n(t,{dimColor:!0,children:"└ "}),n(t,{color:"error",children:"[Error]"}),i(t,{dimColor:!0,children:[" ",r&&`[${r}] `,o.path&&o.path!==""?`${o.path}: `:"",o.message]})]})},`error-${e}`)}function J(){let o=b.c(6),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e={scope:"user",config:C("user")},o[0]=e;else e=o[0];let r;if(o[1]===Symbol.for("react.memo_cache_sentinel"))r={scope:"project",config:C("project")},o[1]=r;else r=o[1];let s;if(o[2]===Symbol.for("react.memo_cache_sentinel"))s={scope:"local",config:C("local")},o[2]=s;else s=o[2];let m;if(o[3]===Symbol.for("react.memo_cache_sentinel"))m=[e,r,s,{scope:"enterprise",config:C("enterprise")}],o[3]=m;else m=o[3];let a=m,g=a.some(q),p=a.some(R);if(!g&&!p)return null;let c;if(o[4]===Symbol.for("react.memo_cache_sentinel"))c=n(t,{bold:!0,children:"MCP Config Diagnostics"}),o[4]=c;else c=o[4];let l;if(o[5]===Symbol.for("react.memo_cache_sentinel"))l=i(f,{flexDirection:"column",marginTop:1,marginBottom:1,children:[c,n(f,{marginTop:1,children:i(t,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",n(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),a.map(A)]}),o[5]=l;else l=o[5];return l}function A(o){let{scope:e,config:r}=o;return n(W,{scope:e,parsingErrors:B(r.errors,"fatal"),warnings:B(r.errors,"warning")},e)}function R(o){let{config:e}=o;return B(e.errors,"warning").length>0}function q(o){let{config:e}=o;return B(e.errors,"fatal").length>0}function B(o,e){return o.filter((r)=>r.mcpErrorMetadata?.severity===e)}var b;var z=L(()=>{N();V();D();M();b=w(P(),1)});
|
|
2
|
+
export{J as xg,z as yg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{J0 as a,JY as u,RZ as QQ,SZ as uQ,c0 as g,e0 as h,k0 as RQ,t0 as jQ,u0 as aQ,y0 as d}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as S,r3 as k,s3 as f}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as v}from"./cli-1.0.6-6zh1kz2j.mjs";import{H3 as n,J3 as t,O3 as YV}from"./cli-1.0.6-n9zhw61e.mjs";import{E7 as $Q,H7 as P,K7 as bQ,Z7 as XV}from"./cli-1.0.6-1a002r86.mjs";import{Kfa as CQ,Qda as mQ,Sfa as VV,Tda as x,mda as fQ,mea as QV,nda as eQ}from"./cli-1.0.6-3rnmt44c.mjs";import{Xfa as AQ,Yfa as sQ}from"./cli-1.0.6-9be2xem8.mjs";import{nia as r,oia as nQ}from"./cli-1.0.6-2taykcm3.mjs";import{sja as D,vja as iQ}from"./cli-1.0.6-z06mmyvr.mjs";import{Kqa as i,ara as tQ}from"./cli-1.0.6-r0n4r13f.mjs";import{vra as M,zra as F}from"./cli-1.0.6-c3q3ytrc.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{XQ as tX,YQ as uX,GQ as vX,yQ as wX,l as xX,BV as yX,qQ as zX,LQ as AX,zQ as BX,BQ as CX,MV as DX,y as EX,SV as FX,UQ as GX,TV as HX,OQ as IX,_Q as JX,o as KX,WQ as LX,$V as MX,oQ as NX,s as OX,IQ as PX,pV as QX,xV as RX,KQ as SX,EQ as TX,DQ as UX,oV as VX,rQ as WX,ZX as XX,JX as YX,GX as ZX,qX as _X,LX as $X,GV as aY,HX as bY,qV as cY};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Eh as e,Fh as qq,Gh as Jq,Hh as _q}from"./cli-1.0.6-wgprm90p.mjs";import{Ih as Zq,Jh as Pq}from"./cli-1.0.6-ypbzk2re.mjs";import{cz as j,dz as y,hz as x}from"./cli-1.0.6-gjtt9hjc.mjs";import{J0 as Iq,c0 as F,e0 as K}from"./cli-1.0.6-6zqt7f43.mjs";import{q3 as Y,r3 as L,s3 as Qq}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as m}from"./cli-1.0.6-6zh1kz2j.mjs";import{A9 as I,B9 as t,P_ as Uq,ica as r,o_ as w,q_ as h,qca as Vq,x_ as f}from"./cli-1.0.6-3rnmt44c.mjs";import{$fa as Mq,_fa as Xq,nga as Eq}from"./cli-1.0.6-9be2xem8.mjs";import{vra as R,zra as D}from"./cli-1.0.6-c3q3ytrc.mjs";function p(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,V=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:V,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var u=D(()=>{x();b=R(m(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),V=q.join(`
|
|
2
|
+
`),X=J.join(`
|
|
3
|
+
`);O.useEffect(()=>{let v=!1;M(!0);async function G(){let N=V?V.split(`
|
|
4
|
+
`):[],_=X?X.split(`
|
|
5
|
+
`):[],E=(await Promise.all(_.map((B)=>h(B)))).flat(),P=w(E).filter((B)=>!N.includes(B)).sort((B,C)=>S(B).localeCompare(S(C))),k=w([...N,...P]),Yq=await Promise.all(k.map(async(B)=>{let[C,g,Aq]=await Promise.all([j(B),y(B),f(B)]);return{root:B,name:S(B),branch:Aq,files:C?p(C,g):[],hunks:g}}));if(!v)z(Yq),Z(k),M(!1)}return G().catch(()=>{if(!v)z([]),Z([]),M(!1)}),()=>{v=!0}},[V,X,U]);let W=O.useCallback(()=>H((v)=>v+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=D(()=>{Uq();x();u();O=R(m(),1)});import{basename as c}from"path";function n(q,J,$){if(q===0)return"";return J.join("")+($?vq:a)}function d(q){return{name:q,dirs:new Map,files:[]}}function Gq(q){let J=d("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=d(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function l(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>c(X.path).localeCompare(c(W.path))),V=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],v=W.name,G=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;v=`${v}/${P.name}`,G=`${G}/${P.name}`,W=P}let N=X===U.length-1&&!V,_=`${Q}\x00${G}`,E=z.has(_);if(A.push({kind:"dir",key:_,label:v,depth:$,collapsed:E,guides:n($,M,N)}),!E){let P=$>=1?[...M,N?Bq:a]:M;l(W,G,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],v=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:n($,M,v)})}}function Nq(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${r(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}l(Gq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var a="│ ",vq="└ ",Bq=" ";var i=D(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return T[Math.abs(J)%T.length]}function o(q){let J=T.length;return T[(q%J+J)%J]}var T;var s=D(()=>{T=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function $q(){let q=Zq();return{enabled:q,fileIcon:(J)=>q?Jq(J):"",folderIcon:(J)=>q?J?qq:e:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var zq=D(()=>{t();_q();Pq()});import{basename as Lq}from"path";function Dq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function JJ(q){return q.flatMap((J)=>J.files)}function ZJ({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo($q,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Dq(M,J,$),V=[];for(let X=U;X<H;X++){let W=q[X];V.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),V,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let N=J?`${z.pointer} `:" ",_=q.collapsed?I.triangleRight:I.triangleDown;return L(K,{dimColor:!J,bold:J,children:[`${N}${_} `,z.repoIcon&&Y(K,{color:o(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let N=q.collapsed?I.triangleRight:I.triangleDown,_=z.folderIcon(!q.collapsed),E=_?`${_} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=Mq(q.label,P);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${N} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),V=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,v=Math.max(4,$-U-X.length-(V?2:0)-W-1),G=Xq(Lq(q.file.path),v);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,V,Q&&!J?Y(K,{color:Q,children:G}):G]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq;var Tq=D(()=>{t();Iq();Eq();s();i();zq();Qq();Wq=R(m(),1)});
|
|
6
|
+
export{wq as $f,Hq as ag,$q as bg,zq as cg,hq as dg,s as eg,Nq as fg,i as gg,JJ as hg,ZJ as ig,Tq as jg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{zra as $}from"./cli-1.0.6-c3q3ytrc.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function o(){return J("K")}function y(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function a(z=1){return z===0?"":J(z,"S")}function n(z=1){return z===0?"":J(z,"T")}function c(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,E,t,r,i,e,s,zz,Jz,Qz,Vz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");t=J("r"),r=J("200~"),i=J("201~"),e=J("I"),s=J("O"),zz=J(">1u"),Jz=J("<u"),Qz=J(">4;2m"),Vz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,Bz;var f=$(()=>{v();P=J(0,"f");Bz=T()});
|
|
2
|
+
export{d as R0,Y as S0,h as T0,j as U0,H as V0,w as W0,L as X0,x as Y0,A as Z0,N as _0,J as $0,g as a1,I as b1,_ as c1,u as d1,R as e1,C as f1,q as g1,S as h1,o as i1,K as j1,y as k1,a as l1,n as m1,c as n1,t as o1,r as p1,i as q1,e as r1,s as s1,zz as t1,Jz as u1,Qz as v1,Vz as w1,v as x1,T as y1,Bz as z1,f as A1};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{zra as M}from"./cli-1.0.6-c3q3ytrc.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
+
export{W as fia,Q as gia,K as hia,X as iia,Y as jia,Z as kia,y as lia,G as mia,h as nia,w as oia};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Tda as P,mea as y}from"./cli-1.0.6-3rnmt44c.mjs";import{zra as U}from"./cli-1.0.6-c3q3ytrc.mjs";var j,D,G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),f=D(112,101,110,103,117,105,110),E=D(116,117,114,116,108,101),I=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),b=D(99,97,112,121,98,97,114,97),h=D(99,97,99,116,117,115),m=D(114,111,98,111,116),p=D(114,97,98,98,105,116),u=D(109,117,115,104,114,111,111,109),T=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,f,E,I,k,A,b,h,m,p,u,T],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
+
export{G as qW,M as rW,N as sW,Y as tW,C as uW,_ as vW,R as wW,f as xW,E as yW,I as zW,k as AW,A as BW,b as CW,h as DW,m as EW,p as FW,u as GW,T as HW,e as IW,W as JW,a as KW,s as LW,r as MW,g as NW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{N4 as H,O4 as _,P4 as Y,Q4 as y}from"./cli-1.0.6-1a002r86.mjs";import{N9 as M,P9 as f}from"./cli-1.0.6-3rnmt44c.mjs";import{eja as P,ija as p,sja as x,via as F,vja as S,xia as b}from"./cli-1.0.6-z06mmyvr.mjs";import{Sja as V,Zja as R}from"./cli-1.0.6-4r68vt91.mjs";import{dka as U,nka as g}from"./cli-1.0.6-77j29wff.mjs";import{Qpa as A,aoa as D,boa as W}from"./cli-1.0.6-8zcjrs1k.mjs";import{zra as L}from"./cli-1.0.6-c3q3ytrc.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function s(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function o(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var h=L(()=>{b();f();g();Z=new Map});var $q;var m=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
|
|
2
|
+
export{k as OV,s as PV,o as QV,u as RV,e as SV,qq as TV,Gq as UV,Jq as VV,Kq as WV,Qq as XV,h as YV,$q as ZV,m as _V};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ie as _,ke as v}from"./cli-1.0.6-3fqch3zx.mjs";import{Le as Z,Me as P}from"./cli-1.0.6-4pmn22p0.mjs";import{Ax as X,Ex as K,Ox as Y,Qx as A}from"./cli-1.0.6-gjtt9hjc.mjs";import{DX as V,GX as C}from"./cli-1.0.6-2kk9k86d.mjs";import{q3 as H,s3 as Q}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as W}from"./cli-1.0.6-6zh1kz2j.mjs";import{Vfa as L,Wfa as U}from"./cli-1.0.6-9be2xem8.mjs";import{vra as B,zra as M}from"./cli-1.0.6-c3q3ytrc.mjs";function x({children:q}){let{bindings:D}=Y(),F=J.useRef(null),E=J.useRef(new Map),G=J.useRef(new Set).current;return H(V,{bindings:D,pendingChordRef:F,pendingChord:null,setPendingChord:()=>{},activeContexts:G,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:E,children:q})}function y(q){if(!("message"in q))return 1;let D=q.message.content;return Array.isArray(D)?D.length:1}async function b(q,D,F,{columns:E,verbose:G=!1,chunkSize:I=40,onProgress:$}={}){let T=(w)=>_(H(X,{children:H(x,{children:H(Z,{messages:q,tools:D,commands:[],verbose:G,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w})})}),E),N=I;for(let w of q)N+=y(w);for(let w=0;w<N;w+=I){let O=await T([w,w+I]);if(L(O).trim()==="")break;await F(O),$?.(w+I)}}async function l(q,D=[],F){let E=[];return await b(q,D,(G)=>void E.push(L(G)),{columns:F}),E.join("")}var J;var j=M(()=>{U();P();C();A();K();v();Q();J=B(W(),1)});
|
|
2
|
+
export{l as oc,j as pc};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{qra as V_,rra as su,tra as K_,ura as f_}from"./cli-1.0.6-j5xkwr5w.mjs";import{Ara as $_,xra as H}from"./cli-1.0.6-c3q3ytrc.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
+
versions published after the first week of January 2027
|
|
3
|
+
will require node >=${E}. You are running node ${_}.
|
|
4
|
+
|
|
5
|
+
To continue receiving updates to AWS services, bug fixes,
|
|
6
|
+
and security updates please upgrade to node >=${E}.
|
|
7
|
+
|
|
8
|
+
More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
|
|
9
|
+
export{W_ as jra,D_ as kra,yu as lra,ou as mra};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{H0 as X,J0 as k,JY as f,t0 as W}from"./cli-1.0.6-6zqt7f43.mjs";import{p3 as V,q3 as J,s3 as K}from"./cli-1.0.6-w3xpmc0m.mjs";import{t3 as P}from"./cli-1.0.6-6zh1kz2j.mjs";import{Vfa as U,Wfa as O}from"./cli-1.0.6-9be2xem8.mjs";import{vra as Q,zra as L}from"./cli-1.0.6-c3q3ytrc.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
+
export{g as ie,N as je,j as ke};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{vd as XJ,wd as mJ}from"./cli-1.0.6-85rq113c.mjs";import{$h as dJ,_h as JJ}from"./cli-1.0.6-xr79bf4b.mjs";import{$E as vJ,Aj as g,CD as e,Cm as OJ,DD as pJ,DG as o,EG as s,FG as FJ,IQ as P,Jk as BJ,Jn as h,ON as I,Qy as i,Ry as TJ,VS as bJ,Wl as c,Zl as HJ,_E as n,_w as x,gD as LJ,km as a,pm as RJ,wD as yJ,wm as l,xD as DJ,zG as T}from"./cli-1.0.6-gjtt9hjc.mjs";import{q6 as WJ}from"./cli-1.0.6-1a002r86.mjs";import{$ca as u,Bfa as O,Cfa as AJ,Kfa as B,Sfa as H,Tca as f,ada as _J,lda as MJ,w$ as VJ}from"./cli-1.0.6-3rnmt44c.mjs";import{cha as YJ}from"./cli-1.0.6-61qpjst5.mjs";import{Dha as zJ}from"./cli-1.0.6-sws40pv9.mjs";import{pia as R,sia as y}from"./cli-1.0.6-xx7yggj6.mjs";import{aja as QJ,eja as V,ija as UJ,sja as m,vja as NJ}from"./cli-1.0.6-z06mmyvr.mjs";import{Zja as C}from"./cli-1.0.6-4r68vt91.mjs";import{aka as U,nka as wJ}from"./cli-1.0.6-77j29wff.mjs";import{Hna as b,Qpa as j,Yma as F}from"./cli-1.0.6-8zcjrs1k.mjs";import{wra as jJ}from"./cli-1.0.6-c3q3ytrc.mjs";pJ();dJ();j();YJ();y();I();BJ();h();VJ();zJ();C();H();P();WJ();QJ();x();I();h();H();C();P();x();LJ();function D(){}j();y();AJ();NJ();wJ();UJ();TJ();MJ();H();o();vJ();RJ();bJ();FJ();_J();OJ();HJ();import{join as Q}from"path";var SJ=30;function L(){let K=((f()||{}).cleanupPeriodDays??SJ)*24*60*60*1000;return new Date(Date.now()-K)}function r(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function kJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,K){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let Z of G)try{if(kJ(Z.name)<J)if(await V().unlink(Q(X,Z.name)),K)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function EJ(){let X=V(),J=L(),K=O.errors(),$=O.baseLogs(),G=await p(K,J,!1);try{let Z;try{Z=await X.readdir($)}catch{return G}let Y=Z.filter((q)=>q.isDirectory()&&q.name.startsWith("mcp-logs-")).map((q)=>Q($,q.name));for(let q of Y)G=r(G,await p(q,J,!0)),await z(q,X)}catch(Z){if(Z instanceof Error&&"code"in Z&&Z.code!=="ENOENT")B(Z)}return G}async function w(X,J,K){if((await K.stat(X)).mtime<J)return await K.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function CJ(){let X=L(),J={messages:0,errors:0},K=g(),$=V(),G;try{G=await $.readdir(K)}catch{return J}for(let Z of G){if(!Z.isDirectory())continue;let Y=Q(K,Z.name),q;try{q=await $.readdir(Y)}catch{J.errors++;continue}for(let W of q)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await w(Q(Y,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Q(Y,W.name),N=Q(M,l),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await w(Q(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Q(N,_.name),k;try{k=await $.readdir(A)}catch{continue}for(let E of k){if(!E.isFile())continue;try{if(await w(Q(A,E.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Y,$)}return J}async function d(X,J,K=!0){let $=L(),G={messages:0,errors:0},Z=V(),Y;try{Y=await Z.readdir(X)}catch{return G}for(let q of Y){if(!q.isFile()||!q.name.endsWith(J))continue;try{if(await w(Q(X,q.name),$,Z))G.messages++}catch{G.errors++}}if(K)await z(X,Z);return G}async function hJ(){let X=a(),J=await d(X,".md"),K=Q(U(),"plans");if(K!==X){let $=await d(K,".md");return r(J,$)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},K=V();try{let $=U(),G=Q($,"file-history"),Z;try{Z=await K.readdir(G)}catch{return J}let Y=Z.filter((q)=>q.isDirectory()).map((q)=>Q(G,q.name));await Promise.all(Y.map(async(q)=>{try{if((await K.stat(q)).mtime<X)await K.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,K)}catch($){B($)}return J}async function IJ(){let X=L(),J={messages:0,errors:0},K=V();try{let $=U(),G=Q($,"session-env"),Z;try{Z=await K.readdir(G)}catch{return J}let Y=Z.filter((q)=>q.isDirectory()).map((q)=>Q(G,q.name));for(let q of Y)try{if((await K.stat(q)).mtime<X)await K.rm(q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,K)}catch($){B($)}return J}async function PJ(){let X=L(),J={messages:0,errors:0},K=V(),$=Q(U(),"debug"),G;try{G=await K.readdir($)}catch{return J}for(let Z of G){if(!Z.isFile()||!Z.name.endsWith(".txt")||Z.name==="latest")continue;try{if(await w(Q($,Z.name),X,K))J.messages++}catch{J.errors++}}return J}async function t(){let{errors:X}=s();if(X.length>0&&u("cleanupPeriodDays")){m("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await EJ(),await CJ(),await hJ(),await xJ(),await IJ(),await PJ(),await i(),await n(L());let J=await c(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}o();mJ();var fJ=(DJ(),jJ(yJ));var v=600000;function sX(){JJ(),D(),fJ.initExtractMemories(),e(),XJ();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await t();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
|
|
2
|
+
export{sX as La};
|