@claudiolabs/claudin 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.25-wemjscyz.mjs +1 -0
- package/dist/chunks/App-1.1.25-k5h3kma3.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.25-z8vqxm93.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.25-qmr6qf3r.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.25-78m4mvsv.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.25-htk8qebw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.25-8evt7epy.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.25-3nbcvm6d.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.25-7n5581yw.mjs +6 -0
- package/dist/chunks/Doctor-1.1.25-zvcm13vd.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.25-jazr0v5h.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.25-tb139x32.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.25-h27j1v12.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.25-7gxkqb1q.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.25-21kzry6a.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.25-z4ps8td0.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.25-dekvcwna.mjs +1 -0
- package/dist/chunks/REPL-1.1.25-x77jymbq.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.25-z1n7c0cp.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.25-ye8czpf8.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.25-qy9dcwtf.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.25-se513tcw.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.25-shafx13k.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.25-q9jqjghn.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.25-c9b16qp6.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.25-4x0h3a7n.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.25-9z82gazg.mjs +1 -0
- package/dist/chunks/add-dir-1.1.25-3eark7aj.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.25-88qbcwen.mjs +1 -0
- package/dist/chunks/agents-1.1.25-58s95cy7.mjs +110 -0
- package/dist/chunks/agents-1.1.25-rprb9rf9.mjs +3 -0
- package/dist/chunks/api-1.1.25-ceedtxx2.mjs +1 -0
- package/dist/chunks/asciicast-1.1.25-dtyww79s.mjs +1 -0
- package/dist/chunks/assistant-1.1.25-12s5z3q2.mjs +1 -0
- package/dist/chunks/auth-1.1.25-cd9y34xe.mjs +1 -0
- package/dist/chunks/auth-1.1.25-gphkwwnp.mjs +1 -0
- package/dist/chunks/autoMode-1.1.25-zdd4g2rn.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.25-17zj185q.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.25-tb3pf0cw.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.25-mtctkars.mjs +1 -0
- package/dist/chunks/branch-1.1.25-ytfahhwq.mjs +4 -0
- package/dist/chunks/bridge-1.1.25-kkjx4g4j.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.25-9h63taqc.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.25-yq7hv80q.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.25-rmcdgp77.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.25-x3jjj2ek.mjs +1 -0
- package/dist/chunks/btw-1.1.25-xdh8rhdz.mjs +1 -0
- package/dist/chunks/buddy-1.1.25-aj90p6ww.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.25-4wztx76s.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.25-9bd12my6.mjs +4 -0
- package/dist/chunks/caches-1.1.25-2ewrwm5x.mjs +1 -0
- package/dist/chunks/cd-1.1.25-9yhaw8rp.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.25-bw8arps4.mjs +1 -0
- package/dist/chunks/claudemd-1.1.25-f621m88g.mjs +1 -0
- package/dist/chunks/clear-1.1.25-jk3ztva0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.25-7jtejen6.mjs +1 -0
- package/dist/chunks/cli-1.1.25-0m4pyzaf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-0q6rqkec.mjs +58 -0
- package/dist/chunks/cli-1.1.25-12b1rzfj.mjs +2 -0
- package/dist/chunks/cli-1.1.25-14jerc0x.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1c4t0f2p.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1c633j9v.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1gz0w81n.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1hx796kk.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1s7ketx0.mjs +2 -0
- package/dist/chunks/cli-1.1.25-1sf51thg.mjs +3 -0
- package/dist/chunks/cli-1.1.25-221zdn3h.mjs +4 -0
- package/dist/chunks/cli-1.1.25-24f6az0s.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2gjxmbsj.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2gtabky3.mjs +60 -0
- package/dist/chunks/cli-1.1.25-2wd0qj2d.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2we0778z.mjs +2 -0
- package/dist/chunks/cli-1.1.25-2zepg15b.mjs +2 -0
- package/dist/chunks/cli-1.1.25-32br2csx.mjs +2 -0
- package/dist/chunks/cli-1.1.25-32qfxqyg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-348yqf3d.mjs +2 -0
- package/dist/chunks/cli-1.1.25-37rs38eq.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3dd0c7xd.mjs +4 -0
- package/dist/chunks/cli-1.1.25-3ev2q4bm.mjs +4 -0
- package/dist/chunks/cli-1.1.25-3hnrfkxc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3nhwpx0q.mjs +3 -0
- package/dist/chunks/cli-1.1.25-3nm4kgwz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3qj0n5y0.mjs +21 -0
- package/dist/chunks/cli-1.1.25-3tnd3xyt.mjs +3 -0
- package/dist/chunks/cli-1.1.25-3v5624jg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-3vtsr7s2.mjs +2 -0
- package/dist/chunks/cli-1.1.25-45mx738r.mjs +3 -0
- package/dist/chunks/cli-1.1.25-4cgvw7e3.mjs +2 -0
- package/dist/chunks/cli-1.1.25-4d1zk1ar.mjs +12 -0
- package/dist/chunks/cli-1.1.25-4h4yaa4x.mjs +2 -0
- package/dist/chunks/cli-1.1.25-4yjtqfa0.mjs +2 -0
- package/dist/chunks/cli-1.1.25-54q2vnck.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5f8d8bx1.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5g78avtr.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5n21xpvc.mjs +16 -0
- package/dist/chunks/cli-1.1.25-5qknjpxc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5r495hn7.mjs +4 -0
- package/dist/chunks/cli-1.1.25-5s22yhkx.mjs +3 -0
- package/dist/chunks/cli-1.1.25-5s65r14h.mjs +2 -0
- package/dist/chunks/cli-1.1.25-5ye3ascx.mjs +2 -0
- package/dist/chunks/cli-1.1.25-639mzh6g.mjs +2 -0
- package/dist/chunks/cli-1.1.25-63kkff0g.mjs +2 -0
- package/dist/chunks/cli-1.1.25-683ggh08.mjs +2 -0
- package/dist/chunks/cli-1.1.25-687hxtdb.mjs +1 -0
- package/dist/chunks/cli-1.1.25-69shxnnp.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6bb29bw7.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6panntay.mjs +17 -0
- package/dist/chunks/cli-1.1.25-6pthkv1w.mjs +4 -0
- package/dist/chunks/cli-1.1.25-6r6r7rep.mjs +4 -0
- package/dist/chunks/cli-1.1.25-6t9phfap.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6vwz5vma.mjs +2 -0
- package/dist/chunks/cli-1.1.25-6wcggeyr.mjs +25 -0
- package/dist/chunks/cli-1.1.25-6wjrv08c.mjs +6 -0
- package/dist/chunks/cli-1.1.25-746dypse.mjs +2 -0
- package/dist/chunks/cli-1.1.25-74ys7518.mjs +42 -0
- package/dist/chunks/cli-1.1.25-7d3fdbq5.mjs +17 -0
- package/dist/chunks/cli-1.1.25-7d7cptk6.mjs +10 -0
- package/dist/chunks/cli-1.1.25-7qert3s4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-7qxwpfwh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-7wsdhgky.mjs +2 -0
- package/dist/chunks/cli-1.1.25-82ht7pxh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8byrahks.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8eznzbsa.mjs +5 -0
- package/dist/chunks/cli-1.1.25-8hv1dfrb.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8k2bszzr.mjs +2 -0
- package/dist/chunks/cli-1.1.25-8v1gw0tw.mjs +9 -0
- package/dist/chunks/cli-1.1.25-8vqmp6g5.mjs +20 -0
- package/dist/chunks/cli-1.1.25-9f27xm90.mjs +25 -0
- package/dist/chunks/cli-1.1.25-9grz07r4.mjs +34 -0
- package/dist/chunks/cli-1.1.25-9m237kwt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-9xqq9dsw.mjs +3 -0
- package/dist/chunks/cli-1.1.25-9yhnadye.mjs +24 -0
- package/dist/chunks/cli-1.1.25-9z7tyxc4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-a0zejb5c.mjs +2 -0
- package/dist/chunks/cli-1.1.25-am98khq7.mjs +2 -0
- package/dist/chunks/cli-1.1.25-anhj1nnt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-anvsm1cs.mjs +2 -0
- package/dist/chunks/cli-1.1.25-b1hj5x42.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ba3yrxg9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-bmjvmtgk.mjs +2 -0
- package/dist/chunks/cli-1.1.25-bvg3kwg7.mjs +4 -0
- package/dist/chunks/cli-1.1.25-cc10r97z.mjs +2 -0
- package/dist/chunks/cli-1.1.25-cmsea0j8.mjs +15 -0
- package/dist/chunks/cli-1.1.25-csgmna38.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ctfh8503.mjs +2 -0
- package/dist/chunks/cli-1.1.25-d029ezbm.mjs +2 -0
- package/dist/chunks/cli-1.1.25-d15hk64v.mjs +2 -0
- package/dist/chunks/cli-1.1.25-d6ybhba5.mjs +2 -0
- package/dist/chunks/cli-1.1.25-dc92c5gy.mjs +2 -0
- package/dist/chunks/cli-1.1.25-df9x7s0j.mjs +2 -0
- package/dist/chunks/cli-1.1.25-dn7m24cg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-drtfsgw8.mjs +3 -0
- package/dist/chunks/cli-1.1.25-dw0mshd5.mjs +2 -0
- package/dist/chunks/cli-1.1.25-e2ng6vcx.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ed14rf9g.mjs +2 -0
- package/dist/chunks/cli-1.1.25-eqtpax1f.mjs +6 -0
- package/dist/chunks/cli-1.1.25-etb23y0w.mjs +4 -0
- package/dist/chunks/cli-1.1.25-ex6f69yn.mjs +2 -0
- package/dist/chunks/cli-1.1.25-f424x1de.mjs +2 -0
- package/dist/chunks/cli-1.1.25-f57233sm.mjs +8 -0
- package/dist/chunks/cli-1.1.25-f5ag59tm.mjs +4 -0
- package/dist/chunks/cli-1.1.25-f6w108cp.mjs +6 -0
- package/dist/chunks/cli-1.1.25-f9pk1asa.mjs +7 -0
- package/dist/chunks/cli-1.1.25-fr1nw6bz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-fwh7d55c.mjs +2 -0
- package/dist/chunks/cli-1.1.25-g6y71why.mjs +24 -0
- package/dist/chunks/cli-1.1.25-gba9rrnp.mjs +15 -0
- package/dist/chunks/cli-1.1.25-gezpvyzq.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gm5mfwmy.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gmvcd8bm.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gnsqbh0h.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gsngwhfp.mjs +2 -0
- package/dist/chunks/cli-1.1.25-gz32rhhs.mjs +2 -0
- package/dist/chunks/cli-1.1.25-h164y8f5.mjs +2 -0
- package/dist/chunks/cli-1.1.25-h6ag26rc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hdgk2770.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hjvawqyb.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hjwttff4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-hpfkk20r.mjs +2 -0
- package/dist/chunks/cli-1.1.25-j6x483np.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jaz67hdc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jk7skh2n.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jmv6jw6b.mjs +2 -0
- package/dist/chunks/cli-1.1.25-jsn4we2f.mjs +2 -0
- package/dist/chunks/cli-1.1.25-k6kqfxnq.mjs +2 -0
- package/dist/chunks/cli-1.1.25-k6v3tvg9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-k9qcf2mf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kdamwjt1.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kn1yv4f6.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kpah4ttt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kpv8j6wf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-kvwevqsc.mjs +18 -0
- package/dist/chunks/cli-1.1.25-m0h0ddew.mjs +2 -0
- package/dist/chunks/cli-1.1.25-m86a8tmc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-n10jmzvk.mjs +2 -0
- package/dist/chunks/cli-1.1.25-n5gb4kx8.mjs +2 -0
- package/dist/chunks/cli-1.1.25-n6df4vnz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-nh2xj15f.mjs +2 -0
- package/dist/chunks/cli-1.1.25-njrez2x5.mjs +12 -0
- package/dist/chunks/cli-1.1.25-nmw9agm4.mjs +133 -0
- package/dist/chunks/cli-1.1.25-nmxbk4dt.mjs +2 -0
- package/dist/chunks/cli-1.1.25-np8863pb.mjs +3 -0
- package/dist/chunks/cli-1.1.25-ntfm6tbg.mjs +2 -0
- package/dist/chunks/cli-1.1.25-nwdtve8h.mjs +2 -0
- package/dist/chunks/cli-1.1.25-nxvqf4sh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-p2kmhxd3.mjs +3 -0
- package/dist/chunks/cli-1.1.25-p9j8prqh.mjs +2 -0
- package/dist/chunks/cli-1.1.25-pcamey8m.mjs +2 -0
- package/dist/chunks/cli-1.1.25-peepax79.mjs +66 -0
- package/dist/chunks/cli-1.1.25-pgs0x971.mjs +50 -0
- package/dist/chunks/cli-1.1.25-px1h2b7d.mjs +2 -0
- package/dist/chunks/cli-1.1.25-pxq7zyjb.mjs +2 -0
- package/dist/chunks/cli-1.1.25-pzp73p0x.mjs +2 -0
- package/dist/chunks/cli-1.1.25-q257pczz.mjs +133 -0
- package/dist/chunks/cli-1.1.25-q5qj0wfa.mjs +18 -0
- package/dist/chunks/cli-1.1.25-q5tqh3tz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-q88hb4qg.mjs +5459 -0
- package/dist/chunks/cli-1.1.25-qd1b1zr7.mjs +3 -0
- package/dist/chunks/cli-1.1.25-qd1q5w85.mjs +2 -0
- package/dist/chunks/cli-1.1.25-qgnyys4j.mjs +6 -0
- package/dist/chunks/cli-1.1.25-qp9j9ma3.mjs +24 -0
- package/dist/chunks/cli-1.1.25-qpb14xj4.mjs +2 -0
- package/dist/chunks/cli-1.1.25-qtjt3cq9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-r0dwt4a0.mjs +2 -0
- package/dist/chunks/cli-1.1.25-r2a8d0xg.mjs +26 -0
- package/dist/chunks/cli-1.1.25-rbapdr02.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rbnjv023.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rf05pze2.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rf0c9c9r.mjs +3 -0
- package/dist/chunks/cli-1.1.25-rg5rxmym.mjs +9 -0
- package/dist/chunks/cli-1.1.25-rkh9pz84.mjs +2 -0
- package/dist/chunks/cli-1.1.25-rqzwndms.mjs +45 -0
- package/dist/chunks/cli-1.1.25-rwg08ga2.mjs +39 -0
- package/dist/chunks/cli-1.1.25-s1ykc389.mjs +2 -0
- package/dist/chunks/cli-1.1.25-s54emewd.mjs +206 -0
- package/dist/chunks/cli-1.1.25-s9sv7xk9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-sjqg08ww.mjs +2 -0
- package/dist/chunks/cli-1.1.25-sm3q65hz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-svtt1qhf.mjs +5 -0
- package/dist/chunks/cli-1.1.25-sz3dey5y.mjs +2 -0
- package/dist/chunks/cli-1.1.25-t6rdfhp9.mjs +3 -0
- package/dist/chunks/cli-1.1.25-t80ab9f0.mjs +7 -0
- package/dist/chunks/cli-1.1.25-tftyt531.mjs +3 -0
- package/dist/chunks/cli-1.1.25-tj3kqgbv.mjs +2 -0
- package/dist/chunks/cli-1.1.25-tz7k6gjy.mjs +2 -0
- package/dist/chunks/cli-1.1.25-vc7150xz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-vkg5fb0z.mjs +2 -0
- package/dist/chunks/cli-1.1.25-vwe1fsde.mjs +2 -0
- package/dist/chunks/cli-1.1.25-wcw9vrkz.mjs +2 -0
- package/dist/chunks/cli-1.1.25-wd0p9nmj.mjs +24 -0
- package/dist/chunks/cli-1.1.25-wtrb99c9.mjs +2 -0
- package/dist/chunks/cli-1.1.25-wy18zt7a.mjs +3 -0
- package/dist/chunks/cli-1.1.25-x26vkphq.mjs +6 -0
- package/dist/chunks/cli-1.1.25-x4ww7pe7.mjs +2 -0
- package/dist/chunks/cli-1.1.25-xbxtyfje.mjs +2 -0
- package/dist/chunks/cli-1.1.25-y0f45gyf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-y4xjnn7w.mjs +2 -0
- package/dist/chunks/cli-1.1.25-ybe971qx.mjs +15 -0
- package/dist/chunks/cli-1.1.25-yctc3qt8.mjs +2 -0
- package/dist/chunks/cli-1.1.25-yf3nnsg1.mjs +2 -0
- package/dist/chunks/cli-1.1.25-z31z20wf.mjs +2 -0
- package/dist/chunks/cli-1.1.25-zk74mh7n.mjs +2 -0
- package/dist/chunks/cli-1.1.25-zpzhf7zc.mjs +2 -0
- package/dist/chunks/cli-1.1.25-zqqpy89q.mjs +6 -0
- package/dist/chunks/cli-1.1.25-zrj2zpkp.mjs +2 -0
- package/dist/chunks/client-1.1.25-08n7ywgz.mjs +1 -0
- package/dist/chunks/color-1.1.25-n45p3cdv.mjs +1 -0
- package/dist/chunks/compact-1.1.25-qqv3fce7.mjs +3 -0
- package/dist/chunks/config-1.1.25-bvznkf41.mjs +1 -0
- package/dist/chunks/config-1.1.25-n6dtcns2.mjs +1 -0
- package/dist/chunks/constants-1.1.25-g61cz55f.mjs +1 -0
- package/dist/chunks/context-1.1.25-e3n1bdyd.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.25-6drmca9m.mjs +1 -0
- package/dist/chunks/conversation-1.1.25-5xfam12e.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.25-n3q0s4gz.mjs +1 -0
- package/dist/chunks/copy-1.1.25-wcjjc2td.mjs +9 -0
- package/dist/chunks/cost-1.1.25-czrc10qr.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.25-q7sr5mgy.mjs +1 -0
- package/dist/chunks/createSession-1.1.25-abgdr9mn.mjs +1 -0
- package/dist/chunks/debug-1.1.25-4284each.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.25-bh5e3czf.mjs +1534 -0
- package/dist/chunks/desktop-1.1.25-kb98q9vj.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.25-a7pfgy12.mjs +1 -0
- package/dist/chunks/detection-1.1.25-8nzvw5jn.mjs +1 -0
- package/dist/chunks/diff-1.1.25-dhnj1tfb.mjs +1 -0
- package/dist/chunks/doctor-1.1.25-0x83n5n5.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.25-qmg4yght.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.25-jz9ewwc0.mjs +1 -0
- package/dist/chunks/effort-1.1.25-6gemkp3j.mjs +13 -0
- package/dist/chunks/engine-1.1.25-hb7ppn8y.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.25-32s3yykr.mjs +1 -0
- package/dist/chunks/envUtils-1.1.25-trphmt1z.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.25-jew2phex.mjs +1 -0
- package/dist/chunks/environments-1.1.25-nkh2j8kv.mjs +1 -0
- package/dist/chunks/errors-1.1.25-0t1vtdpj.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.25-n2ktzve3.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.25-2f72pb95.mjs +1 -0
- package/dist/chunks/exit-1.1.25-302bsne4.mjs +1 -0
- package/dist/chunks/explorer-1.1.25-f47vrcdd.mjs +1 -0
- package/dist/chunks/export-1.1.25-655jmasp.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.25-9f3dc9de.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.25-wjzcb1d3.mjs +1 -0
- package/dist/chunks/fast-1.1.25-k4a1t9tc.mjs +1 -0
- package/dist/chunks/feedback-1.1.25-crmhd8kn.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.25-pr01pvjg.mjs +1 -0
- package/dist/chunks/git-1.1.25-r40xnnqg.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.25-8r84eppg.mjs +1 -0
- package/dist/chunks/goal-1.1.25-2fz16dne.mjs +4 -0
- package/dist/chunks/growthbook-1.1.25-vr1d3g20.mjs +1 -0
- package/dist/chunks/headless-1.1.25-b7ma19kx.mjs +2 -0
- package/dist/chunks/heapdump-1.1.25-s74fnvr9.mjs +6 -0
- package/dist/chunks/help-1.1.25-jphw3nwb.mjs +1 -0
- package/dist/chunks/hookChains-1.1.25-wad3j7ae.mjs +3 -0
- package/dist/chunks/hooks-1.1.25-5psxtbt2.mjs +79 -0
- package/dist/chunks/hooks-1.1.25-n6f1dkc7.mjs +1 -0
- package/dist/chunks/ide-1.1.25-21kw5qe1.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.25-jymb540y.mjs +1 -0
- package/dist/chunks/import-1.1.25-71q60jx1.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.25-qg5v4c4j.mjs +1 -0
- package/dist/chunks/index-1.1.25-0f94rjfd.mjs +1 -0
- package/dist/chunks/index-1.1.25-0n1ksx20.mjs +2 -0
- package/dist/chunks/index-1.1.25-1n597wy3.mjs +1 -0
- package/dist/chunks/index-1.1.25-1rwmhexf.mjs +1 -0
- package/dist/chunks/index-1.1.25-6160t93h.mjs +30 -0
- package/dist/chunks/index-1.1.25-645qcmbw.mjs +9 -0
- package/dist/chunks/index-1.1.25-70ggh135.mjs +1 -0
- package/dist/chunks/index-1.1.25-7nk5p28a.mjs +1 -0
- package/dist/chunks/index-1.1.25-7p7qd15b.mjs +23 -0
- package/dist/chunks/index-1.1.25-8z7y79bf.mjs +1 -0
- package/dist/chunks/index-1.1.25-affe6cxt.mjs +9 -0
- package/dist/chunks/index-1.1.25-bec2ajvp.mjs +1 -0
- package/dist/chunks/index-1.1.25-f64qrtc9.mjs +5 -0
- package/dist/chunks/index-1.1.25-g7v9zhk1.mjs +1 -0
- package/dist/chunks/index-1.1.25-g99896ns.mjs +1 -0
- package/dist/chunks/index-1.1.25-hcbmys9p.mjs +1 -0
- package/dist/chunks/index-1.1.25-j8rm4qgs.mjs +2 -0
- package/dist/chunks/index-1.1.25-kh02yd5c.mjs +1 -0
- package/dist/chunks/index-1.1.25-m6k2vy2a.mjs +1 -0
- package/dist/chunks/index-1.1.25-pmn6pnjv.mjs +1 -0
- package/dist/chunks/index-1.1.25-t0kaa1dy.mjs +1 -0
- package/dist/chunks/index-1.1.25-xfdfregs.mjs +1 -0
- package/dist/chunks/index-1.1.25-ychm6aj7.mjs +1 -0
- package/dist/chunks/init-1.1.25-x7cr3p65.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.25-zcgy02rq.mjs +1 -0
- package/dist/chunks/ink-1.1.25-evxr7syt.mjs +1 -0
- package/dist/chunks/insights-1.1.25-0zz5y2cs.mjs +870 -0
- package/dist/chunks/install-1.1.25-nghrpc4k.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.25-1tb3cz5k.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.25-vsp3sc6d.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.25-e9arjmhp.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.25-dvn7nkzf.mjs +1 -0
- package/dist/chunks/keybindings-1.1.25-7tf4nkft.mjs +2 -0
- package/dist/chunks/knowledge-1.1.25-gchxmcv2.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.25-gzy09f8s.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.25-3fvea40c.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.25-1b1z5t2x.mjs +1 -0
- package/dist/chunks/log-1.1.25-rhpcv45j.mjs +1 -0
- package/dist/chunks/main-1.1.25-hpaj9gzw.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.25-19sxqzbj.mjs +1 -0
- package/dist/chunks/mcp-1.1.25-bkgk2vye.mjs +1 -0
- package/dist/chunks/mcp-1.1.25-n5bde32b.mjs +17 -0
- package/dist/chunks/mcp-1.1.25-wsfk73n2.mjs +4 -0
- package/dist/chunks/mcpb-1.1.25-jwd1ff98.mjs +1 -0
- package/dist/chunks/memory-1.1.25-ae4515h6.mjs +72 -0
- package/dist/chunks/model-1.1.25-kdc32s97.mjs +1 -0
- package/dist/chunks/model-1.1.25-x3hpj8mx.mjs +2 -0
- package/dist/chunks/node-1.1.25-bmakbgcc.mjs +15 -0
- package/dist/chunks/oauth-1.1.25-dpw2v0gf.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.25-frxz7cxz.mjs +14 -0
- package/dist/chunks/output-style-1.1.25-ja0xn44t.mjs +1 -0
- package/dist/chunks/package-SHMK2LJE-1.1.25-n5senjea.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.25-2w1mb832.mjs +1 -0
- package/dist/chunks/parser-1.1.25-226xm2zk.mjs +1 -0
- package/dist/chunks/passes-1.1.25-3pbcz45a.mjs +1 -0
- package/dist/chunks/permissions-1.1.25-3yb8c211.mjs +1 -0
- package/dist/chunks/permissions-1.1.25-g8395q9y.mjs +3 -0
- package/dist/chunks/plan-1.1.25-335rgqar.mjs +1 -0
- package/dist/chunks/plist-1.1.25-4gx9kzb9.mjs +1 -0
- package/dist/chunks/plugin-1.1.25-7twsr9qb.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.25-h43rcveq.mjs +1 -0
- package/dist/chunks/plugins-1.1.25-36r120jp.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.25-mq77hmkq.mjs +2 -0
- package/dist/chunks/print-1.1.25-nyqwpaw6.mjs +57 -0
- package/dist/chunks/process-1.1.25-40rkvfxz.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.25-4rt9wd52.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.25-50jz8vq4.mjs +9 -0
- package/dist/chunks/prompt-1.1.25-ab2m25ry.mjs +1 -0
- package/dist/chunks/prompt-1.1.25-tsf93p18.mjs +1 -0
- package/dist/chunks/prompts-1.1.25-7asah358.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.25-fjma0898.mjs +13 -0
- package/dist/chunks/provider-1.1.25-jcm6xct3.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.25-86yene25.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.25-gbve71cz.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.25-n6v741p7.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.25-d988tp7q.mjs +26 -0
- package/dist/chunks/registry-1.1.25-jda5me4n.mjs +1 -0
- package/dist/chunks/release-notes-1.1.25-depx979r.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.25-nc27sfgy.mjs +2 -0
- package/dist/chunks/remote-env-1.1.25-adtemst2.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.25-vyw0r3a7.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.25-f1hb7zcj.mjs +1 -0
- package/dist/chunks/rename-1.1.25-r9khtthn.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.25-5tbm27ae.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.25-dy1jxrha.mjs +1 -0
- package/dist/chunks/resume-1.1.25-qcctpvst.mjs +2 -0
- package/dist/chunks/rewind-1.1.25-2tpvsdz2.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.25-6gjd4t0k.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.25-1x11b1xy.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.25-2qsj3g4r.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.25-tn86q9kj.mjs +1 -0
- package/dist/chunks/session-1.1.25-tpnhf7nk.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.25-z48aepj2.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.25-w9mqv7x2.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.25-f61wmxkh.mjs +1 -0
- package/dist/chunks/settings-1.1.25-5f0ye0zf.mjs +1 -0
- package/dist/chunks/setup-1.1.25-hq096wz8.mjs +12 -0
- package/dist/chunks/sinks-1.1.25-k89ee9jd.mjs +1 -0
- package/dist/chunks/skills-1.1.25-zny3acfm.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.25-jrb54jgv.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.25-0e8arnxt.mjs +1 -0
- package/dist/chunks/state-1.1.25-2f0mn1s8.mjs +1 -0
- package/dist/chunks/stats-1.1.25-w4v85n4m.mjs +1 -0
- package/dist/chunks/status-1.1.25-vyxf29s0.mjs +1 -0
- package/dist/chunks/stickers-1.1.25-db9b5d86.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.25-b06h7dn5.mjs +1 -0
- package/dist/chunks/tasks-1.1.25-d44s3czy.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.25-yy2zwqy3.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.25-45w75v4y.mjs +1 -0
- package/dist/chunks/teleport-1.1.25-5be1s310.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.25-b5a4adgd.mjs +1 -0
- package/dist/chunks/theme-1.1.25-wkyf9b5k.mjs +1 -0
- package/dist/chunks/thinkback-1.1.25-6575xnpn.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.25-amw47kg0.mjs +1 -0
- package/dist/chunks/toolPool-1.1.25-h7pp3y85.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.25-brpn0e66.mjs +1 -0
- package/dist/chunks/tools-1.1.25-t4rr3y1m.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.25-dgx4z9gb.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.25-9c24hgzw.mjs +69 -0
- package/dist/chunks/types-1.1.25-tj3y8ycy.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.25-kj7js02p.mjs +4 -0
- package/dist/chunks/update-1.1.25-fn4tnxnw.mjs +72 -0
- package/dist/chunks/upgrade-1.1.25-zd805a6y.mjs +1 -0
- package/dist/chunks/upload-1.1.25-nhsynsbb.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.25-bh4an4es.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.25-z7v66h19.mjs +1 -0
- package/dist/chunks/usage-1.1.25-0frq9der.mjs +1 -0
- package/dist/chunks/util-1.1.25-hqbcvpk3.mjs +1 -0
- package/dist/chunks/utils-1.1.25-mqy166xe.mjs +1 -0
- package/dist/chunks/vim-1.1.25-0gnwfzcy.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.25-dnpy6c6e.mjs +13 -0
- package/dist/chunks/watcher-1.1.25-43n00zw0.mjs +1 -0
- package/dist/chunks/wiki-1.1.25-mvay6amg.mjs +132 -0
- package/dist/chunks/workflows-1.1.25-a2drn8b3.mjs +1 -0
- package/dist/chunks/worktree-1.1.25-cghd8r64.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.25-a15vww7v.mjs +1 -0
- package/dist/chunks/wrapper-1.1.25-chacpj74.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.23-vycpz7yt.mjs +0 -1
- package/dist/chunks/App-1.1.23-4e8j2bd3.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.23-zst4089h.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.23-5hcs6ecz.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.23-dd0gy0z6.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.23-st6gcnzm.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.23-9q5hv0m5.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.23-37xx0cvg.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.23-0mhma9am.mjs +0 -6
- package/dist/chunks/Doctor-1.1.23-er5wr07d.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.23-r0q2mdyq.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.23-9w1hnwqa.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.23-pceysmem.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.23-wqg7m1yb.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.23-jvwd5evb.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.23-12qbzfp4.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.23-gz4gqcm4.mjs +0 -1
- package/dist/chunks/REPL-1.1.23-vg0qg9my.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.23-ma5pytfz.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.23-j0x7q43m.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.23-5fbd2jd2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.23-zx9qhe0w.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.23-2fpwy0ej.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.23-fjghg3n9.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.23-ct6qdm0d.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.23-ajcjhwrt.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.23-taz5qq4d.mjs +0 -1
- package/dist/chunks/add-dir-1.1.23-yb7mzffx.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.23-779zy67c.mjs +0 -1
- package/dist/chunks/agents-1.1.23-13ae3y31.mjs +0 -110
- package/dist/chunks/agents-1.1.23-mz2jsne2.mjs +0 -3
- package/dist/chunks/api-1.1.23-sadzsv9h.mjs +0 -1
- package/dist/chunks/asciicast-1.1.23-ccrtpq7h.mjs +0 -1
- package/dist/chunks/assistant-1.1.23-35t6yajq.mjs +0 -1
- package/dist/chunks/auth-1.1.23-2mazt66r.mjs +0 -1
- package/dist/chunks/auth-1.1.23-f804wpq0.mjs +0 -1
- package/dist/chunks/autoMode-1.1.23-14t0khqy.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.23-xxctnwmg.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.23-wjwsw0rs.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.23-pdgb72sw.mjs +0 -1
- package/dist/chunks/branch-1.1.23-df4c0964.mjs +0 -4
- package/dist/chunks/bridge-1.1.23-kkp1c9j5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.23-5xm11ndj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.23-tjahj3z4.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.23-0pzcvrp1.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.23-6rp86r12.mjs +0 -1
- package/dist/chunks/btw-1.1.23-8eq1q86j.mjs +0 -1
- package/dist/chunks/buddy-1.1.23-1raw3vjp.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.23-t476aagd.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.23-r3dg9dbs.mjs +0 -4
- package/dist/chunks/caches-1.1.23-6eegsnhk.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.23-rwmxta3h.mjs +0 -1
- package/dist/chunks/claudemd-1.1.23-av012etb.mjs +0 -1
- package/dist/chunks/clear-1.1.23-z6d1gwfs.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.23-stp5kwm2.mjs +0 -1
- package/dist/chunks/cli-1.1.23-08g4ya29.mjs +0 -2
- package/dist/chunks/cli-1.1.23-0mg2h5ny.mjs +0 -4
- package/dist/chunks/cli-1.1.23-13w02myd.mjs +0 -2
- package/dist/chunks/cli-1.1.23-18zz9bbk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1a2n71wn.mjs +0 -5
- package/dist/chunks/cli-1.1.23-1e9zjn1z.mjs +0 -3
- package/dist/chunks/cli-1.1.23-1fexxp20.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1fy18jhn.mjs +0 -4
- package/dist/chunks/cli-1.1.23-1r6w3hc9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1rea0qrn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-1rv4y64b.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2arbhkcc.mjs +0 -24
- package/dist/chunks/cli-1.1.23-2cqrzcwp.mjs +0 -4
- package/dist/chunks/cli-1.1.23-2g7503ny.mjs +0 -133
- package/dist/chunks/cli-1.1.23-2gax24jg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2swa87qn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-2zmj7bmt.mjs +0 -2
- package/dist/chunks/cli-1.1.23-39e6gsmv.mjs +0 -7
- package/dist/chunks/cli-1.1.23-3hnz7314.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3myqt8k1.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3t45wkcy.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3tbvgbsz.mjs +0 -24
- package/dist/chunks/cli-1.1.23-3v88zfgv.mjs +0 -2
- package/dist/chunks/cli-1.1.23-3vzk6gte.mjs +0 -2
- package/dist/chunks/cli-1.1.23-4q364wmc.mjs +0 -26
- package/dist/chunks/cli-1.1.23-4r2e2zqk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-4tcfdexs.mjs +0 -3
- package/dist/chunks/cli-1.1.23-4z00tj56.mjs +0 -20
- package/dist/chunks/cli-1.1.23-534g4n3n.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5bcs19jr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5jka5ps0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-5nf6hd1y.mjs +0 -3
- package/dist/chunks/cli-1.1.23-5xfyp6fr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-61q858yx.mjs +0 -24
- package/dist/chunks/cli-1.1.23-67rrc0m6.mjs +0 -6
- package/dist/chunks/cli-1.1.23-6801e7pm.mjs +0 -34
- package/dist/chunks/cli-1.1.23-69bhvv0j.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6d34yw4z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6dmkrxmn.mjs +0 -3
- package/dist/chunks/cli-1.1.23-6eg5g01d.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6f46jqfm.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6fa2z4j7.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6jn1rxac.mjs +0 -3
- package/dist/chunks/cli-1.1.23-6svwd47h.mjs +0 -2
- package/dist/chunks/cli-1.1.23-6vn61k3h.mjs +0 -4
- package/dist/chunks/cli-1.1.23-6zb0fha5.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7081am2r.mjs +0 -60
- package/dist/chunks/cli-1.1.23-73rtfe6f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7672wfdw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-79fjt009.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7btdskbp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7jpcmnjc.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7jpsfgxt.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7ke90t8x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-7p15pph2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-84j1qdx5.mjs +0 -2
- package/dist/chunks/cli-1.1.23-89dm39zw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8cwhqjmg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8qrr5zea.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8sb0xktt.mjs +0 -1
- package/dist/chunks/cli-1.1.23-8tv84m75.mjs +0 -2
- package/dist/chunks/cli-1.1.23-8yb4p9wj.mjs +0 -4
- package/dist/chunks/cli-1.1.23-8zysx8xg.mjs +0 -6
- package/dist/chunks/cli-1.1.23-913hrrgx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-91n79mdp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-971f3zzk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9b08qsth.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9bpzr9w9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9h8vjbtg.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9qe28y65.mjs +0 -16
- package/dist/chunks/cli-1.1.23-9txgxd8x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9vqnsq1x.mjs +0 -2
- package/dist/chunks/cli-1.1.23-9zrhw582.mjs +0 -2
- package/dist/chunks/cli-1.1.23-a1w72kgd.mjs +0 -12
- package/dist/chunks/cli-1.1.23-a6h0h87f.mjs +0 -18
- package/dist/chunks/cli-1.1.23-a95wepyn.mjs +0 -66
- package/dist/chunks/cli-1.1.23-a9b5aae8.mjs +0 -2
- package/dist/chunks/cli-1.1.23-afsrnsz6.mjs +0 -7
- package/dist/chunks/cli-1.1.23-ah6fas1q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-akghy19s.mjs +0 -58
- package/dist/chunks/cli-1.1.23-b00bqmpw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bdj1ne1r.mjs +0 -2
- package/dist/chunks/cli-1.1.23-beazn1ym.mjs +0 -45
- package/dist/chunks/cli-1.1.23-bfcbpz9k.mjs +0 -15
- package/dist/chunks/cli-1.1.23-bghc6n12.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bkd2235z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-bqb900hx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-btem08d6.mjs +0 -2
- package/dist/chunks/cli-1.1.23-btq83yzw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-c49xxwj4.mjs +0 -2
- package/dist/chunks/cli-1.1.23-c5rb4b67.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cdsq9bfc.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cf9wpsc7.mjs +0 -3
- package/dist/chunks/cli-1.1.23-cg8mndc0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cmmvjc9g.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cp5z31eb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-cpdr6mcc.mjs +0 -50
- package/dist/chunks/cli-1.1.23-d98p8mnw.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dd8dp11f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dm6get34.mjs +0 -42
- package/dist/chunks/cli-1.1.23-dmc5g4zs.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dnf57r3v.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dspgg8gk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-dxtv4be7.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e3g5ahaf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e3zf752q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-e7vvcy9q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ea3wd7a4.mjs +0 -9
- package/dist/chunks/cli-1.1.23-eh1w5te8.mjs +0 -2
- package/dist/chunks/cli-1.1.23-eyrgaj5n.mjs +0 -15
- package/dist/chunks/cli-1.1.23-f001cyx3.mjs +0 -2
- package/dist/chunks/cli-1.1.23-f1xqkfa1.mjs +0 -2
- package/dist/chunks/cli-1.1.23-f3x0gp77.mjs +0 -2
- package/dist/chunks/cli-1.1.23-fd4gay6z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ft6azs1x.mjs +0 -3
- package/dist/chunks/cli-1.1.23-fxt20eva.mjs +0 -2
- package/dist/chunks/cli-1.1.23-fxyf1cph.mjs +0 -2
- package/dist/chunks/cli-1.1.23-g16f6f0k.mjs +0 -6
- package/dist/chunks/cli-1.1.23-g3ps2zfa.mjs +0 -2
- package/dist/chunks/cli-1.1.23-g6b9c447.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gfa8cfzz.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gm82gspk.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gqpma6kp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gqzmsste.mjs +0 -2
- package/dist/chunks/cli-1.1.23-gt2whh9g.mjs +0 -25
- package/dist/chunks/cli-1.1.23-h8qgj8ca.mjs +0 -17
- package/dist/chunks/cli-1.1.23-h9a97qvh.mjs +0 -17
- package/dist/chunks/cli-1.1.23-hdrz15yh.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hemwg8ag.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hkttfc6z.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hmtg8m65.mjs +0 -2
- package/dist/chunks/cli-1.1.23-hynrf6x1.mjs +0 -5456
- package/dist/chunks/cli-1.1.23-j1834bmw.mjs +0 -8
- package/dist/chunks/cli-1.1.23-j50f02dv.mjs +0 -3
- package/dist/chunks/cli-1.1.23-j8pns1dc.mjs +0 -9
- package/dist/chunks/cli-1.1.23-j9tza8qb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jam2qpf9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jax91df0.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jb9w45wb.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jefmjg1q.mjs +0 -2
- package/dist/chunks/cli-1.1.23-jf6jqrkj.mjs +0 -4
- package/dist/chunks/cli-1.1.23-jv6dcqe2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-kc1tbe8y.mjs +0 -6
- package/dist/chunks/cli-1.1.23-keftnbc6.mjs +0 -206
- package/dist/chunks/cli-1.1.23-kqechz3h.mjs +0 -3
- package/dist/chunks/cli-1.1.23-kwbgn4rk.mjs +0 -4
- package/dist/chunks/cli-1.1.23-mdnfpw2r.mjs +0 -4
- package/dist/chunks/cli-1.1.23-mg8gngc9.mjs +0 -2
- package/dist/chunks/cli-1.1.23-mqhr3zhn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-mtz1dxjx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n0182x8j.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n2b7hpwm.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n3aqpv08.mjs +0 -2
- package/dist/chunks/cli-1.1.23-n73gbfxf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-nr6xamsd.mjs +0 -2
- package/dist/chunks/cli-1.1.23-p3m54nrk.mjs +0 -12
- package/dist/chunks/cli-1.1.23-pjmjhm4y.mjs +0 -2
- package/dist/chunks/cli-1.1.23-pw5hm4mz.mjs +0 -3
- package/dist/chunks/cli-1.1.23-qn9572e2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-qrr9yfsn.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r21frpa6.mjs +0 -6
- package/dist/chunks/cli-1.1.23-r3rsk08v.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r3waeyk4.mjs +0 -2
- package/dist/chunks/cli-1.1.23-r6f0jbrx.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rcxg7gfm.mjs +0 -25
- package/dist/chunks/cli-1.1.23-rd74yzp6.mjs +0 -2
- package/dist/chunks/cli-1.1.23-re0ge1zr.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rgc4d03t.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rjt1xt8g.mjs +0 -2
- package/dist/chunks/cli-1.1.23-rpxkp0kh.mjs +0 -2
- package/dist/chunks/cli-1.1.23-s21f8qza.mjs +0 -2
- package/dist/chunks/cli-1.1.23-s2pn202f.mjs +0 -4
- package/dist/chunks/cli-1.1.23-s943evpq.mjs +0 -2
- package/dist/chunks/cli-1.1.23-sbyq9afq.mjs +0 -21
- package/dist/chunks/cli-1.1.23-sch1s17t.mjs +0 -2
- package/dist/chunks/cli-1.1.23-se379e5e.mjs +0 -15
- package/dist/chunks/cli-1.1.23-swf2c8db.mjs +0 -2
- package/dist/chunks/cli-1.1.23-syq3k5mp.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v22erb37.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v2fscr2z.mjs +0 -5
- package/dist/chunks/cli-1.1.23-v5e3cr99.mjs +0 -2
- package/dist/chunks/cli-1.1.23-v9bysq9w.mjs +0 -3
- package/dist/chunks/cli-1.1.23-vdp0r91n.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vjgmph3s.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vns1fwxz.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vvcr72vv.mjs +0 -2
- package/dist/chunks/cli-1.1.23-vyf2j831.mjs +0 -2
- package/dist/chunks/cli-1.1.23-w16rdkte.mjs +0 -3
- package/dist/chunks/cli-1.1.23-w96hh9h7.mjs +0 -3
- package/dist/chunks/cli-1.1.23-wd48c77m.mjs +0 -24
- package/dist/chunks/cli-1.1.23-wgecwfx4.mjs +0 -18
- package/dist/chunks/cli-1.1.23-wkvjbzna.mjs +0 -2
- package/dist/chunks/cli-1.1.23-wnxxa385.mjs +0 -4
- package/dist/chunks/cli-1.1.23-wt4jgek9.mjs +0 -39
- package/dist/chunks/cli-1.1.23-x3te6rkf.mjs +0 -2
- package/dist/chunks/cli-1.1.23-x7yfmrs9.mjs +0 -3
- package/dist/chunks/cli-1.1.23-xafxg4a2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xgst7vty.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xkt2056f.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xyjeajm2.mjs +0 -2
- package/dist/chunks/cli-1.1.23-xzwwmz59.mjs +0 -2
- package/dist/chunks/cli-1.1.23-y3ea6683.mjs +0 -2
- package/dist/chunks/cli-1.1.23-y3fpdh43.mjs +0 -2
- package/dist/chunks/cli-1.1.23-ywvfrc54.mjs +0 -2
- package/dist/chunks/cli-1.1.23-yy2jcnc3.mjs +0 -133
- package/dist/chunks/cli-1.1.23-z1mvb05m.mjs +0 -2
- package/dist/chunks/cli-1.1.23-zb8savhy.mjs +0 -6
- package/dist/chunks/cli-1.1.23-zwpmh1ab.mjs +0 -2
- package/dist/chunks/client-1.1.23-mcea9qxt.mjs +0 -1
- package/dist/chunks/color-1.1.23-e9h5ff51.mjs +0 -1
- package/dist/chunks/compact-1.1.23-66s1gsw9.mjs +0 -3
- package/dist/chunks/config-1.1.23-j8frjsmx.mjs +0 -1
- package/dist/chunks/config-1.1.23-kedfvs1w.mjs +0 -1
- package/dist/chunks/constants-1.1.23-9gn99pw5.mjs +0 -1
- package/dist/chunks/context-1.1.23-bbrdpmdb.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.23-f8h7s1k6.mjs +0 -1
- package/dist/chunks/conversation-1.1.23-s003tkm4.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.23-ktfjf8vp.mjs +0 -1
- package/dist/chunks/copy-1.1.23-vydqekfj.mjs +0 -9
- package/dist/chunks/cost-1.1.23-wp3xmmkp.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.23-0dtjaw6b.mjs +0 -1
- package/dist/chunks/createSession-1.1.23-bx4zk9g9.mjs +0 -1
- package/dist/chunks/debug-1.1.23-7kg6d3tr.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.23-gpfa81s0.mjs +0 -1534
- package/dist/chunks/desktop-1.1.23-0kbkasx9.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.23-cjja5tc4.mjs +0 -1
- package/dist/chunks/detection-1.1.23-j30fjqtk.mjs +0 -1
- package/dist/chunks/diff-1.1.23-97rmmwmn.mjs +0 -1
- package/dist/chunks/doctor-1.1.23-xm4qcrg3.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.23-04mtjnab.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.23-cjvssdzr.mjs +0 -1
- package/dist/chunks/effort-1.1.23-9wwy3zcx.mjs +0 -13
- package/dist/chunks/engine-1.1.23-zted98hq.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.23-ga3cphpb.mjs +0 -1
- package/dist/chunks/envUtils-1.1.23-rqpvwp80.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.23-mv2a2h1j.mjs +0 -1
- package/dist/chunks/environments-1.1.23-4jsfjwva.mjs +0 -1
- package/dist/chunks/errors-1.1.23-9xwf7tdw.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.23-80yr756b.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.23-psbfft6h.mjs +0 -1
- package/dist/chunks/exit-1.1.23-vrg1sh8k.mjs +0 -1
- package/dist/chunks/explorer-1.1.23-g4rr4dbw.mjs +0 -1
- package/dist/chunks/export-1.1.23-811x7m0f.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.23-ytv7q7g9.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.23-kfdpp2zp.mjs +0 -1
- package/dist/chunks/fast-1.1.23-vxqr4rn1.mjs +0 -1
- package/dist/chunks/feedback-1.1.23-sfxf5wts.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.23-1gh6mqe9.mjs +0 -1
- package/dist/chunks/git-1.1.23-ybtn6n7y.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.23-ty811pr3.mjs +0 -1
- package/dist/chunks/goal-1.1.23-cmzk221k.mjs +0 -4
- package/dist/chunks/growthbook-1.1.23-3q1rbkkk.mjs +0 -1
- package/dist/chunks/headless-1.1.23-bkk5p8rm.mjs +0 -2
- package/dist/chunks/heapdump-1.1.23-ea8pzqst.mjs +0 -6
- package/dist/chunks/help-1.1.23-r7j3xk0t.mjs +0 -1
- package/dist/chunks/hookChains-1.1.23-3gw3ts22.mjs +0 -3
- package/dist/chunks/hooks-1.1.23-nh96m542.mjs +0 -1
- package/dist/chunks/hooks-1.1.23-pggycv75.mjs +0 -79
- package/dist/chunks/ide-1.1.23-qfkj03dp.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.23-etg91fj9.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.23-gct8j14t.mjs +0 -1
- package/dist/chunks/index-1.1.23-04w67ps4.mjs +0 -1
- package/dist/chunks/index-1.1.23-0qn8x2ym.mjs +0 -2
- package/dist/chunks/index-1.1.23-16krzxwz.mjs +0 -1
- package/dist/chunks/index-1.1.23-2mwhvv7z.mjs +0 -2
- package/dist/chunks/index-1.1.23-5xkpaxba.mjs +0 -1
- package/dist/chunks/index-1.1.23-87bctdxv.mjs +0 -1
- package/dist/chunks/index-1.1.23-894gw6j8.mjs +0 -1
- package/dist/chunks/index-1.1.23-bcrdf2k3.mjs +0 -9
- package/dist/chunks/index-1.1.23-ed1jbmt6.mjs +0 -1
- package/dist/chunks/index-1.1.23-hzafkcpn.mjs +0 -30
- package/dist/chunks/index-1.1.23-jfybaapb.mjs +0 -9
- package/dist/chunks/index-1.1.23-mbvmhq60.mjs +0 -1
- package/dist/chunks/index-1.1.23-nq44z8sn.mjs +0 -1
- package/dist/chunks/index-1.1.23-p84yrb6r.mjs +0 -1
- package/dist/chunks/index-1.1.23-sd9cv8pk.mjs +0 -23
- package/dist/chunks/index-1.1.23-v3pvt45w.mjs +0 -1
- package/dist/chunks/index-1.1.23-vnn2xc4y.mjs +0 -1
- package/dist/chunks/index-1.1.23-vw0ns36r.mjs +0 -1
- package/dist/chunks/index-1.1.23-xb876pe7.mjs +0 -5
- package/dist/chunks/index-1.1.23-xfzxwabm.mjs +0 -1
- package/dist/chunks/index-1.1.23-yjt3kte0.mjs +0 -1
- package/dist/chunks/index-1.1.23-ymq59t45.mjs +0 -1
- package/dist/chunks/index-1.1.23-ytps69pn.mjs +0 -1
- package/dist/chunks/init-1.1.23-68d7nbfy.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.23-zaa5v40e.mjs +0 -1
- package/dist/chunks/ink-1.1.23-vb2phcn9.mjs +0 -1
- package/dist/chunks/insights-1.1.23-hnbtjced.mjs +0 -870
- package/dist/chunks/install-1.1.23-ayas8qxr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.23-mph12hm0.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.23-9fs5jpzj.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.23-g4we2v3z.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.23-72qdetj8.mjs +0 -1
- package/dist/chunks/keybindings-1.1.23-qb0smw96.mjs +0 -2
- package/dist/chunks/knowledge-1.1.23-05gqt07k.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.23-1xrk6v9s.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.23-x9vbg6j3.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.23-b0kt93we.mjs +0 -1
- package/dist/chunks/log-1.1.23-raemwqxy.mjs +0 -1
- package/dist/chunks/main-1.1.23-ktwpj2m3.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.23-wnqxm7br.mjs +0 -1
- package/dist/chunks/mcp-1.1.23-mtw0ktrf.mjs +0 -17
- package/dist/chunks/mcp-1.1.23-s9pkvzz6.mjs +0 -4
- package/dist/chunks/mcp-1.1.23-wcc13fhx.mjs +0 -1
- package/dist/chunks/mcpb-1.1.23-90y8tgct.mjs +0 -1
- package/dist/chunks/memory-1.1.23-bvsjvxnw.mjs +0 -72
- package/dist/chunks/model-1.1.23-m65499d4.mjs +0 -1
- package/dist/chunks/model-1.1.23-rdvj7rvy.mjs +0 -2
- package/dist/chunks/node-1.1.23-bqy7dzrh.mjs +0 -14
- package/dist/chunks/oauth-1.1.23-x33h0bwk.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.23-0bheqhmg.mjs +0 -14
- package/dist/chunks/output-style-1.1.23-kxxfbqnj.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.23-cvn9aynn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.23-r2c69hpj.mjs +0 -1
- package/dist/chunks/parser-1.1.23-9gjy8yyd.mjs +0 -1
- package/dist/chunks/passes-1.1.23-jt18rvzt.mjs +0 -1
- package/dist/chunks/permissions-1.1.23-krb3w1g6.mjs +0 -3
- package/dist/chunks/permissions-1.1.23-r2894sce.mjs +0 -1
- package/dist/chunks/plan-1.1.23-z731dw1m.mjs +0 -1
- package/dist/chunks/plist-1.1.23-5761s0b4.mjs +0 -1
- package/dist/chunks/plugin-1.1.23-p7pdz7d1.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.23-mm4bszh7.mjs +0 -1
- package/dist/chunks/plugins-1.1.23-egkwh4yf.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.23-v994g2s0.mjs +0 -2
- package/dist/chunks/print-1.1.23-g988xjb3.mjs +0 -57
- package/dist/chunks/process-1.1.23-eh0mn414.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.23-cnnyqpaq.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.23-vs9vb8en.mjs +0 -9
- package/dist/chunks/prompt-1.1.23-4mk9fy81.mjs +0 -1
- package/dist/chunks/prompt-1.1.23-qmqyfem4.mjs +0 -1
- package/dist/chunks/prompts-1.1.23-jeeypg6w.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.23-1davtsam.mjs +0 -13
- package/dist/chunks/provider-1.1.23-x1hzx1zj.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.23-bkm9vq79.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.23-z2rg5707.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.23-f0hm4mbj.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.23-mhtafhr6.mjs +0 -26
- package/dist/chunks/registry-1.1.23-hyqgjbyg.mjs +0 -1
- package/dist/chunks/release-notes-1.1.23-q1am84ke.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.23-nd1fctqt.mjs +0 -2
- package/dist/chunks/remote-env-1.1.23-m2zzn0f8.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.23-vd210k89.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.23-1jpg062g.mjs +0 -1
- package/dist/chunks/rename-1.1.23-ma9ny7xb.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.23-08pq9q2p.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.23-wsqwfhc4.mjs +0 -1
- package/dist/chunks/resume-1.1.23-hkg0scyr.mjs +0 -2
- package/dist/chunks/rewind-1.1.23-jd6j4sgm.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.23-m526t4yf.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.23-8mxg8581.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.23-pb9hd8jw.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.23-38kf297y.mjs +0 -1
- package/dist/chunks/session-1.1.23-mws1tmy1.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.23-8819q77c.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.23-zq8cgfyk.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.23-m9mm0gy5.mjs +0 -1
- package/dist/chunks/settings-1.1.23-3fm1v708.mjs +0 -1
- package/dist/chunks/setup-1.1.23-rf97k4ha.mjs +0 -12
- package/dist/chunks/sinks-1.1.23-qgn22fd9.mjs +0 -1
- package/dist/chunks/skills-1.1.23-aed2c5zd.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.23-qrw1wxzd.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.23-pwj6hq5b.mjs +0 -1
- package/dist/chunks/state-1.1.23-jxkq1t17.mjs +0 -1
- package/dist/chunks/stats-1.1.23-5kg21t1n.mjs +0 -6
- package/dist/chunks/status-1.1.23-zkcmaawr.mjs +0 -1
- package/dist/chunks/stickers-1.1.23-qag1twc4.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.23-ahy63kbs.mjs +0 -1
- package/dist/chunks/tasks-1.1.23-89zfdmw0.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.23-wnq5c429.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.23-zrc83hqd.mjs +0 -1
- package/dist/chunks/teleport-1.1.23-cabj7qs6.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.23-3jp21th9.mjs +0 -1
- package/dist/chunks/theme-1.1.23-n5t1dngt.mjs +0 -1
- package/dist/chunks/thinkback-1.1.23-4a2rem3s.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.23-3928h8m5.mjs +0 -1
- package/dist/chunks/toolPool-1.1.23-yeszysf1.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.23-x75878b7.mjs +0 -1
- package/dist/chunks/tools-1.1.23-m04a9j6h.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.23-rxgc65b0.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.23-e39vsv0v.mjs +0 -69
- package/dist/chunks/types-1.1.23-pca5g3df.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.23-mr97q52h.mjs +0 -4
- package/dist/chunks/update-1.1.23-3xmkkhns.mjs +0 -72
- package/dist/chunks/upgrade-1.1.23-8vn6552j.mjs +0 -1
- package/dist/chunks/upload-1.1.23-cx2aj445.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.23-8rxwm8d3.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.23-5e49greb.mjs +0 -1
- package/dist/chunks/usage-1.1.23-bndk03g2.mjs +0 -1
- package/dist/chunks/util-1.1.23-cb0nrsh4.mjs +0 -1
- package/dist/chunks/utils-1.1.23-t0mge2p3.mjs +0 -1
- package/dist/chunks/vim-1.1.23-trn7yz9v.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.23-m61k9zxv.mjs +0 -13
- package/dist/chunks/watcher-1.1.23-vbwspp2c.mjs +0 -1
- package/dist/chunks/wiki-1.1.23-a9pe4h8f.mjs +0 -132
- package/dist/chunks/workflows-1.1.23-nbvbwe56.mjs +0 -1
- package/dist/chunks/worktree-1.1.23-tdh9qszq.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.23-bhescr26.mjs +0 -1
- package/dist/chunks/wrapper-1.1.23-xbpjcwkh.mjs +0 -7
- /package/dist/chunks/{cli-1.1.23-qgdfjtj2.mjs → cli-1.1.25-cpt1h3j8.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Jo as j,Ko as m,Kp as l,Lo as Xq,Mp as Rq,Np as i,Op as Aq,ep as D,jp as Zq}from"./cli-1.1.23-hynrf6x1.mjs";import{Rca as u,Tca as g,Wca as h,Xca as n,ada as vq,gha as L,oha as Qq}from"./cli-1.1.23-keftnbc6.mjs";import{oja as d,qja as Uq}from"./cli-1.1.23-a95wepyn.mjs";import{Rka as P,Ska as v,Wka as f,_ka as M,cla as y,mla as V,pla as e}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as W,Nla as O,Ola as C,Tla as N}from"./cli-1.1.23-6vn61k3h.mjs";import{Nsa as p,dta as qq}from"./cli-1.1.23-61q858yx.mjs";import{Fta as E}from"./cli-1.1.23-bdj1ne1r.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
-
export{Fq as id,r as jd,nq as kd,lq as ld,Oq as md,QQ as nd,XQ as od,Lq as pd};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Cm as h,Dm as wQ,Em as u,Fm as LQ,ej as jQ,kQ as E,lQ as MQ}from"./cli-1.1.23-hynrf6x1.mjs";import{_ka as U,cla as UQ,mla as j,pla as XQ}from"./cli-1.1.23-kc1tbe8y.mjs";import{Nla as _,Tla as vQ}from"./cli-1.1.23-6vn61k3h.mjs";import{Bta as GQ,Fta as C}from"./cli-1.1.23-bdj1ne1r.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
|
|
2
|
-
`).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
|
|
3
|
-
`).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
|
|
4
|
-
`))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
|
|
5
|
-
`).length;return W.endsWith(`
|
|
6
|
-
`)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
|
|
7
|
-
export{o as kg,I as lg,A as mg,T as ng,N as og,p as pg,x as qg,F as rg,RQ as sg,QZ as tg,ZZ as ug,fQ as vg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$0 as QQ,D1 as _Q,E1 as aQ,I1 as d,PZ as u,T1 as a,a1 as uQ,m1 as k,o1 as y,u1 as MQ}from"./cli-1.1.23-7081am2r.mjs";import{p4 as K,q4 as l,r4 as m}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as v}from"./cli-1.1.23-534g4n3n.mjs";import{I4 as n,K4 as t,P4 as YV}from"./cli-1.1.23-vns1fwxz.mjs";import{H8 as $Q,K8 as P,N8 as pQ,a9 as XV}from"./cli-1.1.23-9qe28y65.mjs";import{Iea as mQ,Ifa as QV,Jea as eQ,gha as CQ,kfa as fQ,nfa as x,oha as VV}from"./cli-1.1.23-keftnbc6.mjs";import{tha as IQ,uha as sQ}from"./cli-1.1.23-2cqrzcwp.mjs";import{hka as r,ika as nQ}from"./cli-1.1.23-nr6xamsd.mjs";import{mla as E,pla as iQ}from"./cli-1.1.23-kc1tbe8y.mjs";import{Nsa as i,dta as tQ}from"./cli-1.1.23-61q858yx.mjs";import{Bta as T,Fta as F}from"./cli-1.1.23-bdj1ne1r.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
-
export{XQ as zY,YQ as AY,JQ as BY,hQ as CY,c as DY,NV as EY,LQ as FY,qQ as GY,zQ as HY,NQ as IY,TV as JY,h as KY,KV as LY,UQ as MY,RV as NY,OQ as OY,wQ as PY,o as QY,WQ as RY,$V as SY,oQ as TY,s as UY,SQ as VY,bV as WY,xV as XY,AQ as YY,DQ as ZY,EQ as _Y,oV as $Y,rQ as aZ,ZX as bZ,GX as cZ,JX as dZ,LX as eZ,qX as fZ,JV as gZ,HX as hZ,LV as iZ};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{Fr as F,GK as A,Ir as m,OD as U,PD as p,UB as O,VB as I,ZR as P,lj as $,oj as h,qS as a}from"./cli-1.1.23-hynrf6x1.mjs";import{W4 as b,X4 as T}from"./cli-1.1.23-9qe28y65.mjs";import{_ka as R,cla as x}from"./cli-1.1.23-kc1tbe8y.mjs";import{Rla as k,Tla as M}from"./cli-1.1.23-6vn61k3h.mjs";import{Wla as N,fma as _}from"./cli-1.1.23-fxyf1cph.mjs";import{Fta as v}from"./cli-1.1.23-bdj1ne1r.mjs";import{join as E}from"path";function g(){return`IMPORTANT: This message and these instructions are NOT part of the actual user conversation. Do NOT include any references to "documentation updates", "magic docs", or these update instructions in the document content.
|
|
2
|
-
|
|
3
|
-
Based on the user conversation above (EXCLUDING this documentation update instruction message), update the Magic Doc file to incorporate any NEW learnings, insights, or information that would be valuable to preserve.
|
|
4
|
-
|
|
5
|
-
The file {{docPath}} has already been read for you. Here are its current contents:
|
|
6
|
-
<current_doc_content>
|
|
7
|
-
{{docContents}}
|
|
8
|
-
</current_doc_content>
|
|
9
|
-
|
|
10
|
-
Document title: {{docTitle}}
|
|
11
|
-
{{customInstructions}}
|
|
12
|
-
|
|
13
|
-
Your ONLY task is to use the Edit tool to update the documentation file if there is substantial new information to add, then stop. You can make multiple edits (update multiple sections as needed) - make all Edit tool calls in parallel in a single message. If there's nothing substantial to add, simply respond with a brief explanation and do not call any tools.
|
|
14
|
-
|
|
15
|
-
CRITICAL RULES FOR EDITING:
|
|
16
|
-
- Preserve the Magic Doc header exactly as-is: # MAGIC DOC: {{docTitle}}
|
|
17
|
-
- If there's an italicized line immediately after the header, preserve it exactly as-is
|
|
18
|
-
- Keep the document CURRENT with the latest state of the codebase - this is NOT a changelog or history
|
|
19
|
-
- Update information IN-PLACE to reflect the current state - do NOT append historical notes or track changes over time
|
|
20
|
-
- Remove or replace outdated information rather than adding "Previously..." or "Updated to..." notes
|
|
21
|
-
- Clean up or DELETE sections that are no longer relevant or don't align with the document's purpose
|
|
22
|
-
- Fix obvious errors: typos, grammar mistakes, broken formatting, incorrect information, or confusing statements
|
|
23
|
-
- Keep the document well organized: use clear headings, logical section order, consistent formatting, and proper nesting
|
|
24
|
-
|
|
25
|
-
DOCUMENTATION PHILOSOPHY - READ CAREFULLY:
|
|
26
|
-
- BE TERSE. High signal only. No filler words or unnecessary elaboration.
|
|
27
|
-
- Documentation is for OVERVIEWS, ARCHITECTURE, and ENTRY POINTS - not detailed code walkthroughs
|
|
28
|
-
- Do NOT duplicate information that's already obvious from reading the source code
|
|
29
|
-
- Do NOT document every function, parameter, or line number reference
|
|
30
|
-
- Focus on: WHY things exist, HOW components connect, WHERE to start reading, WHAT patterns are used
|
|
31
|
-
- Skip: detailed implementation steps, exhaustive API docs, play-by-play narratives
|
|
32
|
-
|
|
33
|
-
What TO document:
|
|
34
|
-
- High-level architecture and system design
|
|
35
|
-
- Non-obvious patterns, conventions, or gotchas
|
|
36
|
-
- Key entry points and where to start reading code
|
|
37
|
-
- Important design decisions and their rationale
|
|
38
|
-
- Critical dependencies or integration points
|
|
39
|
-
- References to related files, docs, or code (like a wiki) - help readers navigate to relevant context
|
|
40
|
-
|
|
41
|
-
What NOT to document:
|
|
42
|
-
- Anything obvious from reading the code itself
|
|
43
|
-
- Exhaustive lists of files, functions, or parameters
|
|
44
|
-
- Step-by-step implementation details
|
|
45
|
-
- Low-level code mechanics
|
|
46
|
-
- Information already in CLAUDE.md or other project docs
|
|
47
|
-
|
|
48
|
-
Use the Edit tool with file_path: {{docPath}}
|
|
49
|
-
|
|
50
|
-
REMEMBER: Only update if there is substantial new information. The Magic Doc header (# MAGIC DOC: {{docTitle}}) must remain unchanged.`}async function D(){let w=R(),z=E(N(),"magic-docs","prompt.md");try{return await w.readFile(z,{encoding:"utf-8"})}catch{return g()}}function f(w,z){return w.replace(/\{\{(\w+)\}\}/g,(B,J)=>Object.prototype.hasOwnProperty.call(z,J)?z[J]:B)}async function S(w,z,B,J){let Y=await D(),K=J?`
|
|
51
|
-
|
|
52
|
-
DOCUMENT-SPECIFIC UPDATE INSTRUCTIONS:
|
|
53
|
-
The document author has provided specific instructions for how this file should be updated. Pay extra attention to these instructions and follow them carefully:
|
|
54
|
-
|
|
55
|
-
"${J}"
|
|
56
|
-
|
|
57
|
-
These instructions take priority over the general rules below. Make sure your updates align with these specific guidelines.`:"";return f(Y,{docContents:w,docPath:z,docTitle:B,customInstructions:K})}var y=v(()=>{_();x()});function Xw(){G.clear()}function r(w){let z=w.match(u);if(!z||!z[1])return null;let B=z[1].trim(),J=z.index+z[0].length,K=w.slice(J).match(/^\s*\n(?:\s*\n)?(.+?)(?:\n|$)/);if(K&&K[1]){let X=K[1].match(l);if(X&&X[1]){let Z=X[1].trim();return{title:B,instructions:Z}}}return{title:B}}function d(){return{agentType:"magic-docs",whenToUse:"Update Magic Docs",tools:[$],model:"sonnet",source:"built-in",baseDir:"built-in",getSystemPrompt:()=>""}}async function i(w,z){let{messages:B,systemPrompt:J,userContext:Y,systemContext:K,toolUseContext:V}=z,X=F(V.readFileState);X.delete(w.path);let Z={...V,readFileState:X},q="";try{let W=(await U.call({file_path:w.path},Z)).data;if(W.type==="text")q=W.file.content}catch(Q){if(k(Q)||Q instanceof Error&&Q.message.startsWith("File does not exist")){G.delete(w.path);return}throw Q}let H=r(q);if(!H){G.delete(w.path);return}let L=await S(q,w.path,H.title,H.instructions),C=async(Q,W)=>{if(Q.name===$&&typeof W==="object"&&W!==null&&"file_path"in W){let j=W.file_path;if(typeof j==="string"&&j===w.path)return{behavior:"allow",updatedInput:W}}return{behavior:"deny",message:`only ${$} is allowed for ${w.path}`,decisionReason:{type:"other",reason:`only ${$} is allowed`}}};for await(let Q of O({agentDefinition:d(),promptMessages:[A({content:L})],toolUseContext:Z,canUseTool:C,isAsync:!0,forkContextMessages:B,querySource:"magic_docs",override:{systemPrompt:J,userContext:Y,systemContext:K},availableTools:Z.options.tools}));}async function Zw(){}var u,l,G,Yw;var s=v(()=>{I();h();p();M();m();a();T();y();u=/^#\s*MAGIC\s+DOC:\s*(.+)$/im,l=/^[_*](.+?)[_*]\s*$/m,G=new Map;Yw=b(async function(w){let{messages:z,querySource:B}=w;if(B!=="repl_main_thread")return;if(P(z))return;if(G.size===0)return;for(let K of Array.from(G.values()))await i(K,w)})});
|
|
58
|
-
export{Xw as hi,Zw as ii,s as ji};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$8 as v,a9 as C}from"./cli-1.1.23-9qe28y65.mjs";import{Iea as Z,Jea as V,hga as x,iga as Y}from"./cli-1.1.23-keftnbc6.mjs";import{mia as R,qia as W,yia as O}from"./cli-1.1.23-e3g5ahaf.mjs";import{hka as Q,ika as M}from"./cli-1.1.23-nr6xamsd.mjs";import{Rka as P,Wka as I,mla as f,pla as L}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as w,Tla as H}from"./cli-1.1.23-6vn61k3h.mjs";import{hsa as N,isa as F}from"./cli-1.1.23-rpxkp0kh.mjs";import{Nsa as X,dta as U}from"./cli-1.1.23-61q858yx.mjs";import{Cta as h,Fta as B}from"./cli-1.1.23-bdj1ne1r.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as fX,n as gX,o as hX,t as iX,d as jX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
|
|
2
|
-
export{z as Bta,A as Cta,B as Dta,C as Eta,D as Fta,F as Gta,G as Hta,H as Ita};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{Fe as BY,Ge as Bz}from"./cli-1.1.23-p3m54nrk.mjs";import{Pg as qY,Qg as qz}from"./cli-1.1.23-f1xqkfa1.mjs";import{$P as X0,DG as B0,DP as gY,EG as MY,FG as hY,GG as Tz,HG as $Y,IG as yz,Ju as eY,Ku as JK,VT as V0,WP as iY,YK as GY,ZP as XJ,_P as GZ,ao as UJ,bL as Gz,bo as UY,co as jJ,do as XY,eo as NJ,fo as VY,mQ as rY,nQ as Lz,sT as nY,tG as uY,uG as wz,vI as cY,wI as mz,ys as Zz,zs as KK}from"./cli-1.1.23-hynrf6x1.mjs";import{AY as jz,NY as $J,PY as KY,SY,TY as Az,ZY as pY,_Y as Fz,zY as _Y}from"./cli-1.1.23-ah6fas1q.mjs";import{I1 as xY,PZ as f0,S0 as bY,T1 as U0,YZ as LY,d0 as IY,e0 as Rz,h1 as fY,j1 as Ez,m1 as b,o1 as N}from"./cli-1.1.23-7081am2r.mjs";import{p4 as U,q4 as m,r4 as bJ}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as b0}from"./cli-1.1.23-534g4n3n.mjs";import{P6 as tY,r7 as ez}from"./cli-1.1.23-9qe28y65.mjs";import{w9 as $0,x9 as Cz}from"./cli-1.1.23-r21frpa6.mjs";import{Daa as r0,Faa as tz,G$ as yY,Y$ as Mz,dha as fJ,gha as l0,oha as mY}from"./cli-1.1.23-keftnbc6.mjs";import{Hha as zY,Iha as c0,Lha as I0,tha as S0,uha as Hz,wha as G0}from"./cli-1.1.23-2cqrzcwp.mjs";import{jka as $,mka as Nz}from"./cli-1.1.23-j9tza8qb.mjs";import{Ska as oY,Wka as sz,mla as CJ,pla as oz}from"./cli-1.1.23-kc1tbe8y.mjs";import{Kra as TY,Lna as wY,Rna as H0}from"./cli-1.1.23-wkvjbzna.mjs";import{Bta as UZ,Fta as XZ}from"./cli-1.1.23-bdj1ne1r.mjs";function QY(Z){let J=HY.c(33),{log:K,onExit:B,onSelect:G}=Z,[Q,v]=L0.default.useState(null),F,T;if(J[0]!==K)F=()=>{if(v(null),GZ(K))X0(K).then(v)},T=[K],J[0]=K,J[1]=F,J[2]=T;else F=J[1],T=J[2];L0.default.useEffect(F,T);let i=GZ(K)&&Q===null,X=Q??K,W;if(J[3]!==X)W=XJ(X)||"",J[3]=X,J[4]=W;else W=J[4];let O=W,S;if(J[5]===Symbol.for("react.memo_cache_sentinel"))S=GY(),J[5]=S;else S=J[5];let C=S,JJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))JJ={context:"Confirmation"},J[6]=JJ;else JJ=J[6];$J("confirm:no",B,JJ);let L;if(J[7]!==Q||J[8]!==K||J[9]!==G)L=()=>{G(Q??K)},J[7]=Q,J[8]=K,J[9]=G,J[10]=L;else L=J[10];let f=L,E;if(J[11]===Symbol.for("react.memo_cache_sentinel"))E={context:"Confirmation"},J[11]=E;else E=J[11];if($J("confirm:yes",f,E),i){let c;if(J[12]===Symbol.for("react.memo_cache_sentinel"))c=U(qY,{message:"Loading session…"}),J[12]=c;else c=J[12];let BJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))BJ=m(b,{flexDirection:"column",padding:1,children:[c,U(N,{dimColor:!0,children:U(NJ,{children:U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=BJ;else BJ=J[13];return BJ}let y;if(J[14]===Symbol.for("react.memo_cache_sentinel"))y=[],J[14]=y;else y=J[14];let w,r;if(J[15]===Symbol.for("react.memo_cache_sentinel"))r=[],w=new Set,J[15]=w,J[16]=r;else w=J[15],r=J[16];let p;if(J[17]===Symbol.for("react.memo_cache_sentinel"))p=[],J[17]=p;else p=J[17];let l;if(J[18]!==O||J[19]!==X.messages)l=U(BY,{messages:X.messages,tools:C,commands:y,verbose:!0,toolJSX:null,toolUseConfirmQueue:r,inProgressToolUseIDs:w,isMessageSelectorVisible:!1,conversationId:O,screen:"transcript",streamingToolUses:p,showAllInTranscript:!0,isLoading:!1}),J[18]=O,J[19]=X.messages,J[20]=l;else l=J[20];let s;if(J[21]!==X.modified)s=zY(X.modified),J[21]=X.modified,J[22]=s;else s=J[22];let o=X.gitBranch?` · ${X.gitBranch}`:"",_;if(J[23]!==X.messageCount||J[24]!==s||J[25]!==o)_=m(N,{children:[s," ·"," ",X.messageCount," messages",o]}),J[23]=X.messageCount,J[24]=s,J[25]=o,J[26]=_;else _=J[26];let VJ;if(J[27]===Symbol.for("react.memo_cache_sentinel"))VJ=U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"resume"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=VJ;else VJ=J[27];let M;if(J[28]!==_)M=m(b,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[_,VJ]}),J[28]=_,J[29]=M;else M=J[29];let AJ;if(J[30]!==l||J[31]!==M)AJ=m(b,{flexDirection:"column",children:[l,M]}),J[30]=l,J[31]=M,J[32]=AJ;else AJ=J[32];return AJ}var HY,L0;var OY=XZ(()=>{U0();KY();Gz();I0();V0();XY();VY();UY();qz();Bz();bJ();HY=UZ(f0(),1),L0=UZ(b0(),1)});function Dz(Z,J){if(Z===x0)return x0.length+qZ;let K=S0(Z),B=J?Math.min(K,J-qZ-_0):K;return Math.max(0,B)+qZ+_0}function kz(Z,J){let K=J-qZ-_0;if(S0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function NY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:B=!1}){let G=B?"Resume (All Projects)":"Resume",Q=G.length+1,v=Math.max(Oz,Pz),F=K-Q-v-2,T=Math.max(0,Math.min(J,Z.length-1)),i=Math.max(20,Math.floor(F/2)),X=Z.map((E)=>Dz(E,i)),W=0,O=Z.length;if(X.reduce((E,y,w)=>E+y+(w<X.length-1?1:0),0)>F){let E=F-Qz,y=X[T]??0;W=T,O=T+1;while(W>0||O<Z.length){let w=W>0,r=O<Z.length;if(w){let p=(X[W-1]??0)+1;if(y+p<=E){W--,y+=p;continue}}if(r){let p=(X[O]??0)+1;if(y+p<=E){O++,y+=p;continue}}break}}let C=W,JJ=Z.length-O,L=Z.slice(W,O),f=L.map((E,y)=>W+y);return m(b,{flexDirection:"row",gap:1,children:[U(N,{color:"suggestion",children:G}),C>0&&m(N,{dimColor:!0,children:[PY,C]}),L.map((E,y)=>{let r=f[y]===T,p=E===x0?E:`#${kz(E,i-qZ)}`;return m(N,{backgroundColor:r?"suggestion":void 0,color:r?"inverseText":void 0,bold:r,children:[" ",p," "]},E)}),JJ>0?m(N,{dimColor:!0,children:[DY,JJ,kY]}):U(N,{dimColor:!0,children:WY})]})}var x0="All",qZ=2,_0=1,PY="← ",DY="→",kY=" (tab to cycle)",WY="(tab to cycle)",vY=2,Qz,Oz,Pz;var CY=XZ(()=>{Hz();U0();I0();bJ();Qz=PY.length+vY+1,Oz=DY.length+vY+kY.length,Pz=WY.length});function EY(Z){let J=RY.c(48),{nodes:K,onSelect:B,onCancel:G,onFocus:Q,focusNodeId:v,visibleOptionCount:F,layout:T,isDisabled:i,hideIndexes:X,isNodeExpanded:W,onExpand:O,onCollapse:S,getParentPrefix:C,getChildPrefix:JJ,onUpFromFirstItem:L}=Z,f=T===void 0?"expanded":T,E=i===void 0?!1:i,y=X===void 0?!1:X,w;if(J[0]===Symbol.for("react.memo_cache_sentinel"))w=new Set,J[0]=w;else w=J[0];let[r,p]=q0.default.useState(w),l=q0.default.useRef(!1),s=q0.default.useRef(null),o;if(J[1]!==r||J[2]!==W)o=(H)=>{if(W)return W(H);return r.has(H)},J[1]=r,J[2]=W,J[3]=o;else o=J[3];let _=o,VJ;if(J[4]!==_||J[5]!==K){let H=function(k,qJ,TJ){let xJ=!!k.children&&k.children.length>0,_J=_(k.id);if(VJ.push({node:k,depth:qJ,isExpanded:_J,hasChildren:xJ,parentId:TJ}),xJ&&_J&&k.children)for(let V of k.children)H(V,qJ+1,k.id)};VJ=[];for(let k of K)H(k,0);J[4]=_,J[5]=K,J[6]=VJ}else VJ=J[6];let M=VJ,AJ=vz,c=Wz,BJ=C??AJ,d=JJ??c,cJ;if(J[7]!==d||J[8]!==BJ)cJ=(H)=>{let k="";if(H.hasChildren)k=BJ(H.isExpanded);else if(H.depth>0)k=d(H.depth);return k+H.node.label},J[7]=d,J[8]=BJ,J[9]=cJ;else cJ=J[9];let n=cJ,gJ;if(J[10]!==n||J[11]!==M)gJ=M.map((H)=>({label:n(H),description:H.node.description,dimDescription:H.node.dimDescription??!0,value:H.node.id})),J[10]=n,J[11]=M,J[12]=gJ;else gJ=J[12];let FJ=gJ,MJ;if(J[13]!==M)MJ=new Map,M.forEach((H)=>MJ.set(H.node.id,H.node)),J[13]=M,J[14]=MJ;else MJ=J[14];let g=MJ,HJ;if(J[15]!==M)HJ=(H)=>M.find((k)=>k.node.id===H),J[15]=M,J[16]=HJ;else HJ=J[16];let QJ=HJ,iJ;if(J[17]!==QJ||J[18]!==S||J[19]!==O)iJ=(H,k)=>{let qJ=QJ(H);if(!qJ||!qJ.hasChildren)return;if(k)if(O)O(H);else p((TJ)=>new Set(TJ).add(H));else if(S)S(H);else p((TJ)=>{let xJ=new Set(TJ);return xJ.delete(H),xJ})},J[17]=QJ,J[18]=S,J[19]=O,J[20]=iJ;else iJ=J[20];let OJ=iJ,GJ;if(J[21]!==QJ||J[22]!==v||J[23]!==E||J[24]!==g||J[25]!==Q||J[26]!==OJ)GJ=(H)=>{if(!v||E)return;let k=QJ(v);if(!k)return;if(H.key==="right"&&k.hasChildren)H.preventDefault(),OJ(v,!0);else if(H.key==="left"){if(k.hasChildren&&k.isExpanded)H.preventDefault(),OJ(v,!1);else if(k.parentId!==void 0){if(H.preventDefault(),l.current=!0,OJ(k.parentId,!1),Q){let qJ=g.get(k.parentId);if(qJ)Q(qJ)}}}},J[21]=QJ,J[22]=v,J[23]=E,J[24]=g,J[25]=Q,J[26]=OJ,J[27]=GJ;else GJ=J[27];let rJ=GJ,PJ;if(J[28]!==g||J[29]!==B)PJ=(H)=>{let k=g.get(H);if(!k)return;B(k)},J[28]=g,J[29]=B,J[30]=PJ;else PJ=J[30];let wJ=PJ,ZJ;if(J[31]!==g||J[32]!==Q)ZJ=(H)=>{if(l.current){l.current=!1;return}if(s.current===H)return;if(s.current=H,Q){let k=g.get(H);if(k)Q(k)}},J[31]=g,J[32]=Q,J[33]=ZJ;else ZJ=J[33];let lJ=ZJ,P;if(J[34]!==v||J[35]!==wJ||J[36]!==lJ||J[37]!==y||J[38]!==E||J[39]!==f||J[40]!==G||J[41]!==L||J[42]!==FJ||J[43]!==F)P=U(B0,{options:FJ,onChange:wJ,onFocus:lJ,onCancel:G,defaultFocusValue:v,visibleOptionCount:F,layout:f,isDisabled:E,hideIndexes:y,onUpFromFirstItem:L}),J[34]=v,J[35]=wJ,J[36]=lJ,J[37]=y,J[38]=E,J[39]=f,J[40]=G,J[41]=L,J[42]=FJ,J[43]=F,J[44]=P;else P=J[44];let h;if(J[45]!==rJ||J[46]!==P)h=U(b,{tabIndex:0,autoFocus:!0,onKeyDown:rJ,children:P}),J[45]=rJ,J[46]=P,J[47]=h;else h=J[47];return h}function Wz(Z){return" ▸ "}function vz(Z){return Z?"▼ ":"▶ "}var RY,q0;var jY=XZ(()=>{U0();MY();bJ();RY=UZ(f0(),1),q0=UZ(b0(),1)});function dY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function p0({before:Z,match:J,after:K},B){return $0.dim(Z)+B(J)+$0.dim(K)}function Sz(Z,J,K){let B=Z.toLowerCase().indexOf(J.toLowerCase());if(B===-1)return null;let G=B+J.length,Q=Math.max(0,B-K),v=Math.min(Z.length,G+K),F=Z.slice(Q,B),T=Z.slice(B,G),i=Z.slice(G,v);return{before:(Q>0?"…":"")+F.replace(/\s+/g," ").trimStart(),match:T.trim(),after:i.replace(/\s+/g," ").trimEnd()+(v<Z.length?"…":"")}}function u0(Z,J,K){let{isGroupHeader:B=!1,isChild:G=!1,forkCount:Q=0}=K||{},v=B&&Q>0?Iz:G?bz:0,F=B&&Q>0?` (+${Q} other ${Q===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",i=J-v-T.length-F.length;return`${dY(fJ(Z),i)}${T}${F}`}function h0(Z,J){let{isChild:K=!1,showProjectPath:B=!1}=J||{},G=K?" ":"",Q=c0(Z),v=B&&Z.projectPath?` · ${Z.projectPath}`:"";return G+Q+v}function YU(Z){let J=lY.c(247),{logs:K,maxHeight:B,forceWidth:G,onCancel:Q,onSelect:v,onLogsChanged:F,onLoadMore:T,initialSearchQuery:i,showAllProjects:X,onToggleAllProjects:W,onAgenticSearch:O}=Z,S=B===void 0?1/0:B,C=X===void 0?!1:X,JJ=_Y(),L=G===void 0?JJ.columns:G,f=SY(Q),E=bY(),y;if(J[0]===Symbol.for("react.memo_cache_sentinel"))y=iY(),J[0]=y;else y=J[0];let w=y,r=!1,[p]=LY(),l;if(J[1]!==p)l=fY(p),J[1]=p,J[2]=l;else l=J[2];let s=l,o;if(J[3]!==s.warning)o=(Y)=>IY(Y,s.warning),J[3]=s.warning,J[4]=o;else o=J[4];let _=o,VJ=!1,[M,AJ]=R.default.useState(null),[c,BJ]=R.default.useState(!1),[d,cJ]=R.default.useState(!1),[n,gJ]=R.default.useState(!1),FJ;if(J[5]===Symbol.for("react.memo_cache_sentinel"))FJ=H0(),J[5]=FJ;else FJ=J[5];let MJ=FJ,[g,HJ]=R.default.useState(""),[QJ,iJ]=R.default.useState(0),OJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))OJ=new Set,J[6]=OJ;else OJ=J[6];let[GJ,rJ]=R.default.useState(OJ),[PJ,wJ]=R.default.useState(null),[ZJ,lJ]=R.default.useState(1),[P,h]=R.default.useState("list"),[H,k]=R.default.useState(null),qJ=R.default.useRef(null),[TJ,xJ]=R.default.useState(0),_J;if(J[7]===Symbol.for("react.memo_cache_sentinel"))_J={status:"idle"},J[7]=_J;else _J=J[7];let[V,VZ]=R.default.useState(_J),[t,BZ]=R.default.useState(!1),HZ=R.default.useRef(null),Q0=P==="search"&&V.status!=="searching",QZ,OZ,PZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{h("list"),$("",{enabled:!1})},OZ=()=>{h("list"),$("",{enabled:!1})},PZ=["n"],J[8]=QZ,J[9]=OZ,J[10]=PZ;else QZ=J[8],OZ=J[9],PZ=J[10];let O0=i||"",DZ;if(J[11]!==O0||J[12]!==Q0)DZ={isActive:Q0,onExit:QZ,onExitUp:OZ,passthroughCtrlKeys:PZ,initialQuery:O0},J[11]=O0,J[12]=Q0,J[13]=DZ;else DZ=J[13];let{query:j,setQuery:dJ,cursorOffset:P0}=hY(DZ),yJ=R.default.useDeferredValue(j),[YJ,d0]=R.default.useState(""),kZ,WZ;if(J[14]!==yJ)kZ=()=>{if(!yJ){d0("");return}let Y=setTimeout(d0,300,yJ);return()=>clearTimeout(Y)},WZ=[yJ],J[14]=yJ,J[15]=kZ,J[16]=WZ;else kZ=J[15],WZ=J[16];R.default.useEffect(kZ,WZ);let[mJ,n0]=R.default.useState(null),[D0,a0]=R.default.useState(!1),vZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))vZ=()=>{yY().then((Y)=>AJ(Y)),rY(MJ).then((Y)=>{gJ(Y.length>1)})},NZ=[MJ],J[17]=vZ,J[18]=NZ;else vZ=J[17],NZ=J[18];R.default.useEffect(vZ,NZ);let XK=new Map(K.map(iz)),Yz;Yz=null;let CZ;if(J[19]!==K)CZ=nz(K),J[19]=K,J[20]=CZ;else CZ=J[20];let SJ=CZ,DJ=SJ.length>0,MZ;if(J[21]!==DJ||J[22]!==SJ)MZ=DJ?["All",...SJ]:[],J[21]=DJ,J[22]=SJ,J[23]=MZ;else MZ=J[23];let zJ=MZ,RZ=zJ.length>0&&TJ<zJ.length?TJ:0,s0=zJ[RZ],nJ=s0==="All"?void 0:s0,zz=DJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(gz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(nJ!==void 0){let Y;if(J[26]!==a||J[27]!==nJ){let z;if(J[29]!==nJ)z=(q)=>q.tag===nJ,J[29]=nJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=nJ,J[28]=Y}else Y=J[28];a=Y}if(c&&M){let Y;if(J[31]!==M||J[32]!==a){let z;if(J[34]!==M)z=(q)=>q.gitBranch===M,J[34]=M,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=M,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(n&&!d){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(q)=>q.projectPath===MJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let EZ=a,k0;J:{if(!j){k0=EZ;break J}let Y;if(J[39]!==EZ||J[40]!==j){let z=j.toLowerCase();Y=EZ.filter((q)=>{let A=fJ(q).toLowerCase(),x=(q.gitBranch||"").toLowerCase(),u=(q.tag||"").toLowerCase(),hJ=q.prNumber?`pr #${q.prNumber} ${q.prRepository||""}`.toLowerCase():"";return A.includes(z)||x.includes(z)||u.includes(z)||hJ.includes(z)}),J[39]=EZ,J[40]=j,J[41]=Y}else Y=J[41];k0=Y}let W0=k0,jZ,AZ;if(J[42]!==YJ||J[43]!==yJ)jZ=()=>{},AZ=[yJ,YJ,!1],J[42]=YJ,J[43]=yJ,J[44]=jZ,J[45]=AZ;else jZ=J[44],AZ=J[45];R.default.useEffect(jZ,AZ);let FZ,wZ;if(J[46]!==YJ)FZ=()=>{n0(null),a0(!1);return},wZ=[YJ,null,!1],J[46]=YJ,J[47]=FZ,J[48]=wZ;else FZ=J[47],wZ=J[48];R.default.useEffect(FZ,wZ);let e,pJ;if(J[49]!==YJ||J[50]!==mJ||J[51]!==W0){if(pJ=new Map,e=W0,mJ&&YJ&&mJ.query===YJ){for(let A of mJ.results)if(A.searchableText){let x=Sz(A.searchableText,YJ,_z);if(x)pJ.set(A.log,x)}let Y;if(J[54]!==e)Y=new Set(e.map(uz)),J[54]=e,J[55]=Y;else Y=J[55];let z=Y,q;if(J[56]!==mJ.results||J[57]!==e||J[58]!==z){let A;if(J[60]!==z)A=(u)=>!z.has(u.messages[0]?.uuid),J[60]=z,J[61]=A;else A=J[61];let x=mJ.results.map(pz).filter(A);q=[...e,...x],J[56]=mJ.results,J[57]=e,J[58]=z,J[59]=q}else q=J[59];e=q}J[49]=YJ,J[50]=mJ,J[51]=W0,J[52]=e,J[53]=pJ}else e=J[52],pJ=J[53];let TZ;if(J[62]!==e||J[63]!==pJ)TZ={filteredLogs:e,snippets:pJ},J[62]=e,J[63]=pJ,J[64]=TZ;else TZ=J[64];let{filteredLogs:uJ,snippets:RJ}=TZ,v0;J:{if(V.status==="results"&&V.results.length>0){v0=V.results;break J}v0=uJ}let D=v0,kJ=Math.max(30,L-4),N0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];N0=z;break J}let Y;if(J[66]!==D||J[67]!==_||J[68]!==kJ||J[69]!==C||J[70]!==RJ){let z=dz(D);Y=Array.from(z.entries()).map((q)=>{let[A,x]=q,u=x[0],hJ=D.indexOf(u),LJ=RJ.get(u),EJ=LJ?p0(LJ,_):null;if(x.length===1){let IJ=h0(u,{showProjectPath:C});return{id:`log:${A}:0`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ),description:EJ?`${IJ}
|
|
2
|
-
${EJ}`:IJ,dimDescription:!0}}let z0=x.length-1,K0=x.slice(1).map((IJ,Xz)=>{let Vz=D.indexOf(IJ),JY=RJ.get(IJ),ZY=JY?p0(JY,_):null,YY=h0(IJ,{isChild:!0,showProjectPath:C});return{id:`log:${A}:${Xz+1}`,value:{log:IJ,indexInFiltered:Vz},label:u0(IJ,kJ,{isChild:!0}),description:ZY?`${YY}
|
|
3
|
-
${ZY}`:YY,dimDescription:!0}}),e0=h0(u,{showProjectPath:C});return{id:`group:${A}`,value:{log:u,indexInFiltered:hJ},label:u0(u,kJ,{isGroupHeader:!0,forkCount:z0}),description:EJ?`${e0}
|
|
4
|
-
${EJ}`:e0,dimDescription:!0,children:K0}}),J[66]=D,J[67]=_,J[68]=kJ,J[69]=C,J[70]=RJ,J[71]=Y}else Y=J[71];N0=Y}let WJ=N0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==D||J[74]!==_||J[75]!==kJ||J[76]!==C||J[77]!==RJ){let z;if(J[79]!==_||J[80]!==kJ||J[81]!==C||J[82]!==RJ)z=(q,A)=>{let u=fJ(q)+(q.isSidechain?" (sidechain)":""),hJ=dY(u,kJ),LJ=c0(q),EJ=C&&q.projectPath?` · ${q.projectPath}`:"",z0=RJ.get(q),K0=z0?p0(z0,_):null;return{label:hJ,description:K0?`${LJ}${EJ}
|
|
5
|
-
${K0}`:LJ+EJ,dimDescription:!0,value:A.toString()}},J[79]=_,J[80]=kJ,J[81]=C,J[82]=RJ,J[83]=z;else z=J[83];Y=D.map(z),J[73]=D,J[74]=_,J[75]=kJ,J[76]=C,J[77]=RJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,I=PJ?.value.log??null,yZ;if(J[84]!==D||J[85]!==GJ||J[86]!==I)yZ=()=>{if(!w||!I)return"";let Y=XJ(I);if(!Y)return"";let z=D.filter((u)=>XJ(u)===Y);if(!(z.length>1))return"";let A=GJ.has(Y);if(z.indexOf(I)>0)return"← to collapse";return A?"← to collapse":"→ to expand"},J[84]=D,J[85]=GJ,J[86]=I,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==I||J[89]!==F||J[90]!==g)LZ=async()=>{let Y=I?XJ(I):void 0;if(!I||!Y){h("list"),HJ("");return}if(g.trim()){if(await nY(Y,g.trim(),I.fullPath),w&&F)F()}h("list"),HJ("")},J[88]=I,J[89]=F,J[90]=g,J[91]=LZ;else LZ=J[91];let R0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{h("list"),$("",{enabled:!1})},J[92]=IZ;else IZ=J[92];let Kz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{h("search"),$("",{enabled:!0})},J[93]=bZ;else bZ=J[93];let o0=bZ,fZ;if(J[94]!==K||J[95]!==O||J[96]!==j)fZ=async()=>{j.trim();return},J[94]=K,J[95]=O,J[96]=j,J[97]=fZ;else fZ=J[97];let E0=fZ,xZ;if(J[98]!==V.query||J[99]!==V.status||J[100]!==j)xZ=()=>{if(V.status!=="idle"&&V.status!=="searching"){if(V.status==="results"&&V.query!==j||V.status==="error")VZ({status:"idle"})}},J[98]=V.query,J[99]=V.status,J[100]=j,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==V||J[103]!==j)_Z=[j,V],J[102]=V,J[103]=j,J[104]=_Z;else _Z=J[104];R.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];R.default.useEffect(SZ,pZ);let t0=R.default.useRef(V.status),uZ;if(J[107]!==V.status||J[108]!==D[0]||J[109]!==D.length||J[110]!==WJ)uZ=()=>{let Y=t0.current;if(t0.current=V.status,Y==="searching"&&V.status==="results"){if(w&&WJ.length>0)wJ(WJ[0]);else if(!w&&D.length>0){let z=D[0];wJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=V.status,J[108]=D[0],J[109]=D.length,J[110]=WJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==V.status||J[113]!==D||J[114]!==WJ)hZ=[V.status,w,WJ,D],J[112]=V.status,J[113]=D,J[114]=WJ,J[115]=hZ;else hZ=J[115];R.default.useEffect(uZ,hZ);let $Z;if(J[116]!==D)$Z=(Y)=>{let z=parseInt(Y,10),q=D[z];if(!q||qJ.current===z.toString())return;qJ.current=z.toString(),wJ({id:z.toString(),value:{log:q,indexInFiltered:z},label:""}),lJ(z+1)},J[116]=D,J[117]=$Z;else $Z=J[117];let j0=$Z,cZ;if(J[118]!==D)cZ=(Y)=>{wJ(Y);let z=D.findIndex((q)=>XJ(q)===XJ(Y.value.log));if(z>=0)lJ(z+1)},J[118]=D,J[119]=cZ;else cZ=J[119];let A0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),VZ({status:"idle"}),$("",{})},J[120]=gZ;else gZ=J[120];let F0=P!=="preview"&&V.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];$J("confirm:no",gZ,iZ);let rZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))rZ=()=>{h("list"),HJ("")},J[123]=rZ;else rZ=J[123];let w0=P==="rename"&&V.status!=="searching",lZ;if(J[124]!==w0)lZ={context:"Settings",isActive:w0},J[124]=w0,J[125]=lZ;else lZ=J[125];$J("confirm:no",rZ,lZ);let dZ;if(J[126]!==Q||J[127]!==dJ)dZ=()=>{dJ(""),BZ(!1),Q?.()},J[126]=Q,J[127]=dJ,J[128]=dZ;else dZ=J[128];let T0=P!=="preview"&&P!=="rename"&&P!=="search"&&t&&V.status!=="searching",nZ;if(J[129]!==T0)nZ={context:"Confirmation",isActive:T0},J[129]=T0,J[130]=nZ;else nZ=J[130];$J("confirm:no",dZ,nZ);let aZ;if(J[131]!==V.status||J[132]!==c||J[133]!==I||J[134]!==E0||J[135]!==n||J[136]!==DJ||J[137]!==t||J[138]!==O||J[139]!==W||J[140]!==j||J[141]!==dJ||J[142]!==C||J[143]!==d||J[144]!==zJ||J[145]!==SJ||J[146]!==P)aZ=(Y,z)=>{if(P==="preview")return;if(V.status==="searching")return;if(P==="rename");else if(P==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)Kz();else if(z.return||z.downArrow)j.trim()}else{if(t){if(z.return){E0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){h("search"),BZ(!1);return}}if(DJ&&z.tab){let x=z.shift?-1:1;xJ((u)=>{let LJ=((u<zJ.length?u:0)+zJ.length+x)%zJ.length,EJ=zJ[LJ];return $("",{is_all:EJ==="All",tag_count:SJ.length}),LJ});return}let q=!z.ctrl&&!z.meta,A=Y.toLowerCase();if(A==="a"&&z.ctrl&&W)W(),$("",{enabled:!C});else if(A==="b"&&z.ctrl){let x=!c;BJ(x),$("",{enabled:x})}else if(A==="w"&&z.ctrl&&n){let x=!d;cJ(x),$("",{enabled:x})}else if(A==="/"&&q)h("search"),$("",{enabled:!0});else if(A==="r"&&z.ctrl&&I)h("rename"),HJ(""),$("",{});else if(A==="v"&&z.ctrl&&I)k(I),h("preview"),$("",{messageCount:I.messageCount});else if(I&&q&&Y.length>0&&!/^\s+$/.test(Y))h("search"),dJ(Y),$("",{enabled:!0})}},J[131]=V.status,J[132]=c,J[133]=I,J[134]=E0,J[135]=n,J[136]=DJ,J[137]=t,J[138]=O,J[139]=W,J[140]=j,J[141]=dJ,J[142]=C,J[143]=d,J[144]=zJ,J[145]=SJ,J[146]=P,J[147]=aZ;else aZ=J[147];let sZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))sZ={isActive:!0},J[148]=sZ;else sZ=J[148];xY(aZ,sZ);let vJ;if(J[149]!==c||J[150]!==M||J[151]!==n||J[152]!==d){if(vJ=[],c&&M)vJ.push(M);if(n&&!d)vJ.push("current worktree");J[149]=c,J[150]=M,J[151]=n,J[152]=d,J[153]=vJ}else vJ=J[153];let Uz=8+(vJ.length>0&&P!=="search"?1:0)+zz,KJ=Math.max(1,Math.floor((S-Uz-2)/3)),oZ,tZ;if(J[154]!==D.length||J[155]!==ZJ||J[156]!==T||J[157]!==KJ)oZ=()=>{if(!T)return;let Y=KJ*2;if(ZJ+Y>=D.length)T(KJ*3)},tZ=[ZJ,KJ,D.length,T],J[154]=D.length,J[155]=ZJ,J[156]=T,J[157]=KJ,J[158]=oZ,J[159]=tZ;else oZ=J[158],tZ=J[159];if(R.default.useEffect(oZ,tZ),K.length===0)return null;if(P==="preview"&&H&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{h("list"),k(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==v||J[162]!==H)z=U(QY,{log:H,onExit:Y,onSelect:v}),J[161]=v,J[162]=H,J[163]=z;else z=J[163];return z}let y0=S-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=U(b,{flexShrink:0,children:U(pY,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[165]=J0;else J0=J[165];let aJ;if(J[166]!==L||J[167]!==D.length||J[168]!==RZ||J[169]!==ZJ||J[170]!==DJ||J[171]!==C||J[172]!==zJ||J[173]!==P||J[174]!==KJ)aJ=DJ?U(NY,{tabs:zJ,selectedIndex:RZ,availableWidth:L,showAllProjects:C}):U(b,{flexShrink:0,children:m(N,{bold:!0,color:"suggestion",children:["Resume Session",P==="list"&&D.length>KJ&&m(N,{dimColor:!0,children:[" ","(",ZJ," of ",D.length,")"]})]})}),J[166]=L,J[167]=D.length,J[168]=RZ,J[169]=ZJ,J[170]=DJ,J[171]=C,J[172]=zJ,J[173]=P,J[174]=KJ,J[175]=aJ;else aJ=J[175];let m0=P==="search",sJ;if(J[176]!==E||J[177]!==P0||J[178]!==j||J[179]!==m0)sJ=U($Y,{query:j,isFocused:m0,isTerminalFocused:E,cursorOffset:P0}),J[176]=E,J[177]=P0,J[178]=j,J[179]=m0,J[180]=sJ;else sJ=J[180];let oJ;if(J[181]!==vJ||J[182]!==P)oJ=vJ.length>0&&P!=="search"&&U(b,{flexShrink:0,paddingLeft:2,children:U(N,{dimColor:!0,children:U(NJ,{children:vJ})})}),J[181]=vJ,J[182]=P,J[183]=oJ;else oJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=U(b,{flexShrink:0,children:U(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let tJ;if(J[185]!==V.status)tJ=V.status==="searching"&&m(b,{paddingLeft:1,flexShrink:0,children:[U(cY,{}),U(N,{children:" Searching…"})]}),J[185]=V.status,J[186]=tJ;else tJ=J[186];let eJ;if(J[187]!==V.results||J[188]!==V.status)eJ=V.status==="results"&&V.results.length>0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=V.results,J[188]=V.status,J[189]=eJ;else eJ=J[189];let JZ;if(J[190]!==V.results||J[191]!==V.status||J[192]!==uJ)JZ=V.status==="results"&&V.results.length===0&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=V.results,J[191]=V.status,J[192]=uJ,J[193]=JZ;else JZ=J[193];let ZZ;if(J[194]!==V.status||J[195]!==uJ)ZZ=V.status==="error"&&uJ.length===0&&U(b,{paddingLeft:1,marginBottom:1,flexShrink:0,children:U(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=V.status,J[195]=uJ,J[196]=ZZ;else ZZ=J[196];let YZ;if(J[197]!==V.status||J[198]!==t||J[199]!==O||J[200]!==j)YZ=Boolean(j.trim())&&O&&!1,J[197]=V.status,J[198]=t,J[199]=O,J[200]=j,J[201]=YZ;else YZ=J[201];let zZ;if(J[202]!==V.status||J[203]!==c||J[204]!==L||J[205]!==D||J[206]!==GJ||J[207]!==M0||J[208]!==I||J[209]!==PJ?.id||J[210]!==j0||J[211]!==R0||J[212]!==A0||J[213]!==t||J[214]!==Q||J[215]!==v||J[216]!==QJ||J[217]!==g||J[218]!==WJ||J[219]!==P||J[220]!==KJ)zZ=V.status==="searching"?null:P==="rename"&&I?m(b,{paddingLeft:2,flexDirection:"column",children:[U(N,{bold:!0,children:"Rename session:"}),U(b,{paddingTop:1,children:U(uY,{value:g,onChange:HJ,onSubmit:R0,placeholder:fJ(I,"Enter new session name"),columns:L,cursorOffset:QJ,onChangeCursorOffset:iJ,showCursor:!0})})]}):w?U(EY,{nodes:WJ,onSelect:(Y)=>{v(Y.value.log)},onFocus:A0,onCancel:Q,focusNodeId:PJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:P==="search"||t,hideIndexes:!1,isNodeExpanded:(Y)=>{if(P==="search"||c)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>new Set(q).add(z)),$("",{})},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)rJ((q)=>{let A=new Set(q);return A.delete(z),A})},onUpFromFirstItem:o0}):U(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),q=D[z];if(q)v(q)},visibleOptionCount:KJ,onCancel:Q,onFocus:j0,defaultFocusValue:PJ?.id.toString(),layout:"expanded",isDisabled:P==="search"||t,onUpFromFirstItem:o0}),J[202]=V.status,J[203]=c,J[204]=L,J[205]=D,J[206]=GJ,J[207]=M0,J[208]=I,J[209]=PJ?.id,J[210]=j0,J[211]=R0,J[212]=A0,J[213]=t,J[214]=Q,J[215]=v,J[216]=QJ,J[217]=g,J[218]=WJ,J[219]=P,J[220]=KJ,J[221]=zZ;else zZ=J[221];let KZ;if(J[222]!==V.status||J[223]!==M||J[224]!==f.keyName||J[225]!==f.pending||J[226]!==mZ||J[227]!==n||J[228]!==t||J[229]!==D0||J[230]!==W||J[231]!==C||J[232]!==d||J[233]!==P)KZ=U(b,{paddingLeft:2,children:f.pending?m(N,{dimColor:!0,children:["Press ",f.keyName," again to exit"]}):P==="rename"?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"save"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):V.status==="searching"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Searching with Claude…"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):t?U(N,{dimColor:!0,children:m(NJ,{children:[U(UJ,{shortcut:"Enter",action:"search"}),U(UJ,{shortcut:"↓",action:"skip"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):P==="search"?U(N,{dimColor:!0,children:m(NJ,{children:[U(N,{children:"Type to Search"}),U(UJ,{shortcut:"Enter",action:"select"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):U(N,{dimColor:!0,children:m(NJ,{children:[W&&U(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),M&&U(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),n&&U(UJ,{shortcut:"Ctrl+W",action:`show ${d?"current worktree":"all worktrees"}`}),U(UJ,{shortcut:"Ctrl+V",action:"preview"}),U(UJ,{shortcut:"Ctrl+R",action:"rename"}),U(N,{children:"Type to search"}),U(jJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&U(N,{children:mZ()})]})})}),J[222]=V.status,J[223]=M,J[224]=f.keyName,J[225]=f.pending,J[226]=mZ,J[227]=n,J[228]=t,J[229]=D0,J[230]=W,J[231]=C,J[232]=d,J[233]=P,J[234]=KZ;else KZ=J[234];let Y0;if(J[235]!==y0||J[236]!==aJ||J[237]!==sJ||J[238]!==oJ||J[239]!==tJ||J[240]!==eJ||J[241]!==JZ||J[242]!==ZZ||J[243]!==YZ||J[244]!==zZ||J[245]!==KZ)Y0=m(b,{flexDirection:"column",height:y0,children:[eZ,J0,aJ,sJ,oJ,Z0,tJ,eJ,JZ,ZZ,YZ,zZ,KZ]}),J[235]=y0,J[236]=aJ,J[237]=sJ,J[238]=oJ,J[239]=tJ,J[240]=eJ,J[241]=JZ,J[242]=ZZ,J[243]=YZ,J[244]=zZ,J[245]=KZ,J[246]=Y0;else Y0=J[246];return Y0}function pz(Z){return Z.log}function uz(Z){return Z.messages[0]?.uuid}function hz(Z,J,K,B){if(!Z)return;let G=Z.search(J);G.sort(cz),K({results:G.map($z),query:J}),B(!1)}function $z(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function cz(Z,J){let K=new Date(Z.item.log.modified).getTime(),G=new Date(J.item.log.modified).getTime()-K;if(Math.abs(G)>xz)return G;return(Z.score??1)-(J.score??1)}function gz(Z){let J=wY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(gY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function iz(Z){return[Z,lz(Z)]}function rz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function lz(Z){let K=(Z.messages.length<=fz?Z.messages:[...Z.messages.slice(0,AY),...Z.messages.slice(-AY)]).map(rz).filter(Boolean).join(" "),G=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return G.length>FY?G.slice(0,FY):G}function dz(Z){let J=new Map;for(let K of Z){let B=XJ(K);if(B){let G=J.get(B);if(G)G.push(K);else J.set(B,[K])}}return J.forEach((K)=>K.sort((B,G)=>new Date(G.modified).getTime()-new Date(B.modified).getTime())),J}function nz(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,B)=>K.localeCompare(B))}var lY,R,Iz=2,bz=4,fz=2000,AY=1000,FY=50000,xz=60000,_z=50;var az=XZ(()=>{Cz();TY();Az();Tz();jz();Rz();U0();KY();Nz();I0();Lz();Mz();mY();V0();Ez();XY();MY();VY();Fz();UY();yz();OY();mz();CY();wz();jY();bJ();lY=UZ(f0(),1),R=UZ(b0(),1)});function YK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Jz(Z){if(Z.length===0)return"";let K=(Z.length<=g0?Z:[...Z.slice(0,g0/2),...Z.slice(-g0/2)]).map(YK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>aY?K.slice(0,aY)+"…":K}function sY(Z,J){if(fJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Jz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function QU(Z,J,K){if(!Z.trim()||J.length===0)return[];let B=Z.toLowerCase(),G=J.filter((X)=>sY(X,B)),Q;if(G.length>=i0)Q=G.slice(0,i0);else{let X=J.filter((O)=>!sY(O,B)),W=i0-G.length;Q=[...G,...X.slice(0,W)]}CJ(`Agentic search: ${Q.length}/${J.length} logs, query="${Z}", matching: ${G.length}, with messages: ${r0(Q,(X)=>X.messages?.length>0)}`);let v=Q.map(async(X)=>{if(GZ(X))try{return await X0(X)}catch(W){return l0(W),X}return X}),F=await Promise.all(v);CJ(`Agentic search: loaded ${r0(F,(X)=>X.messages?.length>0)}/${Q.length} logs with transcripts`);let i=`Sessions:
|
|
6
|
-
${F.map((X,W)=>{let O=[`${W}:`],S=fJ(X);if(O.push(S),X.customTitle&&X.customTitle!==S)O.push(`[custom title: ${X.customTitle}]`);if(X.tag)O.push(`[tag: ${X.tag}]`);if(X.gitBranch)O.push(`[branch: ${X.gitBranch}]`);if(X.summary)O.push(`- Summary: ${X.summary}`);if(X.firstPrompt&&X.firstPrompt!=="No prompt")O.push(`- First message: ${X.firstPrompt.slice(0,300)}`);if(X.messages&&X.messages.length>0){let C=Jz(X.messages);if(C)O.push(`- Transcript: ${C}`)}return O.join(" ")}).join(`
|
|
7
|
-
`)}
|
|
8
|
-
|
|
9
|
-
Search query: "${Z}"
|
|
10
|
-
|
|
11
|
-
Find the sessions that are most relevant to this query.`;CJ(`Agentic search prompt (first 500 chars): ${i.slice(0,500)}...`);try{let X=tY();CJ(`Agentic search using model: ${X}`);let O=(await eY({model:X,system:ZK,messages:[{role:"user",content:i}],signal:K,querySource:"session_search"})).content.find((f)=>f.type==="text");if(!O||O.type!=="text")return CJ("No text content in agentic search response"),[];CJ(`Agentic search response: ${O.text}`);let S=O.text.match(/\{[\s\S]*\}/);if(!S)return CJ("Could not find JSON in agentic search response"),[];let L=(oY(S[0]).relevant_indices||[]).filter((f)=>f>=0&&f<F.length).map((f)=>F[f]);return CJ(`Agentic search found ${L.length} relevant sessions`),L}catch(X){return l0(X),CJ(`Agentic search error: ${X}`),[]}}var aY=2000,g0=100,i0=100,ZK=`Your goal is to find relevant sessions based on a user's search query.
|
|
12
|
-
|
|
13
|
-
You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
|
|
14
|
-
|
|
15
|
-
Each session may include:
|
|
16
|
-
- Title (display name or custom title)
|
|
17
|
-
- Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
|
|
18
|
-
- Branch (git branch name, shown as [branch: name])
|
|
19
|
-
- Summary (AI-generated summary)
|
|
20
|
-
- First message (beginning of the conversation)
|
|
21
|
-
- Transcript (excerpt of conversation content)
|
|
22
|
-
|
|
23
|
-
IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
|
|
24
|
-
|
|
25
|
-
For each session, consider (in order of priority):
|
|
26
|
-
1. Exact tag matches (highest priority - user explicitly categorized this session)
|
|
27
|
-
2. Partial tag matches or tag-related terms
|
|
28
|
-
3. Title matches (custom titles or first message content)
|
|
29
|
-
4. Branch name matches
|
|
30
|
-
5. Summary and transcript content matches
|
|
31
|
-
6. Semantic similarity and related concepts
|
|
32
|
-
|
|
33
|
-
CRITICAL: Be VERY inclusive in your matching. Include sessions that:
|
|
34
|
-
- Contain the query term anywhere in any field
|
|
35
|
-
- Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
|
|
36
|
-
- Discuss topics that could be related to the query
|
|
37
|
-
- Have transcripts that mention the concept even in passing
|
|
38
|
-
|
|
39
|
-
When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
|
|
40
|
-
|
|
41
|
-
Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
|
|
42
|
-
|
|
43
|
-
Respond with ONLY the JSON object, no markdown formatting:
|
|
44
|
-
{"relevant_indices": [2, 5, 0]}`;var zK=XZ(()=>{tz();oz();mY();ez();V0();JK();sz()});function WU(Z,J,K){let B=H0();if(!J||!Z.projectPath||Z.projectPath===B)return{isCrossProject:!1};let G=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Zz([Z.projectPath])} && claude --resume ${G}`,projectPath:Z.projectPath}}var UK=XZ(()=>{TY();KK();V0()});
|
|
45
|
-
export{YU as pe,az as qe,QU as re,zK as se,WU as te,UK as ue};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{Dta as T,Fta as J5,Gta as M}from"./cli-1.1.23-bdj1ne1r.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
2
|
-
]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
|
|
3
|
-
Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
|
|
4
|
-
Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
|
|
5
|
-
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
-
Minimum version required to store current data is: `+F+`.
|
|
7
|
-
`);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
|
|
8
|
-
`);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
|
|
9
|
-
`}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
|
|
10
|
-
`;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
|
|
11
|
-
`}if(U+=R+`
|
|
12
|
-
`,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
|
|
13
|
-
`+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
|
|
14
|
-
`;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
|
|
15
|
-
export{T5 as He,X5 as Ie};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{EQ as f,FQ as L,Fv as T,ID as K,KD as I,LD as _,ND as p,PQ as r,RC as P,TS as i,XC as b,bD as j}from"./cli-1.1.23-hynrf6x1.mjs";import{AW as n,zW as A}from"./cli-1.1.23-1fexxp20.mjs";import{jka as E,mka as C}from"./cli-1.1.23-j9tza8qb.mjs";import{_ka as M,cla as m,mla as Z,pka as F,pla as u,rka as S}from"./cli-1.1.23-kc1tbe8y.mjs";import{Hna as Y,Ina as k,Kra as c,mra as v}from"./cli-1.1.23-wkvjbzna.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
|
|
2
|
-
export{Zq as $a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{AU as m,BU as b,CU as H,EU as N,FU as K}from"./cli-1.1.23-5xfyp6fr.mjs";import{b9 as x,c9 as M,f9 as D,h9 as R,r9 as L,t9 as O,u9 as _}from"./cli-1.1.23-a1w72kgd.mjs";import{Ifa as G,eea as X,jea as Y,nfa as Z,uba as j,wba as P,wea as A}from"./cli-1.1.23-keftnbc6.mjs";import{Zla as $,fma as I}from"./cli-1.1.23-fxyf1cph.mjs";import{Fta as F}from"./cli-1.1.23-bdj1ne1r.mjs";function V(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:C,...U}=q;return U}function k(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!H(B))z[B]=Q;return z}function p(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return p(k(V(q)))}function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!j(z))continue;Object.assign(process.env,J(X(z)?.env))}m(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(N.has(z.toUpperCase()))process.env[z]=B}function a(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),x(),D(),O(),L()}var W,h;var T=F(()=>{b();M();G();I();K();R();_();P();A();h=["userSettings","flagSettings","policySettings"]});
|
|
2
|
-
export{S as Gc,a as Hc,T as Ic};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wb as Y}from"./cli-1.1.23-vdp0r91n.mjs";import{dX as N,eX as O}from"./cli-1.1.23-91n79mdp.mjs";import{aha as A,cha as C}from"./cli-1.1.23-keftnbc6.mjs";import{jka as G,mka as K}from"./cli-1.1.23-j9tza8qb.mjs";import{Ska as x,Wka as j,mla as X,pla as w}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as L,Tla as E}from"./cli-1.1.23-6vn61k3h.mjs";K();O();import{randomUUID as T}from"crypto";w();C();E();j();function h(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function P(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function S(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function v(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function q(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return A(V)||void 0}function p(H,Z,V,f,$,B){try{let J=Y(x(H));if(P(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(S(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!h(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);G("",{is_repl:!0}),f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${L(J)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:_}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:y}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=_?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let k={...W,session_id:f};V.write(k),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function i(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:H,uuid:T()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
-
export{v as Qb,q as Rb,p as Sb,g as Tb,i as Ub,R as Vb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zla as $,fma as F}from"./cli-1.1.23-fxyf1cph.mjs";import{Eta as E,Fta as W}from"./cli-1.1.23-bdj1ne1r.mjs";import{AsyncLocalStorage as q}from"async_hooks";function G(){return O.getStore()}function X(z,B){return O.run(z,B)}function Y(){return O.getStore()!==void 0}function Z(z){return{...z,isInProcess:!0}}var O;var Q=W(()=>{O=new q});var y={};E(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>_,runWithTeammateContext:()=>X,isTeammate:()=>h,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Y,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>u,getTeamName:()=>f,getParentSessionId:()=>L,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>j,createTeammateContext:()=>Z,clearDynamicTeamContext:()=>b});function L(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function _(z){D=z}function b(){D=null}function v(){return D}function j(){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 f(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function h(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function u(){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 $(process.env.CLAUDIN_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=j(),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((U)=>{let N={...U.tasks};for(let V of H){let K=N[V];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[V]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...U,tasks:N}})})}var D=null;var g=W(()=>{Q();F();Q()});
|
|
2
|
-
export{G as gY,X as hY,Y as iY,Z as jY,Q as kY,L as lY,v as mY,j as nY,A as oY,f as pY,h as qY,u as rY,w as sY,S as tY,P as uY,I as vY,l as wY,y as xY,g as yY};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DG as h,KG as v,io as R,jo as r}from"./cli-1.1.23-hynrf6x1.mjs";import{PZ as p,T1 as E,m1 as U,o1 as F,s1 as I}from"./cli-1.1.23-7081am2r.mjs";import{p4 as Z,q4 as L,r4 as N}from"./cli-1.1.23-hdrz15yh.mjs";import{s4 as j}from"./cli-1.1.23-534g4n3n.mjs";import{gea as B,wea as S}from"./cli-1.1.23-keftnbc6.mjs";import{jka as H,mka as b}from"./cli-1.1.23-j9tza8qb.mjs";import{Bta as P,Fta as A}from"./cli-1.1.23-bdj1ne1r.mjs";function l(d){let f=O.c(18),{onAccept:J,onDecline:q,declineExits:m}=d,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];T.default.useEffect(x,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(C){f:switch(C){case"accept":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let k=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=L(U,{flexDirection:"column",gap:1,children:[Z(F,{children:u}),Z(I,{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 y=m?"No, exit":"No, go back",w;if(f[7]!==y)w=[...W,X,{label:y,value:"decline"}],f[7]=y,f[8]=w;else w=f[8];let z;if(f[9]!==k)z=(M)=>k(M),f[9]=k,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(h,{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=L(R,{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 x(){H("",{})}var O,T,u="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.";var g=A(()=>{b();E();S();v();r();N();O=P(p(),1),T=P(j(),1)});
|
|
2
|
-
export{u as fd,l as gd,g as hd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{eW as f,fW as h,vW as u}from"./cli-1.1.23-pjmjhm4y.mjs";import{mY as C,yY as d}from"./cli-1.1.23-c49xxwj4.mjs";import{N4 as w,P4 as F}from"./cli-1.1.23-vns1fwxz.mjs";import{j5 as O,p5 as i}from"./cli-1.1.23-9qe28y65.mjs";import{e9 as x,h9 as v,o9 as M,p9 as A,u9 as I}from"./cli-1.1.23-a1w72kgd.mjs";import{gha as K,oha as j}from"./cli-1.1.23-keftnbc6.mjs";import{hka as R,ika as _}from"./cli-1.1.23-nr6xamsd.mjs";import{Rka as X,Ska as P,Wka as T,mla as J,pla as W}from"./cli-1.1.23-kc1tbe8y.mjs";import{Mla as y,Tla as p}from"./cli-1.1.23-6vn61k3h.mjs";import{Gta as q}from"./cli-1.1.23-bdj1ne1r.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.23-xbpjcwkh.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
-
export{N as Ka,$z as La,Xz as Ma,xz as Na,Uz as Oa};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{PZ as t,T1 as o,YZ as p,k1 as j,l1 as s,m1 as F,o1 as V}from"./cli-1.1.23-7081am2r.mjs";import{p4 as w,q4 as g,r4 as y}from"./cli-1.1.23-hdrz15yh.mjs";import{J_ as $,K_ as a,P_ as _,Q_ as n}from"./cli-1.1.23-keftnbc6.mjs";import{Bta as i,Fta as v}from"./cli-1.1.23-bdj1ne1r.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
|
|
2
|
-
`)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
|
|
3
|
-
export{Hq as ig,Mq as jg};
|