@claudiolabs/claudin 1.1.0 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +1 -0
- package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +7 -0
- package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +6 -0
- package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +1 -0
- package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +1 -0
- package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +1 -0
- package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +1 -0
- package/dist/chunks/agents-1.1.2-n6dejn00.mjs +3 -0
- package/dist/chunks/agents-1.1.2-rxkey856.mjs +110 -0
- package/dist/chunks/api-1.1.2-fpd74byc.mjs +1 -0
- package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +1 -0
- package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +1 -0
- package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +1 -0
- package/dist/chunks/auth-1.1.2-s45hhsck.mjs +1 -0
- package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +1 -0
- package/dist/chunks/branch-1.1.2-exyc66rb.mjs +4 -0
- package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +1 -0
- package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +1 -0
- package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +3 -0
- package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +1 -0
- package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +4 -0
- package/dist/chunks/caches-1.1.2-s4tektt8.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +1 -0
- package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +1 -0
- package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +1 -0
- package/dist/chunks/cli-1.1.2-00hggnnf.mjs +9 -0
- package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +2 -0
- package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +2 -0
- package/dist/chunks/cli-1.1.2-0q8k3447.mjs +2 -0
- package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +2 -0
- package/dist/chunks/cli-1.1.2-12xajsdg.mjs +2 -0
- package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +2 -0
- package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +133 -0
- package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +2 -0
- package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +2 -0
- package/dist/chunks/cli-1.1.2-22w1aakd.mjs +17 -0
- package/dist/chunks/cli-1.1.2-26xrf159.mjs +2 -0
- package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +25 -0
- package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +3 -0
- package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +4 -0
- package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +2 -0
- package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +15 -0
- package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +3 -0
- package/dist/chunks/cli-1.1.2-312r29db.mjs +2 -0
- package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +2 -0
- package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +24 -0
- package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +2 -0
- package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +2 -0
- package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +2 -0
- package/dist/chunks/cli-1.1.2-3vhc8676.mjs +2 -0
- package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +2 -0
- package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +2 -0
- package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +2 -0
- package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +2 -0
- package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +6 -0
- package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +67 -0
- package/dist/chunks/cli-1.1.2-51pdt76x.mjs +2 -0
- package/dist/chunks/cli-1.1.2-526csky8.mjs +2 -0
- package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +12 -0
- package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +25 -0
- package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +2 -0
- package/dist/chunks/cli-1.1.2-61nmeckv.mjs +4 -0
- package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +2 -0
- package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +5638 -0
- package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +2 -0
- package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +18 -0
- package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +7 -0
- package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +2 -0
- package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +2 -0
- package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +2 -0
- package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +2 -0
- package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +2 -0
- package/dist/chunks/cli-1.1.2-7swa79jc.mjs +24 -0
- package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +20 -0
- package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +2 -0
- package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +2 -0
- package/dist/chunks/cli-1.1.2-8trsbckp.mjs +2 -0
- package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +3 -0
- package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-99rcxvch.mjs +2 -0
- package/dist/chunks/cli-1.1.2-9ash84j3.mjs +2 -0
- package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +2 -0
- package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +2 -0
- package/dist/chunks/cli-1.1.2-a69xymn7.mjs +2 -0
- package/dist/chunks/cli-1.1.2-a9n9p929.mjs +2 -0
- package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +2 -0
- package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +4 -0
- package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +2 -0
- package/dist/chunks/cli-1.1.2-ax711ayq.mjs +2 -0
- package/dist/chunks/cli-1.1.2-b850wzhk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +21 -0
- package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +4 -0
- package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +2 -0
- package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +2 -0
- package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +2 -0
- package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +4 -0
- package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +2 -0
- package/dist/chunks/cli-1.1.2-dg1134n2.mjs +2 -0
- package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +4 -0
- package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +2 -0
- package/dist/chunks/cli-1.1.2-efe0402v.mjs +2 -0
- package/dist/chunks/cli-1.1.2-em7hye78.mjs +4 -0
- package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +2 -0
- package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +2 -0
- package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +2 -0
- package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +16 -0
- package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +2 -0
- package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +2 -0
- package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +2 -0
- package/dist/chunks/cli-1.1.2-fnp913tz.mjs +2 -0
- package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +2 -0
- package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +15 -0
- package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +3 -0
- package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +2 -0
- package/dist/chunks/cli-1.1.2-g3ms995y.mjs +2 -0
- package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +24 -0
- package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +2 -0
- package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +2 -0
- package/dist/chunks/cli-1.1.2-gdcv810d.mjs +2 -0
- package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +2 -0
- package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +2 -0
- package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +6 -0
- package/dist/chunks/cli-1.1.2-gws9nr18.mjs +9 -0
- package/dist/chunks/cli-1.1.2-gxzwceae.mjs +2 -0
- package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +4 -0
- package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +2 -0
- package/dist/chunks/cli-1.1.2-h9csstnw.mjs +2 -0
- package/dist/chunks/cli-1.1.2-hpx774ph.mjs +3 -0
- package/dist/chunks/cli-1.1.2-hzaqg545.mjs +17 -0
- package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +2 -0
- package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +59 -0
- package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +2 -0
- package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +3 -0
- package/dist/chunks/cli-1.1.2-jxkffay4.mjs +2 -0
- package/dist/chunks/cli-1.1.2-k077a0s0.mjs +2 -0
- package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +2 -0
- package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +2 -0
- package/dist/chunks/cli-1.1.2-k61a86d8.mjs +3 -0
- package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +2 -0
- package/dist/chunks/cli-1.1.2-kav702qr.mjs +2 -0
- package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +2 -0
- package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +3 -0
- package/dist/chunks/cli-1.1.2-kq402xqd.mjs +2 -0
- package/dist/chunks/cli-1.1.2-m0529q09.mjs +45 -0
- package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +18 -0
- package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +2 -0
- package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +2 -0
- package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +2 -0
- package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +12 -0
- package/dist/chunks/cli-1.1.2-mr55880g.mjs +2 -0
- package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +2 -0
- package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +2 -0
- package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +2 -0
- package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +2 -0
- package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +5 -0
- package/dist/chunks/cli-1.1.2-p8amxd73.mjs +4 -0
- package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +2 -0
- package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +2 -0
- package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +2 -0
- package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +2 -0
- package/dist/chunks/cli-1.1.2-qm56km1n.mjs +4 -0
- package/dist/chunks/cli-1.1.2-qxjs641v.mjs +2 -0
- package/dist/chunks/cli-1.1.2-r32per66.mjs +2 -0
- package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +2 -0
- package/dist/chunks/cli-1.1.2-re4qc97z.mjs +6 -0
- package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +2 -0
- package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +2 -0
- package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +8 -0
- package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +15 -0
- package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +2 -0
- package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +2 -0
- package/dist/chunks/cli-1.1.2-s6et33a5.mjs +2 -0
- package/dist/chunks/cli-1.1.2-s76jqr70.mjs +2 -0
- package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +2 -0
- package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +34 -0
- package/dist/chunks/cli-1.1.2-se3yz188.mjs +2 -0
- package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +2 -0
- package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +133 -0
- package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +2 -0
- package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +2 -0
- package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +2 -0
- package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +2 -0
- package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +12 -0
- package/dist/chunks/cli-1.1.2-tkr9thek.mjs +6 -0
- package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +2 -0
- package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +2 -0
- package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +2 -0
- package/dist/chunks/cli-1.1.2-v5aq687d.mjs +4 -0
- package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +2 -0
- package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +3 -0
- package/dist/chunks/cli-1.1.2-vedfryrw.mjs +39 -0
- package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +2 -0
- package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +2 -0
- package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +2 -0
- package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +5 -0
- package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +2 -0
- package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +2 -0
- package/dist/chunks/cli-1.1.2-wfh9694n.mjs +42 -0
- package/dist/chunks/cli-1.1.2-whyrn26g.mjs +2 -0
- package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +2 -0
- package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +2 -0
- package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +58 -0
- package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +3 -0
- package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +50 -0
- package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +2 -0
- package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-xrfe457w.mjs +2 -0
- package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +2 -0
- package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +12 -0
- package/dist/chunks/cli-1.1.2-yajs5n37.mjs +18 -0
- package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +2 -0
- package/dist/chunks/cli-1.1.2-yj8m159m.mjs +2 -0
- package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +2 -0
- package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +202 -0
- package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +3 -0
- package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +2 -0
- package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +1 -0
- package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +2 -0
- package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +2 -0
- package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +6 -0
- package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +3 -0
- package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +2 -0
- package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +2 -0
- package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +2 -0
- package/dist/chunks/client-1.1.2-cfb4as3w.mjs +1 -0
- package/dist/chunks/color-1.1.2-1sf55h7k.mjs +1 -0
- package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +3 -0
- package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +1 -0
- package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +1 -0
- package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +1 -0
- package/dist/chunks/context-1.1.2-rw4msk80.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +1 -0
- package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +1 -0
- package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +9 -0
- package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +1 -0
- package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +1 -0
- package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +1446 -0
- package/dist/chunks/desktop-1.1.2-egp65wej.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +1 -0
- package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +1 -0
- package/dist/chunks/diff-1.1.2-29snp7ez.mjs +1 -0
- package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +1 -0
- package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +13 -0
- package/dist/chunks/engine-1.1.2-071c5ycx.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +1 -0
- package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +1 -0
- package/dist/chunks/environments-1.1.2-e0a09brc.mjs +1 -0
- package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +1 -0
- package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +1 -0
- package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +1 -0
- package/dist/chunks/export-1.1.2-2m0sfme0.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +1 -0
- package/dist/chunks/fast-1.1.2-43wzezv3.mjs +1 -0
- package/dist/chunks/feedback-1.1.2-92k099e0.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +1 -0
- package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +1 -0
- package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +4 -0
- package/dist/chunks/grove-1.1.2-74zq9th4.mjs +1 -0
- package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +1 -0
- package/dist/chunks/headless-1.1.2-rhab73x2.mjs +2 -0
- package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +6 -0
- package/dist/chunks/help-1.1.2-er6xvvy0.mjs +1 -0
- package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +3 -0
- package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +79 -0
- package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +1 -0
- package/dist/chunks/ide-1.1.2-je812srr.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +1 -0
- package/dist/chunks/index-1.1.2-3evh58r7.mjs +1 -0
- package/dist/chunks/index-1.1.2-69bhefzj.mjs +1 -0
- package/dist/chunks/index-1.1.2-7kya3jrk.mjs +1 -0
- package/dist/chunks/index-1.1.2-7sphewt0.mjs +5 -0
- package/dist/chunks/index-1.1.2-947wna4y.mjs +1 -0
- package/dist/chunks/index-1.1.2-95c20hmc.mjs +1 -0
- package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +1 -0
- package/dist/chunks/index-1.1.2-bvpaf73z.mjs +2 -0
- package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +1 -0
- package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +9 -0
- package/dist/chunks/index-1.1.2-htmnqkfh.mjs +1 -0
- package/dist/chunks/index-1.1.2-kdaazhrb.mjs +1 -0
- package/dist/chunks/index-1.1.2-kzzb5289.mjs +1 -0
- package/dist/chunks/index-1.1.2-madt9yt1.mjs +1 -0
- package/dist/chunks/index-1.1.2-mvhaw48f.mjs +2 -0
- package/dist/chunks/index-1.1.2-pzx0977r.mjs +1 -0
- package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +1 -0
- package/dist/chunks/index-1.1.2-s1rqf88d.mjs +1 -0
- package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +1 -0
- package/dist/chunks/index-1.1.2-thaazk19.mjs +17 -0
- package/dist/chunks/index-1.1.2-wey7e6ag.mjs +30 -0
- package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +1 -0
- package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +9 -0
- package/dist/chunks/init-1.1.2-85zbvgkj.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +1 -0
- package/dist/chunks/ink-1.1.2-dqpj9964.mjs +1 -0
- package/dist/chunks/insights-1.1.2-y73zf53m.mjs +870 -0
- package/dist/chunks/install-1.1.2-89hhj53e.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +1 -0
- package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +2 -0
- package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +1 -0
- package/dist/chunks/log-1.1.2-8cc3djq5.mjs +1 -0
- package/dist/chunks/main-1.1.2-th8b6kt4.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +1 -0
- package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +1 -0
- package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +17 -0
- package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +4 -0
- package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +1 -0
- package/dist/chunks/memory-1.1.2-habj4cwz.mjs +72 -0
- package/dist/chunks/model-1.1.2-vdjmatpe.mjs +1 -0
- package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +2 -0
- package/dist/chunks/node-1.1.2-msn09mvf.mjs +12 -0
- package/dist/chunks/oauth-1.1.2-95md8es8.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +14 -0
- package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +1 -0
- package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +1 -0
- package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +1 -0
- package/dist/chunks/passes-1.1.2-z98me43k.mjs +1 -0
- package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +3 -0
- package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +1 -0
- package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +1 -0
- package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +1 -0
- package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +1 -0
- package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +2 -0
- package/dist/chunks/print-1.1.2-9xz8kk84.mjs +57 -0
- package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +1 -0
- package/dist/chunks/process-1.1.2-4ha9kngp.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +9 -0
- package/dist/chunks/prompt-1.1.2-exabd70s.mjs +1 -0
- package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +1 -0
- package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +13 -0
- package/dist/chunks/provider-1.1.2-q784s7t1.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +34 -0
- package/dist/chunks/registry-1.1.2-bteqae43.mjs +1 -0
- package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +2 -0
- package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +1 -0
- package/dist/chunks/rename-1.1.2-99a39m1m.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +1 -0
- package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +2 -0
- package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +1 -0
- package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +1 -0
- package/dist/chunks/settings-1.1.2-nf07eg97.mjs +1 -0
- package/dist/chunks/setup-1.1.2-5f344krn.mjs +5 -0
- package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +1 -0
- package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +1 -0
- package/dist/chunks/state-1.1.2-4stfxgxw.mjs +1 -0
- package/dist/chunks/stats-1.1.2-x2men93c.mjs +6 -0
- package/dist/chunks/status-1.1.2-k6342tq7.mjs +1 -0
- package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +1 -0
- package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +1 -0
- package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +1 -0
- package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +1 -0
- package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +1 -0
- package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +1 -0
- package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +69 -0
- package/dist/chunks/types-1.1.2-vst16v9y.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +4 -0
- package/dist/chunks/update-1.1.2-7daxbkja.mjs +72 -0
- package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +1 -0
- package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +1 -0
- package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +1 -0
- package/dist/chunks/util-1.1.2-790z163z.mjs +1 -0
- package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +1 -0
- package/dist/chunks/vim-1.1.2-c8e520z8.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +13 -0
- package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +1 -0
- package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +132 -0
- package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +1 -0
- package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +1 -0
- package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.0-enyqd6zk.mjs +0 -1
- package/dist/chunks/App-1.1.0-6def0a6n.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.0-m9mybr7j.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.0-4c1qce0n.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.0-2afw9h09.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.0-r09k7rem.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.0-p05h72f8.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.0-842yvm18.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.0-dyfzh4xz.mjs +0 -7
- package/dist/chunks/Doctor-1.1.0-gwmatamz.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.0-4mz9bn58.mjs +0 -6
- package/dist/chunks/Grove-1.1.0-zk7sq7x9.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.0-wjqdhhvn.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.0-w64hcgs0.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.0-mkc5ew58.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.0-wsjvh8me.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.0-t8s1cvt5.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.0-ayq5wr7h.mjs +0 -1
- package/dist/chunks/REPL-1.1.0-ya45nhgt.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.0-q3hsbdns.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.0-9xeshk4s.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.0-fzf5xcm5.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.0-h3qsm7za.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.0-7a0w9w6g.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.0-yzx44v2v.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.0-3gd1pr4d.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.0-6m8j6s6z.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.0-b42stwdb.mjs +0 -1
- package/dist/chunks/add-dir-1.1.0-gst7d69m.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.0-6b0xw5qv.mjs +0 -1
- package/dist/chunks/agents-1.1.0-3e34h40q.mjs +0 -3
- package/dist/chunks/agents-1.1.0-vgtkxq8y.mjs +0 -110
- package/dist/chunks/api-1.1.0-px2sj5kw.mjs +0 -1
- package/dist/chunks/asciicast-1.1.0-2wzkvqn2.mjs +0 -1
- package/dist/chunks/assistant-1.1.0-t93vcyks.mjs +0 -1
- package/dist/chunks/auth-1.1.0-fvk2pf8g.mjs +0 -1
- package/dist/chunks/auth-1.1.0-q76xp4nm.mjs +0 -1
- package/dist/chunks/autoMode-1.1.0-87n8w9d4.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.0-3sjqay1h.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.0-yvybeza3.mjs +0 -1
- package/dist/chunks/branch-1.1.0-9g4r23x4.mjs +0 -4
- package/dist/chunks/bridge-1.1.0-c59t7fn5.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.0-t0deynrx.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.0-zj4jw1v1.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.0-6nrn1g75.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.0-83at32ad.mjs +0 -1
- package/dist/chunks/btw-1.1.0-y88gyvq1.mjs +0 -1
- package/dist/chunks/buddy-1.1.0-rch3sq8e.mjs +0 -3
- package/dist/chunks/cacache-1.1.0-ej21brrw.mjs +0 -1
- package/dist/chunks/cache-probe-1.1.0-ehbwcyh9.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.0-ksnt9g30.mjs +0 -4
- package/dist/chunks/caches-1.1.0-jzxm4v1g.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.0-zyset7gv.mjs +0 -1
- package/dist/chunks/claudemd-1.1.0-mb17883g.mjs +0 -1
- package/dist/chunks/clear-1.1.0-55sa519v.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.0-g803ycep.mjs +0 -1
- package/dist/chunks/cli-1.1.0-0c134tyv.mjs +0 -2
- package/dist/chunks/cli-1.1.0-0e7qzsa6.mjs +0 -2
- package/dist/chunks/cli-1.1.0-0hf961r9.mjs +0 -2
- package/dist/chunks/cli-1.1.0-0pd1b4vc.mjs +0 -133
- package/dist/chunks/cli-1.1.0-0pygrth1.mjs +0 -2
- package/dist/chunks/cli-1.1.0-0yvk0ynn.mjs +0 -2
- package/dist/chunks/cli-1.1.0-18mcq0aj.mjs +0 -6
- package/dist/chunks/cli-1.1.0-1tax09d6.mjs +0 -2
- package/dist/chunks/cli-1.1.0-22xy9wm0.mjs +0 -2
- package/dist/chunks/cli-1.1.0-23xk5c5p.mjs +0 -2
- package/dist/chunks/cli-1.1.0-27q99qxg.mjs +0 -5638
- package/dist/chunks/cli-1.1.0-2g3ef6xx.mjs +0 -2
- package/dist/chunks/cli-1.1.0-2kcgmy0n.mjs +0 -4
- package/dist/chunks/cli-1.1.0-2ptkfn3v.mjs +0 -2
- package/dist/chunks/cli-1.1.0-2ynkx7mx.mjs +0 -2
- package/dist/chunks/cli-1.1.0-35dy019c.mjs +0 -2
- package/dist/chunks/cli-1.1.0-376tm1k9.mjs +0 -2
- package/dist/chunks/cli-1.1.0-3bm55s4g.mjs +0 -59
- package/dist/chunks/cli-1.1.0-3vd4xtts.mjs +0 -2
- package/dist/chunks/cli-1.1.0-42q5m352.mjs +0 -2
- package/dist/chunks/cli-1.1.0-43b9w2rq.mjs +0 -5
- package/dist/chunks/cli-1.1.0-44z5qkky.mjs +0 -2
- package/dist/chunks/cli-1.1.0-4brqrqtg.mjs +0 -8
- package/dist/chunks/cli-1.1.0-4f03ap1f.mjs +0 -3
- package/dist/chunks/cli-1.1.0-4hheqq4t.mjs +0 -2
- package/dist/chunks/cli-1.1.0-51r43ffv.mjs +0 -2
- package/dist/chunks/cli-1.1.0-534xht1w.mjs +0 -2
- package/dist/chunks/cli-1.1.0-5gb7f7xp.mjs +0 -2
- package/dist/chunks/cli-1.1.0-5p4r7v1p.mjs +0 -3
- package/dist/chunks/cli-1.1.0-5pgcnrex.mjs +0 -2
- package/dist/chunks/cli-1.1.0-685fssp6.mjs +0 -2
- package/dist/chunks/cli-1.1.0-6g8jkwc8.mjs +0 -2
- package/dist/chunks/cli-1.1.0-6h9f0djh.mjs +0 -6
- package/dist/chunks/cli-1.1.0-6pd6d43a.mjs +0 -58
- package/dist/chunks/cli-1.1.0-6pv9er50.mjs +0 -2
- package/dist/chunks/cli-1.1.0-6q6mnbdg.mjs +0 -45
- package/dist/chunks/cli-1.1.0-6sw6w6gt.mjs +0 -2
- package/dist/chunks/cli-1.1.0-6td2sp0v.mjs +0 -2
- package/dist/chunks/cli-1.1.0-6vd5e2xx.mjs +0 -2
- package/dist/chunks/cli-1.1.0-715hzmph.mjs +0 -4
- package/dist/chunks/cli-1.1.0-7278n5vd.mjs +0 -18
- package/dist/chunks/cli-1.1.0-7d1nvdda.mjs +0 -2
- package/dist/chunks/cli-1.1.0-7pxt9gcq.mjs +0 -2
- package/dist/chunks/cli-1.1.0-80tgppc8.mjs +0 -12
- package/dist/chunks/cli-1.1.0-8azg891x.mjs +0 -2
- package/dist/chunks/cli-1.1.0-8t3nbehc.mjs +0 -2
- package/dist/chunks/cli-1.1.0-8xbx5bw0.mjs +0 -4
- package/dist/chunks/cli-1.1.0-93djfjy7.mjs +0 -2
- package/dist/chunks/cli-1.1.0-9neyfch2.mjs +0 -2
- package/dist/chunks/cli-1.1.0-9w7sg286.mjs +0 -2
- package/dist/chunks/cli-1.1.0-a3xx1dac.mjs +0 -2
- package/dist/chunks/cli-1.1.0-a4fdbmtm.mjs +0 -3
- package/dist/chunks/cli-1.1.0-ab3nq7yd.mjs +0 -2
- package/dist/chunks/cli-1.1.0-acknyrzr.mjs +0 -2
- package/dist/chunks/cli-1.1.0-aefnhpce.mjs +0 -2
- package/dist/chunks/cli-1.1.0-aew4bmae.mjs +0 -2
- package/dist/chunks/cli-1.1.0-agcwe85z.mjs +0 -3
- package/dist/chunks/cli-1.1.0-ah0k4q2s.mjs +0 -17
- package/dist/chunks/cli-1.1.0-anh31kw5.mjs +0 -2
- package/dist/chunks/cli-1.1.0-avpw9ja1.mjs +0 -4
- package/dist/chunks/cli-1.1.0-awwr4yce.mjs +0 -2
- package/dist/chunks/cli-1.1.0-b2dpekht.mjs +0 -50
- package/dist/chunks/cli-1.1.0-b4js0h2n.mjs +0 -2
- package/dist/chunks/cli-1.1.0-b6z6m26q.mjs +0 -2
- package/dist/chunks/cli-1.1.0-bg3abn0c.mjs +0 -3
- package/dist/chunks/cli-1.1.0-bpw6t33c.mjs +0 -2
- package/dist/chunks/cli-1.1.0-c32rv5p9.mjs +0 -2
- package/dist/chunks/cli-1.1.0-cs1m99a5.mjs +0 -4
- package/dist/chunks/cli-1.1.0-cz87w6nw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-df637xcj.mjs +0 -12
- package/dist/chunks/cli-1.1.0-dgje4dyf.mjs +0 -12
- package/dist/chunks/cli-1.1.0-dkcs1ckg.mjs +0 -2
- package/dist/chunks/cli-1.1.0-dqm9d5fq.mjs +0 -2
- package/dist/chunks/cli-1.1.0-dsg8mr16.mjs +0 -2
- package/dist/chunks/cli-1.1.0-dvdc29ed.mjs +0 -20
- package/dist/chunks/cli-1.1.0-dzexv5mk.mjs +0 -15
- package/dist/chunks/cli-1.1.0-e8cb572s.mjs +0 -3
- package/dist/chunks/cli-1.1.0-ej9gkky3.mjs +0 -2
- package/dist/chunks/cli-1.1.0-ejsqz1pw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-ex8w5gzz.mjs +0 -2
- package/dist/chunks/cli-1.1.0-eyafjwj2.mjs +0 -2
- package/dist/chunks/cli-1.1.0-f1vdd8jq.mjs +0 -2
- package/dist/chunks/cli-1.1.0-f2zea2vz.mjs +0 -202
- package/dist/chunks/cli-1.1.0-f40fhk16.mjs +0 -2
- package/dist/chunks/cli-1.1.0-f7s3d6cm.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fav6jhbg.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fefdtfkh.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fhsgjvax.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fj9tsf79.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fkkfc8bz.mjs +0 -24
- package/dist/chunks/cli-1.1.0-fm3zj7km.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fyhcmngx.mjs +0 -2
- package/dist/chunks/cli-1.1.0-fzj13jj1.mjs +0 -2
- package/dist/chunks/cli-1.1.0-g19j4m46.mjs +0 -3
- package/dist/chunks/cli-1.1.0-g4qrjkze.mjs +0 -25
- package/dist/chunks/cli-1.1.0-gedc2sjr.mjs +0 -2
- package/dist/chunks/cli-1.1.0-gn36m4rw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-h9m8nwpz.mjs +0 -2
- package/dist/chunks/cli-1.1.0-heqqh4q5.mjs +0 -42
- package/dist/chunks/cli-1.1.0-hhv56f6w.mjs +0 -2
- package/dist/chunks/cli-1.1.0-hqc7gemc.mjs +0 -2
- package/dist/chunks/cli-1.1.0-hxcczrch.mjs +0 -34
- package/dist/chunks/cli-1.1.0-j0spemhp.mjs +0 -2
- package/dist/chunks/cli-1.1.0-j8j38mj8.mjs +0 -2
- package/dist/chunks/cli-1.1.0-jggsfk80.mjs +0 -2
- package/dist/chunks/cli-1.1.0-jm9w1ra4.mjs +0 -133
- package/dist/chunks/cli-1.1.0-jzr2r6q9.mjs +0 -18
- package/dist/chunks/cli-1.1.0-k97b244h.mjs +0 -2
- package/dist/chunks/cli-1.1.0-kb88a691.mjs +0 -16
- package/dist/chunks/cli-1.1.0-kchy50kf.mjs +0 -2
- package/dist/chunks/cli-1.1.0-kdb9g90t.mjs +0 -6
- package/dist/chunks/cli-1.1.0-ke2q4vv2.mjs +0 -39
- package/dist/chunks/cli-1.1.0-kf2vvzzq.mjs +0 -2
- package/dist/chunks/cli-1.1.0-kh16d8ks.mjs +0 -2
- package/dist/chunks/cli-1.1.0-khfqjg3d.mjs +0 -2
- package/dist/chunks/cli-1.1.0-kqpv3mqm.mjs +0 -2
- package/dist/chunks/cli-1.1.0-ksm3jf7w.mjs +0 -2
- package/dist/chunks/cli-1.1.0-ky8gc8bw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-kyed5wy4.mjs +0 -2
- package/dist/chunks/cli-1.1.0-kyvxb684.mjs +0 -18
- package/dist/chunks/cli-1.1.0-m3srsyep.mjs +0 -2
- package/dist/chunks/cli-1.1.0-mcwgdp9f.mjs +0 -1
- package/dist/chunks/cli-1.1.0-mp23wvb8.mjs +0 -2
- package/dist/chunks/cli-1.1.0-mthxxfdv.mjs +0 -2
- package/dist/chunks/cli-1.1.0-mxcr7n72.mjs +0 -3
- package/dist/chunks/cli-1.1.0-n063kkhn.mjs +0 -2
- package/dist/chunks/cli-1.1.0-n22zpcen.mjs +0 -2
- package/dist/chunks/cli-1.1.0-nrkd2283.mjs +0 -2
- package/dist/chunks/cli-1.1.0-nwh4569v.mjs +0 -2
- package/dist/chunks/cli-1.1.0-nwnph1tm.mjs +0 -3
- package/dist/chunks/cli-1.1.0-nzw8nfe8.mjs +0 -4
- package/dist/chunks/cli-1.1.0-pagxnvrp.mjs +0 -2
- package/dist/chunks/cli-1.1.0-pc78xk2w.mjs +0 -2
- package/dist/chunks/cli-1.1.0-pgzqtn5w.mjs +0 -3
- package/dist/chunks/cli-1.1.0-pyjjh1vb.mjs +0 -2
- package/dist/chunks/cli-1.1.0-q0xhsdq5.mjs +0 -2
- package/dist/chunks/cli-1.1.0-q5tc9jm9.mjs +0 -2
- package/dist/chunks/cli-1.1.0-q8ch6d67.mjs +0 -2
- package/dist/chunks/cli-1.1.0-qeh5c8ha.mjs +0 -2
- package/dist/chunks/cli-1.1.0-qsymkkgn.mjs +0 -25
- package/dist/chunks/cli-1.1.0-qtb6qp7v.mjs +0 -2
- package/dist/chunks/cli-1.1.0-qy3n5r3j.mjs +0 -2
- package/dist/chunks/cli-1.1.0-r5jfjghw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-r82e580m.mjs +0 -9
- package/dist/chunks/cli-1.1.0-rcbfq6ds.mjs +0 -15
- package/dist/chunks/cli-1.1.0-rgft35ht.mjs +0 -2
- package/dist/chunks/cli-1.1.0-rhbwwag9.mjs +0 -2
- package/dist/chunks/cli-1.1.0-rhhqa2eq.mjs +0 -6
- package/dist/chunks/cli-1.1.0-rk5hvaqf.mjs +0 -2
- package/dist/chunks/cli-1.1.0-rwzm7q8k.mjs +0 -2
- package/dist/chunks/cli-1.1.0-rxjpq9sj.mjs +0 -15
- package/dist/chunks/cli-1.1.0-s2byqr5v.mjs +0 -2
- package/dist/chunks/cli-1.1.0-s77gty0s.mjs +0 -2
- package/dist/chunks/cli-1.1.0-sn31brzs.mjs +0 -4
- package/dist/chunks/cli-1.1.0-snspzvx6.mjs +0 -2
- package/dist/chunks/cli-1.1.0-ss0sp6y9.mjs +0 -2
- package/dist/chunks/cli-1.1.0-sz45a3kz.mjs +0 -2
- package/dist/chunks/cli-1.1.0-t314tbev.mjs +0 -2
- package/dist/chunks/cli-1.1.0-t7bxqzs4.mjs +0 -24
- package/dist/chunks/cli-1.1.0-t7zmjjnm.mjs +0 -2
- package/dist/chunks/cli-1.1.0-t81d1nxv.mjs +0 -6
- package/dist/chunks/cli-1.1.0-tfwm688t.mjs +0 -2
- package/dist/chunks/cli-1.1.0-tjzezs5y.mjs +0 -2
- package/dist/chunks/cli-1.1.0-txh9zgpn.mjs +0 -12
- package/dist/chunks/cli-1.1.0-txn2egpm.mjs +0 -2
- package/dist/chunks/cli-1.1.0-typ6ydyr.mjs +0 -2
- package/dist/chunks/cli-1.1.0-vmrftx0a.mjs +0 -5
- package/dist/chunks/cli-1.1.0-vnw1etr4.mjs +0 -2
- package/dist/chunks/cli-1.1.0-vpef0qmy.mjs +0 -2
- package/dist/chunks/cli-1.1.0-vsd5cgtc.mjs +0 -2
- package/dist/chunks/cli-1.1.0-vyrset59.mjs +0 -2
- package/dist/chunks/cli-1.1.0-w2z92spx.mjs +0 -2
- package/dist/chunks/cli-1.1.0-w6pbjjfv.mjs +0 -2
- package/dist/chunks/cli-1.1.0-w99tv921.mjs +0 -4
- package/dist/chunks/cli-1.1.0-wq7mrbze.mjs +0 -2
- package/dist/chunks/cli-1.1.0-wy684ycb.mjs +0 -2
- package/dist/chunks/cli-1.1.0-wzt27z3c.mjs +0 -2
- package/dist/chunks/cli-1.1.0-x1d428kd.mjs +0 -4
- package/dist/chunks/cli-1.1.0-x52w32zj.mjs +0 -9
- package/dist/chunks/cli-1.1.0-xbafqhxj.mjs +0 -2
- package/dist/chunks/cli-1.1.0-xfbynaew.mjs +0 -3
- package/dist/chunks/cli-1.1.0-xh7h18aj.mjs +0 -2
- package/dist/chunks/cli-1.1.0-xnkggt2k.mjs +0 -2
- package/dist/chunks/cli-1.1.0-xqj8jr7g.mjs +0 -4
- package/dist/chunks/cli-1.1.0-xrtkbdea.mjs +0 -4
- package/dist/chunks/cli-1.1.0-xtme365c.mjs +0 -2
- package/dist/chunks/cli-1.1.0-xz7dpcmk.mjs +0 -2
- package/dist/chunks/cli-1.1.0-xz8y1ffw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-y08d0fhm.mjs +0 -2
- package/dist/chunks/cli-1.1.0-y16ey5vs.mjs +0 -3
- package/dist/chunks/cli-1.1.0-y44vvpr5.mjs +0 -24
- package/dist/chunks/cli-1.1.0-y7km7tyc.mjs +0 -2
- package/dist/chunks/cli-1.1.0-y82h5sjv.mjs +0 -2
- package/dist/chunks/cli-1.1.0-yb4xnm2h.mjs +0 -21
- package/dist/chunks/cli-1.1.0-ypyc700d.mjs +0 -7
- package/dist/chunks/cli-1.1.0-z3er82qf.mjs +0 -2
- package/dist/chunks/cli-1.1.0-z3kmdvmm.mjs +0 -17
- package/dist/chunks/cli-1.1.0-z515ecdw.mjs +0 -2
- package/dist/chunks/cli-1.1.0-z8gyd4hj.mjs +0 -2
- package/dist/chunks/cli-1.1.0-z9w48as1.mjs +0 -2
- package/dist/chunks/cli-1.1.0-zjdhcx9g.mjs +0 -67
- package/dist/chunks/cli-1.1.0-zv42btgr.mjs +0 -2
- package/dist/chunks/cli-1.1.0-zv9mj8cm.mjs +0 -2
- package/dist/chunks/client-1.1.0-mczmpajm.mjs +0 -1
- package/dist/chunks/color-1.1.0-mz220mnj.mjs +0 -1
- package/dist/chunks/compact-1.1.0-m3h4vy67.mjs +0 -3
- package/dist/chunks/config-1.1.0-0cmcwws5.mjs +0 -1
- package/dist/chunks/config-1.1.0-94w375pc.mjs +0 -1
- package/dist/chunks/constants-1.1.0-f8cevnbf.mjs +0 -1
- package/dist/chunks/context-1.1.0-02esqhw9.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.0-q79y3s53.mjs +0 -1
- package/dist/chunks/conversation-1.1.0-zgrc0409.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.0-hs5hd2rk.mjs +0 -1
- package/dist/chunks/copy-1.1.0-d9ewpvtx.mjs +0 -9
- package/dist/chunks/cost-1.1.0-29687fk2.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.0-cwje9xax.mjs +0 -1
- package/dist/chunks/createSession-1.1.0-mqxpwaxx.mjs +0 -1
- package/dist/chunks/debug-1.1.0-7myvhved.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.0-kjmcwbvb.mjs +0 -1446
- package/dist/chunks/desktop-1.1.0-psp9x7ag.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.0-s1sbyjtw.mjs +0 -1
- package/dist/chunks/detection-1.1.0-395zszbn.mjs +0 -1
- package/dist/chunks/diff-1.1.0-tw33wd16.mjs +0 -1
- package/dist/chunks/doctor-1.1.0-w49j96y7.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.0-bazcbcf0.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.0-k2ggh5e8.mjs +0 -1
- package/dist/chunks/effort-1.1.0-d31ntd59.mjs +0 -13
- package/dist/chunks/engine-1.1.0-zykm6ttb.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.0-vjjgjg6g.mjs +0 -1
- package/dist/chunks/envUtils-1.1.0-j6qw20t8.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.0-pbfss60j.mjs +0 -1
- package/dist/chunks/environments-1.1.0-05sa7vqs.mjs +0 -1
- package/dist/chunks/errors-1.1.0-rv1w7dzk.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.0-hwr1bhvw.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.0-mctsxzhh.mjs +0 -1
- package/dist/chunks/exit-1.1.0-w4dt0y70.mjs +0 -1
- package/dist/chunks/explorer-1.1.0-grjehtcs.mjs +0 -1
- package/dist/chunks/export-1.1.0-nkxywrt3.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.0-t5fad215.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.0-ejz9p8tk.mjs +0 -1
- package/dist/chunks/fast-1.1.0-ktxbryjn.mjs +0 -1
- package/dist/chunks/feedback-1.1.0-wmc2etfk.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.0-37ttkjsw.mjs +0 -1
- package/dist/chunks/git-1.1.0-19myj8f0.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.0-kehp42vm.mjs +0 -1
- package/dist/chunks/goal-1.1.0-vegr2gpx.mjs +0 -4
- package/dist/chunks/grove-1.1.0-jhejcpfq.mjs +0 -1
- package/dist/chunks/growthbook-1.1.0-65kf7wnp.mjs +0 -1
- package/dist/chunks/headless-1.1.0-7ar922rp.mjs +0 -2
- package/dist/chunks/heapdump-1.1.0-32jsacwx.mjs +0 -6
- package/dist/chunks/help-1.1.0-845v0hns.mjs +0 -1
- package/dist/chunks/hookChains-1.1.0-v8cw92ff.mjs +0 -3
- package/dist/chunks/hooks-1.1.0-6yfeb39f.mjs +0 -79
- package/dist/chunks/hooks-1.1.0-q1eegxep.mjs +0 -1
- package/dist/chunks/ide-1.1.0-9t0cq40y.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.0-sdagc4gb.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.0-gcb31e7e.mjs +0 -1
- package/dist/chunks/index-1.1.0-0pz70rhb.mjs +0 -1
- package/dist/chunks/index-1.1.0-2v7bhc73.mjs +0 -9
- package/dist/chunks/index-1.1.0-42sjc0ra.mjs +0 -1
- package/dist/chunks/index-1.1.0-5e2yge0j.mjs +0 -1
- package/dist/chunks/index-1.1.0-5rn65wcn.mjs +0 -1
- package/dist/chunks/index-1.1.0-6eg49x8z.mjs +0 -1
- package/dist/chunks/index-1.1.0-6f33zr88.mjs +0 -2
- package/dist/chunks/index-1.1.0-711thf5z.mjs +0 -30
- package/dist/chunks/index-1.1.0-7mr4ft1q.mjs +0 -1
- package/dist/chunks/index-1.1.0-9qnvcqd3.mjs +0 -1
- package/dist/chunks/index-1.1.0-bryn9r7n.mjs +0 -1
- package/dist/chunks/index-1.1.0-c9ypb2er.mjs +0 -2
- package/dist/chunks/index-1.1.0-dpwmxnj4.mjs +0 -5
- package/dist/chunks/index-1.1.0-f06x7270.mjs +0 -17
- package/dist/chunks/index-1.1.0-fz6shkyy.mjs +0 -1
- package/dist/chunks/index-1.1.0-ga21tcpt.mjs +0 -9
- package/dist/chunks/index-1.1.0-qta6e5wt.mjs +0 -1
- package/dist/chunks/index-1.1.0-rdrdd03m.mjs +0 -1
- package/dist/chunks/index-1.1.0-vdwwq04q.mjs +0 -1
- package/dist/chunks/index-1.1.0-x8ra62mv.mjs +0 -1
- package/dist/chunks/index-1.1.0-yaxmne6h.mjs +0 -1
- package/dist/chunks/index-1.1.0-yna8rsmk.mjs +0 -1
- package/dist/chunks/index-1.1.0-zv3y0dw4.mjs +0 -1
- package/dist/chunks/init-1.1.0-2ktykcbs.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.0-2dq44h6p.mjs +0 -1
- package/dist/chunks/ink-1.1.0-n8ev4ggj.mjs +0 -1
- package/dist/chunks/insights-1.1.0-2pm8nqda.mjs +0 -870
- package/dist/chunks/install-1.1.0-kpkp79qx.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.0-ezr26tzq.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.0-526087q0.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.0-2hcxjw4w.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.0-1n70h3yk.mjs +0 -1
- package/dist/chunks/keybindings-1.1.0-zp4xvxd0.mjs +0 -2
- package/dist/chunks/knowledge-1.1.0-7ypjnfee.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.0-nh3f0q9v.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.0-6jtp0hpx.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.0-3986smwm.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.0-n5jzedar.mjs +0 -1
- package/dist/chunks/log-1.1.0-ytvjc0bd.mjs +0 -1
- package/dist/chunks/main-1.1.0-f14kmh7p.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.0-e8vpf6by.mjs +0 -1
- package/dist/chunks/mcp-1.1.0-1ywhd8fj.mjs +0 -1
- package/dist/chunks/mcp-1.1.0-7nqv81k0.mjs +0 -17
- package/dist/chunks/mcp-1.1.0-qx3nvmcz.mjs +0 -4
- package/dist/chunks/mcpb-1.1.0-rj36djns.mjs +0 -1
- package/dist/chunks/memory-1.1.0-5r0h3k4k.mjs +0 -72
- package/dist/chunks/model-1.1.0-44xx16dv.mjs +0 -2
- package/dist/chunks/model-1.1.0-fg2cbfq2.mjs +0 -1
- package/dist/chunks/node-1.1.0-110zckqt.mjs +0 -12
- package/dist/chunks/oauth-1.1.0-wpg4ck2v.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.0-j1v7ywpt.mjs +0 -14
- package/dist/chunks/output-style-1.1.0-zn9ssp3s.mjs +0 -1
- package/dist/chunks/package-2VNCXFNY-1.1.0-gmk2hvrx.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.0-5zrr15g5.mjs +0 -1
- package/dist/chunks/parser-1.1.0-whqnp9vy.mjs +0 -1
- package/dist/chunks/passes-1.1.0-syt7mc82.mjs +0 -1
- package/dist/chunks/permissions-1.1.0-93w1tjs2.mjs +0 -3
- package/dist/chunks/permissions-1.1.0-xwgjba5h.mjs +0 -1
- package/dist/chunks/plan-1.1.0-8by2pkr1.mjs +0 -1
- package/dist/chunks/plist-1.1.0-a72f96zz.mjs +0 -1
- package/dist/chunks/plugin-1.1.0-1cq6rnm4.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.0-e3hxzsxe.mjs +0 -1
- package/dist/chunks/plugins-1.1.0-2ebadazb.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.0-1qpnh1b8.mjs +0 -2
- package/dist/chunks/print-1.1.0-5023fs4e.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.0-rg0g4j4k.mjs +0 -1
- package/dist/chunks/process-1.1.0-azyy6h3h.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.0-xbaa5wkh.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.0-hegrj68h.mjs +0 -9
- package/dist/chunks/prompt-1.1.0-2r56j5nk.mjs +0 -1
- package/dist/chunks/prompt-1.1.0-2vmdvy77.mjs +0 -1
- package/dist/chunks/prompts-1.1.0-n1m0d2m2.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.0-xs2p3rtn.mjs +0 -13
- package/dist/chunks/provider-1.1.0-2j5pg4yy.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.0-rbqezxcw.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.0-677eqkc3.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.0-3m14394y.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.0-x7bmwv4g.mjs +0 -34
- package/dist/chunks/registry-1.1.0-4fyg7f9q.mjs +0 -1
- package/dist/chunks/release-notes-1.1.0-pz5tn880.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.0-69db1v80.mjs +0 -2
- package/dist/chunks/remote-env-1.1.0-ksfpd9mb.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.0-n7thmemb.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.0-qfe65dcd.mjs +0 -1
- package/dist/chunks/rename-1.1.0-xwf9aagc.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.0-bdbdmxmh.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.0-tkn2dd4g.mjs +0 -1
- package/dist/chunks/resume-1.1.0-bks26dze.mjs +0 -2
- package/dist/chunks/rewind-1.1.0-cet2enqh.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.0-jsytxerw.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.0-0feve89r.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.0-h2jzdxee.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.0-93sg9m8e.mjs +0 -1
- package/dist/chunks/session-1.1.0-qj25v1ny.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.0-cyr63cxd.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.0-f2jn1dgt.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.0-jhvnwn06.mjs +0 -1
- package/dist/chunks/settings-1.1.0-v6kq2gg7.mjs +0 -1
- package/dist/chunks/setup-1.1.0-1nvqkzwy.mjs +0 -5
- package/dist/chunks/sinks-1.1.0-y6gqgdcq.mjs +0 -1
- package/dist/chunks/skills-1.1.0-xsjqqdbe.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.0-vf7vkpmt.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.0-e67ygkan.mjs +0 -1
- package/dist/chunks/state-1.1.0-bh945jtk.mjs +0 -1
- package/dist/chunks/stats-1.1.0-x33dy37t.mjs +0 -6
- package/dist/chunks/status-1.1.0-d0yq6cgj.mjs +0 -1
- package/dist/chunks/stickers-1.1.0-xc1m1wem.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.0-2842f2xr.mjs +0 -1
- package/dist/chunks/tasks-1.1.0-jwtf7c9d.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.0-5f9gr2n7.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.0-p5p6mzr0.mjs +0 -1
- package/dist/chunks/teleport-1.1.0-vpph6285.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.0-sapkr8qe.mjs +0 -1
- package/dist/chunks/theme-1.1.0-tj4jvv7p.mjs +0 -1
- package/dist/chunks/thinkback-1.1.0-jz93vtq3.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.0-bjmff4sm.mjs +0 -1
- package/dist/chunks/toolPool-1.1.0-m2n24729.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.0-xkqnfkpg.mjs +0 -1
- package/dist/chunks/tools-1.1.0-s3ha83mm.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.0-c22x3kwa.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.0-ysafs3br.mjs +0 -69
- package/dist/chunks/types-1.1.0-1bb823j7.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.0-k2hb0xpa.mjs +0 -4
- package/dist/chunks/update-1.1.0-7v973cbz.mjs +0 -88
- package/dist/chunks/upgrade-1.1.0-rr1r91bn.mjs +0 -1
- package/dist/chunks/upload-1.1.0-0zhvg1j3.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.0-ayhfykdv.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.0-s7xr32y6.mjs +0 -1
- package/dist/chunks/usage-1.1.0-wtv9dama.mjs +0 -1
- package/dist/chunks/util-1.1.0-9mksq9n7.mjs +0 -1
- package/dist/chunks/utils-1.1.0-8gfj8s3w.mjs +0 -1
- package/dist/chunks/vim-1.1.0-2fjkfqs6.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.0-6qghm3y5.mjs +0 -13
- package/dist/chunks/watcher-1.1.0-p8jgf9r7.mjs +0 -1
- package/dist/chunks/wiki-1.1.0-x8aa5635.mjs +0 -132
- package/dist/chunks/workflows-1.1.0-epxphggs.mjs +0 -1
- package/dist/chunks/worktree-1.1.0-eza3fdnj.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.0-3mh5gae3.mjs +0 -1
- package/dist/chunks/wrapper-1.1.0-snjvfemx.mjs +0 -7
- /package/dist/chunks/{cli-1.1.0-j0sa90bm.mjs → cli-1.1.2-3vyt3jw9.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.0-5sg0fk2p.mjs → cli-1.1.2-6d3jf0sj.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.0-9nc530td.mjs → cli-1.1.2-6jbsqbdw.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.0-gm3yzqxw.mjs → cli-1.1.2-8t8veykp.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.0-7s0f112n.mjs → cli-1.1.2-btgmqahb.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.0-wmg6s7xa.mjs → cli-1.1.2-pgz05ddc.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.0-vcev20jn.mjs → cli-1.1.2-r4rfggdk.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{Cb as yJ,Db as xz,Eb as rz,Fb as cz,Gb as iz,Hb as bJ}from"./cli-1.1.2-vdnvxk7d.mjs";import{Jb as Tz}from"./cli-1.1.2-fq7w78vq.mjs";import{Rb as TJ,Sb as xJ,Tb as MJ,Ub as wJ,Vb as fJ}from"./cli-1.1.2-96wg2gfk.mjs";import{Xb as kJ}from"./cli-1.1.2-nd5g2z1v.mjs";import{Se as VJ,Te as lJ}from"./cli-1.1.2-rx0kctyq.mjs";import{if as EJ,kf as oz,mf as DK}from"./cli-1.1.2-m4ksha3b.mjs";import{Bf as LJ,Ff as OJ,zf as mz}from"./cli-1.1.2-v4dexj9m.mjs";import{HH as JJ,IH as Cz,In as UJ,JH as KJ,Jn as CK,KH as ZJ,MH as $J,NH as YJ,OH as XJ,PH as QJ,QH as WJ,am as AJ,bk as RJ,bm as vz,ck as NK,fm as BK}from"./cli-1.1.2-6cj9ggma.mjs";import"./cli-1.1.2-rp3kb2k1.mjs";import"./cli-1.1.2-2ya2s94w.mjs";import"./cli-1.1.2-sk8gpfnw.mjs";import"./cli-1.1.2-z7ha6v3f.mjs";import"./cli-1.1.2-kcfzd7n8.mjs";import"./cli-1.1.2-hzaqg545.mjs";import"./cli-1.1.2-64bjkwj9.mjs";import"./cli-1.1.2-fmrgtbj6.mjs";import"./cli-1.1.2-eqyyfzzp.mjs";import{pW as DJ,vW as _K}from"./cli-1.1.2-tepjwp3h.mjs";import"./cli-1.1.2-wz2q0wq7.mjs";import"./cli-1.1.2-aav0ncfm.mjs";import{RW as az,VW as RK}from"./cli-1.1.2-3v91jtm9.mjs";import"./cli-1.1.2-2ygaa01s.mjs";import"./cli-1.1.2-d9r7gv39.mjs";import"./cli-1.1.2-3mpy81rn.mjs";import"./cli-1.1.2-39xjjhsf.mjs";import"./cli-1.1.2-yj8m159m.mjs";import"./cli-1.1.2-9ash84j3.mjs";import"./cli-1.1.2-sdra9y0x.mjs";import"./cli-1.1.2-jpgqkhxd.mjs";import"./cli-1.1.2-x7pdyv4r.mjs";import"./cli-1.1.2-t9knn0qp.mjs";import"./cli-1.1.2-pgt1vydc.mjs";import{C2 as pz,F2 as PK}from"./cli-1.1.2-tn2dw7tr.mjs";import"./cli-1.1.2-0q8k3447.mjs";import"./cli-1.1.2-gqdaxfvm.mjs";import"./cli-1.1.2-4skhxaf4.mjs";import"./cli-1.1.2-vqhs2nfg.mjs";import"./cli-1.1.2-zn8nzq9g.mjs";import"./cli-1.1.2-js4s7tq5.mjs";import"./cli-1.1.2-tkr9thek.mjs";import"./cli-1.1.2-gtjv8yhc.mjs";import"./cli-1.1.2-y2eet2t4.mjs";import"./cli-1.1.2-5w2m33hk.mjs";import"./cli-1.1.2-se3yz188.mjs";import"./cli-1.1.2-8trsbckp.mjs";import"./cli-1.1.2-vdtd8tyw.mjs";import{S7 as i,T7 as FK}from"./cli-1.1.2-f8pc3h46.mjs";import"./cli-1.1.2-y8dhsas4.mjs";import{s9 as G,t9 as pJ}from"./cli-1.1.2-gvwc8kmd.mjs";import"./cli-1.1.2-sxp48xhs.mjs";import"./cli-1.1.2-zy7bxchk.mjs";import"./cli-1.1.2-s6et33a5.mjs";import{L_ as Wz,Mga as yz,N_ as HK,Uga as OK,Xba as fz,Yba as ez,Zba as zJ,_ba as cJ,vba as CJ,wba as qK}from"./cli-1.1.2-z31tqg0s.mjs";import{Zga as sz,_ga as gJ,aha as Rz,hha as qz,pha as GK}from"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import{Yha as PJ,eia as jK}from"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import{sja as zz,tja as NJ,vja as QK}from"./cli-1.1.2-whyrn26g.mjs";import{$ja as uz,_ja as qJ,dka as oJ,vka as q,yka as tz}from"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import{Vka as g,ala as VK}from"./cli-1.1.2-dgw89jzs.mjs";import{gla as _J,ola as BJ,qla as WK}from"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-m2ar3b2y.mjs";import"./cli-1.1.2-5dbzz1pp.mjs";import"./cli-1.1.2-qg5xbb38.mjs";import{Fsa as I}from"./cli-1.1.2-10g0wy7w.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
|
|
2
|
+
`).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
|
|
3
|
+
`)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}if($.endsWith(`
|
|
4
|
+
`))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
|
|
5
|
+
`)}function Vz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of N)m(`${G.dim(Jz)}
|
|
6
|
+
`);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
|
|
7
|
+
`),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
|
|
8
|
+
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
|
|
9
|
+
`)}}if(_===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${G.dim(Jz)}
|
|
10
|
+
`)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
|
|
11
|
+
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
+
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
|
|
13
|
+
`),m(`${Kz}${r}
|
|
14
|
+
`)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
|
|
15
|
+
`);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
+
`),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
+
`);J(G.dim("Environment ID: ")+`${j}
|
|
18
|
+
`)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
|
|
19
|
+
`);J(`
|
|
20
|
+
`),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
|
|
21
|
+
`)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
|
|
22
|
+
`)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
|
|
23
|
+
`)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
+
`)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
+
`)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
+
`)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
|
|
27
|
+
`)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
|
|
28
|
+
`);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
|
|
29
|
+
`)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
|
|
30
|
+
`),m(`${G.dim(XJ)}
|
|
31
|
+
`),$)m(`${G.red($)}
|
|
32
|
+
`)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var KK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function ZK(z,J){let K=KK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function $K(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function YK(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function XK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=rJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
+
`);if(N.length>=eJ)N.shift();N.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
|
|
34
|
+
`);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
|
|
35
|
+
`);let k=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
|
|
36
|
+
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.lastStderr.join(`
|
|
37
|
+
`):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),yz(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let V=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.2-ygyb7e8j.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.2-grjrm008.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
|
|
38
|
+
Run 'claude remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||N)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&N)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.2-yj6ep04t.mjs"),J=z.join(", "),K=await hJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
|
|
39
|
+
(default: same-dir)
|
|
40
|
+
--capacity <N> Max concurrent sessions in worktree or
|
|
41
|
+
same-dir mode (default: ${vJ})
|
|
42
|
+
--[no-]create-session-in-dir Pre-create a session in the current
|
|
43
|
+
directory; in worktree mode this session
|
|
44
|
+
stays in cwd while on-demand sessions get
|
|
45
|
+
isolated worktrees (default: on)
|
|
46
|
+
`:"",R=`
|
|
47
|
+
Remote Control - Connect your local environment to claude.ai/code
|
|
48
|
+
|
|
49
|
+
USAGE
|
|
50
|
+
claude remote-control [options]
|
|
51
|
+
OPTIONS
|
|
52
|
+
--name <name> Name for the session (shown in claude.ai/code)
|
|
53
|
+
--permission-mode <mode> Permission mode for spawned sessions
|
|
54
|
+
(${J})
|
|
55
|
+
--debug-file <path> Write debug logs to file
|
|
56
|
+
-v, --verbose Enable verbose output
|
|
57
|
+
-h, --help Show this help
|
|
58
|
+
${Y}
|
|
59
|
+
DESCRIPTION
|
|
60
|
+
Remote Control allows you to control sessions on your local device from
|
|
61
|
+
claude.ai/code (https://claude.ai/code). Run this command in the
|
|
62
|
+
directory you want to work in, then connect from the Claude app or web.
|
|
63
|
+
${K?`
|
|
64
|
+
Remote Control runs as a persistent server that accepts multiple concurrent
|
|
65
|
+
sessions in the current directory. One session is pre-created on start so
|
|
66
|
+
you have somewhere to type immediately. Use --spawn=worktree to isolate
|
|
67
|
+
each on-demand session in its own git worktree, or --spawn=session for
|
|
68
|
+
the classic single-session mode (exits when that session ends). Press 'w'
|
|
69
|
+
during runtime to toggle between same-dir and worktree.
|
|
70
|
+
`:""}
|
|
71
|
+
NOTES
|
|
72
|
+
- You must be logged in with a Claude account that has a subscription
|
|
73
|
+
- Run \`claude\` first in the directory to accept the workspace trust dialog
|
|
74
|
+
${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
|
|
75
|
+
`:""}`;console.log(R)}var SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.2-ygyb7e8j.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.2-yj6ep04t.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:_,checkHasTrustDialogAccepted:f}=await import("./config-1.1.2-6bc1gc6c.mjs");_();let{initSinks:k}=await import("./sinks-1.1.2-xq2d5k0p.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.2-4stfxgxw.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.2-cg0svgv7.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.2-mr20ypjr.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.2-6bc1gc6c.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
76
|
+
Remote Control lets you access this CLI session from the web (claude.ai/code)
|
|
77
|
+
or the Claude app, so you can pick up where you left off on any device.
|
|
78
|
+
|
|
79
|
+
You can disconnect remote access anytime by running /remote-control again.
|
|
80
|
+
`);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),Vz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-1.1.2-fgm2kpjd.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.2-ez3kc0p2.mjs"),Qz=Oz()||Nz(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
81
|
+
Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
|
|
82
|
+
|
|
83
|
+
Spawn mode for this project:
|
|
84
|
+
`+` [1] same-dir — sessions share the current directory (default)
|
|
85
|
+
`+` [2] worktree — each session gets an isolated git worktree
|
|
86
|
+
|
|
87
|
+
`+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
|
|
88
|
+
`);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("tengu_bridge_spawn_mode_chosen",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.2-grjrm008.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.2-cg0svgv7.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("tengu_bridge_registration_failed",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("tengu_bridge_started",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-1.1.2-qh9nf9kg.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("tengu_bridge_spawn_mode_toggled",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.2-ygyb7e8j.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.2-grjrm008.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.2-4stfxgxw.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.2-6bc1gc6c.mjs");R();let{initSinks:U}=await import("./sinks-1.1.2-xq2d5k0p.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.2-mr20ypjr.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-1.1.2-fgm2kpjd.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.2-ez3kc0p2.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await N(),_=await M(),f=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.2-ygyb7e8j.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aia as S,Bia as _,fia as A,gia as k,qia as G,ria as N,uia as M,xia as Y,zia as O}from"./cli-1.1.2-4x5wz1xq.mjs";import{$ja as W,_ja as K,dka as j,vka as C,yka as R}from"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import{Xka as y,ala as c}from"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-10g0wy7w.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Th as a,Uh as bJ}from"./cli-1.1.2-b9tdyfz3.mjs";import{Vh as x,Wh as AJ}from"./cli-1.1.2-63p3yvzk.mjs";import{BE as kJ,Gx as i,Hx as HJ,OQ as r,OR as o,Qn as m,Rn as UJ,Ty as u,Vy as WJ,XQ as TJ,YH as $,ZH as vJ,aS as hJ,gU as s,hU as t,iU as DJ,vE as l}from"./cli-1.1.2-6cj9ggma.mjs";import"./cli-1.1.2-rp3kb2k1.mjs";import"./cli-1.1.2-2ya2s94w.mjs";import"./cli-1.1.2-sk8gpfnw.mjs";import"./cli-1.1.2-z7ha6v3f.mjs";import"./cli-1.1.2-kcfzd7n8.mjs";import"./cli-1.1.2-hzaqg545.mjs";import"./cli-1.1.2-64bjkwj9.mjs";import"./cli-1.1.2-fmrgtbj6.mjs";import"./cli-1.1.2-eqyyfzzp.mjs";import"./cli-1.1.2-tepjwp3h.mjs";import"./cli-1.1.2-wz2q0wq7.mjs";import"./cli-1.1.2-aav0ncfm.mjs";import"./cli-1.1.2-3v91jtm9.mjs";import"./cli-1.1.2-2ygaa01s.mjs";import"./cli-1.1.2-d9r7gv39.mjs";import"./cli-1.1.2-3mpy81rn.mjs";import"./cli-1.1.2-39xjjhsf.mjs";import"./cli-1.1.2-yj8m159m.mjs";import{GY as c,IY as IJ,jY as g,kY as QJ}from"./cli-1.1.2-9ash84j3.mjs";import"./cli-1.1.2-sdra9y0x.mjs";import{D1 as NJ,Y0 as k,_0 as v,p1 as j,r1 as KJ,zZ as GJ}from"./cli-1.1.2-jpgqkhxd.mjs";import"./cli-1.1.2-x7pdyv4r.mjs";import"./cli-1.1.2-t9knn0qp.mjs";import"./cli-1.1.2-pgt1vydc.mjs";import"./cli-1.1.2-tn2dw7tr.mjs";import"./cli-1.1.2-0q8k3447.mjs";import"./cli-1.1.2-gqdaxfvm.mjs";import"./cli-1.1.2-4skhxaf4.mjs";import"./cli-1.1.2-vqhs2nfg.mjs";import"./cli-1.1.2-zn8nzq9g.mjs";import"./cli-1.1.2-js4s7tq5.mjs";import"./cli-1.1.2-tkr9thek.mjs";import{k4 as F,l4 as W,m4 as d}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as zJ}from"./cli-1.1.2-y2eet2t4.mjs";import"./cli-1.1.2-5w2m33hk.mjs";import"./cli-1.1.2-se3yz188.mjs";import"./cli-1.1.2-8trsbckp.mjs";import"./cli-1.1.2-vdtd8tyw.mjs";import"./cli-1.1.2-f8pc3h46.mjs";import"./cli-1.1.2-y8dhsas4.mjs";import"./cli-1.1.2-gvwc8kmd.mjs";import"./cli-1.1.2-sxp48xhs.mjs";import"./cli-1.1.2-zy7bxchk.mjs";import"./cli-1.1.2-s6et33a5.mjs";import{Hba as p,Iba as C,Qea as S,_ba as ZJ,mfa as FJ}from"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import{Vka as f,ala as YJ}from"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-m2ar3b2y.mjs";import"./cli-1.1.2-5dbzz1pp.mjs";import"./cli-1.1.2-qg5xbb38.mjs";import{Asa as R,Esa as XJ}from"./cli-1.1.2-10g0wy7w.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{AX as p,BX as f,CX as a,DX as S}from"./cli-1.1.2-3mpy81rn.mjs";import{Qea as d,mfa as C}from"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import{fja as m,gja as y,hja as b}from"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import{Esa as g}from"./cli-1.1.2-10g0wy7w.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
+
|
|
3
|
+
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./cli-1.1.2-10g0wy7w.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{Q2 as h,U2 as zz}from"./cli-1.1.2-0q8k3447.mjs";import"./cli-1.1.2-vdtd8tyw.mjs";import{P6 as m,n7 as e}from"./cli-1.1.2-f8pc3h46.mjs";import"./cli-1.1.2-y8dhsas4.mjs";import"./cli-1.1.2-gvwc8kmd.mjs";import"./cli-1.1.2-sxp48xhs.mjs";import"./cli-1.1.2-zy7bxchk.mjs";import{Aga as r,mga as y,uga as s,xga as v}from"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import{vka as k,yka as o}from"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import{Vqa as a,Wma as b}from"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-m2ar3b2y.mjs";import"./cli-1.1.2-5dbzz1pp.mjs";import"./cli-1.1.2-qg5xbb38.mjs";import{Esa as n}from"./cli-1.1.2-10g0wy7w.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
+
|
|
3
|
+
`)){let w=B.split(`
|
|
4
|
+
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
+
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
+
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
+
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
+
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
+
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
+
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
+
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
+
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
+
${z.error.slice(0,300)}
|
|
14
|
+
|
|
15
|
+
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
+
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
+
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
+
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
+
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
+
|
|
21
|
+
`)});Qz();export{jz as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Y2 as L,Z2 as P,_2 as $,c3 as Q,d3 as U,e3 as V,f3 as j}from"./cli-1.1.2-gqdaxfvm.mjs";import{Esa as Z}from"./cli-1.1.2-10g0wy7w.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
+
No API requests yet this session.
|
|
3
|
+
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
+
`)}};var A=Z(()=>{j();$()});A();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Zh as a,_h as b}from"./cli-1.1.2-r39g5zy8.mjs";import"./cli-1.1.2-x6tg8d4f.mjs";import"./cli-1.1.2-gy0p2qqf.mjs";import"./cli-1.1.2-6cj9ggma.mjs";import"./cli-1.1.2-rp3kb2k1.mjs";import"./cli-1.1.2-2ya2s94w.mjs";import"./cli-1.1.2-sk8gpfnw.mjs";import"./cli-1.1.2-z7ha6v3f.mjs";import"./cli-1.1.2-kcfzd7n8.mjs";import"./cli-1.1.2-hzaqg545.mjs";import"./cli-1.1.2-64bjkwj9.mjs";import"./cli-1.1.2-fmrgtbj6.mjs";import"./cli-1.1.2-eqyyfzzp.mjs";import"./cli-1.1.2-tepjwp3h.mjs";import"./cli-1.1.2-wz2q0wq7.mjs";import"./cli-1.1.2-aav0ncfm.mjs";import"./cli-1.1.2-3v91jtm9.mjs";import"./cli-1.1.2-2ygaa01s.mjs";import"./cli-1.1.2-d9r7gv39.mjs";import"./cli-1.1.2-3mpy81rn.mjs";import"./cli-1.1.2-39xjjhsf.mjs";import"./cli-1.1.2-yj8m159m.mjs";import"./cli-1.1.2-9ash84j3.mjs";import"./cli-1.1.2-sdra9y0x.mjs";import"./cli-1.1.2-jpgqkhxd.mjs";import"./cli-1.1.2-x7pdyv4r.mjs";import"./cli-1.1.2-t9knn0qp.mjs";import"./cli-1.1.2-pgt1vydc.mjs";import"./cli-1.1.2-tn2dw7tr.mjs";import"./cli-1.1.2-0q8k3447.mjs";import"./cli-1.1.2-gqdaxfvm.mjs";import"./cli-1.1.2-4skhxaf4.mjs";import"./cli-1.1.2-vqhs2nfg.mjs";import"./cli-1.1.2-zn8nzq9g.mjs";import"./cli-1.1.2-js4s7tq5.mjs";import"./cli-1.1.2-tkr9thek.mjs";import"./cli-1.1.2-gtjv8yhc.mjs";import"./cli-1.1.2-y2eet2t4.mjs";import"./cli-1.1.2-5w2m33hk.mjs";import"./cli-1.1.2-se3yz188.mjs";import"./cli-1.1.2-8trsbckp.mjs";import"./cli-1.1.2-vdtd8tyw.mjs";import"./cli-1.1.2-f8pc3h46.mjs";import"./cli-1.1.2-y8dhsas4.mjs";import"./cli-1.1.2-gvwc8kmd.mjs";import"./cli-1.1.2-sxp48xhs.mjs";import"./cli-1.1.2-zy7bxchk.mjs";import"./cli-1.1.2-s6et33a5.mjs";import"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-m2ar3b2y.mjs";import"./cli-1.1.2-5dbzz1pp.mjs";import"./cli-1.1.2-qg5xbb38.mjs";import"./cli-1.1.2-10g0wy7w.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Mga as X,P$ as V,Q$ as W,R$ as J,Uga as H,Zaa as k,cba as N,rca as x,uca as A}from"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import{Wka as b,ala as y}from"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-10g0wy7w.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$T as p,MT as a,NT as b,OT as c,PT as d,QT as e,RT as f,ST as g,TT as h,UT as i,VT as j,WT as k,XT as l,YT as m,ZT as n,_T as o,aU as q,bU as r,cU as s,dU as t}from"./cli-1.1.2-6cj9ggma.mjs";import"./cli-1.1.2-rp3kb2k1.mjs";import"./cli-1.1.2-2ya2s94w.mjs";import"./cli-1.1.2-sk8gpfnw.mjs";import"./cli-1.1.2-z7ha6v3f.mjs";import"./cli-1.1.2-kcfzd7n8.mjs";import"./cli-1.1.2-hzaqg545.mjs";import"./cli-1.1.2-64bjkwj9.mjs";import"./cli-1.1.2-fmrgtbj6.mjs";import"./cli-1.1.2-eqyyfzzp.mjs";import"./cli-1.1.2-tepjwp3h.mjs";import"./cli-1.1.2-wz2q0wq7.mjs";import"./cli-1.1.2-aav0ncfm.mjs";import"./cli-1.1.2-3v91jtm9.mjs";import"./cli-1.1.2-2ygaa01s.mjs";import"./cli-1.1.2-d9r7gv39.mjs";import"./cli-1.1.2-3mpy81rn.mjs";import"./cli-1.1.2-39xjjhsf.mjs";import"./cli-1.1.2-yj8m159m.mjs";import"./cli-1.1.2-9ash84j3.mjs";import"./cli-1.1.2-sdra9y0x.mjs";import"./cli-1.1.2-jpgqkhxd.mjs";import"./cli-1.1.2-x7pdyv4r.mjs";import"./cli-1.1.2-t9knn0qp.mjs";import"./cli-1.1.2-pgt1vydc.mjs";import"./cli-1.1.2-tn2dw7tr.mjs";import"./cli-1.1.2-0q8k3447.mjs";import"./cli-1.1.2-gqdaxfvm.mjs";import"./cli-1.1.2-4skhxaf4.mjs";import"./cli-1.1.2-vqhs2nfg.mjs";import"./cli-1.1.2-zn8nzq9g.mjs";import"./cli-1.1.2-js4s7tq5.mjs";import"./cli-1.1.2-tkr9thek.mjs";import"./cli-1.1.2-gtjv8yhc.mjs";import"./cli-1.1.2-y2eet2t4.mjs";import"./cli-1.1.2-5w2m33hk.mjs";import"./cli-1.1.2-se3yz188.mjs";import"./cli-1.1.2-8trsbckp.mjs";import"./cli-1.1.2-vdtd8tyw.mjs";import"./cli-1.1.2-f8pc3h46.mjs";import"./cli-1.1.2-y8dhsas4.mjs";import"./cli-1.1.2-gvwc8kmd.mjs";import"./cli-1.1.2-sxp48xhs.mjs";import"./cli-1.1.2-zy7bxchk.mjs";import"./cli-1.1.2-s6et33a5.mjs";import"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-m2ar3b2y.mjs";import"./cli-1.1.2-5dbzz1pp.mjs";import"./cli-1.1.2-qg5xbb38.mjs";import"./cli-1.1.2-10g0wy7w.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Xh as a,Yh as l}from"./cli-1.1.2-wtjpdxah.mjs";import"./cli-1.1.2-r39g5zy8.mjs";import"./cli-1.1.2-x6tg8d4f.mjs";import"./cli-1.1.2-6r2ybktd.mjs";import"./cli-1.1.2-gy0p2qqf.mjs";import"./cli-1.1.2-6cj9ggma.mjs";import"./cli-1.1.2-rp3kb2k1.mjs";import"./cli-1.1.2-2ya2s94w.mjs";import"./cli-1.1.2-sk8gpfnw.mjs";import"./cli-1.1.2-z7ha6v3f.mjs";import"./cli-1.1.2-kcfzd7n8.mjs";import"./cli-1.1.2-hzaqg545.mjs";import"./cli-1.1.2-64bjkwj9.mjs";import"./cli-1.1.2-fmrgtbj6.mjs";import"./cli-1.1.2-eqyyfzzp.mjs";import"./cli-1.1.2-tepjwp3h.mjs";import"./cli-1.1.2-wz2q0wq7.mjs";import"./cli-1.1.2-aav0ncfm.mjs";import"./cli-1.1.2-3v91jtm9.mjs";import"./cli-1.1.2-2ygaa01s.mjs";import"./cli-1.1.2-d9r7gv39.mjs";import"./cli-1.1.2-3mpy81rn.mjs";import"./cli-1.1.2-39xjjhsf.mjs";import"./cli-1.1.2-yj8m159m.mjs";import"./cli-1.1.2-9ash84j3.mjs";import"./cli-1.1.2-sdra9y0x.mjs";import"./cli-1.1.2-jpgqkhxd.mjs";import"./cli-1.1.2-x7pdyv4r.mjs";import"./cli-1.1.2-t9knn0qp.mjs";import"./cli-1.1.2-pgt1vydc.mjs";import"./cli-1.1.2-tn2dw7tr.mjs";import"./cli-1.1.2-0q8k3447.mjs";import"./cli-1.1.2-gqdaxfvm.mjs";import"./cli-1.1.2-4skhxaf4.mjs";import"./cli-1.1.2-vqhs2nfg.mjs";import"./cli-1.1.2-zn8nzq9g.mjs";import"./cli-1.1.2-js4s7tq5.mjs";import"./cli-1.1.2-tkr9thek.mjs";import"./cli-1.1.2-gtjv8yhc.mjs";import"./cli-1.1.2-y2eet2t4.mjs";import"./cli-1.1.2-5w2m33hk.mjs";import"./cli-1.1.2-se3yz188.mjs";import"./cli-1.1.2-8trsbckp.mjs";import"./cli-1.1.2-vdtd8tyw.mjs";import"./cli-1.1.2-f8pc3h46.mjs";import"./cli-1.1.2-y8dhsas4.mjs";import"./cli-1.1.2-gvwc8kmd.mjs";import"./cli-1.1.2-sxp48xhs.mjs";import"./cli-1.1.2-zy7bxchk.mjs";import"./cli-1.1.2-s6et33a5.mjs";import"./cli-1.1.2-z31tqg0s.mjs";import"./cli-1.1.2-bhjzjkag.mjs";import"./cli-1.1.2-1a35rnqk.mjs";import"./cli-1.1.2-gdcv810d.mjs";import"./cli-1.1.2-7jcscwh5.mjs";import"./cli-1.1.2-4x5wz1xq.mjs";import"./cli-1.1.2-s76jqr70.mjs";import"./cli-1.1.2-qge4zbeg.mjs";import"./cli-1.1.2-whyrn26g.mjs";import"./cli-1.1.2-re4qc97z.mjs";import"./cli-1.1.2-a9n9p929.mjs";import"./cli-1.1.2-dgw89jzs.mjs";import"./cli-1.1.2-gxzwceae.mjs";import"./cli-1.1.2-s2xde2xb.mjs";import"./cli-1.1.2-9rh5p8p5.mjs";import"./cli-1.1.2-wfh9694n.mjs";import"./cli-1.1.2-m2ar3b2y.mjs";import"./cli-1.1.2-5dbzz1pp.mjs";import"./cli-1.1.2-qg5xbb38.mjs";import{Esa as t}from"./cli-1.1.2-10g0wy7w.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s2 as a,t2 as b,u2 as c}from"./cli-1.1.2-t9knn0qp.mjs";import"./cli-1.1.2-10g0wy7w.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{vsa as V_,wsa as su,ysa as K_,zsa as f_}from"./cli-1.1.2-22w1aakd.mjs";import{Csa as H,Fsa as $_}from"./cli-1.1.2-10g0wy7w.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
+
versions published after the first week of January 2027
|
|
3
|
+
will require node >=${E}. You are running node ${_}.
|
|
4
|
+
|
|
5
|
+
To continue receiving updates to AWS services, bug fixes,
|
|
6
|
+
and security updates please upgrade to node >=${E}.
|
|
7
|
+
|
|
8
|
+
More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
|
|
9
|
+
export{W_ as osa,D_ as psa,yu as qsa,ou as rsa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Df as R,Ff as d}from"./cli-1.1.2-v4dexj9m.mjs";import{C2 as j,F2 as c}from"./cli-1.1.2-tn2dw7tr.mjs";import{vka as K,yka as D}from"./cli-1.1.2-re4qc97z.mjs";import{Vka as C,ala as h}from"./cli-1.1.2-dgw89jzs.mjs";import{Esa as I,Fsa as J}from"./cli-1.1.2-10g0wy7w.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.1.2-cg0svgv7.mjs"),{getOrganizationUUID:Z}=await import("./client-1.1.2-cfb4as3w.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.2-95md8es8.mjs"),{getOAuthHeaders:P}=await import("./api-1.1.2-fpd74byc.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-1.1.2-qh9nf9kg.mjs"),{getDefaultBranch:_}=await import("./git-1.1.2-fgm2kpjd.mjs"),{getMainLoopModel:M}=await import("./model-1.1.2-vdjmatpe.mjs"),{default:T}=await import("./index-1.1.2-95c20hmc.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.1.2-qh9nf9kg.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.1.2-cg0svgv7.mjs"),{getOrganizationUUID:$}=await import("./client-1.1.2-cfb4as3w.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.2-95md8es8.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.2-fpd74byc.mjs"),{default:G}=await import("./index-1.1.2-95c20hmc.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.1.2-cg0svgv7.mjs"),{getOrganizationUUID:$}=await import("./client-1.1.2-cfb4as3w.mjs"),{getOauthConfig:Y}=await import("./oauth-1.1.2-95md8es8.mjs"),{getOAuthHeaders:z}=await import("./api-1.1.2-fpd74byc.mjs"),{default:G}=await import("./index-1.1.2-95c20hmc.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.1.2-cg0svgv7.mjs"),{getOrganizationUUID:Y}=await import("./client-1.1.2-cfb4as3w.mjs"),{getOauthConfig:z}=await import("./oauth-1.1.2-95md8es8.mjs"),{getOAuthHeaders:G}=await import("./api-1.1.2-fpd74byc.mjs"),{default:L}=await import("./index-1.1.2-95c20hmc.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 uf,r as vf,t as wf,o as xf,p as yf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{UF as R,VF as E,WF as l,XF as i,YF as c,ZF as w,_F as O,cG as y,dG as e}from"./cli-1.1.2-6cj9ggma.mjs";import{jY as x,kY as s}from"./cli-1.1.2-9ash84j3.mjs";import{D1 as K,N0 as j,O0 as r,Y0 as k,_0 as W,s1 as Q,zZ as n}from"./cli-1.1.2-jpgqkhxd.mjs";import{j4 as A,k4 as V,l4 as D,m4 as v}from"./cli-1.1.2-gtjv8yhc.mjs";import{n4 as t}from"./cli-1.1.2-y2eet2t4.mjs";import{Asa as q,Esa as p}from"./cli-1.1.2-10g0wy7w.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
+
export{X1 as ph,u as qh,W1 as rh,B1 as sh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{K4 as M,L4 as E}from"./cli-1.1.2-vdtd8tyw.mjs";import{Aga as p,Kfa as l,Nfa as L,Ofa as c,rfa as _,xga as S,zfa as F}from"./cli-1.1.2-z31tqg0s.mjs";import{ila as Y,qla as m}from"./cli-1.1.2-gxzwceae.mjs";import{Esa as B}from"./cli-1.1.2-10g0wy7w.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
+
export{R as G2,r as H2,o as I2,e as J2,I as K2,O as L2,U as M2,VJ as N2,a as O2,WJ as P2,yJ as Q2,zJ as R2,n as S2,jJ as T2,s as U2};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
|
|
2
|
+
export{z as Asa,A as Bsa,B as Csa,C as Dsa,D as Esa,F as Fsa,G as Gsa,H as Hsa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I4 as m}from"./cli-1.1.2-8trsbckp.mjs";import{G8 as K,Y8 as $}from"./cli-1.1.2-f8pc3h46.mjs";import{Qea as Q,Tea as J,Uga as Z,mfa as Y,nea as X}from"./cli-1.1.2-z31tqg0s.mjs";import{rja as W}from"./cli-1.1.2-qge4zbeg.mjs";import{Esa as V}from"./cli-1.1.2-10g0wy7w.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
|
|
2
|
+
export{y as Qi,G as Ri,U as Si,w as Ti};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Esa as H}from"./cli-1.1.2-10g0wy7w.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 Aha,K as Bha,M as Cha,N as Dha,O as Eha,P as Fha,J as Gha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ep as W,Fp as n,rx as I,sx as P,wx as t}from"./cli-1.1.2-6cj9ggma.mjs";import{s4 as H,t4 as p}from"./cli-1.1.2-5w2m33hk.mjs";import{u4 as C,w4 as i}from"./cli-1.1.2-se3yz188.mjs";import{E8 as V,Y8 as l,Z7 as v,c5 as S,i5 as c,y8 as R}from"./cli-1.1.2-f8pc3h46.mjs";import{Aga as g,Mga as D,Qea as E,Tea as X,Uga as m,mea as q,mfa as O,mga as T,nea as u,oga as Y,uga as y,xga as k}from"./cli-1.1.2-z31tqg0s.mjs";import{Aia as $,Bia as h,xia as G,zia as f}from"./cli-1.1.2-4x5wz1xq.mjs";import{lja as Z,qja as _,rja as M}from"./cli-1.1.2-qge4zbeg.mjs";import{vka as x,yka as b}from"./cli-1.1.2-re4qc97z.mjs";import{Pra as Q,fsa as A}from"./cli-1.1.2-m2ar3b2y.mjs";import{Esa as U}from"./cli-1.1.2-10g0wy7w.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
+
export{Yj as vc,r as wc};
|