@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
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import{kg as OJ,lg as _Q,mg as _q,og as CJ}from"./cli-1.1.36-r241fh82.mjs";import{AS as Eq,BS as VQ,Bx as KQ,Cx as NZ,FS as mJ,Fm as tq,Gm as iq,Hm as sJ,Im as eq,Jm as _,KE as kJ,Km as fq,LE as BJ,Lm as $q,Mm as tJ,NK as gJ,OK as rQ,Om as Iq,PH as hJ,PK as NJ,Pm as yJ,QH as aQ,QK as RQ,RK as FJ,SK as MQ,Sm as nQ,bx as x,cx as HJ,dx as VJ,gx as xJ,hx as iQ,kO as lq,mx as uq,nO as oQ,np as KJ,nx as IQ,op as vQ,ox as YJ,px as jQ,qC as LJ,rE as mq,sC as SQ,sE as sQ,zE as pJ}from"./cli-1.1.36-v0s0vqmm.mjs";import"./cli-1.1.36-c4k9g1dk.mjs";import"./cli-1.1.36-659qh6fs.mjs";import"./cli-1.1.36-zey2drb2.mjs";import"./cli-1.1.36-6jv1ss2p.mjs";import"./cli-1.1.36-v5nxnkwj.mjs";import"./cli-1.1.36-1dhxpexj.mjs";import"./cli-1.1.36-f6yxszv5.mjs";import"./cli-1.1.36-ahr5fnjy.mjs";import"./cli-1.1.36-3mmakdzj.mjs";import"./cli-1.1.36-rh00pabh.mjs";import"./cli-1.1.36-40x4f5k7.mjs";import{EX as Mq,MV as TJ,YW as v,_W as G,cX as WQ}from"./cli-1.1.36-4ssz80b2.mjs";import"./cli-1.1.36-72sph7cp.mjs";import"./cli-1.1.36-wfgjsqkk.mjs";import"./cli-1.1.36-1yk5zdh0.mjs";import"./cli-1.1.36-zd032ger.mjs";import"./cli-1.1.36-zax3mr51.mjs";import{VY as GJ,XY as bQ}from"./cli-1.1.36-7z5n90ex.mjs";import"./cli-1.1.36-p0w1dm9g.mjs";import"./cli-1.1.36-p7w1197h.mjs";import"./cli-1.1.36-3kd43x1y.mjs";import"./cli-1.1.36-7tprmtpr.mjs";import{c1 as U,d1 as V,e1 as y}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as Rq}from"./cli-1.1.36-apycha28.mjs";import"./cli-1.1.36-p375v620.mjs";import"./cli-1.1.36-s8jcsdgb.mjs";import"./cli-1.1.36-65fkb20j.mjs";import{D5 as PJ,E5 as dQ}from"./cli-1.1.36-8mc299mk.mjs";import"./cli-1.1.36-b0rge62y.mjs";import"./cli-1.1.36-0qdd3hmz.mjs";import"./cli-1.1.36-mam7e8zn.mjs";import"./cli-1.1.36-5zzwcyt7.mjs";import"./cli-1.1.36-451x9avw.mjs";import"./cli-1.1.36-7xx3rm4x.mjs";import"./cli-1.1.36-0d7qj290.mjs";import"./cli-1.1.36-n9knhbs6.mjs";import"./cli-1.1.36-rqhp2xt1.mjs";import"./cli-1.1.36-xs4p38vb.mjs";import"./cli-1.1.36-tda1q99k.mjs";import"./cli-1.1.36-hvnr6rta.mjs";import{Cda as SJ,D$ as yQ,Fda as RJ,Gda as MJ,Hda as xQ,Ida as JQ,Jda as QQ,L_ as XJ,Nda as lQ,Oda as DJ,_ca as dq,f$ as bJ,oda as mQ,pda as E,ufa as Jq,vda as m,y_ as d,yda as nq,zfa as WJ}from"./cli-1.1.36-t6sjxpcb.mjs";import{Qfa as bq,Wfa as oq}from"./cli-1.1.36-6q7sfj4e.mjs";import"./cli-1.1.36-m11p0exg.mjs";import"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-ss62b517.mjs";import{Lga as lJ,Nga as WZ}from"./cli-1.1.36-jqn2tez7.mjs";import"./cli-1.1.36-6yqvdwyp.mjs";import"./cli-1.1.36-jpcwwd65.mjs";import"./cli-1.1.36-n5etyd9m.mjs";import{$ia as XQ,Tia as zJ,fja as UJ}from"./cli-1.1.36-6g1w2zbr.mjs";import{ija as Gq,tja as $J}from"./cli-1.1.36-0qtyffhw.mjs";import{Doa as uQ,fka as fJ}from"./cli-1.1.36-bsfazmtt.mjs";import"./cli-1.1.36-cm2kys6t.mjs";import"./cli-1.1.36-s9ar9y3g.mjs";import{Npa as Qq,Opa as cQ,Rpa as M}from"./cli-1.1.36-c4pkjm54.mjs";import{readdir as kQ}from"fs/promises";import{basename as BQ,sep as NQ}from"path";function jq(J){return`${gq}${J.isTeamDir?"1":"0"}${vq}${J.title}${vq}${J.dir}`}function qJ(J){if(!J.startsWith(gq))return null;let q=J.slice(gq.length),Z=q.indexOf(vq);if(Z===-1)return null;let Q=q.indexOf(vq,Z+1);if(Q===-1)return null;return{isTeamDir:q.slice(0,Z)==="1",title:q.slice(Z+1,Q),dir:q.slice(Q+1)}}function FQ(J){return(J===void 0?"":`[${J}]`).padEnd(JJ)}function OQ(J){return J.filename.includes(NQ)||J.filename.includes("/")}function CQ(J){if(J===null)return;let q=J.replace(/\s+/g," ").trim();if(q.length<=rq)return q===""?void 0:q;return`${q.slice(0,rq-1).trimEnd()}…`}function QJ(J,q){let{indexPath:Z,indexExists:Q,includeNested:H=!1}=q,X=[];if(Q)X.push({label:`${"".padEnd(JJ)}${BQ(Z)}`,value:Z,description:"the index loaded into context every session",isIndex:!0});for(let N of J){if(!H&&OQ(N))continue;X.push({label:`${FQ(N.type)}${N.filename.replace(/\.md$/,"")} ${bq(new Date(N.mtimeMs))}`,value:N.filePath,description:CQ(N.description),isIndex:!1})}return X}function ZJ(J,q){let Z=J.split(`
|
|
2
|
+
`),Q=Z.filter((H)=>{let X=AQ.exec(H);return X===null||X[1]!==q});return Q.length===Z.length?J:Q.join(`
|
|
3
|
+
`)}async function cq(J,q={}){try{return(await kQ(J,{withFileTypes:!0,recursive:q.recursive===!0})).filter((Q)=>Q.isFile()&&Q.name.endsWith(".md")&&Q.name!==_).length}catch{return 0}}var gq="__browse_dir__",Kq="__memory_tidy__",vq="\x1F",JJ,rq=60,AQ;var Sq=M(()=>{Iq();eq();oq();JJ=Math.max(...tq.map((J)=>J.length))+4;AQ=/\]\(([^)]+)\)/});import{basename as qq}from"path";import{mkdir as wQ,readFile as EQ,stat as fQ,unlink as $Q,writeFile as PQ}from"fs/promises";function AJ({dir:J,title:q,indexPath:Z,isTeamDir:Q=!1,onBack:H}){let[X,N]=Y.useState(null),[D,f]=Y.useState(!1),[Uq,p]=Y.useState(0),[L,F]=Y.useState(void 0),[I,O]=Y.useState(null),[$,l]=Y.useState(!1),[B,h]=Y.useState(null),[g,c]=Y.useState(null);Y.useEffect(()=>{let K=new AbortController,W=!1;return(async()=>{let[b,T]=await Promise.all([FJ(J,K.signal),fQ(Z).then(()=>!0,()=>!1)]);if(W)return;N(b),f(T)})(),()=>{W=!0,K.abort()}},[J,Z,Uq]);let S=Y.useMemo(()=>X===null?[]:QJ(X,{indexPath:Z,indexExists:D,includeNested:Q}),[X,Z,D,Q]),Pq=Y.useMemo(()=>S.map((K)=>({label:K.label,value:K.value,description:K.description})),[S]),C=S.find((K)=>K.value===L)??null;Y.useEffect(()=>{if(L===void 0)return;let K=new AbortController;return NJ(L,0,TQ,void 0,K.signal).then((W)=>{let{frontmatter:b,content:T}=KJ(W.content,L),j=T.split(`
|
|
4
|
+
`),Xq=W.content.split(`
|
|
5
|
+
`).length-j.length,A=j.slice(0,DQ),P=typeof b.type==="string"?b.type:null;O({heading:P?`${P} · ${qq(L,".md")}`:qq(L),body:A.join(`
|
|
6
|
+
`).trim(),moreLines:Math.max(0,W.totalLines-Xq-A.length)})},(W)=>{if(zJ(W))return;Jq(W),O(null)}),()=>K.abort()},[L]);let R=Y.useCallback((K)=>{if(!OJ()){c("No editor configured — set $EDITOR or $VISUAL to edit memories here.");return}let W=_q(K);if(W.error){c(W.error);return}c(null),p((b)=>b+1)},[]),u=Y.useCallback(async()=>{let K=B;if(K===null)return;h(null);try{await $Q(K.value);let W=await EQ(Z,"utf8").catch(()=>null);if(W!==null){let b=ZJ(W,qq(K.value));if(b!==W)await PQ(Z,b,"utf8")}c(`Deleted ${qq(K.value)}`)}catch(W){Jq(W),c(`Could not delete ${qq(K.value)}`)}F(void 0),O(null),p((W)=>W+1)},[B,Z]),Dq=Y.useMemo(()=>({"memory:openFolder":()=>{wQ(J,{recursive:!0}).catch(()=>{}).then(()=>GJ(J))},"memory:delete":()=>{if(C===null||C.isIndex)return!1;h(C)}}),[J,C]);if(HJ(Dq,{context:"Memory",isActive:!$&&B===null}),x("confirm:yes",()=>void u(),{context:"Confirmation",isActive:B!==null}),x("confirm:no",()=>h(null),{context:"Confirmation",isActive:B!==null}),X===null)return U(v,{flexDirection:"column",width:"100%",children:V(G,{dimColor:!0,children:["Reading ",d(J),"…"]})});return V(v,{flexDirection:"column",width:"100%",children:[U(v,{marginBottom:1,children:V(G,{bold:!0,children:[q,V(G,{dimColor:!0,children:[" · ",d(J)]})]})}),S.length===0?U(G,{dimColor:!0,children:"No memories here yet. They appear as Claudin saves them."}):U(kJ,{options:Pq,visibleOptionCount:5,showOverflowCount:!0,searchPlaceholder:"Search memories…",isDisabled:B!==null,onSearchModeChange:l,onFocus:F,onChange:R,onCancel:H}),B!==null?V(v,{flexDirection:"column",marginTop:1,children:[V(G,{color:"error",children:["Delete ",qq(B.value),"?"]}),U(G,{dimColor:!0,children:Q?"Shared memory — the deletion reaches the team on the next commit. Its line in MEMORY.md goes too.":"Its line in MEMORY.md goes too."})]}):I!==null&&V(v,{flexDirection:"column",marginTop:1,children:[U(G,{dimColor:!0,children:I.heading}),I.body===""?U(G,{dimColor:!0,children:"(empty)"}):U(LJ,{dimColor:!0,children:I.body}),I.moreLines>0&&V(G,{dimColor:!0,children:["… +",I.moreLines," more lines"]})]}),g!==null&&U(v,{marginTop:1,children:U(G,{dimColor:!0,children:g})}),U(v,{marginTop:1,children:U(G,{dimColor:!0,italic:!0,children:V(YJ,{children:[B!==null?U(G,{dimColor:!0,children:"y to delete"}):U(G,{dimColor:!0,children:"enter to edit"}),B!==null?U(G,{dimColor:!0,children:"n to cancel"}):U(uq,{action:"memory:delete",context:"Memory",fallback:"d",description:"delete"}),B===null&&U(uq,{action:"memory:openFolder",context:"Memory",fallback:"o",description:"open folder"}),B===null&&U(G,{dimColor:!0,children:"esc to go back"})]})})})]})}var Y,DQ=10,TQ=40;var vJ=M(()=>{MQ();Sq();bQ();_Q();UJ();XJ();RQ();vQ();WJ();IQ();BJ();jQ();Mq();CJ();VJ();SQ();y();Y=Qq(Rq(),1)});function IJ(J){return bJ(J)!==null}var jJ=M(()=>{yQ()});import{basename as pQ,join as hQ}from"path";function gQ(J){return J.type==="Project"&&J.parent===void 0&&MJ(pQ(J.path))}function _J(J,q){let Z=new Set(J.filter(gQ).map((Q)=>Q.path));return RJ(q,(Q)=>Z.has(Q))??hQ(q,SJ)}var wJ=M(()=>{xQ()});import{basename as tQ,join as eQ}from"path";function uJ(J){let q=cJ.c(58),{onSelect:Z,onCancel:Q,dirCounts:H}=J,X=w.use(Eq()),N=fJ(),D=eQ(Gq(),"CLAUDE.md"),f=_J(X,N),Uq=tQ(f),p=X.some((z)=>z.path===D),L=X.some((z)=>z.path===f),F=[...X.filter(XZ).map(UZ),...p?[]:[{path:D,type:"User",content:"",exists:!1}],...L?[]:[{path:f,type:"Project",content:"",exists:!1}]],I=new Map,O=F.map((z)=>{let k=d(z.path),hq=z.exists?"":" (new)",Aq=z.parent?(I.get(z.parent)??0)+1:0;I.set(z.path,Aq);let YQ=Aq>0?" ".repeat(Aq-1):"",Wq;if(z.type==="User"&&!z.isNested&&z.path===D)Wq="User memory";else if(z.type==="Project"&&!z.isNested&&z.path===f)Wq="Project memory";else if(Aq>0)Wq=`${YQ}L ${k}${hq}`;else Wq=`${k}`;let e,LQ=IJ(N);if(z.type==="User"&&!z.isNested)e="Saved in ~/.claudin/CLAUDE.md";else if(z.type==="Project"&&!z.isNested&&z.path===f)e=`${LQ?"Checked in at":"Saved in"} ./${Uq}`;else if(z.parent)e="@-imported";else if(z.isNested)e="dynamically loaded";else e="";return{label:Wq,value:z.path,description:e}}),$=[],l=lq(zZ);if(E()){let z=m();if($.push({label:`Private memory${H?` · ${H.private}`:""}`,value:jq({dir:z,title:"Private memory",isTeamDir:!1}),description:`Saved in ${d(z)}`}),EJ?.isTeamMemoryEnabled()){let k=EJ.getTeamMemPath();$.push({label:`Team memory${H?` · ${H.team}`:""}`,value:jq({dir:k,title:"Team memory",isTeamDir:!0}),description:`Shared with the team, git-tracked at ${d(k)}`})}$.push({label:"Tidy memories",value:Kq,description:"Merge duplicate memories and rebuild the index"});for(let k of l.activeAgents)if(k.memory){let hq=yJ(k.agentType,k.memory);$.push({label:`${PJ.bold(k.agentType)} agent memory`,value:jq({dir:hq,title:`${k.agentType} agent memory`,isTeamDir:!1}),description:`${k.memory} scope`})}}O.push(...$);let B;if(q[2]!==O)B=wq&&O.some(ZZ)?wq:O[0]?.value||"",q[2]=O,q[3]=B;else B=q[3];let h=B,[g,c]=w.useState(E),[S,Pq]=w.useState(gJ),[C]=w.useState(E),R=lq(JZ),[u,Dq]=w.useState(null),K;if(q[4]!==C)K=()=>{if(!C)return;hJ().then(Dq)},q[4]=C,q[5]=K;else K=q[5];let W;if(q[6]!==R||q[7]!==C)W=[C,R],q[6]=R,q[7]=C,q[8]=W;else W=q[8];w.useEffect(K,W);let b;if(q[9]!==R||q[10]!==u)b=R?"running":u===null?"":u===0?"never":`last ran ${bq(new Date(u))}`,q[9]=R,q[10]=u,q[11]=b;else b=q[11];let T=b,[j,Xq]=w.useState(null),A=j!==null,P=C?1:0,Hq;if(q[12]!==g)Hq=function(){let k=!g;dq("userSettings",{autoMemoryEnabled:k}),c(k)},q[12]=g,q[13]=Hq;else Hq=q[13];let Tq=Hq,Vq;if(q[14]!==S)Vq=function(){let k=!S;dq("userSettings",{autoDreamEnabled:k}),Pq(k)},q[14]=S,q[15]=Vq;else Vq=q[15];let yq=Vq;xJ();let Yq;if(q[16]===Symbol.for("react.memo_cache_sentinel"))Yq={context:"Confirmation"},q[16]=Yq;else Yq=q[16];x("confirm:no",Q,Yq);let Lq;if(q[17]!==j||q[18]!==yq||q[19]!==Tq)Lq=()=>{if(j===0)Tq();else if(j===1)yq()},q[17]=j,q[18]=yq,q[19]=Tq,q[20]=Lq;else Lq=q[20];let kq;if(q[21]!==A)kq={context:"Confirmation",isActive:A},q[21]=A,q[22]=kq;else kq=q[22];x("confirm:yes",Lq,kq);let Bq;if(q[23]!==P)Bq=()=>{Xq((z)=>z!==null&&z<P?z+1:null)},q[23]=P,q[24]=Bq;else Bq=q[24];let Nq;if(q[25]!==A)Nq={context:"Select",isActive:A},q[25]=A,q[26]=Nq;else Nq=q[26];x("select:next",Bq,Nq);let Fq;if(q[27]===Symbol.for("react.memo_cache_sentinel"))Fq=()=>{Xq(qZ)},q[27]=Fq;else Fq=q[27];let Oq;if(q[28]!==A)Oq={context:"Select",isActive:A},q[28]=A,q[29]=Oq;else Oq=q[29];x("select:previous",Fq,Oq);let xq=j===0,pq=g?"on":"off",n;if(q[30]!==pq)n=V(G,{children:["Auto-memory: ",pq]}),q[30]=pq,q[31]=n;else n=q[31];let i;if(q[32]!==xq||q[33]!==n)i=U(mq,{isFocused:xq,children:n}),q[32]=xq,q[33]=n,q[34]=i;else i=q[34];let s;if(q[35]!==S||q[36]!==T||q[37]!==j||q[38]!==R||q[39]!==C)s=C&&U(mq,{isFocused:j===1,styled:!1,children:V(G,{color:j===1?"suggestion":void 0,children:["Auto-dream: ",S?"on":"off",T&&V(G,{dimColor:!0,children:[" · ",T]}),!R&&S&&U(G,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=S,q[36]=T,q[37]=j,q[38]=R,q[39]=C,q[40]=s;else s=q[40];let a;if(q[41]!==i||q[42]!==s)a=V(v,{flexDirection:"column",marginBottom:1,children:[i,s]}),q[41]=i,q[42]=s,q[43]=a;else a=q[43];let r;if(q[44]!==Z)r=(z)=>{if(z!==Kq)wq=z;Z(z)},q[44]=Z,q[45]=r;else r=q[45];let o;if(q[46]!==P)o=()=>Xq(P),q[46]=P,q[47]=o;else o=q[47];let t;if(q[48]!==h||q[49]!==O||q[50]!==Q||q[51]!==r||q[52]!==o||q[53]!==A)t=U(pJ,{defaultFocusValue:h,options:O,isDisabled:A,onChange:r,onCancel:Q,onUpFromFirstItem:o}),q[48]=h,q[49]=O,q[50]=Q,q[51]=r,q[52]=o,q[53]=A,q[54]=t;else t=q[54];let Cq;if(q[55]!==a||q[56]!==t)Cq=V(v,{flexDirection:"column",width:"100%",children:[a,t]}),q[55]=a,q[56]=t,q[57]=Cq;else Cq=q[57];return Cq}function qZ(J){return J!==null&&J>0?J-1:J}function JZ(J){return Object.values(J.tasks).some(QZ)}function QZ(J){return J.type==="dream"&&J.status==="running"}function ZZ(J){return J.value===wq}function zZ(J){return J.agentDefinitions}function UZ(J){return{...J,exists:!0}}function XZ(J){return J.type!=="AutoMem"&&J.type!=="TeamMem"}var cJ,w,EJ,wq;var dJ=M(()=>{dQ();uQ();iQ();Mq();VJ();nq();rQ();aQ();oQ();nQ();mJ();$J();XJ();oq();jJ();mQ();BJ();sQ();wJ();Sq();y();cJ=Qq(TJ(),1),w=Qq(Rq(),1),EJ=(DJ(),cQ(lQ))});import{homedir as GZ}from"os";import{relative as HZ}from"path";function nJ(J){let q=GZ(),Z=lJ(),Q=J.startsWith(q)?"~"+J.slice(q.length):null,H=J.startsWith(Z)?"./"+HZ(Z,J):null;if(Q&&H)return Q.length<=H.length?Q:H;return Q||H||J}var KZ;var iJ=M(()=>{Mq();WZ();y();KZ=Qq(TJ(),1)});function aJ(J){let q=J.replace(VZ,""),Z=Math.round($q/YZ),Q=iq.map((X)=>`\`${X.dir}/\``).join(", "),H=iq.map((X)=>`\`## ${X.section}\``).join(" / ");return`# Memory Sort: file team memories by category
|
|
7
|
+
|
|
8
|
+
You are sorting the team memory directory — a **conservative, idempotent** pass that moves files from the team root into its category subdirectories (${Q}) when, and only when, a file unambiguously belongs there. This is NOT a tidy (no duplicate merging) and NOT a dream (no transcripts, no new memories): it only relocates what is already on disk and fixes the index lines that point at it.
|
|
9
|
+
|
|
10
|
+
Team memory directory: \`${q}\`
|
|
11
|
+
|
|
12
|
+
${sJ().join(`
|
|
13
|
+
`)}
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## Step 1 — Orient
|
|
17
|
+
|
|
18
|
+
- Read \`${q}/${_}\` to see the current index
|
|
19
|
+
- \`ls ${q}\` — only the \`.md\` files directly at the root are candidates. Never descend into ${Q} or any other subdirectory: a file already in a category is done.
|
|
20
|
+
- Read every candidate in full — the decision is made on the body, not the title
|
|
21
|
+
|
|
22
|
+
## Step 2 — Classify, conservatively
|
|
23
|
+
|
|
24
|
+
For each root file decide: ${Q}, or **stays**. A file moves only when it clears that category's \`<when_to_save>\` bar as written above AND none of its \`<when_not_to_save>\` applies. A \`feedback\` memory never moves. Anything you are not sure about stays at the root and goes in the report — the root is a valid home, not a failure.
|
|
25
|
+
|
|
26
|
+
Signals worth reading: a \`bugs/\` candidate names a symptom, a location and a status; a \`docs/\` candidate is a pointer (a path, a URL) plus what it covers; a \`decisions/\` candidate records a choice with a why that changed what the project does or how it is structured, or an alternative that was rejected. A process finding, a census, a convention, a roadmap stays where it is.
|
|
27
|
+
|
|
28
|
+
## Step 3 — Move
|
|
29
|
+
|
|
30
|
+
For each file that moves:
|
|
31
|
+
|
|
32
|
+
1. \`mkdir -p ${q}/<category>\` if the subdirectory does not exist yet.
|
|
33
|
+
2. \`git mv ${q}/<file>.md ${q}/<category>/<file>.md\` — \`git mv\`, not \`mv\`, so history follows the file. The user sees a permission prompt for each move; that is intentional — it is their veto.
|
|
34
|
+
3. If the category expects frontmatter the file lacks (\`decisions/\`: \`scope:\` and \`impact:\`), add ONLY those keys, with values you can justify from the body. If you cannot justify them, the file was not an unambiguous fit — leave it at the root instead.
|
|
35
|
+
4. Add \`paths:\` (same syntax as a rule: globs relative to the project root) ONLY when the body names concrete files or a directory — a \`bugs/\` file naming the function's file, a \`docs/\` file covering one subsystem's directory. Never invent a path.
|
|
36
|
+
|
|
37
|
+
Do not rewrite the body. Do not rename the file. Do not merge, split or delete anything.
|
|
38
|
+
|
|
39
|
+
## Step 4 — Update the index (surgical)
|
|
40
|
+
|
|
41
|
+
Edit \`${q}/${_}\` in place:
|
|
42
|
+
|
|
43
|
+
- For each moved file change ONLY its pointer — \`(file.md)\` → \`(<category>/file.md)\` — and move that one line under the matching ${H} heading, creating the heading once (near the top, after any intro) if it does not exist yet.
|
|
44
|
+
- Everything else stays byte-for-byte: other lines, other headings, their order, blank lines. Never reformat, reorder or flatten the rest of the index.
|
|
45
|
+
- The index must stay under ${fq} lines AND under ~${Z}KB — it is an index, never write memory content into it.
|
|
46
|
+
|
|
47
|
+
## Step 5 — Report
|
|
48
|
+
|
|
49
|
+
- **Moved**: \`file.md → category/file.md\`, the one-phrase reason, and any frontmatter you added
|
|
50
|
+
- **Left at root (ambiguous)**: candidates you considered and why they stayed
|
|
51
|
+
- **Frontmatter you could not fill**: files that looked like a fit but whose \`scope\`/\`impact\` you could not justify from the body
|
|
52
|
+
|
|
53
|
+
Hard rules:
|
|
54
|
+
- Only files directly at the team root move — never a private memory, never between subdirectories, never anything outside \`${q}\`.
|
|
55
|
+
- Never create or delete a memory, never rewrite a body, never change a \`name:\` or \`type:\`.
|
|
56
|
+
- A second run over a sorted directory moves nothing — say so; that is the correct outcome.`}var VZ,YZ=1024;var rJ=M(()=>{Iq();eq();VZ=/[/\\]+$/});function oJ(J){return J.replace(LZ,"")}function eJ(J,q){let Z=oJ(J),Q=q===null?null:oJ(q),H=Math.round($q/kZ),X=Q!==null?"skip subdirectories other than the team dir handled separately":"skip all subdirectories",N=Q!==null?`
|
|
57
|
+
## Team memory
|
|
58
|
+
|
|
59
|
+
Also tidy the team memory directory: \`${Q}\`
|
|
60
|
+
|
|
61
|
+
- Apply the exact same orient → identify → merge → update-index steps inside \`${Q}\` (its index is \`${Q}/${_}\`)
|
|
62
|
+
- The team index may have its own structure beyond bare index lines — a \`# Team Memory\` header, an intro blockquote, \`## Section\` groupings. **Preserve all of it**: only touch the individual index lines for files you deleted or renamed, exactly as in the private index. Never reformat, reorder, or flatten the team index's sections.
|
|
63
|
+
- **Never merge across the boundary**: a private memory and a team memory about the same fact stay separate. Do not move content between \`${Z}\` and \`${Q}\`, do not merge a pair that spans the two, and do not "promote" a private memory into team — that is a deliberate user decision, not tidy's job.
|
|
64
|
+
- **Never move a file into \`decisions/\`, \`bugs/\` or \`docs/\`** — filing team memories by category is \`/memory sort\`'s job, not tidy's — and never descend into those subdirectories.
|
|
65
|
+
- Files you change or delete here are git-tracked and reach the team on the next commit — another reason to stay strictly conservative.
|
|
66
|
+
`:"";return`# Memory Tidy: conservative duplicate merge
|
|
67
|
+
|
|
68
|
+
You are tidying the memory directory — a **conservative** pass that merges duplicate memory files and updates the index. This is NOT a dream/consolidation: do not look at transcripts, do not create new memories, do not reorganize by topic, and do not rewrite the content of files that are not duplicates.
|
|
69
|
+
|
|
70
|
+
Memory directory: \`${Z}\`
|
|
71
|
+
${tJ}
|
|
72
|
+
${N}
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Step 1 — Orient
|
|
76
|
+
|
|
77
|
+
- Read \`${Z}/${_}\` to see the current index
|
|
78
|
+
- Read every \`.md\` file in the directory — full contents, not just frontmatter (there are at most a couple hundred; ${X})
|
|
79
|
+
|
|
80
|
+
## Step 2 — Identify duplicates
|
|
81
|
+
|
|
82
|
+
Look for pairs or groups of files that record the **same fact**:
|
|
83
|
+
|
|
84
|
+
- Same topic under different names (e.g. \`feedback-build-after-edit.md\` vs \`always-build-after-source-change.md\`)
|
|
85
|
+
- Near-identical \`description\` frontmatter
|
|
86
|
+
- Heavily overlapping body content
|
|
87
|
+
|
|
88
|
+
Two files that merely **partially overlap** are NOT duplicates: if file A covers facts X+Y and file B covers X+Z, each holds a distinct fact — leave both alone. Only files where one is (nearly) fully redundant with the other qualify.
|
|
89
|
+
|
|
90
|
+
If you are not confident two files describe the same fact, they are NOT duplicates — leave both untouched and list them under "ambiguous pairs" in your report.
|
|
91
|
+
|
|
92
|
+
## Step 3 — Merge (conservatively)
|
|
93
|
+
|
|
94
|
+
For each confirmed duplicate group:
|
|
95
|
+
|
|
96
|
+
1. Pick the survivor: prefer the file with the more complete frontmatter and richer content; on a tie prefer the older file (check mtime with \`ls -l\` — its name is more likely already referenced elsewhere).
|
|
97
|
+
2. Fold the redundant file's content into the survivor. When the two files **conflict factually**, keep BOTH facts (union) and note the contradiction in your report — never silently pick one side.
|
|
98
|
+
3. Keep the survivor's frontmatter \`type\`; refresh its \`description\` only if the merged content demands it. If a file's frontmatter is malformed, skip that file entirely and note it in the report.
|
|
99
|
+
4. Delete the redundant file with \`rm\`. The user will see a permission prompt for each deletion — that is intentional, it is their chance to veto a merge.
|
|
100
|
+
|
|
101
|
+
Hard rules:
|
|
102
|
+
- Never merge across the private ↔ team boundary.
|
|
103
|
+
- Never delete a file that is merely stale, ambiguous, or low-quality — only confirmed duplicates. Stale or wrong content is reported, not fixed.
|
|
104
|
+
- Never create new memory files, and never touch files outside the memory directories.
|
|
105
|
+
|
|
106
|
+
## Step 4 — Update the index (minimal edits, NOT a rewrite)
|
|
107
|
+
|
|
108
|
+
Edit \`${Z}/${_}\` (and the team index if applicable) **in place, surgically**:
|
|
109
|
+
|
|
110
|
+
- Remove only the lines pointing at files you deleted
|
|
111
|
+
- Update the survivor's line only if its title/hook changed
|
|
112
|
+
- Do not reorder, regroup, reformat, or rewrite surviving lines — the rest of the index stays byte-for-byte as it was
|
|
113
|
+
- Format for any line you do touch: \`- [Title](file.md) — one-line hook\`, under ~150 chars
|
|
114
|
+
- The index must stay under ${fq} lines AND under ~${H}KB — it's an index, never write memory content into it
|
|
115
|
+
|
|
116
|
+
## Step 5 — Report
|
|
117
|
+
|
|
118
|
+
Finish with a brief summary:
|
|
119
|
+
|
|
120
|
+
- **Merged**: which files combined into which survivor (X + Y → Z)
|
|
121
|
+
- **Deleted**: files removed
|
|
122
|
+
- **Ambiguous pairs left alone**: candidates you were not confident about, so the user can decide by hand
|
|
123
|
+
- **Conflicts noted**: factual contradictions you kept as union
|
|
124
|
+
- **Stale or broken observed**: outdated content, malformed frontmatter, or anything else you noticed but deliberately did NOT fix (tidy only merges duplicates)
|
|
125
|
+
|
|
126
|
+
If nothing was duplicated, say so — a tidy run that changes nothing is a correct outcome.`}var LZ,kZ=1024;var qQ=M(()=>{Iq();LZ=/[/\\]+$/});function Zq(){if(JQ())return QQ();return null}var sq=M(()=>{DJ()});function ZQ(J){let q=J.trim();return BZ.find((Z)=>Z===q)??null}function aq(J){if(!E())return J("Memory tidy unavailable: auto memory is disabled (autoMemoryEnabled is false, or CLAUDIN_DISABLE_AUTO_MEMORY is set).",{display:"system"}),null;return J("Running memory tidy — merging duplicate memories…",{display:"system",shouldQuery:!0,metaMessages:[eJ(m(),Zq())]}),null}function zQ(J){if(!E())return J("Memory sort unavailable: auto memory is disabled (autoMemoryEnabled is false, or CLAUDIN_DISABLE_AUTO_MEMORY is set).",{display:"system"}),null;let q=Zq();if(q===null)return J("Memory sort unavailable: team memory is not active for this project.",{display:"system"}),null;return J("Running memory sort — filing team memories into decisions/, bugs/ and docs/…",{display:"system",shouldQuery:!0,metaMessages:[aJ(q)]}),null}var BZ;var UQ=M(()=>{nq();rJ();qQ();sq();BZ=["tidy","sort","private","team"]});import{mkdir as FZ,writeFile as OZ}from"fs/promises";import{join as CZ}from"path";async function HQ(){if(!E())return{private:0,team:0};let J=Zq(),[q,Z]=await Promise.all([cq(m()),J===null?Promise.resolve(0):cq(J,{recursive:!0})]);return{private:q,team:Z}}function AZ(J){if(!E())return null;if(J==="team"){let q=Zq();return q===null?null:{dir:q,title:"Team memory",isTeamDir:!0}}return{dir:m(),title:"Private memory",isTeamDir:!1}}function vZ({onDone:J,initialCounts:q,initialBrowse:Z}){let[Q,H]=zq.useState(q),[X,N]=zq.useState(Z),D=async(L)=>{try{if(L.includes(Gq()))await FZ(Gq(),{recursive:!0});try{await OZ(L,"",{encoding:"utf8",flag:"wx"})}catch(l){if(XQ(l)!=="EEXIST")throw l}await _q(L);let F="default",I="";if(process.env.VISUAL)F="$VISUAL",I=process.env.VISUAL;else if(process.env.EDITOR)F="$EDITOR",I=process.env.EDITOR;let O=F!=="default"?`Using ${F}="${I}".`:"",$=O?`> ${O} To change editor, set $EDITOR or $VISUAL environment variable.`:"> To use a different editor, set the $EDITOR or $VISUAL environment variable.";J(`Opened memory file at ${nJ(L)}
|
|
127
|
+
|
|
128
|
+
${$}`,{display:"system"})}catch(F){Jq(F),J(`Error opening memory file: ${F}`)}},f=zq.useCallback((L)=>{if(L===Kq){aq(J);return}let F=qJ(L);if(F!==null){N(F);return}D(L)},[J]),Uq=zq.useCallback(()=>{N(null),HQ().then(H,Jq)},[]),p=()=>{J("Cancelled memory editing",{display:"system"})};return U(KQ,{title:"Memory",onCancel:p,color:"remember",isCancelActive:X===null,hideInputGuide:X!==null,children:X!==null?U(AJ,{dir:X.dir,title:X.title,indexPath:CZ(X.dir,_),isTeamDir:X.isTeamDir,onBack:Uq}):V(v,{flexDirection:"column",children:[U(GQ.Suspense,{fallback:null,children:U(uJ,{onSelect:f,onCancel:p,dirCounts:Q})}),U(v,{marginTop:1,children:V(G,{dimColor:!0,children:["Learn more: ",U(WQ,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var GQ,zq,zz=async(J,q,Z)=>{let Q=ZQ(Z);if(Q==="tidy")return aq(J);if(Q==="sort")return zQ(J);VQ();let[,H]=await Promise.all([Eq(),HQ()]),X=Q===null?null:AZ(Q);return U(vZ,{onDone:J,initialCounts:H,initialBrowse:X})};var bZ=M(()=>{NZ();vJ();dJ();iJ();Mq();mJ();Iq();nq();Sq();$J();UJ();WJ();CJ();UQ();sq();y();GQ=Qq(Rq(),1),zq=Qq(Rq(),1)});bZ();export{zz as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A3 as z,B3 as A,C3 as B,D3 as C,E3 as D,b3 as a,c3 as b,d3 as c,e3 as d,f3 as e,g3 as f,h3 as g,i3 as h,j3 as i,k3 as j,l3 as k,m3 as l,n3 as m,o3 as n,p3 as o,q3 as p,r3 as q,s3 as r,t3 as s,u3 as t,v3 as u,w3 as v,x3 as w,y3 as x,z3 as y}from"./cli-1.1.36-s8jcsdgb.mjs";import"./cli-1.1.36-65fkb20j.mjs";import"./cli-1.1.36-8mc299mk.mjs";import"./cli-1.1.36-b0rge62y.mjs";import"./cli-1.1.36-0qdd3hmz.mjs";import"./cli-1.1.36-0d7qj290.mjs";import"./cli-1.1.36-rqhp2xt1.mjs";import"./cli-1.1.36-xs4p38vb.mjs";import"./cli-1.1.36-tda1q99k.mjs";import"./cli-1.1.36-t6sjxpcb.mjs";import"./cli-1.1.36-6q7sfj4e.mjs";import"./cli-1.1.36-m11p0exg.mjs";import"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-ss62b517.mjs";import"./cli-1.1.36-jqn2tez7.mjs";import"./cli-1.1.36-6yqvdwyp.mjs";import"./cli-1.1.36-jpcwwd65.mjs";import"./cli-1.1.36-n5etyd9m.mjs";import"./cli-1.1.36-6g1w2zbr.mjs";import"./cli-1.1.36-0qtyffhw.mjs";import"./cli-1.1.36-bsfazmtt.mjs";import"./cli-1.1.36-cm2kys6t.mjs";import"./cli-1.1.36-s9ar9y3g.mjs";import"./cli-1.1.36-c4pkjm54.mjs";D();export{x as resolveSkillModelOverride,v as renderModelName,p as renderDefaultModelSetting,w as parseUserSpecifiedModel,B as normalizeModelStringForAPI,C as modelRejectsSamplingParams,z as modelDisplayString,t as isOpus1mMergeEnabled,b as isNonCustomOpusModel,c as isNative1mModel,y as isLegacyModelRemapEnabled,d as getUserSpecifiedModelSetting,a as getSmallFastModel,j as getRuntimeMainLoopModel,u as getPublicModelDisplayName,r as getOpus5PricingSuffix,s as getOpus55PricingSuffix,q as getOpus46PricingSuffix,A as getMarketingNameForModel,e as getMainLoopModel,h as getDefaultSonnetModel,g as getDefaultOpusModel,k as getDefaultMainLoopModelSetting,l as getDefaultMainLoopModel,i as getDefaultHaikuModel,o as getClaudeAiUserDefaultModelDescription,n as getCanonicalName,f as getBestModel,m as firstPartyNameToCanonical};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import"./cli-1.1.36-gfx5kkq4.mjs";import{Ug as Yq,Vg as hq,Wg as v,Xg as wq}from"./cli-1.1.36-2720p0e9.mjs";import"./cli-1.1.36-sd51t79y.mjs";import"./cli-1.1.36-5nkv3yj2.mjs";import{GB as g,IB as M,JB as jq,KB as t,LB as i,MB as Pq,NB as m,OB as s,PB as Tq,PN as a,QN as yq,kO as B,lO as u,nO as cq,vB as Wq,wB as Xq,xB as Dq}from"./cli-1.1.36-v0s0vqmm.mjs";import"./cli-1.1.36-c4k9g1dk.mjs";import"./cli-1.1.36-659qh6fs.mjs";import"./cli-1.1.36-zey2drb2.mjs";import"./cli-1.1.36-6jv1ss2p.mjs";import"./cli-1.1.36-v5nxnkwj.mjs";import"./cli-1.1.36-1dhxpexj.mjs";import"./cli-1.1.36-f6yxszv5.mjs";import"./cli-1.1.36-ahr5fnjy.mjs";import"./cli-1.1.36-3mmakdzj.mjs";import"./cli-1.1.36-rh00pabh.mjs";import"./cli-1.1.36-40x4f5k7.mjs";import{MV as vq}from"./cli-1.1.36-4ssz80b2.mjs";import"./cli-1.1.36-72sph7cp.mjs";import"./cli-1.1.36-wfgjsqkk.mjs";import"./cli-1.1.36-1yk5zdh0.mjs";import"./cli-1.1.36-zd032ger.mjs";import"./cli-1.1.36-zax3mr51.mjs";import"./cli-1.1.36-7z5n90ex.mjs";import"./cli-1.1.36-p0w1dm9g.mjs";import"./cli-1.1.36-p7w1197h.mjs";import"./cli-1.1.36-3kd43x1y.mjs";import"./cli-1.1.36-7tprmtpr.mjs";import{c1 as T,e1 as d}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as uq}from"./cli-1.1.36-apycha28.mjs";import"./cli-1.1.36-p375v620.mjs";import{$2 as z,B2 as j,E1 as Bq,E3 as Oq,F1 as Q,G2 as F,H1 as Eq,H3 as Uq,J3 as Fq,P2 as Lq,Z2 as x,_2 as f,a3 as p,l3 as Kq,q3 as Rq,u3 as N,v2 as A,w2 as L,z1 as C}from"./cli-1.1.36-s8jcsdgb.mjs";import"./cli-1.1.36-65fkb20j.mjs";import{D5 as I,E5 as Vq}from"./cli-1.1.36-8mc299mk.mjs";import"./cli-1.1.36-b0rge62y.mjs";import"./cli-1.1.36-0qdd3hmz.mjs";import"./cli-1.1.36-mam7e8zn.mjs";import"./cli-1.1.36-5zzwcyt7.mjs";import"./cli-1.1.36-451x9avw.mjs";import"./cli-1.1.36-7xx3rm4x.mjs";import"./cli-1.1.36-0d7qj290.mjs";import"./cli-1.1.36-n9knhbs6.mjs";import"./cli-1.1.36-rqhp2xt1.mjs";import"./cli-1.1.36-xs4p38vb.mjs";import"./cli-1.1.36-tda1q99k.mjs";import"./cli-1.1.36-hvnr6rta.mjs";import{G$ as o,_da as xq,afa as O,fea as e,gfa as Aq,tea as qq,uea as Gq,wea as zq}from"./cli-1.1.36-t6sjxpcb.mjs";import"./cli-1.1.36-6q7sfj4e.mjs";import"./cli-1.1.36-m11p0exg.mjs";import"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-ss62b517.mjs";import{oha as Hq,pha as Jq,qha as Cq}from"./cli-1.1.36-jqn2tez7.mjs";import"./cli-1.1.36-6yqvdwyp.mjs";import"./cli-1.1.36-jpcwwd65.mjs";import"./cli-1.1.36-n5etyd9m.mjs";import{Nia as h,Oia as w,Ria as $,Sia as S,fja as kq}from"./cli-1.1.36-6g1w2zbr.mjs";import"./cli-1.1.36-0qtyffhw.mjs";import"./cli-1.1.36-bsfazmtt.mjs";import"./cli-1.1.36-cm2kys6t.mjs";import"./cli-1.1.36-s9ar9y3g.mjs";import{Npa as l,Rpa as c}from"./cli-1.1.36-c4pkjm54.mjs";async function n(G){let q=G.trim();if(!q)return{valid:!1,error:"Model name cannot be empty"};if(C()==="openai"&&g()){let H=M();if(H.some((U)=>U.value===q))return P.set(q,!0),{valid:!0};if(H.length>0){let W=H.map((X)=>X.value),R=W.slice(0,5).join(", "),Y=W.length>5?` and ${W.length-5} more`:"";return{valid:!1,error:`Model '${q}' not found on Ollama server. Available: ${R}${Y}`}}}if(t()){let H=i();if(H.some((U)=>U.value===q))return P.set(q,!0),{valid:!0};if(H.length>0){let W=H.map((X)=>X.value),R=W.slice(0,5).join(", "),Y=W.length>5?` and ${W.length-5} more`:"";return{valid:!1,error:`Model '${q}' not found in NVIDIA NIM catalog. Available: ${R}${Y}`}}}if(m()){let H=s();if(H.some((U)=>U.value===q))return P.set(q,!0),{valid:!0};if(H.length>0){let W=H.map((X)=>X.value),R=W.slice(0,5).join(", "),Y=W.length>5?` and ${W.length-5} more`:"";return{valid:!1,error:`Model '${q}' not found in MiniMax catalog. Available: ${R}${Y}`}}}if(!z(q))return{valid:!1,error:`Model '${q}' is not in the list of available models`};let K=q.toLowerCase();if(x.includes(K))return{valid:!0};if(q===process.env.ANTHROPIC_CUSTOM_MODEL_OPTION)return{valid:!0};if(P.has(q))return{valid:!0};try{return await a({model:q,max_tokens:1,maxRetries:0,messages:[{role:"user",content:[{type:"text",text:"Hi",cache_control:{type:"ephemeral"}}]}]}),P.set(q,!0),{valid:!0}}catch(H){return Nq(H,q)}}function Nq(G,q){if(S(G)){let H=_q(q),J=H?`. Try '${H}' instead`:"";return{valid:!1,error:`Model '${q}' not found${J}`}}if(h(G)){if($(G))return{valid:!1,error:"Authentication failed. Please check your API credentials."};if(w(G))return{valid:!1,error:"Network error. Please check your internet connection."};let H=G.error;if(H&&typeof H==="object"&&"type"in H&&H.type==="not_found_error"&&"message"in H&&typeof H.message==="string"&&H.message.includes("model:"))return{valid:!1,error:`Model '${q}' not found`};return{valid:!1,error:`API error: ${G.message}`}}return{valid:!1,error:`Unable to validate model: ${G instanceof Error?G.message:String(G)}`}}function _q(G){if(C()==="firstParty")return;let q=G.toLowerCase();if(q.includes("fable-5")||q.includes("fable_5"))return Q().opus48;if(q.includes("opus-5-5")||q.includes("opus_5_5"))return Q().opus5;if(q.includes("opus-5")||q.includes("opus_5"))return Q().opus48;if(q.includes("opus-4-8")||q.includes("opus_4_8"))return Q().opus47;if(q.includes("opus-4-7")||q.includes("opus_4_7"))return Q().opus46;if(q.includes("opus-4-6")||q.includes("opus_4_6"))return Q().opus41;if(q.includes("sonnet-5")||q.includes("sonnet_5"))return Q().sonnet46;if(q.includes("sonnet-4-6")||q.includes("sonnet_4_6"))return Q().sonnet45;if(q.includes("sonnet-4-5")||q.includes("sonnet_4_5"))return Q().sonnet40;return}var P;var r=c(()=>{f();p();Bq();yq();kq();Eq();jq();Pq();Tq();P=new Map});function $q(G){let q=Zq.c(17),{onDone:K}=G,H=B(gq),J=B(pq),U=B(fq),W=u(),R;if(q[0]!==H||q[1]!==K)R=function(){let E=y(H);K(`Kept model as ${I.bold(E)}`,{display:"system"})},q[0]=H,q[1]=K,q[2]=R;else R=q[2];let Y=R,X;if(q[3]!==U||q[4]!==H||q[5]!==K||q[6]!==W)X=function(E,D){W((Iq)=>({...Iq,mainLoopModel:E,mainLoopModelForSession:null}));let b=`Set model to ${I.bold(y(E))}`;if(D!==void 0)b=b+` with ${I.bold(D)} effort`;let V=void 0;if(A()){if(F(),!j(E)&&U)W(Sq),V=!1;else if(j(E)&&L()&&U)b=b+" · Fast mode ON",V=!0}if(v(E,V===!0,N()))b=b+" · Billed as extra usage";if(V===!1)b=b+" · Fast mode OFF";K(b)},q[3]=U,q[4]=H,q[5]=K,q[6]=W,q[7]=X;else X=q[7];let k=X,Z;if(q[8]!==U||q[9]!==H)Z=A()&&U&&j(H)&&L(),q[8]=U,q[9]=H,q[10]=Z;else Z=q[10];let _;if(q[11]!==Y||q[12]!==k||q[13]!==H||q[14]!==J||q[15]!==Z)_=T(Yq,{initial:H,sessionModel:J,onSelect:k,onCancel:Y,isStandaloneCommand:!0,showFastModeNotice:Z}),q[11]=Y,q[12]=k,q[13]=H,q[14]=J,q[15]=Z,q[16]=_;else _=q[16];return _}function Sq(G){return{...G,fastMode:!1}}function fq(G){return G.fastMode}function pq(G){return G.mainLoopModelForSession}function gq(G){return G.mainLoopModel}function Mq({args:G,onDone:q}){let K=B((U)=>U.fastMode),H=u(),J=G==="default"?null:G;return Qq.useEffect(()=>{async function U(){if(J&&!z(J)){q(`Model '${J}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(J&&iq(J)){q("Opus with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(J&&mq(J)){q("Sonnet 4.6 with 1M context is not available for your account. Learn more: https://code.claude.com/docs/en/model-config#extended-context-with-1m",{display:"system"});return}if(!J){W(null);return}if(tq(J)){W(J);return}try{let{valid:R,error:Y}=await n(J);if(R)W(J);else q(Y||`Model '${J}' not found`,{display:"system"})}catch(R){q(`Failed to validate model: ${R.message}`,{display:"system"})}}function W(R){H((Z)=>({...Z,mainLoopModel:R,mainLoopModelForSession:null}));let Y=R?I.dim(" · for this project"):"",X=`Set model to ${I.bold(y(R))}${Y}`,k=void 0;if(A()){if(F(),!j(R)&&K)H((Z)=>({...Z,fastMode:!1})),k=!1;else if(j(R)&&K)X+=" · Fast mode ON",k=!0}if(v(R,k===!0,N()))X+=" · Billed as extra usage";if(k===!1)X+=" · Fast mode OFF";q(X)}U()},[J,q,H]),null}function tq(G){return x.includes(G.toLowerCase().trim())}function iq(G){let q=G.toLowerCase();return!Wq()&&!N()&&q.includes("opus")&&q.includes("[1m]")}function mq(G){let q=G.toLowerCase();return!Xq()&&!N()&&(q.includes("sonnet[1m]")||q.includes("sonnet-4-6[1m]"))}function sq(G){let{onDone:q}=G,K=B(rq),H=B(nq),J=B(aq),U=y(K),W=J!==void 0?` (effort: ${J})`:"",R=o(),X=(R.activeModelForProject?R.activeModelForProjectProfileId===void 0||R.activeModelForProjectProfileId===e()?.id:!1)?I.dim(" (project)"):"";if(H)q(`Current model: ${I.bold(y(H))} (session override from plan mode)
|
|
2
|
+
Base model: ${U}${X}${W}`);else q(`Current model: ${U}${X}${W}`);return null}function aq(G){return G.effortValue}function nq(G){return G.mainLoopModelForSession}function rq(G){return G.mainLoopModel}function dq(G,q){if(G.length!==q.length)return!1;return G.every((K,H)=>{let J=q[H];return J!==void 0&&K.value===J.value&&K.label===J.label&&K.description===J.description&&K.descriptionForModel===J.descriptionForModel})}async function lq(){if(!O()?.startsWith("openai:"))return;try{let G=await Uq();if(G.length===0)return;let q=qq();if(dq(q,G))return;Gq(G)}catch{}}function y(G){let q=Rq(G??Kq());return G===null?`${q} (default)`:q}var Zq,Qq,xG=async(G,q,K)=>{if(K=K?.trim()||"",Jq.includes(K))return T(sq,{onDone:G});if(Hq.includes(K)){G("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(K)return T(Mq,{args:K,onDone:G});if(O()?.startsWith("openai:"))lq();return T($q,{onDone:G})};var oq=c(()=>{Vq();hq();Cq();cq();xq();wq();Lq();f();Dq();Fq();zq();Oq();p();r();Aq();d();Zq=l(vq(),1),Qq=l(uq(),1)});oq();export{xG as call};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{T7 as nQ,U7 as S,V7 as F,X7 as W,Y7 as bQ,Z7 as iQ,_7 as HQ}from"./cli-1.1.36-vdy55pxe.mjs";import{Apa as mQ,Bpa as M1,cpa as N,dpa as K,epa as N0,fpa as O,mpa as xQ,npa as Q0,opa as j0,ppa as $0,qpa as UQ,rpa as lQ,spa as x,tpa as H1,upa as D,vpa as hQ,wpa as MQ,xpa as I0,ypa as B0,zpa as k0}from"./cli-1.1.36-s9ar9y3g.mjs";import{Rpa as n}from"./cli-1.1.36-c4pkjm54.mjs";function g(J){if(J.inputSchema.type!=="object")throw Error(`JSON schema for tool "${J.name}" must be an object, but got ${J.inputSchema.type}`);return{type:"custom",name:J.name,input_schema:J.inputSchema,description:J.description,run:J.run,parse:(Q)=>Q,...J.close?{close:J.close}:{}}}var _Q=()=>{};function YQ(J,Q){let $=W.relative(J,Q);return $===""||!$.startsWith(".."+W.sep)&&$!==".."&&!W.isAbsolute($)}async function RQ(J,Q){for(let $ of J)if(YQ(await t(W.resolve($)),Q))return $;return}function QQ(J){let Q=J?.code;return typeof Q==="string"?Q:void 0}async function t(J){let Q=[],$=J,q=0;for(;;){let V;try{V=await u.realpath($)}catch(z){let Z;try{Z=(await u.lstat($)).isSymbolicLink()}catch(X){let Y=QQ(X);if(Y!=="ENOENT"&&Y!=="ENOTDIR")throw X;let U=W.dirname($);if(U===$)throw X;Q.push(W.basename($)),$=U;continue}if(!Z)throw z;if(++q>_0)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});$=W.resolve(W.dirname($),await u.readlink($));continue}return Q.length?W.join(V,...Q.reverse()):V}}async function dQ(J,Q,$){let q=$?.allowedRoots??[],V=await t(W.resolve(J)),z;try{z=await t(W.resolve(V,Q))}catch(X){throw new D(i(X,`path ${JSON.stringify(Q)}`))}if(YQ(V,z)||await RQ(q,z)!==void 0)return z;let Z=q.length?"the session's working directory and its other permitted directories":"the session's working directory";throw new D(`path ${JSON.stringify(Q)} is outside ${Z}`)}async function yQ(J,Q){let $=W.dirname(J),q=W.join($,`.tmp-${process.pid}-${S.randomUUID()}`),V=await u.stat(J).then((Z)=>Z.mode&511,()=>{return}),z;try{if(z=await u.open(q,"wx",p0),V!==void 0)await z.chmod(V);await z.writeFile(Q,"utf-8"),await z.sync(),await z.close(),z=void 0,await u.rename(q,J)}catch(Z){if(z)await z.close().catch(()=>{});throw await u.unlink(q).catch(()=>{}),Z}}function i(J,Q){let $=QQ(J);switch($){case"ENOENT":return`${Q}: no such file or directory`;case"EACCES":case"EPERM":return`${Q}: permission denied`;case"ENOTDIR":return`${Q}: not a directory`;case"EISDIR":return`${Q}: is a directory`;case"ELOOP":return`${Q}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${Q}: file name too long`;case"ENOSPC":return`${Q}: no space left on device`;case"EMFILE":case"ENFILE":return`${Q}: too many open files`;default:return`${Q}: ${$!==void 0?`i/o error (${$})`:"i/o error"}`}}var u,e=448,p0=384,_0=40;var LQ=n(()=>{HQ();hQ();u=F.promises});async function d0(J){let{client:Q,sessionId:$}=J;if(!Q)return async()=>{};let q=UQ(Q),V=J.session;if(!V){if($===void 0)return async()=>{};q.warn("AgentToolContext.sessionId is deprecated and costs an extra session fetch; fetch the session once and set `session` instead",{component:"agent-tool-context"}),V=await Q.beta.sessions.retrieve($)}let z=W.resolve(J.workdir,"skills"),Z=[];for(let X of V.agent.skills)try{let Y=await Q.beta.skills.versions.retrieve(X.version,{skill_id:X.skill_id}),U=W.basename(Y.name.trim());if(U===""||U==="."||U==="..")U=X.skill_id;let H=W.resolve(z,U);if(H!==z&&!H.startsWith(z+W.sep)){q.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:Y.name});continue}let I=await Q.beta.skills.versions.download(Y.id,{skill_id:X.skill_id});await y.rm(H,{recursive:!0,force:!0}),await y.mkdir(H,{recursive:!0,mode:e}),Z.push(H),await oQ(I,H),q.info("downloaded skill",{component:"agent-tool-context",skill_id:X.skill_id,version:Y.id,dest:H})}catch(Y){q.warn("failed to download skill",{component:"agent-tool-context",skill_id:X.skill_id,error:String(Y)})}return async()=>{for(let X of Z)await y.rm(X,{recursive:!0,force:!0}).catch((Y)=>{q.warn("failed to clean up skill",{component:"agent-tool-context",dest:X,error:String(Y)})})}}function c0(J){for(let Q of J){let $=Q.trim();if(!$)continue;if(W.isAbsolute($)||$.split(/[\\/]/).includes(".."))throw new O(`refusing to extract unsafe archive member: ${$}`)}}function cQ(J){let Q=J.split(`
|
|
2
|
+
`);if(Q[Q.length-1]==="")Q.pop();return Q}function i0(J,Q){return/^[\x20-\x7E]+$/.test(Q)&&!/[\\^#]/.test(Q)&&!(J==="unzip"&&Q.startsWith("-"))}function l0(J,Q,$){let q=cQ(Q),V=cQ($);if(q.length!==V.length)throw new O(EQ);let z=[],Z=[];return q.forEach((X,Y)=>{if(n0[J].has(V[Y].charAt(0))){z.push(X);return}if(!i0(J,X))throw new O(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(X)}`);Z.push(X)}),{plain:z,special:Z}}async function aQ(J){for(let Q of await y.readdir(J,{withFileTypes:!0}))if(Q.isDirectory())await aQ(W.join(J,Q.name));else if(!Q.isFile())throw new O(EQ)}async function TQ(J,Q){try{let{stdout:$}=await h0(J,Q);return $}catch($){if(QQ($)==="ENOENT")throw new O(`skill extraction requires the \`${J}\` command, but it was not found on PATH`);throw $}}function a0(J){let Q,$=!1;for(let q of J){let V=q.trim().split("/").filter((Z)=>Z!==""&&Z!==".");if(V.length===0)continue;let z=V[0];if(Q===void 0)Q=z;else if(z!==Q)return"";if(V.length>1)$=!0}return Q!==void 0&&$?Q:""}async function oQ(J,Q){let $=W.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!J.body)throw new O("skill download response had no body");await bQ.promises.pipeline(bQ.Readable.fromWeb(J.body),F.createWriteStream($));let q=W.join(W.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`),V=W.join(W.dirname(Q),`.skill-exclude-${process.pid}-${Date.now()}`);try{let z=await s0($,4),Z=z.length>=4&&z[0]===80&&z[1]===75&&z[2]===3&&z[3]===4,X=Z?"unzip":"tar",Y=await TQ(X,Z?["-Z1",$]:["-tf",$]),U=await TQ(X,Z?["-Z","--h","--t",$]:["-tvf",$]),{plain:H,special:I}=l0(X,Y,U);c0([...H,...I]);let A=a0(H);if(await y.mkdir(q,{recursive:!0,mode:e}),H.length>0)await TQ(X,await o0(X,$,q,I,V));await aQ(q);let T=A?W.join(q,A):q,E=await y.readdir(T).catch((b)=>{throw QQ(b)==="ENOENT"?new O(EQ):b});for(let b of E)await y.rename(W.join(T,b),W.join(Q,b))}finally{await y.rm($,{force:!0}),await y.rm(V,{force:!0}),await y.rm(q,{recursive:!0,force:!0})}}async function o0(J,Q,$,q,V){let z=q.map((Z)=>Z.replace(/[*?[\\]/g,"\\$&"));if(J==="unzip")return["-oq",Q,"-d",$,...z.length>0?["-x",...z]:[]];if(z.length===0)return["-xf",Q,"-C",$];return await y.writeFile(V,z.join(`
|
|
3
|
+
`)+`
|
|
4
|
+
`,{flag:"wx",mode:384}),["-xf",Q,"-C",$,"-X",V]}async function s0(J,Q){let $=await y.open(J,"r");try{let q=Buffer.alloc(Q),{bytesRead:V}=await $.read(q,0,Q,0);return q.subarray(0,V)}finally{await $.close()}}var y,h0,EQ="skill archive listing is inconsistent; refusing to extract",n0;var sQ=n(()=>{HQ();xQ();lQ();LQ();y=F.promises,h0=iQ.promisify(nQ.execFile);n0={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])}});function PQ(J){return J.startsWith("/")&&!J.split("/").includes("..")}function Q1(){return vQ!==0}async function $1(J){let Q=[],$=J;for(;;){try{await M.stat($);break}catch(V){let z=V.code;if(z!=="ENOENT"&&z!=="ENOTDIR"&&z!=="ELOOP")throw V}Q.push($);let q=W.dirname($);if(q===$)break;$=q}for(let q of Q.reverse())try{await M.mkdir(q,{mode:J0})}catch(V){if(V.code!=="EEXIST")throw V}}async function rQ(J,Q){let $=W.relative(J,Q);if($==="")return;let q=J;for(let V of $.split(W.sep)){q=W.join(q,V);try{await M.mkdir(q,{mode:J0})}catch(z){if(z.code!=="EEXIST")throw z}}}async function J1(J,Q,$){let q=$?t0:r0,V=W.join(W.dirname(J),`.fs-${S.randomBytes(8).toString("hex")}.tmp`),z;try{z=await M.open(V,l.O_WRONLY|l.O_CREAT|l.O_EXCL|vQ,q),await z.writeFile(Q),await z.close(),z=void 0,await M.rename(V,J)}catch(Z){if(z)await z.close().catch(()=>{});throw await M.unlink(V).catch(()=>{}),Z}}async function V0(J,Q){let $;try{$=await M.open(Q,l.O_RDONLY|vQ|e0)}catch(q){let V=q.code;if(V==="ELOOP"||V==="EMLINK")throw new B(B.IS_A_SYMLINK,J);throw q}try{if(!(await $.stat()).isFile())throw new B(B.NOT_A_FILE,J)}catch(q){throw await $.close().catch(()=>{}),q}return $}async function V1(J){let Q=S.createHash("sha256"),$=await V0(W.basename(J),J),q=new Uint8Array(1048576);try{for(;;){let{bytesRead:V}=await $.read(q,0,q.length);if(V===0)break;Q.update(q.subarray(0,V))}}finally{await $.close()}return Q.digest("hex")}async function tQ(J,Q,$){if(!await z1(Q,$))return[];let q=[];return await q0($,(V,z)=>{if(z.isFile())q.push([W.relative(J,V).split(W.sep).join("/"),V])}),q.sort(),q}async function q1(J,Q,$){let q=(Z)=>W.relative(J,Z).split(W.sep).join("/"),V;try{V=await M.lstat($,{bigint:!0})}catch(Z){let X=Z.code;if(X==="ENOENT"||X==="ENOTDIR")return new Set;throw Z}if(V.isSymbolicLink())return new Set([q($)]);if(!V.isDirectory())throw new B(B.NOT_A_DIRECTORY,Q);let z=new Set;return await q0($,(Z,X)=>{if(X.isSymbolicLink())z.add(q(Z))}),z}async function z1(J,Q){let $;try{$=await M.lstat(Q,{bigint:!0})}catch(q){let V=q.code;if(V==="ENOENT"||V==="ENOTDIR")return!1;throw q}if(!$.isDirectory())throw new B(B.NOT_A_DIRECTORY,J);return!0}async function q0(J,Q){let $=[J];while($.length){let q=$.pop(),V;try{V=await M.readdir(q,{withFileTypes:!0})}catch(z){if(z.code==="ENOENT")continue;throw z}for(let z of V){let Z=W.join(q,z.name);if(Q(Z,z),z.isDirectory()&&!z.isSymbolicLink())$.push(Z)}}}function K1(J,Q){return Q.mtimeNs===J.mtimeNs&&Q.ctimeNs===J.ctimeNs&&Q.size===J.size}function Z1(J,Q){return(J.mtimeNs>J.ctimeNs?J.mtimeNs:J.ctimeNs)<Q-WQ.timestampTrustMarginNs}var M,l,J0=448,r0=384,t0=448,vQ,e0,B,FQ,X1=2000000000n,WQ,z0,eQ;var K0=n(()=>{HQ();$0();M=F.promises,l=F.constants,vQ=l.O_NOFOLLOW??0,e0=l.O_NONBLOCK??0,B=(()=>{class J extends Error{constructor(Q,$){super(`path ${JSON.stringify($)} ${Q}`);this.name="FileStoreError",this.reason=Q,this.relPath=$}}return J.ESCAPES_ROOT="escapes the store root",J.IS_A_SYMLINK="is a symlink",J.NOT_A_FILE="is not a regular file",J.NOT_A_DIRECTORY="is not a directory",J.NOT_UTF8="is not valid utf-8",J.MOVE_DESTINATION_EXISTS="already exists",J})();FQ=(()=>{class J{constructor(Q,$,q=!1){this.hashes=new Map,this.rootPath=Q,this.removedOnDispose=$,this.decoder=q?new TextDecoder("utf-8",{fatal:!0}):void 0}static async open(Q,$){if(!Q1())throw Error("FileStore requires O_NOFOLLOW support on this platform");let q=!1;try{await M.lstat(Q)}catch(V){if(V.code!=="ENOENT")throw V;q=!0}return new J(W.resolve(Q),q,$?.utf8??!1)}async createRoot(){await $1(this.rootPath)}root(){return{path:this.rootPath,removedOnDispose:this.removedOnDispose}}async dispose(){if(!this.removedOnDispose)return;await M.rm(this.rootPath,{recursive:!0,force:!0})}async put(Q,$,q){let V=Q.replace(/\\/g,"/");if(V.endsWith("/")||V.endsWith("/.")||V===""||V===".")throw new B(B.NOT_A_FILE,Q);let z=this.resolveUnderRoot(Q),Z=typeof $==="string"?Q0($):$;this.requireUtf8(Q,Z),await rQ(this.rootPath,W.dirname(z)),await J1(z,Z,q?.executable??!1)}async get(Q){let $=this.resolveUnderRoot(Q),q;try{q=await V0(Q,$)}catch(z){if(z.code==="ENOENT")return null;throw z}let V;try{let z=await q.readFile();V=new Uint8Array(z.buffer,z.byteOffset,z.byteLength)}finally{await q.close()}return this.requireUtf8(Q,V),V}async ls(Q="/"){let $=this.resolveUnderRoot(Q);return new Set((await tQ(this.rootPath,Q,$)).map(([q])=>q))}async findSymlinks(Q="/"){let $=this.resolveUnderRoot(Q);return q1(this.rootPath,Q,$)}async hashtree(Q="/"){let $=this.resolveUnderRoot(Q),q=WQ.nowNs(),V=Object.create(null);for(let[z,Z]of await tQ(this.rootPath,Q,$)){let X=await this.hashViaCache(z,Z,q);if(X!==null)V[z]=X}return V}async hashFile(Q){let $=this.resolveUnderRoot(Q),q;try{q=await M.lstat($,{bigint:!0})}catch(z){if(z.code==="ENOENT")return null;throw z}if(q.isSymbolicLink())throw new B(B.IS_A_SYMLINK,Q);if(!q.isFile())throw new B(B.NOT_A_FILE,Q);let V=W.relative(this.rootPath,$).split(W.sep).join("/");return this.hashViaCache(V,$,WQ.nowNs())}async move(Q,$){let q=this.resolveUnderRoot(Q),V=this.resolveUnderRoot($);if(q===this.rootPath||V===this.rootPath)return;if(await M.stat(V).then(()=>!0,()=>!1))throw new B(B.MOVE_DESTINATION_EXISTS,$);await rQ(this.rootPath,W.dirname(V)),await M.rename(q,V)}async remove(Q){let $=this.resolveUnderRoot(Q);if($===this.rootPath)return;let q;try{q=await M.lstat($,{bigint:!0})}catch(V){if(V.code==="ENOENT")return;throw V}if(q.isDirectory())await M.rm($,{recursive:!0,force:!0});else try{await M.unlink($)}catch(V){if(V.code!=="ENOENT")throw V}}resolveUnderRoot(Q){let $=Q.replace(/\\/g,"/").replace(/^\/+/,""),q=$.split("/").filter((V)=>V!==""&&V!==".");if(W.posix.isAbsolute($)||q.includes(".."))throw new B(B.ESCAPES_ROOT,Q);return q.length===0?this.rootPath:W.join(this.rootPath,...q)}requireUtf8(Q,$){if(!this.decoder)return;try{this.decoder.decode($)}catch{throw new B(B.NOT_UTF8,Q)}}async hashViaCache(Q,$,q){let V;try{V=await M.lstat($,{bigint:!0})}catch(X){if(X.code==="ENOENT")return null;throw X}if(!V.isFile())return null;let z=this.hashes.get(Q),Z;if(z!==void 0&&K1(z,V))Z=z.sha;else try{Z=await WQ.hashFile($)}catch(X){let Y=X.code;if(Y==="ENOENT"||X instanceof B)return null;if(Y==="ELOOP"||Y==="EMLINK")return null;throw X}if(Z1(V,q))this.hashes.set(Q,{mtimeNs:V.mtimeNs,ctimeNs:V.ctimeNs,size:V.size,sha:Z});return Z}}return J.isPathLegal=PQ,J})();WQ={hashFile:V1,timestampTrustMarginNs:X1,nowNs:()=>BigInt(Date.now())*1000000n},z0=FQ,eQ=Symbol.asyncDispose;if(eQ)Object.defineProperty(FQ.prototype,eQ,{value:FQ.prototype.dispose,configurable:!0,writable:!0})});function D0(J){return S.createHash("sha256").update(`version ${O0}
|
|
5
|
+
${J}`,"utf-8").digest("hex")}class w0{constructor(J,Q,$){this.mode=J,this.cap=Q,this.waiveWindow=$,this.attempted=0,this.capped=0,this.suppressed=0}takeSlot(){if(this.attempted>=this.cap)return this.capped++,!1;return this.attempted++,!0}}class G0{constructor(J,Q){k.add(this),P.set(this,void 0),BQ.set(this,void 0),$Q.set(this,void 0),kQ.set(this,void 0),j.set(this,void 0),a.set(this,void 0),jQ.set(this,!1),v.set(this,[]),N(this,P,J,"f"),N(this,BQ,Q.workdir,"f"),N(this,$Q,Q.syncIntervalMs??MQ,"f"),B0(K(this,$Q,"f"),"syncIntervalMs"),N(this,kQ,Q.syncDeletions??"enabled","f"),N(this,j,UQ(J),"f"),N(this,a,Date.now(),"f")}get roots(){return K(this,v,"f").map((J)=>J.files.root().path)}get readOnlyRoots(){return K(this,v,"f").filter((J)=>J.readOnly).map((J)=>J.files.root().path)}async download(J){for(let Q of J.resources){if(Q.type!=="memory_store")continue;let $=K(this,k,"m",M0).call(this,Q),q;try{if(q={memoryStoreId:Q.memory_store_id,files:await z0.open($,{utf8:!0}),readOnly:Q.access==="read_only",baseline:new Map,refusedShas:new Map,pendingDeletes:new Map},!q.files.root().removedOnDispose)throw new m(`something already exists at the memory store's path: ${$} (memory_store_id=${Q.memory_store_id}); it must not exist when the session starts`);try{await q.files.createRoot()}catch(V){if(!s(V))throw V;throw new m(`cannot create the memory store's folder: ${$} (memory_store_id=${Q.memory_store_id}): ${V}; the worker host must make this mount path writable`,V)}await K(this,k,"m",uQ).call(this,q),K(this,j,"f").info("downloaded memories",{count:q.baseline.size,memory_store_id:q.memoryStoreId,dest:q.files.root().path}),K(this,v,"f").push(q)}catch(V){if(q)await q.files.dispose().catch(()=>{});if(V instanceof m)throw V;throw new m(`failed to download memory store memory_store_id=${Q.memory_store_id}: ${V}`,V)}}N(this,a,Date.now(),"f")}async finish(){if(K(this,jQ,"f"))throw new O("finish() was already called: it is the session's last sync and runs once");N(this,jQ,!0,"f"),await this.syncAll(!0)}async syncAll(J){await Promise.all(K(this,v,"f").map((Q)=>K(this,k,"m",A0).call(this,Q,J))),N(this,a,Date.now(),"f")}async syncIfDue(){if(Date.now()-K(this,a,"f")<K(this,$Q,"f"))return;await this.syncAll(!1)}async flushWrites(J){await Promise.all(K(this,v,"f").map((Q)=>K(this,k,"m",C0).call(this,Q,J)))}async dispose(){for(let J of K(this,v,"f")){let Q=J.files.root();try{let $=await K(this,k,"m",IQ).call(this,J);if(!$.markerOk&&Object.keys($.files).length>0){K(this,j,"f").warn(`${$.distrustReason}; leaving the memory store folder on disk`,{root:Q.path,memory_store_id:J.memoryStoreId});continue}await J.files.dispose()}catch($){if(!($ instanceof B)&&!s($))throw $;K(this,j,"f").warn("failed to remove the memory store folder",{root:J.files.root().path,memory_store_id:J.memoryStoreId,error:String($)});continue}if(Q.removedOnDispose)K(this,j,"f").info("removed memory store dir",{dest:Q.path,memory_store_id:J.memoryStoreId})}}}function s(J){return typeof J==="object"&&J!==null&&typeof J.code==="string"}async function k1(J,Q){if(!Q){await J;return}let $,q=new Promise((V)=>{if($=V,Q.aborted)V()});Q.addEventListener("abort",$,{once:!0});try{await Promise.race([J,q])}finally{Q.removeEventListener("abort",$)}}var k,P,BQ,$Q,kQ,j,a,jQ,v,M0,IQ,A0,C0,fQ,uQ,Z0,X0,gQ,H0,Y0,DQ,NQ,U0,W0,Y1=30000,o=".anthropic-memory-store",O0=1,U1=30000,W1=100,D1=20,N1=16,j1=32,I1=8,B1=50,m;var R0=n(()=>{N0();HQ();xQ();lQ();$0();H1();K0();k0();k0();m=class m extends O{constructor(J,Q){super(J);if(this.name="SessionMemoryError",Q!==void 0)this.cause=Q}};P=new WeakMap,BQ=new WeakMap,$Q=new WeakMap,kQ=new WeakMap,j=new WeakMap,a=new WeakMap,jQ=new WeakMap,v=new WeakMap,k=new WeakSet,M0=function(Q){if(Q.mount_path){if(!PQ(Q.mount_path))throw new m(`memory store mount_path is not a clean absolute path: ${JSON.stringify(Q.mount_path)} (memory_store_id=${Q.memory_store_id})`);return Q.mount_path}return W.join(K(this,BQ,"f"),"memory",Q.name||Q.memory_store_id)},IQ=async function(Q){let $=await Q.files.hashtree(),q=$[o];if(delete $[o],q===D0(Q.memoryStoreId))return{files:$,markerOk:!0,distrustReason:null};return{files:$,markerOk:!1,distrustReason:q!==void 0?"the marker file does not match this store":"the marker file is gone"}},A0=async function(Q,$){try{let q=await K(this,k,"m",IQ).call(this,Q),V=q.files;if(!q.markerOk){if(Object.keys(V).length>0){K(this,j,"f").warn(`${q.distrustReason}; leaving the memory store folder as found and not syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}await K(this,k,"m",fQ).call(this,Q,"the folder or its marker is gone");return}if(Object.keys(V).length===0&&Q.baseline.size>1){await K(this,k,"m",fQ).call(this,Q,"every memory file is gone at once");return}let z=new Map;for await(let[H,I]of K(this,k,"m",DQ).call(this,Q.memoryStoreId))z.set(H,I);let Z=new w0(K(this,kQ,"f"),Math.max(I1,Math.min(B1,Math.floor(Q.baseline.size/4))),$),X=[],Y=new Map,U=[...new Set([...z.keys(),...Object.keys(V),...Q.baseline.keys()])].sort();for(let H of U){let I=z.get(H),A=V[H],T=Q.baseline.get(H),E;if(A===void 0&&T!==void 0&&I!==void 0&&I.content_sha256===T&&!Q.readOnly)E=await K(this,k,"m",U0).call(this,Q,H,I,T,Z);else E=await K(this,k,"m",Z0).call(this,Q,H,I,A,X);if(E!==void 0)Y.set(H,E)}if(Q.baseline=Y,await K(this,k,"m",H0).call(this,Q,X),Z.suppressed>0)K(this,j,"f").debug("remote deletes are disabled; locally deleted memories stay on the server",{count:Z.suppressed,memory_store_id:Q.memoryStoreId});if(Z.capped>0)K(this,j,"f").warn(`delete cap reached: ${Z.mode==="log_only"?"would send":"sent"} ${Z.attempted} deletes, held ${Z.capped} for later syncs`,{memory_store_id:Q.memoryStoreId})}catch(q){K(this,j,"f").warn("memory sync failed",{memory_store_id:Q.memoryStoreId,error:String(q)})}},C0=async function(Q,$){let q=new Map,V=new Set,z=async()=>{if(Q.readOnly)return;let Z=await K(this,k,"m",IQ).call(this,Q);if(!Z.markerOk){K(this,j,"f").warn(`${Z.distrustReason}; not uploading anything from the memory store folder`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId});return}for(let[U,H]of Object.entries(Z.files))if(H!==Q.baseline.get(U)&&Q.refusedShas.get(U)!==H)q.set(U,H),V.add(U);if(q.size===0||$?.aborted)return;let X=new Map;for await(let[U,H]of K(this,k,"m",DQ).call(this,Q.memoryStoreId)){if($?.aborted)return;X.set(U,H)}let Y=[];for(let U of[...q.keys()].sort()){let H=q.get(U),I=Q.baseline.get(U),A=X.get(U);if(A!==void 0&&A.content_sha256===H){Q.baseline.set(U,A.content_sha256),V.delete(U);continue}if(A!==void 0&&A.content_sha256!==I){K(this,j,"f").warn("memory changed both locally and remotely; the flush leaves the remote version",{path:U,memory_store_id:Q.memoryStoreId}),V.delete(U);continue}Y.push([U,H,A])}await K(this,k,"m",Y0).call(this,Q,Y,V,$)};try{if(await k1(z(),$),$?.aborted&&V.size>0)K(this,j,"f").warn(`memory flush cut off part-way; ${V.size} of ${q.size} changed files had not finished uploading`,{memory_store_id:Q.memoryStoreId})}catch(Z){K(this,j,"f").warn("memory flush failed",{memory_store_id:Q.memoryStoreId,error:String(Z)})}},fQ=async function(Q,$){K(this,j,"f").warn(`${$}; re-downloading the memory store folder instead of syncing`,{root:Q.files.root().path,memory_store_id:Q.memoryStoreId}),await Q.files.createRoot(),await K(this,k,"m",uQ).call(this,Q)},uQ=async function(Q){Q.baseline=new Map,Q.pendingDeletes.clear(),await Q.files.put(o,`version ${O0}
|
|
6
|
+
${Q.memoryStoreId}`);for await(let[$,q]of K(this,k,"m",DQ).call(this,Q.memoryStoreId,"full"))if(await K(this,k,"m",gQ).call(this,Q,$,q.content??""))Q.baseline.set($,q.content_sha256)},Z0=async function(Q,$,q,V,z){let Z=Q.baseline.get($);if(V!==void 0)Q.pendingDeletes.delete($);if(!q){if(V===void 0){Q.pendingDeletes.delete($);return}if(Z!==void 0){if(V===Z){let I=await K(this,k,"m",X0).call(this,Q,$,Z);if(I===void 0)return;if(I===Z)return Z;V=I}if(Q.readOnly)K(this,j,"f").warn("memory deleted remotely but edited locally; keeping the file, which a read-only store cannot push",{path:$,memory_store_id:Q.memoryStoreId});else if(Q.refusedShas.get($)!==V)K(this,j,"f").info("memory deleted remotely but edited locally; re-creating it from the file",{path:$,memory_store_id:Q.memoryStoreId})}if(Q.readOnly)return;if(Q.refusedShas.get($)===V)return;return await K(this,k,"m",NQ).call(this,Q,$,V,void 0)}let X=q.content_sha256,Y=X!==Z,U=V!==void 0&&V!==Z&&V!==X,H=!Q.readOnly&&U;if(V===void 0&&Z!==void 0){if(Y)K(this,j,"f").warn("memory deleted locally but changed remotely; restoring the remote version",{path:$,memory_store_id:Q.memoryStoreId}),Q.pendingDeletes.delete($),z.push([$,q]);return Z}if(Y){if(V===X)return X;if(U)K(this,j,"f").warn("memory changed both locally and remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});return z.push([$,q]),Z}if(H){if(Q.refusedShas.get($)===V)return X;return await K(this,k,"m",NQ).call(this,Q,$,V,q)??X}return X},X0=async function(Q,$,q){let V;try{V=await Q.files.hashFile($)}catch(z){if(!(z instanceof B)&&!s(z))throw z;return q}if(V===null)return;if(V!==q)return V;try{await Q.files.remove($)}catch(z){if(!(z instanceof B)&&!s(z))throw z;return K(this,j,"f").warn("failed to remove memory deleted remotely",{path:$,memory_store_id:Q.memoryStoreId,error:String(z)}),q}return},gQ=async function(Q,$,q){try{await Q.files.put($,q)}catch(V){if(!(V instanceof B)&&!s(V))throw V;return K(this,j,"f").warn("failed to write memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(V)}),!1}return!0},H0=async function(Q,$){if($.length===0)return;let q=async(Z,X)=>{let Y;try{Y=await K(this,P,"f").beta.memoryStores.memories.retrieve(X.id,{memory_store_id:Q.memoryStoreId,view:"full"})}catch(U){if(x(U,404))return;K(this,j,"f").warn("failed to fetch memory content",{path:Z,memory_store_id:Q.memoryStoreId,error:String(U)});return}if(await K(this,k,"m",gQ).call(this,Q,Z,Y.content??""))Q.baseline.set(Z,Y.content_sha256)},V=$[Symbol.iterator](),z=async()=>{for(let[Z,X]of V)await q(Z,X)};await Promise.all(Array.from({length:Math.min(N1,$.length)},z))},Y0=async function(Q,$,q,V){let z=$[Symbol.iterator](),Z=async()=>{for(let[X,Y,U]of z){if(V?.aborted)return;let H=await K(this,k,"m",NQ).call(this,Q,X,Y,U);if(q.delete(X),H!==void 0)Q.baseline.set(X,H)}};await Promise.all(Array.from({length:Math.min(j1,$.length)},Z))},DQ=async function*(Q,$="basic"){let q=$==="basic"?W1:D1;for await(let V of K(this,P,"f").beta.memoryStores.memories.list(Q,{view:$,limit:q})){if(V.type!=="memory")continue;let z=V.path.replace(/^\/+/,"");if(z===o){K(this,j,"f").warn("the server listed the reserved marker path; skipping",{path:V.path,memory_store_id:Q});continue}yield[z,V]}},NQ=async function J(Q,$,q,V){try{let z=await Q.files.get($);if(z===null)return;let Z=j0(z),X=V?await K(this,P,"f").beta.memoryStores.memories.update(V.id,{memory_store_id:Q.memoryStoreId,content:Z,precondition:{type:"content_sha256",content_sha256:V.content_sha256}}):await K(this,P,"f").beta.memoryStores.memories.create(Q.memoryStoreId,{path:"/"+$,content:Z});return Q.refusedShas.delete($),X.content_sha256}catch(z){if(V&&x(z,404))return await K(this,k,"m",J).call(this,Q,$,q,void 0);let Z=z instanceof B||x(z,400)||x(z,413);if(V&&x(z,409))K(this,j,"f").warn("memory changed both locally and remotely; the upload was refused and the local edit loses",{path:$,memory_store_id:Q.memoryStoreId});else if(Z&&q!==void 0)Q.refusedShas.set($,q),K(this,j,"f").warn("the server rejected this memory file, so it stays un-synced until its content changes",{path:$,memory_store_id:Q.memoryStoreId,rejection:String(z)});else K(this,j,"f").warn("failed to upload memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(z)});return}},U0=async function(Q,$,q,V,z){if(z.mode==="disabled")return z.suppressed++,V;let Z=Q.pendingDeletes.get($);if(Z===void 0)Z=Date.now(),Q.pendingDeletes.set($,Z);if(!z.waiveWindow&&Date.now()-Z<U1)return V;let X,Y;try{X=await Q.files.hashFile(o)===D0(Q.memoryStoreId),Y=await Q.files.hashFile($)===null}catch(H){if(!(H instanceof B)&&!s(H))throw H;X=Y=!1}if(!X)return V;if(!Y)return Q.pendingDeletes.delete($),V;if(!z.takeSlot())return V;if(z.mode==="log_only")return K(this,j,"f").info("log-only: sync would delete this memory on the server",{path:$,memory_store_id:Q.memoryStoreId}),V;let U=await K(this,k,"m",W0).call(this,Q,$,q,V);if(U===void 0)Q.pendingDeletes.delete($);return U},W0=async function(Q,$,q,V){try{await K(this,P,"f").beta.memoryStores.memories.delete(q.id,{memory_store_id:Q.memoryStoreId,expected_content_sha256:V})}catch(z){if(x(z,404))return;if(x(z,409)||x(z,412))K(this,j,"f").warn("memory deleted locally but changed remotely; keeping the remote version",{path:$,memory_store_id:Q.memoryStoreId});else K(this,j,"f").warn("failed to delete memory",{path:$,memory_store_id:Q.memoryStoreId,error:String(z)});return V}K(this,j,"f").info("propagated local deletion",{path:$,memory_store_id:Q.memoryStoreId});return}});import*as C from"node:fs/promises";import*as KQ from"node:fs";import*as G from"node:path";import*as pQ from"node:child_process";import*as E0 from"node:crypto";import*as F0 from"node:readline";function f0(J){return J===void 0?A1:J}function c(J){if(J===void 0)return;throw new O("The `unrestrictedPaths` option you passed to the agent toolset (AgentToolContext) is no longer supported. The toolset's file tools (read, write, edit, glob, grep) are now always confined to the working directory plus the directories listed in `allowedRoots`. Remove `unrestrictedPaths` from your context; to let the file tools reach any other directory, add it to `allowedRoots`.")}function I2(J){return[T1(J),b1(J),E1(J),F1(J),P1(J),f1(J)]}async function ZQ(J,Q){return c(J.unrestrictedPaths),dQ(J.workdir,Q,{allowedRoots:J.allowedRoots??[]})}function g0(J,Q){return RQ(J.readOnlyRoots??[],Q)}function y1(){let J={};for(let[Q,$]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;J[Q]=$}return J}function T1(J){c(J.unrestrictedPaths);let Q,$=Promise.resolve();return g({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:q,restart:V,timeout_ms:z},Z)=>{let X=$,Y=mQ();$=Y.promise;try{await X}catch{}try{if(V)Q?.close(),Q=void 0;if(!q){if(V)return"bash session restarted";throw new D("bash: command is required")}Q??(Q=new L1(J.workdir,J.env));try{let{output:U,exitCode:H}=await Q.exec(q,{timeoutMs:z??v0,signal:Z?.signal});if(H!==0)throw new D(U||`exit ${H}`);return U}catch(U){if(U instanceof D)throw U;throw Q.close(),Q=void 0,new D(`bash: ${U instanceof Error?U.message:String(U)}`)}}finally{Y.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function b1(J){return c(J.unrestrictedPaths),g({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:Q,view_range:$})=>{if(!Q)throw new D("read: file_path is required");let q=await ZQ(J,Q);if($?.length&&$.length!==2)throw new D("read: view_range must be [start_line, end_line]");let V;try{let H=await C.stat(q);if(!H.isFile())throw new D(`read: ${Q} is not a regular file`);let I=f0(J.maxFileBytes);if(I!==null&&H.size>I){if(!$?.length)throw new D(`read: ${Q} is ${H.size} bytes, exceeds ${I}-byte limit. Use the view_range parameter to read specific line ranges, e.g. view_range: [1, 500].`);let[A,T]=$;return await x1(q,Q,A,T,I)}V=await C.readFile(q,"utf8")}catch(H){if(H instanceof D)throw H;throw new D(`read: ${i(H,Q)}`)}if(!$?.length)return V;let[z,Z]=$,X=V.split(`
|
|
7
|
+
`),Y=Math.max(0,z-1),U=Z>0?Z:X.length;return X.slice(Y,U).join(`
|
|
8
|
+
`)}})}async function x1(J,Q,$,q,V){let z=new u0(Q,$,q,V);if(z.rangeIsEmpty())return"";let Z=KQ.createReadStream(J,{highWaterMark:C1});try{for await(let X of Z)if(z.collectFrom(X),z.rangeIsCollected())break}finally{Z.destroy()}return z.text()}class u0{constructor(J,Q,$,q){CQ.add(this),VQ.set(this,void 0),OQ.set(this,void 0),wQ.set(this,void 0),h.set(this,void 0),d.set(this,void 0),r.set(this,void 0),_.set(this,0),qQ.set(this,[]),f.set(this,0),N(this,VQ,J,"f"),N(this,OQ,Q,"f"),N(this,wQ,$,"f"),N(this,h,Math.max(0,Q-1),"f"),N(this,d,$>0?$:1/0,"f"),N(this,r,q,"f")}rangeIsEmpty(){return K(this,d,"f")<=K(this,h,"f")}rangeIsCollected(){return K(this,_,"f")>=K(this,d,"f")}collectFrom(J){var Q;let $=0;while($<J.length&&!this.rangeIsCollected()){let q=J.indexOf(10,$),V=q<0?J.length:q;if(K(this,_,"f")>=K(this,h,"f"))K(this,CQ,"m",x0).call(this,J.subarray($,V),q>=0);if(q<0)break;N(this,_,(Q=K(this,_,"f"),Q++,Q),"f"),$=q+1}}text(){return Buffer.concat(K(this,qQ,"f"),K(this,f,"f")).toString("utf8")}}function E1(J){return c(J.unrestrictedPaths),g({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:Q,content:$})=>{if(!Q)throw new D("write: file_path is required");let q=await ZQ(J,Q),V=await g0(J,q);if(V!==void 0)throw new D(`write: ${Q} is inside read-only directory ${V}`);try{await C.mkdir(G.dirname(q),{recursive:!0,mode:e}),await yQ(q,$??"")}catch(z){throw new D(`write: ${i(z,Q)}`)}return`wrote ${Buffer.byteLength($??"")} bytes to ${Q}`}})}function F1(J){return c(J.unrestrictedPaths),g({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:Q,old_string:$,new_string:q,replace_all:V})=>{if(!Q)throw new D("edit: file_path is required");if(!$)throw new D("edit: old_string is required");let z=await ZQ(J,Q),Z=await g0(J,z);if(Z!==void 0)throw new D(`edit: ${Q} is inside read-only directory ${Z}`);let X;try{let H=await C.stat(z);if(!H.isFile())throw new D(`edit: ${Q} is not a regular file`);let I=f0(J.maxFileBytes);if(I!==null&&H.size>I)throw new D(`edit: ${Q} is ${H.size} bytes, exceeds ${I}-byte limit. The edit tool loads the whole file and cannot modify a file this large.`);X=await C.readFile(z,"utf8")}catch(H){if(H instanceof D)throw H;throw new D(`edit: ${i(H,Q)}`)}let Y=X.split($).length-1;if(Y===0)throw new D(`edit: old_string not found in ${Q}`);let U;if(V)U=X.split($).join(q);else{if(Y>1)throw new D(`edit: old_string appears ${Y} times in ${Q} (must be unique)`);U=X.replace($,()=>q)}try{await yQ(z,U)}catch(H){throw new D(`edit: write: ${i(H,Q)}`)}return`edited ${Q} (${V?Y:1} replacement(s))`}})}function v1(J){return J.split(/[\\/{},]/).includes("..")}function P1(J){return c(J.unrestrictedPaths),g({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:Q,path:$})=>{if(!Q)throw new D("glob: pattern is required");if(G.isAbsolute(Q))throw new D("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(v1(Q))throw new D('glob: ".." is not permitted in the pattern');let q=$?await ZQ(J,$):G.resolve(J.workdir),V=$?q:await t(q),z=[],Z=S0;try{for await(let X of R1(Q,{cwd:q,withFileTypes:!0,exclude:(Y)=>Y.name===".git"||Y.name==="node_modules"})){if(Z--<=0)break;if(!X.isFile())continue;let Y=G.join(X.parentPath,X.name),U;try{U=await C.realpath(Y)}catch{continue}if(!YQ(V,U))continue;let H=0;try{H=(await C.stat(Y)).mtimeMs}catch{}z.push({path:Y,mtime:H})}}catch(X){throw new D(`glob: ${X instanceof Error?X.message:String(X)}`)}if(z.length===0)return"no matches";return z.sort((X,Y)=>Y.mtime-X.mtime),z.slice(0,w1).map((X)=>X.path).join(`
|
|
9
|
+
`)}})}function f1(J){return c(J.unrestrictedPaths),g({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:Q,path:$},q)=>{if(!Q)throw new D("grep: pattern is required");let V=G.resolve(J.workdir);if($)V=await ZQ(J,$);let z=await p1();return z?g1(z,Q,V,q?.signal):u1(Q,V,q?.signal)}})}function g1(J,Q,$,q){return new Promise((V,z)=>{let Z=pQ.spawn(J,["-n","--no-heading","-e",Q,"--",$],{...q?{signal:q}:{}}),X="",Y="",U=!1;Z.stdout.on("data",(H)=>{if(U)return;if(X+=H,X.length>zQ)U=!0,X=X.slice(0,zQ),Z.kill("SIGKILL")}),Z.stderr.on("data",(H)=>Y+=H),Z.on("close",(H)=>{if(q?.aborted)return z(new D("grep: aborted"));if(U)return V(X+`
|
|
10
|
+
[output truncated at ${zQ} bytes]`);if(H===0)return V(X);if(H===1)return V("no matches");z(new D(`grep: rg failed: ${Y||`exit ${H}`}`))}),Z.on("error",(H)=>{if(q?.aborted)return z(new D("grep: aborted"));z(new D(`grep: rg failed: ${H.message}`))})})}async function u1(J,Q,$){let q;try{q=new RegExp(J)}catch(Y){throw new D(`grep: invalid regex: ${Y instanceof Error?Y.message:String(Y)}`)}let V=[],z=zQ,Z=(Y)=>{if(z-=Y.length+1,z<0)return V.push(`[output truncated at ${zQ} bytes]`),!1;return V.push(Y),!0};if((await C.stat(Q).catch(()=>null))?.isFile())await b0(Q,q,Z);else await m1(Q,"",(Y)=>b0(G.join(Q,Y),q,Z),$);if($?.aborted)throw new D("grep: aborted");if(V.length===0)return"no matches";return V.join(`
|
|
11
|
+
`)}async function b0(J,Q,$){let q=KQ.createReadStream(J,{encoding:"utf8"}),V=F0.createInterface({input:q,crlfDelay:1/0}),z=0;try{for await(let Z of V){if(z++,Z.length>O1)continue;if(Q.test(Z)&&!$(`${J}:${z}:${Z}`))return!1}}catch{}finally{q.destroy()}return!0}async function m1(J,Q,$,q){let V=S0;async function z(Z,X){if(X>S1)return!0;if(q?.aborted)return!1;let Y;try{Y=await C.readdir(G.join(J,Z),{withFileTypes:!0})}catch{return!0}for(let U of Y){if(U.name===".git"||U.name==="node_modules")continue;if(V--<=0)return!1;if(q?.aborted)return!1;let H=Z?G.join(Z,U.name):U.name;if(U.isDirectory()){if(!await z(H,X+1))return!1}else if(U.isFile()){if(await $(H)===!1)return!1}}return!0}await z(Q,0)}async function p1(){let J=(process.env.PATH??"").split(G.delimiter);for(let Q of J){let $=G.join(Q,"rg");try{return await C.access($,KQ.constants.X_OK),$}catch{}}return null}var AQ,w,R,JQ,p,L,SQ,CQ,VQ,OQ,wQ,h,d,r,_,qQ,f,x0,y0,L0=102400,v0=120000,A1=262144,C1=65536,T0,zQ=102400,O1=2000,w1=200,P0,G1,R1,L1,S1=40,S0=50000;var _1=n(()=>{N0();xQ();hQ();_Q();M1();LQ();sQ();R0();T0=Buffer.from(`
|
|
12
|
+
`);P0=class P0 extends O{constructor(J){super(`bash command timed out after ${J}ms`);this.name="BashTimeoutError",this.timeoutMs=J}};G1=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,R1=C.glob;L1=(()=>{class J{constructor(Q,$=y1()){AQ.add(this),w.set(this,void 0),R.set(this,""),JQ.set(this,!1),p.set(this,!1),L.set(this,null),N(this,w,pQ.spawn("/bin/bash",["--noprofile","--norc"],{cwd:Q,env:{...$,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),K(this,w,"f").stdout.setEncoding("utf8"),K(this,w,"f").stderr.setEncoding("utf8"),K(this,w,"f").stdout.on("data",(q)=>K(this,AQ,"m",SQ).call(this,q)),K(this,w,"f").stderr.on("data",(q)=>K(this,AQ,"m",SQ).call(this,q)),K(this,w,"f").once("close",()=>{N(this,p,!0,"f");let q=K(this,L,"f");N(this,L,null,"f"),q?.resolve()})}get closed(){return K(this,p,"f")}async exec(Q,$={}){if(K(this,p,"f"))throw new O("bash session terminated");let q=$.timeoutMs??v0,V=$.signal;V?.throwIfAborted(),N(this,R,"","f"),N(this,JQ,!1,"f");let z=`__ANT_CMD_${E0.randomUUID()}_DONE__`,Z=`${z.slice(0,8)}''${z.slice(8)}`,X=`{ ${Q}
|
|
13
|
+
} </dev/null 2>&1; printf '\\n${Z}%d\\n' $?
|
|
14
|
+
`;if(K(this,w,"f").stdin.write(X),K(this,R,"f").indexOf(z)<0){let{promise:T,resolve:E}=mQ();N(this,L,{sentinel:z,resolve:E},"f");let b,XQ;try{await Promise.race([T,new Promise((m0,GQ)=>{b=setTimeout(()=>GQ(new P0(q)),q)}),new Promise((m0,GQ)=>{if(!V)return;XQ=()=>GQ(V.reason),V.addEventListener("abort",XQ,{once:!0})})])}finally{if(b)clearTimeout(b);if(XQ&&V)V.removeEventListener("abort",XQ);N(this,L,null,"f")}}let Y=K(this,R,"f").indexOf(z);if(Y<0)throw new O("bash session terminated");let H=K(this,R,"f").slice(Y+z.length).match(/^(-?\d+)/),I=H?parseInt(H[1],10):-1,A=K(this,R,"f").slice(0,Y).replace(G1,"").replace(/\n+$/,"");if(K(this,JQ,"f"))A=`[output truncated]
|
|
15
|
+
${A}`;return{output:A,exitCode:I}}close(){if(K(this,p,"f"))return;N(this,p,!0,"f");let Q=K(this,L,"f");N(this,L,null,"f"),Q?.resolve(),K(this,w,"f").stdout.destroy(),K(this,w,"f").stderr.destroy(),K(this,w,"f").stdin.destroy();try{process.kill(-K(this,w,"f").pid,"SIGKILL")}catch{K(this,w,"f").kill("SIGKILL")}K(this,w,"f").unref()}}return w=new WeakMap,R=new WeakMap,JQ=new WeakMap,p=new WeakMap,L=new WeakMap,AQ=new WeakSet,SQ=function($){if(N(this,R,K(this,R,"f")+$,"f"),K(this,R,"f").length>L0)N(this,R,K(this,R,"f").slice(K(this,R,"f").length-L0),"f"),N(this,JQ,!0,"f");if(K(this,L,"f")&&K(this,R,"f").indexOf(K(this,L,"f").sentinel)>=0){let q=K(this,L,"f");N(this,L,null,"f"),q.resolve()}},J})();VQ=new WeakMap,OQ=new WeakMap,wQ=new WeakMap,h=new WeakMap,d=new WeakMap,r=new WeakMap,_=new WeakMap,qQ=new WeakMap,f=new WeakMap,CQ=new WeakSet,x0=function(Q,$){if(K(this,qQ,"f").push(Q),N(this,f,K(this,f,"f")+Q.length,"f"),$&&K(this,_,"f")+1<K(this,d,"f"))K(this,qQ,"f").push(T0),N(this,f,K(this,f,"f")+T0.length,"f");if(K(this,f,"f")>K(this,r,"f"))throw K(this,CQ,"m",y0).call(this)},y0=function(){if(K(this,d,"f")-K(this,h,"f")===1)return new D(`read: line ${K(this,h,"f")+1} of ${K(this,VQ,"f")} alone exceeds ${K(this,r,"f")}-byte limit. The read tool cannot return part of a line, so view_range cannot narrow this further.`);return new D(`read: view_range [${K(this,OQ,"f")}, ${K(this,wQ,"f")}] of ${K(this,VQ,"f")} exceeds ${K(this,r,"f")}-byte limit. Narrow the view_range to read a smaller portion.`)}});_1();export{d0 as setupSkills,ZQ as resolvePath,oQ as extractSkillArchive,E1 as betaWriteTool,b1 as betaReadTool,f1 as betaGrepTool,P1 as betaGlobTool,F1 as betaEditTool,T1 as betaBashTool,I2 as betaAgentToolset20260401,G0 as SessionMemoryStores,m as SessionMemoryError,I0 as MIN_MEMORY_SYNC_INTERVAL_MS,Y1 as MEMORY_FLUSH_TIMEOUT_MS,o as MARKER_PATH,MQ as DEFAULT_MEMORY_SYNC_INTERVAL_MS,P0 as BashTimeoutError,L1 as BashSession};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{T7 as a,U7 as b,V7 as c,W7 as d,X7 as e,Y7 as f,Z7 as g,_7 as h}from"./cli-1.1.36-vdy55pxe.mjs";import"./cli-1.1.36-c4pkjm54.mjs";h();export{g as util,f as stream,e as path,d as os,c as fs,b as crypto,a as child_process};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aha as j,rha as a,sha as b,tha as c,uha as d,vha as e,wha as f,xha as g,yha as h,zha as i}from"./cli-1.1.36-6yqvdwyp.mjs";import"./cli-1.1.36-c4pkjm54.mjs";j();export{i as getOauthConfig,a as fileSuffixForOauthConfig,d as OAUTH_BETA_HEADER,h as MCP_CLIENT_METADATA_URL,e as CONSOLE_OAUTH_SCOPES,c as CLAUDE_AI_PROFILE_SCOPE,f as CLAUDE_AI_OAUTH_SCOPES,b as CLAUDE_AI_INFERENCE_SCOPE,g as ALL_OAUTH_SCOPES};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{Di as Y0,Ei as Y1}from"./cli-1.1.36-psd41gmc.mjs";import{Hi as c$,Ji as J1}from"./cli-1.1.36-ykz9vwbf.mjs";import{$p as j0,Do as eZ,Dp as J0,Eo as $0,Ep as W1,Fo as Z0,Go as Z1,Jo as Q0,Jp as e$,Kp as N0,Lp as Z$,Sp as CZ,Tp as i$,Up as K1,Vp as X$,Wp as AZ,Xp as C$,Yp as K0,Zp as z0,_p as l$,ap as W0,aq as X0,bq as n$,cq as z1,dq as a$,eq as o$,fq as U$,gq as j1,hQ as P0,hp as Q1,iQ as vZ,ik as L$,jQ as r$,jk as aZ,kQ as qZ,kk as r,lk as m$,mk as d$,nk as p$,ok as oZ,oo as sZ,pk as rZ,po as tZ,qk as A$,qo as $1,xk as _$,yk as e0}from"./cli-1.1.36-v0s0vqmm.mjs";import"./cli-1.1.36-c4k9g1dk.mjs";import"./cli-1.1.36-659qh6fs.mjs";import"./cli-1.1.36-zey2drb2.mjs";import"./cli-1.1.36-6jv1ss2p.mjs";import"./cli-1.1.36-v5nxnkwj.mjs";import"./cli-1.1.36-1dhxpexj.mjs";import"./cli-1.1.36-f6yxszv5.mjs";import"./cli-1.1.36-ahr5fnjy.mjs";import"./cli-1.1.36-3mmakdzj.mjs";import"./cli-1.1.36-rh00pabh.mjs";import"./cli-1.1.36-40x4f5k7.mjs";import"./cli-1.1.36-4ssz80b2.mjs";import"./cli-1.1.36-72sph7cp.mjs";import"./cli-1.1.36-wfgjsqkk.mjs";import"./cli-1.1.36-1yk5zdh0.mjs";import{DY as G0,FY as X1}from"./cli-1.1.36-zd032ger.mjs";import{QY as D0,UY as D1}from"./cli-1.1.36-zax3mr51.mjs";import"./cli-1.1.36-7z5n90ex.mjs";import{ZY as w$,cZ as RZ}from"./cli-1.1.36-p0w1dm9g.mjs";import"./cli-1.1.36-p7w1197h.mjs";import"./cli-1.1.36-3kd43x1y.mjs";import"./cli-1.1.36-7tprmtpr.mjs";import"./cli-1.1.36-z5djkbwy.mjs";import"./cli-1.1.36-apycha28.mjs";import"./cli-1.1.36-p375v620.mjs";import{E1 as t0,z1 as nZ}from"./cli-1.1.36-s8jcsdgb.mjs";import"./cli-1.1.36-65fkb20j.mjs";import"./cli-1.1.36-8mc299mk.mjs";import"./cli-1.1.36-b0rge62y.mjs";import"./cli-1.1.36-0qdd3hmz.mjs";import"./cli-1.1.36-mam7e8zn.mjs";import"./cli-1.1.36-5zzwcyt7.mjs";import"./cli-1.1.36-451x9avw.mjs";import"./cli-1.1.36-7xx3rm4x.mjs";import{F6 as u$,G6 as EZ,H6 as xZ,w6 as cZ,x6 as iZ,y6 as lZ}from"./cli-1.1.36-0d7qj290.mjs";import"./cli-1.1.36-n9knhbs6.mjs";import"./cli-1.1.36-rqhp2xt1.mjs";import"./cli-1.1.36-xs4p38vb.mjs";import"./cli-1.1.36-tda1q99k.mjs";import"./cli-1.1.36-hvnr6rta.mjs";import{Lea as bZ,Oea as kZ,Pea as o0,Tea as hZ,Vea as b$,Wea as uZ,Xea as mZ,Zea as k$,_ea as dZ,cfa as pZ,gfa as r0,jfa as h$,mfa as s0}from"./cli-1.1.36-t6sjxpcb.mjs";import"./cli-1.1.36-6q7sfj4e.mjs";import"./cli-1.1.36-m11p0exg.mjs";import"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-ss62b517.mjs";import"./cli-1.1.36-jqn2tez7.mjs";import"./cli-1.1.36-6yqvdwyp.mjs";import{Aia as T,Dia as P$}from"./cli-1.1.36-jpcwwd65.mjs";import"./cli-1.1.36-n5etyd9m.mjs";import"./cli-1.1.36-6g1w2zbr.mjs";import{lja as l,nja as TZ,tja as R$}from"./cli-1.1.36-0qtyffhw.mjs";import{$ja as G$,Doa as n0}from"./cli-1.1.36-bsfazmtt.mjs";import"./cli-1.1.36-cm2kys6t.mjs";import{Epa as a0,gpa as V$}from"./cli-1.1.36-s9ar9y3g.mjs";import{Rpa as g}from"./cli-1.1.36-c4pkjm54.mjs";function D$($,Z=!0){let Q=e$($);if(Q.type==="object"&&Q.properties){let W=Q.properties,J=Array.isArray(Q.required)?Q.required:[],Y={};for(let[K,G]of Object.entries(W))Y[K]=D$(G,Z);if(Q.properties=Y,Z)Q.required=J.filter((K)=>(K in Y)),Q.additionalProperties=!1;else Q.required=J.filter((K)=>(K in Y))}if("items"in Q)if(Array.isArray(Q.items))Q.items=Q.items.map((W)=>D$(W,Z));else Q.items=D$(Q.items,Z);for(let W of["anyOf","oneOf","allOf"])if(W in Q&&Array.isArray(Q[W]))Q[W]=Q[W].map((J)=>D$(J,Z));return Q}function B$($){let Q=!r()&&!l(process.env.CLAUDIN_DISABLE_STRICT_TOOLS);return $.filter((W)=>W.name!=="ToolSearchTool").filter((W)=>!W.type||W.type==="function"||W.type==="custom").map((W)=>{let J=W.description??"";if(W.input_schema){let G=t$.get(W.input_schema);if(G&&G.name===W.name&&G.description===J&&G.strict===Q)return G.result}M0.computes++;let Y={...W.input_schema??{type:"object",properties:{}}};if(W.name==="Agent"&&Y.properties){let G=Y.properties;if(!Array.isArray(Y.required))Y.required=[];let D=Y.required;for(let j of["message","subagent_type"])if(j in G&&!D.includes(j))D.push(j)}let K={type:"function",function:{name:W.name,description:J,parameters:D$(Y,Q)}};if(W.input_schema)t$.set(W.input_schema,{name:W.name,description:J,strict:Q,result:K});return K})}var t$,M0;var S$=g(()=>{R$();N0();A$();t$=new WeakMap,M0={computes:0}});import{randomUUID as w0}from"crypto";function L0(){return w0()}function $Z($,Z){let Q=L0(),W=Date.now();return T(JSON.stringify({type:"api_call_start",correlationId:Q,provider:$,model:Z,timestamp:W}),{level:"debug"}),{correlationId:Q,startTime:W}}function ZZ($,Z,Q,W,J,Y,K,G,D,j){let V=Date.now()-Z,F={type:W==="error"?"api_call_error":"api_call_end",correlationId:$,model:Q,duration_ms:V,status:W,tokens_in:J,tokens_out:Y,streaming:K};if(G!==void 0)F.first_token_ms=G;if(D!==void 0)F.total_chunks=D;if(j)F.error=j;T(JSON.stringify(F),{level:W==="error"?"error":"debug"})}var QZ=g(()=>{P$()});function WZ($){return $.trim().length===0}function _0($){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test($)}function U0($){return typeof $==="object"&&$!==null&&!Array.isArray($)}function I0($){return YZ[$]??null}function DZ($){return $ in YZ}function JZ($,Z){let Q=I0($);if(!Q)return null;return{[Q]:Z}}function $$($,Z){if(Z===void 0)return{};try{let Q=JSON.parse(Z);if(U0(Q))return Q;if(typeof Q==="string"&&!WZ(Q))return JZ($,Q)??Q;return Q}catch{if(WZ(Z)||_0(Z))return{};return JZ($,Z)??{}}}var YZ;var f$=g(()=>{YZ={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function K$($){if(!$)return{};let Z={};for(let[Q,W]of Object.entries($)){let J=Q.toLowerCase();if(J.startsWith("x-anthropic")||J.startsWith("anthropic-")||J.startsWith("x-claude")||J==="x-app"||J==="x-client-app"||J==="authorization"||J==="x-api-key"||J==="api-key")continue;Z[Q]=W}return Z}function KZ($){let Z=$.headers.get("retry-after");return Z?` (Retry-After: ${Z})`:""}var zZ=()=>{};function jZ($){return new Promise((Z)=>setTimeout(Z,$))}function z$(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var v$=()=>{};function R0($){let Z=XZ.get($);if(Z!==void 0)return Z;VZ.toolResultComputes++;let Q=B0($.content,$.is_error);return XZ.set($,Q),Q}function A0($){if(typeof $==="string")return $;if($===null||$===void 0)return"{}";if(typeof $!=="object")return JSON.stringify($);let Z=GZ.get($);if(Z!==void 0)return Z;VZ.toolUseArgumentsComputes++;let Q=JSON.stringify($);return GZ.set($,Q),Q}function q$($){if(!$)return"";if(typeof $==="string")return $;if(Array.isArray($))return $.map((Z)=>Z.type==="text"?Z.text??"":"").join(`
|
|
2
|
+
|
|
3
|
+
`);return String($)}function B0($,Z){if(typeof $==="string")return Z?`Error: ${$}`:$;if(!Array.isArray($)){let J=JSON.stringify($??"");return Z?`Error: ${J}`:J}let Q=[];for(let J of $){if(J?.type==="text"&&typeof J.text==="string"){Q.push({type:"text",text:J.text});continue}if(J?.type==="image"){let Y=J.source;if(Y?.type==="url"&&Y.url)Q.push({type:"image_url",image_url:{url:Y.url}});else if(Y?.type==="base64"&&Y.media_type&&Y.data)Q.push({type:"image_url",image_url:{url:`data:${Y.media_type};base64,${Y.data}`}});continue}if(typeof J?.text==="string")Q.push({type:"text",text:J.text})}if(Q.length===0)return"";if(Q.length===1&&Q[0].type==="text"){let J=Q[0].text??"";return Z?`Error: ${J}`:J}if(Q.every((J)=>J.type==="text")){let J=Q.map((Y)=>Y.text??"").join(`
|
|
4
|
+
|
|
5
|
+
`);return Z?`Error: ${J}`:J}if(Z&&Q[0]?.type==="text")Q[0]={...Q[0],text:`Error: ${Q[0].text??""}`};else if(Z)Q.unshift({type:"text",text:"Error:"});return Q}function O$($){if(typeof $==="string")return $;if(!Array.isArray($))return String($??"");let Z=[];for(let W of $)switch(W.type){case"text":Z.push({type:"text",text:W.text??""});break;case"image":{let J=W.source;if(J?.type==="base64")Z.push({type:"image_url",image_url:{url:`data:${J.media_type};base64,${J.data}`}});else if(J?.type==="url")Z.push({type:"image_url",image_url:{url:J.url}});break}case"tool_use":break;case"tool_result":break;case"thinking":case"redacted_thinking":break;default:if(W.text)Z.push({type:"text",text:W.text})}if(Z.length===0)return"";if(Z.length===1&&Z[0].type==="text")return Z[0].text??"";if(Z.every((W)=>W.type==="text"))return Z.map((W)=>W.text??"").join(`
|
|
6
|
+
|
|
7
|
+
`);return Z}function FZ($,Z,Q){let W=Q?.preserveReasoningContent===!0,J=[],Y=new Set,K=new Set;for(let j of $){let F=(j.message??j).content;if(Array.isArray(F)){for(let N of F)if(N.type==="tool_result"&&N.tool_use_id)K.add(N.tool_use_id)}}let G=q$(Z);if(G)J.push({role:"system",content:G});for(let j=0;j<$.length;j++){let V=$[j],F=j===$.length-1,N=V.message??V,w=N.role??V.role,H=N.content;if(w==="user")if(Array.isArray(H)){let M=H.filter((_)=>_.type==="tool_result"),L=H.filter((_)=>_.type!=="tool_result");for(let _ of M){let O=_.tool_use_id??"unknown";if(Y.has(O))J.push({role:"tool",tool_call_id:O,content:R0(_)});else T(`Dropping orphan tool_result for ID: ${O} to prevent API error`)}if(L.length>0)J.push({role:"user",content:O$(L)})}else J.push({role:"user",content:O$(H)});else if(w==="assistant")if(Array.isArray(H)){let M=H.filter((P)=>P.type==="tool_use"),L=H.find((P)=>P.type==="thinking"),_=H.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),O={role:"assistant",content:(()=>{let P=O$(_);return typeof P==="string"?P:Array.isArray(P)?P.map((U)=>U.text??"").join(""):""})()};if(W){let P=L?.thinking;if(typeof P==="string"&&P.trim().length>0)O.reasoning_content=P;else O.reasoning_content=""}if(M.length>0){let P=M.map((U)=>{let C=U.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!K.has(C)&&!F)return null;Y.add(C);let y={id:C,type:"function",function:{name:U.name??"unknown",arguments:A0(U.input)}};if(U.extra_content)y.extra_content={...U.extra_content};if(r()){let p=U.signature??L?.signature,s=y.extra_content?.google??{};y.extra_content={...y.extra_content,google:{...s,thought_signature:p??"skip_thought_signature_validator"}}}return y}).filter((U)=>U!==null);if(P.length>0)O.tool_calls=P}if(O.content||O.tool_calls?.length)J.push(O)}else{let M={role:"assistant",content:(()=>{let L=O$(H);return typeof L==="string"?L:Array.isArray(L)?L.map((_)=>_.text??"").join(""):""})()};if(M.content)J.push(M)}}let D=[];for(let j of J){let V=D[D.length-1];if(V&&V.role==="tool"&&j.role==="user")D.push({role:"assistant",content:"[Tool execution interrupted by user]"});let F=D[D.length-1];if(F&&F.role===j.role&&j.role!=="tool"&&j.role!=="system"){let N=F.content,w=j.content;if(typeof N==="string"&&typeof w==="string")F.content=N+(N&&w?`
|
|
8
|
+
`:"")+w;else{let H=(M)=>{if(!M)return[];if(typeof M==="string")return M?[{type:"text",text:M}]:[];return M};F.content=[...H(N),...H(w)]}if(j.tool_calls?.length)F.tool_calls=[...F.tool_calls??[],...j.tool_calls]}else D.push(j)}return D}var XZ,GZ,VZ;var HZ=g(()=>{P$();A$();XZ=new WeakMap,GZ=new WeakMap,VZ={toolResultComputes:0,toolUseArgumentsComputes:0}});function OZ($){for(let Z of PZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}function NZ($){for(let Z of PZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}var PZ;var E$=g(()=>{PZ=["reasoning_content","reasoning","reasoning_text","thinking"]});function MZ(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function x$($,Z){if($.firstTokenTime===null)$.firstTokenTime=Date.now();$.chunkCount++}function wZ($){let Z=Date.now(),Q=$.firstTokenTime?Z-$.firstTokenTime:null,W=Z-$.startTime;return{totalChunks:$.chunkCount,firstTokenMs:Q,durationMs:W}}var LZ=()=>{};function j$($){let Z=$.trim();if(Z==="")return"";try{return JSON.parse(Z)}catch{return $}}function u0($,Z){let Q=0,W=!1,J=!1;for(let Y=Z;Y<$.length;Y++){let K=$[Y];if(J){J=!1;continue}if(K==="\\"&&W){J=!0;continue}if(K==='"'){W=!W;continue}if(W)continue;if(K==="{")Q++;else if(K==="}"){if(Q--,Q===0)return $.slice(Z,Y+1)}}return null}function m0($,Z){let Q=[...Z].sort((Y,K)=>Y[0]-K[0]),W="",J=0;for(let[Y,K]of Q)W+=$.slice(J,Y),J=K;return W+$.slice(J)}function N$($){return $.split("?",1)[0]?.toLowerCase()==="tencent/hy3"}function d0($){let Z={},Q=$.trim(),W=Q.split(/[\n<]/,1)[0]?.trim().replace(/[\s`*_]+$/,""),J=!1;for(let Y of $.matchAll(T0)){let K=Y[1];if(K)J=!0,Z[K]=j$(Y[2]??"")}for(let Y of $.matchAll(b0)){let K=Y[1];if(K)J=!0,Z[K]=j$(Y[2]??"")}for(let Y of $.matchAll(k0)){let K=Y[1]?.trim();if(K)J=!0,Z[K]=j$(Y[2]??"")}return{name:W&&h0.test(W)&&(J||Q===W)?W:void 0,args:Z}}function UZ($,Z){let Q=0,W=Z?_Z:[y$];for(let J of W){let Y=Math.min($.length,J.length-1);for(let K=Y;K>0;K--)if(J.startsWith($.slice($.length-K))){Q=Math.max(Q,K);break}}return Q}function IZ($,Z){return(Z?_Z:[y$]).reduce((W,J)=>{let Y=$.indexOf(J);return Y===-1?W:W===-1?Y:Math.min(W,Y)},-1)}function p0($,Z=!1){let Q=[],W=new Set,J=[],Y=(D,j)=>{let V=`${D}:${JSON.stringify(j)}`;if(W.has(V))return;W.add(V),Q.push({id:`xml_tc_${++S0}`,name:D,arguments:j})},K=Z?[...$.matchAll(x0)].map((D)=>({range:[D.index,D.index+D[0].length],parsed:d0(D[1]??"")})):[],G=Z?[...$.matchAll(E0)].filter((D)=>{let j=[D.index,D.index+D[0].length];return K.some((V)=>V.parsed.name&&j[0]<=V.range[0]&&V.range[1]<=j[1])}).map((D)=>[D.index,D.index+D[0].length]):[];for(let D of K){let{name:j,args:V}=D.parsed;if(!j)continue;let F=D.range;if(!G.some((N)=>N[0]<=F[0]&&F[1]<=N[1]))J.push(F);Y(j,V)}J.push(...G);for(let D of $.matchAll(q0)){let j=D[1]??"",V=[D.index,D.index+D[0].length],F,N={},w=j.match(C0);if(w){F=w[1];for(let H of j.matchAll(y0)){let M=H[1];if(M)N[M]=j$(H[2]??"")}}else{let H=j.trim(),M=[...j.matchAll(g0)];if(M.length>0&&!H.startsWith("{")){let L=H.split(/[\n<]/,1)[0]?.trim();if(L)F=L;for(let _ of M){let O=(_[1]??"").trim();if(O)N[O]=j$(_[2]??"")}}else{let L=H.indexOf("{");if(L!==-1){let _=u0(H,L);if(_)try{let O=JSON.parse(_);if(typeof O.name==="string"){F=O.name;let P=O.arguments;if(typeof P==="string")try{Object.assign(N,JSON.parse(P))}catch{}else if(P&&typeof P==="object")Object.assign(N,P)}}catch{}}}}if(!F)continue;J.push(V),Y(F,N)}return{calls:Q,toolCallRanges:J}}function M$($,Z={}){let{calls:Q,toolCallRanges:W}=p0($,Z.allowHy3??!1),J=Z.toolNames?Q.filter((K)=>Z.toolNames.has(K.name)):Q;if(J.length===0)return null;return{visibleText:X$(m0($,W).trim()).trim(),calls:J}}var S0=0,y$="<tool_call>",f0="<tool_calls:",v0="<tool_call:",_Z,q0,E0,x0,C0,y0,g0,T0,b0,k0,h0;var g$=g(()=>{C$();_Z=[y$,f0,v0],q0=/<tool_call>([\s\S]*?)(?:<\/tool_call>|$)/g,E0=/<tool_calls:[^>\s]+>([\s\S]*?)(?:<\/tool_calls(?::[^>\s]+)?>|$)/g,x0=/<tool_call:[^>\s]+>([\s\S]*?)(?:<\/tool_call(?::[^>\s]+)?>|$)/g,C0=/<function=([^>\s]+)\s*>/,y0=/<parameter=([^>\s]+)\s*>([\s\S]*?)<\/parameter>/g,g0=/<arg_key>([\s\S]*?)<\/arg_key>\s*<arg_value>([\s\S]*?)<\/arg_value>/g,T0=/<parameter\s+name=["']([^"'>\s]+)["']\s*>([\s\S]*?)<\/parameter>/g,b0=/^\s*([A-Za-z_][\w-]*)\s*:\s*(.+?)\s*$/gm,k0=/<arg_key(?::[^>\s]+)?>([\s\S]*?)<\/arg_key(?::[^>\s]+)?>\s*<arg_value(?::[^>\s]+)?>([\s\S]*?)<\/arg_value(?::[^>\s]+)?>/g,h0=/^[A-Za-z_][\w.-]*$/});function c0($){if(!$)return;return w$($)}function i0($){try{let Z=JSON.parse($);return Z&&typeof Z==="object"&&!Array.isArray(Z)?$:null}catch{for(let Z of BZ)try{let Q=$+Z,W=JSON.parse(Q);if(W&&typeof W==="object"&&!Array.isArray(W))return Q}catch{}return null}}async function*SZ($,Z,Q,W,J){let Y=z$(),K=0,G=new Map,D=!1,j=!1,V=!1,F=AZ(),N=null,w=!1,H=!1,M=0,L=MZ(),_=!!J&&J.size>0&&!l(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS),O=N$(Z),P=null,U="",C=null;yield{type:"message_start",message:{id:Y,type:"message",role:"assistant",content:[],model:Z,stop_reason:null,stop_sequence:null,usage:{input_tokens:0,output_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}};let y=$.body?.getReader();if(!y)return;let p=y,s=new TextDecoder,t="",W$=120000,c=Date.now();async function u(){return new Promise((I,B)=>{let f=setTimeout(()=>{let E=Math.round((Date.now()-c)/1000);B(Error(`OpenAI/Gemini SSE stream idle for ${E}s (limit: ${W$/1000}s). Connection likely dropped.`))},W$),A;if(Q)A=()=>{clearTimeout(f)},Q.addEventListener("abort",A,{once:!0});p.read().then((E)=>{if(clearTimeout(f),Q&&A)Q.removeEventListener("abort",A);if(E.value)c=Date.now();I(E)},(E)=>{if(clearTimeout(f),Q&&A)Q.removeEventListener("abort",A);B(E)})})}let n=async function*(){if(!D)return;let I=F.flush();if(I)yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:I}};yield{type:"content_block_stop",index:K},K++,D=!1},k=async function*(I){if(!I)return;if(j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(!D)yield{type:"content_block_start",index:K,content_block:{type:"text",text:""}},D=!0;M+=I.length,yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:I}}},J$=async function*(I){if(!I)return;if(P!==null){P+=I;return}let B=U+I,f=IZ(B,O);if(f!==-1){let A=B.slice(0,f);if(A)yield*k(A);U="",P=B.slice(f)}else{let A=UZ(B,O),E=A>0?B.slice(0,B.length-A):B;if(U=A>0?B.slice(B.length-A):"",E)yield*k(E)}},Y$=async function*(){if(_){let I=F.flush();if(I)yield*J$(I)}if(P!==null){let I=P;P=null;let B=M$(I,{allowHy3:O,toolNames:J});if(B){if(B.visibleText)yield*k(B.visibleText);if(D)yield*n();for(let f of B.calls){let A=K;yield{type:"content_block_start",index:A,content_block:{type:"tool_use",id:f.id,name:f.name,input:{}}},K++,yield{type:"content_block_delta",index:A,delta:{type:"input_json_delta",partial_json:JSON.stringify($$(f.name,JSON.stringify(f.arguments)))}},yield{type:"content_block_stop",index:A}}C="tool_use"}else yield*k(I)}else if(U)yield*k(U),U=""};try{while(!0){let{done:I,value:B}=await u();if(I)break;t+=s.decode(B,{stream:!0});let f=t.split(`
|
|
9
|
+
`);t=f.pop()??"";for(let A of f){let E=A.trim();if(!E||E==="data: [DONE]")continue;if(!E.startsWith("data: "))continue;let v;try{v=JSON.parse(E.slice(6))}catch{continue}let a=c0(v.usage);for(let h of v.choices??[]){let d=h.delta,F$=OZ(d);if(F$!=null){if(!j)yield{type:"content_block_start",index:K,content_block:{type:"thinking",thinking:""}},j=!0;yield{type:"content_block_delta",index:K,delta:{type:"thinking_delta",thinking:F$}}}if(d.content!=null&&d.content!==""){let z=F.feed(d.content);if(x$(L,d.content),z)if(_)yield*J$(z);else yield*k(z)}if(d.tool_calls){if(P!==null)yield*k(P),P=null;if(U)yield*k(U),U="";for(let z of d.tool_calls)if(z.id&&z.function?.name){if(j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(D)yield*n();let X=K,q=z.function.arguments??"",R=DZ(z.function.name);if(x$(L,z.function.arguments??""),G.set(z.index,{id:z.id,name:z.function.name,index:X,jsonBuffer:q,normalizeAtStop:R}),yield{type:"content_block_start",index:X,content_block:{type:"tool_use",id:z.id,name:z.function.name,input:{},...z.extra_content?{extra_content:z.extra_content}:{},...z.extra_content?.google?.thought_signature?{signature:(z.extra_content?.google).thought_signature}:{}}},K++,z.function.arguments&&!R)M+=z.function.arguments.length,yield{type:"content_block_delta",index:X,delta:{type:"input_json_delta",partial_json:z.function.arguments}}}else if(z.function?.arguments){let X=G.get(z.index);if(X){if(z.function.arguments)M+=z.function.arguments.length,X.jsonBuffer+=z.function.arguments;if(X.normalizeAtStop)continue;yield{type:"content_block_delta",index:X.index,delta:{type:"input_json_delta",partial_json:z.function.arguments}}}}}if(h.finish_reason&&!H){if(H=!0,j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(yield*Y$(),C)h.finish_reason="tool_calls";if(D)yield*n();for(let[,X]of G){if(X.normalizeAtStop){let R;if(h.finish_reason==="length")R=X.jsonBuffer;else{let b=i0(X.jsonBuffer);if(b)R=b;else R=JSON.stringify($$(X.name,X.jsonBuffer))}yield{type:"content_block_delta",index:X.index,delta:{type:"input_json_delta",partial_json:R}},yield{type:"content_block_stop",index:X.index};continue}let q="";if(X.jsonBuffer)try{JSON.parse(X.jsonBuffer)}catch{let R=X.jsonBuffer.trimEnd();for(let b of BZ)try{JSON.parse(R+b),q=b;break}catch{}}if(q)yield{type:"content_block_delta",index:X.index,delta:{type:"input_json_delta",partial_json:q}};yield{type:"content_block_stop",index:X.index}}let z=h.finish_reason==="tool_calls"?"tool_use":h.finish_reason==="length"?"max_tokens":"end_turn";if(h.finish_reason==="content_filter"||h.finish_reason==="safety"){if(!D)yield{type:"content_block_start",index:K,content_block:{type:"text",text:""}},D=!0;yield{type:"content_block_delta",index:K,delta:{type:"text_delta",text:`
|
|
10
|
+
|
|
11
|
+
[Content blocked by provider safety filter]`}}}if(N=z,yield{type:"message_delta",delta:{stop_reason:z,stop_sequence:null},...a?{usage:a}:{}},a)w=!0}}if(!w&&a&&(v.choices?.length??0)===0&&N!==null)yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null},usage:a},w=!0}}}finally{p.releaseLock()}if(!H&&(P!==null||U)){if(j&&!V)yield{type:"content_block_stop",index:K},K++,V=!0;if(yield*Y$(),D)yield*n();N=C??"end_turn",yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null}}}let e=wZ(L);if(e.totalChunks>0)T(JSON.stringify({type:"stream_stats",model:Z,total_chunks:e.totalChunks,first_token_ms:e.firstTokenMs,duration_ms:e.durationMs}),{level:"debug"});if(!w&&N!==null&&(M>0||(W??0)>0)){let I=vZ(Z);yield{type:"message_delta",delta:{stop_reason:N,stop_sequence:null},usage:{input_tokens:W??0,output_tokens:Math.ceil(M/I),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var BZ,T$;var fZ=g(()=>{P$();LZ();RZ();C$();f$();qZ();R$();v$();E$();g$();BZ=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];T$=class T${generator;controller=new AbortController;constructor($){this.generator=$}async*[Symbol.asyncIterator](){yield*this.generator}}});function l0($){let Z=$.toLowerCase();return EZ.some((Q)=>Z.includes(Q))}function Q$($){try{let Z=new URL($);if(Z.username)Z.username="redacted";if(Z.password)Z.password="redacted";for(let W of Z.searchParams.keys())if(l0(W))Z.searchParams.set(W,"redacted");let Q=Z.toString();return Z$(Q,process.env)??Q}catch{return Z$($,process.env)??$}}var yZ=g(()=>{CZ();xZ()});function gZ($){if(!$)return!1;try{let Z=new URL($).host;return Z==="api.openai.com"||Z.endsWith(".api.openai.com")}catch{return!1}}class V0{defaultHeaders;reasoningEffort;constructor($,Z){this.defaultHeaders=K$($),this.reasoningEffort=Z}create($,Z){let Q=this,W,J=(async()=>{let Y=W0($.model,$.effortValue),K=Y==="low"||Y==="medium"||Y==="high"||Y==="xhigh"||Y==="max"?Y:Q.reasoningEffort,G=dZ({model:$.model,reasoningEffortOverride:K}),D=await Q._doRequest(G,$,Z);W=D;let j=new Set(($.tools??[]).map((w)=>w.name).filter((w)=>typeof w==="string"));if($.stream){let w=D.url?.includes("/responses"),H=0;for(let M of $.messages){let L=M,_=L.message?L.message.content:L.content;if(_!=null&&typeof _!=="string"&&!Array.isArray(_))continue;H+=r$(_??void 0)}if(typeof $.system==="string")H+=P0($.system);else if(Array.isArray($.system))H+=r$($.system);return new T$(G.transport==="codex_responses"||w?X0(D,G.resolvedModel,Z?.signal):SZ(D,G.resolvedModel,Z?.signal,H,j))}if(G.transport==="codex_responses"){let w=await j0(D,Z?.signal);return n$(w,G.resolvedModel)}if(D.url?.includes("/responses")||G.transport==="chat_completions"&&L$()){if((D.headers.get("content-type")??"").includes("application/json")){let H=await D.json();if(H&&typeof H==="object"&&(("output"in H)||("incomplete_details"in H)))return n$(H,G.resolvedModel);return Q._convertNonStreamingResponse(H,G.resolvedModel,j)}}if((D.headers.get("content-type")??"").includes("application/json")){let w=await D.json();return Q._convertNonStreamingResponse(w,G.resolvedModel,j)}let N=await D.text().catch(()=>"");throw V$.generate(D.status,void 0,`OpenAI API error ${D.status}: unexpected response: ${N.slice(0,500)}`,D.headers)})();return J.withResponse=async()=>{return{data:await J,response:W??new Response,request_id:W?.headers.get("x-request-id")??z$()}},J}async _doRequest($,Z,Q){let W=k$($.baseUrl),J=L$();if(J&&$.transport==="codex_responses"){let K=h$(),G=K?.extras?.githubToken??K?.apiKey??"";if(!G)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return l$({request:$,credentials:{apiKey:G,source:"env"},params:Z,defaultHeaders:{...this.defaultHeaders,...K$(Q?.headers),...u$,...c$(Z.messages)},signal:Q?.signal})}if($.transport==="codex_responses"&&!J){let K=await kZ().catch(async(D)=>{return T(`[codex] access token refresh failed before request: ${D instanceof Error?D.message:String(D)}`,{level:"warn"}),{refreshed:!1,credentials:await bZ()}}),G=pZ({storedCredentials:K.credentials});if(!G.apiKey){let D=TZ()?"":", choose Codex OAuth in /provider",j=G.authPath?`${D} or place a Codex auth.json at ${G.authPath}`:D,V=Z$($.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${V}. Set CODEX_API_KEY${j}.`)}if(!G.accountId)throw Error("Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth, the Codex CLI, or set CHATGPT_ACCOUNT_ID/CODEX_ACCOUNT_ID.");return l$({request:$,credentials:G,params:Z,defaultHeaders:{...this.defaultHeaders,...K$(Q?.headers)},signal:Q?.signal})}return this._doOpenAIRequest($,Z,Q)}async _doOpenAIRequest($,Z,Q){let W=tZ(sZ(Z.messages)),J=FZ(W,Z.system,{preserveReasoningContent:m$($.baseUrl)||p$($.baseUrl)||d$($.baseUrl)}),Y={model:$.resolvedModel,messages:J,stream:Z.stream??!1,store:!1,...gZ($.baseUrl)&&{prompt_cache_key:G$(),prompt_cache_retention:"24h"}},K=typeof Z.max_tokens==="number"&&Z.max_tokens>0?Z.max_tokens:void 0,G=typeof Z.max_completion_tokens==="number"?Z.max_completion_tokens:void 0;if(K!==void 0)Y.max_completion_tokens=K;else if(G!==void 0)Y.max_completion_tokens=G;if(Z.stream&&!b$($.baseUrl))Y.stream_options={include_usage:!0};let D=L$(),j=aZ(),V=b$($.baseUrl),F=k$($.baseUrl),N=D&&F==="copilot",w=D&&(F==="models"||F==="custom"),H=m$($.baseUrl),M=p$($.baseUrl),L=d$($.baseUrl);if((D||j||V||H||M||L)&&Y.max_completion_tokens!==void 0)Y.max_tokens=Y.max_completion_tokens,delete Y.max_completion_tokens;if(j||r()||H||M||L)delete Y.store;if(Z.temperature!==void 0)Y.temperature=Z.temperature;if(Z.top_p!==void 0)Y.top_p=Z.top_p;if(M){let z=Z.thinking?.type,X=z==="disabled"?"disabled":z==="enabled"||z==="adaptive"?"enabled":void 0;if(X)Y.thinking={type:X};if(X==="enabled"){let q=$.reasoning?.effort;if(q)Y.reasoning_effort=rZ(q)}}if(H){let z=$.reasoning?.effort;if(z&&Q0($.resolvedModel))Y.thinking={type:"enabled",effort:z,keep:"all"}}let _=eZ($.baseUrl,$.resolvedModel);if(_){let z=$.reasoning?.effort,X=z?Z0(z,_):void 0;if(X)if($0($.baseUrl)==="reasoning.effort")Y.reasoning={effort:X};else Y.reasoning_effort=X}if(Z.tools&&Z.tools.length>0){let z=B$(Z.tools);if(z.length>0){if(Y.tools=z,Z.tool_choice){let X=Z.tool_choice;if(X.type==="auto")Y.tool_choice="auto";else if(X.type==="tool"&&X.name)Y.tool_choice={type:"function",function:{name:X.name}};else if(X.type==="any")Y.tool_choice="required";else if(X.type==="none")Y.tool_choice="none"}}}let O={"Content-Type":"application/json",...this.defaultHeaders,...K$(Q?.headers),"User-Agent":J0()},P=r(),U=h$(),C=await G0(U),y=U?.apiKey??U?.extras?.githubToken??C.accessToken??"",p=!1;try{let{hostname:z}=new URL($.baseUrl);p=z.endsWith(".azure.com")&&(z.includes("cognitiveservices")||z.includes("openai")||z.includes("services.ai"))}catch{}let s=!1;try{s=$.baseUrl.toLowerCase().includes("bankr")}catch{}if(y){if(p)O["api-key"]=y;else if(s)O["X-API-Key"]=y;else O.Authorization=`Bearer ${y}`;if(C.userAgent)O["User-Agent"]=C.userAgent;if(C.deviceHeaders)Object.assign(O,C.deviceHeaders)}else if(P){let z=await Y0(process.env);if(z.kind!=="none"){if(O.Authorization=`Bearer ${z.credential}`,z.kind!=="api-key"&&"projectId"in z&&z.projectId)O["x-goog-user-project"]=z.projectId}}if(N)Object.assign(O,u$,c$(Z.messages));else if(w)O.Accept="application/vnd.github+json",O["X-GitHub-Api-Version"]="2022-11-28";if(hZ($.baseUrl)&&!l(process.env.CLAUDIN_DISABLE_XAI_CONV_ID))O["x-grok-conv-id"]=G$();if(oZ($.baseUrl)&&!l(process.env.CLAUDIN_DISABLE_OPENCODE_SESSION_ID))O["x-opencode-session"]=G$();let t=(z)=>{if(p){let X=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",q=$.resolvedModel??U?.model??"gpt-4o";if(/\/deployments\//i.test(z))return`${z.replace(/\/+$/,"")}/chat/completions?api-version=${X}`;return`${z.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${q}/chat/completions?api-version=${X}`}return`${z}/chat/completions`},W$=V?uZ($.baseUrl):[],c=$.baseUrl,u=t(c),n=new Set([c]),k=!1,J$=(z)=>{for(let X of W$){if(n.has(X))continue;let q=u;return n.add(X),c=X,u=t(c),T(`[OpenAIShim] self-heal retry reason=${z} method=POST from=${Q$(q)} to=${Q$(u)} model=${$.resolvedModel}`,{level:"warn"}),!0}return!1},Y$=_$(Y),e=()=>{Y$=_$(Y)},I=()=>({method:"POST",headers:O,body:Y$,signal:Q?.signal}),B=V?W$.length+1:0,f=(D?cZ:1)+B,A=(z,X,q)=>{if(Q?.signal?.aborted)throw z;let R=q??o$(z,{url:X}),b=Q$(X),o=Z$(R.message,process.env)||"Request failed";throw T(`[OpenAIShim] transport failure category=${R.category} retryable=${R.retryable} code=${R.code??"unknown"} method=POST url=${b} model=${$.resolvedModel} message=${o}`,{level:"warn"}),V$.generate(503,void 0,a$(`OpenAI API transport error: ${o}${R.code?` (code=${R.code})`:""}`,R),new Headers)},E=(z,X,q,R,b,o="",S)=>{let x=S??U$({status:z,body:X}),i=Q$(b);throw T(`[OpenAIShim] request failed category=${x.category} retryable=${x.retryable} status=${z} method=POST url=${i} model=${$.resolvedModel}`,{level:"warn"}),V$.generate(z,q,a$(`OpenAI API error ${z}: ${X}${o}`,x),R)},v,a=$.baseUrl.includes("nvidia")?"nvidia-nim":$.baseUrl.includes("minimax")?"minimax":$.baseUrl.includes("localhost:11434")||$.baseUrl.includes("localhost:11435")?"ollama":$.baseUrl.includes("anthropic")?"anthropic":"openai",h=nZ(),{correlationId:d,startTime:F$}=$Z(a,$.resolvedModel);for(let z=0;z<f;z++){try{v=await i$(u,I(),{provider:h})}catch(S){if(Q?.signal?.aborted===!0||typeof DOMException<"u"&&S instanceof DOMException&&S.name==="AbortError"||typeof S==="object"&&S!==null&&"name"in S&&S.name==="AbortError")throw S;let i=o$(S,{url:u});if(V&&i.category==="localhost_resolution_failed"&&J$("localhost_resolution_failed"))continue;A(S,u,i)}if(v.ok){let S=0,x=0;if(!Z.stream)try{let m=await v.clone().json();S=m.usage?.prompt_tokens??0,x=m.usage?.completion_tokens??0}catch{}return ZZ(d,F$,$.resolvedModel,"success",S,x,!1),v}if(D&&v.status===429&&z<f-1){await v.text().catch(()=>{});let S=Math.min(iZ*2**z,lZ);await jZ(S*1000);continue}let X=await v.text().catch(()=>"unknown error"),q=D&&v.status===429?KZ(v):"";if(D&&v.status===400){if(X.includes("/chat/completions")||X.includes("not accessible")){let S=`${$.baseUrl}/responses`,x={model:$.resolvedModel,input:K0(Z.messages),stream:Z.stream??!1,store:!1,...gZ($.baseUrl)&&{prompt_cache_key:G$(),prompt_cache_retention:"24h"}};if(!Array.isArray(x.input)||x.input.length===0)x.input=[{type:"message",role:"user",content:[{type:"input_text",text:""}]}];let i=q$(Z.system);if(i)x.instructions=i;if(Y.max_tokens!==void 0)x.max_output_tokens=Y.max_tokens;if(Z.tools&&Z.tools.length>0){let H$=z0(Z.tools);if(H$.length>0)x.tools=H$}let m;try{m=await i$(S,{method:"POST",headers:O,body:_$(x),signal:Q?.signal},{provider:h})}catch(H$){A(H$,S)}if(m.ok)return m;let I$=await m.text().catch(()=>"unknown error"),O0=U$({status:m.status,body:I$}),s$;try{s$=JSON.parse(I$)}catch{}E(m.status,I$,s$,m.headers,S,"",O0)}}let R=U$({status:v.status,body:X});if(V&&R.category==="endpoint_not_found"&&J$("endpoint_not_found"))continue;let b=Array.isArray(Y.tools)&&Y.tools.length>0;if(!k&&R.category==="tool_call_incompatible"&&mZ({baseUrl:c,hasTools:b})){k=!0,delete Y.tools,delete Y.tool_choice,e(),T(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${Q$(u)} model=${$.resolvedModel}`,{level:"warn"});continue}let o;try{o=JSON.parse(X)}catch{}E(v.status,X,o,v.headers,u,q,R)}throw V$.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse($,Z,Q){let W=$.choices?.[0],J=[],Y=!1,K=NZ(W?.message??{});if(K)J.push({type:"thinking",thinking:K});let G=W?.message?.content!==""&&W?.message?.content!=null?W?.message?.content:null;if(typeof G==="string"&&G){let V=!!Q&&Q.size>0&&!l(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS)?M$(G,{allowHy3:N$(Z),toolNames:Q}):null;if(V){if(V.visibleText)J.push({type:"text",text:V.visibleText});for(let F of V.calls)J.push({type:"tool_use",id:F.id,name:F.name,input:$$(F.name,JSON.stringify(F.arguments))});Y=!0}else J.push({type:"text",text:X$(G)})}else if(Array.isArray(G)&&G.length>0){let j=[];for(let F of G)if(F&&typeof F==="object"&&F.type==="text"&&typeof F.text==="string")j.push(F.text);let V=j.join(`
|
|
12
|
+
`);if(V)J.push({type:"text",text:X$(V)})}if(W?.message?.tool_calls)for(let j of W.message.tool_calls){let V=$$(j.function.name,j.function.arguments);J.push({type:"tool_use",id:j.id,name:j.function.name,input:V,...j.extra_content?{extra_content:j.extra_content}:{},...j.extra_content?.google?.thought_signature?{signature:(j.extra_content?.google).thought_signature}:{}})}let D=Y||W?.finish_reason==="tool_calls"?"tool_use":W?.finish_reason==="length"?"max_tokens":"end_turn";if(W?.finish_reason==="content_filter"||W?.finish_reason==="safety")J.push({type:"text",text:`
|
|
13
|
+
|
|
14
|
+
[Content blocked by provider safety filter]`});return{id:$.id??z$(),type:"message",role:"assistant",content:J,model:$.model??Z,stop_reason:D,stop_sequence:null,usage:w$($.usage)}}}class F0{messages;reasoningEffort;constructor($,Z){this.messages=new V0($,Z),this.reasoningEffort=Z}}function G1($){D0();let Z=new F0({...$.defaultHeaders??{}},$.reasoningEffort);return{beta:Z,messages:Z.messages}}var H0=g(()=>{a0();o0();P$();R$();Y1();D1();t0();Q1();CZ();QZ();e0();qZ();$1();s0();RZ();z1();K1();j1();r0();Z1();X1();C$();f$();W1();J1();xZ();zZ();v$();HZ();A$();E$();fZ();n0();S$();g$();yZ()});var V1=g(()=>{S$();H0()});V1();export{G1 as createOpenAIShimClient,B$ as convertTools};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Rpa as t}from"./cli-1.1.36-c4pkjm54.mjs";async function o(e){e("/output-style has been deprecated. Use /config to change your output style, or set it in your settings file. Changes take effect on the next session.",{display:"system"})}var n=()=>{};n();export{o as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$h as a,_h as e}from"./cli-1.1.36-0zzq8bfp.mjs";import{Rpa as r}from"./cli-1.1.36-c4pkjm54.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Ec as e0,Fc as nN}from"./cli-1.1.36-x1761kx6.mjs";import{cg as jN,dg as vG}from"./cli-1.1.36-wdvzyaky.mjs";import{ah as OG,bh as I0,ch as IG,dh as O0,eh as fN}from"./cli-1.1.36-3fe93rwy.mjs";import{fh as iN,gh as hG}from"./cli-1.1.36-33pcdm87.mjs";import"./cli-1.1.36-n44emd29.mjs";import{hi as EG,ii as tG}from"./cli-1.1.36-k14jc4fv.mjs";import"./cli-1.1.36-pwszcwqb.mjs";import"./cli-1.1.36-422dmh6w.mjs";import"./cli-1.1.36-1dr6aakq.mjs";import"./cli-1.1.36-5nkv3yj2.mjs";import{AE as V0,Ax as aG,Br as rG,Bx as s0,Cx as DN,EN as a0,FN as TN,GE as wG,HE as oG,IE as qG,JE as $G,Kq as MN,LO as pN,Lq as gG,MO as _G,NH as hN,OH as mG,Tm as YG,UQ as wJ,Um as ZG,Vm as zG,Wm as LG,bm as SN,bn as E0,bx as P0,cm as SG,dx as mN,en as $0,gn as KN,gx as T0,hx as _N,kO as QG,lO as WG,mK as KG,nO as sG,ur as UG,zE as n,zx as kG}from"./cli-1.1.36-v0s0vqmm.mjs";import"./cli-1.1.36-c4k9g1dk.mjs";import"./cli-1.1.36-659qh6fs.mjs";import"./cli-1.1.36-zey2drb2.mjs";import"./cli-1.1.36-6jv1ss2p.mjs";import"./cli-1.1.36-v5nxnkwj.mjs";import"./cli-1.1.36-1dhxpexj.mjs";import"./cli-1.1.36-f6yxszv5.mjs";import"./cli-1.1.36-ahr5fnjy.mjs";import"./cli-1.1.36-3mmakdzj.mjs";import"./cli-1.1.36-rh00pabh.mjs";import"./cli-1.1.36-40x4f5k7.mjs";import{AW as XG,EX as J0,MV as G0,YW as v,_W as H,gX as RN,tX as uN}from"./cli-1.1.36-4ssz80b2.mjs";import"./cli-1.1.36-72sph7cp.mjs";import"./cli-1.1.36-wfgjsqkk.mjs";import"./cli-1.1.36-1yk5zdh0.mjs";import"./cli-1.1.36-zd032ger.mjs";import"./cli-1.1.36-zax3mr51.mjs";import"./cli-1.1.36-7z5n90ex.mjs";import"./cli-1.1.36-p0w1dm9g.mjs";import"./cli-1.1.36-p7w1197h.mjs";import"./cli-1.1.36-3kd43x1y.mjs";import"./cli-1.1.36-7tprmtpr.mjs";import{b1 as a,c1 as Y,d1 as T,e1 as x}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as t0}from"./cli-1.1.36-apycha28.mjs";import"./cli-1.1.36-p375v620.mjs";import"./cli-1.1.36-s8jcsdgb.mjs";import"./cli-1.1.36-65fkb20j.mjs";import{D5 as s,E5 as lG}from"./cli-1.1.36-8mc299mk.mjs";import"./cli-1.1.36-b0rge62y.mjs";import"./cli-1.1.36-0qdd3hmz.mjs";import"./cli-1.1.36-mam7e8zn.mjs";import"./cli-1.1.36-5zzwcyt7.mjs";import"./cli-1.1.36-451x9avw.mjs";import"./cli-1.1.36-7xx3rm4x.mjs";import"./cli-1.1.36-0d7qj290.mjs";import"./cli-1.1.36-n9knhbs6.mjs";import"./cli-1.1.36-rqhp2xt1.mjs";import"./cli-1.1.36-xs4p38vb.mjs";import"./cli-1.1.36-tda1q99k.mjs";import"./cli-1.1.36-hvnr6rta.mjs";import{Bca as jG,R8 as X0,S8 as BN,Xca as IN,oaa as ON,oca as yN,oda as CG,paa as DG,pca as u,qca as HN,tca as FN}from"./cli-1.1.36-t6sjxpcb.mjs";import"./cli-1.1.36-6q7sfj4e.mjs";import"./cli-1.1.36-m11p0exg.mjs";import"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-ss62b517.mjs";import"./cli-1.1.36-jqn2tez7.mjs";import"./cli-1.1.36-6yqvdwyp.mjs";import{dia as b0,iia as nG}from"./cli-1.1.36-jpcwwd65.mjs";import"./cli-1.1.36-n5etyd9m.mjs";import"./cli-1.1.36-6g1w2zbr.mjs";import"./cli-1.1.36-0qtyffhw.mjs";import{Doa as dG,fka as tN}from"./cli-1.1.36-bsfazmtt.mjs";import"./cli-1.1.36-cm2kys6t.mjs";import"./cli-1.1.36-s9ar9y3g.mjs";import{Npa as i,Rpa as e}from"./cli-1.1.36-c4pkjm54.mjs";function o0(U){let N=bN.c(9),{ruleValue:J}=U;switch(J.toolName){case a0.name:if(J.ruleContent)if(J.ruleContent.endsWith(":*")){let z;if(N[0]!==J.ruleContent)z=J.ruleContent.slice(0,-2),N[0]=J.ruleContent,N[1]=z;else z=N[1];let G;if(N[2]!==z)G=T(H,{dimColor:!0,children:["Any Bash command starting with"," ",Y(H,{bold:!0,children:z})]}),N[2]=z,N[3]=G;else G=N[3];return G}else{let z;if(N[4]!==J.ruleContent)z=T(H,{dimColor:!0,children:["The Bash command ",Y(H,{bold:!0,children:J.ruleContent})]}),N[4]=J.ruleContent,N[5]=z;else z=N[5];return z}else{let z;if(N[6]===Symbol.for("react.memo_cache_sentinel"))z=Y(H,{dimColor:!0,children:"Any Bash command"}),N[6]=z;else z=N[6];return z}default:if(!J.ruleContent){let z;if(N[7]!==J.toolName)z=T(H,{dimColor:!0,children:["Any use of the ",Y(H,{bold:!0,children:J.toolName})," tool"]}),N[7]=J.toolName,N[8]=z;else z=N[8];return z}else return null}}var bN;var EN=e(()=>{J0();TN();x();bN=i(G0(),1)});function yG(U){switch(U){case"localSettings":return{label:"Project settings (local)",description:`Saved in ${IN("localSettings")}`,value:U};case"projectSettings":return{label:"Project settings",description:`Checked in at ${IN("projectSettings")}`,value:U};case"userSettings":return{label:"User settings",description:"Saved in ~/.claudin/settings.json",value:U}}}function gN(U){let N=CN.c(26),{onAddRules:J,onCancel:z,ruleValues:G,ruleBehavior:w,initialContext:B,setToolPermissionContext:q}=U,E;if(N[0]===Symbol.for("react.memo_cache_sentinel"))E=ON.map(yG),N[0]=E;else E=N[0];let k=E,W;if(N[1]!==B||N[2]!==J||N[3]!==z||N[4]!==w||N[5]!==G||N[6]!==q)W=(j)=>{if(j==="cancel"){z();return}else if(ON.includes(j)){let A=j,D=E0(B,{type:"addRules",rules:G,behavior:w,destination:A});$0({type:"addRules",rules:G,behavior:w,destination:A}),q(D);let C=G.map((m)=>({ruleValue:m,ruleBehavior:w,source:A})),S=MN.isSandboxingEnabled()&&MN.isAutoAllowBashIfSandboxedEnabled(),l=jN(D,{sandboxAutoAllowEnabled:S}).filter((m)=>G.some((R)=>R.toolName===m.rule.ruleValue.toolName&&R.ruleContent===m.rule.ruleValue.ruleContent));J(C,l.length>0?l:void 0)}},N[1]=B,N[2]=J,N[3]=z,N[4]=w,N[5]=G,N[6]=q,N[7]=W;else W=N[7];let Z=W,L;if(N[8]!==G.length)L=FN(G.length,"rule"),N[8]=G.length,N[9]=L;else L=N[9];let I=`Add ${w} permission ${L}`,M;if(N[10]!==G)M=G.map(RG),N[10]=G,N[11]=M;else M=N[11];let O;if(N[12]!==M)O=Y(v,{flexDirection:"column",paddingX:2,children:M}),N[12]=M,N[13]=O;else O=N[13];let K=G.length===1?"Where should this rule be saved?":"Where should these rules be saved?",b;if(N[14]!==K)b=Y(H,{children:K}),N[14]=K,N[15]=b;else b=N[15];let Q;if(N[16]!==Z)Q=Y(n,{options:k,onChange:Z}),N[16]=Z,N[17]=Q;else Q=N[17];let f;if(N[18]!==b||N[19]!==Q)f=T(v,{flexDirection:"column",marginY:1,children:[b,Q]}),N[18]=b,N[19]=Q,N[20]=f;else f=N[20];let F;if(N[21]!==z||N[22]!==O||N[23]!==f||N[24]!==I)F=T(s0,{title:I,onCancel:z,color:"permission",children:[O,f]}),N[21]=z,N[22]=O,N[23]=f,N[24]=I,N[25]=F;else F=N[25];return F}function RG(U){return T(v,{flexDirection:"column",children:[Y(H,{bold:!0,children:u(U)}),Y(o0,{ruleValue:U})]},u(U))}var CN;var vN=e(()=>{V0();J0();KN();HN();vG();gG();DG();CG();jG();DN();EN();x();CN=i(G0(),1)});function cN(U){let N=xN.c(24),{onCancel:J,onSubmit:z,ruleBehavior:G}=U,[w,B]=AN.useState(""),[q,E]=AN.useState(0),k=T0(),W;if(N[0]===Symbol.for("react.memo_cache_sentinel"))W={context:"Settings"},N[0]=W;else W=N[0];P0("confirm:no",J,W);let{columns:Z}=SN(),L=Z-6,I;if(N[1]!==z||N[2]!==G)I=(C)=>{let S=C.trim();if(S.length===0)return;let p=yN(S);z(p,G)},N[1]=z,N[2]=G,N[3]=I;else I=N[3];let M=I,O;if(N[4]!==G)O=T(H,{bold:!0,color:"permission",children:["Add ",G," permission rule"]}),N[4]=G,N[5]=O;else O=N[5];let K;if(N[6]===Symbol.for("react.memo_cache_sentinel"))K=Y(RN,{}),N[6]=K;else K=N[6];let b,Q;if(N[7]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{bold:!0,children:u({toolName:hN.name})}),Q=Y(H,{bold:!1,children:" or "}),N[7]=b,N[8]=Q;else b=N[7],Q=N[8];let f;if(N[9]===Symbol.for("react.memo_cache_sentinel"))f=T(H,{children:["Permission rules are a tool name, optionally followed by a specifier in parentheses.",K,"e.g.,"," ",b,Q,Y(H,{bold:!0,children:u({toolName:a0.name,ruleContent:"ls:*"})})]}),N[9]=f;else f=N[9];let F;if(N[10]!==q||N[11]!==M||N[12]!==w||N[13]!==L)F=T(v,{flexDirection:"column",children:[f,Y(v,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:Y(pN,{showCursor:!0,value:w,onChange:B,onSubmit:M,placeholder:`Enter permission rule${X0.ellipsis}`,columns:L,cursorOffset:q,onChangeCursorOffset:E})})]}),N[10]=q,N[11]=M,N[12]=w,N[13]=L,N[14]=F;else F=N[14];let j;if(N[15]!==O||N[16]!==F)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[O,F]}),N[15]=O,N[16]=F,N[17]=j;else j=N[17];let A;if(N[18]!==k.keyName||N[19]!==k.pending)A=Y(v,{marginLeft:3,children:k.pending?T(H,{dimColor:!0,children:["Press ",k.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Enter to submit · Esc to cancel"})}),N[18]=k.keyName,N[19]=k.pending,N[20]=A;else A=N[20];let D;if(N[21]!==A||N[22]!==j)D=T(a,{children:[j,A]}),N[21]=A,N[22]=j,N[23]=D;else D=N[23];return D}var xN,AN;var dN=e(()=>{BN();_G();_N();SG();J0();mN();TN();mG();HN();x();xN=i(G0(),1),AN=i(t0(),1)});function rN(U){let N=lN.c(30),{onHeaderFocusChange:J,onStateChange:z}=U,{headerFocused:G,focusHeader:w}=O0(),B,q;if(N[0]!==G||N[1]!==J)B=()=>{J?.(G)},q=[G,J],N[0]=G,N[1]=J,N[2]=B,N[3]=q;else B=N[2],q=N[3];N0.useEffect(B,q);let[E]=N0.useState(cG),[k,W]=N0.useState(xG),[Z,L]=N0.useState(pG),[I,M]=N0.useState(0),O,K;if(N[4]!==k||N[5]!==E||N[6]!==z||N[7]!==Z)O=()=>{z({approved:k,retry:Z,denials:E})},K=[k,Z,E,z],N[4]=k,N[5]=E,N[6]=z,N[7]=Z,N[8]=O,N[9]=K;else O=N[8],K=N[9];N0.useEffect(O,K);let b;if(N[10]===Symbol.for("react.memo_cache_sentinel"))b=(R)=>{let _=Number(R);W((c)=>{let h=new Set(c);if(h.has(_))h.delete(_);else h.add(_);return h})},N[10]=b;else b=N[10];let Q=b,f;if(N[11]===Symbol.for("react.memo_cache_sentinel"))f=(R)=>{M(Number(R))},N[11]=f;else f=N[11];let F=f,j;if(N[12]!==I)j=(R,_)=>{if(R==="r")L((c)=>{let h=new Set(c);if(h.has(I))h.delete(I);else h.add(I);return h}),W((c)=>{if(c.has(I))return c;let h=new Set(c);return h.add(I),h})},N[12]=I,N[13]=j;else j=N[13];let A=E.length>0,D;if(N[14]!==A)D={isActive:A},N[14]=A,N[15]=D;else D=N[15];if(uN(j,D),E.length===0){let R;if(N[16]===Symbol.for("react.memo_cache_sentinel"))R=Y(H,{dimColor:!0,children:"No recent denials. Commands denied by the auto mode classifier will appear here."}),N[16]=R;else R=N[16];return R}let C;if(N[17]!==k||N[18]!==E||N[19]!==Z){let R;if(N[21]!==k||N[22]!==Z)R=(_,c)=>{let h=k.has(c),NN=Z.has(c)?" (retry)":"";return{label:T(H,{children:[Y(iN,{status:h?"success":"error",withSpace:!0}),_.display,Y(H,{dimColor:!0,children:NN})]}),value:String(c)}},N[21]=k,N[22]=Z,N[23]=R;else R=N[23];C=E.map(R),N[17]=k,N[18]=E,N[19]=Z,N[20]=C}else C=N[20];let S=C,p;if(N[24]===Symbol.for("react.memo_cache_sentinel"))p=Y(H,{children:"Commands recently denied by the auto mode classifier."}),N[24]=p;else p=N[24];let l=Math.min(10,S.length),m;if(N[25]!==w||N[26]!==G||N[27]!==S||N[28]!==l)m=T(v,{flexDirection:"column",children:[p,Y(v,{marginTop:1,children:Y(n,{options:S,onChange:Q,onFocus:F,visibleOptionCount:l,isDisabled:G,onUpFromFirstItem:w})})]}),N[25]=w,N[26]=G,N[27]=S,N[28]=l,N[29]=m;else m=N[29];return m}function pG(){return new Set}function xG(){return new Set}function cG(){return e0()}var lN,N0;var aN=e(()=>{J0();nN();V0();hG();fN();x();lN=i(G0(),1),N0=i(t0(),1)});function $N(U){let N=oN.c(19),{directoryPath:J,onRemove:z,onCancel:G,permissionContext:w,setPermissionContext:B}=U,q;if(N[0]!==J||N[1]!==z||N[2]!==w||N[3]!==B)q=()=>{let K=E0(w,{type:"removeDirectories",directories:[J],destination:"session"});B(K),z()},N[0]=J,N[1]=z,N[2]=w,N[3]=B,N[4]=q;else q=N[4];let E=q,k;if(N[5]!==E||N[6]!==G)k=(K)=>{if(K==="yes")E();else G()},N[5]=E,N[6]=G,N[7]=k;else k=N[7];let W=k,Z;if(N[8]!==J)Z=Y(v,{marginX:2,flexDirection:"column",children:Y(H,{bold:!0,children:J})}),N[8]=J,N[9]=Z;else Z=N[9];let L;if(N[10]===Symbol.for("react.memo_cache_sentinel"))L=Y(H,{children:"Claudin will no longer have access to files in this directory."}),N[10]=L;else L=N[10];let I;if(N[11]===Symbol.for("react.memo_cache_sentinel"))I=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[11]=I;else I=N[11];let M;if(N[12]!==W||N[13]!==G)M=Y(n,{onChange:W,onCancel:G,options:I}),N[12]=W,N[13]=G,N[14]=M;else M=N[14];let O;if(N[15]!==G||N[16]!==Z||N[17]!==M)O=T(s0,{title:"Remove directory from workspace?",onCancel:G,color:"error",children:[Z,L,M]}),N[15]=G,N[16]=Z,N[17]=M,N[18]=O;else O=N[18];return O}var oN;var sN=e(()=>{V0();J0();KN();DN();x();oN=i(G0(),1)});function GG(U){let N=eN.c(23),{onExit:J,toolPermissionContext:z,onRequestAddDirectory:G,onRequestRemoveDirectory:w,onHeaderFocusChange:B}=U,{headerFocused:q,focusHeader:E}=O0(),k,W;if(N[0]!==q||N[1]!==B)k=()=>{B?.(q)},W=[q,B],N[0]=q,N[1]=B,N[2]=k,N[3]=W;else k=N[2],W=N[3];NG.useEffect(k,W);let Z;if(N[4]!==z.additionalWorkingDirectories)Z=Array.from(z.additionalWorkingDirectories.keys()).map(iG),N[4]=z.additionalWorkingDirectories,N[5]=Z;else Z=N[5];let L=Z,I;if(N[6]!==L||N[7]!==G||N[8]!==w)I=(A)=>{if(A==="add-directory"){G();return}let D=L.find((C)=>C.path===A);if(D&&D.isDeletable)w(D.path)},N[6]=L,N[7]=G,N[8]=w,N[9]=I;else I=N[9];let M=I,O;if(N[10]!==J)O=()=>J("Workspace dialog dismissed",{display:"system"}),N[10]=J,N[11]=O;else O=N[11];let K=O,b;if(N[12]!==L){b=L.map(uG);let A;if(N[14]===Symbol.for("react.memo_cache_sentinel"))A={label:`Add directory${X0.ellipsis}`,value:"add-directory"},N[14]=A;else A=N[14];b.push(A),N[12]=L,N[13]=b}else b=N[13];let Q=b,f;if(N[15]===Symbol.for("react.memo_cache_sentinel"))f=T(v,{flexDirection:"row",marginTop:1,marginLeft:2,gap:1,children:[Y(H,{children:`- ${tN()}`}),Y(H,{dimColor:!0,children:"(Original working directory)"})]}),N[15]=f;else f=N[15];let F=Math.min(10,Q.length),j;if(N[16]!==E||N[17]!==K||N[18]!==M||N[19]!==q||N[20]!==Q||N[21]!==F)j=T(v,{flexDirection:"column",marginBottom:1,children:[f,Y(n,{options:Q,onChange:M,onCancel:K,visibleOptionCount:F,onUpFromFirstItem:E,isDisabled:q})]}),N[16]=E,N[17]=K,N[18]=M,N[19]=q,N[20]=Q,N[21]=F,N[22]=j;else j=N[22];return j}function uG(U){return{label:U.path,value:U.path}}function iG(U){return{path:U,isCurrent:!1,isDeletable:!0}}var eN,NG;var JG=e(()=>{BN();dG();V0();J0();fN();x();eN=i(G0(),1),NG=i(t0(),1)});function eG(U){let N=M0.c(4),{rule:J}=U,z;if(N[0]!==J.source)z=YG(J.source),N[0]=J.source,N[1]=z;else z=N[1];let G=`From ${z}`,w;if(N[2]!==G)w=Y(H,{dimColor:!0,children:G}),N[2]=G,N[3]=w;else w=N[3];return w}function NJ(U){switch(U){case"allow":return"allowed";case"deny":return"denied";case"ask":return"ask"}}function GJ(U){let N=M0.c(42),{rule:J,onDelete:z,onCancel:G}=U,w=T0(),B;if(N[0]===Symbol.for("react.memo_cache_sentinel"))B={context:"Confirmation"},N[0]=B;else B=N[0];P0("confirm:no",G,B);let q;if(N[1]!==J.ruleValue)q=u(J.ruleValue),N[1]=J.ruleValue,N[2]=q;else q=N[2];let E;if(N[3]!==q)E=Y(H,{bold:!0,children:q}),N[3]=q,N[4]=E;else E=N[4];let k;if(N[5]!==J.ruleValue)k=Y(o0,{ruleValue:J.ruleValue}),N[5]=J.ruleValue,N[6]=k;else k=N[6];let W;if(N[7]!==J)W=Y(eG,{rule:J}),N[7]=J,N[8]=W;else W=N[8];let Z;if(N[9]!==E||N[10]!==k||N[11]!==W)Z=T(v,{flexDirection:"column",marginX:2,children:[E,k,W]}),N[9]=E,N[10]=k,N[11]=W,N[12]=Z;else Z=N[12];let L=Z,I;if(N[13]!==w.keyName||N[14]!==w.pending)I=Y(v,{marginLeft:3,children:w.pending?T(H,{dimColor:!0,children:["Press ",w.keyName," again to exit"]}):Y(H,{dimColor:!0,children:"Esc to cancel"})}),N[13]=w.keyName,N[14]=w.pending,N[15]=I;else I=N[15];let M=I;if(J.source==="policySettings"){let D;if(N[16]===Symbol.for("react.memo_cache_sentinel"))D=Y(H,{bold:!0,color:"permission",children:"Rule details"}),N[16]=D;else D=N[16];let C;if(N[17]===Symbol.for("react.memo_cache_sentinel"))C=T(H,{italic:!0,children:["This rule is configured by managed settings and cannot be modified.",`
|
|
2
|
+
`,"Contact your system administrator for more information."]}),N[17]=C;else C=N[17];let S;if(N[18]!==L)S=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"permission",children:[D,L,C]}),N[18]=L,N[19]=S;else S=N[19];let p;if(N[20]!==M||N[21]!==S)p=T(a,{children:[S,M]}),N[20]=M,N[21]=S,N[22]=p;else p=N[22];return p}let O;if(N[23]!==J.ruleBehavior)O=NJ(J.ruleBehavior),N[23]=J.ruleBehavior,N[24]=O;else O=N[24];let K;if(N[25]!==O)K=T(H,{bold:!0,color:"error",children:["Delete ",O," tool?"]}),N[25]=O,N[26]=K;else K=N[26];let b;if(N[27]===Symbol.for("react.memo_cache_sentinel"))b=Y(H,{children:"Are you sure you want to delete this permission rule?"}),N[27]=b;else b=N[27];let Q;if(N[28]!==G||N[29]!==z)Q=(D)=>D==="yes"?z():G(),N[28]=G,N[29]=z,N[30]=Q;else Q=N[30];let f;if(N[31]===Symbol.for("react.memo_cache_sentinel"))f=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],N[31]=f;else f=N[31];let F;if(N[32]!==G||N[33]!==Q)F=Y(n,{onChange:Q,onCancel:G,options:f}),N[32]=G,N[33]=Q,N[34]=F;else F=N[34];let j;if(N[35]!==L||N[36]!==F||N[37]!==K)j=T(v,{flexDirection:"column",gap:1,borderStyle:"round",paddingLeft:1,paddingRight:1,borderColor:"error",children:[K,L,b,F]}),N[35]=L,N[36]=F,N[37]=K,N[38]=j;else j=N[38];let A;if(N[39]!==M||N[40]!==j)A=T(a,{children:[j,M]}),N[39]=M,N[40]=j,N[41]=A;else A=N[41];return A}function JJ(U){let N=M0.c(26),{options:J,searchQuery:z,isSearchMode:G,isFocused:w,onSelect:B,onCancel:q,lastFocusedRuleKey:E,cursorOffset:k,onHeaderFocusChange:W}=U,Z=IG(),{headerFocused:L,focusHeader:I,blurHeader:M}=O0(),O,K;if(N[0]!==M||N[1]!==L||N[2]!==G)O=()=>{if(G&&L)M()},K=[G,L,M],N[0]=M,N[1]=L,N[2]=G,N[3]=O,N[4]=K;else O=N[3],K=N[4];d.useEffect(O,K);let b,Q;if(N[5]!==L||N[6]!==W)b=()=>{W?.(L)},Q=[L,W],N[5]=L,N[6]=W,N[7]=b,N[8]=Q;else b=N[7],Q=N[8];d.useEffect(b,Q);let f=G&&!L,F;if(N[9]!==k||N[10]!==w||N[11]!==z||N[12]!==f||N[13]!==Z)F=Y(v,{marginBottom:1,flexDirection:"column",children:Y(qG,{query:z,isFocused:f,isTerminalFocused:w,width:Z,cursorOffset:k})}),N[9]=k,N[10]=w,N[11]=z,N[12]=f,N[13]=Z,N[14]=F;else F=N[14];let j=Math.min(10,J.length),A=G||L,D;if(N[15]!==I||N[16]!==E||N[17]!==q||N[18]!==B||N[19]!==J||N[20]!==j||N[21]!==A)D=Y(n,{options:J,onChange:B,onCancel:q,visibleOptionCount:j,isDisabled:A,defaultFocusValue:E,onUpFromFirstItem:I}),N[15]=I,N[16]=E,N[17]=q,N[18]=B,N[19]=J,N[20]=j,N[21]=A,N[22]=D;else D=N[22];let C;if(N[23]!==F||N[24]!==D)C=T(v,{flexDirection:"column",children:[F,D]}),N[23]=F,N[24]=D,N[25]=C;else C=N[25];return C}function VN(U){let N=M0.c(27),J,z,G,w,B,q,E,k,W;if(N[0]!==U){let{tab:M,getRulesOptions:O,handleToolSelect:K,...b}=U;W=M,G=K,w=b,z=v,q="column",E=W==="allow"?0:void 0;let Q;if(N[10]===Symbol.for("react.memo_cache_sentinel"))Q={allow:"Claudin won't ask before using allowed tools.",ask:"Claudin will always ask for confirmation before using these tools.",deny:"Claudin will always reject requests to use denied tools."},N[10]=Q;else Q=N[10];let f=Q[W];if(N[11]!==f)k=Y(H,{children:f}),N[11]=f,N[12]=k;else k=N[12];J=JJ,B=O(W,w.searchQuery),N[0]=U,N[1]=J,N[2]=z,N[3]=G,N[4]=w,N[5]=B,N[6]=q,N[7]=E,N[8]=k,N[9]=W}else J=N[1],z=N[2],G=N[3],w=N[4],B=N[5],q=N[6],E=N[7],k=N[8],W=N[9];let Z;if(N[13]!==G||N[14]!==W)Z=(M)=>G(M,W),N[13]=G,N[14]=W,N[15]=Z;else Z=N[15];let L;if(N[16]!==J||N[17]!==w||N[18]!==B.options||N[19]!==Z)L=Y(J,{options:B.options,onSelect:Z,...w}),N[16]=J,N[17]=w,N[18]=B.options,N[19]=Z,N[20]=L;else L=N[20];let I;if(N[21]!==z||N[22]!==q||N[23]!==E||N[24]!==k||N[25]!==L)I=T(z,{flexDirection:q,flexShrink:E,children:[k,L]}),N[21]=z,N[22]=q,N[23]=E,N[24]=k,N[25]=L,N[26]=I;else I=N[26];return I}function MG(U){let N=M0.c(113),{onExit:J,initialTab:z,onRetryDenials:G}=U,w;if(N[0]===Symbol.for("react.memo_cache_sentinel"))w=e0(),N[0]=w;else w=N[0];let B=w.length>0,q=z??(B?"recent":"allow"),E;if(N[1]===Symbol.for("react.memo_cache_sentinel"))E=[],N[1]=E;else E=N[1];let[k,W]=d.useState(E),Z=QG(UJ),L=WG(),I=XG(),M;if(N[2]===Symbol.for("react.memo_cache_sentinel"))M={approved:new Set,retry:new Set,denials:[]},N[2]=M;else M=N[2];let O=d.useRef(M),K;if(N[3]===Symbol.for("react.memo_cache_sentinel"))K=(X)=>{O.current=X},N[3]=K;else K=N[3];let b=K,[Q,f]=d.useState(),[F,j]=d.useState(),[A,D]=d.useState(null),[C,S]=d.useState(null),[p,l]=d.useState(!1),[m,R]=d.useState(null),[_,c]=d.useState(!1),[h,NN]=d.useState(!0),F0;if(N[4]===Symbol.for("react.memo_cache_sentinel"))F0=(X)=>{NN(X)},N[4]=F0;else F0=N[4];let GN=F0,H0;if(N[5]!==Z)H0=new Map,ZG(Z).forEach((X)=>{H0.set(b0(X),X)}),N[5]=Z,N[6]=H0;else H0=N[6];let JN=H0,K0;if(N[7]!==Z)K0=new Map,zG(Z).forEach((X)=>{K0.set(b0(X),X)}),N[7]=Z,N[8]=K0;else K0=N[8];let XN=K0,A0;if(N[9]!==Z)A0=new Map,LG(Z).forEach((X)=>{A0.set(b0(X),X)}),N[9]=Z,N[10]=A0;else A0=N[10];let YN=A0,D0;if(N[11]!==JN||N[12]!==YN||N[13]!==XN)D0=(X,V)=>{let P=V===void 0?"":V,g=(()=>{switch(X){case"allow":return JN;case"deny":return XN;case"ask":return YN;case"workspace":case"recent":return new Map}})(),y=[];if(X!=="workspace"&&X!=="recent"&&!P)y.push({label:`Add a new rule${X0.ellipsis}`,value:"add-new-rule"});let r=Array.from(g.keys()).sort((W0,t)=>{let f0=g.get(W0),PN=g.get(t);if(f0&&PN){let bG=u(f0.ruleValue).toLowerCase(),FG=u(PN.ruleValue).toLowerCase();return bG.localeCompare(FG)}return 0}),Q0=P.toLowerCase();for(let W0 of r){let t=g.get(W0);if(t){let f0=u(t.ruleValue);if(P&&!f0.toLowerCase().includes(Q0))continue;y.push({label:f0,value:W0})}}return{options:y,rulesByKey:g}},N[11]=JN,N[12]=YN,N[13]=XN,N[14]=D0;else D0=N[14];let o=D0,Y0=T0(),B0=!Q&&!A&&!C&&!p&&!m,ZN=B0&&_,j0;if(N[15]===Symbol.for("react.memo_cache_sentinel"))j0=()=>{c(!1)},N[15]=j0;else j0=N[15];let C0;if(N[16]!==ZN)C0={isActive:ZN,onExit:j0},N[16]=ZN,N[17]=C0;else C0=N[17];let{query:zN,setQuery:g0,cursorOffset:LN}=wG(C0),v0;if(N[18]!==_||N[19]!==B0||N[20]!==g0)v0=(X)=>{if(!B0)return;if(_)return;if(X.ctrl||X.meta)return;if(X.key==="/")X.preventDefault(),c(!0),g0("");else if(X.key.length===1&&X.key!=="j"&&X.key!=="k"&&X.key!=="m"&&X.key!=="i"&&X.key!=="r"&&X.key!==" ")X.preventDefault(),c(!0),g0(X.key)},N[18]=_,N[19]=B0,N[20]=g0,N[21]=v0;else v0=N[21];let UN=v0,y0;if(N[22]!==o)y0=(X,V)=>{let{rulesByKey:P}=o(V);if(X==="add-new-rule"){D(V);return}else{f(P.get(X));return}},N[22]=o,N[23]=y0;else y0=N[23];let kN=y0,R0;if(N[24]===Symbol.for("react.memo_cache_sentinel"))R0=()=>{D(null)},N[24]=R0;else R0=N[24];let AG=R0,S0;if(N[25]===Symbol.for("react.memo_cache_sentinel"))S0=(X,V)=>{S({ruleValue:X,ruleBehavior:V}),D(null)},N[25]=S0;else S0=N[25];let BG=S0,m0;if(N[26]===Symbol.for("react.memo_cache_sentinel"))m0=(X,V)=>{S(null);for(let P of X)W((g)=>[...g,`Added ${P.ruleBehavior} rule ${s.bold(u(P.ruleValue))}`]);if(V&&V.length>0)for(let P of V){let g=P.shadowType==="deny"?"blocked":"shadowed";W((y)=>[...y,s.yellow(`${X0.warning} Warning: ${u(P.rule.ruleValue)} is ${g}`),s.dim(` ${P.reason}`),s.dim(` Fix: ${P.fix}`)])}},N[26]=m0;else m0=N[26];let fG=m0,_0;if(N[27]===Symbol.for("react.memo_cache_sentinel"))_0=()=>{S(null)},N[27]=_0;else _0=N[27];let VG=_0,h0;if(N[28]===Symbol.for("react.memo_cache_sentinel"))h0=()=>l(!0),N[28]=h0;else h0=N[28];let PG=h0,p0;if(N[29]===Symbol.for("react.memo_cache_sentinel"))p0=(X)=>R(X),N[29]=p0;else p0=N[29];let TG=p0,x0;if(N[30]!==k||N[31]!==J||N[32]!==G)x0=()=>{let X=O.current,V=(y)=>Array.from(y).map((r)=>X.denials[r]).filter(LJ),P=V(X.retry);if(P.length>0){let y=P.map(zJ);G?.(y),J(void 0,{shouldQuery:!0,metaMessages:[`Permission granted for: ${y.join(", ")}. You may now retry ${y.length===1?"this command":"these commands"} if you would like.`]});return}let g=V(X.approved);if(g.length>0||k.length>0){let y=g.length>0?[`Approved ${g.map(ZJ).join(", ")}`]:[];J([...y,...k].join(`
|
|
3
|
+
`))}else J("Permissions dialog dismissed",{display:"system"})},N[30]=k,N[31]=J,N[32]=G,N[33]=x0;else x0=N[33];let c0=x0,wN=B0&&!_,d0;if(N[34]!==wN)d0={context:"Settings",isActive:wN},N[34]=wN,N[35]=d0;else d0=N[35];P0("confirm:no",c0,d0);let u0;if(N[36]!==o||N[37]!==Q||N[38]!==L||N[39]!==Z)u0=()=>{if(!Q)return;let{options:X}=o(Q.ruleBehavior),V=b0(Q),P=X.filter(YJ).map(XJ),g=P.indexOf(V),y;if(g!==-1){if(g<P.length-1)y=P[g+1];else if(g>0)y=P[g-1]}j(y),UG({rule:Q,initialContext:Z,setToolPermissionContext(r){L((Q0)=>({...Q0,toolPermissionContext:r}))}}),W((r)=>[...r,`Deleted ${Q.ruleBehavior} rule ${s.bold(u(Q.ruleValue))}`]),f(void 0)},N[36]=o,N[37]=Q,N[38]=L,N[39]=Z,N[40]=u0;else u0=N[40];let qN=u0;if(Q){let X;if(N[41]===Symbol.for("react.memo_cache_sentinel"))X=()=>f(void 0),N[41]=X;else X=N[41];let V;if(N[42]!==qN||N[43]!==Q)V=Y(GJ,{rule:Q,onDelete:qN,onCancel:X}),N[42]=qN,N[43]=Q,N[44]=V;else V=N[44];return V}if(A&&A!=="workspace"&&A!=="recent"){let X;if(N[45]!==A)X=Y(cN,{onCancel:AG,onSubmit:BG,ruleBehavior:A}),N[45]=A,N[46]=X;else X=N[46];return X}if(C){let X;if(N[47]!==C.ruleValue)X=[C.ruleValue],N[47]=C.ruleValue,N[48]=X;else X=N[48];let V;if(N[49]!==L)V=(g)=>{L((y)=>({...y,toolPermissionContext:g}))},N[49]=L,N[50]=V;else V=N[50];let P;if(N[51]!==X||N[52]!==V||N[53]!==Z||N[54]!==C.ruleBehavior)P=Y(gN,{onAddRules:fG,onCancel:VG,ruleValues:X,ruleBehavior:C.ruleBehavior,initialContext:Z,setToolPermissionContext:V}),N[51]=X,N[52]=V,N[53]=Z,N[54]=C.ruleBehavior,N[55]=P;else P=N[55];return P}if(p){let X;if(N[56]!==L||N[57]!==Z)X=(g,y)=>{let Q0={type:"addDirectories",directories:[g],destination:y?"localSettings":"session"},W0=E0(Z,Q0);if(L((t)=>({...t,toolPermissionContext:W0})),y)$0(Q0);W((t)=>[...t,`Added directory ${s.bold(g)} to workspace${y?" and saved to local settings":" for this session"}`]),l(!1)},N[56]=L,N[57]=Z,N[58]=X;else X=N[58];let V;if(N[59]===Symbol.for("react.memo_cache_sentinel"))V=()=>l(!1),N[59]=V;else V=N[59];let P;if(N[60]!==X||N[61]!==Z)P=Y(EG,{onAddDirectory:X,onCancel:V,permissionContext:Z}),N[60]=X,N[61]=Z,N[62]=P;else P=N[62];return P}if(m){let X;if(N[63]!==m)X=()=>{W((y)=>[...y,`Removed directory ${s.bold(m)} from workspace`]),R(null)},N[63]=m,N[64]=X;else X=N[64];let V;if(N[65]===Symbol.for("react.memo_cache_sentinel"))V=()=>R(null),N[65]=V;else V=N[65];let P;if(N[66]!==L)P=(y)=>{L((r)=>({...r,toolPermissionContext:y}))},N[66]=L,N[67]=P;else P=N[67];let g;if(N[68]!==m||N[69]!==X||N[70]!==P||N[71]!==Z)g=Y($N,{directoryPath:m,onRemove:X,onCancel:V,permissionContext:Z,setPermissionContext:P}),N[68]=m,N[69]=X,N[70]=P,N[71]=Z,N[72]=g;else g=N[72];return g}let i0;if(N[73]!==o||N[74]!==c0||N[75]!==kN||N[76]!==_||N[77]!==I||N[78]!==F||N[79]!==LN||N[80]!==zN)i0={searchQuery:zN,isSearchMode:_,isFocused:I,onCancel:c0,lastFocusedRuleKey:F,cursorOffset:LN,getRulesOptions:o,handleToolSelect:kN,onHeaderFocusChange:GN},N[73]=o,N[74]=c0,N[75]=kN,N[76]=_,N[77]=I,N[78]=F,N[79]=LN,N[80]=zN,N[81]=i0;else i0=N[81];let $=i0,QN=!!Q||!!A||!!C||p||!!m,WN=!_,n0;if(N[82]===Symbol.for("react.memo_cache_sentinel"))n0=Y(I0,{id:"recent",title:"Recently denied",children:Y(rN,{onHeaderFocusChange:GN,onStateChange:b})}),N[82]=n0;else n0=N[82];let Z0;if(N[83]!==$)Z0=Y(I0,{id:"allow",title:"Allow",children:Y(VN,{tab:"allow",...$})}),N[83]=$,N[84]=Z0;else Z0=N[84];let z0;if(N[85]!==$)z0=Y(I0,{id:"ask",title:"Ask",children:Y(VN,{tab:"ask",...$})}),N[85]=$,N[86]=z0;else z0=N[86];let L0;if(N[87]!==$)L0=Y(I0,{id:"deny",title:"Deny",children:Y(VN,{tab:"deny",...$})}),N[87]=$,N[88]=L0;else L0=N[88];let l0;if(N[89]===Symbol.for("react.memo_cache_sentinel"))l0=Y(H,{children:"Claudin can read files in the workspace, and make edits when auto-accept edits is on."}),N[89]=l0;else l0=N[89];let U0;if(N[90]!==J||N[91]!==Z)U0=Y(I0,{id:"workspace",title:"Workspace",children:T(v,{flexDirection:"column",children:[l0,Y(GG,{onExit:J,toolPermissionContext:Z,onRequestAddDirectory:PG,onRequestRemoveDirectory:TG,onHeaderFocusChange:GN})]})}),N[90]=J,N[91]=Z,N[92]=U0;else U0=N[92];let k0;if(N[93]!==q||N[94]!==QN||N[95]!==WN||N[96]!==Z0||N[97]!==z0||N[98]!==L0||N[99]!==U0)k0=T(OG,{title:"Permissions:",color:"permission",defaultTab:q,hidden:QN,initialHeaderFocused:!B,navFromContent:WN,children:[n0,Z0,z0,L0,U0]}),N[93]=q,N[94]=QN,N[95]=WN,N[96]=Z0,N[97]=z0,N[98]=L0,N[99]=U0,N[100]=k0;else k0=N[100];let w0;if(N[101]!==q||N[102]!==Y0.keyName||N[103]!==Y0.pending||N[104]!==h||N[105]!==_)w0=Y(v,{marginTop:1,paddingLeft:1,children:Y(H,{dimColor:!0,children:Y0.pending?T(a,{children:["Press ",Y0.keyName," again to exit"]}):h?Y(a,{children:"←/→ tab switch · ↓ return · Esc cancel"}):_?Y(a,{children:"Type to filter · Enter/↓ select · ↑ tabs · Esc clear"}):B&&q==="recent"?Y(a,{children:"Enter approve · r retry · ↑↓ navigate · ←/→ switch · Esc cancel"}):Y(a,{children:"↑↓ navigate · Enter select · Type to search · ←/→ switch · Esc cancel"})})}),N[101]=q,N[102]=Y0.keyName,N[103]=Y0.pending,N[104]=h,N[105]=_,N[106]=w0;else w0=N[106];let q0;if(N[107]!==k0||N[108]!==w0)q0=T(kG,{color:"permission",children:[k0,w0]}),N[107]=k0,N[108]=w0,N[109]=q0;else q0=N[109];let r0;if(N[110]!==UN||N[111]!==q0)r0=Y(v,{flexDirection:"column",onKeyDown:UN,children:q0}),N[110]=UN,N[111]=q0,N[112]=r0;else r0=N[112];return r0}function XJ(U){return U.value}function YJ(U){return U.value!=="add-new-rule"}function ZJ(U){return s.bold(U.display)}function zJ(U){return U.display}function LJ(U){return U!==void 0}function UJ(U){return U.toolPermissionContext}var M0,d;var HG=e(()=>{lG();BN();sG();KN();V0();_N();oG();J0();mN();nN();HN();rG();nG();aG();fN();$G();vN();tG();EN();dN();aN();sN();JG();x();M0=i(G0(),1),d=i(t0(),1)});var mX=async(U,N)=>{return Y(MG,{onExit:U,onRetryDenials:(J)=>{N.setMessages((z)=>[...z,KG(J)])}})};var kJ=e(()=>{HG();wJ();x()});kJ();export{mX as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{lga as a,mga as b,nga as c}from"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-c4pkjm54.mjs";c();export{b as PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Hc as S,Ic as d}from"./cli-1.1.36-1z1m015s.mjs";import{kg as B,lg as P,mg as F,og as D}from"./cli-1.1.36-r241fh82.mjs";import{Tx as I,Xx as c,bO as y,bn as A,gO as j,gn as m,mm as U,nm as _,qm as g}from"./cli-1.1.36-v0s0vqmm.mjs";import"./cli-1.1.36-c4k9g1dk.mjs";import"./cli-1.1.36-659qh6fs.mjs";import"./cli-1.1.36-zey2drb2.mjs";import"./cli-1.1.36-6jv1ss2p.mjs";import"./cli-1.1.36-v5nxnkwj.mjs";import"./cli-1.1.36-1dhxpexj.mjs";import"./cli-1.1.36-f6yxszv5.mjs";import"./cli-1.1.36-ahr5fnjy.mjs";import"./cli-1.1.36-3mmakdzj.mjs";import"./cli-1.1.36-rh00pabh.mjs";import"./cli-1.1.36-40x4f5k7.mjs";import{EX as T,MV as h,YW as V,_W as G}from"./cli-1.1.36-4ssz80b2.mjs";import"./cli-1.1.36-72sph7cp.mjs";import"./cli-1.1.36-wfgjsqkk.mjs";import"./cli-1.1.36-1yk5zdh0.mjs";import"./cli-1.1.36-zd032ger.mjs";import"./cli-1.1.36-zax3mr51.mjs";import"./cli-1.1.36-7z5n90ex.mjs";import"./cli-1.1.36-p0w1dm9g.mjs";import"./cli-1.1.36-p7w1197h.mjs";import"./cli-1.1.36-3kd43x1y.mjs";import"./cli-1.1.36-7tprmtpr.mjs";import{c1 as w,d1 as W,e1 as Z}from"./cli-1.1.36-z5djkbwy.mjs";import"./cli-1.1.36-apycha28.mjs";import"./cli-1.1.36-p375v620.mjs";import"./cli-1.1.36-s8jcsdgb.mjs";import"./cli-1.1.36-65fkb20j.mjs";import"./cli-1.1.36-8mc299mk.mjs";import"./cli-1.1.36-b0rge62y.mjs";import"./cli-1.1.36-0qdd3hmz.mjs";import"./cli-1.1.36-mam7e8zn.mjs";import"./cli-1.1.36-5zzwcyt7.mjs";import"./cli-1.1.36-451x9avw.mjs";import"./cli-1.1.36-7xx3rm4x.mjs";import"./cli-1.1.36-0d7qj290.mjs";import"./cli-1.1.36-n9knhbs6.mjs";import"./cli-1.1.36-rqhp2xt1.mjs";import"./cli-1.1.36-xs4p38vb.mjs";import"./cli-1.1.36-tda1q99k.mjs";import"./cli-1.1.36-hvnr6rta.mjs";import"./cli-1.1.36-t6sjxpcb.mjs";import"./cli-1.1.36-6q7sfj4e.mjs";import"./cli-1.1.36-m11p0exg.mjs";import"./cli-1.1.36-bxrew2k8.mjs";import"./cli-1.1.36-ss62b517.mjs";import"./cli-1.1.36-jqn2tez7.mjs";import"./cli-1.1.36-6yqvdwyp.mjs";import"./cli-1.1.36-jpcwwd65.mjs";import"./cli-1.1.36-n5etyd9m.mjs";import"./cli-1.1.36-6g1w2zbr.mjs";import"./cli-1.1.36-0qtyffhw.mjs";import{Doa as u,loa as R}from"./cli-1.1.36-bsfazmtt.mjs";import"./cli-1.1.36-cm2kys6t.mjs";import"./cli-1.1.36-s9ar9y3g.mjs";import{Npa as C,Rpa as N}from"./cli-1.1.36-c4pkjm54.mjs";function $(z){let b=v.c(11),{planContent:H,planPath:K,editorName:J}=z,L;if(b[0]===Symbol.for("react.memo_cache_sentinel"))L=w(G,{bold:!0,children:"Current Plan"}),b[0]=L;else L=b[0];let k;if(b[1]!==K)k=w(G,{dimColor:!0,children:K}),b[1]=K,b[2]=k;else k=b[2];let q;if(b[3]!==H)q=w(V,{marginTop:1,children:w(G,{children:H})}),b[3]=H,b[4]=q;else q=b[4];let f;if(b[5]!==J)f=J&&W(V,{marginTop:1,children:[w(G,{dimColor:!0,children:'"/plan open"'}),w(G,{dimColor:!0,children:" to edit this plan in "}),w(G,{bold:!0,dimColor:!0,children:J})]}),b[5]=J,b[6]=f;else f=b[6];let O;if(b[7]!==k||b[8]!==q||b[9]!==f)O=W(V,{flexDirection:"column",children:[L,k,q,f]}),b[7]=k,b[8]=q,b[9]=f,b[10]=O;else O=b[10];return O}async function bb(z,b,H){let{getAppState:K,setAppState:J}=b,k=K().toolPermissionContext.mode;if(k!=="plan"){R(k,"plan"),J((Y)=>({...Y,toolPermissionContext:A(y(Y.toolPermissionContext),{type:"setMode",mode:"plan",destination:"session"})}));let Q=H.trim();if(Q&&Q!=="open")z("Enabled plan mode",{shouldQuery:!0});else z("Enabled plan mode");return null}let q=_(),f=U();if(!q)return z("Already in plan mode. No plan written yet."),null;if(H.trim().split(/\s+/)[0]==="open"){let Q=await F(f);if(Q.error)z(`Failed to open plan in editor: ${Q.error}`);else z(`Opened plan in editor: ${f}`);return null}let X=B(),E=X?I(X):void 0,M=await S(w($,{planContent:q,planPath:f,editorName:E}));return z(M),null}var v;var x=N(()=>{u();T();P();c();m();j();g();D();d();Z();v=C(h(),1)});x();export{bb as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Rpa as z}from"./cli-1.1.36-c4pkjm54.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|