@claudiolabs/claudin 0.5.8 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.5.9-560de9d1.mjs +1 -0
- package/dist/chunks/App-0.5.9-zsap2q4b.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.9-8zgzn0jw.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.9-92f16280.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.9-708dpq05.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.9-thv5358f.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.9-h0dan6qh.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.9-35ajv7zw.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.9-2gfy103v.mjs +3 -0
- package/dist/chunks/Doctor-0.5.9-wjw0w0c1.mjs +1 -0
- package/dist/chunks/Grove-0.5.9-hty0xzar.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.9-pch1zyqn.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.9-xjp9bdct.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.9-t4wkfdrh.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.9-12p8z825.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.9-d02fdy7a.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.9-2h6pym7f.mjs +1 -0
- package/dist/chunks/REPL-0.5.9-fn63chv9.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.9-wdc0fys1.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.9-ty7tvdf3.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.9-th2cx2b2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.9-gqyef6wv.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.9-e4b9wj1z.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.9-xx7btmxb.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.9-7h9j8zft.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.9-y0bxcnzx.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.9-bqhnxdga.mjs +1 -0
- package/dist/chunks/add-dir-0.5.9-t52c4h9t.mjs +1 -0
- package/dist/chunks/agents-0.5.9-b270304w.mjs +110 -0
- package/dist/chunks/agents-0.5.9-h9dw36cp.mjs +3 -0
- package/dist/chunks/api-0.5.9-jnhtend7.mjs +1 -0
- package/dist/chunks/asciicast-0.5.9-hrjx2e4n.mjs +1 -0
- package/dist/chunks/assistant-0.5.9-ap4j82na.mjs +1 -0
- package/dist/chunks/auth-0.5.9-cna7nxzb.mjs +1 -0
- package/dist/chunks/auth-0.5.9-q8ejya3n.mjs +1 -0
- package/dist/chunks/autoMode-0.5.9-w9j324dc.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.9-3x3xcjhq.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.9-ngzjz5nf.mjs +1 -0
- package/dist/chunks/branch-0.5.9-4389y3jh.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.9-ph0vdzcm.mjs +1 -0
- package/dist/chunks/btw-0.5.9-kq7dda47.mjs +1 -0
- package/dist/chunks/buddy-0.5.9-3s5bz133.mjs +3 -0
- package/dist/chunks/cacache-0.5.9-k02nazjg.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.9-vdfe8hkq.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.9-89wd0xyf.mjs +4 -0
- package/dist/chunks/caches-0.5.9-kg4820wg.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.9-7pt2wjt1.mjs +1 -0
- package/dist/chunks/claudemd-0.5.9-bhqwq7vs.mjs +1 -0
- package/dist/chunks/clear-0.5.9-5mg9gs8a.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.9-esamq102.mjs +1 -0
- package/dist/chunks/cli-0.5.9-00ms6tt7.mjs +4 -0
- package/dist/chunks/cli-0.5.9-02vwh5bc.mjs +2 -0
- package/dist/chunks/cli-0.5.9-0a5jxqra.mjs +58 -0
- package/dist/chunks/cli-0.5.9-0b1wx67c.mjs +193 -0
- package/dist/chunks/cli-0.5.9-0becvd5f.mjs +2 -0
- package/dist/chunks/cli-0.5.9-0w46b370.mjs +3 -0
- package/dist/chunks/cli-0.5.9-10ar539r.mjs +2 -0
- package/dist/chunks/cli-0.5.9-12gj3v8y.mjs +12 -0
- package/dist/chunks/cli-0.5.9-1ktmgzhb.mjs +15 -0
- package/dist/chunks/cli-0.5.9-1qkhnqnk.mjs +4 -0
- package/dist/chunks/cli-0.5.9-1y9n9z2h.mjs +2 -0
- package/dist/chunks/cli-0.5.9-1zc8qwr4.mjs +2 -0
- package/dist/chunks/cli-0.5.9-248na0hf.mjs +2 -0
- package/dist/chunks/cli-0.5.9-2fcyavah.mjs +17 -0
- package/dist/chunks/cli-0.5.9-2jfbm2es.mjs +12 -0
- package/dist/chunks/cli-0.5.9-2txnqxd1.mjs +2 -0
- package/dist/chunks/cli-0.5.9-31f5vjyq.mjs +2 -0
- package/dist/chunks/cli-0.5.9-32fpvgpt.mjs +2 -0
- package/dist/chunks/cli-0.5.9-371mb3zf.mjs +4 -0
- package/dist/chunks/cli-0.5.9-3bsjckc3.mjs +2 -0
- package/dist/chunks/cli-0.5.9-3s1c44tz.mjs +2 -0
- package/dist/chunks/cli-0.5.9-41dpv5z9.mjs +2 -0
- package/dist/chunks/cli-0.5.9-42t3s85x.mjs +2 -0
- package/dist/chunks/cli-0.5.9-4aga12a5.mjs +2 -0
- package/dist/chunks/cli-0.5.9-4fdad25z.mjs +3 -0
- package/dist/chunks/cli-0.5.9-4m738pn1.mjs +25 -0
- package/dist/chunks/cli-0.5.9-4s8nynfd.mjs +2 -0
- package/dist/chunks/cli-0.5.9-4t8b91eb.mjs +4 -0
- package/dist/chunks/cli-0.5.9-4w9169na.mjs +3 -0
- package/dist/chunks/cli-0.5.9-5ah34c4c.mjs +39 -0
- package/dist/chunks/cli-0.5.9-5e3fhttm.mjs +2 -0
- package/dist/chunks/cli-0.5.9-5hzwn715.mjs +2 -0
- package/dist/chunks/cli-0.5.9-5s8vtyx6.mjs +4 -0
- package/dist/chunks/cli-0.5.9-5vdqnecb.mjs +4 -0
- package/dist/chunks/cli-0.5.9-5vj7cvdr.mjs +2 -0
- package/dist/chunks/cli-0.5.9-5ykvr12k.mjs +2 -0
- package/dist/chunks/cli-0.5.9-610r4gbg.mjs +2 -0
- package/dist/chunks/cli-0.5.9-637n1msd.mjs +15 -0
- package/dist/chunks/cli-0.5.9-671nz4d9.mjs +2 -0
- package/dist/chunks/cli-0.5.9-68rmtj23.mjs +2 -0
- package/dist/chunks/cli-0.5.9-6rrqt96f.mjs +2 -0
- package/dist/chunks/cli-0.5.9-72tax9cd.mjs +2 -0
- package/dist/chunks/cli-0.5.9-77nxjft3.mjs +2 -0
- package/dist/chunks/cli-0.5.9-7bq8wzr3.mjs +18 -0
- package/dist/chunks/cli-0.5.9-7hcka84h.mjs +2 -0
- package/dist/chunks/cli-0.5.9-7qcan18n.mjs +2 -0
- package/dist/chunks/cli-0.5.9-8h1qpeef.mjs +2 -0
- package/dist/chunks/cli-0.5.9-8kfemzbn.mjs +2 -0
- package/dist/chunks/cli-0.5.9-8ndgy03m.mjs +4 -0
- package/dist/chunks/cli-0.5.9-91gjew0x.mjs +3 -0
- package/dist/chunks/cli-0.5.9-9fgjryqc.mjs +2 -0
- package/dist/chunks/cli-0.5.9-9rrpczqk.mjs +17 -0
- package/dist/chunks/cli-0.5.9-a720c6hc.mjs +9 -0
- package/dist/chunks/cli-0.5.9-ajbjmz51.mjs +2 -0
- package/dist/chunks/cli-0.5.9-an1j3dqv.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ap6gvqkx.mjs +67 -0
- package/dist/chunks/cli-0.5.9-apc46v07.mjs +15 -0
- package/dist/chunks/cli-0.5.9-awa1dtdz.mjs +2 -0
- package/dist/chunks/cli-0.5.9-b4t4xfpb.mjs +2 -0
- package/dist/chunks/cli-0.5.9-b4xgpen1.mjs +5 -0
- package/dist/chunks/cli-0.5.9-bax4dxrj.mjs +2 -0
- package/dist/chunks/cli-0.5.9-bc0wvx5b.mjs +2 -0
- package/dist/chunks/cli-0.5.9-bfn7177j.mjs +2 -0
- package/dist/chunks/cli-0.5.9-bp09b2xm.mjs +2 -0
- package/dist/chunks/cli-0.5.9-bv3m0yb8.mjs +2 -0
- package/dist/chunks/cli-0.5.9-bwdsfdf6.mjs +2 -0
- package/dist/chunks/cli-0.5.9-c54d94sv.mjs +2 -0
- package/dist/chunks/cli-0.5.9-c91t0fys.mjs +2 -0
- package/dist/chunks/cli-0.5.9-cbgfqb0x.mjs +2 -0
- package/dist/chunks/cli-0.5.9-cy4sm0c2.mjs +2 -0
- package/dist/chunks/cli-0.5.9-d5rn9c6v.mjs +12 -0
- package/dist/chunks/cli-0.5.9-d66wktpd.mjs +2 -0
- package/dist/chunks/cli-0.5.9-d89n2ccx.mjs +2 -0
- package/dist/chunks/cli-0.5.9-da0mspn4.mjs +2 -0
- package/dist/chunks/cli-0.5.9-dszssq6z.mjs +2 -0
- package/dist/chunks/cli-0.5.9-dtbcqw2e.mjs +2 -0
- package/dist/chunks/cli-0.5.9-e1gk7v9y.mjs +2 -0
- package/dist/chunks/cli-0.5.9-e4sr85eg.mjs +2 -0
- package/dist/chunks/cli-0.5.9-e5ex267m.mjs +2 -0
- package/dist/chunks/cli-0.5.9-e7gc5p54.mjs +2 -0
- package/dist/chunks/cli-0.5.9-eagw660r.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ehe0yr95.mjs +26 -0
- package/dist/chunks/cli-0.5.9-ejmv1n9p.mjs +3 -0
- package/dist/chunks/cli-0.5.9-ek649arf.mjs +6 -0
- package/dist/chunks/cli-0.5.9-ezc11axw.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ezpjdejw.mjs +2 -0
- package/dist/chunks/cli-0.5.9-f9jt7awn.mjs +2 -0
- package/dist/chunks/cli-0.5.9-fn6ees65.mjs +2 -0
- package/dist/chunks/cli-0.5.9-fv4jrdef.mjs +2 -0
- package/dist/chunks/cli-0.5.9-g6qpvmj4.mjs +133 -0
- package/dist/chunks/cli-0.5.9-g9kt9aw7.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ga0kqnkz.mjs +5 -0
- package/dist/chunks/cli-0.5.9-gbq794tt.mjs +2 -0
- package/dist/chunks/cli-0.5.9-gcsba93g.mjs +18 -0
- package/dist/chunks/cli-0.5.9-ghbax09k.mjs +2 -0
- package/dist/chunks/cli-0.5.9-gk1vb8nn.mjs +2 -0
- package/dist/chunks/cli-0.5.9-gp0bq7wk.mjs +2 -0
- package/dist/chunks/cli-0.5.9-gr8zgxwx.mjs +2 -0
- package/dist/chunks/cli-0.5.9-grgf8g99.mjs +2 -0
- package/dist/chunks/cli-0.5.9-h5d0zxek.mjs +3 -0
- package/dist/chunks/cli-0.5.9-h6nmz5e3.mjs +2 -0
- package/dist/chunks/cli-0.5.9-h7gh7ym5.mjs +24 -0
- package/dist/chunks/cli-0.5.9-h836a3wa.mjs +2 -0
- package/dist/chunks/cli-0.5.9-hg2qm56h.mjs +4 -0
- package/dist/chunks/cli-0.5.9-hpq0xehd.mjs +2 -0
- package/dist/chunks/cli-0.5.9-hwet4kvx.mjs +2 -0
- package/dist/chunks/cli-0.5.9-j2d1jct8.mjs +2 -0
- package/dist/chunks/cli-0.5.9-j8629kcy.mjs +2 -0
- package/dist/chunks/cli-0.5.9-j9ns2awb.mjs +8 -0
- package/dist/chunks/cli-0.5.9-jd8be7cd.mjs +6 -0
- package/dist/chunks/cli-0.5.9-jdzavz2g.mjs +2 -0
- package/dist/chunks/cli-0.5.9-jjtdefqj.mjs +2 -0
- package/dist/chunks/cli-0.5.9-jk4rx6zt.mjs +4 -0
- package/dist/chunks/cli-0.5.9-jnhyr1zg.mjs +2 -0
- package/dist/chunks/cli-0.5.9-jsxqd90d.mjs +3 -0
- package/dist/chunks/cli-0.5.9-k3prcbg9.mjs +2 -0
- package/dist/chunks/cli-0.5.9-k47s77hf.mjs +2 -0
- package/dist/chunks/cli-0.5.9-k6qxbj0d.mjs +42 -0
- package/dist/chunks/cli-0.5.9-k9yedz53.mjs +5262 -0
- package/dist/chunks/cli-0.5.9-kfpgp09g.mjs +6 -0
- package/dist/chunks/cli-0.5.9-knc0w8sn.mjs +2 -0
- package/dist/chunks/cli-0.5.9-krvpcgvw.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ktxeg6my.mjs +2 -0
- package/dist/chunks/cli-0.5.9-m1y4hmzs.mjs +2 -0
- package/dist/chunks/cli-0.5.9-mcezkpp8.mjs +2 -0
- package/dist/chunks/cli-0.5.9-mhz9wt6a.mjs +2 -0
- package/dist/chunks/cli-0.5.9-mk69z06z.mjs +2 -0
- package/dist/chunks/cli-0.5.9-mmvtbr39.mjs +2 -0
- package/dist/chunks/cli-0.5.9-mpqmy7zw.mjs +2 -0
- package/dist/chunks/cli-0.5.9-n08gkgng.mjs +21 -0
- package/dist/chunks/cli-0.5.9-ncjg30aq.mjs +3 -0
- package/dist/chunks/cli-0.5.9-nct7sarc.mjs +2 -0
- package/dist/chunks/cli-0.5.9-nfhfsnw6.mjs +2 -0
- package/dist/chunks/cli-0.5.9-nk3pacrn.mjs +5 -0
- package/dist/chunks/cli-0.5.9-nvf5kfmq.mjs +9 -0
- package/dist/chunks/cli-0.5.9-ppr1420k.mjs +2 -0
- package/dist/chunks/cli-0.5.9-q3wvc7qb.mjs +2 -0
- package/dist/chunks/cli-0.5.9-q69vj08a.mjs +2 -0
- package/dist/chunks/cli-0.5.9-q7a4xcwy.mjs +3 -0
- package/dist/chunks/cli-0.5.9-q9ne4r9p.mjs +50 -0
- package/dist/chunks/cli-0.5.9-qddf6zq9.mjs +2 -0
- package/dist/chunks/cli-0.5.9-qexy3mqr.mjs +59 -0
- package/dist/chunks/cli-0.5.9-qvvxrm93.mjs +3 -0
- package/dist/chunks/cli-0.5.9-qy6qkzwb.mjs +2 -0
- package/dist/chunks/cli-0.5.9-r9d405kc.mjs +2 -0
- package/dist/chunks/cli-0.5.9-rbjjfytb.mjs +2 -0
- package/dist/chunks/cli-0.5.9-rh5280xq.mjs +2 -0
- package/dist/chunks/cli-0.5.9-rhycyvwn.mjs +2 -0
- package/dist/chunks/cli-0.5.9-rjdhjn49.mjs +20 -0
- package/dist/chunks/cli-0.5.9-rm62v7hr.mjs +34 -0
- package/dist/chunks/cli-0.5.9-rpgjj6qg.mjs +2 -0
- package/dist/chunks/cli-0.5.9-rv2328c4.mjs +2 -0
- package/dist/chunks/cli-0.5.9-s2jh3scf.mjs +3 -0
- package/dist/chunks/cli-0.5.9-sd34jmva.mjs +2 -0
- package/dist/chunks/cli-0.5.9-sjcz03eb.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ss870bda.mjs +2 -0
- package/dist/chunks/cli-0.5.9-syr6nffj.mjs +2 -0
- package/dist/chunks/cli-0.5.9-t2fy8t5r.mjs +45 -0
- package/dist/chunks/cli-0.5.9-tav5jmz1.mjs +2 -0
- package/dist/chunks/cli-0.5.9-tbz9s4h3.mjs +2 -0
- package/dist/chunks/cli-0.5.9-tj6dt3d6.mjs +2 -0
- package/dist/chunks/cli-0.5.9-tke5evvm.mjs +2 -0
- package/dist/chunks/cli-0.5.9-v1srrn02.mjs +2 -0
- package/dist/chunks/cli-0.5.9-v5mkedy5.mjs +16 -0
- package/dist/chunks/cli-0.5.9-v69cq6f1.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ve2b6kmp.mjs +2 -0
- package/dist/chunks/cli-0.5.9-vkt9t3z8.mjs +133 -0
- package/dist/chunks/cli-0.5.9-w1g3tgzh.mjs +2 -0
- package/dist/chunks/cli-0.5.9-wc5gt1zw.mjs +2 -0
- package/dist/chunks/cli-0.5.9-whf5zybr.mjs +2 -0
- package/dist/chunks/cli-0.5.9-wjvc994v.mjs +2 -0
- package/dist/chunks/cli-0.5.9-wkhmkyaq.mjs +2 -0
- package/dist/chunks/cli-0.5.9-wrndf987.mjs +2 -0
- package/dist/chunks/cli-0.5.9-xbvqph1k.mjs +2 -0
- package/dist/chunks/cli-0.5.9-xcexsk79.mjs +2 -0
- package/dist/chunks/cli-0.5.9-xge969yd.mjs +2 -0
- package/dist/chunks/cli-0.5.9-xn1qcye7.mjs +2 -0
- package/dist/chunks/cli-0.5.9-xn369es1.mjs +2 -0
- package/dist/chunks/cli-0.5.9-xz1pg47z.mjs +10 -0
- package/dist/chunks/cli-0.5.9-yazhwsgb.mjs +4 -0
- package/dist/chunks/cli-0.5.9-yh7f5m4w.mjs +2 -0
- package/dist/chunks/cli-0.5.9-yqn35x2d.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ysvsqcpa.mjs +2 -0
- package/dist/chunks/cli-0.5.9-ywc7arzn.mjs +2 -0
- package/dist/chunks/cli-0.5.9-z87j725g.mjs +2 -0
- package/dist/chunks/cli-0.5.9-zb26tq1c.mjs +2 -0
- package/dist/chunks/cli-0.5.9-zerpef2t.mjs +1 -0
- package/dist/chunks/cli-0.5.9-zeskcndd.mjs +24 -0
- package/dist/chunks/cli-0.5.9-zqgkcx3g.mjs +2 -0
- package/dist/chunks/cli-0.5.9-zrcz538q.mjs +2 -0
- package/dist/chunks/cli-0.5.9-zwpt90q9.mjs +7 -0
- package/dist/chunks/client-0.5.9-bhc7ghsr.mjs +1 -0
- package/dist/chunks/color-0.5.9-5722xdf4.mjs +1 -0
- package/dist/chunks/compact-0.5.9-4cf807hc.mjs +3 -0
- package/dist/chunks/config-0.5.9-936tss5g.mjs +1 -0
- package/dist/chunks/config-0.5.9-kk16cygb.mjs +1 -0
- package/dist/chunks/context-0.5.9-b0afgp2c.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.9-wj6fxcsj.mjs +1 -0
- package/dist/chunks/conversation-0.5.9-rtntf81h.mjs +1 -0
- package/dist/chunks/copy-0.5.9-93t8z0wz.mjs +9 -0
- package/dist/chunks/cost-0.5.9-2csvd1ae.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.9-0aqkvqad.mjs +1 -0
- package/dist/chunks/createSession-0.5.9-j9xdpffh.mjs +1 -0
- package/dist/chunks/debug-0.5.9-kd9n32y2.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.9-1f7mkn9m.mjs +1177 -0
- package/dist/chunks/desktop-0.5.9-ce65mt7y.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.9-4nd76hbs.mjs +1 -0
- package/dist/chunks/detection-0.5.9-mpgxg1d5.mjs +1 -0
- package/dist/chunks/diff-0.5.9-89ny0sp6.mjs +1 -0
- package/dist/chunks/doctor-0.5.9-e8bxsm2r.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.9-kwncc3yh.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.9-cxrgrx2e.mjs +1 -0
- package/dist/chunks/effort-0.5.9-dbgsjfep.mjs +10 -0
- package/dist/chunks/envUtils-0.5.9-59e9sq5q.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.9-5tjt9mkd.mjs +1 -0
- package/dist/chunks/environments-0.5.9-ebm4yp6e.mjs +1 -0
- package/dist/chunks/errors-0.5.9-xp1e5xqp.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.9-dxv2wpk4.mjs +1 -0
- package/dist/chunks/exit-0.5.9-q7cpk25k.mjs +1 -0
- package/dist/chunks/export-0.5.9-1dpbp185.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.9-ctd5dnsr.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.9-hbmbvzb5.mjs +1 -0
- package/dist/chunks/fast-0.5.9-wagaw91z.mjs +1 -0
- package/dist/chunks/feedback-0.5.9-x37szs13.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.9-g8st730b.mjs +1 -0
- package/dist/chunks/git-0.5.9-zxdvsyxq.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.9-mp51r114.mjs +1 -0
- package/dist/chunks/grove-0.5.9-grafpqtx.mjs +1 -0
- package/dist/chunks/growthbook-0.5.9-mr1nyz65.mjs +1 -0
- package/dist/chunks/headless-0.5.9-pxnbg1dh.mjs +2 -0
- package/dist/chunks/heapdump-0.5.9-58bmar8y.mjs +6 -0
- package/dist/chunks/help-0.5.9-x6ds3za0.mjs +1 -0
- package/dist/chunks/hookChains-0.5.9-1sz7vw7t.mjs +3 -0
- package/dist/chunks/hooks-0.5.9-4mjp8k78.mjs +1 -0
- package/dist/chunks/hooks-0.5.9-n14e2a57.mjs +79 -0
- package/dist/chunks/ide-0.5.9-gk5tarwc.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.9-eept9e9s.mjs +1 -0
- package/dist/chunks/index-0.5.9-0n7mpzrj.mjs +17 -0
- package/dist/chunks/index-0.5.9-3ng34e8n.mjs +2 -0
- package/dist/chunks/index-0.5.9-4b9dgj2z.mjs +9 -0
- package/dist/chunks/index-0.5.9-4fzd2pns.mjs +1 -0
- package/dist/chunks/index-0.5.9-6awv6fyn.mjs +1 -0
- package/dist/chunks/index-0.5.9-6cbrcdyh.mjs +1 -0
- package/dist/chunks/index-0.5.9-725p0eby.mjs +1 -0
- package/dist/chunks/index-0.5.9-85ep6547.mjs +30 -0
- package/dist/chunks/index-0.5.9-8h5ceajb.mjs +1 -0
- package/dist/chunks/index-0.5.9-8ws7n6wv.mjs +5 -0
- package/dist/chunks/index-0.5.9-b3jm65x4.mjs +1 -0
- package/dist/chunks/index-0.5.9-cjjbeyt8.mjs +1 -0
- package/dist/chunks/index-0.5.9-gnac3s48.mjs +1 -0
- package/dist/chunks/index-0.5.9-m68jcsx2.mjs +1 -0
- package/dist/chunks/index-0.5.9-n91crv8a.mjs +1 -0
- package/dist/chunks/index-0.5.9-npkfayxd.mjs +1 -0
- package/dist/chunks/index-0.5.9-pbzzad7t.mjs +9 -0
- package/dist/chunks/index-0.5.9-thp631gs.mjs +1 -0
- package/dist/chunks/index-0.5.9-xcy5t1fw.mjs +1 -0
- package/dist/chunks/index-0.5.9-y07jxja1.mjs +1 -0
- package/dist/chunks/index-0.5.9-yjkfcf2g.mjs +2 -0
- package/dist/chunks/index-0.5.9-zb346057.mjs +1 -0
- package/dist/chunks/init-0.5.9-cmszfh8j.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.9-y2j594wz.mjs +1 -0
- package/dist/chunks/ink-0.5.9-km3f0tv6.mjs +1 -0
- package/dist/chunks/insights-0.5.9-fevx72ve.mjs +870 -0
- package/dist/chunks/install-0.5.9-6m05dpsa.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.9-91syqpey.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.9-9rqmjej1.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.9-55dt6kkh.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.9-47bhz9at.mjs +1 -0
- package/dist/chunks/keybindings-0.5.9-y134m89v.mjs +2 -0
- package/dist/chunks/knowledge-0.5.9-d1m7e2b4.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.9-69z169gq.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.9-vtemqv8c.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.9-xxp0pj2x.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.9-zgq2s8sm.mjs +1 -0
- package/dist/chunks/log-0.5.9-8aszszjb.mjs +1 -0
- package/dist/chunks/main-0.5.9-cjg2h8yb.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.9-nq2mbery.mjs +1 -0
- package/dist/chunks/mcp-0.5.9-g39bj87f.mjs +17 -0
- package/dist/chunks/mcp-0.5.9-h1sdm6zb.mjs +4 -0
- package/dist/chunks/mcp-0.5.9-vpwsq0wd.mjs +1 -0
- package/dist/chunks/mcpb-0.5.9-pavmx8mm.mjs +1 -0
- package/dist/chunks/memory-0.5.9-se036fe4.mjs +3 -0
- package/dist/chunks/mobile-0.5.9-57ycqdp3.mjs +2 -0
- package/dist/chunks/model-0.5.9-4e6fc1m4.mjs +1 -0
- package/dist/chunks/model-0.5.9-k0m86zrn.mjs +2 -0
- package/dist/chunks/node-0.5.9-ftk6pxmx.mjs +12 -0
- package/dist/chunks/oauth-0.5.9-bytwte72.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.9-f9gdeama.mjs +14 -0
- package/dist/chunks/output-style-0.5.9-1wbqsbc0.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.5.9-4gkr65dy.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.9-d0t88r4n.mjs +1 -0
- package/dist/chunks/parser-0.5.9-j1kdtn15.mjs +1 -0
- package/dist/chunks/passes-0.5.9-w08t80rc.mjs +1 -0
- package/dist/chunks/permissions-0.5.9-mzx7w14f.mjs +3 -0
- package/dist/chunks/plan-0.5.9-trs5gepx.mjs +1 -0
- package/dist/chunks/plist-0.5.9-rzpv4ecn.mjs +1 -0
- package/dist/chunks/plugin-0.5.9-x1xsznkk.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.9-qwkp82xp.mjs +1 -0
- package/dist/chunks/plugins-0.5.9-8yj1w6bf.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.9-130eb4bx.mjs +2 -0
- package/dist/chunks/print-0.5.9-fm0q92d1.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.9-vhjhbccg.mjs +1 -0
- package/dist/chunks/process-0.5.9-syp1y7ym.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.9-admb0s9z.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.9-x5wmbzr0.mjs +9 -0
- package/dist/chunks/prompt-0.5.9-6s763n7m.mjs +1 -0
- package/dist/chunks/prompt-0.5.9-fg1exp0e.mjs +1 -0
- package/dist/chunks/prompts-0.5.9-a6jrpexy.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.9-5920qvb2.mjs +13 -0
- package/dist/chunks/provider-0.5.9-ew50s03j.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.9-ygv5pxbq.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.9-pebvjkk0.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.9-p39mhxr9.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.9-5576rw9k.mjs +34 -0
- package/dist/chunks/registry-0.5.9-tkmx5qgm.mjs +1 -0
- package/dist/chunks/release-notes-0.5.9-cmf1033z.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.9-ynqb4wwm.mjs +2 -0
- package/dist/chunks/remote-env-0.5.9-ddnwx90m.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.9-br32ecze.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.9-9ee3jy2n.mjs +1 -0
- package/dist/chunks/rename-0.5.9-h0npjxhv.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.9-4tjg5rct.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.9-y4zkk3hb.mjs +1 -0
- package/dist/chunks/resume-0.5.9-5n9z570h.mjs +2 -0
- package/dist/chunks/rewind-0.5.9-cawzh2f5.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.9-z7hher7x.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.9-m8dy3vak.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.9-d7hfb9dw.mjs +1 -0
- package/dist/chunks/session-0.5.9-spjfzb60.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.9-k8tw4apd.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.9-kzd77836.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.9-5eaxh9e1.mjs +1 -0
- package/dist/chunks/settings-0.5.9-9y9yx2ep.mjs +1 -0
- package/dist/chunks/setup-0.5.9-cbnsjaz6.mjs +5 -0
- package/dist/chunks/sinks-0.5.9-3kes56y2.mjs +1 -0
- package/dist/chunks/skills-0.5.9-816ec23f.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.9-j5rdws5r.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.9-wgd2amqq.mjs +1 -0
- package/dist/chunks/state-0.5.9-ssv90pdf.mjs +1 -0
- package/dist/chunks/stats-0.5.9-09jq1eez.mjs +6 -0
- package/dist/chunks/status-0.5.9-zm23czy4.mjs +1 -0
- package/dist/chunks/stickers-0.5.9-df1ha62e.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.9-4bh9v7rk.mjs +1 -0
- package/dist/chunks/tasks-0.5.9-75eaj64t.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.9-a239c7as.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.9-gpfpnhg1.mjs +1 -0
- package/dist/chunks/teleport-0.5.9-jq0cm2ce.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.9-zscy8b5b.mjs +1 -0
- package/dist/chunks/theme-0.5.9-crkb4a1t.mjs +1 -0
- package/dist/chunks/thinkback-0.5.9-bqzpccev.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.9-avsgpz11.mjs +1 -0
- package/dist/chunks/toolPool-0.5.9-9k94r61g.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.9-qm8rqvys.mjs +1 -0
- package/dist/chunks/tools-0.5.9-e5fa6xh1.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.9-dhpwn40g.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.9-bwat06c0.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.9-qfz8shw1.mjs +4 -0
- package/dist/chunks/update-0.5.9-yv6acwy6.mjs +86 -0
- package/dist/chunks/upgrade-0.5.9-3xpmapbj.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.9-ebc62ytm.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.9-ejbmjrv9.mjs +1 -0
- package/dist/chunks/usage-0.5.9-ze5694v0.mjs +1 -0
- package/dist/chunks/util-0.5.9-8517xr6w.mjs +1 -0
- package/dist/chunks/utils-0.5.9-tq5p3g26.mjs +1 -0
- package/dist/chunks/vim-0.5.9-3pwhv6s4.mjs +1 -0
- package/dist/chunks/watcher-0.5.9-ft2b96h8.mjs +1 -0
- package/dist/chunks/wiki-0.5.9-f96c34xg.mjs +132 -0
- package/dist/chunks/worktree-0.5.9-p28ne51h.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.9-4tgvrvd2.mjs +1 -0
- package/dist/chunks/wrapper-0.5.9-asjtntyw.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +24 -24
- package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +0 -1
- package/dist/chunks/App-0.5.8-s4939y9q.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +0 -3
- package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +0 -1
- package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +0 -1
- package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +0 -1
- package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +0 -1
- package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +0 -3
- package/dist/chunks/agents-0.5.8-qg1s69va.mjs +0 -110
- package/dist/chunks/api-0.5.8-pcde65dc.mjs +0 -1
- package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +0 -1
- package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +0 -1
- package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +0 -1
- package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +0 -1
- package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +0 -1
- package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +0 -1
- package/dist/chunks/btw-0.5.8-0yftty6m.mjs +0 -1
- package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +0 -3
- package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +0 -4
- package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +0 -1
- package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +0 -1
- package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +0 -1
- package/dist/chunks/cli-0.5.8-01yjahnz.mjs +0 -2
- package/dist/chunks/cli-0.5.8-07dyymev.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0bys4xae.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0hybhk72.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1heha1zs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +0 -2
- package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +0 -2
- package/dist/chunks/cli-0.5.8-221e7v67.mjs +0 -2
- package/dist/chunks/cli-0.5.8-23ep6z70.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2bq72da9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +0 -2
- package/dist/chunks/cli-0.5.8-396k3ymm.mjs +0 -25
- package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +0 -58
- package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +0 -2
- package/dist/chunks/cli-0.5.8-402vctdy.mjs +0 -2
- package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +0 -5286
- package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +0 -9
- package/dist/chunks/cli-0.5.8-4mn881k7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +0 -6
- package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +0 -8
- package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-510vqc09.mjs +0 -4
- package/dist/chunks/cli-0.5.8-57qan5v8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5h92528m.mjs +0 -4
- package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +0 -2
- package/dist/chunks/cli-0.5.8-60e57smp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-665mfjfq.mjs +0 -5
- package/dist/chunks/cli-0.5.8-69frkjjq.mjs +0 -2
- package/dist/chunks/cli-0.5.8-69swpyae.mjs +0 -2
- package/dist/chunks/cli-0.5.8-6epmns99.mjs +0 -2
- package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +0 -3
- package/dist/chunks/cli-0.5.8-6t480jt6.mjs +0 -2
- package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +0 -2
- package/dist/chunks/cli-0.5.8-78y711gq.mjs +0 -7
- package/dist/chunks/cli-0.5.8-7fm71y20.mjs +0 -2
- package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +0 -3
- package/dist/chunks/cli-0.5.8-7teqphwt.mjs +0 -2
- package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +0 -2
- package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8b40nd32.mjs +0 -3
- package/dist/chunks/cli-0.5.8-8c0hade9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +0 -24
- package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +0 -4
- package/dist/chunks/cli-0.5.8-903jgg2t.mjs +0 -2
- package/dist/chunks/cli-0.5.8-959n5v33.mjs +0 -44
- package/dist/chunks/cli-0.5.8-96p83b7z.mjs +0 -2
- package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +0 -2
- package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-a03sqccb.mjs +0 -2
- package/dist/chunks/cli-0.5.8-at01jfw3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +0 -67
- package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +0 -18
- package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +0 -12
- package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-cctz1t07.mjs +0 -2
- package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-chb0m9py.mjs +0 -17
- package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +0 -15
- package/dist/chunks/cli-0.5.8-cm551a1y.mjs +0 -2
- package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +0 -2
- package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +0 -2
- package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +0 -2
- package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +0 -2
- package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +0 -2
- package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +0 -39
- package/dist/chunks/cli-0.5.8-edf7e65a.mjs +0 -2
- package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +0 -133
- package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +0 -3
- package/dist/chunks/cli-0.5.8-et8r95zv.mjs +0 -15
- package/dist/chunks/cli-0.5.8-etf1n11s.mjs +0 -2
- package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +0 -3
- package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +0 -34
- package/dist/chunks/cli-0.5.8-f1znt77k.mjs +0 -2
- package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +0 -4
- package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +0 -2
- package/dist/chunks/cli-0.5.8-fhebd13f.mjs +0 -12
- package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +0 -18
- package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +0 -4
- package/dist/chunks/cli-0.5.8-gf6svxra.mjs +0 -27
- package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +0 -3
- package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +0 -2
- package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +0 -21
- package/dist/chunks/cli-0.5.8-haddssvq.mjs +0 -17
- package/dist/chunks/cli-0.5.8-he3sfaey.mjs +0 -2
- package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +0 -2
- package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +0 -2
- package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +0 -2
- package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +0 -6
- package/dist/chunks/cli-0.5.8-je6yq94p.mjs +0 -2
- package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +0 -10
- package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +0 -9
- package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +0 -2
- package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +0 -2
- package/dist/chunks/cli-0.5.8-m3186fr3.mjs +0 -5
- package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +0 -2
- package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +0 -4
- package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +0 -3
- package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +0 -4
- package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +0 -59
- package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p596xr80.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p72phgsn.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +0 -2
- package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +0 -133
- package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +0 -2
- package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +0 -2
- package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +0 -193
- package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +0 -3
- package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +0 -2
- package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-r88abafr.mjs +0 -15
- package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +0 -16
- package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +0 -4
- package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +0 -12
- package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +0 -3
- package/dist/chunks/cli-0.5.8-s7px34xg.mjs +0 -2
- package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +0 -2
- package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +0 -2
- package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +0 -24
- package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +0 -4
- package/dist/chunks/cli-0.5.8-v274erpp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +0 -2
- package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +0 -2
- package/dist/chunks/cli-0.5.8-vck50j66.mjs +0 -2
- package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +0 -45
- package/dist/chunks/cli-0.5.8-w36atn94.mjs +0 -2
- package/dist/chunks/cli-0.5.8-w75qbypx.mjs +0 -2
- package/dist/chunks/cli-0.5.8-w7g735pf.mjs +0 -2
- package/dist/chunks/cli-0.5.8-was67jgw.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +0 -50
- package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +0 -3
- package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wtz636rz.mjs +0 -20
- package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +0 -6
- package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +0 -2
- package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +0 -2
- package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +0 -3
- package/dist/chunks/cli-0.5.8-z447z8t0.mjs +0 -2
- package/dist/chunks/cli-0.5.8-zervw1k3.mjs +0 -5
- package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +0 -1
- package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +0 -2
- package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-zy590bkh.mjs +0 -2
- package/dist/chunks/client-0.5.8-9axd4w58.mjs +0 -1
- package/dist/chunks/color-0.5.8-resv1z9m.mjs +0 -1
- package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +0 -3
- package/dist/chunks/config-0.5.8-1j4xyj57.mjs +0 -1
- package/dist/chunks/config-0.5.8-ettscama.mjs +0 -1
- package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +0 -1
- package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +0 -1
- package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +0 -9
- package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +0 -1
- package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +0 -1
- package/dist/chunks/debug-0.5.8-c84dbamw.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +0 -1177
- package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +0 -1
- package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +0 -1
- package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +0 -1
- package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +0 -1
- package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +0 -10
- package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +0 -1
- package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +0 -1
- package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +0 -1
- package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +0 -1
- package/dist/chunks/export-0.5.8-a8fg7991.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +0 -1
- package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +0 -1
- package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +0 -1
- package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +0 -1
- package/dist/chunks/grove-0.5.8-rewcpbks.mjs +0 -1
- package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +0 -1
- package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +0 -2
- package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +0 -6
- package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +0 -1
- package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +0 -3
- package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +0 -1
- package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +0 -79
- package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +0 -1
- package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +0 -9
- package/dist/chunks/index-0.5.8-26yrjbk0.mjs +0 -1
- package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +0 -1
- package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +0 -1
- package/dist/chunks/index-0.5.8-b4p3af9y.mjs +0 -1
- package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +0 -2
- package/dist/chunks/index-0.5.8-bk6ejev9.mjs +0 -1
- package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +0 -9
- package/dist/chunks/index-0.5.8-egkksjaj.mjs +0 -1
- package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +0 -1
- package/dist/chunks/index-0.5.8-jf20nzsg.mjs +0 -1
- package/dist/chunks/index-0.5.8-m6exk6z6.mjs +0 -30
- package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +0 -5
- package/dist/chunks/index-0.5.8-nt058ay0.mjs +0 -1
- package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +0 -10
- package/dist/chunks/index-0.5.8-rdk757cq.mjs +0 -1
- package/dist/chunks/index-0.5.8-red1reev.mjs +0 -1
- package/dist/chunks/index-0.5.8-rehfpmcw.mjs +0 -1
- package/dist/chunks/index-0.5.8-s3k17n65.mjs +0 -1
- package/dist/chunks/index-0.5.8-xpaaycp7.mjs +0 -1
- package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +0 -2
- package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +0 -1
- package/dist/chunks/init-0.5.8-kmfn7vay.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +0 -1
- package/dist/chunks/ink-0.5.8-y01565nf.mjs +0 -1
- package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +0 -870
- package/dist/chunks/install-0.5.8-se0j5qte.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +0 -1
- package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +0 -2
- package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +0 -1
- package/dist/chunks/log-0.5.8-78h0x7qg.mjs +0 -1
- package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +0 -1
- package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +0 -1
- package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +0 -4
- package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +0 -17
- package/dist/chunks/mcp-0.5.8-md6hzter.mjs +0 -1
- package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +0 -1
- package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +0 -3
- package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +0 -2
- package/dist/chunks/model-0.5.8-aqzt03nd.mjs +0 -1
- package/dist/chunks/model-0.5.8-nmcrv393.mjs +0 -2
- package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +0 -14
- package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +0 -1
- package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +0 -1
- package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +0 -1
- package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +0 -1
- package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +0 -3
- package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +0 -1
- package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +0 -1
- package/dist/chunks/plugin-0.5.8-meszp93t.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +0 -1
- package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +0 -9
- package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +0 -2
- package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +0 -1
- package/dist/chunks/process-0.5.8-1yf78q4y.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +0 -9
- package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +0 -1
- package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +0 -1
- package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +0 -13
- package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +0 -1
- package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +0 -34
- package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +0 -1
- package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +0 -2
- package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +0 -1
- package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +0 -1
- package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +0 -1
- package/dist/chunks/resume-0.5.8-373epwyd.mjs +0 -2
- package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +0 -1
- package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +0 -1
- package/dist/chunks/session-0.5.8-rxft524k.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +0 -1
- package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +0 -1
- package/dist/chunks/setup-0.5.8-769vnffz.mjs +0 -5
- package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +0 -1
- package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +0 -1
- package/dist/chunks/state-0.5.8-cppqmrbf.mjs +0 -1
- package/dist/chunks/stats-0.5.8-zcfm59db.mjs +0 -6
- package/dist/chunks/status-0.5.8-5v4y485z.mjs +0 -1
- package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +0 -1
- package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +0 -1
- package/dist/chunks/teleport-0.5.8-650m4rks.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +0 -1
- package/dist/chunks/theme-0.5.8-7a06760x.mjs +0 -1
- package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +0 -1
- package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +0 -1
- package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +0 -4
- package/dist/chunks/update-0.5.8-a285y5j4.mjs +0 -86
- package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +0 -1
- package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +0 -1
- package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +0 -1
- package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +0 -1
- package/dist/chunks/vim-0.5.8-pgsav8je.mjs +0 -1
- package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +0 -1
- package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +0 -132
- package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +0 -1
- package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +0 -7
- /package/dist/chunks/{cli-0.5.8-j77twbsq.mjs → cli-0.5.9-4yxntpxv.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.8-kegk7gdp.mjs → cli-0.5.9-x9tg4bxs.mjs} +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
+
- a short flag is a single dash and a single character
|
|
3
|
+
- either use a single dash and a single character (for a short flag)
|
|
4
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
+
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
+
- too many long flags`);throw Error(`${_}
|
|
7
|
+
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
+
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
+
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
+
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
+
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
+
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
+
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
+
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
+
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
+
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
+
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
+
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
+
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
+
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
+
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
+
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
+
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
+
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as _,S as $,E as aa};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{I as G0}from"./cli-0.5.9-bfn7177j.mjs";import{ea as p0}from"./cli-0.5.9-4w9169na.mjs";import{fa as k0}from"./cli-0.5.9-nct7sarc.mjs";import{Bb as E0}from"./cli-0.5.9-8h1qpeef.mjs";import{ac as n0,bc as x0}from"./cli-0.5.9-hpq0xehd.mjs";import{$c as P0,bd as Fc}from"./cli-0.5.9-68rmtj23.mjs";import{ed as N,fd as uc}from"./cli-0.5.9-dszssq6z.mjs";import{hd as Q0,id as hc}from"./cli-0.5.9-248na0hf.mjs";import{At as X,BD as Y,CD as M0,DD as Z0,ED as Mc,Et as l0,SI as _0,WP as O0,aJ as j0,cm as p,dm as K0,eQ as b0,em as f0,fO as d,fm as N0,gQ as B0,gm as i0,hO as W0,hm as d0,jO as Ic,jQ as ac,kE as y0,km as W,lE as _c,lm as j,mQ as D0,oJ as u0,oQ as Tc,pC as Y0,qJ as r0,sD as m0,tC as lc,tD as g0,uD as r,wD as A0}from"./cli-0.5.9-k9yedz53.mjs";import{DW as oc,JX as x,LV as G,cX as c0,eX as y,iX as g,zW as X0}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as e,mZ as m,nZ as U,oZ as C}from"./cli-0.5.9-krvpcgvw.mjs";import{K0 as J0,L0 as nc,c0 as H0,g0 as mc}from"./cli-0.5.9-v5mkedy5.mjs";import{B$ as w0,D$ as U0,H$ as k,Raa as I0,Xba as z0,_ba as ic,oaa as V0,u$ as V,uaa as s,xaa as t,y$ as J,zaa as q0}from"./cli-0.5.9-0b1wx67c.mjs";import{Uca as R,Zca as cc}from"./cli-0.5.9-5vdqnecb.mjs";import{Jda as C0,Rda as L0,Xda as fc}from"./cli-0.5.9-7hcka84h.mjs";import{Oea as q,Qea as E}from"./cli-0.5.9-4s8nynfd.mjs";import{Tfa as $0}from"./cli-0.5.9-ek649arf.mjs";import{Cga as R0,Fga as e0,vga as K}from"./cli-0.5.9-eagw660r.mjs";import{Sia as a0,Vka as T0,ama as v0}from"./cli-0.5.9-3bsjckc3.mjs";import{Hna as D,Mna as L}from"./cli-0.5.9-ysvsqcpa.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-0.5.9-km3f0tv6.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-0.5.9-12p8z825.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-0.5.9-d02fdy7a.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-0.5.9-y0bxcnzx.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-0.5.9-h0dan6qh.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-0.5.9-hty0xzar.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-0.5.9-8zgzn0jw.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-0.5.9-thv5358f.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-0.5.9-708dpq05.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
+
`;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
|
|
3
|
+
export{Cc as A,Lc as B,Gf as C,wc as D,z as E,Ef as F,kf as G,pf as H};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Wfa as ZX,Zfa as y8}from"./cli-0.5.9-wkhmkyaq.mjs";import{jga as r,pga as R8}from"./cli-0.5.9-yazhwsgb.mjs";import{Fga as j8,sga as $X,vga as NJ}from"./cli-0.5.9-eagw660r.mjs";import{$ga as oJ,Cha as O,Dha as GJ,Gga as dQ,Hga as P6,Mga as qJ,Nga as oX,Qga as eJ,Rga as fX,Sga as fQ,Tga as T6,Uga as $Q,Vga as cX,Yga as JQ,Zga as pX,_ga as g,aha as n,ama as sQ,bha as LQ,eha as pQ,fha as v6,iha as l,jha as wQ,jia as XX,kha as w,lha as kQ,oha as yJ,pha as OX,qha as h,rha as vJ,sha as tJ,tha as hX,uha as hJ,vha as wX,wha as y,xha as OJ,yha as gQ,zha as m6}from"./cli-0.5.9-3bsjckc3.mjs";import{Ama as xJ,bma as SJ,cma as CX,hma as cJ,ima as TX,jma as HJ,kma as J6,nma as L,oma as XJ,tma as LJ,uma as zX,zma as V}from"./cli-0.5.9-dtbcqw2e.mjs";import{Kna as uJ,Lna as U,Nna as N,Ona as W}from"./cli-0.5.9-ysvsqcpa.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 Rea,BJ as Sea,IJ as Tea,r8 as Uea,CJ as Vea,e as Wea,_J as Xea,m as Yea,JJ as Zea,j as _ea,QJ as $ea,R as afa,k as bfa,_ as cfa,d as dfa,$J as efa,lJ as ffa,iJ as gfa,rJ as hfa,b as ifa,ZJ as jfa,ZQ as kfa,YQ as lfa,BQ as mfa,IQ as nfa,RQ as ofa,AQ as pfa,nQ as qfa,lQ as rfa,E as sfa,KJ as tfa,I8 as ufa,C8 as vfa,F8 as wfa,V8 as xfa,UJ as yfa,JX as zfa,H1 as Afa,G1 as Bfa,s as Cfa,K1 as Dfa,U1 as Efa,N1 as Ffa,QX as Gfa,g8 as Hfa,T as Ifa,L1 as Jfa,b8 as Kfa,GX as Lfa,KX as Mfa,_1 as Nfa,S1 as Ofa,O1 as Pfa,D8 as Qfa,UX as Rfa,w1 as Sfa,aQ as Tfa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{km as g,lm as k,uD as h,wD as I}from"./cli-0.5.9-k9yedz53.mjs";import{JX as _,LV as S,eX as s}from"./cli-0.5.9-qexy3mqr.mjs";import{mZ as c,nZ as m,oZ as T}from"./cli-0.5.9-krvpcgvw.mjs";import{Raa as P,uaa as b}from"./cli-0.5.9-0b1wx67c.mjs";import{Hna as D}from"./cli-0.5.9-ysvsqcpa.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
+
export{E as ca};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{af as bG,bf as iG,hf as nG}from"./cli-0.5.9-1qkhnqnk.mjs";import{$I as o,$J as cG,AJ as s,BJ as sG,Bt as l,Ct as jG,Dt as HG,Et as mG,Fl as vG,JI as LG,KI as WG,MI as lG,Mp as uG,OI as qG,PI as DG,UI as a,YI as kG,YJ as $G,_I as R,aJ as aG,cJ as _G,dK as f,eK as c,fK as r,gK as v,hJ as UG,hK as i,jq as dG,kK as u,oK as rG,qJ as oG,ql as FG,rl as OG,vl as VG,yC as KG,zC as pG}from"./cli-0.5.9-k9yedz53.mjs";import{LV as QJ}from"./cli-0.5.9-qexy3mqr.mjs";import{mZ as wG,oZ as PG}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as BG}from"./cli-0.5.9-bp09b2xm.mjs";import{oca as I,pca as k,sca as fG,t_ as YG,y_ as gG}from"./cli-0.5.9-0b1wx67c.mjs";import{Xda as TG}from"./cli-0.5.9-7hcka84h.mjs";import{Oea as w,Qea as MG}from"./cli-0.5.9-4s8nynfd.mjs";import{Qfa as zG,Tfa as CG,yfa as NG}from"./cli-0.5.9-ek649arf.mjs";import{iga as x,pga as SG}from"./cli-0.5.9-yazhwsgb.mjs";import{ama as ZG,jia as XG}from"./cli-0.5.9-3bsjckc3.mjs";import{Hna as n,Lna as p}from"./cli-0.5.9-ysvsqcpa.mjs";var GG=p(()=>{NG();TG()});function JG(F){let B="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${B}`}function QG(F,B){if(B.length===0)return;F((D)=>{let h=new Set(D.plugins.errors.map((H)=>JG(H))),P=B.filter((H)=>!h.has(JG(H)));if(P.length===0)return D;return{...D,plugins:{...D.plugins,errors:[...D.plugins.errors,...P]}}})}function EG(F,B=!1){let D=HG(),h=l((G)=>G.authVersion),P=l((G)=>G.mcp.pluginReconnectKey),H=jG(),K=q.useRef(new Map),N=q.useRef(new Set),S=q.useRef(null);q.useEffect(()=>{},[H]);let{addNotification:T}=KG(),RG=16,d=q.useRef([]),y=q.useRef(null),C=q.useCallback(()=>{y.current=null;let G=d.current;if(G.length===0)return;d.current=[],H((Y)=>{let z=Y.mcp;for(let L of G){let{tools:Q,commands:O,resources:W,...J}=L,V=J.type==="disabled"||J.type==="failed"?Q??[]:Q,X=J.type==="disabled"||J.type==="failed"?O??[]:O,Z=J.type==="disabled"||J.type==="failed"?W??[]:W,j=YG(J.name),g=z.clients.findIndex((E)=>E.name===J.name)===-1?[...z.clients,J]:z.clients.map((E)=>E.name===J.name?J:E),b=V===void 0?z.tools:[...s(z.tools,(E)=>E.name?.startsWith(j)),...V],m=X===void 0?z.commands:[...s(z.commands,(E)=>_G(E,J.name)),...X],hG=Z===void 0?z.resources:{...z.resources,...Z.length>0?{[J.name]:Z}:bG(z.resources,J.name)};z={...z,clients:g,tools:b,commands:m,resources:hG}}return{...Y,mcp:z}})},[H]),_=q.useCallback((G)=>{if(d.current.push(G),y.current===null)y.current=setTimeout(C,RG)},[C]),U=q.useCallback(({client:G,tools:Y,commands:z,resources:L})=>{switch(_({...G,tools:Y,commands:z,resources:L}),G.type){case"connected":{if($G(G.client,G.name,H),G.client.onclose=()=>{let Q=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{zG(`Failed to invalidate the server cache: ${G.name}`)}),R(G.name)){k(G.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let O=JJ(Q);k(G.name,`${O} transport closed/disconnected, attempting automatic reconnection`);let W=K.current.get(G.name);if(W)clearTimeout(W),K.current.delete(G.name);(async()=>{for(let V=1;V<=A;V++){if(R(G.name)){k(G.name,"Server disabled during reconnection, stopping retry"),K.current.delete(G.name);return}_({...G,type:"pending",reconnectAttempt:V,maxReconnectAttempts:A});let X=Date.now();try{let j=await v(G.name,G.config),$=Date.now()-X;if(j.client.type==="connected"){k(G.name,`${O} reconnection successful after ${$}ms (attempt ${V})`),K.current.delete(G.name),U(j);return}if(k(G.name,`${O} reconnection attempt ${V} completed with status: ${j.client.type}`),V===A){k(G.name,`Max reconnection attempts (${A}) reached, giving up`),K.current.delete(G.name),U(j);return}}catch(j){let $=Date.now()-X;if(I(G.name,`${O} reconnection attempt ${V} failed after ${$}ms: ${j}`),V===A){k(G.name,`Max reconnection attempts (${A}) reached, giving up`),K.current.delete(G.name),_({...G,type:"failed"});return}}let Z=Math.min(eG*Math.pow(2,V-1),GJ);k(G.name,`Scheduling reconnection attempt ${V+1} in ${Z}ms`),await new Promise((j)=>{let $=setTimeout(j,Z);K.current.set(G.name,$)})}})()}else _({...G,type:"failed"})},!1)switch(Q.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{k(G.name,"Received tools/list_changed notification, refreshing tools");try{let Q=f.cache.get(G.name);f.cache.delete(G.name);let O=await f(G),W=O.length;if(Q)Q.then((J)=>{w("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:W})},()=>{w("tengu_mcp_list_changed",{type:"tools",newCount:W})});else w("tengu_mcp_list_changed",{type:"tools",newCount:W});_({...G,tools:O})}catch(Q){I(G.name,`Failed to refresh tools after list_changed notification: ${x(Q)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{k(G.name,"Received prompts/list_changed notification, refreshing prompts"),w("tengu_mcp_list_changed",{type:"prompts"});try{r.cache.delete(G.name);let[Q,O]=await Promise.all([r(G),Promise.resolve([])]);_({...G,commands:[...Q,...O]}),tG?.()}catch(Q){I(G.name,`Failed to refresh prompts after list_changed notification: ${x(Q)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{k(G.name,"Received resources/list_changed notification, refreshing resources"),w("tengu_mcp_list_changed",{type:"resources"});try{c.cache.delete(G.name);{let Q=await c(G);_({...G,resources:Q})}}catch(Q){I(G.name,`Failed to refresh resources after list_changed notification: ${x(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[_]),e=XG();q.useEffect(()=>{async function G(){let{servers:Y,errors:z}=B?{servers:{},errors:[]}:await a(F),L={...Y,...F};QG(H,z),H((Q)=>{let{stale:O,...W}=UG(Q.mcp,L);for(let X of O){let Z=K.current.get(X.name);if(Z)clearTimeout(Z),K.current.delete(X.name);if(X.type==="connected")X.client.onclose=void 0,u(X.name,X.config).catch(()=>{})}let J=new Set(W.clients.map((X)=>X.name)),V=Object.entries(L).filter(([X])=>!J.has(X)).map(([X,Z])=>({name:X,type:R(X)?"disabled":"pending",config:Z}));if(V.length===0&&O.length===0)return Q;return{...Q,mcp:{...Q.mcp,...W,clients:[...W.clients,...V]}}})}G().catch((Y)=>{I("useManageMCPConnections",`Failed to initialize servers as pending: ${x(Y)}`)})},[B,F,H,e,P]),q.useEffect(()=>{let G=!1;async function Y(){let z;if(B||kG())z=Promise.resolve({});else WG(),z=LG();let{servers:L,errors:Q}=B?{servers:{},errors:[]}:await a(F,z);if(G)return;QG(H,Q);let O={...L,...F},W=Object.fromEntries(Object.entries(O).filter(([Z])=>!R(Z)));i(U,W).catch((Z)=>{I("useManageMcpConnections",`Failed to get MCP resources: ${x(Z)}`)});let J={};if(!B){if(J=DG(await z).allowed,G)return;if(Object.keys(J).length>0){let{servers:Z}=qG(J,O);J=Z}if(Object.keys(J).length>0){H((j)=>{let $=new Set(j.mcp.clients.map((b)=>b.name)),g=Object.entries(J).filter(([b])=>!$.has(b)).map(([b,m])=>({name:b,type:R(b)?"disabled":"pending",config:m}));if(g.length===0)return j;return{...j,mcp:{...j.mcp,clients:[...j.mcp.clients,...g]}}});let Z=Object.fromEntries(Object.entries(J).filter(([j])=>!R(j)));i(U,Z).catch((j)=>{I("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${x(j)}`)})}}let V={...O,...J},X={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(V))if(Z.scope==="enterprise")X.enterprise++;else if(Z.scope==="user")X.global++;else if(Z.scope==="project")X.project++;else if(Z.scope==="local")X.user++;else if(Z.scope==="dynamic")X.plugin++;else if(Z.scope==="claudeai")X.claudeai++;w("tengu_mcp_servers",{...X})}return Y(),()=>{G=!0}},[B,F,U,H,h,e,P]),q.useEffect(()=>{let G=K.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),y.current!==null)clearTimeout(y.current),y.current=null,C()}},[C]);let yG=q.useCallback(async(G)=>{let Y=D.getState().mcp.clients.find((Q)=>Q.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let z=K.current.get(G);if(z)clearTimeout(z),K.current.delete(G);let L=await v(G,Y.config);return U(L),L},[D,U]),AG=q.useCallback(async(G)=>{let Y=D.getState().mcp.clients.find((L)=>L.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let L=K.current.get(G);if(L)clearTimeout(L),K.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);_({name:G,type:"disabled",config:Y.config})}else{o(G,!0),_({name:G,type:"pending",config:Y.config});let L=await v(G,Y.config);U(L)}},[D,_,U]);return{reconnectMcpServer:yG,toggleMcpServer:AG}}function JJ(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var q,tG=null,A=5,eG=1000,GJ=30000;var IG=p(()=>{ZG();rG();vG();iG();sG();MG();aG();CG();ZG();pG();mG();SG();fG();dG();nG();GG();lG();cG();gG();oG();uG();q=n(BG(),1)});function aJ(){let F=M.useContext(t);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function oJ(){let F=M.useContext(t);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function sJ(F){let B=xG.c(6),{children:D,dynamicMcpConfig:h,isStrictMcpConfig:P}=F,{reconnectMcpServer:H,toggleMcpServer:K}=EG(h,P),N;if(B[0]!==H||B[1]!==K)N={reconnectMcpServer:H,toggleMcpServer:K},B[0]=H,B[1]=K,B[2]=N;else N=B[2];let S=N,T;if(B[3]!==D||B[4]!==S)T=wG(t.Provider,{value:S,children:D}),B[3]=D,B[4]=S,B[5]=T;else T=B[5];return T}var xG,M,t;var XJ=p(()=>{IG();PG();xG=n(QJ(),1),M=n(BG(),1),t=M.createContext(null)});
|
|
2
|
+
export{GG as Xe,aJ as Ye,oJ as Ze,sJ as _e,XJ as $e};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{JX as f,LV as s,eX as t}from"./cli-0.5.9-qexy3mqr.mjs";import{mZ as n,nZ as c,oZ as r}from"./cli-0.5.9-krvpcgvw.mjs";import{Hna as m,Lna as l}from"./cli-0.5.9-ysvsqcpa.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
|
|
2
|
+
export{T as pg,p as qg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Raa as L,kca as B,sca as N,xaa as A}from"./cli-0.5.9-0b1wx67c.mjs";import{Qfa as z,Tfa as K}from"./cli-0.5.9-ek649arf.mjs";import{Kna as I,Lna as J}from"./cli-0.5.9-ysvsqcpa.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
|
|
2
|
+
export{P as uR,Q as vR,R as wR,H as xR,U as yR,V as zR,W as AR};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$e as VP,Ye as N0,Ze as U0}from"./cli-0.5.9-ezpjdejw.mjs";import{Bt as J0,Ct as QP,Et as j0,NJ as ZP,OJ as m0,QJ as qP,TI as WP,VJ as CP,aJ as cP,bJ as fP,cm as h,dJ as M0,dm as c0,eJ as h0,em as p,fF as G0,fJ as T0,fm as w0,gF as YP,gJ as d0,gm as r,hm as W0,jJ as R0,kD as XP,kK as C0,km as O0,lD as mP,lm as EP,oK as pP,qJ as u0,uD as L0,wD as i0}from"./cli-0.5.9-k9yedz53.mjs";import{fU as D0,gU as LP}from"./cli-0.5.9-xn369es1.mjs";import{TU as JP,UU as hP,fV as z0,hV as TP}from"./cli-0.5.9-qy6qkzwb.mjs";import{FV as PP,JX as q0,KV as AP,LV as I0,UV as k0,aX as C,cX as X,eX as L,iX as F0,yX as GP}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as n,mZ as J,nZ as Q,oZ as a}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as $0}from"./cli-0.5.9-bp09b2xm.mjs";import{MZ as A0,NZ as dP}from"./cli-0.5.9-w1g3tgzh.mjs";import{B3 as e0,T3 as gP}from"./cli-0.5.9-v5mkedy5.mjs";import{O_ as H0,P_ as zP,X_ as p0,k6 as _,l6 as r0,pca as s0,sca as SP,w_ as y0,x_ as B0,y_ as KP}from"./cli-0.5.9-0b1wx67c.mjs";import{Mea as g0,Nea as _P}from"./cli-0.5.9-tav5jmz1.mjs";import{Oea as m,Qea as IP}from"./cli-0.5.9-4s8nynfd.mjs";import{iga as f0,pga as t0}from"./cli-0.5.9-yazhwsgb.mjs";import{Hna as e,Lna as P0}from"./cli-0.5.9-ysvsqcpa.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
|
|
2
|
+
export{bG as Pe,$P as Qe,uG as Re,jP as Se,tG as Te,uP as Ue,VJ as Ve,aP as We};
|