@claudiolabs/claudin 1.1.34 → 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.34-5bkzspjw.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +0 -6
- package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +0 -1
- package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +0 -1
- package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +0 -1
- package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +0 -3
- package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +0 -110
- package/dist/chunks/api-1.1.34-99hm00p0.mjs +0 -1
- package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +0 -1
- package/dist/chunks/auth-1.1.34-32n80bwr.mjs +0 -1
- package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +0 -1
- package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +0 -1
- package/dist/chunks/branch-1.1.34-949t9ara.mjs +0 -4
- package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +0 -1
- package/dist/chunks/btw-1.1.34-4246e84n.mjs +0 -1
- package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +0 -4
- package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +0 -1
- package/dist/chunks/cd-1.1.34-6458ex95.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +0 -1
- package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +0 -1
- package/dist/chunks/cli-1.1.34-00hxx56p.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +0 -9
- package/dist/chunks/cli-1.1.34-0f5qa0q0.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0h4whfas.mjs +0 -6
- package/dist/chunks/cli-1.1.34-0kkae10p.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +0 -2
- package/dist/chunks/cli-1.1.34-0zqthr52.mjs +0 -2
- package/dist/chunks/cli-1.1.34-1229x70a.mjs +0 -2
- package/dist/chunks/cli-1.1.34-166q8s04.mjs +0 -24
- package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +0 -3
- package/dist/chunks/cli-1.1.34-1ategs07.mjs +0 -2
- package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +0 -3
- package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +0 -12
- package/dist/chunks/cli-1.1.34-20femz8z.mjs +0 -2
- package/dist/chunks/cli-1.1.34-20p72tmb.mjs +0 -20
- package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +0 -5
- package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +0 -2
- package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +0 -2
- package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-372a0qyj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-37g65vk7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +0 -2
- package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +0 -2
- package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +0 -2
- package/dist/chunks/cli-1.1.34-3rcacat5.mjs +0 -3
- package/dist/chunks/cli-1.1.34-4v8eanby.mjs +0 -2
- package/dist/chunks/cli-1.1.34-4x915j9t.mjs +0 -2
- package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +0 -2
- package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +0 -2
- package/dist/chunks/cli-1.1.34-58ergrxf.mjs +0 -7
- package/dist/chunks/cli-1.1.34-59csbz1a.mjs +0 -60
- package/dist/chunks/cli-1.1.34-5ec767fj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +0 -3
- package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5vktvncs.mjs +0 -2
- package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +0 -4
- package/dist/chunks/cli-1.1.34-643n510j.mjs +0 -2
- package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +0 -2
- package/dist/chunks/cli-1.1.34-6ndxsqp1.mjs +0 -2
- package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +0 -133
- package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7bxexffs.mjs +0 -6
- package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +0 -2
- package/dist/chunks/cli-1.1.34-7npd3as5.mjs +0 -18
- package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +0 -3
- package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +0 -2
- package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +0 -2
- package/dist/chunks/cli-1.1.34-84707tma.mjs +0 -5491
- package/dist/chunks/cli-1.1.34-859ap6f7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +0 -2
- package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +0 -39
- package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +0 -2
- package/dist/chunks/cli-1.1.34-92kps6jn.mjs +0 -63
- package/dist/chunks/cli-1.1.34-9jn997h8.mjs +0 -2
- package/dist/chunks/cli-1.1.34-9tctqya9.mjs +0 -6
- package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +0 -2
- package/dist/chunks/cli-1.1.34-9z887t80.mjs +0 -2
- package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +0 -2
- package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +0 -2
- package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +0 -2
- package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +0 -2
- package/dist/chunks/cli-1.1.34-c3w48hst.mjs +0 -2
- package/dist/chunks/cli-1.1.34-cp457g25.mjs +0 -11
- package/dist/chunks/cli-1.1.34-cptp243m.mjs +0 -2
- package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +0 -2
- package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +0 -2
- package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +0 -4
- package/dist/chunks/cli-1.1.34-d5enzbca.mjs +0 -2
- package/dist/chunks/cli-1.1.34-d8bccy48.mjs +0 -7
- package/dist/chunks/cli-1.1.34-dceap5rk.mjs +0 -4
- package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +0 -3
- package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +0 -2
- package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +0 -2
- package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-f806gv2e.mjs +0 -7
- package/dist/chunks/cli-1.1.34-faavcjnj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ffs3510y.mjs +0 -2
- package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +0 -17
- package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +0 -34
- package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +0 -2
- package/dist/chunks/cli-1.1.34-fnds3msv.mjs +0 -6
- package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-g888fgsj.mjs +0 -4
- package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +0 -2
- package/dist/chunks/cli-1.1.34-gmaedxb1.mjs +0 -26
- package/dist/chunks/cli-1.1.34-gsrndv90.mjs +0 -2
- package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +0 -4
- package/dist/chunks/cli-1.1.34-h7927ctg.mjs +0 -2
- package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +0 -2
- package/dist/chunks/cli-1.1.34-h9h6119y.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +0 -10
- package/dist/chunks/cli-1.1.34-he92bjvt.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +0 -2
- package/dist/chunks/cli-1.1.34-hrw37per.mjs +0 -8
- package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +0 -24
- package/dist/chunks/cli-1.1.34-hyya784q.mjs +0 -2
- package/dist/chunks/cli-1.1.34-j8ab267c.mjs +0 -2
- package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +0 -2
- package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +0 -4
- package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +0 -15
- package/dist/chunks/cli-1.1.34-k761g5m2.mjs +0 -2
- package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +0 -2
- package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +0 -6
- package/dist/chunks/cli-1.1.34-mhjjf878.mjs +0 -5
- package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +0 -42
- package/dist/chunks/cli-1.1.34-ncz9dava.mjs +0 -2
- package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +0 -25
- package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +0 -2
- package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +0 -4
- package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +0 -2
- package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +0 -2
- package/dist/chunks/cli-1.1.34-q83yydqv.mjs +0 -133
- package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +0 -2
- package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +0 -10
- package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-qs805z7n.mjs +0 -9
- package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +0 -2
- package/dist/chunks/cli-1.1.34-r222exkd.mjs +0 -2
- package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +0 -2
- package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +0 -45
- package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +0 -4
- package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +0 -2
- package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +0 -2
- package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +0 -21
- package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +0 -3
- package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +0 -3
- package/dist/chunks/cli-1.1.34-shm51n5s.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sq51za8b.mjs +0 -2
- package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-syx85e6f.mjs +0 -15
- package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +0 -2
- package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +0 -2
- package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +0 -2
- package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +0 -3
- package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +0 -50
- package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +0 -15
- package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +0 -2
- package/dist/chunks/cli-1.1.34-vz14r55x.mjs +0 -3
- package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +0 -2
- package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +0 -2
- package/dist/chunks/cli-1.1.34-webjc1s3.mjs +0 -2
- package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +0 -2
- package/dist/chunks/cli-1.1.34-wh74w227.mjs +0 -2
- package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +0 -24
- package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +0 -2
- package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +0 -203
- package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +0 -2
- package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +0 -2
- package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +0 -5
- package/dist/chunks/cli-1.1.34-xx555z7d.mjs +0 -25
- package/dist/chunks/cli-1.1.34-yfasvar9.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yk56k2na.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yqryw36t.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yqyrt954.mjs +0 -2
- package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +0 -16
- package/dist/chunks/cli-1.1.34-z14xw89f.mjs +0 -2
- package/dist/chunks/cli-1.1.34-z1htezxg.mjs +0 -2
- package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +0 -2
- package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +0 -2
- package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +0 -17
- package/dist/chunks/client-1.1.34-4exntck8.mjs +0 -1
- package/dist/chunks/color-1.1.34-d4199wch.mjs +0 -1
- package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +0 -2
- package/dist/chunks/config-1.1.34-acewhfv4.mjs +0 -1
- package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +0 -1
- package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +0 -1
- package/dist/chunks/context-1.1.34-wc822wp5.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +0 -1
- package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +0 -1
- package/dist/chunks/copy-1.1.34-efb24nm3.mjs +0 -9
- package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +0 -1
- package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +0 -1
- package/dist/chunks/debug-1.1.34-k568mcye.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +0 -1480
- package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +0 -1
- package/dist/chunks/detection-1.1.34-5xfznq79.mjs +0 -1
- package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +0 -1
- package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +0 -1
- package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +0 -13
- package/dist/chunks/engine-1.1.34-y28mg4na.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +0 -1
- package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +0 -1
- package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +0 -1
- package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +0 -1
- package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +0 -1
- package/dist/chunks/export-1.1.34-1hyv5efm.mjs +0 -2
- package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +0 -1
- package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +0 -16
- package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +0 -1
- package/dist/chunks/goal-1.1.34-m6dge19b.mjs +0 -4
- package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +0 -2
- package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +0 -6
- package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +0 -1
- package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +0 -1
- package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +0 -79
- package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +0 -1
- package/dist/chunks/import-1.1.34-4j35p307.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +0 -1
- package/dist/chunks/index-1.1.34-086aty1n.mjs +0 -1
- package/dist/chunks/index-1.1.34-0q46c1bj.mjs +0 -1
- package/dist/chunks/index-1.1.34-2j48ar1m.mjs +0 -1
- package/dist/chunks/index-1.1.34-427npr7a.mjs +0 -1
- package/dist/chunks/index-1.1.34-50d0rg8h.mjs +0 -5
- package/dist/chunks/index-1.1.34-50j6q6gr.mjs +0 -1
- package/dist/chunks/index-1.1.34-ehvgt047.mjs +0 -1
- package/dist/chunks/index-1.1.34-faq1af2v.mjs +0 -1
- package/dist/chunks/index-1.1.34-fvrswew9.mjs +0 -2
- package/dist/chunks/index-1.1.34-mx39dxjj.mjs +0 -30
- package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +0 -9
- package/dist/chunks/index-1.1.34-nye63dch.mjs +0 -1
- package/dist/chunks/index-1.1.34-qmmg0npy.mjs +0 -2
- package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +0 -1
- package/dist/chunks/index-1.1.34-snehdv50.mjs +0 -1
- package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +0 -1
- package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +0 -1
- package/dist/chunks/index-1.1.34-wz64a3d4.mjs +0 -9
- package/dist/chunks/index-1.1.34-x83gwj6g.mjs +0 -23
- package/dist/chunks/index-1.1.34-xa114b8t.mjs +0 -1
- package/dist/chunks/index-1.1.34-y10pcdv1.mjs +0 -1
- package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +0 -1
- package/dist/chunks/index-1.1.34-yxzywg42.mjs +0 -1
- package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +0 -1
- package/dist/chunks/ink-1.1.34-yb3z87en.mjs +0 -1
- package/dist/chunks/insights-1.1.34-a321wxgf.mjs +0 -870
- package/dist/chunks/install-1.1.34-064wyxwb.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +0 -1
- package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +0 -1
- package/dist/chunks/log-1.1.34-n41t6etn.mjs +0 -1
- package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +0 -1
- package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +0 -17
- package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +0 -4
- package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +0 -1
- package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +0 -1
- package/dist/chunks/memory-1.1.34-sys90hns.mjs +0 -128
- package/dist/chunks/model-1.1.34-v1r14fy7.mjs +0 -1
- package/dist/chunks/model-1.1.34-vks7w05g.mjs +0 -2
- package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +0 -1
- package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +0 -15
- package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +0 -14
- package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +0 -1
- package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +0 -1
- package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +0 -3
- package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +0 -1
- package/dist/chunks/plist-1.1.34-ykta36sg.mjs +0 -1
- package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +0 -1
- package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +0 -2
- package/dist/chunks/print-1.1.34-2gdkw86g.mjs +0 -57
- package/dist/chunks/process-1.1.34-fms89mxv.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +0 -9
- package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +0 -1
- package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +0 -1
- package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +0 -1
- package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +0 -26
- package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +0 -1
- package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +0 -2
- package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +0 -1
- package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +0 -1
- package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +0 -2
- package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +0 -1
- package/dist/chunks/session-1.1.34-h46ywygv.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +0 -1
- package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +0 -1
- package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +0 -12
- package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +0 -1
- package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +0 -1
- package/dist/chunks/state-1.1.34-pymefs1m.mjs +0 -1
- package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +0 -1
- package/dist/chunks/status-1.1.34-r120pa8k.mjs +0 -1
- package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +0 -1
- package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +0 -1
- package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +0 -1
- package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +0 -1
- package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +0 -1
- package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +0 -1
- package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +0 -69
- package/dist/chunks/types-1.1.34-0as4p0wf.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +0 -4
- package/dist/chunks/update-1.1.34-wnetpcv6.mjs +0 -72
- package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +0 -14
- package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +0 -1
- package/dist/chunks/util-1.1.34-7ctz504f.mjs +0 -1
- package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +0 -1
- package/dist/chunks/vim-1.1.34-4y4504z8.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +0 -13
- package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +0 -132
- package/dist/chunks/workflows-1.1.34-zefy425g.mjs +0 -1
- package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +0 -1
- package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +0 -7
- /package/dist/chunks/{cli-1.1.34-1426jsf4.mjs → cli-1.1.36-6kq395h8.mjs} +0 -0
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{Iqa as z}from"./cli-1.1.34-4x915j9t.mjs";var K$,U$,F$=(_)=>typeof _==="string"?{...U$,name:_}:{...U$,..._};var S_=z(()=>{K$=Symbol("Let zodToJsonSchema decide on which parser to use"),U$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"}});var O,f$,B,T=(_)=>{switch(typeof _){case"undefined":return B.undefined;case"string":return B.string;case"number":return Number.isNaN(_)?B.nan:B.number;case"boolean":return B.boolean;case"function":return B.function;case"bigint":return B.bigint;case"symbol":return B.symbol;case"object":if(Array.isArray(_))return B.array;if(_===null)return B.null;if(_.then&&typeof _.then==="function"&&_.catch&&typeof _.catch==="function")return B.promise;if(typeof Map<"u"&&_ instanceof Map)return B.map;if(typeof Set<"u"&&_ instanceof Set)return B.set;if(typeof Date<"u"&&_ instanceof Date)return B.date;return B.object;default:return B.unknown}};var __=z(()=>{(function(_){_.assertEqual=(W)=>{};function $(W){}_.assertIs=$;function q(W){throw Error()}_.assertNever=q,_.arrayToEnum=(W)=>{let X={};for(let H of W)X[H]=H;return X},_.getValidEnumValues=(W)=>{let X=_.objectKeys(W).filter((Y)=>typeof W[W[Y]]!=="number"),H={};for(let Y of X)H[Y]=W[Y];return _.objectValues(H)},_.objectValues=(W)=>{return _.objectKeys(W).map(function(X){return W[X]})},_.objectKeys=typeof Object.keys==="function"?(W)=>Object.keys(W):(W)=>{let X=[];for(let H in W)if(Object.prototype.hasOwnProperty.call(W,H))X.push(H);return X},_.find=(W,X)=>{for(let H of W)if(X(H))return H;return},_.isInteger=typeof Number.isInteger==="function"?(W)=>Number.isInteger(W):(W)=>typeof W==="number"&&Number.isFinite(W)&&Math.floor(W)===W;function J(W,X=" | "){return W.map((H)=>typeof H==="string"?`'${H}'`:H).join(X)}_.joinValues=J,_.jsonStringifyReplacer=(W,X)=>{if(typeof X==="bigint")return X.toString();return X}})(O||(O={}));(function(_){_.mergeShapes=($,q)=>{return{...$,...q}}})(f$||(f$={}));B=O.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"])});var G,f;var v_=z(()=>{__();G=O.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);f=class f extends Error{get errors(){return this.issues}constructor(_){super();this.issues=[],this.addIssue=(q)=>{this.issues=[...this.issues,q]},this.addIssues=(q=[])=>{this.issues=[...this.issues,...q]};let $=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,$);else this.__proto__=$;this.name="ZodError",this.issues=_}format(_){let $=_||function(W){return W.message},q={_errors:[]},J=(W)=>{for(let X of W.issues)if(X.code==="invalid_union")X.unionErrors.map(J);else if(X.code==="invalid_return_type")J(X.returnTypeError);else if(X.code==="invalid_arguments")J(X.argumentsError);else if(X.path.length===0)q._errors.push($(X));else{let H=q,Y=0;while(Y<X.path.length){let Q=X.path[Y],b=Y===X.path.length-1;if(Q==="_errors"){if(b)H._errors.push($(X));Y++;continue}if(!Object.prototype.hasOwnProperty.call(H,Q))if(Q==="__proto__")Object.defineProperty(H,Q,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0});else H[Q]={_errors:[]};if(H=H[Q],b)H._errors.push($(X));Y++}}};return J(this),q}static assert(_){if(!(_ instanceof f))throw Error(`Not a ZodError: ${_}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,O.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(_=($)=>$.message){let $=Object.create(null),q=[];for(let J of this.issues)if(J.path.length>0){let W=J.path[0];$[W]=$[W]||[],$[W].push(_(J))}else q.push(_(J));return{formErrors:q,fieldErrors:$}}get formErrors(){return this.flatten()}};f.create=(_)=>{return new f(_)}});var bq=(_,$)=>{let q;switch(_.code){case G.invalid_type:if(_.received===B.undefined)q="Required";else q=`Expected ${_.expected}, received ${_.received}`;break;case G.invalid_literal:q=`Invalid literal value, expected ${JSON.stringify(_.expected,O.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:q=`Unrecognized key(s) in object: ${O.joinValues(_.keys,", ")}`;break;case G.invalid_union:q="Invalid input";break;case G.invalid_union_discriminator:q=`Invalid discriminator value. Expected ${O.joinValues(_.options)}`;break;case G.invalid_enum_value:q=`Invalid enum value. Expected ${O.joinValues(_.options)}, received '${_.received}'`;break;case G.invalid_arguments:q="Invalid function arguments";break;case G.invalid_return_type:q="Invalid function return type";break;case G.invalid_date:q="Invalid date";break;case G.invalid_string:if(typeof _.validation==="object")if("includes"in _.validation){if(q=`Invalid input: must include "${_.validation.includes}"`,typeof _.validation.position==="number")q=`${q} at one or more positions greater than or equal to ${_.validation.position}`}else if("startsWith"in _.validation)q=`Invalid input: must start with "${_.validation.startsWith}"`;else if("endsWith"in _.validation)q=`Invalid input: must end with "${_.validation.endsWith}"`;else O.assertNever(_.validation);else if(_.validation!=="regex")q=`Invalid ${_.validation}`;else q="Invalid";break;case G.too_small:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at least":"more than"} ${_.minimum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at least":"over"} ${_.minimum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="bigint")q=`Number must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${_.minimum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly equal to ":_.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(_.minimum))}`;else q="Invalid input";break;case G.too_big:if(_.type==="array")q=`Array must contain ${_.exact?"exactly":_.inclusive?"at most":"less than"} ${_.maximum} element(s)`;else if(_.type==="string")q=`String must contain ${_.exact?"exactly":_.inclusive?"at most":"under"} ${_.maximum} character(s)`;else if(_.type==="number")q=`Number must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="bigint")q=`BigInt must be ${_.exact?"exactly":_.inclusive?"less than or equal to":"less than"} ${_.maximum}`;else if(_.type==="date")q=`Date must be ${_.exact?"exactly":_.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(_.maximum))}`;else q="Invalid input";break;case G.custom:q="Invalid input";break;case G.invalid_intersection_types:q="Intersection results could not be merged";break;case G.not_multiple_of:q=`Number must be a multiple of ${_.multipleOf}`;break;case G.not_finite:q="Number must be finite";break;default:q=$.defaultError,O.assertNever(_)}return{message:q}},Z;var x_=z(()=>{v_();__();Z=bq});function $_(){return zq}var zq;var A_=z(()=>{x_();zq=Z});function D(_,$){let q=$_(),J=j_({issueData:$,data:_.data,path:_.path,errorMaps:[_.common.contextualErrorMap,_.schemaErrorMap,q,q===Z?void 0:Z].filter((W)=>!!W)});_.common.issues.push(J)}class U{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(_,$){let q=[];for(let J of $){if(J.status==="aborted")return S;if(J.status==="dirty")_.dirty();q.push(J.value)}return{status:_.value,value:q}}static async mergeObjectAsync(_,$){let q=[];for(let J of $){let W=await J.key,X=await J.value;q.push({key:W,value:X})}return U.mergeObjectSync(_,q)}static mergeObjectSync(_,$){let q={};for(let J of $){let{key:W,value:X}=J;if(W.status==="aborted")return S;if(X.status==="aborted")return S;if(W.status==="dirty")_.dirty();if(X.status==="dirty")_.dirty();if(W.value!=="__proto__"&&(typeof X.value<"u"||J.alwaysSet))q[W.value]=X.value}return{status:_.value,value:q}}}var j_=(_)=>{let{data:$,path:q,errorMaps:J,issueData:W}=_,X=[...q,...W.path||[]],H={...W,path:X};if(W.message!==void 0)return{...W,path:X,message:W.message};let Y="",Q=J.filter((b)=>!!b).slice().reverse();for(let b of Q)Y=b(H,{data:$,defaultError:Y}).message;return{...W,path:X,message:Y}},S,o=(_)=>({status:"dirty",value:_}),K=(_)=>({status:"valid",value:_}),y_=(_)=>_.status==="aborted",n_=(_)=>_.status==="dirty",i=(_)=>_.status==="valid",q_=(_)=>typeof Promise<"u"&&_ instanceof Promise;var Z_=z(()=>{A_();x_();S=Object.freeze({status:"aborted"})});var C$=()=>{};var w;var k$=z(()=>{(function(_){_.errToObj=($)=>typeof $==="string"?{message:$}:$||{},_.toString=($)=>typeof $==="string"?$:$?.message})(w||(w={}))});class k{constructor(_,$,q,J){this._cachedPath=[],this.parent=_,this.data=$,this._path=q,this._key=J}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}function A(_){if(!_)return{};let{errorMap:$,invalid_type_error:q,required_error:J,description:W}=_;if($&&(q||J))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if($)return{errorMap:$,description:W};return{errorMap:(H,Y)=>{let{message:Q}=_;if(H.code==="invalid_enum_value")return{message:Q??Y.defaultError};if(typeof Y.data>"u")return{message:Q??J??Y.defaultError};if(H.code!=="invalid_type")return{message:Y.defaultError};return{message:Q??q??Y.defaultError}},description:W}}class j{get description(){return this._def.description}_getType(_){return T(_.data)}_getOrReturnCtx(_,$){return $||{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}_processInputParams(_){return{status:new U,ctx:{common:_.parent.common,data:_.data,parsedType:T(_.data),schemaErrorMap:this._def.errorMap,path:_.path,parent:_.parent}}}_parseSync(_){let $=this._parse(_);if(q_($))throw Error("Synchronous parse encountered promise.");return $}_parseAsync(_){let $=this._parse(_);return Promise.resolve($)}parse(_,$){let q=this.safeParse(_,$);if(q.success)return q.data;throw q.error}safeParse(_,$){let q={common:{issues:[],async:$?.async??!1,contextualErrorMap:$?.errorMap},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parseSync({data:_,path:q.path,parent:q});return g$(q,J)}"~validate"(_){let $={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)};if(!this["~standard"].async)try{let q=this._parseSync({data:_,path:[],parent:$});return i(q)?{value:q.value}:{issues:$.common.issues}}catch(q){if(q?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;$.common={issues:[],async:!0}}return this._parseAsync({data:_,path:[],parent:$}).then((q)=>i(q)?{value:q.value}:{issues:$.common.issues})}async parseAsync(_,$){let q=await this.safeParseAsync(_,$);if(q.success)return q.data;throw q.error}async safeParseAsync(_,$){let q={common:{issues:[],contextualErrorMap:$?.errorMap,async:!0},path:$?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:_,parsedType:T(_)},J=this._parse({data:_,path:q.path,parent:q}),W=await(q_(J)?J:Promise.resolve(J));return g$(q,W)}refine(_,$){let q=(J)=>{if(typeof $==="string"||typeof $>"u")return{message:$};else if(typeof $==="function")return $(J);else return $};return this._refinement((J,W)=>{let X=_(J),H=()=>W.addIssue({code:G.custom,...q(J)});if(typeof Promise<"u"&&X instanceof Promise)return X.then((Y)=>{if(!Y)return H(),!1;else return!0});if(!X)return H(),!1;else return!0})}refinement(_,$){return this._refinement((q,J)=>{if(!_(q))return J.addIssue(typeof $==="function"?$(q,J):$),!1;else return!0})}_refinement(_){return new l({schema:this,typeName:M.ZodEffects,effect:{type:"refinement",refinement:_}})}superRefine(_){return this._refinement(_)}constructor(_){this.spa=this.safeParseAsync,this._def=_,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:($)=>this["~validate"]($)}}optional(){return m.create(this,this._def)}nullable(){return u.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return P.create(this)}promise(){return e.create(this,this._def)}or(_){return Q_.create([this,_],this._def)}and(_){return Y_.create(this,_,this._def)}transform(_){return new l({...A(this._def),schema:this,typeName:M.ZodEffects,effect:{type:"transform",transform:_}})}default(_){let $=typeof _==="function"?_:()=>_;return new D_({...A(this._def),innerType:this,defaultValue:$,typeName:M.ZodDefault})}brand(){return new c_({typeName:M.ZodBranded,type:this,...A(this._def)})}catch(_){let $=typeof _==="function"?_:()=>_;return new w_({...A(this._def),innerType:this,catchValue:$,typeName:M.ZodCatch})}describe(_){return new this.constructor({...this._def,description:_})}pipe(_){return K_.create(this,_)}readonly(){return b_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}function P$(_){let $="[0-5]\\d";if(_.precision)$=`${$}\\.\\d{${_.precision}}`;else if(_.precision==null)$=`${$}(\\.\\d+)?`;let q=_.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${$})${q}`}function gq(_){return new RegExp(`^${P$(_)}$`)}function Iq(_){let $=`${I$}T${P$(_)}`,q=[];if(q.push(_.local?"Z?":"Z"),_.offset)q.push("([+-]\\d{2}:?\\d{2})");return $=`${$}(${q.join("|")})`,new RegExp(`^${$}$`)}function Pq(_,$){if(($==="v4"||!$)&&Lq.test(_))return!0;if(($==="v6"||!$)&&Kq.test(_))return!0;return!1}function mq(_,$){if(!Nq.test(_))return!1;try{let[q]=_.split(".");if(!q)return!1;let J=q.replace(/-/g,"+").replace(/_/g,"/").padEnd(q.length+(4-q.length%4)%4,"="),W=JSON.parse(atob(J));if(typeof W!=="object"||W===null)return!1;if("typ"in W&&W?.typ!=="JWT")return!1;if(!W.alg)return!1;if($&&W.alg!==$)return!1;return!0}catch{return!1}}function lq(_,$){if(($==="v4"||!$)&&Uq.test(_))return!0;if(($==="v6"||!$)&&Fq.test(_))return!0;return!1}function Tq(_,$){let q=(_.toString().split(".")[1]||"").length,J=($.toString().split(".")[1]||"").length,W=q>J?q:J,X=Number.parseInt(_.toFixed(W).replace(".","")),H=Number.parseInt($.toFixed(W).replace(".",""));return X%H/10**W}function d(_){if(_ instanceof V){let $={};for(let q in _.shape){let J=_.shape[q];$[q]=m.create(d(J))}return new V({..._._def,shape:()=>$})}else if(_ instanceof P)return new P({..._._def,type:d(_.element)});else if(_ instanceof m)return m.create(d(_.unwrap()));else if(_ instanceof u)return u.create(d(_.unwrap()));else if(_ instanceof n)return n.create(_.items.map(($)=>d($)));else return _}function p_(_,$){let q=T(_),J=T($);if(_===$)return{valid:!0,data:_};else if(q===B.object&&J===B.object){let W=O.objectKeys($),X=O.objectKeys(_).filter((Y)=>W.indexOf(Y)!==-1),H={..._,...$};if(Object.prototype.hasOwnProperty.call(H,"__proto__"))delete H.__proto__;for(let Y of X){if(Y==="__proto__")continue;let Q=p_(_[Y],$[Y]);if(!Q.valid)return{valid:!1};H[Y]=Q.data}return{valid:!0,data:H}}else if(q===B.array&&J===B.array){if(_.length!==$.length)return{valid:!1};let W=[];for(let X=0;X<_.length;X++){let H=_[X],Y=$[X],Q=p_(H,Y);if(!Q.valid)return{valid:!1};W.push(Q.data)}return{valid:!0,data:W}}else if(q===B.date&&J===B.date&&+_===+$)return{valid:!0,data:_};else return{valid:!1}}function m$(_,$){return new r({values:_,typeName:M.ZodEnum,...A($)})}var g$=(_,$)=>{if(i($))return{success:!0,data:$.value};else{if(!_.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let q=new f(_.common.issues);return this._error=q,this._error}}}},Sq,vq,Aq,jq,Oq,Nq,Eq,Vq,Rq="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",u_,Lq,Uq,Kq,Fq,fq,Cq,I$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",kq,x,t,a,O_,W_,N_,X_,H_,E_,c,y,V_,P,V,Q_,h=(_)=>{if(_ instanceof G_)return h(_.schema);else if(_ instanceof l)return h(_.innerType());else if(_ instanceof M_)return[_.value];else if(_ instanceof r)return _.options;else if(_ instanceof B_)return O.objectValues(_.enum);else if(_ instanceof D_)return h(_._def.innerType);else if(_ instanceof X_)return[void 0];else if(_ instanceof H_)return[null];else if(_ instanceof m)return[void 0,...h(_.unwrap())];else if(_ instanceof u)return[null,...h(_.unwrap())];else if(_ instanceof c_)return h(_.unwrap());else if(_ instanceof b_)return h(_.unwrap());else if(_ instanceof w_)return h(_._def.innerType);else return[]},i_,Y_,n,R_,L_,s,J_,G_,M_,r,B_,e,l,m,u,D_,w_,U_,D3,c_,K_,b_,w3,M,b3,z3,S3,v3,A3,j3,O3,N3,E3,V3,R3,L3,U3,K3,F3,f3,C3,k3,g3,I3,P3,m3,l3,T3,h3,x3,y3,n3,Z3,u3,p3,i3,c3,r3;var l$=z(()=>{v_();A_();k$();Z_();__();Sq=/^c[^\s-]{8,}$/i,vq=/^[0-9a-z]+$/,Aq=/^[0-9A-HJKMNP-TV-Z]{26}$/i,jq=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Oq=/^[a-z0-9_-]{21}$/i,Nq=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Eq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Vq=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Lq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Uq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Kq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fq=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,fq=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Cq=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,kq=new RegExp(`^${I$}$`);x=class x extends j{_parse(_){if(this._def.coerce)_.data=String(_.data);if(this._getType(_)!==B.string){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.string,received:W.parsedType}),S}let q=new U,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.length<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="max"){if(_.data.length>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!1,message:W.message}),q.dirty()}else if(W.kind==="length"){let X=_.data.length>W.value,H=_.data.length<W.value;if(X||H){if(J=this._getOrReturnCtx(_,J),X)D(J,{code:G.too_big,maximum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});else if(H)D(J,{code:G.too_small,minimum:W.value,type:"string",inclusive:!0,exact:!0,message:W.message});q.dirty()}}else if(W.kind==="email"){if(!Vq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"email",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="emoji"){if(!u_)u_=new RegExp(Rq,"u");if(!u_.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"emoji",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="uuid"){if(!jq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"uuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="nanoid"){if(!Oq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"nanoid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid"){if(!Sq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cuid2"){if(!vq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"cuid2",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ulid"){if(!Aq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"ulid",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="url")try{new URL(_.data)}catch{J=this._getOrReturnCtx(_,J),D(J,{validation:"url",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="regex"){if(W.regex.lastIndex=0,!W.regex.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"regex",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="trim")_.data=_.data.trim();else if(W.kind==="includes"){if(!_.data.includes(W.value,W.position))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{includes:W.value,position:W.position},message:W.message}),q.dirty()}else if(W.kind==="toLowerCase")_.data=_.data.toLowerCase();else if(W.kind==="toUpperCase")_.data=_.data.toUpperCase();else if(W.kind==="startsWith"){if(!_.data.startsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{startsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="endsWith"){if(!_.data.endsWith(W.value))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:{endsWith:W.value},message:W.message}),q.dirty()}else if(W.kind==="datetime"){if(!Iq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"datetime",message:W.message}),q.dirty()}else if(W.kind==="date"){if(!kq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"date",message:W.message}),q.dirty()}else if(W.kind==="time"){if(!gq(W).test(_.data))J=this._getOrReturnCtx(_,J),D(J,{code:G.invalid_string,validation:"time",message:W.message}),q.dirty()}else if(W.kind==="duration"){if(!Eq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"duration",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="ip"){if(!Pq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"ip",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="jwt"){if(!mq(_.data,W.alg))J=this._getOrReturnCtx(_,J),D(J,{validation:"jwt",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="cidr"){if(!lq(_.data,W.version))J=this._getOrReturnCtx(_,J),D(J,{validation:"cidr",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64"){if(!fq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64",code:G.invalid_string,message:W.message}),q.dirty()}else if(W.kind==="base64url"){if(!Cq.test(_.data))J=this._getOrReturnCtx(_,J),D(J,{validation:"base64url",code:G.invalid_string,message:W.message}),q.dirty()}else O.assertNever(W);return{status:q.value,value:_.data}}_regex(_,$,q){return this.refinement((J)=>_.test(J),{validation:$,code:G.invalid_string,...w.errToObj(q)})}_addCheck(_){return new x({...this._def,checks:[...this._def.checks,_]})}email(_){return this._addCheck({kind:"email",...w.errToObj(_)})}url(_){return this._addCheck({kind:"url",...w.errToObj(_)})}emoji(_){return this._addCheck({kind:"emoji",...w.errToObj(_)})}uuid(_){return this._addCheck({kind:"uuid",...w.errToObj(_)})}nanoid(_){return this._addCheck({kind:"nanoid",...w.errToObj(_)})}cuid(_){return this._addCheck({kind:"cuid",...w.errToObj(_)})}cuid2(_){return this._addCheck({kind:"cuid2",...w.errToObj(_)})}ulid(_){return this._addCheck({kind:"ulid",...w.errToObj(_)})}base64(_){return this._addCheck({kind:"base64",...w.errToObj(_)})}base64url(_){return this._addCheck({kind:"base64url",...w.errToObj(_)})}jwt(_){return this._addCheck({kind:"jwt",...w.errToObj(_)})}ip(_){return this._addCheck({kind:"ip",...w.errToObj(_)})}cidr(_){return this._addCheck({kind:"cidr",...w.errToObj(_)})}datetime(_){if(typeof _==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:_});return this._addCheck({kind:"datetime",precision:typeof _?.precision>"u"?null:_?.precision,offset:_?.offset??!1,local:_?.local??!1,...w.errToObj(_?.message)})}date(_){return this._addCheck({kind:"date",message:_})}time(_){if(typeof _==="string")return this._addCheck({kind:"time",precision:null,message:_});return this._addCheck({kind:"time",precision:typeof _?.precision>"u"?null:_?.precision,...w.errToObj(_?.message)})}duration(_){return this._addCheck({kind:"duration",...w.errToObj(_)})}regex(_,$){return this._addCheck({kind:"regex",regex:_,...w.errToObj($)})}includes(_,$){return this._addCheck({kind:"includes",value:_,position:$?.position,...w.errToObj($?.message)})}startsWith(_,$){return this._addCheck({kind:"startsWith",value:_,...w.errToObj($)})}endsWith(_,$){return this._addCheck({kind:"endsWith",value:_,...w.errToObj($)})}min(_,$){return this._addCheck({kind:"min",value:_,...w.errToObj($)})}max(_,$){return this._addCheck({kind:"max",value:_,...w.errToObj($)})}length(_,$){return this._addCheck({kind:"length",value:_,...w.errToObj($)})}nonempty(_){return this.min(1,w.errToObj(_))}trim(){return new x({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new x({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new x({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((_)=>_.kind==="datetime")}get isDate(){return!!this._def.checks.find((_)=>_.kind==="date")}get isTime(){return!!this._def.checks.find((_)=>_.kind==="time")}get isDuration(){return!!this._def.checks.find((_)=>_.kind==="duration")}get isEmail(){return!!this._def.checks.find((_)=>_.kind==="email")}get isURL(){return!!this._def.checks.find((_)=>_.kind==="url")}get isEmoji(){return!!this._def.checks.find((_)=>_.kind==="emoji")}get isUUID(){return!!this._def.checks.find((_)=>_.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((_)=>_.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((_)=>_.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((_)=>_.kind==="cuid2")}get isULID(){return!!this._def.checks.find((_)=>_.kind==="ulid")}get isIP(){return!!this._def.checks.find((_)=>_.kind==="ip")}get isCIDR(){return!!this._def.checks.find((_)=>_.kind==="cidr")}get isBase64(){return!!this._def.checks.find((_)=>_.kind==="base64")}get isBase64url(){return!!this._def.checks.find((_)=>_.kind==="base64url")}get minLength(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxLength(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};x.create=(_)=>{return new x({checks:[],typeName:M.ZodString,coerce:_?.coerce??!1,...A(_)})};t=class t extends j{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(_){if(this._def.coerce)_.data=Number(_.data);if(this._getType(_)!==B.number){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.number,received:W.parsedType}),S}let q=void 0,J=new U;for(let W of this._def.checks)if(W.kind==="int"){if(!O.isInteger(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.invalid_type,expected:"integer",received:"float",message:W.message}),J.dirty()}else if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,minimum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,maximum:W.value,type:"number",inclusive:W.inclusive,exact:!1,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(Tq(_.data,W.value)!==0)q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else if(W.kind==="finite"){if(!Number.isFinite(_.data))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_finite,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new t({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new t({...this._def,checks:[...this._def.checks,_]})}int(_){return this._addCheck({kind:"int",message:w.toString(_)})}positive(_){return this._addCheck({kind:"min",value:0,inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:0,inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:0,inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:0,inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}finite(_){return this._addCheck({kind:"finite",message:w.toString(_)})}safe(_){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:w.toString(_)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:w.toString(_)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}get isInt(){return!!this._def.checks.find((_)=>_.kind==="int"||_.kind==="multipleOf"&&O.isInteger(_.value))}get isFinite(){let _=null,$=null;for(let q of this._def.checks)if(q.kind==="finite"||q.kind==="int"||q.kind==="multipleOf")return!0;else if(q.kind==="min"){if($===null||q.value>$)$=q.value}else if(q.kind==="max"){if(_===null||q.value<_)_=q.value}return Number.isFinite($)&&Number.isFinite(_)}};t.create=(_)=>{return new t({checks:[],typeName:M.ZodNumber,coerce:_?.coerce||!1,...A(_)})};a=class a extends j{constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(_){if(this._def.coerce)try{_.data=BigInt(_.data)}catch{return this._getInvalidInput(_)}if(this._getType(_)!==B.bigint)return this._getInvalidInput(_);let q=void 0,J=new U;for(let W of this._def.checks)if(W.kind==="min"){if(W.inclusive?_.data<W.value:_.data<=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_small,type:"bigint",minimum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="max"){if(W.inclusive?_.data>W.value:_.data>=W.value)q=this._getOrReturnCtx(_,q),D(q,{code:G.too_big,type:"bigint",maximum:W.value,inclusive:W.inclusive,message:W.message}),J.dirty()}else if(W.kind==="multipleOf"){if(_.data%W.value!==BigInt(0))q=this._getOrReturnCtx(_,q),D(q,{code:G.not_multiple_of,multipleOf:W.value,message:W.message}),J.dirty()}else O.assertNever(W);return{status:J.value,value:_.data}}_getInvalidInput(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.bigint,received:$.parsedType}),S}gte(_,$){return this.setLimit("min",_,!0,w.toString($))}gt(_,$){return this.setLimit("min",_,!1,w.toString($))}lte(_,$){return this.setLimit("max",_,!0,w.toString($))}lt(_,$){return this.setLimit("max",_,!1,w.toString($))}setLimit(_,$,q,J){return new a({...this._def,checks:[...this._def.checks,{kind:_,value:$,inclusive:q,message:w.toString(J)}]})}_addCheck(_){return new a({...this._def,checks:[...this._def.checks,_]})}positive(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:w.toString(_)})}negative(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:w.toString(_)})}nonpositive(_){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:w.toString(_)})}nonnegative(_){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:w.toString(_)})}multipleOf(_,$){return this._addCheck({kind:"multipleOf",value:_,message:w.toString($)})}get minValue(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _}get maxValue(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _}};a.create=(_)=>{return new a({checks:[],typeName:M.ZodBigInt,coerce:_?.coerce??!1,...A(_)})};O_=class O_ extends j{_parse(_){if(this._def.coerce)_.data=Boolean(_.data);if(this._getType(_)!==B.boolean){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.boolean,received:q.parsedType}),S}return K(_.data)}};O_.create=(_)=>{return new O_({typeName:M.ZodBoolean,coerce:_?.coerce||!1,...A(_)})};W_=class W_ extends j{_parse(_){if(this._def.coerce)_.data=new Date(_.data);if(this._getType(_)!==B.date){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_type,expected:B.date,received:W.parsedType}),S}if(Number.isNaN(_.data.getTime())){let W=this._getOrReturnCtx(_);return D(W,{code:G.invalid_date}),S}let q=new U,J=void 0;for(let W of this._def.checks)if(W.kind==="min"){if(_.data.getTime()<W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_small,message:W.message,inclusive:!0,exact:!1,minimum:W.value,type:"date"}),q.dirty()}else if(W.kind==="max"){if(_.data.getTime()>W.value)J=this._getOrReturnCtx(_,J),D(J,{code:G.too_big,message:W.message,inclusive:!0,exact:!1,maximum:W.value,type:"date"}),q.dirty()}else O.assertNever(W);return{status:q.value,value:new Date(_.data.getTime())}}_addCheck(_){return new W_({...this._def,checks:[...this._def.checks,_]})}min(_,$){return this._addCheck({kind:"min",value:_.getTime(),message:w.toString($)})}max(_,$){return this._addCheck({kind:"max",value:_.getTime(),message:w.toString($)})}get minDate(){let _=null;for(let $ of this._def.checks)if($.kind==="min"){if(_===null||$.value>_)_=$.value}return _!=null?new Date(_):null}get maxDate(){let _=null;for(let $ of this._def.checks)if($.kind==="max"){if(_===null||$.value<_)_=$.value}return _!=null?new Date(_):null}};W_.create=(_)=>{return new W_({checks:[],coerce:_?.coerce||!1,typeName:M.ZodDate,...A(_)})};N_=class N_ extends j{_parse(_){if(this._getType(_)!==B.symbol){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.symbol,received:q.parsedType}),S}return K(_.data)}};N_.create=(_)=>{return new N_({typeName:M.ZodSymbol,...A(_)})};X_=class X_ extends j{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.undefined,received:q.parsedType}),S}return K(_.data)}};X_.create=(_)=>{return new X_({typeName:M.ZodUndefined,...A(_)})};H_=class H_ extends j{_parse(_){if(this._getType(_)!==B.null){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.null,received:q.parsedType}),S}return K(_.data)}};H_.create=(_)=>{return new H_({typeName:M.ZodNull,...A(_)})};E_=class E_ extends j{constructor(){super(...arguments);this._any=!0}_parse(_){return K(_.data)}};E_.create=(_)=>{return new E_({typeName:M.ZodAny,...A(_)})};c=class c extends j{constructor(){super(...arguments);this._unknown=!0}_parse(_){return K(_.data)}};c.create=(_)=>{return new c({typeName:M.ZodUnknown,...A(_)})};y=class y extends j{_parse(_){let $=this._getOrReturnCtx(_);return D($,{code:G.invalid_type,expected:B.never,received:$.parsedType}),S}};y.create=(_)=>{return new y({typeName:M.ZodNever,...A(_)})};V_=class V_ extends j{_parse(_){if(this._getType(_)!==B.undefined){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.void,received:q.parsedType}),S}return K(_.data)}};V_.create=(_)=>{return new V_({typeName:M.ZodVoid,...A(_)})};P=class P extends j{_parse(_){let{ctx:$,status:q}=this._processInputParams(_),J=this._def;if($.parsedType!==B.array)return D($,{code:G.invalid_type,expected:B.array,received:$.parsedType}),S;if(J.exactLength!==null){let X=$.data.length>J.exactLength.value,H=$.data.length<J.exactLength.value;if(X||H)D($,{code:X?G.too_big:G.too_small,minimum:H?J.exactLength.value:void 0,maximum:X?J.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:J.exactLength.message}),q.dirty()}if(J.minLength!==null){if($.data.length<J.minLength.value)D($,{code:G.too_small,minimum:J.minLength.value,type:"array",inclusive:!0,exact:!1,message:J.minLength.message}),q.dirty()}if(J.maxLength!==null){if($.data.length>J.maxLength.value)D($,{code:G.too_big,maximum:J.maxLength.value,type:"array",inclusive:!0,exact:!1,message:J.maxLength.message}),q.dirty()}if($.common.async)return Promise.all([...$.data].map((X,H)=>{return J.type._parseAsync(new k($,X,$.path,H))})).then((X)=>{return U.mergeArray(q,X)});let W=[...$.data].map((X,H)=>{return J.type._parseSync(new k($,X,$.path,H))});return U.mergeArray(q,W)}get element(){return this._def.type}min(_,$){return new P({...this._def,minLength:{value:_,message:w.toString($)}})}max(_,$){return new P({...this._def,maxLength:{value:_,message:w.toString($)}})}length(_,$){return new P({...this._def,exactLength:{value:_,message:w.toString($)}})}nonempty(_){return this.min(1,_)}};P.create=(_,$)=>{return new P({type:_,minLength:null,maxLength:null,exactLength:null,typeName:M.ZodArray,...A($)})};V=class V extends j{constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let _=this._def.shape(),$=O.objectKeys(_);return this._cached={shape:_,keys:$},this._cached}_parse(_){if(this._getType(_)!==B.object){let Q=this._getOrReturnCtx(_);return D(Q,{code:G.invalid_type,expected:B.object,received:Q.parsedType}),S}let{status:q,ctx:J}=this._processInputParams(_),{shape:W,keys:X}=this._getCached(),H=[];if(!(this._def.catchall instanceof y&&this._def.unknownKeys==="strip")){for(let Q in J.data)if(!X.includes(Q))H.push(Q)}let Y=[];for(let Q of X){let b=W[Q],L=J.data[Q];Y.push({key:{status:"valid",value:Q},value:b._parse(new k(J,L,J.path,Q)),alwaysSet:Q in J.data})}if(this._def.catchall instanceof y){let Q=this._def.unknownKeys;if(Q==="passthrough")for(let b of H)Y.push({key:{status:"valid",value:b},value:{status:"valid",value:J.data[b]}});else if(Q==="strict"){if(H.length>0)D(J,{code:G.unrecognized_keys,keys:H}),q.dirty()}else if(Q==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let Q=this._def.catchall;for(let b of H){let L=J.data[b];Y.push({key:{status:"valid",value:b},value:Q._parse(new k(J,L,J.path,b)),alwaysSet:b in J.data})}}if(J.common.async)return Promise.resolve().then(async()=>{let Q=[];for(let b of Y){let L=await b.key,L$=await b.value;Q.push({key:L,value:L$,alwaysSet:b.alwaysSet})}return Q}).then((Q)=>{return U.mergeObjectSync(q,Q)});else return U.mergeObjectSync(q,Y)}get shape(){return this._def.shape()}strict(_){return w.errToObj,new V({...this._def,unknownKeys:"strict",..._!==void 0?{errorMap:($,q)=>{let J=this._def.errorMap?.($,q).message??q.defaultError;if($.code==="unrecognized_keys")return{message:w.errToObj(_).message??J};return{message:J}}}:{}})}strip(){return new V({...this._def,unknownKeys:"strip"})}passthrough(){return new V({...this._def,unknownKeys:"passthrough"})}extend(_){return new V({...this._def,shape:()=>({...this._def.shape(),..._})})}merge(_){return new V({unknownKeys:_._def.unknownKeys,catchall:_._def.catchall,shape:()=>({...this._def.shape(),..._._def.shape()}),typeName:M.ZodObject})}setKey(_,$){return this.augment({[_]:$})}catchall(_){return new V({...this._def,catchall:_})}pick(_){let $={};for(let q of O.objectKeys(_))if(_[q]&&this.shape[q])$[q]=this.shape[q];return new V({...this._def,shape:()=>$})}omit(_){let $={};for(let q of O.objectKeys(this.shape))if(!_[q])$[q]=this.shape[q];return new V({...this._def,shape:()=>$})}deepPartial(){return d(this)}partial(_){let $={};for(let q of O.objectKeys(this.shape)){let J=this.shape[q];if(_&&!_[q])$[q]=J;else $[q]=J.optional()}return new V({...this._def,shape:()=>$})}required(_){let $={};for(let q of O.objectKeys(this.shape))if(_&&!_[q])$[q]=this.shape[q];else{let W=this.shape[q];while(W instanceof m)W=W._def.innerType;$[q]=W}return new V({...this._def,shape:()=>$})}keyof(){return m$(O.objectKeys(this.shape))}};V.create=(_,$)=>{return new V({shape:()=>_,unknownKeys:"strip",catchall:y.create(),typeName:M.ZodObject,...A($)})};V.strictCreate=(_,$)=>{return new V({shape:()=>_,unknownKeys:"strict",catchall:y.create(),typeName:M.ZodObject,...A($)})};V.lazycreate=(_,$)=>{return new V({shape:_,unknownKeys:"strip",catchall:y.create(),typeName:M.ZodObject,...A($)})};Q_=class Q_ extends j{_parse(_){let{ctx:$}=this._processInputParams(_),q=this._def.options;function J(W){for(let H of W)if(H.result.status==="valid")return H.result;for(let H of W)if(H.result.status==="dirty")return $.common.issues.push(...H.ctx.common.issues),H.result;let X=W.map((H)=>new f(H.ctx.common.issues));return D($,{code:G.invalid_union,unionErrors:X}),S}if($.common.async)return Promise.all(q.map(async(W)=>{let X={...$,common:{...$.common,issues:[]},parent:null};return{result:await W._parseAsync({data:$.data,path:$.path,parent:X}),ctx:X}})).then(J);else{let W=void 0,X=[];for(let Y of q){let Q={...$,common:{...$.common,issues:[]},parent:null},b=Y._parseSync({data:$.data,path:$.path,parent:Q});if(b.status==="valid")return b;else if(b.status==="dirty"&&!W)W={result:b,ctx:Q};if(Q.common.issues.length)X.push(Q.common.issues)}if(W)return $.common.issues.push(...W.ctx.common.issues),W.result;let H=X.map((Y)=>new f(Y));return D($,{code:G.invalid_union,unionErrors:H}),S}}get options(){return this._def.options}};Q_.create=(_,$)=>{return new Q_({options:_,typeName:M.ZodUnion,...A($)})};i_=class i_ extends j{_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.object)return D($,{code:G.invalid_type,expected:B.object,received:$.parsedType}),S;let q=this.discriminator,J=$.data[q],W=this.optionsMap.get(J);if(!W)return D($,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[q]}),S;if($.common.async)return W._parseAsync({data:$.data,path:$.path,parent:$});else return W._parseSync({data:$.data,path:$.path,parent:$})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(_,$,q){let J=new Map;for(let W of $){let X=h(W.shape[_]);if(!X.length)throw Error(`A discriminator value for key \`${_}\` could not be extracted from all schema options`);for(let H of X){if(J.has(H))throw Error(`Discriminator property ${String(_)} has duplicate value ${String(H)}`);J.set(H,W)}}return new i_({typeName:M.ZodDiscriminatedUnion,discriminator:_,options:$,optionsMap:J,...A(q)})}};Y_=class Y_ extends j{_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=(W,X)=>{if(y_(W)||y_(X))return S;let H=p_(W.value,X.value);if(!H.valid)return D(q,{code:G.invalid_intersection_types}),S;if(n_(W)||n_(X))$.dirty();return{status:$.value,value:H.data}};if(q.common.async)return Promise.all([this._def.left._parseAsync({data:q.data,path:q.path,parent:q}),this._def.right._parseAsync({data:q.data,path:q.path,parent:q})]).then(([W,X])=>J(W,X));else return J(this._def.left._parseSync({data:q.data,path:q.path,parent:q}),this._def.right._parseSync({data:q.data,path:q.path,parent:q}))}};Y_.create=(_,$,q)=>{return new Y_({left:_,right:$,typeName:M.ZodIntersection,...A(q)})};n=class n extends j{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.array)return D(q,{code:G.invalid_type,expected:B.array,received:q.parsedType}),S;if(q.data.length<this._def.items.length)return D(q,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),S;if(!this._def.rest&&q.data.length>this._def.items.length)D(q,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),$.dirty();let W=[...q.data].map((X,H)=>{let Y=this._def.items[H]||this._def.rest;if(!Y)return null;return Y._parse(new k(q,X,q.path,H))}).filter((X)=>!!X);if(q.common.async)return Promise.all(W).then((X)=>{return U.mergeArray($,X)});else return U.mergeArray($,W)}get items(){return this._def.items}rest(_){return new n({...this._def,rest:_})}};n.create=(_,$)=>{if(!Array.isArray(_))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new n({items:_,typeName:M.ZodTuple,rest:null,...A($)})};R_=class R_ extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.object)return D(q,{code:G.invalid_type,expected:B.object,received:q.parsedType}),S;let J=[],W=this._def.keyType,X=this._def.valueType;for(let H in q.data)J.push({key:W._parse(new k(q,H,q.path,H)),value:X._parse(new k(q,q.data[H],q.path,H)),alwaysSet:H in q.data});if(q.common.async)return U.mergeObjectAsync($,J);else return U.mergeObjectSync($,J)}get element(){return this._def.valueType}static create(_,$,q){if($ instanceof j)return new R_({keyType:_,valueType:$,typeName:M.ZodRecord,...A(q)});return new R_({keyType:x.create(),valueType:_,typeName:M.ZodRecord,...A($)})}};L_=class L_ extends j{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.map)return D(q,{code:G.invalid_type,expected:B.map,received:q.parsedType}),S;let J=this._def.keyType,W=this._def.valueType,X=[...q.data.entries()].map(([H,Y],Q)=>{return{key:J._parse(new k(q,H,q.path,[Q,"key"])),value:W._parse(new k(q,Y,q.path,[Q,"value"]))}});if(q.common.async){let H=new Map;return Promise.resolve().then(async()=>{for(let Y of X){let Q=await Y.key,b=await Y.value;if(Q.status==="aborted"||b.status==="aborted")return S;if(Q.status==="dirty"||b.status==="dirty")$.dirty();H.set(Q.value,b.value)}return{status:$.value,value:H}})}else{let H=new Map;for(let Y of X){let{key:Q,value:b}=Y;if(Q.status==="aborted"||b.status==="aborted")return S;if(Q.status==="dirty"||b.status==="dirty")$.dirty();H.set(Q.value,b.value)}return{status:$.value,value:H}}}};L_.create=(_,$,q)=>{return new L_({valueType:$,keyType:_,typeName:M.ZodMap,...A(q)})};s=class s extends j{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.parsedType!==B.set)return D(q,{code:G.invalid_type,expected:B.set,received:q.parsedType}),S;let J=this._def;if(J.minSize!==null){if(q.data.size<J.minSize.value)D(q,{code:G.too_small,minimum:J.minSize.value,type:"set",inclusive:!0,exact:!1,message:J.minSize.message}),$.dirty()}if(J.maxSize!==null){if(q.data.size>J.maxSize.value)D(q,{code:G.too_big,maximum:J.maxSize.value,type:"set",inclusive:!0,exact:!1,message:J.maxSize.message}),$.dirty()}let W=this._def.valueType;function X(Y){let Q=new Set;for(let b of Y){if(b.status==="aborted")return S;if(b.status==="dirty")$.dirty();Q.add(b.value)}return{status:$.value,value:Q}}let H=[...q.data.values()].map((Y,Q)=>W._parse(new k(q,Y,q.path,Q)));if(q.common.async)return Promise.all(H).then((Y)=>X(Y));else return X(H)}min(_,$){return new s({...this._def,minSize:{value:_,message:w.toString($)}})}max(_,$){return new s({...this._def,maxSize:{value:_,message:w.toString($)}})}size(_,$){return this.min(_,$).max(_,$)}nonempty(_){return this.min(1,_)}};s.create=(_,$)=>{return new s({valueType:_,minSize:null,maxSize:null,typeName:M.ZodSet,...A($)})};J_=class J_ extends j{constructor(){super(...arguments);this.validate=this.implement}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.function)return D($,{code:G.invalid_type,expected:B.function,received:$.parsedType}),S;function q(H,Y){return j_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_arguments,argumentsError:Y}})}function J(H,Y){return j_({data:H,path:$.path,errorMaps:[$.common.contextualErrorMap,$.schemaErrorMap,$_(),Z].filter((Q)=>!!Q),issueData:{code:G.invalid_return_type,returnTypeError:Y}})}let W={errorMap:$.common.contextualErrorMap},X=$.data;if(this._def.returns instanceof e){let H=this;return K(async function(...Y){let Q=new f([]),b=await H._def.args.parseAsync(Y,W).catch((h_)=>{throw Q.addIssue(q(Y,h_)),Q}),L=await Reflect.apply(X,this,b);return await H._def.returns._def.type.parseAsync(L,W).catch((h_)=>{throw Q.addIssue(J(L,h_)),Q})})}else{let H=this;return K(function(...Y){let Q=H._def.args.safeParse(Y,W);if(!Q.success)throw new f([q(Y,Q.error)]);let b=Reflect.apply(X,this,Q.data),L=H._def.returns.safeParse(b,W);if(!L.success)throw new f([J(b,L.error)]);return L.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(..._){return new J_({...this._def,args:n.create(_).rest(c.create())})}returns(_){return new J_({...this._def,returns:_})}implement(_){return this.parse(_)}strictImplement(_){return this.parse(_)}static create(_,$,q){return new J_({args:_?_:n.create([]).rest(c.create()),returns:$||c.create(),typeName:M.ZodFunction,...A(q)})}};G_=class G_ extends j{get schema(){return this._def.getter()}_parse(_){let{ctx:$}=this._processInputParams(_);return this._def.getter()._parse({data:$.data,path:$.path,parent:$})}};G_.create=(_,$)=>{return new G_({getter:_,typeName:M.ZodLazy,...A($)})};M_=class M_ extends j{_parse(_){if(_.data!==this._def.value){let $=this._getOrReturnCtx(_);return D($,{received:$.data,code:G.invalid_literal,expected:this._def.value}),S}return{status:"valid",value:_.data}}get value(){return this._def.value}};M_.create=(_,$)=>{return new M_({value:_,typeName:M.ZodLiteral,...A($)})};r=class r extends j{_parse(_){if(typeof _.data!=="string"){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{expected:O.joinValues(q),received:$.parsedType,code:G.invalid_type}),S}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(_.data)){let $=this._getOrReturnCtx(_),q=this._def.values;return D($,{received:$.data,code:G.invalid_enum_value,options:q}),S}return K(_.data)}get options(){return this._def.values}get enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Values(){let _={};for(let $ of this._def.values)_[$]=$;return _}get Enum(){let _={};for(let $ of this._def.values)_[$]=$;return _}extract(_,$=this._def){return r.create(_,{...this._def,...$})}exclude(_,$=this._def){return r.create(this.options.filter((q)=>!_.includes(q)),{...this._def,...$})}};r.create=m$;B_=class B_ extends j{_parse(_){let $=O.getValidEnumValues(this._def.values),q=this._getOrReturnCtx(_);if(q.parsedType!==B.string&&q.parsedType!==B.number){let J=O.objectValues($);return D(q,{expected:O.joinValues(J),received:q.parsedType,code:G.invalid_type}),S}if(!this._cache)this._cache=new Set(O.getValidEnumValues(this._def.values));if(!this._cache.has(_.data)){let J=O.objectValues($);return D(q,{received:q.data,code:G.invalid_enum_value,options:J}),S}return K(_.data)}get enum(){return this._def.values}};B_.create=(_,$)=>{return new B_({values:_,typeName:M.ZodNativeEnum,...A($)})};e=class e extends j{unwrap(){return this._def.type}_parse(_){let{ctx:$}=this._processInputParams(_);if($.parsedType!==B.promise&&$.common.async===!1)return D($,{code:G.invalid_type,expected:B.promise,received:$.parsedType}),S;let q=$.parsedType===B.promise?$.data:Promise.resolve($.data);return K(q.then((J)=>{return this._def.type.parseAsync(J,{path:$.path,errorMap:$.common.contextualErrorMap})}))}};e.create=(_,$)=>{return new e({type:_,typeName:M.ZodPromise,...A($)})};l=class l extends j{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===M.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(_){let{status:$,ctx:q}=this._processInputParams(_),J=this._def.effect||null,W={addIssue:(X)=>{if(D(q,X),X.fatal)$.abort();else $.dirty()},get path(){return q.path}};if(W.addIssue=W.addIssue.bind(W),J.type==="preprocess"){let X=J.transform(q.data,W);if(q.common.async)return Promise.resolve(X).then(async(H)=>{if($.value==="aborted")return S;let Y=await this._def.schema._parseAsync({data:H,path:q.path,parent:q});if(Y.status==="aborted")return S;if(Y.status==="dirty")return o(Y.value);if($.value==="dirty")return o(Y.value);return Y});else{if($.value==="aborted")return S;let H=this._def.schema._parseSync({data:X,path:q.path,parent:q});if(H.status==="aborted")return S;if(H.status==="dirty")return o(H.value);if($.value==="dirty")return o(H.value);return H}}if(J.type==="refinement"){let X=(H)=>{let Y=J.refinement(H,W);if(q.common.async)return Promise.resolve(Y);if(Y instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return H};if(q.common.async===!1){let H=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(H.status==="aborted")return S;if(H.status==="dirty")$.dirty();return X(H.value),{status:$.value,value:H.value}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((H)=>{if(H.status==="aborted")return S;if(H.status==="dirty")$.dirty();return X(H.value).then(()=>{return{status:$.value,value:H.value}})})}if(J.type==="transform")if(q.common.async===!1){let X=this._def.schema._parseSync({data:q.data,path:q.path,parent:q});if(!i(X))return S;let H=J.transform(X.value,W);if(H instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:$.value,value:H}}else return this._def.schema._parseAsync({data:q.data,path:q.path,parent:q}).then((X)=>{if(!i(X))return S;return Promise.resolve(J.transform(X.value,W)).then((H)=>({status:$.value,value:H}))});O.assertNever(J)}};l.create=(_,$,q)=>{return new l({schema:_,typeName:M.ZodEffects,effect:$,...A(q)})};l.createWithPreprocess=(_,$,q)=>{return new l({schema:$,effect:{type:"preprocess",transform:_},typeName:M.ZodEffects,...A(q)})};m=class m extends j{_parse(_){if(this._getType(_)===B.undefined)return K(void 0);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};m.create=(_,$)=>{return new m({innerType:_,typeName:M.ZodOptional,...A($)})};u=class u extends j{_parse(_){if(this._getType(_)===B.null)return K(null);return this._def.innerType._parse(_)}unwrap(){return this._def.innerType}};u.create=(_,$)=>{return new u({innerType:_,typeName:M.ZodNullable,...A($)})};D_=class D_ extends j{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;if($.parsedType===B.undefined)q=this._def.defaultValue();return this._def.innerType._parse({data:q,path:$.path,parent:$})}removeDefault(){return this._def.innerType}};D_.create=(_,$)=>{return new D_({innerType:_,typeName:M.ZodDefault,defaultValue:typeof $.default==="function"?$.default:()=>$.default,...A($)})};w_=class w_ extends j{_parse(_){let{ctx:$}=this._processInputParams(_),q={...$,common:{...$.common,issues:[]}},J=this._def.innerType._parse({data:q.data,path:q.path,parent:{...q}});if(q_(J))return J.then((W)=>{return{status:"valid",value:W.status==="valid"?W.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}});else return{status:"valid",value:J.status==="valid"?J.value:this._def.catchValue({get error(){return new f(q.common.issues)},input:q.data})}}removeCatch(){return this._def.innerType}};w_.create=(_,$)=>{return new w_({innerType:_,typeName:M.ZodCatch,catchValue:typeof $.catch==="function"?$.catch:()=>$.catch,...A($)})};U_=class U_ extends j{_parse(_){if(this._getType(_)!==B.nan){let q=this._getOrReturnCtx(_);return D(q,{code:G.invalid_type,expected:B.nan,received:q.parsedType}),S}return{status:"valid",value:_.data}}};U_.create=(_)=>{return new U_({typeName:M.ZodNaN,...A(_)})};D3=Symbol("zod_brand");c_=class c_ extends j{_parse(_){let{ctx:$}=this._processInputParams(_),q=$.data;return this._def.type._parse({data:q,path:$.path,parent:$})}unwrap(){return this._def.type}};K_=class K_ extends j{_parse(_){let{status:$,ctx:q}=this._processInputParams(_);if(q.common.async)return(async()=>{let W=await this._def.in._parseAsync({data:q.data,path:q.path,parent:q});if(W.status==="aborted")return S;if(W.status==="dirty")return $.dirty(),o(W.value);else return this._def.out._parseAsync({data:W.value,path:q.path,parent:q})})();else{let J=this._def.in._parseSync({data:q.data,path:q.path,parent:q});if(J.status==="aborted")return S;if(J.status==="dirty")return $.dirty(),{status:"dirty",value:J.value};else return this._def.out._parseSync({data:J.value,path:q.path,parent:q})}}static create(_,$){return new K_({in:_,out:$,typeName:M.ZodPipeline})}};b_=class b_ extends j{_parse(_){let $=this._def.innerType._parse(_),q=(J)=>{if(i(J))J.value=Object.freeze(J.value);return J};return q_($)?$.then((J)=>q(J)):q($)}unwrap(){return this._def.innerType}};b_.create=(_,$)=>{return new b_({innerType:_,typeName:M.ZodReadonly,...A($)})};w3={object:V.lazycreate};(function(_){_.ZodString="ZodString",_.ZodNumber="ZodNumber",_.ZodNaN="ZodNaN",_.ZodBigInt="ZodBigInt",_.ZodBoolean="ZodBoolean",_.ZodDate="ZodDate",_.ZodSymbol="ZodSymbol",_.ZodUndefined="ZodUndefined",_.ZodNull="ZodNull",_.ZodAny="ZodAny",_.ZodUnknown="ZodUnknown",_.ZodNever="ZodNever",_.ZodVoid="ZodVoid",_.ZodArray="ZodArray",_.ZodObject="ZodObject",_.ZodUnion="ZodUnion",_.ZodDiscriminatedUnion="ZodDiscriminatedUnion",_.ZodIntersection="ZodIntersection",_.ZodTuple="ZodTuple",_.ZodRecord="ZodRecord",_.ZodMap="ZodMap",_.ZodSet="ZodSet",_.ZodFunction="ZodFunction",_.ZodLazy="ZodLazy",_.ZodLiteral="ZodLiteral",_.ZodEnum="ZodEnum",_.ZodEffects="ZodEffects",_.ZodNativeEnum="ZodNativeEnum",_.ZodOptional="ZodOptional",_.ZodNullable="ZodNullable",_.ZodDefault="ZodDefault",_.ZodCatch="ZodCatch",_.ZodPromise="ZodPromise",_.ZodBranded="ZodBranded",_.ZodPipeline="ZodPipeline",_.ZodReadonly="ZodReadonly"})(M||(M={}));b3=x.create,z3=t.create,S3=U_.create,v3=a.create,A3=O_.create,j3=W_.create,O3=N_.create,N3=X_.create,E3=H_.create,V3=E_.create,R3=c.create,L3=y.create,U3=V_.create,K3=P.create,F3=V.create,f3=V.strictCreate,C3=Q_.create,k3=i_.create,g3=Y_.create,I3=n.create,P3=R_.create,m3=L_.create,l3=s.create,T3=J_.create,h3=G_.create,x3=M_.create,y3=r.create,n3=B_.create,Z3=e.create,u3=l.create,p3=m.create,i3=u.create,c3=l.createWithPreprocess,r3=K_.create});var T$=z(()=>{A_();Z_();C$();__();l$();v_()});var F_=z(()=>{T$()});var f_=(_,$)=>{let q=0;for(;q<_.length&&q<$.length;q++)if(_[q]!==$[q])break;return[(_.length-q).toString(),...$.slice(q)].join("/")};var C_=()=>{};function E(_){if(_.target!=="openAi")return{};let $=[..._.basePath,_.definitionPath,_.openAiAnyTypeName];return _.flags.hasReferencedOpenAiAnyType=!0,{$ref:_.$refStrategy==="relative"?f_($,_.currentPath):$.join("/")}}var C=z(()=>{C_()});function r_(_,$,q,J){if(!J?.errorMessages)return;if(q)_.errorMessage={..._.errorMessage,[$]:q}}function N(_,$,q,J,W){_[$]=q,r_(_,$,J,W)}var p=()=>{};function h$(_,$){let q={type:"array"};if(_.type?._def&&_.type?._def?.typeName!==M.ZodAny)q.items=v(_.type._def,{...$,currentPath:[...$.currentPath,"items"]});if(_.minLength)N(q,"minItems",_.minLength.value,_.minLength.message,$);if(_.maxLength)N(q,"maxItems",_.maxLength.value,_.maxLength.message,$);if(_.exactLength)N(q,"minItems",_.exactLength.value,_.exactLength.message,$),N(q,"maxItems",_.exactLength.value,_.exactLength.message,$);return q}var o_=z(()=>{F_();p();R()});function x$(_,$){let q={type:"integer",format:"int64"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var d_=z(()=>{p()});function y$(){return{type:"boolean"}}var t_=()=>{};function k_(_,$){return v(_.type._def,$)}var g_=z(()=>{R()});var n$=(_,$)=>{return v(_.innerType._def,$)};var a_=z(()=>{R()});function s_(_,$,q){let J=q??$.dateStrategy;if(Array.isArray(J))return{anyOf:J.map((W,X)=>s_(_,$,W))};switch(J){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return hq(_,$)}}var hq=(_,$)=>{let q={type:"integer",format:"unix-time"};if($.target==="openApi3")return q;for(let J of _.checks)switch(J.kind){case"min":N(q,"minimum",J.value,J.message,$);break;case"max":N(q,"maximum",J.value,J.message,$);break}return q};var e_=z(()=>{p()});function Z$(_,$){return{...v(_.innerType._def,$),default:_.defaultValue()}}var _$=z(()=>{R()});function u$(_,$){return $.effectStrategy==="input"?v(_.schema._def,$):E($)}var $$=z(()=>{R();C()});function p$(_){return{type:"string",enum:Array.from(_.values)}}var q$=()=>{};function i$(_,$){let q=[v(_.left._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),v(_.right._def,{...$,currentPath:[...$.currentPath,"allOf","1"]})].filter((X)=>!!X),J=$.target==="jsonSchema2019-09"?{unevaluatedProperties:!1}:void 0,W=[];return q.forEach((X)=>{if(xq(X)){if(W.push(...X.allOf),X.unevaluatedProperties===void 0)J=void 0}else{let H=X;if("additionalProperties"in X&&X.additionalProperties===!1){let{additionalProperties:Y,...Q}=X;H=Q}else J=void 0;W.push(H)}}),W.length?{allOf:W,...J}:void 0}var xq=(_)=>{if("type"in _&&_.type==="string")return!1;return"allOf"in _};var J$=z(()=>{R()});function c$(_,$){let q=typeof _.value;if(q!=="bigint"&&q!=="number"&&q!=="boolean"&&q!=="string")return{type:Array.isArray(_.value)?"array":"object"};if($.target==="openApi3")return{type:q==="bigint"?"integer":q,enum:[_.value]};return{type:q==="bigint"?"integer":q,const:_.value}}var W$=()=>{};function I_(_,$){let q={type:"string"};if(_.checks)for(let J of _.checks)switch(J.kind){case"min":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$);break;case"max":N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"email":switch($.emailStrategy){case"format:email":I(q,"email",J.message,$);break;case"format:idn-email":I(q,"idn-email",J.message,$);break;case"pattern:zod":F(q,g.email,J.message,$);break}break;case"url":I(q,"uri",J.message,$);break;case"uuid":I(q,"uuid",J.message,$);break;case"regex":F(q,J.regex,J.message,$);break;case"cuid":F(q,g.cuid,J.message,$);break;case"cuid2":F(q,g.cuid2,J.message,$);break;case"startsWith":F(q,RegExp(`^${H$(J.value,$)}`),J.message,$);break;case"endsWith":F(q,RegExp(`${H$(J.value,$)}$`),J.message,$);break;case"datetime":I(q,"date-time",J.message,$);break;case"date":I(q,"date",J.message,$);break;case"time":I(q,"time",J.message,$);break;case"duration":I(q,"duration",J.message,$);break;case"length":N(q,"minLength",typeof q.minLength==="number"?Math.max(q.minLength,J.value):J.value,J.message,$),N(q,"maxLength",typeof q.maxLength==="number"?Math.min(q.maxLength,J.value):J.value,J.message,$);break;case"includes":{F(q,RegExp(H$(J.value,$)),J.message,$);break}case"ip":{if(J.version!=="v6")I(q,"ipv4",J.message,$);if(J.version!=="v4")I(q,"ipv6",J.message,$);break}case"base64url":F(q,g.base64url,J.message,$);break;case"jwt":F(q,g.jwt,J.message,$);break;case"cidr":{if(J.version!=="v6")F(q,g.ipv4Cidr,J.message,$);if(J.version!=="v4")F(q,g.ipv6Cidr,J.message,$);break}case"emoji":F(q,g.emoji(),J.message,$);break;case"ulid":{F(q,g.ulid,J.message,$);break}case"base64":{switch($.base64Strategy){case"format:binary":{I(q,"binary",J.message,$);break}case"contentEncoding:base64":{N(q,"contentEncoding","base64",J.message,$);break}case"pattern:zod":{F(q,g.base64,J.message,$);break}}break}case"nanoid":F(q,g.nanoid,J.message,$);case"toLowerCase":case"toUpperCase":case"trim":break;default:((W)=>{})(J)}return q}function H$(_,$){return $.patternStrategy==="escape"?nq(_):_}function nq(_){let $="";for(let q=0;q<_.length;q++){if(!yq.has(_[q]))$+="\\";$+=_[q]}return $}function I(_,$,q,J){if(_.format||_.anyOf?.some((W)=>W.format)){if(!_.anyOf)_.anyOf=[];if(_.format){if(_.anyOf.push({format:_.format,..._.errorMessage&&J.errorMessages&&{errorMessage:{format:_.errorMessage.format}}}),delete _.format,_.errorMessage){if(delete _.errorMessage.format,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.anyOf.push({format:$,...q&&J.errorMessages&&{errorMessage:{format:q}}})}else N(_,"format",$,q,J)}function F(_,$,q,J){if(_.pattern||_.allOf?.some((W)=>W.pattern)){if(!_.allOf)_.allOf=[];if(_.pattern){if(_.allOf.push({pattern:_.pattern,..._.errorMessage&&J.errorMessages&&{errorMessage:{pattern:_.errorMessage.pattern}}}),delete _.pattern,_.errorMessage){if(delete _.errorMessage.pattern,Object.keys(_.errorMessage).length===0)delete _.errorMessage}}_.allOf.push({pattern:r$($,J),...q&&J.errorMessages&&{errorMessage:{pattern:q}}})}else N(_,"pattern",r$($,J),q,J)}function r$(_,$){if(!$.applyRegexFlags||!_.flags)return _.source;let q={i:_.flags.includes("i"),m:_.flags.includes("m"),s:_.flags.includes("s")},J=q.i?_.source.toLowerCase():_.source,W="",X=!1,H=!1,Y=!1;for(let Q=0;Q<J.length;Q++){if(X){W+=J[Q],X=!1;continue}if(q.i){if(H){if(J[Q].match(/[a-z]/)){if(Y)W+=J[Q],W+=`${J[Q-2]}-${J[Q]}`.toUpperCase(),Y=!1;else if(J[Q+1]==="-"&&J[Q+2]?.match(/[a-z]/))W+=J[Q],Y=!0;else W+=`${J[Q]}${J[Q].toUpperCase()}`;continue}}else if(J[Q].match(/[a-z]/)){W+=`[${J[Q]}${J[Q].toUpperCase()}]`;continue}}if(q.m){if(J[Q]==="^"){W+=`(^|(?<=[\r
|
|
2
|
-
]))`;continue}else if(J[Q]==="$"){W+=`($|(?=[\r
|
|
3
|
-
]))`;continue}}if(q.s&&J[Q]==="."){W+=H?`${J[Q]}\r
|
|
4
|
-
`:`[${J[Q]}\r
|
|
5
|
-
]`;continue}if(W+=J[Q],J[Q]==="\\")X=!0;else if(H&&J[Q]==="]")H=!1;else if(!H&&J[Q]==="[")H=!0}try{new RegExp(W)}catch{return console.warn(`Could not convert regex pattern at ${$.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),_.source}return W}var X$=void 0,g,yq;var P_=z(()=>{p();g={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(X$===void 0)X$=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return X$},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};yq=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789")});function m_(_,$){if($.target==="openAi")console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead.");if($.target==="openApi3"&&_.keyType?._def.typeName===M.ZodEnum)return{type:"object",required:_.keyType._def.values,properties:_.keyType._def.values.reduce((J,W)=>({...J,[W]:v(_.valueType._def,{...$,currentPath:[...$.currentPath,"properties",W]})??E($)}),{}),additionalProperties:$.rejectedAdditionalProperties};let q={type:"object",additionalProperties:v(_.valueType._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]})??$.allowedAdditionalProperties};if($.target==="openApi3")return q;if(_.keyType?._def.typeName===M.ZodString&&_.keyType._def.checks?.length){let{type:J,...W}=I_(_.keyType._def,$);return{...q,propertyNames:W}}else if(_.keyType?._def.typeName===M.ZodEnum)return{...q,propertyNames:{enum:_.keyType._def.values}};else if(_.keyType?._def.typeName===M.ZodBranded&&_.keyType._def.type._def.typeName===M.ZodString&&_.keyType._def.type._def.checks?.length){let{type:J,...W}=k_(_.keyType._def,$);return{...q,propertyNames:W}}return q}var l_=z(()=>{F_();R();P_();g_();C()});function o$(_,$){if($.mapStrategy==="record")return m_(_,$);let q=v(_.keyType._def,{...$,currentPath:[...$.currentPath,"items","items","0"]})||E($),J=v(_.valueType._def,{...$,currentPath:[...$.currentPath,"items","items","1"]})||E($);return{type:"array",maxItems:125,items:{type:"array",items:[q,J],minItems:2,maxItems:2}}}var Q$=z(()=>{R();l_();C()});function d$(_){let $=_.values,J=Object.keys(_.values).filter((X)=>{return typeof $[$[X]]!=="number"}).map((X)=>$[X]),W=Array.from(new Set(J.map((X)=>typeof X)));return{type:W.length===1?W[0]==="string"?"string":"number":["string","number"],enum:J}}var Y$=()=>{};function t$(_){return _.target==="openAi"?void 0:{not:E({..._,currentPath:[..._.currentPath,"not"]})}}var G$=z(()=>{C()});function a$(_){return _.target==="openApi3"?{enum:["null"],nullable:!0}:{type:"null"}}var M$=()=>{};function e$(_,$){if($.target==="openApi3")return s$(_,$);let q=_.options instanceof Map?Array.from(_.options.values()):_.options;if(q.every((J)=>(J._def.typeName in z_)&&(!J._def.checks||!J._def.checks.length))){let J=q.reduce((W,X)=>{let H=z_[X._def.typeName];return H&&!W.includes(H)?[...W,H]:W},[]);return{type:J.length>1?J:J[0]}}else if(q.every((J)=>J._def.typeName==="ZodLiteral"&&!J.description)){let J=q.reduce((W,X)=>{let H=typeof X._def.value;switch(H){case"string":case"number":case"boolean":return[...W,H];case"bigint":return[...W,"integer"];case"object":if(X._def.value===null)return[...W,"null"];case"symbol":case"undefined":case"function":default:return W}},[]);if(J.length===q.length){let W=J.filter((X,H,Y)=>Y.indexOf(X)===H);return{type:W.length>1?W:W[0],enum:q.reduce((X,H)=>{return X.includes(H._def.value)?X:[...X,H._def.value]},[])}}}else if(q.every((J)=>J._def.typeName==="ZodEnum"))return{type:"string",enum:q.reduce((J,W)=>[...J,...W._def.values.filter((X)=>!J.includes(X))],[])};return s$(_,$)}var z_,s$=(_,$)=>{let q=(_.options instanceof Map?Array.from(_.options.values()):_.options).map((J,W)=>v(J._def,{...$,currentPath:[...$.currentPath,"anyOf",`${W}`]})).filter((J)=>!!J&&(!$.strictUnions||typeof J==="object"&&Object.keys(J).length>0));return q.length?{anyOf:q}:void 0};var T_=z(()=>{R();z_={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"}});function _q(_,$){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(_.innerType._def.typeName)&&(!_.innerType._def.checks||!_.innerType._def.checks.length)){if($.target==="openApi3")return{type:z_[_.innerType._def.typeName],nullable:!0};return{type:[z_[_.innerType._def.typeName],"null"]}}if($.target==="openApi3"){let J=v(_.innerType._def,{...$,currentPath:[...$.currentPath]});if(J&&"$ref"in J)return{allOf:[J],nullable:!0};return J&&{...J,nullable:!0}}let q=v(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","0"]});return q&&{anyOf:[q,{type:"null"}]}}var B$=z(()=>{R();T_()});function $q(_,$){let q={type:"number"};if(!_.checks)return q;for(let J of _.checks)switch(J.kind){case"int":q.type="integer",r_(q,"type",J.message,$);break;case"min":if($.target==="jsonSchema7")if(J.inclusive)N(q,"minimum",J.value,J.message,$);else N(q,"exclusiveMinimum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMinimum=!0;N(q,"minimum",J.value,J.message,$)}break;case"max":if($.target==="jsonSchema7")if(J.inclusive)N(q,"maximum",J.value,J.message,$);else N(q,"exclusiveMaximum",J.value,J.message,$);else{if(!J.inclusive)q.exclusiveMaximum=!0;N(q,"maximum",J.value,J.message,$)}break;case"multipleOf":N(q,"multipleOf",J.value,J.message,$);break}return q}var D$=z(()=>{p()});function qq(_,$){let q=$.target==="openAi",J={type:"object",properties:{}},W=[],X=_.shape();for(let Y in X){let Q=X[Y];if(Q===void 0||Q._def===void 0)continue;let b=uq(Q);if(b&&q){if(Q._def.typeName==="ZodOptional")Q=Q._def.innerType;if(!Q.isNullable())Q=Q.nullable();b=!1}let L=v(Q._def,{...$,currentPath:[...$.currentPath,"properties",Y],propertyPath:[...$.currentPath,"properties",Y]});if(L===void 0)continue;if(J.properties[Y]=L,!b)W.push(Y)}if(W.length)J.required=W;let H=Zq(_,$);if(H!==void 0)J.additionalProperties=H;return J}function Zq(_,$){if(_.catchall._def.typeName!=="ZodNever")return v(_.catchall._def,{...$,currentPath:[...$.currentPath,"additionalProperties"]});switch(_.unknownKeys){case"passthrough":return $.allowedAdditionalProperties;case"strict":return $.rejectedAdditionalProperties;case"strip":return $.removeAdditionalStrategy==="strict"?$.allowedAdditionalProperties:$.rejectedAdditionalProperties}}function uq(_){try{return _.isOptional()}catch{return!0}}var w$=z(()=>{R()});var Jq=(_,$)=>{if($.currentPath.toString()===$.propertyPath?.toString())return v(_.innerType._def,$);let q=v(_.innerType._def,{...$,currentPath:[...$.currentPath,"anyOf","1"]});return q?{anyOf:[{not:E($)},q]}:E($)};var b$=z(()=>{R();C()});var Wq=(_,$)=>{if($.pipeStrategy==="input")return v(_.in._def,$);else if($.pipeStrategy==="output")return v(_.out._def,$);let q=v(_.in._def,{...$,currentPath:[...$.currentPath,"allOf","0"]}),J=v(_.out._def,{...$,currentPath:[...$.currentPath,"allOf",q?"1":"0"]});return{allOf:[q,J].filter((W)=>W!==void 0)}};var z$=z(()=>{R()});function Xq(_,$){return v(_.type._def,$)}var S$=z(()=>{R()});function Hq(_,$){let J={type:"array",uniqueItems:!0,items:v(_.valueType._def,{...$,currentPath:[...$.currentPath,"items"]})};if(_.minSize)N(J,"minItems",_.minSize.value,_.minSize.message,$);if(_.maxSize)N(J,"maxItems",_.maxSize.value,_.maxSize.message,$);return J}var v$=z(()=>{p();R()});function Qq(_,$){if(_.rest)return{type:"array",minItems:_.items.length,items:_.items.map((q,J)=>v(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[]),additionalItems:v(_.rest._def,{...$,currentPath:[...$.currentPath,"additionalItems"]})};else return{type:"array",minItems:_.items.length,maxItems:_.items.length,items:_.items.map((q,J)=>v(q._def,{...$,currentPath:[...$.currentPath,"items",`${J}`]})).reduce((q,J)=>J===void 0?q:[...q,J],[])}}var A$=z(()=>{R()});function Yq(_){return{not:E(_)}}var j$=z(()=>{C()});function Gq(_){return E(_)}var O$=z(()=>{C()});var Mq=(_,$)=>{return v(_.innerType._def,$)};var N$=z(()=>{R()});var Bq=(_,$,q)=>{switch($){case M.ZodString:return I_(_,q);case M.ZodNumber:return $q(_,q);case M.ZodObject:return qq(_,q);case M.ZodBigInt:return x$(_,q);case M.ZodBoolean:return y$();case M.ZodDate:return s_(_,q);case M.ZodUndefined:return Yq(q);case M.ZodNull:return a$(q);case M.ZodArray:return h$(_,q);case M.ZodUnion:case M.ZodDiscriminatedUnion:return e$(_,q);case M.ZodIntersection:return i$(_,q);case M.ZodTuple:return Qq(_,q);case M.ZodRecord:return m_(_,q);case M.ZodLiteral:return c$(_,q);case M.ZodEnum:return p$(_);case M.ZodNativeEnum:return d$(_);case M.ZodNullable:return _q(_,q);case M.ZodOptional:return Jq(_,q);case M.ZodMap:return o$(_,q);case M.ZodSet:return Hq(_,q);case M.ZodLazy:return()=>_.getter()._def;case M.ZodPromise:return Xq(_,q);case M.ZodNaN:case M.ZodNever:return t$(q);case M.ZodEffects:return u$(_,q);case M.ZodAny:return E(q);case M.ZodUnknown:return Gq(q);case M.ZodDefault:return Z$(_,q);case M.ZodBranded:return k_(_,q);case M.ZodReadonly:return Mq(_,q);case M.ZodCatch:return n$(_,q);case M.ZodPipeline:return Wq(_,q);case M.ZodFunction:case M.ZodVoid:case M.ZodSymbol:return;default:return((J)=>{return})($)}};var E$=z(()=>{F_();C();o_();d_();t_();g_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();l_();v$();P_();A$();j$();T_();O$();N$()});function v(_,$,q=!1){let J=$.seen.get(_);if($.override){let Y=$.override?.(_,$,J,q);if(Y!==K$)return Y}if(J&&!q){let Y=pq(J,$);if(Y!==void 0)return Y}let W={def:_,path:$.currentPath,jsonSchema:void 0};$.seen.set(_,W);let X=Bq(_,_.typeName,$),H=typeof X==="function"?v(X(),$):X;if(H)iq(_,$,H);if($.postProcess){let Y=$.postProcess(H,_,$);return W.jsonSchema=H,Y}return W.jsonSchema=H,H}var pq=(_,$)=>{switch($.$refStrategy){case"root":return{$ref:_.path.join("/")};case"relative":return{$ref:f_($.currentPath,_.path)};case"none":case"seen":{if(_.path.length<$.currentPath.length&&_.path.every((q,J)=>$.currentPath[J]===q))return console.warn(`Recursive reference detected at ${$.currentPath.join("/")}! Defaulting to any`),E($);return $.$refStrategy==="seen"?E($):void 0}}},iq=(_,$,q)=>{if(_.description){if(q.description=_.description,$.markdownDescription)q.markdownDescription=_.description}return q};var R=z(()=>{S_();E$();C_();C()});var Dq=(_)=>{let $=F$(_),q=$.name!==void 0?[...$.basePath,$.definitionPath,$.name]:$.basePath;return{...$,flags:{hasReferencedOpenAiAnyType:!1},currentPath:q,propertyPath:void 0,seen:new Map(Object.entries($.definitions).map(([J,W])=>[W._def,{def:W._def,path:[...$.basePath,$.definitionPath,J],jsonSchema:void 0}]))}};var V$=z(()=>{S_()});var cq=(_,$)=>{let q=Dq($),J=typeof $==="object"&&$.definitions?Object.entries($.definitions).reduce((Q,[b,L])=>({...Q,[b]:v(L._def,{...q,currentPath:[...q.basePath,q.definitionPath,b]},!0)??E(q)}),{}):void 0,W=typeof $==="string"?$:$?.nameStrategy==="title"?void 0:$?.name,X=v(_._def,W===void 0?q:{...q,currentPath:[...q.basePath,q.definitionPath,W]},!1)??E(q),H=typeof $==="object"&&$.name!==void 0&&$.nameStrategy==="title"?$.name:void 0;if(H!==void 0)X.title=H;if(q.flags.hasReferencedOpenAiAnyType){if(!J)J={};if(!J[q.openAiAnyTypeName])J[q.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:q.$refStrategy==="relative"?"1":[...q.basePath,q.definitionPath,q.openAiAnyTypeName].join("/")}}}let Y=W===void 0?J?{...X,[q.definitionPath]:J}:X:{$ref:[...q.$refStrategy==="relative"?[]:q.basePath,q.definitionPath,W].join("/"),[q.definitionPath]:{...J,[W]:X}};if(q.target==="jsonSchema7")Y.$schema="http://json-schema.org/draft-07/schema#";else if(q.target==="jsonSchema2019-09"||q.target==="openAi")Y.$schema="https://json-schema.org/draft/2019-09/schema#";if(q.target==="openAi"&&(("anyOf"in Y)||("oneOf"in Y)||("allOf"in Y)||("type"in Y)&&Array.isArray(Y.type)))console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property.");return Y};var R$=z(()=>{R();V$();C()});var wq=()=>{};var rq=z(()=>{R$();S_();V$();p();C_();R();wq();C();o_();d_();t_();g_();a_();e_();_$();$$();q$();J$();W$();Q$();Y$();G$();M$();B$();D$();w$();b$();z$();S$();N$();l_();v$();P_();A$();j$();T_();O$();E$();R$()});
|
|
6
|
-
export{cq as X1,rq as Y1};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c_ as V,cga as W,e_ as N,fga as E}from"./cli-1.1.34-wwjkncsv.mjs";import{Iqa as $,Jqa as L}from"./cli-1.1.34-4x915j9t.mjs";import{existsSync as S}from"node:fs";import{homedir as X}from"node:os";import{join as R}from"node:path";function B(b){let q=b?.trim();return q?q:void 0}function Y(b=process.env){return B(b.GOOGLE_CLOUD_PROJECT)??B(b.GCLOUD_PROJECT)??B(b.GOOGLE_PROJECT_ID)}function k(b=process.env){let q=B(b.GEMINI_AUTH_MODE)?.toLowerCase();if(q==="api-key"||q==="adc")return q;return}function x(b=process.env){let q=B(b.GOOGLE_APPLICATION_CREDENTIALS),w=new Set;if(q)w.add(q);w.add(R(X(),".config","gcloud","application_default_credentials.json"));let F=B(b.APPDATA);if(F)w.add(R(F,"gcloud","application_default_credentials.json"));return[...w]}function K(b=process.env){return x(b).some((q)=>S(q))}function y(b){if(typeof b==="string")return B(b);return B(b?.token)}async function P(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[U]})}async function Z(b,q){if(!K(b))return{kind:"none"};try{let w=await(q.createGoogleAuth??P)(),F=await w.getClient(),J=y(await F.getAccessToken());if(!J)return{kind:"none"};let Q=Y(b)??(typeof w.getProjectId==="function"?B(await w.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:J,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function j(b=process.env,q={}){let w=k(b),F=W(),J=F?.transport==="gemini"?B(F.apiKey):void 0,O=w==="adc"?void 0:J;if(O&&(w===void 0||w==="api-key"))return{kind:"api-key",credential:O};if(w==="api-key")return{kind:"none"};if(q.createGoogleAuth)return Z(b,q);return _(B(b.GOOGLE_APPLICATION_CREDENTIALS),B(b.APPDATA),X(),Y(b))}var U="https://www.googleapis.com/auth/cloud-platform",f=300000,_;var D=$(()=>{E();N();_=V(async(b,q,w,F)=>Z({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:q,GOOGLE_CLOUD_PROJECT:F,GCLOUD_PROJECT:F,GOOGLE_PROJECT_ID:F,HOME:w},{}),f)});
|
|
2
|
-
export{j as _i,D as $i};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$5 as WB,O5 as Z,P5 as T,V5 as f}from"./cli-1.1.34-yrk4mxjw.mjs";import{A_ as JB,F_ as _,Mea as v,O9 as O,P9 as BB,Tea as QB,z_ as w}from"./cli-1.1.34-wwjkncsv.mjs";import{Eha as A,Gha as KB}from"./cli-1.1.34-0t1h2v5v.mjs";import{bka as F,jka as e}from"./cli-1.1.34-ev8ffgr9.mjs";import{Rka as R,Vla as U,Wla as i,fma as M,gma as m,pla as S,qla as s,upa as a}from"./cli-1.1.34-qef4zhc3.mjs";import{Tpa as q,Upa as t}from"./cli-1.1.34-n5t6xk0e.mjs";import{Iqa as K}from"./cli-1.1.34-4x915j9t.mjs";function u(B,J){return B+b(h()*(J-B+1))}var b,h,x;var G=K(()=>{b=Math.floor,h=Math.random;x=u});function p(B){var J=B.length;return J?B[x(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=p});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function c(B){return B==null?[]:z(B,U(B))}var C;var I=K(()=>{P();i();C=c});function n(B){return Y(C(B))}var k;var E=K(()=>{H();I();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,g.cache.clear?.()}function TB(){W=null,Q=null,g.cache.clear?.(),j.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return j()}var W=null,Q=null,g,j;var ZB=K(()=>{BB();t();a();WB();QB();KB();JB();e();g=q((B)=>{let J=v(),X=_(),$,N,D;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let V=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(V))D=V}}let L=Z(),d=L?.organizationUuid,y=L?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:w(),organizationUuid:d,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:D,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});j=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:A()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
|
|
2
|
-
export{kB as FT,r as GT,vB as HT,TB as IT,j as JT,ZB as KT};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Tw as K,Uw as M,Vw as Y}from"./cli-1.1.34-84707tma.mjs";import{Pga as X,wga as Q}from"./cli-1.1.34-p5v4dwpg.mjs";import{dha as N}from"./cli-1.1.34-37g65vk7.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 Sa,V as Ta,Z as Ua,C as Va,E as Wa,L as Xa,A as Ya,P as Za,b as _a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{wW as f}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as n,V1 as i}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as M}from"./cli-1.1.34-7ad0dt89.mjs";import{Eqa as o}from"./cli-1.1.34-4x915j9t.mjs";i();var p=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=p.c(3),{getFpsMetrics:s,children:c}=F,t;if(e[0]!==c||e[1]!==s)t=n(d.Provider,{value:s,children:c}),e[0]=c,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
-
export{a as lb,l as mb};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Qf as IJ,Rf as bQ}from"./cli-1.1.34-ty06ehzt.mjs";import{$f as eq,ag as sq,bg as aJ}from"./cli-1.1.34-58ergrxf.mjs";import{cg as AJ,dg as OQ}from"./cli-1.1.34-9tze8t1x.mjs";import{eg as vJ,fg as AQ}from"./cli-1.1.34-7bcbswdn.mjs";import{gg as nq,hg as rJ}from"./cli-1.1.34-fd3cb4wv.mjs";import{ig as wq,jg as tq,kg as oJ}from"./cli-1.1.34-shm51n5s.mjs";import{lg as bJ,mg as hQ}from"./cli-1.1.34-00hxx56p.mjs";import{$P as QJ,$n as lq,Ix as Cq,Jx as wQ,KS as Fq,LS as ZJ,NF as kq,OF as HQ,OS as zJ,PF as RJ,QF as RQ,RF as LJ,SF as PJ,SS as QQ,TF as WJ,UF as LQ,WI as hJ,XI as OJ,YI as PQ,_n as h,bQ as qQ,fO as g,iO as WQ,lu as yJ,lx as UJ,mu as yQ,mx as BQ,nu as NJ,ou as BJ,oy as pq,pu as NQ,px as wJ,py as jq,qQ as Iq,qx as UQ,ry as _q,sy as jJ,tQ as JQ,wo as XJ,xo as XQ}from"./cli-1.1.34-84707tma.mjs";import{AT as FJ,CT as HJ,ET as FQ}from"./cli-1.1.34-vdk5kjz7.mjs";import{IX as N,KX as Q,pY as bq,wW as Oq}from"./cli-1.1.34-59csbz1a.mjs";import{S1 as R,T1 as K,U1 as Z,V1 as c}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as VQ}from"./cli-1.1.34-7ad0dt89.mjs";import{H4 as VJ,I4 as KQ,W3 as oq,b4 as KJ,t4 as iq}from"./cli-1.1.34-yrk4mxjw.mjs";import{K9 as $,L9 as zQ,S$ as YQ,Yda as GJ,jea as GQ,kda as aq,lda as gJ,oda as Aq,v$ as Mq,wda as xJ}from"./cli-1.1.34-wwjkncsv.mjs";import{_ja as YJ,jka as ZQ}from"./cli-1.1.34-ev8ffgr9.mjs";import{Xka as Hq,upa as rq}from"./cli-1.1.34-qef4zhc3.mjs";import{Eqa as Bq,Iqa as Uq}from"./cli-1.1.34-4x915j9t.mjs";function Tq(){let J=dq.c(2);if(!pq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=_q();if(G.length===0){V=null;break q}let Y=G.filter(cJ),X=G.filter(TJ);q=Z(N,{flexDirection:"column",marginTop:1,marginBottom:1,children:[K(Q,{bold:!0,color:Y.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(N,{children:[K(Q,{dimColor:!0,children:"Location: "}),K(Q,{dimColor:!0,children:jq()})]}),Z(N,{marginLeft:1,flexDirection:"column",marginTop:1,children:[Y.map(dJ),X.map(_J)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function _J(J,q){return Z(N,{flexDirection:"column",children:[Z(N,{children:[K(Q,{dimColor:!0,children:"└ "}),K(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&K(N,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function dJ(J,q){return Z(N,{flexDirection:"column",children:[Z(N,{children:[K(Q,{dimColor:!0,children:"└ "}),K(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&K(N,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function TJ(J){return J.severity==="warning"}function cJ(J){return J.severity==="error"}var dq;var cq=Uq(()=>{bq();jJ();c();dq=Bq(Oq(),1)});function gq(){let J=$q.c(2);if(!h.isSupportedPlatform())return null;if(!h.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=h.checkDependencies(),Y=G.errors.length>0,X=G.warnings.length>0;if(!Y&&!X){V=null;break q}q=Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",K(Q,{color:Y?"error":"warning",children:Y?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map($J),G.warnings.map(lJ),Y&&K(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function lJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function $J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var $q;var xq=Uq(()=>{bq();lq();c();$q=Bq(Oq(),1)});async function iJ(){let J=ZJ(await zJ());if(J.length===0)return null;let q=J.sort((G,Y)=>Y.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${Fq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${Fq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:Fq}}async function nJ(J){if(!J)return null;let q=tq(J);if(q<=wq)return null;let V=J.activeAgents.filter((Y)=>Y.source!=="built-in").map((Y)=>{let X=`${Y.agentType}: ${Y.whenToUse}`;return{name:Y.agentType,tokens:Iq(X)}}).sort((Y,X)=>X.tokens-Y.tokens),G=V.slice(0,5).map((Y)=>`${Y.name}: ~${Y.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${wq.toLocaleString()})`,details:G,currentValue:q,threshold:wq}}async function eJ(J,q,V){let G=J.filter((Y)=>Y.isMcp);if(G.length===0)return null;try{let Y=oq(),{mcpToolTokens:X,mcpToolDetails:U}=await QJ(J,q,V,Y);if(X<=l)return null;let B=new Map;for(let L of U){let x=L.name.split("__")[1]||"unknown",y=B.get(x)||{count:0,tokens:0};B.set(x,{count:y.count+1,tokens:y.tokens+L.tokens})}let H=Array.from(B.entries()).sort((L,w)=>w[1].tokens-L[1].tokens),z=H.slice(0,5).map(([L,w])=>`${L}: ${w.count} tools (~${w.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(Y){let X=G.reduce((U,B)=>{let H=(B.name?.length||0)+B.description.length;return U+Iq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function sJ(J){let q=await J(),V=h.isSandboxingEnabled()&&h.isAutoAllowBashIfSandboxedEnabled(),G=nq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let Y=G.flatMap((X)=>[`${aq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${Aq(G.length,"unreachable permission rule")} detected`,details:Y,currentValue:G.length,threshold:0}}async function tJ(){let J=Hq(),{findings:q}=await eq({root:J});if(q.length===0)return null;let V=q.filter((Y)=>Y.severity==="error"),G=q.map((Y)=>`${sq(J,Y.file)}: ${Y.message}`);return{type:"rule_files",severity:V.length>0?"error":"warning",message:`${q.length} rule ${Aq(q.length,"file problem")} detected`,details:G,currentValue:q.length,threshold:0}}async function qJ(J,q,V){let[G,Y,X,U,B]=await Promise.all([iJ(),nJ(q),eJ(J,V,q),sJ(V),tJ()]);return{claudeMdWarning:G,agentWarning:Y,mcpWarning:X,unreachableRulesWarning:U,ruleFilesWarning:B}}var l=25000;var JJ=Uq(()=>{rq();JQ();qQ();QQ();iq();gJ();rJ();aJ();lq();oJ();xJ()});import{join as vq}from"path";function IQ(J){let q=Dq.c(8),{promise:V}=J,G=F.use(V);if(!G.latest){let B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=K(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=B;else B=q[0];return B}let Y;if(q[1]!==G.stable)Y=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=Y;else Y=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let U;if(q[5]!==Y||q[6]!==X)U=Z(R,{children:[Y,X]}),q[5]=Y,q[6]=X,q[7]=U;else U=q[7];return U}function xZ(J){let q=Dq.c(84),{onDone:V}=J,G=g(rQ),Y=g(xQ),X=g(gQ),U=g($Q);wJ();let B;if(q[0]!==Y)B=Y||[],q[0]=Y,q[1]=B;else B=q[1];let H=B,[z,L]=F.useState(null),[w,x]=F.useState(null),[y,MJ]=F.useState(null),[W,Sq]=F.useState(null),Rq=vJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=kq().then(cQ),q[2]=r;else r=q[2];let CJ=r,kJ=GJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Rq)a=Rq.filter(TQ),q[3]=Rq,q[4]=a;else a=q[4];let o=a,i;if(q[5]===Symbol.for("react.memo_cache_sentinel"))i=[{name:"BASH_MAX_OUTPUT_LENGTH",default:BJ,upperLimit:NJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:OJ,upperLimit:hJ},{name:"CLAUDIN_MAX_OUTPUT_TOKENS",...VJ(KJ())}].map(dQ).filter(_Q),q[5]=i;else i=q[5];let Eq=i,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{kq().then(L),(async()=>{let P=vq(YJ(),"agents"),fq=vq(Hq(),".claudin","agents"),{activeAgents:uq,allAgents:DJ,failedFiles:mq}=G,[SJ,EJ]=await Promise.all([Mq(P),Mq(fq)]),fJ={activeAgents:uq.map(jQ),userAgentsDir:P,projectAgentsDir:fq,userDirExists:SJ,projectDirExists:EJ,failedFiles:mq};x(fJ);let uJ=await qJ(H,{activeAgents:uq,allAgents:DJ,failedFiles:mq},async()=>X);if(MJ(uJ),LJ()){let hq=vq(RJ(),"claude","locks"),mJ=WJ(hq),pJ=PJ(hq);Sq({enabled:!0,locks:pJ,locksDir:hq,staleLocksCleaned:mJ})}else Sq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];F.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claudin diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(UJ(qq,Jq),!z){let P;if(q[16]===Symbol.for("react.memo_cache_sentinel"))P=K(Cq,{children:K(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=P;else P=q[16];return P}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=K(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let b;if(q[21]!==z.packageManager)b=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=b;else b=q[22];let A;if(q[23]!==z.installationPath)A=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=A;else A=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let v;if(q[27]!==z.configInstallMethod)v=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=v;else v=q[28];let Lq=z.ripgrepStatus.working?"OK":"Not working",Pq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",M;if(q[29]!==Lq||q[30]!==Pq)M=Z(Q,{children:["└ Search: ",Lq," (",Pq,")"]}),q[29]=Lq,q[30]=Pq,q[31]=M;else M=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(R,{children:[K(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
|
|
2
|
-
`)[0]]}),K(Q,{dimColor:!0,children:z.recommendation.split(`
|
|
3
|
-
`)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(R,{children:[K(Q,{}),K(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(pQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(R,{children:[K(Q,{}),z.warnings.map(mQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==o)S=o.length>0&&Z(N,{flexDirection:"column",marginTop:1,marginBottom:1,children:[K(Q,{bold:!0,children:"Invalid Settings"}),K(IJ,{errors:o})]}),q[38]=o,q[39]=S;else S=q[39];let E;if(q[40]!==O||q[41]!==b||q[42]!==A||q[43]!==I||q[44]!==v||q[45]!==M||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)E=Z(N,{flexDirection:"column",children:[Qq,O,b,A,I,v,M,C,k,D,S]}),q[40]=O,q[41]=b,q[42]=A,q[43]=I,q[44]=v,q[45]=M,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=E;else E=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=K(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let Wq=z.packageManager?"Managed by package manager":z.autoUpdates,f;if(q[52]!==Wq)f=Z(Q,{children:["└ Auto-updates:"," ",Wq]}),q[52]=Wq,q[53]=f;else f=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",kJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=K(F.Suspense,{fallback:null,children:K(IQ,{promise:CJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==f||q[59]!==u)m=Z(N,{flexDirection:"column",children:[Zq,f,u,zq,Yq]}),q[58]=f,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=K(gq,{}),Kq=K(bJ,{}),Vq=K(Tq,{}),Xq=Eq.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Environment Variables"}),Eq.map(uQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==W)p=W?.enabled&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Version Locks"}),W.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",W.staleLocksCleaned," stale lock(s)"]}),W.locks.length===0?K(Q,{dimColor:!0,children:"└ No active version locks"}):W.locks.map(fQ)]}),q[65]=W,q[66]=p;else p=q[66];let j;if(q[67]!==w)j=w?.failedFiles&&w.failedFiles.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",w.failedFiles.length," agent file(s):"]}),w.failedFiles.map(EQ)]}),q[67]=w,q[68]=j;else j=q[68];let _;if(q[69]!==U)_=U.length>0&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",U.length," plugin error(s) detected:"]}),U.map(SQ)]}),q[69]=U,q[70]=_;else _=q[70];let d;if(q[71]!==y)d=y?.unreachableRulesWarning&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.unreachableRulesWarning.message]})]}),y.unreachableRulesWarning.details.map(DQ)]}),q[71]=y,q[72]=d;else d=q[72];let T;if(q[73]!==y)T=y&&(y.claudeMdWarning||y.agentWarning||y.mcpWarning||y.ruleFilesWarning)&&Z(N,{flexDirection:"column",children:[K(Q,{bold:!0,children:"Context Usage Warnings"}),y.claudeMdWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),y.claudeMdWarning.details.map(kQ)]}),y.agentWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),y.agentWarning.details.map(CQ)]}),y.mcpWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",y.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),y.mcpWarning.details.map(MQ)]}),y.ruleFilesWarning&&Z(R,{children:[Z(Q,{children:["└"," ",Z(Q,{color:y.ruleFilesWarning.severity==="error"?"error":"warning",children:[$.warning," ",y.ruleFilesWarning.message]})]}),Z(Q,{children:[" ","└ Rules:"]}),y.ruleFilesWarning.details.map(vQ)]})]}),q[73]=y,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=K(N,{children:K(AJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==E||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Cq,{children:[E,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=E,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function vQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function CQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function kQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function DQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function SQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",XJ(J)]},q)}function EQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function fQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?K(Q,{children:"(running)"}):K(Q,{color:"warning",children:"(stale)"})]},q)}function uQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",K(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function mQ(J,q){return Z(N,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function pQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function jQ(J){return{agentType:J.agentType,source:J.source}}function _Q(J){return J.status!=="valid"}function dQ(J){let q=process.env[J.name],V=yJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function TQ(J){return J.mcpErrorMetadata===void 0}function cQ(J){return(J.installationType==="native"?HJ:FJ)().catch(lQ)}function lQ(){return{latest:null,stable:null}}function $Q(J){return J.plugins.errors}function gQ(J){return J.toolPermissionContext}function xQ(J){return J.mcp.tools}function rQ(J){return J.agentDefinitions}var Dq,F;var aQ=Uq(()=>{zQ();cq();hQ();KQ();iq();ZQ();rq();wQ();OQ();xq();bQ();AQ();UQ();bq();BQ();WQ();XQ();FQ();JJ();HQ();yQ();YQ();LQ();GQ();NQ();PQ();RQ();c();Dq=Bq(Oq(),1),F=Bq(VQ(),1)});
|
|
4
|
-
export{xZ as Of,aQ as Pf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Af as VJ,wf as NG,xf as UG}from"./cli-1.1.34-1ategs07.mjs";import{$E as JG,$z as CG,Dz as PJ,GO as qJ,HO as CJ,Kx as IG,Lx as KJ,Mz as pJ,Ty as AG,VG as GG,Vy as QJ,WG as YJ,Wy as XJ,Xy as TJ,dA as dJ,fO as LG,gO as ZJ,gm as JJ,hm as gJ,hz as zJ,iO as uG,jz as MG,kx as FG,kz as hG,lF as cG,lz as TG,mx as hJ,mz as dG,px as wG,pz as fG,qx as LJ,tx as h,ux as $G,vx as m,wx as DG,wz as jG,xx as t,yx as PG}from"./cli-1.1.34-84707tma.mjs";import{AW as kG,GX as C,IX as Y,KX as Q,OX as EG,dY as GJ,pY as qG,wW as BG}from"./cli-1.1.34-59csbz1a.mjs";import{JZ as gG,KZ as AJ}from"./cli-1.1.34-5ffnhvmt.mjs";import{H0 as _J,v0 as eG}from"./cli-1.1.34-bt9brnrs.mjs";import{S1 as a,T1 as L,U1 as X,V1 as x}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as pG}from"./cli-1.1.34-7ad0dt89.mjs";import{$5 as SJ,O5 as sG}from"./cli-1.1.34-yrk4mxjw.mjs";import{K9 as S,L9 as tG,Xca as OG,Yca as yG,Zca as WJ,nda as HG,oda as FJ,qga as rG,sga as bJ,wda as mG}from"./cli-1.1.34-wwjkncsv.mjs";import{pia as _G,qia as BJ}from"./cli-1.1.34-5t01yf6x.mjs";import{Qja as zG,Xja as oG}from"./cli-1.1.34-d0sgyvr1.mjs";import{Eqa as s,Iqa as e}from"./cli-1.1.34-4x915j9t.mjs";function WG(J){let G=lG.c(9),{serverToolsCount:Z,serverPromptsCount:F,serverResourcesCount:q}=J,z;if(G[0]!==F||G[1]!==q||G[2]!==Z){if(z=[],Z>0)z.push("tools");if(q>0)z.push("resources");if(F>0)z.push("prompts");G[0]=F,G[1]=q,G[2]=Z,G[3]=z}else z=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==z)W=z.length>0?L(t,{children:z}):"none",G[5]=z,G[6]=W;else W=G[6];let w;if(G[7]!==W)w=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=w;else w=G[8];return w}var lG;var bG=e(()=>{qG();PG();x();lG=s(BG(),1)});function KG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function VG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var SG=()=>{};function NL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),{columns:w}=JJ(),[I,U]=E.default.useState(!1),[p,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=ZJ(),[O,K]=E.default.useState(null),[P,D]=E.useState(!1),N=E.useRef(null),[g,$]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[c,u]=E.useState(null),[n,i]=E.useState(!1),[l,r]=E.useState(!1),v=E.useRef(void 0),B=E.useRef(!1),[vG,QG]=E.useState(""),[kJ,wJ]=E.useState(0),[xG,aG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),v.current!==void 0)clearTimeout(v.current)},[]);let XG=J.isAuthenticated||J.client.type==="connected"&&G>0,YG=NG(),DJ=E.default.useCallback(async()=>{$(!1),T(null),D(!0);try{let V=await YG(J.name);if(V.client.type==="connected")q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){q?.(VG(V,J.name))}finally{D(!1)}},[YG,J.name,q]),MJ=E.default.useCallback(async()=>{await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"needs-auth"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Disconnected from ${J.name}.`),y(!1),u(null),i(!1)},[J.name,J.config,J.scope,f,q]);FG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),FG("confirm:no",()=>{$(!1),T(null)},{context:"Confirmation",isActive:g}),FG("confirm:no",()=>{y(!1),u(null),i(!1)},{context:"Confirmation",isActive:A}),GJ((V,H)=>{if(H.return&&g)DJ();if(H.return&&A)if(n)MJ();else{let M=`${_G().CLAUDE_AI_ORIGIN}/settings/connectors`;u(M),i(!0),gG(M)}if(V==="c"&&!l){let M=O||j||c;if(M)eG(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(r(!0),v.current!==void 0)clearTimeout(v.current);v.current=setTimeout(r,2000,!1)})}});let fJ=HG(String(J.name)),NJ=MG(_.commands,J.name).length,nG=UG(),UJ=E.default.useCallback(async()=>{let V=_G().CLAUDE_AI_ORIGIN,M=sG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let ZG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,o=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${ZG}?product_surface=${o}`}else d=`${V}/settings/connectors`;T(d),$(!0),await gG(d)},[J.config]),RJ=E.default.useCallback(()=>{y(!0)},[]),OJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{await nG(J.name),F()}catch(H){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${zG(H)}`)}},[J.client.type,J.config.type,J.name,nG,F,q]),yJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await AG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await XJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{aG(()=>M)}});let H=await YG(J.name);if(H.client.type==="connected"){let M=XG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(H.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else rG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof QJ))R(H.message)}finally{U(!1),N.current=null,aG(null),QG("")}},[J.isAuthenticated,J.config,J.name,q,YG,XG]),IJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await AG(J.name,J.config),await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"failed"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:O})]}),I&&O&&xG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(qJ,{value:vG,onChange:QG,onSubmit:(H)=>{xG(H.trim()),QG("")},cursorOffset:kJ,onChangeCursorOffset:wJ,columns:w-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),j&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:j})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),n?X(a,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(a,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(XG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!XG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[fJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[C("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),XG?X(Q,{children:[C("success",k)(S.tick)," authenticated"]}):X(Q,{children:[C("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(J.scope)})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:NJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),p&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",p]})}),b.length>0&&L(Y,{marginTop:1,children:L(JG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await yJ();break;case"clear-auth":await IJ();break;case"claudeai-auth":await UJ();break;case"claudeai-clear-auth":RJ();break;case"reconnectMcpServer":D(!0);try{let H=await YG(J.name),{message:M}=KG(H,J.name);q?.(M)}catch(H){q?.(VG(H,J.name))}finally{D(!1)}break;case"toggle-enabled":await OJ();break;case"back":F();break}},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var mJ=e(()=>{tG();BJ();LJ();gJ();_J();qG();hJ();TJ();dJ();VJ();jG();uG();SJ();AJ();oG();bJ();mG();DG();cG();PG();$G();YJ();CJ();bG();SG();x();E=s(pG(),1)});function jL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=wG(),w=LG((P)=>P.mcp),I=NG(),U=UG(),[p,R]=RG.useState(!1),_=RG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),F()}catch(D){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${zG(D)}`)}},[J.client.type,J.name,U,F,q]),f=HG(String(J.name)),O=MG(w.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if(p)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:fG(PJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:w.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(JG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let D=await I(J.name),{message:N}=KG(D,J.name);q?.(N)}catch(D){q?.(VG(D,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")F()},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var RG;var $J=e(()=>{tG();LJ();qG();pJ();VJ();jG();uG();oG();mG();DG();cG();PG();$G();YJ();bG();SG();x();RG=s(pG(),1)});function nL(J){let G=EJ.c(44),{tool:Z,server:F,onBack:q}=J,[z,k]=iG.default.useState(""),W,w;if(G[0]!==F.name||G[1]!==Z){w=OG(Z.name,F.name);let r=Z.userFacingName?Z.userFacingName({}):w;W=yG(r),G[0]=F.name,G[1]=Z,G[2]=W,G[3]=w}else W=G[2],w=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let p=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];iG.default.useEffect(K,P);let D;if(G[13]!==p)D=p&&L(Q,{color:"success",children:" [read-only]"}),G[13]=p,G[14]=D;else D=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let $;if(G[19]!==I||G[20]!==D||G[21]!==N||G[22]!==g)$=X(a,{children:[I,D,N,g]}),G[19]=I,G[20]=D,G[21]=N,G[22]=g,G[23]=$;else $=G[23];let j=$,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==w)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:w})]}),G[25]=w,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let c;if(G[28]!==Z.name)c=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=c;else c=G[29];let u;if(G[30]!==z)u=z&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:z})]}),G[30]=z,G[31]=u;else u=G[31];let n;if(G[32]!==Z.inputJSONSchema)n=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((r)=>{let[v,B]=r,QG=Z.inputJSONSchema?.required?.includes(v);return X(Q,{children:["• ",v,QG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},v)})})]}),G[32]=Z.inputJSONSchema,G[33]=n;else n=G[33];let i;if(G[34]!==A||G[35]!==c||G[36]!==u||G[37]!==n)i=X(Y,{flexDirection:"column",children:[A,c,u,n]}),G[34]=A,G[35]=c,G[36]=u,G[37]=n,G[38]=i;else i=G[38];let l;if(G[39]!==q||G[40]!==F.name||G[41]!==i||G[42]!==j)l=L(IG,{title:j,subtitle:F.name,onCancel:q,inputGuide:jJ,children:i}),G[39]=q,G[40]=F.name,G[41]=i,G[42]=j,G[43]=l;else l=G[43];return l}function jJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var EJ,iG;var cJ=e(()=>{qG();WJ();DG();KJ();x();EJ=s(BG(),1),iG=s(pG(),1)});function ZQ(J){let G=HJ.c(21),{server:Z,onSelectTool:F,onBack:q}=J,z=LG(iJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==z||G[2]!==Z.name)K=zJ(z,Z.name),G[1]=z,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,w;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,D)=>{let N=OG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,$=yG(g),j=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:$,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];w=W.map(K),G[4]=Z.name,G[5]=W,G[6]=w}else w=G[6];let I=w,U=`Tools for ${Z.name}`,p=W.length,R;if(G[9]!==W.length)R=FJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${p} ${R}`,f;if(G[11]!==q||G[12]!==F||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(JG,{options:I,onChange:(K)=>{let P=parseInt(K),D=W[P];if(D)F(D,P)},onCancel:q}),G[11]=q,G[12]=F,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(IG,{title:U,subtitle:_,onCancel:q,inputGuide:uJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function iJ(J){return J.mcp.tools}var HJ;var vJ=e(()=>{qG();WJ();jG();uG();mG();DG();cG();PG();KJ();$G();x();HJ=s(BG(),1)});
|
|
2
|
-
export{NL as of,mJ as pf,jL as qf,$J as rf,nL as sf,cJ as tf,ZQ as uf,vJ as vf};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
-
- a short flag is a single dash and a single character
|
|
3
|
-
- either use a single dash and a single character (for a short flag)
|
|
4
|
-
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
-
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
-
- too many long flags`);throw Error(`${_}
|
|
7
|
-
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
-
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
-
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
-
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
-
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
-
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
-
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
-
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
-
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
-
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
-
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
-
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
-
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
-
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
-
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
-
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
-
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
-
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
-
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
-
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as M,S as N,E as O};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$E as r,IA as g,LA as c,Lj as H,MA as _q,Nj as Jq,PA as T,QA as Vq,fO as h,gO as a,gm as w,hm as Qq,iO as Iq,ix as m,jx as Xq,kx as d,lF as Fq,mx as Yq,px as S,qx as Zq,rx as p,sx as $q,tx as V,ux as zq,xx as u,yx as Wq}from"./cli-1.1.34-84707tma.mjs";import{AW as v,BW as y,CW as j,IX as J,KX as N,pY as Nq}from"./cli-1.1.34-59csbz1a.mjs";import{S1 as _,T1 as q,U1 as G,V1 as b}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as Lq}from"./cli-1.1.34-7ad0dt89.mjs";import{Vda as B,jea as Gq}from"./cli-1.1.34-wwjkncsv.mjs";import{Eqa as e,Iqa as qq}from"./cli-1.1.34-4x915j9t.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[K]=v(),U=y(),{columns:i}=w(),Y=Q.useMemo(()=>g(),[]),Z=Y===null?c(K):null,{setPreviewTheme:k,savePreview:M,cancelPreview:R}=j(),z=h((L)=>L.settings.syntaxHighlightingDisabled??!1),f=a();m("ThemePicker",!0);let W=p("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),l=Q.useCallback(()=>{if(Y===null){let L=!z;B("userSettings",{syntaxHighlightingDisabled:L}),f((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,f]);d("theme:toggleSyntaxHighlighting",l,{context:"ThemePicker"});let D=S($?()=>{}:void 0),E=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{k(L)},[k]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else H(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDIN_SYNTAX_HIGHLIGHT=${process.env.CLAUDIN_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(r,{options:E,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:E.length,defaultValue:U,defaultFocusValue:U})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Oq,{patch:Aq,dim:!1,filePath:"demo.js",firstLine:null,width:i})},K),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:D.pending?G(_,{children:["Press ",D.keyName," again to exit"]}):G(u,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Oq,Aq;var Kq=qq(()=>{Zq();Qq();Nq();Xq();Yq();$q();Iq();Jq();Gq();Fq();Wq();zq();_q();Vq();b();Q=e(Lq(),1),Oq=T,Aq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
-
export{mq as lh,Kq as mh};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{IS as vJ,JS as YV,Ml as hJ,Sn as qJ,Un as dJ,jS as TJ,to as IJ,uo as BJ,vo as cJ}from"./cli-1.1.34-84707tma.mjs";import{F_ as VJ,Kaa as fJ,Tea as gJ,Yda as f,aaa as c,baa as PJ,jea as mJ,maa as WJ,nga as G,o$ as AJ,raa as p,sga as uJ,u$ as kJ}from"./cli-1.1.34-wwjkncsv.mjs";import{Eha as v,Gha as bJ}from"./cli-1.1.34-0t1h2v5v.mjs";import{cja as JJ,gja as SJ,qja as Q,tja as yJ}from"./cli-1.1.34-xwg0x7p4.mjs";import{Qja as e,Xja as zJ}from"./cli-1.1.34-d0sgyvr1.mjs";import{Pka as NJ,Qka as wJ}from"./cli-1.1.34-qef4zhc3.mjs";import{Eqa as LJ,Iqa as HJ}from"./cli-1.1.34-4x915j9t.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 gi,QJ as hi,KV as ii,TV as ji,vV as ki,UV as li,EJ as mi,jV as ni,RV as oi,WV as pi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a_ as K,b_ as x,nga as U,o$ as I,sga as m,u$ as H}from"./cli-1.1.34-wwjkncsv.mjs";import{Eha as v,Gha as E}from"./cli-1.1.34-0t1h2v5v.mjs";import{cja as D,gja as g}from"./cli-1.1.34-xwg0x7p4.mjs";import{Iqa as S}from"./cli-1.1.34-4x915j9t.mjs";import{basename as u,dirname as b,join as R,sep as O}from"path";function F(q,B){if(!q)return{directory:B||v(),prefix:""};let G=I(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=u(q);return{directory:N,prefix:J}}async function f(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:R(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function s(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=F(q,G),V=await f(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function k(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:R(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=F(q,G),W=await k(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var T=500,_=300000,Z,A;var C=S(()=>{x();E();g();m();H();Z=new K({max:T,ttl:_}),A=new K({max:T,ttl:_})});
|
|
2
|
-
export{s as Bi,o as Ci,h as Di,C as Ei};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BP as P,HM as n,JS as p,Ou as A,Uu as T,lM as K,nM as b,oM as j,qM as u,rP as _,sP as f,tM as I}from"./cli-1.1.34-84707tma.mjs";import{iV as M,jV as m}from"./cli-1.1.34-yfasvar9.mjs";import{cja as F,gja as C,qja as Z,tia as E,tja as S,via as c}from"./cli-1.1.34-xwg0x7p4.mjs";import{Pka as v,Qka as g,rka as Y,upa as k}from"./cli-1.1.34-qef4zhc3.mjs";m();k();P();u();n();c();S();C();p();g();import*as H from"path";var r=1000,i=500,d=300,o=2000,l=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=v(),U=null;async function e(){if(B||D)return;if(B=!0,!V)V=!0,j(()=>{_(),W.emit()});let q=await t();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=M.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??r,pollInterval:U?.pollInterval??i},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:l,interval:U?.chokidarInterval??o,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=E(async()=>{await L()})}function L(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var h=W.subscribe;async function t(){let q=F(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of Y()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),s(q)}function s(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await T("skills",w[0]);if(A(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}b(),f(),I(),W.emit()},U?.reloadDebounce??d)}async function a(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Uq={initialize:e,dispose:L,subscribe:h,resetForTesting:a};
|
|
2
|
-
export{Uq as eb};
|
|
@@ -1,2 +0,0 @@
|
|
|
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 Lb};
|