@claudiolabs/claudin 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.0.15-94qgeewh.mjs +1 -0
- package/dist/chunks/App-1.0.15-57jq3dm4.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.15-7j5pjhqn.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.15-gvkrabya.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.15-maf47ycb.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.15-ksfgz563.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.15-qryrc5yd.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.15-wfx96scv.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.15-8kva6vp4.mjs +7 -0
- package/dist/chunks/Doctor-1.0.15-fs1gd72r.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.15-m3d89j0h.mjs +6 -0
- package/dist/chunks/Grove-1.0.15-bcp3xph8.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.15-cvm8f87e.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.15-ex27d27t.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.15-fw1wwzdf.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.15-6cbwbchq.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.15-w155hs9q.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.15-yjze889w.mjs +1 -0
- package/dist/chunks/REPL-1.0.15-sbk0f748.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.15-03thwnty.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.15-7wpe589z.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.15-fxpyd5q2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.15-0tjsz46h.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.15-y06d9cgd.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.15-91km7rpd.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.15-5arre2f8.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.15-ap6b593c.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.15-gmqjj125.mjs +1 -0
- package/dist/chunks/add-dir-1.0.15-hrrne1tk.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.15-mejg5tt1.mjs +1 -0
- package/dist/chunks/agents-1.0.15-4jrtw40v.mjs +110 -0
- package/dist/chunks/agents-1.0.15-gjv6cvx4.mjs +3 -0
- package/dist/chunks/api-1.0.15-zkp1pkwn.mjs +1 -0
- package/dist/chunks/asciicast-1.0.15-47tpa2n4.mjs +1 -0
- package/dist/chunks/assistant-1.0.15-7k4zhhjv.mjs +1 -0
- package/dist/chunks/auth-1.0.15-6cfbwp6q.mjs +1 -0
- package/dist/chunks/auth-1.0.15-gws12a3c.mjs +1 -0
- package/dist/chunks/autoMode-1.0.15-03kh1nhy.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.15-tapqkcdv.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.15-x7vh5q4q.mjs +1 -0
- package/dist/chunks/branch-1.0.15-jtjk17fx.mjs +4 -0
- package/dist/chunks/bridge-1.0.15-jj3fxj6x.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.15-w0d7jbe6.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.15-3467pt2w.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.15-7hen48qx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.15-tdhgqvrs.mjs +1 -0
- package/dist/chunks/btw-1.0.15-d6jb050c.mjs +1 -0
- package/dist/chunks/buddy-1.0.15-k7p7569n.mjs +3 -0
- package/dist/chunks/cacache-1.0.15-6jycmxaf.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.15-cbw43d6t.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.15-e5g17k9c.mjs +4 -0
- package/dist/chunks/caches-1.0.15-679h38c6.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.15-8aewbzbn.mjs +1 -0
- package/dist/chunks/claudemd-1.0.15-rcmy3kyx.mjs +1 -0
- package/dist/chunks/clear-1.0.15-hqm9m5d6.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.15-1ewmdq7w.mjs +1 -0
- package/dist/chunks/cli-1.0.15-0bxpp6bh.mjs +20 -0
- package/dist/chunks/cli-1.0.15-0cv8mhk9.mjs +3 -0
- package/dist/chunks/cli-1.0.15-0dwyast6.mjs +2 -0
- package/dist/chunks/cli-1.0.15-0jqatfe7.mjs +2 -0
- package/dist/chunks/cli-1.0.15-0trpexvr.mjs +45 -0
- package/dist/chunks/cli-1.0.15-0w1nrkxx.mjs +2 -0
- package/dist/chunks/cli-1.0.15-0w3yfegp.mjs +2 -0
- package/dist/chunks/cli-1.0.15-22y9bkkh.mjs +2 -0
- package/dist/chunks/cli-1.0.15-24x4yqe7.mjs +2 -0
- package/dist/chunks/cli-1.0.15-27kfy5t8.mjs +4 -0
- package/dist/chunks/cli-1.0.15-2bkbr8av.mjs +2 -0
- package/dist/chunks/cli-1.0.15-2c6gnna0.mjs +17 -0
- package/dist/chunks/cli-1.0.15-2cy827x7.mjs +2 -0
- package/dist/chunks/cli-1.0.15-2mmdf6ne.mjs +2 -0
- package/dist/chunks/cli-1.0.15-2vbcyvpm.mjs +4 -0
- package/dist/chunks/cli-1.0.15-3kkk11ba.mjs +2 -0
- package/dist/chunks/cli-1.0.15-3r2dts4j.mjs +2 -0
- package/dist/chunks/cli-1.0.15-3t4ep5qt.mjs +2 -0
- package/dist/chunks/cli-1.0.15-403qkcqy.mjs +18 -0
- package/dist/chunks/cli-1.0.15-42150f5m.mjs +2 -0
- package/dist/chunks/cli-1.0.15-45w1vdpc.mjs +3 -0
- package/dist/chunks/cli-1.0.15-4a9g8a8r.mjs +2 -0
- package/dist/chunks/cli-1.0.15-4av09dyy.mjs +2 -0
- package/dist/chunks/cli-1.0.15-4evm96aw.mjs +42 -0
- package/dist/chunks/cli-1.0.15-4gh5h0g5.mjs +2 -0
- package/dist/chunks/cli-1.0.15-4nyx02ky.mjs +2 -0
- package/dist/chunks/cli-1.0.15-4rsdmbvj.mjs +133 -0
- package/dist/chunks/cli-1.0.15-4whbpjs9.mjs +3 -0
- package/dist/chunks/cli-1.0.15-51jmehra.mjs +6 -0
- package/dist/chunks/cli-1.0.15-56c35td6.mjs +2 -0
- package/dist/chunks/cli-1.0.15-5hhphy4q.mjs +2 -0
- package/dist/chunks/cli-1.0.15-5n34cvnr.mjs +2 -0
- package/dist/chunks/cli-1.0.15-60txcqbr.mjs +2 -0
- package/dist/chunks/cli-1.0.15-627wdw2h.mjs +2 -0
- package/dist/chunks/cli-1.0.15-6aqb3zvc.mjs +4 -0
- package/dist/chunks/cli-1.0.15-6b5hvymy.mjs +12 -0
- package/dist/chunks/cli-1.0.15-6etncrah.mjs +2 -0
- package/dist/chunks/cli-1.0.15-6n5w4q79.mjs +2 -0
- package/dist/chunks/cli-1.0.15-6tqavbkd.mjs +2 -0
- package/dist/chunks/cli-1.0.15-789kn3by.mjs +2 -0
- package/dist/chunks/cli-1.0.15-7aa072q4.mjs +12 -0
- package/dist/chunks/cli-1.0.15-7e9adexx.mjs +4 -0
- package/dist/chunks/cli-1.0.15-7ewpqvr2.mjs +25 -0
- package/dist/chunks/cli-1.0.15-7mvdkxm5.mjs +2 -0
- package/dist/chunks/cli-1.0.15-7ndc7stb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-7rdtqytk.mjs +2 -0
- package/dist/chunks/cli-1.0.15-7s943xnf.mjs +2 -0
- package/dist/chunks/cli-1.0.15-7wvjptzb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-7xhh90ex.mjs +2 -0
- package/dist/chunks/cli-1.0.15-806eqffj.mjs +2 -0
- package/dist/chunks/cli-1.0.15-845m2mqp.mjs +7 -0
- package/dist/chunks/cli-1.0.15-897dp7hb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-897x1y4f.mjs +2 -0
- package/dist/chunks/cli-1.0.15-8kr6hy0g.mjs +2 -0
- package/dist/chunks/cli-1.0.15-8nvbby9w.mjs +34 -0
- package/dist/chunks/cli-1.0.15-8pv1ndbb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-8w43v6k1.mjs +2 -0
- package/dist/chunks/cli-1.0.15-90162v45.mjs +2 -0
- package/dist/chunks/cli-1.0.15-98tcqft6.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9aja3602.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9bymg5sy.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9cvsym9y.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9d19jbmy.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9rd8f7my.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9rjbyjmt.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9sp8car7.mjs +2 -0
- package/dist/chunks/cli-1.0.15-9vc0hfzc.mjs +3 -0
- package/dist/chunks/cli-1.0.15-a6cb4yq6.mjs +2 -0
- package/dist/chunks/cli-1.0.15-a7t3xpjc.mjs +4 -0
- package/dist/chunks/cli-1.0.15-adsqpzey.mjs +12 -0
- package/dist/chunks/cli-1.0.15-aqa2fb74.mjs +2 -0
- package/dist/chunks/cli-1.0.15-ar3s6h2h.mjs +2 -0
- package/dist/chunks/cli-1.0.15-awv56wcy.mjs +24 -0
- package/dist/chunks/cli-1.0.15-axetmvxc.mjs +2 -0
- package/dist/chunks/cli-1.0.15-b22bjah2.mjs +58 -0
- package/dist/chunks/cli-1.0.15-b3zhfvk0.mjs +2 -0
- package/dist/chunks/cli-1.0.15-bb8j8b0v.mjs +5501 -0
- package/dist/chunks/cli-1.0.15-bgkssm1d.mjs +3 -0
- package/dist/chunks/cli-1.0.15-bhsgw22k.mjs +2 -0
- package/dist/chunks/cli-1.0.15-bhvqf0n5.mjs +4 -0
- package/dist/chunks/cli-1.0.15-bw109641.mjs +2 -0
- package/dist/chunks/cli-1.0.15-c96jhmsg.mjs +3 -0
- package/dist/chunks/cli-1.0.15-cdr1b60q.mjs +2 -0
- package/dist/chunks/cli-1.0.15-cemjfg9r.mjs +2 -0
- package/dist/chunks/cli-1.0.15-cf8b3knv.mjs +2 -0
- package/dist/chunks/cli-1.0.15-chtrm59p.mjs +2 -0
- package/dist/chunks/cli-1.0.15-d5wv3x0f.mjs +24 -0
- package/dist/chunks/cli-1.0.15-d66dn4ap.mjs +4 -0
- package/dist/chunks/cli-1.0.15-dnq4fedm.mjs +39 -0
- package/dist/chunks/cli-1.0.15-dryj6zd0.mjs +1 -0
- package/dist/chunks/cli-1.0.15-dsvwedxw.mjs +2 -0
- package/dist/chunks/cli-1.0.15-dyc6dr50.mjs +2 -0
- package/dist/chunks/cli-1.0.15-e0drdd8f.mjs +2 -0
- package/dist/chunks/cli-1.0.15-e34c38pv.mjs +6 -0
- package/dist/chunks/cli-1.0.15-e4z0e2ej.mjs +18 -0
- package/dist/chunks/cli-1.0.15-e57f0rf3.mjs +2 -0
- package/dist/chunks/cli-1.0.15-ekbw5ftp.mjs +2 -0
- package/dist/chunks/cli-1.0.15-em7fgkj3.mjs +2 -0
- package/dist/chunks/cli-1.0.15-f2k7cw2y.mjs +2 -0
- package/dist/chunks/cli-1.0.15-f4s33z1f.mjs +2 -0
- package/dist/chunks/cli-1.0.15-fa1v9kw0.mjs +2 -0
- package/dist/chunks/cli-1.0.15-fhxg6mbk.mjs +2 -0
- package/dist/chunks/cli-1.0.15-fvcptqfy.mjs +24 -0
- package/dist/chunks/cli-1.0.15-fwe1633q.mjs +2 -0
- package/dist/chunks/cli-1.0.15-g0xatz0p.mjs +67 -0
- package/dist/chunks/cli-1.0.15-g1hd6adc.mjs +2 -0
- package/dist/chunks/cli-1.0.15-g2mwrdzj.mjs +2 -0
- package/dist/chunks/cli-1.0.15-gp303ekk.mjs +2 -0
- package/dist/chunks/cli-1.0.15-hf9a4f7g.mjs +2 -0
- package/dist/chunks/cli-1.0.15-hmb8ny4m.mjs +2 -0
- package/dist/chunks/cli-1.0.15-hqcpxa3q.mjs +50 -0
- package/dist/chunks/cli-1.0.15-hvfz05y7.mjs +2 -0
- package/dist/chunks/cli-1.0.15-j5kn8e7z.mjs +2 -0
- package/dist/chunks/cli-1.0.15-jm1dwnr3.mjs +2 -0
- package/dist/chunks/cli-1.0.15-jm8pjdm2.mjs +2 -0
- package/dist/chunks/cli-1.0.15-jw4mky36.mjs +5 -0
- package/dist/chunks/cli-1.0.15-jzs0za6k.mjs +2 -0
- package/dist/chunks/cli-1.0.15-kcp001eh.mjs +2 -0
- package/dist/chunks/cli-1.0.15-krzz1he3.mjs +4 -0
- package/dist/chunks/cli-1.0.15-m1vr3gw9.mjs +2 -0
- package/dist/chunks/cli-1.0.15-m9f1gq83.mjs +2 -0
- package/dist/chunks/cli-1.0.15-mcyk2xwv.mjs +18 -0
- package/dist/chunks/cli-1.0.15-mf4fkng2.mjs +2 -0
- package/dist/chunks/cli-1.0.15-mfmwv3mt.mjs +2 -0
- package/dist/chunks/cli-1.0.15-mh55f2tj.mjs +2 -0
- package/dist/chunks/cli-1.0.15-ms1k99rq.mjs +2 -0
- package/dist/chunks/cli-1.0.15-mydrjdjj.mjs +2 -0
- package/dist/chunks/cli-1.0.15-myfcyqkj.mjs +3 -0
- package/dist/chunks/cli-1.0.15-n0d6pnwr.mjs +8 -0
- package/dist/chunks/cli-1.0.15-n0d8gv7t.mjs +3 -0
- package/dist/chunks/cli-1.0.15-n5pap8w0.mjs +2 -0
- package/dist/chunks/cli-1.0.15-n6aad9yp.mjs +2 -0
- package/dist/chunks/cli-1.0.15-nbxzsrs2.mjs +2 -0
- package/dist/chunks/cli-1.0.15-nc1spcpt.mjs +4 -0
- package/dist/chunks/cli-1.0.15-nrwby2vr.mjs +59 -0
- package/dist/chunks/cli-1.0.15-nw596g6c.mjs +15 -0
- package/dist/chunks/cli-1.0.15-nwh8gbsc.mjs +15 -0
- package/dist/chunks/cli-1.0.15-p8ybzj4y.mjs +2 -0
- package/dist/chunks/cli-1.0.15-pb66jxfs.mjs +2 -0
- package/dist/chunks/cli-1.0.15-peheghd8.mjs +2 -0
- package/dist/chunks/cli-1.0.15-pgw4aj9s.mjs +2 -0
- package/dist/chunks/cli-1.0.15-pmb32v5y.mjs +2 -0
- package/dist/chunks/cli-1.0.15-pq7wsjnv.mjs +2 -0
- package/dist/chunks/cli-1.0.15-q0csazva.mjs +2 -0
- package/dist/chunks/cli-1.0.15-q8atgecb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-qdf1s8sn.mjs +2 -0
- package/dist/chunks/cli-1.0.15-qfjesd9x.mjs +15 -0
- package/dist/chunks/cli-1.0.15-qqt1dsxy.mjs +2 -0
- package/dist/chunks/cli-1.0.15-qssbxbfj.mjs +9 -0
- package/dist/chunks/cli-1.0.15-qzntmfak.mjs +2 -0
- package/dist/chunks/cli-1.0.15-qzrbfzae.mjs +17 -0
- package/dist/chunks/cli-1.0.15-r3wehfgz.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rbpevwrr.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rgkm224b.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rjkszdee.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rkt37xy5.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rtvt5q4j.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rvsmamhh.mjs +2 -0
- package/dist/chunks/cli-1.0.15-rxvpfc2v.mjs +2 -0
- package/dist/chunks/cli-1.0.15-s13zq2g6.mjs +133 -0
- package/dist/chunks/cli-1.0.15-sbj8kz50.mjs +6 -0
- package/dist/chunks/cli-1.0.15-sdhb2jht.mjs +2 -0
- package/dist/chunks/cli-1.0.15-sens53x7.mjs +2 -0
- package/dist/chunks/cli-1.0.15-swecq77h.mjs +2 -0
- package/dist/chunks/cli-1.0.15-tf9z0qgg.mjs +2 -0
- package/dist/chunks/cli-1.0.15-tksefhgw.mjs +2 -0
- package/dist/chunks/cli-1.0.15-tn54byy9.mjs +2 -0
- package/dist/chunks/cli-1.0.15-twyy943s.mjs +2 -0
- package/dist/chunks/cli-1.0.15-ty850zve.mjs +3 -0
- package/dist/chunks/cli-1.0.15-v7c0mmpf.mjs +2 -0
- package/dist/chunks/cli-1.0.15-vc4w0s0f.mjs +2 -0
- package/dist/chunks/cli-1.0.15-vdfjzwyj.mjs +25 -0
- package/dist/chunks/cli-1.0.15-verazxs1.mjs +2 -0
- package/dist/chunks/cli-1.0.15-vf4rh7x3.mjs +12 -0
- package/dist/chunks/cli-1.0.15-vpx3dnt7.mjs +4 -0
- package/dist/chunks/cli-1.0.15-vx6w5s12.mjs +6 -0
- package/dist/chunks/cli-1.0.15-w0jtt57y.mjs +3 -0
- package/dist/chunks/cli-1.0.15-w0kza2nn.mjs +2 -0
- package/dist/chunks/cli-1.0.15-w448x72m.mjs +2 -0
- package/dist/chunks/cli-1.0.15-w8jywdxr.mjs +2 -0
- package/dist/chunks/cli-1.0.15-w8wkkszd.mjs +2 -0
- package/dist/chunks/cli-1.0.15-wbd53m9s.mjs +3 -0
- package/dist/chunks/cli-1.0.15-whef4gxw.mjs +2 -0
- package/dist/chunks/cli-1.0.15-whew30gy.mjs +2 -0
- package/dist/chunks/cli-1.0.15-wm6cn7n7.mjs +5 -0
- package/dist/chunks/cli-1.0.15-wsg9cdqp.mjs +2 -0
- package/dist/chunks/cli-1.0.15-wv1r62fb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-x203gzv4.mjs +2 -0
- package/dist/chunks/cli-1.0.15-x68z512d.mjs +3 -0
- package/dist/chunks/cli-1.0.15-x6bgcj6j.mjs +202 -0
- package/dist/chunks/cli-1.0.15-xw62agkd.mjs +16 -0
- package/dist/chunks/cli-1.0.15-y207bwfz.mjs +2 -0
- package/dist/chunks/cli-1.0.15-y8h6wfxv.mjs +2 -0
- package/dist/chunks/cli-1.0.15-yhkncx78.mjs +21 -0
- package/dist/chunks/cli-1.0.15-yrdyyvx7.mjs +6 -0
- package/dist/chunks/cli-1.0.15-yv6jvtd3.mjs +2 -0
- package/dist/chunks/cli-1.0.15-yxt9f7qb.mjs +2 -0
- package/dist/chunks/cli-1.0.15-z3j7rgyp.mjs +9 -0
- package/dist/chunks/cli-1.0.15-zfe6g19w.mjs +2 -0
- package/dist/chunks/cli-1.0.15-zhz992pf.mjs +2 -0
- package/dist/chunks/cli-1.0.15-zv07g6mh.mjs +4 -0
- package/dist/chunks/client-1.0.15-1nanrm3v.mjs +1 -0
- package/dist/chunks/color-1.0.15-7h09v05v.mjs +1 -0
- package/dist/chunks/compact-1.0.15-bbr712y6.mjs +3 -0
- package/dist/chunks/config-1.0.15-86c37qyg.mjs +1 -0
- package/dist/chunks/config-1.0.15-qkzra3hn.mjs +1 -0
- package/dist/chunks/constants-1.0.15-n7mjeepn.mjs +1 -0
- package/dist/chunks/context-1.0.15-04nqna96.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.15-ph9z0gj0.mjs +1 -0
- package/dist/chunks/conversation-1.0.15-vv1sm2bq.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.15-agdjct0c.mjs +1 -0
- package/dist/chunks/copy-1.0.15-rq1dt4kg.mjs +9 -0
- package/dist/chunks/cost-1.0.15-3kw2p2ma.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.15-sz4v3xe4.mjs +1 -0
- package/dist/chunks/createSession-1.0.15-x29zzv23.mjs +1 -0
- package/dist/chunks/debug-1.0.15-yf1ce0zj.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.15-8mhqj6ng.mjs +1446 -0
- package/dist/chunks/desktop-1.0.15-2hzvek03.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.15-11srzskh.mjs +1 -0
- package/dist/chunks/detection-1.0.15-q1b1fd1n.mjs +1 -0
- package/dist/chunks/diff-1.0.15-8tkhhfaj.mjs +1 -0
- package/dist/chunks/doctor-1.0.15-7dd5as8s.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.15-mmahxf4w.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.15-phgxtad2.mjs +1 -0
- package/dist/chunks/effort-1.0.15-jabawz09.mjs +10 -0
- package/dist/chunks/engine-1.0.15-m4qq3fdj.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.15-wwy4m1tg.mjs +1 -0
- package/dist/chunks/envUtils-1.0.15-mhw6b6wv.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.15-xvpfcead.mjs +1 -0
- package/dist/chunks/environments-1.0.15-01feph82.mjs +1 -0
- package/dist/chunks/errors-1.0.15-p523knhf.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.15-500mkp8k.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.0.15-c9gp096c.mjs +1 -0
- package/dist/chunks/exit-1.0.15-5bxkf4wt.mjs +1 -0
- package/dist/chunks/explorer-1.0.15-3xckk4q6.mjs +1 -0
- package/dist/chunks/export-1.0.15-x26gp84a.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.15-kzammpx2.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.15-w616etne.mjs +1 -0
- package/dist/chunks/fast-1.0.15-z3hr29w4.mjs +1 -0
- package/dist/chunks/feedback-1.0.15-p67b2923.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.15-84q6s4wh.mjs +1 -0
- package/dist/chunks/git-1.0.15-3hhh7mkb.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.15-29cbxgpc.mjs +1 -0
- package/dist/chunks/goal-1.0.15-y0abdze5.mjs +4 -0
- package/dist/chunks/grove-1.0.15-7d359a5x.mjs +1 -0
- package/dist/chunks/growthbook-1.0.15-x8tbedqg.mjs +1 -0
- package/dist/chunks/headless-1.0.15-9xqc8rrv.mjs +2 -0
- package/dist/chunks/heapdump-1.0.15-b1a00cnt.mjs +6 -0
- package/dist/chunks/help-1.0.15-by78ztvc.mjs +1 -0
- package/dist/chunks/hookChains-1.0.15-q3mq63xw.mjs +3 -0
- package/dist/chunks/hooks-1.0.15-898qsapq.mjs +1 -0
- package/dist/chunks/hooks-1.0.15-bwxae2k4.mjs +79 -0
- package/dist/chunks/ide-1.0.15-dqp39p4j.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.15-s9z99aka.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.15-ww5f1k45.mjs +1 -0
- package/dist/chunks/index-1.0.15-22hn7r2q.mjs +1 -0
- package/dist/chunks/index-1.0.15-41x2b1ba.mjs +1 -0
- package/dist/chunks/index-1.0.15-4cngq6jm.mjs +1 -0
- package/dist/chunks/index-1.0.15-563jcaxp.mjs +1 -0
- package/dist/chunks/index-1.0.15-5ddgt9w9.mjs +5 -0
- package/dist/chunks/index-1.0.15-62kzbthr.mjs +1 -0
- package/dist/chunks/index-1.0.15-6xra7cxc.mjs +1 -0
- package/dist/chunks/index-1.0.15-apej2eyy.mjs +17 -0
- package/dist/chunks/index-1.0.15-d7343p0m.mjs +9 -0
- package/dist/chunks/index-1.0.15-dn4c5ac3.mjs +1 -0
- package/dist/chunks/index-1.0.15-e0ntb25e.mjs +1 -0
- package/dist/chunks/index-1.0.15-e1v2z7sq.mjs +1 -0
- package/dist/chunks/index-1.0.15-f31ysjpc.mjs +30 -0
- package/dist/chunks/index-1.0.15-g3nxsrs6.mjs +1 -0
- package/dist/chunks/index-1.0.15-gdf1p5w0.mjs +1 -0
- package/dist/chunks/index-1.0.15-h0e2n5hw.mjs +1 -0
- package/dist/chunks/index-1.0.15-hppyew9q.mjs +9 -0
- package/dist/chunks/index-1.0.15-j1fbvhv0.mjs +1 -0
- package/dist/chunks/index-1.0.15-n3xtev9d.mjs +1 -0
- package/dist/chunks/index-1.0.15-pjgsjdye.mjs +1 -0
- package/dist/chunks/index-1.0.15-qjc4a0hk.mjs +1 -0
- package/dist/chunks/index-1.0.15-qkqmt400.mjs +2 -0
- package/dist/chunks/index-1.0.15-tsc8b7qt.mjs +2 -0
- package/dist/chunks/init-1.0.15-51hrt3sw.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.15-hvpb3ya8.mjs +1 -0
- package/dist/chunks/ink-1.0.15-abm6e0hy.mjs +1 -0
- package/dist/chunks/insights-1.0.15-eb2cz87g.mjs +870 -0
- package/dist/chunks/install-1.0.15-ejnp78jw.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.15-6njxrjc8.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.15-q1bv68wm.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.15-xnwxkp42.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.15-tmj4ck09.mjs +1 -0
- package/dist/chunks/keybindings-1.0.15-neswm6qd.mjs +2 -0
- package/dist/chunks/knowledge-1.0.15-th8gzp9y.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.15-33bm0j2f.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.15-fjgwjk7z.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.15-wn9rb1nj.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.15-wytzdx5z.mjs +1 -0
- package/dist/chunks/log-1.0.15-g45p6p8b.mjs +1 -0
- package/dist/chunks/main-1.0.15-c8b622at.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.15-7d0t9knq.mjs +1 -0
- package/dist/chunks/mcp-1.0.15-0rz6a665.mjs +1 -0
- package/dist/chunks/mcp-1.0.15-2csh0m0q.mjs +17 -0
- package/dist/chunks/mcp-1.0.15-mnqw62hf.mjs +4 -0
- package/dist/chunks/mcpb-1.0.15-51f0cyna.mjs +1 -0
- package/dist/chunks/memory-1.0.15-9ty7878c.mjs +72 -0
- package/dist/chunks/model-1.0.15-btfcakpa.mjs +2 -0
- package/dist/chunks/model-1.0.15-hkz8nh7n.mjs +1 -0
- package/dist/chunks/node-1.0.15-xxbzffcm.mjs +12 -0
- package/dist/chunks/oauth-1.0.15-qk2njnqt.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.15-d6xqsqaj.mjs +14 -0
- package/dist/chunks/output-style-1.0.15-1p25w14b.mjs +1 -0
- package/dist/chunks/package-2VNCXFNY-1.0.15-f17c3v8h.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.15-evfrx6ef.mjs +1 -0
- package/dist/chunks/parser-1.0.15-sw9zp9hx.mjs +1 -0
- package/dist/chunks/passes-1.0.15-ve0gv3fn.mjs +1 -0
- package/dist/chunks/permissions-1.0.15-czky0wv1.mjs +1 -0
- package/dist/chunks/permissions-1.0.15-dybttyne.mjs +3 -0
- package/dist/chunks/plan-1.0.15-bgx20yyj.mjs +1 -0
- package/dist/chunks/plist-1.0.15-yxp4p4st.mjs +1 -0
- package/dist/chunks/plugin-1.0.15-dq2pkmwj.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.15-jfdhfm4m.mjs +1 -0
- package/dist/chunks/plugins-1.0.15-2y6cpb5x.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.15-d4bfeykw.mjs +2 -0
- package/dist/chunks/print-1.0.15-c5qnn914.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.15-vwa3wpm4.mjs +1 -0
- package/dist/chunks/process-1.0.15-fn9gq50e.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.15-8acp22x9.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.15-0kfa0p6x.mjs +9 -0
- package/dist/chunks/prompt-1.0.15-67vrdkbh.mjs +1 -0
- package/dist/chunks/prompt-1.0.15-920s9v6b.mjs +1 -0
- package/dist/chunks/prompts-1.0.15-1tk07hjv.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.15-0t7z6wa4.mjs +13 -0
- package/dist/chunks/provider-1.0.15-wm9ewqpc.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.15-467dcm5c.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.15-4036bd9g.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.15-508yvcqa.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.15-d9397mz6.mjs +34 -0
- package/dist/chunks/registry-1.0.15-12m16hd9.mjs +1 -0
- package/dist/chunks/release-notes-1.0.15-32g02jw1.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.15-2tg7jha5.mjs +2 -0
- package/dist/chunks/remote-env-1.0.15-jct0v6eb.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.15-ep3qpncp.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.15-tezcky9a.mjs +1 -0
- package/dist/chunks/rename-1.0.15-77747574.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.15-r618bj2s.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.15-5ycj3dn1.mjs +1 -0
- package/dist/chunks/resume-1.0.15-jas7fmap.mjs +2 -0
- package/dist/chunks/rewind-1.0.15-59bkbymb.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.15-yjmt5a1k.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.0.15-yn83ms9d.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.0.15-rhtphtt2.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.15-gqh5nza8.mjs +1 -0
- package/dist/chunks/session-1.0.15-etds2qs7.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.15-9wgmvp27.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.15-2kx81w17.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.15-8ka7arvw.mjs +1 -0
- package/dist/chunks/settings-1.0.15-nw824nv7.mjs +1 -0
- package/dist/chunks/setup-1.0.15-xg66p6ha.mjs +5 -0
- package/dist/chunks/sinks-1.0.15-m312z7ne.mjs +1 -0
- package/dist/chunks/skills-1.0.15-91jpzmsa.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.15-ase2wwkk.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.15-m6tcjqjy.mjs +1 -0
- package/dist/chunks/state-1.0.15-ypyc7yma.mjs +1 -0
- package/dist/chunks/stats-1.0.15-20xfvtxf.mjs +6 -0
- package/dist/chunks/status-1.0.15-a3hg1hb2.mjs +1 -0
- package/dist/chunks/stickers-1.0.15-dmrqdxpt.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.15-nx4hgj99.mjs +1 -0
- package/dist/chunks/tasks-1.0.15-z9j66px1.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.15-ehfc0f84.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.15-j9xnhc9r.mjs +1 -0
- package/dist/chunks/teleport-1.0.15-ftmbp0xn.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.15-hq6j2jce.mjs +1 -0
- package/dist/chunks/theme-1.0.15-rtaq6w2w.mjs +1 -0
- package/dist/chunks/thinkback-1.0.15-z7fkh9na.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.15-xe5c4403.mjs +1 -0
- package/dist/chunks/toolPool-1.0.15-xx0g0cd9.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.15-363v2605.mjs +1 -0
- package/dist/chunks/tools-1.0.15-dwf2jp96.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.15-041hap1x.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.15-tc5p6gy0.mjs +69 -0
- package/dist/chunks/types-1.0.15-7j0ngjtf.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.15-m8mb87qg.mjs +4 -0
- package/dist/chunks/update-1.0.15-x340nrs3.mjs +88 -0
- package/dist/chunks/upgrade-1.0.15-q3vd7h2g.mjs +1 -0
- package/dist/chunks/upload-1.0.15-3tda3gn3.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.15-sn6vwrsp.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.15-a9ysm42q.mjs +1 -0
- package/dist/chunks/usage-1.0.15-jbspakfx.mjs +1 -0
- package/dist/chunks/util-1.0.15-696vpvbq.mjs +1 -0
- package/dist/chunks/utils-1.0.15-bnryexmv.mjs +1 -0
- package/dist/chunks/vim-1.0.15-5wy3q708.mjs +1 -0
- package/dist/chunks/watchLoop-1.0.15-wmf58cqh.mjs +13 -0
- package/dist/chunks/watcher-1.0.15-adrqrr8h.mjs +1 -0
- package/dist/chunks/wiki-1.0.15-k6g3vvyv.mjs +132 -0
- package/dist/chunks/workflows-1.0.15-0bcj0gf6.mjs +1 -0
- package/dist/chunks/worktree-1.0.15-byxhz3zz.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.15-hdn8erh7.mjs +1 -0
- package/dist/chunks/wrapper-1.0.15-zydswseh.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.13-6b06g673.mjs +0 -1
- package/dist/chunks/App-1.0.13-ka050dp3.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +0 -7
- package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +0 -6
- package/dist/chunks/Grove-1.0.13-hdw88war.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +0 -1
- package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +0 -1
- package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +0 -1
- package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +0 -3
- package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +0 -110
- package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +0 -1
- package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +0 -1
- package/dist/chunks/assistant-1.0.13-91499j0p.mjs +0 -1
- package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +0 -1
- package/dist/chunks/auth-1.0.13-s1vedchg.mjs +0 -1
- package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +0 -1
- package/dist/chunks/branch-1.0.13-encr40nd.mjs +0 -4
- package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +0 -1
- package/dist/chunks/btw-1.0.13-55x872ns.mjs +0 -1
- package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +0 -3
- package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +0 -4
- package/dist/chunks/caches-1.0.13-md3zkabd.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +0 -1
- package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +0 -1
- package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +0 -1
- package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +0 -2
- package/dist/chunks/cli-1.0.13-0357cnwe.mjs +0 -2
- package/dist/chunks/cli-1.0.13-14c24kge.mjs +0 -2
- package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +0 -2
- package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +0 -3
- package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +0 -2
- package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +0 -3
- package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +0 -4
- package/dist/chunks/cli-1.0.13-23ev2ept.mjs +0 -45
- package/dist/chunks/cli-1.0.13-29x94tf7.mjs +0 -2
- package/dist/chunks/cli-1.0.13-2x789qav.mjs +0 -2
- package/dist/chunks/cli-1.0.13-2xpprn71.mjs +0 -1
- package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +0 -3
- package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +0 -18
- package/dist/chunks/cli-1.0.13-3767t4yj.mjs +0 -4
- package/dist/chunks/cli-1.0.13-3c13b00m.mjs +0 -2
- package/dist/chunks/cli-1.0.13-3dmmr756.mjs +0 -2
- package/dist/chunks/cli-1.0.13-3essvqs1.mjs +0 -2
- package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +0 -2
- package/dist/chunks/cli-1.0.13-3fs84evm.mjs +0 -2
- package/dist/chunks/cli-1.0.13-3pspajgg.mjs +0 -15
- package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +0 -2
- package/dist/chunks/cli-1.0.13-449f1p6g.mjs +0 -2
- package/dist/chunks/cli-1.0.13-466jbd1q.mjs +0 -2
- package/dist/chunks/cli-1.0.13-4dp5a597.mjs +0 -6
- package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +0 -2
- package/dist/chunks/cli-1.0.13-57993qn6.mjs +0 -2
- package/dist/chunks/cli-1.0.13-57ez593b.mjs +0 -3
- package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +0 -4
- package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +0 -58
- package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +0 -2
- package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +0 -2
- package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +0 -2
- package/dist/chunks/cli-1.0.13-696y87my.mjs +0 -18
- package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +0 -2
- package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +0 -2
- package/dist/chunks/cli-1.0.13-6vb140br.mjs +0 -25
- package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +0 -2
- package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +0 -2
- package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +0 -2
- package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +0 -2
- package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +0 -2
- package/dist/chunks/cli-1.0.13-7rg014zx.mjs +0 -5
- package/dist/chunks/cli-1.0.13-7xfra4by.mjs +0 -2
- package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +0 -2
- package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +0 -2
- package/dist/chunks/cli-1.0.13-83vckpyr.mjs +0 -6
- package/dist/chunks/cli-1.0.13-8s33s84f.mjs +0 -2
- package/dist/chunks/cli-1.0.13-93twxc7q.mjs +0 -2
- package/dist/chunks/cli-1.0.13-98a94f4b.mjs +0 -2
- package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +0 -2
- package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +0 -9
- package/dist/chunks/cli-1.0.13-9t0q538w.mjs +0 -25
- package/dist/chunks/cli-1.0.13-a2j673qk.mjs +0 -2
- package/dist/chunks/cli-1.0.13-a5641ktm.mjs +0 -2
- package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +0 -2
- package/dist/chunks/cli-1.0.13-a8t9066b.mjs +0 -2
- package/dist/chunks/cli-1.0.13-afdk25h0.mjs +0 -2
- package/dist/chunks/cli-1.0.13-avxss6zg.mjs +0 -9
- package/dist/chunks/cli-1.0.13-bj2neb84.mjs +0 -2
- package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +0 -2
- package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +0 -15
- package/dist/chunks/cli-1.0.13-cm3q208z.mjs +0 -2
- package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +0 -34
- package/dist/chunks/cli-1.0.13-d016ffc7.mjs +0 -3
- package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +0 -2
- package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +0 -2
- package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +0 -2
- package/dist/chunks/cli-1.0.13-dwp60tja.mjs +0 -2
- package/dist/chunks/cli-1.0.13-e19bb64d.mjs +0 -4
- package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +0 -2
- package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +0 -2
- package/dist/chunks/cli-1.0.13-e464ab16.mjs +0 -2
- package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +0 -2
- package/dist/chunks/cli-1.0.13-e9q9245e.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +0 -3
- package/dist/chunks/cli-1.0.13-f38bh25k.mjs +0 -12
- package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +0 -133
- package/dist/chunks/cli-1.0.13-fb695nhr.mjs +0 -67
- package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +0 -2
- package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +0 -2
- package/dist/chunks/cli-1.0.13-frs40s6h.mjs +0 -2
- package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +0 -2
- package/dist/chunks/cli-1.0.13-fta82vnx.mjs +0 -2
- package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +0 -8
- package/dist/chunks/cli-1.0.13-g7daabde.mjs +0 -3
- package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +0 -2
- package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +0 -2
- package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +0 -16
- package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +0 -2
- package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +0 -39
- package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +0 -2
- package/dist/chunks/cli-1.0.13-jdxaky02.mjs +0 -12
- package/dist/chunks/cli-1.0.13-jkahzkac.mjs +0 -12
- package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +0 -2
- package/dist/chunks/cli-1.0.13-jsezewz5.mjs +0 -2
- package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +0 -2
- package/dist/chunks/cli-1.0.13-k4znag0a.mjs +0 -2
- package/dist/chunks/cli-1.0.13-k71bq854.mjs +0 -2
- package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +0 -2
- package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +0 -2
- package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +0 -12
- package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +0 -2
- package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +0 -3
- package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +0 -7
- package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +0 -2
- package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +0 -5495
- package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +0 -2
- package/dist/chunks/cli-1.0.13-mazxedqg.mjs +0 -4
- package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +0 -2
- package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +0 -59
- package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ndthc14d.mjs +0 -2
- package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +0 -15
- package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +0 -202
- package/dist/chunks/cli-1.0.13-p43t5py0.mjs +0 -2
- package/dist/chunks/cli-1.0.13-p7b51har.mjs +0 -2
- package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +0 -2
- package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +0 -6
- package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +0 -2
- package/dist/chunks/cli-1.0.13-pwfpt641.mjs +0 -2
- package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +0 -17
- package/dist/chunks/cli-1.0.13-q40za40w.mjs +0 -50
- package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +0 -2
- package/dist/chunks/cli-1.0.13-qx079tft.mjs +0 -2
- package/dist/chunks/cli-1.0.13-qxebhem2.mjs +0 -2
- package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +0 -2
- package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +0 -2
- package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +0 -4
- package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +0 -2
- package/dist/chunks/cli-1.0.13-rhptvh17.mjs +0 -2
- package/dist/chunks/cli-1.0.13-rxd329nn.mjs +0 -24
- package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +0 -2
- package/dist/chunks/cli-1.0.13-s15merj9.mjs +0 -2
- package/dist/chunks/cli-1.0.13-s16wgevn.mjs +0 -2
- package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +0 -2
- package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +0 -24
- package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +0 -2
- package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +0 -20
- package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +0 -2
- package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +0 -24
- package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +0 -2
- package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +0 -2
- package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +0 -2
- package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +0 -2
- package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +0 -2
- package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +0 -17
- package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +0 -2
- package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +0 -2
- package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +0 -3
- package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +0 -2
- package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +0 -2
- package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +0 -2
- package/dist/chunks/cli-1.0.13-trkevtw9.mjs +0 -2
- package/dist/chunks/cli-1.0.13-tyhtztew.mjs +0 -2
- package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +0 -21
- package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +0 -2
- package/dist/chunks/cli-1.0.13-v4annnm3.mjs +0 -2
- package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +0 -4
- package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +0 -133
- package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vb85p8we.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vd01re4x.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vs4d56js.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +0 -2
- package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +0 -5
- package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +0 -2
- package/dist/chunks/cli-1.0.13-w5jash5n.mjs +0 -2
- package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +0 -2
- package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +0 -2
- package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +0 -6
- package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +0 -2
- package/dist/chunks/cli-1.0.13-wsk4823v.mjs +0 -2
- package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +0 -4
- package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +0 -3
- package/dist/chunks/cli-1.0.13-xajnmhak.mjs +0 -2
- package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +0 -2
- package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +0 -2
- package/dist/chunks/cli-1.0.13-xr55511t.mjs +0 -2
- package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +0 -42
- package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +0 -18
- package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +0 -6
- package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +0 -2
- package/dist/chunks/cli-1.0.13-y74xv34r.mjs +0 -4
- package/dist/chunks/cli-1.0.13-yb1smx77.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +0 -4
- package/dist/chunks/cli-1.0.13-yq7961x3.mjs +0 -4
- package/dist/chunks/cli-1.0.13-yr590qbp.mjs +0 -3
- package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +0 -2
- package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +0 -2
- package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +0 -3
- package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +0 -2
- package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +0 -2
- package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +0 -2
- package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +0 -2
- package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +0 -2
- package/dist/chunks/client-1.0.13-jj0v4n27.mjs +0 -1
- package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +0 -1
- package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +0 -3
- package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +0 -1
- package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +0 -1
- package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +0 -1
- package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +0 -1
- package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +0 -1
- package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +0 -9
- package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +0 -1
- package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +0 -1
- package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +0 -1446
- package/dist/chunks/desktop-1.0.13-e005km58.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +0 -1
- package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +0 -1
- package/dist/chunks/diff-1.0.13-9jypv082.mjs +0 -1
- package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +0 -1
- package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +0 -10
- package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +0 -1
- package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +0 -1
- package/dist/chunks/environments-1.0.13-w5a33d52.mjs +0 -1
- package/dist/chunks/errors-1.0.13-wrs4k863.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +0 -1
- package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +0 -1
- package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +0 -1
- package/dist/chunks/export-1.0.13-cbatvd1c.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +0 -1
- package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +0 -1
- package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +0 -1
- package/dist/chunks/git-1.0.13-9196pgzv.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +0 -1
- package/dist/chunks/goal-1.0.13-cty957vz.mjs +0 -4
- package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +0 -1
- package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +0 -1
- package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +0 -2
- package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +0 -6
- package/dist/chunks/help-1.0.13-em333cwb.mjs +0 -1
- package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +0 -3
- package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +0 -79
- package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +0 -1
- package/dist/chunks/ide-1.0.13-4z1afk08.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +0 -1
- package/dist/chunks/index-1.0.13-361h9v63.mjs +0 -1
- package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +0 -1
- package/dist/chunks/index-1.0.13-55th4hhq.mjs +0 -1
- package/dist/chunks/index-1.0.13-55vgc9cr.mjs +0 -1
- package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +0 -1
- package/dist/chunks/index-1.0.13-792fhv61.mjs +0 -1
- package/dist/chunks/index-1.0.13-8k0904bs.mjs +0 -1
- package/dist/chunks/index-1.0.13-ace8202d.mjs +0 -2
- package/dist/chunks/index-1.0.13-e20f9w6f.mjs +0 -1
- package/dist/chunks/index-1.0.13-efh2qbe0.mjs +0 -1
- package/dist/chunks/index-1.0.13-ej84k860.mjs +0 -1
- package/dist/chunks/index-1.0.13-fnd36467.mjs +0 -2
- package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +0 -30
- package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +0 -1
- package/dist/chunks/index-1.0.13-j0146ntq.mjs +0 -1
- package/dist/chunks/index-1.0.13-jackh0p4.mjs +0 -17
- package/dist/chunks/index-1.0.13-kfmh713v.mjs +0 -9
- package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +0 -1
- package/dist/chunks/index-1.0.13-rrm8s54m.mjs +0 -1
- package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +0 -1
- package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +0 -5
- package/dist/chunks/index-1.0.13-y5wahjbd.mjs +0 -9
- package/dist/chunks/index-1.0.13-ykat42gv.mjs +0 -1
- package/dist/chunks/init-1.0.13-pyw980be.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +0 -1
- package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +0 -1
- package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +0 -870
- package/dist/chunks/install-1.0.13-afmkvg4q.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +0 -1
- package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +0 -2
- package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +0 -1
- package/dist/chunks/log-1.0.13-3sscdqcx.mjs +0 -1
- package/dist/chunks/main-1.0.13-h958ytkv.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +0 -1
- package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +0 -4
- package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +0 -1
- package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +0 -17
- package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +0 -1
- package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +0 -72
- package/dist/chunks/model-1.0.13-28wkmva5.mjs +0 -2
- package/dist/chunks/model-1.0.13-wbne69bf.mjs +0 -1
- package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +0 -12
- package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +0 -14
- package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +0 -1
- package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +0 -1
- package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +0 -1
- package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +0 -1
- package/dist/chunks/permissions-1.0.13-091a123r.mjs +0 -1
- package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +0 -3
- package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +0 -1
- package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +0 -1
- package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +0 -1
- package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +0 -2
- package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +0 -1
- package/dist/chunks/process-1.0.13-yvqmferw.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +0 -9
- package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +0 -1
- package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +0 -1
- package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +0 -13
- package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +0 -34
- package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +0 -1
- package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +0 -2
- package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +0 -1
- package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +0 -1
- package/dist/chunks/resume-1.0.13-g7w8k889.mjs +0 -2
- package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +0 -1
- package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +0 -1
- package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +0 -1
- package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +0 -5
- package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +0 -1
- package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +0 -1
- package/dist/chunks/state-1.0.13-zq29wtdm.mjs +0 -1
- package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +0 -6
- package/dist/chunks/status-1.0.13-t69r10gd.mjs +0 -1
- package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +0 -1
- package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +0 -1
- package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +0 -1
- package/dist/chunks/theme-1.0.13-qh1caywb.mjs +0 -1
- package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +0 -1
- package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +0 -1
- package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +0 -69
- package/dist/chunks/types-1.0.13-7xc46cqv.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +0 -4
- package/dist/chunks/update-1.0.13-yevsj7ad.mjs +0 -88
- package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +0 -1
- package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +0 -1
- package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +0 -1
- package/dist/chunks/util-1.0.13-87gxb90q.mjs +0 -1
- package/dist/chunks/utils-1.0.13-c5pe460e.mjs +0 -1
- package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +0 -1
- package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +0 -13
- package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +0 -1
- package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +0 -132
- package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +0 -1
- package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +0 -1
- package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +0 -7
- /package/dist/chunks/{cli-1.0.13-tzenmc0b.mjs → cli-1.0.15-07xj3g8e.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-wv7skbb9.mjs → cli-1.0.15-34tkfpae.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-ap2xrh2s.mjs → cli-1.0.15-ca94tsgf.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-4z6c4gzk.mjs → cli-1.0.15-eb4r1tqp.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-n6bzzv7p.mjs → cli-1.0.15-gn4sk6nh.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-d9nvpqpw.mjs → cli-1.0.15-qt9wsd1x.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-v34fp7gq.mjs → cli-1.0.15-shjbmrej.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.13-q9et56bj.mjs → cli-1.0.15-vewf233x.mjs} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{E0 as X,K0 as JT,L0 as ST,l1 as IT}from"./cli-1.0.15-nrwby2vr.mjs";import{$8 as VT,_8 as K}from"./cli-1.0.15-51jmehra.mjs";import{Baa as XT,Eea as l,Fea as d,Gaa as FT,Jaa as qT,Kaa as OT,Tea as D,Yda as f,_da as YT,gba as Q,iba as UT,qga as H,uaa as s,vea as z,w$ as BT,w_ as Y,x$ as _T,y_ as o,yea as V,yga as n}from"./cli-1.0.15-x6bgcj6j.mjs";import{iia as E,jia as QT}from"./cli-1.0.15-0jqatfe7.mjs";import{Dja as GT,Eja as $T,Ija as zT,Mja as P,Qja as KT}from"./cli-1.0.15-yrdyyvx7.mjs";import{Dka as u,Fka as LT}from"./cli-1.0.15-vpx3dnt7.mjs";import{Xqa as r,Yqa as ZT}from"./cli-1.0.15-qdf1s8sn.mjs";import{hsa as I}from"./cli-1.0.15-qt9wsd1x.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{QT();XT();KT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();o();n()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
|
|
2
|
+
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
|
|
4
|
+
`;else if(B==="windows")J=` • Windows: Windows Terminal
|
|
5
|
+
`;let F=`Terminal setup cannot be run from ${$}.
|
|
6
|
+
|
|
7
|
+
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
+
${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
+
|
|
10
|
+
To set up the shortcut (optional):
|
|
11
|
+
1. Exit tmux/screen temporarily
|
|
12
|
+
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
+
${J} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
+
• Other: Alacritty
|
|
15
|
+
3. Return to tmux/screen - settings will persist
|
|
16
|
+
|
|
17
|
+
${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
|
|
18
|
+
{
|
|
19
|
+
"key": "shift+enter",
|
|
20
|
+
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
+
"args": { "text": "\\u001b\\r" },
|
|
22
|
+
"when": "terminalFocus"
|
|
23
|
+
}
|
|
24
|
+
]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
|
|
25
|
+
`))F+=`
|
|
26
|
+
`;return F+=`
|
|
27
|
+
[[keyboard.bindings]]
|
|
28
|
+
key = "Return"
|
|
29
|
+
mods = "Shift"
|
|
30
|
+
chars = "\\u001B\\r"
|
|
31
|
+
`,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
|
|
32
|
+
`,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
|
|
33
|
+
`,j;var bT=I(()=>{VT();ST();IT();h();TT();D();UT();LT();o();OT();n();_T();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
+
export{a as GY,h as HY,e as IY,TT as JY,Ww as KY,uT as LY,ET as MY,Lw as NY,zw as OY,Vw as PY,_w as QY,bT as RY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lka as q,Vka as U}from"./cli-1.0.15-tf9z0qgg.mjs";import{gsa as L,hsa as X}from"./cli-1.0.15-qt9wsd1x.mjs";import{AsyncLocalStorage as F}from"async_hooks";function G(){return O.getStore()}function Y(z,B){return O.run(z,B)}function Z(){return O.getStore()!==void 0}function $(z){return{...z,isInProcess:!0}}var O;var Q=X(()=>{O=new F});var y={};L(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>b,runWithTeammateContext:()=>Y,isTeammate:()=>u,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Z,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>f,getTeamName:()=>h,getParentSessionId:()=>_,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>E,createTeammateContext:()=>$,clearDynamicTeamContext:()=>j});function _(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function b(z){D=z}function j(){D=null}function v(){return D}function E(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function h(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function u(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function f(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return q(process.env.CLAUDE_CODE_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=E(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((V)=>{let N={...V.tasks};for(let W of H){let K=N[W];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[W]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...V,tasks:N}})})}var D=null;var g=X(()=>{Q();U();Q()});
|
|
2
|
+
export{G as DX,Y as EX,Z as FX,$ as GX,Q as HX,_ as IX,v as JX,E as KX,A as LX,h as MX,u as NX,f as OX,w as PX,S as QX,P as RX,I as SX,l as TX,y as UX,g as VX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hsa as M}from"./cli-1.0.15-qt9wsd1x.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
+
export{W as Nia,Q as Oia,K as Pia,X as Qia,Y as Ria,Z as Sia,y as Tia,G as Uia,h as Via,w as Wia};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$n as Xf,Zx as g,_x as Zf,ao as Uf,ay as _f}from"./cli-1.0.15-bb8j8b0v.mjs";import{jY as Wf,kY as Tf}from"./cli-1.0.15-f2k7cw2y.mjs";import{E0 as F,F0 as cf,G0 as r,I0 as q,M0 as Vf,kZ as n,l1 as a,qZ as s,rZ as If}from"./cli-1.0.15-nrwby2vr.mjs";import{T3 as Qf,U3 as H,V3 as X,W3 as T}from"./cli-1.0.15-bhsgw22k.mjs";import{X3 as Rf}from"./cli-1.0.15-9cvsym9y.mjs";import{N5 as Nf,P5 as b,Q5 as _,R5 as Hf,T5 as j,W5 as qf,Y5 as zf,e6 as Jf,f6 as hf,k6 as M,n6 as p,o6 as Ef}from"./cli-1.0.15-xw62agkd.mjs";import{$8 as yf,_8 as i}from"./cli-1.0.15-51jmehra.mjs";import{Fba as Bf,Hda as Cf,Tea as Pf,oba as w,uda as Gf,yea as l}from"./cli-1.0.15-x6bgcj6j.mjs";import{Nga as mf,Vga as Of}from"./cli-1.0.15-zv07g6mh.mjs";import{Xia as D,_ia as Lf}from"./cli-1.0.15-8kr6hy0g.mjs";import{dsa as x,hsa as o}from"./cli-1.0.15-qt9wsd1x.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
|
|
2
|
+
export{U as qe,ff as re,Df as se,H0 as te,xf as ue};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$n as y,ao as p,gG as O,iG as j}from"./cli-1.0.15-bb8j8b0v.mjs";import{G0 as F,I0 as I,M0 as R,kZ as S,l1 as v}from"./cli-1.0.15-nrwby2vr.mjs";import{U3 as Z,V3 as N,W3 as U}from"./cli-1.0.15-bhsgw22k.mjs";import{X3 as d}from"./cli-1.0.15-9cvsym9y.mjs";import{Hda as E,uda as M}from"./cli-1.0.15-x6bgcj6j.mjs";import{Xia as H,_ia as b}from"./cli-1.0.15-8kr6hy0g.mjs";import{dsa as k}from"./cli-1.0.15-qt9wsd1x.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
|
|
2
|
+
export{x as ab,l as bb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{md as K,nd as Y}from"./cli-1.0.15-verazxs1.mjs";import{Al as U,Bl as V,Gp as H,Hp as W,WM as J,cN as X,vl as G,wl as B}from"./cli-1.0.15-bb8j8b0v.mjs";import{esa as q,hsa as v}from"./cli-1.0.15-qt9wsd1x.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
|
|
2
|
+
export{P as id,C as jd,A as kd,D as ld};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{fsa as H,hsa as UJ}from"./cli-1.0.15-qt9wsd1x.mjs";var N=H((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var S=H((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var C=H((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=S();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,r="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[r,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),Z=w1++;F1(q,Z,$),z[q]=Z,j[Z]=$,H1[Z]=Q,I1[Z]=new RegExp($,J?"g":void 0),O1[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${r}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${r}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=H((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var o=H((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=H((yJ,Vq)=>{var h=S(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=C(),P1=b(),{compareIdentifiers:e}=o(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(e(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let Z=+Q;if(Z>=0&&Z<f)return Z}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return e(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(_1(this.prerelease,$)){let W=this.prerelease[$.split(".").length];if(isNaN(W))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=H((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=H((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=H((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Sq=H((GJ,Cq)=>{var Nq=G(),C1=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Cq.exports=C1});var uq=H((VJ,kq)=>{var Rq=E(),S1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,Y=W?Q:J,F=!!K.prerelease.length;if(!!Y.prerelease.length&&!F){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let I=F?"pre":"";if(J.major!==Q.major)return I+"major";if(J.minor!==Q.minor)return I+"minor";if(J.patch!==Q.patch)return I+"patch";return"prerelease"};kq.exports=S1});var Mq=H((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=H((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=H((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=H((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=H((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=H((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=H((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=H((CJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),Z=new nq($,J);return Q.compare(Z)||Q.compareBuild(Z)};tq.exports=m1});var rq=H((SJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=H((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=H((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=H((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var qq=H((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var $q=H((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=H((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=H((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var Jq=H((fJ,K0)=>{var j$=qq(),z$=$q(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var z0=H((vJ,j0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=C(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let F=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],U;while((U=F.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||U.index+U[0].length!==J.index+J[0].length)J=U;F.lastIndex=U.index+U[1].length+U[2].length}F.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${Z}.${W}${K}${Y}`,$)};j0.exports=y$});var U0=H((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=H((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=H((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Qq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(W,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],C$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],S$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((I)=>b$(I,this.options)).join(" ").split(/\s+/).map((I)=>p$(I,this.options));if(Z)K=K.filter((I)=>{return B("loose invalid filter",I,this.options),!!I.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,F=K.map((I)=>new Qq(I,this.options));for(let I of F){if(w0(I))return[I];Y.set(I.value,I)}if(Y.size>1&&Y.has(""))Y.delete("");let U=[...Y.values()];return H0.set(J,U),U}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Qq=u(),B=S(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:C$,tildeTrimReplace:S$,caretTrimReplace:R$}=C(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("tilde",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else if(F)B("replaceTilde pr",F),U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("caret",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))if(W==="0")U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(F)if(B("replaceCaret pr",F),W==="0")if(K==="0")U=`>=${W}.${K}.${Y}-${F} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y}-${F} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")U=`>=${W}.${K}.${Y} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${+W+1}.0.0-0`;return B("caret return",U),U})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,Z,W,K,Y,F)=>{if(B("xRange",q,Q,Z,W,K,Y,F),h$(W,K,Y))return q;let U=D(W),I=U||D(K),y=I||D(Y),x=y;if(Z==="="&&x)Z="";if(F=$.includePrerelease?"-0":"",U)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(I)K=0;if(Y=0,Z===">")if(Z=">=",I)W=+W+1,K=0,Y=0;else K=+K+1,Y=0;else if(Z==="<=")if(Z="<",I)W=+W+1;else K=+K+1;if(Z==="<")F="-0";Q=`${Z+W}.${K}.${Y}${F}`}else if(I)Q=`>=${W}.0.0${F} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${F} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,Z,W,K,Y,F,U,I,y,x)=>{if(D(Q))J="";else if(D(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(U))F="";else if(D(I))F=`<${+U+1}.0.0-0`;else if(D(y))F=`<${U}.${+I+1}.0-0`;else if(x)F=`<=${U}.${I}.${y}-${x}`;else if(q)F=`<${U}.${I}.${+y+1}-0`;else F=`<=${F}`;return`${J} ${F}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Qq.ANY)continue;if(q[Q].semver.prerelease.length>0){let Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=H((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Zq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Zq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Zq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Wq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Wq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Wq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=C(),Wq=Jq(),Zq=S(),V0=G(),P0=X()});var M=H((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=H((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=H((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new o$(Q,J)}}),Q};E0.exports=q9});var S0=H((aJ,C0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new $9(Q,J)}}),Q};C0.exports=Q9});var u0=H((nJ,k0)=>{var Kq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Kq("0.0.0");if(q.test(J))return J;if(J=new Kq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let Z=q.set[Q],W=null;if(Z.forEach((K)=>{let Y=new Kq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!W||R0(Y,W))W=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||R0(J,W)))J=W}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=H((tJ,T0)=>{var K9=X(),j9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=j9});var n=H((iJ,v0)=>{var z9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new z9(q,Q),$=new U9($,Q);let Z,W,K,Y,F;switch(J){case">":Z=b0,W=I9,K=h0,Y=">",F=">=";break;case"<":Z=h0,W=O9,K=b0,Y="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let U=0;U<$.set.length;++U){let I=$.set[U],y=null,x=null;if(I.forEach((O)=>{if(O.semver===Y9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,Z(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===F)return!1;if((!x.operator||x.operator===Y)&&W(q,x.semver))return!1;else if(x.operator===F&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=H((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=H((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=H((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=H((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((I,y)=>V9(I,y,J));for(let I of K)if(G9(I,$,J)){if(W=I,!Z)Z=I}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let Y=[];for(let[I,y]of Q)if(I===y)Y.push(I);else if(!y&&I===K[0])Y.push("*");else if(!y)Y.push(`>=${I}`);else if(I===K[0])Y.push(`<=${y}`);else Y.push(`${I} - ${y}`);let F=Y.join(" || "),U=typeof $.raw==="string"?$.raw:String($);return F.length<U.length?F:$}});var q1=H(($Q,e0)=>{var t0=X(),Yq=u(),{ANY:jq}=Yq,zq=M(),Uq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=X9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new Yq(">=0.0.0-0")],i0=[new Yq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===jq)if($.length===1&&$[0].semver===jq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===jq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,Z,W;for(let O of q)if(O.operator===">"||O.operator===">=")Z=r0(Z,O,J);else if(O.operator==="<"||O.operator==="<=")W=o0(W,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Uq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let O of Q){if(Z&&!zq(O,String(Z),J))return null;if(W&&!zq(O,String(W),J))return null;for(let Z1 of $)if(!zq(O,String(Z1),J))return!1;return!0}let Y,F,U,I,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(I=I||O.operator===">"||O.operator===">=",U=U||O.operator==="<"||O.operator==="<=",Z){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(Z,O,J),Y===O&&Y!==Z)return!1}else if(Z.operator===">="&&!O.test(Z.semver))return!1}if(W){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(F=o0(W,O,J),F===O&&F!==W)return!1}else if(W.operator==="<="&&!O.test(W.semver))return!1}if(!O.operator&&(W||Z)&&K!==0)return!1}if(Z&&U&&!W&&K!==0)return!1;if(W&&I&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Uq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=H((JQ,Q1)=>{var Fq=C(),$1=N(),A9=G(),J1=o(),L9=E(),E9=Aq(),N9=Eq(),C9=Sq(),S9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=qq(),m9=$q(),p9=c(),s9=m(),a9=Jq(),n9=z0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=S0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),jJ=s0(),zJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:C9,diff:S9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:jJ,simplifyRange:zJ,subset:YJ,SemVer:A9,re:Fq.re,src:Fq.src,tokens:Fq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function t(){if(!Iq)Iq=W1();return Iq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return t().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return t().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===-1;return t().lt(q,$,{loose:!0})}function KQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return t().satisfies(q,$,{loose:!0})}var Iq;var FJ=()=>{};
|
|
2
|
+
export{W1 as d2,QQ as e2,WQ as f2,ZQ as g2,KQ as h2,FJ as i2};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{fsa as j}from"./cli-1.0.15-qt9wsd1x.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.7"});
|
|
2
|
+
export{Lt as X3};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hsa as g}from"./cli-1.0.15-qt9wsd1x.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
|
|
2
|
+
export{Bq as VV,d as WV,$J as XV,DJ as YV,GJ as ZV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{l4 as N,q4 as $}from"./cli-1.0.15-24x4yqe7.mjs";import{E8 as Z,e8 as M,m5 as L,p5 as Y}from"./cli-1.0.15-xw62agkd.mjs";import{qga as Q,yga as X}from"./cli-1.0.15-x6bgcj6j.mjs";import{Via as J,Wia as V}from"./cli-1.0.15-8w43v6k1.mjs";import{Fka as S,xka as P}from"./cli-1.0.15-vpx3dnt7.mjs";import{Kra as W,sra as K}from"./cli-1.0.15-mcyk2xwv.mjs";import{hsa as R}from"./cli-1.0.15-qt9wsd1x.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
+
export{C as QW,j as RW,b as SW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lka as B,Mka as H,Vka as V}from"./cli-1.0.15-tf9z0qgg.mjs";import{hsa as Q}from"./cli-1.0.15-qt9wsd1x.mjs";function $(){let q=process.env.CLAUDIN_NERD_FONT;if(B(q))return!0;if(H(q))return!1;let z=process.env.TERM_PROGRAM;if(z&&W.has(z))return!0;let J=process.env.TERM?.toLowerCase()??"";if(X.some((K)=>J.includes(K)))return!0;return!1}var W,X;var Y=Q(()=>{V();W=new Set(["ghostty","kitty","WezTerm","iTerm.app","WarpTerminal"]),X=["kitty","ghostty","wezterm"]});
|
|
2
|
+
export{$ as Lh,Y as Mh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Zr as Hq,_r as pq,yz as Uq,zz as mq}from"./cli-1.0.15-bb8j8b0v.mjs";import{c4 as Bq,e4 as dq}from"./cli-1.0.15-4nyx02ky.mjs";import{E8 as gq,M4 as Wq,R4 as jq,S4 as Sq,e8 as c,i8 as S,y7 as Nq,z7 as yq}from"./cli-1.0.15-xw62agkd.mjs";import{$$ as Gq,baa as Pq,bea as Yq,cea as Dq,dea as k,fea as Xq,iea as Lq,q$ as M,u$ as $q}from"./cli-1.0.15-x6bgcj6j.mjs";import{bia as N,dia as bq,eia as E,fia as Cq}from"./cli-1.0.15-g0xatz0p.mjs";import{Oia as Kq,Pia as Qq,Qia as Vq,Via as Zq,Wia as Rq}from"./cli-1.0.15-8w43v6k1.mjs";import{Xia as _,_ia as e}from"./cli-1.0.15-8kr6hy0g.mjs";import{Dja as m,Ija as Eq,_ja as Y,bja as Fq,bka as Jq,dja as $J}from"./cli-1.0.15-yrdyyvx7.mjs";import{Eka as P,Fka as qq,yka as C}from"./cli-1.0.15-vpx3dnt7.mjs";import{Kra as kq,sra as z}from"./cli-1.0.15-mcyk2xwv.mjs";import{gsa as ZJ,hsa as d,isa as Tq}from"./cli-1.0.15-qt9wsd1x.mjs";var fq,r,s;var t=d(()=>{bq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as cq,readdir as iq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Wq()!=="firstParty"||!jq())return!1;let q=c();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=c();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:i,validateStatus:(L)=>L===200||L===304||L===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let X=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: fetched successfully (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:X}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:i,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,X)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(X),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let X=V(Z,q[Z]);if(J+X>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=X}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:i,validateStatus:(L)=>L===200||L===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let X=Z.data?.checksum;if(X)q.lastKnownChecksum=X;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${X??"none"})`,{level:"debug"}),{success:!0,checksum:X,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:X}=P(Q),L=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:X,errorType:L,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await iq(J,{withFileTypes:!0});await Promise.all(Z.map(async(X)=>{let L=uq(J,X.name);if(X.isDirectory())await Q(L);else if(X.isFile())try{let j=await nq(L);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${X.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(L,"utf8"),B=oq(K,L).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let W=H[0];V.push({path:B,ruleId:W.ruleId,label:W.label}),Y(`team-memory-sync: skipping "${B}" — detected ${W.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("tengu_team_mem_entries_capped",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let X of G.slice(0,q))Z[X]=$[X];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Xq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await cq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return v(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await M();if(!Q)return v(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return v(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return v(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),v(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,X=J.data.content.entryChecksums;if(q.serverChecksums.clear(),X)for(let[j,O]of Object.entries(X))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let L=await VJ(Z);if(L>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.0.15-rcmy3kyx.mjs");j()}return Y(`team-memory-sync: pulled ${L} files`,{level:"info"}),v(V,{success:!0,filesWritten:L}),{success:!0,filesWritten:L,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await M();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let L=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${L}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("tengu_team_mem_secret_skipped",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[L,j]of Object.entries(G))Z.set(L,sq(j));let X=!1;for(let L=0;L<=R;L++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:X,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,W;for(let w of B){if(W=await KJ(q,V,w,q.lastKnownChecksum),!W.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(W=W,W.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:X,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:W.checksum,...J.length>0&&{skippedSecrets:J}};if(!W.conflict){if(W.serverMaxEntries!==void 0)q.serverMaxEntries=W.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${W.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:W.errorType,status:W.httpStatus,errorCode:W.serverErrorCode,serverMaxEntries:W.serverMaxEntries,serverReceivedEntries:W.serverReceivedEntries}),{success:!1,filesUploaded:H,error:W.error,errorType:W.errorType,httpStatus:W.httpStatus}}if(X=!0,L>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${L+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function v(q,K){_("tengu_team_mem_sync_pull",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("tengu_team_mem_sync_push",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var i=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Lq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>Mq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>vq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as XJ}from"fs/promises";import{join as LJ}from"path";function vq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),vq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("tengu_team_mem_push_suppressed",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function b(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){b();return}f=jJ()},WJ)}async function Aq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),A=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){b();return}if(U!==null){XJ(LJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;b()});return}b()}),A.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>Mq())}async function NJ(){if(!Dq()||!_q())return;if(!await M()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await Aq(k()),_("tengu_team_mem_sync_started",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;b()}async function Mq(){if(F)clearTimeout(F),F=null;if(A)A.close(),A=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){A=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return Aq(q)}var WJ=2000,A=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Lq();$J();Jq();qq();$q();e();zq()});
|
|
2
|
+
export{vq as p,NJ as q,BJ as r,Mq as s,HJ as t,UJ as u,OJ as v,wJ as w};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{g2 as k,i2 as w}from"./cli-1.0.15-9bymg5sy.mjs";import{E8 as v,k8 as j}from"./cli-1.0.15-xw62agkd.mjs";import{Jha as h,Kha as s,yha as d}from"./cli-1.0.15-hmb8ny4m.mjs";import{Vka as q}from"./cli-1.0.15-tf9z0qgg.mjs";import{hsa as p}from"./cli-1.0.15-qt9wsd1x.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
+
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
+
export{x as HW,O as IW,P as JW,Q as KW,R as LW,U as MW,W as NW,X as OW,z as PW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$n as g,ao as k,gG as h,iG as I}from"./cli-1.0.15-bb8j8b0v.mjs";import{I0 as s,kZ as S,l1 as _}from"./cli-1.0.15-nrwby2vr.mjs";import{U3 as c,V3 as m,W3 as T}from"./cli-1.0.15-bhsgw22k.mjs";import{Tea as P,vea as b}from"./cli-1.0.15-x6bgcj6j.mjs";import{dsa as D}from"./cli-1.0.15-qt9wsd1x.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
+
export{E as B};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{de as c,je as Eq}from"./cli-1.0.15-rgkm224b.mjs";import{$o as s,HL as n,NL as e,OL as P,SL as jq,TL as O,UL as qq,WL as I,XL as Gq,ap as Tq,bM as Cq,dp as t,eM as b,fM as Lq,fp as Mq,iM as Hq,jM as Jq,jp as i,lL as v,lM as vq,lp as Rq,mL as m,mM as y,nM as Qq,oL as Oq,oM as Xq,pM as Yq,pp as A,qM as $q,rM as d,rp as D,rt as l,sp as Aq,st as wq,tp as h,uM as Dq,up as S,vp as Fq}from"./cli-1.0.15-bb8j8b0v.mjs";import{Hda as _q,Pca as V,Xca as Kq,qga as a,sda as F,uda as L,yga as Bq}from"./cli-1.0.15-x6bgcj6j.mjs";import{Mja as p,Qja as Wq}from"./cli-1.0.15-yrdyyvx7.mjs";import{Aka as N,Fka as Uq,xka as o}from"./cli-1.0.15-vpx3dnt7.mjs";import{Fma as f,yqa as xq}from"./cli-1.0.15-yxt9f7qb.mjs";import{hsa as Zq}from"./cli-1.0.15-qt9wsd1x.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as Sd,HG as Td,JG as Ud,QG as Vd,kq as Wd,XG as Xd,YG as Yd,$G as Zd,zG as _d,ZG as $d,xG as ae,hq as be};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{a9 as D}from"./cli-1.0.15-s13zq2g6.mjs";import{Mja as L,Qja as JG,_ja as W,bka as a}from"./cli-1.0.15-yrdyyvx7.mjs";import{Kka as c,Lka as jG,Vka as GG}from"./cli-1.0.15-tf9z0qgg.mjs";import{Xqa as U,Yqa as g}from"./cli-1.0.15-qdf1s8sn.mjs";import{Kra as RG,sra as H}from"./cli-1.0.15-mcyk2xwv.mjs";import{Ora as wG}from"./cli-1.0.15-7aa072q4.mjs";import{dsa as WG,hsa as j,isa as e}from"./cli-1.0.15-qt9wsd1x.mjs";function hG(){_.cache.clear?.(),W("Cleared CA certificates cache")}var _;var p=j(()=>{g();a();GG();JG();_=U(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as EG}from"https";function gG(){let G=F(),J=_();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function v(){let G=F(),J=_();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){F.cache.clear?.(),P.cache.clear?.(),W("Cleared mTLS configuration cache")}function pG(){if(!F())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var F,P;var KG=j(()=>{g();p();a();JG();F=U(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),P=U(()=>{let G=F(),J=_();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new EG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,i;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");i=class i extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
+
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=w,super.createSocket(G,J,Q)},(w)=>{this.decrementSockets(Y,Z),Q(w)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let X=G.read();if(X)q(X);else G.once("readable",Z)}function w(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){w(),C("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(X){w(),C("onerror %o",X),Q(X)}function q(X){Y.push(X),K+=X.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
+
\r
|
|
4
|
+
`);if(O===-1){C("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
+
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),TG=+t[1],IG=t.slice(2).join(" "),E={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=E[d];if(typeof A==="string")E[d]=[A,l];else if(Array.isArray(A))A.push(l);else E[d]=l}C("got proxy server response: %o %o",f,E),w(),J({connect:{statusCode:TG,statusText:IG,headers:E},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var XG,C;var zG=j(()=>{XG=WG(wG(),1),C=XG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,T,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},x;var qG=j(()=>{$G();zG();BG();HG=WG(wG(),1),T=HG.default("https-proxy-agent");x=class x extends i{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},T("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")T("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else T("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
+
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))w+=`${z}: ${Y[z]}\r
|
|
7
|
+
`;let $=n(K);K.write(`${w}\r
|
|
8
|
+
`);let{connect:V,buffered:q}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){T("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let X=new M.Socket({writable:!1});return X.readable=!0,G.once("socket",(z)=>{T("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(q),z.push(null)}),X}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},w=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${w}:${J.port} HTTP/1.1\r
|
|
9
|
+
`;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${w}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Z))$+=`${X}: ${Z[X]}\r
|
|
10
|
+
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
+
`);let{connect:q}=await V;if(G.emit("proxyConnect",q),this.emit("proxyConnect",q,G),q.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return T("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${q.statusCode} after retry`)}};x.protocols=["http","https"]});function MJ(G){r.set(G,!0),UG(G)}function UG(G){NG.cache.delete?.(G)}function HJ(G){_G.set(G,!0),UG(G)}function OG(G){return _G.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function I(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function h(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function y(G,J={}){let Q=F(),K=_(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,$)=>{$(null,Z,bG(w))};return new x(G,{...Y,...J})}function qJ(G={}){let J=I(),Q=P(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=y(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&h(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=I();if(!J)return;if(h(G))return;return y(J)}function UJ(G){let J=I();if(!J)return;if(h(G))return;return J}function _J(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=I();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...v()};return{...J,dispatcher:o(Q)}}let K=v();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:NG(G.provider)};return{...J,...K}}function FJ(){let G=I(),J=P();if(m!==void 0)H.interceptors.request.eject(m),m=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=y(G);m=H.interceptors.request.use((K)=>{if(K.url&&h(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=v();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function NJ(){let G=I();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.0.15-pjgsjdye.mjs"),import("./index-1.0.15-hppyew9q.mjs")]),K=y(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function TJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,_G,o,N,FG,PG,NG,m;var vG=j(()=>{RG();qG();g();p();a();GG();KG();r=new Map;_G=new Map;o=U((G)=>{let J=D(),Q=F(),K=_(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),N={connections:12,keepAliveTimeout:30000,pipelining:1},FG={firstParty:{...N,allowH2:!0},openai:{...N,allowH2:!0},gemini:{...N,allowH2:!0},mistral:{...N,allowH2:!0},github:{...N,allowH2:!0},codex:{...N,allowH2:!0},"nvidia-nim":{...N,allowH2:!0},minimax:{...N,allowH2:!0}},PG=FG.openai,NG=U((G)=>{let J=D(),Q=FG[G]??PG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
+
export{hG as F8,p as G8,F as H8,gG as I8,aG as J8,pG as K8,KG as L8,MJ as M8,HJ as N8,OG as O8,I as P8,h as Q8,qJ as R8,jJ as S8,UJ as T8,_J as U8,FJ as V8,NJ as W8,TJ as X8,vG as Y8};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ux as J,Vx as Z,YG as z,ZG as M,oF as L,pF as h}from"./cli-1.0.15-bb8j8b0v.mjs";import{kZ as X}from"./cli-1.0.15-nrwby2vr.mjs";import{X3 as W}from"./cli-1.0.15-9cvsym9y.mjs";import{Vpa as H,yqa as V}from"./cli-1.0.15-yxt9f7qb.mjs";import{dsa as D,hsa as U}from"./cli-1.0.15-qt9wsd1x.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 vg,A as wg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lh as B,Mh as CJ}from"./cli-1.0.15-9rjbyjmt.mjs";import{$q as JJ,Ay as yJ,Hn as AJ,In as rJ,Lq as vq,Nq as n,Oq as NJ,Tn as DJ,Un as lJ,Vn as PJ,Vq as TJ,Wn as tJ,Xn as VJ,Xq as OJ,Yn as eJ,Zx as Cq,_x as FJ,ar as uq,ay as QQ,dr as MJ,er as QJ,gG as BJ,iG as ZQ,ox as wJ,px as JQ,yy as Bq,zy as kq}from"./cli-1.0.15-bb8j8b0v.mjs";import{jY as LJ,kY as oJ,nY as RJ,oY as aJ,wY as jJ,xY as qQ}from"./cli-1.0.15-f2k7cw2y.mjs";import{G0 as O,I0 as D,K0 as nq,L0 as EJ,kZ as sJ,l1 as hJ}from"./cli-1.0.15-nrwby2vr.mjs";import{T3 as IJ,U3 as H,V3 as j,W3 as zJ}from"./cli-1.0.15-bhsgw22k.mjs";import{X3 as nJ}from"./cli-1.0.15-9cvsym9y.mjs";import{D6 as mq,E8 as HQ,F6 as s,N5 as bq,O5 as GJ,O6 as i,Q5 as Eq,R6 as yq,V6 as dJ,a6 as HJ,f6 as pJ,f7 as kJ,j8 as _J,k7 as GQ}from"./cli-1.0.15-xw62agkd.mjs";import{$8 as xJ,_8 as K}from"./cli-1.0.15-51jmehra.mjs";import{Fba as $J,Hda as iJ,pba as aq,qba as lq,rba as _q,sba as tq,sda as UJ,tba as eq,uba as qJ,uda as WJ}from"./cli-1.0.15-x6bgcj6j.mjs";import{Xia as KJ,_ia as cJ}from"./cli-1.0.15-8kr6hy0g.mjs";import{dsa as XJ,hsa as Rq}from"./cli-1.0.15-qt9wsd1x.mjs";function hq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function z(J,q,Q){if(q.startsWith("ansi:")){let Y=q.slice(5);if(Q==="fg")return J[Y]??J;let X=`bg${Y[0].toUpperCase()}${Y.slice(1)}`;return J[X]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let Y=parseInt(q.slice(8));return Q==="fg"?J.ansi256(Y):J.bgAnsi256(Y)}let Z=bJ.exec(q);if(Z){let[Y,X,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(Y,X,U):J.bgRgb(Y,X,U)}return J}function PQ(J,q,Q,Z,Y){if(!B())return uJ(J,q,Q,Z,Y);let{suggestion:X,messageActionsBackground:U}=Y,G=U==="ansi:white"||U==="ansi:whiteBright"?Y.inactive:U,R=Y.inverseText,I=Y.suggestion,F=z(z(K,X,"bg"),R,"fg").bold,L=z(z(K,X,"fg"),G,"bg"),A=z(z(K,G,"bg"),I,"fg"),T=z(K,G,"fg"),Pq=z(K,X,"fg"),P=F(` ${J} `);if(q){if(P+=L(w),P+=A(` ${sq} ${q}`),Q>0||Z>0){if(P+=A(" ("),Q>0)P+=z(z(K,G,"bg"),Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)P+=A(" ");if(Z>0)P+=z(z(K,G,"bg"),Y.warning,"fg")(`↓${Z}`);P+=A(")")}P+=A(" "),P+=T(w)}else P+=Pq(w);return P}function VQ(J,q,Q){if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J)} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J} `)+U(w)}function jQ(J,q,Q){if(!J)return"";if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J.trim())} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function NQ(J,q,Q){if(!J)return"";if(!B())return`[ ${z(K,q.suggestion,"fg")(J.trim())} ]`;let Z=hq(q),Y=q.suggestion,X=z(z(K,Z,"bg"),Y,"fg"),U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function rq(J,q,Q){if(!J)return"";if(!B())return`[ ${J} ]`;let Z=z(z(K,q,"bg"),Q.inverseText,"fg").bold,Y=z(K,q,"fg");return Z(` ${J} `)+Y(w)}function TQ(J,q,Q,Z,Y){if(!J)return"";if(!B()){let L=z(K,Z.suggestion,"fg")(J);if(q>0||Q>0){if(L+=" (",q>0)L+=z(K,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)L+=" ";if(Q>0)L+=z(K,Z.warning,"fg")(`↓${Q}`);L+=")"}return`[ ${L} ]`}let X=hq(Z),U=Z.suggestion,G=z(z(K,X,"bg"),U,"fg"),R=Y?z(z(K,Y,"bg"),X,"fg"):z(K,X,"fg"),I=G(` ${sq} ${J}`);if(q>0||Q>0){if(I+=G(" ("),q>0)I+=z(z(K,X,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=G(" ");if(Q>0)I+=z(z(K,X,"bg"),Z.warning,"fg")(`↓${Q}`);I+=G(")")}return I+=G(" "),I+=R(w),I}function dq(J,q){if(!q||!nq())return J;return`${Bq}${q}${kq}${J}${Bq}${kq}`}function OQ(J,q,Q,Z="PR",Y){if(!B()){let F=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,L=dq(z(K,F,"fg")(`#${J}`),Y);return`[ ${z(K,Q.inactive,"fg")(Z)} ${L} ]`}let X=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,G=z(z(K,X,"bg"),Q.inactive,"fg"),R=z(z(K,X,"bg"),U,"fg"),I=z(K,X,"fg");return G(` ${gJ} `)+dq(R(`#${J}`),Y)+G(" ")+I(w)}function uJ(J,q,Q,Z,Y){let X=z(K,Y.suggestion,"fg").bold,U=`[ ${X(J)} ]`;if(q){let R=z(K,Y.suggestion,"fg")(q);if(Q>0||Z>0){if(R+=" (",Q>0)R+=z(K,Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)R+=" ";if(Z>0)R+=z(K,Y.warning,"fg")(`↓${Z}`);R+=")"}U+=` [ ${R} ]`}return U}var w="",sq="",gJ="",bJ;var oq=Rq(()=>{xJ();EJ();yJ();CJ();bJ=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function fJ(J,q){if(vq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function kQ(J,q,Q){if(!n(q))return;let Z=JJ(q,J),Y=fJ(Z,Q);return{pill:rq(`${Sq(Z)} ${Z}`,Y,Q),bg:Y}}function Sq(J){if(vq(J))return qJ;switch(J){case"low":return aq;case"medium":return lq;case"high":return _q;case"xhigh":return tq;case"max":return eq;default:return _q}}var ZJ=Rq(()=>{$J();QJ();oq()});function rQ(J){let q=$q.c(82),{initial:Q,sessionModel:Z,onSelect:Y,onCancel:X,isStandaloneCommand:U,showFastModeNotice:G,headerText:R,skipSettingsWrite:I}=J,F=FJ(),L=RJ(),A=Q===null?h:Q,[T,Pq]=Dq.useState(A),P=Cq(KQ),[k,vJ]=Dq.useState(!1),_=Cq(XQ),r;if(q[0]!==_)r=_!==void 0?uq(_):void 0,q[0]=_,q[1]=r;else r=q[1];let[v,fq]=Dq.useState(r),Vq=P??!1,o;if(q[2]!==Vq)o=wJ(Vq),q[2]=Vq,q[3]=o;else o=q[3];let p=o,jq;q:{if(Q!==null&&!p.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return s(i(String(W.value)))===s(i(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=yq(Q),q[4]=Q,q[5]=W;else W=q[5];let V;if(q[6]!==Q||q[7]!==W)V={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=V;else V=q[8];let S;if(q[9]!==p||q[10]!==V)S=[...p,V],q[9]=p,q[10]=V,q[11]=S;else S=q[11];jq=S;break q}jq=p}let Nq=jq,a;if(q[12]!==Nq)a=Nq.map(YQ),q[12]=Nq,q[13]=a;else a=q[13];let N=a,l;if(q[14]!==A||q[15]!==N)l=N.find((W)=>{if(W.value===A)return!0;if(A===h||W.value===null)return!1;try{return s(i(String(W.value)))===s(i(String(A)))}catch{return!1}})?.value??N[0]?.value??void 0,q[14]=A,q[15]=N,q[16]=l;else l=q[16];let Tq=l,t=Math.min(10,N.length),e=Math.max(0,N.length-t),qq;if(q[17]!==T||q[18]!==N)qq=N.find((W)=>W.value===T)?.label,q[17]=T,q[18]=N,q[19]=qq;else qq=q[19];let Jq=qq,M,Qq;if(q[20]!==T){let W=gq(T);M=W?n(W):!1,Qq=W?NJ(W):!1,q[20]=T,q[21]=M,q[22]=Qq}else M=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==T)zq=xq(T),q[23]=T,q[24]=zq;else zq=q[24];let x=zq,d=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==_||q[26]!==k)Yq=(W)=>{if(Pq(W),!k&&_===void 0)fq(xq(W))},q[25]=_,q[26]=k,q[27]=Yq;else Yq=q[27];let Oq=Yq,Xq;if(q[28]!==x||q[29]!==M||q[30]!==Zq)Xq=(W)=>{if(!M)return;fq((V)=>UQ(V??x,W,Zq)),vJ(!0)},q[28]=x,q[29]=M,q[30]=Zq,q[31]=Xq;else Xq=q[31];let Kq=Xq,Uq;if(q[32]!==Kq)Uq={"modelPicker:decreaseEffort":()=>Kq("left"),"modelPicker:increaseEffort":()=>Kq("right")},q[32]=Kq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];LJ(Uq,Wq);let Gq;if(q[35]!==v||q[36]!==k||q[37]!==Y||q[38]!==F||q[39]!==I)Gq=function(V){if(KJ("tengu_model_command_menu_effort",{effort:v}),!I){let iq=OJ(v,xq(V),UJ("userSettings")?.effortLevel,k),pq=TJ(iq);if(pq!==void 0)WJ("userSettings",{effortLevel:pq});F((SJ)=>({...SJ,effortValue:iq}))}let S=gq(V),cq=k&&S&&n(S)?v:void 0;if(V===h){Y(null,cq);return}Y(V,cq)},q[35]=v,q[36]=k,q[37]=Y,q[38]=F,q[39]=I,q[40]=Gq;else Gq=q[40];let Mq=Gq,Hq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Hq=H(D,{color:"remember",bold:!0,children:"Select model"}),q[41]=Hq;else Hq=q[41];let wq=R??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=H(D,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let y;if(q[44]!==Z)y=Z&&j(D,{dimColor:!0,children:["Currently using ",yq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=y;else y=q[45];let C;if(q[46]!==E||q[47]!==y)C=j(O,{marginBottom:1,flexDirection:"column",children:[Hq,E,y]}),q[46]=E,q[47]=y,q[48]=C;else C=q[48];let Fq=X??zQ,g;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Tq||q[52]!==A||q[53]!==N||q[54]!==Fq||q[55]!==t)g=H(O,{flexDirection:"column",children:H(BJ,{defaultValue:A,defaultFocusValue:Tq,options:N,onChange:Mq,onFocus:Oq,onCancel:Fq,visibleOptionCount:t})}),q[49]=Oq,q[50]=Mq,q[51]=Tq,q[52]=A,q[53]=N,q[54]=Fq,q[55]=t,q[56]=g;else g=q[56];let b;if(q[57]!==e)b=e>0&&H(O,{paddingLeft:3,children:j(D,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=b;else b=q[58];let m;if(q[59]!==g||q[60]!==b)m=j(O,{flexDirection:"column",marginBottom:1,children:[g,b]}),q[59]=g,q[60]=b,q[61]=m;else m=q[61];let u;if(q[62]!==d||q[63]!==x||q[64]!==Jq||q[65]!==M)u=H(O,{marginBottom:1,flexDirection:"column",children:M?j(D,{dimColor:!0,children:[H(YJ,{effort:d})," ",AJ(d)," effort",d===x?" (default)":""," ",H(D,{color:"subtle",children:"← → to adjust"})]}):j(D,{color:"subtle",children:[H(YJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=d,q[63]=x,q[64]=Jq,q[65]=M,q[66]=u;else u=q[66];let $;if(q[67]!==G)$=bq()?G?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Fast mode is ",H(D,{bold:!0,children:"ON"})," and available with"," ",Eq," only (/fast). Switching to other models turn off fast mode."]})}):GJ()&&!HJ()?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Use ",H(D,{bold:!0,children:"/fast"})," to turn on Fast mode (",Eq," only)."]})}):null:null,q[67]=G,q[68]=$;else $=q[68];let f;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==$)f=j(O,{flexDirection:"column",children:[C,m,u,$]}),q[69]=C,q[70]=m,q[71]=u,q[72]=$,q[73]=f;else f=q[73];let c;if(q[74]!==L||q[75]!==U)c=U&&H(D,{dimColor:!0,italic:!0,children:L.pending?j(IJ,{children:["Press ",L.keyName," again to exit"]}):j(VJ,{children:[H(DJ,{shortcut:"Enter",action:"confirm"}),H(PJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=L,q[75]=U,q[76]=c;else c=q[76];let Iq;if(q[77]!==f||q[78]!==c)Iq=j(O,{flexDirection:"column",children:[f,c]}),q[77]=f,q[78]=c,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Lq;if(q[80]!==Aq)Lq=H(jJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Lq;else Lq=q[81];return Lq}function zQ(){}function YQ(J){return{...J,value:J.value===null?h:J.value}}function XQ(J){return J.effortValue}function KQ(J){return bq()?J.fastMode:!1}function gq(J){if(!J)return;return J===h?mq():i(J)}function YJ(J){let q=$q.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",Y=Q??"low",X;if(q[0]!==Y)X=Sq(Y),q[0]=Y,q[1]=X;else X=q[1];let U;if(q[2]!==Z||q[3]!==X)U=H(D,{color:Z,children:X}),q[2]=Z,q[3]=X,q[4]=U;else U=q[4];return U}function UQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],Y=Z.indexOf(J),X=Y!==-1?Y:Z.indexOf("high");if(q==="right")return Z[(X+1)%Z.length];else return Z[(X-1+Z.length)%Z.length]}function xq(J){let q=gq(J)??mq(),Q=MJ(q);return Q!==void 0?uq(Q):"high"}var $q,Dq,h="__NO_PREFERENCE__";var WQ=Rq(()=>{rJ();aJ();cJ();pJ();hJ();oJ();QQ();QJ();dJ();JQ();iJ();tJ();ZQ();eJ();lJ();qQ();ZJ();zJ();$q=XJ(sJ(),1),Dq=XJ(nJ(),1)});function eQ(J,q,Q){if(!_J())return!1;if(q)return!0;if(J===null||!kJ(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),Y=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),X=Z==="sonnet"||Z.includes("sonnet-4-6");if(Y&&Q)return!1;return Y||X}var IQ=Rq(()=>{HQ();GQ()});
|
|
2
|
+
export{hq as Ug,mJ as Vg,PQ as Wg,VQ as Xg,jQ as Yg,NQ as Zg,TQ as _g,OQ as $g,oq as ah,kQ as bh,Sq as ch,ZJ as dh,rQ as eh,WQ as fh,eQ as gh,IQ as hh};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{Hg as _Q,Jg as iQ}from"./cli-1.0.15-wm6cn7n7.mjs";import{ui as WQ,vi as zX}from"./cli-1.0.15-vdfjzwyj.mjs";import{CJ as JJ,Cp as ZQ,DJ as mJ,Dp as uQ,Fs as qX,KJ as GQ,LJ as KQ,MJ as VQ,NJ as OQ,PJ as NQ,SJ as IJ,TJ as nJ,UJ as rJ,VJ as gQ,YF as SJ,ZF as YQ,vs as CQ}from"./cli-1.0.15-bb8j8b0v.mjs";import{WX as bJ,XX as aJ,iY as AQ,kY as ZX,nY as FQ,oY as $X,uY as zJ,vY as iJ}from"./cli-1.0.15-f2k7cw2y.mjs";import{B0 as FJ,C0 as CJ,D0 as oJ,G0 as N,I0 as M,S0 as t,a1 as e,aZ as LJ,bZ as lJ,l1 as WJ,tZ as AJ}from"./cli-1.0.15-nrwby2vr.mjs";import{U3 as q,V3 as _,W3 as s}from"./cli-1.0.15-bhsgw22k.mjs";import{X3 as BJ}from"./cli-1.0.15-9cvsym9y.mjs";import{$8 as dJ,_8 as i}from"./cli-1.0.15-51jmehra.mjs";import{qga as x,yga as DJ}from"./cli-1.0.15-x6bgcj6j.mjs";import{Dga as f,Ega as pJ,Gga as n,Kga as uJ,Pga as vJ,Vga as kQ}from"./cli-1.0.15-zv07g6mh.mjs";import{iia as UQ,jia as aQ}from"./cli-1.0.15-0jqatfe7.mjs";import{dsa as OJ,hsa as qJ,isa as oQ}from"./cli-1.0.15-qt9wsd1x.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let B of HJ(H.agents))if(K+=1,!B.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((B)=>!B.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",B=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return B+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),B=eJ(J),W=Math.min(U,Math.max(0,B.length-1)),X=B[W],{done:I,total:w}=tJ(J),[S]=AJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=B.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[B,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...B.filter(($)=>$.runId!==J.runId)]:B).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((A)=>Math.max(0,A-1));else if(Y.downArrow)O(),S((A)=>Math.min(Math.max(0,P-1),A+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(BJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),B=J.instructions.trim();return`---
|
|
2
|
+
${H}
|
|
3
|
+
---
|
|
4
|
+
${B?`${B}
|
|
5
|
+
`:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((B,W)=>({...B,name:W===U?K:B.name,handbackTo:B.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[B]=AJ(),W=FJ(B),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=GQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.0.15-mejg5tt1.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=KQ(X);if(h)Q.push(...VQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),A=C-1,u=X&&A>=0?X.steps[A]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
|
|
6
|
+
`:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,A).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,A,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&A>=0)P((G)=>({...G,steps:qQ(G.steps,A,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,A,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&A>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===A?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&A>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===A?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,A,P]),jQ=E.useCallback(()=>{if(A<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==A)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,A,P]),gJ=E.useCallback((Q)=>{if(!X||A<0)return;let Z=A+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(A,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,A,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
|
|
7
|
+
`):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();YQ();aJ();aQ();DJ();iQ();oJ();uJ();NQ();mJ();zQ();s();E=OJ(BJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,B]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{B(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((A)=>Math.max(0,A-1));else if(P.downArrow)w((A)=>Math.min(H.length-1,A+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let A=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,A?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
|
|
8
|
+
name: ${J}
|
|
9
|
+
description: What this workflow does
|
|
10
|
+
steps:
|
|
11
|
+
- name: explore
|
|
12
|
+
agents: [explorer]
|
|
13
|
+
- name: synthesize
|
|
14
|
+
agents: [synthesizer]
|
|
15
|
+
handbackTo: [explore]
|
|
16
|
+
- name: done
|
|
17
|
+
---
|
|
18
|
+
Describe the goal and any house rules for this workflow.
|
|
19
|
+
`;var LQ=qJ(()=>{WJ();YQ();DJ();iJ();NQ();mJ();PQ();s();p=OJ(BJ(),1)});function BQ({hint:J,onExit:U,escActive:K=!0}){let H=FQ();return AQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[B,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);CQ({value:`<task-notification>
|
|
20
|
+
<status>${c.status}</status>
|
|
21
|
+
<summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
|
|
22
|
+
<result>${$}</result>
|
|
23
|
+
</task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:B==="running",inverse:B==="running",children:[" ","Running"," "]}),_(M,{bold:B==="library",inverse:B==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(B==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(BQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(BQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();$X();ZX();DJ();qX();zX();XQ();LQ();s();d=OJ(BJ(),1)});
|
|
24
|
+
export{NZ as dc,YX as ec};
|