@claudiolabs/claudin 1.1.24 → 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-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-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-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-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-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.24-qv4fnna8.mjs +0 -1
- package/dist/chunks/App-1.1.24-say2rpmy.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.24-gm23618e.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.24-86rnm17k.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.24-xpvbmbs3.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.24-er5kqrm5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.24-vqcj9ryy.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.24-nxtt3gvy.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.24-cn4z7xcf.mjs +0 -6
- package/dist/chunks/Doctor-1.1.24-nq687w3y.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.24-aajhejtf.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.24-t998qy29.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.24-r5a5gmqd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.24-pfhn03af.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.24-bdj4skrs.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.24-2fjwdtrt.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.24-hk5fjxsy.mjs +0 -1
- package/dist/chunks/REPL-1.1.24-c424ewnm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.24-6vrvymt3.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.24-4bnhs3c5.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.24-2my71fq7.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.24-jk3wwkbf.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.24-j2b1t7n2.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.24-xtsgfdrz.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.24-v916xcsm.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.24-334mbya2.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.24-ha5w75qf.mjs +0 -1
- package/dist/chunks/add-dir-1.1.24-5ddz7jxk.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.24-zyfmeacn.mjs +0 -1
- package/dist/chunks/agents-1.1.24-3nesz6hb.mjs +0 -110
- package/dist/chunks/agents-1.1.24-7vbfmsmd.mjs +0 -3
- package/dist/chunks/api-1.1.24-dkqpat59.mjs +0 -1
- package/dist/chunks/asciicast-1.1.24-d40wfrpr.mjs +0 -1
- package/dist/chunks/assistant-1.1.24-jj35h9kw.mjs +0 -1
- package/dist/chunks/auth-1.1.24-e4nfc4rk.mjs +0 -1
- package/dist/chunks/auth-1.1.24-fjhrv05m.mjs +0 -1
- package/dist/chunks/autoMode-1.1.24-tdgcdezx.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.24-qdp17k5x.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.24-zp05t0xp.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.24-hcarqdg1.mjs +0 -1
- package/dist/chunks/branch-1.1.24-3df7e69c.mjs +0 -4
- package/dist/chunks/bridge-1.1.24-2ybb995s.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.24-7y8hnb44.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.24-4z88m0dk.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.24-5vh38zjk.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.24-e431wg6e.mjs +0 -1
- package/dist/chunks/btw-1.1.24-c9cx5x03.mjs +0 -1
- package/dist/chunks/buddy-1.1.24-sbda0mvf.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.24-qxe2hv8y.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.24-8rgatdb3.mjs +0 -4
- package/dist/chunks/caches-1.1.24-zj2axnpf.mjs +0 -1
- package/dist/chunks/cd-1.1.24-f7dgvfpq.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.24-7ws7tbt6.mjs +0 -1
- package/dist/chunks/claudemd-1.1.24-71y4hxrm.mjs +0 -1
- package/dist/chunks/clear-1.1.24-njwpqwdd.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.24-f6wcsvqq.mjs +0 -1
- package/dist/chunks/cli-1.1.24-0jwj33ps.mjs +0 -2
- package/dist/chunks/cli-1.1.24-0qefwnmv.mjs +0 -2
- package/dist/chunks/cli-1.1.24-0zt6ghdg.mjs +0 -2
- package/dist/chunks/cli-1.1.24-12hfxy63.mjs +0 -12
- package/dist/chunks/cli-1.1.24-14842nvc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-190psky8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-1kpad5gy.mjs +0 -2
- package/dist/chunks/cli-1.1.24-1m0md9q7.mjs +0 -2
- package/dist/chunks/cli-1.1.24-228jgyfg.mjs +0 -2
- package/dist/chunks/cli-1.1.24-241znxsf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-25bjk4fa.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2d5h000x.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2g0372f8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2md121ma.mjs +0 -2
- package/dist/chunks/cli-1.1.24-2qkkzsk3.mjs +0 -5456
- package/dist/chunks/cli-1.1.24-2yjpqx2j.mjs +0 -2
- package/dist/chunks/cli-1.1.24-308y9m4j.mjs +0 -2
- package/dist/chunks/cli-1.1.24-32h2wd2e.mjs +0 -3
- package/dist/chunks/cli-1.1.24-36c9cxby.mjs +0 -25
- package/dist/chunks/cli-1.1.24-3cgaxth4.mjs +0 -2
- package/dist/chunks/cli-1.1.24-3n53gv32.mjs +0 -2
- package/dist/chunks/cli-1.1.24-3n6e2e3w.mjs +0 -12
- package/dist/chunks/cli-1.1.24-3w12t3c9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-47657dtc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4cre60p8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4p3bjzm5.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4t3rdp3k.mjs +0 -2
- package/dist/chunks/cli-1.1.24-4wpk3xd9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-58gfq4p1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5jpkct15.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5pkkmh85.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5r5ayhj5.mjs +0 -2
- package/dist/chunks/cli-1.1.24-5vw5z579.mjs +0 -2
- package/dist/chunks/cli-1.1.24-64d8tfjb.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6gj496xe.mjs +0 -4
- package/dist/chunks/cli-1.1.24-6hqn628p.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6mm894jd.mjs +0 -5
- package/dist/chunks/cli-1.1.24-6pgc4c5x.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6ptbgma9.mjs +0 -6
- package/dist/chunks/cli-1.1.24-6rneem3p.mjs +0 -2
- package/dist/chunks/cli-1.1.24-6tjp5zv1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-707k0kc7.mjs +0 -133
- package/dist/chunks/cli-1.1.24-7ae9t2qz.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ahqssha.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ax9c4aj.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ga8r482.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ht46b9h.mjs +0 -4
- package/dist/chunks/cli-1.1.24-7m3kth8w.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7qe2p4yb.mjs +0 -2
- package/dist/chunks/cli-1.1.24-7ymj1nkq.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8d439hr1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8fbhkz2k.mjs +0 -7
- package/dist/chunks/cli-1.1.24-8n6b217h.mjs +0 -50
- package/dist/chunks/cli-1.1.24-8nrya8sx.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8s7nf1y6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8xvf355a.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8yspjjkp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-8zb03vbp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-92s2r0nt.mjs +0 -2
- package/dist/chunks/cli-1.1.24-93bhcjrs.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9414cm38.mjs +0 -2
- package/dist/chunks/cli-1.1.24-985tmwb6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-98nyrm5c.mjs +0 -3
- package/dist/chunks/cli-1.1.24-9dnr05fm.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9grm6x6h.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9jq4gf5s.mjs +0 -2
- package/dist/chunks/cli-1.1.24-9tw7bj9k.mjs +0 -58
- package/dist/chunks/cli-1.1.24-a6q6r9em.mjs +0 -2
- package/dist/chunks/cli-1.1.24-aaym95m1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-abyr5pge.mjs +0 -2
- package/dist/chunks/cli-1.1.24-agq0y77k.mjs +0 -9
- package/dist/chunks/cli-1.1.24-awf7k3ez.mjs +0 -4
- package/dist/chunks/cli-1.1.24-b3nksc62.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bd6f0h85.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bhe5cv5z.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bjbqxwc9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bnm1yphs.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bnyxg0c8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-bph6jjd7.mjs +0 -4
- package/dist/chunks/cli-1.1.24-bskn8qpc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-c0j54zba.mjs +0 -25
- package/dist/chunks/cli-1.1.24-c1c7arb3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-c7007hz6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-c80wbwvr.mjs +0 -2
- package/dist/chunks/cli-1.1.24-chach6xd.mjs +0 -39
- package/dist/chunks/cli-1.1.24-cjkjb1w0.mjs +0 -4
- package/dist/chunks/cli-1.1.24-ctw3hzrp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-d371v1bp.mjs +0 -42
- package/dist/chunks/cli-1.1.24-dt22ehz1.mjs +0 -18
- package/dist/chunks/cli-1.1.24-dw6eynz7.mjs +0 -16
- package/dist/chunks/cli-1.1.24-e21q73az.mjs +0 -2
- package/dist/chunks/cli-1.1.24-e960m296.mjs +0 -2
- package/dist/chunks/cli-1.1.24-eh4c00hd.mjs +0 -4
- package/dist/chunks/cli-1.1.24-ex7hr389.mjs +0 -3
- package/dist/chunks/cli-1.1.24-ez9nx0pe.mjs +0 -133
- package/dist/chunks/cli-1.1.24-f0pc1fm3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-f2exw52y.mjs +0 -2
- package/dist/chunks/cli-1.1.24-f942w88t.mjs +0 -2
- package/dist/chunks/cli-1.1.24-fkkcnvap.mjs +0 -18
- package/dist/chunks/cli-1.1.24-fqh8r338.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ftgtm0ys.mjs +0 -2
- package/dist/chunks/cli-1.1.24-fwb0d06k.mjs +0 -34
- package/dist/chunks/cli-1.1.24-gb39akdj.mjs +0 -2
- package/dist/chunks/cli-1.1.24-gbya20sv.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ghegqjt7.mjs +0 -2
- package/dist/chunks/cli-1.1.24-gm25g2rw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-hbp5ttza.mjs +0 -2
- package/dist/chunks/cli-1.1.24-hbvsy3cq.mjs +0 -2
- package/dist/chunks/cli-1.1.24-hhgxzt7m.mjs +0 -4
- package/dist/chunks/cli-1.1.24-hmzgqyyq.mjs +0 -24
- package/dist/chunks/cli-1.1.24-hty94kzp.mjs +0 -2
- package/dist/chunks/cli-1.1.24-jetxd54w.mjs +0 -2
- package/dist/chunks/cli-1.1.24-jm1y3v0c.mjs +0 -2
- package/dist/chunks/cli-1.1.24-jm2wjmkx.mjs +0 -3
- package/dist/chunks/cli-1.1.24-jnksvjkj.mjs +0 -3
- package/dist/chunks/cli-1.1.24-jrvf41s6.mjs +0 -2
- package/dist/chunks/cli-1.1.24-k1dhj122.mjs +0 -2
- package/dist/chunks/cli-1.1.24-k2cach52.mjs +0 -2
- package/dist/chunks/cli-1.1.24-kfzxwy9d.mjs +0 -2
- package/dist/chunks/cli-1.1.24-m6pr9whf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-m70g3zj4.mjs +0 -21
- package/dist/chunks/cli-1.1.24-m8jww9mz.mjs +0 -2
- package/dist/chunks/cli-1.1.24-mgndv90z.mjs +0 -24
- package/dist/chunks/cli-1.1.24-mwva78xt.mjs +0 -2
- package/dist/chunks/cli-1.1.24-myqjptqw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-n18majmw.mjs +0 -8
- package/dist/chunks/cli-1.1.24-n5vwxtj6.mjs +0 -3
- package/dist/chunks/cli-1.1.24-n7r6kv9g.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ne1bt8jx.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nhr9sjgz.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nhz403dg.mjs +0 -3
- package/dist/chunks/cli-1.1.24-nrfpn2q3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nsggarp4.mjs +0 -2
- package/dist/chunks/cli-1.1.24-nv8d7bav.mjs +0 -2
- package/dist/chunks/cli-1.1.24-p2a545ga.mjs +0 -3
- package/dist/chunks/cli-1.1.24-p71y388t.mjs +0 -2
- package/dist/chunks/cli-1.1.24-pe23qamd.mjs +0 -206
- package/dist/chunks/cli-1.1.24-pgkt8y4z.mjs +0 -6
- package/dist/chunks/cli-1.1.24-pqkmk87x.mjs +0 -2
- package/dist/chunks/cli-1.1.24-pqrtr5rf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-prprq6xe.mjs +0 -2
- package/dist/chunks/cli-1.1.24-pt8vrhq3.mjs +0 -6
- package/dist/chunks/cli-1.1.24-q9qfp0ng.mjs +0 -2
- package/dist/chunks/cli-1.1.24-qn608pma.mjs +0 -2
- package/dist/chunks/cli-1.1.24-s0dcztj8.mjs +0 -2
- package/dist/chunks/cli-1.1.24-s241cgaj.mjs +0 -3
- package/dist/chunks/cli-1.1.24-sa4ycqpk.mjs +0 -2
- package/dist/chunks/cli-1.1.24-sdsp22c3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-skqekybx.mjs +0 -2
- package/dist/chunks/cli-1.1.24-sm5pzkcb.mjs +0 -17
- package/dist/chunks/cli-1.1.24-sv60tfze.mjs +0 -2
- package/dist/chunks/cli-1.1.24-swr2gr8m.mjs +0 -9
- package/dist/chunks/cli-1.1.24-t811r68k.mjs +0 -2
- package/dist/chunks/cli-1.1.24-tbzjj2e8.mjs +0 -24
- package/dist/chunks/cli-1.1.24-tpafhmrw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-tvhfdndb.mjs +0 -15
- package/dist/chunks/cli-1.1.24-tyxhhrt7.mjs +0 -2
- package/dist/chunks/cli-1.1.24-v322mn8d.mjs +0 -6
- package/dist/chunks/cli-1.1.24-vandpwa9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-vf59rwy3.mjs +0 -60
- package/dist/chunks/cli-1.1.24-vg493phv.mjs +0 -2
- package/dist/chunks/cli-1.1.24-vmd44jz3.mjs +0 -2
- package/dist/chunks/cli-1.1.24-vprvwjs1.mjs +0 -3
- package/dist/chunks/cli-1.1.24-vvnnh8xs.mjs +0 -17
- package/dist/chunks/cli-1.1.24-vz1y844w.mjs +0 -2
- package/dist/chunks/cli-1.1.24-w4yh1rwm.mjs +0 -2
- package/dist/chunks/cli-1.1.24-w828y1cd.mjs +0 -2
- package/dist/chunks/cli-1.1.24-wf4vw9fr.mjs +0 -4
- package/dist/chunks/cli-1.1.24-wjy2ctev.mjs +0 -3
- package/dist/chunks/cli-1.1.24-wmzctccq.mjs +0 -4
- package/dist/chunks/cli-1.1.24-wr42vnqf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-wshydefj.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ww5zft49.mjs +0 -20
- package/dist/chunks/cli-1.1.24-wx6qsawc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-wygwske9.mjs +0 -2
- package/dist/chunks/cli-1.1.24-x1wayra7.mjs +0 -7
- package/dist/chunks/cli-1.1.24-x77tmaf2.mjs +0 -2
- package/dist/chunks/cli-1.1.24-x7j3vdgw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-x8cd4qb4.mjs +0 -2
- package/dist/chunks/cli-1.1.24-xcmmqx6c.mjs +0 -1
- package/dist/chunks/cli-1.1.24-xdhm369m.mjs +0 -15
- package/dist/chunks/cli-1.1.24-xmtasnec.mjs +0 -2
- package/dist/chunks/cli-1.1.24-xyb7vhk3.mjs +0 -3
- package/dist/chunks/cli-1.1.24-y0p1ztq1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-y4gprept.mjs +0 -2
- package/dist/chunks/cli-1.1.24-y4pvshdf.mjs +0 -2
- package/dist/chunks/cli-1.1.24-y55w7gqd.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yadxqz7j.mjs +0 -4
- package/dist/chunks/cli-1.1.24-yay2cxmw.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yh801h84.mjs +0 -2
- package/dist/chunks/cli-1.1.24-ymqwnn04.mjs +0 -5
- package/dist/chunks/cli-1.1.24-yp46sbt0.mjs +0 -6
- package/dist/chunks/cli-1.1.24-ys3jea4v.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yz19vhn7.mjs +0 -45
- package/dist/chunks/cli-1.1.24-yz5bzn1k.mjs +0 -2
- package/dist/chunks/cli-1.1.24-yzfk4k7c.mjs +0 -2
- package/dist/chunks/cli-1.1.24-z2byr0bb.mjs +0 -3
- package/dist/chunks/cli-1.1.24-z5t424fy.mjs +0 -15
- package/dist/chunks/cli-1.1.24-zc49jxpp.mjs +0 -24
- package/dist/chunks/cli-1.1.24-zey4mks2.mjs +0 -6
- package/dist/chunks/cli-1.1.24-zjc9nfba.mjs +0 -66
- package/dist/chunks/cli-1.1.24-znb9n8xc.mjs +0 -2
- package/dist/chunks/cli-1.1.24-zqsb8jf1.mjs +0 -2
- package/dist/chunks/cli-1.1.24-zzy8r310.mjs +0 -3
- package/dist/chunks/client-1.1.24-04048dd4.mjs +0 -1
- package/dist/chunks/color-1.1.24-c0gzcmgh.mjs +0 -1
- package/dist/chunks/compact-1.1.24-191dct4e.mjs +0 -3
- package/dist/chunks/config-1.1.24-0gw6ge6e.mjs +0 -1
- package/dist/chunks/config-1.1.24-ndcrhj7n.mjs +0 -1
- package/dist/chunks/constants-1.1.24-tbk9zrcf.mjs +0 -1
- package/dist/chunks/context-1.1.24-m2nks3pf.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.24-fpjb3z40.mjs +0 -1
- package/dist/chunks/conversation-1.1.24-1fhfrjjb.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.24-7gr1sjfz.mjs +0 -1
- package/dist/chunks/copy-1.1.24-cp9c2gz7.mjs +0 -9
- package/dist/chunks/cost-1.1.24-n2977gae.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.24-mnvhz35z.mjs +0 -1
- package/dist/chunks/createSession-1.1.24-jmw71620.mjs +0 -1
- package/dist/chunks/debug-1.1.24-fbfn7n50.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.24-2sn9h6p5.mjs +0 -1534
- package/dist/chunks/desktop-1.1.24-scm6c1n6.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.24-pegwcpzf.mjs +0 -1
- package/dist/chunks/detection-1.1.24-0k1tkgs4.mjs +0 -1
- package/dist/chunks/diff-1.1.24-0jvr5nbq.mjs +0 -1
- package/dist/chunks/doctor-1.1.24-ek4hj124.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.24-rkkj1qaa.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.24-0jq2yety.mjs +0 -1
- package/dist/chunks/effort-1.1.24-pj04350n.mjs +0 -13
- package/dist/chunks/engine-1.1.24-d8ghs7v2.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.24-0sz4c3p3.mjs +0 -1
- package/dist/chunks/envUtils-1.1.24-x72tjbvh.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.24-kdf8c1wj.mjs +0 -1
- package/dist/chunks/environments-1.1.24-4f4e4q0j.mjs +0 -1
- package/dist/chunks/errors-1.1.24-e9mdyym2.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.24-k8gqpgm6.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.24-nf306f2h.mjs +0 -1
- package/dist/chunks/exit-1.1.24-dvx9hpkk.mjs +0 -1
- package/dist/chunks/explorer-1.1.24-jwyvpptp.mjs +0 -1
- package/dist/chunks/export-1.1.24-wjaf1p5p.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.24-29n7nt5d.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.24-y28scbnf.mjs +0 -1
- package/dist/chunks/fast-1.1.24-b97zvms4.mjs +0 -1
- package/dist/chunks/feedback-1.1.24-6epgxnyy.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.24-z3cng876.mjs +0 -1
- package/dist/chunks/git-1.1.24-g44mqdr1.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.24-xys028w7.mjs +0 -1
- package/dist/chunks/goal-1.1.24-g5h8tqdv.mjs +0 -4
- package/dist/chunks/growthbook-1.1.24-sp4nsdp2.mjs +0 -1
- package/dist/chunks/headless-1.1.24-xjc45ts1.mjs +0 -2
- package/dist/chunks/heapdump-1.1.24-k9vdtkem.mjs +0 -6
- package/dist/chunks/help-1.1.24-4pb60ggc.mjs +0 -1
- package/dist/chunks/hookChains-1.1.24-fgx8qw71.mjs +0 -3
- package/dist/chunks/hooks-1.1.24-gy3rfx2s.mjs +0 -79
- package/dist/chunks/hooks-1.1.24-qvh9gx4b.mjs +0 -1
- package/dist/chunks/ide-1.1.24-ecb37fdx.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.24-3bf65p63.mjs +0 -1
- package/dist/chunks/import-1.1.24-bpnr0awz.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.24-h4st0drb.mjs +0 -1
- package/dist/chunks/index-1.1.24-1qfnahpf.mjs +0 -5
- package/dist/chunks/index-1.1.24-2c5tqanw.mjs +0 -1
- package/dist/chunks/index-1.1.24-3pkassck.mjs +0 -1
- package/dist/chunks/index-1.1.24-4gnpx2tt.mjs +0 -30
- package/dist/chunks/index-1.1.24-5kf8n97z.mjs +0 -1
- package/dist/chunks/index-1.1.24-7nn95an1.mjs +0 -2
- package/dist/chunks/index-1.1.24-8005ram7.mjs +0 -1
- package/dist/chunks/index-1.1.24-80m0ydka.mjs +0 -2
- package/dist/chunks/index-1.1.24-931bwhyw.mjs +0 -9
- package/dist/chunks/index-1.1.24-a3t3jmq6.mjs +0 -1
- package/dist/chunks/index-1.1.24-bvewx84q.mjs +0 -1
- package/dist/chunks/index-1.1.24-hvxes6d7.mjs +0 -1
- package/dist/chunks/index-1.1.24-j4v31wtc.mjs +0 -1
- package/dist/chunks/index-1.1.24-jt13vzsz.mjs +0 -1
- package/dist/chunks/index-1.1.24-k9m56w47.mjs +0 -1
- package/dist/chunks/index-1.1.24-ksthp5f5.mjs +0 -1
- package/dist/chunks/index-1.1.24-p0dh0w23.mjs +0 -1
- package/dist/chunks/index-1.1.24-qzv3z9d8.mjs +0 -1
- package/dist/chunks/index-1.1.24-ry33qapt.mjs +0 -23
- package/dist/chunks/index-1.1.24-wrwbr5my.mjs +0 -1
- package/dist/chunks/index-1.1.24-x476ts8e.mjs +0 -1
- package/dist/chunks/index-1.1.24-yz1p3g13.mjs +0 -1
- package/dist/chunks/index-1.1.24-zpd6455g.mjs +0 -9
- package/dist/chunks/init-1.1.24-t8nj0b2a.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.24-0rrs2446.mjs +0 -1
- package/dist/chunks/ink-1.1.24-n7wnynts.mjs +0 -1
- package/dist/chunks/insights-1.1.24-brh3tfms.mjs +0 -870
- package/dist/chunks/install-1.1.24-bnszrzxv.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.24-5rgjevwd.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.24-yh7a017r.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.24-v7zemczf.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.24-b7xw2wrx.mjs +0 -1
- package/dist/chunks/keybindings-1.1.24-31h2q3ex.mjs +0 -2
- package/dist/chunks/knowledge-1.1.24-8nq0v4s7.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.24-a6axfzxn.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.24-k6dhs78a.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.24-kv2hvbav.mjs +0 -1
- package/dist/chunks/log-1.1.24-gv1f1hxb.mjs +0 -1
- package/dist/chunks/main-1.1.24-e2ntxz1f.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.24-rfa63jew.mjs +0 -1
- package/dist/chunks/mcp-1.1.24-3a5demcw.mjs +0 -4
- package/dist/chunks/mcp-1.1.24-5patw3xq.mjs +0 -17
- package/dist/chunks/mcp-1.1.24-jcnn5rdj.mjs +0 -1
- package/dist/chunks/mcpb-1.1.24-b7zrasgt.mjs +0 -1
- package/dist/chunks/memory-1.1.24-dvn88stz.mjs +0 -72
- package/dist/chunks/model-1.1.24-jqp66a34.mjs +0 -1
- package/dist/chunks/model-1.1.24-pxgrw9n0.mjs +0 -2
- package/dist/chunks/node-1.1.24-9kx9ct5c.mjs +0 -15
- package/dist/chunks/oauth-1.1.24-5v87662s.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.24-29jaq53v.mjs +0 -14
- package/dist/chunks/output-style-1.1.24-vt1w07zs.mjs +0 -1
- package/dist/chunks/package-SHMK2LJE-1.1.24-bz44pm49.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.24-e5ppdssa.mjs +0 -1
- package/dist/chunks/parser-1.1.24-r4f154gw.mjs +0 -1
- package/dist/chunks/passes-1.1.24-znx7myf5.mjs +0 -1
- package/dist/chunks/permissions-1.1.24-djrvvvz7.mjs +0 -3
- package/dist/chunks/permissions-1.1.24-v5xhwsne.mjs +0 -1
- package/dist/chunks/plan-1.1.24-vhaqffge.mjs +0 -1
- package/dist/chunks/plist-1.1.24-a5racx0y.mjs +0 -1
- package/dist/chunks/plugin-1.1.24-a97brm8r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.24-md4nbg2a.mjs +0 -1
- package/dist/chunks/plugins-1.1.24-mza746hr.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.24-n8ztas45.mjs +0 -2
- package/dist/chunks/print-1.1.24-3xs40xg6.mjs +0 -57
- package/dist/chunks/process-1.1.24-7znk7nvb.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.24-454rvsw5.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.24-8k5m3gk9.mjs +0 -9
- package/dist/chunks/prompt-1.1.24-bk6dfj1e.mjs +0 -1
- package/dist/chunks/prompt-1.1.24-vvcbfmdp.mjs +0 -1
- package/dist/chunks/prompts-1.1.24-b6ebw0vv.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.24-n1vv96tn.mjs +0 -13
- package/dist/chunks/provider-1.1.24-t07b1cf0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.24-pnze1322.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.24-6atsq725.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.24-awx453hm.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.24-es1k3f52.mjs +0 -26
- package/dist/chunks/registry-1.1.24-f8gdvha6.mjs +0 -1
- package/dist/chunks/release-notes-1.1.24-wc0ns08n.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.24-n65zs7m1.mjs +0 -2
- package/dist/chunks/remote-env-1.1.24-edv7k83f.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.24-skqbqsp7.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.24-y4nvb00c.mjs +0 -1
- package/dist/chunks/rename-1.1.24-5h35tqzj.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.24-y59d2vsb.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.24-3fh8y1wc.mjs +0 -1
- package/dist/chunks/resume-1.1.24-mbmqkywe.mjs +0 -2
- package/dist/chunks/rewind-1.1.24-7d2yrzwh.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.24-32jzw8gf.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.24-tr01e02n.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.24-n544gb1b.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.24-3jt7dn2v.mjs +0 -1
- package/dist/chunks/session-1.1.24-5gj3f8bf.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.24-qdssyy70.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.24-j2d90dxq.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.24-jk2064js.mjs +0 -1
- package/dist/chunks/settings-1.1.24-xb5xvwd4.mjs +0 -1
- package/dist/chunks/setup-1.1.24-wdr88mhm.mjs +0 -12
- package/dist/chunks/sinks-1.1.24-zbp12cks.mjs +0 -1
- package/dist/chunks/skills-1.1.24-fs0fj8pg.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.24-sm8szq0q.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.24-mc3ted4v.mjs +0 -1
- package/dist/chunks/state-1.1.24-5c4debwf.mjs +0 -1
- package/dist/chunks/stats-1.1.24-0bt4qf8n.mjs +0 -6
- package/dist/chunks/status-1.1.24-abhqj5mw.mjs +0 -1
- package/dist/chunks/stickers-1.1.24-zh8qjsyy.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.24-gp4ayqrk.mjs +0 -1
- package/dist/chunks/tasks-1.1.24-1cxy0tgz.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.24-5bb9mm83.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.24-nb3dp4e3.mjs +0 -1
- package/dist/chunks/teleport-1.1.24-c7prtcv6.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.24-sfx4nye5.mjs +0 -1
- package/dist/chunks/theme-1.1.24-x6419d8v.mjs +0 -1
- package/dist/chunks/thinkback-1.1.24-f315phwt.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.24-79eppsfc.mjs +0 -1
- package/dist/chunks/toolPool-1.1.24-8yd82av5.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.24-jmqktrq1.mjs +0 -1
- package/dist/chunks/tools-1.1.24-5fm8t3kw.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.24-w4sh0m0v.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.24-h4ea8fek.mjs +0 -69
- package/dist/chunks/types-1.1.24-5xkkfxsk.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.24-aqb6hpdg.mjs +0 -4
- package/dist/chunks/update-1.1.24-der2v1xy.mjs +0 -72
- package/dist/chunks/upgrade-1.1.24-grzzzksq.mjs +0 -1
- package/dist/chunks/upload-1.1.24-tjetbg6e.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.24-19aj3b1w.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.24-xm0gtc5y.mjs +0 -1
- package/dist/chunks/usage-1.1.24-69x06f48.mjs +0 -1
- package/dist/chunks/util-1.1.24-1ea4gbm5.mjs +0 -1
- package/dist/chunks/utils-1.1.24-sr136rh9.mjs +0 -1
- package/dist/chunks/vim-1.1.24-e90y2xp6.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.24-wfk9enxd.mjs +0 -13
- package/dist/chunks/watcher-1.1.24-tcqfrpkm.mjs +0 -1
- package/dist/chunks/wiki-1.1.24-aevd508s.mjs +0 -132
- package/dist/chunks/workflows-1.1.24-4wkmgpjr.mjs +0 -1
- package/dist/chunks/worktree-1.1.24-2vf4mmjm.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.24-s2v499tv.mjs +0 -1
- package/dist/chunks/wrapper-1.1.24-arr1pkz0.mjs +0 -7
- /package/dist/chunks/{cli-1.1.24-k5cs55nk.mjs → cli-1.1.25-cpt1h3j8.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-a33s2dcr.mjs → cli-1.1.25-ctfh8503.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-vwmxvbv9.mjs → cli-1.1.25-hdgk2770.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-x19qr19f.mjs → cli-1.1.25-k9qcf2mf.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-qt5m4501.mjs → cli-1.1.25-r2a8d0xg.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.24-1mx8wjec.mjs → cli-1.1.25-s9sv7xk9.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{ea as yJ,fa as xz,ga as rz,ha as cz,ia as iz,ja as kJ}from"./cli-1.1.25-hjwttff4.mjs";import{la as Tz}from"./cli-1.1.25-348yqf3d.mjs";import{va as EJ,wa as TJ,xa as xJ,ya as MJ,za as wJ}from"./cli-1.1.25-df9x7s0j.mjs";import{Ba as fJ}from"./cli-1.1.25-am98khq7.mjs";import{ce as LJ,ee as oz,ge as RK}from"./cli-1.1.25-14jerc0x.mjs";import{Le as mz,Ne as UJ,Re as OJ}from"./cli-1.1.25-639mzh6g.mjs";import{nf as jJ,of as cJ}from"./cli-1.1.25-gba9rrnp.mjs";import{Zn as AJ,_n as PK,bI as JJ,cI as Cz,dI as KJ,eI as ZJ,gI as $J,hI as YJ,iI as XJ,jI as QJ,kI as WJ,nm as DJ,om as vz,qk as CJ,rk as FK,sm as NK}from"./cli-1.1.25-q88hb4qg.mjs";import"./cli-1.1.25-nxvqf4sh.mjs";import"./cli-1.1.25-ybe971qx.mjs";import"./cli-1.1.25-bmjvmtgk.mjs";import"./cli-1.1.25-6t9phfap.mjs";import"./cli-1.1.25-gz32rhhs.mjs";import"./cli-1.1.25-7d3fdbq5.mjs";import{RV as RJ,XV as _K}from"./cli-1.1.25-2gjxmbsj.mjs";import"./cli-1.1.25-tj3kqgbv.mjs";import"./cli-1.1.25-ba3yrxg9.mjs";import"./cli-1.1.25-csgmna38.mjs";import{cX as az,gX as CK}from"./cli-1.1.25-a0zejb5c.mjs";import"./cli-1.1.25-1sf51thg.mjs";import"./cli-1.1.25-pxq7zyjb.mjs";import"./cli-1.1.25-anhj1nnt.mjs";import"./cli-1.1.25-np8863pb.mjs";import"./cli-1.1.25-qp9j9ma3.mjs";import"./cli-1.1.25-hpfkk20r.mjs";import"./cli-1.1.25-vc7150xz.mjs";import"./cli-1.1.25-7qert3s4.mjs";import"./cli-1.1.25-12b1rzfj.mjs";import"./cli-1.1.25-9grz07r4.mjs";import"./cli-1.1.25-2gtabky3.mjs";import"./cli-1.1.25-t6rdfhp9.mjs";import"./cli-1.1.25-pcamey8m.mjs";import{W2 as pz,Z2 as BK}from"./cli-1.1.25-3hnrfkxc.mjs";import"./cli-1.1.25-sz3dey5y.mjs";import"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-4cgvw7e3.mjs";import"./cli-1.1.25-zqqpy89q.mjs";import"./cli-1.1.25-zk74mh7n.mjs";import"./cli-1.1.25-x4ww7pe7.mjs";import"./cli-1.1.25-x26vkphq.mjs";import"./cli-1.1.25-fr1nw6bz.mjs";import"./cli-1.1.25-6bb29bw7.mjs";import"./cli-1.1.25-dc92c5gy.mjs";import"./cli-1.1.25-rkh9pz84.mjs";import"./cli-1.1.25-n10jmzvk.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import{l8 as i,m8 as OK}from"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import{N9 as V,O9 as gJ}from"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-82ht7pxh.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import"./cli-1.1.25-jsn4we2f.mjs";import{Hca as fz,Hha as qK,Ica as ez,Jca as zJ,Kca as pJ,fca as PJ,gca as HK,k$ as Wz,m$ as GK,zha as Ez}from"./cli-1.1.25-s54emewd.mjs";import{Mha as sz,Nha as uJ,Pha as Rz,Wha as qz,cia as jK}from"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import{Jia as BJ,Ria as VK}from"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import{Cka as zz,Dka as _J,Fka as XK}from"./cli-1.1.25-vkg5fb0z.mjs";import{Fla as q,Ila as tz,ila as qJ,jla as uz,nla as aJ}from"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import{dma as g,kma as WK}from"./cli-1.1.25-6r6r7rep.mjs";import{qma as NJ,yma as QK}from"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import{Zta as I}from"./cli-1.1.25-7qxwpfwh.mjs";PK();FK();_K();VK();XK();HK();tz();GK();QK();WK();jK();qK();OK();NK();import{randomUUID as Sz}from"crypto";import{hostname as bJ,tmpdir as DK}from"os";import{basename as AK,join as UK,resolve as lz}from"path";WJ();gJ();cJ();pJ();uJ();tz();WJ();var lJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function dJ(z){return(await jJ(z,lJ)).split(`
|
|
2
|
+
`).filter((K)=>K.length>0)}function VJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,_=[],M=!1,y=null,P=0,x=0,N=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let G=process.stdout.columns||80,w=0;for(let Vz of $.split(`
|
|
3
|
+
`)){if(Vz.length===0){w++;continue}let _z=sz(Vz);w+=Math.max(1,Math.ceil(_z/G))}if($.endsWith(`
|
|
4
|
+
`))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){dJ($).then((G)=>{_=G,p()}).catch((G)=>{q(`QR code generation failed: ${G}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);m(`${V.yellow($)} ${V.yellow("Connecting")}${G}
|
|
5
|
+
`)}function jz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of _)m(`${V.dim(Jz)}
|
|
6
|
+
`);let G=ez,w=$?V.green:V.cyan,_z=($?V.green:V.cyan)(Z),Oz="";if(R)Oz+=V.dim(" · ")+V.dim(R);if(B&&k!=="worktree")Oz+=V.dim(" · ")+V.dim(B);if(m(`${w(G)} ${_z}${Oz}
|
|
7
|
+
`),N>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${V.dim(`Capacity: ${x}/${N} · ${Jz}`)}
|
|
8
|
+
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):V.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,j=Fz&&Fz.type!=="result"&&Fz.type!=="error"?V.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${j}
|
|
9
|
+
`)}}if(N===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${V.dim(Jz)}
|
|
10
|
+
`)}if(N===1&&!$&&y&&Date.now()-P<JJ)m(` ${V.dim(Rz(y,60))}
|
|
11
|
+
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
+
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?V.dim.italic("space to hide QR code"):V.dim.italic("space to show QR code"),r=f?V.dim.italic(" · w to toggle spawn mode"):"";m(`${V.dim(Jz)}
|
|
13
|
+
`),m(`${Kz}${r}
|
|
14
|
+
`)}}return{printBanner($,G){if(F=$.sessionIngressUrl,L=G,U=KJ(G,F),n(U),K)J(V.dim("Remote Control")+` v99.0.0
|
|
15
|
+
`);if(K){if($.spawnMode!=="single-session")J(V.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
+
`),J(V.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
+
`);J(V.dim("Environment ID: ")+`${G}
|
|
18
|
+
`)}if($.sandbox)J(V.dim("Sandbox: ")+`${V.green("Enabled")}
|
|
19
|
+
`);J(`
|
|
20
|
+
`),jz()},logSessionStart($,G){if(K){let w=Rz(G,80);$z(V.dim(`[${Cz()}]`)+` Session started: ${V.white(`"${w}"`)} (${V.dim($)})
|
|
21
|
+
`)}},logSessionComplete($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.green("completed")} (${qz(G)}) ${V.dim($)}
|
|
22
|
+
`)},logSessionFailed($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.red("failed")}: ${G} ${V.dim($)}
|
|
23
|
+
`)},logStatus($){$z(V.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
+
`)},logVerbose($){if(K)$z(V.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
+
`)},logError($){$z(V.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
+
`)},logReconnected($){$z(V.dim(`[${Cz()}]`)+` ${V.green("Reconnected")} after ${qz($)}
|
|
27
|
+
`)},setRepoInfo($,G){R=$,B=G},updateIdleStatus(){t(),O="idle",Z="Ready",y=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",y=null,P=0,N<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,G){if(t(),a(),O="reconnecting",M)for(let Vz of _)m(`${V.dim(Vz)}
|
|
28
|
+
`);let w=fz[S%fz.length];S++,m(`${V.yellow(w)} ${V.yellow("Reconnecting")} ${V.dim("·")} ${V.dim(`retrying in ${$}`)} ${V.dim("·")} ${V.dim(`disconnected ${G}`)}
|
|
29
|
+
`)},updateFailedStatus($){t(),a(),O="failed";let G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);if(m(`${V.red(zJ)} ${V.red("Remote Control Failed")}${G}
|
|
30
|
+
`),m(`${V.dim(XJ)}
|
|
31
|
+
`),$)m(`${V.red($)}
|
|
32
|
+
`)},updateSessionStatus($,G,w,Vz){if(w.type==="tool_start")y=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,G,w){if(x===$&&N===G&&k===w)return;x=$,N=G,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,G){b.set($,{url:G})},updateSessionActivity($,G){let w=b.get($);if(!w)return;w.activity=G},setSessionTitle($,G){let w=b.get($);if(!w)return;if(w.title=G,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",Z=Rz(G,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();BK();aJ();OJ();import{spawn as oJ}from"child_process";import{createWriteStream as rJ}from"fs";import{tmpdir as iJ}from"os";import{dirname as nJ,join as GJ}from"path";import{createInterface as HJ}from"readline";var tJ=10,sJ=10,eJ=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function zK(z,J){let K={};for(let Y of Object.keys(z))if(eJ.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var JK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function KK(z,J){let K=JK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function ZK(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",_=L.input??{},M=KK(A,_);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${YK(_)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function $K(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function YK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${Y}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=GJ(iJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=GJ(nJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=rJ(R,{flags:"a"}),Z.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=zK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=oJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,_=[],M=!1,y=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
+
`);if(_.length>=sJ)_.shift();_.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
|
|
34
|
+
`);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
|
|
35
|
+
`);let k=ZK(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=tJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!y&&J.onFirstUserMessage){let S=$K(d);if(S)y=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((N)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),N("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),N("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),N("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:_,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(N){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(N)}`),F.stdin.write(N)},updateAccessToken(N){x.accessToken=N,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
|
|
36
|
+
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}CK();RK();var LK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,IJ=32;async function vJ(){return BJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function hJ(){if(PJ()||!process.argv[1])return[];return[process.argv[1]]}function EK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return Ez(Error(`Session spawn failed: ${O}`)),O}}async function SJ(z,J,K,Y,O,Z,R,B=LK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,_=new Map,M=new Map,y=new Map,P=new Map,x=new Map,N=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=kJ(A);async function Xz(){let Q=!1,j=!1,E=[];for(let[H]of _){let D=y.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)E.push(H);else j=!0}}for(let H of E){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(j)return"fatal";if(E.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?fJ({getAccessToken:F,onRefresh:(Q,j)=>{let E=_.get(Q);if(!E)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else E.updateAccessToken(j)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let jz=0,t=0,p=null,$=null,G=null,w=null,Vz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function _z(){Z.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[u,X]of _){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(_.size===0){Z.updateIdleStatus();return}let[Q,j]=[..._.entries()].pop(),E=M.get(Q);if(!E)return;let H=j.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-E),v=j.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),_z(),w=setInterval(_z,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,j,E){return(H)=>{let D=y.get(Q);_.delete(Q),M.delete(Q),y.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=N.get(Q);if(u)clearTimeout(u),N.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-j;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=E.lastStderr.length>0?E.lastStderr.join(`
|
|
37
|
+
`):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),Ez(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let j=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("",{disconnected_ms:X})}if(jz=0,t=0,p=null,$=null,G=null,!j){if(_.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("",{active_sessions:_.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&_.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let Nz=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){Nz.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,Nz.signal),Nz.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("",{reason:Zz,heartbeat_cycles:Yz,active_sessions:_.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=_.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=_.size>=z.maxSessions;if(f.has(j.id)){if(q(`[bridge:work] Skipping already-completed workId=${j.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=EJ(j.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${j.id}: ${T}`),zz("",{}),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${j.id}`);try{await Y.acknowledgeWork(J,j.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${j.id}: ${g(X)}`)}},u=j.data.type;switch(j.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=j.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=_.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),y.set(X,j.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${j.id}`),await v();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${j.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||NJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=MJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await wJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),Ez(Error(`registerWorker failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=TJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:Nz}=z,Uz=0;if(l==="worktree"&&(U===void 0||!xJ(X,U))){let W=Date.now();try{let C=await DJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),Nz=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),Ez(Error(`Worktree creation failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=EK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=SK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.25-abgdr9mn.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},Nz);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("",{active_sessions:_.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),_.set(X,Dz),y.set(X,j.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let yz=Iz(X),Gz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)Gz=`${z.debugFile.slice(0,W)}-${yz}${z.debugFile.slice(W)}`;else Gz=`${z.debugFile}-${yz}`}else if(z.verbose)Gz=UK(DK(),"claude",`bridge-session-${yz}.log`);if(Gz)Z.logVerbose(`Debug log: ${Gz}`);Z.addSession(e,AJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),mK(e,z.apiBaseUrl).then((W)=>{if(W&&_.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??LJ;if(Bz>0){let W=setTimeout(wK,Bz,X,Bz,Z,b,Dz);N.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(j){if(A.aborted)break;if(j instanceof xz){if(Vz=!0,cz(j.errorType))Z.logStatus(j.message);else if(iz(j))q(`[bridge:work] Suppressed 403 error: ${j.message}`);else Z.logError(j.message),Ez(j);zz("",{status:j.status,error_type:j.errorType}),Wz(cz(j.errorType)?"info":"error","bridge_fatal_error",{status:j.status,error_type:j.errorType});break}let E=UJ(j);if(xK(j)||MK(j)){let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Vz=!0;break}$=null,t=0,jz=jz?Math.min(jz*2,B.connCapMs):B.connInitialMs;let v=dz(jz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Vz=!0;break}p=null,jz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("",{active_sessions:_.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let r=new Set(_.keys());if(U)r.add(U);let Mz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),Z.logStatus(`Shutting down ${_.size} active session(s)…`);let Q=new Map(y);for(let[E,H]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${E}`),H.kill();let j=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((E)=>E.done)),i(B.shutdownGraceMs??30000,j.signal)]),j.abort();for(let[E,H]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${E}`),H.forceKill();for(let E of N.values())clearTimeout(E);if(N.clear(),a?.cancelAll(),k.size>0){let E=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${E.length} worktree(s)`),await Promise.allSettled(E.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([E,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${E}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((j)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(j)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.25-x3jjj2ek.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var TK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function xK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&TK.has(z.code))return!0;return!1}function MK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function wK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var fK=["session","same-dir","worktree"];function kK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${fK.join(", ")} (got: ${z??"<missing>"})`}function bK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function IK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,_=!1;for(let y=0;y<z.length;y++){let P=z[y];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&y+1<z.length)Y=lz(z[++y]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&y+1<z.length)O=parseInt(z[++y],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&y+1<z.length)Z=z[++y];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&y+1<z.length)R=z[++y];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++y],N=kK(x);if(N==="single-session"||N==="same-dir"||N==="worktree")U=N;else return M(N)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++y],N=bK(x);if(typeof N==="number")F=N;else return M(N)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
|
|
38
|
+
Run 'claudin remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||_)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&_)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B};function M(y){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B,error:y}}}async function vK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.25-3yb8c211.mjs"),J=z.join(", "),K=await vJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
|
|
39
|
+
(default: same-dir)
|
|
40
|
+
--capacity <N> Max concurrent sessions in worktree or
|
|
41
|
+
same-dir mode (default: ${IJ})
|
|
42
|
+
--[no-]create-session-in-dir Pre-create a session in the current
|
|
43
|
+
directory; in worktree mode this session
|
|
44
|
+
stays in cwd while on-demand sessions get
|
|
45
|
+
isolated worktrees (default: on)
|
|
46
|
+
`:"",R=`
|
|
47
|
+
Remote Control - Connect your local environment to claude.ai/code
|
|
48
|
+
|
|
49
|
+
USAGE
|
|
50
|
+
claudin remote-control [options]
|
|
51
|
+
OPTIONS
|
|
52
|
+
--name <name> Name for the session (shown in claude.ai/code)
|
|
53
|
+
--permission-mode <mode> Permission mode for spawned sessions
|
|
54
|
+
(${J})
|
|
55
|
+
--debug-file <path> Write debug logs to file
|
|
56
|
+
-v, --verbose Enable verbose output
|
|
57
|
+
-h, --help Show this help
|
|
58
|
+
${Y}
|
|
59
|
+
DESCRIPTION
|
|
60
|
+
Remote Control allows you to control sessions on your local device from
|
|
61
|
+
claude.ai/code (https://claude.ai/code). Run this command in the
|
|
62
|
+
directory you want to work in, then connect from the Claude app or web.
|
|
63
|
+
${K?`
|
|
64
|
+
Remote Control runs as a persistent server that accepts multiple concurrent
|
|
65
|
+
sessions in the current directory. One session is pre-created on start so
|
|
66
|
+
you have somewhere to type immediately. Use --spawn=worktree to isolate
|
|
67
|
+
each on-demand session in its own git worktree, or --spawn=session for
|
|
68
|
+
the classic single-session mode (exits when that session ends). Press 'w'
|
|
69
|
+
during runtime to toggle between same-dir and worktree.
|
|
70
|
+
`:""}
|
|
71
|
+
NOTES
|
|
72
|
+
- You must be logged in with a Claude account that has a subscription
|
|
73
|
+
- Run \`claudin\` first in the directory to accept the workspace trust dialog
|
|
74
|
+
${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
|
|
75
|
+
`:""}`;console.log(R)}var hK=80;function SK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,hK)}async function mK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.25-abgdr9mn.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function fZ(z){let J=IK(z);if(J.help){await vK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_}=J,M=A,y,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.25-3yb8c211.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:N,checkHasTrustDialogAccepted:f}=await import("./config-1.1.25-n6dtcns2.mjs");N();let{initSinks:k}=await import("./sinks-1.1.25-k89ee9jd.mjs");k();let b=await vJ();if(P&&!b)await _J("",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([RJ(),CJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.25-2f0mn1s8.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.25-cd9y34xe.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.25-9h63taqc.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.25-n6dtcns2.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
76
|
+
Remote Control lets you access this CLI session from the web (claude.ai/code)
|
|
77
|
+
or the Claude app, so you can pick up where you left off on any device.
|
|
78
|
+
|
|
79
|
+
You can disconnect remote access anytime by running /remote-control again.
|
|
80
|
+
`);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),jz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let G=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Vz,findGitRoot:_z}=await import("./git-1.1.25-r40xnnqg.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.25-n6f1dkc7.mjs"),Qz=Oz()||_z(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
81
|
+
Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
|
|
82
|
+
|
|
83
|
+
Spawn mode for this project:
|
|
84
|
+
`+` [1] same-dir — sessions share the current directory (default)
|
|
85
|
+
`+` [2] worktree — each session gets an isolated git worktree
|
|
86
|
+
|
|
87
|
+
`+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
|
|
88
|
+
`);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??IJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.25-x3jjj2ek.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),j=await Vz(),E=bJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.25-cd9y34xe.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:E,branch:Q,gitRepoUrl:j,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:G,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${j} machine=${E}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${G}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=VJ({verbose:K}),{parseGitHubRepository:Nz}=await import("./detectRepository-1.1.25-a7pfgy12.mjs"),Uz=j?Nz(j):null,e=Uz?Uz.split("/").pop():AK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},yz=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",yz);let Gz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.25-abgdr9mn.mjs");try{if(Gz=await W({environmentId:T,title:B,events:[],gitRepoUrl:j,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(Gz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.25-x3jjj2ek.mjs"),C={sessionId:Gz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await SJ(X,T,c,v,Zz,l,Az.signal,void 0,Gz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",yz),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function kZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.25-2f0mn1s8.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.25-n6dtcns2.mjs");R();let{initSinks:U}=await import("./sinks-1.1.25-k89ee9jd.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.25-9h63taqc.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:_,getRemoteUrl:M,findGitRoot:y}=await import("./git-1.1.25-r40xnnqg.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.25-n6f1dkc7.mjs");if(z.spawnMode==="worktree"){if(!(P()||y(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await _(),N=await M(),f=bJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:N,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=uK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.25-abgdr9mn.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:N,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await SJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function uK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{SJ as runBridgeLoop,kZ as runBridgeHeadless,IK as parseArgs,MK as isServerError,xK as isConnectionError,fZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{DX as S,EX as c}from"./cli-1.1.25-np8863pb.mjs";import{$ia as G,Hja as Y,Jja as O,Kja as N,Lja as _,aja as A,eja as M}from"./cli-1.1.25-peepax79.mjs";import{Fla as C,Ila as k,ila as K,jla as W,nla as R}from"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import{fma as y,kma as j}from"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-7qxwpfwh.mjs";O();k();j();c();_();M();R();import{mkdir as z,readFile as E,stat as T,unlink as m,writeFile as B}from"fs/promises";import{dirname as b,join as f}from"path";var I=50,u=14400000,D=N(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return f(A(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await z(b(v),{recursive:!0}),await B(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await T(x)).mtimeMs,v=await E(x,"utf8")}catch{return null}let Z=D().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>u)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await S(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await m(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,u as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{gi as a,hi as AJ}from"./cli-1.1.25-3qj0n5y0.mjs";import{ii as x,ji as vJ}from"./cli-1.1.25-9z7tyxc4.mjs";import{$E as c,CS as hJ,Dx as u,Ex as IJ,GU as s,HU as t,IU as DJ,Sy as m,Uy as HJ,fF as WJ,fo as g,go as UJ,lR as r,oS as o,sI as $,tI as bJ,wR as TJ}from"./cli-1.1.25-q88hb4qg.mjs";import"./cli-1.1.25-nxvqf4sh.mjs";import"./cli-1.1.25-ybe971qx.mjs";import"./cli-1.1.25-bmjvmtgk.mjs";import"./cli-1.1.25-6t9phfap.mjs";import"./cli-1.1.25-gz32rhhs.mjs";import"./cli-1.1.25-7d3fdbq5.mjs";import"./cli-1.1.25-2gjxmbsj.mjs";import"./cli-1.1.25-tj3kqgbv.mjs";import"./cli-1.1.25-ba3yrxg9.mjs";import"./cli-1.1.25-csgmna38.mjs";import"./cli-1.1.25-a0zejb5c.mjs";import"./cli-1.1.25-1sf51thg.mjs";import"./cli-1.1.25-pxq7zyjb.mjs";import"./cli-1.1.25-anhj1nnt.mjs";import"./cli-1.1.25-np8863pb.mjs";import"./cli-1.1.25-qp9j9ma3.mjs";import"./cli-1.1.25-hpfkk20r.mjs";import"./cli-1.1.25-vc7150xz.mjs";import"./cli-1.1.25-7qert3s4.mjs";import{LY as i,MY as QJ,gZ as l,iZ as kJ}from"./cli-1.1.25-12b1rzfj.mjs";import"./cli-1.1.25-9grz07r4.mjs";import{$Z as GJ,A1 as b,R1 as S,T1 as KJ,d2 as NJ,y1 as W}from"./cli-1.1.25-2gtabky3.mjs";import"./cli-1.1.25-t6rdfhp9.mjs";import"./cli-1.1.25-pcamey8m.mjs";import"./cli-1.1.25-3hnrfkxc.mjs";import"./cli-1.1.25-sz3dey5y.mjs";import"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-4cgvw7e3.mjs";import"./cli-1.1.25-zqqpy89q.mjs";import"./cli-1.1.25-zk74mh7n.mjs";import"./cli-1.1.25-x4ww7pe7.mjs";import"./cli-1.1.25-x26vkphq.mjs";import{G4 as F,H4 as H,I4 as _}from"./cli-1.1.25-fr1nw6bz.mjs";import{J4 as zJ}from"./cli-1.1.25-6bb29bw7.mjs";import"./cli-1.1.25-dc92c5gy.mjs";import"./cli-1.1.25-rkh9pz84.mjs";import"./cli-1.1.25-n10jmzvk.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-82ht7pxh.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import"./cli-1.1.25-jsn4we2f.mjs";import{$fa as FJ,Dfa as C,Kca as ZJ,rca as j,sca as p}from"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import{dma as f,kma as YJ}from"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import{Uta as R,Yta as XJ}from"./cli-1.1.25-7qxwpfwh.mjs";function BJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=l(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=g();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F($,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[j,"/",p," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(qJ(V.messages)),Y=c();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:u(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return C((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();bJ();ZJ();TJ();kJ();DJ();QJ();vJ();NJ();UJ();FJ();YJ();WJ();hJ();AJ();IJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{HY as p,IY as f,JY as a,KY as S}from"./cli-1.1.25-7qert3s4.mjs";import{$fa as C,Dfa as d}from"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import{pka as m,qka as y,rka as b}from"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import{Yta as g}from"./cli-1.1.25-7qxwpfwh.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
+
|
|
3
|
+
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{o3 as h,s3 as zz}from"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import{I7 as e,i7 as m}from"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import{$ga as y,hha as s,kha as v,nha as r}from"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import{Fla as k,Ila as o}from"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import{bsa as a,coa as b}from"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import{Yta as n}from"./cli-1.1.25-7qxwpfwh.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
+
|
|
3
|
+
`)){let w=B.split(`
|
|
4
|
+
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
+
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
+
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
+
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
+
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
+
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
+
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
+
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
+
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
+
${z.error.slice(0,300)}
|
|
14
|
+
|
|
15
|
+
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
+
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
+
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
+
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
+
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
+
|
|
21
|
+
`)});Qz();export{jz as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{E3 as U,H3 as V,I3 as Y,J3 as Z,K3 as A,w3 as P,x3 as Q,y3 as w}from"./cli-1.1.25-4cgvw7e3.mjs";import{Yta as j}from"./cli-1.1.25-7qxwpfwh.mjs";function H(k,D){let I=new Date(k.timestamp).toISOString(),B=`${I.slice(0,10)} ${I.slice(11,19)}`,J=P(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${J}`}function L(k,D){return`${k.padEnd(18)}${Q(D)}`}var F=20,b=async()=>{let k=Z(),D=Y(),I=U();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
+
No API requests yet this session.
|
|
3
|
+
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-F),J=k.length-B.length,q=["Cache stats",""];q.push(L("Current turn:",I)),q.push(L("Session total:",D));let G=V();if(G.events>0)q.push(`${"Server clears:".padEnd(18)}${G.events} event${G.events===1?"":"s"}, ${G.clearedToolUses} tool results, ${G.clearedInputTokens.toLocaleString("en-US")} input tokens cleared`);q.push(""),q.push(`Recent requests (${B.length}${J>0?` of ${k.length}, ${J} older omitted`:""}):`),q.push(" # time model cache");for(let[K,$]of B.entries())q.push(H($,k.length-B.length+K));if(B.some((K)=>!K.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
+
`)}};var N=j(()=>{A();w()});N();export{b as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mi as a,ni as b}from"./cli-1.1.25-tz7k6gjy.mjs";import"./cli-1.1.25-0q6rqkec.mjs";import"./cli-1.1.25-3ev2q4bm.mjs";import"./cli-1.1.25-q88hb4qg.mjs";import"./cli-1.1.25-nxvqf4sh.mjs";import"./cli-1.1.25-ybe971qx.mjs";import"./cli-1.1.25-bmjvmtgk.mjs";import"./cli-1.1.25-6t9phfap.mjs";import"./cli-1.1.25-gz32rhhs.mjs";import"./cli-1.1.25-7d3fdbq5.mjs";import"./cli-1.1.25-2gjxmbsj.mjs";import"./cli-1.1.25-tj3kqgbv.mjs";import"./cli-1.1.25-ba3yrxg9.mjs";import"./cli-1.1.25-csgmna38.mjs";import"./cli-1.1.25-a0zejb5c.mjs";import"./cli-1.1.25-1sf51thg.mjs";import"./cli-1.1.25-pxq7zyjb.mjs";import"./cli-1.1.25-anhj1nnt.mjs";import"./cli-1.1.25-np8863pb.mjs";import"./cli-1.1.25-qp9j9ma3.mjs";import"./cli-1.1.25-hpfkk20r.mjs";import"./cli-1.1.25-vc7150xz.mjs";import"./cli-1.1.25-7qert3s4.mjs";import"./cli-1.1.25-12b1rzfj.mjs";import"./cli-1.1.25-9grz07r4.mjs";import"./cli-1.1.25-2gtabky3.mjs";import"./cli-1.1.25-t6rdfhp9.mjs";import"./cli-1.1.25-pcamey8m.mjs";import"./cli-1.1.25-3hnrfkxc.mjs";import"./cli-1.1.25-sz3dey5y.mjs";import"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-4cgvw7e3.mjs";import"./cli-1.1.25-zqqpy89q.mjs";import"./cli-1.1.25-zk74mh7n.mjs";import"./cli-1.1.25-x4ww7pe7.mjs";import"./cli-1.1.25-x26vkphq.mjs";import"./cli-1.1.25-fr1nw6bz.mjs";import"./cli-1.1.25-6bb29bw7.mjs";import"./cli-1.1.25-dc92c5gy.mjs";import"./cli-1.1.25-rkh9pz84.mjs";import"./cli-1.1.25-n10jmzvk.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-82ht7pxh.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import"./cli-1.1.25-jsn4we2f.mjs";import"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import"./cli-1.1.25-7qxwpfwh.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{DU as Kz,Fm as M,JL as j,KL as Ez,Km as s,Wk as F,Xk as r,Zl as c,an as W,bn as e,gn as u,hP as n,jP as Xz,kP as p,ln as Uz,mP as l,nP as Yz,pp as v,qU as P,qp as Vz,sm as Qz,su as x,tu as zz,yD as Z,zD as Bz}from"./cli-1.1.25-q88hb4qg.mjs";import"./cli-1.1.25-nxvqf4sh.mjs";import"./cli-1.1.25-ybe971qx.mjs";import"./cli-1.1.25-bmjvmtgk.mjs";import"./cli-1.1.25-6t9phfap.mjs";import"./cli-1.1.25-gz32rhhs.mjs";import"./cli-1.1.25-7d3fdbq5.mjs";import"./cli-1.1.25-2gjxmbsj.mjs";import"./cli-1.1.25-tj3kqgbv.mjs";import"./cli-1.1.25-ba3yrxg9.mjs";import"./cli-1.1.25-csgmna38.mjs";import"./cli-1.1.25-a0zejb5c.mjs";import"./cli-1.1.25-1sf51thg.mjs";import"./cli-1.1.25-pxq7zyjb.mjs";import"./cli-1.1.25-anhj1nnt.mjs";import"./cli-1.1.25-np8863pb.mjs";import"./cli-1.1.25-qp9j9ma3.mjs";import"./cli-1.1.25-hpfkk20r.mjs";import"./cli-1.1.25-vc7150xz.mjs";import"./cli-1.1.25-7qert3s4.mjs";import"./cli-1.1.25-12b1rzfj.mjs";import"./cli-1.1.25-9grz07r4.mjs";import"./cli-1.1.25-2gtabky3.mjs";import"./cli-1.1.25-t6rdfhp9.mjs";import"./cli-1.1.25-pcamey8m.mjs";import"./cli-1.1.25-3hnrfkxc.mjs";import"./cli-1.1.25-sz3dey5y.mjs";import"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-4cgvw7e3.mjs";import"./cli-1.1.25-zqqpy89q.mjs";import"./cli-1.1.25-zk74mh7n.mjs";import"./cli-1.1.25-x4ww7pe7.mjs";import"./cli-1.1.25-x26vkphq.mjs";import"./cli-1.1.25-fr1nw6bz.mjs";import"./cli-1.1.25-6bb29bw7.mjs";import"./cli-1.1.25-dc92c5gy.mjs";import"./cli-1.1.25-rkh9pz84.mjs";import"./cli-1.1.25-n10jmzvk.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import{N9 as E,O9 as Lz}from"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-82ht7pxh.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import"./cli-1.1.25-jsn4we2f.mjs";import{Hha as Nz,S$ as q,Uea as R,Xea as t,naa as o,zha as g}from"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import{bja as y,eja as d}from"./cli-1.1.25-peepax79.mjs";import{Oja as Y,Qja as f}from"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import{Fra as m,Gra as w,Qqa as C,bsa as O,coa as G,foa as H,hoa as T,ioa as b,koa as A,loa as I}from"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import{Yta as $}from"./cli-1.1.25-7qxwpfwh.mjs";function h(){return k}function S(J){let B=Y();Z(J);let z=Y();try{process.chdir(z)}catch(N){throw Z(B),N}return H(G(),T()??y(b())),A(z),I(z),k=B,Jz(),{previousCwd:B,newCwd:z}}function Jz(){W(),P(),M.cache.clear?.(),F(),j.cache?.clear?.(),R.cache?.clear?.(),q.cache?.clear?.(),x()}var k=null;var D=$(()=>{s();e();r();Kz();Ez();t();O();zz();d();f();Bz();o()});import{dirname as Zz}from"node:path";function _z(J){let B=J.trim();if(!B)return{kind:"empty"};if(B==="-")return{kind:"previous"};return{kind:"path",path:B}}function $z(J,B,z){let N=[B?`${J.previousCwd} kept accessible for this session`:null,"transcript stays under the original project",z?"cancelled the pending /loop wakeup":null,"/cd - to return"].filter((V)=>V!==null);return`Moved this session to ${E.bold(J.newCwd)}
|
|
2
|
+
${E.dim(N.join(" · "))}`}function L(J){return{type:"text",value:J}}async function uz(J,B,z=Gz){let N=_z(J);if(N.kind==="empty")return L(`Usage: ${E.bold("/cd <path>")} — moves this session to another directory.
|
|
3
|
+
${E.dim("/cd - returns to the previous one.")}`);if(z.currentWorktreeSession())return L(`This session is inside a worktree. Use ${E.bold("ExitWorktree")} to leave it first, then ${E.bold("/cd")}.`);let V;if(N.kind==="previous"){let U=z.previousDir();if(!U)return L("This session has not moved yet, so there is no previous directory.");V=U}else V=N.path;let K=await z.resolveDirectory(V);if(K.resultType!=="success"){if(K.resultType==="notADirectory")return L(`${E.bold(K.directoryPath)} is not a directory. Did you mean ${E.bold(Zz(K.absolutePath))}?`);return L(l(K))}if(K.absolutePath===z.currentCwd())return L(`Already in ${E.bold(K.absolutePath)}.`);let a=z.hasPendingWakeup(),Q;try{Q=z.reroot(K.absolutePath)}catch(U){let X=U instanceof Error?U.message:"Unknown error";return g(Error(`/cd failed to move to ${K.absolutePath}: ${X}`)),L(`Could not move to ${E.bold(K.absolutePath)}: ${X}`)}let _=!n(Q.previousCwd,Q.newCwd);if(_){let U=u(B.getAppState().toolPermissionContext,{type:"addDirectories",directories:[Q.previousCwd],destination:"session"});B.setAppState((i)=>({...i,toolPermissionContext:U}));let X=m();if(!X.includes(Q.previousCwd))w([...X,Q.previousCwd])}return z.refreshSandbox(),L($z(Q,_,a))}var Gz;var Hz=$(()=>{Lz();Yz();Uz();Xz();O();Vz();D();f();Nz();Qz();Gz={currentWorktreeSession:c,resolveDirectory:p,reroot:S,previousDir:h,hasPendingWakeup:()=>C()!==null,currentCwd:Y,refreshSandbox:()=>v.refreshConfig()}});Hz();export{_z as parseCdTarget,$z as formatCdResult,uz as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aba as k,Fba as N,Hha as H,bda as x,eda as A,oaa as V,paa as W,qaa as J,zha as X}from"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import{ema as b,kma as y}from"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-7qxwpfwh.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function v(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AU as o,BU as p,CU as q,DU as r,mU as a,nU as b,oU as c,pU as d,qU as e,rU as f,sU as g,tU as h,uU as i,vU as j,wU as k,xU as l,yU as m,zU as n}from"./cli-1.1.25-q88hb4qg.mjs";import"./cli-1.1.25-nxvqf4sh.mjs";import"./cli-1.1.25-ybe971qx.mjs";import"./cli-1.1.25-bmjvmtgk.mjs";import"./cli-1.1.25-6t9phfap.mjs";import"./cli-1.1.25-gz32rhhs.mjs";import"./cli-1.1.25-7d3fdbq5.mjs";import"./cli-1.1.25-2gjxmbsj.mjs";import"./cli-1.1.25-tj3kqgbv.mjs";import"./cli-1.1.25-ba3yrxg9.mjs";import"./cli-1.1.25-csgmna38.mjs";import"./cli-1.1.25-a0zejb5c.mjs";import"./cli-1.1.25-1sf51thg.mjs";import"./cli-1.1.25-pxq7zyjb.mjs";import"./cli-1.1.25-anhj1nnt.mjs";import"./cli-1.1.25-np8863pb.mjs";import"./cli-1.1.25-qp9j9ma3.mjs";import"./cli-1.1.25-hpfkk20r.mjs";import"./cli-1.1.25-vc7150xz.mjs";import"./cli-1.1.25-7qert3s4.mjs";import"./cli-1.1.25-12b1rzfj.mjs";import"./cli-1.1.25-9grz07r4.mjs";import"./cli-1.1.25-2gtabky3.mjs";import"./cli-1.1.25-t6rdfhp9.mjs";import"./cli-1.1.25-pcamey8m.mjs";import"./cli-1.1.25-3hnrfkxc.mjs";import"./cli-1.1.25-sz3dey5y.mjs";import"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-4cgvw7e3.mjs";import"./cli-1.1.25-zqqpy89q.mjs";import"./cli-1.1.25-zk74mh7n.mjs";import"./cli-1.1.25-x4ww7pe7.mjs";import"./cli-1.1.25-x26vkphq.mjs";import"./cli-1.1.25-fr1nw6bz.mjs";import"./cli-1.1.25-6bb29bw7.mjs";import"./cli-1.1.25-dc92c5gy.mjs";import"./cli-1.1.25-rkh9pz84.mjs";import"./cli-1.1.25-n10jmzvk.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-82ht7pxh.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import"./cli-1.1.25-jsn4we2f.mjs";import"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import"./cli-1.1.25-7qxwpfwh.mjs";r();export{p as shouldShowClaudeMdExternalIncludesWarning,f as resetGetMemoryFilesCache,b as processMemoryFile,c as processMdRules,m as processConditionedMdRules,q as isMemoryFilePath,o as hasExternalClaudeMdIncludes,k as getMemoryFilesForNestedDirectory,d as getMemoryFiles,j as getManagedAndUserConditionalRules,g as getLargeMemoryFiles,n as getExternalClaudeMdIncludes,l as getConditionalRulesForCwdLevelDirectory,i as getClaudeMds,h as filterInjectedMemoryFiles,e as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ki as b,li as h}from"./cli-1.1.25-nmxbk4dt.mjs";import"./cli-1.1.25-tz7k6gjy.mjs";import"./cli-1.1.25-0q6rqkec.mjs";import"./cli-1.1.25-q5qj0wfa.mjs";import"./cli-1.1.25-3ev2q4bm.mjs";import"./cli-1.1.25-q88hb4qg.mjs";import"./cli-1.1.25-nxvqf4sh.mjs";import"./cli-1.1.25-ybe971qx.mjs";import"./cli-1.1.25-bmjvmtgk.mjs";import"./cli-1.1.25-6t9phfap.mjs";import"./cli-1.1.25-gz32rhhs.mjs";import"./cli-1.1.25-7d3fdbq5.mjs";import"./cli-1.1.25-2gjxmbsj.mjs";import"./cli-1.1.25-tj3kqgbv.mjs";import"./cli-1.1.25-ba3yrxg9.mjs";import"./cli-1.1.25-csgmna38.mjs";import"./cli-1.1.25-a0zejb5c.mjs";import"./cli-1.1.25-1sf51thg.mjs";import"./cli-1.1.25-pxq7zyjb.mjs";import"./cli-1.1.25-anhj1nnt.mjs";import"./cli-1.1.25-np8863pb.mjs";import"./cli-1.1.25-qp9j9ma3.mjs";import"./cli-1.1.25-hpfkk20r.mjs";import"./cli-1.1.25-vc7150xz.mjs";import"./cli-1.1.25-7qert3s4.mjs";import"./cli-1.1.25-12b1rzfj.mjs";import"./cli-1.1.25-9grz07r4.mjs";import"./cli-1.1.25-2gtabky3.mjs";import"./cli-1.1.25-t6rdfhp9.mjs";import"./cli-1.1.25-pcamey8m.mjs";import"./cli-1.1.25-3hnrfkxc.mjs";import"./cli-1.1.25-sz3dey5y.mjs";import"./cli-1.1.25-0m4pyzaf.mjs";import"./cli-1.1.25-4cgvw7e3.mjs";import"./cli-1.1.25-zqqpy89q.mjs";import"./cli-1.1.25-zk74mh7n.mjs";import"./cli-1.1.25-x4ww7pe7.mjs";import"./cli-1.1.25-x26vkphq.mjs";import"./cli-1.1.25-fr1nw6bz.mjs";import"./cli-1.1.25-6bb29bw7.mjs";import"./cli-1.1.25-dc92c5gy.mjs";import"./cli-1.1.25-rkh9pz84.mjs";import"./cli-1.1.25-n10jmzvk.mjs";import"./cli-1.1.25-9xqq9dsw.mjs";import"./cli-1.1.25-5n21xpvc.mjs";import"./cli-1.1.25-njrez2x5.mjs";import"./cli-1.1.25-eqtpax1f.mjs";import"./cli-1.1.25-q257pczz.mjs";import"./cli-1.1.25-82ht7pxh.mjs";import"./cli-1.1.25-h6ag26rc.mjs";import"./cli-1.1.25-jsn4we2f.mjs";import"./cli-1.1.25-s54emewd.mjs";import"./cli-1.1.25-f5ag59tm.mjs";import"./cli-1.1.25-b1hj5x42.mjs";import"./cli-1.1.25-683ggh08.mjs";import"./cli-1.1.25-sjqg08ww.mjs";import"./cli-1.1.25-peepax79.mjs";import"./cli-1.1.25-37rs38eq.mjs";import"./cli-1.1.25-6vwz5vma.mjs";import"./cli-1.1.25-vkg5fb0z.mjs";import"./cli-1.1.25-qgnyys4j.mjs";import"./cli-1.1.25-5qknjpxc.mjs";import"./cli-1.1.25-6r6r7rep.mjs";import"./cli-1.1.25-ntfm6tbg.mjs";import"./cli-1.1.25-p9j8prqh.mjs";import"./cli-1.1.25-pzp73p0x.mjs";import"./cli-1.1.25-74ys7518.mjs";import"./cli-1.1.25-9yhnadye.mjs";import"./cli-1.1.25-6wjrv08c.mjs";import"./cli-1.1.25-z31z20wf.mjs";import{Yta as g}from"./cli-1.1.25-7qxwpfwh.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S2 as a,T2 as b,U2 as c}from"./cli-1.1.25-pcamey8m.mjs";import"./cli-1.1.25-7qxwpfwh.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{g5 as M,h5 as D}from"./cli-1.1.25-9xqq9dsw.mjs";import{Aga as L,Bga as c,ega as F,kha as S,mga as _,nha as p,xga as l}from"./cli-1.1.25-s54emewd.mjs";import{sma as Y,yma as m}from"./cli-1.1.25-ntfm6tbg.mjs";import{Yta as B}from"./cli-1.1.25-7qxwpfwh.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:T}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||E}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,j=J?.scope?.trim()||C,$=j===C?[j]:[j,C],z="Device code request failed.",y=b(R(J?.domain));for(let V of $){let W=await Z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let x=await W.text().catch(()=>"");z=`Device code request failed: ${W.status} ${x}`;let k=/invalid_scope/i.test(x);if(V!==C&&k)continue;throw new q(z)}let X=await W.json(),N=X.device_code,K=X.user_code,w=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof w!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:w,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(z)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let j=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,z=Q?.fetchImpl??fetch,y=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(j*1000);continue}if(N==="slow_down"){j=typeof X.interval==="number"?X.interval:j+5,await P(j*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},j=Z.fetchImpl??fetch,$=h(R(Z.domain)),z=await j($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!z.ok){let K=await z.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${z.status} ${K}`)}let y=await z.json(),V=y.token,W=y.expires_at,X=y.refresh_in,N=y.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var E="Iv1.b507a08c87ecfe98",T="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{D();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function g(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),z=$+"=".repeat((4-$.length%4)%4),y=Buffer.from(z,"base64").toString("utf8"),V=JSON.parse(y);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function jJ(){if(!g())return;if(Y())return;if(a())return}async function yJ(){if(!g())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,j=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!j&&!$)return!1;if((j?d(j):"expired")==="valid")return!1;if(!$)return!1;let y=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:y});if(!n(V.token,$,y).success)return!1;let X=F().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)_(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let j=J.trim();if(!j)return{success:!1,warning:"Token is empty."};let $=L(),z=$.read()||{},y=z[U],V=Q?.trim(),W={accessToken:j};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(y?.oauthAccessToken?.trim())W.oauthAccessToken=y.oauthAccessToken.trim();let N=Z?.trim()||y?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...z,[U]:W};return $.update(X)}function zJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
+
export{R as e3,r as f3,o as g3,e as h3,I as i3,O as j3,U as k3,VJ as l3,a as m3,WJ as n3,jJ as o3,yJ as p3,n as q3,zJ as r3,s as s3};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import{Bj as h,CS as a,PK as A,Ur as F,XD as U,Xr as m,YD as p,bC as O,cC as I,jS as P,yj as $}from"./cli-1.1.25-q88hb4qg.mjs";import{l5 as b,m5 as T}from"./cli-1.1.25-5n21xpvc.mjs";import{rla as R,vla as x}from"./cli-1.1.25-qgnyys4j.mjs";import{ima as k,kma as M}from"./cli-1.1.25-6r6r7rep.mjs";import{nma as N,yma as _}from"./cli-1.1.25-ntfm6tbg.mjs";import{Yta as v}from"./cli-1.1.25-7qxwpfwh.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 oi,Zw as pi,s as qi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$Z as u,A1 as y,G1 as MQ,P1 as _Q,Q1 as aQ,U1 as d,d2 as a,l1 as QQ,m1 as uQ,y1 as k}from"./cli-1.1.25-2gtabky3.mjs";import{G4 as K,H4 as l,I4 as m}from"./cli-1.1.25-fr1nw6bz.mjs";import{J4 as v}from"./cli-1.1.25-6bb29bw7.mjs";import{$4 as t,Z4 as n,e5 as YV}from"./cli-1.1.25-n10jmzvk.mjs";import{$8 as P,Y8 as $Q,c9 as pQ,r9 as XV}from"./cli-1.1.25-5n21xpvc.mjs";import{$ea as mQ,$fa as QV,Dfa as fQ,Gfa as x,Hha as VV,afa as eQ,zha as CQ}from"./cli-1.1.25-s54emewd.mjs";import{Mha as IQ,Nha as sQ}from"./cli-1.1.25-f5ag59tm.mjs";import{Aka as r,Bka as nQ}from"./cli-1.1.25-6vwz5vma.mjs";import{Fla as E,Ila as iQ}from"./cli-1.1.25-qgnyys4j.mjs";import{eta as i,wta as tQ}from"./cli-1.1.25-9yhnadye.mjs";import{Uta as T,Yta as F}from"./cli-1.1.25-7qxwpfwh.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 LY,YQ as MY,JQ as NY,hQ as OY,c as PY,NV as QY,LQ as RY,qQ as SY,zQ as TY,NQ as UY,TV as VY,h as WY,KV as XY,UQ as YY,RV as ZY,OQ as _Y,wQ as $Y,o as aZ,WQ as bZ,$V as cZ,oQ as dZ,s as eZ,SQ as fZ,bV as gZ,xV as hZ,AQ as iZ,DQ as jZ,EQ as kZ,oV as lZ,rQ as mZ,ZX as nZ,GX as oZ,JX as pZ,LX as qZ,qX as rZ,JV as sZ,HX as tZ,LV as uZ};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yta as b}from"./cli-1.1.25-7qxwpfwh.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
|
|
2
|
+
export{j as ce,k as de,q as ee,w as fe,g as ge};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$Z as f}from"./cli-1.1.25-2gtabky3.mjs";import{G4 as n,I4 as i}from"./cli-1.1.25-fr1nw6bz.mjs";import{J4 as M}from"./cli-1.1.25-6bb29bw7.mjs";import{Uta as o}from"./cli-1.1.25-7qxwpfwh.mjs";i();var p=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:s,children:c}=F,t;if(e[0]!==c||e[1]!==s)t=n(d.Provider,{value:s,children:c}),e[0]=c,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
+
export{a as Tb,l as Ub};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{T8 as q,r9 as D}from"./cli-1.1.25-5n21xpvc.mjs";import{Aka as m,Bka as z}from"./cli-1.1.25-6vwz5vma.mjs";import{Yta as x}from"./cli-1.1.25-7qxwpfwh.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
|
|
2
|
+
export{E as Ji,F as Ki,K as Li,M as Mi,G as Ni};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B$ as k,T$ as Y,naa as I,x$ as X}from"./cli-1.1.25-s54emewd.mjs";import{cia as $}from"./cli-1.1.25-f5ag59tm.mjs";import{Yta as Z}from"./cli-1.1.25-7qxwpfwh.mjs";import{stat as M}from"fs/promises";import{join as Q,sep as U}from"path";async function b(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await M(J);return q}catch{return}}var W=Z(()=>{$();k();I()});
|
|
2
|
+
export{b as Kb,W as Lb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Qta as n}from"./cli-1.1.25-6panntay.mjs";import{Wta as r}from"./cli-1.1.25-7qxwpfwh.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
+
export{i as K_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yta as B}from"./cli-1.1.25-7qxwpfwh.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
|
|
2
|
+
export{K as Qi,L as Ri,M as Si,G as Ti};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{b3 as k,d3 as w}from"./cli-1.1.25-sz3dey5y.mjs";import{Z8 as j,r9 as v}from"./cli-1.1.25-5n21xpvc.mjs";import{Fia as d,Qia as h,Ria as s}from"./cli-1.1.25-sjqg08ww.mjs";import{yma as q}from"./cli-1.1.25-ntfm6tbg.mjs";import{Yta as p}from"./cli-1.1.25-7qxwpfwh.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
+
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
+
export{x as hX,O as iX,P as jX,Q as kX,R as lX,U as mX,W as nX,X as oX,z as pX};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{vg as IJ,wg as bQ}from"./cli-1.1.25-qd1b1zr7.mjs";import{Gg as eq,Hg as sq,Ig as aJ}from"./cli-1.1.25-t80ab9f0.mjs";import{Jg as AJ,Kg as OQ}from"./cli-1.1.25-y4xjnn7w.mjs";import{Lg as vJ,Mg as AQ}from"./cli-1.1.25-gsngwhfp.mjs";import{Ng as nq,Og as rJ}from"./cli-1.1.25-gm5mfwmy.mjs";import{Pg as wq,Qg as tq,Rg as oJ}from"./cli-1.1.25-s1ykc389.mjs";import{Sg as bJ,Tg as hQ}from"./cli-1.1.25-r0dwt4a0.mjs";import{DU as QQ,OR as Iq,RR as JQ,Uo as NJ,Vo as BQ,XJ as hJ,YJ as OJ,ZJ as WQ,hu as BJ,hy as g,iu as UQ,ju as UJ,ku as wJ,ky as FQ,lu as wQ,mU as Fq,pU as ZJ,pp as h,qp as lq,sU as zJ,sy as pq,tH as kq,ty as jq,uH as RQ,vH as LJ,vy as _q,wH as PJ,wy as jJ,xH as WJ,xR as QJ,yH as PQ,zR as qQ}from"./cli-1.1.25-q88hb4qg.mjs";import{fV as FJ,hV as HJ,kV as HQ}from"./cli-1.1.25-ybe971qx.mjs";import{vX as RJ,zX as LQ}from"./cli-1.1.25-anhj1nnt.mjs";import{$Y as XQ,_Y as XJ,cZ as yJ,dZ as yQ,lZ as Cq,mZ as NQ}from"./cli-1.1.25-12b1rzfj.mjs";import{$Z as Oq,A1 as Q,d2 as bq,y1 as N}from"./cli-1.1.25-2gtabky3.mjs";import{F4 as R,G4 as K,H4 as Z,I4 as c}from"./cli-1.1.25-fr1nw6bz.mjs";import{J4 as VQ}from"./cli-1.1.25-6bb29bw7.mjs";import{I7 as iq,Y7 as VJ,Z7 as KQ,i7 as oq,p7 as KJ}from"./cli-1.1.25-5n21xpvc.mjs";import{$_ as zQ,Cea as GJ,Pea as GQ,Qda as aq,Rda as gJ,Uda as Aq,Zaa as Mq,__ as $,aea as xJ,uba as YQ}from"./cli-1.1.25-s54emewd.mjs";import{nma as YJ,yma as ZQ}from"./cli-1.1.25-ntfm6tbg.mjs";import{bsa as rq,ioa as Hq}from"./cli-1.1.25-p9j8prqh.mjs";import{Uta as Bq,Yta as Uq}from"./cli-1.1.25-7qxwpfwh.mjs";function Tq(){let J=dq.c(2);if(!pq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=_q();if(G.length===0){V=null;break q}let Y=G.filter(cJ),X=G.filter(TJ);q=Z(N,{flexDirection:"column",marginTop:1,marginBottom:1,children:[K(Q,{bold:!0,color:Y.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(N,{children:[K(Q,{dimColor:!0,children:"Location: "}),K(Q,{dimColor:!0,children:jq()})]}),Z(N,{marginLeft:1,flexDirection:"column",marginTop:1,children:[Y.map(dJ),X.map(_J)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function _J(J,q){return Z(N,{flexDirection:"column",children:[Z(N,{children:[K(Q,{dimColor:!0,children:"└ "}),K(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&K(N,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function dJ(J,q){return Z(N,{flexDirection:"column",children:[Z(N,{children:[K(Q,{dimColor:!0,children:"└ "}),K(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&K(N,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function TJ(J){return J.severity==="warning"}function cJ(J){return J.severity==="error"}var dq;var cq=Uq(()=>{bq();jJ();c();dq=Bq(Oq(),1)});function gq(){let J=$q.c(2);if(!h.isSupportedPlatform())return null;if(!h.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=h.checkDependencies(),Y=G.errors.length>0,X=G.warnings.length>0;if(!Y&&!X){V=null;break q}q=Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",K(Q,{color:Y?"error":"warning",children:Y?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map($J),G.warnings.map(lJ),Y&&K(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function lJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function $J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var $q;var xq=Uq(()=>{bq();lq();c();$q=Bq(Oq(),1)});async function iJ(){let J=zJ(await ZJ());if(J.length===0)return null;let q=J.sort((G,Y)=>Y.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${Fq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${Fq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:Fq}}async function nJ(J){if(!J)return null;let q=tq(J);if(q<=wq)return null;let V=J.activeAgents.filter((Y)=>Y.source!=="built-in").map((Y)=>{let X=`${Y.agentType}: ${Y.whenToUse}`;return{name:Y.agentType,tokens:Iq(X)}}).sort((Y,X)=>X.tokens-Y.tokens),G=V.slice(0,5).map((Y)=>`${Y.name}: ~${Y.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${wq.toLocaleString()})`,details:G,currentValue:q,threshold:wq}}async function eJ(J,q,V){let G=J.filter((Y)=>Y.isMcp);if(G.length===0)return null;try{let Y=oq(),{mcpToolTokens:X,mcpToolDetails:U}=await QJ(J,q,V,Y);if(X<=l)return null;let B=new Map;for(let L of U){let x=L.name.split("__")[1]||"unknown",y=B.get(x)||{count:0,tokens:0};B.set(x,{count:y.count+1,tokens:y.tokens+L.tokens})}let H=Array.from(B.entries()).sort((L,w)=>w[1].tokens-L[1].tokens),z=H.slice(0,5).map(([L,w])=>`${L}: ${w.count} tools (~${w.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(Y){let X=G.reduce((U,B)=>{let H=(B.name?.length||0)+B.description.length;return U+Iq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function sJ(J){let q=await J(),V=h.isSandboxingEnabled()&&h.isAutoAllowBashIfSandboxedEnabled(),G=nq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let Y=G.flatMap((X)=>[`${aq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${Aq(G.length,"unreachable permission rule")} detected`,details:Y,currentValue:G.length,threshold:0}}async function tJ(){let J=Hq(),{findings:q}=await eq({root:J});if(q.length===0)return null;let V=q.filter((Y)=>Y.severity==="error"),G=q.map((Y)=>`${sq(J,Y.file)}: ${Y.message}`);return{type:"rule_files",severity:V.length>0?"error":"warning",message:`${q.length} rule ${Aq(q.length,"file problem")} detected`,details:G,currentValue:q.length,threshold:0}}async function qJ(J,q,V){let[G,Y,X,U,B]=await Promise.all([iJ(),nJ(q),eJ(J,V,q),sJ(V),tJ()]);return{claudeMdWarning:G,agentWarning:Y,mcpWarning:X,unreachableRulesWarning:U,ruleFilesWarning:B}}var l=25000;var JJ=Uq(()=>{rq();JQ();qQ();QQ();iq();gJ();rJ();aJ();lq();oJ();xJ()});import{join as vq}from"path";function IQ(J){let q=Dq.c(8),{promise:V}=J,G=F.use(V);if(!G.latest){let B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=K(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=B;else B=q[0];return B}let Y;if(q[1]!==G.stable)Y=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=Y;else Y=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let U;if(q[5]!==Y||q[6]!==X)U=Z(R,{children:[Y,X]}),q[5]=Y,q[6]=X,q[7]=U;else U=q[7];return U}function xZ(J){let q=Dq.c(84),{onDone:V}=J,G=g(rQ),Y=g(xQ),X=g(gQ),U=g($Q);yJ();let B;if(q[0]!==Y)B=Y||[],q[0]=Y,q[1]=B;else B=q[1];let H=B,[z,L]=F.useState(null),[w,x]=F.useState(null),[y,MJ]=F.useState(null),[W,Sq]=F.useState(null),Rq=vJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=kq().then(cQ),q[2]=r;else r=q[2];let CJ=r,kJ=GJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Rq)a=Rq.filter(TQ),q[3]=Rq,q[4]=a;else a=q[4];let o=a,i;if(q[5]===Symbol.for("react.memo_cache_sentinel"))i=[{name:"BASH_MAX_OUTPUT_LENGTH",default:wJ,upperLimit:UJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:OJ,upperLimit:hJ},{name:"CLAUDIN_MAX_OUTPUT_TOKENS",...VJ(KJ())}].map(dQ).filter(_Q),q[5]=i;else i=q[5];let Eq=i,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{kq().then(L),(async()=>{let P=vq(YJ(),"agents"),fq=vq(Hq(),".claudin","agents"),{activeAgents:uq,allAgents:DJ,failedFiles:mq}=G,[SJ,EJ]=await Promise.all([Mq(P),Mq(fq)]),fJ={activeAgents:uq.map(jQ),userAgentsDir:P,projectAgentsDir:fq,userDirExists:SJ,projectDirExists:EJ,failedFiles:mq};x(fJ);let uJ=await qJ(H,{activeAgents:uq,allAgents:DJ,failedFiles:mq},async()=>X);if(MJ(uJ),LJ()){let hq=vq(RJ(),"claude","locks"),mJ=WJ(hq),pJ=PJ(hq);Sq({enabled:!0,locks:pJ,locksDir:hq,staleLocksCleaned:mJ})}else Sq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];F.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claudin diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(XJ(qq,Jq),!z){let P;if(q[16]===Symbol.for("react.memo_cache_sentinel"))P=K(Cq,{children:K(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=P;else P=q[16];return P}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=K(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let b;if(q[21]!==z.packageManager)b=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=b;else b=q[22];let A;if(q[23]!==z.installationPath)A=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=A;else A=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let v;if(q[27]!==z.configInstallMethod)v=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=v;else v=q[28];let Lq=z.ripgrepStatus.working?"OK":"Not working",Pq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",M;if(q[29]!==Lq||q[30]!==Pq)M=Z(Q,{children:["└ Search: ",Lq," (",Pq,")"]}),q[29]=Lq,q[30]=Pq,q[31]=M;else M=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(R,{children:[K(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
|
|
2
|
+
`)[0]]}),K(Q,{dimColor:!0,children:z.recommendation.split(`
|
|
3
|
+
`)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(R,{children:[K(Q,{}),K(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(pQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(R,{children:[K(Q,{}),z.warnings.map(mQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==o)S=o.length>0&&Z(N,{flexDirection:"column",marginTop:1,marginBottom:1,children:[K(Q,{bold:!0,children:"Invalid Settings"}),K(IJ,{errors:o})]}),q[38]=o,q[39]=S;else S=q[39];let E;if(q[40]!==O||q[41]!==b||q[42]!==A||q[43]!==I||q[44]!==v||q[45]!==M||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)E=Z(N,{flexDirection:"column",children:[Qq,O,b,A,I,v,M,C,k,D,S]}),q[40]=O,q[41]=b,q[42]=A,q[43]=I,q[44]=v,q[45]=M,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=E;else E=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=K(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let Wq=z.packageManager?"Managed by package manager":z.autoUpdates,f;if(q[52]!==Wq)f=Z(Q,{children:["└ Auto-updates:"," ",Wq]}),q[52]=Wq,q[53]=f;else f=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",kJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=K(F.Suspense,{fallback:null,children:K(IQ,{promise:CJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==f||q[59]!==u)m=Z(N,{flexDirection:"column",children:[Zq,f,u,zq,Yq]}),q[58]=f,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=K(gq,{}),Kq=K(bJ,{}),Vq=K(Tq,{}),Xq=Eq.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Environment Variables"}),Eq.map(uQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==W)p=W?.enabled&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Version Locks"}),W.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",W.staleLocksCleaned," stale lock(s)"]}),W.locks.length===0?K(Q,{dimColor:!0,children:"└ No active version locks"}):W.locks.map(fQ)]}),q[65]=W,q[66]=p;else p=q[66];let j;if(q[67]!==w)j=w?.failedFiles&&w.failedFiles.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",w.failedFiles.length," agent file(s):"]}),w.failedFiles.map(EQ)]}),q[67]=w,q[68]=j;else j=q[68];let _;if(q[69]!==U)_=U.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",U.length," plugin error(s) detected:"]}),U.map(SQ)]}),q[69]=U,q[70]=_;else _=q[70];let d;if(q[71]!==y)d=y?.unreachableRulesWarning&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.unreachableRulesWarning.message]})]}),y.unreachableRulesWarning.details.map(DQ)]}),q[71]=y,q[72]=d;else d=q[72];let T;if(q[73]!==y)T=y&&(y.claudeMdWarning||y.agentWarning||y.mcpWarning||y.ruleFilesWarning)&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Context Usage Warnings"}),y.claudeMdWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),y.claudeMdWarning.details.map(kQ)]}),y.agentWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),y.agentWarning.details.map(CQ)]}),y.mcpWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),y.mcpWarning.details.map(MQ)]}),y.ruleFilesWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:y.ruleFilesWarning.severity==="error"?"error":"warning",children:[$.warning," ",y.ruleFilesWarning.message]})]}),Z(Q,{children:[" ","└ Rules:"]}),y.ruleFilesWarning.details.map(vQ)]})]}),q[73]=y,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=K(N,{children:K(AJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==E||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Cq,{children:[E,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=E,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function vQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function CQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function kQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function DQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function SQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",NJ(J)]},q)}function EQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function fQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?K(Q,{children:"(running)"}):K(Q,{color:"warning",children:"(stale)"})]},q)}function uQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",K(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function mQ(J,q){return Z(N,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function pQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function jQ(J){return{agentType:J.agentType,source:J.source}}function _Q(J){return J.status!=="valid"}function dQ(J){let q=process.env[J.name],V=BJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function TQ(J){return J.mcpErrorMetadata===void 0}function cQ(J){return(J.installationType==="native"?HJ:FJ)().catch(lQ)}function lQ(){return{latest:null,stable:null}}function $Q(J){return J.plugins.errors}function gQ(J){return J.toolPermissionContext}function xQ(J){return J.mcp.tools}function rQ(J){return J.agentDefinitions}var Dq,F;var aQ=Uq(()=>{zQ();cq();hQ();KQ();iq();ZQ();rq();NQ();OQ();xq();bQ();AQ();yQ();bq();XQ();FQ();BQ();HQ();JJ();RQ();UQ();YQ();PQ();GQ();wQ();WQ();LQ();c();Dq=Bq(Oq(),1),F=Bq(VQ(),1)});
|
|
4
|
+
export{xZ as tg,aQ as ug};
|