@claudiolabs/claudin 0.6.13 → 0.7.0
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.7.0-9peg6t20.mjs +1 -0
- package/dist/chunks/App-0.7.0-q5hygb50.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.7.0-pdj2vakp.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.7.0-190csm4h.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.7.0-khhh5rz9.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.7.0-4n7jcjsf.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.0-vf636a5p.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.7.0-z9h5bckg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.7.0-3kqmdg48.mjs +7 -0
- package/dist/chunks/Doctor-0.7.0-gep401wn.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.7.0-2t408ngs.mjs +6 -0
- package/dist/chunks/Grove-0.7.0-3knq53k5.mjs +1 -0
- package/dist/chunks/ITermBackend-0.7.0-by807q13.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.7.0-maxj2b37.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.7.0-2atqejbc.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.7.0-wqtqgs70.mjs +1 -0
- package/dist/chunks/Onboarding-0.7.0-xe2s643k.mjs +1 -0
- package/dist/chunks/ProviderManager-0.7.0-4tbbvacv.mjs +1 -0
- package/dist/chunks/REPL-0.7.0-tvn2epfh.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.7.0-6ycqmhh2.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.7.0-xwjwtj2z.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.7.0-mwbsjw08.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.0-szdbz9rf.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.7.0-sg1whfhh.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.7.0-jdkh4z1a.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.7.0-f557bcbq.mjs +1 -0
- package/dist/chunks/TrustDialog-0.7.0-gfmvgcwc.mjs +1 -0
- package/dist/chunks/activeProvider-0.7.0-vvs597t9.mjs +1 -0
- package/dist/chunks/add-dir-0.7.0-tqy1qj7k.mjs +1 -0
- package/dist/chunks/agents-0.7.0-7mz67ymz.mjs +110 -0
- package/dist/chunks/agents-0.7.0-rzfq4nj1.mjs +3 -0
- package/dist/chunks/api-0.7.0-3ddtm43n.mjs +1 -0
- package/dist/chunks/asciicast-0.7.0-4hfhh3bz.mjs +1 -0
- package/dist/chunks/assistant-0.7.0-hq9qp39j.mjs +1 -0
- package/dist/chunks/auth-0.7.0-j0ecrgmw.mjs +1 -0
- package/dist/chunks/auth-0.7.0-q33dw9jq.mjs +1 -0
- package/dist/chunks/autoMode-0.7.0-jt8mnf1a.mjs +48 -0
- package/dist/chunks/autoUpdater-0.7.0-pk6cxrr5.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.7.0-n50bjkpa.mjs +1 -0
- package/dist/chunks/branch-0.7.0-2nvgp1ch.mjs +4 -0
- package/dist/chunks/bridge-0.7.0-n76zrpx7.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.7.0-wavdtzat.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.7.0-eqjw3fax.mjs +1 -0
- package/dist/chunks/bridgeMain-0.7.0-7n73zfpq.mjs +88 -0
- package/dist/chunks/bridgePointer-0.7.0-49x6tn3y.mjs +1 -0
- package/dist/chunks/btw-0.7.0-d2cavbgh.mjs +1 -0
- package/dist/chunks/buddy-0.7.0-3r0qt58d.mjs +3 -0
- package/dist/chunks/cacache-0.7.0-tsq5tf6t.mjs +1 -0
- package/dist/chunks/cache-probe-0.7.0-521yf1je.mjs +21 -0
- package/dist/chunks/cacheStats-0.7.0-xrpkvgry.mjs +4 -0
- package/dist/chunks/caches-0.7.0-khrzrs38.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.7.0-9vm9zdzp.mjs +1 -0
- package/dist/chunks/claudemd-0.7.0-06x6wykt.mjs +1 -0
- package/dist/chunks/clear-0.7.0-0hkt8avg.mjs +1 -0
- package/dist/chunks/clearTerminal-0.7.0-np2er6we.mjs +1 -0
- package/dist/chunks/cli-0.7.0-0bzz8t89.mjs +2 -0
- package/dist/chunks/cli-0.7.0-0cp32djm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-0hzevdxp.mjs +8 -0
- package/dist/chunks/cli-0.7.0-0r9dgw51.mjs +3 -0
- package/dist/chunks/cli-0.7.0-0vdrrv1g.mjs +2 -0
- package/dist/chunks/cli-0.7.0-154gmfg4.mjs +2 -0
- package/dist/chunks/cli-0.7.0-15wmymmf.mjs +2 -0
- package/dist/chunks/cli-0.7.0-19swb9c9.mjs +2 -0
- package/dist/chunks/cli-0.7.0-1b6xe3b3.mjs +3 -0
- package/dist/chunks/cli-0.7.0-1evcxwvq.mjs +9 -0
- package/dist/chunks/cli-0.7.0-1tb38zvv.mjs +2 -0
- package/dist/chunks/cli-0.7.0-1vvj7vh2.mjs +4 -0
- package/dist/chunks/cli-0.7.0-21zw08ne.mjs +4 -0
- package/dist/chunks/cli-0.7.0-24z25c8v.mjs +2 -0
- package/dist/chunks/cli-0.7.0-252v8s5n.mjs +20 -0
- package/dist/chunks/cli-0.7.0-29zphpz9.mjs +2 -0
- package/dist/chunks/cli-0.7.0-2cdwx892.mjs +3 -0
- package/dist/chunks/cli-0.7.0-2etvr47t.mjs +24 -0
- package/dist/chunks/cli-0.7.0-2nytysyy.mjs +2 -0
- package/dist/chunks/cli-0.7.0-383nrwhr.mjs +18 -0
- package/dist/chunks/cli-0.7.0-3fnqxks0.mjs +5 -0
- package/dist/chunks/cli-0.7.0-3knzsvn6.mjs +2 -0
- package/dist/chunks/cli-0.7.0-3n9nagt9.mjs +2 -0
- package/dist/chunks/cli-0.7.0-3stm3k7p.mjs +12 -0
- package/dist/chunks/cli-0.7.0-3xtc467b.mjs +2 -0
- package/dist/chunks/cli-0.7.0-48ycf0c3.mjs +2 -0
- package/dist/chunks/cli-0.7.0-48yfvx4w.mjs +2 -0
- package/dist/chunks/cli-0.7.0-49k0drxj.mjs +2 -0
- package/dist/chunks/cli-0.7.0-4d58csqr.mjs +2 -0
- package/dist/chunks/cli-0.7.0-4s9f320h.mjs +2 -0
- package/dist/chunks/cli-0.7.0-4t41vxc0.mjs +2 -0
- package/dist/chunks/cli-0.7.0-4z8583dp.mjs +2 -0
- package/dist/chunks/cli-0.7.0-4z9nwzzv.mjs +2 -0
- package/dist/chunks/cli-0.7.0-4zvtjdd8.mjs +2 -0
- package/dist/chunks/cli-0.7.0-5df67dbk.mjs +2 -0
- package/dist/chunks/cli-0.7.0-5fx679he.mjs +2 -0
- package/dist/chunks/cli-0.7.0-5ktz31fq.mjs +67 -0
- package/dist/chunks/cli-0.7.0-5yvefnpr.mjs +3 -0
- package/dist/chunks/cli-0.7.0-68mgyfr7.mjs +2 -0
- package/dist/chunks/cli-0.7.0-6v89j1h0.mjs +2 -0
- package/dist/chunks/cli-0.7.0-747esby6.mjs +2 -0
- package/dist/chunks/cli-0.7.0-7c24mbsm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-7g132rdj.mjs +5420 -0
- package/dist/chunks/cli-0.7.0-83nm3wtf.mjs +2 -0
- package/dist/chunks/cli-0.7.0-89798mg3.mjs +2 -0
- package/dist/chunks/cli-0.7.0-8begebnr.mjs +3 -0
- package/dist/chunks/cli-0.7.0-8p56ked8.mjs +2 -0
- package/dist/chunks/cli-0.7.0-8qwe028y.mjs +2 -0
- package/dist/chunks/cli-0.7.0-9jzkqcfv.mjs +16 -0
- package/dist/chunks/cli-0.7.0-9mk6sjcz.mjs +4 -0
- package/dist/chunks/cli-0.7.0-9p8vefz6.mjs +18 -0
- package/dist/chunks/cli-0.7.0-a088q8ep.mjs +2 -0
- package/dist/chunks/cli-0.7.0-a0dt04a7.mjs +2 -0
- package/dist/chunks/cli-0.7.0-a7rry8ha.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ad4z1hfv.mjs +50 -0
- package/dist/chunks/cli-0.7.0-aewz8nz4.mjs +2 -0
- package/dist/chunks/cli-0.7.0-apkk9390.mjs +3 -0
- package/dist/chunks/cli-0.7.0-asw5nd1q.mjs +2 -0
- package/dist/chunks/cli-0.7.0-avczxk44.mjs +2 -0
- package/dist/chunks/cli-0.7.0-avw5kb07.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ba1xb8x3.mjs +4 -0
- package/dist/chunks/cli-0.7.0-bacjkqga.mjs +2 -0
- package/dist/chunks/cli-0.7.0-bn0k1nzk.mjs +2 -0
- package/dist/chunks/cli-0.7.0-cb16hgkh.mjs +2 -0
- package/dist/chunks/cli-0.7.0-cjxpqpns.mjs +3 -0
- package/dist/chunks/cli-0.7.0-ct2kfpct.mjs +2 -0
- package/dist/chunks/cli-0.7.0-cwxeffcg.mjs +2 -0
- package/dist/chunks/cli-0.7.0-d56bajvn.mjs +2 -0
- package/dist/chunks/cli-0.7.0-d5bt2ahd.mjs +2 -0
- package/dist/chunks/cli-0.7.0-d6h4eqtj.mjs +2 -0
- package/dist/chunks/cli-0.7.0-d8vr3j93.mjs +2 -0
- package/dist/chunks/cli-0.7.0-dem9bmt6.mjs +2 -0
- package/dist/chunks/cli-0.7.0-dpaewdhn.mjs +2 -0
- package/dist/chunks/cli-0.7.0-dszmq0g3.mjs +2 -0
- package/dist/chunks/cli-0.7.0-dtxyc2mt.mjs +2 -0
- package/dist/chunks/cli-0.7.0-dxnyr5rv.mjs +2 -0
- package/dist/chunks/cli-0.7.0-dyhamqem.mjs +2 -0
- package/dist/chunks/cli-0.7.0-e1esnrzt.mjs +42 -0
- package/dist/chunks/cli-0.7.0-e1mycvjk.mjs +2 -0
- package/dist/chunks/cli-0.7.0-e39zcyhp.mjs +4 -0
- package/dist/chunks/cli-0.7.0-e6mves6r.mjs +2 -0
- package/dist/chunks/cli-0.7.0-eayr3nfv.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ecwta6mh.mjs +2 -0
- package/dist/chunks/cli-0.7.0-eddwmcdn.mjs +2 -0
- package/dist/chunks/cli-0.7.0-es6y6s82.mjs +12 -0
- package/dist/chunks/cli-0.7.0-ewbn59cm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ewcemx0m.mjs +2 -0
- package/dist/chunks/cli-0.7.0-f62gcsfa.mjs +2 -0
- package/dist/chunks/cli-0.7.0-f7mqc27p.mjs +6 -0
- package/dist/chunks/cli-0.7.0-ffy8few4.mjs +3 -0
- package/dist/chunks/cli-0.7.0-ft5gef81.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ftjagwyg.mjs +2 -0
- package/dist/chunks/cli-0.7.0-fxv77y2t.mjs +12 -0
- package/dist/chunks/cli-0.7.0-g2ekvm09.mjs +6 -0
- package/dist/chunks/cli-0.7.0-g46gs4dx.mjs +2 -0
- package/dist/chunks/cli-0.7.0-g5qxznar.mjs +2 -0
- package/dist/chunks/cli-0.7.0-gafgf0er.mjs +2 -0
- package/dist/chunks/cli-0.7.0-gkssrwr6.mjs +34 -0
- package/dist/chunks/cli-0.7.0-h6kfhzzd.mjs +193 -0
- package/dist/chunks/cli-0.7.0-hmjg8yfx.mjs +2 -0
- package/dist/chunks/cli-0.7.0-hrtdae85.mjs +6 -0
- package/dist/chunks/cli-0.7.0-hxf1ckjt.mjs +12 -0
- package/dist/chunks/cli-0.7.0-hxph4t80.mjs +2 -0
- package/dist/chunks/cli-0.7.0-j4jzhywr.mjs +3 -0
- package/dist/chunks/cli-0.7.0-je29e78f.mjs +2 -0
- package/dist/chunks/cli-0.7.0-jmsrj8j2.mjs +4 -0
- package/dist/chunks/cli-0.7.0-jvkyhn8x.mjs +2 -0
- package/dist/chunks/cli-0.7.0-k3qqc7gx.mjs +2 -0
- package/dist/chunks/cli-0.7.0-k7w5n7pe.mjs +2 -0
- package/dist/chunks/cli-0.7.0-kkpf8bhn.mjs +2 -0
- package/dist/chunks/cli-0.7.0-kngw06pw.mjs +4 -0
- package/dist/chunks/cli-0.7.0-kp7f47zq.mjs +2 -0
- package/dist/chunks/cli-0.7.0-kpfe5dkw.mjs +2 -0
- package/dist/chunks/cli-0.7.0-kr6jdp53.mjs +133 -0
- package/dist/chunks/cli-0.7.0-kw0wp8vs.mjs +2 -0
- package/dist/chunks/cli-0.7.0-kw554ntj.mjs +3 -0
- package/dist/chunks/cli-0.7.0-m07xma4d.mjs +2 -0
- package/dist/chunks/cli-0.7.0-m6ysmj08.mjs +39 -0
- package/dist/chunks/cli-0.7.0-mea2neea.mjs +133 -0
- package/dist/chunks/cli-0.7.0-mn3gdwp2.mjs +17 -0
- package/dist/chunks/cli-0.7.0-mnbdk339.mjs +3 -0
- package/dist/chunks/cli-0.7.0-n0s94kev.mjs +2 -0
- package/dist/chunks/cli-0.7.0-n0twknfk.mjs +2 -0
- package/dist/chunks/cli-0.7.0-na9s209m.mjs +2 -0
- package/dist/chunks/cli-0.7.0-p96azep2.mjs +7 -0
- package/dist/chunks/cli-0.7.0-p9c7eask.mjs +2 -0
- package/dist/chunks/cli-0.7.0-p9q4x3f1.mjs +59 -0
- package/dist/chunks/cli-0.7.0-pbs0cx53.mjs +2 -0
- package/dist/chunks/cli-0.7.0-petmjdha.mjs +2 -0
- package/dist/chunks/cli-0.7.0-pf2fr5cc.mjs +4 -0
- package/dist/chunks/cli-0.7.0-pfcabga3.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ppqzq0zp.mjs +2 -0
- package/dist/chunks/cli-0.7.0-q5sbn5b2.mjs +4 -0
- package/dist/chunks/cli-0.7.0-q70ex7jy.mjs +2 -0
- package/dist/chunks/cli-0.7.0-qeg8v19s.mjs +2 -0
- package/dist/chunks/cli-0.7.0-qftredzy.mjs +2 -0
- package/dist/chunks/cli-0.7.0-qmckaxpm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-r8g195r8.mjs +15 -0
- package/dist/chunks/cli-0.7.0-rmprwgax.mjs +2 -0
- package/dist/chunks/cli-0.7.0-rnahtcw9.mjs +5 -0
- package/dist/chunks/cli-0.7.0-rxhbb3ca.mjs +2 -0
- package/dist/chunks/cli-0.7.0-s0b5jjrj.mjs +2 -0
- package/dist/chunks/cli-0.7.0-s14kw5d6.mjs +2 -0
- package/dist/chunks/cli-0.7.0-s4at7t0q.mjs +2 -0
- package/dist/chunks/cli-0.7.0-s8rt9fpg.mjs +2 -0
- package/dist/chunks/cli-0.7.0-s9hgep30.mjs +3 -0
- package/dist/chunks/cli-0.7.0-sbwhas5a.mjs +18 -0
- package/dist/chunks/cli-0.7.0-tcxmyk2w.mjs +2 -0
- package/dist/chunks/cli-0.7.0-tjpp46xm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-tvwks6zm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-twxrndmz.mjs +4 -0
- package/dist/chunks/cli-0.7.0-v6ceqq5f.mjs +2 -0
- package/dist/chunks/cli-0.7.0-v7hc34ad.mjs +2 -0
- package/dist/chunks/cli-0.7.0-v92q5ffm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-vf7bbn80.mjs +5 -0
- package/dist/chunks/cli-0.7.0-vfzbn5qv.mjs +2 -0
- package/dist/chunks/cli-0.7.0-vp89ypch.mjs +24 -0
- package/dist/chunks/cli-0.7.0-vvb9pc7x.mjs +3 -0
- package/dist/chunks/cli-0.7.0-vzpjsnyh.mjs +2 -0
- package/dist/chunks/cli-0.7.0-vzvrhx5c.mjs +2 -0
- package/dist/chunks/cli-0.7.0-w0nw2kkk.mjs +17 -0
- package/dist/chunks/cli-0.7.0-wb82h4c2.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wf8v2b4s.mjs +15 -0
- package/dist/chunks/cli-0.7.0-wgy69726.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wm0enq59.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wntkecma.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wspeyepj.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wvpty7mm.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wxynfqax.mjs +2 -0
- package/dist/chunks/cli-0.7.0-wzjrm1a0.mjs +2 -0
- package/dist/chunks/cli-0.7.0-x1xdxk52.mjs +2 -0
- package/dist/chunks/cli-0.7.0-x2vc8nds.mjs +2 -0
- package/dist/chunks/cli-0.7.0-xb864qfd.mjs +2 -0
- package/dist/chunks/cli-0.7.0-xfxprc47.mjs +2 -0
- package/dist/chunks/cli-0.7.0-xpzg1xfc.mjs +2 -0
- package/dist/chunks/cli-0.7.0-xvjaw51n.mjs +15 -0
- package/dist/chunks/cli-0.7.0-y003ay15.mjs +2 -0
- package/dist/chunks/cli-0.7.0-y6nkrrpn.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ybdk9aq6.mjs +21 -0
- package/dist/chunks/cli-0.7.0-ybwa4x6g.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ycew6bek.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ye6sm33j.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ytqbgtvc.mjs +2 -0
- package/dist/chunks/cli-0.7.0-yts7snkm.mjs +45 -0
- package/dist/chunks/cli-0.7.0-yw6r7fw4.mjs +58 -0
- package/dist/chunks/cli-0.7.0-z15a5zq0.mjs +2 -0
- package/dist/chunks/cli-0.7.0-z7sydqy8.mjs +2 -0
- package/dist/chunks/cli-0.7.0-z93va7tf.mjs +2 -0
- package/dist/chunks/cli-0.7.0-zd1q68sv.mjs +2 -0
- package/dist/chunks/cli-0.7.0-zdbaf370.mjs +10 -0
- package/dist/chunks/cli-0.7.0-zf3jaceq.mjs +2 -0
- package/dist/chunks/cli-0.7.0-zh93d2ez.mjs +2 -0
- package/dist/chunks/cli-0.7.0-zjfpqpke.mjs +1 -0
- package/dist/chunks/cli-0.7.0-zmfejrs2.mjs +25 -0
- package/dist/chunks/cli-0.7.0-zn444tdk.mjs +2 -0
- package/dist/chunks/cli-0.7.0-zqv149an.mjs +6 -0
- package/dist/chunks/cli-0.7.0-zscdr61q.mjs +2 -0
- package/dist/chunks/cli-0.7.0-ztc21898.mjs +2 -0
- package/dist/chunks/client-0.7.0-mxq1x2gd.mjs +1 -0
- package/dist/chunks/color-0.7.0-q8kx1h5f.mjs +1 -0
- package/dist/chunks/compact-0.7.0-wej8t29a.mjs +3 -0
- package/dist/chunks/config-0.7.0-1vqyzdss.mjs +1 -0
- package/dist/chunks/config-0.7.0-29b2exhr.mjs +1 -0
- package/dist/chunks/constants-0.7.0-cwe25jjg.mjs +1 -0
- package/dist/chunks/context-0.7.0-wzkh0ek3.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.7.0-3knrv7yy.mjs +1 -0
- package/dist/chunks/conversation-0.7.0-5gwkat1n.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.7.0-k7qbvwa0.mjs +1 -0
- package/dist/chunks/copy-0.7.0-g9547w2e.mjs +9 -0
- package/dist/chunks/cost-0.7.0-g07zzraf.mjs +1 -0
- package/dist/chunks/createSSHSession-0.7.0-x69ccesr.mjs +1 -0
- package/dist/chunks/createSession-0.7.0-eythrhrd.mjs +1 -0
- package/dist/chunks/debug-0.7.0-grf8etmz.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.7.0-3msvjhye.mjs +1367 -0
- package/dist/chunks/desktop-0.7.0-qv2bt4fq.mjs +1 -0
- package/dist/chunks/detectRepository-0.7.0-8kzz057x.mjs +1 -0
- package/dist/chunks/detection-0.7.0-d8z59p8p.mjs +1 -0
- package/dist/chunks/diff-0.7.0-wx4fgtnt.mjs +1 -0
- package/dist/chunks/doctor-0.7.0-dzm456q1.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.7.0-jysj36mx.mjs +1 -0
- package/dist/chunks/earlyInput-0.7.0-31tzwhjp.mjs +1 -0
- package/dist/chunks/effort-0.7.0-w94qsmp1.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.7.0-2vzfvw7j.mjs +1 -0
- package/dist/chunks/envUtils-0.7.0-wak5qkkv.mjs +1 -0
- package/dist/chunks/environmentSelection-0.7.0-xe6h6x4v.mjs +1 -0
- package/dist/chunks/environments-0.7.0-cdxqsbrp.mjs +1 -0
- package/dist/chunks/errors-0.7.0-hrt3tamp.mjs +1 -0
- package/dist/chunks/exampleCommands-0.7.0-v49vtt40.mjs +1 -0
- package/dist/chunks/exit-0.7.0-xpc13d1z.mjs +1 -0
- package/dist/chunks/explorer-0.7.0-yy3jawy1.mjs +1 -0
- package/dist/chunks/export-0.7.0-689scwyv.mjs +2 -0
- package/dist/chunks/extra-usage-0.7.0-675a7x8f.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.7.0-2h542mq6.mjs +1 -0
- package/dist/chunks/fast-0.7.0-dwxy8xan.mjs +1 -0
- package/dist/chunks/feedback-0.7.0-kms98grz.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.7.0-5gy0hbjg.mjs +1 -0
- package/dist/chunks/git-0.7.0-bsn50mym.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.7.0-f9n1jk8g.mjs +1 -0
- package/dist/chunks/goal-0.7.0-ben8pbys.mjs +4 -0
- package/dist/chunks/grove-0.7.0-5vca5g43.mjs +1 -0
- package/dist/chunks/growthbook-0.7.0-ged09pjv.mjs +1 -0
- package/dist/chunks/headless-0.7.0-6gxn4ya0.mjs +2 -0
- package/dist/chunks/heapdump-0.7.0-jbnb1enq.mjs +6 -0
- package/dist/chunks/help-0.7.0-s11djcbq.mjs +1 -0
- package/dist/chunks/hookChains-0.7.0-q104805z.mjs +3 -0
- package/dist/chunks/hooks-0.7.0-3tzcnyt1.mjs +1 -0
- package/dist/chunks/hooks-0.7.0-m0qzy27a.mjs +79 -0
- package/dist/chunks/ide-0.7.0-rqh7pczf.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.7.0-t874vmrb.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.7.0-9h4k1v8p.mjs +1 -0
- package/dist/chunks/index-0.7.0-0pb4fykd.mjs +1 -0
- package/dist/chunks/index-0.7.0-339ebzg3.mjs +1 -0
- package/dist/chunks/index-0.7.0-3qc9y7vs.mjs +1 -0
- package/dist/chunks/index-0.7.0-8xaka5b5.mjs +1 -0
- package/dist/chunks/index-0.7.0-aghbrz36.mjs +1 -0
- package/dist/chunks/index-0.7.0-asx0vcnp.mjs +1 -0
- package/dist/chunks/index-0.7.0-at8f760s.mjs +2 -0
- package/dist/chunks/index-0.7.0-aw15r8m5.mjs +1 -0
- package/dist/chunks/index-0.7.0-b95077ct.mjs +1 -0
- package/dist/chunks/index-0.7.0-etmdkstm.mjs +1 -0
- package/dist/chunks/index-0.7.0-fhnz63fp.mjs +1 -0
- package/dist/chunks/index-0.7.0-fx8935ev.mjs +5 -0
- package/dist/chunks/index-0.7.0-hwyk7tea.mjs +30 -0
- package/dist/chunks/index-0.7.0-nb6m1jch.mjs +1 -0
- package/dist/chunks/index-0.7.0-p4n8wp5y.mjs +9 -0
- package/dist/chunks/index-0.7.0-rbb0bwpy.mjs +1 -0
- package/dist/chunks/index-0.7.0-rq05kg71.mjs +17 -0
- package/dist/chunks/index-0.7.0-vk7vxjae.mjs +1 -0
- package/dist/chunks/index-0.7.0-wjsr1d6k.mjs +2 -0
- package/dist/chunks/index-0.7.0-x03pfhyx.mjs +9 -0
- package/dist/chunks/index-0.7.0-y22a1z29.mjs +1 -0
- package/dist/chunks/index-0.7.0-yx3335f1.mjs +1 -0
- package/dist/chunks/index-0.7.0-zsw19y1x.mjs +1 -0
- package/dist/chunks/init-0.7.0-f0taef1q.mjs +1 -0
- package/dist/chunks/initReplBridge-0.7.0-wcvxy8w8.mjs +1 -0
- package/dist/chunks/ink-0.7.0-xpha78d8.mjs +1 -0
- package/dist/chunks/insights-0.7.0-x0rwvydg.mjs +870 -0
- package/dist/chunks/install-0.7.0-ncp2pec7.mjs +1 -0
- package/dist/chunks/install-github-app-0.7.0-trt9558z.mjs +149 -0
- package/dist/chunks/install-slack-app-0.7.0-kjz97cdh.mjs +1 -0
- package/dist/chunks/instrumentation-0.7.0-bey09njh.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.7.0-1qs1kree.mjs +1 -0
- package/dist/chunks/keybindings-0.7.0-ekf19qhh.mjs +2 -0
- package/dist/chunks/knowledge-0.7.0-adck5x26.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.7.0-ark5pmnp.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.7.0-5ae7wa3t.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.0-vhwhvb6f.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.0-xb4qdrg0.mjs +1 -0
- package/dist/chunks/log-0.7.0-6mtk9ch7.mjs +1 -0
- package/dist/chunks/main-0.7.0-v0y4hrdm.mjs +1 -0
- package/dist/chunks/managedEnv-0.7.0-n64hpsst.mjs +1 -0
- package/dist/chunks/mcp-0.7.0-2j3bkwz5.mjs +1 -0
- package/dist/chunks/mcp-0.7.0-rqwvyycg.mjs +4 -0
- package/dist/chunks/mcp-0.7.0-t0pqt6hy.mjs +17 -0
- package/dist/chunks/mcpb-0.7.0-wmg0861b.mjs +1 -0
- package/dist/chunks/memory-0.7.0-gfe3p8h2.mjs +3 -0
- package/dist/chunks/model-0.7.0-anb8mgtp.mjs +2 -0
- package/dist/chunks/model-0.7.0-jxz0n7g1.mjs +1 -0
- package/dist/chunks/node-0.7.0-4sagcnk2.mjs +12 -0
- package/dist/chunks/oauth-0.7.0-n3tj8amn.mjs +1 -0
- package/dist/chunks/openaiShim-0.7.0-9bq5572t.mjs +14 -0
- package/dist/chunks/output-style-0.7.0-wmxwqrx6.mjs +1 -0
- package/dist/chunks/package-GCDC7LJR-0.7.0-fke68t3z.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.7.0-p5aq0xy4.mjs +1 -0
- package/dist/chunks/parser-0.7.0-a4qhvrn9.mjs +1 -0
- package/dist/chunks/passes-0.7.0-4wxjh63r.mjs +1 -0
- package/dist/chunks/permissions-0.7.0-cth9pb19.mjs +3 -0
- package/dist/chunks/permissions-0.7.0-nxre3gew.mjs +1 -0
- package/dist/chunks/plan-0.7.0-0t3hxxwf.mjs +1 -0
- package/dist/chunks/plist-0.7.0-ptbkp7b8.mjs +1 -0
- package/dist/chunks/plugin-0.7.0-4zewdh7s.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.7.0-3zvpdbjz.mjs +1 -0
- package/dist/chunks/plugins-0.7.0-dyrrfzzb.mjs +9 -0
- package/dist/chunks/preActionHook-0.7.0-agzbsqyv.mjs +2 -0
- package/dist/chunks/print-0.7.0-m81z10rw.mjs +57 -0
- package/dist/chunks/privacy-settings-0.7.0-qvrhcvbv.mjs +1 -0
- package/dist/chunks/process-0.7.0-4rnq2g80.mjs +1 -0
- package/dist/chunks/processBashCommand-0.7.0-htmch7xm.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.7.0-gj7mbd0a.mjs +9 -0
- package/dist/chunks/prompt-0.7.0-2d4qsrq9.mjs +1 -0
- package/dist/chunks/prompt-0.7.0-rkefqrwh.mjs +1 -0
- package/dist/chunks/prompts-0.7.0-ty3k4n75.mjs +1 -0
- package/dist/chunks/protocolHandler-0.7.0-aqsa4ph2.mjs +13 -0
- package/dist/chunks/provider-0.7.0-yw5h323y.mjs +2 -0
- package/dist/chunks/providerProfiles-0.7.0-vdm0m870.mjs +1 -0
- package/dist/chunks/providerValidation-0.7.0-rtzpgzra.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.7.0-dqtjdpft.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.7.0-r5wmbkz9.mjs +34 -0
- package/dist/chunks/registry-0.7.0-jjaxz6ve.mjs +1 -0
- package/dist/chunks/release-notes-0.7.0-h6me5mww.mjs +5 -0
- package/dist/chunks/reload-plugins-0.7.0-vtr0cnwe.mjs +2 -0
- package/dist/chunks/remote-env-0.7.0-h013vass.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.7.0-fmh34c6f.mjs +1 -0
- package/dist/chunks/remoteSession-0.7.0-40yqbh78.mjs +1 -0
- package/dist/chunks/rename-0.7.0-wqs6kjb7.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.7.0-d192ahyh.mjs +1 -0
- package/dist/chunks/replLauncher-0.7.0-gtmcyxgm.mjs +1 -0
- package/dist/chunks/resume-0.7.0-6cy3j2e8.mjs +2 -0
- package/dist/chunks/rewind-0.7.0-kepxqnvs.mjs +1 -0
- package/dist/chunks/rootOptions-0.7.0-00ekm71j.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.7.0-env8r2gg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.7.0-wk296sbw.mjs +1 -0
- package/dist/chunks/session-0.7.0-qbmq7k37.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.7.0-xf03hmpk.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.7.0-gw8qw3zp.mjs +1 -0
- package/dist/chunks/sessionStorage-0.7.0-vcyz3dw7.mjs +1 -0
- package/dist/chunks/settings-0.7.0-3k9dr8ys.mjs +1 -0
- package/dist/chunks/setup-0.7.0-9ync2tk7.mjs +5 -0
- package/dist/chunks/sinks-0.7.0-g1bwkwh0.mjs +1 -0
- package/dist/chunks/skills-0.7.0-hjdx42cr.mjs +1 -0
- package/dist/chunks/startupProfiler-0.7.0-b32wtvbf.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.7.0-m55han8a.mjs +1 -0
- package/dist/chunks/state-0.7.0-g9nbt1zn.mjs +1 -0
- package/dist/chunks/stats-0.7.0-429ntw0k.mjs +6 -0
- package/dist/chunks/status-0.7.0-h19n5a31.mjs +1 -0
- package/dist/chunks/stickers-0.7.0-q34hs61c.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.7.0-gz4xjdce.mjs +1 -0
- package/dist/chunks/tasks-0.7.0-e2rrgr6x.mjs +1 -0
- package/dist/chunks/teamHelpers-0.7.0-jss9q0ak.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.7.0-c7ekrdae.mjs +1 -0
- package/dist/chunks/teleport-0.7.0-n0h6pqs8.mjs +1 -0
- package/dist/chunks/terminalSetup-0.7.0-ycw8nd2k.mjs +1 -0
- package/dist/chunks/theme-0.7.0-2dzcdk7a.mjs +1 -0
- package/dist/chunks/thinkback-0.7.0-9xhfd6ab.mjs +1 -0
- package/dist/chunks/thinkback-play-0.7.0-yqj7b8tt.mjs +1 -0
- package/dist/chunks/toolPool-0.7.0-xes3fby4.mjs +1 -0
- package/dist/chunks/toolSearch-0.7.0-wkaae53k.mjs +1 -0
- package/dist/chunks/tools-0.7.0-7qjq03x9.mjs +1 -0
- package/dist/chunks/trustedDevice-0.7.0-0jcs8sag.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.7.0-evvr9k3e.mjs +69 -0
- package/dist/chunks/types-0.7.0-7t30qdm7.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.7.0-mt2gyqrs.mjs +4 -0
- package/dist/chunks/update-0.7.0-d79xsjyx.mjs +86 -0
- package/dist/chunks/upgrade-0.7.0-29j99fm4.mjs +1 -0
- package/dist/chunks/upload-0.7.0-c88xwfr6.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.7.0-qha2t9zm.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.7.0-d2khwe8w.mjs +1 -0
- package/dist/chunks/usage-0.7.0-fz211dwp.mjs +1 -0
- package/dist/chunks/util-0.7.0-kre9h9qa.mjs +1 -0
- package/dist/chunks/utils-0.7.0-vw4eq452.mjs +1 -0
- package/dist/chunks/vim-0.7.0-2tzpxf7d.mjs +1 -0
- package/dist/chunks/watcher-0.7.0-dbb0csvt.mjs +1 -0
- package/dist/chunks/wiki-0.7.0-etkhyz2p.mjs +132 -0
- package/dist/chunks/worktree-0.7.0-ntn0xdnq.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.7.0-h5ak3bk5.mjs +1 -0
- package/dist/chunks/wrapper-0.7.0-zvn0r75t.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +14 -14
- package/dist/chunks/AgentTool-0.6.13-372t6jvm.mjs +0 -1
- package/dist/chunks/App-0.6.13-qvfyfba9.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.13-6nmfyyev.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.13-b6yfhres.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.13-dyqtw95c.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.13-hjwa1fbn.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.13-dk52swdy.mjs +0 -7
- package/dist/chunks/Doctor-0.6.13-1a58bmer.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.6.13-2jsr1kdp.mjs +0 -6
- package/dist/chunks/Grove-0.6.13-ndwmcy2m.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.13-nf00ba9t.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.13-5tjcywmj.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.13-hfvttszy.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.13-8kny4cnv.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.13-kq8ksp1e.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.13-qk3hqkes.mjs +0 -1
- package/dist/chunks/REPL-0.6.13-61en5qve.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.13-3fqxexjm.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.13-62cd6tth.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.13-15xb363h.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.13-dsedgexe.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.13-9j8hn55r.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.13-8vwnn7q5.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.13-zh1xxj19.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.13-bxhrfq4g.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.13-czzs1epn.mjs +0 -1
- package/dist/chunks/add-dir-0.6.13-j5n5k274.mjs +0 -1
- package/dist/chunks/agents-0.6.13-0m0b4n5a.mjs +0 -3
- package/dist/chunks/agents-0.6.13-v7mba2z1.mjs +0 -110
- package/dist/chunks/api-0.6.13-1s3mg09p.mjs +0 -1
- package/dist/chunks/asciicast-0.6.13-3mbwg05w.mjs +0 -1
- package/dist/chunks/assistant-0.6.13-bg17bbaf.mjs +0 -1
- package/dist/chunks/auth-0.6.13-586trvnj.mjs +0 -1
- package/dist/chunks/auth-0.6.13-jkzs3jr4.mjs +0 -1
- package/dist/chunks/autoMode-0.6.13-9sxgpw8z.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.13-0rtsfmyq.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.13-dfn3gpk2.mjs +0 -1
- package/dist/chunks/branch-0.6.13-nncg27cq.mjs +0 -4
- package/dist/chunks/bridge-0.6.13-p1vtbdeq.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.13-99p1h4gg.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.13-jxfgwjry.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.13-fthkw7s3.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.13-zs37h6xx.mjs +0 -1
- package/dist/chunks/btw-0.6.13-hhztcxbv.mjs +0 -1
- package/dist/chunks/buddy-0.6.13-0j9feqm5.mjs +0 -3
- package/dist/chunks/cacache-0.6.13-kqpn2432.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.13-d98620ds.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.13-yktwg0rm.mjs +0 -4
- package/dist/chunks/caches-0.6.13-5s0az6ex.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.13-ecqnvr2j.mjs +0 -1
- package/dist/chunks/claudemd-0.6.13-yae0af2s.mjs +0 -1
- package/dist/chunks/clear-0.6.13-nqy8a9yn.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.13-72xf6n5m.mjs +0 -1
- package/dist/chunks/cli-0.6.13-004msxtb.mjs +0 -2
- package/dist/chunks/cli-0.6.13-03nk0m3d.mjs +0 -24
- package/dist/chunks/cli-0.6.13-05yxsqtw.mjs +0 -2
- package/dist/chunks/cli-0.6.13-0602v59h.mjs +0 -2
- package/dist/chunks/cli-0.6.13-0fqa9efa.mjs +0 -2
- package/dist/chunks/cli-0.6.13-0k53jyws.mjs +0 -2
- package/dist/chunks/cli-0.6.13-0q2ceerc.mjs +0 -2
- package/dist/chunks/cli-0.6.13-0xg54q0q.mjs +0 -3
- package/dist/chunks/cli-0.6.13-15925v1q.mjs +0 -2
- package/dist/chunks/cli-0.6.13-17fmkp6v.mjs +0 -3
- package/dist/chunks/cli-0.6.13-1ax2v1qb.mjs +0 -24
- package/dist/chunks/cli-0.6.13-1hj4de9z.mjs +0 -18
- package/dist/chunks/cli-0.6.13-1jhzkjnr.mjs +0 -2
- package/dist/chunks/cli-0.6.13-1pb6yp4f.mjs +0 -2
- package/dist/chunks/cli-0.6.13-27ey3345.mjs +0 -17
- package/dist/chunks/cli-0.6.13-2999v1f0.mjs +0 -5
- package/dist/chunks/cli-0.6.13-2d7gmnka.mjs +0 -2
- package/dist/chunks/cli-0.6.13-2k50jqzf.mjs +0 -2
- package/dist/chunks/cli-0.6.13-2s33ahe4.mjs +0 -5420
- package/dist/chunks/cli-0.6.13-31zhsxsz.mjs +0 -2
- package/dist/chunks/cli-0.6.13-35rszksn.mjs +0 -2
- package/dist/chunks/cli-0.6.13-3812a7q8.mjs +0 -34
- package/dist/chunks/cli-0.6.13-3c8w16xp.mjs +0 -3
- package/dist/chunks/cli-0.6.13-3w1r3c0v.mjs +0 -2
- package/dist/chunks/cli-0.6.13-45x35nyh.mjs +0 -2
- package/dist/chunks/cli-0.6.13-46hqxeb7.mjs +0 -2
- package/dist/chunks/cli-0.6.13-4hknb5dd.mjs +0 -2
- package/dist/chunks/cli-0.6.13-50wr9g3w.mjs +0 -2
- package/dist/chunks/cli-0.6.13-56b3061c.mjs +0 -18
- package/dist/chunks/cli-0.6.13-56j5q7d2.mjs +0 -42
- package/dist/chunks/cli-0.6.13-5gh7ptbm.mjs +0 -4
- package/dist/chunks/cli-0.6.13-5qvssn7h.mjs +0 -2
- package/dist/chunks/cli-0.6.13-5t9gd5mv.mjs +0 -2
- package/dist/chunks/cli-0.6.13-643zsnv9.mjs +0 -2
- package/dist/chunks/cli-0.6.13-667dsr1w.mjs +0 -2
- package/dist/chunks/cli-0.6.13-77hs0qtg.mjs +0 -2
- package/dist/chunks/cli-0.6.13-79mne5jt.mjs +0 -2
- package/dist/chunks/cli-0.6.13-7c9n56f7.mjs +0 -2
- package/dist/chunks/cli-0.6.13-7ga8d4j1.mjs +0 -2
- package/dist/chunks/cli-0.6.13-7pva2mmr.mjs +0 -3
- package/dist/chunks/cli-0.6.13-7vd0kdw5.mjs +0 -2
- package/dist/chunks/cli-0.6.13-82datd4w.mjs +0 -2
- package/dist/chunks/cli-0.6.13-86pqnjyd.mjs +0 -2
- package/dist/chunks/cli-0.6.13-881js45c.mjs +0 -2
- package/dist/chunks/cli-0.6.13-8t0ttrk7.mjs +0 -2
- package/dist/chunks/cli-0.6.13-8ws8a2xy.mjs +0 -3
- package/dist/chunks/cli-0.6.13-949racwr.mjs +0 -7
- package/dist/chunks/cli-0.6.13-94nwan0d.mjs +0 -2
- package/dist/chunks/cli-0.6.13-97cs7c2r.mjs +0 -2
- package/dist/chunks/cli-0.6.13-9h9fp7zs.mjs +0 -2
- package/dist/chunks/cli-0.6.13-9wktvaax.mjs +0 -50
- package/dist/chunks/cli-0.6.13-ac8nyfp1.mjs +0 -58
- package/dist/chunks/cli-0.6.13-aekttw5a.mjs +0 -2
- package/dist/chunks/cli-0.6.13-ajc8203j.mjs +0 -2
- package/dist/chunks/cli-0.6.13-axsf5w7q.mjs +0 -2
- package/dist/chunks/cli-0.6.13-aztg2ca1.mjs +0 -2
- package/dist/chunks/cli-0.6.13-b3zncvcq.mjs +0 -16
- package/dist/chunks/cli-0.6.13-b55baxv4.mjs +0 -2
- package/dist/chunks/cli-0.6.13-bthkgbv5.mjs +0 -2
- package/dist/chunks/cli-0.6.13-c3452432.mjs +0 -5
- package/dist/chunks/cli-0.6.13-cc118njq.mjs +0 -2
- package/dist/chunks/cli-0.6.13-cc2eb8bm.mjs +0 -2
- package/dist/chunks/cli-0.6.13-cwm0q4km.mjs +0 -2
- package/dist/chunks/cli-0.6.13-cxnnt8b1.mjs +0 -2
- package/dist/chunks/cli-0.6.13-d2rfg5mp.mjs +0 -2
- package/dist/chunks/cli-0.6.13-da6fhpes.mjs +0 -133
- package/dist/chunks/cli-0.6.13-dada1afp.mjs +0 -6
- package/dist/chunks/cli-0.6.13-dayy1aa4.mjs +0 -2
- package/dist/chunks/cli-0.6.13-dh1skxhh.mjs +0 -2
- package/dist/chunks/cli-0.6.13-dvfmqzm9.mjs +0 -2
- package/dist/chunks/cli-0.6.13-e1t2dda2.mjs +0 -2
- package/dist/chunks/cli-0.6.13-ea52zrzt.mjs +0 -2
- package/dist/chunks/cli-0.6.13-eaev9cr7.mjs +0 -2
- package/dist/chunks/cli-0.6.13-erzcm5hv.mjs +0 -2
- package/dist/chunks/cli-0.6.13-esv4y00y.mjs +0 -2
- package/dist/chunks/cli-0.6.13-etytm730.mjs +0 -2
- package/dist/chunks/cli-0.6.13-ew05qjsa.mjs +0 -4
- package/dist/chunks/cli-0.6.13-f58v0vk7.mjs +0 -6
- package/dist/chunks/cli-0.6.13-f67v536f.mjs +0 -59
- package/dist/chunks/cli-0.6.13-f6qwz2h0.mjs +0 -2
- package/dist/chunks/cli-0.6.13-fkaxh655.mjs +0 -2
- package/dist/chunks/cli-0.6.13-fspszw8w.mjs +0 -2
- package/dist/chunks/cli-0.6.13-fw6m0fbm.mjs +0 -10
- package/dist/chunks/cli-0.6.13-fxj1zytn.mjs +0 -2
- package/dist/chunks/cli-0.6.13-fy3vgkpz.mjs +0 -2
- package/dist/chunks/cli-0.6.13-fzzdrhms.mjs +0 -4
- package/dist/chunks/cli-0.6.13-g65dfg11.mjs +0 -6
- package/dist/chunks/cli-0.6.13-gkfcc3c2.mjs +0 -2
- package/dist/chunks/cli-0.6.13-gpb93cvz.mjs +0 -2
- package/dist/chunks/cli-0.6.13-grrshx1z.mjs +0 -2
- package/dist/chunks/cli-0.6.13-gsfs6kre.mjs +0 -2
- package/dist/chunks/cli-0.6.13-gyq9mepg.mjs +0 -2
- package/dist/chunks/cli-0.6.13-h3ymv3nd.mjs +0 -2
- package/dist/chunks/cli-0.6.13-h5dej6se.mjs +0 -3
- package/dist/chunks/cli-0.6.13-hd0sd535.mjs +0 -193
- package/dist/chunks/cli-0.6.13-hp0r1ftj.mjs +0 -12
- package/dist/chunks/cli-0.6.13-hx71w6e6.mjs +0 -3
- package/dist/chunks/cli-0.6.13-hxfvksxq.mjs +0 -2
- package/dist/chunks/cli-0.6.13-j6mr3jmk.mjs +0 -4
- package/dist/chunks/cli-0.6.13-jhhmjq66.mjs +0 -133
- package/dist/chunks/cli-0.6.13-jjx7jq0w.mjs +0 -2
- package/dist/chunks/cli-0.6.13-jmzvtd06.mjs +0 -2
- package/dist/chunks/cli-0.6.13-jrdsk8wb.mjs +0 -3
- package/dist/chunks/cli-0.6.13-k0kyv254.mjs +0 -2
- package/dist/chunks/cli-0.6.13-kd5h1s1s.mjs +0 -2
- package/dist/chunks/cli-0.6.13-kdm4832x.mjs +0 -2
- package/dist/chunks/cli-0.6.13-kekrwb08.mjs +0 -45
- package/dist/chunks/cli-0.6.13-kmg491hy.mjs +0 -2
- package/dist/chunks/cli-0.6.13-kqq5n5q3.mjs +0 -12
- package/dist/chunks/cli-0.6.13-kxjmrbfd.mjs +0 -3
- package/dist/chunks/cli-0.6.13-m4pb5k9v.mjs +0 -2
- package/dist/chunks/cli-0.6.13-me17wefv.mjs +0 -2
- package/dist/chunks/cli-0.6.13-mreqrsw2.mjs +0 -2
- package/dist/chunks/cli-0.6.13-mt7jkjdp.mjs +0 -39
- package/dist/chunks/cli-0.6.13-mxr0y1kd.mjs +0 -2
- package/dist/chunks/cli-0.6.13-n4qwe0a1.mjs +0 -2
- package/dist/chunks/cli-0.6.13-n67mrj2g.mjs +0 -15
- package/dist/chunks/cli-0.6.13-n9fz7y3a.mjs +0 -4
- package/dist/chunks/cli-0.6.13-nqd696hv.mjs +0 -2
- package/dist/chunks/cli-0.6.13-nvcr131g.mjs +0 -4
- package/dist/chunks/cli-0.6.13-p02kfjzd.mjs +0 -8
- package/dist/chunks/cli-0.6.13-p2k33k0d.mjs +0 -2
- package/dist/chunks/cli-0.6.13-p5xafpx4.mjs +0 -3
- package/dist/chunks/cli-0.6.13-pa4yv2ra.mjs +0 -2
- package/dist/chunks/cli-0.6.13-pbk4h5n3.mjs +0 -3
- package/dist/chunks/cli-0.6.13-pezf5r7h.mjs +0 -2
- package/dist/chunks/cli-0.6.13-pmwrb4jf.mjs +0 -2
- package/dist/chunks/cli-0.6.13-prh9py3z.mjs +0 -2
- package/dist/chunks/cli-0.6.13-pyh5s43x.mjs +0 -2
- package/dist/chunks/cli-0.6.13-q161snt1.mjs +0 -2
- package/dist/chunks/cli-0.6.13-q2ssb82w.mjs +0 -2
- package/dist/chunks/cli-0.6.13-q4spcjyn.mjs +0 -2
- package/dist/chunks/cli-0.6.13-q8qzja14.mjs +0 -2
- package/dist/chunks/cli-0.6.13-qbn7xx3z.mjs +0 -2
- package/dist/chunks/cli-0.6.13-qemvn3t7.mjs +0 -4
- package/dist/chunks/cli-0.6.13-qfh8s56n.mjs +0 -2
- package/dist/chunks/cli-0.6.13-qj9zpvjy.mjs +0 -2
- package/dist/chunks/cli-0.6.13-qtea9rcg.mjs +0 -2
- package/dist/chunks/cli-0.6.13-qyd73z97.mjs +0 -2
- package/dist/chunks/cli-0.6.13-r043ksv1.mjs +0 -1
- package/dist/chunks/cli-0.6.13-r1exgbp8.mjs +0 -4
- package/dist/chunks/cli-0.6.13-r2w3m6g9.mjs +0 -2
- package/dist/chunks/cli-0.6.13-r4z5mchw.mjs +0 -2
- package/dist/chunks/cli-0.6.13-r7gkf1df.mjs +0 -2
- package/dist/chunks/cli-0.6.13-rkm2drsy.mjs +0 -6
- package/dist/chunks/cli-0.6.13-s2vxndky.mjs +0 -2
- package/dist/chunks/cli-0.6.13-s3r638fw.mjs +0 -2
- package/dist/chunks/cli-0.6.13-s9rv2pr3.mjs +0 -4
- package/dist/chunks/cli-0.6.13-sa8gmxxv.mjs +0 -3
- package/dist/chunks/cli-0.6.13-t5bkdhfz.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tbg0cceg.mjs +0 -15
- package/dist/chunks/cli-0.6.13-tecj2x0d.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tfaydn5r.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tj2kvtza.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tss2yk53.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tvy6tmhe.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tyd40vcz.mjs +0 -2
- package/dist/chunks/cli-0.6.13-tzsj5e1c.mjs +0 -17
- package/dist/chunks/cli-0.6.13-v05nfcar.mjs +0 -2
- package/dist/chunks/cli-0.6.13-v160yjcc.mjs +0 -2
- package/dist/chunks/cli-0.6.13-v2vt3snq.mjs +0 -2
- package/dist/chunks/cli-0.6.13-v7kg9gbp.mjs +0 -2
- package/dist/chunks/cli-0.6.13-v824ppa4.mjs +0 -3
- package/dist/chunks/cli-0.6.13-v83qp6b0.mjs +0 -2
- package/dist/chunks/cli-0.6.13-v8ksdm64.mjs +0 -2
- package/dist/chunks/cli-0.6.13-vkbwqnxx.mjs +0 -2
- package/dist/chunks/cli-0.6.13-vv2qqj0d.mjs +0 -2
- package/dist/chunks/cli-0.6.13-vxq8z40t.mjs +0 -2
- package/dist/chunks/cli-0.6.13-w039mymy.mjs +0 -2
- package/dist/chunks/cli-0.6.13-w0qrn825.mjs +0 -2
- package/dist/chunks/cli-0.6.13-w1jqswyq.mjs +0 -2
- package/dist/chunks/cli-0.6.13-w91d8mwx.mjs +0 -2
- package/dist/chunks/cli-0.6.13-waf5mvv3.mjs +0 -5
- package/dist/chunks/cli-0.6.13-wer1zp9j.mjs +0 -20
- package/dist/chunks/cli-0.6.13-wtc8585b.mjs +0 -2
- package/dist/chunks/cli-0.6.13-x28t8s6n.mjs +0 -2
- package/dist/chunks/cli-0.6.13-xc81kqm2.mjs +0 -2
- package/dist/chunks/cli-0.6.13-xdedyafk.mjs +0 -12
- package/dist/chunks/cli-0.6.13-xf37gba3.mjs +0 -21
- package/dist/chunks/cli-0.6.13-xkw3qe38.mjs +0 -2
- package/dist/chunks/cli-0.6.13-xpjrhgmy.mjs +0 -2
- package/dist/chunks/cli-0.6.13-y1j0jnkt.mjs +0 -2
- package/dist/chunks/cli-0.6.13-y20earfr.mjs +0 -2
- package/dist/chunks/cli-0.6.13-y4v6kta5.mjs +0 -2
- package/dist/chunks/cli-0.6.13-y6xnb20z.mjs +0 -28
- package/dist/chunks/cli-0.6.13-y8bhbkcr.mjs +0 -2
- package/dist/chunks/cli-0.6.13-yamxpaqw.mjs +0 -67
- package/dist/chunks/cli-0.6.13-ykg1yrfj.mjs +0 -2
- package/dist/chunks/cli-0.6.13-yrjy4at4.mjs +0 -2
- package/dist/chunks/cli-0.6.13-ytn0a18c.mjs +0 -2
- package/dist/chunks/cli-0.6.13-ywdbvmgd.mjs +0 -2
- package/dist/chunks/cli-0.6.13-z8s5yfv6.mjs +0 -9
- package/dist/chunks/cli-0.6.13-zcy8dsbx.mjs +0 -25
- package/dist/chunks/cli-0.6.13-zd9jp62z.mjs +0 -15
- package/dist/chunks/cli-0.6.13-ze0ah657.mjs +0 -4
- package/dist/chunks/cli-0.6.13-zktd03aq.mjs +0 -2
- package/dist/chunks/cli-0.6.13-zw3t7bxg.mjs +0 -2
- package/dist/chunks/client-0.6.13-apag8p3w.mjs +0 -1
- package/dist/chunks/color-0.6.13-m7e3xes9.mjs +0 -1
- package/dist/chunks/compact-0.6.13-064k380y.mjs +0 -3
- package/dist/chunks/config-0.6.13-2gskfa7r.mjs +0 -1
- package/dist/chunks/config-0.6.13-m7tbch3j.mjs +0 -1
- package/dist/chunks/constants-0.6.13-bq183whd.mjs +0 -1
- package/dist/chunks/context-0.6.13-4jm66js8.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.13-2c2pa7c4.mjs +0 -1
- package/dist/chunks/conversation-0.6.13-gb8qd0a6.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.13-sdz00vtr.mjs +0 -1
- package/dist/chunks/copy-0.6.13-11ksdws3.mjs +0 -9
- package/dist/chunks/cost-0.6.13-ht9hjse5.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.13-9nj8wxrq.mjs +0 -1
- package/dist/chunks/createSession-0.6.13-zx0ak0ar.mjs +0 -1
- package/dist/chunks/debug-0.6.13-1b2b2vfp.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.13-4ypccnwe.mjs +0 -1367
- package/dist/chunks/desktop-0.6.13-5jae65dg.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.13-e3va8684.mjs +0 -1
- package/dist/chunks/detection-0.6.13-5kdd4ryt.mjs +0 -1
- package/dist/chunks/diff-0.6.13-3qr723e3.mjs +0 -1
- package/dist/chunks/doctor-0.6.13-ykby6vex.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.13-m5tnyxr2.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.13-e90ax06h.mjs +0 -1
- package/dist/chunks/effort-0.6.13-tqkv5tt7.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.13-m8pp5emf.mjs +0 -1
- package/dist/chunks/envUtils-0.6.13-6q29pewb.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.13-ajfa3pm0.mjs +0 -1
- package/dist/chunks/environments-0.6.13-gpjjpygt.mjs +0 -1
- package/dist/chunks/errors-0.6.13-amqhpv1w.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.13-yscjfr02.mjs +0 -1
- package/dist/chunks/exit-0.6.13-aex1mh9r.mjs +0 -1
- package/dist/chunks/explorer-0.6.13-g670396m.mjs +0 -1
- package/dist/chunks/export-0.6.13-zytxcpn5.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.13-js9s3mpg.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.13-1y21hfpz.mjs +0 -1
- package/dist/chunks/fast-0.6.13-eqx76m6v.mjs +0 -1
- package/dist/chunks/feedback-0.6.13-b2yh5zgv.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.13-29x54d6r.mjs +0 -1
- package/dist/chunks/git-0.6.13-r45r70q4.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.13-3saqxp80.mjs +0 -1
- package/dist/chunks/goal-0.6.13-jm5f9y8r.mjs +0 -4
- package/dist/chunks/grove-0.6.13-9vr9ry8t.mjs +0 -1
- package/dist/chunks/growthbook-0.6.13-r6367yym.mjs +0 -1
- package/dist/chunks/headless-0.6.13-gfageb5h.mjs +0 -2
- package/dist/chunks/heapdump-0.6.13-m8g832m5.mjs +0 -6
- package/dist/chunks/help-0.6.13-781b4zzf.mjs +0 -1
- package/dist/chunks/hookChains-0.6.13-ztaa33k2.mjs +0 -3
- package/dist/chunks/hooks-0.6.13-2vp3h6tg.mjs +0 -1
- package/dist/chunks/hooks-0.6.13-ma0g96bd.mjs +0 -79
- package/dist/chunks/ide-0.6.13-ev74eqfz.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.13-1yfk6729.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.13-15y4n0ap.mjs +0 -1
- package/dist/chunks/index-0.6.13-22g8yp33.mjs +0 -1
- package/dist/chunks/index-0.6.13-3d9rd6ba.mjs +0 -1
- package/dist/chunks/index-0.6.13-3yrze12y.mjs +0 -2
- package/dist/chunks/index-0.6.13-4mx71hjt.mjs +0 -2
- package/dist/chunks/index-0.6.13-68g8rnf9.mjs +0 -1
- package/dist/chunks/index-0.6.13-6t8yz88d.mjs +0 -1
- package/dist/chunks/index-0.6.13-af1dgcmj.mjs +0 -1
- package/dist/chunks/index-0.6.13-afmvxwx2.mjs +0 -1
- package/dist/chunks/index-0.6.13-by0wfak3.mjs +0 -9
- package/dist/chunks/index-0.6.13-cx9jy8c2.mjs +0 -1
- package/dist/chunks/index-0.6.13-fd4kgsd2.mjs +0 -1
- package/dist/chunks/index-0.6.13-jte6phkv.mjs +0 -1
- package/dist/chunks/index-0.6.13-m632g3gy.mjs +0 -1
- package/dist/chunks/index-0.6.13-mwpm4arf.mjs +0 -5
- package/dist/chunks/index-0.6.13-nwvcwdkk.mjs +0 -30
- package/dist/chunks/index-0.6.13-nwy6gtkk.mjs +0 -1
- package/dist/chunks/index-0.6.13-ptnyngf8.mjs +0 -1
- package/dist/chunks/index-0.6.13-q3shbg14.mjs +0 -1
- package/dist/chunks/index-0.6.13-qbgadtxv.mjs +0 -1
- package/dist/chunks/index-0.6.13-sv4q66cp.mjs +0 -1
- package/dist/chunks/index-0.6.13-waxz0ekk.mjs +0 -1
- package/dist/chunks/index-0.6.13-why7ggz3.mjs +0 -9
- package/dist/chunks/index-0.6.13-y16k48ab.mjs +0 -1
- package/dist/chunks/init-0.6.13-4hnytb22.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.13-7zgngybp.mjs +0 -1
- package/dist/chunks/ink-0.6.13-tzqbb17q.mjs +0 -1
- package/dist/chunks/insights-0.6.13-jydg844c.mjs +0 -870
- package/dist/chunks/install-0.6.13-n2sd9y79.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.13-e0f07703.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.13-bf4yjq6t.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.13-adfxdg5f.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.13-xp328y9v.mjs +0 -1
- package/dist/chunks/keybindings-0.6.13-ktc3mjr7.mjs +0 -2
- package/dist/chunks/knowledge-0.6.13-187esqxd.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.13-m4bhcjqa.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.13-6zpt11ke.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.13-828skfe0.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.13-aft854e2.mjs +0 -1
- package/dist/chunks/log-0.6.13-k8w72xt1.mjs +0 -1
- package/dist/chunks/main-0.6.13-g9fjc6sv.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.13-gqrx16t7.mjs +0 -1
- package/dist/chunks/mcp-0.6.13-dyg98wmq.mjs +0 -1
- package/dist/chunks/mcp-0.6.13-mzkm1215.mjs +0 -4
- package/dist/chunks/mcp-0.6.13-zkt6y77x.mjs +0 -17
- package/dist/chunks/mcpb-0.6.13-dre8w2ra.mjs +0 -1
- package/dist/chunks/memory-0.6.13-atsckryz.mjs +0 -3
- package/dist/chunks/model-0.6.13-0atttv57.mjs +0 -1
- package/dist/chunks/model-0.6.13-2jvx0cgc.mjs +0 -2
- package/dist/chunks/node-0.6.13-x2bbeer9.mjs +0 -12
- package/dist/chunks/oauth-0.6.13-57mmwqmy.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.13-yb751f6g.mjs +0 -14
- package/dist/chunks/output-style-0.6.13-m28me769.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.13-dfhez176.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.13-6ckj0vmf.mjs +0 -1
- package/dist/chunks/parser-0.6.13-cmp0vgjm.mjs +0 -1
- package/dist/chunks/passes-0.6.13-q60h610m.mjs +0 -1
- package/dist/chunks/permissions-0.6.13-9cf5bca2.mjs +0 -3
- package/dist/chunks/permissions-0.6.13-nqms1fh9.mjs +0 -1
- package/dist/chunks/plan-0.6.13-jnph14bx.mjs +0 -1
- package/dist/chunks/plist-0.6.13-fwm9pvp5.mjs +0 -1
- package/dist/chunks/plugin-0.6.13-4hpbymfw.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.13-yftpxhh1.mjs +0 -1
- package/dist/chunks/plugins-0.6.13-jkptkxsv.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.13-jxg6wxk8.mjs +0 -2
- package/dist/chunks/print-0.6.13-7cpe5d4z.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.13-5a5rxfdv.mjs +0 -1
- package/dist/chunks/process-0.6.13-38dsvzca.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.13-2hx0q8zw.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.13-5r7afr4g.mjs +0 -9
- package/dist/chunks/prompt-0.6.13-pafq1qab.mjs +0 -1
- package/dist/chunks/prompt-0.6.13-y81g0m1b.mjs +0 -1
- package/dist/chunks/prompts-0.6.13-702ak30b.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.13-t8f8haqj.mjs +0 -13
- package/dist/chunks/provider-0.6.13-2sx115qq.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.13-f8x8hr6k.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.13-tf07v3tj.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.13-aensbess.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.13-656h79d4.mjs +0 -34
- package/dist/chunks/registry-0.6.13-pstf339a.mjs +0 -1
- package/dist/chunks/release-notes-0.6.13-hrppyszt.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.13-je6wrn33.mjs +0 -2
- package/dist/chunks/remote-env-0.6.13-z246d03z.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.13-ynnqhw07.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.13-mv8v6s9c.mjs +0 -1
- package/dist/chunks/rename-0.6.13-xpt0c85z.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.13-rrpbzf13.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.13-waeszqvx.mjs +0 -1
- package/dist/chunks/resume-0.6.13-sr7y57a2.mjs +0 -2
- package/dist/chunks/rewind-0.6.13-8czd98jc.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.13-9h4cq5pq.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.13-hs1rvj4e.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.13-8j9r0wf9.mjs +0 -1
- package/dist/chunks/session-0.6.13-83jr96cj.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.13-wvzp1v01.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.13-4fkbba35.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.13-rswa4zsd.mjs +0 -1
- package/dist/chunks/settings-0.6.13-6t3fk1ch.mjs +0 -1
- package/dist/chunks/setup-0.6.13-q8jrvatq.mjs +0 -5
- package/dist/chunks/sinks-0.6.13-zatt5gaw.mjs +0 -1
- package/dist/chunks/skills-0.6.13-3c0whjxb.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.13-cphqp37f.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.13-hstp7str.mjs +0 -1
- package/dist/chunks/state-0.6.13-257cjw4h.mjs +0 -1
- package/dist/chunks/stats-0.6.13-cg0xacnc.mjs +0 -6
- package/dist/chunks/status-0.6.13-cefspgtr.mjs +0 -1
- package/dist/chunks/stickers-0.6.13-6e4t4ej1.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.13-am2fa4tp.mjs +0 -1
- package/dist/chunks/tasks-0.6.13-2v9gfhwe.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.13-nesaxh5h.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.13-s8fahdkf.mjs +0 -1
- package/dist/chunks/teleport-0.6.13-15chrxd3.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.13-45tchntj.mjs +0 -1
- package/dist/chunks/theme-0.6.13-xzb35tqq.mjs +0 -1
- package/dist/chunks/thinkback-0.6.13-t9v5q33p.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.13-3zft02zv.mjs +0 -1
- package/dist/chunks/toolPool-0.6.13-v9s7e0g9.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.13-yx9rjn17.mjs +0 -1
- package/dist/chunks/tools-0.6.13-heefxcxe.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.13-x08npyhs.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.13-tqfk5xkj.mjs +0 -69
- package/dist/chunks/types-0.6.13-26eegce9.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.13-pg8b86h2.mjs +0 -4
- package/dist/chunks/update-0.6.13-tj94pp6r.mjs +0 -86
- package/dist/chunks/upgrade-0.6.13-3qy3gqyq.mjs +0 -1
- package/dist/chunks/upload-0.6.13-jgydpvy4.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.13-3jmepw2f.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.13-cqr9xp6y.mjs +0 -1
- package/dist/chunks/usage-0.6.13-whrgny68.mjs +0 -1
- package/dist/chunks/util-0.6.13-dcwcf9pm.mjs +0 -1
- package/dist/chunks/utils-0.6.13-jybbphy0.mjs +0 -1
- package/dist/chunks/vim-0.6.13-rt1g3nw1.mjs +0 -1
- package/dist/chunks/watcher-0.6.13-jr5jxn5j.mjs +0 -1
- package/dist/chunks/wiki-0.6.13-pt6cr77j.mjs +0 -132
- package/dist/chunks/worktree-0.6.13-efnvp677.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.13-zdfe46d8.mjs +0 -1
- package/dist/chunks/wrapper-0.6.13-w672jy5j.mjs +0 -7
- /package/dist/chunks/{cli-0.6.13-s9yqkgwe.mjs → cli-0.7.0-59h7jbfm.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.13-e3h2z83b.mjs → cli-0.7.0-5vszg5ys.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.13-tsz6mx5f.mjs → cli-0.7.0-76wj8x34.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.13-rmzzvjt2.mjs → cli-0.7.0-brqbb2d5.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.13-p839x5sj.mjs → cli-0.7.0-jt2afswt.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.13-h2yxttam.mjs → cli-0.7.0-m9eza7ry.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.13-1dwgndg5.mjs → cli-0.7.0-z555y4ap.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Jn as M,Kn as G,xF as A,zF as O}from"./cli-0.7.0-7g132rdj.mjs";import{RX as U,RZ as W,kZ as w,mZ as d,qZ as v}from"./cli-0.7.0-p9q4x3f1.mjs";import{X1 as i,Y1 as a,Z1 as S}from"./cli-0.7.0-wgy69726.mjs";import{_1 as N}from"./cli-0.7.0-asw5nd1q.mjs";import{Dca as I,Rca as P}from"./cli-0.7.0-h6kfhzzd.mjs";import{Vga as h,Yga as L}from"./cli-0.7.0-0cp32djm.mjs";import{Vpa as b,Zpa as B}from"./cli-0.7.0-8p56ked8.mjs";function V(t){let e=T.c(18),{onDone:g,isStandaloneDialog:D,externalIncludes:r}=t,s;if(e[0]===Symbol.for("react.memo_cache_sentinel"))s=[],e[0]=s;else s=e[0];k.default.useEffect(q,s);let c;if(e[1]!==g)c=(E)=>{if(E==="no")h("tengu_claude_md_external_includes_dialog_declined",{}),I($);else h("tengu_claude_md_external_includes_dialog_accepted",{}),I(Y);g()},e[1]=g,e[2]=c;else c=e[2];let l=c,u;if(e[3]!==l)u=()=>{l("no")},e[3]=l,e[4]=u;else u=e[4];let y=u,C=!D,x=!D,m;if(e[5]===Symbol.for("react.memo_cache_sentinel"))m=i(d,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),e[5]=m;else m=e[5];let o;if(e[6]!==r)o=r&&r.length>0&&a(w,{flexDirection:"column",children:[i(d,{dimColor:!0,children:"External imports:"}),r.map(R)]}),e[6]=r,e[7]=o;else o=e[7];let p;if(e[8]===Symbol.for("react.memo_cache_sentinel"))p=a(d,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",i(v,{url:"https://code.claude.com/docs/en/security"})," "]}),e[8]=p;else p=e[8];let f;if(e[9]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],e[9]=f;else f=e[9];let n;if(e[10]!==l)n=i(A,{options:f,onChange:(E)=>l(E)}),e[10]=l,e[11]=n;else n=e[11];let _;if(e[12]!==y||e[13]!==n||e[14]!==C||e[15]!==x||e[16]!==o)_=a(M,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:y,hideBorder:C,hideInputGuide:x,children:[m,o,p,n]}),e[12]=y,e[13]=n,e[14]=C,e[15]=x,e[16]=o,e[17]=_;else _=e[17];return _}function R(t,e){return a(d,{dimColor:!0,children:[" ",t.path]},e)}function Y(t){return{...t,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function $(t){return{...t,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function q(){h("tengu_claude_md_includes_dialog_shown",{})}var T,k;var z=B(()=>{L();W();P();O();G();S();T=b(U(),1),k=b(N(),1)});
|
|
2
|
+
export{V as Bg,z as Cg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xc as z,Yc as K}from"./cli-0.7.0-dyhamqem.mjs";import{UI as w,WI as J}from"./cli-0.7.0-7g132rdj.mjs";import{_1 as H}from"./cli-0.7.0-asw5nd1q.mjs";import{Vpa as E,Zpa as G}from"./cli-0.7.0-8p56ked8.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
|
|
2
|
+
export{V as Tc,N as Uc};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Bg as Rq,Cg as fY}from"./cli-0.7.0-83nm3wtf.mjs";import{Dg as UQ,Fg as BQ,Gg as zX}from"./cli-0.7.0-d6h4eqtj.mjs";import{Tg as IJ,Ug as IY,Vg as Nq,Wg as EY}from"./cli-0.7.0-tvwks6zm.mjs";import{Xg as Fq,Yg as BY}from"./cli-0.7.0-24z25c8v.mjs";import{$g as Pq,Zg as Lq,_g as CY,ah as SY}from"./cli-0.7.0-ewbn59cm.mjs";import{bh as wQ,ch as l0,eh as Oq,fh as Dq}from"./cli-0.7.0-zscdr61q.mjs";import{Gi as MQ,Hi as OX}from"./cli-0.7.0-vzpjsnyh.mjs";import{$y as DX,Bn as Z0,Cn as RY,Dn as C,En as f0,FL as R0,Fn as p,GL as TJ,Gn as XJ,Jn as S0,Kn as FJ,Qn as UJ,TH as Hq,UH as MY,Un as Yq,_y as AQ,bm as LQ,cS as QY,cm as WX,do as LY,fm as PQ,gm as KX,jS as Uq,nF as TZ,nJ as BJ,oF as VY,oJ as AY,pG as YZ,pp as Xq,qG as XZ,qp as PY,rG as GZ,rR as LZ,sG as VZ,sJ as qJ,tG as WZ,tJ as BZ,tS as Bq,uG as KZ,uJ as IZ,uS as Iq,vG as HZ,vJ as EZ,vu as kQ,vv as K0,wG as OZ,wu as n0,wv as Gq,xF as T0,xG as DZ,xv as Vq,yF as YY,yG as zZ,yS as hY,yu as HX,yv as QZ,zF as PZ,zG as nQ}from"./cli-0.7.0-7g132rdj.mjs";import{CT as Wq,DT as Kq,HT as kY}from"./cli-0.7.0-5fx679he.mjs";import{eV as zq,mV as UY}from"./cli-0.7.0-cjxpqpns.mjs";import{BW as V0,CW as v0,PW as l,QW as Qq,RW as w0,UW as CQ,VW as RX,XW as C0,YW as SQ,_W as zJ,bX as TQ,cX as LX}from"./cli-0.7.0-a7rry8ha.mjs";import{$X as Jq,QY as qq,RX as U0,RZ as O0,_X as e0,kZ as B,lY as Zq,mZ as V,pY as NY}from"./cli-0.7.0-p9q4x3f1.mjs";import{W1 as n,X1 as Y,Y1 as H,Z1 as $}from"./cli-0.7.0-wgy69726.mjs";import{_1 as s}from"./cli-0.7.0-asw5nd1q.mjs";import{g2 as lq,h2 as aY}from"./cli-0.7.0-zd1q68sv.mjs";import{E6 as VX,H4 as RQ,L4 as tZ,P2 as NQ,P3 as m0,Q3 as MJ,S3 as oZ,T3 as AJ,T4 as QJ,U2 as GX,V3 as aZ,X4 as eZ,_3 as sZ,h4 as FY,p6 as vJ,w3 as h0,x3 as zY}from"./cli-0.7.0-9jzkqcfv.mjs";import{$6 as KY,_6 as D0}from"./cli-0.7.0-g2ekvm09.mjs";import{Cca as dZ,Cda as Sq,Fda as Tq,Gba as DY,Gca as iZ,Gda as bY,H$ as vZ,Hca as rZ,I$ as pZ,Ida as wq,J$ as cZ,K$ as xZ,Oda as hq,P$ as OY,Qda as bq,Rca as nZ,Tda as yq,Xda as yY,_da as B0,bea as lZ,f8 as H0,g8 as DJ,nea as N0,rba as PJ,tba as x,tca as T,vea as YJ,wba as kJ,wca as S,xca as uZ}from"./cli-0.7.0-h6kfhzzd.mjs";import{Kea as mJ,Lea as $0,Mea as FQ,Rea as VJ,Sea as SJ}from"./cli-0.7.0-twxrndmz.mjs";import{kfa as mZ}from"./cli-0.7.0-tcxmyk2w.mjs";import{Hfa as HY,vfa as _Z}from"./cli-0.7.0-m07xma4d.mjs";import{fga as t0,gga as qZ}from"./cli-0.7.0-v6ceqq5f.mjs";import{Vga as f,Yga as WY}from"./cli-0.7.0-0cp32djm.mjs";import{$ha as Cq,Bha as zQ,Gha as XX,Yha as c0}from"./cli-0.7.0-hrtdae85.mjs";import{Dia as $Z,Fia as fq,Kia as LJ,Nia as jZ}from"./cli-0.7.0-na9s209m.mjs";import{Ala as DQ,Ika as GQ,Jka as VQ,Kka as WQ,cla as KQ,dla as HQ,ooa as ZZ,pla as OQ,pma as RJ,qma as gZ,rka as JZ}from"./cli-0.7.0-x2vc8nds.mjs";import{Vpa as j,Zpa as c}from"./cli-0.7.0-8p56ked8.mjs";function lQ(){let Z=JZ(),Q=LZ(Z)??Y(V,{dimColor:!0,children:"/rename to add a name"});return[{label:"Version",value:"0.7.0"},{label:"Session name",value:Q},{label:"Session ID",value:Z},{label:"cwd",value:t0()},...OZ(),...DZ()]}function oQ({mainLoopModel:Z,mcp:J,theme:Q,context:X}){return[{label:"Model",value:zZ(Z)},...XZ(J.clients,X.options.ideInstallationStatus,Q),...GZ(J.clients,Q),...YZ(),...WZ()]}async function FZ(){return[...await KZ(),...await HZ(),...await VZ()]}function aQ(Z){let J=JJ.c(8),{value:Q}=Z;if(Array.isArray(Q)){let X;if(J[0]!==Q){let O;if(J[2]!==Q.length)O=(R,P)=>H(V,{children:[R,P<Q.length-1?",":""]},P),J[2]=Q.length,J[3]=O;else O=J[3];X=Q.map(O),J[0]=Q,J[1]=X}else X=J[1];let W;if(J[4]!==X)W=Y(B,{flexWrap:"wrap",columnGap:1,flexShrink:99,children:X}),J[4]=X,J[5]=W;else W=J[5];return W}if(typeof Q==="string"){let X;if(J[6]!==Q)X=Y(V,{children:Q}),J[6]=Q,J[7]=X;else X=J[7];return X}return Q}function NZ(Z){let J=JJ.c(20),{context:Q,diagnosticsPromise:X}=Z,W=K0(JY),O=K0(eQ),[R]=e0(),P;if(J[0]===Symbol.for("react.memo_cache_sentinel"))P=lQ(),J[0]=P;else P=J[0];let M;if(J[1]!==Q||J[2]!==W||J[3]!==O||J[4]!==R)M=oQ({mainLoopModel:W,mcp:O,theme:R,context:Q}),J[1]=Q,J[2]=W,J[3]=O,J[4]=R,J[5]=M;else M=J[5];let k;if(J[6]!==M)k=[P,M],J[6]=M,J[7]=k;else k=J[7];let K=k,F=C0()?1:void 0,D;if(J[8]!==K)D=K.map(sQ),J[8]=K,J[9]=D;else D=J[9];let z;if(J[10]!==X)z=Y(ZJ.Suspense,{fallback:null,children:Y(ZY,{promise:X})}),J[10]=X,J[11]=z;else z=J[11];let N;if(J[12]!==F||J[13]!==D||J[14]!==z)N=H(B,{flexDirection:"column",gap:1,flexGrow:F,children:[D,z]}),J[12]=F,J[13]=D,J[14]=z,J[15]=N;else N=J[15];let A;if(J[16]===Symbol.for("react.memo_cache_sentinel"))A=Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})}),J[16]=A;else A=J[16];let U;if(J[17]!==F||J[18]!==N)U=H(B,{flexDirection:"column",flexGrow:F,children:[N,A]}),J[17]=F,J[18]=N,J[19]=U;else U=J[19];return U}function sQ(Z,J){return Z.length>0&&Y(B,{flexDirection:"column",children:Z.map(tQ)},J)}function tQ(Z,J){let{label:Q,value:X}=Z;return H(B,{flexDirection:"row",gap:1,flexShrink:0,children:[Q!==void 0&&H(V,{bold:!0,children:[Q,":"]}),Y(aQ,{value:X})]},J)}function eQ(Z){return Z.mcp}function JY(Z){return Z.mainLoopModel}function ZY(Z){let J=JJ.c(5),{promise:Q}=Z,X=ZJ.use(Q);if(X.length===0)return null;let W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=Y(V,{bold:!0,children:"System Diagnostics"}),J[0]=W;else W=J[0];let O;if(J[1]!==X)O=X.map(qY),J[1]=X,J[2]=O;else O=J[2];let R;if(J[3]!==O)R=H(B,{flexDirection:"column",paddingBottom:1,children:[W,O]}),J[3]=O,J[4]=R;else R=J[4];return R}function qY(Z,J){return H(B,{flexDirection:"row",gap:1,paddingX:1,children:[Y(V,{color:"error",children:H0.warning}),typeof Z==="string"?Y(V,{wrap:"wrap",children:Z}):Z]},J)}var JJ,ZJ;var RZ=c(()=>{DJ();ZZ();zJ();O0();QZ();qZ();QY();nQ();f0();$();JJ=j(U0(),1),ZJ=j(s(),1)});function MZ(Z){let J=kZ.c(17),{currentVersion:Q,onChoice:X}=Z,W;if(J[0]!==X)W=function(U){X(U)},J[0]=X,J[1]=W;else W=J[1];let O=W,R;if(J[2]!==X)R=function(){X("cancel")},J[2]=X,J[3]=R;else R=J[3];let P=R,M;if(J[4]!==Q)M=H(V,{children:["The stable channel may have an older version than what you're currently running (",Q,")."]}),J[4]=Q,J[5]=M;else M=J[5];let k;if(J[6]===Symbol.for("react.memo_cache_sentinel"))k=Y(V,{dimColor:!0,children:"How would you like to handle this?"}),J[6]=k;else k=J[6];let K;if(J[7]===Symbol.for("react.memo_cache_sentinel"))K={label:"Allow possible downgrade to stable version",value:"downgrade"},J[7]=K;else K=J[7];let F=`Stay on current version (${Q}) until stable catches up`,D;if(J[8]!==F)D=[K,{label:F,value:"stay"}],J[8]=F,J[9]=D;else D=J[9];let z;if(J[10]!==O||J[11]!==D)z=Y(T0,{options:D,onChange:O}),J[10]=O,J[11]=D,J[12]=z;else z=J[12];let N;if(J[13]!==P||J[14]!==M||J[15]!==z)N=H(S0,{title:"Switch to Stable Channel",onCancel:P,color:"permission",hideBorder:!0,hideInputGuide:!0,children:[M,k,z]}),J[13]=P,J[14]=M,J[15]=z,J[16]=N;else N=J[16];return N}var kZ;var AZ=c(()=>{O0();PZ();FJ();$();kZ=j(U0(),1)});function UZ(Z){return Object.entries(Z).map(([J,Q])=>({label:Q?.name??XY,value:J,description:Q?.description??GY}))}function CZ(Z){let J=fZ.c(16),{initialStyle:Q,onComplete:X,onCancel:W,isStandaloneCommand:O}=Z,R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=[],J[0]=R;else R=J[0];let[P,M]=_0.useState(R),[k,K]=_0.useState(!0),F,D;if(J[1]===Symbol.for("react.memo_cache_sentinel"))F=()=>{IZ(t0()).then((d)=>{let t=UZ(d);M(t),K(!1)}).catch(()=>{let d=UZ(BZ);M(d),K(!1)})},D=[],J[1]=F,J[2]=D;else F=J[1],D=J[2];_0.useEffect(F,D);let z;if(J[3]!==X)z=(d)=>{X(d)},J[3]=X,J[4]=z;else z=J[4];let N=z,A=!O,U=!O,E;if(J[5]===Symbol.for("react.memo_cache_sentinel"))E=Y(B,{marginTop:1,children:Y(V,{dimColor:!0,children:"This changes how Claudin communicates with you"})}),J[5]=E;else E=J[5];let h;if(J[6]!==N||J[7]!==Q||J[8]!==k||J[9]!==P)h=H(B,{flexDirection:"column",gap:1,children:[E,k?Y(V,{dimColor:!0,children:"Loading output styles…"}):Y(T0,{options:P,onChange:N,visibleOptionCount:10,defaultValue:Q})]}),J[6]=N,J[7]=Q,J[8]=k,J[9]=P,J[10]=h;else h=J[10];let w;if(J[11]!==W||J[12]!==A||J[13]!==U||J[14]!==h)w=Y(S0,{title:"Preferred output style",onCancel:W,hideInputGuide:A,hideBorder:U,children:h}),J[11]=W,J[12]=A,J[13]=U,J[14]=h,J[15]=w;else w=J[15];return w}var fZ,_0,XY="Default",GY="Claudin completes coding tasks efficiently and provides concise responses";var SZ=c(()=>{EZ();O0();qZ();YY();FJ();$();fZ=j(U0(),1),_0=j(s(),1)});function hZ(Z){let J=wZ.c(13),{initialLanguage:Q,onComplete:X,onCancel:W}=Z,[O,R]=NJ.useState(Q),[P,M]=NJ.useState((Q??"").length),k;if(J[0]===Symbol.for("react.memo_cache_sentinel"))k={context:"Settings"},J[0]=k;else k=J[0];l("confirm:no",W,k);let K;if(J[1]!==O||J[2]!==X)K=function(){let w=O?.trim();X(w||void 0)},J[1]=O,J[2]=X,J[3]=K;else K=J[3];let F=K,D;if(J[4]===Symbol.for("react.memo_cache_sentinel"))D=Y(V,{children:"Enter your preferred response and voice language:"}),J[4]=D;else D=J[4];let z;if(J[5]===Symbol.for("react.memo_cache_sentinel"))z=Y(V,{children:H0.pointer}),J[5]=z;else z=J[5];let N=O??"",A;if(J[6]!==P||J[7]!==F||J[8]!==N)A=H(B,{flexDirection:"row",gap:1,children:[z,Y(TZ,{value:N,onChange:R,onSubmit:F,focus:!0,showCursor:!0,placeholder:`e.g., Japanese, 日本語, Español${H0.ellipsis}`,columns:60,cursorOffset:P,onChangeCursorOffset:M})]}),J[6]=P,J[7]=F,J[8]=N,J[9]=A;else A=J[9];let U;if(J[10]===Symbol.for("react.memo_cache_sentinel"))U=Y(V,{dimColor:!0,children:"Leave empty for default (English)"}),J[10]=U;else U=J[10];let E;if(J[11]!==A)E=H(B,{flexDirection:"column",gap:1,children:[D,A,U]}),J[11]=A,J[12]=E;else E=J[12];return E}var wZ,NJ;var bZ=c(()=>{DJ();O0();w0();VY();$();wZ=j(U0(),1),NJ=j(s(),1)});function Mq({onClose:Z,context:J,setTabsHidden:Q,onIsSearchModeChange:X,contentHeight:W}){let{headerFocused:O,focusHeader:R}=Oq(),P=C0(),[,M]=e0(),k=Jq(),[K,F]=g.useState(S()),D=v.useRef(S()),[z,N]=g.useState(kJ()),A=v.useRef(kJ()),[U,E]=g.useState(z?.outputStyle||qJ),h=v.useRef(U),[w,d]=g.useState(z?.language),t=v.useRef(w),[_,F0]=g.useState(0),[i,Q0]=g.useState(0),[r,Y0]=g.useState(!0),j0=qq(),{rows:I0}=V0(),bQ=W??Math.min(Math.floor(I0*0.8),30),X0=Math.max(5,bQ-10),E0=K0((q)=>q.mainLoopModel),yQ=K0((q)=>q.verbose),xJ=K0((q)=>q.thinkingEnabled),uJ=K0((q)=>m0()?q.fastMode:!1),gQ=K0((q)=>q.promptSuggestionEnabled),AX=!1,e=Gq(),[dJ,M0]=g.useState({}),$Q=v.useRef(xJ),[iJ]=g.useState(()=>PJ("localSettings")),[rJ]=g.useState(()=>PJ("userSettings")),nJ=v.useRef(k),jQ=Vq(),[lJ]=g.useState(()=>{let q=jQ.getState();return{mainLoopModel:q.mainLoopModel,mainLoopModelForSession:q.mainLoopModelForSession,verbose:q.verbose,thinkingEnabled:q.thinkingEnabled,fastMode:q.fastMode,promptSuggestionEnabled:q.promptSuggestionEnabled,isBriefOnly:q.isBriefOnly,replBridgeEnabled:q.replBridgeEnabled,replBridgeOutboundOnly:q.replBridgeOutboundOnly,settings:q.settings}}),[KJ]=g.useState(()=>RJ()),J0=v.useRef(!1),[_Q,o0]=g.useState(!1),[m,y]=g.useState(null),{query:A0,setQuery:a0,cursorOffset:mQ}=Pq({isActive:r&&m===null&&!O,onExit:()=>Y0(!1),onExitUp:R,passthroughCtrlKeys:["c","d"]}),oJ=r&&!O;v.useEffect(()=>{X?.(oJ)},[oJ,X]);let vQ=Yq(J.options.mcpClients),pQ=!$Z(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING),aJ=v.use(Uq(!0)),cQ=Iq(aJ),W0=rZ();function sJ(q){f("tengu_config_model_changed",{from_model:E0,to_model:q}),e((L)=>({...L,mainLoopModel:q,mainLoopModelForSession:null})),M0((L)=>{let I=QJ(q)+(Nq(q,!1,tZ())?" · Billed as extra usage":"");if("model"in L){let{model:b,...o}=L;return{...o,model:I}}return{...L,model:I}})}function xQ(q){T((G)=>({...G,verbose:q})),F({...S(),verbose:q}),e((G)=>({...G,verbose:q})),M0((G)=>{if("verbose"in G){let{verbose:L,...I}=G;return I}return{...G,verbose:q}})}let HJ=[{id:"autoCompactEnabled",label:"Auto-compact",value:K.autoCompactEnabled,type:"boolean",onChange(q){T((G)=>({...G,autoCompactEnabled:q})),F({...S(),autoCompactEnabled:q}),f("tengu_auto_compact_setting_changed",{enabled:q})}},{id:"thinkingHistoryRedactionEnabled",label:"Thinking history redaction",value:K.thinkingHistoryRedactionEnabled,type:"boolean",onChange(q){T((G)=>({...G,thinkingHistoryRedactionEnabled:q})),F({...S(),thinkingHistoryRedactionEnabled:q}),f("claudin_thinking_history_redaction_setting_changed",{enabled:q})}},{id:"narrationHistoryRedactionEnabled",label:"Narration history redaction",value:K.narrationHistoryRedactionEnabled,type:"boolean",onChange(q){T((G)=>({...G,narrationHistoryRedactionEnabled:q})),F({...S(),narrationHistoryRedactionEnabled:q}),f("claudin_narration_history_redaction_setting_changed",{enabled:q})}},{id:"showCacheStats",label:"Cache stats display",value:K.showCacheStats,options:["off","compact","full"],type:"enum",onChange(q){let G=q==="off"||q==="compact"||q==="full"?q:"compact";T((L)=>({...L,showCacheStats:G})),F({...S(),showCacheStats:G}),f("tengu_show_cache_stats_setting_changed",{mode:G})}},{id:"toolResultSummarizerEnabled",label:"Tool result summarizer",value:K.toolResultSummarizerEnabled,type:"boolean",onChange(q){T((G)=>({...G,toolResultSummarizerEnabled:q})),F({...S(),toolResultSummarizerEnabled:q}),f("claudin_tool_result_summarizer_setting_changed",{enabled:q})}},{id:"bashOutputFilterEnabled",label:"Bash output filter",value:K.bashOutputFilterEnabled!==!1,type:"boolean",onChange(q){T((G)=>({...G,bashOutputFilterEnabled:q})),F({...S(),bashOutputFilterEnabled:q}),f("claudin_bash_output_filter_setting_changed",{enabled:q})}},{id:"autoBackgroundAgentsEnabled",label:"Auto-background agents",value:K.autoBackgroundAgentsEnabled!==!1,type:"boolean",onChange(q){T((G)=>({...G,autoBackgroundAgentsEnabled:q})),F({...S(),autoBackgroundAgentsEnabled:q}),f("claudin_auto_background_agents_setting_changed",{enabled:q})}},{id:"inlineImagesMode",label:"Inline terminal images",value:K.inlineImagesMode??"auto",options:["auto","enable","disable"],type:"enum",onChange(q){let G=q==="auto"||q==="enable"||q==="disable"?q:"auto";T((L)=>({...L,inlineImagesMode:G})),F({...S(),inlineImagesMode:G}),f("claudin_inline_images_setting_changed",{mode:G})}},{id:"spinnerTipsEnabled",label:"Show tips",value:z?.spinnerTipsEnabled??!0,type:"boolean",onChange(q){x("localSettings",{spinnerTipsEnabled:q}),N((G)=>({...G,spinnerTipsEnabled:q})),f("tengu_tips_setting_changed",{enabled:q})}},{id:"prefersReducedMotion",label:"Reduce motion",value:z?.prefersReducedMotion??!1,type:"boolean",onChange(q){x("localSettings",{prefersReducedMotion:q}),N((G)=>({...G,prefersReducedMotion:q})),e((G)=>({...G,settings:{...G.settings,prefersReducedMotion:q}})),f("tengu_reduce_motion_setting_changed",{enabled:q})}},{id:"thinkingEnabled",label:"Thinking mode",value:xJ??!0,type:"boolean",onChange(q){e((G)=>({...G,thinkingEnabled:q})),x("userSettings",{alwaysThinkingEnabled:q?void 0:!1}),f("tengu_thinking_toggled",{enabled:q})}},...m0()&&MJ()?[{id:"fastMode",label:`Fast mode (${oZ} only)`,value:!!uJ,type:"boolean",onChange(q){if(sZ(),x("userSettings",{fastMode:q?!0:void 0}),q)e((G)=>({...G,mainLoopModel:AJ(),mainLoopModelForSession:null,fastMode:!0})),M0((G)=>({...G,model:AJ(),"Fast mode":"ON"}));else e((G)=>({...G,fastMode:!1})),M0((G)=>({...G,"Fast mode":"OFF"}))}}]:[],{id:"promptSuggestionEnabled",label:"Prompt suggestions",value:gQ,type:"boolean",onChange(q){e((G)=>({...G,promptSuggestionEnabled:q})),x("userSettings",{promptSuggestionEnabled:q?void 0:!1})}},...pQ?[{id:"fileCheckpointingEnabled",label:"Rewind code (checkpoints)",value:K.fileCheckpointingEnabled,type:"boolean",onChange(q){T((G)=>({...G,fileCheckpointingEnabled:q})),F({...S(),fileCheckpointingEnabled:q}),f("tengu_file_history_snapshots_setting_changed",{enabled:q})}}]:[],{id:"verbose",label:"Verbose output",value:yQ,type:"boolean",onChange:xQ},{id:"terminalProgressBarEnabled",label:"Terminal progress bar",value:K.terminalProgressBarEnabled,type:"boolean",onChange(q){T((G)=>({...G,terminalProgressBarEnabled:q})),F({...S(),terminalProgressBarEnabled:q}),f("tengu_terminal_progress_bar_setting_changed",{enabled:q})}},..._Z("tengu_terminal_sidebar",!1)?[{id:"showStatusInTerminalTab",label:"Show status in terminal tab",value:K.showStatusInTerminalTab??!1,type:"boolean",onChange(q){T((G)=>({...G,showStatusInTerminalTab:q})),F({...S(),showStatusInTerminalTab:q}),f("tengu_terminal_tab_status_setting_changed",{enabled:q})}}]:[],{id:"showTurnDuration",label:"Show turn duration",value:K.showTurnDuration,type:"boolean",onChange(q){T((G)=>({...G,showTurnDuration:q})),F({...S(),showTurnDuration:q}),f("tengu_show_turn_duration_setting_changed",{enabled:q})}},{id:"defaultPermissionMode",label:"Default permission mode",value:z?.permissions?.defaultMode||"default",options:(()=>{let q=["default","plan"],G=mZ,L=["bypassPermissions"];return[...q,...G.filter((I)=>!q.includes(I)&&!L.includes(I))]})(),type:"enum",onChange(q){let G=cZ(q),L=vZ(G)?pZ(G):G,I=x("userSettings",{permissions:{...z?.permissions,defaultMode:L}});if(I.error){N0(I.error);return}N((b)=>({...b,permissions:{...b?.permissions,defaultMode:L}})),M0((b)=>({...b,defaultPermissionMode:q})),f("tengu_config_changed",{setting:"defaultPermissionMode",value:q})}},{id:"useAutoModeDuringPlan",label:"Use auto mode during plan",value:z?.useAutoModeDuringPlan??!0,type:"boolean",onChange(q){x("userSettings",{useAutoModeDuringPlan:q}),N((G)=>({...G,useAutoModeDuringPlan:q})),e((G)=>{let L=BJ(G.toolPermissionContext);if(L===G.toolPermissionContext)return G;return{...G,toolPermissionContext:L}}),M0((G)=>({...G,"Use auto mode during plan":q}))}},{id:"respectGitignore",label:"Respect .gitignore in file picker",value:K.respectGitignore,type:"boolean",onChange(q){T((G)=>({...G,respectGitignore:q})),F({...S(),respectGitignore:q}),f("tengu_respect_gitignore_setting_changed",{enabled:q})}},{id:"copyFullResponse",label:"Always copy full response (skip /copy picker)",value:K.copyFullResponse,type:"boolean",onChange(q){T((G)=>({...G,copyFullResponse:q})),F({...S(),copyFullResponse:q}),f("tengu_config_changed",{setting:"copyFullResponse",value:String(q)})}},...Zq()?[{id:"copyOnSelect",label:"Copy on select",value:K.copyOnSelect??!0,type:"boolean",onChange(q){T((G)=>({...G,copyOnSelect:q})),F({...S(),copyOnSelect:q}),f("tengu_config_changed",{setting:"copyOnSelect",value:String(q)})}}]:[],{id:"flickerFreeMode",label:"Flicker-free mode",value:K.flickerFreeMode??!1,type:"boolean",onChange(q){T((G)=>({...G,flickerFreeMode:q})),F({...S(),flickerFreeMode:q}),f("tengu_config_changed",{setting:"flickerFreeMode",value:String(q)})}},W0?{id:"autoUpdatesChannel",label:"Auto-update channel",value:"disabled",type:"managedEnum",onChange(){}}:{id:"autoUpdatesChannel",label:"Auto-update channel",value:z?.autoUpdatesChannel??"latest",type:"managedEnum",onChange(){}},{id:"theme",label:"Theme",value:k,type:"managedEnum",onChange:M},{id:"notifChannel",label:"Notifications",value:K.preferredNotifChannel,options:["auto","iterm2","terminal_bell","iterm2_with_bell","kitty","ghostty","os_native","notifications_disabled"],type:"enum",onChange(q){T((G)=>({...G,preferredNotifChannel:q})),F({...S(),preferredNotifChannel:q})}},{id:"outputStyle",label:"Output style",value:U,type:"managedEnum",onChange:()=>{}},{id:"language",label:"Language",value:w??"Default (English)",type:"managedEnum",onChange:()=>{}},{id:"editorMode",label:"Editor mode",value:K.editorMode==="emacs"?"normal":K.editorMode||"normal",options:["normal","vim"],type:"enum",onChange(q){T((G)=>({...G,editorMode:q})),F({...S(),editorMode:q}),f("tengu_editor_mode_changed",{mode:q,source:"config_panel"})}},{id:"prStatusFooterEnabled",label:"Show PR/MR status footer",value:K.prStatusFooterEnabled??!0,type:"boolean",onChange(q){T((G)=>{if(G.prStatusFooterEnabled===q)return G;return{...G,prStatusFooterEnabled:q}}),F({...S(),prStatusFooterEnabled:q}),f("tengu_pr_status_footer_setting_changed",{enabled:q})}},{id:"model",label:"Model",value:E0===null?"Default (recommended)":E0,type:"managedEnum",onChange:sJ},...vQ?[{id:"diffTool",label:"Diff tool",value:K.diffTool??"auto",options:["terminal","auto"],type:"enum",onChange(q){T((G)=>({...G,diffTool:q})),F({...S(),diffTool:q}),f("tengu_diff_tool_changed",{tool:q,source:"config_panel"})}}]:[],...!UJ()?[{id:"autoConnectIde",label:"Auto-connect to IDE (external terminal)",value:K.autoConnectIde??!1,type:"boolean",onChange(q){T((G)=>({...G,autoConnectIde:q})),F({...S(),autoConnectIde:q}),f("tengu_auto_connect_ide_changed",{enabled:q,source:"config_panel"})}}]:[],...UJ()?[{id:"autoInstallIdeExtension",label:"Auto-install IDE extension",value:K.autoInstallIdeExtension??!0,type:"boolean",onChange(q){T((G)=>({...G,autoInstallIdeExtension:q})),F({...S(),autoInstallIdeExtension:q}),f("tengu_auto_install_ide_extension_changed",{enabled:q,source:"config_panel"})}}]:[],...Xq()?(()=>{let q=Wq();return[{id:"teammateMode",label:q?`Teammate mode [overridden: ${q}]`:"Teammate mode",value:K.teammateMode??"auto",options:["auto","tmux","in-process"],type:"enum",onChange(L){if(L!=="auto"&&L!=="tmux"&&L!=="in-process")return;Kq(L),T((I)=>({...I,teammateMode:L})),F({...S(),teammateMode:L}),f("tengu_teammate_mode_changed",{mode:L})}},{id:"teammateDefaultModel",label:"Default teammate model",value:yZ(K.teammateDefaultModel),type:"managedEnum",onChange(){}}]})():[],...zq()?[{id:"remoteControlAtStartup",label:"Enable Remote Control for all sessions",value:K.remoteControlAtStartup===void 0?"default":String(K.remoteControlAtStartup),options:["true","false","default"],type:"enum",onChange(q){if(q==="default")T((L)=>{if(L.remoteControlAtStartup===void 0)return L;let I={...L};return delete I.remoteControlAtStartup,I}),F({...S(),remoteControlAtStartup:void 0});else{let L=q==="true";T((I)=>{if(I.remoteControlAtStartup===L)return I;return{...I,remoteControlAtStartup:L}}),F({...S(),remoteControlAtStartup:L})}let G=uZ();e((L)=>{if(L.replBridgeEnabled===G&&!L.replBridgeOutboundOnly)return L;return{...L,replBridgeEnabled:G,replBridgeOutboundOnly:!1}})}}]:[],...cQ?[{id:"showExternalIncludesDialog",label:"External CLAUDE.md includes",value:(()=>{if(dZ().hasClaudeMdExternalIncludesApproved)return"true";else return"false"})(),type:"managedEnum",onChange(){}}]:[],...(()=>{let q=B0(),G=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(!G||LJ())return[];return[{id:"apiKey",label:H(V,{children:["Use custom API key:"," ",Y(V,{bold:!0,children:h0(G)})]}),searchText:"Use custom API key",value:Boolean(K.customApiKeyResponses?.approved?.includes(h0(G))),type:"boolean",onChange(L){T((I)=>{let b={...I};if(!b.customApiKeyResponses)b.customApiKeyResponses={approved:[],rejected:[]};if(!b.customApiKeyResponses.approved)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[]};if(!b.customApiKeyResponses.rejected)b.customApiKeyResponses={...b.customApiKeyResponses,rejected:[]};{let o=h0(G);if(L)b.customApiKeyResponses={...b.customApiKeyResponses,approved:[...(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),o],rejected:(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o)};else b.customApiKeyResponses={...b.customApiKeyResponses,approved:(b.customApiKeyResponses.approved??[]).filter((a)=>a!==o),rejected:[...(b.customApiKeyResponses.rejected??[]).filter((a)=>a!==o),o]}}return b}),F(S())}}]})()],G0=v.useMemo(()=>{if(!A0)return HJ;let q=A0.toLowerCase();return HJ.filter((G)=>{if(G.id.toLowerCase().includes(q))return!0;return("searchText"in G?G.searchText:G.label).toLowerCase().includes(q)})},[HJ,A0]);v.useEffect(()=>{if(_>=G0.length){let q=Math.max(0,G0.length-1);F0(q),Q0(Math.max(0,q-X0+1));return}Q0((q)=>{if(_<q)return _;if(_>=q+X0)return _-X0+1;return q})},[G0.length,_,X0]);let uQ=g.useCallback((q)=>{Q0((G)=>{if(q<G)return q;if(q>=G+X0)return q-X0+1;return G})},[X0]),dQ=g.useCallback(()=>{if(m!==null)return;let q=Object.entries(dJ).map(([a,eJ])=>{return f("tengu_config_changed",{key:a,value:eJ}),`Set ${a} to ${D0.bold(eJ)}`}),G=B0(),L=G?.transport==="anthropic"?G.apiKey?.trim():void 0,I=LJ()?void 0:L,b=Boolean(I&&D.current.customApiKeyResponses?.approved?.includes(h0(I))),o=Boolean(I&&K.customApiKeyResponses?.approved?.includes(h0(I)));if(b!==o)q.push(`${o?"Enabled":"Disabled"} custom API key`),f("tengu_config_changed",{key:"env.ANTHROPIC_API_KEY",value:o});if(K.theme!==D.current.theme)q.push(`Set theme to ${D0.bold(K.theme)}`);if(K.preferredNotifChannel!==D.current.preferredNotifChannel)q.push(`Set notifications to ${D0.bold(K.preferredNotifChannel)}`);if(U!==h.current)q.push(`Set output style to ${D0.bold(U)}`);if(w!==t.current)q.push(`Set response language to ${D0.bold(w??"Default (English)")}`);if(K.editorMode!==D.current.editorMode)q.push(`Set editor mode to ${D0.bold(K.editorMode||"emacs")}`);if(K.diffTool!==D.current.diffTool)q.push(`Set diff tool to ${D0.bold(K.diffTool)}`);if(K.autoConnectIde!==D.current.autoConnectIde)q.push(`${K.autoConnectIde?"Enabled":"Disabled"} auto-connect to IDE`);if(K.autoInstallIdeExtension!==D.current.autoInstallIdeExtension)q.push(`${K.autoInstallIdeExtension?"Enabled":"Disabled"} auto-install IDE extension`);if(K.autoCompactEnabled!==D.current.autoCompactEnabled)q.push(`${K.autoCompactEnabled?"Enabled":"Disabled"} auto-compact`);if(K.thinkingHistoryRedactionEnabled!==D.current.thinkingHistoryRedactionEnabled)q.push(`${K.thinkingHistoryRedactionEnabled?"Enabled":"Disabled"} thinking history redaction`);if(K.narrationHistoryRedactionEnabled!==D.current.narrationHistoryRedactionEnabled)q.push(`${K.narrationHistoryRedactionEnabled?"Enabled":"Disabled"} narration history redaction`);if(K.toolResultSummarizerEnabled!==D.current.toolResultSummarizerEnabled)q.push(`${K.toolResultSummarizerEnabled?"Enabled":"Disabled"} tool result summarizer`);if(K.autoBackgroundAgentsEnabled!==D.current.autoBackgroundAgentsEnabled)q.push(`${K.autoBackgroundAgentsEnabled!==!1?"Enabled":"Disabled"} auto-background agents`);if(K.bashOutputFilterEnabled!==D.current.bashOutputFilterEnabled)q.push(`${K.bashOutputFilterEnabled!==!1?"Enabled":"Disabled"} bash output filter`);if(K.respectGitignore!==D.current.respectGitignore)q.push(`${K.respectGitignore?"Enabled":"Disabled"} respect .gitignore in file picker`);if(K.copyFullResponse!==D.current.copyFullResponse)q.push(`${K.copyFullResponse?"Enabled":"Disabled"} always copy full response`);if(K.copyOnSelect!==D.current.copyOnSelect)q.push(`${K.copyOnSelect?"Enabled":"Disabled"} copy on select`);if(K.terminalProgressBarEnabled!==D.current.terminalProgressBarEnabled)q.push(`${K.terminalProgressBarEnabled?"Enabled":"Disabled"} terminal progress bar`);if(K.showStatusInTerminalTab!==D.current.showStatusInTerminalTab)q.push(`${K.showStatusInTerminalTab?"Enabled":"Disabled"} terminal tab status`);if(K.showTurnDuration!==D.current.showTurnDuration)q.push(`${K.showTurnDuration?"Enabled":"Disabled"} turn duration`);if(K.remoteControlAtStartup!==D.current.remoteControlAtStartup){let a=K.remoteControlAtStartup===void 0?"Reset Remote Control to default":`${K.remoteControlAtStartup?"Enabled":"Disabled"} Remote Control for all sessions`;q.push(a)}if(z?.autoUpdatesChannel!==A.current?.autoUpdatesChannel)q.push(`Set auto-update channel to ${D0.bold(z?.autoUpdatesChannel??"latest")}`);if(q.length>0)Z(q.join(`
|
|
2
|
+
`));else Z("Config dialog dismissed",{display:"system"})},[m,dJ,K,E0,U,w,z?.autoUpdatesChannel,m0()?z?.fastMode:void 0,Z]),tJ=g.useCallback(()=>{if(k!==nJ.current)M(nJ.current);T(()=>D.current);let q=iJ;x("localSettings",{spinnerTipsEnabled:q?.spinnerTipsEnabled,prefersReducedMotion:q?.prefersReducedMotion,defaultView:q?.defaultView,outputStyle:q?.outputStyle});let G=rJ;x("userSettings",{alwaysThinkingEnabled:G?.alwaysThinkingEnabled,fastMode:G?.fastMode,promptSuggestionEnabled:G?.promptSuggestionEnabled,autoUpdatesChannel:G?.autoUpdatesChannel,minimumVersion:G?.minimumVersion,language:G?.language,...{useAutoModeDuringPlan:G?.useAutoModeDuringPlan},syntaxHighlightingDisabled:G?.syntaxHighlightingDisabled,permissions:G?.permissions===void 0?void 0:{...G.permissions,defaultMode:G.permissions.defaultMode}});let L=lJ;if(e((I)=>({...I,mainLoopModel:L.mainLoopModel,mainLoopModelForSession:L.mainLoopModelForSession,verbose:L.verbose,thinkingEnabled:L.thinkingEnabled,fastMode:L.fastMode,promptSuggestionEnabled:L.promptSuggestionEnabled,isBriefOnly:L.isBriefOnly,replBridgeEnabled:L.replBridgeEnabled,replBridgeOutboundOnly:L.replBridgeOutboundOnly,settings:L.settings,toolPermissionContext:BJ(I.toolPermissionContext)})),RJ()!==KJ)gZ(KJ)},[k,M,iJ,rJ,lJ,KJ,e]),iQ=g.useCallback(()=>{if(m!==null)return;if(J0.current)tJ();Z("Config dialog dismissed",{display:"system"})},[m,tJ,Z]);l("confirm:no",iQ,{context:"Settings",isActive:m===null&&!r&&!O}),l("settings:close",dQ,{context:"Settings",isActive:m===null&&!r&&!O});let OJ=g.useCallback(()=>{let q=G0[_];if(!q||!q.onChange)return;if(q.type==="boolean"){if(J0.current=!0,q.onChange(!q.value),q.id==="thinkingEnabled"){if(!q.value===$Q.current)o0(!1);else if(J.messages.some((I)=>I.type==="assistant"))o0(!0)}return}if(q.id==="theme"||q.id==="model"||q.id==="teammateDefaultModel"||q.id==="showExternalIncludesDialog"||q.id==="outputStyle"||q.id==="language")switch(q.id){case"theme":y("Theme"),Q(!0);return;case"model":y("Model"),Q(!0);return;case"teammateDefaultModel":y("TeammateModel"),Q(!0);return;case"showExternalIncludesDialog":y("ExternalIncludes"),Q(!0);return;case"outputStyle":y("OutputStyle"),Q(!0);return;case"language":y("Language"),Q(!0);return}if(q.id==="autoUpdatesChannel"){if(W0){y("EnableAutoUpdates"),Q(!0);return}if((z?.autoUpdatesChannel??"latest")==="latest")y("ChannelDowngrade"),Q(!0);else J0.current=!0,x("userSettings",{autoUpdatesChannel:"latest",minimumVersion:void 0}),N((L)=>({...L,autoUpdatesChannel:"latest",minimumVersion:void 0})),f("tengu_autoupdate_channel_changed",{channel:"latest"});return}if(q.type==="enum"){J0.current=!0;let L=(q.options.indexOf(q.value)+1)%q.options.length;q.onChange(q.options[L]);return}},[W0,G0,_,z?.autoUpdatesChannel,Q]),s0=(q)=>{o0(!1);let G=Math.max(0,Math.min(G0.length-1,_+q));F0(G),uQ(G)};Qq({"select:previous":()=>{if(_===0)o0(!1),Y0(!0),Q0(0);else s0(-1)},"select:next":()=>s0(1),"scroll:lineUp":()=>s0(-1),"scroll:lineDown":()=>s0(1),"select:accept":OJ,"settings:search":()=>{Y0(!0),a0("")}},{context:"Settings",isActive:m===null&&!r&&!O});let rQ=g.useCallback((q)=>{if(m!==null)return;if(O)return;if(r){if(q.key==="escape"){if(q.preventDefault(),A0.length>0)a0("");else Y0(!1);return}if(q.key==="return"||q.key==="down"||q.key==="wheeldown")q.preventDefault(),Y0(!1),F0(0),Q0(0);return}if(q.key==="left"||q.key==="right"||q.key==="tab"){q.preventDefault(),OJ();return}if(q.ctrl||q.meta)return;if(q.key==="j"||q.key==="k"||q.key==="/")return;if(q.key.length===1&&q.key!==" ")q.preventDefault(),Y0(!0),a0(q.key)},[m,O,r,A0,a0,OJ]);return Y(B,{flexDirection:"column",width:"100%",tabIndex:0,autoFocus:!0,onKeyDown:rQ,children:m==="Theme"?H(n,{children:[Y(Fq,{onThemeSelect:(q)=>{J0.current=!0,M(q),y(null),Q(!1)},onCancel:()=>{y(null),Q(!1)},hideEscToCancel:!0,skipExitHandling:!0}),Y(B,{children:Y(V,{dimColor:!0,italic:!0,children:H(p,{children:[Y(Z0,{shortcut:"Enter",action:"select"}),Y(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})})]}):m==="Model"?H(n,{children:[Y(IJ,{initial:E0,onSelect:(q,G)=>{J0.current=!0,sJ(q),y(null),Q(!1)},onCancel:()=>{y(null),Q(!1)},showFastModeNotice:m0()?uJ&&aZ(E0)&&MJ():!1}),Y(V,{dimColor:!0,children:H(p,{children:[Y(Z0,{shortcut:"Enter",action:"confirm"}),Y(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="TeammateModel"?H(n,{children:[Y(IJ,{initial:K.teammateDefaultModel??null,skipSettingsWrite:!0,headerText:"Default model for newly spawned teammates. The leader can override via the tool call's model parameter.",onSelect:(q,G)=>{if(y(null),Q(!1),K.teammateDefaultModel===void 0&&q===null)return;J0.current=!0,T((L)=>L.teammateDefaultModel===q?L:{...L,teammateDefaultModel:q}),F({...S(),teammateDefaultModel:q}),M0((L)=>({...L,teammateDefaultModel:yZ(q)})),f("tengu_teammate_default_model_changed",{model:q})},onCancel:()=>{y(null),Q(!1)}}),Y(V,{dimColor:!0,children:H(p,{children:[Y(Z0,{shortcut:"Enter",action:"confirm"}),Y(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="ExternalIncludes"?H(n,{children:[Y(Rq,{onDone:()=>{y(null),Q(!1)},externalIncludes:Bq(aJ)}),Y(V,{dimColor:!0,children:H(p,{children:[Y(Z0,{shortcut:"Enter",action:"confirm"}),Y(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"disable external includes"})]})})]}):m==="OutputStyle"?H(n,{children:[Y(CZ,{initialStyle:U,onComplete:(q)=>{J0.current=!0,E(q??qJ),y(null),Q(!1),x("localSettings",{outputStyle:q}),f("tengu_output_style_changed",{style:q??qJ,source:"config_panel",settings_source:"localSettings"})},onCancel:()=>{y(null),Q(!1)}}),Y(V,{dimColor:!0,children:H(p,{children:[Y(Z0,{shortcut:"Enter",action:"confirm"}),Y(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})]}):m==="Language"?H(n,{children:[Y(hZ,{initialLanguage:w,onComplete:(q)=>{J0.current=!0,d(q),y(null),Q(!1),x("userSettings",{language:q}),f("tengu_language_changed",{language:q??"default",source:"config_panel"})},onCancel:()=>{y(null),Q(!1)}}),Y(V,{dimColor:!0,children:H(p,{children:[Y(Z0,{shortcut:"Enter",action:"confirm"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]}):m==="EnableAutoUpdates"?Y(S0,{title:"Enable Auto-Updates",onCancel:()=>{y(null),Q(!1)},hideBorder:!0,hideInputGuide:!0,children:W0?.type!=="config"?H(n,{children:[Y(V,{children:W0?.type==="env"?"Auto-updates are controlled by an environment variable and cannot be changed here.":"Auto-updates are disabled in development builds."}),W0?.type==="env"&&H(V,{dimColor:!0,children:["Unset ",W0.envVar," to re-enable auto-updates."]})]}):Y(T0,{options:[{label:"Enable with latest channel",value:"latest"},{label:"Enable with stable channel",value:"stable"}],onChange:(q)=>{J0.current=!0,y(null),Q(!1),T((G)=>({...G,autoUpdates:!0})),F({...S(),autoUpdates:!0}),x("userSettings",{autoUpdatesChannel:q,minimumVersion:void 0}),N((G)=>({...G,autoUpdatesChannel:q,minimumVersion:void 0})),f("tengu_autoupdate_enabled",{channel:q})}})}):m==="ChannelDowngrade"?Y(MZ,{currentVersion:"99.0.0",onChoice:(q)=>{if(y(null),Q(!1),q==="cancel")return;J0.current=!0;let G={autoUpdatesChannel:"stable"};if(q==="stay")G.minimumVersion="99.0.0";x("userSettings",G),N((L)=>({...L,...G})),f("tengu_autoupdate_channel_changed",{channel:"stable",minimum_version_set:q==="stay"})}}):H(B,{flexDirection:"column",gap:1,marginY:P?void 0:1,children:[Y(Lq,{query:A0,isFocused:r&&!O,isTerminalFocused:j0,cursorOffset:mQ,placeholder:"Search settings…"}),Y(B,{flexDirection:"column",children:G0.length===0?H(V,{dimColor:!0,italic:!0,children:['No settings match "',A0,'"']}):H(n,{children:[i>0&&H(V,{dimColor:!0,children:[H0.arrowUp," ",i," more above"]}),G0.slice(i,i+X0).map((q,G)=>{let I=i+G===_&&!O&&!r;return Y(v.Fragment,{children:H(B,{children:[Y(B,{width:44,children:H(V,{color:I?"suggestion":void 0,children:[I?H0.pointer:" "," ",q.label]})}),Y(B,{children:q.type==="boolean"?H(n,{children:[Y(V,{color:I?"suggestion":void 0,children:q.value.toString()}),_Q&&q.id==="thinkingEnabled"&&H(V,{color:"warning",children:[" ","Changing thinking mode mid-conversation will increase latency and may reduce quality."]})]}):q.id==="theme"?Y(V,{color:I?"suggestion":void 0,children:TY[q.value.toString()]??q.value.toString()}):q.id==="notifChannel"?Y(V,{color:I?"suggestion":void 0,children:Y(wY,{value:q.value.toString()})}):q.id==="defaultPermissionMode"?Y(V,{color:I?"suggestion":void 0,children:xZ(q.value)}):q.id==="autoUpdatesChannel"&&W0?H(B,{flexDirection:"column",children:[Y(V,{color:I?"suggestion":void 0,children:"disabled"}),H(V,{dimColor:!0,children:["(",iZ(W0),")"]})]}):Y(V,{color:I?"suggestion":void 0,children:q.value.toString()})},I?"selected":"unselected")]})},q.id)}),i+X0<G0.length&&H(V,{dimColor:!0,children:[H0.arrowDown," ",G0.length-i-X0," ","more below"]})]})}),O?Y(V,{dimColor:!0,children:H(p,{children:[Y(Z0,{shortcut:"←/→ tab",action:"switch"}),Y(Z0,{shortcut:"↓",action:"return"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"close"})]})}):r?Y(V,{dimColor:!0,children:H(p,{children:[Y(V,{children:"Type to filter"}),Y(Z0,{shortcut:"Enter/↓",action:"select"}),Y(Z0,{shortcut:"↑",action:"tabs"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"clear"})]})}):Y(V,{dimColor:!0,children:H(p,{children:[Y(C,{action:"select:accept",context:"Settings",fallback:"Space",description:"change"}),Y(C,{action:"settings:close",context:"Settings",fallback:"Enter",description:"save"}),Y(C,{action:"settings:search",context:"Settings",fallback:"/",description:"search"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]})})}function yZ(Z){if(Z===void 0)return QJ(Hq());if(Z===null)return"Default (leader's model)";return QJ(Z)}function wY(Z){let J=kq.c(4),{value:Q}=Z;switch(Q){case"auto":return"Auto";case"iterm2":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["iTerm2 ",Y(V,{dimColor:!0,children:"(OSC 9)"})]}),J[0]=X;else X=J[0];return X}case"terminal_bell":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Terminal Bell ",Y(V,{dimColor:!0,children:"(\\a)"})]}),J[1]=X;else X=J[1];return X}case"kitty":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Kitty ",Y(V,{dimColor:!0,children:"(OSC 99)"})]}),J[2]=X;else X=J[2];return X}case"ghostty":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=H(V,{children:["Ghostty ",Y(V,{dimColor:!0,children:"(OSC 777)"})]}),J[3]=X;else X=J[3];return X}case"iterm2_with_bell":return"iTerm2 w/ Bell";case"notifications_disabled":return"Disabled";default:return Q}}var kq,v,g,TY;var Aq=c(()=>{O0();w0();DJ();nZ();zY();lZ();nZ();KY();OY();AY();YJ();WY();UY();BY();QZ();IY();eZ();EY();fY();AZ();FJ();PZ();SZ();bZ();hY();RY();f0();XJ();Dq();zJ();CY();LY();DY();ZZ();EZ();jZ();HY();PY();kY();MY();SY();v0();FY();NY();$();kq=j(U0(),1),v=j(s(),1),g=j(s(),1);TY={auto:"Auto (match terminal)",dark:"Dark mode",light:"Light mode","dark-daltonized":"Dark mode (colorblind-friendly)","light-daltonized":"Light mode (colorblind-friendly)","dark-ansi":"Dark mode (ANSI colors only)","light-ansi":"Light mode (ANSI colors only)",terminal:"Terminal default (inherit colors)",dracula:"Dracula","catppuccin-mocha":"Catppuccin Mocha (dark)","catppuccin-latte":"Catppuccin Latte (light)","tokyo-night":"Tokyo Night",nord:"Nord","gruvbox-dark":"Gruvbox Dark"}});function x0(Z){return typeof Z==="object"&&Z!==null}function q0(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function b0(Z){return typeof Z==="number"&&Number.isFinite(Z)?Z:void 0}function EJ(Z){return typeof Z==="boolean"?Z:void 0}function fJ(Z){let J=b0(Z);if(J===void 0)return;return new Date(J*1000).toISOString()}function GJ(Z){if(!x0(Z))return;let J=b0(Z.used_percent)??b0(Z.usedPercent);if(J===void 0)return;let Q=b0(Z.window_minutes)??b0(Z.windowDurationMins)??(()=>{let W=b0(Z.limit_window_seconds);return W===void 0?void 0:Math.round(W/60)})(),X=fJ(Z.resets_at)??fJ(Z.resetsAt)??fJ(Z.reset_at);return{usedPercent:J,windowMinutes:Q,resetsAt:X}}function gq(Z){if(!x0(Z))return;let J=EJ(Z.has_credits)??EJ(Z.hasCredits)??!1,Q=EJ(Z.unlimited)??!1,X=q0(Z.balance);if(!J&&!Q&&!X)return;return{hasCredits:J,unlimited:Q,balance:X}}function p0(Z,J){if(!x0(Z))return;let Q=q0(Z.limit_name)??q0(Z.limitName)??q0(Z.limit_id)??q0(Z.limitId)??J,X=GJ(Z.primary)??GJ(Z.primary_window),W=GJ(Z.secondary)??GJ(Z.secondary_window),O=gq(Z.credits);if(!X&&!W&&!O)return;return{limitName:Q,primary:X,secondary:W,credits:O}}function CJ(Z,J="codex"){if(Array.isArray(Z))return Z.map((Q,X)=>p0(Q,X===0?J:`${J}-${X+1}`)).filter((Q)=>Q!==void 0);if(!x0(Z))return[];return Object.entries(Z).map(([Q,X])=>p0(X,Q)).filter((Q)=>Q!==void 0)}function gY(Z){let J=q0(Z.plan_type)??q0(Z.planType),Q=[],X=gq(Z.credits),W=p0(Z.rate_limit,"codex");if(W)W.credits??=X,Q.push(W);else if(X)Q.push({limitName:"codex",credits:X});let O=p0(Z.code_review_rate_limit,"code review");if(O)Q.push(O);return Q.push(...CJ(Z.additional_rate_limits??Z.additionalRateLimits,"additional")),{planType:J,snapshots:Q}}function $Y(Z){if(Array.isArray(Z))return{snapshots:CJ(Z)};if(!x0(Z))return{snapshots:[]};if("rate_limit"in Z||"code_review_rate_limit"in Z||"additional_rate_limits"in Z||"credits"in Z)return gY(Z);let J=Z.rate_limits??Z.rateLimits??Z.rate_limits_by_limit_id??Z.rateLimitsByLimitId;if(J!==void 0)return{planType:q0(Z.plan_type)??q0(Z.planType),snapshots:CJ(J)};let Q=p0(Z,"codex");return{planType:q0(Z.plan_type)??q0(Z.planType),snapshots:Q?[Q]:[]}}function y0(Z){if(!Z)return Z;return Z[0].toUpperCase()+Z.slice(1)}function Eq(Z,J){if(Z===void 0||Z<=0)return J;if(Z===10080)return"weekly";if(Z%1440===0)return`${Z/1440}d`;if(Z%60===0)return`${Z/60}h`;return`${Z}m`}function jY(Z){let J=Z?.trim();if(!J)return;let Q=Number.parseInt(J,10);if(Number.isFinite(Q)&&`${Q}`===J&&Q>0)return`${Q}`;let X=Number.parseFloat(J);if(Number.isFinite(X)&&X>0)return`${Math.round(X)}`;return}function _Y(Z){if(!Z?.hasCredits)return;if(Z.unlimited)return{kind:"text",label:"Credits",value:"Unlimited"};let J=jY(Z.balance);if(!J)return;return{kind:"text",label:"Credits",value:`${J} credits`}}function $q(Z){let J=[];for(let Q of Z){let X=Q.limitName.trim()||"codex",W=_Y(Q.credits);if(!(Q.primary!==void 0||Q.secondary!==void 0||W!==void 0))continue;let R=X.toLowerCase()!=="codex",P=Number(Q.primary!==void 0)+Number(Q.secondary!==void 0),M=R&&P===1;if(R&&!M)J.push({kind:"text",label:`${y0(X)} limit`,value:""});if(Q.primary){let k=y0(Eq(Q.primary.windowMinutes,"5h"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:Q.primary.usedPercent,resetsAt:Q.primary.resetsAt})}if(Q.secondary){let k=y0(Eq(Q.secondary.windowMinutes,"weekly"));J.push({kind:"window",label:M?`${y0(X)} ${k} limit`:`${k} limit`,usedPercent:Q.secondary.usedPercent,resetsAt:Q.secondary.resetsAt})}if(W)J.push(W)}return J}function jq(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>y0(J.toLowerCase())).join(" ")}function mY(Z=wq){return new URL("/backend-api/wham/usage",Z).toString()}async function _q(){let Z=await Tq().catch(async(W)=>{return c0(`[codex] access token refresh failed before usage fetch: ${W instanceof Error?W.message:String(W)}`,{level:"warn"}),{refreshed:!1,credentials:await Sq()}}),J=bq();if(!hq(J.baseUrl))throw Error("Codex usage is only available with the official ChatGPT Codex backend.");let Q=yq({storedCredentials:Z.credentials});if(!Q.apiKey){let W=fq()?"":", choose Codex OAuth in /provider",O=Q.authPath?`${W} or place a Codex auth.json at ${Q.authPath}`:W;throw Error(`Codex auth is required. Set CODEX_API_KEY${O}.`)}if(!Q.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");let X=await fetch(mY(J.baseUrl),{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Q.apiKey}`,"chatgpt-account-id":Q.accountId,originator:"claudin"},signal:AbortSignal.timeout(5000)});if(!X.ok){let W=await X.text().catch(()=>"unknown error");throw Error(`Codex usage error ${X.status}: ${W}`)}return $Y(await X.json())}var mq=c(()=>{bY();Cq();jZ();yY()});function vY({label:Z,usedPercent:J,resetsAt:Q,maxWidth:X}){let W=Math.max(0,Math.min(100,J)),O=`${Math.floor(W)}% used`,R=Q?`Resets ${VJ(Q,!0,!0)}`:void 0;if(X>=62)return H(B,{flexDirection:"column",children:[Y(V,{bold:!0,children:Z}),H(B,{flexDirection:"row",gap:1,children:[Y(R0,{ratio:W/100,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Y(V,{children:O})]}),R?Y(V,{dimColor:!0,children:R}):null]});return H(B,{flexDirection:"column",children:[H(V,{children:[Y(V,{bold:!0,children:Z}),R?H(n,{children:[Y(V,{children:" "}),H(V,{dimColor:!0,children:["· ",R]})]}):null]}),Y(R0,{ratio:W/100,width:X,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),Y(V,{children:O})]})}function pY({label:Z,value:J}){if(!J)return Y(V,{bold:!0,children:Z});return H(V,{children:[Y(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function pq(){let[Z,J]=g0.useState(null),[Q,X]=g0.useState(null),[W,O]=g0.useState(!0),{columns:R}=V0(),P=R-2,M=Math.min(P,80),k=vq.useCallback(async()=>{O(!0),X(null);try{J(await _q())}catch(D){N0(D),X(D instanceof Error?D.message:"Failed to load Codex usage")}finally{O(!1)}},[]);if(g0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!Q&&!W}),Q)return H(B,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",Q]}),Y(V,{dimColor:!0,children:H(p,{children:[Y(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(B,{flexDirection:"column",gap:1,children:[Y(V,{dimColor:!0,children:"Loading Codex usage data…"}),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=$q(Z.snapshots),F=jq(Z.planType);return H(B,{flexDirection:"column",gap:1,width:"100%",children:[F?H(V,{dimColor:!0,children:["Plan: ",F]}):null,K.length===0?Y(V,{dimColor:!0,children:"Codex usage data is not available for this account."}):null,K.map((D,z)=>D.kind==="window"?Y(vY,{label:D.label,usedPercent:D.usedPercent,resetsAt:D.resetsAt,maxWidth:M},`${D.label}-${z}`):Y(pY,{label:D.label,value:D.value},`${D.label}-${z}`)),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var vq,g0;var cq=c(()=>{v0();O0();w0();mq();SJ();YJ();f0();XJ();TJ();$();vq=j(s(),1),g0=j(s(),1)});var u0="https://api.minimax.io/v1",d0="Usage details are not available for this MiniMax account. This plan or MiniMax endpoint may not expose quota status.";var wJ=()=>{};function L0(Z){return typeof Z==="object"&&Z!==null}function u(Z){return typeof Z==="string"&&Z.trim()?Z.trim():void 0}function bJ(Z){if(typeof Z==="number"&&Number.isFinite(Z))return Z;if(typeof Z==="string"&&Z.trim()){let J=Number.parseFloat(Z);if(Number.isFinite(J))return J}return}function WJ(Z){return Math.max(0,Math.min(100,Math.round(Z)))}function cY(Z){if(typeof Z==="string"){let X=Date.parse(Z);return Number.isNaN(X)?Z:new Date(X).toISOString()}let J=bJ(Z);if(J===void 0)return;let Q=J>1000000000000?J:J*1000;return new Date(Q).toISOString()}function xY(Z,J){let Q=bJ(Z);if(/remains?_time/i.test(J)&&Q!==void 0){let X=Q>604800?Q:Q*1000;return new Date(Date.now()+X).toISOString()}return cY(Z)}function i0(Z,J){for(let Q of J){let X=bJ(Z[Q]);if(X!==void 0)return X}return}function uY(Z,J){for(let Q of J)if(Z[Q]!==void 0)return xY(Z[Q],Q);return}function r0(Z,J){return J.some((Q)=>Z[Q]!==void 0)}function dq(Z){return Z?Z[0].toUpperCase()+Z.slice(1):Z}function dY(Z){if(!Z)return"MiniMax";let J=Z.trim();if(!J)return"MiniMax";if(/[A-Z]/.test(J))return J;return J.split(/[_\s-]+/).filter(Boolean).map((Q)=>dq(Q.toLowerCase())).join(" ")}function iY(Z){if(!Z)return;return Z.split(/[_\s-]+/).filter(Boolean).map((J)=>dq(J.toLowerCase())).join(" ")}function iq(Z,J){let Q=i0(Z,J.percentKeys),X=i0(Z,J.remainingPercentKeys),W=i0(Z,J.totalKeys),O=i0(Z,J.remainingKeys),R=i0(Z,J.usedKeys),P=W!==void 0&&R!==void 0?W-R:O,M;if(W!==void 0&&W>0&&R!==void 0)M=WJ(R/W*100);else if(W!==void 0&&W>0&&O!==void 0)M=WJ((W-O)/W*100);else if(Q!==void 0)M=WJ(Q);else if(X!==void 0)M=WJ(100-X);if(M===void 0)return;return{label:J.label,usedPercent:M,remaining:P,total:W,resetsAt:uY(Z,J.resetKeys)}}function rY(Z){let J=u(Z.label)??u(Z.name)??u(Z.window_name)??u(Z.windowName)??"Limit";return iq(Z,{label:J,percentKeys:["used_percent","usedPercent","utilization","usage_percentage","usagePercentage"],remainingPercentKeys:["usage_percent","usagePercent","remaining_percent","remainingPercent","percent_remaining","percentRemaining"],totalKeys:["total","quota","limit","max","entitlement"],remainingKeys:["remaining","remain","remains","left"],usedKeys:["used","usage","consumed"],resetKeys:["resets_at","reset_at","resetsAt","resetAt"]})}function lY(Z){if(r0(Z,nY))return!0;return rq.some((J)=>r0(Z,J.totalKeys)||r0(Z,J.remainingKeys)||r0(Z,J.usedKeys)||r0(Z,J.percentKeys))}function hJ(Z,J){if(!L0(Z))return;let Q=rq.map((W)=>iq(Z,W)).filter((W)=>W!==void 0);if(Q.length===0){let W=rY(Z);if(W)Q.push(W)}if(Q.length===0)return;return{limitName:u(Z.limit_name)??u(Z.limitName)??u(Z.model_name)??u(Z.modelName)??u(Z.name)??J,windows:Q}}function xq(Z,J="MiniMax"){if(Array.isArray(Z))return Z.map((Q,X)=>hJ(Q,X===0?J:`${J}-${X+1}`)).filter((Q)=>Q!==void 0);if(!L0(Z))return[];if(lY(Z)){let Q=hJ(Z,J);return Q?[Q]:[]}return Object.entries(Z).map(([Q,X])=>hJ(X,Q)).filter((Q)=>Q!==void 0)}function uq(Z=d0,J){return{availability:"unknown",planType:J,snapshots:[],message:Z}}function yJ(Z){if(!L0(Z))return uq();let J=iY(u(Z.plan_type)??u(Z.planType)??u(Z.subscription_type)??u(Z.subscriptionType)??u(Z.plan_name)??u(Z.planName)),X=[Z.data,Z.result,Z.model_remains,Z.modelRemains,Z.remains,Z.usage,Z.quotas,Z.models,L0(Z.data)?Z.data.model_remains:void 0,L0(Z.data)?Z.data.modelRemains:void 0,L0(Z.data)?Z.data.models:void 0,L0(Z.data)?Z.data.quotas:void 0,L0(Z.data)?Z.data.remains:void 0].flatMap((O)=>xq(O)).filter((O,R,P)=>{let M=`${O.limitName}:${O.windows.map((k)=>k.label).join("|")}`;return P.findIndex((k)=>`${k.limitName}:${k.windows.map((K)=>K.label).join("|")}`===M)===R});if(X.length>0)return{availability:"available",planType:J,snapshots:X};let W=xq(Z);if(W.length>0)return{availability:"available",planType:J,snapshots:W};return uq(void 0,J)}function oY(Z){if(Z.remaining===void 0||Z.total===void 0||Z.total<=0)return;return`${Z.remaining}/${Z.total} remaining`}function gJ(Z){let J=[];for(let Q of Z){let X=dY(Q.limitName),W=X.toLowerCase()!=="minimax",O=W&&Q.windows.length===1;if(W&&!O)J.push({kind:"text",label:`${X} quota`,value:""});for(let R of Q.windows)J.push({kind:"window",label:O?`${X} ${R.label}`:R.label,usedPercent:R.usedPercent,resetsAt:R.resetsAt,extraSubtext:oY(R)})}return J}var rq,nY;var $J=c(()=>{wJ();rq=[{label:"5h limit",percentKeys:["interval_used_percent","intervalUsedPercent"],remainingPercentKeys:["usage_percent","usagePercent","interval_remaining_percent","intervalRemainingPercent"],totalKeys:["current_interval_total_count","currentIntervalTotalCount","max_interval_usage_count","maxIntervalUsageCount","interval_quota","intervalQuota","interval_limit","intervalLimit"],remainingKeys:["current_interval_remaining_count","currentIntervalRemainingCount","current_interval_remains_count","currentIntervalRemainsCount","interval_remaining","intervalRemaining","remaining_interval_usage_count","remainingIntervalUsageCount"],usedKeys:["current_interval_usage_count","currentIntervalUsageCount","interval_used","intervalUsed","current_interval_used_count","currentIntervalUsedCount","used_interval_usage_count","usedIntervalUsageCount"],resetKeys:["end_time","endTime","interval_resets_at","intervalResetsAt","interval_reset_at","intervalResetAt","remains_time","remainsTime"]},{label:"Weekly limit",percentKeys:["weekly_used_percent","weeklyUsedPercent"],remainingPercentKeys:["weekly_remaining_percent","weeklyRemainingPercent"],totalKeys:["max_weekly_usage_count","maxWeeklyUsageCount","weekly_quota","weeklyQuota","weekly_limit","weeklyLimit"],remainingKeys:["weekly_remaining","weeklyRemaining","remaining_weekly_usage_count","remainingWeeklyUsageCount"],usedKeys:["current_weekly_usage_count","currentWeeklyUsageCount","weekly_used","weeklyUsed","used_weekly_usage_count","usedWeeklyUsageCount"],resetKeys:["weekly_resets_at","weeklyResetsAt","weekly_reset_at","weeklyResetAt"]},{label:"Daily limit",percentKeys:["daily_used_percent","dailyUsedPercent"],remainingPercentKeys:["daily_remaining_percent","dailyRemainingPercent"],totalKeys:["max_daily_usage_count","maxDailyUsageCount","daily_quota","dailyQuota","daily_limit","dailyLimit"],remainingKeys:["daily_remaining","dailyRemaining","remaining_daily_usage_count","remainingDailyUsageCount"],usedKeys:["current_daily_usage_count","currentDailyUsageCount","daily_used","dailyUsed","used_daily_usage_count","usedDailyUsageCount"],resetKeys:["daily_resets_at","dailyResetsAt","daily_reset_at","dailyResetAt"]}],nY=["used_percent","usedPercent","utilization","usage_percentage","usagePercentage","total","quota","limit","max","entitlement","remaining","remain","remains","left","usage_percent","usagePercent","current_interval_total_count","current_interval_usage_count","current_interval_remaining_count","current_interval_remains_count","max_interval_usage_count","current_weekly_usage_count","max_weekly_usage_count","current_daily_usage_count","max_daily_usage_count"]});function sY(Z){return Z.replace(/\/+$/,"")}function oq(Z=B0()?.baseUrl??u0){let J=Z.trim();return J?sY(J):u0}function tY(Z){let J=Z??B0()?.baseUrl;if(!J?.trim())return{baseUrl:u0,usedDefault:!0};return{baseUrl:oq(J),usedDefault:!1}}function nq(Z){return{availability:"unknown",snapshots:[],message:Z}}function aq(Z){let{baseUrl:J,usedDefault:Q}=tY(Z);try{let X=new URL(`${J}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}catch{if(Q){let X=new URL(`${u0}/`);return[new URL("token_plan/remains",X).toString(),new URL("api/openplatform/coding_plan/remains",X).toString()]}throw Error(`MiniMax usage base URL is invalid: ${J}`)}}async function jJ(){let Z=B0()?.apiKey;if(!Z)throw Error("MiniMax auth is required. Run /provider and configure a MiniMax profile.");let J=aq(),Q=[],X=null;for(let W of J){let O;try{O=await fetch(W,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${Z}`,"Content-Type":"application/json","User-Agent":lq()},signal:AbortSignal.timeout(5000)})}catch(P){c0(`[minimax] usage request failed for ${W}: ${P instanceof Error?P.message:String(P)}`,{level:"warn"}),X=P instanceof Error?P:Error(String(P));continue}if(!O.ok){let P=await O.text().catch(()=>"");if([400,401,403,404].includes(O.status)){Q.push({status:O.status,body:P});continue}X=Error(`MiniMax usage error ${O.status}: ${P||"unknown error"}`);continue}let R=yJ(await O.json());if(R.availability==="available")return R}if(Q.length>0){let W=Q[Q.length-1];return c0(`[minimax] usage endpoint returned non-fatal status ${W.status}: ${W.body}`,{level:"warn"}),nq(d0)}if(X)throw X;return nq(d0)}var sq=c(()=>{lZ();Cq();aY();wJ();$J()});var tq=c(()=>{$J();sq()});function ZX(Z){let J=Math.max(1,Math.ceil(Z/60000)),Q=Math.floor(J/1440),X=Math.floor(J%1440/60),W=J%60;if(Q>0)return X>0?`${Q}d ${X}h`:`${Q}d`;if(X>0)return W>0?`${X}h ${W}m`:`${X}h`;return`${W}m`}function qX(Z,J){if(!Z)return;let Q=Date.parse(Z);if(!Number.isFinite(Q))return;let X=Q-J;if(X<=0)return"Resetting now";return`Resets in ${ZX(X)}`}function QX({label:Z,usedPercent:J,resetsAt:Q,extraSubtext:X,maxWidth:W,nowMs:O}){let R=Math.max(0,Math.min(100,J)),P=`${Math.floor(R)}% used`,M=qX(Q,O),k=[P,X].filter((K)=>Boolean(K));return H(B,{flexDirection:"column",children:[H(V,{children:[Y(V,{bold:!0,children:Z}),M?H(V,{dimColor:!0,children:[" · ",M]}):null]}),H(B,{flexDirection:"row",gap:1,children:[Y(R0,{ratio:R/100,width:Math.min(JX,Math.max(1,W)),fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),k.length>0?Y(V,{dimColor:!0,children:k.join(" · ")}):null]})]})}function YX({label:Z,value:J}){if(!J)return Y(V,{bold:!0,children:Z});return H(V,{children:[Y(V,{bold:!0,children:Z}),H(V,{dimColor:!0,children:[" · ",J]})]})}function JQ(){let[Z,J]=P0.useState(null),[Q,X]=P0.useState(null),[W,O]=P0.useState(!0),[R,P]=P0.useState(()=>Date.now()),{columns:M}=V0(),k=M-2,K=Math.min(k,80),F=eq.useCallback(async()=>{O(!0),X(null);try{J(await jJ())}catch(z){N0(z),X(z instanceof Error?z.message:"Failed to load MiniMax usage")}finally{O(!1)}},[]);if(P0.useEffect(()=>{F()},[F]),P0.useEffect(()=>{let z=setInterval(()=>{P(Date.now())},eY);return()=>clearInterval(z)},[]),l("settings:retry",()=>{F()},{context:"Settings",isActive:!!Q&&!W}),Q)return H(B,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Error: ",Q]}),Y(V,{dimColor:!0,children:H(p,{children:[Y(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(B,{flexDirection:"column",gap:1,children:[Y(V,{dimColor:!0,children:"Loading MiniMax usage data…"}),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let D=Z.availability==="available"?gJ(Z.snapshots):[];return H(B,{flexDirection:"column",gap:1,width:"100%",children:[Z.planType?H(V,{dimColor:!0,children:["Plan: ",Z.planType]}):null,Z.availability==="unknown"?Y(V,{dimColor:!0,children:Z.message}):D.length===0?Y(V,{dimColor:!0,children:"No MiniMax usage windows were returned for this account."}):null,D.map((z,N)=>z.kind==="window"?Y(QX,{label:z.label,usedPercent:z.usedPercent,resetsAt:z.resetsAt,extraSubtext:z.extraSubtext,maxWidth:K,nowMs:R},`${z.label}-${N}`):Y(YX,{label:z.label,value:z.value},`${z.label}-${N}`)),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var eq,P0,eY=30000,JX=18;var ZQ=c(()=>{v0();O0();w0();tq();YJ();f0();XJ();TJ();$();eq=j(s(),1),P0=j(s(),1)});function qQ({providerLabel:Z}){return H(B,{flexDirection:"column",gap:1,children:[H(V,{dimColor:!0,children:["Usage details are not currently available for ",Z,"."]}),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}var QQ=c(()=>{O0();f0();$()});function EQ(Z){let J=pJ.c(34),{title:Q,limit:X,maxWidth:W,showTimeInReset:O,extraSubtext:R}=Z,P=O===void 0?!0:O,{utilization:M,resets_at:k}=X;if(M===null)return null;let K=`${Math.floor(M)}% used`,F;if(k){let D;if(J[0]!==k||J[1]!==P)D=VJ(k,!0,P),J[0]=k,J[1]=P,J[2]=D;else D=J[2];F=`Resets ${D}`}if(R)if(F)F=`${R} · ${F}`;else F=R;if(W>=62){let D;if(J[3]!==Q)D=Y(V,{bold:!0,children:Q}),J[3]=Q,J[4]=D;else D=J[4];let z=M/100,N;if(J[5]!==z)N=Y(R0,{ratio:z,width:50,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[5]=z,J[6]=N;else N=J[6];let A;if(J[7]!==K)A=Y(V,{children:K}),J[7]=K,J[8]=A;else A=J[8];let U;if(J[9]!==N||J[10]!==A)U=H(B,{flexDirection:"row",gap:1,children:[N,A]}),J[9]=N,J[10]=A,J[11]=U;else U=J[11];let E;if(J[12]!==F)E=F&&Y(V,{dimColor:!0,children:F}),J[12]=F,J[13]=E;else E=J[13];let h;if(J[14]!==D||J[15]!==U||J[16]!==E)h=H(B,{flexDirection:"column",children:[D,U,E]}),J[14]=D,J[15]=U,J[16]=E,J[17]=h;else h=J[17];return h}else{let D;if(J[18]!==Q)D=Y(V,{bold:!0,children:Q}),J[18]=Q,J[19]=D;else D=J[19];let z;if(J[20]!==F)z=F&&H(n,{children:[Y(V,{children:" "}),H(V,{dimColor:!0,children:["· ",F]})]}),J[20]=F,J[21]=z;else z=J[21];let N;if(J[22]!==D||J[23]!==z)N=H(V,{children:[D,z]}),J[22]=D,J[23]=z,J[24]=N;else N=J[24];let A=M/100,U;if(J[25]!==W||J[26]!==A)U=Y(R0,{ratio:A,width:W,fillColor:"rate_limit_fill",emptyColor:"rate_limit_empty"}),J[25]=W,J[26]=A,J[27]=U;else U=J[27];let E;if(J[28]!==K)E=Y(V,{children:K}),J[28]=K,J[29]=E;else E=J[29];let h;if(J[30]!==N||J[31]!==U||J[32]!==E)h=H(B,{flexDirection:"column",children:[N,U,E]}),J[30]=N,J[31]=U,J[32]=E,J[33]=h;else h=J[33];return h}}function FX(){let[Z,J]=z0.useState(null),[Q,X]=z0.useState(null),[W,O]=z0.useState(!0),{columns:R}=V0(),P=R-2,M=Math.min(P,80),k=IQ.useCallback(async()=>{O(!0),X(null);try{let z=await MQ();J(z)}catch(z){N0(z);let N=z,A=N.response?.data,U=N.response?.status,E;if(A?.error?.type==="rate_limit_error")E=A.error.message||"Rate limited. Please try again later.";else if(A?.error?.message)E=A.error.message;else if(U)E=`HTTP ${U} — ${zQ(N.response?.data??{})}`;else E=z?.message||"Failed to load usage data";X(E)}finally{O(!1)}},[]);if(z0.useEffect(()=>{k()},[k]),l("settings:retry",()=>{k()},{context:"Settings",isActive:!!Q&&!W}),Q)return H(B,{flexDirection:"column",gap:1,children:[H(V,{color:"error",children:["Could not load Anthropic rate-limit data: ",Q]}),Y(V,{dimColor:!0,children:"(cost/usage totals above are unaffected)"}),Y(V,{dimColor:!0,children:H(p,{children:[Y(C,{action:"settings:retry",context:"Settings",fallback:"r",description:"retry"}),Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})})]});if(!Z)return H(B,{flexDirection:"column",gap:1,children:[Y(V,{dimColor:!0,children:"Loading usage data…"}),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]});let K=vJ(),F=K==="max"||K==="team"||K===null,D=[{title:"Current session",limit:Z.five_hour},{title:"Current week (all models)",limit:Z.seven_day},...F?[{title:"Current week (Sonnet only)",limit:Z.seven_day_sonnet}]:[]];return H(B,{flexDirection:"column",gap:1,width:"100%",children:[D.some(({limit:z})=>z)||Y(V,{dimColor:!0,children:"/usage is only available for subscription plans."}),D.map(({title:z,limit:N})=>N&&Y(EQ,{title:z,limit:N,maxWidth:M},z)),Z.extra_usage&&Y(NX,{extraUsage:Z.extra_usage,maxWidth:M}),UQ()&&Y(BQ,{maxWidth:M}),Y(V,{dimColor:!0,children:Y(C,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})})]})}function YQ(Z){let{title:J,totalCost:Q,apiDuration:X,wallDuration:W,linesAdded:O,linesRemoved:R,modelUsage:P,unknownCost:M,bytesSaved:k}=Z,K=Object.entries(P);if(Q===0&&K.length===0&&O===0&&R===0)return null;let F={};for(let[z,N]of K){let A=RQ(z);if(!F[A])F[A]={inputTokens:0,outputTokens:0,cacheReadInputTokens:0,cacheCreationInputTokens:0,webSearchRequests:0,costUSD:0};let U=F[A];U.inputTokens+=N.inputTokens,U.outputTokens+=N.outputTokens,U.cacheReadInputTokens+=N.cacheReadInputTokens,U.cacheCreationInputTokens+=N.cacheCreationInputTokens,U.webSearchRequests+=N.webSearchRequests,U.costUSD+=N.costUSD}let D=Object.entries(F);return H(B,{flexDirection:"column",children:[Y(V,{bold:!0,children:J}),H(V,{children:[Y(V,{children:"Total cost: "}),Y(V,{children:n0(Q)}),M&&Y(V,{dimColor:!0,children:" (costs may be inaccurate due to usage of unknown models)"})]}),H(V,{children:["Total duration (API): ",mJ(X)]}),H(V,{children:["Total duration (wall): ",mJ(W)]}),H(V,{children:["Total code changes: ",O," ",O===1?"line":"lines"," added, ",R," ",R===1?"line":"lines"," removed"]}),k!==void 0&&k>0&&H(V,{children:["Context tokens saved: ~",FQ(k/LQ)," tokens"]}),D.length>0&&Y(V,{children:"Usage by model:"}),D.map(([z,N])=>{let A=`${$0(N.inputTokens)} input, ${$0(N.outputTokens)} output`;if(N.cacheReadInputTokens>0)A+=`, ${$0(N.cacheReadInputTokens)} cache read`;if(N.cacheCreationInputTokens>0)A+=`, ${$0(N.cacheCreationInputTokens)} cache write`;if(N.webSearchRequests>0)A+=`, ${$0(N.webSearchRequests)} web search`;return A+=` (${n0(N.costUSD)})`,H(V,{children:[`${z}:`.padStart(21)," ",A]},z)})]})}function XQ(Z={}){let J=Z.view??"global",[,Q]=z0.useReducer((R)=>R+1,0);z0.useEffect(()=>{let R=setInterval(()=>Q(),1000);return()=>clearInterval(R)},[]);let X=OQ();if(J==="session"){let R=GQ(),P=DQ(),M=KQ(),k=HQ();return Y(YQ,{title:"Current session",totalCost:R,apiDuration:VQ(),wallDuration:WQ(),linesAdded:M,linesRemoved:k,modelUsage:P,unknownCost:X,bytesSaved:PQ()})}let W=kQ();if(!(W.totalCost!==0||Object.keys(W.modelUsage).length>0||W.totalLinesAdded!==0||W.totalLinesRemoved!==0))return null;return H(B,{flexDirection:"column",gap:1,children:[Y(YQ,{title:"Project total (all sessions)",totalCost:W.totalCost,apiDuration:W.totalAPIDuration,wallDuration:W.totalDuration,linesAdded:W.totalLinesAdded,linesRemoved:W.totalLinesRemoved,modelUsage:W.modelUsage,unknownCost:X}),Y(V,{dimColor:!0,children:"Aggregated across all sessions in this project — includes the current session live."})]})}function cJ(Z={}){if((Z.view??"global")==="session")return Y(B,{flexDirection:"column",gap:1,width:"100%",children:Y(XQ,{view:"session"})});let Q=NQ(),X;if(Q==="codex")X=Y(pq,{});else if(Q==="minimax")X=Y(JQ,{});else if(Q!=="firstParty"){let W={openai:"this OpenAI-compatible provider",gemini:"Google Gemini",github:"GitHub Copilot",mistral:"Mistral","nvidia-nim":"NVIDIA NIM",bedrock:"AWS Bedrock",vertex:"Google Vertex AI",foundry:"Microsoft Foundry"}[Q]??"this provider";X=Y(qQ,{providerLabel:W})}else X=Y(FX,{});return H(B,{flexDirection:"column",gap:1,width:"100%",children:[Y(XQ,{view:"global"}),X]})}function NX(Z){let J=pJ.c(20),{extraUsage:Q,maxWidth:X}=Z,W=vJ();if(!(W==="pro"||W==="max"))return!1;if(!Q.is_enabled){if(AQ.isEnabled()){let w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=H(B,{flexDirection:"column",children:[Y(V,{bold:!0,children:_J}),Y(V,{dimColor:!0,children:"Extra usage not enabled · /extra-usage to enable"})]}),J[0]=w;else w=J[0];return w}return null}if(Q.monthly_limit===null){let w;if(J[1]===Symbol.for("react.memo_cache_sentinel"))w=H(B,{flexDirection:"column",children:[Y(V,{bold:!0,children:_J}),Y(V,{dimColor:!0,children:"Unlimited"})]}),J[1]=w;else w=J[1];return w}if(typeof Q.used_credits!=="number"||typeof Q.utilization!=="number")return null;let R=Q.used_credits/100,P;if(J[2]!==R)P=n0(R,2),J[2]=R,J[3]=P;else P=J[3];let M=P,k=Q.monthly_limit/100,K;if(J[4]!==k)K=n0(k,2),J[4]=k,J[5]=K;else K=J[5];let F=K,D,z,N,A;if(J[6]!==Q.utilization){let w=new Date,d=new Date(w.getFullYear(),w.getMonth()+1,1);D=EQ,A=_J,z=Q.utilization,N=d.toISOString(),J[6]=Q.utilization,J[7]=D,J[8]=z,J[9]=N,J[10]=A}else D=J[7],z=J[8],N=J[9],A=J[10];let U;if(J[11]!==z||J[12]!==N)U={utilization:z,resets_at:N},J[11]=z,J[12]=N,J[13]=U;else U=J[13];let E=`${M} / ${F} spent`,h;if(J[14]!==D||J[15]!==X||J[16]!==A||J[17]!==U||J[18]!==E)h=Y(D,{title:A,limit:U,showTimeInReset:!1,extraSubtext:E,maxWidth:X}),J[14]=D,J[15]=X,J[16]=A,J[17]=U,J[18]=E,J[19]=h;else h=J[19];return h}var pJ,IQ,z0,_J="Extra usage";var fQ=c(()=>{DX();HX();eZ();SJ();KX();WX();VX();v0();O0();w0();OX();SJ();YJ();GX();XX();f0();XJ();TJ();zX();cq();ZQ();QQ();$();pJ=j(U0(),1),IQ=j(s(),1),z0=j(s(),1)});function zW(Z){let J=hQ.c(25),{onClose:Q,context:X,defaultTab:W}=Z,[O,R]=k0.useState(W),[P,M]=k0.useState(!1),[k,K]=k0.useState(!1),[F,D]=k0.useState(!1),z=C0(),{rows:N}=SQ(V0()),A=z?N+1:Math.max(15,Math.min(Math.floor(N*0.8),30)),[U]=k0.useState(PX);CQ();let E;if(J[0]!==Q||J[1]!==P)E=()=>{if(P)return;Q("Status dialog dismissed",{display:"system"})},J[0]=Q,J[1]=P,J[2]=E;else E=J[2];let h=E,w=!P&&!(O==="Config"&&k)&&!(O==="Gates"&&F),d;if(J[3]!==w)d={context:"Settings",isActive:w},J[3]=w,J[4]=d;else d=J[4];l("confirm:no",h,d);let t;if(J[5]!==X||J[6]!==U)t=Y(l0,{title:"Status",children:Y(NZ,{context:X,diagnosticsPromise:U})},"status"),J[5]=X,J[6]=U,J[7]=t;else t=J[7];let _;if(J[8]!==A||J[9]!==X||J[10]!==Q)_=Y(l0,{title:"Config",children:Y(k0.Suspense,{fallback:null,children:Y(Mq,{context:X,onClose:Q,setTabsHidden:M,onIsSearchModeChange:K,contentHeight:A})})},"config"),J[8]=A,J[9]=X,J[10]=Q,J[11]=_;else _=J[11];let F0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))F0=[Y(l0,{title:"Usage",children:Y(cJ,{view:"global"})},"usage"),Y(l0,{title:"Session",children:Y(cJ,{view:"session"})},"session")],J[12]=F0;else F0=J[12];let i;if(J[13]!==A)i=[],J[13]=A,J[14]=i;else i=J[14];let Q0;if(J[15]!==t||J[16]!==_||J[17]!==i)Q0=[t,_,...F0,...i],J[15]=t,J[16]=_,J[17]=i,J[18]=Q0;else Q0=J[18];let r=Q0,Y0=W!=="Config"&&W!=="Gates",j0=P||z?void 0:A,I0;if(J[19]!==O||J[20]!==j0||J[21]!==Y0||J[22]!==r||J[23]!==P)I0=Y(TQ,{color:"permission",children:Y(wQ,{color:"permission",selectedTab:O,onTabChange:R,hidden:P,initialHeaderFocused:Y0,contentHeight:j0,children:r})}),J[19]=O,J[20]=j0,J[21]=Y0,J[22]=r,J[23]=P,J[24]=I0;else I0=J[24];return I0}function PX(){return FZ().catch(kX)}function kX(){return[]}var hQ,k0;var MX=c(()=>{w0();RX();v0();zJ();LX();Dq();RZ();Aq();fQ();$();hQ=j(U0(),1),k0=j(s(),1)});
|
|
3
|
+
export{zW as zg,MX as Ag};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
|
|
2
|
+
export{z as Vpa,A as Wpa,B as Xpa,C as Ypa,D as Zpa,F as _pa,G as $pa,H as aqa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Zpa as j}from"./cli-0.7.0-8p56ked8.mjs";function C(){return`claude-swarm-${process.pid}`}var x="team-lead",y="claude-swarm",z="swarm-view",A="tmux",B="claude-hidden",D="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
+
export{x as N1,y as O1,z as P1,A as Q1,B as R1,C as S1,D as T1,k as U1};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{W6 as k2,Y6 as x8}from"./cli-0.7.0-es6y6s82.mjs";import{$6 as mZ,_6 as h}from"./cli-0.7.0-g2ekvm09.mjs";import{k7 as d5,m7 as w8}from"./cli-0.7.0-aewz8nz4.mjs";import{$7 as I4,$_ as S1,Cca as r1,E$ as VZ,Gba as j0,L8 as N5,N8 as dZ,Naa as o1,Pba as n4,Pda as m5,Rba as nZ,Rca as i,Rda as W4,Sba as v1,Tba as h8,Tca as e1,Uca as zZ,Waa as WZ,Xda as c5,Zca as Z4,_da as K,a$ as A8,a8 as s,b8 as L2,bea as $0,c8 as O0,d8 as y4,e8 as s2,k8 as H0,l8 as G1,lda as V4,n$ as a1,nca as d,nda as $4,nea as N,qda as O2,rba as k,rda as tZ,sca as p5,tba as B2,tca as C,v8 as D5,vea as s0,wba as Q0,wca as L,xba as y,y8 as cZ}from"./cli-0.7.0-h6kfhzzd.mjs";import{Hfa as M1,vfa as A0,xfa as k4}from"./cli-0.7.0-m07xma4d.mjs";import{Mga as v5,Nga as d4,Oga as B0,Qga as z8,Rga as G8,Tga as O,Uga as y0}from"./cli-0.7.0-y003ay15.mjs";import{Vga as x,Yga as j2}from"./cli-0.7.0-0cp32djm.mjs";import{$ha as Z0,Cha as K5,Gha as pZ,Kha as i2,Oha as S8,Yha as z,_ha as d0}from"./cli-0.7.0-hrtdae85.mjs";import{qia as p,sia as q1,xia as V1}from"./cli-0.7.0-ba1xb8x3.mjs";import{Aia as L5,Dia as F,Fia as g,Hia as P2,Kia as c4,Nia as u}from"./cli-0.7.0-na9s209m.mjs";import{Cla as s1,Cma as J1,Dma as Q1,Ema as X1,Fma as Y1,Gla as P4,Lla as v0,Mla as J2,Rma as x2,ema as f,lma as _1,nka as Y0,oka as w1,ola as p1,ooa as J0}from"./cli-0.7.0-x2vc8nds.mjs";import{Noa as v,Ooa as l0}from"./cli-0.7.0-wspeyepj.mjs";import{Apa as q2,ipa as P}from"./cli-0.7.0-sbwhas5a.mjs";import{Wpa as S0,Ypa as c2,Zpa as H,_pa as e}from"./cli-0.7.0-8p56ked8.mjs";function I5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var y5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=P2(),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 k2(),...J&&{requestHandler:new(await import("./index-0.7.0-3qc9y7vs.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.7.0-8xaka5b5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function u$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=P2(),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 k2(),...J&&{requestHandler:new(await import("./index-0.7.0-3qc9y7vs.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.7.0-8xaka5b5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function j8(Z){return Z.startsWith("anthropic.")}function R8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function H8(Z){let $=R8(Z);for(let J of B8)if($.startsWith(`${J}.anthropic.`))return J;return}function m$(Z,$){let J=H8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(j8(Z))return`${$}.${Z}`;return Z}var T5,p$,B8;var h5=H(()=>{l0();n();u();s0();x8();T5=v(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw N(X),X}});p$=v(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return N($),null}});B8=["us","eu","apac","global"]});var E2,_2,M2,S2,v2,I2,y2,T2,C2,a0,o0,r0,A2,h2,f2,G0,d$,f5;var g2=H(()=>{E2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={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"},S2={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"},v2={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"},I2={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"},y2={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"},T2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},f2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},G0={haiku35:M2,haiku45:S2,sonnet35:_2,sonnet37:E2,sonnet40:v2,sonnet45:I2,sonnet46:h2,sonnet5:f2,opus40:y2,opus41:T2,opus45:C2,opus46:a0,opus47:o0,opus48:r0,fable5:A2},d$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,u2;var p2=H(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},u2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>b8,getCopilotDisplayName:()=>O8,getCatalogCopilotMaxOutputTokens:()=>k8,getCatalogCopilotContextWindow:()=>P8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>U8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function L8(){if(u5)return;u5=!0,p5(()=>{let Z=E0();if(Z&&x0!==Z)n2()})}function d2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function K8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function D8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:K8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(m5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),F8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...d5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let W=new Set,G=[];for(let B of q.data){let R=D8(B);if(!R||W.has(R.model.id))continue;W.add(R.model.id),G.push(R)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){L8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(m2===Z)return;Z2.finally(()=>n2());return}m2=Z,Z2=t5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,m2=null})}function N8(){return t}function b8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function O8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function U8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function P8(Z){return $2(Z)?.model.limit.context}function k8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var F8=5000,t=null,x0=null,Z2=null,m2=null,u5=!1;var M0=H(()=>{$0();w8();c5();i();Z0();p2()});function V(){let Z=K();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function ZJ(){return V()==="firstParty"}function $J(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(M0(),S0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function JJ(){return V()}function QJ(){let Z=K();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 l=H(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of l5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await T5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of l5){let X=G0[Q].firstParty;J[Q]=C5($,X)||Z[Q]}return J}function i5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=f5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M8(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}s5()}function j(){let Z=v0();if(Z===null)return M8(),i5(Q2(V()));return i5(Z)}async function jJ(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}await s5()}var l5,s5;var Y2=H(()=>{J0();s0();y5();j0();h5();g2();l();l5=Object.keys(G0);s5=I5(async()=>{if(v0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){N(Z)}})});function FJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=I0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function LJ(){if(a5!==null)return a5;if(!U())return!1;let Z=M();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var a5=null;var o5=H(()=>{n();i();u()});function bJ(Z){return Z}function OJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=H(()=>{o5()});async function SJ(){let $=L().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${O().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function R0(Z){let $=`${O().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){N(J)}}var t2=H(()=>{q2();y0();n();i();s0()});import{mkdirSync as v8,writeFileSync as I8}from"fs";function C8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{v8(V2,{recursive:!0,mode:448}),I8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function $1(Z,$){try{let Q=i2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!q1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function W1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=$1($,J);return X(G),G}let W=parseInt(q,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=i2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(B,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),C8($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:y8,label:"OAuth token",getCached:J1,setCached:Q1})}function l2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:T8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",y8,T8,fJ;var z1=H(()=>{J0();Z0();u();V1();S8();y8=`${V2}/.oauth_token`,T8=`${V2}/.api_key`,fJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=s();if((await H0(`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 j1=H(()=>{G1();s2()});function dJ(Z){return Z?.name==="CredentialsProviderError"}function B1(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 a2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function R1(){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 H1=H(()=>{Z0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();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 F1=H(()=>{w1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",K1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",lJ="effort-2025-11-24",sJ="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",aJ="extended-cache-ttl-2025-04-11",oJ="fast-mode-2026-02-01",U1="redact-thinking-2026-02-12",P1="thinking-token-count-2026-05-13",k1="token-efficient-tools-2026-03-28",rJ="afk-mode-2026-01-31",eJ="advisor-tool-2026-03-01",r2,Z3;var e2=H(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),Z3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(V()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function I1(){if(!A())return!1;return g8()===null}function f8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function g8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=A0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!S1()&&A0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!k("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(_.status==="disabled"){if(_.reason==="network_error"||_.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=f8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function L3(){return"opus"+(f0()?"[1m]":"")}function K3(Z){if(!A())return!1;if(!I1())return!1;if(!y1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function y1(Z){if(!A())return!1;let $=Z??h0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function u8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!Z5)z("Fast mode cooldown expired, re-enabling fast mode"),Z5=!0,C1.emit();w0={status:"active"}}return w0}function b3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},Z5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),T1.emit(Z,$)}function O3(){w0={status:"active"}}function U3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},B2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function p8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function m8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function k3(Z){let $=p8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!m8(Z))B2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function c8(){return u8().status==="cooldown"}function E3(Z,$){let J=A()&&I1()&&!!$&&y1(Z);if(J&&c8())return"cooldown";if(J)return"on";return"off"}async function d8(Z){let $=`${O().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function M3(){if(!A())return;if(_.status!=="pending")return;_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function S3(){if(v1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<n8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return d8(q)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(P.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 J5(B),Y=await Q();else throw W}else throw W}let q=_.status!=="pending"?_.status==="enabled":L().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)B2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${_.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=X(),C0}var F3="Opus 4.7",w0,Z5=!1,T1,C1,D3,N3,A1,P3,_,$5,_3,n8=30000,E1=0,C0=null;var h1=H(()=>{q2();y0();M1();J0();j2();n();A8();i();Z0();u();F0();l();h8();j0();w1();w0={status:"active"},T1=Y0(),C1=Y0(),D3=T1.subscribe,N3=C1.subscribe;A1=Y0(),P3=A1.subscribe;_={status:"pending"},$5=Y0(),_3=$5.subscribe});function r8(Z){for(let $ of o8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return i8;return K0}function e8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function ZZ(Z,$){let J=b(Z);if(J===D(a0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=g1[J];if(!Q){let X=r8(Z);if(X)return X;return $Z(Z,J),g1[b(h0())]??a8}return Q}function $Z(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function JZ(Z,$){let J=ZZ(Z,$);return e8(J,$)}function h3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return JZ(Z,J)}function u1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${u1(Z.inputTokens)}/${u1(Z.outputTokens)} per Mtok`}var L0,f1,K0,t8,i8,l8,s8,a8,o8,g1;var c1=H(()=>{j2();J0();h1();g2();F0();L0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},f1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},K0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},t8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},l8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},s8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},a8=K0,o8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];g1={[D(M2.firstParty)]:l8,[D(S2.firstParty)]:s8,[D(_2.firstParty)]:L0,[D(E2.firstParty)]:L0,[D(v2.firstParty)]:L0,[D(I2.firstParty)]:L0,[D(h2.firstParty)]:L0,[D(f2.firstParty)]:L0,[D(y2.firstParty)]:f1,[D(T2.firstParty)]:f1,[D(C2.firstParty)]:K0,[D(a0.firstParty)]:K0,[D(o0.firstParty)]:K0,[D(r0.firstParty)]:K0,[D(A2.firstParty)]:t8}});function m(Z){return QZ.includes(Z)}function D0(Z){return XZ.includes(Z)}var QZ,XZ;var X5=H(()=>{QZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];XZ=["sonnet","opus","haiku"]});function YZ(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function qZ(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(d1(J,$))return!0;if(!$.startsWith("claude-")&&d1(J,`claude-${$}`))return!0;return!1}function n1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function t1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!D0(X)||!n1(X,Y))return!0}for(let q of Y)if(D0(q)&&!n1(q,Y)&&YZ(X,q))return!0;if(m(X)){let q=I(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(I(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(qZ(X,q))return!0}return!1}var i1=H(()=>{j0();X5();F0();Y2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=K();if(!Z?.model)return;return e1(Z.model)}function W7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"codexspark";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return J4()}function z7(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=y()||{},Q=R2(J.model),X=b0();if(Z4()!==void 0)Z=R2(r1().activeModelForProject)||void 0;else Z=X||Q||void 0}if(Z&&!t1(Z))return;return Z}function G7(){let Z=Y5();if(Z!==void 0&&Z!==null)return I(Z);return Q4()}function GZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.5-pro";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.7";if(V()!=="firstParty")return j().opus46;return j().opus48}function g0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"mistral-medium-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5";if(V()!=="firstParty")return j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function x7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return g0();return J}function h0(){let Z=b0();if(V()==="github"){let $=y()||{};return R2($.model)||Z||"github:copilot"}if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(H2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return g0()}function Q4(){return I(h0())}function D(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return D(X2(Z))}function xZ(Z=!1){if(H2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?l1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?l1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function j7(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(I(Z))}function l1(Z){if(V()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${a1})`:""} ${$}`}function f0(){if(V0()||W5()||V()!=="firstParty")return!1;if(U()&&M()===null)return!1;return!0}function B7(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return o1(Z);return Y4(Z)}function X4(Z){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(u2[Z])return u2[Z];if(V()==="github"){let{getCopilotDisplayName:$}=(M0(),S0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R7(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=R2(Z);if(!$)return g0();let J=$.toLowerCase(),Q=a(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return g0()+(Q?"[1m]":"");case"sonnet":return g0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return GZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(V()==="firstParty"&&BZ(X)&&RZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function H7(Z,$){if(a(Z)||!a($))return Z;if(q5(I(Z)))return Z+"[1m]";return Z}function BZ(Z){return jZ.includes(Z)}function RZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function w7(Z){if(Z===null){if(U())return`Default (${xZ()})`;return`Default (${Q4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function F7(Z){if(V()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function K7(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var jZ;var F0=H(()=>{J0();$0();i();$4();n();V5();u();zZ();Y2();c1();j0();l();VZ();i1();X5();WZ();p2();jZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function N7(){}var q4=()=>{};var B4={};c2(B4,{prefetchOpenAICompatibleModels:()=>UZ,getDiscoveredContextWindow:()=>HZ,discoverOpenAICompatibleModelOptions:()=>j4});function HZ(Z){return G4.get(Z)}function wZ(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function x4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function FZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function LZ(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(FZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function KZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&x4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function DZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function NZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function bZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await P.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let W=q.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=q.name?.trim()||W,B=q.context_length??null;if(B&&B>0)G4.set(W,B);let R=B?` · ${NZ(B)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((q,W)=>{let G=String(q.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",R=G.localeCompare(B);return R!==0?R:String(q.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function OZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:z4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function j4(){if(V()!=="openai")return[];let Z=wZ(),$=LZ(Z),J=await bZ(KZ(Z),$);if(J.length>0)return J;let Q=DZ(Z);if(Q)return OZ(Q,$);return[]}function UZ(){if(u0)return u0;return u0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await j4();if($.length>0)V4($)}catch{}finally{u0=null}})(),u0}var z4=5000,G4,u0=null;var R4=H(()=>{q2();$0();c5();Z0();l();$4();G4=new Map});function w4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=H4($,J);if(X!==void 0)return X;return H4(Z,J)}function H4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function F4(Z){let $=w4(PZ,EZ,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(R4(),S0(B4)),Q=J(Z);if(Q!==void 0)return Q}catch{}try{let{getCatalogCopilotContextWindow:J}=(M0(),S0(_0));return J(Z)}catch{return}}function L4(Z){let $=w4(kZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(M0(),S0(_0));return J(Z)}catch{return}}var PZ,kZ,EZ,_Z;var K4=H(()=>{$0();PZ={"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},kZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function D4(){let Z=K()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function a(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function p7(Z,$){if(a(Z))return 1e6;if(D4()){let Q=F4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),MZ}let J=z5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G5&&V0())return G5;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")))return 1e6;if($?.includes(T0)&&q5(Z))return 1e6;if(IZ(Z))return 1e6;return G5}function IZ(Z){if(V0())return!1;if(a(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function m7(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function c7(Z){let $,J;if(D4()){let Y=L4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=SZ,J=vZ;let X=z5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G5=200000,MZ,f7=20000,SZ=32000,vZ=64000,g7=8000,u7=64000;var V5=H(()=>{e2();$0();i();u();F0();q4();K4();MZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var yZ,N4;var b4=H(()=>{l0();l();yZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],N4=v((Z,$)=>{if(V()==="firstParty")return;let J=Z.toLowerCase();for(let Q of yZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function TZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function V9(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=TZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function O4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=V();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function CZ(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=b(Z),J=V();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function hZ(Z){let $=b(Z),J=V();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function W9(Z){let $=b(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 z9(){let Z=V();if(Z==="vertex"||Z==="bedrock")return b1;return N1}function U4(){return(V()==="firstParty"||V()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function G9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function x9(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=P4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function M4(){x5.cache?.clear?.(),_4.cache?.clear?.(),fZ.cache?.clear?.()}var E4,x5,_4,fZ;var S4=H(()=>{l0();M1();J0();e2();y0();n();V5();u();F0();b4();l();j0();E4=[T0];x5=v((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=V(),X=U4();if(!J)$.push(G2);if(U())$.push(B0);if(a(Z))$.push(T0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&O4(Z))$.push(L1);if(X&&O4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(U1),$.push(P1);let Y=AZ(Z);if(U4()&&Y)$.push(K1);let q=k4("tengu_tool_pear"),W=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&hZ(Z)&&q)$.push(D1);if(X&&W)$.push(k1);if(Q==="vertex"&&CZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=v((Z)=>{let $=x5(Z);if(V()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),fZ=v((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as gZ}from"child_process";function v4(Z){return new Promise(($)=>{gZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:uZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function w9(){if(process.platform!=="darwin"||F2||g())return;let Z=v4(s(I4)),$=v4(s());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)y4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function F9(){if(F2)await F2}function T4(){return j5}function B5(){j5=null}var uZ=1e4,j5=null,F2=null;var C4=H(()=>{u();s2()});function R5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var A4=()=>{};function D9(){return h4}function f4(){h4.clear()}var h4;var g4=H(()=>{h4=new Map});var S$={};c2(S$,{validateForceLoginOrg:()=>M$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>M5,removeApiKey:()=>w$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>j$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>B$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>$$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>b$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>D$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>H2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>O$,isCustomApiKeyApproved:()=>H$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>P5,isAwsAuthRefreshFromProjectSettings:()=>O5,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>K$,hasProfileScope:()=>q0,hasOpusAccess:()=>N$,hasAnthropicApiKeyAuth:()=>oZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>M,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>P$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>I0,getApiKeyHelperElapsedMs:()=>rZ,getApiKeyFromConfigOrMacOSKeychain:()=>U2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>S5,clearGcpCredentialsCache:()=>x$,clearAwsCredentialsCache:()=>q$,clearApiKeyHelperCache:()=>Z$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>a4});import{exec as l4}from"child_process";import{mkdir as iZ,stat as lZ}from"fs/promises";import{join as sZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){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,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function I0(){if(g()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function oZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=K();if(q?.transport!=="anthropic")return;let W=q.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:w5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=c4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=l2();if(q)return{key:q,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=l2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w5(),source:"apiKeyHelper"}}let Y=U2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(g())return k("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function s4(){let Z=o();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(y()||{}).awsAuthRefresh}function O5(){let Z=b5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function U5(){return(y()||{}).awsCredentialExport}function P5(){let Z=U5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function a4(){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 aZ}function rZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=a4();if(S){if(Date.now()-S.timestamp<$)return S.value;if(!c)c={promise:u4(Z,!1,U0),startedAt:null};return S.value}if(c)return c.promise;return c={promise:u4(Z,!0,U0),startedAt:Date.now()},c.promise}async function u4(Z,$,J){try{let Q=await eZ(Z);if(J!==U0)return Q;if(Q!==null)S={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==U0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&S&&S.value!==" ")return S={...S,timestamp:Date.now()},S.value;return S={value:" ",timestamp:Date.now()}," "}finally{if(J===U0)c=null}}async function eZ(Z){let $=o();if(!$)return null;if(s4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w5(){return S?.value??null}function Z$(){U0++,S=null,c=null}function $$(Z){if(s4()&&!d())return;o4(Z)}async function Q$(){let Z=b5();if(!Z)return!1;if(O5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return r4(Z)}}function r4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:X$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function Y$(){let Z=U5();if(!Z)return null;if(P5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=K5($.stdout.trim());if(!B1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function q$(){z0.cache.clear()}function k5(){return(y()||{}).gcpAuthRefresh}function E5(){let Z=k5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function e4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=R5(V$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function z$(){let Z=k5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await e4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Z8(Z)}function Z8(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:G$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function x$(){_5.cache.clear()}function j$(){if(!k5())return;if(E5()){if(!d()&&!f())return}_5()}function B$(){let Z=b5(),$=U5();if(!Z&&!$)return;if(O5()||P5()){if(!d()&&!f())return}z0(),j()}function R$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function M5(Z){if(!R$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await $8();let $=!1;if(process.platform==="darwin")try{let Q=s(),X=L2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
|
|
2
|
+
`;await H0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U2.cache.clear?.(),B5()}function H$(Z){let $=L(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function w$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),U2.cache.clear?.(),B5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(Z){if(!P0(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 $=O2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),f4(),Y}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function S5(){w.cache?.clear?.(),O0()}async function F$(){try{let{mtimeMs:Z}=await lZ(sZ(L5(),".credentials.json"));if(Z!==p4)p4=Z,S5()}catch{w.cache?.clear?.()}}function J5(Z){let $=H5.get(Z);if($)return $;let J=L$(Z).finally(()=>{H5.delete(Z)});return H5.set(Z,J),J}async function L$(Z){S5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await O2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=F5(Z,$).finally(()=>{p0=null}),p0}return F5(Z,$)}async function F5(Z,$){await F$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!P0(Q.scopes))return!1;w.cache?.clear?.(),O0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=L5();await iZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await n4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await R5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),O0();let W=await c0();if(!W?.refreshToken||!m0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(W.refreshToken,{scopes:P0(W.scopes)?void 0:W.scopes});return J8(G),w.cache?.clear?.(),O0(),!0}catch(W){N(W),w.cache?.clear?.(),O0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!k0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function K$(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function N2(){return k0()?L().oauthAccount:void 0}function D$(){let $=N2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function N$(){let Z=M();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function M(){if(e5())return r5();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H2(){return M()==="max"}function b$(){return M()==="team"}function w2(){return M()==="team"&&Q8()==="default_claude_max_5x"}function O$(){return M()==="enterprise"}function W5(){return M()==="pro"}function Q8(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(M()){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=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(y()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function P$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||U$.toString());if(K2&&Date.now()-m4<$)return K2;if(q8()){if(!d())return{}}try{let J=D5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=K5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return K2=Q,m4=Date.now(),K2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function k$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=M();return U()&&Z!==null&&k$(Z)}function _$(){if(V()!=="firstParty")return;let{source:$}=I0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=X8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function M$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=k("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=I0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await R0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${Z}
|
|
10
|
+
Token organization: ${Y}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var aZ=300000,S=null,c=null,U0=0,J$=3600000,X$=180000,z0,V$=5000,W$=3600000,G$=180000,_5,U2,w,p4=0,H5,p0=null,K2=null,m4=0,U$=1740000,V8;var n=H(()=>{mZ();G1();l0();y0();j2();Y2();l();J0();$0();Z1();i4();t2();z1();j1();H1();F1();S4();i();Z0();u();V1();cZ();nZ();s0();dZ();tZ();C4();s2();j0();A4();pZ();g4();z0=N5(async()=>{let Z=await Q$(),$=await Y$();if(Z||$)await R1();return $},J$);_5=N5(async()=>{return await z$()},W$);U2=v(()=>{if(g())return null;if(process.platform==="darwin"){let $=T4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=D5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=v(()=>{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=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=O2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});H5=new Map;V8=class V8 extends Error{}});function P0(Z){return Boolean(Z?.includes(v5))}function v$(Z){return Z?.split(" ").filter(Boolean)??[]}function GQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:W,loginMethod:G}){let B=X?O().CLAUDE_AI_AUTHORIZE_URL:O().CONSOLE_AUTHORIZE_URL,R=new URL(B);R.searchParams.append("code","true"),R.searchParams.append("client_id",O().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?O().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[v5]:G8;if(R.searchParams.append("scope",W0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),q)R.searchParams.append("orgUUID",q);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function xQ(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?O().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:O().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let W=await P.post(O().TOKEN_URL,q,{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 t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:O().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await P.post(O().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:W}=X,G=Date.now()+W*1000,B=v$(X.scope);x("tengu_oauth_token_refresh_success",{});let R=L(),W0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await I$(Y);if(E&&R.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function jQ(Z){let $=await P.get(O().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((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function BQ(Z){try{let $=await P.post(O().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await M5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function I$(Z){let $=await R0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function RQ(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await R0(J))?.organization?.uuid;if(!X)return null;return X}async function HQ(){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)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=L();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await R0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return W8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function W8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,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 i4=H(()=>{q2();j2();y0();n();i();Z0();t2()});
|
|
16
|
+
export{w9 as x2,F9 as y2,C4 as z2,I5 as A2,y5 as B2,u$ as C2,p$ as D2,j8 as E2,H8 as F2,m$ as G2,h5 as H2,a0 as I2,o0 as J2,G0 as K2,g2 as L2,n2 as M2,b8 as N2,M0 as O2,V as P2,ZJ as Q2,$J as R2,JJ as S2,QJ as T2,l as U2,j as V2,jJ as W2,Y2 as X2,FJ as Y2,LJ as Z2,o5 as _2,bJ as $2,OJ as a3,Z1 as b3,SJ as c3,R0 as d3,t2 as e3,P0 as f3,v$ as g3,GQ as h3,xQ as i3,t4 as j3,jQ as k3,BQ as l3,m0 as m3,I$ as n3,RQ as o3,HQ as p3,W8 as q3,i4 as r3,fJ as s3,C8 as t3,$1 as u3,z1 as v3,z2 as w3,j1 as x3,dJ as y3,H1 as z3,T as A3,F1 as B3,T0 as C3,K1 as D3,D1 as E3,lJ as F3,sJ as G3,O1 as H3,aJ as I3,oJ as J3,U1 as K3,rJ as L3,eJ as M3,Z3 as N3,e2 as O3,A as P3,I1 as Q3,g8 as R3,F3 as S3,L3 as T3,K3 as U3,y1 as V3,D3 as W3,N3 as X3,u8 as Y3,b3 as Z3,O3 as _3,U3 as $3,P3 as a4,k3 as b4,c8 as c4,E3 as d4,_3 as e4,M3 as f4,S3 as g4,h1 as h4,L0 as i4,t8 as j4,l8 as k4,s8 as l4,Q5 as m4,JZ as n4,h3 as o4,m1 as p4,c1 as q4,QZ as r4,X5 as s4,t1 as t4,i1 as u4,W7 as v4,z7 as w4,Y5 as x4,G7 as y4,GZ as z4,N0 as A4,g0 as B4,J4 as C4,x7 as D4,h0 as E4,Q4 as F4,D as G4,b as H4,xZ as I4,j7 as J4,l1 as K4,f0 as L4,B7 as M4,X4 as N4,Y4 as O4,R7 as P4,I as Q4,H7 as R4,RZ as S4,w7 as T4,F7 as U4,L7 as V4,K7 as W4,F0 as X4,N7 as Y4,q4 as Z4,j4 as _4,UZ as $4,R4 as a5,f7 as b5,g7 as c5,u7 as d5,V0 as e5,a as f5,p7 as g5,IZ as h5,m7 as i5,c7 as j5,V5 as k5,N4 as l5,b4 as m5,V9 as n5,hZ as o5,W9 as p5,z9 as q5,U4 as r5,G9 as s5,_4 as t5,fZ as u5,x9 as v5,M4 as w5,S4 as x5,R5 as y5,A4 as z5,D9 as A5,f4 as B5,g4 as C5,k0 as D5,I0 as E5,X0 as F5,oZ as G5,n0 as H5,o as I5,O5 as J5,P5 as K5,a4 as L5,rZ as M5,o4 as N5,w5 as O5,Z$ as P5,$$ as Q5,r4 as R5,z0 as S5,q$ as T5,E5 as U5,e4 as V5,Z8 as W5,_5 as X5,x$ as Y5,j$ as Z5,B$ as _5,U2 as $5,M5 as a6,H$ as b6,w$ as c6,J8 as d6,w as e6,S5 as f6,J5 as g6,c0 as h6,t0 as i6,U as j6,q0 as k6,K$ as l6,N2 as m6,D$ as n6,N$ as o6,M as p6,H2 as q6,b$ as r6,w2 as s6,O$ as t6,W5 as u6,Q8 as v6,X8 as w6,b2 as x6,q8 as y6,P$ as z6,E$ as A6,_$ as B6,M$ as C6,S$ as D6,n as E6};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Id as j,Jd as w,Kd as _,Ld as D,Md as L,Nd as A,Od as O}from"./cli-0.7.0-q5sbn5b2.mjs";import{AK as I,Zo as R,ap as b,kA as W,nA as V,pA as C,wQ as h,yQ as y,zK as X}from"./cli-0.7.0-7g132rdj.mjs";import{f8 as Q,g8 as N,nea as U,vea as S}from"./cli-0.7.0-h6kfhzzd.mjs";import{Vga as K,Yga as v}from"./cli-0.7.0-0cp32djm.mjs";import{bia as x,fia as M}from"./cli-0.7.0-z7sydqy8.mjs";import{qia as B,xia as F}from"./cli-0.7.0-ba1xb8x3.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
+
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
+
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
+
export{g as a,a as b,i as c,u as d,n as e,r as f};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{sI as Q,vI as F}from"./cli-0.7.0-7g132rdj.mjs";import{$ha as y,Yha as b}from"./cli-0.7.0-hrtdae85.mjs";import{sia as x,xia as f}from"./cli-0.7.0-ba1xb8x3.mjs";import{Aia as w,Nia as R}from"./cli-0.7.0-na9s209m.mjs";import{ooa as K,vka as $,yka as j}from"./cli-0.7.0-x2vc8nds.mjs";import{Zpa as v}from"./cli-0.7.0-8p56ked8.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
|
|
2
|
+
|
|
3
|
+
`:"",B=k===G?`
|
|
4
|
+
|
|
5
|
+
${c}`:"";return`Scheduled loop tick.
|
|
6
|
+
|
|
7
|
+
${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
|
|
8
|
+
|
|
9
|
+
If .claudin/loop.md exists, read it and follow it.
|
|
10
|
+
Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
|
|
11
|
+
Otherwise:
|
|
12
|
+
- continue any unfinished work from the conversation
|
|
13
|
+
- tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
|
|
14
|
+
- run cleanup passes such as bug hunts or simplification when nothing else is pending
|
|
15
|
+
|
|
16
|
+
Do not start new initiatives outside that scope.
|
|
17
|
+
Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
|
|
18
|
+
export{Y as Jh,G as Kh,D as Lh,g as Mh,M as Nh,U as Oh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ht as R,It as T,Jt as $,uy as U,vy as V,yy as f}from"./cli-0.7.0-7g132rdj.mjs";import{t4 as Q,u4 as _}from"./cli-0.7.0-9jzkqcfv.mjs";import{M_ as L,T_ as Y,nea as G,vea as Z}from"./cli-0.7.0-h6kfhzzd.mjs";import{Zpa as X}from"./cli-0.7.0-8p56ked8.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
+
export{O as Nc,S as Oc,I as Pc,N as Qc,P as Rc,h as Sc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D6 as v,E6 as C}from"./cli-0.7.0-9jzkqcfv.mjs";import{Sba as Z,Tba as V,qda as x,rda as Y}from"./cli-0.7.0-h6kfhzzd.mjs";import{Hfa as O,vfa as R,zfa as W}from"./cli-0.7.0-m07xma4d.mjs";import{Tga as Q,Uga as M}from"./cli-0.7.0-y003ay15.mjs";import{$ha as L,Bha as P,Gha as I,Yha as f}from"./cli-0.7.0-hrtdae85.mjs";import{qia as w,xia as H}from"./cli-0.7.0-ba1xb8x3.mjs";import{Noa as N,Ooa as F}from"./cli-0.7.0-wspeyepj.mjs";import{Apa as U,ipa as X}from"./cli-0.7.0-sbwhas5a.mjs";import{Wpa as h,Zpa as B}from"./cli-0.7.0-8p56ked8.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
+
export{u as $U,n as aV,o as bV,t as cV,d as dV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{BZ as jQ,CZ as aQ,GZ as d,RX as u,RZ as a,ZY as QQ,_Y as uQ,kZ as g,mZ as h,sZ as RQ}from"./cli-0.7.0-p9q4x3f1.mjs";import{X1 as S,Y1 as k,Z1 as f}from"./cli-0.7.0-wgy69726.mjs";import{_1 as v}from"./cli-0.7.0-asw5nd1q.mjs";import{m2 as n,o2 as t,t2 as YV}from"./cli-0.7.0-1tb38zvv.mjs";import{E6 as XV,j6 as $Q,m6 as P,p6 as bQ}from"./cli-0.7.0-9jzkqcfv.mjs";import{Rca as QV,Sba as fQ,Tba as eQ,nea as CQ,tca as mQ,vea as VV,wca as x}from"./cli-0.7.0-h6kfhzzd.mjs";import{Aea as AQ,Bea as sQ}from"./cli-0.7.0-twxrndmz.mjs";import{Tga as r,Uga as nQ}from"./cli-0.7.0-y003ay15.mjs";import{$ha as iQ,Yha as D}from"./cli-0.7.0-hrtdae85.mjs";import{Apa as tQ,ipa as i}from"./cli-0.7.0-sbwhas5a.mjs";import{Vpa as M,Zpa as F}from"./cli-0.7.0-8p56ked8.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=M(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var JQ=()=>{};function GQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function yQ(X){if(X===" ")return[GQ("space")];return X.trim().split(/\s+/).map(GQ)}function hQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=kQ(X.key);return Q.push(V),Q.join("+")}function kQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function l(X){return X.map(hQ).join(" ")}function BV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:yQ(Z),action:Y,context:V.context});return Q}var qQ=()=>{};function LQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?l(Z.chord):void 0}function gQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function lQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function cQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let J=gQ(X,Q);if(!J){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let G=Y?[...Y,J]:[J],q=new Set(V),B=Z.filter((L)=>q.has(L.context)),z=new Map;for(let L of B)if(L.chord.length>G.length&&lQ(G,L))z.set(l(L.chord),L.action);let N=!1;for(let L of z.values())if(L!==null){N=!0;break}if(N)return{type:"chord_started",pending:G};let H;for(let L of B)if(cQ(G,L))H=L;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var BQ=F(()=>{JQ();qQ()});function MV(X){let Q=c.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:J,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,handlerRegistryRef:z,children:N}=X,H;if(Q[0]!==V)H=(U,O)=>LQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let L=H,_;if(Q[2]!==z)_=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action).add(U),()=>{let I=O.get(U.action);if(I){if(I.delete(U),I.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=_;else _=Q[3];let b=_,E;if(Q[4]!==G||Q[5]!==z)E=(U)=>{let O=z.current;if(!O)return!1;let I=O.get(U);if(!I||I.size===0)return!1;for(let e of I)if(G.has(e.context))return e.handler(),!0;return!1},Q[4]=G,Q[5]=z,Q[6]=E;else E=Q[6];let K=E,j;if(Q[7]!==V||Q[8]!==Z)j=(U,O,I)=>zQ(U,O,I,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=j;else j=Q[9];let A;if(Q[10]!==G||Q[11]!==V||Q[12]!==L||Q[13]!==K||Q[14]!==Y||Q[15]!==q||Q[16]!==b||Q[17]!==J||Q[18]!==j||Q[19]!==B)A={resolve:j,setPendingChord:J,getDisplayText:L,bindings:V,pendingChord:Y,activeContexts:G,registerActiveContext:q,unregisterActiveContext:B,registerHandler:b,invokeAction:K},Q[10]=G,Q[11]=V,Q[12]=L,Q[13]=K,Q[14]=Y,Q[15]=q,Q[16]=b,Q[17]=J,Q[18]=j,Q[19]=B,Q[20]=A;else A=Q[20];let w=A,W;if(Q[21]!==N||Q[22]!==w)W=S(NQ.Provider,{value:w,children:N}),Q[21]=N,Q[22]=w,Q[23]=W;else W=Q[23];return W}function dQ(){}function y(){return m.useContext(NQ)}function SV(X,Q){let V=c.c(5),Z=Q===void 0?!0:Q,Y=y(),J,G;if(V[0]!==X||V[1]!==Z||V[2]!==Y)J=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},G=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=J,V[4]=G;else J=V[3],G=V[4];m.useLayoutEffect(J,G)}var c,m,NQ;var UQ=F(()=>{BQ();f();c=M(u(),1),m=M(v(),1),NQ=m.createContext(null)});function TV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,J=y();C.useEffect(()=>{if(!J||!Y)return;return J.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,J,Y]);let G=C.useCallback((q,B,z)=>{if(!J)return;let N=[...J.activeContexts,Z,"Global"],H=[...new Set(N)],L=J.resolve(q,B,H);switch(L.type){case"match":if(J.setPendingChord(null),L.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":J.setPendingChord(L.pending),z.stopImmediatePropagation();break;case"chord_cancelled":J.setPendingChord(null);break;case"unbound":J.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,J]);d(G,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=y();C.useEffect(()=>{if(!Y||!Z)return;let G=[];for(let[q,B]of Object.entries(X))G.push(Y.registerHandler({action:q,context:V,handler:B}));return()=>{for(let q of G)q()}},[V,X,Y,Z]);let J=C.useCallback((G,q,B)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],N=[...new Set(z)],H=Y.resolve(G,q,N);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let L=X[H.action];if(L&&L()!==!1)B.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),B.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),B.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(J,{isActive:Z})}var C;var _Q=F(()=>{a();UQ();C=M(v(),1)});function o(X,Q,V){let Z=R.useRef(0),Y=R.useRef(void 0),J=R.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return R.useEffect(()=>{return()=>{J()}},[J]),R.useCallback(()=>{let G=Date.now();if(G-Z.current<=FQ&&Y.current!==void 0)J(),X(!1),Q();else V?.(),X(!0),J(),Y.current=setTimeout((z,N)=>{z(!1),N.current=void 0},FQ,X,Y);Z.current=G},[X,Q,V,J])}var R,FQ=800;var WQ=F(()=>{R=M(v(),1)});function wQ(X,Q,V,Z=!0){let{exit:Y}=jQ(),[J,G]=T.useState({pending:!1,keyName:null}),q=T.useMemo(()=>V??Y,[V,Y]),B=o((_)=>G({pending:_,keyName:"Ctrl-C"}),q),z=o((_)=>G({pending:_,keyName:"Ctrl-D"}),q),N=T.useCallback(()=>{if(Q?.())return;B()},[B,Q]),H=T.useCallback(()=>{z()},[z]),L=T.useMemo(()=>({"app:interrupt":N,"app:exit":H}),[N,H]);return X(L,{context:"Global",isActive:Z}),J}var T;var MQ=F(()=>{aQ();WQ();T=M(v(),1)});function $V(X,Q,V){return wQ(OQ,Q,X,V)}var oQ=F(()=>{_Q();MQ()});function IQ(){return $.useContext(s)!==null}function pV(X){let Q=SQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var SQ,$,s;var KQ=F(()=>{SQ=M(u(),1),$=M(v(),1),s=$.createContext(null)});function EQ(X){let Q=TQ.c(21),{width:V,color:Z,char:Y,padding:J,title:G}=X,q=Y===void 0?"─":Y,B=J===void 0?0:J,{columns:z}=XQ(),N=Math.max(0,(V??z)-B);if(G){let b=AQ(G)+2,E=Math.max(0,N-b),K=Math.floor(E/2),j=E-K,A=!Z,w;if(Q[0]!==q||Q[1]!==K)w=q.repeat(K),Q[0]=q,Q[1]=K,Q[2]=w;else w=Q[2];let W;if(Q[3]!==G)W=S(h,{dimColor:!0,children:S(RQ,{children:G})}),Q[3]=G,Q[4]=W;else W=Q[4];let U;if(Q[5]!==q||Q[6]!==j)U=q.repeat(j),Q[5]=q,Q[6]=j,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==A||Q[10]!==w||Q[11]!==W||Q[12]!==U)O=k(h,{color:Z,dimColor:A,children:[w," ",W," ",U]}),Q[8]=Z,Q[9]=A,Q[10]=w,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,L;if(Q[14]!==q||Q[15]!==N)L=q.repeat(N),Q[14]=q,Q[15]=N,Q[16]=L;else L=Q[16];let _;if(Q[17]!==Z||Q[18]!==H||Q[19]!==L)_=S(h,{color:Z,dimColor:H,children:L}),Q[17]=Z,Q[18]=H,Q[19]=L,Q[20]=_;else _=Q[20];return _}var TQ;var DQ=F(()=>{YQ();sQ();a();f();TQ=M(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(IQ()){let q;if(Q[0]!==V)q=S(g,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=q;else q=Q[1];return q}let Y;if(Q[2]!==Z)Y=S(EQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let J;if(Q[4]!==V)J=S(g,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=J;else J=Q[5];let G;if(Q[6]!==Y||Q[7]!==J)G=k(g,{flexDirection:"column",paddingTop:1,children:[Y,J]}),Q[6]=Y,Q[7]=J,Q[8]=G;else G=Q[8];return G}var PQ;var rQ=F(()=>{KQ();a();DQ();f();PQ=M(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&bQ()==="max")}function JX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,G=Date.now()-Y>pQ;return{eligible:Z,needsRefresh:G,hasCache:!0}}function GX(X){let Q=JV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(p)return D("Passes: Reusing in-flight eligibility fetch"),p;let X=P()?.organizationUuid;if(!X)return null;return p=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return mQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),D(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return D("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{p=null}})(),p}async function GV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return D("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>pQ){D("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:G,...q}=V;return q}D("Passes: Using fresh cached eligibility data");let{timestamp:Y,...J}=V;return J}async function HX(){if(fQ())return;GV()}var pQ=86400000,p=null,JV;var qV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();JV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{XQ as BW,YQ as CW,GQ as DW,yQ as EW,l as FW,BV as GW,qQ as HW,LQ as IW,zQ as JW,BQ as KW,MV as LW,y as MW,SV as NW,UQ as OW,TV as PW,OQ as QW,_Q as RW,o as SW,WQ as TW,$V as UW,oQ as VW,s as WW,IQ as XW,pV as YW,xV as ZW,KQ as _W,EQ as $W,DQ as aX,oV as bX,rQ as cX,ZX as dX,JX as eX,GX as fX,qX as gX,LX as hX,GV as iX,HX as jX,qV as kX};
|