@claudiolabs/claudin 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.25-wemjscyz.mjs +1 -0
- package/dist/chunks/App-1.1.25-k5h3kma3.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.25-z8vqxm93.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.25-qmr6qf3r.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.25-78m4mvsv.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.25-htk8qebw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.25-8evt7epy.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.25-3nbcvm6d.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.25-7n5581yw.mjs +6 -0
- package/dist/chunks/Doctor-1.1.25-zvcm13vd.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.25-jazr0v5h.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.25-tb139x32.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.25-h27j1v12.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.25-7gxkqb1q.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.25-21kzry6a.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.25-z4ps8td0.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.25-dekvcwna.mjs +1 -0
- package/dist/chunks/REPL-1.1.25-x77jymbq.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.25-z1n7c0cp.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.25-ye8czpf8.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.25-qy9dcwtf.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.25-se513tcw.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.25-shafx13k.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.25-q9jqjghn.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.25-c9b16qp6.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.25-4x0h3a7n.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.25-9z82gazg.mjs +1 -0
- package/dist/chunks/add-dir-1.1.25-3eark7aj.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.25-88qbcwen.mjs +1 -0
- package/dist/chunks/agents-1.1.25-58s95cy7.mjs +110 -0
- package/dist/chunks/agents-1.1.25-rprb9rf9.mjs +3 -0
- package/dist/chunks/api-1.1.25-ceedtxx2.mjs +1 -0
- package/dist/chunks/asciicast-1.1.25-dtyww79s.mjs +1 -0
- package/dist/chunks/assistant-1.1.25-12s5z3q2.mjs +1 -0
- package/dist/chunks/auth-1.1.25-cd9y34xe.mjs +1 -0
- package/dist/chunks/auth-1.1.25-gphkwwnp.mjs +1 -0
- package/dist/chunks/autoMode-1.1.25-zdd4g2rn.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.25-17zj185q.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.25-tb3pf0cw.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.25-mtctkars.mjs +1 -0
- package/dist/chunks/branch-1.1.25-ytfahhwq.mjs +4 -0
- package/dist/chunks/bridge-1.1.25-kkjx4g4j.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.25-9h63taqc.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.25-yq7hv80q.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.25-rmcdgp77.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.25-x3jjj2ek.mjs +1 -0
- package/dist/chunks/btw-1.1.25-xdh8rhdz.mjs +1 -0
- package/dist/chunks/buddy-1.1.25-aj90p6ww.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.25-4wztx76s.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.25-9bd12my6.mjs +4 -0
- package/dist/chunks/caches-1.1.25-2ewrwm5x.mjs +1 -0
- package/dist/chunks/cd-1.1.25-9yhaw8rp.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.25-bw8arps4.mjs +1 -0
- package/dist/chunks/claudemd-1.1.25-f621m88g.mjs +1 -0
- package/dist/chunks/clear-1.1.25-jk3ztva0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.25-7jtejen6.mjs +1 -0
- package/dist/chunks/cli-1.1.25-0m4pyzaf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-0q6rqkec.mjs +58 -0
- package/dist/chunks/cli-1.1.25-12b1rzfj.mjs +2 -0
- package/dist/chunks/cli-1.1.25-14jerc0x.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1c4t0f2p.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1c633j9v.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1gz0w81n.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1hx796kk.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1s7ketx0.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1sf51thg.mjs +3 -0
- package/dist/chunks/cli-1.1.25-221zdn3h.mjs +4 -0
- package/dist/chunks/cli-1.1.25-24f6az0s.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2gjxmbsj.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2gtabky3.mjs +60 -0
- package/dist/chunks/cli-1.1.25-2wd0qj2d.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2we0778z.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2zepg15b.mjs +2 -0
- package/dist/chunks/cli-1.1.25-32br2csx.mjs +2 -0
- package/dist/chunks/cli-1.1.25-32qfxqyg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-348yqf3d.mjs +2 -0
- package/dist/chunks/cli-1.1.25-37rs38eq.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3dd0c7xd.mjs +4 -0
- package/dist/chunks/cli-1.1.25-3ev2q4bm.mjs +4 -0
- package/dist/chunks/cli-1.1.25-3hnrfkxc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3nhwpx0q.mjs +3 -0
- package/dist/chunks/cli-1.1.25-3nm4kgwz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3qj0n5y0.mjs +21 -0
- package/dist/chunks/cli-1.1.25-3tnd3xyt.mjs +3 -0
- package/dist/chunks/cli-1.1.25-3v5624jg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3vtsr7s2.mjs +2 -0
- package/dist/chunks/cli-1.1.25-45mx738r.mjs +3 -0
- package/dist/chunks/cli-1.1.25-4cgvw7e3.mjs +2 -0
- package/dist/chunks/cli-1.1.25-4d1zk1ar.mjs +12 -0
- package/dist/chunks/cli-1.1.25-4h4yaa4x.mjs +2 -0
- package/dist/chunks/cli-1.1.25-4yjtqfa0.mjs +2 -0
- package/dist/chunks/cli-1.1.25-54q2vnck.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5f8d8bx1.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5g78avtr.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5n21xpvc.mjs +16 -0
- package/dist/chunks/cli-1.1.25-5qknjpxc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5r495hn7.mjs +4 -0
- package/dist/chunks/cli-1.1.25-5s22yhkx.mjs +3 -0
- package/dist/chunks/cli-1.1.25-5s65r14h.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5ye3ascx.mjs +2 -0
- package/dist/chunks/cli-1.1.25-639mzh6g.mjs +2 -0
- package/dist/chunks/cli-1.1.25-63kkff0g.mjs +2 -0
- package/dist/chunks/cli-1.1.25-683ggh08.mjs +2 -0
- package/dist/chunks/cli-1.1.25-687hxtdb.mjs +1 -0
- package/dist/chunks/cli-1.1.25-69shxnnp.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6bb29bw7.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6panntay.mjs +17 -0
- package/dist/chunks/cli-1.1.25-6pthkv1w.mjs +4 -0
- package/dist/chunks/cli-1.1.25-6r6r7rep.mjs +4 -0
- package/dist/chunks/cli-1.1.25-6t9phfap.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6vwz5vma.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6wcggeyr.mjs +25 -0
- package/dist/chunks/cli-1.1.25-6wjrv08c.mjs +6 -0
- package/dist/chunks/cli-1.1.25-746dypse.mjs +2 -0
- package/dist/chunks/cli-1.1.25-74ys7518.mjs +42 -0
- package/dist/chunks/cli-1.1.25-7d3fdbq5.mjs +17 -0
- package/dist/chunks/cli-1.1.25-7d7cptk6.mjs +10 -0
- package/dist/chunks/cli-1.1.25-7qert3s4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-7qxwpfwh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-7wsdhgky.mjs +2 -0
- package/dist/chunks/cli-1.1.25-82ht7pxh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8byrahks.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8eznzbsa.mjs +5 -0
- package/dist/chunks/cli-1.1.25-8hv1dfrb.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8k2bszzr.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8v1gw0tw.mjs +9 -0
- package/dist/chunks/cli-1.1.25-8vqmp6g5.mjs +20 -0
- package/dist/chunks/cli-1.1.25-9f27xm90.mjs +25 -0
- package/dist/chunks/cli-1.1.25-9grz07r4.mjs +34 -0
- package/dist/chunks/cli-1.1.25-9m237kwt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-9xqq9dsw.mjs +3 -0
- package/dist/chunks/cli-1.1.25-9yhnadye.mjs +24 -0
- package/dist/chunks/cli-1.1.25-9z7tyxc4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-a0zejb5c.mjs +2 -0
- package/dist/chunks/cli-1.1.25-am98khq7.mjs +2 -0
- package/dist/chunks/cli-1.1.25-anhj1nnt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-anvsm1cs.mjs +2 -0
- package/dist/chunks/cli-1.1.25-b1hj5x42.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ba3yrxg9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-bmjvmtgk.mjs +2 -0
- package/dist/chunks/cli-1.1.25-bvg3kwg7.mjs +4 -0
- package/dist/chunks/cli-1.1.25-cc10r97z.mjs +2 -0
- package/dist/chunks/cli-1.1.25-cmsea0j8.mjs +15 -0
- package/dist/chunks/cli-1.1.25-csgmna38.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ctfh8503.mjs +2 -0
- package/dist/chunks/cli-1.1.25-d029ezbm.mjs +2 -0
- package/dist/chunks/cli-1.1.25-d15hk64v.mjs +2 -0
- package/dist/chunks/cli-1.1.25-d6ybhba5.mjs +2 -0
- package/dist/chunks/cli-1.1.25-dc92c5gy.mjs +2 -0
- package/dist/chunks/cli-1.1.25-df9x7s0j.mjs +2 -0
- package/dist/chunks/cli-1.1.25-dn7m24cg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-drtfsgw8.mjs +3 -0
- package/dist/chunks/cli-1.1.25-dw0mshd5.mjs +2 -0
- package/dist/chunks/cli-1.1.25-e2ng6vcx.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ed14rf9g.mjs +2 -0
- package/dist/chunks/cli-1.1.25-eqtpax1f.mjs +6 -0
- package/dist/chunks/cli-1.1.25-etb23y0w.mjs +4 -0
- package/dist/chunks/cli-1.1.25-ex6f69yn.mjs +2 -0
- package/dist/chunks/cli-1.1.25-f424x1de.mjs +2 -0
- package/dist/chunks/cli-1.1.25-f57233sm.mjs +8 -0
- package/dist/chunks/cli-1.1.25-f5ag59tm.mjs +4 -0
- package/dist/chunks/cli-1.1.25-f6w108cp.mjs +6 -0
- package/dist/chunks/cli-1.1.25-f9pk1asa.mjs +7 -0
- package/dist/chunks/cli-1.1.25-fr1nw6bz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-fwh7d55c.mjs +2 -0
- package/dist/chunks/cli-1.1.25-g6y71why.mjs +24 -0
- package/dist/chunks/cli-1.1.25-gba9rrnp.mjs +15 -0
- package/dist/chunks/cli-1.1.25-gezpvyzq.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gm5mfwmy.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gmvcd8bm.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gnsqbh0h.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gsngwhfp.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gz32rhhs.mjs +2 -0
- package/dist/chunks/cli-1.1.25-h164y8f5.mjs +2 -0
- package/dist/chunks/cli-1.1.25-h6ag26rc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hdgk2770.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hjvawqyb.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hjwttff4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hpfkk20r.mjs +2 -0
- package/dist/chunks/cli-1.1.25-j6x483np.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jaz67hdc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jk7skh2n.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jmv6jw6b.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jsn4we2f.mjs +2 -0
- package/dist/chunks/cli-1.1.25-k6kqfxnq.mjs +2 -0
- package/dist/chunks/cli-1.1.25-k6v3tvg9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-k9qcf2mf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kdamwjt1.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kn1yv4f6.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kpah4ttt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kpv8j6wf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kvwevqsc.mjs +18 -0
- package/dist/chunks/cli-1.1.25-m0h0ddew.mjs +2 -0
- package/dist/chunks/cli-1.1.25-m86a8tmc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-n10jmzvk.mjs +2 -0
- package/dist/chunks/cli-1.1.25-n5gb4kx8.mjs +2 -0
- package/dist/chunks/cli-1.1.25-n6df4vnz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-nh2xj15f.mjs +2 -0
- package/dist/chunks/cli-1.1.25-njrez2x5.mjs +12 -0
- package/dist/chunks/cli-1.1.25-nmw9agm4.mjs +133 -0
- package/dist/chunks/cli-1.1.25-nmxbk4dt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-np8863pb.mjs +3 -0
- package/dist/chunks/cli-1.1.25-ntfm6tbg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-nwdtve8h.mjs +2 -0
- package/dist/chunks/cli-1.1.25-nxvqf4sh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-p2kmhxd3.mjs +3 -0
- package/dist/chunks/cli-1.1.25-p9j8prqh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-pcamey8m.mjs +2 -0
- package/dist/chunks/cli-1.1.25-peepax79.mjs +66 -0
- package/dist/chunks/cli-1.1.25-pgs0x971.mjs +50 -0
- package/dist/chunks/cli-1.1.25-px1h2b7d.mjs +2 -0
- package/dist/chunks/cli-1.1.25-pxq7zyjb.mjs +2 -0
- package/dist/chunks/cli-1.1.25-pzp73p0x.mjs +2 -0
- package/dist/chunks/cli-1.1.25-q257pczz.mjs +133 -0
- package/dist/chunks/cli-1.1.25-q5qj0wfa.mjs +18 -0
- package/dist/chunks/cli-1.1.25-q5tqh3tz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-q88hb4qg.mjs +5459 -0
- package/dist/chunks/cli-1.1.25-qd1b1zr7.mjs +3 -0
- package/dist/chunks/cli-1.1.25-qd1q5w85.mjs +2 -0
- package/dist/chunks/cli-1.1.25-qgnyys4j.mjs +6 -0
- package/dist/chunks/cli-1.1.25-qp9j9ma3.mjs +24 -0
- package/dist/chunks/cli-1.1.25-qpb14xj4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-qtjt3cq9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-r0dwt4a0.mjs +2 -0
- package/dist/chunks/cli-1.1.25-r2a8d0xg.mjs +26 -0
- package/dist/chunks/cli-1.1.25-rbapdr02.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rbnjv023.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rf05pze2.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rf0c9c9r.mjs +3 -0
- package/dist/chunks/cli-1.1.25-rg5rxmym.mjs +9 -0
- package/dist/chunks/cli-1.1.25-rkh9pz84.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rqzwndms.mjs +45 -0
- package/dist/chunks/cli-1.1.25-rwg08ga2.mjs +39 -0
- package/dist/chunks/cli-1.1.25-s1ykc389.mjs +2 -0
- package/dist/chunks/cli-1.1.25-s54emewd.mjs +206 -0
- package/dist/chunks/cli-1.1.25-s9sv7xk9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-sjqg08ww.mjs +2 -0
- package/dist/chunks/cli-1.1.25-sm3q65hz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-svtt1qhf.mjs +5 -0
- package/dist/chunks/cli-1.1.25-sz3dey5y.mjs +2 -0
- package/dist/chunks/cli-1.1.25-t6rdfhp9.mjs +3 -0
- package/dist/chunks/cli-1.1.25-t80ab9f0.mjs +7 -0
- package/dist/chunks/cli-1.1.25-tftyt531.mjs +3 -0
- package/dist/chunks/cli-1.1.25-tj3kqgbv.mjs +2 -0
- package/dist/chunks/cli-1.1.25-tz7k6gjy.mjs +2 -0
- package/dist/chunks/cli-1.1.25-vc7150xz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-vkg5fb0z.mjs +2 -0
- package/dist/chunks/cli-1.1.25-vwe1fsde.mjs +2 -0
- package/dist/chunks/cli-1.1.25-wcw9vrkz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-wd0p9nmj.mjs +24 -0
- package/dist/chunks/cli-1.1.25-wtrb99c9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-wy18zt7a.mjs +3 -0
- package/dist/chunks/cli-1.1.25-x26vkphq.mjs +6 -0
- package/dist/chunks/cli-1.1.25-x4ww7pe7.mjs +2 -0
- package/dist/chunks/cli-1.1.25-xbxtyfje.mjs +2 -0
- package/dist/chunks/cli-1.1.25-y0f45gyf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-y4xjnn7w.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ybe971qx.mjs +15 -0
- package/dist/chunks/cli-1.1.25-yctc3qt8.mjs +2 -0
- package/dist/chunks/cli-1.1.25-yf3nnsg1.mjs +2 -0
- package/dist/chunks/cli-1.1.25-z31z20wf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-zk74mh7n.mjs +2 -0
- package/dist/chunks/cli-1.1.25-zpzhf7zc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-zqqpy89q.mjs +6 -0
- package/dist/chunks/cli-1.1.25-zrj2zpkp.mjs +2 -0
- package/dist/chunks/client-1.1.25-08n7ywgz.mjs +1 -0
- package/dist/chunks/color-1.1.25-n45p3cdv.mjs +1 -0
- package/dist/chunks/compact-1.1.25-qqv3fce7.mjs +3 -0
- package/dist/chunks/config-1.1.25-bvznkf41.mjs +1 -0
- package/dist/chunks/config-1.1.25-n6dtcns2.mjs +1 -0
- package/dist/chunks/constants-1.1.25-g61cz55f.mjs +1 -0
- package/dist/chunks/context-1.1.25-e3n1bdyd.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.25-6drmca9m.mjs +1 -0
- package/dist/chunks/conversation-1.1.25-5xfam12e.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.25-n3q0s4gz.mjs +1 -0
- package/dist/chunks/copy-1.1.25-wcjjc2td.mjs +9 -0
- package/dist/chunks/cost-1.1.25-czrc10qr.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.25-q7sr5mgy.mjs +1 -0
- package/dist/chunks/createSession-1.1.25-abgdr9mn.mjs +1 -0
- package/dist/chunks/debug-1.1.25-4284each.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.25-bh5e3czf.mjs +1534 -0
- package/dist/chunks/desktop-1.1.25-kb98q9vj.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.25-a7pfgy12.mjs +1 -0
- package/dist/chunks/detection-1.1.25-8nzvw5jn.mjs +1 -0
- package/dist/chunks/diff-1.1.25-dhnj1tfb.mjs +1 -0
- package/dist/chunks/doctor-1.1.25-0x83n5n5.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.25-qmg4yght.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.25-jz9ewwc0.mjs +1 -0
- package/dist/chunks/effort-1.1.25-6gemkp3j.mjs +13 -0
- package/dist/chunks/engine-1.1.25-hb7ppn8y.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.25-32s3yykr.mjs +1 -0
- package/dist/chunks/envUtils-1.1.25-trphmt1z.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.25-jew2phex.mjs +1 -0
- package/dist/chunks/environments-1.1.25-nkh2j8kv.mjs +1 -0
- package/dist/chunks/errors-1.1.25-0t1vtdpj.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.25-n2ktzve3.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.25-2f72pb95.mjs +1 -0
- package/dist/chunks/exit-1.1.25-302bsne4.mjs +1 -0
- package/dist/chunks/explorer-1.1.25-f47vrcdd.mjs +1 -0
- package/dist/chunks/export-1.1.25-655jmasp.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.25-9f3dc9de.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.25-wjzcb1d3.mjs +1 -0
- package/dist/chunks/fast-1.1.25-k4a1t9tc.mjs +1 -0
- package/dist/chunks/feedback-1.1.25-crmhd8kn.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.25-pr01pvjg.mjs +1 -0
- package/dist/chunks/git-1.1.25-r40xnnqg.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.25-8r84eppg.mjs +1 -0
- package/dist/chunks/goal-1.1.25-2fz16dne.mjs +4 -0
- package/dist/chunks/growthbook-1.1.25-vr1d3g20.mjs +1 -0
- package/dist/chunks/headless-1.1.25-b7ma19kx.mjs +2 -0
- package/dist/chunks/heapdump-1.1.25-s74fnvr9.mjs +6 -0
- package/dist/chunks/help-1.1.25-jphw3nwb.mjs +1 -0
- package/dist/chunks/hookChains-1.1.25-wad3j7ae.mjs +3 -0
- package/dist/chunks/hooks-1.1.25-5psxtbt2.mjs +79 -0
- package/dist/chunks/hooks-1.1.25-n6f1dkc7.mjs +1 -0
- package/dist/chunks/ide-1.1.25-21kw5qe1.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.25-jymb540y.mjs +1 -0
- package/dist/chunks/import-1.1.25-71q60jx1.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.25-qg5v4c4j.mjs +1 -0
- package/dist/chunks/index-1.1.25-0f94rjfd.mjs +1 -0
- package/dist/chunks/index-1.1.25-0n1ksx20.mjs +2 -0
- package/dist/chunks/index-1.1.25-1n597wy3.mjs +1 -0
- package/dist/chunks/index-1.1.25-1rwmhexf.mjs +1 -0
- package/dist/chunks/index-1.1.25-6160t93h.mjs +30 -0
- package/dist/chunks/index-1.1.25-645qcmbw.mjs +9 -0
- package/dist/chunks/index-1.1.25-70ggh135.mjs +1 -0
- package/dist/chunks/index-1.1.25-7nk5p28a.mjs +1 -0
- package/dist/chunks/index-1.1.25-7p7qd15b.mjs +23 -0
- package/dist/chunks/index-1.1.25-8z7y79bf.mjs +1 -0
- package/dist/chunks/index-1.1.25-affe6cxt.mjs +9 -0
- package/dist/chunks/index-1.1.25-bec2ajvp.mjs +1 -0
- package/dist/chunks/index-1.1.25-f64qrtc9.mjs +5 -0
- package/dist/chunks/index-1.1.25-g7v9zhk1.mjs +1 -0
- package/dist/chunks/index-1.1.25-g99896ns.mjs +1 -0
- package/dist/chunks/index-1.1.25-hcbmys9p.mjs +1 -0
- package/dist/chunks/index-1.1.25-j8rm4qgs.mjs +2 -0
- package/dist/chunks/index-1.1.25-kh02yd5c.mjs +1 -0
- package/dist/chunks/index-1.1.25-m6k2vy2a.mjs +1 -0
- package/dist/chunks/index-1.1.25-pmn6pnjv.mjs +1 -0
- package/dist/chunks/index-1.1.25-t0kaa1dy.mjs +1 -0
- package/dist/chunks/index-1.1.25-xfdfregs.mjs +1 -0
- package/dist/chunks/index-1.1.25-ychm6aj7.mjs +1 -0
- package/dist/chunks/init-1.1.25-x7cr3p65.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.25-zcgy02rq.mjs +1 -0
- package/dist/chunks/ink-1.1.25-evxr7syt.mjs +1 -0
- package/dist/chunks/insights-1.1.25-0zz5y2cs.mjs +870 -0
- package/dist/chunks/install-1.1.25-nghrpc4k.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.25-1tb3cz5k.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.25-vsp3sc6d.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.25-e9arjmhp.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.25-dvn7nkzf.mjs +1 -0
- package/dist/chunks/keybindings-1.1.25-7tf4nkft.mjs +2 -0
- package/dist/chunks/knowledge-1.1.25-gchxmcv2.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.25-gzy09f8s.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.25-3fvea40c.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.25-1b1z5t2x.mjs +1 -0
- package/dist/chunks/log-1.1.25-rhpcv45j.mjs +1 -0
- package/dist/chunks/main-1.1.25-hpaj9gzw.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.25-19sxqzbj.mjs +1 -0
- package/dist/chunks/mcp-1.1.25-bkgk2vye.mjs +1 -0
- package/dist/chunks/mcp-1.1.25-n5bde32b.mjs +17 -0
- package/dist/chunks/mcp-1.1.25-wsfk73n2.mjs +4 -0
- package/dist/chunks/mcpb-1.1.25-jwd1ff98.mjs +1 -0
- package/dist/chunks/memory-1.1.25-ae4515h6.mjs +72 -0
- package/dist/chunks/model-1.1.25-kdc32s97.mjs +1 -0
- package/dist/chunks/model-1.1.25-x3hpj8mx.mjs +2 -0
- package/dist/chunks/node-1.1.25-bmakbgcc.mjs +15 -0
- package/dist/chunks/oauth-1.1.25-dpw2v0gf.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.25-frxz7cxz.mjs +14 -0
- package/dist/chunks/output-style-1.1.25-ja0xn44t.mjs +1 -0
- package/dist/chunks/package-SHMK2LJE-1.1.25-n5senjea.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.25-2w1mb832.mjs +1 -0
- package/dist/chunks/parser-1.1.25-226xm2zk.mjs +1 -0
- package/dist/chunks/passes-1.1.25-3pbcz45a.mjs +1 -0
- package/dist/chunks/permissions-1.1.25-3yb8c211.mjs +1 -0
- package/dist/chunks/permissions-1.1.25-g8395q9y.mjs +3 -0
- package/dist/chunks/plan-1.1.25-335rgqar.mjs +1 -0
- package/dist/chunks/plist-1.1.25-4gx9kzb9.mjs +1 -0
- package/dist/chunks/plugin-1.1.25-7twsr9qb.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.25-h43rcveq.mjs +1 -0
- package/dist/chunks/plugins-1.1.25-36r120jp.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.25-mq77hmkq.mjs +2 -0
- package/dist/chunks/print-1.1.25-nyqwpaw6.mjs +57 -0
- package/dist/chunks/process-1.1.25-40rkvfxz.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.25-4rt9wd52.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.25-50jz8vq4.mjs +9 -0
- package/dist/chunks/prompt-1.1.25-ab2m25ry.mjs +1 -0
- package/dist/chunks/prompt-1.1.25-tsf93p18.mjs +1 -0
- package/dist/chunks/prompts-1.1.25-7asah358.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.25-fjma0898.mjs +13 -0
- package/dist/chunks/provider-1.1.25-jcm6xct3.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.25-86yene25.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.25-gbve71cz.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.25-n6v741p7.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.25-d988tp7q.mjs +26 -0
- package/dist/chunks/registry-1.1.25-jda5me4n.mjs +1 -0
- package/dist/chunks/release-notes-1.1.25-depx979r.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.25-nc27sfgy.mjs +2 -0
- package/dist/chunks/remote-env-1.1.25-adtemst2.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.25-vyw0r3a7.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.25-f1hb7zcj.mjs +1 -0
- package/dist/chunks/rename-1.1.25-r9khtthn.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.25-5tbm27ae.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.25-dy1jxrha.mjs +1 -0
- package/dist/chunks/resume-1.1.25-qcctpvst.mjs +2 -0
- package/dist/chunks/rewind-1.1.25-2tpvsdz2.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.25-6gjd4t0k.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.25-1x11b1xy.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.25-2qsj3g4r.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.25-tn86q9kj.mjs +1 -0
- package/dist/chunks/session-1.1.25-tpnhf7nk.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.25-z48aepj2.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.25-w9mqv7x2.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.25-f61wmxkh.mjs +1 -0
- package/dist/chunks/settings-1.1.25-5f0ye0zf.mjs +1 -0
- package/dist/chunks/setup-1.1.25-hq096wz8.mjs +12 -0
- package/dist/chunks/sinks-1.1.25-k89ee9jd.mjs +1 -0
- package/dist/chunks/skills-1.1.25-zny3acfm.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.25-jrb54jgv.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.25-0e8arnxt.mjs +1 -0
- package/dist/chunks/state-1.1.25-2f0mn1s8.mjs +1 -0
- package/dist/chunks/stats-1.1.25-w4v85n4m.mjs +1 -0
- package/dist/chunks/status-1.1.25-vyxf29s0.mjs +1 -0
- package/dist/chunks/stickers-1.1.25-db9b5d86.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.25-b06h7dn5.mjs +1 -0
- package/dist/chunks/tasks-1.1.25-d44s3czy.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.25-yy2zwqy3.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.25-45w75v4y.mjs +1 -0
- package/dist/chunks/teleport-1.1.25-5be1s310.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.25-b5a4adgd.mjs +1 -0
- package/dist/chunks/theme-1.1.25-wkyf9b5k.mjs +1 -0
- package/dist/chunks/thinkback-1.1.25-6575xnpn.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.25-amw47kg0.mjs +1 -0
- package/dist/chunks/toolPool-1.1.25-h7pp3y85.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.25-brpn0e66.mjs +1 -0
- package/dist/chunks/tools-1.1.25-t4rr3y1m.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.25-dgx4z9gb.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.25-9c24hgzw.mjs +69 -0
- package/dist/chunks/types-1.1.25-tj3y8ycy.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.25-kj7js02p.mjs +4 -0
- package/dist/chunks/update-1.1.25-fn4tnxnw.mjs +72 -0
- package/dist/chunks/upgrade-1.1.25-zd805a6y.mjs +1 -0
- package/dist/chunks/upload-1.1.25-nhsynsbb.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.25-bh4an4es.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.25-z7v66h19.mjs +1 -0
- package/dist/chunks/usage-1.1.25-0frq9der.mjs +1 -0
- package/dist/chunks/util-1.1.25-hqbcvpk3.mjs +1 -0
- package/dist/chunks/utils-1.1.25-mqy166xe.mjs +1 -0
- package/dist/chunks/vim-1.1.25-0gnwfzcy.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.25-dnpy6c6e.mjs +13 -0
- package/dist/chunks/watcher-1.1.25-43n00zw0.mjs +1 -0
- package/dist/chunks/wiki-1.1.25-mvay6amg.mjs +132 -0
- package/dist/chunks/workflows-1.1.25-a2drn8b3.mjs +1 -0
- package/dist/chunks/worktree-1.1.25-cghd8r64.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.25-a15vww7v.mjs +1 -0
- package/dist/chunks/wrapper-1.1.25-chacpj74.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +0 -1
- package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +0 -6
- package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +0 -1
- package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +0 -1
- package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +0 -1
- package/dist/chunks/agents-1.1.23-13ae3y31.mjs +0 -110
- package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +0 -3
- package/dist/chunks/api-1.1.23-sadzsv9h.mjs +0 -1
- package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +0 -1
- package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +0 -1
- package/dist/chunks/auth-1.1.23-2mazt66r.mjs +0 -1
- package/dist/chunks/auth-1.1.23-f804wpq0.mjs +0 -1
- package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +0 -1
- package/dist/chunks/branch-1.1.23-df4c0964.mjs +0 -4
- package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +0 -1
- package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +0 -1
- package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +0 -4
- package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +0 -1
- package/dist/chunks/claudemd-1.1.23-av012etb.mjs +0 -1
- package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +0 -1
- package/dist/chunks/cli-1.1.23-08g4ya29.mjs +0 -2
- package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +0 -4
- package/dist/chunks/cli-1.1.23-13w02myd.mjs +0 -2
- package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +0 -5
- package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +0 -3
- package/dist/chunks/cli-1.1.23-1fexxp20.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +0 -4
- package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +0 -24
- package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +0 -4
- package/dist/chunks/cli-1.1.23-2g7503ny.mjs +0 -133
- package/dist/chunks/cli-1.1.23-2gax24jg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2swa87qn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +0 -2
- package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +0 -7
- package/dist/chunks/cli-1.1.23-3hnz7314.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +0 -24
- package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +0 -2
- package/dist/chunks/cli-1.1.23-4q364wmc.mjs +0 -26
- package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +0 -3
- package/dist/chunks/cli-1.1.23-4z00tj56.mjs +0 -20
- package/dist/chunks/cli-1.1.23-534g4n3n.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +0 -3
- package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-61q858yx.mjs +0 -24
- package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +0 -6
- package/dist/chunks/cli-1.1.23-6801e7pm.mjs +0 -34
- package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +0 -3
- package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +0 -3
- package/dist/chunks/cli-1.1.23-6svwd47h.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +0 -4
- package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7081am2r.mjs +0 -60
- package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7672wfdw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-79fjt009.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7btdskbp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7jpcmnjc.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7p15pph2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +0 -2
- package/dist/chunks/cli-1.1.23-89dm39zw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +0 -1
- package/dist/chunks/cli-1.1.23-8tv84m75.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +0 -4
- package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +0 -6
- package/dist/chunks/cli-1.1.23-913hrrgx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-91n79mdp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-971f3zzk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9b08qsth.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9qe28y65.mjs +0 -16
- package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9zrhw582.mjs +0 -2
- package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +0 -12
- package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +0 -18
- package/dist/chunks/cli-1.1.23-a95wepyn.mjs +0 -66
- package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +0 -2
- package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +0 -7
- package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-akghy19s.mjs +0 -58
- package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +0 -2
- package/dist/chunks/cli-1.1.23-beazn1ym.mjs +0 -45
- package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +0 -15
- package/dist/chunks/cli-1.1.23-bghc6n12.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bkd2235z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bqb900hx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-btem08d6.mjs +0 -2
- package/dist/chunks/cli-1.1.23-btq83yzw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +0 -2
- package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +0 -3
- package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +0 -50
- package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dm6get34.mjs +0 -42
- package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e3zf752q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +0 -9
- package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +0 -2
- package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +0 -15
- package/dist/chunks/cli-1.1.23-f001cyx3.mjs +0 -2
- package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +0 -2
- package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +0 -2
- package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +0 -3
- package/dist/chunks/cli-1.1.23-fxt20eva.mjs +0 -2
- package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +0 -2
- package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +0 -6
- package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +0 -2
- package/dist/chunks/cli-1.1.23-g6b9c447.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gm82gspk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gqzmsste.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +0 -25
- package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +0 -17
- package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +0 -17
- package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +0 -5456
- package/dist/chunks/cli-1.1.23-j1834bmw.mjs +0 -8
- package/dist/chunks/cli-1.1.23-j50f02dv.mjs +0 -3
- package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +0 -9
- package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jax91df0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +0 -4
- package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +0 -6
- package/dist/chunks/cli-1.1.23-keftnbc6.mjs +0 -206
- package/dist/chunks/cli-1.1.23-kqechz3h.mjs +0 -3
- package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +0 -4
- package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +0 -4
- package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n0182x8j.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +0 -2
- package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +0 -12
- package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +0 -2
- package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +0 -3
- package/dist/chunks/cli-1.1.23-qn9572e2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r21frpa6.mjs +0 -6
- package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +0 -25
- package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +0 -2
- package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +0 -2
- package/dist/chunks/cli-1.1.23-s21f8qza.mjs +0 -2
- package/dist/chunks/cli-1.1.23-s2pn202f.mjs +0 -4
- package/dist/chunks/cli-1.1.23-s943evpq.mjs +0 -2
- package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +0 -21
- package/dist/chunks/cli-1.1.23-sch1s17t.mjs +0 -2
- package/dist/chunks/cli-1.1.23-se379e5e.mjs +0 -15
- package/dist/chunks/cli-1.1.23-swf2c8db.mjs +0 -2
- package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v22erb37.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +0 -5
- package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +0 -3
- package/dist/chunks/cli-1.1.23-vdp0r91n.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vyf2j831.mjs +0 -2
- package/dist/chunks/cli-1.1.23-w16rdkte.mjs +0 -3
- package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +0 -3
- package/dist/chunks/cli-1.1.23-wd48c77m.mjs +0 -24
- package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +0 -18
- package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +0 -2
- package/dist/chunks/cli-1.1.23-wnxxa385.mjs +0 -4
- package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +0 -39
- package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +0 -3
- package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xgst7vty.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xkt2056f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +0 -2
- package/dist/chunks/cli-1.1.23-y3ea6683.mjs +0 -2
- package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +0 -2
- package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +0 -133
- package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +0 -2
- package/dist/chunks/cli-1.1.23-zb8savhy.mjs +0 -6
- package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +0 -2
- package/dist/chunks/client-1.1.23-mcea9qxt.mjs +0 -1
- package/dist/chunks/color-1.1.23-e9h5ff51.mjs +0 -1
- package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +0 -3
- package/dist/chunks/config-1.1.23-j8frjsmx.mjs +0 -1
- package/dist/chunks/config-1.1.23-kedfvs1w.mjs +0 -1
- package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +0 -1
- package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +0 -1
- package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +0 -1
- package/dist/chunks/copy-1.1.23-vydqekfj.mjs +0 -9
- package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +0 -1
- package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +0 -1
- package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +0 -1534
- package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +0 -1
- package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +0 -1
- package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +0 -1
- package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +0 -1
- package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +0 -13
- package/dist/chunks/engine-1.1.23-zted98hq.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +0 -1
- package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +0 -1
- package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +0 -1
- package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +0 -1
- package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +0 -1
- package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +0 -1
- package/dist/chunks/export-1.1.23-811x7m0f.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +0 -1
- package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +0 -1
- package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +0 -1
- package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +0 -1
- package/dist/chunks/goal-1.1.23-cmzk221k.mjs +0 -4
- package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +0 -1
- package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +0 -2
- package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +0 -6
- package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +0 -1
- package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +0 -3
- package/dist/chunks/hooks-1.1.23-nh96m542.mjs +0 -1
- package/dist/chunks/hooks-1.1.23-pggycv75.mjs +0 -79
- package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +0 -1
- package/dist/chunks/index-1.1.23-04w67ps4.mjs +0 -1
- package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +0 -2
- package/dist/chunks/index-1.1.23-16krzxwz.mjs +0 -1
- package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +0 -2
- package/dist/chunks/index-1.1.23-5xkpaxba.mjs +0 -1
- package/dist/chunks/index-1.1.23-87bctdxv.mjs +0 -1
- package/dist/chunks/index-1.1.23-894gw6j8.mjs +0 -1
- package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +0 -9
- package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +0 -1
- package/dist/chunks/index-1.1.23-hzafkcpn.mjs +0 -30
- package/dist/chunks/index-1.1.23-jfybaapb.mjs +0 -9
- package/dist/chunks/index-1.1.23-mbvmhq60.mjs +0 -1
- package/dist/chunks/index-1.1.23-nq44z8sn.mjs +0 -1
- package/dist/chunks/index-1.1.23-p84yrb6r.mjs +0 -1
- package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +0 -23
- package/dist/chunks/index-1.1.23-v3pvt45w.mjs +0 -1
- package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +0 -1
- package/dist/chunks/index-1.1.23-vw0ns36r.mjs +0 -1
- package/dist/chunks/index-1.1.23-xb876pe7.mjs +0 -5
- package/dist/chunks/index-1.1.23-xfzxwabm.mjs +0 -1
- package/dist/chunks/index-1.1.23-yjt3kte0.mjs +0 -1
- package/dist/chunks/index-1.1.23-ymq59t45.mjs +0 -1
- package/dist/chunks/index-1.1.23-ytps69pn.mjs +0 -1
- package/dist/chunks/init-1.1.23-68d7nbfy.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +0 -1
- package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +0 -1
- package/dist/chunks/insights-1.1.23-hnbtjced.mjs +0 -870
- package/dist/chunks/install-1.1.23-ayas8qxr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +0 -1
- package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +0 -2
- package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +0 -1
- package/dist/chunks/log-1.1.23-raemwqxy.mjs +0 -1
- package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +0 -1
- package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +0 -17
- package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +0 -4
- package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +0 -1
- package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +0 -1
- package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +0 -72
- package/dist/chunks/model-1.1.23-m65499d4.mjs +0 -1
- package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +0 -2
- package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +0 -14
- package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +0 -14
- package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +0 -1
- package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +0 -1
- package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +0 -1
- package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +0 -3
- package/dist/chunks/permissions-1.1.23-r2894sce.mjs +0 -1
- package/dist/chunks/plan-1.1.23-z731dw1m.mjs +0 -1
- package/dist/chunks/plist-1.1.23-5761s0b4.mjs +0 -1
- package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +0 -1
- package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +0 -2
- package/dist/chunks/print-1.1.23-g988xjb3.mjs +0 -57
- package/dist/chunks/process-1.1.23-eh0mn414.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +0 -9
- package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +0 -1
- package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +0 -1
- package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +0 -13
- package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +0 -26
- package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +0 -1
- package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +0 -2
- package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +0 -1
- package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +0 -1
- package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +0 -2
- package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +0 -1
- package/dist/chunks/session-1.1.23-mws1tmy1.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +0 -1
- package/dist/chunks/settings-1.1.23-3fm1v708.mjs +0 -1
- package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +0 -12
- package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +0 -1
- package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +0 -1
- package/dist/chunks/state-1.1.23-jxkq1t17.mjs +0 -1
- package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +0 -6
- package/dist/chunks/status-1.1.23-zkcmaawr.mjs +0 -1
- package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +0 -1
- package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +0 -1
- package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +0 -1
- package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +0 -1
- package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +0 -1
- package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +0 -1
- package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +0 -69
- package/dist/chunks/types-1.1.23-pca5g3df.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +0 -4
- package/dist/chunks/update-1.1.23-3xmkkhns.mjs +0 -72
- package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +0 -1
- package/dist/chunks/upload-1.1.23-cx2aj445.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +0 -1
- package/dist/chunks/usage-1.1.23-bndk03g2.mjs +0 -1
- package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +0 -1
- package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +0 -1
- package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +0 -13
- package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +0 -1
- package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +0 -132
- package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +0 -1
- package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +0 -1
- package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +0 -7
- /package/dist/chunks/{cli-1.1.23-qgdfjtj2.mjs → cli-1.1.25-cpt1h3j8.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tf as k,vf as a}from"./cli-1.1.23-n73gbfxf.mjs";import{Q2 as D,T2 as g}from"./cli-1.1.23-jam2qpf9.mjs";import{mla as K,pla as u}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as G,Tla as l}from"./cli-1.1.23-6vn61k3h.mjs";import{Fta as c,Gta as J}from"./cli-1.1.23-bdj1ne1r.mjs";function b(P){return P===200||P===201}function n(P,Q){return Q&&P===400}async function e({environmentId:P,title:Q,events:z,gitRepoUrl:q,branch:L,signal:H,baseUrl:y,getAccessToken:B,permissionMode:$,onFailure:Z}){let{getClaudeAIOAuthTokens:W}=await import("./auth-1.1.23-f804wpq0.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.23-mcea9qxt.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.23-x33h0bwk.mjs"),{getOAuthHeaders:N}=await import("./api-1.1.23-sadzsv9h.mjs"),{parseGitHubRepository:E}=await import("./detectRepository-1.1.23-cjja5tc4.mjs"),{getDefaultBranch:T}=await import("./git-1.1.23-ybtn6n7y.mjs"),{getMainLoopModel:j}=await import("./model-1.1.23-m65499d4.mjs"),{default:x}=await import("./index-1.1.23-894gw6j8.mjs"),R=B?.()??W()?.accessToken;if(!R)return K("[bridge] No access token for session creation"),Z?.({retryable:!1,detail:"not signed in"}),null;let v=await _();if(!v)return K("[bridge] No org UUID for session creation"),Z?.({retryable:!1,detail:"no organization for this account"}),null;let A=null,O=null;if(q){let{parseGitRemote:Y}=await import("./detectRepository-1.1.23-cjja5tc4.mjs"),w=Y(q);if(w){let{host:C,owner:S,name:f}=w,m=L||await T()||void 0;A={type:"git_repository",url:`https://${C}/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}else{let C=E(q);if(C){let[S,f]=C.split("/");if(S&&f){let m=L||await T()||void 0;A={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}}}}let h=(Y)=>({...Q!==void 0&&{title:Q},events:z,session_context:{sources:Y&&A?[A]:[],outcomes:Y&&O?[O]:[],model:j()},environment_id:P,source:"remote-control",...$&&{permission_mode:$}}),d={...N(R),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":v},p=`${y??V().BASE_API_URL}/v1/sessions`,F=async(Y)=>{try{return await x.post(p,h(Y),{headers:d,signal:H,validateStatus:(w)=>w<500})}catch(w){return K(`[bridge] Session creation request failed: ${G(w)}`),Z?.({retryable:!0,detail:G(w)}),null}},U=A!==null&&!I,X=await F(U);if(!X)return null;if(!b(X.status)&&n(X.status,U)){let Y=k(X.data);if(K(`[bridge] Session creation rejected with status ${X.status}${Y?`: ${Y}`:""} — retrying without the git context`),I=!0,X=await F(!1),!X)return null}if(!b(X.status)){let Y=k(X.data);return K(`[bridge] Session creation failed with status ${X.status}${Y?`: ${Y}`:""}`),Z?.({status:X.status,detail:Y,retryable:X.status===429}),null}let M=X.data;if(!M||typeof M!=="object"||!("id"in M)||typeof M.id!=="string")return K("[bridge] No session ID in response"),Z?.({status:X.status,detail:"malformed session response",retryable:!1}),null;return M.id}async function JJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.23-f804wpq0.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.23-mcea9qxt.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.23-x33h0bwk.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.23-sadzsv9h.mjs"),{default:y}=await import("./index-1.1.23-894gw6j8.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B)return K("[bridge] No access token for session fetch"),null;let $=await q();if(!$)return K("[bridge] No org UUID for session fetch"),null;let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}`,_=1e4;K(`[bridge] Fetching session ${P}`);let V;try{V=await y.get(W,{headers:Z,timeout:_,validateStatus:(N)=>N<500})}catch(N){if(y.isAxiosError(N)){let E=N.response?.status??"no-response",T=N.code??"unknown-code",j=N.config?.url??W,x=N.config?.method?.toUpperCase()??"GET",R=N.message??G(N),v=N.config?.timeout??_;K(`[bridge] Session fetch request failed: status=${E} code=${T} method=${x} url=${j} timeout=${v} message=${R}`)}else K(`[bridge] Session fetch request failed: url=${W} timeout=${_} message=${G(N)}`);return null}if(V.status!==200){let N=k(V.data);return K(`[bridge] Session fetch failed with status ${V.status} url=${W}${N?`: ${N}`:""}`),null}return V.data}async function KJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.23-f804wpq0.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.23-mcea9qxt.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.23-x33h0bwk.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.23-sadzsv9h.mjs"),{default:y}=await import("./index-1.1.23-894gw6j8.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B){K("[bridge] No access token for session archive");return}let $=await q();if(!$){K("[bridge] No org UUID for session archive");return}let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}/archive`;K(`[bridge] Archiving session ${P}`);let _=await y.post(W,{},{headers:Z,timeout:Q?.timeoutMs??1e4,validateStatus:(V)=>V<500});if(_.status===200)K(`[bridge] Session ${P} archived successfully`);else{let V=k(_.data);K(`[bridge] Session archive failed with status ${_.status}${V?`: ${V}`:""}`)}}async function NJ(P,Q,z){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.23-f804wpq0.mjs"),{getOrganizationUUID:L}=await import("./client-1.1.23-mcea9qxt.mjs"),{getOauthConfig:H}=await import("./oauth-1.1.23-x33h0bwk.mjs"),{getOAuthHeaders:y}=await import("./api-1.1.23-sadzsv9h.mjs"),{default:B}=await import("./index-1.1.23-894gw6j8.mjs"),$=z?.getAccessToken?.()??q()?.accessToken;if(!$){K("[bridge] No access token for session title update");return}let Z=await L();if(!Z){K("[bridge] No org UUID for session title update");return}let W={...y($),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Z},_=D(P),V=`${z?.baseUrl??H().BASE_API_URL}/v1/sessions/${_}`;K(`[bridge] Updating session title: ${_} → ${Q}`);try{let N=await B.patch(V,{title:Q},{headers:W,timeout:1e4,validateStatus:(E)=>E<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let E=k(N.data);K(`[bridge] Session title update failed with status ${N.status}${E?`: ${E}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${G(N)}`)}}var I=!1;var i=c(()=>{u();l();a();g()});
|
|
2
|
-
export{n as jf,e as kf,JJ as lf,KJ as mf,NJ as nf,i as of};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{w4 as J,y4 as Y}from"./cli-1.1.23-swf2c8db.mjs";import{C4 as G,E4 as X}from"./cli-1.1.23-z1mvb05m.mjs";import{C8 as B,G5 as z,H8 as D,I8 as F,L5 as V,a9 as W}from"./cli-1.1.23-9qe28y65.mjs";import{hka as w,ika as N}from"./cli-1.1.23-nr6xamsd.mjs";import{Nsa as y,dta as Q}from"./cli-1.1.23-61q858yx.mjs";import{Fta as M}from"./cli-1.1.23-bdj1ne1r.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
|
|
2
|
-
export{f as aj,Z as bj};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Fta as $}from"./cli-1.1.23-bdj1ne1r.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function A(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function N(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function m(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function q(z=1){return z===0?"":J(z,"A")}function D(z=1){return z===0?"":J(z,"B")}function M(z=1){return z===0?"":J(z,"C")}function W(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function b(z,Q){let V="";if(z<0)V+=W(-z);else if(z>0)V+=M(z);if(Q<0)V+=q(-Q);else if(Q>0)V+=D(Q);return V}function S(){return J("K")}function l(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=q(1);return Q+=k,Q}function o(z=1){return z===0?"":J(z,"S")}function y(z=1){return z===0?"":J(z,"T")}function a(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,k,v,F,K,E,c,t,n,i,r,e,s,zz,Jz;var X=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];k=J("G");v=J("H");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");c=J("r"),t=J("200~"),n=J("201~"),i=J("I"),r=J("O"),e=J(">1u"),s=J("<u"),zz=J(">4;2m"),Jz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+v}var P,Zz;var f=$(()=>{X();P=J(0,"f");Zz=T()});
|
|
2
|
-
export{d as Z1,Y as _1,h as $1,j as a2,H as b2,w as c2,L as d2,A as e2,N as f2,m as g2,J as h2,g as i2,I as j2,_ as k2,u as l2,R as m2,C as n2,v as o2,b as p2,S as q2,K as r2,l as s2,o as t2,y as u2,a as v2,c as w2,t as x2,n as y2,i as z2,r as A2,e as B2,s as C2,zz as D2,Jz as E2,X as F2,T as G2,Zz as H2,f as I2};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Ob as d}from"./cli-1.1.23-s943evpq.mjs";import{UW as v,VW as U,XW as f,YW as h,ZW as c,cX as i}from"./cli-1.1.23-91n79mdp.mjs";import{C4 as O,E4 as b}from"./cli-1.1.23-z1mvb05m.mjs";import{W7 as B,X7 as A}from"./cli-1.1.23-9qe28y65.mjs";import{n9 as y,u9 as u}from"./cli-1.1.23-a1w72kgd.mjs";import{V_ as Y,X_ as I}from"./cli-1.1.23-keftnbc6.mjs";import{Rka as H,Ska as m,Wka as T,mla as G,pla as D}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as q,Nla as S,Tla as F}from"./cli-1.1.23-6vn61k3h.mjs";import{Nsa as p,dta as s}from"./cli-1.1.23-61q858yx.mjs";import{randomUUID as N}from"crypto";D();I();F();u();i();f();A();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let W=Q instanceof j?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,W));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,W=0;while(W<this.pending.length&&W<J){let Z;try{Z=Buffer.byteLength(H(this.pending[W]))}catch{this.pending.splice(W,1);continue}if(W>0&&Q+Z>K)break;Q+=Z,W++}return this.pending.splice(0,W)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,W)=>{Q.sleepResolve=null,W()},J,this,K)})}}A();class M{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await B(this.retryDelay(Q)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function P(J,K){let Q={...J};for(let[W,Z]of Object.entries(K))if((W==="external_metadata"||W==="internal_metadata")&&Q[W]&&typeof Q[W]==="object"&&typeof Z==="object"&&Z!==null)Q[W]={...Q[W],...Z};else Q[W]=Z;return Q}var g=20000,l=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var n=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let Q=[],W=new Map;for(let Z of J){let $=Z.event;switch($.type){case"message_start":{let z=$.message.id,L=K.scopeToMessage.get(C(Z));if(L)K.byMessage.delete(L);K.scopeToMessage.set(C(Z),z),K.byMessage.set(z,[]),Q.push(Z);break}case"content_block_delta":{if($.delta.type!=="text_delta"){Q.push(Z);break}let z=K.scopeToMessage.get(C(Z)),L=z?K.byMessage.get(z):void 0;if(!L){Q.push(Z);break}let V=L[$.index]??=[];V.push($.delta.text);let X=W.get(V);if(X){X.event.delta.text=V.join("");break}let w={type:"stream_event",uuid:Z.uuid,session_id:Z.session_id,parent_tool_use_id:Z.parent_tool_use_id,event:{type:"content_block_delta",index:$.index,delta:{type:"text_delta",text:V.join("")}}};W.set(V,w),Q.push(w);break}default:Q.push(Z)}}return Q}function t(J,K){J.byMessage.delete(K.message.id);let Q=C(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=y({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let W=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${W}`,this.sessionId=W.split("/").pop()||"",this.workerState=new M({send:(Z)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Z},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Z)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Z},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Z)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Z},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Z)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Z.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Z)=>{this.reportDelivery(Z.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Z,durationMs:$}=await Q;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:$,had_state:Z!==null});return Z}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,W,{timeout:Z=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Z});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=v(),V=L?d(L):null;if(V!==null&&V*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(V*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=n)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${W} returned ${z.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],V=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(V)&&V>=0)return{ok:!1,retryAfterMs:V*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${W} failed: ${q(z)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),l);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:W}={}){let Z={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...Q&&{is_compaction:!0},...W&&{agent_id:W}};await this.internalEventUploader.enqueue(Z)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0)return null;let Z=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[V,X]of Object.entries(K))z.searchParams.set(V,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),W,Q);if(!L)return null;Z.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Z.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Z}async getWithRetry(J,K,Q){for(let W=1;W<=10;W++){let Z;try{Z=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${W}/10): ${q($)}`,{level:"warn"}),W<10){let z=Math.min(500*2**(W-1),30000)+Math.random()*500;await B(z)}continue}if(Z.status>=200&&Z.status<300)return Z.data;if(Z.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Z.status} (attempt ${W}/10)`,{level:"warn"}),W<10){let $=Math.min(500*2**(W-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();I();F();f();A();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],Q=0,W;while((W=J.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,Q))!==-1){let Z=J.slice(Q,W);if(Q=W+2,!Z.trim())continue;let $={},z=!1;for(let L of Z.split(`
|
|
4
|
-
`)){if(L.startsWith(":")){z=!0;continue}let V=L.indexOf(":");if(V===-1)continue;let X=L.slice(0,V),w=L[V+1]===" "?L.slice(V+2):L.slice(V+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
-
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(Q)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,W,Z,$){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=W,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Z!==void 0&&Z>0)this.lastSequenceNum=Z;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),W={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(Q.Cookie)delete W.Authorization;if(this.lastSequenceNum>0)W["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Z=await fetch(K.href,{headers:W,signal:this.abortController.signal});if(!Z.ok){let z=WJ.has(Z.status);if(G(`SSETransport: HTTP ${Z.status}${z?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:Z.status}),z){this.state="closed",this.onCloseCallback?.(Z.status);return}this.handleConnectionError();return}if(!Z.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Z.body)}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,W="";try{while(!0){let{done:Z,value:$}=await K.read();if(Z)break;W+=Q.decode($,GJ);let{frames:z,remaining:L}=VJ(W);W=L;for(let V of z){if(this.resetLivenessTimer(),V.id){let X=parseInt(V.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(V.event&&V.data)this.handleSSEFrame(V.event,V.data);else if(V.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=m(K)}catch(Z){G(`SSETransport: Failed to parse client_event data: ${q(Z)}`,{level:"error"});return}let W=Q.payload;if(W&&typeof W==="object"&&"type"in W){let Z=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(W.type)}${Z}`),Y("info","cli_sse_message_received"),this.onData?.(H(W)+`
|
|
6
|
-
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Z=this.refreshHeaders();Object.assign(this.headers,Z),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),W=Math.max(0,Q+Q*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(W)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},W)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let W=1;W<=x;W++){try{let $=await p.post(this.postUrl,J,{headers:Q,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${W}/${x}`),Y("warn","cli_sse_post_retryable_error",{status:$.status,attempt:W})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${W}/${x}`),Y("warn","cli_sse_post_network_error",{attempt:W})}if(W===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let Z=Math.min(ZJ*Math.pow(2,W-1),$J);await B(Z)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
-
export{R as Fb,k as Gb,a as Hb,YJ as Ib};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{me as V,oe as B}from"./cli-1.1.23-se379e5e.mjs";import{CO as U,EO as w,pk as L,qS as F,wx as Q,xx as q}from"./cli-1.1.23-hynrf6x1.mjs";import{hba as K,mba as k}from"./cli-1.1.23-keftnbc6.mjs";import{mla as I,pla as $}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as G,Tla as _}from"./cli-1.1.23-6vn61k3h.mjs";import{Fta as Z}from"./cli-1.1.23-bdj1ne1r.mjs";async function C(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
|
|
2
|
-
export{C as ke,D as le};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kf as UG,Lf as RG,Nf as PJ}from"./cli-1.1.23-y3ea6683.mjs";import{$N as mJ,CN as NG,DG as QG,JN as iG,KG as uG,TN as qJ,UN as CG,WN as VJ,ao as h,ay as LG,bo as jG,by as XJ,co as p,do as MG,dy as cG,eo as r,fo as WG,io as BG,jo as EJ,kN as WJ,qO as mG,tG as YJ,tN as jJ,uG as CJ,uN as HJ,uO as pJ,vI as JG,wI as ZJ,wN as fG,xN as hG,yN as TG,zN as dG}from"./cli-1.1.23-hynrf6x1.mjs";import{AY as hJ,NY as zG,PY as TJ,SY as wG,TY as QJ,zY as LJ}from"./cli-1.1.23-ah6fas1q.mjs";import{I1 as JJ,JZ as GJ,OZ as AJ,PZ as bG,T1 as VG,YZ as DG,k1 as m,m1 as Y,o1 as Q,s1 as FG}from"./cli-1.1.23-7081am2r.mjs";import{o4 as n,p4 as L,q4 as X,r4 as a}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as $G}from"./cli-1.1.23-534g4n3n.mjs";import{R4 as AG,S4 as dJ}from"./cli-1.1.23-4tcfdexs.mjs";import{K8 as eG,a9 as gJ}from"./cli-1.1.23-9qe28y65.mjs";import{Ada as kG,Bda as zJ,J_ as S,Jda as pG,K_ as rG,ida as yG,jda as IG,kda as KJ,lha as sG,oha as _J}from"./cli-1.1.23-keftnbc6.mjs";import{hka as gG,ika as SJ}from"./cli-1.1.23-nr6xamsd.mjs";import{jka as C,mka as bJ}from"./cli-1.1.23-j9tza8qb.mjs";import{Mla as HG,Tla as tG}from"./cli-1.1.23-6vn61k3h.mjs";import{Bta as e,Fta as GG}from"./cli-1.1.23-bdj1ne1r.mjs";function KG(J){let G=oG.c(9),{serverToolsCount:Z,serverPromptsCount:z,serverResourcesCount:q}=J,H;if(G[0]!==z||G[1]!==q||G[2]!==Z){if(H=[],Z>0)H.push("tools");if(q>0)H.push("resources");if(z>0)H.push("prompts");G[0]=z,G[1]=q,G[2]=Z,G[3]=H}else H=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==H)W=H.length>0?L(r,{children:H}):"none",G[5]=H,G[6]=W;else W=G[6];let D;if(G[7]!==W)D=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=D;else D=G[8];return D}var oG;var SG=GG(()=>{VG();WG();a();oG=e(bG(),1)});function EG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function PG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var _G=()=>{};function OL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),{columns:D}=LJ(),[I,U]=E.default.useState(!1),[$,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=XJ(),[O,K]=E.default.useState(null),[P,w]=E.useState(!1),N=E.useRef(null),[g,j]=E.useState(!1),[c,T]=E.useState(null),[A,y]=E.useState(!1),[u,i]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),B=E.useRef(!1),[xG,XG]=E.useState(""),[DJ,wJ]=E.useState(0),[aG,nG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let YG=J.isAuthenticated||J.client.type==="connected"&&G>0,ZG=UG(),MJ=E.default.useCallback(async()=>{j(!1),T(null),w(!0);try{let V=await ZG(J.name),F=V.client.type==="connected";if(C("",{success:F}),F)q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){C("",{success:!1}),q?.(PG(V,J.name))}finally{w(!1)}},[ZG,J.name,q]),fJ=E.default.useCallback(async()=>{await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"needs-auth"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),C("",{}),q?.(`Disconnected from ${J.name}.`),y(!1),i(null),v(!1)},[J.name,J.config,J.scope,f,q]);zG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),zG("confirm:no",()=>{j(!1),T(null)},{context:"Confirmation",isActive:g}),zG("confirm:no",()=>{y(!1),i(null),v(!1)},{context:"Confirmation",isActive:A}),JJ((V,F)=>{if(F.return&&g)MJ();if(F.return&&A)if(l)fJ();else{let M=`${gG().CLAUDE_AI_ORIGIN}/settings/connectors`;i(M),v(!0),AG(M)}if(V==="c"&&!o){let M=O||c||u;if(M)GJ(M).then((d)=>{if(B.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 NJ=kG(String(J.name)),UJ=fG(_.commands,J.name).length,lG=RG(),RJ=E.default.useCallback(async()=>{let V=gG().CLAUDE_AI_ORIGIN,M=eG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let qG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${qG}?product_surface=${t}`}else d=`${V}/settings/connectors`;T(d),j(!0),C("",{}),await AG(d)},[J.config]),OJ=E.default.useCallback(()=>{y(!0),C("",{})},[]),yJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{if(await lG(J.name),J.config.type==="claudeai-proxy")C("",{new_state:V?"disabled":"enabled"});z()}catch(F){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${HG(F)}`)}},[J.client.type,J.config.type,J.name,lG,z,q]),IJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await CG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await VJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{nG(()=>M)}}),C("",{wasAuthenticated:J.isAuthenticated});let F=await ZG(J.name);if(F.client.type==="connected"){let M=YG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(F.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else sG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof qJ))R(F.message)}finally{U(!1),N.current=null,nG(null),XG("")}},[J.isAuthenticated,J.config,J.name,q,ZG,YG]),BJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await CG(J.name,J.config),C("",{}),await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"failed"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:O})]}),I&&O&&aG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(YJ,{value:xG,onChange:XG,onSubmit:(F)=>{aG(F.trim()),XG("")},cursorOffset:DJ,onChangeCursorOffset:wJ,columns:D-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),l?X(n,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),u&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:u})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(n,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(YG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!YG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[NJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[m("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),YG?X(Q,{children:[m("success",k)(S.tick)," authenticated"]}):X(Q,{children:[m("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(J.scope)})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:UJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),$&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",$]})}),b.length>0&&L(Y,{marginTop:1,children:L(QG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await IJ();break;case"clear-auth":await BJ();break;case"claudeai-auth":await RJ();break;case"claudeai-clear-auth":OJ();break;case"reconnectMcpServer":w(!0);try{let F=await ZG(J.name);if(J.config.type==="claudeai-proxy")C("",{success:F.client.type==="connected"});let{message:M}=EG(F,J.name);q?.(M)}catch(F){if(J.config.type==="claudeai-proxy")C("",{success:!1});q?.(PG(F,J.name))}finally{w(!1)}break;case"toggle-enabled":await yJ();break;case"back":z();break}},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $J=GG(()=>{rG();bJ();SJ();QJ();hJ();AJ();VG();TJ();mJ();pJ();PJ();iG();cG();gJ();dJ();tG();_J();pG();MG();uG();WG();jG();ZJ();CJ();SG();_G();a();E=e($G(),1)});function iL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),D=LG((P)=>P.mcp),I=UG(),U=RG(),[$,R]=OG.useState(!1),_=OG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),z()}catch(w){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${HG(w)}`)}},[J.client.type,J.name,U,z,q]),f=kG(String(J.name)),O=fG(D.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(WJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:D.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(QG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let w=await I(J.name),{message:N}=EG(w,J.name);q?.(N)}catch(w){q?.(PG(w,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")z()},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var OG;var cJ=GG(()=>{rG();QJ();VG();jJ();PJ();iG();cG();tG();pG();MG();uG();WG();jG();ZJ();SG();_G();a();OG=e($G(),1)});function tL(J){let G=FJ.c(44),{tool:Z,server:z,onBack:q}=J,[H,k]=vG.default.useState(""),W,D;if(G[0]!==z.name||G[1]!==Z){D=yG(Z.name,z.name);let s=Z.userFacingName?Z.userFacingName({}):D;W=IG(s),G[0]=z.name,G[1]=Z,G[2]=W,G[3]=D}else W=G[2],D=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let $=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];vG.default.useEffect(K,P);let w;if(G[13]!==$)w=$&&L(Q,{color:"success",children:" [read-only]"}),G[13]=$,G[14]=w;else w=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let j;if(G[19]!==I||G[20]!==w||G[21]!==N||G[22]!==g)j=X(n,{children:[I,w,N,g]}),G[19]=I,G[20]=w,G[21]=N,G[22]=g,G[23]=j;else j=G[23];let c=j,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==D)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:D})]}),G[25]=D,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let u;if(G[28]!==Z.name)u=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=u;else u=G[29];let i;if(G[30]!==H)i=H&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:H})]}),G[30]=H,G[31]=i;else i=G[31];let l;if(G[32]!==Z.inputJSONSchema)l=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((s)=>{let[x,B]=s,XG=Z.inputJSONSchema?.required?.includes(x);return X(Q,{children:["• ",x,XG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},x)})})]}),G[32]=Z.inputJSONSchema,G[33]=l;else l=G[33];let v;if(G[34]!==A||G[35]!==u||G[36]!==i||G[37]!==l)v=X(Y,{flexDirection:"column",children:[A,u,i,l]}),G[34]=A,G[35]=u,G[36]=i,G[37]=l,G[38]=v;else v=G[38];let o;if(G[39]!==q||G[40]!==z.name||G[41]!==v||G[42]!==c)o=L(BG,{title:c,subtitle:z.name,onCancel:q,inputGuide:uJ,children:v}),G[39]=q,G[40]=z.name,G[41]=v,G[42]=c,G[43]=o;else o=G[43];return o}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FJ,vG;var iJ=GG(()=>{VG();KJ();MG();EJ();a();FJ=e(bG(),1),vG=e($G(),1)});function PQ(J){let G=kJ.c(21),{server:Z,onSelectTool:z,onBack:q}=J,H=LG(xJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==H||G[2]!==Z.name)K=HJ(H,Z.name),G[1]=H,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,D;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,w)=>{let N=yG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,j=IG(g),c=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(c)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:j,value:w.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":c?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];D=W.map(K),G[4]=Z.name,G[5]=W,G[6]=D}else D=G[6];let I=D,U=`Tools for ${Z.name}`,$=W.length,R;if(G[9]!==W.length)R=zJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${$} ${R}`,f;if(G[11]!==q||G[12]!==z||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(QG,{options:I,onChange:(K)=>{let P=parseInt(K),w=W[P];if(w)z(w,P)},onCancel:q}),G[11]=q,G[12]=z,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(BG,{title:U,subtitle:_,onCancel:q,inputGuide:vJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function vJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xJ(J){return J.mcp.tools}var kJ;var aJ=GG(()=>{VG();KJ();iG();cG();pG();MG();uG();WG();EJ();jG();a();kJ=e(bG(),1)});
|
|
2
|
-
export{OL as Bf,$J as Cf,iL as Df,cJ as Ef,tL as Ff,iJ as Gf,PQ as Hf,aJ as If};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{nY as P,yY as g}from"./cli-1.1.23-c49xxwj4.mjs";import{Q2 as C,T2 as d}from"./cli-1.1.23-jam2qpf9.mjs";import{$$ as u,$_ as U,Z_ as A,_$ as T,a$ as w}from"./cli-1.1.23-keftnbc6.mjs";import{Rka as O,Ska as W,Wka as c,mla as X,pka as R,pla as h,rka as F}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as V,Rla as N,Tla as m}from"./cli-1.1.23-6vn61k3h.mjs";import{Wla as k,fma as S}from"./cli-1.1.23-fxyf1cph.mjs";import{Kra as D,Lna as B,Pna as E,Rna as M}from"./cli-1.1.23-wkvjbzna.mjs";import{Fta as $}from"./cli-1.1.23-bdj1ne1r.mjs";function H(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function e(q,G=10){if(process.platform==="win32"){let L=`
|
|
2
|
-
$pid = ${String(q)}
|
|
3
|
-
$ancestors = @()
|
|
4
|
-
for ($i = 0; $i -lt ${G}; $i++) {
|
|
5
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
|
|
6
|
-
if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
7
|
-
$pid = $proc.ParentProcessId
|
|
8
|
-
$ancestors += $pid
|
|
9
|
-
}
|
|
10
|
-
$ancestors -join ','
|
|
11
|
-
`.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map((Z)=>parseInt(Z,10)).filter((Z)=>!isNaN(Z))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
|
|
12
|
-
`).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function qq(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=A(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function zq(q,G=10){if(process.platform==="win32"){let L=`
|
|
13
|
-
$currentPid = ${String(q)}
|
|
14
|
-
$commands = @()
|
|
15
|
-
for ($i = 0; $i -lt ${G}; $i++) {
|
|
16
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
|
|
17
|
-
if (-not $proc) { break }
|
|
18
|
-
if ($proc.CommandLine) { $commands += $proc.CommandLine }
|
|
19
|
-
if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
20
|
-
$currentPid = $proc.ParentProcessId
|
|
21
|
-
}
|
|
22
|
-
$commands -join [char]0
|
|
23
|
-
`.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var K=$(()=>{w()});import{chmod as a,mkdir as l,readdir as p,readFile as o,unlink as I,writeFile as j}from"fs/promises";import{join as Y}from"path";function _(){return Y(k(),"sessions")}function n(){return}async function vq(){if(P()!=null)return!1;let q=n()??"interactive",G=_(),J=Y(G,`${process.pid}.json`);R(async()=>{try{await I(J)}catch{}});try{return await l(G,{recursive:!0,mode:448}),await a(G,448),await j(J,O({pid:process.pid,sessionId:B(),cwd:M(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),y?.(),y=E((z)=>{v({sessionId:z})}),!0}catch(z){return X(`[concurrentSessions] register failed: ${V(z)}`),!1}}async function v(q){let G=Y(_(),`${process.pid}.json`);try{let J=W(await o(G,"utf8"));await j(G,O({...J,...q}))}catch(J){X(`[concurrentSessions] updatePidFile failed: ${V(J)}`)}}async function Aq(q){if(!q)return;await v({name:q})}async function b(q){await v({bridgeSessionId:q})}async function Hq(){let q=_(),G;try{G=await p(q)}catch(z){if(!N(z))X(`[concurrentSessions] readdir failed: ${V(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(H(L))J++;else if(T()!=="wsl")I(Y(q,z)).catch(()=>{})}return J}var y;var f=$(()=>{D();F();h();S();m();K();u();c();g()});function Eq(q){x=q,b(t()??null).catch(()=>{})}function r(){return x}function t(){let q=r();return q?C(q.bridgeSessionId):void 0}var x=null;var s=$(()=>{f();d()});
|
|
24
|
-
export{H as UX,e as VX,qq as WX,zq as XX,K as YX,vq as ZX,Aq as _X,b as $X,Hq as aY,f as bY,Eq as cY,r as dY,t as eY,s as fY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sd as t,td as DJ}from"./cli-1.1.23-1rea0qrn.mjs";import{ii as r,ji as IJ}from"./cli-1.1.23-akghy19s.mjs";import{EE as jJ,EO as $J,FE as PJ,Im as m,KE as o,Kj as p,LE as xJ,Om as wJ,VT as bJ,Vn as JJ,WF as a,XF as LJ,cm as g,fm as UJ,pz as c,qS as h,qz as MJ,sm as d,tH as s,xE as YJ,xH as yJ,xm as _J,xx as XJ,yH as l,zH as TJ}from"./cli-1.1.23-hynrf6x1.mjs";import{NV as u,OV as f,ZV as BJ}from"./cli-1.1.23-pjmjhm4y.mjs";import{r7 as QJ}from"./cli-1.1.23-9qe28y65.mjs";import{Faa as KJ,Zga as A,_ga as NJ,gha as U,jea as I,oha as k,vea as D,wea as zJ}from"./cli-1.1.23-keftnbc6.mjs";import{yia as GJ}from"./cli-1.1.23-e3g5ahaf.mjs";import{jka as b,mka as C}from"./cli-1.1.23-j9tza8qb.mjs";import{Wka as qJ,_ka as W,cla as VJ,mla as y,pla as WJ}from"./cli-1.1.23-kc1tbe8y.mjs";import{Tla as e}from"./cli-1.1.23-6vn61k3h.mjs";import{Wla as _,fma as ZJ}from"./cli-1.1.23-fxyf1cph.mjs";import{Bpa as F,Kra as S,Soa as H}from"./cli-1.1.23-wkvjbzna.mjs";import{Cta as CJ}from"./cli-1.1.23-bdj1ne1r.mjs";xJ();IJ();S();GJ();C();KJ();h();QJ();qJ();$J();JJ();k();e();h();XJ();YJ();function j(){}S();C();NJ();WJ();ZJ();VJ();MJ();k();LJ();_J();bJ();TJ();BJ();zJ();wJ();UJ();import{join as Z}from"path";var AJ=30;function N(){let q=((I()||{}).cleanupPeriodDays??AJ)*24*60*60*1000;return new Date(Date.now()-q)}function i(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function vJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function P(X,J,q){let $={messages:0,errors:0};try{let G=await W().readdir(X);for(let K of G)try{if(vJ(K.name)<J)if(await W().unlink(Z(X,K.name)),q)$.messages++;else $.errors++}catch(Y){U(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")U(G)}return $}async function HJ(){let X=W(),J=N(),q=A.errors(),$=A.baseLogs(),G=await P(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Q)=>Q.isDirectory()&&Q.name.startsWith("mcp-logs-")).map((Q)=>Z($,Q.name));for(let Q of Y)G=i(G,await P(Q,J,!0)),await V(Q,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")U(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function V(X,J){try{await J.rmdir(X)}catch{}}async function FJ(){let X=N(),J={messages:0,errors:0},q=p(),$=W(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Z(q,K.name),Q;try{Q=await $.readdir(Y)}catch{J.errors++;continue}for(let z of Q)if(z.isFile()){if(!z.name.endsWith(".jsonl")&&!z.name.endsWith(".cast"))continue;try{if(await w(Z(Y,z.name),X,$))J.messages++}catch{J.errors++}}else if(z.isDirectory()){let L=Z(Y,z.name),B=Z(L,m),O;try{O=await $.readdir(B)}catch{await V(L,$);continue}for(let M of O)if(M.isFile())try{if(await w(Z(B,M.name),X,$))J.messages++}catch{J.errors++}else if(M.isDirectory()){let T=Z(B,M.name),R;try{R=await $.readdir(T)}catch{continue}for(let E of R){if(!E.isFile())continue;try{if(await w(Z(T,E.name),X,$))J.messages++}catch{J.errors++}}await V(T,$)}await V(B,$),await V(L,$)}await V(Y,$)}return J}async function x(X,J,q=!0){let $=N(),G={messages:0,errors:0},K=W(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Q of Y){if(!Q.isFile()||!Q.name.endsWith(J))continue;try{if(await w(Z(X,Q.name),$,K))G.messages++}catch{G.errors++}}if(q)await V(X,K);return G}async function OJ(){let X=d(),J=await x(X,".md"),q=Z(_(),"plans");if(q!==X){let $=await x(q,".md");return i(J,$)}return J}async function RJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));await Promise.all(Y.map(async(Q)=>{try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await V(G,q)}catch($){U($)}return J}async function EJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=_(),G=Z($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Q)=>Q.isDirectory()).map((Q)=>Z(G,Q.name));for(let Q of Y)try{if((await q.stat(Q)).mtime<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await V(G,q)}catch($){U($)}return J}async function kJ(){let X=N(),J={messages:0,errors:0},q=W();try{let $=Z(_(),"tasks"),G=f(u()),K;try{K=await q.readdir($)}catch{return J}for(let Y of K){if(!Y.isDirectory()||Y.name===G)continue;let Q=Z($,Y.name);try{if(await hJ(Q,q)<X)await q.rm(Q,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}}await V($,q)}catch($){U($)}return J}async function hJ(X,J){let q=(await J.stat(X)).mtime,$=await J.readdir(X).catch(()=>[]);for(let G of $){if(!G.isFile())continue;try{let{mtime:K}=await J.stat(Z(X,G.name));if(K>q)q=K}catch{}}return q}async function SJ(){let X=N(),J={messages:0,errors:0},q=W(),$=Z(_(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Z($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function n(){let{errors:X}=l();if(X.length>0&&D("cleanupPeriodDays")){y("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await HJ(),await FJ(),await OJ(),await RJ(),await EJ(),await kJ(),await SJ(),await c(),await a(N());let J=await g(N());if(J>0)b("",{removed:J})}yJ();DJ();var pJ=(PJ(),CJ(jJ));var v=600000;function mX(){r(),j(),pJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await n();if(F()&&H()>Date.now()-60000){setTimeout(J,v).unref();return}await s()}setTimeout(J,v).unref()}
|
|
2
|
-
export{mX as Va};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SF as L,TF as h,Xx as J,Yx as Z,yH as z,zH as M}from"./cli-1.1.23-hynrf6x1.mjs";import{PZ as X}from"./cli-1.1.23-7081am2r.mjs";import{s4 as W}from"./cli-1.1.23-534g4n3n.mjs";import{Kra as V,fra as H}from"./cli-1.1.23-wkvjbzna.mjs";import{Bta as D,Fta as U}from"./cli-1.1.23-bdj1ne1r.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
-
export{v as yg,A as zg};
|
|
@@ -1,26 +0,0 @@
|
|
|
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 x,S as y,E as z};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nia as G,yia as K}from"./cli-1.1.23-e3g5ahaf.mjs";import{oja as j,qja as M,rja as J,sja as N}from"./cli-1.1.23-a95wepyn.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
|
|
2
|
-
export{q as yb,$ as zb};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ifa as R,__ as Q,a$ as M,nfa as P}from"./cli-1.1.23-keftnbc6.mjs";import{mla as G,pla as C}from"./cli-1.1.23-kc1tbe8y.mjs";import{Fta as j}from"./cli-1.1.23-bdj1ne1r.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function k(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function U(q){let z=q.split(`
|
|
2
|
-
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of k()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function B(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await f();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
-
export{g as Q4,w as R4,m as S4};
|