@claudiolabs/claudin 1.0.3 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.0.5-bve72qn3.mjs +1 -0
- package/dist/chunks/App-1.0.5-b1ptk818.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.5-d73v27vk.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.5-m4g9ve5w.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.5-1fhw47s3.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.5-2ftcd34q.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.5-vvt3qmd3.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.5-5tbav27h.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.5-wfmfaq5y.mjs +7 -0
- package/dist/chunks/Doctor-1.0.5-aqtamd4t.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.5-fcek5ayb.mjs +6 -0
- package/dist/chunks/Grove-1.0.5-s0g6h4ad.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.5-8mefb31y.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.5-yg1pp4kj.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.5-ehfvv8xr.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.5-3g1wgttr.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.5-5xmfzaxp.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.5-js8agmz4.mjs +1 -0
- package/dist/chunks/REPL-1.0.5-cbty14yx.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.5-tk06qwet.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.5-dw798fgm.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.5-e9ecn6bv.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.5-73c21yk8.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.5-5z8kf91x.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.5-ymwpv5sa.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.5-sr892kpq.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.5-m1cpcqn6.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.5-472zrw1v.mjs +1 -0
- package/dist/chunks/add-dir-1.0.5-ge50ybwk.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.5-3zacry7t.mjs +1 -0
- package/dist/chunks/agents-1.0.5-v6mp2y4s.mjs +3 -0
- package/dist/chunks/agents-1.0.5-wv6r8bz8.mjs +110 -0
- package/dist/chunks/api-1.0.5-7ycxccha.mjs +1 -0
- package/dist/chunks/asciicast-1.0.5-hekxdzwx.mjs +1 -0
- package/dist/chunks/assistant-1.0.5-z18w3et3.mjs +1 -0
- package/dist/chunks/auth-1.0.5-2m7h1jf6.mjs +1 -0
- package/dist/chunks/auth-1.0.5-dpr47wdh.mjs +1 -0
- package/dist/chunks/autoMode-1.0.5-ydsnyr10.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.5-qk4kweea.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.5-m33sas71.mjs +1 -0
- package/dist/chunks/branch-1.0.5-e7g32mca.mjs +4 -0
- package/dist/chunks/bridge-1.0.5-vw1vdqpn.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.5-ws0123wb.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.5-319ckfdw.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.5-9s4j62gn.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.5-tmrgtd3x.mjs +1 -0
- package/dist/chunks/btw-1.0.5-vx6jpr7g.mjs +1 -0
- package/dist/chunks/buddy-1.0.5-1p0vvmht.mjs +3 -0
- package/dist/chunks/cacache-1.0.5-wjkzfh58.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.5-5nq882mh.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.5-wrrdeke5.mjs +4 -0
- package/dist/chunks/caches-1.0.5-v8k4exyq.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.5-gvxyj4xd.mjs +1 -0
- package/dist/chunks/claudemd-1.0.5-3jqbm6dg.mjs +1 -0
- package/dist/chunks/clear-1.0.5-ydrbv5sa.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.5-2xv2cmn3.mjs +1 -0
- package/dist/chunks/cli-1.0.5-03wgbmm2.mjs +20 -0
- package/dist/chunks/cli-1.0.5-0k6kyvrp.mjs +4 -0
- package/dist/chunks/cli-1.0.5-0qaqmxjt.mjs +24 -0
- package/dist/chunks/cli-1.0.5-0qw6t36m.mjs +2 -0
- package/dist/chunks/cli-1.0.5-0rec9csa.mjs +2 -0
- package/dist/chunks/cli-1.0.5-0s0v1gg0.mjs +2 -0
- package/dist/chunks/cli-1.0.5-0sq2vybw.mjs +2 -0
- package/dist/chunks/cli-1.0.5-0trf2gsb.mjs +3 -0
- package/dist/chunks/cli-1.0.5-0ye9svdt.mjs +2 -0
- package/dist/chunks/cli-1.0.5-0zrj33nk.mjs +4 -0
- package/dist/chunks/cli-1.0.5-123rr4tv.mjs +17 -0
- package/dist/chunks/cli-1.0.5-13h520vn.mjs +2 -0
- package/dist/chunks/cli-1.0.5-15332510.mjs +18 -0
- package/dist/chunks/cli-1.0.5-15xp9y4j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-1b29x90m.mjs +2 -0
- package/dist/chunks/cli-1.0.5-1ca2a1kb.mjs +2 -0
- package/dist/chunks/cli-1.0.5-1ngdnte5.mjs +2 -0
- package/dist/chunks/cli-1.0.5-1z04v9fp.mjs +2 -0
- package/dist/chunks/cli-1.0.5-229sbfzz.mjs +15 -0
- package/dist/chunks/cli-1.0.5-29rk70p9.mjs +2 -0
- package/dist/chunks/cli-1.0.5-2aw9s99e.mjs +6 -0
- package/dist/chunks/cli-1.0.5-2hp8c4re.mjs +2 -0
- package/dist/chunks/cli-1.0.5-2j3w0k8p.mjs +3 -0
- package/dist/chunks/cli-1.0.5-2s6yzh9g.mjs +2 -0
- package/dist/chunks/cli-1.0.5-2x0kgr9z.mjs +2 -0
- package/dist/chunks/cli-1.0.5-39mk3dk2.mjs +9 -0
- package/dist/chunks/cli-1.0.5-39veaqd7.mjs +2 -0
- package/dist/chunks/cli-1.0.5-3c8dt3cc.mjs +12 -0
- package/dist/chunks/cli-1.0.5-3dcw9ffw.mjs +2 -0
- package/dist/chunks/cli-1.0.5-3mmky5x7.mjs +67 -0
- package/dist/chunks/cli-1.0.5-3qaq54xf.mjs +2 -0
- package/dist/chunks/cli-1.0.5-41vyz0qd.mjs +18 -0
- package/dist/chunks/cli-1.0.5-45wvp02j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-46363jdw.mjs +34 -0
- package/dist/chunks/cli-1.0.5-4az3eg5n.mjs +2 -0
- package/dist/chunks/cli-1.0.5-4cf0c00c.mjs +2 -0
- package/dist/chunks/cli-1.0.5-4h3763ep.mjs +2 -0
- package/dist/chunks/cli-1.0.5-4xvkzkh8.mjs +2 -0
- package/dist/chunks/cli-1.0.5-4zswwdgs.mjs +2 -0
- package/dist/chunks/cli-1.0.5-53d6wywt.mjs +2 -0
- package/dist/chunks/cli-1.0.5-57axxb5t.mjs +9 -0
- package/dist/chunks/cli-1.0.5-57w7a5bs.mjs +3 -0
- package/dist/chunks/cli-1.0.5-5bxyzsp6.mjs +2 -0
- package/dist/chunks/cli-1.0.5-5d3y804x.mjs +2 -0
- package/dist/chunks/cli-1.0.5-5j8nqcrs.mjs +2 -0
- package/dist/chunks/cli-1.0.5-5mk9wvxw.mjs +4 -0
- package/dist/chunks/cli-1.0.5-5mnf7pdd.mjs +2 -0
- package/dist/chunks/cli-1.0.5-5r2pnj92.mjs +2 -0
- package/dist/chunks/cli-1.0.5-5r37hkj4.mjs +2 -0
- package/dist/chunks/cli-1.0.5-5zqq0zy7.mjs +2 -0
- package/dist/chunks/cli-1.0.5-6bbza4by.mjs +2 -0
- package/dist/chunks/cli-1.0.5-6dxc5313.mjs +2 -0
- package/dist/chunks/cli-1.0.5-6shb2frf.mjs +2 -0
- package/dist/chunks/cli-1.0.5-73mr16hn.mjs +2 -0
- package/dist/chunks/cli-1.0.5-77gpdsqr.mjs +2 -0
- package/dist/chunks/cli-1.0.5-7b347m92.mjs +59 -0
- package/dist/chunks/cli-1.0.5-7vf1pr3c.mjs +2 -0
- package/dist/chunks/cli-1.0.5-84039hcz.mjs +2 -0
- package/dist/chunks/cli-1.0.5-8arg550h.mjs +2 -0
- package/dist/chunks/cli-1.0.5-8b04xvpj.mjs +15 -0
- package/dist/chunks/cli-1.0.5-8d1k2x24.mjs +3 -0
- package/dist/chunks/cli-1.0.5-8dg2y6tg.mjs +3 -0
- package/dist/chunks/cli-1.0.5-8mfjh9vw.mjs +2 -0
- package/dist/chunks/cli-1.0.5-8rzb2qem.mjs +17 -0
- package/dist/chunks/cli-1.0.5-8vatjwa7.mjs +5 -0
- package/dist/chunks/cli-1.0.5-8xf656w6.mjs +2 -0
- package/dist/chunks/cli-1.0.5-96fnr7xq.mjs +2 -0
- package/dist/chunks/cli-1.0.5-9c0hvxqx.mjs +2 -0
- package/dist/chunks/cli-1.0.5-9m4a2113.mjs +199 -0
- package/dist/chunks/cli-1.0.5-9n44f77w.mjs +2 -0
- package/dist/chunks/cli-1.0.5-9p4aamqf.mjs +2 -0
- package/dist/chunks/cli-1.0.5-9q1kjzxh.mjs +50 -0
- package/dist/chunks/cli-1.0.5-a09d7qpj.mjs +2 -0
- package/dist/chunks/cli-1.0.5-a0zsx9k5.mjs +6 -0
- package/dist/chunks/cli-1.0.5-a1fg3j9y.mjs +4 -0
- package/dist/chunks/cli-1.0.5-a3w7xpt0.mjs +2 -0
- package/dist/chunks/cli-1.0.5-a4weds6b.mjs +12 -0
- package/dist/chunks/cli-1.0.5-ackn9tdr.mjs +12 -0
- package/dist/chunks/cli-1.0.5-ax3758yk.mjs +2 -0
- package/dist/chunks/cli-1.0.5-axhexev2.mjs +4 -0
- package/dist/chunks/cli-1.0.5-b1qrxf5t.mjs +2 -0
- package/dist/chunks/cli-1.0.5-b9bacpp4.mjs +2 -0
- package/dist/chunks/cli-1.0.5-bbvr04n3.mjs +2 -0
- package/dist/chunks/cli-1.0.5-bbwvchab.mjs +3 -0
- package/dist/chunks/cli-1.0.5-bdad6ney.mjs +2 -0
- package/dist/chunks/cli-1.0.5-br28xg7b.mjs +2 -0
- package/dist/chunks/cli-1.0.5-br7w7ze2.mjs +2 -0
- package/dist/chunks/cli-1.0.5-c7k0f8wp.mjs +3 -0
- package/dist/chunks/cli-1.0.5-c91dt7xk.mjs +2 -0
- package/dist/chunks/cli-1.0.5-c96fh05p.mjs +3 -0
- package/dist/chunks/cli-1.0.5-cqyc6p8s.mjs +2 -0
- package/dist/chunks/cli-1.0.5-d2f5wztt.mjs +2 -0
- package/dist/chunks/cli-1.0.5-d8mbbnv3.mjs +2 -0
- package/dist/chunks/cli-1.0.5-d94fzt0m.mjs +1 -0
- package/dist/chunks/cli-1.0.5-das3386n.mjs +2 -0
- package/dist/chunks/cli-1.0.5-dcqw85vj.mjs +2 -0
- package/dist/chunks/cli-1.0.5-des22ges.mjs +15 -0
- package/dist/chunks/cli-1.0.5-dvcx4amk.mjs +2 -0
- package/dist/chunks/cli-1.0.5-dxz3143j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-ea6p97zd.mjs +2 -0
- package/dist/chunks/cli-1.0.5-edajpjmg.mjs +2 -0
- package/dist/chunks/cli-1.0.5-en031fdr.mjs +2 -0
- package/dist/chunks/cli-1.0.5-ezk8ma1j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-f27mhrw6.mjs +45 -0
- package/dist/chunks/cli-1.0.5-f6bn3jxz.mjs +2 -0
- package/dist/chunks/cli-1.0.5-f7xkakb1.mjs +18 -0
- package/dist/chunks/cli-1.0.5-fa0mqzrq.mjs +133 -0
- package/dist/chunks/cli-1.0.5-fa2wnwya.mjs +2 -0
- package/dist/chunks/cli-1.0.5-fag58qwa.mjs +2 -0
- package/dist/chunks/cli-1.0.5-g21rt29j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-g9s591pn.mjs +2 -0
- package/dist/chunks/cli-1.0.5-gdb1jgqb.mjs +2 -0
- package/dist/chunks/cli-1.0.5-gkss5w7t.mjs +2 -0
- package/dist/chunks/cli-1.0.5-gw52qb5c.mjs +2 -0
- package/dist/chunks/cli-1.0.5-ha9p17yw.mjs +24 -0
- package/dist/chunks/cli-1.0.5-hgadanc5.mjs +2 -0
- package/dist/chunks/cli-1.0.5-hq3f080w.mjs +5471 -0
- package/dist/chunks/cli-1.0.5-hz1nj3xh.mjs +2 -0
- package/dist/chunks/cli-1.0.5-j2w9p7gf.mjs +6 -0
- package/dist/chunks/cli-1.0.5-j4hpefm6.mjs +25 -0
- package/dist/chunks/cli-1.0.5-jaf04yn4.mjs +2 -0
- package/dist/chunks/cli-1.0.5-jcd8tadh.mjs +2 -0
- package/dist/chunks/cli-1.0.5-jewqmvp6.mjs +2 -0
- package/dist/chunks/cli-1.0.5-jmw0tc8t.mjs +2 -0
- package/dist/chunks/cli-1.0.5-jqnmxwxw.mjs +2 -0
- package/dist/chunks/cli-1.0.5-k0gvkh49.mjs +2 -0
- package/dist/chunks/cli-1.0.5-k8de6zdd.mjs +4 -0
- package/dist/chunks/cli-1.0.5-k9jqdbmm.mjs +2 -0
- package/dist/chunks/cli-1.0.5-kcp28c4h.mjs +2 -0
- package/dist/chunks/cli-1.0.5-kjy5f3kr.mjs +2 -0
- package/dist/chunks/cli-1.0.5-m5af0s7r.mjs +2 -0
- package/dist/chunks/cli-1.0.5-mekqm9qg.mjs +133 -0
- package/dist/chunks/cli-1.0.5-mffe7dsb.mjs +2 -0
- package/dist/chunks/cli-1.0.5-mmdqsfz9.mjs +2 -0
- package/dist/chunks/cli-1.0.5-mnqb7gd5.mjs +2 -0
- package/dist/chunks/cli-1.0.5-mq33s4f9.mjs +2 -0
- package/dist/chunks/cli-1.0.5-mt5e9at7.mjs +2 -0
- package/dist/chunks/cli-1.0.5-n37mkdyd.mjs +2 -0
- package/dist/chunks/cli-1.0.5-nc61pjy8.mjs +2 -0
- package/dist/chunks/cli-1.0.5-nfbvan59.mjs +25 -0
- package/dist/chunks/cli-1.0.5-nhdp3yej.mjs +24 -0
- package/dist/chunks/cli-1.0.5-nmdv34f7.mjs +3 -0
- package/dist/chunks/cli-1.0.5-nzt3xk1m.mjs +2 -0
- package/dist/chunks/cli-1.0.5-pbm5zpv9.mjs +2 -0
- package/dist/chunks/cli-1.0.5-pj7yrrt0.mjs +39 -0
- package/dist/chunks/cli-1.0.5-pnn57nb8.mjs +2 -0
- package/dist/chunks/cli-1.0.5-q2fxy9jm.mjs +2 -0
- package/dist/chunks/cli-1.0.5-q8fmarwj.mjs +2 -0
- package/dist/chunks/cli-1.0.5-qj14h4d5.mjs +2 -0
- package/dist/chunks/cli-1.0.5-qmzb3pc8.mjs +2 -0
- package/dist/chunks/cli-1.0.5-qsbpj1m9.mjs +2 -0
- package/dist/chunks/cli-1.0.5-qxw23b51.mjs +2 -0
- package/dist/chunks/cli-1.0.5-qy05mbzq.mjs +2 -0
- package/dist/chunks/cli-1.0.5-rh55zzfg.mjs +3 -0
- package/dist/chunks/cli-1.0.5-rky5xqh5.mjs +2 -0
- package/dist/chunks/cli-1.0.5-rva2hgpp.mjs +2 -0
- package/dist/chunks/cli-1.0.5-rzs07ec3.mjs +16 -0
- package/dist/chunks/cli-1.0.5-serj5ewd.mjs +2 -0
- package/dist/chunks/cli-1.0.5-sfkkcf3p.mjs +5 -0
- package/dist/chunks/cli-1.0.5-sj2231f1.mjs +2 -0
- package/dist/chunks/cli-1.0.5-snbkdqfy.mjs +12 -0
- package/dist/chunks/cli-1.0.5-ssayw5dp.mjs +2 -0
- package/dist/chunks/cli-1.0.5-ssx4mcjx.mjs +2 -0
- package/dist/chunks/cli-1.0.5-stpcz7ba.mjs +2 -0
- package/dist/chunks/cli-1.0.5-t1pv236j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-t25yws3j.mjs +3 -0
- package/dist/chunks/cli-1.0.5-t5wec35j.mjs +2 -0
- package/dist/chunks/cli-1.0.5-t8qp4fth.mjs +2 -0
- package/dist/chunks/cli-1.0.5-taz16hsd.mjs +2 -0
- package/dist/chunks/cli-1.0.5-tdwgmc3m.mjs +2 -0
- package/dist/chunks/cli-1.0.5-tek59n3h.mjs +4 -0
- package/dist/chunks/cli-1.0.5-tk21thw2.mjs +2 -0
- package/dist/chunks/cli-1.0.5-tmwsjg05.mjs +3 -0
- package/dist/chunks/cli-1.0.5-tw2jj3xn.mjs +4 -0
- package/dist/chunks/cli-1.0.5-tx7namj9.mjs +2 -0
- package/dist/chunks/cli-1.0.5-v5nyz2nh.mjs +7 -0
- package/dist/chunks/cli-1.0.5-vgd5ajrc.mjs +2 -0
- package/dist/chunks/cli-1.0.5-vh4hke14.mjs +2 -0
- package/dist/chunks/cli-1.0.5-vr3tqxgz.mjs +6 -0
- package/dist/chunks/cli-1.0.5-vtt9zkqz.mjs +6 -0
- package/dist/chunks/cli-1.0.5-waf9kawe.mjs +2 -0
- package/dist/chunks/cli-1.0.5-war5e8jj.mjs +58 -0
- package/dist/chunks/cli-1.0.5-wp9990nf.mjs +8 -0
- package/dist/chunks/cli-1.0.5-wpdpq47d.mjs +2 -0
- package/dist/chunks/cli-1.0.5-wzmh1e3n.mjs +21 -0
- package/dist/chunks/cli-1.0.5-x4aspz9g.mjs +2 -0
- package/dist/chunks/cli-1.0.5-xmnks1wk.mjs +2 -0
- package/dist/chunks/cli-1.0.5-xy058mns.mjs +2 -0
- package/dist/chunks/cli-1.0.5-xzx7ww5a.mjs +2 -0
- package/dist/chunks/cli-1.0.5-y4j32yy1.mjs +2 -0
- package/dist/chunks/cli-1.0.5-y8q3qk2n.mjs +4 -0
- package/dist/chunks/cli-1.0.5-y9379vp6.mjs +42 -0
- package/dist/chunks/cli-1.0.5-yaaee8wg.mjs +2 -0
- package/dist/chunks/cli-1.0.5-yfjm1eph.mjs +2 -0
- package/dist/chunks/cli-1.0.5-yq73wx8x.mjs +2 -0
- package/dist/chunks/cli-1.0.5-yt947a9v.mjs +2 -0
- package/dist/chunks/cli-1.0.5-yxd38q26.mjs +2 -0
- package/dist/chunks/cli-1.0.5-z06twq6c.mjs +2 -0
- package/dist/chunks/cli-1.0.5-zdrbe6rt.mjs +2 -0
- package/dist/chunks/cli-1.0.5-zp32zjhm.mjs +4 -0
- package/dist/chunks/cli-1.0.5-zs2strnh.mjs +3 -0
- package/dist/chunks/client-1.0.5-rd1mh2vy.mjs +1 -0
- package/dist/chunks/color-1.0.5-hjzv1n2a.mjs +1 -0
- package/dist/chunks/compact-1.0.5-81vnpv7d.mjs +3 -0
- package/dist/chunks/config-1.0.5-9db05sjq.mjs +1 -0
- package/dist/chunks/config-1.0.5-pcp10a6q.mjs +1 -0
- package/dist/chunks/constants-1.0.5-f4c4qr3a.mjs +1 -0
- package/dist/chunks/context-1.0.5-qxhhzswn.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.5-w3wzde6f.mjs +1 -0
- package/dist/chunks/conversation-1.0.5-gwye53an.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.5-qte7542r.mjs +1 -0
- package/dist/chunks/copy-1.0.5-n3qtexaa.mjs +9 -0
- package/dist/chunks/cost-1.0.5-pmt9ayyg.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.5-5sb3bnzy.mjs +1 -0
- package/dist/chunks/createSession-1.0.5-dfm8hhfc.mjs +1 -0
- package/dist/chunks/debug-1.0.5-xgx7qarm.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.5-e8gvpvpb.mjs +1446 -0
- package/dist/chunks/desktop-1.0.5-rcebn8xa.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.5-majzdhqr.mjs +1 -0
- package/dist/chunks/detection-1.0.5-nwd2wdt1.mjs +1 -0
- package/dist/chunks/diff-1.0.5-qkbawtb9.mjs +1 -0
- package/dist/chunks/doctor-1.0.5-7c7dfkyd.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.5-6dhpn9ad.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.5-m307gdk2.mjs +1 -0
- package/dist/chunks/effort-1.0.5-mmb54xfb.mjs +10 -0
- package/dist/chunks/engine-1.0.5-21jbdq4a.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.5-thartncn.mjs +1 -0
- package/dist/chunks/envUtils-1.0.5-6h3fhr7p.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.5-73gtendd.mjs +1 -0
- package/dist/chunks/environments-1.0.5-8xw6d6j8.mjs +1 -0
- package/dist/chunks/errors-1.0.5-rh227te7.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.5-vc1bjjfa.mjs +1 -0
- package/dist/chunks/exit-1.0.5-8bmam0gp.mjs +1 -0
- package/dist/chunks/explorer-1.0.5-27hbdb4y.mjs +1 -0
- package/dist/chunks/export-1.0.5-qb4e6wgw.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.5-qf4ys9xa.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.5-01h4dw8s.mjs +1 -0
- package/dist/chunks/fast-1.0.5-z6da3emr.mjs +1 -0
- package/dist/chunks/feedback-1.0.5-8h41wppb.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.5-ejz7gbmd.mjs +1 -0
- package/dist/chunks/git-1.0.5-gd77z9dj.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.5-pycfj4ra.mjs +1 -0
- package/dist/chunks/goal-1.0.5-597qt6ck.mjs +4 -0
- package/dist/chunks/grove-1.0.5-dmprx7yf.mjs +1 -0
- package/dist/chunks/growthbook-1.0.5-jykx4r6s.mjs +1 -0
- package/dist/chunks/headless-1.0.5-sp1ag189.mjs +2 -0
- package/dist/chunks/heapdump-1.0.5-ppawz5xc.mjs +6 -0
- package/dist/chunks/help-1.0.5-ssa4dsqb.mjs +1 -0
- package/dist/chunks/hookChains-1.0.5-fanx5gyv.mjs +3 -0
- package/dist/chunks/hooks-1.0.5-nesxgy40.mjs +79 -0
- package/dist/chunks/hooks-1.0.5-xxmgpdqs.mjs +1 -0
- package/dist/chunks/ide-1.0.5-t8pjrph1.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.5-vj7jxp0t.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.5-mj36hm3y.mjs +1 -0
- package/dist/chunks/index-1.0.5-0s2793w0.mjs +1 -0
- package/dist/chunks/index-1.0.5-17ma05he.mjs +9 -0
- package/dist/chunks/index-1.0.5-2qwz1g69.mjs +1 -0
- package/dist/chunks/index-1.0.5-6c1zzb3s.mjs +2 -0
- package/dist/chunks/index-1.0.5-6cyrja0k.mjs +17 -0
- package/dist/chunks/index-1.0.5-a1mdxka4.mjs +1 -0
- package/dist/chunks/index-1.0.5-b4yxa4hz.mjs +1 -0
- package/dist/chunks/index-1.0.5-bcjvf75y.mjs +5 -0
- package/dist/chunks/index-1.0.5-bkbqdz2d.mjs +1 -0
- package/dist/chunks/index-1.0.5-fv7vmb9s.mjs +1 -0
- package/dist/chunks/index-1.0.5-fzevsz2p.mjs +1 -0
- package/dist/chunks/index-1.0.5-jyat0nmw.mjs +30 -0
- package/dist/chunks/index-1.0.5-k8ytwfn6.mjs +1 -0
- package/dist/chunks/index-1.0.5-m2qg60zx.mjs +9 -0
- package/dist/chunks/index-1.0.5-mb1e2tw0.mjs +1 -0
- package/dist/chunks/index-1.0.5-pr0vcv57.mjs +1 -0
- package/dist/chunks/index-1.0.5-q15hb5x2.mjs +1 -0
- package/dist/chunks/index-1.0.5-v6svrtrp.mjs +2 -0
- package/dist/chunks/index-1.0.5-wqb3fxw6.mjs +1 -0
- package/dist/chunks/index-1.0.5-wr2ed66w.mjs +1 -0
- package/dist/chunks/index-1.0.5-xv2c1a8h.mjs +1 -0
- package/dist/chunks/index-1.0.5-ybth5k4d.mjs +1 -0
- package/dist/chunks/index-1.0.5-zq60qv39.mjs +1 -0
- package/dist/chunks/init-1.0.5-rw3dzwk6.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.5-2p0aksez.mjs +1 -0
- package/dist/chunks/ink-1.0.5-w7yrpcsr.mjs +1 -0
- package/dist/chunks/insights-1.0.5-tqe68js7.mjs +870 -0
- package/dist/chunks/install-1.0.5-kmfenneg.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.5-5pn3prw1.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.5-t743pzep.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.5-gefw0bqs.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.5-t5jn3wtn.mjs +1 -0
- package/dist/chunks/keybindings-1.0.5-ve8shte3.mjs +2 -0
- package/dist/chunks/knowledge-1.0.5-v0ccyfkh.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.5-dpky86fy.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.5-e49hf38y.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.5-47cekn3c.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.5-myfzepet.mjs +1 -0
- package/dist/chunks/log-1.0.5-7rz3pg37.mjs +1 -0
- package/dist/chunks/main-1.0.5-z3ezh5sk.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.5-ne8x2gq4.mjs +1 -0
- package/dist/chunks/mcp-1.0.5-42xrpvz4.mjs +1 -0
- package/dist/chunks/mcp-1.0.5-79tkap1k.mjs +17 -0
- package/dist/chunks/mcp-1.0.5-q5ah99mh.mjs +4 -0
- package/dist/chunks/mcpb-1.0.5-kkp095ks.mjs +1 -0
- package/dist/chunks/memory-1.0.5-hkrp659t.mjs +3 -0
- package/dist/chunks/model-1.0.5-9e6c5g1q.mjs +1 -0
- package/dist/chunks/model-1.0.5-wd9fxg66.mjs +2 -0
- package/dist/chunks/node-1.0.5-3veffyfp.mjs +12 -0
- package/dist/chunks/oauth-1.0.5-9fx2fya6.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.5-08gya990.mjs +14 -0
- package/dist/chunks/output-style-1.0.5-9xkmhcdq.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-1.0.5-gxfc7sy3.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.5-krsghz4a.mjs +1 -0
- package/dist/chunks/parser-1.0.5-7t9d9wzc.mjs +1 -0
- package/dist/chunks/passes-1.0.5-rwpd568s.mjs +1 -0
- package/dist/chunks/permissions-1.0.5-fshr608a.mjs +1 -0
- package/dist/chunks/permissions-1.0.5-k96fm9x7.mjs +3 -0
- package/dist/chunks/plan-1.0.5-r5w68ara.mjs +1 -0
- package/dist/chunks/plist-1.0.5-24f4gwnf.mjs +1 -0
- package/dist/chunks/plugin-1.0.5-y6pp7kx3.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.5-8nh5hbt9.mjs +1 -0
- package/dist/chunks/plugins-1.0.5-v258fznm.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.5-v8k5485v.mjs +2 -0
- package/dist/chunks/print-1.0.5-f2xwn7zm.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.5-pt9ca6xm.mjs +1 -0
- package/dist/chunks/process-1.0.5-w2r6hpk2.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.5-p9zzmpbz.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.5-zq638t0f.mjs +9 -0
- package/dist/chunks/prompt-1.0.5-022q69g7.mjs +1 -0
- package/dist/chunks/prompt-1.0.5-w6bzght3.mjs +1 -0
- package/dist/chunks/prompts-1.0.5-2jd8x52w.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.5-9dj5ttvz.mjs +13 -0
- package/dist/chunks/provider-1.0.5-asz70246.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.5-fmjm6rmc.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.5-vjf0w50r.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.5-anb80s86.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.5-np4qg7pc.mjs +34 -0
- package/dist/chunks/registry-1.0.5-a71bk5mm.mjs +1 -0
- package/dist/chunks/release-notes-1.0.5-zja63x3b.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.5-hy5tmbm4.mjs +2 -0
- package/dist/chunks/remote-env-1.0.5-v6v39266.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.5-v63qwqmd.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.5-vkfszpj3.mjs +1 -0
- package/dist/chunks/rename-1.0.5-25sfvv9d.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.5-ygv6rga6.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.5-dg2xcz4s.mjs +1 -0
- package/dist/chunks/resume-1.0.5-d2qc9f4c.mjs +2 -0
- package/dist/chunks/rewind-1.0.5-0217cv78.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.5-g7ks8eqz.mjs +1 -0
- package/dist/chunks/sandbox-adapter-1.0.5-ccxp12rr.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.5-nwdw5616.mjs +1 -0
- package/dist/chunks/session-1.0.5-q5797h37.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.5-0xp7x0xt.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.5-h3c95s74.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.5-hdjx72aj.mjs +1 -0
- package/dist/chunks/settings-1.0.5-s1p6gvx3.mjs +1 -0
- package/dist/chunks/setup-1.0.5-wgvjraw0.mjs +5 -0
- package/dist/chunks/sinks-1.0.5-a1w5a6t0.mjs +1 -0
- package/dist/chunks/skills-1.0.5-mpx8e6j0.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.5-gk3c4m36.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.5-7h9whg0v.mjs +1 -0
- package/dist/chunks/state-1.0.5-nxqyqbt7.mjs +1 -0
- package/dist/chunks/stats-1.0.5-ybfs5e01.mjs +6 -0
- package/dist/chunks/status-1.0.5-4b21a8e7.mjs +1 -0
- package/dist/chunks/stickers-1.0.5-6zfbgzqv.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.5-9s2b5kcv.mjs +1 -0
- package/dist/chunks/tasks-1.0.5-w4yd35x4.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.5-nzbm1gz9.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.5-x3mxd173.mjs +1 -0
- package/dist/chunks/teleport-1.0.5-7qdheca5.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.5-djj61vc3.mjs +1 -0
- package/dist/chunks/theme-1.0.5-e6df6c8c.mjs +1 -0
- package/dist/chunks/thinkback-1.0.5-9kdkqxre.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.5-4e9s86bt.mjs +1 -0
- package/dist/chunks/toolPool-1.0.5-7jpezecz.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.5-7sy8x8xa.mjs +1 -0
- package/dist/chunks/tools-1.0.5-6e5kvcns.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.5-mwdq4ek8.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.5-b9pa0x3a.mjs +69 -0
- package/dist/chunks/types-1.0.5-4bz2q6qd.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.5-1qqxxn0s.mjs +4 -0
- package/dist/chunks/update-1.0.5-ayakya21.mjs +88 -0
- package/dist/chunks/upgrade-1.0.5-hykkyrmf.mjs +1 -0
- package/dist/chunks/upload-1.0.5-3385nhw4.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.5-mhns1vq6.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.5-2r7rh6c4.mjs +1 -0
- package/dist/chunks/usage-1.0.5-vdj6w59v.mjs +1 -0
- package/dist/chunks/util-1.0.5-ygactfqm.mjs +1 -0
- package/dist/chunks/utils-1.0.5-wnkavpty.mjs +1 -0
- package/dist/chunks/vim-1.0.5-410rh6vr.mjs +1 -0
- package/dist/chunks/watcher-1.0.5-99dvd0dj.mjs +1 -0
- package/dist/chunks/wiki-1.0.5-3mvgvxc5.mjs +132 -0
- package/dist/chunks/workflows-1.0.5-zcs9n7bt.mjs +1 -0
- package/dist/chunks/worktree-1.0.5-1v2pb5xs.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.5-s5fw9pgq.mjs +1 -0
- package/dist/chunks/wrapper-1.0.5-k624rfy1.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +0 -1
- package/dist/chunks/App-1.0.3-rd1a3qee.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +0 -7
- package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +0 -6
- package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +0 -1
- package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +0 -1
- package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +0 -1
- package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +0 -110
- package/dist/chunks/agents-1.0.3-0qny02r7.mjs +0 -3
- package/dist/chunks/api-1.0.3-j9q39zt3.mjs +0 -1
- package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +0 -1
- package/dist/chunks/assistant-1.0.3-8swg0237.mjs +0 -1
- package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +0 -1
- package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +0 -1
- package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +0 -1
- package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +0 -4
- package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +0 -1
- package/dist/chunks/btw-1.0.3-7vqng7en.mjs +0 -1
- package/dist/chunks/buddy-1.0.3-k48yw852.mjs +0 -3
- package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +0 -4
- package/dist/chunks/caches-1.0.3-syrefgh1.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +0 -1
- package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +0 -1
- package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +0 -1
- package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-087x46pf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +0 -1
- package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-10cqqc79.mjs +0 -2
- package/dist/chunks/cli-1.0.3-13m8868e.mjs +0 -2
- package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1462khnb.mjs +0 -3
- package/dist/chunks/cli-1.0.3-17cer107.mjs +0 -2
- package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +0 -4
- package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +0 -4
- package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1m413b59.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1psnx21q.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1v65dc93.mjs +0 -2
- package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +0 -2
- package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +0 -5471
- package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3gtteknj.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3j050hfw.mjs +0 -3
- package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +0 -2
- package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +0 -3
- package/dist/chunks/cli-1.0.3-3y945bqk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4eym93f1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +0 -199
- package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +0 -12
- package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +0 -4
- package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5kneybr4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +0 -16
- package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +0 -6
- package/dist/chunks/cli-1.0.3-5w74xeth.mjs +0 -3
- package/dist/chunks/cli-1.0.3-607t5t97.mjs +0 -2
- package/dist/chunks/cli-1.0.3-627y4tma.mjs +0 -2
- package/dist/chunks/cli-1.0.3-63tn3q21.mjs +0 -2
- package/dist/chunks/cli-1.0.3-63xjee3t.mjs +0 -3
- package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +0 -4
- package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +0 -21
- package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +0 -3
- package/dist/chunks/cli-1.0.3-82ky54w7.mjs +0 -15
- package/dist/chunks/cli-1.0.3-87me6r9c.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8a694ts0.mjs +0 -6
- package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8hw15ers.mjs +0 -2
- package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +0 -2
- package/dist/chunks/cli-1.0.3-960aw98y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +0 -2
- package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +0 -3
- package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-a630qcdb.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ancybhm3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-apbdyngz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ar488ss1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +0 -4
- package/dist/chunks/cli-1.0.3-ax2geagm.mjs +0 -18
- package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ay89chqh.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b14b158b.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b72086ew.mjs +0 -2
- package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +0 -24
- package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +0 -25
- package/dist/chunks/cli-1.0.3-bg3frggm.mjs +0 -5
- package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +0 -2
- package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +0 -3
- package/dist/chunks/cli-1.0.3-c38hr99q.mjs +0 -2
- package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-c570dde7.mjs +0 -24
- package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cnb1yved.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-d7597p9k.mjs +0 -133
- package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-djd4asp9.mjs +0 -25
- package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +0 -20
- package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-e315jy0y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +0 -2
- package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +0 -2
- package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +0 -2
- package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +0 -45
- package/dist/chunks/cli-1.0.3-eta6q17m.mjs +0 -2
- package/dist/chunks/cli-1.0.3-exj8yag8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +0 -2
- package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +0 -2
- package/dist/chunks/cli-1.0.3-g5w729g4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +0 -12
- package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +0 -4
- package/dist/chunks/cli-1.0.3-hg04k516.mjs +0 -3
- package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-htx4273d.mjs +0 -39
- package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j72ztden.mjs +0 -2
- package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +0 -2
- package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +0 -6
- package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +0 -2
- package/dist/chunks/cli-1.0.3-k99msp02.mjs +0 -17
- package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +0 -59
- package/dist/chunks/cli-1.0.3-khw95075.mjs +0 -2
- package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +0 -2
- package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +0 -2
- package/dist/chunks/cli-1.0.3-m45p13pd.mjs +0 -2
- package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +0 -3
- package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +0 -12
- package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +0 -4
- package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n99q1npz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nama3pwj.mjs +0 -7
- package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ntywpqre.mjs +0 -2
- package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +0 -2
- package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +0 -24
- package/dist/chunks/cli-1.0.3-pc93arct.mjs +0 -10
- package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +0 -67
- package/dist/chunks/cli-1.0.3-phh30dq0.mjs +0 -4
- package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +0 -5
- package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +0 -3
- package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-q9hw6148.mjs +0 -2
- package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +0 -34
- package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +0 -2
- package/dist/chunks/cli-1.0.3-r274tqxg.mjs +0 -2
- package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +0 -3
- package/dist/chunks/cli-1.0.3-ra9brq66.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rapppvd0.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +0 -15
- package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +0 -58
- package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rpry44n3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +0 -2
- package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +0 -5
- package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +0 -6
- package/dist/chunks/cli-1.0.3-sz2d376e.mjs +0 -2
- package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +0 -2
- package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +0 -133
- package/dist/chunks/cli-1.0.3-t7p3714v.mjs +0 -2
- package/dist/chunks/cli-1.0.3-tjewxa84.mjs +0 -2
- package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +0 -9
- package/dist/chunks/cli-1.0.3-v658mswv.mjs +0 -12
- package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +0 -2
- package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +0 -3
- package/dist/chunks/cli-1.0.3-vzm5gxzn.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +0 -2
- package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +0 -2
- package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +0 -15
- package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +0 -2
- package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +0 -50
- package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +0 -2
- package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +0 -42
- package/dist/chunks/cli-1.0.3-xarnzm58.mjs +0 -2
- package/dist/chunks/cli-1.0.3-xf2r8496.mjs +0 -2
- package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +0 -4
- package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +0 -17
- package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +0 -2
- package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +0 -4
- package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +0 -2
- package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +0 -2
- package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +0 -2
- package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +0 -2
- package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +0 -18
- package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +0 -2
- package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +0 -2
- package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +0 -18
- package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +0 -8
- package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +0 -2
- package/dist/chunks/client-1.0.3-qkqk8q23.mjs +0 -1
- package/dist/chunks/color-1.0.3-x0qygswm.mjs +0 -1
- package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +0 -3
- package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +0 -1
- package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +0 -1
- package/dist/chunks/constants-1.0.3-wk9v349h.mjs +0 -1
- package/dist/chunks/context-1.0.3-6sarjqp3.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +0 -1
- package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +0 -1
- package/dist/chunks/copy-1.0.3-575pc6gc.mjs +0 -9
- package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +0 -1
- package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +0 -1
- package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +0 -1446
- package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +0 -1
- package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +0 -1
- package/dist/chunks/diff-1.0.3-43a1txqm.mjs +0 -1
- package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +0 -1
- package/dist/chunks/effort-1.0.3-28cxc122.mjs +0 -10
- package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +0 -1
- package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +0 -1
- package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +0 -1
- package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +0 -1
- package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +0 -1
- package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +0 -1
- package/dist/chunks/export-1.0.3-4r98t7vv.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +0 -1
- package/dist/chunks/fast-1.0.3-4atx5cja.mjs +0 -1
- package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +0 -1
- package/dist/chunks/git-1.0.3-tpyzsser.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +0 -1
- package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +0 -4
- package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +0 -1
- package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +0 -1
- package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +0 -2
- package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +0 -6
- package/dist/chunks/help-1.0.3-e1qcej38.mjs +0 -1
- package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +0 -3
- package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +0 -79
- package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +0 -1
- package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +0 -1
- package/dist/chunks/index-1.0.3-15ym353c.mjs +0 -1
- package/dist/chunks/index-1.0.3-1tyen96a.mjs +0 -1
- package/dist/chunks/index-1.0.3-22c46a9g.mjs +0 -1
- package/dist/chunks/index-1.0.3-293khy5y.mjs +0 -1
- package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +0 -1
- package/dist/chunks/index-1.0.3-4g5be32x.mjs +0 -5
- package/dist/chunks/index-1.0.3-5h227bav.mjs +0 -17
- package/dist/chunks/index-1.0.3-83nb50h7.mjs +0 -1
- package/dist/chunks/index-1.0.3-f3xy16k0.mjs +0 -1
- package/dist/chunks/index-1.0.3-fp6xhcab.mjs +0 -2
- package/dist/chunks/index-1.0.3-gecs01pd.mjs +0 -1
- package/dist/chunks/index-1.0.3-gwt3epj3.mjs +0 -30
- package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +0 -9
- package/dist/chunks/index-1.0.3-j1rfqkax.mjs +0 -1
- package/dist/chunks/index-1.0.3-k6ze856z.mjs +0 -1
- package/dist/chunks/index-1.0.3-n8qxa0er.mjs +0 -1
- package/dist/chunks/index-1.0.3-pa0eqyya.mjs +0 -1
- package/dist/chunks/index-1.0.3-qacj9f9z.mjs +0 -1
- package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +0 -1
- package/dist/chunks/index-1.0.3-w0d2skgw.mjs +0 -2
- package/dist/chunks/index-1.0.3-w6sndqyw.mjs +0 -9
- package/dist/chunks/index-1.0.3-z42381sj.mjs +0 -1
- package/dist/chunks/index-1.0.3-zfk75xdr.mjs +0 -1
- package/dist/chunks/init-1.0.3-1756vwh2.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +0 -1
- package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +0 -1
- package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +0 -870
- package/dist/chunks/install-1.0.3-zttqn1ez.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +0 -1
- package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +0 -2
- package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +0 -1
- package/dist/chunks/log-1.0.3-wzytzthn.mjs +0 -1
- package/dist/chunks/main-1.0.3-jzwehebm.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +0 -1
- package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +0 -1
- package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +0 -4
- package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +0 -17
- package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +0 -1
- package/dist/chunks/memory-1.0.3-esv79kf8.mjs +0 -3
- package/dist/chunks/model-1.0.3-9b4d36sd.mjs +0 -1
- package/dist/chunks/model-1.0.3-bh1t2s45.mjs +0 -2
- package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +0 -12
- package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +0 -14
- package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +0 -1
- package/dist/chunks/parser-1.0.3-avw926ew.mjs +0 -1
- package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +0 -1
- package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +0 -3
- package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +0 -1
- package/dist/chunks/plan-1.0.3-emxq5t72.mjs +0 -1
- package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +0 -1
- package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +0 -1
- package/dist/chunks/plugins-1.0.3-x021vefh.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +0 -2
- package/dist/chunks/print-1.0.3-w721s1pr.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +0 -1
- package/dist/chunks/process-1.0.3-xedhq816.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +0 -9
- package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +0 -1
- package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +0 -1
- package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +0 -13
- package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +0 -34
- package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +0 -1
- package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +0 -2
- package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +0 -1
- package/dist/chunks/rename-1.0.3-090y3y3t.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +0 -1
- package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +0 -2
- package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +0 -1
- package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +0 -1
- package/dist/chunks/session-1.0.3-26qz9f9c.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +0 -1
- package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +0 -1
- package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +0 -5
- package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +0 -1
- package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +0 -1
- package/dist/chunks/state-1.0.3-7hxpebf0.mjs +0 -1
- package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +0 -6
- package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +0 -1
- package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +0 -1
- package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +0 -1
- package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +0 -1
- package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +0 -1
- package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +0 -1
- package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +0 -1
- package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +0 -69
- package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +0 -4
- package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +0 -86
- package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +0 -1
- package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +0 -1
- package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +0 -1
- package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +0 -1
- package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +0 -1
- package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +0 -1
- package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +0 -1
- package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +0 -132
- package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +0 -1
- package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +0 -1
- package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +0 -7
- /package/dist/chunks/{cli-1.0.3-adgwsvq3.mjs → cli-1.0.5-1awwev3c.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-hn2qw1pk.mjs → cli-1.0.5-8344sc95.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-cf280jvq.mjs → cli-1.0.5-a9bz757z.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-25zd2770.mjs → cli-1.0.5-d6yzpr8m.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-qf5pjy0v.mjs → cli-1.0.5-dhjms3v7.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-77dec30x.mjs → cli-1.0.5-kv00w626.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.3-43683395.mjs → cli-1.0.5-sszjr8x2.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$q as Hq,ar as pq,az as Uq,bz as mq}from"./cli-1.0.5-hq3f080w.mjs";import{A3 as Bq,C3 as dq}from"./cli-1.0.5-n37mkdyd.mjs";import{D7 as S,T6 as Nq,U6 as yq,Z7 as gq,i4 as Wq,m4 as jq,n4 as Sq,z7 as c}from"./cli-1.0.5-rzs07ec3.mjs";import{Ada as Xq,Dda as Lq,L_ as M,P_ as $q,u$ as Gq,w$ as Pq,wda as Yq,xda as Dq,yda as k}from"./cli-1.0.5-9m4a2113.mjs";import{vha as N,xha as bq,yha as E,zha as Cq}from"./cli-1.0.5-3mmky5x7.mjs";import{gia as Kq,hia as Qq,iia as Vq,nia as Zq,oia as Rq}from"./cli-1.0.5-8xf656w6.mjs";import{pia as _,sia as e}from"./cli-1.0.5-t1pv236j.mjs";import{Xia as m,aja as Eq,sja as Y,via as Fq,vja as Jq,xia as $J}from"./cli-1.0.5-a0zsx9k5.mjs";import{Sja as C,Yja as P,Zja as qq}from"./cli-1.0.5-k8de6zdd.mjs";import{Kqa as z,ara as kq}from"./cli-1.0.5-41vyz0qd.mjs";import{Ara as Tq,yra as ZJ,zra as d}from"./cli-1.0.5-73mr16hn.mjs";var fq,r,s;var t=d(()=>{bq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as cq,readdir as iq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Wq()!=="firstParty"||!jq())return!1;let q=c();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=c();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:i,validateStatus:(L)=>L===200||L===304||L===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:i,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:X}=P(Q),L=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:X,errorType:L,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Xq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await cq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.0.5-3jqbm6dg.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await M();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${L+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function v(q,K){_("tengu_team_mem_sync_pull",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("tengu_team_mem_sync_push",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),vq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("tengu_team_mem_push_suppressed",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
|
|
2
|
+
export{vq as i,NJ as j,BJ as k,Mq as l,HJ as m,UJ as n,OJ as o,wJ as p};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{Ac as Kc,Bc as da}from"./cli-1.0.5-39veaqd7.mjs";import{Cc as An,Dc as Ht,Ec as Xt,Fc as Zc,Hc as ea}from"./cli-1.0.5-fag58qwa.mjs";import{Ic as wt,Lc as ma}from"./cli-1.0.5-jewqmvp6.mjs";import{Cx as Jc,DH as Hn,EF as yt,EH as Au,Ex as ra,FF as Kn,GH as la,HH as oa,Kp as yc,Lp as Wu,Lw as Qc,Mp as Cc,Mw as Gc,Np as bc,Nw as Vc,OF as V,Op as wc,Ow as Yc,PF as gu,Pp as Oc,Pw as ha,QF as ia,Qp as D,Rp as mn,Sp as Uu,Tp as Lc,Vp as zc,Wp as Nc,Yp as fc,dG as nc,eG as Gu,fG as cc,gG as uc,hG as ac,iG as Vu,nq as Mc,oq as aa}from"./cli-1.0.5-hq3f080w.mjs";import{HX as v,JX as ca,VX as Fc,WX as ua}from"./cli-1.0.5-ax3758yk.mjs";import{J0 as Ln,c0 as g,e0 as i}from"./cli-1.0.5-7b347m92.mjs";import{M1 as Nn,N1 as Mn,O1 as Qn,P1 as Gn,Q1 as Vn,R1 as su,U1 as Yn,Y1 as Jn,Z1 as $c,_1 as Zn}from"./cli-1.0.5-tx7namj9.mjs";import{p3 as dt,q3 as u,r3 as y,s3 as Qt}from"./cli-1.0.5-jcd8tadh.mjs";import{t3 as Vt}from"./cli-1.0.5-t8qp4fth.mjs";import{Q3 as lc,R3 as Hu}from"./cli-1.0.5-tmwsjg05.mjs";import{f4 as $n,h4 as Ou}from"./cli-1.0.5-rzs07ec3.mjs";import{$ea as sn,A9 as Ct,B9 as vu,Dea as Rt,Eea as bn,Gea as wn,Kea as Fn,Pea as hn,Qea as xn,Rea as jn,Sea as Yt,Tea as rn,Uea as Dn,Vea as an,Wea as vn,Xea as tc,Yea as Qu,Zea as On,_ea as rc,bfa as ic,dfa as Sc,efa as gn,nea as qc,oea as bt,pea as ta,qea as Tt,rea as nt,sfa as na,tea as W,uea as Kt,wea as ft,xea as Cn,yea as ct,zea as At}from"./cli-1.0.5-9m4a2113.mjs";import{fka as ut,nka as on}from"./cli-1.0.5-1z04v9fp.mjs";import{vra as Gt,wra as Du,zra as j}from"./cli-1.0.5-73mr16hn.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=Jc(),[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 Yc({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 Vc({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 Qc({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}=Gc(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();ra();ma();ic();on();ta();aa();Fn();Zn();ha();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 vc,In as wc,Aa as xc,Sh as yc,Fa as zc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{H0 as X,J0 as k,JY as f,t0 as W}from"./cli-1.0.5-7b347m92.mjs";import{p3 as V,q3 as J,s3 as K}from"./cli-1.0.5-jcd8tadh.mjs";import{t3 as P}from"./cli-1.0.5-t8qp4fth.mjs";import{Vfa as U,Wfa as O}from"./cli-1.0.5-0k6kyvrp.mjs";import{vra as Q,zra as L}from"./cli-1.0.5-73mr16hn.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
+
export{g as ie,N as je,j as ke};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Bja as y8,yja as ZX}from"./cli-1.0.5-qsbpj1m9.mjs";import{Tja as r,Zja as R8}from"./cli-1.0.5-k8de6zdd.mjs";import{aka as $X,dka as NJ,nka as j8}from"./cli-1.0.5-1z04v9fp.mjs";import{$ka as vJ,Aka as fQ,Bka as T6,Cka as $Q,Dka as cX,Gka as JQ,Hka as pX,Ika as g,Jka as oJ,Kka as n,Lka as LQ,Oka as pQ,Pka as v6,Qpa as sQ,Ska as l,Tka as wQ,Tla as XX,Uka as w,Vka as kQ,Yka as yJ,Zka as OX,_ka as h,ala as tJ,bla as hX,cla as hJ,dla as wX,ela as y,fla as OJ,gla as gQ,hla as m6,kla as O,lla as GJ,oka as dQ,pka as P6,uka as qJ,vka as oX,yka as eJ,zka as fX}from"./cli-1.0.5-q8fmarwj.mjs";import{Rpa as SJ,Spa as CX,Xpa as cJ,Ypa as TX,Zpa as HJ,_pa as J6,bqa as L,cqa as XJ,hqa as LJ,iqa as zX,nqa as V,oqa as xJ}from"./cli-1.0.5-7vf1pr3c.mjs";import{Bra as N,Cra as W,yra as uJ,zra as U}from"./cli-1.0.5-73mr16hn.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
+
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
+
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
+
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
+
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
+
export{zJ as tia,BJ as uia,IJ as via,r8 as wia,CJ as xia,e as yia,_J as zia,m as Aia,JJ as Bia,j as Cia,QJ as Dia,R as Eia,k as Fia,_ as Gia,d as Hia,$J as Iia,lJ as Jia,iJ as Kia,rJ as Lia,b as Mia,ZJ as Nia,ZQ as Oia,YQ as Pia,BQ as Qia,IQ as Ria,RQ as Sia,AQ as Tia,nQ as Uia,lQ as Via,E as Wia,KJ as Xia,I8 as Yia,C8 as Zia,F8 as _ia,V8 as $ia,UJ as aja,JX as bja,H1 as cja,G1 as dja,s as eja,K1 as fja,U1 as gja,N1 as hja,QX as ija,g8 as jja,T as kja,L1 as lja,b8 as mja,GX as nja,KX as oja,_1 as pja,S1 as qja,O1 as rja,D8 as sja,UX as tja,w1 as uja,aQ as vja};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{mg as LJ,ng as WQ}from"./cli-1.0.5-zs2strnh.mjs";import{og as hJ,pg as RQ}from"./cli-1.0.5-1ngdnte5.mjs";import{qg as PJ,rg as hQ}from"./cli-1.0.5-kcp28c4h.mjs";import{sg as aq,tg as lJ}from"./cli-1.0.5-waf9kawe.mjs";import{ug as Fq,vg as iq,wg as $J}from"./cli-1.0.5-ezk8ma1j.mjs";import{xg as WJ,yg as HQ}from"./cli-1.0.5-6shb2frf.mjs";import{Bx as g,EP as eq,Ex as yQ,GP as iJ,Mx as uq,Nx as mq,PI as HJ,Px as pq,QI as RJ,Qx as fJ,RI as wQ,So as P,To as Tq,UP as Aq,XP as oJ,YS as wq,aT as sq,bt as KJ,ct as VQ,dT as tq,dt as VJ,et as XJ,ft as XQ,pT as nJ,qG as vq,rG as BQ,sG as UJ,tG as FJ,uG as wJ,vG as FQ,vo as GJ,wo as KQ}from"./cli-1.0.5-hq3f080w.mjs";import{$T as NJ,ZT as yJ,cU as NQ}from"./cli-1.0.5-229sbfzz.mjs";import{GV as BJ,KV as UQ}from"./cli-1.0.5-gkss5w7t.mjs";import{IX as zJ,JX as zQ,MX as YJ,NX as YQ,VX as Mq,WX as GQ}from"./cli-1.0.5-ax3758yk.mjs";import{J0 as Oq,JY as Pq,c0 as y,e0 as Q}from"./cli-1.0.5-7b347m92.mjs";import{p3 as h,q3 as Y,r3 as Z,s3 as c}from"./cli-1.0.5-jcd8tadh.mjs";import{t3 as ZQ}from"./cli-1.0.5-t8qp4fth.mjs";import{E6 as ZJ,F6 as QQ,T5 as rq,q6 as cJ}from"./cli-1.0.5-rzs07ec3.mjs";import{A9 as $,B9 as tJ,Sca as QJ,W$ as qQ,ada as JQ,eca as gq,fca as dJ,ica as xq,qca as TJ,z$ as Iq}from"./cli-1.0.5-9m4a2113.mjs";import{aka as JJ,nka as sJ}from"./cli-1.0.5-1z04v9fp.mjs";import{Qpa as eJ,Zla as qJ}from"./cli-1.0.5-q8fmarwj.mjs";import{vra as Bq,zra as Uq}from"./cli-1.0.5-73mr16hn.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function gJ(){let J=tq(await sq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function xJ(J){if(!J)return null;let q=iq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function rJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await eq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function aJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=aq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function oq(J,q,V){let[G,K,X,B]=await Promise.all([gJ(),xJ(q),rJ(J,V,q),aJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var nq=Uq(()=>{oJ();iJ();nJ();cJ();dJ();lJ();Tq();$J();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);YJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:XJ,upperLimit:VJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-8")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudin","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await oq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),UJ()){let Lq=bq(BJ(),"claude","locks"),DJ=wJ(Lq),SJ=FJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
|
|
2
|
+
`)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
|
|
3
|
+
`)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",GJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=KJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?NJ:yJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();GQ();RQ();$q();WQ();hQ();YQ();Oq();zQ();yQ();KQ();NQ();nq();BQ();VQ();qQ();FQ();JQ();XQ();wQ();UQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
|
|
4
|
+
export{pZ as kg,cQ as lg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Tga as G,cha as K}from"./cli-1.0.5-pnn57nb8.mjs";import{vha as j,xha as M,yha as J,zha as N}from"./cli-1.0.5-3mmky5x7.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
|
|
2
|
+
export{q as Db,$ as Eb};
|