@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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{E8 as X,I8 as k,_8 as Y,u9 as x}from"./cli-0.6.13-hd0sd535.mjs";import{Sea as $}from"./cli-0.6.13-s9rv2pr3.mjs";import{Vpa as Z}from"./cli-0.6.13-5qvssn7h.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
|
|
2
|
-
export{H as Hb,M as Ib};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{t as G0}from"./cli-0.6.13-1pb6yp4f.mjs";import{M as p0}from"./cli-0.6.13-8ws8a2xy.mjs";import{Jb as E0}from"./cli-0.6.13-tj2kvtza.mjs";import{Ob as k0}from"./cli-0.6.13-0602v59h.mjs";import{vc as P0,xc as Fc}from"./cli-0.6.13-gkfcc3c2.mjs";import{Ac as N,Bc as uc}from"./cli-0.6.13-h3ymv3nd.mjs";import{Dc as Q0,Ec as hc}from"./cli-0.6.13-w0qrn825.mjs";import{Zc as n0,_c as x0}from"./cli-0.6.13-b55baxv4.mjs";import{$K as _0,BS as D0,Bn as p,Cn as K0,DS as Tc,Dn as f0,EF as Y,En as N0,FF as M0,Fn as i0,GF as Z0,Gn as d0,HF as Mc,Jn as W,Kn as j,jL as j0,jS as O0,nG as y0,oG as _c,sE as Y0,tS as b0,uQ as d,uv as X,vF as m0,vS as B0,wE as lc,wF as g0,wQ as W0,xF as r,xL as u0,yQ as Ic,yS as ac,yv as l0,zF as A0,zL as r0}from"./cli-0.6.13-2s33ahe4.mjs";import{RX as G,RZ as x,gY as X0,kY as oc,kZ as c0,mZ as y,qZ as g}from"./cli-0.6.13-f67v536f.mjs";import{W1 as e,X1 as m,Y1 as U,Z1 as C}from"./cli-0.6.13-fy3vgkpz.mjs";import{Q2 as H0,U2 as mc,w3 as J0,x3 as nc}from"./cli-0.6.13-b3zncvcq.mjs";import{Aba as w0,Cba as U0,Gba as k,Rca as I0,_da as z0,bea as ic,nca as V0,tba as V,tca as s,wca as t,xba as J,yca as q0}from"./cli-0.6.13-hd0sd535.mjs";import{Xea as R,afa as cc}from"./cli-0.6.13-s9rv2pr3.mjs";import{Bfa as L0,Hfa as fc,tfa as C0}from"./cli-0.6.13-m4pb5k9v.mjs";import{Vga as q,Yga as E}from"./cli-0.6.13-prh9py3z.mjs";import{$ha as $0}from"./cli-0.6.13-dada1afp.mjs";import{Dia as K,Kia as R0,Nia as e0}from"./cli-0.6.13-qyd73z97.mjs";import{_ka as a0,ena as T0,ooa as v0}from"./cli-0.6.13-me17wefv.mjs";import{Rpa as D,Wpa as L}from"./cli-0.6.13-5qvssn7h.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-0.6.13-tzqbb17q.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-0.6.13-8kny4cnv.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-0.6.13-kq8ksp1e.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-0.6.13-bxhrfq4g.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-0.6.13-waw1tn55.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-0.6.13-ndwmcy2m.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-0.6.13-6nmfyyev.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-0.6.13-5pgva0rj.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-0.6.13-dyqtw95c.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
-
`;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
|
|
3
|
-
export{Cc as l,Lc as m,Gf as n,wc as o,z as p,Ef as q,kf as r,pf as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Vpa as H}from"./cli-0.6.13-5qvssn7h.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
|
|
2
|
-
export{F as bfa,K as cfa,M as dfa,N as efa,O as ffa,P as gfa,J as hfa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ni as M,Oi as W,QM as O,RM as P,SM as Q,TM as U,WM as X}from"./cli-0.6.13-2s33ahe4.mjs";import{Vpa as V}from"./cli-0.6.13-5qvssn7h.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as ig,$ as jg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$E as w,WE as R,XE as E,YE as l,ZE as i,_E as c,aF as O,eF as y,fF as e}from"./cli-0.6.13-2s33ahe4.mjs";import{BW as x,CW as s}from"./cli-0.6.13-79mne5jt.mjs";import{$Y as j,GZ as Q,RX as n,RZ as K,aZ as r,kZ as k,mZ as W}from"./cli-0.6.13-f67v536f.mjs";import{W1 as A,X1 as V,Y1 as D,Z1 as v}from"./cli-0.6.13-fy3vgkpz.mjs";import{_1 as t}from"./cli-0.6.13-hxfvksxq.mjs";import{Rpa as q,Vpa as p}from"./cli-0.6.13-5qvssn7h.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
-
export{X1 as Zg,u as _g,W1 as $g,B1 as ah};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Cc as m,Dc as v,Ec as wk}from"./cli-0.6.13-w0qrn825.mjs";import{$M as o,IF as n,JF as V,KF as i,NF as Tk,bN as t,dE as g,eE as a,eN as Dk,fA as s,gA as Gk,iN as e,jN as Uk,mE as Lk,mu as l,nu as Vk,tQ as r,uQ as kk,vn as p,wn as zk,yQ as jk}from"./cli-0.6.13-2s33ahe4.mjs";import{P2 as T,U2 as Jk,p3 as d,r3 as Ok}from"./cli-0.6.13-b3zncvcq.mjs";import{K6 as f,L6 as Ik,V6 as c,Y6 as Mk}from"./cli-0.6.13-hp0r1ftj.mjs";import{T7 as S,Y7 as _k}from"./cli-0.6.13-v83qp6b0.mjs";import{Aca as b,C9 as $k,Gba as Kk,Jca as u,Rca as $,_da as _,bea as Hk,rba as j,s8 as K,u8 as Zk,wca as x,y9 as P}from"./cli-0.6.13-hd0sd535.mjs";import{Xea as J,afa as Yk}from"./cli-0.6.13-s9rv2pr3.mjs";import{Tga as L,Uga as Bk}from"./cli-0.6.13-s2vxndky.mjs";import{$ga as O,$ha as U,Yha as B,bha as Rk}from"./cli-0.6.13-dada1afp.mjs";import{kia as h,qia as Y,xia as Xk}from"./cli-0.6.13-ze0ah657.mjs";import{Dia as E,Nia as Wk}from"./cli-0.6.13-qyd73z97.mjs";import{Ola as F,Qla as y,ema as w,ooa as z}from"./cli-0.6.13-me17wefv.mjs";import{Noa as A,Ooa as Qk}from"./cli-0.6.13-dvfmqzm9.mjs";import{Wpa as W}from"./cli-0.6.13-5qvssn7h.mjs";Yk();z();$();Qk();z();z();Vk();Ok();Lk();Tk();Bk();Hk();Jk();var G=!1;function D(){if(G)return;if(G=!0,T()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDE_CODE_CLIENT_CERT||process.env.CLAUDE_CODE_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||L().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();U();Kk();function C(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=x()?.env,Q=j("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();U();_k();Zk();zk();Wk();Xk();jk();wk();Ik();Dk();Mk();Uk();Gk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(m(),C(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-0.6.13-29x54d6r.mjs"),import("./growthbook-0.6.13-r6367yym.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),d(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),V())n();if(a())g();J("init_after_remote_settings_check"),u();let Q=Date.now();B("[init] configureGlobalMTLS starting"),f(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),c(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),D(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-0.6.13-3jmepw2f.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-0.6.13-am2fa4tp.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-0.6.13-nesaxh5h.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(w()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
|
|
2
|
-
`),kk(1);return}return import("./InvalidConfigDialog-0.6.13-5tjcywmj.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(V()){if(w()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),v(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await xk()}catch(k){throw I=!1,k}}async function xk(){let{initializeTelemetry:k}=await import("./instrumentation-0.6.13-adfxdg5f.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
|
|
3
|
-
export{Yq as L,Zq as M};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{ub as d}from"./cli-0.6.13-pezf5r7h.mjs";import{OU as y,PU as U,RU as f,SU as h,TU as c,YU as i}from"./cli-0.6.13-ywdbvmgd.mjs";import{f2 as O,h2 as b}from"./cli-0.6.13-qbn7xx3z.mjs";import{y5 as B,z5 as M}from"./cli-0.6.13-b3zncvcq.mjs";import{R6 as I,Y6 as u}from"./cli-0.6.13-hp0r1ftj.mjs";import{s8 as V,u8 as v}from"./cli-0.6.13-hd0sd535.mjs";import{$ha as D,Bha as H,Cha as m,Gha as T,Yha as G}from"./cli-0.6.13-dada1afp.mjs";import{qia as q,ria as S,xia as F}from"./cli-0.6.13-ze0ah657.mjs";import{Bpa as s,jpa as p}from"./cli-0.6.13-y6xnb20z.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
|
|
4
|
-
`)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
-
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
|
|
6
|
-
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
-
export{R as lb,k as mb,a as nb,YJ as ob};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ei as M,fi as w,gi as A}from"./cli-0.6.13-50wr9g3w.mjs";import{_fa as X,aga as N,bga as $,cga as O}from"./cli-0.6.13-yamxpaqw.mjs";import{$ha as C,Yha as R}from"./cli-0.6.13-dada1afp.mjs";import{Aia as L,Nia as _}from"./cli-0.6.13-qyd73z97.mjs";import{ooa as T,rka as H}from"./cli-0.6.13-me17wefv.mjs";import{Bpa as y,jpa as W}from"./cli-0.6.13-y6xnb20z.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
|
|
2
|
-
export{S as Db,f as Eb,l as Fb,s as Gb};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{qc as Kc,rc as da}from"./cli-0.6.13-q8qzja14.mjs";import{sc as An,tc as Ht,uc as Xt,vc as Zc,xc as ea}from"./cli-0.6.13-gkfcc3c2.mjs";import{Bc as ma,yc as wt}from"./cli-0.6.13-h3ymv3nd.mjs";import{Ap as mn,Bp as Uu,Cp as Lc,Ep as zc,Fp as Nc,Hp as fc,OF as nc,PF as Gu,QF as cc,RF as uc,SF as ac,TF as Vu,Yp as Mc,Zp as aa,ly as Gc,mH as Hn,my as Vc,nF as yt,nH as Au,ny as Yc,oF as Kn,oy as Jc,pH as la,py as ra,qH as oa,tp as yc,up as Wu,vp as Cc,wp as bc,wv as Qc,xF as V,xp as wc,yF as gu,yp as Oc,yv as ha,zF as ia,zp as D}from"./cli-0.6.13-2s33ahe4.mjs";import{PW as v,RW as ca,bX as Fc,cX as ua}from"./cli-0.6.13-79mne5jt.mjs";import{RZ as Ln,kZ as g,mZ as i}from"./cli-0.6.13-f67v536f.mjs";import{U0 as Nn,V0 as Mn,W0 as Qn,X0 as Gn,Y0 as Vn,Z0 as su,a1 as Yn,e1 as Jn,f1 as $c,g1 as Zn}from"./cli-0.6.13-35rszksn.mjs";import{W1 as dt,X1 as u,Y1 as y,Z1 as Qt}from"./cli-0.6.13-fy3vgkpz.mjs";import{_1 as Vt}from"./cli-0.6.13-hxfvksxq.mjs";import{v2 as lc,w2 as Hu}from"./cli-0.6.13-p5xafpx4.mjs";import{M2 as $n,O2 as Ou}from"./cli-0.6.13-b3zncvcq.mjs";import{$ca as ft,Ada as tc,Bda as Qu,Cda as On,Dda as rc,Eda as sn,Gda as ic,Ida as Sc,Jda as gn,Sca as qc,Tca as bt,Uca as ta,Vca as Tt,Wca as nt,Xda as na,Yca as W,Zca as Kt,ada as Cn,bda as ct,cda as At,f8 as Ct,g8 as vu,gda as Rt,hda as bn,jda as wn,nda as Fn,sda as hn,tda as xn,uda as jn,vda as Yt,wda as rn,xda as Dn,yda as an,zda as vn}from"./cli-0.6.13-hd0sd535.mjs";import{Fia as ut,Nia as on}from"./cli-0.6.13-qyd73z97.mjs";import{Rpa as Gt,Spa as Du,Vpa as j}from"./cli-0.6.13-5qvssn7h.mjs";function zu(t,c=tn,a){let r=nt().find((m)=>m.provider==="openai"&&m.extras?.githubToken!==void 0);if(r)return At(r.id,{provider:"openai",name:r.name,baseUrl:a||r.baseUrl,model:r.model||c,apiKey:t,extras:{...r.extras,githubToken:t}}),Rt(r.id),{mode:"updated"};return ct({provider:"openai",name:"GitHub Copilot",baseUrl:a||Ru,model:c,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Tn({onDone:t,onBack:c,onChangeAPIKey:a}){let r=Yn()?.trim()?"already-authed":"menu",[m,e]=E.useState(r),[A,O]=E.useState(null),[X,w]=E.useState(""),[z,S]=E.useState(0),[L,Z]=E.useState(null),N=E.useCallback(async(Y,q=tn,tt,f)=>{let T=Jn(Y,tt,f?.enterpriseDomain);if(!T.success){O(T.warning??"Could not save token to secure storage."),e("error");return}zu(Y,q,f?.baseUrl),$n(),a?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[a,t]),C=E.useCallback(async(Y)=>{e("device-busy"),O(null),Z(null);try{let q=await Mn({domain:Y});Z({user_code:q.user_code,verification_uri:q.verification_uri}),await Gn(q.verification_uri);let tt=await Qn(q.device_code,{initialInterval:q.interval,timeoutSeconds:q.expires_in,domain:Y}),f=await Vn(tt,{domain:Y});await N(f.token,tn,tt,{baseUrl:f.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Y})}catch(q){O(q instanceof Error?q.message:String(q)),e("error")}},[N]);if(m==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot"}),u(i,{children:"You are already signed in to GitHub Copilot."}),u(i,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),u(V,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"back"}],onChange:(q)=>{if(q==="sign-in-again"){C();return}if(q==="enterprise"){e("enterprise-domain");return}if(c){c();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Enterprise sign-in"}),u(i,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:">"}),u(yt,{value:X,onChange:w,onSubmit:()=>{let q=Nn(X);if(!q){C();return}C(q)},onExit:()=>e(r),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:z,onChangeCursorOffset:S})]}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(m==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"red",children:A}),u(V,{options:[{label:c?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(q)=>{if(q==="back"){if(c){c();return}e("menu"),O(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(m==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[u(i,{children:"GitHub Copilot sign-in"}),L?y(dt,{children:[y(i,{children:["Enter code ",u(i,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),u(i,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):u(i,{dimColor:!0,children:"Requesting device code from GitHub..."}),u(Hn,{})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{bold:!0,children:"GitHub Copilot setup"}),u(i,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),u(V,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:c?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Y)=>{if(Y==="cancel"){if(c){c();return}t("GitHub onboard cancelled",{display:"system"});return}if(Y==="enterprise"){e("enterprise-domain");return}C()}})]})}var E,tn="github:copilot",Ru="https://api.githubcopilot.com";var Wn=j(()=>{gu();Au();Kn();Ln();su();Zn();Ou();Fn();Qt();E=Gt(Vt(),1)});function En(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function zt(t,c){return c.some((a)=>t.includes(a))}function _u(t){return!zt(En(t),Un)}function qu(t){return t.find(_u)??null}function nn(t){let a=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(a?.[1])return Number(a[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Su(t){return(t.quantizationLevel??t.name).toLowerCase()}function Fu(t,c,a){if(t===null)return a.push("unknown size"),0;if(c==="latency"){if(t<=4)return a.push("tiny model for low latency"),32;if(t<=8)return a.push("small model for fast responses"),26;if(t<=14)return a.push("mid-sized model with acceptable latency"),16;if(t<=24)return a.push("larger model may be slower"),8;return a.push("large model likely slower locally"),t<=40?0:-8}if(c==="coding"){if(t>=7&&t<=14)return a.push("strong coding size tier"),24;if(t>14&&t<=34)return a.push("large coding-capable size tier"),28;if(t>34)return a.push("very large model with higher quality potential"),18;return a.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return a.push("great balanced size tier"),26;if(t>=3&&t<7)return a.push("compact balanced size tier"),18;if(t>14&&t<=24)return a.push("high quality balanced size tier"),20;if(t>24)return a.push("large model for quality-first usage"),10;return a.push("very small model for general usage"),8}function $u(t,c,a){let r=Su(t);if(r.includes("q4"))return a.push("efficient Q4 quantization"),c==="latency"?8:4;if(r.includes("q5"))return a.push("balanced Q5 quantization"),c==="latency"?6:5;if(r.includes("q8"))return a.push("higher quality Q8 quantization"),c==="latency"?2:5;return 0}function Lu(t,c,a){if(c.score!==t.score)return c.score-t.score;let r=nn(t)??Number.POSITIVE_INFINITY,m=nn(c)??Number.POSITIVE_INFINITY;if(a==="latency")return r-m;if(a==="coding")return m-r;let e=14;return Math.abs(r-e)-Math.abs(m-e)}function cn(t,c){return t.map((a)=>{let r=En(a),m=[],e=0;if(zt(r,Un))e-=40,m.push("not a chat-first model");if(zt(r,fu))e+=c==="coding"?24:c==="balanced"?10:4,m.push("coding-oriented model family");if(zt(r,Xu))e+=c==="latency"?4:c==="coding"?6:8,m.push("strong general-purpose model family");if(zt(r,ku))e+=c==="latency"?2:6,m.push("chat/instruct tuned");if(r.includes("vision")||r.includes("vl"))e-=2,m.push("vision model adds extra overhead");e+=Fu(nn(a),c,m),e+=$u(a,c,m);let A=m.slice(0,3).join(", ");return{...a,score:e,reasons:m,summary:A}}).sort((a,r)=>Lu(a,r,c))}function Pn(t,c){return qu(cn(t,c))}var fu,Xu,ku,Un;var Bn=j(()=>{fu=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],Xu=["llama","qwen","mistral","gemma","phi","deepseek"],ku=["instruct","chat","assistant"],Un=["embed","embedding","rerank","bge","whisper"]});function Mu(t){let c=t.toLowerCase();return Nu.some((a)=>c.includes(a))}function un(t){try{let c=new URL(t);if(c.username)c.username="redacted";if(c.password)c.password="redacted";for(let a of c.searchParams.keys())if(Mu(a))c.searchParams.set(a,"redacted");return c.toString()}catch{return t.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var Nu;var In=j(()=>{Nu=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Yu(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URL(`${hn}/oauth/authorize`);return a.searchParams.append("response_type","code"),a.searchParams.append("client_id",rn()),a.searchParams.append("redirect_uri",c),a.searchParams.append("scope",xn),a.searchParams.append("code_challenge",t.codeChallenge),a.searchParams.append("code_challenge_method","S256"),a.searchParams.append("id_token_add_organizations","true"),a.searchParams.append("codex_cli_simplified_flow","true"),a.searchParams.append("state",t.state),a.searchParams.append("originator",jn),a.toString()}function Ju(){return`<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<title>Codex Login Complete</title>
|
|
6
|
-
<style>
|
|
7
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
-
p { margin: 0 0 10px; }
|
|
10
|
-
</style>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Codex login complete</h1>
|
|
14
|
-
<p>You can return to Claudin now.</p>
|
|
15
|
-
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
-
</body>
|
|
17
|
-
</html>`}function Zu(t){return`<!doctype html>
|
|
18
|
-
<html lang="en">
|
|
19
|
-
<head>
|
|
20
|
-
<meta charset="utf-8" />
|
|
21
|
-
<title>Codex Login Failed</title>
|
|
22
|
-
<style>
|
|
23
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
-
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
-
p { margin: 0 0 10px; }
|
|
26
|
-
</style>
|
|
27
|
-
</head>
|
|
28
|
-
<body>
|
|
29
|
-
<h1>Codex login failed</h1>
|
|
30
|
-
<p>${vn(t)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function pn(){return`<!doctype html>
|
|
34
|
-
<html lang="en">
|
|
35
|
-
<head>
|
|
36
|
-
<meta charset="utf-8" />
|
|
37
|
-
<title>Codex Login Cancelled</title>
|
|
38
|
-
<style>
|
|
39
|
-
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
-
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
-
p { margin: 0 0 10px; }
|
|
42
|
-
</style>
|
|
43
|
-
</head>
|
|
44
|
-
<body>
|
|
45
|
-
<h1>Codex login cancelled</h1>
|
|
46
|
-
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
-
</body>
|
|
48
|
-
</html>`}async function Ku(t){let c=`http://localhost:${t.port}/auth/callback`,a=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:c,client_id:rn(),code_verifier:t.codeVerifier}),r=await fetch(`${hn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!r.ok){let w=await r.text().catch(()=>"");throw Error(w.trim()?`Codex OAuth token exchange failed (${r.status}): ${w.trim()}`:`Codex OAuth token exchange failed with status ${r.status}.`)}let m=await r.json(),e=Yt(m.access_token),A=Yt(m.refresh_token);if(!e||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let O=Yt(m.id_token);return{apiKey:O?await tc(O).catch(()=>{return}):void 0,accessToken:e,refreshToken:A,idToken:O,accountId:an(O)??an(e)}}class ln{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let c=cc(),a=Dn(),r=new nc("/auth/callback");this.authCodeListener=r,this.port=null;try{let m=await r.start(a);this.port=m;let e=ac(),A=await uc(c),O=Yu({port:m,codeChallenge:A,state:e});try{let X=await r.waitForAuthorization(e,async()=>{await t(O)}),w=new AbortController;this.tokenExchangeAbortController=w;let z;try{z=await Ku({authorizationCode:X,codeVerifier:c,port:m,signal:w.signal})}finally{if(this.tokenExchangeAbortController===w)this.tokenExchangeAbortController=null}if(this.authCodeListener!==r)throw this.buildCancellationError();return r.handleSuccessRedirect([],(S)=>{S.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),S.end(Ju())}),z}catch(X){let w=this.authCodeListener===r?X:this.buildCancellationError();if(r.hasPendingResponse()){let z=w instanceof Error&&w.message==="Codex OAuth flow was cancelled.";r.handleErrorRedirect((S)=>{S.writeHead(z?200:400,{"Content-Type":"text/html; charset=utf-8"}),S.end(z?pn():Zu(w instanceof Error?w.message:String(w)))})}throw w}finally{this.cleanup()}}catch(m){let e=m instanceof Error?m.message:String(m);if(e.includes("EADDRINUSE")||e.includes(String(a)))throw Error(`Codex OAuth needs localhost:${a} for its callback. Close any app already using that port and try again.`);throw m}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((c)=>{c.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),c.end(pn())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var hc=j(()=>{Gu();Vu();Qu()});function Tu(){return new ln}function oc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??Tu,r=t.deps?.openBrowser??lc,m=t.deps?.saveCodexCredentials??rc,e=t.deps?.isBareMode??ut,[A,O]=Jt.useState({state:"starting"});return Jt.useEffect(()=>{if(e()){O({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let X=!1,w=a();return w.startOAuthFlow(async(z)=>{if(X)return;O({state:"waiting",authUrl:z,browserOpened:null});let S=await r(z);if(X)return;O({state:"waiting",authUrl:z,browserOpened:S})}).then(async(z)=>{if(X)return;await c(z,(L)=>{let Z=m({apiKey:z.apiKey,accessToken:z.accessToken,refreshToken:z.refreshToken,idToken:z.idToken,accountId:z.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((z)=>{if(X)return;O({state:"error",message:z instanceof Error?z.message:String(z)})}),()=>{X=!0,w.cleanup()}},[a,e,c,r,m]),A}var Jt;var mc=j(()=>{hc();Hu();ic();on();Jt=Gt(Vt(),1)});function Ac(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":yc()}}function dc(t,c){let a=Number(t);return Number.isFinite(a)&&a>0?a*1000:c}function Iu(t,c){if(c?.aborted)return Promise.resolve();return new Promise((a)=>{let r=setTimeout(()=>{c?.removeEventListener("abort",m),a()},t),m=()=>{clearTimeout(r),a()};c?.addEventListener("abort",m,{once:!0})})}async function pu(t){let c=t?.fetchImpl??fetch,a=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),r=await c(bc,{method:"POST",headers:Ac(),body:new URLSearchParams({client_id:mn(),scope:Oc}).toString(),signal:a});if(!r.ok){let X=await r.text().catch(()=>"");throw Error(`xAI device code request failed (${r.status})${X?`: ${X.trim()}`:""}`)}let m=await r.json(),e=D(m.device_code),A=D(m.user_code),O=D(m.verification_uri);if(!e||!A||!O)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:e,user_code:A,verification_uri:O,verification_uri_complete:D(m.verification_uri_complete),expires_in:typeof m.expires_in==="number"&&m.expires_in>0?m.expires_in:gc/1000,interval:typeof m.interval==="number"&&m.interval>0?m.interval:sc/1000}}async function xu(t,c){let a=c?.fetchImpl??fetch,r=c?.sleep??Iu,m=c?.now??(()=>Date.now()),e=dc(t.expires_in,gc),A=m()+e,O=Math.max(dc(t.interval,sc),Eu);while(m()<A){if(c?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let X=await a(Cc,{method:"POST",headers:Ac(),body:new URLSearchParams({grant_type:wc,client_id:mn(),device_code:t.device_code}).toString(),signal:c?.signal});if(X.ok){let L=await X.json(),Z=D(L.access_token),N=D(L.refresh_token);if(!Z||!N)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:N,idToken:D(L.id_token),expiresAt:m()+C*1000}}let w=await X.json().catch(()=>({})),z=Math.max(0,A-m());if(w.error==="authorization_pending"){await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="slow_down"){O=Math.min(O+Pu,Bu),await r(Math.min(O+ec,z),c?.signal);continue}if(w.error==="access_denied"||w.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(w.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let S=w.error_description??w.error??"";throw Error(`xAI device token exchange failed (${X.status})${S?`: ${S}`:""}`)}throw Error("xAI device authorization timed out.")}class en{abortController=null;async startDeviceFlow(t){let c=new AbortController;this.abortController=c;try{let a=await pu({signal:c.signal});return await t(a),await xu(a,{signal:c.signal})}finally{if(this.abortController===c)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var sc=5000,Eu=1000,Pu=5000,Bu=60000,gc=300000,ec=3000;var Rc=j(()=>{Wu();Uu()});function ju(){return new en}function Xc(t){let{onAuthenticated:c}=t,a=t.deps?.createOAuthService??ju,r=t.deps?.saveXaiCredentials??zc,m=t.deps?.isBareMode??ut,[e,A]=Zt.useState({state:"starting"});return Zt.useEffect(()=>{if(m()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let O=!1,X=a();return X.startDeviceFlow(async(w)=>{if(O)return;A({state:"waiting",userCode:w.user_code,verificationUri:w.verification_uri,verificationUriComplete:w.verification_uri_complete})}).then(async(w)=>{if(O)return;await c(w,(S)=>{let L=r({accessToken:w.accessToken,refreshToken:w.refreshToken,idToken:w.idToken,expiresAt:w.expiresAt,profileId:S?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((w)=>{if(O)return;A({state:"error",message:w instanceof Error?w.message:String(w)})}),()=>{O=!0,X.cleanup()}},[a,m,c,r]),e}var Zt;var kc=j(()=>{Rc();on();fc();Zt=Gt(Vt(),1)});function sa(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function ga(t){let c=Tt(t);return{name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey??""}}function Aa(t){let c={};for(let a of t.split(/\r?\n/)){let r=a.trim();if(!r)continue;let m=r.indexOf(":");if(m<=0)continue;let e=r.slice(0,m).trim(),A=r.slice(m+1).trim();if(e&&A)c[e]=A}return c}function Ra(t){if(!t)return"";return Object.entries(t).map(([c,a])=>`${c}: ${a}`).join(`
|
|
49
|
-
`)}function za(t,c){let a={},r=t.awsRegion?.trim();if(r)a.awsRegion=r;let m=t.gcpProject?.trim();if(m)a.gcpProject=m;let e=t.gcpRegion?.trim();if(e)a.gcpRegion=e;let A=t.azureResource?.trim();if(A)a.azureResource=A;let O=Aa(c);if(Object.keys(O).length>0)a.customHeaders=O;return Object.keys(a).length>0?a:void 0}function Xa(t,c){let a=c?" (active)":"",r=t.apiKey?"key set":"no key",m=t.provider==="anthropic"?"anthropic":"openai-compatible",e=qc(t.model),A=e.length<=3?e.join(", "):`${e[0]}, ${e[1]} + ${e.length-2} more`;return`${m} · ${t.baseUrl} · ${A} · ${r}${a}`}function ka(t,c){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${un(c)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function _a(t,c){if(t.state==="unreachable")return`Could not reach Ollama at ${un(c)}. Start Ollama first, or enter the endpoint manually.`;if(t.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(t.state==="generation_failed"){let a=t.probeModel??"the selected model",r=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${a}.${r} Run "ollama run ${a}" once and retry, or enter details manually.`}return""}function yn(t,c){if(!c)return;return t.find((a)=>a.id===c)}function _c(t,c){return Boolean(t&&c&&t.id===c)}function qa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=oc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"Codex OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Codex OAuth"}),u(i,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),r.state==="starting"?u(i,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):r.browserOpened===!1?y(dt,{children:[u(i,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),u(i,{children:r.authUrl})]}):r.browserOpened===!0?y(dt,{children:[u(i,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),u(i,{children:r.authUrl})]}):u(i,{dimColor:!0,children:"Opening your browser..."}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sa({onBack:t,onConfigured:c}){let a=b.useCallback(async(m,e)=>{await c(m,e)},[c]);v("confirm:no",t,[t]);let r=Xc({onAuthenticated:a});if(r.state==="error")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"error",bold:!0,children:"xAI OAuth failed"}),u(i,{children:r.message}),u(i,{dimColor:!0,children:"Press Enter or Esc to go back."}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),r.state==="starting"?u(i,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(dt,{children:[y(i,{children:["Open this URL on any device:"," ",u(i,{bold:!0,children:r.verificationUri})]}),y(i,{children:["Enter code ",u(i,{bold:!0,children:r.userCode})]}),r.verificationUriComplete&&r.verificationUriComplete!==r.verificationUri?y(i,{dimColor:!0,children:["Or open this prefilled URL: ",r.verificationUriComplete]}):null,u(i,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),u(i,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Sh({mode:t,onDone:c}){let a=Qc(),[r,m]=b.useState([]),[e,A]=b.useState(),[O,X]=b.useState(),[w,z]=b.useState(!1),[S,L]=b.useState(),Z=b.useRef(0),[N,C]=b.useState(t==="first-run"?"select-preset":"menu"),[ht,Y]=b.useState(null),[q,tt]=b.useState("openai"),[f,T]=b.useState(()=>ga("ollama")),[Wt,kt]=b.useState({}),[Rn,Ut]=b.useState(""),[Hc,Tc]=b.useState(0),[Wc,Uc]=b.useState(0),[Et,zn]=b.useState(null),[rt,Ot]=b.useState(0),[it,P]=b.useState(0),[Ec,B]=b.useState(0),[fn,M]=b.useState(),[lt,R]=b.useState(),[Pc,Bc]=b.useState(),[Xn,_t]=b.useState(!1),[st,gt]=b.useState(),[I,qt]=b.useState({state:"idle"}),[p,St]=b.useState({state:"idle"}),[x,Pt]=b.useState({state:"idle"}),[Ic,pc]=b.useState(!0),[xc,H]=b.useState(!1),Bt=b.useRef(!1),[It,pt]=b.useState(()=>Xt()),[kn,jc]=b.useState(()=>Zc());b.useEffect(()=>{queueMicrotask(()=>{let n=nt(),h=W()?.id;m(n),A(h),X(Kt()),L(Cn()),z(ft()),pc(!1)})},[]);let ot=at[it]??at[0],Ft=ot.key,Dc=f[Ft],xt=r.length>0,$t=xt,_n=b.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:S?`Currently: ${r.find((n)=>n.id===S)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!$t},{value:"activate-project",label:"Set active provider (Project)",description:O?`Currently: ${r.find((n)=>n.id===O)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!$t},...w?[{value:"clear-project-override",label:"Clear project provider override",description:O?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!xt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!$t},...Xn?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[$t,xt,Xn,It,S,O,r]),jt=b.useCallback(()=>{if(ut()){Z.current+=1,_t(!1),gt(void 0);return}let n=++Z.current;(async()=>{let h=await On();if(n!==Z.current)return;_t(Boolean(h?.apiKey||h?.accessToken||h?.refreshToken||h?.idToken)),gt(h?.profileId)})()},[]);b.useEffect(()=>{return jt(),()=>{Z.current+=1}},[jt]),b.useEffect(()=>{if(N!=="select-ollama-model")return;let n=!1;return qt({state:"loading"}),(async()=>{let h=await Jc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)qt({state:"unavailable",message:_a(h,f.baseUrl)});return}let o=cn(h.models,"balanced"),l=Pn(h.models,"balanced");if(!n)qt({state:"ready",defaultValue:l?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-atomic-chat-model")return;let n=!1;return St({state:"loading"}),(async()=>{let h=await Yc({baseUrl:f.baseUrl});if(h.state!=="ready"){if(!n)St({state:"unavailable",message:ka(h,f.baseUrl)});return}if(!n)St({state:"ready",defaultValue:h.models[0],options:h.models.map((o)=>({label:o,value:o}))})})(),()=>{n=!0}},[f.baseUrl,N]),b.useEffect(()=>{if(N!=="select-openai-model")return;let n=!1;return Pt({state:"loading"}),(async()=>{let h=await Gc({baseUrl:f.baseUrl,apiKey:f.apiKey||void 0});if(n)return;if(!h||h.length===0){Pt({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:o,defaultValue:l}=Vc(h,f.model);Pt({state:"ready",options:o,defaultValue:l})})(),()=>{n=!0}},[f.baseUrl,f.apiKey,N]);function Q(){if(Bt.current)return;Bt.current=!0,queueMicrotask(()=>{let n=nt();m(n),A(W()?.id),X(Kt()),L(Cn()),z(ft()),jt(),Bt.current=!1})}function mt(){return null}function Dt(n){if(n.activationWarning)return`${n.prefix}. Saved for next startup. Warning: ${n.warnings.join("; ")}.`;if(n.warnings.length>0)return`${n.prefix}. Claudin switched to it for this session with warnings: ${n.warnings.join("; ")}.`;return`${n.prefix}. Claudin switched to it for this session.`}async function vt(n){if(n?.accessToken&&n.accountId)return null;let h=await On();if(!h)return"stored Codex OAuth credentials could not be loaded";if(!h.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function qn(){Mc()}async function vc(n){let h="provider";H(!0),M("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),l=Rt(n);if(!l){R("Could not change active provider."),H(!1),k();return}let d=o?W()??l:l,s=bt(d.model);if(!o)a((U)=>({...U,mainLoopModel:s,mainLoopModelForSession:null}));h=l.name;let _=mt(),J=_c(l,st),$=J?await vt():null;Q();let K=o&&d.id!==l.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?Dt({prefix:`Active provider: ${l.name}${K}`,activationWarning:$,warnings:[$,_?`could not clear startup provider override (${_})`:null].filter((U)=>Boolean(U))}):_?`Active provider: ${l.name}${K}. Warning: could not clear startup provider override (${_}).`:`Active provider: ${l.name}${K}`;M(F),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:s,message:`Provider switched to ${l.name} (${s})`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish activating ${h}: ${l}`),k()}}async function tu(){H(!0),M("Clearing project provider override...");try{await new Promise((h)=>queueMicrotask(h)),bn(null),Q();let n=W();if(n){let h=bt(n.model);wt(),a((o)=>({...o,mainLoopModel:h,mainLoopModelForSession:null})),M(`Project override cleared. Using global default: ${n.name}.`),H(!1),c({action:"activated",activeProfileId:n.id,activeProviderName:n.name,activeProviderModel:h,message:`Project override cleared — using ${n.name} (${h})`}),k()}else M("Project provider override cleared. No global default set."),H(!1),c({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(n){Q(),M(void 0),H(!1);let h=n instanceof Error?n.message:String(n);R(`Could not clear project provider override: ${h}`),k()}}async function nu(n){let h="provider";H(!0),M("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Kt(),l=bn(n);if(!l){R("Could not set project provider override."),H(!1),k();return}let d=bt(l.model);if(o===l.id)wt();a((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),h=l.name;let s=mt(),_=_c(l,st),J=_?await vt():null;Q();let $=`Active provider for this project: ${l.name}. Other projects keep the global default.`,K=_?Dt({prefix:$,activationWarning:J,warnings:[J,s?`could not clear startup provider override (${s})`:null].filter((F)=>Boolean(F))}):s?`${$} Warning: could not clear startup provider override (${s}).`:$;M(K),H(!1),c({action:"activated",activeProfileId:l.id,activeProviderName:l.name,activeProviderModel:d,message:`Provider switched to ${l.name} (${d}) for this project`}),k()}catch(o){Q(),M(void 0),H(!1);let l=o instanceof Error?o.message:String(o);R(`Could not finish setting ${h} for this project: ${l}`),k()}}function k(){Bc("done"),C("menu")}function Lt(n){c({action:"cancelled",message:n})}function cu(n){let h=Tt(n),o={name:h.name,baseUrl:h.baseUrl,model:h.model,apiKey:h.apiKey??""};if(Y(null),tt(h.provider??"openai"),T(o),kt({}),Ut(""),zn(n),P(0),Ot(0),B(o.name.length),R(void 0),n==="ollama"){qt({state:"loading"}),C("select-ollama-model");return}if(n==="atomic-chat"){St({state:"loading"}),C("select-atomic-chat-model");return}if(n==="anthropic"){C("anthropic-auth-choice");return}if(n==="bedrock"||n==="vertex"||n==="foundry"){C("cloud-extras");return}C("form")}function uu(n){let h=r.find((l)=>l.id===n);if(!h)return;let o=sa(h);Y(n),tt(h.provider??"openai"),T(o),kt({awsRegion:h.extras?.awsRegion,gcpProject:h.extras?.gcpProject,gcpRegion:h.extras?.gcpRegion,azureResource:h.extras?.azureResource}),Ut(Ra(h.extras?.customHeaders)),zn(null),P(0),Ot(0),B(o.name.length),R(void 0),C("form")}function Nt(n=f){let h=za(Wt,Rn),o={provider:q,name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey,extras:h},l=ht?At(ht,o):ct(o,{makeActive:!0});if(!l){R("Could not save provider. Fill all required fields.");return}let d=W()?.id===l.id;if(d)wt(),a((K)=>({...K,mainLoopModel:bt(l.model),mainLoopModelForSession:null}));let s=d?mt():null;Q();let _=!ht&&ft()&&!d,J=_?W()?.name??"override target":null,$=ht?`Updated provider: ${l.name}`:_?`Added provider: ${l.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${l.name} (now active)`;if(M(s?`${$}. Warning: could not clear startup provider override (${s}).`:$),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:`Provider configured: ${l.name}`});return}Y(null),P(0),R(void 0),k()}function au(){if(p.state==="loading"||p.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),u(i,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(p.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Atomic Chat setup"}),u(i,{dimColor:!0,children:p.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),u(i,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),u(V,{options:p.options,defaultValue:p.defaultValue,defaultFocusValue:p.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,p.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function hu(){if(I.state==="loading"||I.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Checking Ollama"}),u(i,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(I.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Ollama setup"}),u(i,{dimColor:!0,children:I.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(n)=>{if(n==="manual"){P(0),B(f.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose an Ollama model"}),u(i,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),u(V,{options:I.options,defaultValue:I.defaultValue,defaultFocusValue:I.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,I.options.length),onChange:(n)=>{let h={...f,model:n};T(h),Nt(h)},onCancel:()=>C("select-preset")})]})}function et(n){let h=at.findIndex((o)=>o.key===n);P(h<0?0:h),B(f[n].length),R(void 0),C("form")}function ru(){if(x.state==="loading"||x.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Fetching models"}),u(i,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),u(i,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(x.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:x.message}),u(V,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(o)=>{if(o==="manual"){et("model");return}et("apiKey")},onCancel:()=>et("apiKey"),visibleOptionCount:2})]});let n=[...x.options,{value:dn,label:"Enter a model id manually",description:"Type an id the provider did not list"}],h=x.defaultValue??dn;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Choose a model"}),u(i,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),u(V,{options:n,defaultValue:h,defaultFocusValue:h,inlineDescriptions:!0,visibleOptionCount:Math.min(8,n.length),onChange:(o)=>{if(o===dn){et("model");return}let l={...f,model:o};T(l),Sn(l)},onCancel:()=>et("apiKey")}),u(i,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function Sn(n){if(Et==="anthropic"||Et==="custom"){T(n),C("custom-headers");return}Nt(n)}function iu(n){let h=n.trim();if(!ot.optional&&h.length===0){R(`${ot.label} is required.`);return}let o={...f,[Ft]:h};if(T(o),R(void 0),it<at.length-1){let l=it+1,d=at[l]?.key??"name";if(d==="model"&&!ya.has(q)&&o.baseUrl.trim().length>0){C("select-openai-model");return}P(l),B(o[d].length);return}Sn(o)}function lu(){if(R(void 0),it>0){let n=it-1,h=at[n]?.key??"name";P(n),B(f[h].length);return}if(t==="first-run"){C("select-preset");return}k()}v("confirm:no",lu,{context:"Settings",isActive:N==="form"}),v("confirm:no",()=>et("model"),{context:"Settings",isActive:N==="select-openai-model"&&(x.state==="loading"||x.state==="idle")});function ou(){if(R(void 0),rt>0){Ot(rt-1);return}C("select-preset")}v("confirm:no",ou,{context:"Settings",isActive:N==="cloud-extras"}),v("confirm:no",()=>C("form"),{context:"Settings",isActive:N==="custom-headers"}),v("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:N==="anthropic-auth-choice"||N==="anthropic-oauth"});function mu(){let n=!ut(),h=[...It?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...n?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),u(i,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),u(V,{options:h,onChange:(o)=>{if(o==="skip"){Lt("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let l=await An({force:!0});pt(Xt()),Q();let d=Ht(l);if(l.errors.length>0){R(d);return}let s=W();if(t==="first-run"&&s){c({action:"saved",activeProfileId:s.id,activeProviderName:s.name,activeProviderModel:s.model,message:d});return}if(M(d),R(void 0),t==="manage")k()})();return}cu(o)},onCancel:()=>{if(t==="first-run"){Lt("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,h.length)})]})}function eu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),u(i,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),u(V,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(n)=>{if(n==="oauth"){C("anthropic-oauth");return}if(n==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function du(){let n=(oa(),Du(la)).ConsoleOAuthFlow;return u(g,{flexDirection:"column",gap:1,children:u(n,{mode:"login",onDone:()=>{let h=Tt("anthropic"),o={provider:"anthropic",name:h.name,baseUrl:h.baseUrl,model:h.model},l=ct(o,{makeActive:!0});if(!l){R("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${l.name}`;if(Q(),t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}})})}function yu(){let n=Et;if(n!=="bedrock"&&n!=="vertex"&&n!=="foundry")return null;let h=fa[n],o=h[rt]??h[0],l=Wt[o.key]??"";function d(s){let _=s.trim();if(_.length===0){R(`${o.label} is required.`);return}let J={...Wt,[o.key]:_};if(kt(J),R(void 0),rt<h.length-1){Ot(rt+1);return}Ot(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:`${n==="bedrock"?"AWS Bedrock":n==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),u(i,{dimColor:!0,children:o.helpText}),y(i,{dimColor:!0,children:["Step ",rt+1," of ",h.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:l,onChange:(s)=>kt((_)=>({..._,[o.key]:s})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${Ct.ellipsis}`,columns:80,cursorOffset:Hc,onChangeCursorOffset:Tc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Cu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(i,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",u(i,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Rn,onChange:Ut,onSubmit:()=>Nt(f),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Wc,onChangeCursorOffset:Uc})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function bu(){return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:ht?"Edit provider profile":"Create provider profile"}),u(i,{dimColor:!0,children:ot.helpText}),y(i,{dimColor:!0,children:["Provider type:"," ",q==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(i,{dimColor:!0,children:["Step ",it+1," of ",at.length,": ",ot.label]}),y(g,{flexDirection:"row",gap:1,children:[u(i,{children:Ct.pointer}),u(yt,{value:Dc,onChange:(n)=>T((h)=>({...h,[Ft]:n})),onSubmit:iu,focus:!0,showCursor:!0,placeholder:`${ot.placeholder}${Ct.ellipsis}`,mask:Ft==="apiKey"?"*":void 0,columns:80,cursorOffset:Ec,onChangeCursorOffset:B})]}),lt&&u(i,{color:"error",children:lt}),u(i,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function wu(){let n=r.length>0,h=n;return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Provider manager"}),u(i,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),fn&&u(i,{children:fn}),u(g,{flexDirection:"column",children:r.length===0?u(i,{dimColor:!0,children:"No provider profiles configured yet."}):r.map((o)=>y(i,{dimColor:!0,children:["- ",o.name,": ",Xa(o,o.id===e)]},o.id))}),u(V,{options:_n,onChange:(o)=>{switch(R(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let l=await An({force:!0});if(pt(Xt()),Q(),l.errors.length>0)R(Ht(l));else M(Ht(l))})();break}case"activate":if(h)C("select-active");break;case"activate-project":if(h)C("select-active-project");break;case"clear-project-override":tu();break;case"edit":if(n)C("select-edit");break;case"delete":if(h)C("select-delete");break;case"logout-codex-oauth":{let l=sn();if(!l.success){R(l.warning??"Could not clear Codex OAuth credentials.");break}_t(!1),gt(void 0);let d=yn(nt(),st),s=null;if(d){let _=wn(d.id);if(!_.removed){R("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),Q();break}qn(),s=_.activeProfileId?mt():null}Q(),M(s?`Codex OAuth logged out. Warning: could not clear startup provider override (${s}).`:"Codex OAuth logged out.");break}default:Lt("Provider manager closed");break}},onCancel:()=>Lt("Provider manager closed"),defaultFocusValue:Pc,visibleOptionCount:_n.length})]})}function Mt(n,h,o){let l=r.map((d)=>{let s=[];if(d.id===e)s.push("active");if(O&&d.id===O)s.push("this project");if(S&&d.id===S)s.push("global default");let _=s.length>0?` (${s.join(", ")})`:"";return{value:d.id,label:`${d.name}${_}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(l.length===0)return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(i,{dimColor:!0,children:h}),u(V,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:n}),u(V,{options:l,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,l.length))})]})}let G;switch(N){case"select-preset":G=mu();break;case"select-ollama-model":G=hu();break;case"select-openai-model":G=ru();break;case"select-atomic-chat-model":G=au();break;case"codex-oauth":G=u(qa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let o={provider:"openai",name:Ca,baseUrl:Sc,model:ba,apiKey:""},l=yn(nt(),st),d=l?At(l.id,o):ct(o,{makeActive:!0});if(!d){R("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let s=l&&e!==d.id?Rt(d.id):d;if(!s){R("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}h({profileId:d.id});let _=mt(),J=await vt(n);_t(!0),gt(d.id),Q();let $=[J,_?`could not clear startup provider override (${_})`:null].filter((F)=>Boolean(F)),K=Dt({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){c({action:"saved",activeProfileId:s.id,message:K});return}M(K),R(void 0),k()}});break;case"xai-oauth":G=u(Sa,{onBack:()=>C("select-preset"),onConfigured:async(n,h)=>{let l=ct({provider:"openai",name:wa,baseUrl:gn,model:Oa,apiKey:""},{makeActive:!0});if(!l){R("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{h({profileId:l.id})}catch(s){R(s instanceof Error?s.message:String(s)),k();return}Q();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){c({action:"saved",activeProfileId:l.id,message:d});return}M(d),R(void 0),k()}});break;case"github-onboard":G=u(Tn,{onDone:(n)=>{if(n)M(n),R(void 0);Q(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:Q});break;case"anthropic-auth-choice":G=eu();break;case"anthropic-oauth":G=du();break;case"cloud-extras":G=yu();break;case"custom-headers":G=Cu();break;case"form":G=bu();break;case"select-active":G=Mt("Set active provider (Global)","No providers available. Add one first.",(n)=>{vc(n)});break;case"select-active-project":G=Mt("Set active provider (Project)","No providers available. Add one first.",(n)=>{nu(n)});break;case"select-edit":G=Mt("Edit provider","No providers available. Add one first.",(n)=>{uu(n)});break;case"select-delete":G=Mt("Delete provider","No providers available. Add one first.",(n)=>{let h=r.find(($)=>$.id===n),o=h?.provider==="openai"&&h?.extras?.githubToken!==void 0,l=yn(r,st)?.id===n,d=Lc()?.profileId,s=h?.provider==="openai"&&h.baseUrl===gn&&!h.apiKey&&d===n,_=W()?.id===n,J=wn(n);if(!J.removed)R("Could not delete provider.");else{let $=[];if(l){let F=sn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else gt(void 0);qn()}if(o){let F=$c();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(s){let F=Nc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?mt():null;if(K)$.push(`could not clear startup provider override (${K})`);if(Q(),_){let F=W();if(F)wt(),a((U)=>({...U,mainLoopModel:bt(F.model),mainLoopModelForSession:null}));else wt(),a((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}M($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=wu();break}return y(Fc,{color:"permission",children:[u(Kc,{enabled:kn,onDismiss:(n)=>{pt(Xt()),jc(!1),Q();let h=W();if(n==="migrated"&&t==="first-run"&&h)c({action:"saved",activeProfileId:h.id,activeProviderName:h.name,activeProviderModel:h.model})}}),kn?null:Ic?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Loading providers..."}),u(i,{dimColor:!0,children:"Reading provider profiles from disk."})]}):xc?y(g,{flexDirection:"column",gap:1,children:[u(i,{color:"remember",bold:!0,children:"Activating provider..."}),u(i,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var b,at,dn="\x00__manual__",ya,Ca="Codex OAuth",ba="codexplan",wa="xAI / Grok (OAuth)",Oa="grok-4",fa;var Fa=j(()=>{vu();Wn();na();Ln();ca();ha();ma();ic();on();ta();aa();Fn();Zn();ra();Bn();In();ia();ua();da();Kn();mc();kc();fc();ea();Qt();b=Gt(Vt(),1),at=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],ya=new Set(["anthropic","bedrock","vertex","foundry"]);fa={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});
|
|
50
|
-
export{un as lc,In as mc,Aa as nc,Sh as oc,Fa as pc};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{RP as a,Ri as $,Tw as U,Ui as m,Vw as h,iC as A,iP as F,jC as p,tA as k,uA as I,yP as L}from"./cli-0.6.13-2s33ahe4.mjs";import{A2 as O,B2 as f}from"./cli-0.6.13-b3zncvcq.mjs";import{Kha as S,Oha as E}from"./cli-0.6.13-dada1afp.mjs";import{via as b,xia as T}from"./cli-0.6.13-ze0ah657.mjs";import{Aia as y,Nia as C}from"./cli-0.6.13-qyd73z97.mjs";import{Vpa as N}from"./cli-0.6.13-5qvssn7h.mjs";import{join as P}from"path";function D(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
-
|
|
3
|
-
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
-
|
|
5
|
-
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
-
<current_doc_content>
|
|
7
|
-
{{docContents}}
|
|
8
|
-
</current_doc_content>
|
|
9
|
-
|
|
10
|
-
Document title: {{docTitle}}
|
|
11
|
-
{{customInstructions}}
|
|
12
|
-
|
|
13
|
-
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
-
|
|
15
|
-
CRITICAL RULES FOR EDITING:
|
|
16
|
-
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
-
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
-
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
-
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
-
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
-
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
-
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
-
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
-
|
|
25
|
-
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
-
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
-
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
-
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
-
- Do NOT document every function, parameter, or line number reference
|
|
30
|
-
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
-
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
-
|
|
33
|
-
What TO document:
|
|
34
|
-
- High-level architecture and system design
|
|
35
|
-
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
-
- Key entry points and where to start reading code
|
|
37
|
-
- Important design decisions and their rationale
|
|
38
|
-
- Critical dependencies or integration points
|
|
39
|
-
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
-
|
|
41
|
-
What NOT to document:
|
|
42
|
-
- Anything obvious from reading the code itself
|
|
43
|
-
- Exhaustive lists of files, functions, or parameters
|
|
44
|
-
- Step-by-step implementation details
|
|
45
|
-
- Low-level code mechanics
|
|
46
|
-
- Information already in CLAUDE.md or other project docs
|
|
47
|
-
|
|
48
|
-
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
-
|
|
50
|
-
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function g(){let w=S(),z=P(y(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return D()}}function M(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function R(w,z,B,J){let Y=await g(),K=J?`
|
|
51
|
-
|
|
52
|
-
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
-
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
-
|
|
55
|
-
"${J}"
|
|
56
|
-
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return M(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var j=N(()=>{C();E()});function Xw(){G.clear()}function d(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(r);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function l(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=U(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await A.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(b(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=d(q);if(!H){G.delete(w.path);return}let _=await R(q,w.path,H.title,H.instructions),x=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let v=W.file_path;if(typeof v==="string"&&v===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of k({agentDefinition:l(),promptMessages:[F({content:_})],toolUseContext:Z,canUseTool:x,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,r,G,Yw;var s=N(()=>{I();m();p();T();h();a();f();j();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,r=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=O(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(L(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
|
|
58
|
-
export{Xw as Ph,Zw as Qh,s as Rh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nb as W,ob as z}from"./cli-0.6.13-949racwr.mjs";import{tb as R}from"./cli-0.6.13-erzcm5hv.mjs";import{QU as M,RU as w}from"./cli-0.6.13-ywdbvmgd.mjs";import{$ha as j,Yha as L}from"./cli-0.6.13-dada1afp.mjs";import{qia as Z,xia as H}from"./cli-0.6.13-ze0ah657.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
|
|
2
|
-
export{I as ib,k as jb,D as kb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{iU as k,jU as f,zU as u}from"./cli-0.6.13-v7kg9gbp.mjs";import{lW as C,xW as d}from"./cli-0.6.13-k0kyv254.mjs";import{r2 as A,t2 as F}from"./cli-0.6.13-643zsnv9.mjs";import{P2 as q,U2 as i}from"./cli-0.6.13-b3zncvcq.mjs";import{I6 as W,L6 as _,S6 as j,T6 as w,Y6 as I}from"./cli-0.6.13-hp0r1ftj.mjs";import{nea as V,vea as U}from"./cli-0.6.13-hd0sd535.mjs";import{Tga as M,Uga as v}from"./cli-0.6.13-s2vxndky.mjs";import{$ha as x,Bha as X,Cha as R,Gha as p,Yha as J}from"./cli-0.6.13-dada1afp.mjs";import{qia as P,xia as T}from"./cli-0.6.13-ze0ah657.mjs";import{Wpa as O}from"./cli-0.6.13-5qvssn7h.mjs";x();U();F();v();x();T();U();_();I();p();import{randomUUID as E}from"crypto";var h=2000,y=5,S=30000,Y=3,c=new Set([4003]);function D(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class L{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,H){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=H}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${M().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let H={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:H,proxy:w(z),tls:W()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let K=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(K)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");V(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-0.6.13-w672jy5j.mjs"),Z=new $(z,{headers:H,agent:j(z),...W()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(K)=>{this.handleMessage(K.toString())}),Z.on("error",(K)=>{V(Error(`[SessionsWebSocket] Error: ${K.message}`)),this.callbacks.onError?.(K)}),Z.on("close",(K,G)=>{J(`[SessionsWebSocket] Closed: code=${K} reason=${G.toString()}`),this.handleClose(K)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=R(B);if(D(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){V(Error(`[SessionsWebSocket] Failed to parse message: ${P(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",c.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(h*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<y)this.reconnectAttempts++,this.scheduleReconnect(h,`attempt ${this.reconnectAttempts}/${y}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},S)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){V(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:E(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function N(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class b{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{V(z),this.callbacks.onError?.(z)}};this.websocket=new L(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(N(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let H={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(H)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await A(this.config.sessionId,B,z);if(!Q)V(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){V(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let H={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(H)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,H=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:H,viewerOnly:$}}x();U();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:H}=B,$=f(z);if(!$){V(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=k(z),K=!Q;return J(`[Reconnection] Computed initial team context for ${K?"leader":`teammate ${H}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:H,isLeader:K,teammates:{}}}function Wz(B,z,Q){let H=f(z);if(!H){V(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=H.members.find((G)=>G.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,K=k(z);B((G)=>({...G,teamContext:{teamName:z,teamFilePath:K,leadAgentId:H.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=q();for(let[H,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(H)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Lz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
-
export{b as T,$z as U,Xz as V,Wz as W,Lz as X};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Jn as g,Kn as k,xF as h,zF as I}from"./cli-0.6.13-2s33ahe4.mjs";import{RX as S,RZ as _,mZ as s}from"./cli-0.6.13-f67v536f.mjs";import{X1 as c,Y1 as m,Z1 as T}from"./cli-0.6.13-fy3vgkpz.mjs";import{Rca as P,tca as b}from"./cli-0.6.13-hd0sd535.mjs";import{Rpa as D}from"./cli-0.6.13-5qvssn7h.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
-
export{E as N};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Vpa as $}from"./cli-0.6.13-5qvssn7h.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function o(){return J("K")}function y(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function a(z=1){return z===0?"":J(z,"S")}function n(z=1){return z===0?"":J(z,"T")}function c(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,E,t,r,i,e,s,zz,Jz,Qz,Vz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");t=J("r"),r=J("200~"),i=J("201~"),e=J("I"),s=J("O"),zz=J(">1u"),Jz=J("<u"),Qz=J(">4;2m"),Vz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,Bz;var f=$(()=>{v();P=J(0,"f");Bz=T()});
|
|
2
|
-
export{d as ZZ,Y as _Z,h as $Z,j as a0,H as b0,w as c0,L as d0,x as e0,A as f0,N as g0,J as h0,g as i0,I as j0,_ as k0,u as l0,R as m0,C as n0,q as o0,S as p0,o as q0,K as r0,y as s0,a as t0,n as u0,c as v0,t as w0,r as x0,i as y0,e as z0,s as A0,zz as B0,Jz as C0,Qz as D0,Vz as E0,v as F0,T as G0,Bz as H0,f as I0};
|