@claudiolabs/claudin 0.5.12 → 0.5.13
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-0.5.13-6dz2gvzt.mjs +1 -0
- package/dist/chunks/App-0.5.13-h8h37pzk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.13-r1fte24k.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.13-8r9am3rj.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.13-kmhmmjcg.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.13-2bsqjr5d.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.13-qcb3r450.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.13-pg65frv4.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.13-hwy08wq9.mjs +3 -0
- package/dist/chunks/Doctor-0.5.13-335trspw.mjs +1 -0
- package/dist/chunks/Grove-0.5.13-hg0k8g49.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.13-jj7kn9vx.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.13-9azv44xk.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.13-byp7h5gk.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.13-zxyqfrbq.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.13-qa2yk18p.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.13-c1vawvvp.mjs +1 -0
- package/dist/chunks/REPL-0.5.13-4rss5cn8.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.13-8yg9t110.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.13-egpytwfz.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.13-mqff8prx.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.13-vvjjc0e0.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.13-hr5qx564.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.13-3rqrqy3v.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.13-pc0xw8bq.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.13-fc0205ss.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.13-50732cyn.mjs +1 -0
- package/dist/chunks/add-dir-0.5.13-sq7m6erc.mjs +1 -0
- package/dist/chunks/agents-0.5.13-manb7tcq.mjs +3 -0
- package/dist/chunks/agents-0.5.13-xvmk9xvk.mjs +110 -0
- package/dist/chunks/api-0.5.13-q2anppzf.mjs +1 -0
- package/dist/chunks/asciicast-0.5.13-qdn1gh3y.mjs +1 -0
- package/dist/chunks/assistant-0.5.13-2hfvn0kh.mjs +1 -0
- package/dist/chunks/auth-0.5.13-05zhnpsy.mjs +1 -0
- package/dist/chunks/auth-0.5.13-jn53extx.mjs +1 -0
- package/dist/chunks/autoMode-0.5.13-ejwtdvs2.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.13-j6cngyr7.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.13-rrvzf922.mjs +1 -0
- package/dist/chunks/branch-0.5.13-qmyekghp.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.13-8r4x6rgv.mjs +1 -0
- package/dist/chunks/btw-0.5.13-0pa7vfhq.mjs +1 -0
- package/dist/chunks/buddy-0.5.13-k3ac5jxx.mjs +3 -0
- package/dist/chunks/cacache-0.5.13-ze1bqfm6.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.13-yc3ra4vk.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.13-e1eg5g4e.mjs +4 -0
- package/dist/chunks/caches-0.5.13-75dr0q42.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.13-5nptd5hj.mjs +1 -0
- package/dist/chunks/claudemd-0.5.13-ce8fx7gc.mjs +1 -0
- package/dist/chunks/clear-0.5.13-k8q15yen.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.13-veyek376.mjs +1 -0
- package/dist/chunks/cli-0.5.13-03jqbfbp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-055v20cs.mjs +2 -0
- package/dist/chunks/cli-0.5.13-061m60f2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-0fhxw4ng.mjs +3 -0
- package/dist/chunks/cli-0.5.13-0zgpx8rh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-15kmd08p.mjs +2 -0
- package/dist/chunks/cli-0.5.13-16khcs2m.mjs +3 -0
- package/dist/chunks/cli-0.5.13-1eedz5bc.mjs +2 -0
- package/dist/chunks/cli-0.5.13-1qt91z42.mjs +2 -0
- package/dist/chunks/cli-0.5.13-29nzbrwv.mjs +45 -0
- package/dist/chunks/cli-0.5.13-2m4fm0hh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-2v1zpnvh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-2vy5qjm5.mjs +5276 -0
- package/dist/chunks/cli-0.5.13-36s1k9x2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-3e1p9n7x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-3ys2sjjd.mjs +2 -0
- package/dist/chunks/cli-0.5.13-3zrq5ggt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-426cpksk.mjs +4 -0
- package/dist/chunks/cli-0.5.13-4at49cv9.mjs +2 -0
- package/dist/chunks/cli-0.5.13-4s4vnhj8.mjs +2 -0
- package/dist/chunks/cli-0.5.13-4yqsxc90.mjs +2 -0
- package/dist/chunks/cli-0.5.13-50cwkg00.mjs +2 -0
- package/dist/chunks/cli-0.5.13-5n0sdsbk.mjs +2 -0
- package/dist/chunks/cli-0.5.13-5tva2fr1.mjs +6 -0
- package/dist/chunks/cli-0.5.13-5wc80m6b.mjs +2 -0
- package/dist/chunks/cli-0.5.13-5x7qbneh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-62qasgve.mjs +2 -0
- package/dist/chunks/cli-0.5.13-667jxcab.mjs +18 -0
- package/dist/chunks/cli-0.5.13-69m6gq4m.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6c2mgdby.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6hvwtg4n.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6qz4fn68.mjs +2 -0
- package/dist/chunks/cli-0.5.13-6yehabyw.mjs +2 -0
- package/dist/chunks/cli-0.5.13-70f6zf2z.mjs +4 -0
- package/dist/chunks/cli-0.5.13-73fyz4ct.mjs +2 -0
- package/dist/chunks/cli-0.5.13-73hy7ka5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-77mqds6w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7b4c61sf.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7fzk2679.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7gkctjmj.mjs +2 -0
- package/dist/chunks/cli-0.5.13-7je48sax.mjs +15 -0
- package/dist/chunks/cli-0.5.13-898bb5x7.mjs +2 -0
- package/dist/chunks/cli-0.5.13-89h7zw2x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-8wrj5aqm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-8yj2mydb.mjs +2 -0
- package/dist/chunks/cli-0.5.13-9r26f53q.mjs +8 -0
- package/dist/chunks/cli-0.5.13-a86qe2vz.mjs +2 -0
- package/dist/chunks/cli-0.5.13-a8k2grq1.mjs +3 -0
- package/dist/chunks/cli-0.5.13-a9gqqmjh.mjs +6 -0
- package/dist/chunks/cli-0.5.13-acgafbm9.mjs +2 -0
- package/dist/chunks/cli-0.5.13-adphma77.mjs +2 -0
- package/dist/chunks/cli-0.5.13-atfk3e81.mjs +2 -0
- package/dist/chunks/cli-0.5.13-athb0q85.mjs +2 -0
- package/dist/chunks/cli-0.5.13-b2593ngv.mjs +4 -0
- package/dist/chunks/cli-0.5.13-b5tqhsx5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-b6aefc28.mjs +1 -0
- package/dist/chunks/cli-0.5.13-bkv5hf1d.mjs +2 -0
- package/dist/chunks/cli-0.5.13-bv7ax1n3.mjs +2 -0
- package/dist/chunks/cli-0.5.13-cf35yzvq.mjs +3 -0
- package/dist/chunks/cli-0.5.13-chdvhgrk.mjs +2 -0
- package/dist/chunks/cli-0.5.13-chgxtj5w.mjs +4 -0
- package/dist/chunks/cli-0.5.13-cjd4zkx5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-cm18xc7a.mjs +4 -0
- package/dist/chunks/cli-0.5.13-cnzars85.mjs +5 -0
- package/dist/chunks/cli-0.5.13-cs4r7txx.mjs +2 -0
- package/dist/chunks/cli-0.5.13-cvy5zs8w.mjs +39 -0
- package/dist/chunks/cli-0.5.13-cwy43qr2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-d0pk4caa.mjs +24 -0
- package/dist/chunks/cli-0.5.13-d1xn4v80.mjs +2 -0
- package/dist/chunks/cli-0.5.13-d4g5sa6y.mjs +2 -0
- package/dist/chunks/cli-0.5.13-d6bw823x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-dd5wmg26.mjs +15 -0
- package/dist/chunks/cli-0.5.13-ddpterr2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-dxs15ka8.mjs +24 -0
- package/dist/chunks/cli-0.5.13-dzq8ey2j.mjs +2 -0
- package/dist/chunks/cli-0.5.13-efbkgz8j.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ejy68mbm.mjs +34 -0
- package/dist/chunks/cli-0.5.13-epjykaww.mjs +17 -0
- package/dist/chunks/cli-0.5.13-evjnfa9k.mjs +10 -0
- package/dist/chunks/cli-0.5.13-f1akqq6k.mjs +2 -0
- package/dist/chunks/cli-0.5.13-f1e673b2.mjs +2 -0
- package/dist/chunks/cli-0.5.13-f6tattxs.mjs +4 -0
- package/dist/chunks/cli-0.5.13-fcrp5w0b.mjs +3 -0
- package/dist/chunks/cli-0.5.13-fdyfmbdw.mjs +2 -0
- package/dist/chunks/cli-0.5.13-fgckevv1.mjs +2 -0
- package/dist/chunks/cli-0.5.13-fjs5qecq.mjs +2 -0
- package/dist/chunks/cli-0.5.13-frerk7s6.mjs +2 -0
- package/dist/chunks/cli-0.5.13-g76ge0hv.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ga5kmq1w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-gb0363rs.mjs +2 -0
- package/dist/chunks/cli-0.5.13-gd8h6ejm.mjs +15 -0
- package/dist/chunks/cli-0.5.13-gpnjdq6k.mjs +12 -0
- package/dist/chunks/cli-0.5.13-gtn64dxk.mjs +12 -0
- package/dist/chunks/cli-0.5.13-gw433gw1.mjs +9 -0
- package/dist/chunks/cli-0.5.13-h04mqqtv.mjs +17 -0
- package/dist/chunks/cli-0.5.13-h1jy4w92.mjs +2 -0
- package/dist/chunks/cli-0.5.13-h9wt4xcx.mjs +25 -0
- package/dist/chunks/cli-0.5.13-hgrj8csf.mjs +4 -0
- package/dist/chunks/cli-0.5.13-hwcqeqbn.mjs +2 -0
- package/dist/chunks/cli-0.5.13-hxsc43y5.mjs +2 -0
- package/dist/chunks/cli-0.5.13-j2wbmw1t.mjs +2 -0
- package/dist/chunks/cli-0.5.13-j7mzv9r7.mjs +2 -0
- package/dist/chunks/cli-0.5.13-j97wk70q.mjs +2 -0
- package/dist/chunks/cli-0.5.13-jc4m6d2k.mjs +3 -0
- package/dist/chunks/cli-0.5.13-jqns71dy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-k0a2tvhb.mjs +2 -0
- package/dist/chunks/cli-0.5.13-k18wsy2t.mjs +2 -0
- package/dist/chunks/cli-0.5.13-k8vf1rgk.mjs +2 -0
- package/dist/chunks/cli-0.5.13-khtf0a93.mjs +9 -0
- package/dist/chunks/cli-0.5.13-kry2fk76.mjs +2 -0
- package/dist/chunks/cli-0.5.13-kt5d0qv4.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ktrr6zcr.mjs +2 -0
- package/dist/chunks/cli-0.5.13-kz59bkh7.mjs +6 -0
- package/dist/chunks/cli-0.5.13-mpqhbtwc.mjs +2 -0
- package/dist/chunks/cli-0.5.13-mrtzh5nm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-mwrgy706.mjs +2 -0
- package/dist/chunks/cli-0.5.13-n30tm5c8.mjs +2 -0
- package/dist/chunks/cli-0.5.13-n3xnwgn1.mjs +2 -0
- package/dist/chunks/cli-0.5.13-nc37z94b.mjs +2 -0
- package/dist/chunks/cli-0.5.13-nkaxbfpd.mjs +2 -0
- package/dist/chunks/cli-0.5.13-nqkxsn2m.mjs +133 -0
- package/dist/chunks/cli-0.5.13-p4f4h0g7.mjs +16 -0
- package/dist/chunks/cli-0.5.13-p6q4xbrv.mjs +2 -0
- package/dist/chunks/cli-0.5.13-p70x9j1v.mjs +193 -0
- package/dist/chunks/cli-0.5.13-p7q9grjp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-p9fwmgwy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-q2mxeckt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qdtebkgs.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qfxggvke.mjs +18 -0
- package/dist/chunks/cli-0.5.13-qkjyj942.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qrn019we.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qs5d8j4d.mjs +2 -0
- package/dist/chunks/cli-0.5.13-qv3v2ydv.mjs +3 -0
- package/dist/chunks/cli-0.5.13-r0m7bt05.mjs +2 -0
- package/dist/chunks/cli-0.5.13-r442vgxt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rd990xfy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rfsjgvne.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rmc7f4b8.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rppjxrmy.mjs +2 -0
- package/dist/chunks/cli-0.5.13-rqjp9raj.mjs +58 -0
- package/dist/chunks/cli-0.5.13-rrqv533k.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s005ka5h.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s1wx3grp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s58vke8w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-s719y89z.mjs +2 -0
- package/dist/chunks/cli-0.5.13-sfjdg8y7.mjs +4 -0
- package/dist/chunks/cli-0.5.13-sww17qtj.mjs +42 -0
- package/dist/chunks/cli-0.5.13-t0zrxwck.mjs +3 -0
- package/dist/chunks/cli-0.5.13-t6q9ebdp.mjs +2 -0
- package/dist/chunks/cli-0.5.13-teedketa.mjs +2 -0
- package/dist/chunks/cli-0.5.13-tg8xt9zq.mjs +3 -0
- package/dist/chunks/cli-0.5.13-thgp6asf.mjs +21 -0
- package/dist/chunks/cli-0.5.13-tqs67xcg.mjs +2 -0
- package/dist/chunks/cli-0.5.13-tr9s34te.mjs +59 -0
- package/dist/chunks/cli-0.5.13-tvfs784w.mjs +2 -0
- package/dist/chunks/cli-0.5.13-tyh63jx3.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ve50w85d.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vee98ybt.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vfkw26ed.mjs +3 -0
- package/dist/chunks/cli-0.5.13-vhjxq97s.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vhvwgvqz.mjs +2 -0
- package/dist/chunks/cli-0.5.13-vqrqsmg4.mjs +3 -0
- package/dist/chunks/cli-0.5.13-vt1mnr9f.mjs +2 -0
- package/dist/chunks/cli-0.5.13-w20nxjkz.mjs +5 -0
- package/dist/chunks/cli-0.5.13-wbq0xatn.mjs +2 -0
- package/dist/chunks/cli-0.5.13-wfyf1thm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-wyr6xtxm.mjs +2 -0
- package/dist/chunks/cli-0.5.13-x3f97qaq.mjs +2 -0
- package/dist/chunks/cli-0.5.13-x3t2vpfh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-x8dtpekr.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xgcr3a63.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xnxmkmta.mjs +5 -0
- package/dist/chunks/cli-0.5.13-xvg417w8.mjs +7 -0
- package/dist/chunks/cli-0.5.13-xxa4mzdx.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xxpqtp1x.mjs +2 -0
- package/dist/chunks/cli-0.5.13-xzeqt5b9.mjs +2 -0
- package/dist/chunks/cli-0.5.13-y3hmh09p.mjs +2 -0
- package/dist/chunks/cli-0.5.13-y9wywv5c.mjs +2 -0
- package/dist/chunks/cli-0.5.13-yc6wyazy.mjs +67 -0
- package/dist/chunks/cli-0.5.13-yf4tqq6c.mjs +20 -0
- package/dist/chunks/cli-0.5.13-yk8r9pqr.mjs +2 -0
- package/dist/chunks/cli-0.5.13-yskavx3s.mjs +12 -0
- package/dist/chunks/cli-0.5.13-ytqyx6qh.mjs +2 -0
- package/dist/chunks/cli-0.5.13-ywwd10c0.mjs +4 -0
- package/dist/chunks/cli-0.5.13-z0f17269.mjs +2 -0
- package/dist/chunks/cli-0.5.13-z1aye5ce.mjs +2 -0
- package/dist/chunks/cli-0.5.13-zk96c5kc.mjs +3 -0
- package/dist/chunks/cli-0.5.13-zkqc4zsj.mjs +4 -0
- package/dist/chunks/cli-0.5.13-zms1a287.mjs +50 -0
- package/dist/chunks/cli-0.5.13-znj1x5bb.mjs +133 -0
- package/dist/chunks/client-0.5.13-wkzv25nn.mjs +1 -0
- package/dist/chunks/color-0.5.13-yd46yzt2.mjs +1 -0
- package/dist/chunks/compact-0.5.13-3bw7kt91.mjs +3 -0
- package/dist/chunks/config-0.5.13-mwq6ejza.mjs +1 -0
- package/dist/chunks/config-0.5.13-t1bvsttc.mjs +1 -0
- package/dist/chunks/context-0.5.13-zffaf66t.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.13-r7fhc6wz.mjs +1 -0
- package/dist/chunks/conversation-0.5.13-3vvb99cj.mjs +1 -0
- package/dist/chunks/copy-0.5.13-zh3ctvbe.mjs +9 -0
- package/dist/chunks/cost-0.5.13-kaah7wjm.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.13-gn1tyhwh.mjs +1 -0
- package/dist/chunks/createSession-0.5.13-q4atr39q.mjs +1 -0
- package/dist/chunks/debug-0.5.13-tsk3c3gg.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.13-eep8ghf6.mjs +1177 -0
- package/dist/chunks/desktop-0.5.13-wahg3gbx.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.13-xek1s6f7.mjs +1 -0
- package/dist/chunks/detection-0.5.13-f8b6t5he.mjs +1 -0
- package/dist/chunks/diff-0.5.13-515a1hs6.mjs +1 -0
- package/dist/chunks/doctor-0.5.13-zafz1vsm.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.13-fd90ctm0.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.13-b58bf771.mjs +1 -0
- package/dist/chunks/effort-0.5.13-0yah2d2h.mjs +10 -0
- package/dist/chunks/envUtils-0.5.13-g4pw1v3n.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.13-9qw5cb9h.mjs +1 -0
- package/dist/chunks/environments-0.5.13-2a6akk4c.mjs +1 -0
- package/dist/chunks/errors-0.5.13-7p8kdhe8.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.13-fxpyc0yh.mjs +1 -0
- package/dist/chunks/exit-0.5.13-gs0h7d0d.mjs +1 -0
- package/dist/chunks/export-0.5.13-d2yz4k76.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.13-571qzpk6.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.13-ky55gxd6.mjs +1 -0
- package/dist/chunks/fast-0.5.13-2g61p9d0.mjs +1 -0
- package/dist/chunks/feedback-0.5.13-2mk1kd03.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.13-2t54ma0f.mjs +1 -0
- package/dist/chunks/git-0.5.13-rd7xcgr3.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.13-skfy40r3.mjs +1 -0
- package/dist/chunks/grove-0.5.13-g8qwzetx.mjs +1 -0
- package/dist/chunks/growthbook-0.5.13-hnyag67m.mjs +1 -0
- package/dist/chunks/headless-0.5.13-05rns8kj.mjs +2 -0
- package/dist/chunks/heapdump-0.5.13-4eq6h79m.mjs +6 -0
- package/dist/chunks/help-0.5.13-8pfrra9q.mjs +1 -0
- package/dist/chunks/hookChains-0.5.13-vvmpgx47.mjs +3 -0
- package/dist/chunks/hooks-0.5.13-c2ksw8k4.mjs +1 -0
- package/dist/chunks/hooks-0.5.13-zer0dcqm.mjs +79 -0
- package/dist/chunks/ide-0.5.13-r40xcg67.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.13-gf9xnpk4.mjs +1 -0
- package/dist/chunks/index-0.5.13-06mj6naw.mjs +1 -0
- package/dist/chunks/index-0.5.13-12hemzfc.mjs +1 -0
- package/dist/chunks/index-0.5.13-4559xg8z.mjs +17 -0
- package/dist/chunks/index-0.5.13-5gmbch0k.mjs +9 -0
- package/dist/chunks/index-0.5.13-5qstd1y9.mjs +1 -0
- package/dist/chunks/index-0.5.13-5zhr2qys.mjs +1 -0
- package/dist/chunks/index-0.5.13-7t4ww1cj.mjs +1 -0
- package/dist/chunks/index-0.5.13-9zz559q7.mjs +1 -0
- package/dist/chunks/index-0.5.13-ap2xd7mn.mjs +1 -0
- package/dist/chunks/index-0.5.13-c9pk5nd1.mjs +2 -0
- package/dist/chunks/index-0.5.13-d9sdxhsy.mjs +1 -0
- package/dist/chunks/index-0.5.13-ej6cywk8.mjs +30 -0
- package/dist/chunks/index-0.5.13-fbjdwyd8.mjs +1 -0
- package/dist/chunks/index-0.5.13-fertw6vb.mjs +1 -0
- package/dist/chunks/index-0.5.13-jwf634zt.mjs +1 -0
- package/dist/chunks/index-0.5.13-nny2e7sx.mjs +5 -0
- package/dist/chunks/index-0.5.13-np7s1rcw.mjs +1 -0
- package/dist/chunks/index-0.5.13-qkvpat3t.mjs +9 -0
- package/dist/chunks/index-0.5.13-qq60ettc.mjs +1 -0
- package/dist/chunks/index-0.5.13-rty9gaxf.mjs +2 -0
- package/dist/chunks/index-0.5.13-yqdcztr9.mjs +1 -0
- package/dist/chunks/index-0.5.13-zhze2z09.mjs +1 -0
- package/dist/chunks/init-0.5.13-yn5gjx3n.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.13-3q7t27y6.mjs +1 -0
- package/dist/chunks/ink-0.5.13-hp9a2nw1.mjs +1 -0
- package/dist/chunks/insights-0.5.13-k7b8vcre.mjs +870 -0
- package/dist/chunks/install-0.5.13-bfn6wvkn.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.13-jgte5vf5.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.13-6jhm4499.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.13-qe85v218.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.13-pzrtv38g.mjs +1 -0
- package/dist/chunks/keybindings-0.5.13-nekhy7ew.mjs +2 -0
- package/dist/chunks/knowledge-0.5.13-gzztvqej.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.13-68b2ccpy.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.13-0dsj5wv6.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.13-0z0wcvtq.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.13-fzcfd312.mjs +1 -0
- package/dist/chunks/log-0.5.13-gdx6qzh8.mjs +1 -0
- package/dist/chunks/main-0.5.13-n87gjwzq.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.13-53yr3zwe.mjs +1 -0
- package/dist/chunks/mcp-0.5.13-nmspb2zq.mjs +4 -0
- package/dist/chunks/mcp-0.5.13-rw2g8qaa.mjs +17 -0
- package/dist/chunks/mcp-0.5.13-th2ze7ya.mjs +1 -0
- package/dist/chunks/mcpb-0.5.13-m2r7m7gz.mjs +1 -0
- package/dist/chunks/memory-0.5.13-exfd915f.mjs +3 -0
- package/dist/chunks/mobile-0.5.13-chn8dbj3.mjs +2 -0
- package/dist/chunks/model-0.5.13-02rcx381.mjs +1 -0
- package/dist/chunks/model-0.5.13-nn224m13.mjs +2 -0
- package/dist/chunks/node-0.5.13-qaeqsj1w.mjs +12 -0
- package/dist/chunks/oauth-0.5.13-9kyat49f.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.13-h22myqt0.mjs +14 -0
- package/dist/chunks/output-style-0.5.13-6fyp1e9p.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.5.13-qhrrn6zr.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.13-1qc35s39.mjs +1 -0
- package/dist/chunks/parser-0.5.13-pat6pqc3.mjs +1 -0
- package/dist/chunks/passes-0.5.13-e04rjkwz.mjs +1 -0
- package/dist/chunks/permissions-0.5.13-hayn4a0z.mjs +3 -0
- package/dist/chunks/plan-0.5.13-837bdxnq.mjs +1 -0
- package/dist/chunks/plist-0.5.13-wbmvsbtw.mjs +1 -0
- package/dist/chunks/plugin-0.5.13-wfbqn2r6.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.13-6kztma6y.mjs +1 -0
- package/dist/chunks/plugins-0.5.13-661zwqh0.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.13-jnvd55h3.mjs +2 -0
- package/dist/chunks/print-0.5.13-tp9qh9m9.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.13-kd3r9h57.mjs +1 -0
- package/dist/chunks/process-0.5.13-kkfgtfp6.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.13-9yggekvh.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.13-q15qa3ee.mjs +9 -0
- package/dist/chunks/prompt-0.5.13-h2tvhh01.mjs +1 -0
- package/dist/chunks/prompt-0.5.13-x601wxwy.mjs +1 -0
- package/dist/chunks/prompts-0.5.13-76a9ns5g.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.13-kvfdrr12.mjs +13 -0
- package/dist/chunks/provider-0.5.13-tgwe2fwj.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.13-hyx6zffe.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.13-8z62br8d.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.13-wz5ew5he.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.13-xgwprw2n.mjs +34 -0
- package/dist/chunks/registry-0.5.13-cx3vtv28.mjs +1 -0
- package/dist/chunks/release-notes-0.5.13-pcbc1edt.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.13-pvwtgp6y.mjs +2 -0
- package/dist/chunks/remote-env-0.5.13-mj63srey.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.13-vmb8vyd9.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.13-ext2r1fs.mjs +1 -0
- package/dist/chunks/rename-0.5.13-c388bb34.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.13-d9e8m6a4.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.13-q4xjb3n7.mjs +1 -0
- package/dist/chunks/resume-0.5.13-zwms595g.mjs +2 -0
- package/dist/chunks/rewind-0.5.13-nf9en5kj.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.13-ys6f60ez.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.13-0kn0krrs.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.13-mbhkfqtx.mjs +1 -0
- package/dist/chunks/session-0.5.13-ef059m1s.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.13-rqf5h984.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.13-skb8p6b9.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.13-hfsdsdg8.mjs +1 -0
- package/dist/chunks/settings-0.5.13-dvj3rntg.mjs +1 -0
- package/dist/chunks/setup-0.5.13-0qy4tjwk.mjs +5 -0
- package/dist/chunks/sinks-0.5.13-r38g34n1.mjs +1 -0
- package/dist/chunks/skills-0.5.13-zd2n7d2t.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.13-rvngf74z.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.13-kepbkbnb.mjs +1 -0
- package/dist/chunks/state-0.5.13-9j8t0pbx.mjs +1 -0
- package/dist/chunks/stats-0.5.13-6083a1n1.mjs +6 -0
- package/dist/chunks/status-0.5.13-043z2z1k.mjs +1 -0
- package/dist/chunks/stickers-0.5.13-haw56t8e.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.13-6fym13ah.mjs +1 -0
- package/dist/chunks/tasks-0.5.13-prxqgrk6.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.13-ea9wnqk5.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.13-fzz13a9m.mjs +1 -0
- package/dist/chunks/teleport-0.5.13-cwvgxg78.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.13-cswcvej0.mjs +1 -0
- package/dist/chunks/theme-0.5.13-yq4dm16b.mjs +1 -0
- package/dist/chunks/thinkback-0.5.13-gf1n5td1.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.13-fjwrqzd7.mjs +1 -0
- package/dist/chunks/toolPool-0.5.13-kt2xjpf7.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.13-p0zpbh8d.mjs +1 -0
- package/dist/chunks/tools-0.5.13-jd6408d0.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.13-8vncqgx8.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.13-0pxd6ddw.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.13-5w0fawcq.mjs +4 -0
- package/dist/chunks/update-0.5.13-r5daertf.mjs +86 -0
- package/dist/chunks/upgrade-0.5.13-02ypar0z.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.13-qxsd8pz8.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.13-fvyp50k0.mjs +1 -0
- package/dist/chunks/usage-0.5.13-qzx2m9s9.mjs +1 -0
- package/dist/chunks/util-0.5.13-f4gpmja3.mjs +1 -0
- package/dist/chunks/utils-0.5.13-3qpq89q5.mjs +1 -0
- package/dist/chunks/vim-0.5.13-mg62q0nt.mjs +1 -0
- package/dist/chunks/watcher-0.5.13-q568pd2n.mjs +1 -0
- package/dist/chunks/wiki-0.5.13-yzex4wbz.mjs +132 -0
- package/dist/chunks/worktree-0.5.13-7q98jvfb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.13-rhsc6esa.mjs +1 -0
- package/dist/chunks/wrapper-0.5.13-7xwpyrgq.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.5.12-smdrq819.mjs +0 -1
- package/dist/chunks/App-0.5.12-r5wjd7s8.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.12-ne9g2ryd.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.12-xsd6p7kt.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.12-ssrkfkmd.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.12-q6qcrrj2.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.12-gfcmcgxz.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.12-e1f2czf7.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.12-vnm4mz9c.mjs +0 -3
- package/dist/chunks/Doctor-0.5.12-rtbvt5mw.mjs +0 -1
- package/dist/chunks/Grove-0.5.12-qv18jfe4.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.12-tp63kb2y.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.12-q3wspzrk.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.12-ksv56j0p.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.12-ekgs1jgb.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.12-sjtsxgzz.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.12-sjdymhw7.mjs +0 -1
- package/dist/chunks/REPL-0.5.12-8h9bmdjx.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.12-wpm4mfaa.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.12-n8kyqhdr.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.12-30xn93y9.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.12-e3fg3amd.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.12-hk2rzdh9.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.12-jevh3zhx.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.12-9ggdsbtq.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.12-h0w01e8v.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.12-gs3tp52z.mjs +0 -1
- package/dist/chunks/add-dir-0.5.12-20s2bbpb.mjs +0 -1
- package/dist/chunks/agents-0.5.12-3hsbstfa.mjs +0 -3
- package/dist/chunks/agents-0.5.12-s6qbjsne.mjs +0 -110
- package/dist/chunks/api-0.5.12-0wrh71sa.mjs +0 -1
- package/dist/chunks/asciicast-0.5.12-rjjtzjz5.mjs +0 -1
- package/dist/chunks/assistant-0.5.12-wv5tm7qb.mjs +0 -1
- package/dist/chunks/auth-0.5.12-1jvg770t.mjs +0 -1
- package/dist/chunks/auth-0.5.12-s2b8vrty.mjs +0 -1
- package/dist/chunks/autoMode-0.5.12-ka6ppwmf.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.12-gdprekp5.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.12-1yfjbpvk.mjs +0 -1
- package/dist/chunks/branch-0.5.12-j64r58dd.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.12-x983by3j.mjs +0 -1
- package/dist/chunks/btw-0.5.12-kgz89wa7.mjs +0 -1
- package/dist/chunks/buddy-0.5.12-r9nysssz.mjs +0 -3
- package/dist/chunks/cacache-0.5.12-4170vfc6.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.12-5nr9y8e3.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.12-bgxk3p2h.mjs +0 -4
- package/dist/chunks/caches-0.5.12-95zf6qzv.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.12-23kdtzwn.mjs +0 -1
- package/dist/chunks/claudemd-0.5.12-nyakrtyn.mjs +0 -1
- package/dist/chunks/clear-0.5.12-tngfq6r4.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.12-g53rj1ba.mjs +0 -1
- package/dist/chunks/cli-0.5.12-02t9z38y.mjs +0 -2
- package/dist/chunks/cli-0.5.12-02yr8j71.mjs +0 -3
- package/dist/chunks/cli-0.5.12-057c2cp2.mjs +0 -5
- package/dist/chunks/cli-0.5.12-07kx3k7b.mjs +0 -2
- package/dist/chunks/cli-0.5.12-097tmfjr.mjs +0 -2
- package/dist/chunks/cli-0.5.12-0qasc0ef.mjs +0 -2
- package/dist/chunks/cli-0.5.12-11b979hs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-15jvdvek.mjs +0 -3
- package/dist/chunks/cli-0.5.12-1fs9t3y1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-1vyz0tt9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-27ngaysm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-2fqmc1dw.mjs +0 -17
- package/dist/chunks/cli-0.5.12-2jxq8gnm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-2thv7xjf.mjs +0 -133
- package/dist/chunks/cli-0.5.12-2tqpkne4.mjs +0 -3
- package/dist/chunks/cli-0.5.12-2wf629mh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-2zcpj03a.mjs +0 -2
- package/dist/chunks/cli-0.5.12-30h4rkq5.mjs +0 -4
- package/dist/chunks/cli-0.5.12-34cd39ve.mjs +0 -2
- package/dist/chunks/cli-0.5.12-36swspqa.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3t06hwwh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3v7zr435.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3vz2jvfs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-3zwt5bt4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-41eae9ef.mjs +0 -2
- package/dist/chunks/cli-0.5.12-47dbnsz1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-495d826j.mjs +0 -18
- package/dist/chunks/cli-0.5.12-4dn79vqp.mjs +0 -2
- package/dist/chunks/cli-0.5.12-4dxe3951.mjs +0 -2
- package/dist/chunks/cli-0.5.12-4h4yvgep.mjs +0 -4
- package/dist/chunks/cli-0.5.12-5d3qcvf5.mjs +0 -2
- package/dist/chunks/cli-0.5.12-5qad6x1n.mjs +0 -2
- package/dist/chunks/cli-0.5.12-60w1a0bs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-62bfegwf.mjs +0 -3
- package/dist/chunks/cli-0.5.12-63mc4ryd.mjs +0 -2
- package/dist/chunks/cli-0.5.12-6h1z8rhs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7bxdfxh2.mjs +0 -7
- package/dist/chunks/cli-0.5.12-7c345wdv.mjs +0 -15
- package/dist/chunks/cli-0.5.12-7cn41yy7.mjs +0 -6
- package/dist/chunks/cli-0.5.12-7dj55dt9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7j2hryxc.mjs +0 -3
- package/dist/chunks/cli-0.5.12-7p67dbr2.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7repzgzv.mjs +0 -2
- package/dist/chunks/cli-0.5.12-7vxpqr5a.mjs +0 -67
- package/dist/chunks/cli-0.5.12-7zb3ptxb.mjs +0 -2
- package/dist/chunks/cli-0.5.12-8j9p82ea.mjs +0 -2
- package/dist/chunks/cli-0.5.12-8v5w8znc.mjs +0 -9
- package/dist/chunks/cli-0.5.12-8vg9yqcp.mjs +0 -3
- package/dist/chunks/cli-0.5.12-8wzyrrzj.mjs +0 -10
- package/dist/chunks/cli-0.5.12-96ne669g.mjs +0 -25
- package/dist/chunks/cli-0.5.12-9mq24qzr.mjs +0 -2
- package/dist/chunks/cli-0.5.12-9q9g02p5.mjs +0 -2
- package/dist/chunks/cli-0.5.12-9qdgpa04.mjs +0 -2
- package/dist/chunks/cli-0.5.12-9zz4wk90.mjs +0 -2
- package/dist/chunks/cli-0.5.12-afky60yh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ajgk4ksj.mjs +0 -2
- package/dist/chunks/cli-0.5.12-am3j4jcx.mjs +0 -12
- package/dist/chunks/cli-0.5.12-aqgqkjt4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-asbn3d19.mjs +0 -2
- package/dist/chunks/cli-0.5.12-b2d3jjn3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-b73xqvce.mjs +0 -2
- package/dist/chunks/cli-0.5.12-brdpkyjd.mjs +0 -4
- package/dist/chunks/cli-0.5.12-bw549ry1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-bx2t76qp.mjs +0 -3
- package/dist/chunks/cli-0.5.12-bxsvvg0q.mjs +0 -2
- package/dist/chunks/cli-0.5.12-bzab36pn.mjs +0 -15
- package/dist/chunks/cli-0.5.12-c2yq69h9.mjs +0 -17
- package/dist/chunks/cli-0.5.12-c40vvkn4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-c6whkxmz.mjs +0 -2
- package/dist/chunks/cli-0.5.12-c8f4daey.mjs +0 -2
- package/dist/chunks/cli-0.5.12-caz6gx12.mjs +0 -2
- package/dist/chunks/cli-0.5.12-cbevkwg4.mjs +0 -3
- package/dist/chunks/cli-0.5.12-cqv7z22w.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ctqkj6ve.mjs +0 -6
- package/dist/chunks/cli-0.5.12-cw1qs4bg.mjs +0 -24
- package/dist/chunks/cli-0.5.12-cwbm4b6n.mjs +0 -2
- package/dist/chunks/cli-0.5.12-d158qgn4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-dda4jky0.mjs +0 -2
- package/dist/chunks/cli-0.5.12-dpm51wzp.mjs +0 -2
- package/dist/chunks/cli-0.5.12-eb1c0sqs.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ecgx5n54.mjs +0 -2
- package/dist/chunks/cli-0.5.12-f141d2qa.mjs +0 -2
- package/dist/chunks/cli-0.5.12-f15xspgt.mjs +0 -18
- package/dist/chunks/cli-0.5.12-f5pfjvdk.mjs +0 -2
- package/dist/chunks/cli-0.5.12-f8850v2j.mjs +0 -42
- package/dist/chunks/cli-0.5.12-f99c5512.mjs +0 -24
- package/dist/chunks/cli-0.5.12-fqp5s15p.mjs +0 -59
- package/dist/chunks/cli-0.5.12-g4ffbdep.mjs +0 -2
- package/dist/chunks/cli-0.5.12-g4wb8mj2.mjs +0 -193
- package/dist/chunks/cli-0.5.12-gfm1s8a2.mjs +0 -4
- package/dist/chunks/cli-0.5.12-ghtxkxqx.mjs +0 -2
- package/dist/chunks/cli-0.5.12-gt83ysr0.mjs +0 -9
- package/dist/chunks/cli-0.5.12-gwg1e43k.mjs +0 -34
- package/dist/chunks/cli-0.5.12-had5m07e.mjs +0 -2
- package/dist/chunks/cli-0.5.12-hp0508v9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-hvtcdcev.mjs +0 -2
- package/dist/chunks/cli-0.5.12-j3j0qej1.mjs +0 -2
- package/dist/chunks/cli-0.5.12-j75ba781.mjs +0 -2
- package/dist/chunks/cli-0.5.12-jp1r2jw2.mjs +0 -1
- package/dist/chunks/cli-0.5.12-jy79msaa.mjs +0 -2
- package/dist/chunks/cli-0.5.12-k1crwtdc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-k976aej3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-kez9r81a.mjs +0 -2
- package/dist/chunks/cli-0.5.12-khvy67r3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-kkfzbxw6.mjs +0 -2
- package/dist/chunks/cli-0.5.12-kr31tdde.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ktv3envc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-m22yxpb9.mjs +0 -2
- package/dist/chunks/cli-0.5.12-m2gh4ewc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-mgke70yz.mjs +0 -39
- package/dist/chunks/cli-0.5.12-n1ax8ehf.mjs +0 -2
- package/dist/chunks/cli-0.5.12-n1wc50h4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-n4bfatc5.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nb3q4dfs.mjs +0 -4
- package/dist/chunks/cli-0.5.12-nbcjwzzn.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ne0f51vh.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nf7cvq82.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nj5yya0e.mjs +0 -2
- package/dist/chunks/cli-0.5.12-nytegfxk.mjs +0 -4
- package/dist/chunks/cli-0.5.12-p4mf644w.mjs +0 -2
- package/dist/chunks/cli-0.5.12-p5ps8gf0.mjs +0 -6
- package/dist/chunks/cli-0.5.12-p7shsask.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pdqnfqg3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pp1549k7.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pp1f55mm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pq058s0e.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pwee4pmy.mjs +0 -2
- package/dist/chunks/cli-0.5.12-pycnjaeg.mjs +0 -16
- package/dist/chunks/cli-0.5.12-pzvv2jfe.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qafa6js8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qdhvs7zg.mjs +0 -5
- package/dist/chunks/cli-0.5.12-qew4mzgp.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qffnerrz.mjs +0 -2
- package/dist/chunks/cli-0.5.12-qt5dmgd4.mjs +0 -58
- package/dist/chunks/cli-0.5.12-qvbpbpwc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-r1nnkaek.mjs +0 -3
- package/dist/chunks/cli-0.5.12-r1p7bcf8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-r6bpk4tm.mjs +0 -50
- package/dist/chunks/cli-0.5.12-rb8we522.mjs +0 -2
- package/dist/chunks/cli-0.5.12-rc1p9wk6.mjs +0 -3
- package/dist/chunks/cli-0.5.12-rt0k97yj.mjs +0 -12
- package/dist/chunks/cli-0.5.12-rw2tcb8a.mjs +0 -21
- package/dist/chunks/cli-0.5.12-s0h788we.mjs +0 -2
- package/dist/chunks/cli-0.5.12-sb5ec9ms.mjs +0 -2
- package/dist/chunks/cli-0.5.12-sd5469b2.mjs +0 -3
- package/dist/chunks/cli-0.5.12-senanaj4.mjs +0 -15
- package/dist/chunks/cli-0.5.12-ssw8vd5p.mjs +0 -45
- package/dist/chunks/cli-0.5.12-tczcdzf3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-tfdwzg37.mjs +0 -4
- package/dist/chunks/cli-0.5.12-tnk4m7zs.mjs +0 -8
- package/dist/chunks/cli-0.5.12-tnq5ajv3.mjs +0 -2
- package/dist/chunks/cli-0.5.12-va0ce6hc.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vkgwh6kg.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vp5smcs1.mjs +0 -4
- package/dist/chunks/cli-0.5.12-vrbqnjp6.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vs30tjk8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vw8gp4d2.mjs +0 -2
- package/dist/chunks/cli-0.5.12-vwd5aqnh.mjs +0 -20
- package/dist/chunks/cli-0.5.12-w00qj83e.mjs +0 -133
- package/dist/chunks/cli-0.5.12-w02bmj5v.mjs +0 -2
- package/dist/chunks/cli-0.5.12-w3hy6c60.mjs +0 -2
- package/dist/chunks/cli-0.5.12-w7m7knvf.mjs +0 -4
- package/dist/chunks/cli-0.5.12-wgqarp3j.mjs +0 -2
- package/dist/chunks/cli-0.5.12-wgqshyyq.mjs +0 -2
- package/dist/chunks/cli-0.5.12-whfz3xsx.mjs +0 -2
- package/dist/chunks/cli-0.5.12-wqg58esg.mjs +0 -2
- package/dist/chunks/cli-0.5.12-wqn70xss.mjs +0 -2
- package/dist/chunks/cli-0.5.12-x3r8qtwj.mjs +0 -12
- package/dist/chunks/cli-0.5.12-x479axrj.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xdrtyw81.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xdx5bcxv.mjs +0 -5
- package/dist/chunks/cli-0.5.12-xg7a0dy4.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xhf4y2sm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xsyxpmwt.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xyf8b9hh.mjs +0 -4
- package/dist/chunks/cli-0.5.12-xysz4vte.mjs +0 -2
- package/dist/chunks/cli-0.5.12-xzeb7mtb.mjs +0 -2
- package/dist/chunks/cli-0.5.12-y2kq7fe8.mjs +0 -2
- package/dist/chunks/cli-0.5.12-y66stscm.mjs +0 -2
- package/dist/chunks/cli-0.5.12-yq8ds97a.mjs +0 -2
- package/dist/chunks/cli-0.5.12-ysy6e9rz.mjs +0 -2
- package/dist/chunks/cli-0.5.12-yxvbh81c.mjs +0 -2
- package/dist/chunks/cli-0.5.12-z100r543.mjs +0 -2
- package/dist/chunks/cli-0.5.12-z2yzdy27.mjs +0 -2
- package/dist/chunks/cli-0.5.12-z6vekb4d.mjs +0 -2
- package/dist/chunks/cli-0.5.12-zbcr8cbk.mjs +0 -2
- package/dist/chunks/cli-0.5.12-zc0qwdy2.mjs +0 -5268
- package/dist/chunks/cli-0.5.12-zd5fps7m.mjs +0 -3
- package/dist/chunks/cli-0.5.12-zf4k1ja2.mjs +0 -2
- package/dist/chunks/cli-0.5.12-zsjs6asf.mjs +0 -2
- package/dist/chunks/client-0.5.12-25cxceb6.mjs +0 -1
- package/dist/chunks/color-0.5.12-7ag99jgh.mjs +0 -1
- package/dist/chunks/compact-0.5.12-tkdapr9z.mjs +0 -3
- package/dist/chunks/config-0.5.12-0c9spewv.mjs +0 -1
- package/dist/chunks/config-0.5.12-vc9je2fj.mjs +0 -1
- package/dist/chunks/context-0.5.12-rznd55j3.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.12-fm064xkc.mjs +0 -1
- package/dist/chunks/conversation-0.5.12-rstja52a.mjs +0 -1
- package/dist/chunks/copy-0.5.12-wfyfcx1t.mjs +0 -9
- package/dist/chunks/cost-0.5.12-5t5ppkhd.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.12-n4gfgvy0.mjs +0 -1
- package/dist/chunks/createSession-0.5.12-vberyedq.mjs +0 -1
- package/dist/chunks/debug-0.5.12-6tk66dq2.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.5.12-cd6kj7vb.mjs +0 -1177
- package/dist/chunks/desktop-0.5.12-t4zetpqs.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.12-4rer36ef.mjs +0 -1
- package/dist/chunks/detection-0.5.12-kc620t5m.mjs +0 -1
- package/dist/chunks/diff-0.5.12-t1nwyr97.mjs +0 -1
- package/dist/chunks/doctor-0.5.12-6ehwnc02.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.12-715ngvgm.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.12-9c0k1b2s.mjs +0 -1
- package/dist/chunks/effort-0.5.12-tge1ba18.mjs +0 -10
- package/dist/chunks/envUtils-0.5.12-4210d9jh.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.12-fpz6s66f.mjs +0 -1
- package/dist/chunks/environments-0.5.12-yjkrj1h3.mjs +0 -1
- package/dist/chunks/errors-0.5.12-hx01gb7f.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.12-228rhbph.mjs +0 -1
- package/dist/chunks/exit-0.5.12-x0w90ajb.mjs +0 -1
- package/dist/chunks/export-0.5.12-cdv2fqe2.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.12-d0ypcf8h.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.12-1xmkn7xb.mjs +0 -1
- package/dist/chunks/fast-0.5.12-pm7p7cea.mjs +0 -1
- package/dist/chunks/feedback-0.5.12-k7w5ac6x.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.12-jbg4z87y.mjs +0 -1
- package/dist/chunks/git-0.5.12-rpqpwk1g.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.12-gc6bcfrs.mjs +0 -1
- package/dist/chunks/grove-0.5.12-g5c6bca9.mjs +0 -1
- package/dist/chunks/growthbook-0.5.12-d3dr2a5b.mjs +0 -1
- package/dist/chunks/headless-0.5.12-4en0ynj2.mjs +0 -2
- package/dist/chunks/heapdump-0.5.12-bwv2jy65.mjs +0 -6
- package/dist/chunks/help-0.5.12-m0n3bja4.mjs +0 -1
- package/dist/chunks/hookChains-0.5.12-ybpwc19k.mjs +0 -3
- package/dist/chunks/hooks-0.5.12-gd1zgq76.mjs +0 -1
- package/dist/chunks/hooks-0.5.12-kmtv873b.mjs +0 -79
- package/dist/chunks/ide-0.5.12-kh015qjb.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.12-gskzpn6n.mjs +0 -1
- package/dist/chunks/index-0.5.12-0qdxjc4v.mjs +0 -30
- package/dist/chunks/index-0.5.12-1ms14gcb.mjs +0 -1
- package/dist/chunks/index-0.5.12-23xwq3mj.mjs +0 -1
- package/dist/chunks/index-0.5.12-3k0mgkby.mjs +0 -5
- package/dist/chunks/index-0.5.12-3qxmsrhf.mjs +0 -1
- package/dist/chunks/index-0.5.12-5nwrep7m.mjs +0 -1
- package/dist/chunks/index-0.5.12-5zp8ghw8.mjs +0 -2
- package/dist/chunks/index-0.5.12-6t3ctwhj.mjs +0 -1
- package/dist/chunks/index-0.5.12-bb0dxhht.mjs +0 -1
- package/dist/chunks/index-0.5.12-cdvaqvrt.mjs +0 -1
- package/dist/chunks/index-0.5.12-e3g06gch.mjs +0 -2
- package/dist/chunks/index-0.5.12-g0waf7b4.mjs +0 -1
- package/dist/chunks/index-0.5.12-k2yx7rgg.mjs +0 -1
- package/dist/chunks/index-0.5.12-pqbbvhvf.mjs +0 -17
- package/dist/chunks/index-0.5.12-v34jg9ty.mjs +0 -1
- package/dist/chunks/index-0.5.12-vd2ps0yn.mjs +0 -1
- package/dist/chunks/index-0.5.12-vk2f44v8.mjs +0 -9
- package/dist/chunks/index-0.5.12-vqmfkmk5.mjs +0 -1
- package/dist/chunks/index-0.5.12-vxrpnsbd.mjs +0 -1
- package/dist/chunks/index-0.5.12-w00wq0mv.mjs +0 -1
- package/dist/chunks/index-0.5.12-wq1ac3z9.mjs +0 -1
- package/dist/chunks/index-0.5.12-z05jb67f.mjs +0 -9
- package/dist/chunks/init-0.5.12-dek8tx6c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.12-tzmcc68e.mjs +0 -1
- package/dist/chunks/ink-0.5.12-pa331vem.mjs +0 -1
- package/dist/chunks/insights-0.5.12-5vdjmpbj.mjs +0 -870
- package/dist/chunks/install-0.5.12-vegjn29b.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.12-x1q07njz.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.12-xdebh0fz.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.12-t5wdqnhp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.12-fs831eqt.mjs +0 -1
- package/dist/chunks/keybindings-0.5.12-c5ptskwf.mjs +0 -2
- package/dist/chunks/knowledge-0.5.12-vqnz3rhj.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.12-6ea56sj8.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.12-q3cab4jf.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.12-teg232ka.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.12-zqfepr29.mjs +0 -1
- package/dist/chunks/log-0.5.12-hb77k1c6.mjs +0 -1
- package/dist/chunks/main-0.5.12-a5ye3nrk.mjs +0 -1
- package/dist/chunks/managedEnv-0.5.12-9m0enspy.mjs +0 -1
- package/dist/chunks/mcp-0.5.12-0g4by910.mjs +0 -1
- package/dist/chunks/mcp-0.5.12-kmsa1db8.mjs +0 -17
- package/dist/chunks/mcp-0.5.12-tpprk6qh.mjs +0 -4
- package/dist/chunks/mcpb-0.5.12-40x6rp03.mjs +0 -1
- package/dist/chunks/memory-0.5.12-31smeswe.mjs +0 -3
- package/dist/chunks/mobile-0.5.12-trtv6cx8.mjs +0 -2
- package/dist/chunks/model-0.5.12-dwyagyf8.mjs +0 -2
- package/dist/chunks/model-0.5.12-ncsht9ca.mjs +0 -1
- package/dist/chunks/node-0.5.12-n3y2efbq.mjs +0 -12
- package/dist/chunks/oauth-0.5.12-vz32m3f2.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.12-5vwewpct.mjs +0 -14
- package/dist/chunks/output-style-0.5.12-j7kzxe0j.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.5.12-pcrvwm89.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.12-k9xxsfd1.mjs +0 -1
- package/dist/chunks/parser-0.5.12-dztg8ppe.mjs +0 -1
- package/dist/chunks/passes-0.5.12-5z8tw34t.mjs +0 -1
- package/dist/chunks/permissions-0.5.12-rww5yb80.mjs +0 -3
- package/dist/chunks/plan-0.5.12-69ntjye7.mjs +0 -1
- package/dist/chunks/plist-0.5.12-3ab3ry0j.mjs +0 -1
- package/dist/chunks/plugin-0.5.12-k1c1ggj8.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.12-4nzjv877.mjs +0 -1
- package/dist/chunks/plugins-0.5.12-gjxv18dm.mjs +0 -9
- package/dist/chunks/preActionHook-0.5.12-z0z4xe2p.mjs +0 -2
- package/dist/chunks/print-0.5.12-9y9vvttb.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.12-w3hpvv24.mjs +0 -1
- package/dist/chunks/process-0.5.12-esywnb4j.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.12-24r2r258.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.12-pt79vh2t.mjs +0 -9
- package/dist/chunks/prompt-0.5.12-hc11zacw.mjs +0 -1
- package/dist/chunks/prompt-0.5.12-txnbkzk6.mjs +0 -1
- package/dist/chunks/prompts-0.5.12-r29ww1bz.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.12-sg2pjg74.mjs +0 -13
- package/dist/chunks/provider-0.5.12-kdvewq5e.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.12-z3pct3be.mjs +0 -1
- package/dist/chunks/providerValidation-0.5.12-637xxs9q.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.5.12-e7czq7ff.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.5.12-5jq9w7c4.mjs +0 -34
- package/dist/chunks/registry-0.5.12-dcz74t85.mjs +0 -1
- package/dist/chunks/release-notes-0.5.12-acaycqgr.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.12-07m62xd2.mjs +0 -2
- package/dist/chunks/remote-env-0.5.12-8ffhqnh9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.12-qes76y4j.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.12-wqh0sh5p.mjs +0 -1
- package/dist/chunks/rename-0.5.12-pefg421m.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.12-mrx144v7.mjs +0 -1
- package/dist/chunks/replLauncher-0.5.12-xyajjb89.mjs +0 -1
- package/dist/chunks/resume-0.5.12-yz9ysprz.mjs +0 -2
- package/dist/chunks/rewind-0.5.12-7n5x67g8.mjs +0 -1
- package/dist/chunks/rootOptions-0.5.12-mn1xh15m.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.12-g1r9b0p8.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.12-w1rx9eck.mjs +0 -1
- package/dist/chunks/session-0.5.12-t3cd84ep.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.12-905y94g7.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.12-9f5qb84p.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.12-b88eps8r.mjs +0 -1
- package/dist/chunks/settings-0.5.12-ascz750g.mjs +0 -1
- package/dist/chunks/setup-0.5.12-k4bb1v5t.mjs +0 -5
- package/dist/chunks/sinks-0.5.12-wra2rxct.mjs +0 -1
- package/dist/chunks/skills-0.5.12-tzetjssj.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.12-4mesbnz6.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.12-j9pvbhww.mjs +0 -1
- package/dist/chunks/state-0.5.12-fmbxq91j.mjs +0 -1
- package/dist/chunks/stats-0.5.12-6dftg0mb.mjs +0 -6
- package/dist/chunks/status-0.5.12-prhem3mn.mjs +0 -1
- package/dist/chunks/stickers-0.5.12-t4kmsdfn.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.12-bbjh5kcq.mjs +0 -1
- package/dist/chunks/tasks-0.5.12-5zkvc91z.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.12-4993s40p.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.12-003j14d2.mjs +0 -1
- package/dist/chunks/teleport-0.5.12-qc9n0e99.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.12-e0q1ppyp.mjs +0 -1
- package/dist/chunks/theme-0.5.12-j3m1w193.mjs +0 -1
- package/dist/chunks/thinkback-0.5.12-q0g2nxf8.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.12-q3xptm32.mjs +0 -1
- package/dist/chunks/toolPool-0.5.12-99zz2z7m.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.12-msyjmzw4.mjs +0 -1
- package/dist/chunks/tools-0.5.12-rfpyvm5z.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.12-x17za0q6.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.12-pe30j67r.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.12-3ns0qpr7.mjs +0 -4
- package/dist/chunks/update-0.5.12-4hgf7mr4.mjs +0 -86
- package/dist/chunks/upgrade-0.5.12-7gs6mxyh.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.12-1v1wp95x.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.12-2w5y94ch.mjs +0 -1
- package/dist/chunks/usage-0.5.12-e4h5kk04.mjs +0 -1
- package/dist/chunks/util-0.5.12-2p0n6pkd.mjs +0 -1
- package/dist/chunks/utils-0.5.12-6hw9zr7a.mjs +0 -1
- package/dist/chunks/vim-0.5.12-f95wabwk.mjs +0 -1
- package/dist/chunks/watcher-0.5.12-0qy95ccm.mjs +0 -1
- package/dist/chunks/wiki-0.5.12-1h2k88h1.mjs +0 -132
- package/dist/chunks/worktree-0.5.12-0svdfkzh.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.12-qxdddvwv.mjs +0 -1
- package/dist/chunks/wrapper-0.5.12-553s8689.mjs +0 -7
- /package/dist/chunks/{cli-0.5.12-9ghkvy4m.mjs → cli-0.5.13-07hv5jdz.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.12-r4t180q2.mjs → cli-0.5.13-c4q1pthh.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.12-paj8nhxk.mjs → cli-0.5.13-epw9z05w.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{S0 as H,T0 as _,U0 as Y,V0 as y}from"./cli-0.5.12-pycnjaeg.mjs";import{M6 as M,O6 as f}from"./cli-0.5.12-g4wb8mj2.mjs";import{Tfa as P,Xfa as p,fga as x,ifa as F,iga as S,kfa as b}from"./cli-0.5.12-p5ps8gf0.mjs";import{Gga as R,zga as V}from"./cli-0.5.12-tfdwzg37.mjs";import{Mga as U,Wga as g}from"./cli-0.5.12-60w1a0bs.mjs";import{Jka as D,Kka as W,rma as A}from"./cli-0.5.12-c8f4daey.mjs";import{aoa as L}from"./cli-0.5.12-xzeb7mtb.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 lR,s as mR,o as nR,u as oR,e as pR,qq as qR,Gq as rR,Jq as sR,Kq as tR,Qq as uR,h as vR,$q as wR,m as xR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hp as Eq,Ip as v,Iw as kJ,JD as KJ,Jp as zJ,Jw as _J,LD as vJ,Pp as XJ,Qt as Cq,Rp as GJ,Rt as wJ,Sl as oq,Tl as jJ,Tt as MJ,Up as cq,Vp as Vq,Yp as YJ,Zp as pq,cm as qJ,dm as hJ,em as JJ,fm as OJ,gm as QJ,hm as FJ}from"./cli-0.5.12-zc0qwdy2.mjs";import{uU as tq,vU as VJ}from"./cli-0.5.12-qew4mzgp.mjs";import{EV as ZJ,FV as gJ,vV as eq,wV as mJ}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as TJ,_V as CJ,rX as H,tX as Y}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as lq,BZ as X,CZ as K,DZ as rq}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as DJ}from"./cli-0.5.12-w3hy6c60.mjs";import{C1 as sq,G2 as UJ,H1 as NJ,K3 as HJ,L2 as rJ,d4 as uJ,e2 as mq,g2 as S,n1 as jq,o1 as fq,p2 as g,q1 as yq,s2 as Dq,w2 as yJ}from"./cli-0.5.12-pycnjaeg.mjs";import{E9 as _q,F9 as vq,G9 as Rq,H$ as aq,H9 as Sq,I9 as xq,J$ as iq,S9 as RJ,W$ as LJ}from"./cli-0.5.12-g4wb8mj2.mjs";import{dfa as $q,ffa as bJ}from"./cli-0.5.12-2jxq8gnm.mjs";import{Yna as dq,aoa as bq}from"./cli-0.5.12-xzeb7mtb.mjs";function iJ(J,q){if(!v(q))return;let Z=cq(q,J);return`${Lq(Z)} ${Z} · /effort`}function Lq(J){if(Eq(J))return xq;switch(J){case"low":return _q;case"medium":return vq;case"high":return Rq;case"max":return Sq;default:return Rq}}var nq=bq(()=>{RJ();pq()});function BQ(J){let q=hq.c(82),{initial:Z,sessionModel:z,onSelect:G,onCancel:w,isStandaloneCommand:W,showFastModeNotice:Yq,headerText:WJ,skipSettingsWrite:wq}=J,kq=wJ(),E=tq(),B=Z===null?x:Z,[A,BJ]=Gq.useState(B),AJ=Cq(cJ),[P,IJ]=Gq.useState(!1),R=Cq(EJ),c;if(q[0]!==R)c=R!==void 0?Vq(R):void 0,q[0]=R,q[1]=c;else c=q[1];let[b,Oq]=Gq.useState(c),Kq=AJ??!1,p;if(q[2]!==Kq)p=kJ(Kq),q[2]=Kq,q[3]=p;else p=q[3];let M=p,Uq;q:{if(Z!==null&&!M.some((Q)=>{if(Q.value===Z)return!0;if(Q.value===null)return!1;try{return S(g(String(Q.value)))===S(g(Z))}catch{return!1}})){let Q;if(q[4]!==Z)Q=Dq(Z),q[4]=Z,q[5]=Q;else Q=q[5];let k;if(q[6]!==Z||q[7]!==Q)k={value:Z,label:Q,description:"Current model"},q[6]=Z,q[7]=Q,q[8]=k;else k=q[8];let L;if(q[9]!==M||q[10]!==k)L=[...M,k],q[9]=M,q[10]=k,q[11]=L;else L=q[11];Uq=L;break q}Uq=M}let Hq=Uq,n;if(q[12]!==Hq)n=Hq.map(xJ),q[12]=Hq,q[13]=n;else n=q[13];let U=n,r;if(q[14]!==B||q[15]!==U)r=U.find((Q)=>{if(Q.value===B)return!0;if(B===x||Q.value===null)return!1;try{return S(g(String(Q.value)))===S(g(String(B)))}catch{return!1}})?.value??U[0]?.value??void 0,q[14]=B,q[15]=U,q[16]=r;else r=q[16];let Wq=r,u=Math.min(10,U.length),d=Math.max(0,U.length-u),$;if(q[17]!==A||q[18]!==U)$=U.find((Q)=>Q.value===A)?.label,q[17]=A,q[18]=U,q[19]=$;else $=q[19];let a=$,I,i;if(q[20]!==A){let Q=Tq(A);I=Q?v(Q):!1,i=Q?zJ(Q):!1,q[20]=A,q[21]=I,q[22]=i}else I=q[21],i=q[22];let f=i,s;if(q[23]!==A)s=Nq(A),q[23]=A,q[24]=s;else s=q[24];let N=s,_=b==="max"&&!f?"high":b,l;if(q[25]!==R||q[26]!==P)l=(Q)=>{if(BJ(Q),!P&&R===void 0)Oq(Nq(Q))},q[25]=R,q[26]=P,q[27]=l;else l=q[27];let Bq=l,o;if(q[28]!==N||q[29]!==I||q[30]!==f)o=(Q)=>{if(!I)return;Oq((k)=>pJ(k??N,Q,f)),IJ(!0)},q[28]=N,q[29]=I,q[30]=f,q[31]=o;else o=q[31];let e=o,t;if(q[32]!==e)t={"modelPicker:decreaseEffort":()=>e("left"),"modelPicker:increaseEffort":()=>e("right")},q[32]=e,q[33]=t;else t=q[33];let qq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))qq={context:"ModelPicker"},q[34]=qq;else qq=q[34];eq(t,qq);let Jq;if(q[35]!==b||q[36]!==P||q[37]!==G||q[38]!==kq||q[39]!==wq)Jq=function(k){if($q("tengu_model_command_menu_effort",{effort:b}),!wq){let gq=GJ(b,Nq(k),aq("userSettings")?.effortLevel,P),Mq=XJ(gq);if(Mq!==void 0)iq("userSettings",{effortLevel:Mq});kq((PJ)=>({...PJ,effortValue:gq}))}let L=Tq(k),Fq=P&&L&&v(L)?b:void 0;if(k===x){G(null,Fq);return}G(k,Fq)},q[35]=b,q[36]=P,q[37]=G,q[38]=kq,q[39]=wq,q[40]=Jq;else Jq=q[40];let Aq=Jq,Qq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Qq=X(Y,{color:"remember",bold:!0,children:"Select model"}),q[41]=Qq;else Qq=q[41];let Iq=WJ??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",y;if(q[42]!==Iq)y=X(Y,{dimColor:!0,children:Iq}),q[42]=Iq,q[43]=y;else y=q[43];let D;if(q[44]!==z)D=z&&K(Y,{dimColor:!0,children:["Currently using ",Dq(z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=z,q[45]=D;else D=q[45];let C;if(q[46]!==y||q[47]!==D)C=K(H,{marginBottom:1,flexDirection:"column",children:[Qq,y,D]}),q[46]=y,q[47]=D,q[48]=C;else C=q[48];let Pq=w??SJ,T;if(q[49]!==Bq||q[50]!==Aq||q[51]!==Wq||q[52]!==B||q[53]!==U||q[54]!==Pq||q[55]!==u)T=X(H,{flexDirection:"column",children:X(KJ,{defaultValue:B,defaultFocusValue:Wq,options:U,onChange:Aq,onFocus:Bq,onCancel:Pq,visibleOptionCount:u})}),q[49]=Bq,q[50]=Aq,q[51]=Wq,q[52]=B,q[53]=U,q[54]=Pq,q[55]=u,q[56]=T;else T=q[56];let j;if(q[57]!==d)j=d>0&&X(H,{paddingLeft:3,children:K(Y,{dimColor:!0,children:["and ",d," more…"]})}),q[57]=d,q[58]=j;else j=q[58];let m;if(q[59]!==T||q[60]!==j)m=K(H,{flexDirection:"column",marginBottom:1,children:[T,j]}),q[59]=T,q[60]=j,q[61]=m;else m=q[61];let V;if(q[62]!==_||q[63]!==N||q[64]!==a||q[65]!==I)V=X(H,{marginBottom:1,flexDirection:"column",children:I?K(Y,{dimColor:!0,children:[X(uq,{effort:_})," ",oq(_)," effort",_===N?" (default)":""," ",X(Y,{color:"subtle",children:"← → to adjust"})]}):K(Y,{color:"subtle",children:[X(uq,{effort:void 0})," Effort not supported",a?` for ${a}`:""]})}),q[62]=_,q[63]=N,q[64]=a,q[65]=I,q[66]=V;else V=q[66];let h;if(q[67]!==Yq)h=jq()?Yq?X(H,{marginBottom:1,children:K(Y,{dimColor:!0,children:["Fast mode is ",X(Y,{bold:!0,children:"ON"})," and available with"," ",yq," only (/fast). Switching to other models turn off fast mode."]})}):fq()&&!sq()?X(H,{marginBottom:1,children:K(Y,{dimColor:!0,children:["Use ",X(Y,{bold:!0,children:"/fast"})," to turn on Fast mode (",yq," only)."]})}):null:null,q[67]=Yq,q[68]=h;else h=q[68];let O;if(q[69]!==C||q[70]!==m||q[71]!==V||q[72]!==h)O=K(H,{flexDirection:"column",children:[C,m,V,h]}),q[69]=C,q[70]=m,q[71]=V,q[72]=h,q[73]=O;else O=q[73];let F;if(q[74]!==E||q[75]!==W)F=W&&X(Y,{dimColor:!0,italic:!0,children:E.pending?K(lq,{children:["Press ",E.keyName," again to exit"]}):K(QJ,{children:[X(qJ,{shortcut:"Enter",action:"confirm"}),X(JJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=E,q[75]=W,q[76]=F;else F=q[76];let Zq;if(q[77]!==O||q[78]!==F)Zq=K(H,{flexDirection:"column",children:[O,F]}),q[77]=O,q[78]=F,q[79]=Zq;else Zq=q[79];let zq=Zq;if(!W)return zq;let Xq;if(q[80]!==zq)Xq=X(ZJ,{color:"permission",children:zq}),q[80]=zq,q[81]=Xq;else Xq=q[81];return Xq}function SJ(){}function xJ(J){return{...J,value:J.value===null?x:J.value}}function EJ(J){return J.effortValue}function cJ(J){return jq()?J.fastMode:!1}function Tq(J){if(!J)return;return J===x?mq():g(J)}function uq(J){let q=hq.c(5),{effort:Z}=J,z=Z?"claude":"subtle",G=Z??"low",w;if(q[0]!==G)w=Lq(G),q[0]=G,q[1]=w;else w=q[1];let W;if(q[2]!==z||q[3]!==w)W=X(Y,{color:z,children:w}),q[2]=z,q[3]=w,q[4]=W;else W=q[4];return W}function pJ(J,q,Z){let z=Z?["low","medium","high","max"]:["low","medium","high"],G=z.indexOf(J),w=G!==-1?G:z.indexOf("high");if(q==="right")return z[(w+1)%z.length];else return z[(w-1+z.length)%z.length]}function Nq(J){let q=Tq(J)??mq(),Z=YJ(q);return Z!==void 0?Vq(Z):"high"}var hq,Gq,x="__NO_PREFERENCE__";var nJ=bq(()=>{jJ();VJ();bJ();NJ();TJ();mJ();MJ();pq();yJ();_J();LJ();OJ();vJ();FJ();hJ();gJ();nq();rq();hq=dq(CJ(),1),Gq=dq(DJ(),1)});function bQ(J,q,Z){if(!HJ())return!1;if(q)return!0;if(J===null||!UJ(J))return!1;let z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),G=z==="opus"||z.includes("opus-4-6")||z.includes("opus-4-7"),w=z==="sonnet"||z.includes("sonnet-4-6");if(G&&Z)return!1;return G||w}var dJ=bq(()=>{uJ();rJ()});
|
|
2
|
-
export{iJ as Qf,Lq as Rf,nq as Sf,BQ as Tf,nJ as Uf,bQ as Vf,dJ as Wf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mh as R,oh as y,ph as v}from"./cli-0.5.12-d158qgn4.mjs";import{YX as E,_V as c,tX as K}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as O,BZ as N,CZ as M,DZ as U}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as G}from"./cli-0.5.12-w3hy6c60.mjs";import{Maa as L,eba as b}from"./cli-0.5.12-g4wb8mj2.mjs";import{Uca as Z,eda as W}from"./cli-0.5.12-vp5smcs1.mjs";import{ffa as p}from"./cli-0.5.12-2jxq8gnm.mjs";import{Yna as F,aoa as j}from"./cli-0.5.12-xzeb7mtb.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
-
export{f as Mf,r as Nf,n as Of,l as Pf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Bz as P,Hz as b,Nz as j,Yu as T,cM as f,dM as L,nM as r,sA as K,sO as i,uA as I,vA as _,xA as p}from"./cli-0.5.12-zc0qwdy2.mjs";import{cT as A,dT as n}from"./cli-0.5.12-ghtxkxqx.mjs";import{dfa as E,ffa as C}from"./cli-0.5.12-2jxq8gnm.mjs";import{Tfa as M,Xfa as m,fga as Z,ifa as F,iga as u,kfa as S}from"./cli-0.5.12-p5ps8gf0.mjs";import{_la as v,rma as c,wia as Y,xia as k}from"./cli-0.5.12-c8f4daey.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
|
|
2
|
-
export{Zq as nb};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{v4 as F2,x4 as d4}from"./cli-0.5.12-8v5w8znc.mjs";import{A4 as GZ,z4 as h}from"./cli-0.5.12-ctqkj6ve.mjs";import{Bba as y1,Bca as D,D9 as k1,Daa as d,E6 as j0,Eba as R2,F6 as u5,Fba as RZ,H$ as _,J$ as Y2,Jaa as C,Jca as c0,M$ as e,Maa as L,N$ as y,P6 as Y5,S6 as xZ,S9 as E8,Saa as v1,W$ as W0,b$ as S1,d7 as X5,daa as b4,dca as p1,eba as Z0,f7 as jZ,faa as BZ,gaa as q1,gba as M1,haa as Y8,hba as S8,jca as C8,k$ as k8,mba as I1,mca as N,p9 as V1,pca as q0,q9 as Q8,t6 as x4,u6 as i,v6 as z2,w6 as K0,x6 as j4,y6 as I2,zba as u1}from"./cli-0.5.12-g4wb8mj2.mjs";import{aea as S0,cea as X4,mea as X1}from"./cli-0.5.12-hvtcdcev.mjs";import{$ea as c4,Wea as H5,Xea as O4,Yea as z0,_ea as m4,bfa as U,cfa as _0}from"./cli-0.5.12-k1crwtdc.mjs";import{dfa as x,ffa as Q2}from"./cli-0.5.12-2jxq8gnm.mjs";import{Lfa as Q5,Pfa as zZ,Tfa as v2,Xfa as r4,fga as z,hga as f0,iga as x0}from"./cli-0.5.12-p5ps8gf0.mjs";import{Bga as A5,Gga as h5,zga as p}from"./cli-0.5.12-tfdwzg37.mjs";import{Jga as J5,Mga as F,Oga as g,Qga as w2,Tga as U4,Wga as u}from"./cli-0.5.12-60w1a0bs.mjs";import{Lja as E1,Lka as I5,Mka as y5,Nka as T5,Oka as C5,Pja as Y4,Uja as b0,Vja as i0,_ka as J2,nka as f,rma as o,uka as Y1,wia as J0,xia as t5,xja as F1}from"./cli-0.5.12-c8f4daey.mjs";import{Qma as M,Rma as m0}from"./cli-0.5.12-0qasc0ef.mjs";import{Dna as r0,lna as b}from"./cli-0.5.12-495d826j.mjs";import{$na as g1,Zna as t8,aoa as R,boa as r}from"./cli-0.5.12-xzeb7mtb.mjs";function w5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:X,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,Y);X(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((X,V)=>{$.push({args:Y,resolve:X,reject:V,context:this}),Q()})}}var F5=()=>{};function D5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=w2(),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 F2(),...J&&{requestHandler:new(await import("./index-0.5.12-k2yx7rgg.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.12-vqmfkmk5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function W$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=w2(),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 F2(),...J&&{requestHandler:new(await import("./index-0.5.12-k2yx7rgg.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.5.12-vqmfkmk5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function n4(Z){return Z.startsWith("anthropic.")}function i4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function l4(Z){let $=i4(Z);for(let J of t4)if($.startsWith(`${J}.anthropic.`))return J;return}function G$(Z,$){let J=l4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(n4(Z))return`${$}.${Z}`;return Z}var L5,z$,t4;var N5=R(()=>{m0();n();u();c0();d4();L5=M(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await Z.send(Y);if(X.inferenceProfileSummaries)J.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw D(Y),Y}});z$=M(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let V=X.modelArn.lastIndexOf("/");return V>=0?X.modelArn.substring(V+1):X.modelArn}catch($){return D($),null}});t4=["us","eu","apac","global"]});var L2,D2,K2,N2,U2,O2,b2,P2,_2,d0,n0,t0,E2,V0,j$,U5;var k2=R(()=>{L2={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"},D2={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"},K2={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"},N2={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"},U2={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"},O2={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"},b2={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"},P2={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"},_2={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"},d0={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"},n0={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"},t0={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"},E2={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"},V0={haiku35:K2,haiku45:N2,sonnet35:D2,sonnet37:L2,sonnet40:U2,sonnet45:O2,sonnet46:E2,opus40:b2,opus41:P2,opus45:_2,opus46:d0,opus47:n0,opus48:t0},j$=Object.values(V0).map((Z)=>Z.firstParty),U5=Object.fromEntries(Object.entries(V0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=N();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 H$(){return q()==="firstParty"}function w$(Z){let $=N();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function F$(){return q()}function L$(){let Z=N();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 t=R(()=>{q0()});function l0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of b5)J[Q]=V0[Q][$];return J}async function s4(){let Z=l0("bedrock"),$;try{$=await L5()}catch(Q){return D(Q),Z}if(!$?.length)return Z;let J={};for(let Q of b5){let Y=V0[Q].firstParty;J[Q]=D5($,Y)||Z[Q]}return J}function O5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let X=U5[Q];if(X&&Y)J[X]=Y}return J}function s0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function a4(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}P5()}function j(){let Z=b0();if(Z===null)return a4(),O5(l0(q()));return O5(Z)}async function E$(){if(b0()!==null)return;if(q()!=="bedrock"){i0(l0(q()));return}await P5()}var b5,P5;var a0=R(()=>{o();c0();F5();W0();N5();k2();t();b5=Object.keys(V0);P5=w5(async()=>{if(b0()!==null)return;try{let Z=await s4();i0(Z)}catch(Z){D(Z)}})});function I$(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(O())return!1;let $=P0(),J=$0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),Y=Q.oauthAccount?.organizationRole,X=Q.oauthAccount?.workspaceRole;if(!Y||!X)return!1;return["admin","billing"].includes(Y)||["workspace_admin","workspace_billing"].includes(X)}function y$(){if(_5!==null)return _5;if(!O())return!1;let Z=S();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var _5=null;var E5=R(()=>{n();Z0();u()});function h$(Z){return Z}function f$(){return!1}function k5(){return null}function S5(){return!1}var v5=R(()=>{E5()});async function n$(){let $=L().oauthAccount?.accountUuid,J=$0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await b.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){D(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await b.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){D(J)}}var S2=R(()=>{r0();_0();n();Z0();c0()});import{mkdirSync as o4,writeFileSync as e4}from"fs";function J8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{o4(o0,{recursive:!0,mode:448}),e4(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 M5(Z,$){try{let Q=v2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!A5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function f5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let V=process.env[Z];if(!V){let G=M5($,J);return Y(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),Y(null),null;try{let G=v2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,H=G.readFileSync(B,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),Y(H),J8($,H,J),H}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=M5($,J);return Y(B),B}}function e0(){return f5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:Z8,label:"OAuth token",getCached:I5,setCached:y5})}function M2(){return f5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:$8,label:"API key",getCached:T5,setCached:C5})}var o0="/home/claude/.claude/remote",Z8,$8,e$;var g5=R(()=>{o();x0();u();h5();r4();Z8=`${o0}/.oauth_token`,$8=`${o0}/.api_key`,e$=`${o0}/.session_ingress_token`});async function p5(){if(process.platform==="darwin"){let Z=i();if((await j0(`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 m5=R(()=>{u5();I2()});function XJ(Z){return Z?.name==="CredentialsProviderError"}function c5(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 y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function d5(){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 n5=R(()=>{x0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=J0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(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(T.instance)T.instance.changed.clear(),T.instance=null}}var i5=R(()=>{t5()});var $2="claude-code-20250219",l5="interleaved-thinking-2025-05-14",E0="context-1m-2025-08-07",s5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",r5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",zJ="effort-2025-11-24",GJ="task-budgets-2026-03-13",e5="prompt-caching-scope-2026-01-05",xJ="extended-cache-ttl-2025-04-11",jJ="fast-mode-2026-02-01",Z1="redact-thinking-2026-02-12",$1="thinking-token-count-2026-05-13",J1="token-efficient-tools-2026-03-28",BJ="afk-mode-2026-01-31",RJ="advisor-tool-2026-03-01",C2,HJ;var A2=R(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),HJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function W1(){if(!A())return!1;return V8()===null}function X8(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 V8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!V1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&J2()&&!Y1()){if(!_("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(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=X8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function yJ(){return"opus"+(M0()?"[1m]":"")}function TJ(Z){if(!A())return!1;if(!W1())return!1;if(!z1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function z1(Z){if(!A())return!1;let $=Z??v0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function q8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!h2)z("Fast mode cooldown expired, re-enabling fast mode"),h2=!0,x1.emit();B0={status:"active"}}return B0}function hJ(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},h2=!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:$}),G1.emit(Z,$)}function fJ(){B0={status:"active"}}function gJ(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Y2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),f2.emit(!1)}function W8(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 z8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function pJ(Z){let $=W8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!z8(Z))Y2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));j1.emit($)}function G8(){return q8().status==="cooldown"}function mJ(Z,$){let J=A()&&W1()&&!!$&&z1(Z);if(J&&G8())return"cooldown";if(J)return"on";return"off"}async function x8(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await b.get($,{headers:J})).data}function dJ(){if(!A())return;if(k.status!=="pending")return;k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function nJ(){if(q1())return;if(!A())return;if(k0)return z("Fast mode prefetch in progress, returning in-flight promise"),k0;let Z=$0();if(!(w()?.accessToken&&Q0())&&!Z){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-Q1<j8){z("Skipping fast mode prefetch, fetched recently");return}Q1=J;let Q=async()=>{let X=w(),V=X?.accessToken&&Q0()?{accessToken:X.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return x8(V)};async function Y(){try{let X;try{X=await Q()}catch(W){if(b.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await g2(B),X=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":L().penguinModeOrgEnabled;if(k=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},V!==X.enabled){if(!X.enabled)Y2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:X.enabled})),f2.emit(X.enabled)}z(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{k0=null}}return k0=Y(),k0}var IJ="Opus 4.7",B0,h2=!1,G1,x1,CJ,AJ,j1,uJ,k,f2,cJ,j8=30000,Q1=0,k0=null;var B1=R(()=>{r0();_0();X1();o();Q2();n();Q8();Z0();x0();u();R0();t();Y8();W0();t5();B0={status:"active"},G1=J0(),x1=J0(),CJ=G1.subscribe,AJ=x1.subscribe;j1=J0(),uJ=j1.subscribe;k={status:"pending"},f2=J0(),cJ=f2.subscribe});function L8(Z){for(let $ of F8)if($.pattern.test(Z))return $.cost;return}function u2(Z){if(A()&&Z)return B8;return H0}function D8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=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+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function K8(Z,$){let J=P(Z);if(J===K(d0.firstParty)||J===K(n0.firstParty)||J===K(t0.firstParty)){let Y=$.speed==="fast";return u2(Y)}let Q=H1[J];if(!Q){let Y=L8(Z);if(Y)return Y;return N8(Z,J),H1[P(v0())]??w8}return Q}function N8(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),F1()}function U8(Z,$){let J=K8(Z,$);return D8(J,$)}function oJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return U8(Z,J)}function w1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function L1(Z){return`${w1(Z.inputTokens)}/${w1(Z.outputTokens)} per Mtok`}var I0,R1,H0,B8,R8,H8,w8,F8,H1;var D1=R(()=>{Q2();o();B1();k2();R0();I0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},R1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},H0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},B8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},R8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},H8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},w8=H0,F8=[{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}}];H1={[K(K2.firstParty)]:R8,[K(N2.firstParty)]:H8,[K(D2.firstParty)]:I0,[K(L2.firstParty)]:I0,[K(U2.firstParty)]:I0,[K(O2.firstParty)]:I0,[K(E2.firstParty)]:I0,[K(b2.firstParty)]:R1,[K(P2.firstParty)]:R1,[K(_2.firstParty)]:H0,[K(d0.firstParty)]:H0,[K(n0.firstParty)]:H0,[K(t0.firstParty)]:H0}});function m(Z){return O8.includes(Z)}function w0(Z){return b8.includes(Z)}var O8,b8;var p2=R(()=>{O8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];b8=["sonnet","opus","haiku"]});function P8(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function K1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function _8(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(K1(J,$))return!0;if(!$.startsWith("claude-")&&K1(J,`claude-${$}`))return!0;return!1}function N1(Z,$){for(let J of $){if(w0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function U1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=s0(Z).trim().toLowerCase(),X=J.map((V)=>V.trim().toLowerCase());if(X.includes(Y)){if(!w0(Y)||!N1(Y,X))return!0}for(let V of X)if(w0(V)&&!N1(V,X)&&P8(Y,V))return!0;if(m(Y)){let V=I(Y).toLowerCase();if(X.includes(V))return!0}for(let V of X)if(!w0(V)&&m(V)){if(I(V).toLowerCase()===Y)return!0}for(let V of X)if(!w0(V)&&!m(V)){if(_8(Y,V))return!0}return!1}var O1=R(()=>{W0();p2();R0();a0()});function V3(){return Object.values(b1)}var b1,m2;var P1=R(()=>{b1={"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}}},m2=Object.fromEntries(Object.values(b1).map((Z)=>[Z.id,Z.name]))});function X2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=N();if(!Z?.model)return;return M1(Z.model)}function P3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return T1()}function _3(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function c2(){let Z,$=E1();if($!==void 0)Z=$;else{let J=y()||{},Q=X2(J.model),Y=L0();if(I1()!==void 0)Z=X2(v1().activeModelForProject)||void 0;else Z=Y||Q||void 0}if(Z&&!U1(Z))return;return Z}function E3(){let Z=c2();if(Z!==void 0&&Z!==null)return I(Z);return C1()}function v8(){return F0()}function F0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return j().opus46;return j().opus48}function y0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return j().sonnet45;return j().sonnet46}function T1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function k3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(c2()==="opusplan"&&$==="plan"&&!Q)return F0();if(c2()==="haiku"&&$==="plan")return y0();return J}function v0(){let Z=L0();if(q()==="github"){let $=y()||{};return X2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(V2())return F0()+(M0()?"[1m]":"");if(q2())return F0()+(M0()?"[1m]":"");return y0()}function C1(){return I(v0())}function K(Z){if(Z=Z.toLowerCase(),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-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 P(Z){return K(s0(Z))}function M8(Z=!1){if(V2()||q2()){if(M0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?_1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?_1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function S3(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 4.6";return h1(I(Z))}function _1(Z){if(q()!=="firstParty")return"";let $=L1(u2(Z));return` ·${Z?` (${k1})`:""} ${$}`}function M0(){if(D0()||t2()||q()!=="firstParty")return!1;if(O()&&S()===null)return!1;return!0}function v3(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 S1(Z);return h1(Z)}function A1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(m2[Z])return m2[Z];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().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().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 h1(Z){let $=A1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function M3(Z){let $=A1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=X2(Z);if(!$)return y0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(Y))switch(Y){case"opusplan":return y0()+(Q?"[1m]":"");case"sonnet":return y0()+(Q?"[1m]":"");case"haiku":return T1()+(Q?"[1m]":"");case"opus":return F0()+(Q?"[1m]":"");case"best":return v8();default:}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&y8(Y)&&T8())return F0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function I3(Z,$){if(l(Z)||!l($))return Z;if(d2(I(Z)))return Z+"[1m]";return Z}function y8(Z){return I8.includes(Z)}function T8(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function y3(Z){if(Z===null){if(O())return`Default (${M8()})`;return`Default (${C1()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function T3(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);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-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 C3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function A3(Z){let $=P(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")}var I8;var R0=R(()=>{o();q0();Z0();y1();n();n2();u();S8();a0();D1();W0();t();E8();O1();p2();k8();P1();I8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function i2(Z){return}async function f3(){}var f1=()=>{};var t1={};g1(t1,{prefetchOpenAICompatibleModels:()=>n8,getDiscoveredContextWindow:()=>A8,discoverOpenAICompatibleModelOptions:()=>n1});function A8(Z){return c1.get(Z)}function h8(){return(N()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function d1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function f8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function g8(Z){let $=N()?.apiKey?.trim();if(!$)return{};if(f8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(d1(Z))J["api-key"]=$;return J}function u8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&d1(Z)?(X)=>{try{let V=new URL(X);return V.searchParams.set("api-version",Q),V.toString()}catch{return X}}:(X)=>X;if($===J)return[Y($)];return[Y($),Y(J)]}function p8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function m8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function c8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await b.get(Q,{headers:$,timeout:m1}),X=[];for(let V of Y.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,B=V.context_length??null;if(B&&B>0)c1.set(W,B);let H=B?` · ${m8(B)}`:"";X.push({value:W,label:G,description:`${W}${H}`})}if(X.length>0)return X.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",H=G.localeCompare(B);return H!==0?H:String(V.value).localeCompare(String(W.value))}),X}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function d8(Z,$){try{let J=await b.get(Z,{headers:$,timeout:m1}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function n1(){if(q()!=="openai")return[];let Z=h8(),$=g8(Z),J=await c8(u8(Z),$);if(J.length>0)return J;let Q=p8(Z);if(Q)return d8(Q,$);return[]}function n8(){if(T0)return T0;return T0=(async()=>{if(!p1()?.startsWith("openai:"))return;try{let $=await n1();if($.length>0)u1($)}catch{}finally{T0=null}})(),T0}var m1=5000,c1,T0=null;var i1=R(()=>{r0();q0();C8();x0();t();y1();c1=new Map});function s1(Z,$,J){let Q=N()?.model?.trim();if(Q&&Q!==J){let X=`${Q}:${J}`;if($[X]!==void 0)return $[X];if(Z[X]!==void 0)return Z[X]}let Y=l1($,J);if(Y!==void 0)return Y;return l1(Z,J)}function l1(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function a1(Z){let $=s1(i8,s8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(i1(),t8(t1));return J(Z)}catch{return}}function r1(Z){return s1(l8,a8,Z)}var i8,l8,s8,a8;var o1=R(()=>{q0();i8={"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},l8={"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},s8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),a8=(()=>{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 e1(){let Z=N()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function D0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(D0())return!1;return/\[1m\]/i.test(Z)}function d2(Z){if(D0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")}function YQ(Z,$){if(l(Z))return 1e6;if(e1()){let Q=a1(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."),r8}let J=i2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>l2&&D0())return l2;return J.max_input_tokens}if($?.includes(E0)&&d2(Z))return 1e6;if(ZZ(Z))return 1e6;return l2}function ZZ(Z){if(D0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function XQ(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),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function VQ(Z){let $,J;if(e1()){let X=r1(Z);if(X!==void 0)return{default:X,upperLimit:X}}let Q=P(Z);if(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 $=o8,J=e8;let Y=i2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var l2=200000,r8,$Q=20000,o8=32000,e8=64000,JQ=8000,QQ=64000;var n2=R(()=>{A2();q0();Z0();u();R0();f1();o1();r8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var $Z,Z4;var $4=R(()=>{m0();t();$Z=[{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"}],Z4=M((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of $Z){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(J!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function JZ(Z){let $=[],J=[];for(let Q of Z)if(V4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function bQ(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}=JZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${V4.join(", ")}`);return $.length>0?$:void 0}function J4(Z){let $=Z4(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function QZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function YZ(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function XZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.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 PQ(Z){let $=P(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 _Q(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return r5}function Q4(){return(q()==="firstParty"||q()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function EQ(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return q()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function kQ(Z,$){let J=[...q4(Z)];if($?.isAgenticQuery){if(!J.includes($2))J.push($2)}let Q=Y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function W4(){s2.cache?.clear?.(),q4.cache?.clear?.(),VZ.cache?.clear?.()}var V4,s2,q4,VZ;var z4=R(()=>{m0();X1();o();A2();_0();n();n2();u();R0();$4();t();W0();V4=[E0];s2=M((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),Y=Q4();if(!J)$.push($2);if(O())$.push(z0);if(l(Z))$.push(E0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&J4(Z))$.push(l5);if(Y&&J4(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(Z1),$.push($1);let X=YZ(Z);if(Q4()&&X)$.push(s5);let V=X4("tengu_tool_pear"),W=!V&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&XZ(Z)&&V)$.push(a5);if(Y&&W)$.push(J1);if(Q==="vertex"&&QZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(Y)$.push(e5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),q4=M((Z)=>{let $=s2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),VZ=M((Z)=>{return s2(Z).filter((J)=>C2.has(J))})});import{execFile as qZ}from"child_process";function G4(Z){return new Promise(($)=>{qZ("security",["find-generic-password","-a",z2(),"-w","-s",Z],{encoding:"utf-8",timeout:WZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function yQ(){if(process.platform!=="darwin"||W2||g())return;let Z=G4(i(x4)),$=G4(i());W2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)j4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function TQ(){if(W2)await W2}function B4(){return a2}function r2(){a2=null}var WZ=1e4,a2=null,W2=null;var R4=R(()=>{u();I2()});function o2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let X=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,V,Q);function V(){if(clearTimeout(X),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)X.unref()})}var H4=()=>{};function hQ(){return w4}function F4(){w4.clear()}var w4;var L4=R(()=>{w4=new Map});var oZ={};g1(oZ,{validateForceLoginOrg:()=>rZ,saveOAuthTokensIfNeeded:()=>C4,saveApiKey:()=>B5,removeApiKey:()=>fZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>y4,refreshAwsAuth:()=>M4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>TZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>CZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>OZ,isUsing3PServices:()=>B2,isTeamSubscriber:()=>dZ,isTeamPremiumSubscriber:()=>q2,isProSubscriber:()=>t2,isOverageProvisioningAllowed:()=>mZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>g4,isMaxSubscriber:()=>V2,isGcpAuthRefreshFromProjectSettings:()=>x5,isEnterpriseSubscriber:()=>nZ,isCustomApiKeyApproved:()=>hZ,isConsumerSubscriber:()=>sZ,isClaudeAISubscriber:()=>O,isAwsCredentialExportFromProjectSettings:()=>z5,isAwsAuthRefreshFromProjectSettings:()=>q5,isAnthropicAuthEnabled:()=>O0,is1PApiCustomer:()=>pZ,hasProfileScope:()=>Q0,hasOpusAccess:()=>cZ,hasAnthropicApiKeyAuth:()=>DZ,handleOAuth401Error:()=>g2,getSubscriptionType:()=>S,getSubscriptionName:()=>h4,getRateLimitTier:()=>A4,getOtelHeadersFromHelper:()=>iZ,getOauthAccountInfo:()=>j2,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>P0,getApiKeyHelperElapsedMs:()=>KZ,getApiKeyFromConfigOrMacOSKeychain:()=>H2,getApiKeyFromApiKeyHelperCached:()=>Z5,getApiKeyFromApiKeyHelper:()=>v4,getAnthropicApiKeyWithSource:()=>g0,getAnthropicApiKey:()=>$0,getAccountInformation:()=>aZ,clearOAuthTokenCache:()=>R5,clearGcpCredentialsCache:()=>yZ,clearAwsCredentialsCache:()=>kZ,clearApiKeyHelperCache:()=>UZ,checkGcpCredentialsValid:()=>I4,checkAndRefreshOAuthTokenIfNeeded:()=>u0,calculateApiKeyHelperTTL:()=>S4});import{exec as E4}from"child_process";import{mkdir as HZ,stat as wZ}from"fs/promises";import{join as FZ}from"path";function x2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function O0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=B2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=g0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!x2()||X&&!x2())}function P0(){if(g()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!x2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(e0()){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(s()&&!x2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(U0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function $0(){let{key:Z}=g0();return Z}function DZ(){try{let{key:Z,source:$}=g0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function g0(Z={}){let $=(()=>{let V=N();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:Z5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=U4()?void 0:$;if(J2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let V=M2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!B2()&&!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&&!B2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(Z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=M2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:Z5(),source:"apiKeyHelper"}}let X=H2();if(X)return X;return{key:null,source:"none"}}function s(){if(g())return _("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function k4(){let Z=s();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function V5(){return(y()||{}).awsAuthRefresh}function q5(){let Z=V5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function W5(){return(y()||{}).awsCredentialExport}function z5(){let Z=W5();if(!Z)return!1;let $=_("projectSettings"),J=_("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 LZ}function KZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function v4(Z){if(!s())return null;let $=S4();if(v){if(Date.now()-v.timestamp<$)return v.value;if(!c)c={promise:D4(Z,!1,N0),startedAt:null};return v.value}if(c)return c.promise;return c={promise:D4(Z,!0,N0),startedAt:Date.now()},c.promise}async function D4(Z,$,J){try{let Q=await NZ(Z);if(J!==N0)return Q;if(Q!==null)v={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==N0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&v&&v.value!==" ")return v={...v,timestamp:Date.now()},v.value;return v={value:" ",timestamp:Date.now()}," "}finally{if(J===N0)c=null}}async function NZ(Z){let $=s();if(!$)return null;if(k4()){if(!d()&&!Z){let X=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",X),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await j0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,X=J.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function Z5(){return v?.value??null}function UZ(){N0++,v=null,c=null}function OZ(Z){if(k4()&&!d())return;v4(Z)}async function PZ(){let Z=V5();if(!Z)return!1;if(q5()){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 f0("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 y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return M4(Z)}}function M4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=E4(Z,{timeout:_Z});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="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(W),$.endAuthentication(!1),J(!1)}})})}async function EZ(){let Z=W5();if(!Z)return null;if(z5()){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 f0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await j0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=Q5($.stdout.trim());if(!c5(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 kZ(){X0.cache.clear()}function G5(){return(y()||{}).gcpAuthRefresh}function x5(){let Z=G5();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function I4(){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=o2(SZ).then(()=>{throw new u4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function MZ(){let Z=G5();if(!Z)return!1;if(x5()){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 f0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await I4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return y4(Z)}function y4(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=E4(Z,{timeout:IZ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.addOutput(X),z(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)$.setError(X),z(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=X==="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(W),$.endAuthentication(!1),J(!1)}})})}function yZ(){j5.cache.clear()}function TZ(){if(!G5())return;if(x5()){if(!d()&&!f())return}j5()}function CZ(){let Z=V5(),$=W5();if(!Z&&!$)return;if(q5()||z5()){if(!d()&&!f())return}X0(),j()}function AZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function B5(Z){if(!AZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await T4();let $=!1;if(process.platform==="darwin")try{let Q=i(),Y=z2(),X=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
|
|
2
|
-
`;await j0("security",["-i"],{input:V,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){D(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 Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),H2.cache.clear?.(),r2()}function hZ(Z){let $=L(),J=Z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function fZ(){await T4(),C((Z)=>({...Z,primaryApiKey:void 0})),H2.cache.clear?.(),r2()}async function T4(){try{await p5()}catch(Z){D(Z)}}function C4(Z){if(!U0(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 $=R2(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let X=$.update(Q);if(X.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),W4(),F4(),X}catch(Q){return D(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function R5(){w.cache?.clear?.(),K0()}async function gZ(){try{let{mtimeMs:Z}=await wZ(FZ(J5(),".credentials.json"));if(Z!==K4)K4=Z,R5()}catch{w.cache?.clear?.()}}function g2(Z){let $=e2.get(Z);if($)return $;let J=uZ(Z).finally(()=>{e2.delete(Z)});return e2.set(Z,J),J}async function uZ(Z){R5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return u0(0,!0)}async function h0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||e0())return w();try{let J=(await R2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return D(Z),null}}function u0(Z=0,$=!1){if(Z===0&&!$){if(C0)return C0;return C0=$5(Z,$).finally(()=>{C0=null}),C0}return $5(Z,$)}async function $5(Z,$){await gZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!U0(Q.scopes))return!1;w.cache?.clear?.(),K0();let Y=await h0();if(!Y?.refreshToken||!A0(Y.expiresAt))return!1;let X=J5();await HZ(X,{recursive:!0});let V;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),V=await b4(X),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),$5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return D(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await P4(W.refreshToken,{scopes:U0(W.scopes)?void 0:W.scopes});return C4(G),w.cache?.clear?.(),K0(),!0}catch(W){D(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await V(),x("tengu_oauth_token_refresh_lock_released",{})}}function O(){if(!O0())return!1;return U0(w()?.scopes)}function Q0(){return w()?.scopes?.includes(O4)??!1}function pZ(){{let Z=N()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(O())return!1;return!0}function j2(){return O0()?L().oauthAccount:void 0}function mZ(){let $=j2()?.billingType;if(!O()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function cZ(){let Z=S();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function S(){if(S5())return k5();if(!O0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function V2(){return S()==="max"}function dZ(){return S()==="team"}function q2(){return S()==="team"&&A4()==="default_claude_max_5x"}function nZ(){return S()==="enterprise"}function t2(){return S()==="pro"}function A4(){if(!O0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function h4(){switch(S()){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 B2(){let Z=N()?.transport;if(!Z)return!1;return Z!=="anthropic"}function f4(){return(y()||{}).otelHeadersHelper}function g4(){let Z=f4();if(!Z)return!1;let $=_("projectSettings"),J=_("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function iZ(){let Z=f4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||tZ.toString());if(G2&&Date.now()-N4<$)return G2;if(g4()){if(!d())return{}}try{let J=Y5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=Q5(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[Y,X]of Object.entries(Q))if(typeof X!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof X}`);return G2=Q,N4=Date.now(),G2}catch(J){throw D(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function lZ(Z){return Z==="max"||Z==="pro"}function sZ(){let Z=S();return O()&&Z!==null&&lZ(Z)}function aZ(){if(q()!=="firstParty")return;let{source:$}=P0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(O())J.subscription=h4();else J.tokenSource=$;let{key:Q,source:Y}=g0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let V=j2()?.organizationName;if(V)J.organization=V}let X=j2()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&X)J.email=X;return J}async function rZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!O0())return{valid:!0};let Z=_("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await u0();let $=w();if(!$)return{valid:!0};let{source:J}=P0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y)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 X=Y.organization.uuid;if(X===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: ${X}
|
|
11
|
-
|
|
12
|
-
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
|
|
13
|
-
but this machine requires organization ${Z}.
|
|
14
|
-
|
|
15
|
-
Please log in with the correct organization: claude auth login`}}var LZ=300000,v=null,c=null,N0=0,bZ=3600000,_Z=180000,X0,SZ=5000,vZ=3600000,IZ=180000,j5,H2,w,K4=0,e2,C0=null,G2=null,N4=0,tZ=1740000,u4;var n=R(()=>{GZ();u5();m0();_0();Q2();a0();t();o();q0();v5();_4();S2();g5();m5();n5();i5();z4();Z0();x0();u();h5();xZ();BZ();c0();jZ();RZ();R4();I2();W0();H4();zZ();L4();X0=X5(async()=>{let Z=await PZ(),$=await EZ();if(Z||$)await d5();return $},bZ);j5=X5(async()=>{return await MZ()},vZ);H2=M(()=>{if(g())return null;if(process.platform==="darwin"){let $=B4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Y5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){D(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=M(()=>{if(g())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=e0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=R2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return D($),null}});e2=new Map;u4=class u4 extends Error{}});function U0(Z){return Boolean(Z?.includes(H5))}function eZ(Z){return Z?.split(" ").filter(Boolean)??[]}function E7({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:V,loginHint:W,loginMethod:G}){let B=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(B);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let Y0=X?[H5]:c4;if(H.searchParams.append("scope",Y0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),V)H.searchParams.append("orgUUID",V);if(W)H.searchParams.append("login_hint",W);if(G)H.searchParams.append("login_method",G);return H.toString()}async function k7(Z,$,J,Q,Y=!1,X){let V={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(X!==void 0)V.expires_in=X;let W=await b.post(U().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function P4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:m4).join(" ")};try{let Q=await b.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:V=Z,expires_in:W}=Y,G=Date.now()+W*1000,B=eZ(Y.scope);x("tengu_oauth_token_refresh_success",{});let H=L(),Y0=w(),E=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await Z$(X);if(E&&H.oauthAccount){let a={};if(E.displayName!==void 0)a.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)a.billingType=E.billingType;if(E.accountCreatedAt!==void 0)a.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(a).length>0)C((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...a}:p0.oauthAccount}))}return{accessToken:X,refreshToken:V,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Y0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=b.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function S7(Z){let $=await b.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function v7(Z){try{let $=await b.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await B5(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 A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function Z$(Z){let $=await G0(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 Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...Y,rawProfile:$}}async function M7(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!Q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function I7(){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(!L().oauthAccount)p4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await u0();let Y=L();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!O()||!Q0())return!1;let X=w();if(X?.accessToken){let V=await G0(X.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return p4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function p4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:V,subscriptionCreatedAt:W};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 _4=R(()=>{r0();Q2();_0();n();Z0();x0();S2()});
|
|
16
|
-
export{yQ as _Z,TQ as $Z,R4 as a0,w5 as b0,F5 as c0,W$ as d0,z$ as e0,n4 as f0,l4 as g0,G$ as h0,N5 as i0,d0 as j0,n0 as k0,V0 as l0,k2 as m0,q as n0,H$ as o0,w$ as p0,F$ as q0,L$ as r0,t as s0,j as t0,E$ as u0,a0 as v0,I$ as w0,y$ as x0,E5 as y0,h$ as z0,f$ as A0,v5 as B0,n$ as C0,G0 as D0,S2 as E0,U0 as F0,eZ as G0,E7 as H0,k7 as I0,P4 as J0,S7 as K0,v7 as L0,A0 as M0,Z$ as N0,M7 as O0,I7 as P0,p4 as Q0,_4 as R0,e$ as S0,J8 as T0,M5 as U0,g5 as V0,Z2 as W0,m5 as X0,XJ as Y0,n5 as Z0,T as _0,i5 as $0,E0 as a1,s5 as b1,a5 as c1,zJ as d1,GJ as e1,e5 as f1,xJ as g1,jJ as h1,Z1 as i1,BJ as j1,RJ as k1,HJ as l1,A2 as m1,A as n1,W1 as o1,V8 as p1,IJ as q1,yJ as r1,TJ as s1,z1 as t1,CJ as u1,AJ as v1,q8 as w1,hJ as x1,fJ as y1,gJ as z1,uJ as A1,pJ as B1,G8 as C1,mJ as D1,cJ as E1,dJ as F1,nJ as G1,B1 as H1,I0 as I1,R8 as J1,H8 as K1,u2 as L1,U8 as M1,oJ as N1,L1 as O1,D1 as P1,O8 as Q1,p2 as R1,U1 as S1,O1 as T1,V3 as U1,P1 as V1,P3 as W1,_3 as X1,c2 as Y1,E3 as Z1,v8 as _1,F0 as $1,y0 as a2,T1 as b2,k3 as c2,v0 as d2,C1 as e2,K as f2,P as g2,M8 as h2,S3 as i2,_1 as j2,M0 as k2,v3 as l2,A1 as m2,h1 as n2,M3 as o2,I as p2,I3 as q2,T8 as r2,y3 as s2,T3 as t2,C3 as u2,A3 as v2,R0 as w2,f3 as x2,f1 as y2,n1 as z2,n8 as A2,i1 as B2,$Q as C2,JQ as D2,QQ as E2,D0 as F2,l as G2,YQ as H2,ZZ as I2,XQ as J2,VQ as K2,n2 as L2,Z4 as M2,$4 as N2,bQ as O2,XZ as P2,PQ as Q2,_Q as R2,Q4 as S2,EQ as T2,q4 as U2,VZ as V2,kQ as W2,W4 as X2,z4 as Y2,o2 as Z2,H4 as _2,hQ as $2,F4 as a3,L4 as b3,O0 as c3,P0 as d3,$0 as e3,DZ as f3,g0 as g3,s as h3,q5 as i3,z5 as j3,S4 as k3,KZ as l3,v4 as m3,Z5 as n3,UZ as o3,OZ as p3,M4 as q3,X0 as r3,kZ as s3,x5 as t3,I4 as u3,y4 as v3,j5 as w3,yZ as x3,TZ as y3,CZ as z3,H2 as A3,B5 as B3,hZ as C3,fZ as D3,C4 as E3,w as F3,R5 as G3,g2 as H3,h0 as I3,u0 as J3,O as K3,Q0 as L3,pZ as M3,j2 as N3,mZ as O3,cZ as P3,S as Q3,V2 as R3,dZ as S3,q2 as T3,nZ as U3,t2 as V3,A4 as W3,h4 as X3,B2 as Y3,g4 as Z3,iZ as _3,sZ as $3,aZ as a4,rZ as b4,oZ as c4,n as d4};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{aoa as C}from"./cli-0.5.12-xzeb7mtb.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
|
|
2
|
-
export{L as sh,M as th,N as uh,H as vh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{JD as h,LD as Fq,Qt as u,Rt as g,Tt as Wq,Wt as c,Xt as T,Yt as _q,Zt as r,_t as Vq,am as S,bm as Zq,cm as V,dm as $q,gm as p,hm as zq,wO as a,yO as Uq}from"./cli-0.5.12-zc0qwdy2.mjs";import{uU as d,vU as Yq}from"./cli-0.5.12-qew4mzgp.mjs";import{gV as w,hV as Nq,sV as j,tV as Qq,uV as m,wV as Xq}from"./cli-0.5.12-f5pfjvdk.mjs";import{YX as Lq,hW as v,iW as H,jW as y,rX as J,tX as N}from"./cli-0.5.12-fqp5s15p.mjs";import{AZ as _,BZ as q,CZ as G,DZ as B}from"./cli-0.5.12-c6whkxmz.mjs";import{EZ as Jq}from"./cli-0.5.12-w3hy6c60.mjs";import{J$ as b,W$ as Gq}from"./cli-0.5.12-g4wb8mj2.mjs";import{Yna as e,aoa as qq}from"./cli-0.5.12-xzeb7mtb.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
-
export{mq as Xf,Aq as Yf};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{o as f}from"./cli-0.5.12-7bxdfxh2.mjs";import{pr as F,qr as i}from"./cli-0.5.12-zc0qwdy2.mjs";import{lR as T,oR as e,pR as k,qR as z,vR as d}from"./cli-0.5.12-pp1549k7.mjs";import{h4 as W,k4 as m,r4 as y,s4 as U,x4 as c}from"./cli-0.5.12-8v5w8znc.mjs";import{M6 as Z,O6 as R}from"./cli-0.5.12-g4wb8mj2.mjs";import{Oda as V,Qda as I,Rda as N,Sda as v}from"./cli-0.5.12-7vxpqr5a.mjs";import{bea as E,mea as b}from"./cli-0.5.12-hvtcdcev.mjs";import{dfa as q,ffa as h}from"./cli-0.5.12-2jxq8gnm.mjs";import{Kfa as O,Pfa as p,fga as Y,iga as _}from"./cli-0.5.12-p5ps8gf0.mjs";import{Mga as H,Wga as w}from"./cli-0.5.12-60w1a0bs.mjs";import{Dna as s,lna as S}from"./cli-0.5.12-495d826j.mjs";import{boa as u}from"./cli-0.5.12-xzeb7mtb.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();h();i();_();R();w();m();c();d();p();var g=`{"type":"keep_alive"}
|
|
2
|
-
`,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.5.12-553s8689.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{j as a,BJ as b,L as c,XJ as d};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{vV as x,wV as d}from"./cli-0.5.12-f5pfjvdk.mjs";import{IX as y,JX as g}from"./cli-0.5.12-fqp5s15p.mjs";import{EZ as S}from"./cli-0.5.12-w3hy6c60.mjs";import{SZ as w,UZ as F,ZZ as t}from"./cli-0.5.12-khvy67r3.mjs";import{K3 as m,N3 as W,Q3 as b,d4 as s}from"./cli-0.5.12-pycnjaeg.mjs";import{Bca as E,Jaa as f,Jca as r,Maa as L,eba as n,gaa as P,haa as i}from"./cli-0.5.12-g4wb8mj2.mjs";import{bfa as A,cfa as a}from"./cli-0.5.12-k1crwtdc.mjs";import{fga as G,iga as u}from"./cli-0.5.12-p5ps8gf0.mjs";import{Dna as o,lna as U}from"./cli-0.5.12-495d826j.mjs";import{Yna as k,aoa as K}from"./cli-0.5.12-xzeb7mtb.mjs";function v(z,N,J){let Q=Z.useRef(0),V=Z.useRef(void 0),X=Z.useCallback(()=>{if(V.current)clearTimeout(V.current),V.current=void 0},[]);return Z.useEffect(()=>{return()=>{X()}},[X]),Z.useCallback(()=>{let Y=Date.now();if(Y-Q.current<=T&&V.current!==void 0)X(),z(!1),N();else J?.(),z(!0),X(),V.current=setTimeout((j,H)=>{j(!1),H.current=void 0},T,z,V);Q.current=Y},[z,N,J,X])}var Z,T=800;var R=K(()=>{Z=k(S(),1)});function C(z,N,J,Q=!0){let{exit:V}=y(),[X,Y]=$.useState({pending:!1,keyName:null}),q=$.useMemo(()=>J??V,[J,V]),M=v((_)=>Y({pending:_,keyName:"Ctrl-C"}),q),j=v((_)=>Y({pending:_,keyName:"Ctrl-D"}),q),H=$.useCallback(()=>{if(N?.())return;M()},[M,N]),O=$.useCallback(()=>{j()},[j]),c=$.useMemo(()=>({"app:interrupt":H,"app:exit":O}),[H,O]);return z(c,{context:"Global",isActive:Q}),X}var $;var I=K(()=>{g();R();$=k(S(),1)});function Gz(z,N,J){return C(x,N,z,J)}var l=K(()=>{d();I()});async function e(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/eligibility`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:5000})).data}async function vz(z="claude_code_guest_pass"){let{accessToken:N,orgUUID:J}=await w(),Q={...F(N),"x-organization-uuid":J},V=`${A().BASE_API_URL}/api/oauth/organizations/${J}/referral/redemptions`;return(await U.get(V,{headers:Q,params:{campaign:z},timeout:1e4})).data}function p(){return!!(W()?.organizationUuid&&m()&&b()==="max")}function Az(){if(!p())return{eligible:!1,needsRefresh:!1,hasCache:!1};let z=W()?.organizationUuid;if(!z)return{eligible:!1,needsRefresh:!1,hasCache:!1};let J=L().passesEligibilityCache?.[z];if(!J)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Q,timestamp:V}=J,Y=Date.now()-V>h;return{eligible:Q,needsRefresh:Y,hasCache:!0}}function Uz(z){let N=zz[z.currency]??`${z.currency} `,J=z.amount_minor_units/100,Q=J%1===0?J.toString():J.toFixed(2);return`${N}${Q}`}function wz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.referrer_reward??null}function Fz(){let z=W()?.organizationUuid;if(!z)return null;return L().passesEligibilityCache?.[z]?.remaining_passes??null}async function D(){if(B)return G("Passes: Reusing in-flight eligibility fetch"),B;let z=W()?.organizationUuid;if(!z)return null;return B=(async()=>{try{let N=await e(),J={...N,timestamp:Date.now()};return f((Q)=>({...Q,passesEligibilityCache:{...Q.passesEligibilityCache,[z]:J}})),G(`Passes eligibility cached for org ${z}: ${N.eligible}`),N}catch(N){return G("Failed to fetch and cache passes eligibility"),E(N),null}finally{B=null}})(),B}async function Jz(){if(!p())return null;let z=W()?.organizationUuid;if(!z)return null;let J=L().passesEligibilityCache?.[z],Q=Date.now();if(!J)return G("Passes: No cache, fetching eligibility in background (command unavailable this session)"),D(),null;if(Q-J.timestamp>h){G("Passes: Cache stale, returning cached data and refreshing in background"),D();let{timestamp:Y,...q}=J;return q}G("Passes: Using fresh cached eligibility data");let{timestamp:V,...X}=J;return X}async function Oz(){if(P())return;Jz()}var h=86400000,B=null,zz;var Nz=K(()=>{o();a();s();n();u();r();i();t();zz={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{v as sU,R as tU,Gz as uU,l as vU,vz as wU,Az as xU,Uz as yU,wz as zU,Fz as AU,Jz as BU,Oz as CU,Nz as DU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{JD as h,LD as I,km as g,lm as k}from"./cli-0.5.12-zc0qwdy2.mjs";import{YX as _,_V as S,tX as s}from"./cli-0.5.12-fqp5s15p.mjs";import{BZ as c,CZ as m,DZ as T}from"./cli-0.5.12-c6whkxmz.mjs";import{Jaa as b,eba as P}from"./cli-0.5.12-g4wb8mj2.mjs";import{Yna as D}from"./cli-0.5.12-xzeb7mtb.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
-
export{E as ca};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{Jy as k,Kh as $,Ky as I,Nh as m,SN as a,kN as F,kv as U,mv as h,yA as A,zA as p,zN as L}from"./cli-0.5.12-zc0qwdy2.mjs";import{b0 as O,c0 as f}from"./cli-0.5.12-pycnjaeg.mjs";import{Tfa as S,Xfa as E}from"./cli-0.5.12-p5ps8gf0.mjs";import{Ega as b,Gga as T}from"./cli-0.5.12-tfdwzg37.mjs";import{Jga as y,Wga as C}from"./cli-0.5.12-60w1a0bs.mjs";import{aoa as N}from"./cli-0.5.12-xzeb7mtb.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
-
|
|
3
|
-
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
-
|
|
5
|
-
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
-
<current_doc_content>
|
|
7
|
-
{{docContents}}
|
|
8
|
-
</current_doc_content>
|
|
9
|
-
|
|
10
|
-
Document title: {{docTitle}}
|
|
11
|
-
{{customInstructions}}
|
|
12
|
-
|
|
13
|
-
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
-
|
|
15
|
-
CRITICAL RULES FOR EDITING:
|
|
16
|
-
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
-
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
-
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
-
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
-
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
-
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
-
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
-
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
-
|
|
25
|
-
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
-
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
-
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
-
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
-
- Do NOT document every function, parameter, or line number reference
|
|
30
|
-
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
-
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
-
|
|
33
|
-
What TO document:
|
|
34
|
-
- High-level architecture and system design
|
|
35
|
-
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
-
- Key entry points and where to start reading code
|
|
37
|
-
- Important design decisions and their rationale
|
|
38
|
-
- Critical dependencies or integration points
|
|
39
|
-
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
-
|
|
41
|
-
What NOT to document:
|
|
42
|
-
- Anything obvious from reading the code itself
|
|
43
|
-
- Exhaustive lists of files, functions, or parameters
|
|
44
|
-
- Step-by-step implementation details
|
|
45
|
-
- Low-level code mechanics
|
|
46
|
-
- Information already in CLAUDE.md or other project docs
|
|
47
|
-
|
|
48
|
-
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
-
|
|
50
|
-
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
|
|
51
|
-
|
|
52
|
-
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
-
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
-
|
|
55
|
-
"${J}"
|
|
56
|
-
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
|
|
58
|
-
export{Xw as Lg,Zw as Mg,s as Ng};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{qc as Z,rc as _,sc as $,vc as O}from"./cli-0.5.12-27ngaysm.mjs";import{Td as Y,Yd as x}from"./cli-0.5.12-brdpkyjd.mjs";import{EI as V,jI as U,oI as W,tI as S,uI as X}from"./cli-0.5.12-zc0qwdy2.mjs";import{fga as R,iga as K}from"./cli-0.5.12-p5ps8gf0.mjs";import{Gga as C,zga as Q}from"./cli-0.5.12-tfdwzg37.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
|
|
2
|
-
export{F as db};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{L as A}from"./cli-0.5.12-paj8nhxk.mjs";import{Aca as H,Jca as P,sca as $,tca as F,zca as z}from"./cli-0.5.12-g4wb8mj2.mjs";import{Kfa as O,Pfa as w,Tfa as V,Xfa as C,fga as X,gfa as _,hfa as N,ifa as B,iga as E,kfa as W}from"./cli-0.5.12-p5ps8gf0.mjs";import{Aia as Z,rma as L}from"./cli-0.5.12-c8f4daey.mjs";import{Dna as y,lna as q}from"./cli-0.5.12-495d826j.mjs";y();L();N();F();W();E();C();P();w();import{dirname as I,join as x}from"path";var T=z(new Date);function D(){return x($.errors(),T+".jsonl")}function J(G){return x($.mcpLogs(G),T+".jsonl")}function S(G){let K=_(G);return{write(Q){K.write(O(Q)+`
|
|
2
|
-
`)},flush:K.flush,dispose:K.dispose}}var R=new Map;function M(G){let K=R.get(G);if(!K){let Q=I(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),R.set(G,K),B(async()=>K?.dispose())}return K}function f(G,K){}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function j(G){let K=G.stack||G.message,Q="";if(q.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(D(),{error:`${Q}${K}`})}function b(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(Y)}function u(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};M(Q).write(U)}function k(){H({logError:j,logMCPError:b,logMCPDebug:u,getErrorsPath:D,getMCPLogsPath:J}),X("Error log sink initialized")}function e(){k(),A()}
|
|
3
|
-
export{e as J};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{L7 as x,Y6 as X,a7 as k,p7 as Y}from"./cli-0.5.12-g4wb8mj2.mjs";import{eda as $}from"./cli-0.5.12-vp5smcs1.mjs";import{aoa as Z}from"./cli-0.5.12-xzeb7mtb.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
|
|
2
|
-
export{H as zb,M as Ab};
|