@claudiolabs/claudin 1.1.35 → 1.1.36
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/App-1.1.36-4ypa2ky6.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.36-r5r4cwsv.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.36-v3mtkjve.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.36-m4wb4rn1.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.36-7v5ebgve.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.36-xpxzdymv.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.36-f49re5tc.mjs +6 -0
- package/dist/chunks/Doctor-1.1.36-2dspbc9p.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.36-9ajm3kh8.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.36-js7zf4na.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.36-4qp5v3qb.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.36-vesfpg6k.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.36-bg3y18da.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.36-n2rz26c0.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.36-tr7atyyg.mjs +1 -0
- package/dist/chunks/REPL-1.1.36-k3q58fha.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.36-qa0m768f.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.36-sg79pgf7.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.36-2q0d269f.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.36-rngjq7f6.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.36-mrzttk9n.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.36-ycekhs3r.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.36-awrjghme.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.36-r7zqb99r.mjs +1 -0
- package/dist/chunks/add-dir-1.1.36-mrfh3vg4.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.36-50aq6x28.mjs +1 -0
- package/dist/chunks/agents-1.1.36-p154bdnq.mjs +110 -0
- package/dist/chunks/agents-1.1.36-qvdrqv2q.mjs +3 -0
- package/dist/chunks/api-1.1.36-fw1zvw5c.mjs +1 -0
- package/dist/chunks/asciicast-1.1.36-pabx88c3.mjs +1 -0
- package/dist/chunks/auth-1.1.36-nxs2defd.mjs +1 -0
- package/dist/chunks/auth-1.1.36-vxpyyv86.mjs +1 -0
- package/dist/chunks/autoMode-1.1.36-ew03cpb1.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.36-m3aspqak.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.36-dvg6tvq8.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.36-q1ejq881.mjs +1 -0
- package/dist/chunks/branch-1.1.36-ev37nqdg.mjs +4 -0
- package/dist/chunks/bridge-1.1.36-1yp5eghy.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.36-yxs52053.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.36-ghh2yqhm.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.36-6v5c06t6.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.36-2rgfyyde.mjs +1 -0
- package/dist/chunks/btw-1.1.36-065ma89f.mjs +1 -0
- package/dist/chunks/buddy-1.1.36-a1z9gs49.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.36-bvheegzj.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.36-0bq3fz34.mjs +4 -0
- package/dist/chunks/caches-1.1.36-8swj463y.mjs +1 -0
- package/dist/chunks/cd-1.1.36-wwqk3h8r.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.36-325wbhtb.mjs +1 -0
- package/dist/chunks/claudemd-1.1.36-2vv85v0v.mjs +1 -0
- package/dist/chunks/clear-1.1.36-xnqf2tm7.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.36-g72pkm2k.mjs +1 -0
- package/dist/chunks/cli-1.1.36-02vb8r9t.mjs +2 -0
- package/dist/chunks/cli-1.1.36-0ar5v8he.mjs +2 -0
- package/dist/chunks/cli-1.1.36-0d7qj290.mjs +2 -0
- package/dist/chunks/cli-1.1.36-0qdd3hmz.mjs +2 -0
- package/dist/chunks/cli-1.1.36-0qtyffhw.mjs +2 -0
- package/dist/chunks/cli-1.1.36-0v8c69pm.mjs +2 -0
- package/dist/chunks/cli-1.1.36-0zzq8bfp.mjs +2 -0
- package/dist/chunks/cli-1.1.36-12bsh7j9.mjs +2 -0
- package/dist/chunks/cli-1.1.36-1dhxpexj.mjs +2 -0
- package/dist/chunks/cli-1.1.36-1dr6aakq.mjs +2 -0
- package/dist/chunks/cli-1.1.36-1fmfztzp.mjs +2 -0
- package/dist/chunks/cli-1.1.36-1yk5zdh0.mjs +2 -0
- package/dist/chunks/cli-1.1.36-1z1m015s.mjs +2 -0
- package/dist/chunks/cli-1.1.36-2720p0e9.mjs +2 -0
- package/dist/chunks/cli-1.1.36-2awc366j.mjs +2 -0
- package/dist/chunks/cli-1.1.36-2mqhd52j.mjs +2 -0
- package/dist/chunks/cli-1.1.36-2sbmjg5a.mjs +2 -0
- package/dist/chunks/cli-1.1.36-33pcdm87.mjs +2 -0
- package/dist/chunks/cli-1.1.36-34sqd3h3.mjs +15 -0
- package/dist/chunks/cli-1.1.36-3fe93rwy.mjs +2 -0
- package/dist/chunks/cli-1.1.36-3gx0bht8.mjs +4 -0
- package/dist/chunks/cli-1.1.36-3kd43x1y.mjs +2 -0
- package/dist/chunks/cli-1.1.36-3mmakdzj.mjs +2 -0
- package/dist/chunks/cli-1.1.36-3xkn8kcw.mjs +2 -0
- package/dist/chunks/cli-1.1.36-3z14wtaa.mjs +2 -0
- package/dist/chunks/cli-1.1.36-40x4f5k7.mjs +34 -0
- package/dist/chunks/cli-1.1.36-422dmh6w.mjs +2 -0
- package/dist/chunks/cli-1.1.36-43fkjqy9.mjs +2 -0
- package/dist/chunks/cli-1.1.36-451x9avw.mjs +2 -0
- package/dist/chunks/cli-1.1.36-4ajy0ys9.mjs +2 -0
- package/dist/chunks/cli-1.1.36-4g1wf6an.mjs +2 -0
- package/dist/chunks/cli-1.1.36-4jwgcerx.mjs +2 -0
- package/dist/chunks/cli-1.1.36-4pfza5vq.mjs +2 -0
- package/dist/chunks/cli-1.1.36-4ssz80b2.mjs +60 -0
- package/dist/chunks/cli-1.1.36-5de80y14.mjs +26 -0
- package/dist/chunks/cli-1.1.36-5few49rp.mjs +7 -0
- package/dist/chunks/cli-1.1.36-5kmv74s2.mjs +2 -0
- package/dist/chunks/cli-1.1.36-5nkhhy5f.mjs +7 -0
- package/dist/chunks/cli-1.1.36-5nkv3yj2.mjs +2 -0
- package/dist/chunks/cli-1.1.36-5zzwcyt7.mjs +2 -0
- package/dist/chunks/cli-1.1.36-659qh6fs.mjs +15 -0
- package/dist/chunks/cli-1.1.36-65fkb20j.mjs +12 -0
- package/dist/chunks/cli-1.1.36-69zmc79s.mjs +2 -0
- package/dist/chunks/cli-1.1.36-6g1w2zbr.mjs +4 -0
- package/dist/chunks/cli-1.1.36-6jv1ss2p.mjs +2 -0
- package/dist/chunks/cli-1.1.36-6q7sfj4e.mjs +4 -0
- package/dist/chunks/cli-1.1.36-6yqvdwyp.mjs +2 -0
- package/dist/chunks/cli-1.1.36-703pmf6z.mjs +135 -0
- package/dist/chunks/cli-1.1.36-72hptg9d.mjs +2 -0
- package/dist/chunks/cli-1.1.36-72p8zdsg.mjs +2 -0
- package/dist/chunks/cli-1.1.36-72sph7cp.mjs +3 -0
- package/dist/chunks/cli-1.1.36-775g6c3z.mjs +2 -0
- package/dist/chunks/cli-1.1.36-789jh18m.mjs +2 -0
- package/dist/chunks/cli-1.1.36-79jcadbx.mjs +2 -0
- package/dist/chunks/cli-1.1.36-7byzkddk.mjs +3 -0
- package/dist/chunks/cli-1.1.36-7tprmtpr.mjs +2 -0
- package/dist/chunks/cli-1.1.36-7v42aqn9.mjs +2 -0
- package/dist/chunks/cli-1.1.36-7xx3rm4x.mjs +2 -0
- package/dist/chunks/cli-1.1.36-7ywn6pq1.mjs +2 -0
- package/dist/chunks/cli-1.1.36-7z5n90ex.mjs +3 -0
- package/dist/chunks/cli-1.1.36-80gqbr44.mjs +2 -0
- package/dist/chunks/cli-1.1.36-814rb1qn.mjs +2 -0
- package/dist/chunks/cli-1.1.36-89dhnv3q.mjs +2 -0
- package/dist/chunks/cli-1.1.36-8k2z8yvv.mjs +4 -0
- package/dist/chunks/cli-1.1.36-8mc299mk.mjs +6 -0
- package/dist/chunks/cli-1.1.36-8s4n3bf2.mjs +2 -0
- package/dist/chunks/cli-1.1.36-8vncd2t8.mjs +2 -0
- package/dist/chunks/cli-1.1.36-90xk1ctt.mjs +4 -0
- package/dist/chunks/cli-1.1.36-97zq0wp5.mjs +2 -0
- package/dist/chunks/cli-1.1.36-9k371kgm.mjs +15 -0
- package/dist/chunks/cli-1.1.36-9xnre98h.mjs +2 -0
- package/dist/chunks/cli-1.1.36-a4gh459t.mjs +2 -0
- package/dist/chunks/cli-1.1.36-adsb7266.mjs +2 -0
- package/dist/chunks/cli-1.1.36-ahr5fnjy.mjs +2 -0
- package/dist/chunks/cli-1.1.36-apycha28.mjs +2 -0
- package/dist/chunks/cli-1.1.36-as3jtdj6.mjs +4 -0
- package/dist/chunks/cli-1.1.36-aypab30m.mjs +2 -0
- package/dist/chunks/cli-1.1.36-b0rge62y.mjs +133 -0
- package/dist/chunks/cli-1.1.36-b54n0msa.mjs +2 -0
- package/dist/chunks/cli-1.1.36-b77v7k9g.mjs +3 -0
- package/dist/chunks/cli-1.1.36-bsfazmtt.mjs +2 -0
- package/dist/chunks/cli-1.1.36-bxrew2k8.mjs +2 -0
- package/dist/chunks/cli-1.1.36-bywrsksg.mjs +2 -0
- package/dist/chunks/cli-1.1.36-c3rd4cfc.mjs +10 -0
- package/dist/chunks/cli-1.1.36-c4k9g1dk.mjs +2 -0
- package/dist/chunks/cli-1.1.36-c4pkjm54.mjs +2 -0
- package/dist/chunks/cli-1.1.36-cm2kys6t.mjs +2 -0
- package/dist/chunks/cli-1.1.36-cya5x9g3.mjs +2 -0
- package/dist/chunks/cli-1.1.36-d4bd8qw2.mjs +4 -0
- package/dist/chunks/cli-1.1.36-dpn3xp4e.mjs +2 -0
- package/dist/chunks/cli-1.1.36-dt9kgcr3.mjs +2 -0
- package/dist/chunks/cli-1.1.36-e5xkjjtj.mjs +21 -0
- package/dist/chunks/cli-1.1.36-ef3vjg8b.mjs +9 -0
- package/dist/chunks/cli-1.1.36-f6yxszv5.mjs +2 -0
- package/dist/chunks/cli-1.1.36-fd7xaf6g.mjs +2 -0
- package/dist/chunks/cli-1.1.36-fhnpvzaf.mjs +6 -0
- package/dist/chunks/cli-1.1.36-fj9nx7k4.mjs +10 -0
- package/dist/chunks/cli-1.1.36-fw6d7jyv.mjs +2 -0
- package/dist/chunks/cli-1.1.36-fxpd9jmz.mjs +2 -0
- package/dist/chunks/cli-1.1.36-gfn4xejp.mjs +17 -0
- package/dist/chunks/cli-1.1.36-gfx5kkq4.mjs +2 -0
- package/dist/chunks/cli-1.1.36-ggr2pkp7.mjs +2 -0
- package/dist/chunks/cli-1.1.36-gpks9z9m.mjs +2 -0
- package/dist/chunks/cli-1.1.36-h74yjk66.mjs +2 -0
- package/dist/chunks/cli-1.1.36-haxnmraq.mjs +24 -0
- package/dist/chunks/cli-1.1.36-hqmz0657.mjs +3 -0
- package/dist/chunks/cli-1.1.36-hvnr6rta.mjs +2 -0
- package/dist/chunks/cli-1.1.36-jnftcw4c.mjs +2 -0
- package/dist/chunks/cli-1.1.36-jpcwwd65.mjs +5 -0
- package/dist/chunks/cli-1.1.36-jqn2tez7.mjs +2 -0
- package/dist/chunks/cli-1.1.36-jx3e7dft.mjs +9 -0
- package/dist/chunks/cli-1.1.36-k14jc4fv.mjs +2 -0
- package/dist/chunks/cli-1.1.36-kzxdhaaz.mjs +2 -0
- package/dist/chunks/cli-1.1.36-m11p0exg.mjs +2 -0
- package/dist/chunks/cli-1.1.36-m981mqsb.mjs +39 -0
- package/dist/chunks/cli-1.1.36-mam7e8zn.mjs +11 -0
- package/dist/chunks/cli-1.1.36-mmre9943.mjs +2 -0
- package/dist/chunks/cli-1.1.36-n44emd29.mjs +2 -0
- package/dist/chunks/cli-1.1.36-n5etyd9m.mjs +2 -0
- package/dist/chunks/cli-1.1.36-n9knhbs6.mjs +6 -0
- package/dist/chunks/cli-1.1.36-nnzqwcsc.mjs +2 -0
- package/dist/chunks/cli-1.1.36-nqy7mzrt.mjs +45 -0
- package/dist/chunks/cli-1.1.36-nw3mandv.mjs +50 -0
- package/dist/chunks/cli-1.1.36-p0w1dm9g.mjs +2 -0
- package/dist/chunks/cli-1.1.36-p375v620.mjs +6 -0
- package/dist/chunks/cli-1.1.36-p7w1197h.mjs +2 -0
- package/dist/chunks/cli-1.1.36-psd41gmc.mjs +2 -0
- package/dist/chunks/cli-1.1.36-pwszcwqb.mjs +2 -0
- package/dist/chunks/cli-1.1.36-pxy9g55g.mjs +20 -0
- package/dist/chunks/cli-1.1.36-q2e0arg8.mjs +2 -0
- package/dist/chunks/cli-1.1.36-q4a30pjq.mjs +2 -0
- package/dist/chunks/cli-1.1.36-q9xgs0j5.mjs +3 -0
- package/dist/chunks/cli-1.1.36-qdefh0tg.mjs +2 -0
- package/dist/chunks/cli-1.1.36-qm9492fw.mjs +2 -0
- package/dist/chunks/cli-1.1.36-qn4td7gm.mjs +4 -0
- package/dist/chunks/cli-1.1.36-qxdw7xas.mjs +3 -0
- package/dist/chunks/cli-1.1.36-qyd8fnkc.mjs +2 -0
- package/dist/chunks/cli-1.1.36-r241fh82.mjs +5 -0
- package/dist/chunks/cli-1.1.36-r2svaxxt.mjs +25 -0
- package/dist/chunks/cli-1.1.36-rh00pabh.mjs +2 -0
- package/dist/chunks/cli-1.1.36-rkcfjk5n.mjs +8 -0
- package/dist/chunks/cli-1.1.36-rp1ck3rr.mjs +2 -0
- package/dist/chunks/cli-1.1.36-rqhp2xt1.mjs +24 -0
- package/dist/chunks/cli-1.1.36-rv222he2.mjs +2 -0
- package/dist/chunks/cli-1.1.36-rwa4g74g.mjs +3 -0
- package/dist/chunks/cli-1.1.36-rwqe4psg.mjs +2 -0
- package/dist/chunks/cli-1.1.36-s8jcsdgb.mjs +16 -0
- package/dist/chunks/cli-1.1.36-s9ar9y3g.mjs +42 -0
- package/dist/chunks/cli-1.1.36-sd51t79y.mjs +2 -0
- package/dist/chunks/cli-1.1.36-ss62b517.mjs +63 -0
- package/dist/chunks/cli-1.1.36-t0ncrwb0.mjs +2 -0
- package/dist/chunks/cli-1.1.36-t6sjxpcb.mjs +251 -0
- package/dist/chunks/cli-1.1.36-tda1q99k.mjs +2 -0
- package/dist/chunks/cli-1.1.36-tvr7rnm0.mjs +2 -0
- package/dist/chunks/cli-1.1.36-v0s0vqmm.mjs +5551 -0
- package/dist/chunks/cli-1.1.36-v5nxnkwj.mjs +2 -0
- package/dist/chunks/cli-1.1.36-vdy55pxe.mjs +2 -0
- package/dist/chunks/cli-1.1.36-vz7m93en.mjs +2 -0
- package/dist/chunks/cli-1.1.36-w1nf9wd0.mjs +10 -0
- package/dist/chunks/cli-1.1.36-w23zxn8g.mjs +2 -0
- package/dist/chunks/cli-1.1.36-wdrt641n.mjs +25 -0
- package/dist/chunks/cli-1.1.36-wdvzyaky.mjs +2 -0
- package/dist/chunks/cli-1.1.36-wfgjsqkk.mjs +2 -0
- package/dist/chunks/cli-1.1.36-wwwj09sw.mjs +2 -0
- package/dist/chunks/cli-1.1.36-x0qqxv1t.mjs +2 -0
- package/dist/chunks/cli-1.1.36-x11fzb6n.mjs +2 -0
- package/dist/chunks/cli-1.1.36-x1761kx6.mjs +2 -0
- package/dist/chunks/cli-1.1.36-xf45p3qr.mjs +2 -0
- package/dist/chunks/cli-1.1.36-xj95r55n.mjs +2 -0
- package/dist/chunks/cli-1.1.36-xs4p38vb.mjs +6 -0
- package/dist/chunks/cli-1.1.36-xvwc8bka.mjs +2 -0
- package/dist/chunks/cli-1.1.36-ya2s1rfy.mjs +18 -0
- package/dist/chunks/cli-1.1.36-yew13j62.mjs +2 -0
- package/dist/chunks/cli-1.1.36-ykz9vwbf.mjs +2 -0
- package/dist/chunks/cli-1.1.36-yrgfywq5.mjs +24 -0
- package/dist/chunks/cli-1.1.36-z5djkbwy.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zax3mr51.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zbn66hn9.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zd032ger.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zeahx79z.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zey2drb2.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zv6ffhhy.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zw8q3z61.mjs +2 -0
- package/dist/chunks/cli-1.1.36-zzpdy0k8.mjs +2 -0
- package/dist/chunks/client-1.1.36-ydq31jce.mjs +1 -0
- package/dist/chunks/color-1.1.36-9fjvayey.mjs +1 -0
- package/dist/chunks/compact-1.1.36-p42ft3yq.mjs +2 -0
- package/dist/chunks/config-1.1.36-42ab04bq.mjs +1 -0
- package/dist/chunks/config-1.1.36-x636yezt.mjs +1 -0
- package/dist/chunks/constants-1.1.36-ba1bvty5.mjs +1 -0
- package/dist/chunks/context-1.1.36-zjvkgfrr.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.36-f5rax1ah.mjs +1 -0
- package/dist/chunks/conversation-1.1.36-jd5867c5.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.36-dg9s10xt.mjs +1 -0
- package/dist/chunks/copy-1.1.36-95ds743c.mjs +9 -0
- package/dist/chunks/cost-1.1.36-vhm8f7tp.mjs +1 -0
- package/dist/chunks/createSession-1.1.36-haxa0dvw.mjs +1 -0
- package/dist/chunks/debug-1.1.36-fvyvxmx1.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.36-24ag19wj.mjs +1458 -0
- package/dist/chunks/desktop-1.1.36-n6x2epmn.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.36-ktxtd4ej.mjs +1 -0
- package/dist/chunks/detection-1.1.36-s8z7d4bm.mjs +1 -0
- package/dist/chunks/diff-1.1.36-0mrzd4kw.mjs +1 -0
- package/dist/chunks/doctor-1.1.36-tta8yrqq.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.36-1j38851d.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.36-rv44jymf.mjs +1 -0
- package/dist/chunks/effort-1.1.36-yd22tc48.mjs +13 -0
- package/dist/chunks/engine-1.1.36-cf09xwf2.mjs +1 -0
- package/dist/chunks/envUtils-1.1.36-e9dd4q6g.mjs +1 -0
- package/dist/chunks/errors-1.1.36-86veg19m.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.36-nmf2s84f.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.36-naz9kbtt.mjs +1 -0
- package/dist/chunks/exit-1.1.36-53t418pg.mjs +1 -0
- package/dist/chunks/explorer-1.1.36-pgghex3j.mjs +1 -0
- package/dist/chunks/export-1.1.36-1ynxg1wb.mjs +2 -0
- package/dist/chunks/fast-1.1.36-f64h2t2k.mjs +1 -0
- package/dist/chunks/feedback-1.1.36-vgb10qbs.mjs +16 -0
- package/dist/chunks/git-1.1.36-f934674g.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.36-f2yec5gh.mjs +1 -0
- package/dist/chunks/goal-1.1.36-yyy0jkwz.mjs +4 -0
- package/dist/chunks/headless-1.1.36-47ts4j1h.mjs +2 -0
- package/dist/chunks/heapdump-1.1.36-hhwpz3jf.mjs +6 -0
- package/dist/chunks/help-1.1.36-zr7z9tga.mjs +1 -0
- package/dist/chunks/hooks-1.1.36-and1agcb.mjs +79 -0
- package/dist/chunks/hooks-1.1.36-qgd5x79v.mjs +1 -0
- package/dist/chunks/ide-1.1.36-afc5wn8q.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.36-ycj021z0.mjs +1 -0
- package/dist/chunks/import-1.1.36-jrjb5s4n.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.36-h1yrtqms.mjs +1 -0
- package/dist/chunks/index-1.1.36-048ng2px.mjs +1 -0
- package/dist/chunks/index-1.1.36-1mbx6axa.mjs +1 -0
- package/dist/chunks/index-1.1.36-1rzdb7w0.mjs +1 -0
- package/dist/chunks/index-1.1.36-312tvs2v.mjs +2 -0
- package/dist/chunks/index-1.1.36-46vz4hm5.mjs +5 -0
- package/dist/chunks/index-1.1.36-4dth0mx8.mjs +1 -0
- package/dist/chunks/index-1.1.36-5bc8t250.mjs +9 -0
- package/dist/chunks/index-1.1.36-6mpk59p2.mjs +1 -0
- package/dist/chunks/index-1.1.36-83wpkv8f.mjs +30 -0
- package/dist/chunks/index-1.1.36-8s1fe47p.mjs +9 -0
- package/dist/chunks/index-1.1.36-95xjkxf6.mjs +1 -0
- package/dist/chunks/index-1.1.36-c90kzpg9.mjs +1 -0
- package/dist/chunks/index-1.1.36-ectpcy01.mjs +1 -0
- package/dist/chunks/index-1.1.36-f33wa99v.mjs +1 -0
- package/dist/chunks/index-1.1.36-fgj4arq3.mjs +23 -0
- package/dist/chunks/index-1.1.36-fr144w7s.mjs +1 -0
- package/dist/chunks/index-1.1.36-keejgmvt.mjs +1 -0
- package/dist/chunks/index-1.1.36-knytd0n4.mjs +1 -0
- package/dist/chunks/index-1.1.36-m21fh89b.mjs +1 -0
- package/dist/chunks/index-1.1.36-n3tpswv4.mjs +1 -0
- package/dist/chunks/index-1.1.36-q6468dg7.mjs +1 -0
- package/dist/chunks/index-1.1.36-svzjvq7t.mjs +1 -0
- package/dist/chunks/index-1.1.36-vpaaz84z.mjs +2 -0
- package/dist/chunks/init-1.1.36-16rj95sf.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.36-xganfz86.mjs +1 -0
- package/dist/chunks/ink-1.1.36-ayvk483m.mjs +1 -0
- package/dist/chunks/insights-1.1.36-0kqbkgbz.mjs +870 -0
- package/dist/chunks/install-1.1.36-3v0b55mh.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.36-6ybyxdq5.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.36-040ssrxp.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.36-2fm0smr3.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.36-9fa4kpt8.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.36-t9mhqgv5.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.36-vf3yqk6b.mjs +1 -0
- package/dist/chunks/log-1.1.36-zazc6e80.mjs +1 -0
- package/dist/chunks/main-1.1.36-r3b0ysm4.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.36-nksy6dte.mjs +1 -0
- package/dist/chunks/mcp-1.1.36-7fbqeb90.mjs +17 -0
- package/dist/chunks/mcp-1.1.36-d2df02nr.mjs +4 -0
- package/dist/chunks/mcp-1.1.36-dj3ctzg2.mjs +1 -0
- package/dist/chunks/mcpb-1.1.36-7hcc3bm8.mjs +1 -0
- package/dist/chunks/memory-1.1.36-4h4pw21v.mjs +128 -0
- package/dist/chunks/model-1.1.36-3vvdafvs.mjs +1 -0
- package/dist/chunks/model-1.1.36-pvrxzcbd.mjs +2 -0
- package/dist/chunks/node-1.1.36-xhks7s8w.mjs +15 -0
- package/dist/chunks/node-1.1.36-z1nceabc.mjs +1 -0
- package/dist/chunks/oauth-1.1.36-w0jf6x39.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.36-m75hvh8e.mjs +14 -0
- package/dist/chunks/output-style-1.1.36-c0mgemjb.mjs +1 -0
- package/dist/chunks/package-F6O7J2XI-1.1.36-kfm7v15k.mjs +1 -0
- package/dist/chunks/permissions-1.1.36-20jz1yq3.mjs +3 -0
- package/dist/chunks/permissions-1.1.36-mtf6m3pf.mjs +1 -0
- package/dist/chunks/plan-1.1.36-r2k6ysce.mjs +1 -0
- package/dist/chunks/plist-1.1.36-8vg2xrj2.mjs +1 -0
- package/dist/chunks/plugin-1.1.36-xa4j4bj2.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.36-7bczq621.mjs +1 -0
- package/dist/chunks/plugins-1.1.36-ck8ycs01.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.36-yt9dm2yh.mjs +2 -0
- package/dist/chunks/print-1.1.36-gcmgxxx7.mjs +57 -0
- package/dist/chunks/process-1.1.36-4kdmcjeq.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.36-5tbfja2m.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.36-db99hjpc.mjs +9 -0
- package/dist/chunks/prompt-1.1.36-7qyxemw6.mjs +1 -0
- package/dist/chunks/prompt-1.1.36-tx374tzn.mjs +1 -0
- package/dist/chunks/prompts-1.1.36-gj1pggdg.mjs +1 -0
- package/dist/chunks/provider-1.1.36-d73knpnr.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.36-v0p0gdag.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.36-bzznd00d.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.36-8s9pb6g7.mjs +26 -0
- package/dist/chunks/registry-1.1.36-4bt4ac4z.mjs +1 -0
- package/dist/chunks/release-notes-1.1.36-zbexvzjp.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.36-n8nwygb8.mjs +2 -0
- package/dist/chunks/remote-env-1.1.36-fr8j8hcc.mjs +1 -0
- package/dist/chunks/rename-1.1.36-x06agpgx.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.36-2hp08v6r.mjs +1 -0
- package/dist/chunks/resume-1.1.36-1srfb0q2.mjs +2 -0
- package/dist/chunks/rewind-1.1.36-zkycjr7d.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.36-4m9s4acv.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.36-jbtcynyc.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.36-xrvrh2qp.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.36-2yw8m1jq.mjs +1 -0
- package/dist/chunks/session-1.1.36-dxen3cg6.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.36-dbt045aw.mjs +1 -0
- package/dist/chunks/settings-1.1.36-jb6t4nt2.mjs +1 -0
- package/dist/chunks/setup-1.1.36-7ady6j9j.mjs +12 -0
- package/dist/chunks/sinks-1.1.36-j124tdmn.mjs +1 -0
- package/dist/chunks/skills-1.1.36-wad885e2.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.36-0xnygcy5.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.36-6mvjw2sk.mjs +1 -0
- package/dist/chunks/state-1.1.36-mwqgyp6n.mjs +1 -0
- package/dist/chunks/stats-1.1.36-yzk5t8nc.mjs +1 -0
- package/dist/chunks/status-1.1.36-8b177p6e.mjs +1 -0
- package/dist/chunks/stickers-1.1.36-kdxt4s8f.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.36-g1a43154.mjs +1 -0
- package/dist/chunks/tasks-1.1.36-cnmsc211.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.36-1pwk4n3y.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.36-2stc51nw.mjs +1 -0
- package/dist/chunks/teleport-1.1.36-tdvpgdhd.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.36-agbzd4wd.mjs +1 -0
- package/dist/chunks/theme-1.1.36-2w481ds6.mjs +1 -0
- package/dist/chunks/toolPool-1.1.36-hdw9b8ht.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.36-ccs29nek.mjs +1 -0
- package/dist/chunks/tools-1.1.36-zqsjpqnk.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.36-pwcp7479.mjs +69 -0
- package/dist/chunks/types-1.1.36-bwfasf0g.mjs +1 -0
- package/dist/chunks/update-1.1.36-hzk0xj2g.mjs +72 -0
- package/dist/chunks/upload-1.1.36-mb3a5t01.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.36-x1y5p82n.mjs +14 -0
- package/dist/chunks/usage-1.1.36-qzytaj6z.mjs +1 -0
- package/dist/chunks/util-1.1.36-kb0yef79.mjs +1 -0
- package/dist/chunks/utils-1.1.36-fm3eywyj.mjs +1 -0
- package/dist/chunks/vim-1.1.36-x7adhmdd.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.36-4s334wzz.mjs +13 -0
- package/dist/chunks/wiki-1.1.36-dn9csm8a.mjs +132 -0
- package/dist/chunks/workflows-1.1.36-v5b9khnt.mjs +1 -0
- package/dist/chunks/worktree-1.1.36-cesdwabt.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.36-m20cdekt.mjs +1 -0
- package/dist/chunks/wrapper-1.1.36-1m0td68t.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.35-r3nj6jfs.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.35-8nvhxyw9.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.35-1ywwnh39.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.35-bvk75rww.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.35-1ct3fw8c.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.35-nt22bzb6.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.35-98xrgmtc.mjs +0 -6
- package/dist/chunks/Doctor-1.1.35-k34y3jy9.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.35-nan1wyke.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.35-kt3ng0j6.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.35-k7wnc3v8.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.35-3dp4jb6e.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.35-6pa67bzn.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.35-4sje6bjv.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.35-99y8t1j9.mjs +0 -1
- package/dist/chunks/REPL-1.1.35-0vqh1ns0.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.35-104fszyr.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.35-xcz2dypc.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.35-nfckw5cx.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.35-6528ybrk.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.35-rqncjk99.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.35-0t2d7g7n.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.35-j9d3asbg.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.35-fkjy6sz1.mjs +0 -1
- package/dist/chunks/add-dir-1.1.35-4gh89hh4.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.35-nx5q66t5.mjs +0 -1
- package/dist/chunks/agents-1.1.35-0kyfdt7w.mjs +0 -3
- package/dist/chunks/agents-1.1.35-1vzstv4y.mjs +0 -110
- package/dist/chunks/api-1.1.35-ab0j2x7t.mjs +0 -1
- package/dist/chunks/asciicast-1.1.35-xgjp2wrs.mjs +0 -1
- package/dist/chunks/auth-1.1.35-2fpa9v9f.mjs +0 -1
- package/dist/chunks/auth-1.1.35-deksnwe8.mjs +0 -1
- package/dist/chunks/autoMode-1.1.35-8d2qr79q.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.35-hg5dxv1t.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.35-5pzsrenf.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.35-2kythx4m.mjs +0 -1
- package/dist/chunks/branch-1.1.35-tmksh596.mjs +0 -4
- package/dist/chunks/bridge-1.1.35-0za41yjp.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.35-qtvayvc3.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.35-3mhemdrx.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.35-7awverkv.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.35-5gpfg6h4.mjs +0 -1
- package/dist/chunks/btw-1.1.35-6hy8wabr.mjs +0 -1
- package/dist/chunks/buddy-1.1.35-8z3tb1ne.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.35-adn6dpak.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.35-z3268gay.mjs +0 -4
- package/dist/chunks/caches-1.1.35-1qqfgvsm.mjs +0 -1
- package/dist/chunks/cd-1.1.35-vqy7n0x0.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.35-enw3hpss.mjs +0 -1
- package/dist/chunks/claudemd-1.1.35-wsav3shz.mjs +0 -1
- package/dist/chunks/clear-1.1.35-21ry6n0m.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.35-sg808cbp.mjs +0 -1
- package/dist/chunks/cli-1.1.35-02qx9a8j.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0axe3ev5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0feday40.mjs +0 -20
- package/dist/chunks/cli-1.1.35-0p69hr1j.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0qrw70p1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0tc3wmtp.mjs +0 -5
- package/dist/chunks/cli-1.1.35-0vpxr2rk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-0zkzg6at.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1618y169.mjs +0 -2
- package/dist/chunks/cli-1.1.35-18wszrez.mjs +0 -15
- package/dist/chunks/cli-1.1.35-1bzyzrvt.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1ceb2tjb.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1gae8a5m.mjs +0 -2
- package/dist/chunks/cli-1.1.35-1x2wb524.mjs +0 -2
- package/dist/chunks/cli-1.1.35-21w0bna1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-22q1jqqq.mjs +0 -2
- package/dist/chunks/cli-1.1.35-2gxxpyvc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-2sm1x5n8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-2x0m7ewe.mjs +0 -9
- package/dist/chunks/cli-1.1.35-34h7nfzz.mjs +0 -11
- package/dist/chunks/cli-1.1.35-389ej7r1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-38s8y5cf.mjs +0 -2
- package/dist/chunks/cli-1.1.35-3keqk8xr.mjs +0 -2
- package/dist/chunks/cli-1.1.35-3zrjqd93.mjs +0 -2
- package/dist/chunks/cli-1.1.35-41srzc8c.mjs +0 -2
- package/dist/chunks/cli-1.1.35-46bm9f8q.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4d0cm3mc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4d9merys.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4g77zek0.mjs +0 -24
- package/dist/chunks/cli-1.1.35-4kft2wxe.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4njf7z42.mjs +0 -2
- package/dist/chunks/cli-1.1.35-4typvdqe.mjs +0 -2
- package/dist/chunks/cli-1.1.35-589b1qht.mjs +0 -2
- package/dist/chunks/cli-1.1.35-5b39mwe0.mjs +0 -2
- package/dist/chunks/cli-1.1.35-5j12hjjm.mjs +0 -2
- package/dist/chunks/cli-1.1.35-5v115fee.mjs +0 -2
- package/dist/chunks/cli-1.1.35-61gmwbbt.mjs +0 -2
- package/dist/chunks/cli-1.1.35-688xsqg8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-6c4v5dpe.mjs +0 -15
- package/dist/chunks/cli-1.1.35-6nhv8vhv.mjs +0 -2
- package/dist/chunks/cli-1.1.35-6p10e278.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7g4yw92j.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7hfdc6xn.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7mxbj45y.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7mz6cnfb.mjs +0 -6
- package/dist/chunks/cli-1.1.35-7nsr0a6p.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7p1685r1.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7tt5b2wx.mjs +0 -2
- package/dist/chunks/cli-1.1.35-7y74em05.mjs +0 -2
- package/dist/chunks/cli-1.1.35-82ak1wpt.mjs +0 -7
- package/dist/chunks/cli-1.1.35-854kyr9a.mjs +0 -3
- package/dist/chunks/cli-1.1.35-85zb0hfp.mjs +0 -2
- package/dist/chunks/cli-1.1.35-873xb9w7.mjs +0 -2
- package/dist/chunks/cli-1.1.35-8b1qqrev.mjs +0 -135
- package/dist/chunks/cli-1.1.35-8d9f31xx.mjs +0 -2
- package/dist/chunks/cli-1.1.35-8qdvqjz3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-8ttx7y70.mjs +0 -2
- package/dist/chunks/cli-1.1.35-959df5vk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-9817kkw4.mjs +0 -3
- package/dist/chunks/cli-1.1.35-9dkpx812.mjs +0 -2
- package/dist/chunks/cli-1.1.35-9tnc0a3x.mjs +0 -2
- package/dist/chunks/cli-1.1.35-9z4kwrpr.mjs +0 -6
- package/dist/chunks/cli-1.1.35-a7ygtwdr.mjs +0 -5
- package/dist/chunks/cli-1.1.35-a8677mcz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-a9y8qxsj.mjs +0 -6
- package/dist/chunks/cli-1.1.35-an20pj6q.mjs +0 -2
- package/dist/chunks/cli-1.1.35-arj7fm1n.mjs +0 -2
- package/dist/chunks/cli-1.1.35-b0n88pf7.mjs +0 -2
- package/dist/chunks/cli-1.1.35-bbq4frhw.mjs +0 -2
- package/dist/chunks/cli-1.1.35-bhmad6rp.mjs +0 -3
- package/dist/chunks/cli-1.1.35-bka68014.mjs +0 -2
- package/dist/chunks/cli-1.1.35-bq7wadxz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-c05841mj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-c3vqfrj0.mjs +0 -45
- package/dist/chunks/cli-1.1.35-c4thx500.mjs +0 -26
- package/dist/chunks/cli-1.1.35-cj42e7aq.mjs +0 -24
- package/dist/chunks/cli-1.1.35-cjdzbmst.mjs +0 -2
- package/dist/chunks/cli-1.1.35-cjsf2kh3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-cm0anghq.mjs +0 -2
- package/dist/chunks/cli-1.1.35-cp6wwahj.mjs +0 -4
- package/dist/chunks/cli-1.1.35-d6kd2zv5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-d7n85zf2.mjs +0 -2
- package/dist/chunks/cli-1.1.35-da72zgbs.mjs +0 -50
- package/dist/chunks/cli-1.1.35-dfcj4fkz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-dk4f6kgr.mjs +0 -2
- package/dist/chunks/cli-1.1.35-dnacc640.mjs +0 -252
- package/dist/chunks/cli-1.1.35-dw3fv0g8.mjs +0 -60
- package/dist/chunks/cli-1.1.35-dwaz1jv4.mjs +0 -2
- package/dist/chunks/cli-1.1.35-e08b8j98.mjs +0 -18
- package/dist/chunks/cli-1.1.35-eqcgyqke.mjs +0 -39
- package/dist/chunks/cli-1.1.35-ewtk80cp.mjs +0 -3
- package/dist/chunks/cli-1.1.35-f6sa351s.mjs +0 -5
- package/dist/chunks/cli-1.1.35-f8jgxvev.mjs +0 -2
- package/dist/chunks/cli-1.1.35-fgkpe9g9.mjs +0 -2
- package/dist/chunks/cli-1.1.35-fjtf9x1v.mjs +0 -2
- package/dist/chunks/cli-1.1.35-fr8gap0y.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ftvtbdm6.mjs +0 -4
- package/dist/chunks/cli-1.1.35-fwyc7v71.mjs +0 -7
- package/dist/chunks/cli-1.1.35-fz50q22a.mjs +0 -2
- package/dist/chunks/cli-1.1.35-g2vg6fw2.mjs +0 -2
- package/dist/chunks/cli-1.1.35-g7086zkj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-g74y15na.mjs +0 -2
- package/dist/chunks/cli-1.1.35-gcjyc9x3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-gr966v4t.mjs +0 -2
- package/dist/chunks/cli-1.1.35-h06ng57d.mjs +0 -2
- package/dist/chunks/cli-1.1.35-h262sgvd.mjs +0 -4
- package/dist/chunks/cli-1.1.35-h71ph12s.mjs +0 -2
- package/dist/chunks/cli-1.1.35-h7qpm4z8.mjs +0 -3
- package/dist/chunks/cli-1.1.35-hm1wpf1w.mjs +0 -2
- package/dist/chunks/cli-1.1.35-htvjtg4f.mjs +0 -2
- package/dist/chunks/cli-1.1.35-hwphkmp4.mjs +0 -2
- package/dist/chunks/cli-1.1.35-hy9jtbmb.mjs +0 -5570
- package/dist/chunks/cli-1.1.35-hyqzaskn.mjs +0 -2
- package/dist/chunks/cli-1.1.35-j1ypjsz5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-j7xxkgf1.mjs +0 -133
- package/dist/chunks/cli-1.1.35-jajp8grw.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jdqn8gkp.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jfzp91gv.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jn52m495.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jq1wvnwe.mjs +0 -17
- package/dist/chunks/cli-1.1.35-jrexyjt9.mjs +0 -2
- package/dist/chunks/cli-1.1.35-jvhs6ypf.mjs +0 -10
- package/dist/chunks/cli-1.1.35-jx42cnmn.mjs +0 -15
- package/dist/chunks/cli-1.1.35-k6jh38a3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kbrngf5h.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kcgcs2dj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kdw3m4z1.mjs +0 -25
- package/dist/chunks/cli-1.1.35-kh8s6rf2.mjs +0 -4
- package/dist/chunks/cli-1.1.35-kkhrpw6q.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kp2hgrdb.mjs +0 -24
- package/dist/chunks/cli-1.1.35-ktb8z2s9.mjs +0 -3
- package/dist/chunks/cli-1.1.35-kvw88dmk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-kz5tydkv.mjs +0 -2
- package/dist/chunks/cli-1.1.35-m20xytkt.mjs +0 -2
- package/dist/chunks/cli-1.1.35-m6efjk78.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ma6czbht.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ms3xdp4c.mjs +0 -42
- package/dist/chunks/cli-1.1.35-ms5g0jwj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-nahyfraf.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ne21zedp.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ngg53c9c.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pa3rjff6.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pgcrgrc3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pms9wnd8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pr69kkhz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-prf6sjs7.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ps66nanc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-pycaqt81.mjs +0 -2
- package/dist/chunks/cli-1.1.35-q1axe4bk.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qb0eb8th.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qbahm5cg.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qgjs5ex0.mjs +0 -7
- package/dist/chunks/cli-1.1.35-qnfq8bw4.mjs +0 -4
- package/dist/chunks/cli-1.1.35-qvdpj1qb.mjs +0 -2
- package/dist/chunks/cli-1.1.35-qxj39xzd.mjs +0 -8
- package/dist/chunks/cli-1.1.35-qygaywxg.mjs +0 -34
- package/dist/chunks/cli-1.1.35-r4rm2297.mjs +0 -4
- package/dist/chunks/cli-1.1.35-r80cjbt8.mjs +0 -2
- package/dist/chunks/cli-1.1.35-rmfsk9nw.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s05wj44h.mjs +0 -3
- package/dist/chunks/cli-1.1.35-s066wwsj.mjs +0 -3
- package/dist/chunks/cli-1.1.35-s367nd6g.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s3d0nchc.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s6n3pb03.mjs +0 -2
- package/dist/chunks/cli-1.1.35-s85hd24a.mjs +0 -16
- package/dist/chunks/cli-1.1.35-sg0tga4d.mjs +0 -2
- package/dist/chunks/cli-1.1.35-swxcv3xf.mjs +0 -6
- package/dist/chunks/cli-1.1.35-szkn08rr.mjs +0 -2
- package/dist/chunks/cli-1.1.35-t2vx6b45.mjs +0 -17
- package/dist/chunks/cli-1.1.35-t5kexs8c.mjs +0 -6
- package/dist/chunks/cli-1.1.35-t8c5b3qj.mjs +0 -4
- package/dist/chunks/cli-1.1.35-ta15z2yx.mjs +0 -10
- package/dist/chunks/cli-1.1.35-tsrq3cxy.mjs +0 -2
- package/dist/chunks/cli-1.1.35-tsx8c30n.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ve889dy8.mjs +0 -3
- package/dist/chunks/cli-1.1.35-w1mzdb9s.mjs +0 -2
- package/dist/chunks/cli-1.1.35-w6kgq9n5.mjs +0 -2
- package/dist/chunks/cli-1.1.35-w73x0912.mjs +0 -2
- package/dist/chunks/cli-1.1.35-w9wzew2x.mjs +0 -4
- package/dist/chunks/cli-1.1.35-wmcp8vyj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-wpa5rfnt.mjs +0 -12
- package/dist/chunks/cli-1.1.35-wtjyzsga.mjs +0 -2
- package/dist/chunks/cli-1.1.35-ww28b5vj.mjs +0 -2
- package/dist/chunks/cli-1.1.35-x5ft52g3.mjs +0 -2
- package/dist/chunks/cli-1.1.35-xbhjhs1c.mjs +0 -3
- package/dist/chunks/cli-1.1.35-xdzsf38z.mjs +0 -2
- package/dist/chunks/cli-1.1.35-xs5mj8ee.mjs +0 -21
- package/dist/chunks/cli-1.1.35-y6bdqv7z.mjs +0 -2
- package/dist/chunks/cli-1.1.35-y6xhcehv.mjs +0 -25
- package/dist/chunks/cli-1.1.35-yns1ngnz.mjs +0 -2
- package/dist/chunks/cli-1.1.35-yta9zrj6.mjs +0 -2
- package/dist/chunks/cli-1.1.35-zbz78cha.mjs +0 -9
- package/dist/chunks/cli-1.1.35-zf7zq3kb.mjs +0 -63
- package/dist/chunks/client-1.1.35-2j9sd0sg.mjs +0 -1
- package/dist/chunks/color-1.1.35-nf9dqw3m.mjs +0 -1
- package/dist/chunks/compact-1.1.35-h8mqxxs0.mjs +0 -2
- package/dist/chunks/config-1.1.35-7t0vfbst.mjs +0 -1
- package/dist/chunks/config-1.1.35-cfhvn2fq.mjs +0 -1
- package/dist/chunks/constants-1.1.35-kst22e3x.mjs +0 -1
- package/dist/chunks/context-1.1.35-2nc26t9y.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.35-0ym77q3t.mjs +0 -1
- package/dist/chunks/conversation-1.1.35-0q4g6qt8.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.35-7a5mc98p.mjs +0 -1
- package/dist/chunks/copy-1.1.35-n37rvhzj.mjs +0 -9
- package/dist/chunks/cost-1.1.35-hjmwjk6s.mjs +0 -1
- package/dist/chunks/createSession-1.1.35-v7c15fc8.mjs +0 -1
- package/dist/chunks/debug-1.1.35-2hf8mhst.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.35-15jcbncs.mjs +0 -1480
- package/dist/chunks/desktop-1.1.35-6w6gjpff.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.35-eztj0q3f.mjs +0 -1
- package/dist/chunks/detection-1.1.35-rfkb2dxe.mjs +0 -1
- package/dist/chunks/diff-1.1.35-xb27tkcx.mjs +0 -1
- package/dist/chunks/doctor-1.1.35-ddg564v7.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.35-1gfkz0p1.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.35-5wsb4bkz.mjs +0 -1
- package/dist/chunks/effort-1.1.35-r53ttmc3.mjs +0 -13
- package/dist/chunks/engine-1.1.35-xthhbk9w.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.35-t6narn79.mjs +0 -1
- package/dist/chunks/envUtils-1.1.35-t6yq14ba.mjs +0 -1
- package/dist/chunks/errors-1.1.35-6m0kryy5.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.35-c7dhfj0z.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.35-39xh2ycx.mjs +0 -1
- package/dist/chunks/exit-1.1.35-zc8g5mnv.mjs +0 -1
- package/dist/chunks/explorer-1.1.35-784hbx9r.mjs +0 -1
- package/dist/chunks/export-1.1.35-5q6zdykx.mjs +0 -2
- package/dist/chunks/fast-1.1.35-fpsnnadp.mjs +0 -1
- package/dist/chunks/feedback-1.1.35-mdm8easg.mjs +0 -16
- package/dist/chunks/git-1.1.35-j2med41y.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.35-4xzf0z5w.mjs +0 -1
- package/dist/chunks/goal-1.1.35-yp44rshy.mjs +0 -4
- package/dist/chunks/headless-1.1.35-rxvrbe58.mjs +0 -2
- package/dist/chunks/heapdump-1.1.35-xkthm0kj.mjs +0 -6
- package/dist/chunks/help-1.1.35-6ppc7eee.mjs +0 -1
- package/dist/chunks/hooks-1.1.35-0e80c1wz.mjs +0 -79
- package/dist/chunks/hooks-1.1.35-f791gbgk.mjs +0 -1
- package/dist/chunks/ide-1.1.35-pz8m36fj.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.35-56y5k454.mjs +0 -1
- package/dist/chunks/import-1.1.35-fcn1y643.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.35-n6b7ppqk.mjs +0 -1
- package/dist/chunks/index-1.1.35-434cwyrk.mjs +0 -1
- package/dist/chunks/index-1.1.35-4ngbsgjz.mjs +0 -1
- package/dist/chunks/index-1.1.35-7nsjazx1.mjs +0 -1
- package/dist/chunks/index-1.1.35-8rnbf6ea.mjs +0 -1
- package/dist/chunks/index-1.1.35-e5amgccf.mjs +0 -1
- package/dist/chunks/index-1.1.35-eejex06g.mjs +0 -5
- package/dist/chunks/index-1.1.35-epm25vr2.mjs +0 -9
- package/dist/chunks/index-1.1.35-jxpschvm.mjs +0 -1
- package/dist/chunks/index-1.1.35-mdgw0byv.mjs +0 -9
- package/dist/chunks/index-1.1.35-n36e4pzf.mjs +0 -1
- package/dist/chunks/index-1.1.35-nnrmrgn5.mjs +0 -30
- package/dist/chunks/index-1.1.35-p1fttaxb.mjs +0 -1
- package/dist/chunks/index-1.1.35-p3ttta20.mjs +0 -1
- package/dist/chunks/index-1.1.35-pjz1v5fa.mjs +0 -1
- package/dist/chunks/index-1.1.35-pqswr512.mjs +0 -23
- package/dist/chunks/index-1.1.35-q464ks4t.mjs +0 -1
- package/dist/chunks/index-1.1.35-r5cefbke.mjs +0 -2
- package/dist/chunks/index-1.1.35-rf0z1h76.mjs +0 -1
- package/dist/chunks/index-1.1.35-wg3dwx0w.mjs +0 -2
- package/dist/chunks/index-1.1.35-xcm76j0n.mjs +0 -1
- package/dist/chunks/index-1.1.35-y7q90201.mjs +0 -1
- package/dist/chunks/index-1.1.35-y9scvznb.mjs +0 -1
- package/dist/chunks/index-1.1.35-yy5qsdz8.mjs +0 -1
- package/dist/chunks/init-1.1.35-hawgzj6s.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.35-aee08exn.mjs +0 -1
- package/dist/chunks/ink-1.1.35-9vhjhx60.mjs +0 -1
- package/dist/chunks/insights-1.1.35-2782qak6.mjs +0 -870
- package/dist/chunks/install-1.1.35-nptjkfk3.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.35-v4ahg5m0.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.35-rc6ch1k0.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.35-1755rb8a.mjs +0 -1
- package/dist/chunks/keybindings-1.1.35-9qz4bvrq.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.35-ff7kd1x3.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.35-nwtm30nv.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.35-jxqkv874.mjs +0 -1
- package/dist/chunks/log-1.1.35-h5x69tbw.mjs +0 -1
- package/dist/chunks/main-1.1.35-1e6064ax.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.35-s6143dpv.mjs +0 -1
- package/dist/chunks/mcp-1.1.35-0tswravz.mjs +0 -1
- package/dist/chunks/mcp-1.1.35-bdv2pgpj.mjs +0 -17
- package/dist/chunks/mcp-1.1.35-khngfse0.mjs +0 -4
- package/dist/chunks/mcpb-1.1.35-p4jn8q66.mjs +0 -1
- package/dist/chunks/memory-1.1.35-zvk9c80b.mjs +0 -128
- package/dist/chunks/model-1.1.35-j8hp9tcm.mjs +0 -1
- package/dist/chunks/model-1.1.35-mb41ksj1.mjs +0 -2
- package/dist/chunks/node-1.1.35-312s6waw.mjs +0 -1
- package/dist/chunks/node-1.1.35-zzk2fc7x.mjs +0 -15
- package/dist/chunks/oauth-1.1.35-2pwvpgey.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.35-6gbm01ym.mjs +0 -14
- package/dist/chunks/output-style-1.1.35-gbk18883.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.35-0z3efknf.mjs +0 -1
- package/dist/chunks/permissions-1.1.35-c11nnhp0.mjs +0 -3
- package/dist/chunks/permissions-1.1.35-vqtbrznv.mjs +0 -1
- package/dist/chunks/plan-1.1.35-5nz3m4kh.mjs +0 -1
- package/dist/chunks/plist-1.1.35-4bd0g91w.mjs +0 -1
- package/dist/chunks/plugin-1.1.35-0tg6jzxg.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.35-z1parxqs.mjs +0 -1
- package/dist/chunks/plugins-1.1.35-z14pz0dr.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.35-9dyzn96j.mjs +0 -2
- package/dist/chunks/print-1.1.35-89rm2txf.mjs +0 -57
- package/dist/chunks/process-1.1.35-7x8d7kyn.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.35-hj8xz358.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.35-egejjqfw.mjs +0 -9
- package/dist/chunks/prompt-1.1.35-aaz8q4j6.mjs +0 -1
- package/dist/chunks/prompt-1.1.35-f3fackax.mjs +0 -1
- package/dist/chunks/prompts-1.1.35-58wwfjfd.mjs +0 -1
- package/dist/chunks/provider-1.1.35-xwj158q8.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.35-6wzwgty6.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.35-z9h8ampz.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.35-7ewvmysm.mjs +0 -26
- package/dist/chunks/registry-1.1.35-y4zandg8.mjs +0 -1
- package/dist/chunks/release-notes-1.1.35-s31rkdxh.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.35-18xd3nwy.mjs +0 -2
- package/dist/chunks/remote-env-1.1.35-0v4tk5np.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.35-ev420056.mjs +0 -1
- package/dist/chunks/rename-1.1.35-m8chhebj.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.35-483j4br6.mjs +0 -1
- package/dist/chunks/resume-1.1.35-vaxxp18n.mjs +0 -2
- package/dist/chunks/rewind-1.1.35-scs8763b.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.35-9j5y8k9x.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.35-zjy5t791.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.35-qrmypwca.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.35-c2k8p98n.mjs +0 -1
- package/dist/chunks/session-1.1.35-78ew080a.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.35-0tyr8wn3.mjs +0 -1
- package/dist/chunks/settings-1.1.35-808m5j14.mjs +0 -1
- package/dist/chunks/setup-1.1.35-ebpewe9s.mjs +0 -12
- package/dist/chunks/sinks-1.1.35-nj35kk9h.mjs +0 -1
- package/dist/chunks/skills-1.1.35-zczajd48.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.35-wa5psc2j.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.35-0wac30ap.mjs +0 -1
- package/dist/chunks/state-1.1.35-gcp827qz.mjs +0 -1
- package/dist/chunks/stats-1.1.35-f1kndsge.mjs +0 -1
- package/dist/chunks/status-1.1.35-gwtdrkx2.mjs +0 -1
- package/dist/chunks/stickers-1.1.35-fa69zd3v.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.35-8wsc86ft.mjs +0 -1
- package/dist/chunks/tasks-1.1.35-0wd1t6v2.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.35-13qqfhxa.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.35-wdbfsm1h.mjs +0 -1
- package/dist/chunks/teleport-1.1.35-tmhzqx90.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.35-6xq5nt25.mjs +0 -1
- package/dist/chunks/theme-1.1.35-4b6gd2dx.mjs +0 -1
- package/dist/chunks/thinkback-1.1.35-x88djqdz.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.35-g6n14rjh.mjs +0 -1
- package/dist/chunks/toolPool-1.1.35-0qd67zrc.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.35-54dpcvf8.mjs +0 -1
- package/dist/chunks/tools-1.1.35-3hjsc7mm.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.35-szkdvqcz.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.35-4azkv4s5.mjs +0 -69
- package/dist/chunks/types-1.1.35-ncfe8wzg.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.35-d271ddpn.mjs +0 -4
- package/dist/chunks/update-1.1.35-5zabq625.mjs +0 -72
- package/dist/chunks/upload-1.1.35-gey82edy.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.35-bbztgd01.mjs +0 -14
- package/dist/chunks/usage-1.1.35-sx2ahz77.mjs +0 -1
- package/dist/chunks/util-1.1.35-aph6a5hy.mjs +0 -1
- package/dist/chunks/utils-1.1.35-avpezj08.mjs +0 -1
- package/dist/chunks/vim-1.1.35-e0jh10q6.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.35-baxd01b0.mjs +0 -13
- package/dist/chunks/wiki-1.1.35-cns1572n.mjs +0 -132
- package/dist/chunks/workflows-1.1.35-0r21887z.mjs +0 -1
- package/dist/chunks/worktree-1.1.35-0mj24by3.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.35-6ej7pdyw.mjs +0 -1
- package/dist/chunks/wrapper-1.1.35-fpcy8t3v.mjs +0 -7
- /package/dist/chunks/{cli-1.1.35-hnqagxgk.mjs → cli-1.1.36-6kq395h8.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O as K}from"./cli-1.1.36-rkcfjk5n.mjs";import{jb as L}from"./cli-1.1.36-8k2z8yvv.mjs";import{kb as N}from"./cli-1.1.36-bywrsksg.mjs";import{IS as J,JS as Z,rn as E,rp as F,sn as W,sp as X}from"./cli-1.1.36-v0s0vqmm.mjs";import{uT as H,xT as Y}from"./cli-1.1.36-6jv1ss2p.mjs";import{J4 as y,K4 as z,h5 as V}from"./cli-1.1.36-s8jcsdgb.mjs";import{jfa as v,mfa as Q}from"./cli-1.1.36-t6sjxpcb.mjs";import{Lga as q,Nga as P}from"./cli-1.1.36-jqn2tez7.mjs";import{lja as b,nja as j,tja as O}from"./cli-1.1.36-0qtyffhw.mjs";O();Y();Z();Q();V();X();P();W();function A(){if(b(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||j())return;H(),J(),K(),L();let m=v()?.transport;if(m==="bedrock"&&!b(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))z();if(m==="vertex"&&!b(process.env.CLAUDIN_SKIP_VERTEX_AUTH))y();if(F(q(),AbortSignal.timeout(3000),[]),E.initialize(),!j())N.initialize()}
|
|
2
|
+
export{A as D};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{gga as N,kga as T}from"./cli-1.1.36-m11p0exg.mjs";import{Rpa as Q}from"./cli-1.1.36-c4pkjm54.mjs";function X(){if(!process.stdin.isTTY||F||process.argv.includes("-p")||process.argv.includes("--print"))return;F=!0,A="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),J=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")U(q);q=process.stdin.read()}},process.stdin.on("readable",J)}catch{F=!1}}function U(q){let v=0;while(v<q.length){let M=q[v],z=M.charCodeAt(0);if(z===3){K(),process.exit(130);return}if(z===4){K();return}if(z===127||z===8){if(A.length>0){let O=N(A);A=A.slice(0,-(O.length||1))}v++;continue}if(z===27){v++;while(v<q.length&&!(q.charCodeAt(v)>=64&&q.charCodeAt(v)<=126))v++;if(v<q.length)v++;continue}if(z<32&&z!==9&&z!==10&&z!==13){v++;continue}if(z===13){A+=`
|
|
2
|
+
`,v++;continue}A+=M,v++}}function K(){if(!F)return;if(F=!1,J)process.stdin.removeListener("readable",J),J=null}function Y(){K();let q=A.trim();return A="",q}function Z(q){A=q}var A="",F=!1,J=null;var V=Q(()=>{T()});
|
|
3
|
+
export{X as FX,K as GX,Y as HX,Z as IX,V as JX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Jv as K,Kv as M,Lv as Y}from"./cli-1.1.36-v0s0vqmm.mjs";import{Dfa as Q,Wfa as X}from"./cli-1.1.36-6q7sfj4e.mjs";import{kga as N}from"./cli-1.1.36-m11p0exg.mjs";Y();Q();X();N();var T=30000;function V(){let z=new Date,F=String(z.getHours()).padStart(2,"0"),H=String(z.getMinutes()).padStart(2,"0"),J=String(z.getSeconds()).padStart(2,"0");return`${F}:${H}:${J}`}function Z(z,F){return`${K(void 0,F)}/code?bridge=${z}`}function C(z,F,H){return`${M(z,H)}?bridge=${F}`}function E({error:z,connected:F,sessionActive:H,reconnecting:J}){if(z)return{label:"Remote Control failed",color:"error"};if(J)return{label:"Remote Control reconnecting",color:"warning"};if(H||F)return{label:"Remote Control active",color:"success"};return{label:"Remote Control connecting…",color:"warning"}}function L(z){return`Code everywhere with the Claude app or ${z}`}function A(z){return`Continue coding in the Claude app or ${z}`}var P="Something went wrong, please try again";function b(z,F){return`\x1B]8;;${F}\x07${z}\x1B]8;;\x07`}
|
|
2
|
+
export{T as Xa,V as Ya,Z as Za,C as _a,E as $a,L as ab,A as bb,P as cb,b as db};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{R7 as p,S7 as a}from"./cli-1.1.36-ef3vjg8b.mjs";import{Ppa as i}from"./cli-1.1.36-c4pkjm54.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as k7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c1 as w,e1 as F}from"./cli-1.1.36-z5djkbwy.mjs";import{Spa as D}from"./cli-1.1.36-c4pkjm54.mjs";F();var z,B;function O(q,v){z=q,B=v}async function Q(q,v,G,H){let J=z??import("./App-1.1.36-4ypa2ky6.mjs"),K=B??import("./REPL-1.1.36-k3q58fha.mjs");z=void 0,B=void 0;let[{App:M},{REPL:N}]=await Promise.all([J,K]);await H(q,w(M,{...v,children:w(N,{...G})}))}
|
|
2
|
+
export{O as R,Q as S};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{gb as $}from"./cli-1.1.36-q2e0arg8.mjs";import{$7 as O,r8 as C}from"./cli-1.1.36-rqhp2xt1.mjs";import{sfa as q,tfa as H,zfa as E}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as X,Bha as R,Cha as A,Dha as _,Dia as N,Fha as w,dia as z,iia as y,mia as V,qia as L}from"./cli-1.1.36-jpcwwd65.mjs";import{$ja as Z,Doa as M}from"./cli-1.1.36-bsfazmtt.mjs";C();M();A();import{dirname as F,join as x}from"path";w();N();L();E();y();var D=q(new Date);function T(){return x($.errors(),D+".jsonl")}function J(G){return x($.mcpLogs(G),D+".jsonl")}function P(G){let K=R(G);return{write(Q){K.write(z(Q)+`
|
|
2
|
+
`)},flush:K.flush,dispose:K.dispose}}var B=new Map;function W(G){let K=B.get(G);if(!K){let Q=F(G);K=P({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),B.set(G,K),_(async()=>K?.dispose())}return K}function S(G,K){}function I(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function v(G){let K=G.stack||G.message,Q="";if(O.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=I(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),S(T(),{error:`${Q}${K}`})}function f(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(Y)}function j(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(U)}function k(){H({logError:v,logMCPError:f,logMCPDebug:j,getErrorsPath:T,getMCPLogsPath:J}),X("Error log sink initialized")}function a(){k()}
|
|
3
|
+
export{a as p};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ppa as H,Rpa as UJ}from"./cli-1.1.36-c4pkjm54.mjs";var N=H((IJ,Oq)=>{var K1=Number.MAX_SAFE_INTEGER||9007199254740991,j1=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:K1,RELEASE_TYPES:j1,SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var C=H((OJ,Hq)=>{var z1=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...q)=>console.error("SEMVER",...q):()=>{};Hq.exports=z1});var S=H((L,wq)=>{var{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:Y1,MAX_LENGTH:U1}=N(),F1=C();L=wq.exports={};var I1=L.re=[],O1=L.safeRe=[],j=L.src=[],H1=L.safeSrc=[],z=L.t={},w1=0,i="[a-zA-Z0-9-]",y1=[["\\s",1],["\\d",U1],[i,Y1]],B1=(q)=>{for(let[$,J]of y1)q=q.split(`${$}*`).join(`${$}{0,${J}}`).split(`${$}+`).join(`${$}{1,${J}}`);return q},w=(q,$,J)=>{let Q=B1($),Z=w1++;F1(q,Z,$),z[q]=Z,j[Z]=$,H1[Z]=Q,I1[Z]=new RegExp($,J?"g":void 0),O1[Z]=new RegExp(Q,J?"g":void 0)};w("NUMERICIDENTIFIER","0|[1-9]\\d*");w("NUMERICIDENTIFIERLOOSE","\\d+");w("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${i}*`);w("MAINVERSION",`(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})\\.(${j[z.NUMERICIDENTIFIER]})`);w("MAINVERSIONLOOSE",`(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})\\.(${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASEIDENTIFIER",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIER]})`);w("PRERELEASEIDENTIFIERLOOSE",`(?:${j[z.NONNUMERICIDENTIFIER]}|${j[z.NUMERICIDENTIFIERLOOSE]})`);w("PRERELEASE",`(?:-(${j[z.PRERELEASEIDENTIFIER]}(?:\\.${j[z.PRERELEASEIDENTIFIER]})*))`);w("PRERELEASELOOSE",`(?:-?(${j[z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${j[z.PRERELEASEIDENTIFIERLOOSE]})*))`);w("BUILDIDENTIFIER",`${i}+`);w("BUILD",`(?:\\+(${j[z.BUILDIDENTIFIER]}(?:\\.${j[z.BUILDIDENTIFIER]})*))`);w("FULLPLAIN",`v?${j[z.MAINVERSION]}${j[z.PRERELEASE]}?${j[z.BUILD]}?`);w("FULL",`^${j[z.FULLPLAIN]}$`);w("LOOSEPLAIN",`[v=\\s]*${j[z.MAINVERSIONLOOSE]}${j[z.PRERELEASELOOSE]}?${j[z.BUILD]}?`);w("LOOSE",`^${j[z.LOOSEPLAIN]}$`);w("GTLT","((?:<|>)?=?)");w("XRANGEIDENTIFIERLOOSE",`${j[z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);w("XRANGEIDENTIFIER",`${j[z.NUMERICIDENTIFIER]}|x|X|\\*`);w("XRANGEPLAIN",`[v=\\s]*(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:\\.(${j[z.XRANGEIDENTIFIER]})(?:${j[z.PRERELEASE]})?${j[z.BUILD]}?)?)?`);w("XRANGEPLAINLOOSE",`[v=\\s]*(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${j[z.XRANGEIDENTIFIERLOOSE]})(?:${j[z.PRERELEASELOOSE]})?${j[z.BUILD]}?)?)?`);w("XRANGE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAIN]}$`);w("XRANGELOOSE",`^${j[z.GTLT]}\\s*${j[z.XRANGEPLAINLOOSE]}$`);w("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`);w("COERCE",`${j[z.COERCEPLAIN]}(?:$|[^\\d])`);w("COERCEFULL",j[z.COERCEPLAIN]+`(?:${j[z.PRERELEASE]})?(?:${j[z.BUILD]})?(?:$|[^\\d])`);w("COERCERTL",j[z.COERCE],!0);w("COERCERTLFULL",j[z.COERCEFULL],!0);w("LONETILDE","(?:~>?)");w("TILDETRIM",`(\\s*)${j[z.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";w("TILDE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAIN]}$`);w("TILDELOOSE",`^${j[z.LONETILDE]}${j[z.XRANGEPLAINLOOSE]}$`);w("LONECARET","(?:\\^)");w("CARETTRIM",`(\\s*)${j[z.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";w("CARET",`^${j[z.LONECARET]}${j[z.XRANGEPLAIN]}$`);w("CARETLOOSE",`^${j[z.LONECARET]}${j[z.XRANGEPLAINLOOSE]}$`);w("COMPARATORLOOSE",`^${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]})$|^$`);w("COMPARATOR",`^${j[z.GTLT]}\\s*(${j[z.FULLPLAIN]})$|^$`);w("COMPARATORTRIM",`(\\s*)${j[z.GTLT]}\\s*(${j[z.LOOSEPLAIN]}|${j[z.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";w("HYPHENRANGE",`^\\s*(${j[z.XRANGEPLAIN]})\\s+-\\s+(${j[z.XRANGEPLAIN]})\\s*$`);w("HYPHENRANGELOOSE",`^\\s*(${j[z.XRANGEPLAINLOOSE]})\\s+-\\s+(${j[z.XRANGEPLAINLOOSE]})\\s*$`);w("STAR","(<|>)?=?\\s*\\*");w("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");w("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var b=H((HJ,yq)=>{var x1=Object.freeze({loose:!0}),D1=Object.freeze({}),G1=(q)=>{if(!q)return D1;if(typeof q!=="object")return x1;return q};yq.exports=G1});var r=H((wJ,Dq)=>{var Bq=/^[0-9]+$/,xq=(q,$)=>{if(typeof q==="number"&&typeof $==="number")return q===$?0:q<$?-1:1;let J=Bq.test(q),Q=Bq.test($);if(J&&Q)q=+q,$=+$;return q===$?0:J&&!Q?-1:Q&&!J?1:q<$?-1:1},V1=(q,$)=>xq($,q);Dq.exports={compareIdentifiers:xq,rcompareIdentifiers:V1}});var G=H((yJ,Vq)=>{var h=C(),{MAX_LENGTH:Gq,MAX_SAFE_INTEGER:f}=N(),{safeRe:v,t:d}=S(),P1=b(),{compareIdentifiers:o}=r(),_1=(q,$)=>{let J=$.split(".");if(J.length>q.length)return!1;for(let Q=0;Q<J.length;Q++)if(o(q[Q],J[Q])!==0)return!1;return!0};class A{constructor(q,$){if($=P1($),q instanceof A)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else q=q.version;else if(typeof q!=="string")throw TypeError(`Invalid version. Must be a string. Got type "${typeof q}".`);if(q.length>Gq)throw TypeError(`version is longer than ${Gq} characters`);h("SemVer",q,$),this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease;let J=q.trim().match($.loose?v[d.LOOSE]:v[d.FULL]);if(!J)throw TypeError(`Invalid Version: ${q}`);if(this.raw=q,this.major=+J[1],this.minor=+J[2],this.patch=+J[3],this.major>f||this.major<0)throw TypeError("Invalid major version");if(this.minor>f||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>f||this.patch<0)throw TypeError("Invalid patch version");if(!J[4])this.prerelease=[];else this.prerelease=J[4].split(".").map((Q)=>{if(/^[0-9]+$/.test(Q)){let Z=+Q;if(Z>=0&&Z<f)return Z}return Q});this.build=J[5]?J[5].split("."):[],this.format()}format(){if(this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length)this.version+=`-${this.prerelease.join(".")}`;return this.version}toString(){return this.version}compare(q){if(h("SemVer.compare",this.version,this.options,q),!(q instanceof A)){if(typeof q==="string"&&q===this.version)return 0;q=new A(q,this.options)}if(q.version===this.version)return 0;return this.compareMain(q)||this.comparePre(q)}compareMain(q){if(!(q instanceof A))q=new A(q,this.options);if(this.major<q.major)return-1;if(this.major>q.major)return 1;if(this.minor<q.minor)return-1;if(this.minor>q.minor)return 1;if(this.patch<q.patch)return-1;if(this.patch>q.patch)return 1;return 0}comparePre(q){if(!(q instanceof A))q=new A(q,this.options);if(this.prerelease.length&&!q.prerelease.length)return-1;else if(!this.prerelease.length&&q.prerelease.length)return 1;else if(!this.prerelease.length&&!q.prerelease.length)return 0;let $=0;do{let J=this.prerelease[$],Q=q.prerelease[$];if(h("prerelease compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return o(J,Q)}while(++$)}compareBuild(q){if(!(q instanceof A))q=new A(q,this.options);let $=0;do{let J=this.build[$],Q=q.build[$];if(h("build compare",$,J,Q),J===void 0&&Q===void 0)return 0;else if(Q===void 0)return 1;else if(J===void 0)return-1;else if(J===Q)continue;else return o(J,Q)}while(++$)}inc(q,$,J){if(q.startsWith("pre")){if(!$&&J===!1)throw Error("invalid increment argument: identifier is empty");if($){let Q=`-${$}`.match(this.options.loose?v[d.PRERELEASELOOSE]:v[d.PRERELEASE]);if(!Q||Q[1]!==$)throw Error(`invalid identifier: ${$}`)}}switch(q){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",$,J);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",$,J);break;case"prepatch":this.prerelease.length=0,this.inc("patch",$,J),this.inc("pre",$,J);break;case"prerelease":if(this.prerelease.length===0)this.inc("patch",$,J);this.inc("pre",$,J);break;case"release":if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0)this.major++;this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0)this.minor++;this.patch=0,this.prerelease=[];break;case"patch":if(this.prerelease.length===0)this.patch++;this.prerelease=[];break;case"pre":{let Q=Number(J)?1:0;if(this.prerelease.length===0)this.prerelease=[Q];else{let Z=this.prerelease.length;while(--Z>=0)if(typeof this.prerelease[Z]==="number")this.prerelease[Z]++,Z=-2;if(Z===-1){if($===this.prerelease.join(".")&&J===!1)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(Q)}}if($){let Z=[$,Q];if(J===!1)Z=[$];if(_1(this.prerelease,$)){let W=this.prerelease[$.split(".").length];if(isNaN(W))this.prerelease=Z}else this.prerelease=Z}break}default:throw Error(`invalid increment argument: ${q}`)}if(this.raw=this.format(),this.build.length)this.raw+=`+${this.build.join(".")}`;return this}}Vq.exports=A});var E=H((BJ,_q)=>{var Pq=G(),X1=(q,$,J=!1)=>{if(q instanceof Pq)return q;try{return new Pq(q,$)}catch(Q){if(!J)return null;throw Q}};_q.exports=X1});var Aq=H((xJ,Xq)=>{var A1=E(),L1=(q,$)=>{let J=A1(q,$);return J?J.version:null};Xq.exports=L1});var Eq=H((DJ,Lq)=>{var E1=E(),N1=(q,$)=>{let J=E1(q.trim().replace(/^[=v]+/,""),$);return J?J.version:null};Lq.exports=N1});var Cq=H((GJ,Sq)=>{var Nq=G(),S1=(q,$,J,Q,Z)=>{if(typeof J==="string")Z=Q,Q=J,J=void 0;try{return new Nq(q instanceof Nq?q.version:q,J).inc($,Q,Z).version}catch(W){return null}};Sq.exports=S1});var uq=H((VJ,kq)=>{var Rq=E(),C1=(q,$)=>{let J=Rq(q,null,!0),Q=Rq($,null,!0),Z=J.compare(Q);if(Z===0)return null;let W=Z>0,K=W?J:Q,Y=W?Q:J,F=!!K.prerelease.length;if(!!Y.prerelease.length&&!F){if(!Y.patch&&!Y.minor)return"major";if(Y.compareMain(K)===0){if(Y.minor&&!Y.patch)return"minor";return"patch"}}let I=F?"pre":"";if(J.major!==Q.major)return I+"major";if(J.minor!==Q.minor)return I+"minor";if(J.patch!==Q.patch)return I+"patch";return"prerelease"};kq.exports=C1});var Mq=H((PJ,Tq)=>{var R1=G(),k1=(q,$)=>new R1(q,$).major;Tq.exports=k1});var hq=H((_J,bq)=>{var u1=G(),T1=(q,$)=>new u1(q,$).minor;bq.exports=T1});var vq=H((XJ,fq)=>{var M1=G(),b1=(q,$)=>new M1(q,$).patch;fq.exports=b1});var lq=H((AJ,dq)=>{var h1=E(),f1=(q,$)=>{let J=h1(q,$);return J&&J.prerelease.length?J.prerelease:null};dq.exports=f1});var _=H((LJ,cq)=>{var gq=G(),v1=(q,$,J)=>new gq(q,J).compare(new gq($,J));cq.exports=v1});var pq=H((EJ,mq)=>{var d1=_(),l1=(q,$,J)=>d1($,q,J);mq.exports=l1});var aq=H((NJ,sq)=>{var g1=_(),c1=(q,$)=>g1(q,$,!0);sq.exports=c1});var l=H((SJ,tq)=>{var nq=G(),m1=(q,$,J)=>{let Q=new nq(q,J),Z=new nq($,J);return Q.compare(Z)||Q.compareBuild(Z)};tq.exports=m1});var rq=H((CJ,iq)=>{var p1=l(),s1=(q,$)=>q.sort((J,Q)=>p1(J,Q,$));iq.exports=s1});var eq=H((RJ,oq)=>{var a1=l(),n1=(q,$)=>q.sort((J,Q)=>a1(Q,J,$));oq.exports=n1});var R=H((kJ,q0)=>{var t1=_(),i1=(q,$,J)=>t1(q,$,J)>0;q0.exports=i1});var g=H((uJ,$0)=>{var r1=_(),o1=(q,$,J)=>r1(q,$,J)<0;$0.exports=o1});var e=H((TJ,J0)=>{var e1=_(),q$=(q,$,J)=>e1(q,$,J)===0;J0.exports=q$});var qq=H((MJ,Q0)=>{var $$=_(),J$=(q,$,J)=>$$(q,$,J)!==0;Q0.exports=J$});var c=H((bJ,W0)=>{var Q$=_(),W$=(q,$,J)=>Q$(q,$,J)>=0;W0.exports=W$});var m=H((hJ,Z0)=>{var Z$=_(),K$=(q,$,J)=>Z$(q,$,J)<=0;Z0.exports=K$});var $q=H((fJ,K0)=>{var j$=e(),z$=qq(),Y$=R(),U$=c(),F$=g(),I$=m(),O$=(q,$,J,Q)=>{switch($){case"===":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q===J;case"!==":if(typeof q==="object")q=q.version;if(typeof J==="object")J=J.version;return q!==J;case"":case"=":case"==":return j$(q,J,Q);case"!=":return z$(q,J,Q);case">":return Y$(q,J,Q);case">=":return U$(q,J,Q);case"<":return F$(q,J,Q);case"<=":return I$(q,J,Q);default:throw TypeError(`Invalid operator: ${$}`)}};K0.exports=O$});var z0=H((vJ,j0)=>{var H$=G(),w$=E(),{safeRe:p,t:s}=S(),y$=(q,$)=>{if(q instanceof H$)return q;if(typeof q==="number")q=String(q);if(typeof q!=="string")return null;$=$||{};let J=null;if(!$.rtl)J=q.match($.includePrerelease?p[s.COERCEFULL]:p[s.COERCE]);else{let F=$.includePrerelease?p[s.COERCERTLFULL]:p[s.COERCERTL],U;while((U=F.exec(q))&&(!J||J.index+J[0].length!==q.length)){if(!J||U.index+U[0].length!==J.index+J[0].length)J=U;F.lastIndex=U.index+U[1].length+U[2].length}F.lastIndex=-1}if(J===null)return null;let Q=J[2],Z=J[3]||"0",W=J[4]||"0",K=$.includePrerelease&&J[5]?`-${J[5]}`:"",Y=$.includePrerelease&&J[6]?`+${J[6]}`:"";return w$(`${Q}.${Z}.${W}${K}${Y}`,$)};j0.exports=y$});var U0=H((dJ,Y0)=>{var B$=E(),x$=N(),D$=G(),G$=(q,$,J)=>{if(!x$.RELEASE_TYPES.includes($))return null;let Q=V$(q,J);return Q&&P$(Q,$)},V$=(q,$)=>{let J=q instanceof D$?q.version:q;return B$(J,$)},P$=(q,$)=>{if(_$($))return q.version;switch(q.prerelease=[],$){case"major":q.minor=0,q.patch=0;break;case"minor":q.patch=0;break}return q.format()},_$=(q)=>{return q.startsWith("pre")};Y0.exports=G$});var O0=H((lJ,I0)=>{class F0{constructor(){this.max=1000,this.map=new Map}get(q){let $=this.map.get(q);if($===void 0)return;else return this.map.delete(q),this.map.set(q,$),$}delete(q){return this.map.delete(q)}set(q,$){if(!this.delete(q)&&$!==void 0){if(this.map.size>=this.max){let Q=this.map.keys().next().value;this.delete(Q)}this.map.set(q,$)}return this}}I0.exports=F0});var X=H((gJ,B0)=>{var X$=/\s+/g;class k{constructor(q,$){if($=L$($),q instanceof k)if(q.loose===!!$.loose&&q.includePrerelease===!!$.includePrerelease)return q;else return new k(q.raw,$);if(q instanceof Jq)return this.raw=q.value,this.set=[[q]],this.formatted=void 0,this;if(this.options=$,this.loose=!!$.loose,this.includePrerelease=!!$.includePrerelease,this.raw=q.trim().replace(X$," "),this.set=this.raw.split("||").map((J)=>this.parseRange(J.trim())).filter((J)=>J.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let J=this.set[0];if(this.set=this.set.filter((Q)=>!w0(Q[0])),this.set.length===0)this.set=[J];else if(this.set.length>1){for(let Q of this.set)if(Q.length===1&&M$(Q[0])){this.set=[Q];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let q=0;q<this.set.length;q++){if(q>0)this.formatted+="||";let $=this.set[q];for(let J=0;J<$.length;J++){if(J>0)this.formatted+=" ";this.formatted+=$[J].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(q){q=q.replace(T$,"");let J=((this.options.includePrerelease&&k$)|(this.options.loose&&u$))+":"+q,Q=H0.get(J);if(Q)return Q;let Z=this.options.loose,W=Z?P[V.HYPHENRANGELOOSE]:P[V.HYPHENRANGE];q=q.replace(W,s$(this.options.includePrerelease)),B("hyphen replace",q),q=q.replace(P[V.COMPARATORTRIM],S$),B("comparator trim",q),q=q.replace(P[V.TILDETRIM],C$),B("tilde trim",q),q=q.replace(P[V.CARETTRIM],R$),B("caret trim",q);let K=q.split(" ").map((I)=>b$(I,this.options)).join(" ").split(/\s+/).map((I)=>p$(I,this.options));if(Z)K=K.filter((I)=>{return B("loose invalid filter",I,this.options),!!I.match(P[V.COMPARATORLOOSE])});B("range list",K);let Y=new Map,F=K.map((I)=>new Jq(I,this.options));for(let I of F){if(w0(I))return[I];Y.set(I.value,I)}if(Y.size>1&&Y.has(""))Y.delete("");let U=[...Y.values()];return H0.set(J,U),U}intersects(q,$){if(!(q instanceof k))throw TypeError("a Range is required");return this.set.some((J)=>{return y0(J,$)&&q.set.some((Q)=>{return y0(Q,$)&&J.every((Z)=>{return Q.every((W)=>{return Z.intersects(W,$)})})})})}test(q){if(!q)return!1;if(typeof q==="string")try{q=new E$(q,this.options)}catch($){return!1}for(let $=0;$<this.set.length;$++)if(a$(this.set[$],q,this.options))return!0;return!1}}B0.exports=k;var A$=O0(),H0=new A$,L$=b(),Jq=u(),B=C(),E$=G(),{safeRe:P,src:N$,t:V,comparatorTrimReplace:S$,tildeTrimReplace:C$,caretTrimReplace:R$}=S(),{FLAG_INCLUDE_PRERELEASE:k$,FLAG_LOOSE:u$}=N(),T$=new RegExp(N$[V.BUILD],"g"),w0=(q)=>q.value==="<0.0.0-0",M$=(q)=>q.value==="",y0=(q,$)=>{let J=!0,Q=q.slice(),Z=Q.pop();while(J&&Q.length)J=Q.every((W)=>{return Z.intersects(W,$)}),Z=Q.pop();return J},b$=(q,$)=>{return q=q.replace(P[V.BUILD],""),B("comp",q,$),q=d$(q,$),B("caret",q),q=f$(q,$),B("tildes",q),q=g$(q,$),B("xrange",q),q=m$(q,$),B("stars",q),q},D=(q)=>!q||q.toLowerCase()==="x"||q==="*",h$=(q,$,J)=>D(q)&&!D($)||D($)&&J&&!D(J),f$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>v$(J,$)).join(" ")},v$=(q,$)=>{let J=$.loose?P[V.TILDELOOSE]:P[V.TILDE],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("tilde",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else if(F)B("replaceTilde pr",F),U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;return B("tilde return",U),U})},d$=(q,$)=>{return q.trim().split(/\s+/).map((J)=>l$(J,$)).join(" ")},l$=(q,$)=>{B("caret",q,$);let J=$.loose?P[V.CARETLOOSE]:P[V.CARET],Q=$.includePrerelease?"-0":"";return q.replace(J,(Z,W,K,Y,F)=>{B("caret",q,Z,W,K,Y,F);let U;if(D(W))U="";else if(D(K))U=`>=${W}.0.0${Q} <${+W+1}.0.0-0`;else if(D(Y))if(W==="0")U=`>=${W}.${K}.0${Q} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.0${Q} <${+W+1}.0.0-0`;else if(F)if(B("replaceCaret pr",F),W==="0")if(K==="0")U=`>=${W}.${K}.${Y}-${F} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y}-${F} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y}-${F} <${+W+1}.0.0-0`;else if(B("no pr"),W==="0")if(K==="0")U=`>=${W}.${K}.${Y} <${W}.${K}.${+Y+1}-0`;else U=`>=${W}.${K}.${Y} <${W}.${+K+1}.0-0`;else U=`>=${W}.${K}.${Y} <${+W+1}.0.0-0`;return B("caret return",U),U})},g$=(q,$)=>{return B("replaceXRanges",q,$),q.split(/\s+/).map((J)=>c$(J,$)).join(" ")},c$=(q,$)=>{q=q.trim();let J=$.loose?P[V.XRANGELOOSE]:P[V.XRANGE];return q.replace(J,(Q,Z,W,K,Y,F)=>{if(B("xRange",q,Q,Z,W,K,Y,F),h$(W,K,Y))return q;let U=D(W),I=U||D(K),y=I||D(Y),x=y;if(Z==="="&&x)Z="";if(F=$.includePrerelease?"-0":"",U)if(Z===">"||Z==="<")Q="<0.0.0-0";else Q="*";else if(Z&&x){if(I)K=0;if(Y=0,Z===">")if(Z=">=",I)W=+W+1,K=0,Y=0;else K=+K+1,Y=0;else if(Z==="<=")if(Z="<",I)W=+W+1;else K=+K+1;if(Z==="<")F="-0";Q=`${Z+W}.${K}.${Y}${F}`}else if(I)Q=`>=${W}.0.0${F} <${+W+1}.0.0-0`;else if(y)Q=`>=${W}.${K}.0${F} <${W}.${+K+1}.0-0`;return B("xRange return",Q),Q})},m$=(q,$)=>{return B("replaceStars",q,$),q.trim().replace(P[V.STAR],"")},p$=(q,$)=>{return B("replaceGTE0",q,$),q.trim().replace(P[$.includePrerelease?V.GTE0PRE:V.GTE0],"")},s$=(q)=>($,J,Q,Z,W,K,Y,F,U,I,y,x)=>{if(D(Q))J="";else if(D(Z))J=`>=${Q}.0.0${q?"-0":""}`;else if(D(W))J=`>=${Q}.${Z}.0${q?"-0":""}`;else if(K)J=`>=${J}`;else J=`>=${J}${q?"-0":""}`;if(D(U))F="";else if(D(I))F=`<${+U+1}.0.0-0`;else if(D(y))F=`<${U}.${+I+1}.0-0`;else if(x)F=`<=${U}.${I}.${y}-${x}`;else if(q)F=`<${U}.${I}.${+y+1}-0`;else F=`<=${F}`;return`${J} ${F}`.trim()},a$=(q,$,J)=>{for(let Q=0;Q<q.length;Q++)if(!q[Q].test($))return!1;if($.prerelease.length&&!J.includePrerelease){for(let Q=0;Q<q.length;Q++){if(B(q[Q].semver),q[Q].semver===Jq.ANY)continue;if(q[Q].semver.prerelease.length>0){let Z=q[Q].semver;if(Z.major===$.major&&Z.minor===$.minor&&Z.patch===$.patch)return!0}}return!1}return!0}});var u=H((cJ,_0)=>{var T=Symbol("SemVer ANY");class a{static get ANY(){return T}constructor(q,$){if($=x0($),q instanceof a)if(q.loose===!!$.loose)return q;else q=q.value;if(q=q.trim().split(/\s+/).join(" "),Wq("comparator",q,$),this.options=$,this.loose=!!$.loose,this.parse(q),this.semver===T)this.value="";else this.value=this.operator+this.semver.version;Wq("comp",this)}parse(q){let $=this.options.loose?D0[G0.COMPARATORLOOSE]:D0[G0.COMPARATOR],J=q.match($);if(!J)throw TypeError(`Invalid comparator: ${q}`);if(this.operator=J[1]!==void 0?J[1]:"",this.operator==="=")this.operator="";if(!J[2])this.semver=T;else this.semver=new V0(J[2],this.options.loose)}toString(){return this.value}test(q){if(Wq("Comparator.test",q,this.options.loose),this.semver===T||q===T)return!0;if(typeof q==="string")try{q=new V0(q,this.options)}catch($){return!1}return Qq(q,this.operator,this.semver,this.options)}intersects(q,$){if(!(q instanceof a))throw TypeError("a Comparator is required");if(this.operator===""){if(this.value==="")return!0;return new P0(q.value,$).test(this.value)}else if(q.operator===""){if(q.value==="")return!0;return new P0(this.value,$).test(q.semver)}if($=x0($),$.includePrerelease&&(this.value==="<0.0.0-0"||q.value==="<0.0.0-0"))return!1;if(!$.includePrerelease&&(this.value.startsWith("<0.0.0")||q.value.startsWith("<0.0.0")))return!1;if(this.operator.startsWith(">")&&q.operator.startsWith(">"))return!0;if(this.operator.startsWith("<")&&q.operator.startsWith("<"))return!0;if(this.semver.version===q.semver.version&&this.operator.includes("=")&&q.operator.includes("="))return!0;if(Qq(this.semver,"<",q.semver,$)&&this.operator.startsWith(">")&&q.operator.startsWith("<"))return!0;if(Qq(this.semver,">",q.semver,$)&&this.operator.startsWith("<")&&q.operator.startsWith(">"))return!0;return!1}}_0.exports=a;var x0=b(),{safeRe:D0,t:G0}=S(),Qq=$q(),Wq=C(),V0=G(),P0=X()});var M=H((mJ,X0)=>{var n$=X(),t$=(q,$,J)=>{try{$=new n$($,J)}catch(Q){return!1}return $.test(q)};X0.exports=t$});var L0=H((pJ,A0)=>{var i$=X(),r$=(q,$)=>new i$(q,$).set.map((J)=>J.map((Q)=>Q.value).join(" ").trim().split(" "));A0.exports=r$});var N0=H((sJ,E0)=>{var o$=G(),e$=X(),q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new e$($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===-1)Q=K,Z=new o$(Q,J)}}),Q};E0.exports=q9});var C0=H((aJ,S0)=>{var $9=G(),J9=X(),Q9=(q,$,J)=>{let Q=null,Z=null,W=null;try{W=new J9($,J)}catch(K){return null}return q.forEach((K)=>{if(W.test(K)){if(!Q||Z.compare(K)===1)Q=K,Z=new $9(Q,J)}}),Q};S0.exports=Q9});var u0=H((nJ,k0)=>{var Zq=G(),W9=X(),R0=R(),Z9=(q,$)=>{q=new W9(q,$);let J=new Zq("0.0.0");if(q.test(J))return J;if(J=new Zq("0.0.0-0"),q.test(J))return J;J=null;for(let Q=0;Q<q.set.length;++Q){let Z=q.set[Q],W=null;if(Z.forEach((K)=>{let Y=new Zq(K.semver.version);switch(K.operator){case">":if(Y.prerelease.length===0)Y.patch++;else Y.prerelease.push(0);Y.raw=Y.format();case"":case">=":if(!W||R0(Y,W))W=Y;break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${K.operator}`)}}),W&&(!J||R0(J,W)))J=W}if(J&&q.test(J))return J;return null};k0.exports=Z9});var M0=H((tJ,T0)=>{var K9=X(),j9=(q,$)=>{try{return new K9(q,$).range||"*"}catch(J){return null}};T0.exports=j9});var n=H((iJ,v0)=>{var z9=G(),f0=u(),{ANY:Y9}=f0,U9=X(),F9=M(),b0=R(),h0=g(),I9=m(),O9=c(),H9=(q,$,J,Q)=>{q=new z9(q,Q),$=new U9($,Q);let Z,W,K,Y,F;switch(J){case">":Z=b0,W=I9,K=h0,Y=">",F=">=";break;case"<":Z=h0,W=O9,K=b0,Y="<",F="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(F9(q,$,Q))return!1;for(let U=0;U<$.set.length;++U){let I=$.set[U],y=null,x=null;if(I.forEach((O)=>{if(O.semver===Y9)O=new f0(">=0.0.0");if(y=y||O,x=x||O,Z(O.semver,y.semver,Q))y=O;else if(K(O.semver,x.semver,Q))x=O}),y.operator===Y||y.operator===F)return!1;if((!x.operator||x.operator===Y)&&W(q,x.semver))return!1;else if(x.operator===F&&K(q,x.semver))return!1}return!0};v0.exports=H9});var l0=H((rJ,d0)=>{var w9=n(),y9=(q,$,J)=>w9(q,$,">",J);d0.exports=y9});var c0=H((oJ,g0)=>{var B9=n(),x9=(q,$,J)=>B9(q,$,"<",J);g0.exports=x9});var s0=H((eJ,p0)=>{var m0=X(),D9=(q,$,J)=>{return q=new m0(q,J),$=new m0($,J),q.intersects($,J)};p0.exports=D9});var n0=H((qQ,a0)=>{var G9=M(),V9=_();a0.exports=(q,$,J)=>{let Q=[],Z=null,W=null,K=q.sort((I,y)=>V9(I,y,J));for(let I of K)if(G9(I,$,J)){if(W=I,!Z)Z=I}else{if(W)Q.push([Z,W]);W=null,Z=null}if(Z)Q.push([Z,null]);let Y=[];for(let[I,y]of Q)if(I===y)Y.push(I);else if(!y&&I===K[0])Y.push("*");else if(!y)Y.push(`>=${I}`);else if(I===K[0])Y.push(`<=${y}`);else Y.push(`${I} - ${y}`);let F=Y.join(" || "),U=typeof $.raw==="string"?$.raw:String($);return F.length<U.length?F:$}});var q1=H(($Q,e0)=>{var t0=X(),zq=u(),{ANY:Kq}=zq,jq=M(),Yq=_(),P9=(q,$,J={})=>{if(q===$)return!0;q=new t0(q,J),$=new t0($,J);let Q=!1;q:for(let Z of q.set){for(let W of $.set){let K=X9(Z,W,J);if(Q=Q||K!==null,K)continue q}if(Q)return!1}return!0},_9=[new zq(">=0.0.0-0")],i0=[new zq(">=0.0.0")],X9=(q,$,J)=>{if(q===$)return!0;if(q.length===1&&q[0].semver===Kq)if($.length===1&&$[0].semver===Kq)return!0;else if(J.includePrerelease)q=_9;else q=i0;if($.length===1&&$[0].semver===Kq)if(J.includePrerelease)return!0;else $=i0;let Q=new Set,Z,W;for(let O of q)if(O.operator===">"||O.operator===">=")Z=r0(Z,O,J);else if(O.operator==="<"||O.operator==="<=")W=o0(W,O,J);else Q.add(O.semver);if(Q.size>1)return null;let K;if(Z&&W){if(K=Yq(Z.semver,W.semver,J),K>0)return null;else if(K===0&&(Z.operator!==">="||W.operator!=="<="))return null}for(let O of Q){if(Z&&!jq(O,String(Z),J))return null;if(W&&!jq(O,String(W),J))return null;for(let Z1 of $)if(!jq(O,String(Z1),J))return!1;return!0}let Y,F,U,I,y=W&&!J.includePrerelease&&W.semver.prerelease.length?W.semver:!1,x=Z&&!J.includePrerelease&&Z.semver.prerelease.length?Z.semver:!1;if(y&&y.prerelease.length===1&&W.operator==="<"&&y.prerelease[0]===0)y=!1;for(let O of $){if(I=I||O.operator===">"||O.operator===">=",U=U||O.operator==="<"||O.operator==="<=",Z){if(x){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===x.major&&O.semver.minor===x.minor&&O.semver.patch===x.patch)x=!1}if(O.operator===">"||O.operator===">="){if(Y=r0(Z,O,J),Y===O&&Y!==Z)return!1}else if(Z.operator===">="&&!O.test(Z.semver))return!1}if(W){if(y){if(O.semver.prerelease&&O.semver.prerelease.length&&O.semver.major===y.major&&O.semver.minor===y.minor&&O.semver.patch===y.patch)y=!1}if(O.operator==="<"||O.operator==="<="){if(F=o0(W,O,J),F===O&&F!==W)return!1}else if(W.operator==="<="&&!O.test(W.semver))return!1}if(!O.operator&&(W||Z)&&K!==0)return!1}if(Z&&U&&!W&&K!==0)return!1;if(W&&I&&!Z&&K!==0)return!1;if(x||y)return!1;return!0},r0=(q,$,J)=>{if(!q)return $;let Q=Yq(q.semver,$.semver,J);return Q>0?q:Q<0?$:$.operator===">"&&q.operator===">="?$:q},o0=(q,$,J)=>{if(!q)return $;let Q=Yq(q.semver,$.semver,J);return Q<0?q:Q>0?$:$.operator==="<"&&q.operator==="<="?$:q};e0.exports=P9});var W1=H((JQ,Q1)=>{var Uq=S(),$1=N(),A9=G(),J1=r(),L9=E(),E9=Aq(),N9=Eq(),S9=Cq(),C9=uq(),R9=Mq(),k9=hq(),u9=vq(),T9=lq(),M9=_(),b9=pq(),h9=aq(),f9=l(),v9=rq(),d9=eq(),l9=R(),g9=g(),c9=e(),m9=qq(),p9=c(),s9=m(),a9=$q(),n9=z0(),t9=U0(),i9=u(),r9=X(),o9=M(),e9=L0(),qJ=N0(),$J=C0(),JJ=u0(),QJ=M0(),WJ=n(),ZJ=l0(),KJ=c0(),jJ=s0(),zJ=n0(),YJ=q1();Q1.exports={parse:L9,valid:E9,clean:N9,inc:S9,diff:C9,major:R9,minor:k9,patch:u9,prerelease:T9,compare:M9,rcompare:b9,compareLoose:h9,compareBuild:f9,sort:v9,rsort:d9,gt:l9,lt:g9,eq:c9,neq:m9,gte:p9,lte:s9,cmp:a9,coerce:n9,truncate:t9,Comparator:i9,Range:r9,satisfies:o9,toComparators:e9,maxSatisfying:qJ,minSatisfying:$J,minVersion:JJ,validRange:QJ,outside:WJ,gtr:ZJ,ltr:KJ,intersects:jJ,simplifyRange:zJ,subset:YJ,SemVer:A9,re:Uq.re,src:Uq.src,tokens:Uq.t,SEMVER_SPEC_VERSION:$1.SEMVER_SPEC_VERSION,RELEASE_TYPES:$1.RELEASE_TYPES,compareIdentifiers:J1.compareIdentifiers,rcompareIdentifiers:J1.rcompareIdentifiers}});function Iq(){if(!Fq)Fq=W1();return Fq}function QQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)===1;return Iq().gt(q,$,{loose:!0})}function WQ(q,$){if(typeof Bun<"u")return Bun.semver.order(q,$)>=0;return Iq().gte(q,$,{loose:!0})}function ZQ(q,$){if(typeof Bun<"u")return Bun.semver.satisfies(q,$);return Iq().satisfies(q,$,{loose:!0})}var Fq;var FJ=()=>{};
|
|
2
|
+
export{W1 as Y0,QQ as Z0,WQ as _0,ZQ as $0,FJ as a1};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function t(s){if(s===null||typeof s!=="object")return s;let e=s;if("requestId"in e&&!("request_id"in e))e.request_id=e.requestId,delete e.requestId;if("response"in e&&e.response!==null&&typeof e.response==="object"){let n=e.response;if("requestId"in n&&!("request_id"in n))n.request_id=n.requestId,delete n.requestId}return s}
|
|
2
|
+
export{t as ub};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Rpa as j}from"./cli-1.1.36-c4pkjm54.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
+
export{q as o6,A as p6,B as q6,D as r6,F as s6,G as t6,H as u6,k as v6};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yy as y,Zy as S,dz as h,jz as L,tz as w}from"./cli-1.1.36-v0s0vqmm.mjs";import{EX as B,MV as l,YW as U,_W as D,cX as v}from"./cli-1.1.36-4ssz80b2.mjs";import{c1 as G,d1 as H,e1 as W}from"./cli-1.1.36-z5djkbwy.mjs";import{Npa as C,Rpa as M}from"./cli-1.1.36-c4pkjm54.mjs";function T(z){let q=u.c(26),{scope:A,parsingErrors:Q,warnings:R}=z,K=Q.length>0,X=R.length>0;if(!K&&!X)return null;let V;if(q[0]!==K||q[1]!==X)V=(K||X)&&H(D,{color:K?"error":"warning",children:["[",K?"Failed to parse":"Contains warnings","]"," "]}),q[0]=K,q[1]=X,q[2]=V;else V=q[2];let I;if(q[3]!==A)I=S(A),q[3]=A,q[4]=I;else I=q[4];let J;if(q[5]!==I)J=G(D,{children:I}),q[5]=I,q[6]=J;else J=q[6];let Y;if(q[7]!==V||q[8]!==J)Y=H(U,{children:[V,J]}),q[7]=V,q[8]=J,q[9]=Y;else Y=q[9];let P;if(q[10]===Symbol.for("react.memo_cache_sentinel"))P=G(D,{dimColor:!0,children:"Location: "}),q[10]=P;else P=q[10];let Z;if(q[11]!==A)Z=y(A),q[11]=A,q[12]=Z;else Z=q[12];let F;if(q[13]!==Z)F=H(U,{children:[P,G(D,{dimColor:!0,children:Z})]}),q[13]=Z,q[14]=F;else F=q[14];let O;if(q[15]!==Q)O=Q.map(E),q[15]=Q,q[16]=O;else O=q[16];let b;if(q[17]!==R)b=R.map(m),q[17]=R,q[18]=b;else b=q[18];let k;if(q[19]!==O||q[20]!==b)k=H(U,{marginLeft:1,flexDirection:"column",children:[O,b]}),q[19]=O,q[20]=b,q[21]=k;else k=q[21];let d;if(q[22]!==k||q[23]!==Y||q[24]!==F)d=H(U,{flexDirection:"column",marginTop:1,children:[Y,F,k]}),q[22]=k,q[23]=Y,q[24]=F,q[25]=d;else d=q[25];return d}function m(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"warning",children:"[Warning]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`warning-${q}`)}function E(z,q){let A=z.mcpErrorMetadata?.serverName;return G(U,{children:H(D,{children:[G(D,{dimColor:!0,children:"└ "}),G(D,{color:"error",children:"[Error]"}),H(D,{dimColor:!0,children:[" ",A&&`[${A}] `,z.path&&z.path!==""?`${z.path}: `:"",z.message]})]})},`error-${q}`)}function x(){let z=u.c(6),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q={scope:"user",config:L("user")},z[0]=q;else q=z[0];let A;if(z[1]===Symbol.for("react.memo_cache_sentinel"))A={scope:"project",config:L("project")},z[1]=A;else A=z[1];let Q;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Q={scope:"local",config:L("local")},z[2]=Q;else Q=z[2];let R;if(z[3]===Symbol.for("react.memo_cache_sentinel"))R=[q,A,Q,{scope:"enterprise",config:L("enterprise")}],z[3]=R;else R=z[3];let K=R,X=K.some(j),V=K.some(_);if(!X&&!V)return null;let I;if(z[4]===Symbol.for("react.memo_cache_sentinel"))I=G(D,{bold:!0,children:"MCP Config Diagnostics"}),z[4]=I;else I=z[4];let J;if(z[5]===Symbol.for("react.memo_cache_sentinel"))J=H(U,{flexDirection:"column",marginTop:1,marginBottom:1,children:[I,G(U,{marginTop:1,children:H(D,{dimColor:!0,children:["For help configuring MCP servers, see:"," ",G(v,{url:"https://code.claude.com/docs/en/mcp",children:"https://code.claude.com/docs/en/mcp"})]})}),K.map(f)]}),z[5]=J;else J=z[5];return J}function f(z){let{scope:q,config:A}=z;return G(T,{scope:q,parsingErrors:N(A.errors,"fatal"),warnings:N(A.errors,"warning")},q)}function _(z){let{config:q}=z;return N(q.errors,"warning").length>0}function j(z){let{config:q}=z;return N(q.errors,"fatal").length>0}function N(z,q){return z.filter((A)=>A.mcpErrorMetadata?.severity===q)}var u;var p=M(()=>{w();h();B();W();u=C(l(),1)});
|
|
2
|
+
export{x as hg,p as ig};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{M9 as P,U_ as Q,W_ as M,_da as R}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as G,Dia as C}from"./cli-1.1.36-jpcwwd65.mjs";import{Rpa as j}from"./cli-1.1.36-c4pkjm54.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function k(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function U(q){let z=q.split(`
|
|
2
|
+
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of k()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function B(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await f();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
+
export{g as VY,w as WY,m as XY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Th as L,Zh as h}from"./cli-1.1.36-90xk1ctt.mjs";import{$B as p,Aq as _,CS as x,Cq as P,FS as c,GM as V,GS as G,HM as S,HS as R,IS as f,JS as l,KM as j,Li as Y,Mi as k,Mu as $,NO as W,Nu as A,OO as n,Uu as B,Vu as D,_B as M,cH as U,dN as d,fP as b,gN as E,hH as g,hN as C,nP as o,rj as Z,sj as v,xD as N,zD as m}from"./cli-1.1.36-v0s0vqmm.mjs";import{D8 as X,I8 as I}from"./cli-1.1.36-hvnr6rta.mjs";import{$9 as T,Z_ as Q,_9 as O,e$ as u}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aja as J,Doa as F,xoa as K}from"./cli-1.1.36-bsfazmtt.mjs";import{Rpa as y,Spa as w}from"./cli-1.1.36-c4pkjm54.mjs";function Nq(H=new Set){let z=H.size>0;if(f.cache.clear?.(),R.cache.clear?.(),G.cache.clear?.(),Y.cache.clear?.(),L(),b(),!z)$();if(J(null),W(),j(),x("session_start"),N(),O.clear(),Z(),!z)U();if(X(),_(),!z)M();K(H),Q(),V(),B(),E(),import("./utils-1.1.36-fm3eywyj.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.36-ycekhs3r.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.36-t9mhqgv5.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.36-7qyxemw6.mjs").then(({clearPromptCache:q})=>q())}var i=y(()=>{F();o();k();l();h();g();p();A();v();n();D();S();d();P();c();I();u();T();m();C()});
|
|
2
|
+
export{Nq as Ih,i as Jh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Me as k,Ne as a}from"./cli-1.1.36-ggr2pkp7.mjs";import{UX as D,XX as g}from"./cli-1.1.36-1yk5zdh0.mjs";import{Aia as K,Dia as u}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as G,fja as l}from"./cli-1.1.36-6g1w2zbr.mjs";import{Rpa as c,Spa as J}from"./cli-1.1.36-c4pkjm54.mjs";function b(P){return P===200||P===201}function n(P,Q){return Q&&P===400}async function e({environmentId:P,title:Q,events:z,gitRepoUrl:q,branch:L,signal:H,baseUrl:y,getAccessToken:B,permissionMode:$,onFailure:Z}){let{getClaudeAIOAuthTokens:W}=await import("./auth-1.1.36-nxs2defd.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.36-ydq31jce.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.36-w0jf6x39.mjs"),{getOAuthHeaders:N}=await import("./api-1.1.36-fw1zvw5c.mjs"),{parseGitHubRepository:E}=await import("./detectRepository-1.1.36-ktxtd4ej.mjs"),{getDefaultBranch:T}=await import("./git-1.1.36-f934674g.mjs"),{getMainLoopModel:j}=await import("./model-1.1.36-3vvdafvs.mjs"),{default:x}=await import("./index-1.1.36-c90kzpg9.mjs"),R=B?.()??W()?.accessToken;if(!R)return K("[bridge] No access token for session creation"),Z?.({retryable:!1,detail:"not signed in"}),null;let v=await _();if(!v)return K("[bridge] No org UUID for session creation"),Z?.({retryable:!1,detail:"no organization for this account"}),null;let A=null,O=null;if(q){let{parseGitRemote:Y}=await import("./detectRepository-1.1.36-ktxtd4ej.mjs"),w=Y(q);if(w){let{host:C,owner:S,name:f}=w,m=L||await T()||void 0;A={type:"git_repository",url:`https://${C}/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}else{let C=E(q);if(C){let[S,f]=C.split("/");if(S&&f){let m=L||await T()||void 0;A={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}}}}let h=(Y)=>({...Q!==void 0&&{title:Q},events:z,session_context:{sources:Y&&A?[A]:[],outcomes:Y&&O?[O]:[],model:j()},environment_id:P,source:"remote-control",...$&&{permission_mode:$}}),d={...N(R),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":v},p=`${y??V().BASE_API_URL}/v1/sessions`,F=async(Y)=>{try{return await x.post(p,h(Y),{headers:d,signal:H,validateStatus:(w)=>w<500})}catch(w){return K(`[bridge] Session creation request failed: ${G(w)}`),Z?.({retryable:!0,detail:G(w)}),null}},U=A!==null&&!I,X=await F(U);if(!X)return null;if(!b(X.status)&&n(X.status,U)){let Y=k(X.data);if(K(`[bridge] Session creation rejected with status ${X.status}${Y?`: ${Y}`:""} — retrying without the git context`),I=!0,X=await F(!1),!X)return null}if(!b(X.status)){let Y=k(X.data);return K(`[bridge] Session creation failed with status ${X.status}${Y?`: ${Y}`:""}`),Z?.({status:X.status,detail:Y,retryable:X.status===429}),null}let M=X.data;if(!M||typeof M!=="object"||!("id"in M)||typeof M.id!=="string")return K("[bridge] No session ID in response"),Z?.({status:X.status,detail:"malformed session response",retryable:!1}),null;return M.id}async function JJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.36-nxs2defd.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.36-ydq31jce.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.36-w0jf6x39.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.36-fw1zvw5c.mjs"),{default:y}=await import("./index-1.1.36-c90kzpg9.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B)return K("[bridge] No access token for session fetch"),null;let $=await q();if(!$)return K("[bridge] No org UUID for session fetch"),null;let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}`,_=1e4;K(`[bridge] Fetching session ${P}`);let V;try{V=await y.get(W,{headers:Z,timeout:_,validateStatus:(N)=>N<500})}catch(N){if(y.isAxiosError(N)){let E=N.response?.status??"no-response",T=N.code??"unknown-code",j=N.config?.url??W,x=N.config?.method?.toUpperCase()??"GET",R=N.message??G(N),v=N.config?.timeout??_;K(`[bridge] Session fetch request failed: status=${E} code=${T} method=${x} url=${j} timeout=${v} message=${R}`)}else K(`[bridge] Session fetch request failed: url=${W} timeout=${_} message=${G(N)}`);return null}if(V.status!==200){let N=k(V.data);return K(`[bridge] Session fetch failed with status ${V.status} url=${W}${N?`: ${N}`:""}`),null}return V.data}async function KJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.36-nxs2defd.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.36-ydq31jce.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.36-w0jf6x39.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.36-fw1zvw5c.mjs"),{default:y}=await import("./index-1.1.36-c90kzpg9.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B){K("[bridge] No access token for session archive");return}let $=await q();if(!$){K("[bridge] No org UUID for session archive");return}let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}/archive`;K(`[bridge] Archiving session ${P}`);let _=await y.post(W,{},{headers:Z,timeout:Q?.timeoutMs??1e4,validateStatus:(V)=>V<500});if(_.status===200)K(`[bridge] Session ${P} archived successfully`);else{let V=k(_.data);K(`[bridge] Session archive failed with status ${_.status}${V?`: ${V}`:""}`)}}async function NJ(P,Q,z){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.36-nxs2defd.mjs"),{getOrganizationUUID:L}=await import("./client-1.1.36-ydq31jce.mjs"),{getOauthConfig:H}=await import("./oauth-1.1.36-w0jf6x39.mjs"),{getOAuthHeaders:y}=await import("./api-1.1.36-fw1zvw5c.mjs"),{default:B}=await import("./index-1.1.36-c90kzpg9.mjs"),$=z?.getAccessToken?.()??q()?.accessToken;if(!$){K("[bridge] No access token for session title update");return}let Z=await L();if(!Z){K("[bridge] No org UUID for session title update");return}let W={...y($),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Z},_=D(P),V=`${z?.baseUrl??H().BASE_API_URL}/v1/sessions/${_}`;K(`[bridge] Updating session title: ${_} → ${Q}`);try{let N=await B.patch(V,{title:Q},{headers:W,timeout:1e4,validateStatus:(E)=>E<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let E=k(N.data);K(`[bridge] Session title update failed with status ${N.status}${E?`: ${E}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${G(N)}`)}}var I=!1;var i=c(()=>{u();l();a();g()});
|
|
2
|
+
export{n as Ce,e as De,JJ as Ee,KJ as Fe,NJ as Ge,i as He};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{T9 as L,V9 as E}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as V,Dia as M,eia as T,iia as y}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as B,fja as x}from"./cli-1.1.36-6g1w2zbr.mjs";var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};function m(){return j}M();E();x();y();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function c(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return T(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function p(W){let Z=c(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var F=300000,H=1800000,C=3,h=60000;function l({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=F}){let J=new Map,K=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function A(q,Q){let $=p(Q);if(!$){V(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let X=J.get(q);if(X)clearTimeout(X);let v=U(q),Y=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){V(`[${z}:token] Token for sessionId=${q} expires=${Y} (past or within buffer), refreshing immediately`),O(q,v);return}V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${Y}, buffer=${P/1000}s)`);let k=setTimeout(O,G,q,v);J.set(q,k)}function S(q,Q){let $=J.get(q);if($)clearTimeout($);let X=U(q),v=Math.max(Q*1000-P,30000);V(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(v)} (expires_in=${Q}s, buffer=${P/1000}s)`);let Y=setTimeout(O,v,q,X);J.set(q,Y)}async function O(q,Q){let $;try{$=await W()}catch(v){V(`[${z}:token] getAccessToken threw for sessionId=${q}: ${B(v)}`,{level:"error"})}if(w.get(q)!==Q){V(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let v=(K.get(q)??0)+1;if(K.set(q,v),V(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${v}/${C})`,{level:"error"}),L("error","bridge_token_refresh_no_oauth"),v<C){let Y=setTimeout(O,h,q,Q);J.set(q,Y)}return}K.delete(q),V(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),Z(q,$);let X=setTimeout(O,H,q,Q);J.set(q,X),V(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(H)}`)}function D(q){U(q);let Q=J.get(q);if(Q)clearTimeout(Q),J.delete(q);K.delete(q)}function _(){for(let q of w.keys())U(q);for(let q of J.values())clearTimeout(q);J.clear(),K.clear()}return{schedule:A,scheduleFromExpiresIn:S,cancel:D,cancelAll:_}}
|
|
2
|
+
export{j as ha,m as ia,p as ja,l as ka};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{FJ as E,Ft as $,GJ as Hw,Gt as l,Gx as v,Ix as D,Kx as T,Nx as C,Ot as O,Ox as u,PR as qw,Pi as y,Px as x,Rx as A,Rz as G,Ti as s,Xx as t,Yt as c,Zz as ww,ay as B,by as e,cu as P,fu as i,nL as M,tR as I}from"./cli-1.1.36-v0s0vqmm.mjs";import{DV as _,JV as jw}from"./cli-1.1.36-40x4f5k7.mjs";import{WW as U,XW as a}from"./cli-1.1.36-4ssz80b2.mjs";import{E3 as n,e3 as S}from"./cli-1.1.36-s8jcsdgb.mjs";import{D5 as m,E5 as d}from"./cli-1.1.36-8mc299mk.mjs";import{D$ as o,F9 as J,H9 as f,K9 as K,M9 as H,_da as N,b_ as W,bda as Z,c_ as p,l$ as Q,oda as g,x$ as F}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as R,Dia as r}from"./cli-1.1.36-jpcwwd65.mjs";N();function Zw(w){let j=H().numStartups;K((q)=>{let z=q.tipsHistory??{};if(z[w]===j)return q;return{...q,tipsHistory:{...z,[w]:j}}})}function k(w){let j=H(),q=j.tipsHistory?.[w];if(!q)return 1/0;return j.numStartups-q}d();r();ww();g();jw();a();e();Hw();N();f();s();o();t();n();p();i();c();l();qw();var V;async function zw(){if(V!==void 0)return V;let w=await O();return V=$ in w,V}async function L(w,j,q){if(!await zw())return!1;if(P(`${w}@${$}`))return!1;let{bashTools:z}=j??{};if(q.cli&&z?.size){if(q.cli.some((X)=>z.has(X)))return!0}if(q.filePath&&j?.readFileState){if(y(j.readFileState).some((b)=>q.filePath.test(b)))return!0}return!1}var Bw=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return H().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${B("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let w=H();return(w.lastPlanModeUse?(Date.now()-w.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let w=H(),j=Z(),q=Boolean(w.lastPlanModeUse),z=Boolean(j?.permissions?.defaultMode);return q&&!z}catch(w){return R(`Failed to check default-permission-mode-config tip relevance: ${w}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let w=H();return await F()<=1&&w.numStartups>50}catch(w){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${B("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await Q()}catch(w){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${B("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await Q()}catch(w){return!1}}},{id:"diff-source-cycle",content:async()=>`In /diff, ${B("diff:previousSource","DiffDialog","[")} and ${B("diff:nextSource","DiffDialog","]")} cycle what you are reviewing: the working tree, one diff per agent turn, then every stash.`,cooldownSessions:15,isRelevant:async()=>{try{return await Q()}catch(w){return!1}}},{id:"diff-line-selection",content:async()=>`Press ${B("diff:select","DiffDialog","v")} in the /diff pane to select lines, then Enter to drop them into your prompt as @file#L12-L30 — dragging the mouse over them does the same.`,cooldownSessions:15,isRelevant:async()=>{try{return await Q()}catch(w){return!1}}},{id:"diff-expand-context",content:async()=>`Need more context in /diff? Hit Enter on a "··· N lines" gap to reveal more around it, or ${B("diff:expandAll","DiffDialog","a")} to expand the whole file.`,cooldownSessions:20,isRelevant:async()=>{try{return await Q()}catch(w){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${B("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-changed-files",content:async()=>"The /explorer tree opens with a Changed group — every file git sees as modified, in one flat list at the top.",cooldownSessions:15,isRelevant:async()=>{try{return await Q()}catch(w){return!1}}},{id:"explorer-editor-ex-commands",content:async()=>"In the /explorer editor, :w saves, :q quits, :wq does both, and :42 jumps to line 42.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-editor-motions",content:async()=>"The /explorer editor speaks vim: dd cuts a line, yy copies, p pastes, u undoes and ctrl+r redoes.",cooldownSessions:20,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let w=H();return w.numStartups>5&&w.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(I())return!1;return await E()>=2}},{id:"terminal-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let w=H();if(J.terminal==="Apple_Terminal")return!w.optionAsMetaKeyInstalled;return!w.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>J.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let w=H();return Boolean((J.terminal==="Apple_Terminal"?w.optionAsMetaKeyInstalled:w.shiftEnterKeyBindingInstalled)&&w.numStartups>3)}},{id:"shift-enter-setup",content:async()=>J.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!_())return!1;let w=H();return!(J.terminal==="Apple_Terminal"?w.optionAsMetaKeyInstalled:w.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return H().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&m.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDIN_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>W()==="windows"&&process.env.CLAUDIN_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>Z().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return H().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${J.terminal==="vscode"?"code":J.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!v())return!1;if(W()!=="macos")return!1;switch(J.terminal){case"vscode":return!await x();case"cursor":return!await C();case"windsurf":return!await u();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(D())return!1;if((await T()).length!==0)return!1;return(await A()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!H().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!H().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return H().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!J.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>W()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!G()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>G()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>M()&&H().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return H().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${B("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${B("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return H().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return H().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${B("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let w=H(),q=S()==="opusplan",z=w.lastPlanModeUse?(Date.now()-w.lastPlanModeUse)/86400000:1/0;return q&&z>3}},{id:"frontend-design-plugin",content:async(w)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
|
|
2
|
+
${U("suggestion",w.theme)(`/plugin install frontend-design@${$}`)}`},cooldownSessions:3,isRelevant:async(w)=>L("frontend-design",w,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(w)=>{return`Working with Vercel? Install the vercel plugin:
|
|
3
|
+
${U("suggestion",w.theme)(`/plugin install vercel@${$}`)}`},cooldownSessions:3,isRelevant:async(w)=>L("vercel",w,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return H().numStartups>5}}],Jw=[];function Qw(){let j=Z().spinnerTipsOverride;if(!j?.tips?.length)return[];return j.tips.map((q,z)=>({id:`custom-tip-${z}`,content:async()=>q,cooldownSessions:0,isRelevant:async()=>!0}))}async function uw(w){let q=Z().spinnerTipsOverride,z=Qw();if(q?.excludeDefault&&z.length>0)return z;let X=[...Bw,...Jw],b=await Promise.all(X.map((Y)=>Y.isRelevant(w)));return[...X.filter((Y,h)=>b[h]).filter((Y)=>k(Y.id)>=Y.cooldownSessions),...z]}
|
|
4
|
+
export{Zw as hb,k as ib,uw as jb};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Rpa as I}from"./cli-1.1.36-c4pkjm54.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
|
|
2
|
+
`:`
|
|
3
|
+
`)+H,K=J+1,J=$.indexOf(`
|
|
4
|
+
`,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
|
|
5
|
+
`);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
|
|
6
|
+
export{q1 as C5,Y1 as D5,X1 as E5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bc as x,Cc as o}from"./cli-1.1.36-xvwc8bka.mjs";import{$u as O,Du as m,IA as W,KA as t,Ns as Y,Ny as R,Py as i,Ts as g,Wu as M,Xu as l,bv as a,ft as Z,gt as v,rt as $,tu as y,ut as d,wu as u,xu as K}from"./cli-1.1.36-v0s0vqmm.mjs";import{ufa as X,zfa as h}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as I,Dia as c}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as V,fja as f}from"./cli-1.1.36-6g1w2zbr.mjs";import{Doa as _,fka as U}from"./cli-1.1.36-bsfazmtt.mjs";import{Rpa as C}from"./cli-1.1.36-c4pkjm54.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),$(),W();let G=await y(),[E,F]=await Promise.all([Z(),Y(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await R(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await M(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),O();let N=!1;try{await K()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();a();o();g();c();f();h();d();v();m();l();i();t();u()});
|
|
2
|
+
export{Lj as xc,p as yc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E8 as _,H8 as $,I8 as T}from"./cli-1.1.36-hvnr6rta.mjs";import{D$ as D,K9 as W,L_ as U,M9 as V,_da as j,d$ as Z,e$ as w,f$ as k,p_ as Y}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as N,Dia as M}from"./cli-1.1.36-jpcwwd65.mjs";import{Doa as O,fka as X}from"./cli-1.1.36-bsfazmtt.mjs";O();j();M();T();U();w();D();import{realpath as x}from"fs/promises";async function y(){try{let q=await _();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=k(A)??A,B;try{B=(await x(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function f(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(Y));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Z(q);if(!I)return!1;let z=$(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function l(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
+
export{y as E,f as F,P as G,d as H,l as I};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Hl as hJ,SR as TJ,pS as vJ,qS as YV,qp as qJ,sp as dJ,tp as IJ,up as BJ,vp as cJ}from"./cli-1.1.36-v0s0vqmm.mjs";import{D$ as fJ,M9 as VJ,V_ as c,W_ as PJ,_da as gJ,bda as f,f$ as WJ,i_ as AJ,k$ as p,o_ as kJ,oda as mJ,ufa as G,zfa as uJ}from"./cli-1.1.36-t6sjxpcb.mjs";import{Lga as v,Nga as bJ}from"./cli-1.1.36-jqn2tez7.mjs";import{Aia as Q,Dia as yJ,mia as JJ,qia as SJ}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as e,fja as zJ}from"./cli-1.1.36-6g1w2zbr.mjs";import{Zja as NJ,_ja as wJ}from"./cli-1.1.36-bsfazmtt.mjs";import{Npa as LJ,Rpa as HJ}from"./cli-1.1.36-c4pkjm54.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let X=0;X<J.length;X++){let _=J[X];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if((X&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let $=!0;for(let X=0;X<V.length;X++)if(this.indexPath(X),(X&255)===255&&performance.now()-Y>4){if(this.readyCount=X+1,$)W(),$=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let $=W.charCodeAt(Y);if($>=97&&$<=122)V|=1<<$-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),$=Array(Y),X=0;for(let M=0;M<Y;M++){let D=V.charAt(M);$[M]=D;let E=D.charCodeAt(0);if(E>=97&&E<=122)X|=1<<E-97}let _=Y*24+8+32,H=[],q=-1/0,{paths:B,lowerPaths:A,charBits:F,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((F[M]&X)!==X)continue;let D=Z?B[M]:A[M],E=D.indexOf($[0]);if(E===-1)continue;y[0]=E;let C=0,g=0,u=E;for(let N=1;N<Y;N++){if(E=D.indexOf($[N],u+1),E===-1)continue J;y[N]=E;let K=E-u-1;if(K===0)g+=4;else C+=3+K*1;u=E}if(H.length===W&&_+g-C<=q)continue;let S=B[M],UJ=U[M],T=Y*16+g-C;T+=XJ(S,y[0],!0);for(let N=1;N<Y;N++)T+=XJ(S,y[N],!1);if(T+=Math.max(0,32-(UJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((N,K)=>N.fuzzScore-K.fuzzScore),q=H[0].fuzzScore}else if(T>q){let N=0,K=H.length;while(N<K){let h=N+K>>1;if(H[h].fuzzScore<T)N=h+1;else K=h}H.splice(N,0,{path:S,fuzzScore:T}),H.shift(),q=H[0].fuzzScore}}H.sort((M,D)=>D.fuzzScore-M.fuzzScore);let I=H.length,w=Math.max(I,1),z=Array(I);for(let M=0;M<I;M++){let D=H[M].path,E=M/w,C=D.includes("test")?Math.min(E*1.05,1):E;z[M]={path:D,score:C}}return z}}function XJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(jJ(V))return 8;if(RJ(V)&&GJ(J.charCodeAt(W)))return 6;return 0}function jJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function RJ(J){return J>=97&&J<=122}function GJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let $=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){$=_;break}}let X=Y.slice(0,$);if(X.length>0){if(Z.add(X),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,$)=>{let X=Y.length-$.length;if(X!==0)return X;return Y<$?-1:Y>$?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,y;var QJ=HJ(()=>{y=new Int32Array(64)});import{statSync as pJ}from"fs";import*as O from"path";function l(){if(!x)x=new d;return x}function TV(){x=null,j=null,R++,k=null,L=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let $=J[Y];for(let X=0;X<$.length;X++)V=(V^$.charCodeAt(X))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let $=0;$<Y.length;$++)V=(V^Y.charCodeAt($))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function lJ(){let J=WJ(v());if(!J)return null;try{return pJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function nJ(J){if(J.length===0)return;if(!x||L.length===0)return;let W=await FJ(J),Z=[...L,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await x.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],$=[...new Set([J,W])],X=DJ.default(),_=!1,H=$.flatMap((A)=>Y.map((F)=>O.join(A,F))),q=await Promise.all(H.map((A)=>V.readFile(A,{encoding:"utf8"}).catch(()=>null)));for(let[A,F]of q.entries()){if(F===null)continue;X.add(F),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[A]}`)}let B=_?X:null;return n=B,s=Z,B}async function sJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(v());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=v(),$=Date.now(),X=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-$}ms`),X.code!==0)return Q(`[FileIndex] git ls-files failed (code=${X.code}, stderr=${X.stderr}), falling back to ripgrep`),null;let _=X.stdout.trim().split(`
|
|
2
|
+
`).filter(Boolean),H=MJ(_,V,Y),q=await OJ(V,Y);if(q){let A=H.length;H=q.filter(H),Q(`[FileIndex] applied ignore patterns: ${A} -> ${H.length} files`)}L=H;let B=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${B}ms`),!k){let A=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],F=R;k=c(p(),A,{timeout:1e4,cwd:V}).then(async(U)=>{if(F!==R)return;if(U.code===0){let m=U.stdout.trim().split(`
|
|
3
|
+
`).filter(Boolean),I=MJ(m,V,Y),w=await OJ(V,Y);if(w&&I.length>0){let z=I.length;I=w.filter(I),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${I.length} files`)}Q(`[FileIndex] background untracked fetch: ${I.length} files`),nJ(I)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(oJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function oJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let $=O.dirname(J[Y]);while($!=="."&&!V.has($)){let X=O.dirname($);if(X===$)break;V.add($),$=X}}}async function aJ(J){return(await Promise.all(IJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function iJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await sJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),KJ(J,W)}async function KJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let Y=v(),X=(await qJ(V,Y,J)).map((H)=>O.relative(Y,H)),_=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${X.length} files in ${_}ms`),X}async function vV(){let J=AbortSignal.timeout(1e4),W=f(),Z=VJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await KJ(J,V)}catch(Y){return G(Y),[]}}async function rJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=f(),V=VJ(),Y=Z.respectGitignore??V.respectGitignore??!0,$=v(),[X,_]=await Promise.all([iJ(J,Y),aJ($)]);ZJ=_;let H=[...X,..._],q=await FJ(H);$J=q;let B=[...q,...H],A=xJ(B);if(A!==i)await W.loadFromFileListAsync(B).done,i=A,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function tJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function UV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=tJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function eJ(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(j)return;let J=lJ();if(x){if(!(J!==null&&J!==a)&&Date.now()-o<JV)return}let W=R,Z=Date.now();l(),j=rJ().then((V)=>{if(W!==R)return V;return j=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),G(V),W===R)j=null;return l()})}async function VV(){let J=JJ(),W=v();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let $=V.isDirectory(),X=Y.isDirectory();if($!==X)return $?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),$=O.relative(W,Y);return V.isDirectory()?$+O.sep:$})}catch(Z){return G(Z),[]}}async function jV(J,W=!1){if(!J&&!W)return[];if(f().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await vJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await VV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=j!==null;EJ();let Y=J,$="."+O.sep;if(J.startsWith($))Y=J.substring(2);if(Y.startsWith("~"))Y=AJ(Y);let X=x?eJ(x,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${X.length} results in ${_}ms (${V?"partial":"full"} index)`),X}catch(V){return G(V),[]}}function RV(J,W,Z,V,Y,$){let X=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+X+W.substring(V+Z.length);Y(_);let H=V+X.length;$(H)}var DJ,x=null,j=null,YJ,KV,R=0,k=null,L,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=100,JV=5000;var WV=HJ(()=>{cJ();QJ();gJ();bJ();yJ();zJ();PJ();SJ();fJ();YV();uJ();kJ();dJ();mJ();wJ();DJ=LJ(hJ(),1);YJ=NJ(),KV=YJ.subscribe,L=[],ZJ=[],$J=[]});
|
|
4
|
+
export{d as Qh,QJ as Rh,KV as Sh,TV as Th,vV as Uh,UV as Vh,EJ as Wh,jV as Xh,RV as Yh,WV as Zh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{rf as ED,sf as oD}from"./cli-1.1.36-3xkn8kcw.mjs";import{Az as i,Bz as g,Cw as gD,Cz as c,Hy as zD,Iy as LD,Iz as C,Ky as fD,Mz as pD,OF as KD,PF as WD,QF as lD,Ry as VD,Wy as kD,dz as dD,fz as qD,gz as BD,kO as _D,lO as bD,lz as l,mO as UD,nO as aD,nw as QD,ow as XD,pz as jD,rz as x,sw as YD,sz as a,tz as vD,uy as ZD,uz as ID,vy as uD,xz as mD,yz as o,zz as s}from"./cli-1.1.36-v0s0vqmm.mjs";import{MV as nD}from"./cli-1.1.36-4ssz80b2.mjs";import{c1 as hD,e1 as wD}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as OD}from"./cli-1.1.36-apycha28.mjs";import{Pba as JD,Uba as CD,wfa as A,xfa as _,zfa as SD}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as HD,Dia as ND}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as R,fja as MD}from"./cli-1.1.36-6g1w2zbr.mjs";import{$ja as GD,Doa as TD}from"./cli-1.1.36-bsfazmtt.mjs";import{Npa as r,Rpa as d}from"./cli-1.1.36-c4pkjm54.mjs";function t(F){v.add(F)}function m(F){v.delete(F)}function p(F){return v.has(F)}var v;var e=d(()=>{v=new Set});function DD(F){let G="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${G}`}function FD(F,G){if(G.length===0)return;F((q)=>{let w=new Set(q.plugins.errors.map((L)=>DD(L))),b=G.filter((L)=>!w.has(DD(L)));if(b.length===0)return q;return{...q,plugins:{...q.plugins,errors:[...q.plugins.errors,...b]}}})}function cD(F,G,q,w){let b=G==="disabled"?w??[]:w;if(b===void 0)return F;let L=new Map;for(let z of b)if(z.name!==void 0)L.set(z.name,z);let X=[],y=new Set;for(let z of F){if(!z.name?.startsWith(q)){X.push(z);continue}let K=L.get(z.name);if(K)X.push(K),y.add(z.name)}for(let z of b)if(z.name===void 0||!y.has(z.name))X.push(z);return X}function $D(F,G=!1){let q=UD(),w=j.useSyncExternalStore(KD,WD),b=_D((D)=>D.mcp.pluginReconnectKey),L=bD(),X=j.useRef(new Map),y=16,z=j.useRef([]),K=j.useRef(null),E=j.useCallback(()=>{K.current=null;let D=z.current;if(D.length===0)return;z.current=[],L((H)=>{let J=H.mcp;for(let V of D){let{tools:Q,commands:I,resources:U,...Y}=V,B=Y.type==="disabled"||Y.type==="failed"?I??[]:I,O=Y.type==="disabled"||Y.type==="failed"?U??[]:U,Z=JD(Y.name),P=J.clients.findIndex((T)=>T.name===Y.name)===-1?[...J.clients,Y]:J.clients.map((T)=>T.name===Y.name?Y:T),S=cD(J.tools,Y.type,Z,Q),h=B===void 0?J.commands:[...ZD(J.commands,(T)=>VD(T,Y.name)),...B],f=O===void 0?J.resources:{...J.resources,...O.length>0?{[Y.name]:O}:ED(J.resources,Y.name)};J={...J,clients:P,tools:S,commands:h,resources:f}}return{...H,mcp:J}})},[L]),W=j.useCallback((D)=>{if(z.current.push(D),K.current===null)K.current=setTimeout(E,16)},[E]),$=j.useCallback(({client:D,tools:H,commands:J,resources:V})=>{switch(W({...D,tools:H,commands:J,resources:V}),D.type){case"connected":{if(ID(D.client,D.name,L),D.client.onclose=()=>{let Q=D.config.type??"stdio";if(C(D.name,D.config).catch(()=>{HD(`Failed to invalidate the server cache: ${D.name}`)}),x(D.name)||p(D.name)){_(D.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let I=rD(Q);_(D.name,`${I} transport closed/disconnected, attempting automatic reconnection`);let U=X.current.get(D.name);if(U)clearTimeout(U),X.current.delete(D.name);(async()=>{for(let B=1;B<=M;B++){if(x(D.name)||p(D.name)){_(D.name,"Server disabled during reconnection, stopping retry"),X.current.delete(D.name);return}W({...D,type:"pending",reconnectAttempt:B,maxReconnectAttempts:M});let O=Date.now();try{let k=await g(D.name,D.config),P=Date.now()-O;if(k.client.type==="connected"){_(D.name,`${I} reconnection successful after ${P}ms (attempt ${B})`),X.current.delete(D.name),$(k);return}if(_(D.name,`${I} reconnection attempt ${B} completed with status: ${k.client.type}`),B===M){_(D.name,`Max reconnection attempts (${M}) reached, giving up`),X.current.delete(D.name),$(k);return}}catch(k){let P=Date.now()-O;if(A(D.name,`${I} reconnection attempt ${B} failed after ${P}ms: ${k}`),B===M){_(D.name,`Max reconnection attempts (${M}) reached, giving up`),X.current.delete(D.name),W({...D,type:"failed"});return}}let Z=Math.min(sD*Math.pow(2,B-1),iD);_(D.name,`Scheduling reconnection attempt ${B+1} in ${Z}ms`),await new Promise((k)=>{let P=setTimeout(k,Z);X.current.set(D.name,P)})}})()}else W({...D,type:"failed"})},D.capabilities?.tools?.listChanged)D.client.setNotificationHandler(YD,async()=>{_(D.name,"Received tools/list_changed notification, refreshing tools");try{o.cache.delete(D.name);let Q=await o(D);W({...D,tools:Q})}catch(Q){A(D.name,`Failed to refresh tools after list_changed notification: ${R(Q)}`)}});if(D.capabilities?.prompts?.listChanged)D.client.setNotificationHandler(XD,async()=>{_(D.name,"Received prompts/list_changed notification, refreshing prompts");try{i.cache.delete(D.name);let Q=await i(D);W({...D,commands:[...Q]})}catch(Q){A(D.name,`Failed to refresh prompts after list_changed notification: ${R(Q)}`)}});if(D.capabilities?.resources?.listChanged)D.client.setNotificationHandler(QD,async()=>{_(D.name,"Received resources/list_changed notification, refreshing resources");try{s.cache.delete(D.name);let Q=await s(D);W({...D,resources:Q})}catch(Q){A(D.name,`Failed to refresh resources after list_changed notification: ${R(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[W]),n=GD();j.useEffect(()=>{async function D(){let{servers:H,errors:J}=G?{servers:{},errors:[]}:await l(F),V={...H,...F};FD(L,J),L((Q)=>{let{stale:I,...U}=kD(Q.mcp,V);for(let O of I){let Z=X.current.get(O.name);if(Z)clearTimeout(Z),X.current.delete(O.name);if(O.type==="connected")O.client.onclose=void 0,C(O.name,O.config).catch(()=>{})}let Y=new Set(U.clients.map((O)=>O.name)),B=Object.entries(V).filter(([O])=>!Y.has(O)).map(([O,Z])=>({name:O,type:x(O)?"disabled":"pending",config:Z}));if(B.length===0&&I.length===0)return Q;return{...Q,mcp:{...Q.mcp,...U,clients:[...U.clients,...B]}}})}D().catch((H)=>{A("useManageMCPConnections",`Failed to initialize servers as pending: ${R(H)}`)})},[G,F,L,n,b]),j.useEffect(()=>{let D=!1;async function H(){let J;if(G||jD())J=Promise.resolve({});else LD(),J=zD();let{servers:V,errors:Q}=G?{servers:{},errors:[]}:await l(F,J);if(D)return;FD(L,Q);let I={...V,...F},U=Object.fromEntries(Object.entries(I).filter(([Z])=>!x(Z)));c($,U).catch((Z)=>{A("useManageMcpConnections",`Failed to get MCP resources: ${R(Z)}`)});let Y={};if(!G){if(Y=BD(await J).allowed,D)return;if(Object.keys(Y).length>0){let{servers:Z}=qD(Y,I);Y=Z}if(Object.keys(Y).length>0){L((k)=>{let P=new Set(k.mcp.clients.map((h)=>h.name)),S=Object.entries(Y).filter(([h])=>!P.has(h)).map(([h,f])=>({name:h,type:x(h)?"disabled":"pending",config:f}));if(S.length===0)return k;return{...k,mcp:{...k.mcp,clients:[...k.mcp.clients,...S]}}});let Z=Object.fromEntries(Object.entries(Y).filter(([k])=>!x(k)));c($,Z).catch((k)=>{A("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${R(k)}`)})}}let B={...I,...Y},O={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(B))if(Z.scope==="enterprise")O.enterprise++;else if(Z.scope==="user")O.global++;else if(Z.scope==="project")O.project++;else if(Z.scope==="local")O.user++;else if(Z.scope==="dynamic")O.plugin++;else if(Z.scope==="claudeai")O.claudeai++}return H(),()=>{D=!0}},[G,F,$,L,w,n,b]),j.useEffect(()=>{let D=X.current;return()=>{for(let H of D.values())clearTimeout(H);if(D.clear(),K.current!==null)clearTimeout(K.current),K.current=null,E()}},[E]);let yD=j.useCallback(async(D)=>{let H=q.getState().mcp.clients.find((Q)=>Q.name===D);if(!H)throw Error(`MCP server ${D} not found`);let J=X.current.get(D);if(J)clearTimeout(J),X.current.delete(D);m(D);let V=await g(D,H.config);return $(V),V},[q,$]),RD=j.useCallback(async(D)=>{let H=q.getState().mcp.clients.find((V)=>V.name===D);if(!H)throw Error(`MCP server ${D} not found`);if(H.type!=="disabled"){let V=X.current.get(D);if(V)clearTimeout(V),X.current.delete(D);if(a(D,!1),H.type==="connected")await C(D,H.config);W({name:D,type:"disabled",config:H.config})}else{a(D,!0),m(D),W({name:D,type:"pending",config:H.config});let V=await g(D,H.config);$(V)}},[q,W,$]),xD=j.useCallback(async(D)=>{let H=q.getState().mcp.clients.find((V)=>V.name===D);if(!H)throw Error(`MCP server ${D} not found`);t(D);let J=X.current.get(D);if(J)clearTimeout(J),X.current.delete(D);if(H.type==="connected")await C(D,H.config);W({name:D,type:"disabled",config:H.config})},[q,W]);return{reconnectMcpServer:yD,toggleMcpServer:RD,disconnectMcpServer:xD}}function rD(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var j,M=5,sD=1000,iD=30000;var PD=d(()=>{TD();lD();pD();gD();oD();uD();vD();ND();aD();MD();SD();fD();mD();CD();e();dD();j=r(OD(),1)});function _F(){let F=N.useContext(u);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function bF(){let F=N.useContext(u);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function UF(){let F=N.useContext(u);if(!F)throw Error("useMcpDisconnect must be used within MCPConnectionManager");return F.disconnectMcpServer}function EF(F){let G=AD.c(7),{children:q,dynamicMcpConfig:w,isStrictMcpConfig:b}=F,{reconnectMcpServer:L,toggleMcpServer:X,disconnectMcpServer:y}=$D(w,b),z;if(G[0]!==L||G[1]!==X||G[2]!==y)z={reconnectMcpServer:L,toggleMcpServer:X,disconnectMcpServer:y},G[0]=L,G[1]=X,G[2]=y,G[3]=z;else z=G[3];let K=z,E;if(G[4]!==q||G[5]!==K)E=hD(u.Provider,{value:K,children:q}),G[4]=q,G[5]=K,G[6]=E;else E=G[6];return E}var AD,N,u;var tD=d(()=>{PD();wD();AD=r(nD(),1),N=r(OD(),1),u=N.createContext(null)});
|
|
2
|
+
export{_F as mf,bF as nf,UF as of,EF as pf,tD as qf};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Lj as F,MN as J,ON as A,UQ as P,xq as H,yq as R}from"./cli-1.1.36-v0s0vqmm.mjs";import{m9 as q,r9 as v}from"./cli-1.1.36-t6sjxpcb.mjs";import{Fga as W,Gga as C,Hga as D,Iga as M}from"./cli-1.1.36-ss62b517.mjs";import{Aia as $,Dia as f}from"./cli-1.1.36-jpcwwd65.mjs";import{Doa as V,Yma as Z}from"./cli-1.1.36-bsfazmtt.mjs";import{Rpa as L}from"./cli-1.1.36-c4pkjm54.mjs";function h(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>Y?G.slice(-Y):G}async function j(U,Q){let G=U.trim();if(!G)return null;try{let w=await J({systemPrompt:H([X]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:Z(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=F(w.message.content),B=k().safeParse(q(K));return B.success?B.data.title.trim()||null:null}catch(w){return $(`generateSessionTitle failed: ${w}`,{level:"error"}),"Claudin"}}var Y=1000,X=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,k;var z=L(()=>{C();V();A();f();v();M();P();R();k=D(()=>W.object({title:W.string()}))});
|
|
15
|
+
export{h as Qe,j as Re,z as Se};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{EX as e2,MV as u2,QV as Z,YW as Y,_W as u}from"./cli-1.1.36-4ssz80b2.mjs";import{c1 as t,d1 as o,e1 as U}from"./cli-1.1.36-z5djkbwy.mjs";import{F9 as X,H9 as j}from"./cli-1.1.36-t6sjxpcb.mjs";import{Npa as s}from"./cli-1.1.36-c4pkjm54.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,O,R,k,A,a,I,i,V;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.36"," "]})]}),O=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),R=t(u,{children:" "}),k=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),l[2]=c,l[3]=O,l[4]=R,l[5]=k,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=V;else c=l[2],O=l[3],R=l[4],k=l[5],A=l[6],a=l[7],I=l[8],i=l[9],V=l[10];let M;if(l[11]===Symbol.for("react.memo_cache_sentinel"))M=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=M;else M=l[11];let E,W;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),W=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=W;else E=l[12],W=l[13];let N;if(l[14]===Symbol.for("react.memo_cache_sentinel"))N=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=N;else N=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let P;if(l[16]===Symbol.for("react.memo_cache_sentinel"))P=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=P;else P=l[16];let v;if(l[17]===Symbol.for("react.memo_cache_sentinel"))v=t(Y,{width:K,children:o(u,{children:[c,O,R,k,A,a,I,i,V,M,E,W,N,L,P,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=v;else v=l[17];return v}let B,r,D,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))B=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.1.36"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),D=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=B,l[19]=r,l[20]=D,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else B=l[18],r=l[19],D=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let p;if(l[34]===Symbol.for("react.memo_cache_sentinel"))p=t(Y,{width:K,children:o(u,{children:[B,r,D,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=p;else p=l[34];return p}function t2(l){let e=Q.c(44),{theme:B,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(B)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.1.36"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let V,M,E,W,N,L,P,v;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),W=t(u,{children:" "}),N=t(u,{children:" "}),L=t(u,{children:" "}),P=t(u,{children:" ░░░░░░ "}),v=t(u,{children:" ░░░ ░░░░░░░░░░ "}),V=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),e[5]=V,e[6]=M,e[7]=E,e[8]=W,e[9]=N,e[10]=L,e[11]=P,e[12]=v;else V=e[5],M=e[6],E=e[7],W=e[8],N=e[9],L=e[10],P=e[11],v=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,W,N,L,P,v,V,M,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.1.36"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,p;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),p=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=p;else C=e[33],S=e[34],w=e[35],g=e[36],p=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let O;if(e[39]===Symbol.for("react.memo_cache_sentinel"))O=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=O;else O=e[39];let R;if(e[40]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=R;else R=e[40];let k;if(e[41]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=k;else k=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,p,c,O,R,k]})}),e[42]=m,e[43]=A;else A=e[43];return A}
|
|
2
|
+
export{c2 as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hQ as x,kQ as B}from"./cli-1.1.36-v0s0vqmm.mjs";import{Rpa as z}from"./cli-1.1.36-c4pkjm54.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
+
export{G as eg,H as fg,A as gg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wb as H,zb as O}from"./cli-1.1.36-fd7xaf6g.mjs";import{Je as N,Me as P,Ne as R}from"./cli-1.1.36-ggr2pkp7.mjs";import{$7 as C,r8 as _}from"./cli-1.1.36-rqhp2xt1.mjs";import{dia as U,eia as A,iia as h}from"./cli-1.1.36-jpcwwd65.mjs";_();R();O();var S="environments-2025-11-01",x=/^[a-zA-Z0-9_-]+$/;function M(q,J){if(!q||!x.test(q))throw Error(`Invalid ${J}: contains unsafe characters`);return q}class j extends Error{status;errorType;constructor(q,J,Q){super(q);this.name="BridgeFatalError",this.status=J,this.errorType=Q}}function f(q){function J(z){q.onDebug?.(z)}let Q=0,Z=100;function X(z){return{Authorization:`Bearer ${z}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":S,"x-environment-runner-version":q.runnerVersion}}function G(){let z=q.getAccessToken();if(!z)throw Error(H);return z}async function D(z,K){let $=G(),W=await z($);if(W.status!==401)return W;if(!q.onAuth401)return J(`[bridge:api] ${K}: 401 received, no refresh handler`),W;if(J(`[bridge:api] ${K}: 401 received, attempting token refresh`),await q.onAuth401($)){J(`[bridge:api] ${K}: Token refreshed, retrying request`);let V=G(),F=await z(V);if(F.status!==401)return F;J(`[bridge:api] ${K}: Retry after refresh also got 401`)}else J(`[bridge:api] ${K}: Token refresh failed`);return W}return{async registerBridgeEnvironment(z){J(`[bridge:api] POST /v1/environments/bridge bridgeId=${z.bridgeId}`);let K=await D(($)=>C.post(`${q.baseUrl}/v1/environments/bridge`,{machine_name:z.machineName,directory:z.dir,branch:z.branch,git_repo_url:z.gitRepoUrl,max_sessions:z.maxSessions,metadata:{worker_type:z.workerType},...z.reuseEnvironmentId&&{environment_id:z.reuseEnvironmentId}},{headers:X($),timeout:15000,validateStatus:(W)=>W<500}),"Registration");return L(K.status,K.data,"Registration"),J(`[bridge:api] POST /v1/environments/bridge -> ${K.status} environment_id=${K.data.environment_id}`),J(`[bridge:api] >>> ${N({machine_name:z.machineName,directory:z.dir,branch:z.branch,git_repo_url:z.gitRepoUrl,max_sessions:z.maxSessions,metadata:{worker_type:z.workerType}})}`),J(`[bridge:api] <<< ${N(K.data)}`),K.data},async pollForWork(z,K,$,W){M(z,"environmentId");let Y=Q;Q=0;let V=await C.get(`${q.baseUrl}/v1/environments/${z}/work/poll`,{headers:X(K),params:W!==void 0?{reclaim_older_than_ms:W}:void 0,timeout:1e4,signal:$,validateStatus:(F)=>F<500});if(L(V.status,V.data,"Poll"),!V.data){if(Q=Y+1,Q===1||Q%Z===0)J(`[bridge:api] GET .../work/poll -> ${V.status} (no work, ${Q} consecutive empty polls)`);return null}return J(`[bridge:api] GET .../work/poll -> ${V.status} workId=${V.data.id} type=${V.data.data?.type}${V.data.data?.id?` sessionId=${V.data.data.id}`:""}`),J(`[bridge:api] <<< ${N(V.data)}`),V.data},async acknowledgeWork(z,K,$){M(z,"environmentId"),M(K,"workId"),J(`[bridge:api] POST .../work/${K}/ack`);let W=await C.post(`${q.baseUrl}/v1/environments/${z}/work/${K}/ack`,{},{headers:X($),timeout:1e4,validateStatus:(Y)=>Y<500});L(W.status,W.data,"Acknowledge"),J(`[bridge:api] POST .../work/${K}/ack -> ${W.status}`)},async stopWork(z,K,$){M(z,"environmentId"),M(K,"workId"),J(`[bridge:api] POST .../work/${K}/stop force=${$}`);let W=await D((Y)=>C.post(`${q.baseUrl}/v1/environments/${z}/work/${K}/stop`,{force:$},{headers:X(Y),timeout:1e4,validateStatus:(V)=>V<500}),"StopWork");L(W.status,W.data,"StopWork"),J(`[bridge:api] POST .../work/${K}/stop -> ${W.status}`)},async deregisterEnvironment(z){M(z,"environmentId"),J(`[bridge:api] DELETE /v1/environments/bridge/${z}`);let K=await D(($)=>C.delete(`${q.baseUrl}/v1/environments/bridge/${z}`,{headers:X($),timeout:1e4,validateStatus:(W)=>W<500}),"Deregister");L(K.status,K.data,"Deregister"),J(`[bridge:api] DELETE /v1/environments/bridge/${z} -> ${K.status}`)},async archiveSession(z){M(z,"sessionId"),J(`[bridge:api] POST /v1/sessions/${z}/archive`);let K=await D(($)=>C.post(`${q.baseUrl}/v1/sessions/${z}/archive`,{},{headers:X($),timeout:1e4,validateStatus:(W)=>W<500}),"ArchiveSession");if(K.status===409){J(`[bridge:api] POST /v1/sessions/${z}/archive -> 409 (already archived)`);return}L(K.status,K.data,"ArchiveSession"),J(`[bridge:api] POST /v1/sessions/${z}/archive -> ${K.status}`)},async reconnectSession(z,K){M(z,"environmentId"),M(K,"sessionId"),J(`[bridge:api] POST /v1/environments/${z}/bridge/reconnect session_id=${K}`);let $=await D((W)=>C.post(`${q.baseUrl}/v1/environments/${z}/bridge/reconnect`,{session_id:K},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");L($.status,$.data,"ReconnectSession"),J(`[bridge:api] POST .../bridge/reconnect -> ${$.status}`)},async heartbeatWork(z,K,$){M(z,"environmentId"),M(K,"workId"),J(`[bridge:api] POST .../work/${K}/heartbeat`);let W=await C.post(`${q.baseUrl}/v1/environments/${z}/work/${K}/heartbeat`,{},{headers:X($),timeout:1e4,validateStatus:(Y)=>Y<500});return L(W.status,W.data,"Heartbeat"),J(`[bridge:api] POST .../work/${K}/heartbeat -> ${W.status} lease_extended=${W.data.lease_extended} state=${W.data.state}`),W.data},async sendPermissionResponseEvent(z,K,$){M(z,"sessionId"),J(`[bridge:api] POST /v1/sessions/${z}/events type=${K.type}`);let W=await C.post(`${q.baseUrl}/v1/sessions/${z}/events`,{events:[K]},{headers:X($),timeout:1e4,validateStatus:(Y)=>Y<500});L(W.status,W.data,"SendPermissionResponseEvent"),J(`[bridge:api] POST /v1/sessions/${z}/events -> ${W.status}`),J(`[bridge:api] >>> ${N({events:[K]})}`),J(`[bridge:api] <<< ${N(W.data)}`)}}}function L(q,J,Q){if(q===200||q===204)return;let Z=P(J),X=E(J);switch(q){case 401:throw new j(`${Q}: Authentication failed (401)${Z?`: ${Z}`:""}. ${H}`,401,X);case 403:throw new j(B(X)?"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.":`${Q}: Access denied (403)${Z?`: ${Z}`:""}. Check your organization permissions.`,403,X);case 404:throw new j(Z??`${Q}: Not found (404). Remote Control may not be available for this organization.`,404,X);case 410:throw new j(Z??"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.",410,X??"environment_expired");case 429:throw Error(`${Q}: Rate limited (429). Polling too frequently.`);default:throw Error(`${Q}: Failed with status ${q}${Z?`: ${Z}`:""}`)}}function B(q){if(!q)return!1;return q.includes("expired")||q.includes("lifetime")}function b(q){if(q.status!==403)return!1;return q.message.includes("external_poll_sessions")||q.message.includes("environments:manage")}function E(q){if(q&&typeof q==="object"){if("error"in q&&q.error&&typeof q.error==="object"&&"type"in q.error&&typeof q.error.type==="string")return q.error.type}return}_();h();function u(q){let J=Buffer.from(q,"base64url").toString("utf-8"),Q=A(J);if(!Q||typeof Q!=="object"||!("version"in Q)||Q.version!==1)throw Error(`Unsupported work secret version: ${Q&&typeof Q==="object"&&"version"in Q?Q.version:"unknown"}`);let Z=Q;if(typeof Z.session_ingress_token!=="string"||Z.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof Z.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return Q}function I(q,J){let Q=new URL(q).hostname,Z=Q==="localhost"||Q==="127.0.0.1",X=Z?"ws":"wss",G=Z?"v2":"v1",D=q.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${X}://${D}/${G}/session_ingress/ws/${J}`}function l(q,J){if(q===J)return!0;let Q=q.slice(q.lastIndexOf("_")+1),Z=J.slice(J.lastIndexOf("_")+1);return Q.length>=4&&Q===Z}function c(q,J){return`${q.replace(/\/+$/,"")}/v1/code/sessions/${J}`}async function g(q,J){let Q=await C.post(`${q}/worker/register`,{},{headers:{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),Z=Q.data?.worker_epoch,X=typeof Z==="string"?Number(Z):Z;if(typeof X!=="number"||!Number.isFinite(X)||!Number.isSafeInteger(X))throw Error(`registerWorker: invalid worker_epoch in response: ${U(Q.data)}`);return X}function i(q){let J=new AbortController;function Q(){J.abort(),J=new AbortController}function Z(){let X=new AbortController,G=()=>X.abort();if(q.aborted||J.signal.aborted)return X.abort(),{signal:X.signal,cleanup:()=>{}};q.addEventListener("abort",G,{once:!0});let D=J.signal;return D.addEventListener("abort",G,{once:!0}),{signal:X.signal,cleanup:()=>{q.removeEventListener("abort",G),D.removeEventListener("abort",G)}}}return{signal:Z,wake:Q}}
|
|
2
|
+
export{M as Y,j as Z,f as _,B as $,b as aa,u as ba,I as ca,l as da,c as ea,g as fa,i as ga};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{o6 as CJ,v6 as XQ}from"./cli-1.1.36-7xx3rm4x.mjs";import{D$ as VQ,M_ as w,O_ as nJ,V_ as DJ,W_ as QQ,k$ as xJ,ufa as N,zfa as rJ}from"./cli-1.1.36-t6sjxpcb.mjs";import{Fga as R,Gga as _J,Hga as P,Iga as UJ}from"./cli-1.1.36-ss62b517.mjs";import{Aia as G,Dia as WJ,dia as S,eia as b,iia as RJ}from"./cli-1.1.36-jpcwwd65.mjs";import{$ia as A,_ia as E,fja as KJ}from"./cli-1.1.36-6g1w2zbr.mjs";import{ija as GJ,jja as yJ,lja as c,tja as n}from"./cli-1.1.36-0qtyffhw.mjs";import{$ja as ZJ,Doa as qJ,Yma as $J,Zja as YJ,_ja as kJ,qoa as l}from"./cli-1.1.36-bsfazmtt.mjs";import{Qpa as pJ,Rpa as x,Spa as wJ}from"./cli-1.1.36-c4pkjm54.mjs";import{AsyncLocalStorage as PJ}from"async_hooks";function B(){return k.getStore()}function JJ(J,Q){return k.run(J,Q)}function QJ(){return k.getStore()!==void 0}function VJ(J){return{...J,isInProcess:!0}}var k;var F=x(()=>{k=new PJ});var oJ={};pJ(oJ,{waitForTeammatesToBecomeIdle:()=>gJ,setDynamicTeamContext:()=>uJ,runWithTeammateContext:()=>JJ,isTeammate:()=>d,isTeamLead:()=>TJ,isPlanModeRequired:()=>NJ,isInProcessTeammate:()=>QJ,hasWorkingInProcessTeammates:()=>IJ,hasActiveInProcessTeammates:()=>lJ,getTeammateContext:()=>B,getTeammateColor:()=>cJ,getTeamName:()=>C,getParentSessionId:()=>hJ,getDynamicTeamContext:()=>FJ,getAgentName:()=>r,getAgentId:()=>XJ,createTeammateContext:()=>VJ,clearDynamicTeamContext:()=>LJ});function hJ(){let J=B();if(J)return J.parentSessionId;return U?.parentSessionId}function uJ(J){U=J}function LJ(){U=null}function FJ(){return U}function XJ(){let J=B();if(J)return J.agentId;return U?.agentId}function r(){let J=B();if(J)return J.agentName;return U?.agentName}function C(J){let Q=B();if(Q)return Q.teamName;if(U?.teamName)return U.teamName;return J?.teamName}function d(){if(B())return!0;return!!(U?.agentId&&U?.teamName)}function cJ(){let J=B();if(J)return J.color;return U?.color}function NJ(){let J=B();if(J)return J.planModeRequired;if(U!==null)return U.planModeRequired;return c(process.env.CLAUDIN_PLAN_MODE_REQUIRED)}function TJ(J){if(!J?.leadAgentId)return!1;let Q=XJ(),V=J.leadAgentId;if(Q===V)return!0;if(!Q)return!0;return!1}function lJ(J){for(let Q of Object.values(J.tasks))if(Q.type==="in_process_teammate"&&Q.status==="running")return!0;return!1}function IJ(J){for(let Q of Object.values(J.tasks))if(Q.type==="in_process_teammate"&&Q.status==="running"&&!Q.isIdle)return!0;return!1}function gJ(J,Q){let V=[];for(let[X,Z]of Object.entries(Q.tasks))if(Z.type==="in_process_teammate"&&Z.status==="running"&&!Z.isIdle)V.push(X);if(V.length===0)return Promise.resolve();return new Promise((X)=>{let Z=V.length,Y=()=>{if(Z--,Z===0)X()};J(($)=>{let q={...$.tasks};for(let K of V){let _=q[K];if(_&&_.type==="in_process_teammate")if(_.isIdle)Y();else q[K]={..._,onIdleCallbacks:[..._.onIdleCallbacks??[],Y]}}return{...$,tasks:q}})})}var U=null;var i=x(()=>{F();n();F()});import{mkdir as dJ,readdir as m,readFile as BJ,unlink as EJ,writeFile as T}from"fs/promises";import{join as p}from"path";function LQ(J){if(f===J)return;f=J,O()}function FQ(){if(f===void 0)return;f=void 0,O()}function O(){try{HJ.emit()}catch{}}function jJ(J){return p(H(J),sJ)}async function s(J){let Q=jJ(J);try{let V=(await BJ(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function OJ(J,Q){let V=jJ(J);await T(V,String(Q))}function NQ(){if(c(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!$J()}async function TQ(J){let Q=H(J),V=await t(J),X;try{X=await w(V,h);let Z=await vJ(J);if(Z>0){let $=await s(J);if(Z>$)await OJ(J,Z)}let Y;try{Y=await m(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=p(Q,$);try{await EJ(q)}catch{}}O()}finally{if(X)await X()}}async function lQ(J){let Q=await u(J),V=0;for(let X of Q){if(X.status!=="completed"||X.metadata?._internal)continue;if(await M(J,X.id,{metadata:{...X.metadata,_internal:!0}}))V++}return V}function IQ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let J=B();if(J)return J.teamName;return C()||f||ZJ()}function zJ(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function H(J){return p(GJ(),"tasks",zJ(J))}function y(J,Q){return p(H(J),`${zJ(Q)}.json`)}async function tJ(J){let Q=H(J);try{await dJ(Q,{recursive:!0})}catch{}}async function vJ(J){let Q=H(J),V;try{V=await m(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function aJ(J){let[Q,V]=await Promise.all([vJ(J),s(J)]);return Math.max(Q,V)}async function gQ(J,Q){let V=await t(J),X;try{X=await w(V,h);let Z=await aJ(J),Y=String(Z+1),$={id:Y,...Q},q=y(J,Y);return await T(q,S($,null,2)),O(),Y}finally{if(X)await X()}}async function z(J,Q){let V=y(J,Q);try{let X=await BJ(V,"utf-8"),Z=b(X),Y=mJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(A(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${E(X)}`),N(X),null}}async function MJ(J,Q,V){let X=await z(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=y(J,Q);return await T(Y,S(Z,null,2)),O(),Z}async function M(J,Q,V){let X=y(J,Q);if(!await z(J,Q))return null;let Y;try{return Y=await w(X,h),await MJ(J,Q,V)}finally{await Y?.()}}async function oQ(J,Q){let V=y(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await s(J);if(X>Y)await OJ(J,X)}try{await EJ(V)}catch(Y){if(A(Y)==="ENOENT")return!1;throw Y}let Z=await u(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await M(J,Y.id,{blocks:$,blockedBy:q})}return O(),!0}catch{return!1}}async function u(J){let Q=H(J),V;try{V=await m(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>z(J,Y)))).filter((Y)=>Y!==null)}async function kQ(J,Q,V){let[X,Z]=await Promise.all([z(J,Q),z(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await M(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await M(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function eJ(J){return p(H(J),".lock")}async function t(J){await tJ(J);let Q=eJ(J);try{await T(Q,"",{flag:"wx"})}catch{}return Q}async function nQ(J,Q,V,X={}){let Z=y(J,Q);if(!await z(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return JQ(J,Q,V);let $;try{$=await w(Z,h);let q=await z(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await u(J),_=new Set(K.filter((D)=>D.status!=="completed").map((D)=>D.id)),o=q.blockedBy.filter((D)=>_.has(D));if(o.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:o};return{success:!0,task:await MJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${E(q)}`),N(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function JQ(J,Q,V){let X=await t(J),Z;try{Z=await w(X,h);let Y=await u(J),$=Y.find((W)=>W.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((W)=>W.status!=="completed").map((W)=>W.id)),K=$.blockedBy.filter((W)=>q.has(W));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let _=Y.filter((W)=>W.status!=="completed"&&W.owner===V&&W.id!==Q);if(_.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:_.map((W)=>W.id)};return{success:!0,task:await M(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${E(Y)}`),N(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function rQ(J,Q,V,X){let Y=(await u(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await M(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((_)=>`#${_.id} "${_.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var HJ,f,cQ,iJ,mJ,sJ=".highwatermark",h;var AJ=x(()=>{_J();qJ();WJ();n();KJ();UJ();nJ();rJ();kJ();RJ();i();F();HJ=YJ();cQ=HJ.subscribe;iJ=P(()=>R.enum(["pending","in_progress","completed"])),mJ=P(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:iJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),h={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function a(J){return J==="tmux"||J==="iterm2"}var SJ=()=>{};import{mkdirSync as YQ,readFileSync as ZQ,writeFileSync as $Q}from"fs";import{mkdir as qQ,readFile as fJ,rm as e,writeFile as GQ}from"fs/promises";import{join as L}from"path";function bJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function _V(J){return J.replace(/@/g,"-")}function I(J){return L(yJ(),bJ(J))}function g(J){return L(I(J),"config.json")}function j(J){try{let Q=ZQ(g(J),"utf-8");return b(Q)}catch(Q){if(A(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${E(Q)}`),null}}async function KQ(J){try{let Q=await fJ(g(J),"utf-8");return b(Q)}catch(Q){if(A(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${E(Q)}`),null}}function v(J,Q){let V=I(J);YQ(V,{recursive:!0}),$Q(g(J),S(Q,null,2))}async function RQ(J,Q){let V=I(J);await qQ(V,{recursive:!0}),await GQ(g(J),S(Q,null,2))}function UV(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=j(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return v(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function BV(J,Q){let V=j(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,v(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function EV(J,Q){let V=j(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,v(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function HV(J,Q){let V=j(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return v(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function jV(J,Q){let V=j(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),v(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function WQ(J,Q,V){let X=j(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return v(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function OV(J,Q){if(!d())return;let V=Q??C(),X=r();if(V&&X)WQ(V,X,J)}function zV(J,Q){let V=j(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)v(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function vV(J,Q,V){let X=await KQ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await RQ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function _Q(J){let Q=L(J,".git"),V=null;try{let Z=(await fJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=L(Y,"..","..");V=L($,"..")}}catch{}if(V){let X=await DJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await e(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${E(X)}`)}}function MV(J){l().add(J)}function AV(J){l().delete(J)}async function SV(){let J=l();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>UQ(V))),await Promise.allSettled(Q.map((V)=>BQ(V))),J.clear()}async function UQ(J){let Q=j(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&a(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-1.1.36-4bt4ac4z.mjs"),import("./detection-1.1.36-s8z7d4bm.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!a(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function BQ(J){let Q=bJ(J),V=j(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await _Q($);let Z=I(J);try{await e(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${E($)}`)}let Y=H(Q);try{await e(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),O()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${E($)}`)}}var WV;var EQ=x(()=>{_J();qJ();WJ();n();KJ();QQ();VQ();UJ();RJ();AJ();i();SJ();XQ();WV=P(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
+
export{B as OT,JJ as PT,QJ as QT,VJ as RT,F as ST,hJ as TT,FJ as UT,XJ as VT,r as WT,C as XT,d as YT,cJ as ZT,NJ as _T,TJ as $T,lJ as aU,IJ as bU,gJ as cU,oJ as dU,i as eU,LQ as fU,FQ as gU,cQ as hU,iJ as iU,NQ as jU,TQ as kU,lQ as lU,IQ as mU,zJ as nU,H as oU,tJ as pU,gQ as qU,z as rU,M as sU,oQ as tU,u as uU,kQ as vU,nQ as wU,rQ as xU,AJ as yU,a as zU,SJ as AU,WV as BU,bJ as CU,_V as DU,I as EU,g as FU,j as GU,KQ as HU,RQ as IU,UV as JU,BV as KU,EV as LU,HV as MU,jV as NU,WQ as OU,OV as PU,zV as QU,vV as RU,MV as SU,AV as TU,SV as UU,BQ as VU,EQ as WU};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ppa as N}from"./cli-1.1.36-c4pkjm54.mjs";var zt=N((J)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),Y=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),U=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),K=Symbol.for("react.view_transition"),C=Symbol.iterator;function W(t){if(t===null||typeof t!=="object")return null;return t=C&&t[C]||t["@@iterator"],typeof t==="function"?t:null}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,h={};function l(t,e,r){this.props=t,this.context=e,this.refs=h,this.updater=r||w}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,r){this.props=t,this.context=e,this.refs=h,this.updater=r||w}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var m=Array.isArray;function E(){}var s={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function x(t,e,r){var n=r.ref;return{$$typeof:y,type:t,key:e,ref:n!==void 0?n:null,props:r}}function b(t,e){return x(t.type,e,t.props)}function R(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function B(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var d=/\/+/g;function _(t,e){return typeof t==="object"&&t!==null&&t.key!=null?B(""+t.key):e.toString(36)}function Q(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,r,n,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var i=!1;if(t===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case y:case $:i=!0;break;case S:return i=t._init,p(i(t._payload),e,r,n,o)}}if(i)return o=o(t),i=n===""?"."+_(t,0):n,m(o)?(r="",i!=null&&(r=i.replace(d,"$&/")+"/"),p(o,e,r,"",function(I){return I})):o!=null&&(R(o)&&(o=b(o,r+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+i)),e.push(o)),1;i=0;var c=n===""?".":n+":";if(m(t))for(var f=0;f<t.length;f++)n=t[f],u=c+_(n,f),i+=p(n,e,r,u,o);else if(f=W(t),typeof f==="function")for(t=f.call(t),f=0;!(n=t.next()).done;)n=n.value,u=c+_(n,f++),i+=p(n,e,r,u,o);else if(u==="object"){if(typeof t.then==="function")return p(Q(t),e,r,n,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return i}function a(t,e,r){if(t==null)return t;var n=[],o=0;return p(t,n,"","",function(u){return e.call(r,u,o++)}),n}function X(t){if(t._status===-1){var e=t._result,r=e();r.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n,r.status===void 0&&(r.status="fulfilled",r.value=n)},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n,r.status===void 0&&(r.status="rejected",r.reason=n)}),t._status===-1&&(t._status=0,t._result=r)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)};function H(t){var e=s.T,r={};r.types=e!==null?e.types:null,s.T=r;try{var n=t(),o=s.S;o!==null&&o(r,n),typeof n==="object"&&n!==null&&typeof n.then==="function"&&n.then(E,A)}catch(u){A(u)}finally{e!==null&&r.types!==null&&(e.types=r.types),s.T=e}}function j(t){var e=s.T;if(e!==null){var r=e.types;r===null?e.types=[t]:r.indexOf(t)===-1&&r.push(t)}else H(j.bind(null,t))}var Z={map:a,forEach:function(t,e,r){a(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return a(t,function(){e++}),e},toArray:function(t){return a(t,function(e){return e})||[]},only:function(t){if(!R(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};J.Activity=G;J.Children=Z;J.Component=l;J.Fragment=Y;J.Profiler=L;J.PureComponent=v;J.StrictMode=M;J.Suspense=q;J.ViewTransition=K;J.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s;J.__COMPILER_RUNTIME={__proto__:null,c:function(t){return s.H.useMemoCache(t)}};J.addTransitionType=j;J.cache=function(t){return function(){return t.apply(null,arguments)}};J.cacheSignal=function(){return null};J.cloneElement=function(t,e,r){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var n=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!O.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(n[u]=e[u]);var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];n.children=i}return x(t.type,o,n)};J.createContext=function(t){return t={$$typeof:U,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:k,_context:t},t};J.createElement=function(t,e,r){var n,o={},u=null;if(e!=null)for(n in e.key!==void 0&&(u=""+e.key),e)O.call(e,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(o[n]=e[n]);var i=arguments.length-2;if(i===1)o.children=r;else if(1<i){for(var c=Array(i),f=0;f<i;f++)c[f]=arguments[f+2];o.children=c}if(t&&t.defaultProps)for(n in i=t.defaultProps,i)o[n]===void 0&&(o[n]=i[n]);return x(t,u,o)};J.createRef=function(){return{current:null}};J.forwardRef=function(t){return{$$typeof:D,render:t}};J.isValidElement=R;J.lazy=function(t){return{$$typeof:S,_payload:{_status:-1,_result:t},_init:X}};J.memo=function(t,e){return{$$typeof:z,type:t,compare:e===void 0?null:e}};J.startTransition=H;J.unstable_useCacheRefresh=function(){return s.H.useCacheRefresh()};J.use=function(t){return s.H.use(t)};J.useActionState=function(t,e,r){return s.H.useActionState(t,e,r)};J.useCallback=function(t,e){return s.H.useCallback(t,e)};J.useContext=function(t){return s.H.useContext(t)};J.useDebugValue=function(){};J.useDeferredValue=function(t,e){return s.H.useDeferredValue(t,e)};J.useEffect=function(t,e){return s.H.useEffect(t,e)};J.useEffectEvent=function(t){return s.H.useEffectEvent(t)};J.useId=function(){return s.H.useId()};J.useImperativeHandle=function(t,e,r){return s.H.useImperativeHandle(t,e,r)};J.useInsertionEffect=function(t,e){return s.H.useInsertionEffect(t,e)};J.useLayoutEffect=function(t,e){return s.H.useLayoutEffect(t,e)};J.useMemo=function(t,e){return s.H.useMemo(t,e)};J.useOptimistic=function(t,e){return s.H.useOptimistic(t,e)};J.useReducer=function(t,e,r){return s.H.useReducer(t,e,r)};J.useRef=function(t){return s.H.useRef(t)};J.useState=function(t){return s.H.useState(t)};J.useSyncExternalStore=function(t,e,r){return s.H.useSyncExternalStore(t,e,r)};J.useTransition=function(){return s.H.useTransition()};J.version="19.3.0"});
|
|
2
|
+
export{zt as f1};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Mpa as Z}from"./cli-1.1.36-gfn4xejp.mjs";import{Ppa as Y,Spa as O}from"./cli-1.1.36-c4pkjm54.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
+
export{ye as Fpa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{P4 as q,h5 as D}from"./cli-1.1.36-s8jcsdgb.mjs";import{Aha as z,zha as m}from"./cli-1.1.36-6yqvdwyp.mjs";import{Rpa as x}from"./cli-1.1.36-c4pkjm54.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
|
|
2
|
+
export{E as ai,F as bi,K as ci,M as di,G as ei};
|