@claudiolabs/claudin 1.0.8 → 1.0.10
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/README.md +3 -2
- package/dist/chunks/AgentTool-1.0.10-9168adv3.mjs +1 -0
- package/dist/chunks/App-1.0.10-b0wmgfhw.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.10-k8x17zqt.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.10-yyahg9e7.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.10-7d6nmenx.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.10-syxd1ha6.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.10-45912czy.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.10-efzztze6.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.10-6798dcwp.mjs +7 -0
- package/dist/chunks/Doctor-1.0.10-aagnvpzj.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.10-n773x39g.mjs +6 -0
- package/dist/chunks/Grove-1.0.10-ryqtmr1j.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.10-0wjvwjba.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.10-83c0rqn9.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.10-1h5tcxeh.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.10-5wbwh4fe.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.10-xnrfb23f.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.10-5z81gk4w.mjs +1 -0
- package/dist/chunks/REPL-1.0.10-wdp6ava4.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.10-vhkf5e48.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.10-vst4p4dj.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.10-b9zsxt77.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.10-zy7bb8c1.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.10-51fsm716.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.10-eq97b1w6.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.10-kwaz93dc.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.10-emvcwvyz.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.10-artcs5gw.mjs +1 -0
- package/dist/chunks/add-dir-1.0.10-3m9esps4.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.10-j2eg0asq.mjs +1 -0
- package/dist/chunks/agents-1.0.10-b081966c.mjs +3 -0
- package/dist/chunks/agents-1.0.10-c6y89byc.mjs +110 -0
- package/dist/chunks/api-1.0.10-q6a49cq9.mjs +1 -0
- package/dist/chunks/asciicast-1.0.10-8mrrq69t.mjs +1 -0
- package/dist/chunks/assistant-1.0.10-mt80c19d.mjs +1 -0
- package/dist/chunks/auth-1.0.10-j9wjzwdr.mjs +1 -0
- package/dist/chunks/auth-1.0.10-wscad97h.mjs +1 -0
- package/dist/chunks/autoMode-1.0.10-qacrantk.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.10-kej3mpvd.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.10-q5rs8cg6.mjs +1 -0
- package/dist/chunks/branch-1.0.10-g431vyze.mjs +4 -0
- package/dist/chunks/bridge-1.0.10-98mv13j4.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.10-pps59dv5.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.10-xpt9mfrj.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.10-9w755v0z.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.10-p6qd0vn4.mjs +1 -0
- package/dist/chunks/btw-1.0.10-3ks6x1cj.mjs +1 -0
- package/dist/chunks/buddy-1.0.10-mn169fr2.mjs +3 -0
- package/dist/chunks/cacache-1.0.10-1c5pjj4a.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.10-4c2hbe4n.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.10-bvmcxnsc.mjs +4 -0
- package/dist/chunks/caches-1.0.10-xnh6bthn.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.10-7x49t06j.mjs +1 -0
- package/dist/chunks/claudemd-1.0.10-4x8m7nms.mjs +1 -0
- package/dist/chunks/clear-1.0.10-wjmnsbvk.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.10-gg3q4e2j.mjs +1 -0
- package/dist/chunks/cli-1.0.10-03k1bgjr.mjs +8 -0
- package/dist/chunks/cli-1.0.10-0dt8rr7s.mjs +2 -0
- package/dist/chunks/cli-1.0.10-0j3rvqvd.mjs +2 -0
- package/dist/chunks/cli-1.0.10-0mtvwacq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-0p3e5mh4.mjs +2 -0
- package/dist/chunks/cli-1.0.10-0ww5aha0.mjs +2 -0
- package/dist/chunks/cli-1.0.10-10nbqkwk.mjs +5 -0
- package/dist/chunks/cli-1.0.10-126xqc7y.mjs +2 -0
- package/dist/chunks/cli-1.0.10-19r92gf0.mjs +2 -0
- package/dist/chunks/cli-1.0.10-1bb46j56.mjs +3 -0
- package/dist/chunks/cli-1.0.10-1gat00je.mjs +2 -0
- package/dist/chunks/cli-1.0.10-1hhjj6g5.mjs +15 -0
- package/dist/chunks/cli-1.0.10-1vw162pp.mjs +2 -0
- package/dist/chunks/cli-1.0.10-1w8ykzyr.mjs +18 -0
- package/dist/chunks/cli-1.0.10-1y9ehszh.mjs +4 -0
- package/dist/chunks/cli-1.0.10-2mrxx0ha.mjs +2 -0
- package/dist/chunks/cli-1.0.10-2yf0e5j0.mjs +3 -0
- package/dist/chunks/cli-1.0.10-38j9ydcc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-39c794ps.mjs +2 -0
- package/dist/chunks/cli-1.0.10-3b8btggr.mjs +2 -0
- package/dist/chunks/cli-1.0.10-3g4c94ey.mjs +2 -0
- package/dist/chunks/cli-1.0.10-3hnjbysa.mjs +2 -0
- package/dist/chunks/cli-1.0.10-3kpgqv4r.mjs +2 -0
- package/dist/chunks/cli-1.0.10-3m372s1z.mjs +2 -0
- package/dist/chunks/cli-1.0.10-3mf1zb3g.mjs +2 -0
- package/dist/chunks/cli-1.0.10-4137p8r7.mjs +3 -0
- package/dist/chunks/cli-1.0.10-496yhe1m.mjs +2 -0
- package/dist/chunks/cli-1.0.10-4cpftynm.mjs +133 -0
- package/dist/chunks/cli-1.0.10-4pjpd1yr.mjs +2 -0
- package/dist/chunks/cli-1.0.10-4pnqm304.mjs +2 -0
- package/dist/chunks/cli-1.0.10-4xqmvag1.mjs +2 -0
- package/dist/chunks/cli-1.0.10-52vtevx2.mjs +21 -0
- package/dist/chunks/cli-1.0.10-53k2r2s4.mjs +24 -0
- package/dist/chunks/cli-1.0.10-56qwh0xr.mjs +2 -0
- package/dist/chunks/cli-1.0.10-5a969ex4.mjs +2 -0
- package/dist/chunks/cli-1.0.10-5ad4sra1.mjs +2 -0
- package/dist/chunks/cli-1.0.10-5mwqzywt.mjs +2 -0
- package/dist/chunks/cli-1.0.10-5vy47pkm.mjs +2 -0
- package/dist/chunks/cli-1.0.10-5yc9j1wk.mjs +18 -0
- package/dist/chunks/cli-1.0.10-60m6e8jb.mjs +2 -0
- package/dist/chunks/cli-1.0.10-648r2tej.mjs +4 -0
- package/dist/chunks/cli-1.0.10-64cdykjq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-66cb9etc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-6ezxzjjc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-6k8wfwnm.mjs +18 -0
- package/dist/chunks/cli-1.0.10-6rmggk90.mjs +2 -0
- package/dist/chunks/cli-1.0.10-6v8b25v3.mjs +2 -0
- package/dist/chunks/cli-1.0.10-71469776.mjs +2 -0
- package/dist/chunks/cli-1.0.10-73jtw2ga.mjs +2 -0
- package/dist/chunks/cli-1.0.10-79ksk5t8.mjs +2 -0
- package/dist/chunks/cli-1.0.10-7vtw4q1z.mjs +2 -0
- package/dist/chunks/cli-1.0.10-80nme2ba.mjs +2 -0
- package/dist/chunks/cli-1.0.10-81bqbfzt.mjs +133 -0
- package/dist/chunks/cli-1.0.10-83nr92pr.mjs +2 -0
- package/dist/chunks/cli-1.0.10-8kmrt121.mjs +7 -0
- package/dist/chunks/cli-1.0.10-8p9adejr.mjs +2 -0
- package/dist/chunks/cli-1.0.10-8pv0t0rg.mjs +15 -0
- package/dist/chunks/cli-1.0.10-8r7kaawz.mjs +2 -0
- package/dist/chunks/cli-1.0.10-8zazttk7.mjs +2 -0
- package/dist/chunks/cli-1.0.10-99yfs0np.mjs +9 -0
- package/dist/chunks/cli-1.0.10-9w7ktw12.mjs +4 -0
- package/dist/chunks/cli-1.0.10-9w9eyp5w.mjs +26 -0
- package/dist/chunks/cli-1.0.10-9zyzxxg6.mjs +2 -0
- package/dist/chunks/cli-1.0.10-a3dzh7qn.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ae686ksc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ae9e10re.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ahv8e63t.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ak0w8049.mjs +2 -0
- package/dist/chunks/cli-1.0.10-aqy1tjb5.mjs +6 -0
- package/dist/chunks/cli-1.0.10-b32ya0x2.mjs +2 -0
- package/dist/chunks/cli-1.0.10-b42che8r.mjs +2 -0
- package/dist/chunks/cli-1.0.10-b9d86y5k.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bckynsrn.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bfeskk5v.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bft50zap.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bg5yza2e.mjs +42 -0
- package/dist/chunks/cli-1.0.10-bhhjmwbq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bjyy7gk3.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bmn2zrhq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-bwsvy4ha.mjs +2 -0
- package/dist/chunks/cli-1.0.10-byd1s52c.mjs +2 -0
- package/dist/chunks/cli-1.0.10-c1x0gkce.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ccxx6dak.mjs +34 -0
- package/dist/chunks/cli-1.0.10-cj46661y.mjs +17 -0
- package/dist/chunks/cli-1.0.10-cjvcm52x.mjs +3 -0
- package/dist/chunks/cli-1.0.10-cqr66bg9.mjs +2 -0
- package/dist/chunks/cli-1.0.10-dgjh0akh.mjs +1 -0
- package/dist/chunks/cli-1.0.10-djtar6x6.mjs +2 -0
- package/dist/chunks/cli-1.0.10-dk9yt7dj.mjs +24 -0
- package/dist/chunks/cli-1.0.10-dqbytbnz.mjs +2 -0
- package/dist/chunks/cli-1.0.10-dsx0vt1p.mjs +2 -0
- package/dist/chunks/cli-1.0.10-dwzzv50k.mjs +2 -0
- package/dist/chunks/cli-1.0.10-e33cdbwd.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ebk3tx3x.mjs +2 -0
- package/dist/chunks/cli-1.0.10-en27vfnb.mjs +2 -0
- package/dist/chunks/cli-1.0.10-evwrkxzx.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ewwwn978.mjs +2 -0
- package/dist/chunks/cli-1.0.10-f0qeess8.mjs +24 -0
- package/dist/chunks/cli-1.0.10-f1dj38dh.mjs +3 -0
- package/dist/chunks/cli-1.0.10-f9kd9ea1.mjs +2 -0
- package/dist/chunks/cli-1.0.10-fd700nvj.mjs +67 -0
- package/dist/chunks/cli-1.0.10-fexcb6zq.mjs +4 -0
- package/dist/chunks/cli-1.0.10-ffm9cbk3.mjs +2 -0
- package/dist/chunks/cli-1.0.10-fh0ndq5n.mjs +2 -0
- package/dist/chunks/cli-1.0.10-fnpqr7p3.mjs +6 -0
- package/dist/chunks/cli-1.0.10-fqj1yrnh.mjs +2 -0
- package/dist/chunks/cli-1.0.10-g44hcyvc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-g54smq1c.mjs +2 -0
- package/dist/chunks/cli-1.0.10-gcj94djy.mjs +2 -0
- package/dist/chunks/cli-1.0.10-gdd5wptw.mjs +2 -0
- package/dist/chunks/cli-1.0.10-gjfjm956.mjs +2 -0
- package/dist/chunks/cli-1.0.10-gw19ejvb.mjs +2 -0
- package/dist/chunks/cli-1.0.10-gwg4fpdz.mjs +2 -0
- package/dist/chunks/cli-1.0.10-h1b5mddb.mjs +3 -0
- package/dist/chunks/cli-1.0.10-h5kmfbbq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-h8hxgzcg.mjs +2 -0
- package/dist/chunks/cli-1.0.10-h9y92tqt.mjs +4 -0
- package/dist/chunks/cli-1.0.10-hh0mja3r.mjs +2 -0
- package/dist/chunks/cli-1.0.10-hh3gv5p7.mjs +12 -0
- package/dist/chunks/cli-1.0.10-hkdbtrdk.mjs +2 -0
- package/dist/chunks/cli-1.0.10-hmjmw1zh.mjs +3 -0
- package/dist/chunks/cli-1.0.10-ht0jya8e.mjs +2 -0
- package/dist/chunks/cli-1.0.10-j0e7nj85.mjs +199 -0
- package/dist/chunks/cli-1.0.10-j1c6sy8q.mjs +59 -0
- package/dist/chunks/cli-1.0.10-j8cpz9vy.mjs +2 -0
- package/dist/chunks/cli-1.0.10-jd706hep.mjs +2 -0
- package/dist/chunks/cli-1.0.10-jdy936dq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-je9yx09w.mjs +2 -0
- package/dist/chunks/cli-1.0.10-jmgrxnds.mjs +9 -0
- package/dist/chunks/cli-1.0.10-jrah5nna.mjs +4 -0
- package/dist/chunks/cli-1.0.10-jtb37mr1.mjs +50 -0
- package/dist/chunks/cli-1.0.10-jtvypw88.mjs +2 -0
- package/dist/chunks/cli-1.0.10-jy4hgvn2.mjs +2 -0
- package/dist/chunks/cli-1.0.10-jyeg1gs5.mjs +2 -0
- package/dist/chunks/cli-1.0.10-k9e97edx.mjs +25 -0
- package/dist/chunks/cli-1.0.10-ke4netv4.mjs +2 -0
- package/dist/chunks/cli-1.0.10-kewc714d.mjs +2 -0
- package/dist/chunks/cli-1.0.10-kmsk4exm.mjs +15 -0
- package/dist/chunks/cli-1.0.10-kww7mmtb.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ky6sqp4h.mjs +2 -0
- package/dist/chunks/cli-1.0.10-m2yxngqq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-m56h58rz.mjs +4 -0
- package/dist/chunks/cli-1.0.10-mnyfnbxw.mjs +2 -0
- package/dist/chunks/cli-1.0.10-n2xanxex.mjs +2 -0
- package/dist/chunks/cli-1.0.10-n5n71bfh.mjs +2 -0
- package/dist/chunks/cli-1.0.10-n8yjcm4e.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ng670b7q.mjs +4 -0
- package/dist/chunks/cli-1.0.10-nh813cn1.mjs +25 -0
- package/dist/chunks/cli-1.0.10-nrkp80dg.mjs +2 -0
- package/dist/chunks/cli-1.0.10-nzw6qreb.mjs +2 -0
- package/dist/chunks/cli-1.0.10-p0q41475.mjs +2 -0
- package/dist/chunks/cli-1.0.10-pc4k60c7.mjs +3 -0
- package/dist/chunks/cli-1.0.10-pd2mt28b.mjs +6 -0
- package/dist/chunks/cli-1.0.10-ptbb2wn9.mjs +2 -0
- package/dist/chunks/cli-1.0.10-pv72gcrc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-pve8az23.mjs +2 -0
- package/dist/chunks/cli-1.0.10-q2gqrdsg.mjs +12 -0
- package/dist/chunks/cli-1.0.10-qpbq00z0.mjs +2 -0
- package/dist/chunks/cli-1.0.10-r0k2vrj0.mjs +4 -0
- package/dist/chunks/cli-1.0.10-r5vax630.mjs +2 -0
- package/dist/chunks/cli-1.0.10-r6fe45r0.mjs +2 -0
- package/dist/chunks/cli-1.0.10-rdtm500m.mjs +2 -0
- package/dist/chunks/cli-1.0.10-rv1gqs67.mjs +2 -0
- package/dist/chunks/cli-1.0.10-rvmxg955.mjs +2 -0
- package/dist/chunks/cli-1.0.10-rx79bg1y.mjs +3 -0
- package/dist/chunks/cli-1.0.10-s71r06y4.mjs +58 -0
- package/dist/chunks/cli-1.0.10-sk2nf64f.mjs +2 -0
- package/dist/chunks/cli-1.0.10-skya2rkj.mjs +5 -0
- package/dist/chunks/cli-1.0.10-ss2tmvtb.mjs +2 -0
- package/dist/chunks/cli-1.0.10-sx9jc4xr.mjs +2 -0
- package/dist/chunks/cli-1.0.10-sy8asc9x.mjs +2 -0
- package/dist/chunks/cli-1.0.10-t14tjahq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-t4r1szrq.mjs +2 -0
- package/dist/chunks/cli-1.0.10-t7j9fna8.mjs +2 -0
- package/dist/chunks/cli-1.0.10-ta2k7fvc.mjs +2 -0
- package/dist/chunks/cli-1.0.10-twwqss1j.mjs +2 -0
- package/dist/chunks/cli-1.0.10-tz8wh2nt.mjs +2 -0
- package/dist/chunks/cli-1.0.10-v10zh0fh.mjs +2 -0
- package/dist/chunks/cli-1.0.10-v21sb2kt.mjs +2 -0
- package/dist/chunks/cli-1.0.10-vgpbbf1e.mjs +2 -0
- package/dist/chunks/cli-1.0.10-vr6qr3sv.mjs +2 -0
- package/dist/chunks/cli-1.0.10-vs4em692.mjs +3 -0
- package/dist/chunks/cli-1.0.10-vtjr25wp.mjs +2 -0
- package/dist/chunks/cli-1.0.10-vztkwp82.mjs +2 -0
- package/dist/chunks/cli-1.0.10-w3tmnr5j.mjs +20 -0
- package/dist/chunks/cli-1.0.10-wey5x58d.mjs +2 -0
- package/dist/chunks/cli-1.0.10-wg6fyahd.mjs +2 -0
- package/dist/chunks/cli-1.0.10-wg9nsp2f.mjs +2 -0
- package/dist/chunks/cli-1.0.10-wmfmsmjy.mjs +12 -0
- package/dist/chunks/cli-1.0.10-wqjsz7wa.mjs +5494 -0
- package/dist/chunks/cli-1.0.10-wxrka0th.mjs +6 -0
- package/dist/chunks/cli-1.0.10-x6xcvx11.mjs +16 -0
- package/dist/chunks/cli-1.0.10-xpe7rcb5.mjs +2 -0
- package/dist/chunks/cli-1.0.10-xt00tyad.mjs +2 -0
- package/dist/chunks/cli-1.0.10-xtvrvzg5.mjs +17 -0
- package/dist/chunks/cli-1.0.10-xww01et4.mjs +2 -0
- package/dist/chunks/cli-1.0.10-y28ymt76.mjs +2 -0
- package/dist/chunks/cli-1.0.10-yjrzkmfn.mjs +3 -0
- package/dist/chunks/cli-1.0.10-ynhcfc43.mjs +3 -0
- package/dist/chunks/cli-1.0.10-ywhv7cdv.mjs +6 -0
- package/dist/chunks/cli-1.0.10-yxygfxta.mjs +45 -0
- package/dist/chunks/cli-1.0.10-yzdn65j0.mjs +4 -0
- package/dist/chunks/cli-1.0.10-z3xm8f1d.mjs +39 -0
- package/dist/chunks/cli-1.0.10-z4jh4f0p.mjs +2 -0
- package/dist/chunks/cli-1.0.10-z6340h71.mjs +4 -0
- package/dist/chunks/cli-1.0.10-z7wkvxqp.mjs +3 -0
- package/dist/chunks/cli-1.0.10-zkydc4kt.mjs +12 -0
- package/dist/chunks/cli-1.0.10-zqkna2fg.mjs +2 -0
- package/dist/chunks/cli-1.0.10-zsywcbys.mjs +2 -0
- package/dist/chunks/client-1.0.10-7byazp8v.mjs +1 -0
- package/dist/chunks/color-1.0.10-s4c1qp2y.mjs +1 -0
- package/dist/chunks/compact-1.0.10-b8zsezb4.mjs +3 -0
- package/dist/chunks/config-1.0.10-60eqskrh.mjs +1 -0
- package/dist/chunks/config-1.0.10-rbfqh3y0.mjs +1 -0
- package/dist/chunks/constants-1.0.10-z5rz293a.mjs +1 -0
- package/dist/chunks/context-1.0.10-bg5xx3et.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.10-cjhkmk1r.mjs +1 -0
- package/dist/chunks/conversation-1.0.10-3cgadyvt.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.10-zmbzt99b.mjs +1 -0
- package/dist/chunks/copy-1.0.10-dx3pp3q2.mjs +9 -0
- package/dist/chunks/cost-1.0.10-80gfyjq7.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.10-2xk3wyeg.mjs +1 -0
- package/dist/chunks/createSession-1.0.10-sr914pcx.mjs +1 -0
- package/dist/chunks/debug-1.0.10-k0dhnsx3.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.10-fgjm5561.mjs +1446 -0
- package/dist/chunks/desktop-1.0.10-xe4fddd4.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.10-g90zwegz.mjs +1 -0
- package/dist/chunks/detection-1.0.10-bjg1jygr.mjs +1 -0
- package/dist/chunks/diff-1.0.10-79y94xba.mjs +1 -0
- package/dist/chunks/doctor-1.0.10-tvfkxqt6.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.10-w0zh5ae9.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.10-1hr7dsxb.mjs +1 -0
- package/dist/chunks/effort-1.0.10-emjcedez.mjs +10 -0
- package/dist/chunks/engine-1.0.10-ywcrdtr6.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.10-cvy0rrma.mjs +1 -0
- package/dist/chunks/envUtils-1.0.10-cam4ph3k.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.10-1qtvt9sr.mjs +1 -0
- package/dist/chunks/environments-1.0.10-rxaz4r3h.mjs +1 -0
- package/dist/chunks/errors-1.0.10-qy5ag074.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.10-g3e3zz4e.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.0.10-s07vn416.mjs +1 -0
- package/dist/chunks/exit-1.0.10-ezwxcfqx.mjs +1 -0
- package/dist/chunks/explorer-1.0.10-a47gdyfa.mjs +1 -0
- package/dist/chunks/export-1.0.10-671yvkk4.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.10-j1sw8ax0.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.10-y7grm0jw.mjs +1 -0
- package/dist/chunks/fast-1.0.10-s9pbpm3b.mjs +1 -0
- package/dist/chunks/feedback-1.0.10-cyrkbx7y.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.10-5ycy04fg.mjs +1 -0
- package/dist/chunks/git-1.0.10-rxj88p2f.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.10-brf3k7b6.mjs +1 -0
- package/dist/chunks/goal-1.0.10-xbq2asg7.mjs +4 -0
- package/dist/chunks/grove-1.0.10-9n9svmaz.mjs +1 -0
- package/dist/chunks/growthbook-1.0.10-w933p6sp.mjs +1 -0
- package/dist/chunks/headless-1.0.10-wmgrqfkj.mjs +2 -0
- package/dist/chunks/heapdump-1.0.10-g62zynw6.mjs +6 -0
- package/dist/chunks/help-1.0.10-f0gt1j1w.mjs +1 -0
- package/dist/chunks/hookChains-1.0.10-bepy9pvw.mjs +3 -0
- package/dist/chunks/hooks-1.0.10-gw89vhja.mjs +79 -0
- package/dist/chunks/hooks-1.0.10-mvry337c.mjs +1 -0
- package/dist/chunks/ide-1.0.10-f332q2j4.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.10-a3r2bp6h.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.10-vw1vtayk.mjs +1 -0
- package/dist/chunks/index-1.0.10-0k08n5bq.mjs +1 -0
- package/dist/chunks/index-1.0.10-4mt0jdmh.mjs +9 -0
- package/dist/chunks/index-1.0.10-7t360587.mjs +30 -0
- package/dist/chunks/index-1.0.10-9bfdndy5.mjs +9 -0
- package/dist/chunks/index-1.0.10-am7dnmp4.mjs +2 -0
- package/dist/chunks/index-1.0.10-bwk5zyqy.mjs +2 -0
- package/dist/chunks/index-1.0.10-dhnc5tvd.mjs +1 -0
- package/dist/chunks/index-1.0.10-edby3nt5.mjs +1 -0
- package/dist/chunks/index-1.0.10-fmdn53xt.mjs +5 -0
- package/dist/chunks/index-1.0.10-ggchxhyq.mjs +1 -0
- package/dist/chunks/index-1.0.10-j69vq8sg.mjs +1 -0
- package/dist/chunks/index-1.0.10-kgtk88f2.mjs +1 -0
- package/dist/chunks/index-1.0.10-kva9fdeh.mjs +1 -0
- package/dist/chunks/index-1.0.10-my9gs07r.mjs +17 -0
- package/dist/chunks/index-1.0.10-nhbtysa8.mjs +1 -0
- package/dist/chunks/index-1.0.10-nzyycr95.mjs +1 -0
- package/dist/chunks/index-1.0.10-q5nbszvz.mjs +1 -0
- package/dist/chunks/index-1.0.10-s19bfcep.mjs +1 -0
- package/dist/chunks/index-1.0.10-t31zjmfq.mjs +1 -0
- package/dist/chunks/index-1.0.10-t6nhh2kg.mjs +1 -0
- package/dist/chunks/index-1.0.10-vejq9y46.mjs +1 -0
- package/dist/chunks/index-1.0.10-y00daz8n.mjs +1 -0
- package/dist/chunks/index-1.0.10-ze7wmpkc.mjs +1 -0
- package/dist/chunks/init-1.0.10-6h103d8q.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.10-d867e3x4.mjs +1 -0
- package/dist/chunks/ink-1.0.10-nk1fq1dm.mjs +1 -0
- package/dist/chunks/insights-1.0.10-nd5bf3tn.mjs +870 -0
- package/dist/chunks/install-1.0.10-c52kdgj6.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.10-ps0750kg.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.10-7wkt6hc4.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.10-a3heyvnj.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.10-wxcke8v7.mjs +1 -0
- package/dist/chunks/keybindings-1.0.10-p7wqtqkd.mjs +2 -0
- package/dist/chunks/knowledge-1.0.10-c42940vh.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.10-50a46a7m.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.10-py3qpey9.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.10-39nwmnvx.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.10-6jmcymem.mjs +1 -0
- package/dist/chunks/log-1.0.10-eca0cp5t.mjs +1 -0
- package/dist/chunks/main-1.0.10-9z91b6fs.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.10-4jrvqcr0.mjs +1 -0
- package/dist/chunks/mcp-1.0.10-4c5c48sr.mjs +4 -0
- package/dist/chunks/mcp-1.0.10-vqvqv3j1.mjs +1 -0
- package/dist/chunks/mcp-1.0.10-xkcvhw01.mjs +17 -0
- package/dist/chunks/mcpb-1.0.10-z4af6k7x.mjs +1 -0
- package/dist/chunks/memory-1.0.10-0wrb9gdn.mjs +3 -0
- package/dist/chunks/model-1.0.10-9qthsb3v.mjs +1 -0
- package/dist/chunks/model-1.0.10-r9kgqf6z.mjs +2 -0
- package/dist/chunks/node-1.0.10-hfwnhf6d.mjs +12 -0
- package/dist/chunks/oauth-1.0.10-m902vg8r.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.10-q62abztc.mjs +14 -0
- package/dist/chunks/output-style-1.0.10-563k721y.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-1.0.10-txxn3gh8.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.10-wj3nyx2d.mjs +1 -0
- package/dist/chunks/parser-1.0.10-fjc5mtxc.mjs +1 -0
- package/dist/chunks/passes-1.0.10-x1capf33.mjs +1 -0
- package/dist/chunks/permissions-1.0.10-4my34k8d.mjs +3 -0
- package/dist/chunks/permissions-1.0.10-5n02mr16.mjs +1 -0
- package/dist/chunks/plan-1.0.10-hyvxe8tv.mjs +1 -0
- package/dist/chunks/plist-1.0.10-pp45jg89.mjs +1 -0
- package/dist/chunks/plugin-1.0.10-hstxrh5v.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.10-xcrwztkb.mjs +1 -0
- package/dist/chunks/plugins-1.0.10-919c0yk2.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.10-jn8fp6bd.mjs +2 -0
- package/dist/chunks/print-1.0.10-fztd9aqa.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.10-dd3na1c7.mjs +1 -0
- package/dist/chunks/process-1.0.10-3spc6fy0.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.10-tam7qz77.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.10-rc50ctef.mjs +9 -0
- package/dist/chunks/prompt-1.0.10-hgr1z03f.mjs +1 -0
- package/dist/chunks/prompt-1.0.10-mtcwzabt.mjs +1 -0
- package/dist/chunks/prompts-1.0.10-qfcrm3h0.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.10-maw1nc01.mjs +13 -0
- package/dist/chunks/provider-1.0.10-w8e0x4wg.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.10-vrczr90z.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.10-hsvbzg8v.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.10-tz7t0azd.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.10-c2xzhak0.mjs +34 -0
- package/dist/chunks/registry-1.0.10-vvp815a7.mjs +1 -0
- package/dist/chunks/release-notes-1.0.10-bddj03ct.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.10-4kyzkvgp.mjs +2 -0
- package/dist/chunks/remote-env-1.0.10-7w2v6jch.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.10-gjgd2e0d.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.10-y8fkrvm4.mjs +1 -0
- package/dist/chunks/rename-1.0.10-q51x2bn9.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.10-1qzwcpyn.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.10-cnfhh6dg.mjs +1 -0
- package/dist/chunks/resume-1.0.10-f2k9he8x.mjs +2 -0
- package/dist/chunks/rewind-1.0.10-8b4h21at.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.10-0h685kw2.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.0.10-xrygk6eq.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.0.10-azs01x6x.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.10-xm1nasf6.mjs +1 -0
- package/dist/chunks/session-1.0.10-ab9eeddq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.10-ndj6yx0m.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.10-0p2fqbx6.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.10-64bjn2kx.mjs +1 -0
- package/dist/chunks/settings-1.0.10-r6qxxnnb.mjs +1 -0
- package/dist/chunks/setup-1.0.10-k7szer1n.mjs +5 -0
- package/dist/chunks/sinks-1.0.10-dzct0b1n.mjs +1 -0
- package/dist/chunks/skills-1.0.10-02531p29.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.10-n98x8y1n.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.10-wzb027hm.mjs +1 -0
- package/dist/chunks/state-1.0.10-665t7j4r.mjs +1 -0
- package/dist/chunks/stats-1.0.10-x6tdkrp1.mjs +6 -0
- package/dist/chunks/status-1.0.10-wtkz1g25.mjs +1 -0
- package/dist/chunks/stickers-1.0.10-zgzqw4ax.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.10-37p3k517.mjs +1 -0
- package/dist/chunks/tasks-1.0.10-3kk1hf1s.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.10-1qnkvg1q.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.10-d265azzr.mjs +1 -0
- package/dist/chunks/teleport-1.0.10-qr57q6d2.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.10-939m4hg2.mjs +1 -0
- package/dist/chunks/theme-1.0.10-jxwk08gg.mjs +1 -0
- package/dist/chunks/thinkback-1.0.10-8v8fca1v.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.10-29vpx0es.mjs +1 -0
- package/dist/chunks/toolPool-1.0.10-r9t7snm8.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.10-rdhjyrvv.mjs +1 -0
- package/dist/chunks/tools-1.0.10-660q1vgv.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.10-jzs4zx23.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.10-jhv703h0.mjs +69 -0
- package/dist/chunks/types-1.0.10-1sbcc2k4.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.10-1dmv8afw.mjs +4 -0
- package/dist/chunks/update-1.0.10-yg386a5b.mjs +88 -0
- package/dist/chunks/upgrade-1.0.10-910xk23j.mjs +1 -0
- package/dist/chunks/upload-1.0.10-tn5nw6e4.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.10-d1ywz5zh.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.10-frjeqn6d.mjs +1 -0
- package/dist/chunks/usage-1.0.10-2k10zj8d.mjs +1 -0
- package/dist/chunks/util-1.0.10-hj993p0h.mjs +1 -0
- package/dist/chunks/utils-1.0.10-47e3f2py.mjs +1 -0
- package/dist/chunks/vim-1.0.10-j5k011cf.mjs +1 -0
- package/dist/chunks/watchLoop-1.0.10-d5k4546s.mjs +13 -0
- package/dist/chunks/watcher-1.0.10-apvqyt0v.mjs +1 -0
- package/dist/chunks/wiki-1.0.10-5stbmxsm.mjs +132 -0
- package/dist/chunks/workflows-1.0.10-2j95kr59.mjs +1 -0
- package/dist/chunks/worktree-1.0.10-atjzgk92.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.10-knmjfqre.mjs +1 -0
- package/dist/chunks/wrapper-1.0.10-bxvd7yje.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/dist/help-workflow.txt +12 -0
- package/dist/help.txt +1 -0
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.8-eje3a59q.mjs +0 -1
- package/dist/chunks/App-1.0.8-d2xvppcs.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.8-46gxh8v1.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.8-14hqa3x1.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.8-wbj2exgg.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.8-qw286z98.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.8-d7f3p2f2.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.8-pz9144b6.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.8-kekremjy.mjs +0 -7
- package/dist/chunks/Doctor-1.0.8-y6yd83ya.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.8-sde0qmj8.mjs +0 -6
- package/dist/chunks/Grove-1.0.8-vaqh13j1.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.8-pyx0hrdr.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.8-9xkjpkdq.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.8-sg0zxdxs.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.8-sa3w4fkf.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.8-j2grnf78.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.8-rhr4npaj.mjs +0 -1
- package/dist/chunks/REPL-1.0.8-r0frprp1.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.8-y8q8w4g5.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.8-6r0afvcw.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.8-8k0msa15.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.8-3y1gzb63.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.8-sr835vjm.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.8-j4ewgs24.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.8-g3jtn9j5.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.8-6fmeeyg3.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.8-07gr4v39.mjs +0 -1
- package/dist/chunks/add-dir-1.0.8-zp69mch9.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.8-0tz8xbhq.mjs +0 -1
- package/dist/chunks/agents-1.0.8-7b7qbe1b.mjs +0 -3
- package/dist/chunks/agents-1.0.8-hcpq0qtv.mjs +0 -110
- package/dist/chunks/api-1.0.8-99jqr2rt.mjs +0 -1
- package/dist/chunks/asciicast-1.0.8-hdy3b2tb.mjs +0 -1
- package/dist/chunks/assistant-1.0.8-wf6vgaxz.mjs +0 -1
- package/dist/chunks/auth-1.0.8-by49xah8.mjs +0 -1
- package/dist/chunks/auth-1.0.8-jhga5hc5.mjs +0 -1
- package/dist/chunks/autoMode-1.0.8-9hknbsrn.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.8-n0axyces.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.8-tthnkm6t.mjs +0 -1
- package/dist/chunks/branch-1.0.8-v0vyzjd1.mjs +0 -4
- package/dist/chunks/bridge-1.0.8-9em7eyw2.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.8-rc3gw5mw.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.8-mmzmxjzj.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.8-kys2mqca.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.8-ky397f5d.mjs +0 -1
- package/dist/chunks/btw-1.0.8-ppch37et.mjs +0 -1
- package/dist/chunks/buddy-1.0.8-3j0jmxqv.mjs +0 -3
- package/dist/chunks/cacache-1.0.8-npx6886e.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.8-q0q9v06f.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.8-8g3sbes5.mjs +0 -4
- package/dist/chunks/caches-1.0.8-c44ykbdq.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.8-3718a4er.mjs +0 -1
- package/dist/chunks/claudemd-1.0.8-mrm97672.mjs +0 -1
- package/dist/chunks/clear-1.0.8-60s1dmkm.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.8-s7tt8cvq.mjs +0 -1
- package/dist/chunks/cli-1.0.8-0g25h6r5.mjs +0 -3
- package/dist/chunks/cli-1.0.8-0j3a18cb.mjs +0 -2
- package/dist/chunks/cli-1.0.8-0w29g9sk.mjs +0 -4
- package/dist/chunks/cli-1.0.8-1r6dnkqd.mjs +0 -45
- package/dist/chunks/cli-1.0.8-1ss6x3zt.mjs +0 -2
- package/dist/chunks/cli-1.0.8-1tmgp7jd.mjs +0 -2
- package/dist/chunks/cli-1.0.8-2tcfa3h7.mjs +0 -26
- package/dist/chunks/cli-1.0.8-2tqdqypv.mjs +0 -2
- package/dist/chunks/cli-1.0.8-2tz4jekt.mjs +0 -2
- package/dist/chunks/cli-1.0.8-2vmb9a3w.mjs +0 -2
- package/dist/chunks/cli-1.0.8-2yyas23w.mjs +0 -2
- package/dist/chunks/cli-1.0.8-330tdbma.mjs +0 -2
- package/dist/chunks/cli-1.0.8-34678988.mjs +0 -2
- package/dist/chunks/cli-1.0.8-3cz8c904.mjs +0 -2
- package/dist/chunks/cli-1.0.8-3j90qb52.mjs +0 -2
- package/dist/chunks/cli-1.0.8-3tw1xf7y.mjs +0 -2
- package/dist/chunks/cli-1.0.8-3vh4nftm.mjs +0 -7
- package/dist/chunks/cli-1.0.8-3w4np76x.mjs +0 -2
- package/dist/chunks/cli-1.0.8-45e9fjb4.mjs +0 -21
- package/dist/chunks/cli-1.0.8-4a1exx1w.mjs +0 -2
- package/dist/chunks/cli-1.0.8-4vzmdadp.mjs +0 -2
- package/dist/chunks/cli-1.0.8-4wgaqcjn.mjs +0 -42
- package/dist/chunks/cli-1.0.8-53cy4zte.mjs +0 -34
- package/dist/chunks/cli-1.0.8-592dqckn.mjs +0 -12
- package/dist/chunks/cli-1.0.8-5awx1w8e.mjs +0 -25
- package/dist/chunks/cli-1.0.8-5dyqgt8m.mjs +0 -15
- package/dist/chunks/cli-1.0.8-5gn5a7p3.mjs +0 -2
- package/dist/chunks/cli-1.0.8-5mzwqxg2.mjs +0 -5
- package/dist/chunks/cli-1.0.8-5r4z4nzj.mjs +0 -9
- package/dist/chunks/cli-1.0.8-5wfqemy1.mjs +0 -17
- package/dist/chunks/cli-1.0.8-5wwge1jc.mjs +0 -3
- package/dist/chunks/cli-1.0.8-628ypgq9.mjs +0 -4
- package/dist/chunks/cli-1.0.8-63tfdt8q.mjs +0 -2
- package/dist/chunks/cli-1.0.8-693zfwne.mjs +0 -2
- package/dist/chunks/cli-1.0.8-6fz5dc6p.mjs +0 -2
- package/dist/chunks/cli-1.0.8-6hge9cq0.mjs +0 -2
- package/dist/chunks/cli-1.0.8-6q1p5cvf.mjs +0 -2
- package/dist/chunks/cli-1.0.8-74y9exyb.mjs +0 -2
- package/dist/chunks/cli-1.0.8-74zbkhyt.mjs +0 -67
- package/dist/chunks/cli-1.0.8-75t3aews.mjs +0 -2
- package/dist/chunks/cli-1.0.8-75ta9404.mjs +0 -2
- package/dist/chunks/cli-1.0.8-7b6c3csb.mjs +0 -2
- package/dist/chunks/cli-1.0.8-7khq3d03.mjs +0 -2
- package/dist/chunks/cli-1.0.8-7p8001bq.mjs +0 -2
- package/dist/chunks/cli-1.0.8-7tm0v9g4.mjs +0 -2
- package/dist/chunks/cli-1.0.8-845srnq2.mjs +0 -2
- package/dist/chunks/cli-1.0.8-8aa4g8k7.mjs +0 -9
- package/dist/chunks/cli-1.0.8-8bymhd85.mjs +0 -2
- package/dist/chunks/cli-1.0.8-8d0pym8n.mjs +0 -4
- package/dist/chunks/cli-1.0.8-8eace15k.mjs +0 -2
- package/dist/chunks/cli-1.0.8-8f8079r1.mjs +0 -2
- package/dist/chunks/cli-1.0.8-8g4cyspe.mjs +0 -2
- package/dist/chunks/cli-1.0.8-9az1bj5r.mjs +0 -2
- package/dist/chunks/cli-1.0.8-9cg23m77.mjs +0 -2
- package/dist/chunks/cli-1.0.8-9d98s5n7.mjs +0 -2
- package/dist/chunks/cli-1.0.8-9e91trv9.mjs +0 -4
- package/dist/chunks/cli-1.0.8-9fsgsfsr.mjs +0 -2
- package/dist/chunks/cli-1.0.8-9kjmxaz9.mjs +0 -2
- package/dist/chunks/cli-1.0.8-9ten5rvg.mjs +0 -3
- package/dist/chunks/cli-1.0.8-9y02shjc.mjs +0 -6
- package/dist/chunks/cli-1.0.8-a227an7n.mjs +0 -4
- package/dist/chunks/cli-1.0.8-a5h5dhvb.mjs +0 -2
- package/dist/chunks/cli-1.0.8-a95nzf63.mjs +0 -3
- package/dist/chunks/cli-1.0.8-aac9erft.mjs +0 -18
- package/dist/chunks/cli-1.0.8-abdc5b5p.mjs +0 -12
- package/dist/chunks/cli-1.0.8-acrtv429.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ah0px9dq.mjs +0 -2
- package/dist/chunks/cli-1.0.8-apm2cwth.mjs +0 -2
- package/dist/chunks/cli-1.0.8-b1a558ty.mjs +0 -2
- package/dist/chunks/cli-1.0.8-b3rgrfhx.mjs +0 -2
- package/dist/chunks/cli-1.0.8-bce7mfng.mjs +0 -2
- package/dist/chunks/cli-1.0.8-bf89pdxw.mjs +0 -3
- package/dist/chunks/cli-1.0.8-by017547.mjs +0 -2
- package/dist/chunks/cli-1.0.8-c1m2f995.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ch5nmk6z.mjs +0 -6
- package/dist/chunks/cli-1.0.8-ckzwfn2p.mjs +0 -2
- package/dist/chunks/cli-1.0.8-cnp4f1p9.mjs +0 -2
- package/dist/chunks/cli-1.0.8-cvanywgv.mjs +0 -4
- package/dist/chunks/cli-1.0.8-czw324tt.mjs +0 -2
- package/dist/chunks/cli-1.0.8-djnb6kg8.mjs +0 -2
- package/dist/chunks/cli-1.0.8-dnyn56hh.mjs +0 -2
- package/dist/chunks/cli-1.0.8-dtv7cx85.mjs +0 -2
- package/dist/chunks/cli-1.0.8-e1je8bbg.mjs +0 -2
- package/dist/chunks/cli-1.0.8-e1rqh3t5.mjs +0 -6
- package/dist/chunks/cli-1.0.8-e226v5zv.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ebmqnhat.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ecej8h97.mjs +0 -2
- package/dist/chunks/cli-1.0.8-eqnts1fr.mjs +0 -8
- package/dist/chunks/cli-1.0.8-erf5fgz4.mjs +0 -133
- package/dist/chunks/cli-1.0.8-erzw5831.mjs +0 -133
- package/dist/chunks/cli-1.0.8-evcjjrhq.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ewrnp0r9.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ezvghx0v.mjs +0 -2
- package/dist/chunks/cli-1.0.8-f149d1z0.mjs +0 -2
- package/dist/chunks/cli-1.0.8-f46gq37z.mjs +0 -2
- package/dist/chunks/cli-1.0.8-fch83jc9.mjs +0 -2
- package/dist/chunks/cli-1.0.8-fmf0f85n.mjs +0 -2
- package/dist/chunks/cli-1.0.8-fnnr43c2.mjs +0 -2
- package/dist/chunks/cli-1.0.8-fnwydrx1.mjs +0 -3
- package/dist/chunks/cli-1.0.8-frbc2pan.mjs +0 -2
- package/dist/chunks/cli-1.0.8-fs06q8cs.mjs +0 -2
- package/dist/chunks/cli-1.0.8-g2934g2e.mjs +0 -2
- package/dist/chunks/cli-1.0.8-g8tpbbvt.mjs +0 -3
- package/dist/chunks/cli-1.0.8-g9h4ay1q.mjs +0 -2
- package/dist/chunks/cli-1.0.8-gmf61bcb.mjs +0 -2
- package/dist/chunks/cli-1.0.8-gsr9wqaw.mjs +0 -39
- package/dist/chunks/cli-1.0.8-gv80trp6.mjs +0 -2
- package/dist/chunks/cli-1.0.8-h44d6jh3.mjs +0 -2
- package/dist/chunks/cli-1.0.8-hbgss955.mjs +0 -2
- package/dist/chunks/cli-1.0.8-hgreyqck.mjs +0 -2
- package/dist/chunks/cli-1.0.8-hkkcv1tv.mjs +0 -2
- package/dist/chunks/cli-1.0.8-htq95mje.mjs +0 -2
- package/dist/chunks/cli-1.0.8-hy7rca6f.mjs +0 -3
- package/dist/chunks/cli-1.0.8-jy0q2dkm.mjs +0 -2
- package/dist/chunks/cli-1.0.8-jy7hzejg.mjs +0 -2
- package/dist/chunks/cli-1.0.8-k7vkjf05.mjs +0 -2
- package/dist/chunks/cli-1.0.8-k90vtehz.mjs +0 -2
- package/dist/chunks/cli-1.0.8-ke76gxzw.mjs +0 -199
- package/dist/chunks/cli-1.0.8-kfv9esqs.mjs +0 -3
- package/dist/chunks/cli-1.0.8-kh51d8mn.mjs +0 -2
- package/dist/chunks/cli-1.0.8-kxhxnt9t.mjs +0 -2
- package/dist/chunks/cli-1.0.8-kzrdbzd1.mjs +0 -2
- package/dist/chunks/cli-1.0.8-kzyrncv0.mjs +0 -2
- package/dist/chunks/cli-1.0.8-m2w20tkx.mjs +0 -2
- package/dist/chunks/cli-1.0.8-m6fhqq8r.mjs +0 -2
- package/dist/chunks/cli-1.0.8-m9cg4s2e.mjs +0 -2
- package/dist/chunks/cli-1.0.8-mbhxente.mjs +0 -2
- package/dist/chunks/cli-1.0.8-mhhby5pn.mjs +0 -6
- package/dist/chunks/cli-1.0.8-mn87n778.mjs +0 -2
- package/dist/chunks/cli-1.0.8-mrepsey6.mjs +0 -12
- package/dist/chunks/cli-1.0.8-n2thtekm.mjs +0 -2
- package/dist/chunks/cli-1.0.8-n4rd5y17.mjs +0 -2
- package/dist/chunks/cli-1.0.8-nmrvp3xa.mjs +0 -2
- package/dist/chunks/cli-1.0.8-nyq2vcvp.mjs +0 -18
- package/dist/chunks/cli-1.0.8-p2tp1j0a.mjs +0 -2
- package/dist/chunks/cli-1.0.8-p4egaq4j.mjs +0 -5
- package/dist/chunks/cli-1.0.8-p8h84zc9.mjs +0 -3
- package/dist/chunks/cli-1.0.8-pbxke3zm.mjs +0 -24
- package/dist/chunks/cli-1.0.8-pemd6sje.mjs +0 -2
- package/dist/chunks/cli-1.0.8-pzesgrb2.mjs +0 -2
- package/dist/chunks/cli-1.0.8-q2myd223.mjs +0 -2
- package/dist/chunks/cli-1.0.8-q6x8n8kc.mjs +0 -2
- package/dist/chunks/cli-1.0.8-qbrw3wf3.mjs +0 -3
- package/dist/chunks/cli-1.0.8-qcf0zmve.mjs +0 -50
- package/dist/chunks/cli-1.0.8-qhcghw02.mjs +0 -2
- package/dist/chunks/cli-1.0.8-qjcxwb3c.mjs +0 -2
- package/dist/chunks/cli-1.0.8-qss5sph3.mjs +0 -59
- package/dist/chunks/cli-1.0.8-qzqze1a1.mjs +0 -2
- package/dist/chunks/cli-1.0.8-r3ecr05v.mjs +0 -2
- package/dist/chunks/cli-1.0.8-r4zbpasa.mjs +0 -24
- package/dist/chunks/cli-1.0.8-rdd0jr2h.mjs +0 -2
- package/dist/chunks/cli-1.0.8-rg1csg40.mjs +0 -2
- package/dist/chunks/cli-1.0.8-rh93fw0p.mjs +0 -2
- package/dist/chunks/cli-1.0.8-rna8rhza.mjs +0 -2
- package/dist/chunks/cli-1.0.8-rnkrr7ma.mjs +0 -2
- package/dist/chunks/cli-1.0.8-rxf0zjys.mjs +0 -2
- package/dist/chunks/cli-1.0.8-rxfx9v7j.mjs +0 -2
- package/dist/chunks/cli-1.0.8-s5kcxz2r.mjs +0 -4
- package/dist/chunks/cli-1.0.8-s6nsgb78.mjs +0 -2
- package/dist/chunks/cli-1.0.8-sbf6n56q.mjs +0 -2
- package/dist/chunks/cli-1.0.8-se674t5h.mjs +0 -4
- package/dist/chunks/cli-1.0.8-secda9xj.mjs +0 -2
- package/dist/chunks/cli-1.0.8-sqbaxhfc.mjs +0 -16
- package/dist/chunks/cli-1.0.8-swq5n54q.mjs +0 -2
- package/dist/chunks/cli-1.0.8-swts6q29.mjs +0 -2
- package/dist/chunks/cli-1.0.8-szvwf6r4.mjs +0 -2
- package/dist/chunks/cli-1.0.8-t5jg9csm.mjs +0 -2
- package/dist/chunks/cli-1.0.8-tdhxr84n.mjs +0 -3
- package/dist/chunks/cli-1.0.8-tfjhtagk.mjs +0 -2
- package/dist/chunks/cli-1.0.8-tpazbzcz.mjs +0 -2
- package/dist/chunks/cli-1.0.8-tq72b6bb.mjs +0 -2
- package/dist/chunks/cli-1.0.8-tqf6s7ht.mjs +0 -58
- package/dist/chunks/cli-1.0.8-tz68cg1p.mjs +0 -2
- package/dist/chunks/cli-1.0.8-v1rafynv.mjs +0 -2
- package/dist/chunks/cli-1.0.8-v75s19rg.mjs +0 -2
- package/dist/chunks/cli-1.0.8-vb0by9ay.mjs +0 -2
- package/dist/chunks/cli-1.0.8-vhjjjs1z.mjs +0 -24
- package/dist/chunks/cli-1.0.8-vka62cmh.mjs +0 -2
- package/dist/chunks/cli-1.0.8-vvy0bc0g.mjs +0 -1
- package/dist/chunks/cli-1.0.8-vztgm8r0.mjs +0 -2
- package/dist/chunks/cli-1.0.8-w5wjckph.mjs +0 -25
- package/dist/chunks/cli-1.0.8-w6atgaqw.mjs +0 -2
- package/dist/chunks/cli-1.0.8-wm0h5bqt.mjs +0 -3
- package/dist/chunks/cli-1.0.8-x1387pp6.mjs +0 -2
- package/dist/chunks/cli-1.0.8-x2z1s2gm.mjs +0 -2
- package/dist/chunks/cli-1.0.8-x3bjpevp.mjs +0 -12
- package/dist/chunks/cli-1.0.8-x4hcncpt.mjs +0 -2
- package/dist/chunks/cli-1.0.8-xcqdbka0.mjs +0 -2
- package/dist/chunks/cli-1.0.8-xhz9dm09.mjs +0 -2
- package/dist/chunks/cli-1.0.8-xka5xbz5.mjs +0 -2
- package/dist/chunks/cli-1.0.8-xv5yp3w6.mjs +0 -2
- package/dist/chunks/cli-1.0.8-xxrng2p1.mjs +0 -15
- package/dist/chunks/cli-1.0.8-xzp5af2t.mjs +0 -2
- package/dist/chunks/cli-1.0.8-y7jd923h.mjs +0 -2
- package/dist/chunks/cli-1.0.8-yb3vesbt.mjs +0 -4
- package/dist/chunks/cli-1.0.8-yc4a0111.mjs +0 -20
- package/dist/chunks/cli-1.0.8-ycxmnmhs.mjs +0 -3
- package/dist/chunks/cli-1.0.8-ykwgcdbt.mjs +0 -5476
- package/dist/chunks/cli-1.0.8-yzc0z6ex.mjs +0 -2
- package/dist/chunks/cli-1.0.8-z49w3x0w.mjs +0 -4
- package/dist/chunks/cli-1.0.8-z6x3zsb0.mjs +0 -2
- package/dist/chunks/cli-1.0.8-z79r5re2.mjs +0 -17
- package/dist/chunks/cli-1.0.8-z7v2b551.mjs +0 -2
- package/dist/chunks/cli-1.0.8-z96bbp08.mjs +0 -6
- package/dist/chunks/cli-1.0.8-zh2ygfav.mjs +0 -2
- package/dist/chunks/cli-1.0.8-zjckzq5j.mjs +0 -18
- package/dist/chunks/cli-1.0.8-znefv1yp.mjs +0 -2
- package/dist/chunks/cli-1.0.8-zza8ns8c.mjs +0 -15
- package/dist/chunks/client-1.0.8-n7dt1rfw.mjs +0 -1
- package/dist/chunks/color-1.0.8-jxfasz8x.mjs +0 -1
- package/dist/chunks/compact-1.0.8-jnbzy2qh.mjs +0 -3
- package/dist/chunks/config-1.0.8-p850nj3c.mjs +0 -1
- package/dist/chunks/config-1.0.8-xg117aq2.mjs +0 -1
- package/dist/chunks/constants-1.0.8-ms4fbs66.mjs +0 -1
- package/dist/chunks/context-1.0.8-tb27h7kb.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.8-1ry2t8be.mjs +0 -1
- package/dist/chunks/conversation-1.0.8-v96pn05v.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.8-cs9jt8ks.mjs +0 -1
- package/dist/chunks/copy-1.0.8-g8d8msxn.mjs +0 -9
- package/dist/chunks/cost-1.0.8-kx2ejbds.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.8-2wvpn7y4.mjs +0 -1
- package/dist/chunks/createSession-1.0.8-ecm6dynn.mjs +0 -1
- package/dist/chunks/debug-1.0.8-cphv9b4j.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.8-2k34bnzt.mjs +0 -1446
- package/dist/chunks/desktop-1.0.8-w6qk81xg.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.8-q2e17deh.mjs +0 -1
- package/dist/chunks/detection-1.0.8-adg3pmtx.mjs +0 -1
- package/dist/chunks/diff-1.0.8-kcsv429q.mjs +0 -1
- package/dist/chunks/doctor-1.0.8-4807n5ga.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.8-thmvp0a8.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.8-hhf06cvs.mjs +0 -1
- package/dist/chunks/effort-1.0.8-k9jy349z.mjs +0 -10
- package/dist/chunks/engine-1.0.8-swnh66g9.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.8-8066f8x3.mjs +0 -1
- package/dist/chunks/envUtils-1.0.8-hvdz25s8.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.8-dgef2ag8.mjs +0 -1
- package/dist/chunks/environments-1.0.8-8kxx7cf7.mjs +0 -1
- package/dist/chunks/errors-1.0.8-yrb0dfde.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.8-2fp656s9.mjs +0 -1
- package/dist/chunks/exit-1.0.8-axxrxks1.mjs +0 -1
- package/dist/chunks/explorer-1.0.8-txzsk7g4.mjs +0 -1
- package/dist/chunks/export-1.0.8-yxhs2z6f.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.8-mkde8ry2.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.8-zq1zsj4c.mjs +0 -1
- package/dist/chunks/fast-1.0.8-dm74897t.mjs +0 -1
- package/dist/chunks/feedback-1.0.8-wnsh14ya.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.8-xp13dv5e.mjs +0 -1
- package/dist/chunks/git-1.0.8-emhr4f0a.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.8-q88vb6k1.mjs +0 -1
- package/dist/chunks/goal-1.0.8-vx7pfbph.mjs +0 -4
- package/dist/chunks/grove-1.0.8-4vn920ab.mjs +0 -1
- package/dist/chunks/growthbook-1.0.8-ktn0scz1.mjs +0 -1
- package/dist/chunks/headless-1.0.8-kgkf00rm.mjs +0 -2
- package/dist/chunks/heapdump-1.0.8-e5g8ycqp.mjs +0 -6
- package/dist/chunks/help-1.0.8-g5kftejd.mjs +0 -1
- package/dist/chunks/hookChains-1.0.8-jnd1g9vp.mjs +0 -3
- package/dist/chunks/hooks-1.0.8-d343gmd5.mjs +0 -1
- package/dist/chunks/hooks-1.0.8-xq482xcs.mjs +0 -79
- package/dist/chunks/ide-1.0.8-4veg8hzd.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.8-93bk96t4.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.8-zkj9tf58.mjs +0 -1
- package/dist/chunks/index-1.0.8-0pnvq37m.mjs +0 -2
- package/dist/chunks/index-1.0.8-1pa1v81a.mjs +0 -1
- package/dist/chunks/index-1.0.8-464f1j1b.mjs +0 -1
- package/dist/chunks/index-1.0.8-4zsx151v.mjs +0 -1
- package/dist/chunks/index-1.0.8-7wqrymcz.mjs +0 -2
- package/dist/chunks/index-1.0.8-8qzz6s1v.mjs +0 -1
- package/dist/chunks/index-1.0.8-91cpv5tb.mjs +0 -9
- package/dist/chunks/index-1.0.8-9x499a6f.mjs +0 -1
- package/dist/chunks/index-1.0.8-aqm7z1xs.mjs +0 -1
- package/dist/chunks/index-1.0.8-bha1edzd.mjs +0 -1
- package/dist/chunks/index-1.0.8-bhzqmht2.mjs +0 -1
- package/dist/chunks/index-1.0.8-dh80510b.mjs +0 -1
- package/dist/chunks/index-1.0.8-hdnvwr7c.mjs +0 -1
- package/dist/chunks/index-1.0.8-ht187zbt.mjs +0 -17
- package/dist/chunks/index-1.0.8-jj36eqgv.mjs +0 -1
- package/dist/chunks/index-1.0.8-p16qr0gk.mjs +0 -1
- package/dist/chunks/index-1.0.8-pejsn3j4.mjs +0 -1
- package/dist/chunks/index-1.0.8-pzn6kwcz.mjs +0 -1
- package/dist/chunks/index-1.0.8-szryar06.mjs +0 -9
- package/dist/chunks/index-1.0.8-thkaetpe.mjs +0 -5
- package/dist/chunks/index-1.0.8-tnpscb0d.mjs +0 -1
- package/dist/chunks/index-1.0.8-xxdv7dxk.mjs +0 -1
- package/dist/chunks/index-1.0.8-z5xdfxxw.mjs +0 -30
- package/dist/chunks/init-1.0.8-krd7wa3v.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.8-ftx1k41m.mjs +0 -1
- package/dist/chunks/ink-1.0.8-pteq28sp.mjs +0 -1
- package/dist/chunks/insights-1.0.8-mb2z8g5h.mjs +0 -870
- package/dist/chunks/install-1.0.8-s99z78an.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.8-r07c7fc8.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.8-mq0zjdf6.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.8-00jpcry8.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.8-3z1ey7fr.mjs +0 -1
- package/dist/chunks/keybindings-1.0.8-wenkty39.mjs +0 -2
- package/dist/chunks/knowledge-1.0.8-cjdkk8mb.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.8-rncrmhd0.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.8-9ry9xbfw.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.8-5e422tv0.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.8-gw0mb3vq.mjs +0 -1
- package/dist/chunks/log-1.0.8-bhyqzqd4.mjs +0 -1
- package/dist/chunks/main-1.0.8-sv9em0tk.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.8-ey5201g9.mjs +0 -1
- package/dist/chunks/mcp-1.0.8-0wkq1z2f.mjs +0 -1
- package/dist/chunks/mcp-1.0.8-hft3ww8h.mjs +0 -17
- package/dist/chunks/mcp-1.0.8-k2y8akh4.mjs +0 -4
- package/dist/chunks/mcpb-1.0.8-6d4d5qg6.mjs +0 -1
- package/dist/chunks/memory-1.0.8-bhfq1tpv.mjs +0 -3
- package/dist/chunks/model-1.0.8-9x1n1hs4.mjs +0 -2
- package/dist/chunks/model-1.0.8-f30q5v3y.mjs +0 -1
- package/dist/chunks/node-1.0.8-z64w4mf3.mjs +0 -12
- package/dist/chunks/oauth-1.0.8-7vjm8xxp.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.8-dxqbym7v.mjs +0 -14
- package/dist/chunks/output-style-1.0.8-j3vsn3xx.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.8-57wby5pw.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.8-fa21hp3j.mjs +0 -1
- package/dist/chunks/parser-1.0.8-eddksp6m.mjs +0 -1
- package/dist/chunks/passes-1.0.8-82cxmwxv.mjs +0 -1
- package/dist/chunks/permissions-1.0.8-9qwtkcvw.mjs +0 -1
- package/dist/chunks/permissions-1.0.8-hkpezdb6.mjs +0 -3
- package/dist/chunks/plan-1.0.8-t7cypg7z.mjs +0 -1
- package/dist/chunks/plist-1.0.8-tx4wgdc5.mjs +0 -1
- package/dist/chunks/plugin-1.0.8-fpfj5qcx.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.8-htw7er4z.mjs +0 -1
- package/dist/chunks/plugins-1.0.8-89t24bsm.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.8-caxsc3mp.mjs +0 -2
- package/dist/chunks/print-1.0.8-491vxbzs.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.8-m25zra7r.mjs +0 -1
- package/dist/chunks/process-1.0.8-3tzpsdmr.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.8-czb8ax1e.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.8-z2qz58yf.mjs +0 -9
- package/dist/chunks/prompt-1.0.8-2bbvxeh7.mjs +0 -1
- package/dist/chunks/prompt-1.0.8-ftnsddxg.mjs +0 -1
- package/dist/chunks/prompts-1.0.8-7jmnssxc.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.8-y3rebjd9.mjs +0 -13
- package/dist/chunks/provider-1.0.8-zrx7vyqk.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.8-n4b3xs5v.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.8-j9gx7a1v.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.8-084n6z58.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.8-e9k91bmz.mjs +0 -34
- package/dist/chunks/registry-1.0.8-p8bc2ppg.mjs +0 -1
- package/dist/chunks/release-notes-1.0.8-wdtevpan.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.8-crrx8jkj.mjs +0 -2
- package/dist/chunks/remote-env-1.0.8-yb4czxha.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.8-cg38st7c.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.8-g9cx4dmb.mjs +0 -1
- package/dist/chunks/rename-1.0.8-c263drxy.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.8-51065xd1.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.8-n5f7d6tk.mjs +0 -1
- package/dist/chunks/resume-1.0.8-20r9g9a8.mjs +0 -2
- package/dist/chunks/rewind-1.0.8-1shxcx6h.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.8-v3mryhnd.mjs +0 -1
- package/dist/chunks/sandbox-adapter-1.0.8-db8n3sf2.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.8-8ysakwfc.mjs +0 -1
- package/dist/chunks/session-1.0.8-nf98ege7.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.8-j7e3zz3z.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.8-tywx0fhs.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.8-3jncs1jd.mjs +0 -1
- package/dist/chunks/settings-1.0.8-ferv6mr5.mjs +0 -1
- package/dist/chunks/setup-1.0.8-r7jm4921.mjs +0 -5
- package/dist/chunks/sinks-1.0.8-w2zqhs5t.mjs +0 -1
- package/dist/chunks/skills-1.0.8-c2re0407.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.8-m7x42s2c.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.8-hnq9gbsm.mjs +0 -1
- package/dist/chunks/state-1.0.8-mszmr9fy.mjs +0 -1
- package/dist/chunks/stats-1.0.8-xah6pcq3.mjs +0 -6
- package/dist/chunks/status-1.0.8-cb5dxyy1.mjs +0 -1
- package/dist/chunks/stickers-1.0.8-vr13mnk0.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.8-rqxgszbc.mjs +0 -1
- package/dist/chunks/tasks-1.0.8-v1meznm5.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.8-zs8qgyey.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.8-828qsec1.mjs +0 -1
- package/dist/chunks/teleport-1.0.8-aszfnv2s.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.8-9n57sf46.mjs +0 -1
- package/dist/chunks/theme-1.0.8-da67zfgn.mjs +0 -1
- package/dist/chunks/thinkback-1.0.8-p4ne9wck.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.8-kz09z4aa.mjs +0 -1
- package/dist/chunks/toolPool-1.0.8-rbawjenc.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.8-drw7db57.mjs +0 -1
- package/dist/chunks/tools-1.0.8-51cw7jhr.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.8-y6484dbh.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.8-07rx7x03.mjs +0 -69
- package/dist/chunks/types-1.0.8-svkpkerr.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.8-fxpy87j7.mjs +0 -4
- package/dist/chunks/update-1.0.8-r5hsx0vn.mjs +0 -88
- package/dist/chunks/upgrade-1.0.8-rfjr944q.mjs +0 -1
- package/dist/chunks/upload-1.0.8-xb3qq931.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.8-enmg2k32.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.8-4xafghrm.mjs +0 -1
- package/dist/chunks/usage-1.0.8-x3yk026j.mjs +0 -1
- package/dist/chunks/util-1.0.8-g8szktmn.mjs +0 -1
- package/dist/chunks/utils-1.0.8-qkwh1by0.mjs +0 -1
- package/dist/chunks/vim-1.0.8-qv0fhjmv.mjs +0 -1
- package/dist/chunks/watcher-1.0.8-y0ye7hc6.mjs +0 -1
- package/dist/chunks/wiki-1.0.8-3ydvpt0c.mjs +0 -132
- package/dist/chunks/workflows-1.0.8-1fj4wp4z.mjs +0 -1
- package/dist/chunks/worktree-1.0.8-x68tgvcc.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.8-3e98qmek.mjs +0 -1
- package/dist/chunks/wrapper-1.0.8-atewpqqc.mjs +0 -7
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
-
- a short flag is a single dash and a single character
|
|
3
|
-
- either use a single dash and a single character (for a short flag)
|
|
4
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
-
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
-
- too many long flags`);throw Error(`${_}
|
|
7
|
-
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
-
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
-
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
-
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
-
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
-
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
-
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
-
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
-
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
-
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
-
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
-
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
-
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
-
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
-
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
-
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
-
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
-
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as r,S as s,E as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$O as f,EB as b,Hu as T,KB as j,aP as L,hR as i,kP as r,pC as K,rC as I,sC as _,uC as p,yB as P}from"./cli-1.0.8-ykwgcdbt.mjs";import{tV as A,uV as n}from"./cli-1.0.8-k7vkjf05.mjs";import{nia as E,qia as C}from"./cli-1.0.8-gmf61bcb.mjs";import{cja as M,gja as m,qja as Z,tia as F,tja as u,via as S}from"./cli-1.0.8-z96bbp08.mjs";import{Nla as Y,Ola as k,Opa as c,qpa as v}from"./cli-1.0.8-c1m2f995.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
|
|
2
|
-
export{Zq as _a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{vh as e,yh as fq}from"./cli-1.0.8-845srnq2.mjs";import{Bh as Hq,zh as t}from"./cli-1.0.8-frbc2pan.mjs";import{CF as r,DF as kq,MF as n,NF as Mq,On as S,Pn as Nq,Qn as g,Rn as Vq,Sn as $,Tn as Wq,Wn as i,Xn as Yq,iO as o,jO as s,kO as Oq}from"./cli-1.0.8-ykwgcdbt.mjs";import{FX as u,HX as Zq}from"./cli-1.0.8-apm2cwth.mjs";import{H0 as Xq,HY as Qq,a0 as M,c0 as F,u0 as c,v0 as Uq}from"./cli-1.0.8-qss5sph3.mjs";import{o3 as L,p3 as R,q3 as l}from"./cli-1.0.8-qzqze1a1.mjs";import{r3 as Lq}from"./cli-1.0.8-rna8rhza.mjs";import{y9 as d,z9 as Jq}from"./cli-1.0.8-ke76gxzw.mjs";import{tra as a,xra as Gq}from"./cli-1.0.8-by017547.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${d.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let m;if(q[6]===Symbol.for("react.memo_cache_sentinel"))m=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=m;else m=q[6];let zq=m,_;if(q[7]!==X||q[8]!==N)_=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=_;else _=q[9];let K=_,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=a(Qq(),1),H=a(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
-
export{lq as th,Fq as uh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{xra as H}from"./cli-1.0.8-by017547.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
|
|
2
|
-
export{F as wga,K as xga,M as yga,N as zga,O as Aga,P as Bga,J as Cga};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{xra as M}from"./cli-1.0.8-by017547.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
-
export{W as dia,Q as eia,K as fia,X as gia,Y as hia,Z as iia,y as jia,G as kia,h as lia,w as mia};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SP as x,VP as B}from"./cli-1.0.8-ykwgcdbt.mjs";import{xra as z}from"./cli-1.0.8-by017547.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
-
export{G as sg,H as tg,A as ug};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nia as X,qia as z}from"./cli-1.0.8-gmf61bcb.mjs";import{Via as Z,_ia as O,qja as $,tja as P}from"./cli-1.0.8-z96bbp08.mjs";import{Qja as Y,Xja as H}from"./cli-1.0.8-0w29g9sk.mjs";import{xra as x}from"./cli-1.0.8-by017547.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
|
|
2
|
-
export{N as sf,R as tf,U as uf,j as vf,D as wf,L as xf,m as yf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{xra as V}from"./cli-1.0.8-by017547.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
|
|
2
|
-
export{U0 as Ppa,E0 as Qpa,I0 as Rpa,D0 as Spa,b as Tpa,T as Upa,K as Vpa,z as Wpa,B as Xpa,x as Ypa,k as Zpa,m as _pa,G as $pa,O as aqa,y as bqa,l as cqa,o as dqa,i as eqa,D as fqa,R as gqa,x0 as hqa,O0 as iqa,M as jqa,p0 as kqa,j6 as lqa,nq as mqa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{wf as R,yf as d}from"./cli-1.0.8-34678988.mjs";import{G1 as j,J1 as c}from"./cli-1.0.8-rxf0zjys.mjs";import{qja as K,tja as D}from"./cli-1.0.8-z96bbp08.mjs";import{Qja as C,Xja as h}from"./cli-1.0.8-0w29g9sk.mjs";import{xra as I,yra as J}from"./cli-1.0.8-by017547.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-1.0.8-jhga5hc5.mjs"),{getOrganizationUUID:Z}=await import("./client-1.0.8-n7dt1rfw.mjs"),{getOauthConfig:V}=await import("./oauth-1.0.8-7vjm8xxp.mjs"),{getOAuthHeaders:P}=await import("./api-1.0.8-99jqr2rt.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.0.8-q2e17deh.mjs"),{getDefaultBranch:_}=await import("./git-1.0.8-emhr4f0a.mjs"),{getMainLoopModel:M}=await import("./model-1.0.8-f30q5v3y.mjs"),{default:T}=await import("./index-1.0.8-xxdv7dxk.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-1.0.8-q2e17deh.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.0.8-jhga5hc5.mjs"),{getOrganizationUUID:$}=await import("./client-1.0.8-n7dt1rfw.mjs"),{getOauthConfig:Y}=await import("./oauth-1.0.8-7vjm8xxp.mjs"),{getOAuthHeaders:z}=await import("./api-1.0.8-99jqr2rt.mjs"),{default:G}=await import("./index-1.0.8-xxdv7dxk.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.0.8-jhga5hc5.mjs"),{getOrganizationUUID:$}=await import("./client-1.0.8-n7dt1rfw.mjs"),{getOauthConfig:Y}=await import("./oauth-1.0.8-7vjm8xxp.mjs"),{getOAuthHeaders:z}=await import("./api-1.0.8-99jqr2rt.mjs"),{default:G}=await import("./index-1.0.8-xxdv7dxk.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-1.0.8-jhga5hc5.mjs"),{getOrganizationUUID:Y}=await import("./client-1.0.8-n7dt1rfw.mjs"),{getOauthConfig:z}=await import("./oauth-1.0.8-7vjm8xxp.mjs"),{getOAuthHeaders:G}=await import("./api-1.0.8-99jqr2rt.mjs"),{default:L}=await import("./index-1.0.8-xxdv7dxk.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
|
|
2
|
-
export{i as nf,r as of,t as pf,o as qf,p as rf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{W7 as v,X7 as C}from"./cli-1.0.8-sqbaxhfc.mjs";import{Lea as x,Mea as Y,kda as Z,lda as V}from"./cli-1.0.8-ke76gxzw.mjs";import{Qga as R,Uga as W,aha as O}from"./cli-1.0.8-a5h5dhvb.mjs";import{lia as Q,mia as M}from"./cli-1.0.8-2yyas23w.mjs";import{Via as P,_ia as I,qja as f,tja as L}from"./cli-1.0.8-z96bbp08.mjs";import{Qja as w,Xja as H}from"./cli-1.0.8-0w29g9sk.mjs";import{lqa as N,mqa as F}from"./cli-1.0.8-3cz8c904.mjs";import{Iqa as X,_qa as U}from"./cli-1.0.8-zjckzq5j.mjs";import{ura as h,xra as B}from"./cli-1.0.8-by017547.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as ZV,n as _V,o as $V,t as aW,d as bW};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Pb as d}from"./cli-1.0.8-vztgm8r0.mjs";import{MV as y,NV as U,PV as f,QV as h,RV as c,WV as i}from"./cli-1.0.8-sbf6n56q.mjs";import{A3 as b,y3 as O}from"./cli-1.0.8-7tm0v9g4.mjs";import{R6 as B,S6 as M}from"./cli-1.0.8-sqbaxhfc.mjs";import{i8 as I,p8 as u}from"./cli-1.0.8-abdc5b5p.mjs";import{L9 as V,N9 as v}from"./cli-1.0.8-ke76gxzw.mjs";import{Via as H,Wia as m,_ia as T,qja as G,tja as D}from"./cli-1.0.8-z96bbp08.mjs";import{Qja as q,Rja as S,Xja as F}from"./cli-1.0.8-0w29g9sk.mjs";import{Iqa as p,_qa as s}from"./cli-1.0.8-zjckzq5j.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
|
|
4
|
-
`)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
-
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
|
|
6
|
-
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
-
export{R as Gb,k as Hb,a as Ib,YJ as Jb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Sw as U,Tw as V,Ww as f,Yt as R,Zt as T,_t as $}from"./cli-1.0.8-ykwgcdbt.mjs";import{M5 as Q,N5 as _}from"./cli-1.0.8-sqbaxhfc.mjs";import{Ifa as G,Qfa as Z,eaa as L,laa as Y}from"./cli-1.0.8-ke76gxzw.mjs";import{xra as X}from"./cli-1.0.8-by017547.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
-
export{O as Vc,S as Wc,I as Xc,N as Yc,P as Zc,h as _c};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{EJ as X,GQ as F,ND as V,OD as $,Uq as O,Vq as Z,dk as L}from"./cli-1.0.8-ykwgcdbt.mjs";import{xra as Y}from"./cli-1.0.8-by017547.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
|
|
2
|
-
|
|
3
|
-
IMPORTANT CONTEXT:
|
|
4
|
-
- You are a separate, lightweight agent spawned to answer this one question
|
|
5
|
-
- The main agent is NOT interrupted - it continues working independently in the background
|
|
6
|
-
- You share the conversation context but are a completely separate instance
|
|
7
|
-
- Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
|
|
8
|
-
|
|
9
|
-
CRITICAL CONSTRAINTS:
|
|
10
|
-
- You have NO tools available - you cannot read files, run commands, search, or take any actions
|
|
11
|
-
- This is a one-off response - there will be no follow-up turns
|
|
12
|
-
- You can ONLY provide information based on what you already know from the conversation context
|
|
13
|
-
- NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
|
|
14
|
-
- If you don't know the answer, say so - do not offer to look it up or investigate
|
|
15
|
-
|
|
16
|
-
Simply answer the question with the information you have.</system-reminder>
|
|
17
|
-
|
|
18
|
-
${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
|
|
19
|
-
|
|
20
|
-
`).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
|
|
21
|
-
export{W as Ih,b as Jh,C as Kh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{X7 as f,_6 as M,g4 as G,k4 as W,l4 as V,x7 as j}from"./cli-1.0.8-sqbaxhfc.mjs";import{kda as x,lda as B,m$ as w,n$ as z,q$ as Y}from"./cli-1.0.8-ke76gxzw.mjs";import{eia as J,mia as F}from"./cli-1.0.8-2yyas23w.mjs";import{xra as Z}from"./cli-1.0.8-by017547.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{g as vT,p as wT,X as xT,S as yT,y as zT,I as AT,b as BT};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mi as M,ni as w,oi as A}from"./cli-1.0.8-ezvghx0v.mjs";import{tha as X,vha as N,wha as $,xha as O}from"./cli-1.0.8-74zbkhyt.mjs";import{qja as R,tja as C}from"./cli-1.0.8-z96bbp08.mjs";import{_ja as L,lka as _}from"./cli-1.0.8-swts6q29.mjs";import{Opa as T,Rla as H}from"./cli-1.0.8-c1m2f995.mjs";import{Iqa as W,_qa as y}from"./cli-1.0.8-zjckzq5j.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
|
|
2
|
-
export{S as X,f as Y,l as Z,s as _};
|