@claudiolabs/claudin 1.1.18 → 1.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/chunks/AgentTool-1.1.20-gy68hszg.mjs +1 -0
- package/dist/chunks/App-1.1.20-10ggpxf4.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.20-6y0zcy4y.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.20-yebtqpwm.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.20-4t2txe84.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.20-6w697wvx.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.20-c3kyqfq3.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.20-87nay89d.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.20-wcg0gh1k.mjs +6 -0
- package/dist/chunks/Doctor-1.1.20-gq08p6c4.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.20-njwmt292.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.20-86szt9a8.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.20-yw03wzhm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.20-b8bpx0av.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.20-xc1ete3w.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.20-ytp8f67t.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.20-qvj570ty.mjs +1 -0
- package/dist/chunks/REPL-1.1.20-1wqc3hyp.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.20-78gpsm6z.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.20-qzvapr16.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.20-tjphzty6.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.20-d63k8snr.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.20-k1pa6f9a.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.20-8mc5wrxb.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.20-xkwtgqwd.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.20-7p5t0a25.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.20-n88f7vxe.mjs +1 -0
- package/dist/chunks/add-dir-1.1.20-mkjy6mne.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.20-mf4dz2fp.mjs +1 -0
- package/dist/chunks/agents-1.1.20-eb13erze.mjs +110 -0
- package/dist/chunks/agents-1.1.20-ps3c6vj2.mjs +3 -0
- package/dist/chunks/api-1.1.20-11grpy2c.mjs +1 -0
- package/dist/chunks/asciicast-1.1.20-bqm28655.mjs +1 -0
- package/dist/chunks/assistant-1.1.20-xny4y49f.mjs +1 -0
- package/dist/chunks/auth-1.1.20-kyscffqe.mjs +1 -0
- package/dist/chunks/auth-1.1.20-ygabh4dg.mjs +1 -0
- package/dist/chunks/autoMode-1.1.20-6ehbhthd.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.20-skjmdzhq.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.20-n7vch4bv.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.20-a3snmx4e.mjs +1 -0
- package/dist/chunks/branch-1.1.20-849br2fw.mjs +4 -0
- package/dist/chunks/bridge-1.1.20-ec0z61jb.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.20-wks1jhmc.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.20-1nza3j0t.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.20-6dks41qc.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.20-tecp8fmk.mjs +1 -0
- package/dist/chunks/btw-1.1.20-mdw6bncw.mjs +1 -0
- package/dist/chunks/buddy-1.1.20-cmmgv2nf.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.20-62xx6y5w.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.20-j7kbrtbn.mjs +4 -0
- package/dist/chunks/caches-1.1.20-ykvsw24v.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.20-dhcfye38.mjs +1 -0
- package/dist/chunks/claudemd-1.1.20-0km3pc8d.mjs +1 -0
- package/dist/chunks/clear-1.1.20-rkzhan9n.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.20-h9nb94gb.mjs +1 -0
- package/dist/chunks/cli-1.1.20-003ssrqs.mjs +2 -0
- package/dist/chunks/cli-1.1.20-08kdg42c.mjs +2 -0
- package/dist/chunks/cli-1.1.20-0a8jwwrh.mjs +2 -0
- package/dist/chunks/cli-1.1.20-0cxx0azc.mjs +2 -0
- package/dist/chunks/cli-1.1.20-0hr449k2.mjs +6 -0
- package/dist/chunks/cli-1.1.20-0sgvc4nn.mjs +2 -0
- package/dist/chunks/cli-1.1.20-0yjr70td.mjs +2 -0
- package/dist/chunks/cli-1.1.20-11yx2x29.mjs +2 -0
- package/dist/chunks/cli-1.1.20-14z9f90d.mjs +4 -0
- package/dist/chunks/cli-1.1.20-16js342k.mjs +3 -0
- package/dist/chunks/cli-1.1.20-1804zgnt.mjs +2 -0
- package/dist/chunks/cli-1.1.20-1axwpgex.mjs +3 -0
- package/dist/chunks/cli-1.1.20-1jzypzba.mjs +2 -0
- package/dist/chunks/cli-1.1.20-2189wy4p.mjs +2 -0
- package/dist/chunks/cli-1.1.20-25hfpkfc.mjs +34 -0
- package/dist/chunks/cli-1.1.20-28njwehy.mjs +2 -0
- package/dist/chunks/cli-1.1.20-2c8v6etd.mjs +2 -0
- package/dist/chunks/cli-1.1.20-2c9529sa.mjs +4 -0
- package/dist/chunks/cli-1.1.20-2epx2qhj.mjs +4 -0
- package/dist/chunks/cli-1.1.20-2kmxyr07.mjs +2 -0
- package/dist/chunks/cli-1.1.20-2tzzh4zx.mjs +3 -0
- package/dist/chunks/cli-1.1.20-2xfbht26.mjs +2 -0
- package/dist/chunks/cli-1.1.20-3awkxvmy.mjs +2 -0
- package/dist/chunks/cli-1.1.20-3d1z8rpz.mjs +58 -0
- package/dist/chunks/cli-1.1.20-3xgnb054.mjs +2 -0
- package/dist/chunks/cli-1.1.20-3xt27qam.mjs +2 -0
- package/dist/chunks/cli-1.1.20-3ya9b3gp.mjs +2 -0
- package/dist/chunks/cli-1.1.20-41jpan4m.mjs +2 -0
- package/dist/chunks/cli-1.1.20-44e5kpwx.mjs +8 -0
- package/dist/chunks/cli-1.1.20-456jkny0.mjs +2 -0
- package/dist/chunks/cli-1.1.20-45ymf6ss.mjs +2 -0
- package/dist/chunks/cli-1.1.20-4dnyt1jx.mjs +2 -0
- package/dist/chunks/cli-1.1.20-4fckza8j.mjs +133 -0
- package/dist/chunks/cli-1.1.20-4ns5w1w9.mjs +2 -0
- package/dist/chunks/cli-1.1.20-4rera9rk.mjs +2 -0
- package/dist/chunks/cli-1.1.20-4rzj958h.mjs +2 -0
- package/dist/chunks/cli-1.1.20-4t5sspt7.mjs +2 -0
- package/dist/chunks/cli-1.1.20-4wm04f49.mjs +2 -0
- package/dist/chunks/cli-1.1.20-50162v14.mjs +2 -0
- package/dist/chunks/cli-1.1.20-62a99cp9.mjs +2 -0
- package/dist/chunks/cli-1.1.20-6ev0yp0d.mjs +6 -0
- package/dist/chunks/cli-1.1.20-6jbvby2b.mjs +20 -0
- package/dist/chunks/cli-1.1.20-6xmv43xj.mjs +3 -0
- package/dist/chunks/cli-1.1.20-6yk3v95f.mjs +39 -0
- package/dist/chunks/cli-1.1.20-70wc36rc.mjs +2 -0
- package/dist/chunks/cli-1.1.20-751bmsqk.mjs +2 -0
- package/dist/chunks/cli-1.1.20-7732c5qg.mjs +2 -0
- package/dist/chunks/cli-1.1.20-7c1w166r.mjs +2 -0
- package/dist/chunks/cli-1.1.20-7rxmh5n8.mjs +3 -0
- package/dist/chunks/cli-1.1.20-7v6hhn2t.mjs +2 -0
- package/dist/chunks/cli-1.1.20-80v7e5s8.mjs +2 -0
- package/dist/chunks/cli-1.1.20-83btfm1z.mjs +2 -0
- package/dist/chunks/cli-1.1.20-83vhyp8j.mjs +2 -0
- package/dist/chunks/cli-1.1.20-8kjhy0wv.mjs +2 -0
- package/dist/chunks/cli-1.1.20-8s1w9hdq.mjs +2 -0
- package/dist/chunks/cli-1.1.20-93dztzcq.mjs +2 -0
- package/dist/chunks/cli-1.1.20-9c4avkb0.mjs +2 -0
- package/dist/chunks/cli-1.1.20-9g552760.mjs +2 -0
- package/dist/chunks/cli-1.1.20-9h5643kr.mjs +2 -0
- package/dist/chunks/cli-1.1.20-9nj6n1xg.mjs +2 -0
- package/dist/chunks/cli-1.1.20-9p9rns5w.mjs +2 -0
- package/dist/chunks/cli-1.1.20-9sv4xcek.mjs +2 -0
- package/dist/chunks/cli-1.1.20-a9fgbqdg.mjs +2 -0
- package/dist/chunks/cli-1.1.20-admbe52d.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ahqsg433.mjs +2 -0
- package/dist/chunks/cli-1.1.20-atv9jh9v.mjs +2 -0
- package/dist/chunks/cli-1.1.20-azb7xdf4.mjs +2 -0
- package/dist/chunks/cli-1.1.20-b09qhwrn.mjs +2 -0
- package/dist/chunks/cli-1.1.20-b0ehcdrw.mjs +18 -0
- package/dist/chunks/cli-1.1.20-bbb9fqyn.mjs +2 -0
- package/dist/chunks/cli-1.1.20-bgbsr3de.mjs +3 -0
- package/dist/chunks/cli-1.1.20-bk95x5hv.mjs +25 -0
- package/dist/chunks/cli-1.1.20-bs9520ht.mjs +2 -0
- package/dist/chunks/cli-1.1.20-c2g9cejz.mjs +2 -0
- package/dist/chunks/cli-1.1.20-cbehaby4.mjs +2 -0
- package/dist/chunks/cli-1.1.20-cfbterne.mjs +2 -0
- package/dist/chunks/cli-1.1.20-cgqjf8mh.mjs +6 -0
- package/dist/chunks/cli-1.1.20-chzjjxkj.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ckdgd8ze.mjs +45 -0
- package/dist/chunks/cli-1.1.20-csmgax19.mjs +21 -0
- package/dist/chunks/cli-1.1.20-d3ep1y0e.mjs +3 -0
- package/dist/chunks/cli-1.1.20-d5yrsevx.mjs +2 -0
- package/dist/chunks/cli-1.1.20-d6ghx4vg.mjs +15 -0
- package/dist/chunks/cli-1.1.20-d7jg0nb4.mjs +24 -0
- package/dist/chunks/cli-1.1.20-dhn7hn4q.mjs +12 -0
- package/dist/chunks/cli-1.1.20-dhqn7976.mjs +2 -0
- package/dist/chunks/cli-1.1.20-dws48g78.mjs +2 -0
- package/dist/chunks/cli-1.1.20-e49ygqc9.mjs +2 -0
- package/dist/chunks/cli-1.1.20-edmcts0d.mjs +15 -0
- package/dist/chunks/cli-1.1.20-ef6rjnnr.mjs +2 -0
- package/dist/chunks/cli-1.1.20-emfhskxb.mjs +7 -0
- package/dist/chunks/cli-1.1.20-emjnkdmv.mjs +1 -0
- package/dist/chunks/cli-1.1.20-eza9aynd.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ezsprsc5.mjs +2 -0
- package/dist/chunks/cli-1.1.20-f55khzsq.mjs +25 -0
- package/dist/chunks/cli-1.1.20-far01hg1.mjs +42 -0
- package/dist/chunks/cli-1.1.20-ffffyhx3.mjs +3 -0
- package/dist/chunks/cli-1.1.20-fwfjvfmd.mjs +12 -0
- package/dist/chunks/cli-1.1.20-g0w1ksxt.mjs +2 -0
- package/dist/chunks/cli-1.1.20-g41hgcbn.mjs +2 -0
- package/dist/chunks/cli-1.1.20-g68fwrp1.mjs +2 -0
- package/dist/chunks/cli-1.1.20-gd4g9gr0.mjs +3 -0
- package/dist/chunks/cli-1.1.20-geey2q0s.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ghdeh455.mjs +2 -0
- package/dist/chunks/cli-1.1.20-gkc4ptt0.mjs +6 -0
- package/dist/chunks/cli-1.1.20-gmw9jarz.mjs +2 -0
- package/dist/chunks/cli-1.1.20-gtk0ea9e.mjs +2 -0
- package/dist/chunks/cli-1.1.20-h5qtp5v0.mjs +4 -0
- package/dist/chunks/cli-1.1.20-hnvxzngf.mjs +24 -0
- package/dist/chunks/cli-1.1.20-hrw31bb0.mjs +206 -0
- package/dist/chunks/cli-1.1.20-hw1raza2.mjs +2 -0
- package/dist/chunks/cli-1.1.20-j1r8r4kb.mjs +2 -0
- package/dist/chunks/cli-1.1.20-j4a7q58c.mjs +2 -0
- package/dist/chunks/cli-1.1.20-jerx0cvb.mjs +9 -0
- package/dist/chunks/cli-1.1.20-jm6p2cdx.mjs +2 -0
- package/dist/chunks/cli-1.1.20-jsasy45b.mjs +2 -0
- package/dist/chunks/cli-1.1.20-jwgjrhwv.mjs +17 -0
- package/dist/chunks/cli-1.1.20-jy9v0t3f.mjs +5 -0
- package/dist/chunks/cli-1.1.20-k31p3ab5.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ka6crh5z.mjs +2 -0
- package/dist/chunks/cli-1.1.20-kbw4j273.mjs +3 -0
- package/dist/chunks/cli-1.1.20-kdcqs5pc.mjs +2 -0
- package/dist/chunks/cli-1.1.20-keawhead.mjs +5 -0
- package/dist/chunks/cli-1.1.20-kmjn4pys.mjs +2 -0
- package/dist/chunks/cli-1.1.20-kqncmabm.mjs +4 -0
- package/dist/chunks/cli-1.1.20-m1j9gb5j.mjs +2 -0
- package/dist/chunks/cli-1.1.20-m1rmtfx0.mjs +2 -0
- package/dist/chunks/cli-1.1.20-m90d7k90.mjs +133 -0
- package/dist/chunks/cli-1.1.20-m9x20s8d.mjs +2 -0
- package/dist/chunks/cli-1.1.20-mg71dz16.mjs +2 -0
- package/dist/chunks/cli-1.1.20-mmvz3csm.mjs +2 -0
- package/dist/chunks/cli-1.1.20-mtdrx7xp.mjs +2 -0
- package/dist/chunks/cli-1.1.20-n0e2f4pd.mjs +2 -0
- package/dist/chunks/cli-1.1.20-n23sb1sw.mjs +2 -0
- package/dist/chunks/cli-1.1.20-n9ja4mee.mjs +66 -0
- package/dist/chunks/cli-1.1.20-nbpvejz7.mjs +2 -0
- package/dist/chunks/cli-1.1.20-nk2jvm1z.mjs +2 -0
- package/dist/chunks/cli-1.1.20-nkrcdd4b.mjs +2 -0
- package/dist/chunks/cli-1.1.20-nmnzdvrw.mjs +2 -0
- package/dist/chunks/cli-1.1.20-nqwt6n3q.mjs +2 -0
- package/dist/chunks/cli-1.1.20-p0jj07wv.mjs +2 -0
- package/dist/chunks/cli-1.1.20-pfqkbt31.mjs +2 -0
- package/dist/chunks/cli-1.1.20-pg7cfgsa.mjs +2 -0
- package/dist/chunks/cli-1.1.20-psbfz74f.mjs +2 -0
- package/dist/chunks/cli-1.1.20-py0s55wt.mjs +2 -0
- package/dist/chunks/cli-1.1.20-q4bfnf9w.mjs +2 -0
- package/dist/chunks/cli-1.1.20-qbmhpfn5.mjs +15 -0
- package/dist/chunks/cli-1.1.20-qkdde9ck.mjs +2 -0
- package/dist/chunks/cli-1.1.20-r4xfymtx.mjs +60 -0
- package/dist/chunks/cli-1.1.20-r55gwcq5.mjs +2 -0
- package/dist/chunks/cli-1.1.20-r7y2pq10.mjs +2 -0
- package/dist/chunks/cli-1.1.20-rdjbzkh4.mjs +2 -0
- package/dist/chunks/cli-1.1.20-rmvq7swt.mjs +2 -0
- package/dist/chunks/cli-1.1.20-rsrj8q6n.mjs +3 -0
- package/dist/chunks/cli-1.1.20-rvch3wwj.mjs +2 -0
- package/dist/chunks/cli-1.1.20-rvn2axad.mjs +16 -0
- package/dist/chunks/cli-1.1.20-ry7grtff.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ryb6r2jj.mjs +2 -0
- package/dist/chunks/cli-1.1.20-se0125ky.mjs +2 -0
- package/dist/chunks/cli-1.1.20-snwfck2n.mjs +2 -0
- package/dist/chunks/cli-1.1.20-swewj6d5.mjs +2 -0
- package/dist/chunks/cli-1.1.20-sx7811qs.mjs +5419 -0
- package/dist/chunks/cli-1.1.20-sykpdv9k.mjs +4 -0
- package/dist/chunks/cli-1.1.20-t4zen7fz.mjs +2 -0
- package/dist/chunks/cli-1.1.20-t9y64aq1.mjs +2 -0
- package/dist/chunks/cli-1.1.20-tbtnrzgn.mjs +6 -0
- package/dist/chunks/cli-1.1.20-tgpt56rj.mjs +2 -0
- package/dist/chunks/cli-1.1.20-thtv1xqb.mjs +2 -0
- package/dist/chunks/cli-1.1.20-twysxm6j.mjs +2 -0
- package/dist/chunks/cli-1.1.20-txm7z2xq.mjs +2 -0
- package/dist/chunks/cli-1.1.20-ty0gqe2q.mjs +2 -0
- package/dist/chunks/cli-1.1.20-v6kdm8qp.mjs +2 -0
- package/dist/chunks/cli-1.1.20-vf1ea98p.mjs +2 -0
- package/dist/chunks/cli-1.1.20-vxrv3y7w.mjs +9 -0
- package/dist/chunks/cli-1.1.20-w24tmpq4.mjs +7 -0
- package/dist/chunks/cli-1.1.20-w6gv2drs.mjs +2 -0
- package/dist/chunks/cli-1.1.20-wadq5w8t.mjs +2 -0
- package/dist/chunks/cli-1.1.20-we3ekctq.mjs +2 -0
- package/dist/chunks/cli-1.1.20-wn9t9syd.mjs +2 -0
- package/dist/chunks/cli-1.1.20-wr994817.mjs +18 -0
- package/dist/chunks/cli-1.1.20-wrat5rtg.mjs +2 -0
- package/dist/chunks/cli-1.1.20-wszdp4dg.mjs +3 -0
- package/dist/chunks/cli-1.1.20-wt0ygwrd.mjs +6 -0
- package/dist/chunks/cli-1.1.20-wtxwvcad.mjs +4 -0
- package/dist/chunks/cli-1.1.20-wx90y3jb.mjs +24 -0
- package/dist/chunks/cli-1.1.20-wxxphhy4.mjs +2 -0
- package/dist/chunks/cli-1.1.20-wz4h58mp.mjs +2 -0
- package/dist/chunks/cli-1.1.20-x2y5vr9b.mjs +3 -0
- package/dist/chunks/cli-1.1.20-x3cdhjtp.mjs +24 -0
- package/dist/chunks/cli-1.1.20-x3sn0d4f.mjs +2 -0
- package/dist/chunks/cli-1.1.20-x4ezs1pz.mjs +2 -0
- package/dist/chunks/cli-1.1.20-xk4edb6r.mjs +3 -0
- package/dist/chunks/cli-1.1.20-xkatp3rd.mjs +2 -0
- package/dist/chunks/cli-1.1.20-xmkwnf9c.mjs +2 -0
- package/dist/chunks/cli-1.1.20-xvytevdy.mjs +4 -0
- package/dist/chunks/cli-1.1.20-y4b0v8se.mjs +50 -0
- package/dist/chunks/cli-1.1.20-y9jwxk0y.mjs +17 -0
- package/dist/chunks/cli-1.1.20-yh2kxsxg.mjs +4 -0
- package/dist/chunks/cli-1.1.20-yq2kjrr2.mjs +2 -0
- package/dist/chunks/cli-1.1.20-z4ndf118.mjs +2 -0
- package/dist/chunks/cli-1.1.20-zgg887a7.mjs +4 -0
- package/dist/chunks/cli-1.1.20-zhn44mv6.mjs +2 -0
- package/dist/chunks/cli-1.1.20-zvce3e9x.mjs +2 -0
- package/dist/chunks/client-1.1.20-yzk4md3m.mjs +1 -0
- package/dist/chunks/color-1.1.20-nvfrt651.mjs +1 -0
- package/dist/chunks/compact-1.1.20-t1p5wzzx.mjs +3 -0
- package/dist/chunks/config-1.1.20-f5vnf3mj.mjs +1 -0
- package/dist/chunks/config-1.1.20-fyrs9k0m.mjs +1 -0
- package/dist/chunks/constants-1.1.20-2p88w4e8.mjs +1 -0
- package/dist/chunks/context-1.1.20-q5c07f98.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.20-m97bd3hc.mjs +1 -0
- package/dist/chunks/conversation-1.1.20-2tdp5wat.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.20-6bf1fkfp.mjs +1 -0
- package/dist/chunks/copy-1.1.20-jx18zafs.mjs +9 -0
- package/dist/chunks/cost-1.1.20-cvh7ag89.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.20-yrms9nqw.mjs +1 -0
- package/dist/chunks/createSession-1.1.20-c72cffnc.mjs +1 -0
- package/dist/chunks/debug-1.1.20-2fqdvvvc.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.20-hwtzy20f.mjs +1534 -0
- package/dist/chunks/desktop-1.1.20-mgz7c45r.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.20-d5fezv23.mjs +1 -0
- package/dist/chunks/detection-1.1.20-b17bg403.mjs +1 -0
- package/dist/chunks/diff-1.1.20-rgydsj6p.mjs +1 -0
- package/dist/chunks/doctor-1.1.20-jk5ar7pz.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.20-0q5qfybh.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.20-w47zy9sy.mjs +1 -0
- package/dist/chunks/effort-1.1.20-hy8t94kh.mjs +13 -0
- package/dist/chunks/engine-1.1.20-4etdjq40.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.20-1c7pmf1x.mjs +1 -0
- package/dist/chunks/envUtils-1.1.20-8687estk.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.20-vtn95gpz.mjs +1 -0
- package/dist/chunks/environments-1.1.20-n27s3sfh.mjs +1 -0
- package/dist/chunks/errors-1.1.20-a30dbhvw.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.20-97zbp5r8.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.20-zvnsd219.mjs +1 -0
- package/dist/chunks/exit-1.1.20-g7dar7aa.mjs +1 -0
- package/dist/chunks/explorer-1.1.20-m606rm48.mjs +1 -0
- package/dist/chunks/export-1.1.20-mgwvg841.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.20-baf3f8zp.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.20-60c2b66b.mjs +1 -0
- package/dist/chunks/fast-1.1.20-0cv5rvjb.mjs +1 -0
- package/dist/chunks/feedback-1.1.20-cn6v1mdj.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.20-26b3hvex.mjs +1 -0
- package/dist/chunks/git-1.1.20-16amvfft.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.20-g1tq2ecq.mjs +1 -0
- package/dist/chunks/goal-1.1.20-k5akp14a.mjs +4 -0
- package/dist/chunks/growthbook-1.1.20-yrs6qd7c.mjs +1 -0
- package/dist/chunks/headless-1.1.20-ab6xrkks.mjs +2 -0
- package/dist/chunks/heapdump-1.1.20-7ty4e4da.mjs +6 -0
- package/dist/chunks/help-1.1.20-drmq3b45.mjs +1 -0
- package/dist/chunks/hookChains-1.1.20-9xe50nmq.mjs +3 -0
- package/dist/chunks/hooks-1.1.20-ea0rjbyd.mjs +1 -0
- package/dist/chunks/hooks-1.1.20-h3ac1ems.mjs +79 -0
- package/dist/chunks/ide-1.1.20-e5k4xqrh.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.20-yxmq33b1.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.20-2e8y4p87.mjs +1 -0
- package/dist/chunks/index-1.1.20-2gxqgc08.mjs +1 -0
- package/dist/chunks/index-1.1.20-3vkfmzw3.mjs +30 -0
- package/dist/chunks/index-1.1.20-7esm5m4s.mjs +23 -0
- package/dist/chunks/index-1.1.20-bszeeg1q.mjs +1 -0
- package/dist/chunks/index-1.1.20-cv1fhrne.mjs +1 -0
- package/dist/chunks/index-1.1.20-e27z5gwd.mjs +1 -0
- package/dist/chunks/index-1.1.20-hzw72qk9.mjs +1 -0
- package/dist/chunks/index-1.1.20-mmt768hj.mjs +5 -0
- package/dist/chunks/index-1.1.20-ms7qs4m6.mjs +1 -0
- package/dist/chunks/index-1.1.20-nkjdz68f.mjs +1 -0
- package/dist/chunks/index-1.1.20-ptjvr4qj.mjs +1 -0
- package/dist/chunks/index-1.1.20-qa9tjj42.mjs +2 -0
- package/dist/chunks/index-1.1.20-r3h0dypg.mjs +1 -0
- package/dist/chunks/index-1.1.20-rcx2fneb.mjs +1 -0
- package/dist/chunks/index-1.1.20-rdm3n4y9.mjs +2 -0
- package/dist/chunks/index-1.1.20-rm6ekqj7.mjs +9 -0
- package/dist/chunks/index-1.1.20-s7fb4knz.mjs +1 -0
- package/dist/chunks/index-1.1.20-s7x9dsyr.mjs +1 -0
- package/dist/chunks/index-1.1.20-t9j801bt.mjs +9 -0
- package/dist/chunks/index-1.1.20-vvmarmb0.mjs +1 -0
- package/dist/chunks/index-1.1.20-w3efr5jj.mjs +1 -0
- package/dist/chunks/index-1.1.20-y78x64xh.mjs +1 -0
- package/dist/chunks/index-1.1.20-z42w2g06.mjs +1 -0
- package/dist/chunks/init-1.1.20-1md8nn1q.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.20-5zfa29sw.mjs +1 -0
- package/dist/chunks/ink-1.1.20-4rp0112s.mjs +1 -0
- package/dist/chunks/insights-1.1.20-fs1yxv8w.mjs +870 -0
- package/dist/chunks/install-1.1.20-g8hq9z8r.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.20-t1etxwvv.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.20-x4r2g8jm.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.20-8axp9w08.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.20-w1c5qa1c.mjs +1 -0
- package/dist/chunks/keybindings-1.1.20-t46j6vqd.mjs +2 -0
- package/dist/chunks/knowledge-1.1.20-fay2dby4.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.20-18wdnnqq.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.20-ja86yn75.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.20-rpwz8enf.mjs +1 -0
- package/dist/chunks/log-1.1.20-jab23qgp.mjs +1 -0
- package/dist/chunks/main-1.1.20-1tszrrj3.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.20-jhwtkzzq.mjs +1 -0
- package/dist/chunks/mcp-1.1.20-b3j31d37.mjs +17 -0
- package/dist/chunks/mcp-1.1.20-ggtdpb22.mjs +4 -0
- package/dist/chunks/mcp-1.1.20-r35rcax5.mjs +1 -0
- package/dist/chunks/mcpb-1.1.20-nmxsjrst.mjs +1 -0
- package/dist/chunks/memory-1.1.20-2fbhrnrk.mjs +72 -0
- package/dist/chunks/model-1.1.20-2nstg3gs.mjs +2 -0
- package/dist/chunks/model-1.1.20-ag4na6w9.mjs +1 -0
- package/dist/chunks/node-1.1.20-7meq917d.mjs +14 -0
- package/dist/chunks/oauth-1.1.20-xkcs3s0v.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.20-1jxfjf9e.mjs +14 -0
- package/dist/chunks/output-style-1.1.20-m38djt42.mjs +1 -0
- package/dist/chunks/package-ZOVFJE7Z-1.1.20-83n7wkxr.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.20-372zdrpd.mjs +1 -0
- package/dist/chunks/parser-1.1.20-gxyz7x28.mjs +1 -0
- package/dist/chunks/passes-1.1.20-ytgbf2dw.mjs +1 -0
- package/dist/chunks/permissions-1.1.20-s9ae41qy.mjs +3 -0
- package/dist/chunks/permissions-1.1.20-y9c9w35s.mjs +1 -0
- package/dist/chunks/plan-1.1.20-wbg3rbe5.mjs +1 -0
- package/dist/chunks/plist-1.1.20-ammve61n.mjs +1 -0
- package/dist/chunks/plugin-1.1.20-kprz45ck.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.20-0s19k556.mjs +1 -0
- package/dist/chunks/plugins-1.1.20-zcnf29dz.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.20-q1vqezxz.mjs +2 -0
- package/dist/chunks/print-1.1.20-jtj5dvm1.mjs +57 -0
- package/dist/chunks/process-1.1.20-gvna1rw4.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.20-4gf4hf9q.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.20-x7cpvyb1.mjs +9 -0
- package/dist/chunks/prompt-1.1.20-44tt0aay.mjs +1 -0
- package/dist/chunks/prompt-1.1.20-kd8b5z70.mjs +1 -0
- package/dist/chunks/prompts-1.1.20-p30n6333.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.20-k4c3bckj.mjs +13 -0
- package/dist/chunks/provider-1.1.20-x6r7w9y0.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.20-qr1eh5g1.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.20-whqrd8y7.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.20-hjftrz50.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.20-rspt0fgv.mjs +26 -0
- package/dist/chunks/registry-1.1.20-0mggqvzs.mjs +1 -0
- package/dist/chunks/release-notes-1.1.20-vb0mr5sj.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.20-vh7daesv.mjs +2 -0
- package/dist/chunks/remote-env-1.1.20-sarjwtd8.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.20-wn384wtw.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.20-v6xk4jcm.mjs +1 -0
- package/dist/chunks/rename-1.1.20-f8mjn6dk.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.20-rgnef71a.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.20-gtmq90n0.mjs +1 -0
- package/dist/chunks/resume-1.1.20-6azc4a6d.mjs +2 -0
- package/dist/chunks/rewind-1.1.20-y79g5sa8.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.20-j01mdex3.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.20-rjt6cc5k.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.20-2fy5bxtc.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.20-3fhx4jz1.mjs +1 -0
- package/dist/chunks/session-1.1.20-56bsxwcm.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.20-5awvar7p.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.20-p0m1trtr.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.20-kzwv0rca.mjs +1 -0
- package/dist/chunks/settings-1.1.20-qq5nh010.mjs +1 -0
- package/dist/chunks/setup-1.1.20-rxx0xk5h.mjs +12 -0
- package/dist/chunks/sinks-1.1.20-r3j94336.mjs +1 -0
- package/dist/chunks/skills-1.1.20-rj3k67vs.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.20-28r68j3h.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.20-na2gc2z0.mjs +1 -0
- package/dist/chunks/state-1.1.20-87k38gkf.mjs +1 -0
- package/dist/chunks/stats-1.1.20-4f0k42ck.mjs +6 -0
- package/dist/chunks/status-1.1.20-4q8drpbw.mjs +1 -0
- package/dist/chunks/stickers-1.1.20-6zrpy168.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.20-ay4xqbmj.mjs +1 -0
- package/dist/chunks/tasks-1.1.20-94bxr0pm.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.20-2wx4ycs3.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.20-84jswprz.mjs +1 -0
- package/dist/chunks/teleport-1.1.20-szer4192.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.20-6c6rr077.mjs +1 -0
- package/dist/chunks/theme-1.1.20-h0j5bxzv.mjs +1 -0
- package/dist/chunks/thinkback-1.1.20-xx7byjz0.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.20-y7e52jdn.mjs +1 -0
- package/dist/chunks/toolPool-1.1.20-3z7k5za6.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.20-60qd9jdb.mjs +1 -0
- package/dist/chunks/tools-1.1.20-x11zs4y1.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.20-2xcp041p.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.20-cvck081c.mjs +69 -0
- package/dist/chunks/types-1.1.20-143w1akg.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.20-0ahamh6w.mjs +4 -0
- package/dist/chunks/update-1.1.20-yy0y40m9.mjs +72 -0
- package/dist/chunks/upgrade-1.1.20-wk6398hc.mjs +1 -0
- package/dist/chunks/upload-1.1.20-x7890nxj.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.20-9fag2s50.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.20-98f7t8ex.mjs +1 -0
- package/dist/chunks/usage-1.1.20-x3t5jqtp.mjs +1 -0
- package/dist/chunks/util-1.1.20-6yg0jab0.mjs +1 -0
- package/dist/chunks/utils-1.1.20-eextgt51.mjs +1 -0
- package/dist/chunks/vim-1.1.20-45mkg766.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.20-m6zydt8m.mjs +13 -0
- package/dist/chunks/watcher-1.1.20-qtj8t09d.mjs +1 -0
- package/dist/chunks/wiki-1.1.20-3mvcvdfe.mjs +132 -0
- package/dist/chunks/workflows-1.1.20-19kpvc6v.mjs +1 -0
- package/dist/chunks/worktree-1.1.20-mj9bm0pg.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.20-gyvs55qh.mjs +1 -0
- package/dist/chunks/wrapper-1.1.20-8rckzejb.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.18-8r539yq1.mjs +0 -1
- package/dist/chunks/App-1.1.18-9qegazdp.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.18-75srd2ah.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.18-8s0prsvd.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.18-8908as3d.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.18-hzr5qznb.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.18-11b01q4g.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.18-gdmxhc4c.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.18-0ve87kmt.mjs +0 -6
- package/dist/chunks/Doctor-1.1.18-bm9y9hp0.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.18-s5gycf8y.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.18-ck22r980.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.18-k4rxj60y.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.18-7jtsdcvz.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.18-79c4xptb.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.18-at9smz0c.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.18-fmn6pds0.mjs +0 -1
- package/dist/chunks/REPL-1.1.18-ethctbw9.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.18-7jny2tma.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.18-4tt9s4sx.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.18-9y6kadd2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.18-0zp920qr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.18-ywhxqdw4.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.18-cfmzwnnw.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.18-7czxxmxn.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.18-q46q6gnr.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.18-0s9sbdx0.mjs +0 -1
- package/dist/chunks/add-dir-1.1.18-2v7nqdda.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.18-5tbxn6cp.mjs +0 -1
- package/dist/chunks/agents-1.1.18-1zj1bttk.mjs +0 -110
- package/dist/chunks/agents-1.1.18-n28gzp6b.mjs +0 -3
- package/dist/chunks/api-1.1.18-kb26phxt.mjs +0 -1
- package/dist/chunks/asciicast-1.1.18-q0418p4r.mjs +0 -1
- package/dist/chunks/assistant-1.1.18-ky0pcnme.mjs +0 -1
- package/dist/chunks/auth-1.1.18-4de9sj97.mjs +0 -1
- package/dist/chunks/auth-1.1.18-6yqhszf3.mjs +0 -1
- package/dist/chunks/autoMode-1.1.18-63jx6p2w.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.18-bk6w4529.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.18-bg5z208x.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.18-3m48d47f.mjs +0 -1
- package/dist/chunks/branch-1.1.18-sgfz4w61.mjs +0 -4
- package/dist/chunks/bridge-1.1.18-ewtwajff.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.18-6aeg22kg.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.18-2ybc4ee8.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.18-pt5dztgy.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.18-w72zdv7w.mjs +0 -1
- package/dist/chunks/btw-1.1.18-w43t3mem.mjs +0 -1
- package/dist/chunks/buddy-1.1.18-zfhza9df.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.18-ap6m4e42.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.18-gcvx2d6q.mjs +0 -4
- package/dist/chunks/caches-1.1.18-warrda1f.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.18-v3ghw0k9.mjs +0 -1
- package/dist/chunks/claudemd-1.1.18-b6tnjsjw.mjs +0 -1
- package/dist/chunks/clear-1.1.18-8abstaz1.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.18-wgv6q897.mjs +0 -1
- package/dist/chunks/cli-1.1.18-018bk764.mjs +0 -2
- package/dist/chunks/cli-1.1.18-049a81dd.mjs +0 -25
- package/dist/chunks/cli-1.1.18-0aakxjsk.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0h118vrj.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0tg14dph.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0xknnw9q.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0y6qt71a.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0yhfm17h.mjs +0 -2
- package/dist/chunks/cli-1.1.18-0z5526z3.mjs +0 -4
- package/dist/chunks/cli-1.1.18-12tzkcxz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-18rbpjbc.mjs +0 -2
- package/dist/chunks/cli-1.1.18-1c8pr80a.mjs +0 -2
- package/dist/chunks/cli-1.1.18-1spz0azv.mjs +0 -3
- package/dist/chunks/cli-1.1.18-1t3rb5a8.mjs +0 -2
- package/dist/chunks/cli-1.1.18-251zfmjp.mjs +0 -5
- package/dist/chunks/cli-1.1.18-27b82jjj.mjs +0 -3
- package/dist/chunks/cli-1.1.18-2ach0t0d.mjs +0 -7
- package/dist/chunks/cli-1.1.18-2gvrr93b.mjs +0 -2
- package/dist/chunks/cli-1.1.18-2k96kgmz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-2qvvz2tv.mjs +0 -2
- package/dist/chunks/cli-1.1.18-2vdwwm5f.mjs +0 -3
- package/dist/chunks/cli-1.1.18-2w9274tq.mjs +0 -59
- package/dist/chunks/cli-1.1.18-2wsf8n3w.mjs +0 -3
- package/dist/chunks/cli-1.1.18-3b5j4jfq.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3pn5knk8.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3rm83ba2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3rxhxwbk.mjs +0 -4
- package/dist/chunks/cli-1.1.18-3s03nva1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3w57qes2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-3y4pftxb.mjs +0 -206
- package/dist/chunks/cli-1.1.18-3z65nz4z.mjs +0 -2
- package/dist/chunks/cli-1.1.18-417wb57s.mjs +0 -2
- package/dist/chunks/cli-1.1.18-462kn9pt.mjs +0 -2
- package/dist/chunks/cli-1.1.18-4c3jqppx.mjs +0 -2
- package/dist/chunks/cli-1.1.18-4f2ncqzp.mjs +0 -45
- package/dist/chunks/cli-1.1.18-4h2r40da.mjs +0 -2
- package/dist/chunks/cli-1.1.18-4jy396p1.mjs +0 -6
- package/dist/chunks/cli-1.1.18-553zzrge.mjs +0 -2
- package/dist/chunks/cli-1.1.18-56vce0gb.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5dw1bb8m.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5fhws40c.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5mr13yxz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5pa0bk59.mjs +0 -2
- package/dist/chunks/cli-1.1.18-5s8f8gd5.mjs +0 -3
- package/dist/chunks/cli-1.1.18-6hjdcw80.mjs +0 -2
- package/dist/chunks/cli-1.1.18-6nxyz9v3.mjs +0 -2
- package/dist/chunks/cli-1.1.18-6w9m5m4s.mjs +0 -2
- package/dist/chunks/cli-1.1.18-6wrbe4ft.mjs +0 -4
- package/dist/chunks/cli-1.1.18-703emt7y.mjs +0 -16
- package/dist/chunks/cli-1.1.18-70jytem3.mjs +0 -2
- package/dist/chunks/cli-1.1.18-70ktef72.mjs +0 -2
- package/dist/chunks/cli-1.1.18-71zz07m4.mjs +0 -3
- package/dist/chunks/cli-1.1.18-7g6xwfbz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7nsrr2k0.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7pcfwrhj.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7set7d4d.mjs +0 -3
- package/dist/chunks/cli-1.1.18-7wccrsx9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-7xc4d1d9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-86jznh5v.mjs +0 -2
- package/dist/chunks/cli-1.1.18-8fpwak2g.mjs +0 -4
- package/dist/chunks/cli-1.1.18-8thyc5yy.mjs +0 -2
- package/dist/chunks/cli-1.1.18-8vxrthte.mjs +0 -4
- package/dist/chunks/cli-1.1.18-8zrm4yfd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-948h21gh.mjs +0 -2
- package/dist/chunks/cli-1.1.18-99wvb94x.mjs +0 -2
- package/dist/chunks/cli-1.1.18-9cpcw7fg.mjs +0 -2
- package/dist/chunks/cli-1.1.18-9jkqy8de.mjs +0 -2
- package/dist/chunks/cli-1.1.18-9zvacjd0.mjs +0 -2
- package/dist/chunks/cli-1.1.18-a888prq4.mjs +0 -6
- package/dist/chunks/cli-1.1.18-aek1gddg.mjs +0 -2
- package/dist/chunks/cli-1.1.18-af7txyky.mjs +0 -133
- package/dist/chunks/cli-1.1.18-aj93qvyc.mjs +0 -3
- package/dist/chunks/cli-1.1.18-avas0dtp.mjs +0 -2
- package/dist/chunks/cli-1.1.18-avhbxgh1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-awvejq1d.mjs +0 -2
- package/dist/chunks/cli-1.1.18-b4azpwk0.mjs +0 -18
- package/dist/chunks/cli-1.1.18-b5h22srd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-bfzft69m.mjs +0 -2
- package/dist/chunks/cli-1.1.18-c9h4ga5f.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cahfd7zp.mjs +0 -15
- package/dist/chunks/cli-1.1.18-ccbh77pf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cd5r9mfb.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cj8tr93q.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cjkn7t4k.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cphcr3xr.mjs +0 -15
- package/dist/chunks/cli-1.1.18-cqmjby3t.mjs +0 -24
- package/dist/chunks/cli-1.1.18-crpxak5f.mjs +0 -2
- package/dist/chunks/cli-1.1.18-cxg522yt.mjs +0 -4
- package/dist/chunks/cli-1.1.18-cy0ypdkd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dcrg5hwd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ddreb78e.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dq2vate5.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dvyh5qzn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-dzbn08g2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-e107yrwx.mjs +0 -2
- package/dist/chunks/cli-1.1.18-e8stczm5.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ecds9fxm.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ek85fj6n.mjs +0 -2
- package/dist/chunks/cli-1.1.18-erjpjwnr.mjs +0 -4
- package/dist/chunks/cli-1.1.18-esvp6n4e.mjs +0 -66
- package/dist/chunks/cli-1.1.18-ezpyhrzw.mjs +0 -133
- package/dist/chunks/cli-1.1.18-f2j32mha.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f5ggv7be.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f6m259he.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f7jag2rr.mjs +0 -2
- package/dist/chunks/cli-1.1.18-f8sy5pe3.mjs +0 -3
- package/dist/chunks/cli-1.1.18-fh3h37zy.mjs +0 -8
- package/dist/chunks/cli-1.1.18-fr4nmsgv.mjs +0 -3
- package/dist/chunks/cli-1.1.18-fst0kx9m.mjs +0 -24
- package/dist/chunks/cli-1.1.18-gdvh8p4h.mjs +0 -2
- package/dist/chunks/cli-1.1.18-gnd39prj.mjs +0 -18
- package/dist/chunks/cli-1.1.18-gvzkraze.mjs +0 -2
- package/dist/chunks/cli-1.1.18-gz2c86d2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hbv881pn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-heh8xz6x.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hg5srcxb.mjs +0 -7
- package/dist/chunks/cli-1.1.18-hgn94jwm.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hjp96a36.mjs +0 -2
- package/dist/chunks/cli-1.1.18-hphxdvpd.mjs +0 -17
- package/dist/chunks/cli-1.1.18-hsqq1hdd.mjs +0 -9
- package/dist/chunks/cli-1.1.18-hvd9yyb4.mjs +0 -2
- package/dist/chunks/cli-1.1.18-j1ryg6qv.mjs +0 -2
- package/dist/chunks/cli-1.1.18-j372h4fv.mjs +0 -4
- package/dist/chunks/cli-1.1.18-j461dthr.mjs +0 -2
- package/dist/chunks/cli-1.1.18-j5zh2pdx.mjs +0 -17
- package/dist/chunks/cli-1.1.18-jcqz5j7y.mjs +0 -2
- package/dist/chunks/cli-1.1.18-jgwwkx62.mjs +0 -58
- package/dist/chunks/cli-1.1.18-jjekxppq.mjs +0 -25
- package/dist/chunks/cli-1.1.18-jp0phw3q.mjs +0 -2
- package/dist/chunks/cli-1.1.18-k05shz35.mjs +0 -2
- package/dist/chunks/cli-1.1.18-k11n6026.mjs +0 -3
- package/dist/chunks/cli-1.1.18-k1pkc44n.mjs +0 -2
- package/dist/chunks/cli-1.1.18-kj7gj6vk.mjs +0 -3
- package/dist/chunks/cli-1.1.18-kkr6w2g7.mjs +0 -2
- package/dist/chunks/cli-1.1.18-m04wmdz7.mjs +0 -9
- package/dist/chunks/cli-1.1.18-mfjtdkn6.mjs +0 -20
- package/dist/chunks/cli-1.1.18-mg0s34rf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mg7jmbh9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mhy7qzsz.mjs +0 -21
- package/dist/chunks/cli-1.1.18-mm8bkmax.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mqwcfz14.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mrrbn0jj.mjs +0 -6
- package/dist/chunks/cli-1.1.18-mwevzyy2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mycrby1p.mjs +0 -2
- package/dist/chunks/cli-1.1.18-mz10pywc.mjs +0 -2
- package/dist/chunks/cli-1.1.18-n05vxdaj.mjs +0 -2
- package/dist/chunks/cli-1.1.18-n7dkmrv9.mjs +0 -24
- package/dist/chunks/cli-1.1.18-ndct9t5e.mjs +0 -4
- package/dist/chunks/cli-1.1.18-npdweafk.mjs +0 -6
- package/dist/chunks/cli-1.1.18-ns45fmht.mjs +0 -2
- package/dist/chunks/cli-1.1.18-p0ey1z9w.mjs +0 -2
- package/dist/chunks/cli-1.1.18-p28wy0mz.mjs +0 -2
- package/dist/chunks/cli-1.1.18-p3yf1aq6.mjs +0 -42
- package/dist/chunks/cli-1.1.18-p5rqk1qq.mjs +0 -2
- package/dist/chunks/cli-1.1.18-pbdm30bs.mjs +0 -2
- package/dist/chunks/cli-1.1.18-psb6qqc1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-pt16bxrm.mjs +0 -2
- package/dist/chunks/cli-1.1.18-pzeg2p3k.mjs +0 -2
- package/dist/chunks/cli-1.1.18-q7qp6pv5.mjs +0 -2
- package/dist/chunks/cli-1.1.18-qrz1vgy2.mjs +0 -2
- package/dist/chunks/cli-1.1.18-qs28eyy1.mjs +0 -2
- package/dist/chunks/cli-1.1.18-qykcs1fr.mjs +0 -4
- package/dist/chunks/cli-1.1.18-r50x1ezt.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ra67yknr.mjs +0 -6
- package/dist/chunks/cli-1.1.18-rbfhhwym.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rbkz8pj4.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rnqtkprk.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rp84hvn4.mjs +0 -2
- package/dist/chunks/cli-1.1.18-rykfqnyd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-s5nhwqft.mjs +0 -2
- package/dist/chunks/cli-1.1.18-sdsvkqmn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-sq93n51h.mjs +0 -2
- package/dist/chunks/cli-1.1.18-t526ry94.mjs +0 -34
- package/dist/chunks/cli-1.1.18-ta6r8qry.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ts8ermsd.mjs +0 -2
- package/dist/chunks/cli-1.1.18-v42h6ekh.mjs +0 -15
- package/dist/chunks/cli-1.1.18-v4gc446r.mjs +0 -2
- package/dist/chunks/cli-1.1.18-v5btk93t.mjs +0 -3
- package/dist/chunks/cli-1.1.18-v75xqnbv.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vgfpa3bs.mjs +0 -5
- package/dist/chunks/cli-1.1.18-vnsqk2vn.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vx2rxj7b.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vymgw42z.mjs +0 -2
- package/dist/chunks/cli-1.1.18-vzrv28w4.mjs +0 -24
- package/dist/chunks/cli-1.1.18-wp7r00wk.mjs +0 -2
- package/dist/chunks/cli-1.1.18-wzpxr762.mjs +0 -50
- package/dist/chunks/cli-1.1.18-x0bha3jf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-x7jyxff1.mjs +0 -3
- package/dist/chunks/cli-1.1.18-x7k6y949.mjs +0 -39
- package/dist/chunks/cli-1.1.18-xfb4pete.mjs +0 -5410
- package/dist/chunks/cli-1.1.18-xpxkw4js.mjs +0 -2
- package/dist/chunks/cli-1.1.18-y0eah2b9.mjs +0 -2
- package/dist/chunks/cli-1.1.18-y89tqne6.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ybazgea3.mjs +0 -1
- package/dist/chunks/cli-1.1.18-ybfayy4j.mjs +0 -2
- package/dist/chunks/cli-1.1.18-yk1f4vsx.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ypcye8ae.mjs +0 -6
- package/dist/chunks/cli-1.1.18-ythtynpe.mjs +0 -12
- package/dist/chunks/cli-1.1.18-yymp5d28.mjs +0 -12
- package/dist/chunks/cli-1.1.18-yysexesh.mjs +0 -2
- package/dist/chunks/cli-1.1.18-zd969gzb.mjs +0 -2
- package/dist/chunks/cli-1.1.18-zdx4ywwf.mjs +0 -2
- package/dist/chunks/cli-1.1.18-ztyf20j1.mjs +0 -2
- package/dist/chunks/client-1.1.18-zdqzxpen.mjs +0 -1
- package/dist/chunks/color-1.1.18-qt7znj00.mjs +0 -1
- package/dist/chunks/compact-1.1.18-qev191am.mjs +0 -3
- package/dist/chunks/config-1.1.18-9kjysdvn.mjs +0 -1
- package/dist/chunks/config-1.1.18-am3webex.mjs +0 -1
- package/dist/chunks/constants-1.1.18-hdfyvthe.mjs +0 -1
- package/dist/chunks/context-1.1.18-ywdzshyf.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.18-ncf3febd.mjs +0 -1
- package/dist/chunks/conversation-1.1.18-h1q8gp2k.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.18-t0s2718z.mjs +0 -1
- package/dist/chunks/copy-1.1.18-66cbtmsa.mjs +0 -9
- package/dist/chunks/cost-1.1.18-350gegdk.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.18-vgmc8evp.mjs +0 -1
- package/dist/chunks/createSession-1.1.18-0e04rk8g.mjs +0 -1
- package/dist/chunks/debug-1.1.18-c4v63z13.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.18-jg2xdcgn.mjs +0 -1534
- package/dist/chunks/desktop-1.1.18-sghgn08z.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.18-m0xvtgqt.mjs +0 -1
- package/dist/chunks/detection-1.1.18-d7kpetjp.mjs +0 -1
- package/dist/chunks/diff-1.1.18-y9e1gbv0.mjs +0 -1
- package/dist/chunks/doctor-1.1.18-me0b6eyh.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.18-d85k2x5j.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.18-6jzg1a3e.mjs +0 -1
- package/dist/chunks/effort-1.1.18-kzqkmbjd.mjs +0 -13
- package/dist/chunks/engine-1.1.18-z5jbth81.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.18-1cqrnkp2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.18-x298f5cb.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.18-6k9hzg6p.mjs +0 -1
- package/dist/chunks/environments-1.1.18-r0dv94mx.mjs +0 -1
- package/dist/chunks/errors-1.1.18-q6s6h2zs.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.18-0zc9623h.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.18-spcbfmbw.mjs +0 -1
- package/dist/chunks/exit-1.1.18-zvcsa8gc.mjs +0 -1
- package/dist/chunks/explorer-1.1.18-wf8yy5vj.mjs +0 -1
- package/dist/chunks/export-1.1.18-qeyf86rn.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.18-t0cm4v50.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.18-w6zswndv.mjs +0 -1
- package/dist/chunks/fast-1.1.18-c6bbr2sj.mjs +0 -1
- package/dist/chunks/feedback-1.1.18-8c9j05d9.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.18-mk3qv1p1.mjs +0 -1
- package/dist/chunks/git-1.1.18-716sc7rw.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.18-60dnzg1p.mjs +0 -1
- package/dist/chunks/goal-1.1.18-8em4jke5.mjs +0 -4
- package/dist/chunks/growthbook-1.1.18-b3tgw6y3.mjs +0 -1
- package/dist/chunks/headless-1.1.18-b5szxwsw.mjs +0 -2
- package/dist/chunks/heapdump-1.1.18-vjq0hc7v.mjs +0 -6
- package/dist/chunks/help-1.1.18-21j0mh6r.mjs +0 -1
- package/dist/chunks/hookChains-1.1.18-hptz3v0e.mjs +0 -3
- package/dist/chunks/hooks-1.1.18-0zec4dds.mjs +0 -1
- package/dist/chunks/hooks-1.1.18-ha1g38hn.mjs +0 -79
- package/dist/chunks/ide-1.1.18-rkvs3qqd.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.18-nakzgnn7.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.18-qxn6m4rg.mjs +0 -1
- package/dist/chunks/index-1.1.18-0ha3tnh6.mjs +0 -1
- package/dist/chunks/index-1.1.18-18y0bk36.mjs +0 -1
- package/dist/chunks/index-1.1.18-1kzcw8rj.mjs +0 -9
- package/dist/chunks/index-1.1.18-3yaj9awp.mjs +0 -1
- package/dist/chunks/index-1.1.18-427vyn1s.mjs +0 -1
- package/dist/chunks/index-1.1.18-5aebjh6r.mjs +0 -2
- package/dist/chunks/index-1.1.18-7qw763sw.mjs +0 -1
- package/dist/chunks/index-1.1.18-9p90ysn2.mjs +0 -23
- package/dist/chunks/index-1.1.18-a31cga5m.mjs +0 -1
- package/dist/chunks/index-1.1.18-awg146jw.mjs +0 -1
- package/dist/chunks/index-1.1.18-bsk8rb63.mjs +0 -1
- package/dist/chunks/index-1.1.18-cvzxd0hz.mjs +0 -1
- package/dist/chunks/index-1.1.18-ejew46p1.mjs +0 -1
- package/dist/chunks/index-1.1.18-gdwz7smf.mjs +0 -1
- package/dist/chunks/index-1.1.18-hcwn8mp8.mjs +0 -1
- package/dist/chunks/index-1.1.18-j843bxtx.mjs +0 -9
- package/dist/chunks/index-1.1.18-jhj8ae5j.mjs +0 -30
- package/dist/chunks/index-1.1.18-k9471m74.mjs +0 -1
- package/dist/chunks/index-1.1.18-kvv48kwq.mjs +0 -5
- package/dist/chunks/index-1.1.18-n6ntpnas.mjs +0 -1
- package/dist/chunks/index-1.1.18-n8a9f3dp.mjs +0 -2
- package/dist/chunks/index-1.1.18-ppwdm9bc.mjs +0 -1
- package/dist/chunks/index-1.1.18-zaqj0a20.mjs +0 -1
- package/dist/chunks/init-1.1.18-kgjtv56b.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.18-we3h7znp.mjs +0 -1
- package/dist/chunks/ink-1.1.18-s45xz0d5.mjs +0 -1
- package/dist/chunks/insights-1.1.18-qxdn050x.mjs +0 -870
- package/dist/chunks/install-1.1.18-hrtjazqa.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.18-9y1kn2dm.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.18-yfeb37pz.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.18-0s0n0snp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.18-vsnpskhb.mjs +0 -1
- package/dist/chunks/keybindings-1.1.18-6zbse835.mjs +0 -2
- package/dist/chunks/knowledge-1.1.18-6ex2a771.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.18-8dq1wk9a.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.18-4vpps6mn.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.18-4j6dvx4m.mjs +0 -1
- package/dist/chunks/log-1.1.18-ft9dg3fj.mjs +0 -1
- package/dist/chunks/main-1.1.18-s1hnrh3q.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.18-jqjx86ng.mjs +0 -1
- package/dist/chunks/mcp-1.1.18-24906cg4.mjs +0 -1
- package/dist/chunks/mcp-1.1.18-7t3h9h66.mjs +0 -4
- package/dist/chunks/mcp-1.1.18-ast61twg.mjs +0 -17
- package/dist/chunks/mcpb-1.1.18-snfk9dz9.mjs +0 -1
- package/dist/chunks/memory-1.1.18-7k51bcr6.mjs +0 -72
- package/dist/chunks/model-1.1.18-0njn3xdn.mjs +0 -2
- package/dist/chunks/model-1.1.18-ny459y9j.mjs +0 -1
- package/dist/chunks/node-1.1.18-gk5h7jp4.mjs +0 -12
- package/dist/chunks/oauth-1.1.18-w9bt5qvg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.18-xzt8j2wx.mjs +0 -14
- package/dist/chunks/output-style-1.1.18-q591t8v1.mjs +0 -1
- package/dist/chunks/package-KQCMZM5L-1.1.18-whakyscr.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.18-bwgbwc1r.mjs +0 -1
- package/dist/chunks/parser-1.1.18-qad863f5.mjs +0 -1
- package/dist/chunks/passes-1.1.18-t0hq8ewm.mjs +0 -1
- package/dist/chunks/permissions-1.1.18-5a7765tc.mjs +0 -1
- package/dist/chunks/permissions-1.1.18-ed8ysk2a.mjs +0 -3
- package/dist/chunks/plan-1.1.18-4hc85kck.mjs +0 -1
- package/dist/chunks/plist-1.1.18-7sdbzzm0.mjs +0 -1
- package/dist/chunks/plugin-1.1.18-9tkb7bap.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.18-j31xzm3k.mjs +0 -1
- package/dist/chunks/plugins-1.1.18-ab7msm6m.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.18-dkhj1e0v.mjs +0 -2
- package/dist/chunks/print-1.1.18-j2g7hv0n.mjs +0 -57
- package/dist/chunks/process-1.1.18-fvq9b7q3.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.18-vq69a3e4.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.18-n1yqhpgg.mjs +0 -9
- package/dist/chunks/prompt-1.1.18-acbj3trk.mjs +0 -1
- package/dist/chunks/prompt-1.1.18-wh5jv6ay.mjs +0 -1
- package/dist/chunks/prompts-1.1.18-m0az7ynn.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.18-k2shdefe.mjs +0 -13
- package/dist/chunks/provider-1.1.18-g384d5y0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.18-sehcrk96.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.18-ge2ffym5.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.18-9dst3c2h.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.18-7t053hjx.mjs +0 -26
- package/dist/chunks/registry-1.1.18-xrd7m0b5.mjs +0 -1
- package/dist/chunks/release-notes-1.1.18-ayafp97j.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.18-hmvtf1f4.mjs +0 -2
- package/dist/chunks/remote-env-1.1.18-w9k53dqm.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.18-ex403g4q.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.18-4axy7j90.mjs +0 -1
- package/dist/chunks/rename-1.1.18-2v175525.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.18-z7ttbjsb.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.18-4z8q3518.mjs +0 -1
- package/dist/chunks/resume-1.1.18-7s9nkn6h.mjs +0 -2
- package/dist/chunks/rewind-1.1.18-wwasabaf.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.18-drrms6kn.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.18-grdmbjgn.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.18-4290hdqx.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.18-859vsbae.mjs +0 -1
- package/dist/chunks/session-1.1.18-ndwcefxm.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.18-mqhk62gm.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.18-2ypck9c4.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.18-w8jyzxb1.mjs +0 -1
- package/dist/chunks/settings-1.1.18-8tv1qyh6.mjs +0 -1
- package/dist/chunks/setup-1.1.18-frcmhac0.mjs +0 -12
- package/dist/chunks/sinks-1.1.18-zxg6qwxv.mjs +0 -1
- package/dist/chunks/skills-1.1.18-zxh8yk9d.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.18-h7ey8bj0.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.18-bws73cnz.mjs +0 -1
- package/dist/chunks/state-1.1.18-12hrspsf.mjs +0 -1
- package/dist/chunks/stats-1.1.18-kmhwdmq9.mjs +0 -6
- package/dist/chunks/status-1.1.18-4aep2t86.mjs +0 -1
- package/dist/chunks/stickers-1.1.18-20nhxd0w.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.18-a6f6xtx7.mjs +0 -1
- package/dist/chunks/tasks-1.1.18-5brzcp4c.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.18-ewst0n42.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.18-n1rgqqyr.mjs +0 -1
- package/dist/chunks/teleport-1.1.18-e63krqkp.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.18-6nf0ex7b.mjs +0 -1
- package/dist/chunks/theme-1.1.18-egp4mwdb.mjs +0 -1
- package/dist/chunks/thinkback-1.1.18-wphxbpgs.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.18-rjmn2eej.mjs +0 -1
- package/dist/chunks/toolPool-1.1.18-s1ssr2ef.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.18-c9cwkafr.mjs +0 -1
- package/dist/chunks/tools-1.1.18-1dqtpknx.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.18-3h8z5wdy.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.18-e9b2pss1.mjs +0 -69
- package/dist/chunks/types-1.1.18-31emf7xp.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.18-x96n2df3.mjs +0 -4
- package/dist/chunks/update-1.1.18-rfhbgb3x.mjs +0 -72
- package/dist/chunks/upgrade-1.1.18-5dd5b35g.mjs +0 -1
- package/dist/chunks/upload-1.1.18-6rcbt5xr.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.18-xx3jrk14.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.18-y4e042py.mjs +0 -1
- package/dist/chunks/usage-1.1.18-q3y9c6vk.mjs +0 -1
- package/dist/chunks/util-1.1.18-2vgfzdph.mjs +0 -1
- package/dist/chunks/utils-1.1.18-8tjbjr7v.mjs +0 -1
- package/dist/chunks/vim-1.1.18-44eqnfwb.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.18-c2shb8qc.mjs +0 -13
- package/dist/chunks/watcher-1.1.18-cb1x3sr6.mjs +0 -1
- package/dist/chunks/wiki-1.1.18-r1abckjp.mjs +0 -132
- package/dist/chunks/workflows-1.1.18-jtx40wvq.mjs +0 -1
- package/dist/chunks/worktree-1.1.18-ds3kez7h.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.18-2wj8e6bc.mjs +0 -1
- package/dist/chunks/wrapper-1.1.18-shbmq2kg.mjs +0 -7
- /package/dist/chunks/{cli-1.1.18-z2dx0w6b.mjs → cli-1.1.20-c0p4wjw7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-zhq044yz.mjs → cli-1.1.20-c4ktmkk3.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-tm7nmhz8.mjs → cli-1.1.20-cypawma9.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-4j0hy93x.mjs → cli-1.1.20-e4h3mrxr.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-qfz5keqx.mjs → cli-1.1.20-nr5scd4y.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.18-x9wfjwnm.mjs → cli-1.1.20-sfrzvte7.mjs} +0 -0
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import{n as O,o as x}from"./cli-1.1.18-4j0hy93x.mjs";import{AG as Zz,IG as tq,JG as Rz,JN as oq,LS as b,MN as sq,NN as iq,NS as Bq,ON as nq,PN as Nz,XM as c,YM as Uq,ZM as a,_M as Wq,_x as aq,aN as J,co as zq,cy as kz,dO as t,do as Uz,eO as Jq,en as pq,eo as wq,fN as jq,fo as Wz,go as Aq,hN as Gq,ho as Xz,iO as Nq,ko as Tq,lo as Yz,qN as N,rK as rq,rN as Xq,sK as Jz,sN as F,vN as kq,xN as Rq,zG as Mq}from"./cli-1.1.18-xfb4pete.mjs";import"./cli-1.1.18-pzeg2p3k.mjs";import"./cli-1.1.18-2qvvz2tv.mjs";import"./cli-1.1.18-cphcr3xr.mjs";import"./cli-1.1.18-k1pkc44n.mjs";import"./cli-1.1.18-hphxdvpd.mjs";import"./cli-1.1.18-ta6r8qry.mjs";import"./cli-1.1.18-heh8xz6x.mjs";import"./cli-1.1.18-rnqtkprk.mjs";import"./cli-1.1.18-cy0ypdkd.mjs";import"./cli-1.1.18-f7jag2rr.mjs";import"./cli-1.1.18-v75xqnbv.mjs";import"./cli-1.1.18-5s8f8gd5.mjs";import"./cli-1.1.18-ccbh77pf.mjs";import"./cli-1.1.18-zd969gzb.mjs";import"./cli-1.1.18-27b82jjj.mjs";import"./cli-1.1.18-pbdm30bs.mjs";import"./cli-1.1.18-ybfayy4j.mjs";import"./cli-1.1.18-fst0kx9m.mjs";import"./cli-1.1.18-1c8pr80a.mjs";import"./cli-1.1.18-0h118vrj.mjs";import"./cli-1.1.18-t526ry94.mjs";import{DZ as Qz,F1 as dq,H1 as Oq,MZ as Lq,_0 as Pq,a1 as Hq,c1 as f}from"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import"./cli-1.1.18-12tzkcxz.mjs";import"./cli-1.1.18-mg7jmbh9.mjs";import"./cli-1.1.18-mwevzyy2.mjs";import"./cli-1.1.18-a888prq4.mjs";import"./cli-1.1.18-1t3rb5a8.mjs";import"./cli-1.1.18-8thyc5yy.mjs";import"./cli-1.1.18-npdweafk.mjs";import{c4 as Kq,d4 as K,e4 as m,f4 as v}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as Iz}from"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-0aakxjsk.mjs";import"./cli-1.1.18-948h21gh.mjs";import"./cli-1.1.18-ddreb78e.mjs";import"./cli-1.1.18-1spz0azv.mjs";import"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-7nsrr2k0.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import{O$ as lq,P$ as Ez,Xaa as mq,aba as Dz,bfa as fq,hfa as vq,ifa as cq,pda as qq,wfa as jz,xda as Gz}from"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import{Zja as w,aka as Bz}from"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import{fla as e,jla as zz}from"./cli-1.1.18-mz10pywc.mjs";import{Fla as gq,Hla as _z}from"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{gta as Vq,lta as Qq}from"./cli-1.1.18-hvd9yyb4.mjs";Jz();import{stat as xz}from"fs/promises";import{cwd as yz}from"process";Bq();zz();Oq();Gq();Gz();Wz();Zz();Xz();Yz();Uz();v();var _q=Vq(Qz(),1),d=Vq(Iz(),1);function Eq(z){let q=_q.c(36),{servers:I,scope:G,onDone:Q}=z,U;if(q[0]!==I)U=Object.keys(I),q[0]=I,q[1]=U;else U=q[1];let W=U,Z;if(q[2]===Symbol.for("react.memo_cache_sentinel"))Z={},q[2]=Z;else Z=q[2];let[X,Y]=d.useState(Z),P,B;if(q[3]===Symbol.for("react.memo_cache_sentinel"))P=()=>{J().then((V)=>{let{servers:s}=V;return Y(s)})},B=[],q[3]=P,q[4]=B;else P=q[3],B=q[4];d.useEffect(P,B);let A;if(q[5]!==X||q[6]!==W)A=W.filter((V)=>X[V]!==void 0),q[5]=X,q[6]=W,q[7]=A;else A=q[7];let H=A,T=async function(s){let Yq=0;for(let l of s){let Zq=I[l];if(Zq){let i=l;if(X[i]!==void 0){let n=1;while(X[`${l}_${n}`]!==void 0)n++;i=`${l}_${n}`}await c(i,Zq,G),Yq++}}y(Yq)},[r]=Lq(),h;if(q[8]!==Q||q[9]!==G||q[10]!==r)h=(V)=>{if(V>0)e(`
|
|
2
|
-
${Pq("success",r)(`Successfully imported ${V} MCP ${qq(V,"server")} to ${G} config.`)}
|
|
3
|
-
`);else e(`
|
|
4
|
-
No servers were imported.`);Q(),b()},q[8]=Q,q[9]=G,q[10]=r,q[11]=h;else h=q[11];let y=h,S;if(q[12]!==y)S=()=>{y(0)},q[12]=y,q[13]=S;else S=q[13];let _=S,qz=W.length,$;if(q[14]!==W.length)$=qq(W.length,"server"),q[14]=W.length,q[15]=$;else $=q[15];let o=`Found ${qz} MCP ${$} in Claude Desktop.`,E;if(q[16]!==H.length)E=H.length>0&&K(f,{color:"warning",children:"Note: Some servers already exist with the same name. If selected, they will be imported with a numbered suffix."}),q[16]=H.length,q[17]=E;else E=q[17];let C;if(q[18]===Symbol.for("react.memo_cache_sentinel"))C=K(f,{children:"Please select the servers you want to import:"}),q[18]=C;else C=q[18];let D,j;if(q[19]!==H||q[20]!==W)D=W.map((V)=>({label:`${V}${H.includes(V)?" (already exists)":""}`,value:V})),j=W.filter((V)=>!H.includes(V)),q[19]=H,q[20]=W,q[21]=D,q[22]=j;else D=q[21],j=q[22];let k;if(q[23]!==_||q[24]!==T||q[25]!==D||q[26]!==j)k=K(Mq,{options:D,defaultValue:j,onSubmit:T,onCancel:_,hideIndexes:!0}),q[23]=_,q[24]=T,q[25]=D,q[26]=j,q[27]=k;else k=q[27];let R;if(q[28]!==_||q[29]!==o||q[30]!==E||q[31]!==k)R=m(Tq,{title:"Import MCP Servers from Claude Desktop",subtitle:o,color:"success",onCancel:_,hideInputGuide:!0,children:[E,C,k]}),q[28]=_,q[29]=o,q[30]=E,q[31]=k,q[32]=R;else R=q[32];let u;if(q[33]===Symbol.for("react.memo_cache_sentinel"))u=K(Hq,{paddingX:1,children:K(f,{dimColor:!0,italic:!0,children:m(Aq,{children:[K(zq,{shortcut:"Space",action:"select"}),K(zq,{shortcut:"Enter",action:"confirm"}),K(wq,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})})}),q[33]=u;else u=q[33];let g;if(q[34]!==R)g=m(Kq,{children:[R,u]}),q[34]=R,q[35]=g;else g=q[35];return g}Oq();Rz();Bz();Nz();Nq();Gq();Rq();var xq={getAllMcpConfigs:J,getMcpConfigsByScope:a,getProjectMcpServerStatus:kq,isMcpServerDisabled:jq,describeMcpConfigFilePath:N,connectToServer:t,clearServerCache:Jq};function yq(z){return{generatedAt:new Date().toISOString(),targetName:z.targetName,scopeFilter:z.scopeFilter,configOnly:z.configOnly,summary:{totalReports:0,healthy:0,warnings:0,blocking:0},findings:[],servers:[]}}function Vz(z){if(z.message==="MCP config is not a valid JSON")return"config.invalid_json";if(z.message.startsWith("Missing environment variables:"))return"config.missing_env_vars";if(z.message.includes("Windows requires 'cmd /c' wrapper to execute npx"))return"config.windows_npx_wrapper_required";if(z.message==="Does not adhere to MCP server configuration schema")return"config.invalid_schema";return"config.validation_error"}function Kz(z){let q=z.mcpErrorMetadata?.severity;if(q==="fatal")return"error";if(q==="warning")return"warn";return"warn"}function bq(z){return z.map((q)=>{let I=Kz(q);return{blocking:I==="error",code:Vz(q),message:q.message,remediation:q.suggestion,scope:q.mcpErrorMetadata?.scope,serverName:q.mcpErrorMetadata?.serverName,severity:I,sourcePath:q.file}})}function Fq(z){let q=[],I=new Map;for(let G of z){if(!G.serverName){q.push(G);continue}let Q=I.get(G.serverName)??[];Q.push(G),I.set(G.serverName,Q)}return{globalFindings:q,serverFindingsByName:I}}function M(z){if(z.scope==="claudeai")return"claudeai";if(z.scope==="dynamic")return z.pluginSource?"plugin":"dynamic";if(z.scope==="managed")return"managed";return z.scope}function Iq(z){return z.type??"stdio"}function Dq(z){switch(z.type){case"sse":case"http":case"ws":case"claudeai-proxy":return`${z.scope}:${z.type}:${z.url}`;case"sdk":return`${z.scope}:${z.type}:${z.name}`;default:{let q="command"in z?z.command:void 0,I="args"in z?z.args:void 0;return`${z.scope}:${z.type??"stdio"}:${q}:${JSON.stringify(I??[])}`}}}function Lz(z,q){if(!q)return!1;return M(z)===M(q)&&Dq(z)===Dq(q)}function p(z,q,I,G,Q){let U=I[z];if(!U)return[];let W=q==="project"?Q.getProjectMcpServerStatus(z)==="pending":!1,Z=Q.isMcpServerDisabled(z),X=!Z&&Lz(U,G);return[{name:z,sourceType:M(U),sourcePath:Q.describeMcpConfigFilePath(q),transport:Iq(U),runtimeVisible:X,runtimeActive:X,pendingApproval:W,disabled:Z}]}function L(z,q){if(!q)return z==="enterprise"||z==="local"||z==="project"||z==="user";return z===q}function hq(z,q){return[...L("enterprise",q)?z.enterprise.errors:[],...L("local",q)?z.local.errors:[],...L("project",q)?z.project.errors:[],...L("user",q)?z.user.errors:[]]}function Pz(z,q,I){return{name:z,sourceType:M(q),sourcePath:M(q)==="plugin"?`plugin:${q.pluginSource??"unknown"}`:M(q)==="claudeai"?"claude.ai":q.scope,transport:Iq(q),runtimeVisible:I?.runtimeVisible??!0,runtimeActive:I?.runtimeActive??!0,disabled:I?.disabled??!1}}function Hz(z,q,I){let G=M(q),Q=G==="plugin"?`plugin:${q.pluginSource??"unknown"}`:G==="claudeai"?"claude.ai":I.describeMcpConfigFilePath(q.scope);return z.some((U)=>U.sourceType===G&&U.sourcePath===Q&&U.transport===Iq(q))}function Oz(z){let q=z.filter((G)=>G.sourceType==="local"||G.sourceType==="project"||G.sourceType==="user"||G.sourceType==="enterprise");if(q.length<=1)return[];let I=q.find((G)=>G.runtimeActive)??q[0];return[{blocking:!1,code:"duplicate.same_name_multiple_scopes",message:`Server is defined in multiple config scopes; active source is ${I.sourceType}`,remediation:"Remove or rename one of the duplicate definitions to avoid confusion.",serverName:I.name,severity:"warn"},{blocking:!1,code:"scope.shadowed",message:`${I.name} has shadowed definitions in lower-precedence config scopes.`,remediation:"Inspect the other definitions and remove the ones you no longer want to keep.",serverName:I.name,severity:"warn"}]}function wz(z){let q=[];for(let I of z){if(I.pendingApproval)q.push({blocking:!1,code:"state.pending_project_approval",message:`${I.name} is declared in project config but pending project approval.`,remediation:"Approve the server in the project MCP approval flow before expecting it to become active.",scope:"project",serverName:I.name,severity:"warn",sourcePath:I.sourcePath});if(I.disabled)q.push({blocking:!1,code:"state.disabled",message:`${I.name} is currently disabled.`,remediation:"Re-enable the server before expecting it to be available at runtime.",serverName:I.name,severity:"warn",sourcePath:I.sourcePath})}return q}function Sq(z){let q=[...z.findings,...z.servers.flatMap((U)=>U.findings)],I=q.filter((U)=>U.blocking).length,G=q.filter((U)=>U.severity==="warn").length,Q=z.servers.filter((U)=>U.liveCheck.result==="connected"&&U.findings.every((W)=>!W.blocking&&W.severity!=="warn")).length;return{...z,summary:{totalReports:z.servers.length,healthy:Q,warnings:G,blocking:I}}}async function Az(z,q,I,G,Q){if(I)return{attempted:!1,result:"skipped"};if(!q){if(G.some((X)=>X.pendingApproval))return{attempted:!1,result:"pending"};if(G.some((X)=>X.disabled))return{attempted:!1,result:"disabled"};return{attempted:!1,result:"skipped"}}let U=Date.now(),W=await Q.connectToServer(z,q),Z=Date.now()-U;try{switch(W.type){case"connected":return{attempted:!0,result:"connected",durationMs:Z};case"needs-auth":return{attempted:!0,result:"needs-auth",durationMs:Z};case"disabled":return{attempted:!0,result:"disabled",durationMs:Z};case"pending":return{attempted:!0,result:"pending",durationMs:Z};case"failed":return{attempted:!0,result:"failed",durationMs:Z,error:W.error}}}finally{await Q.clearServerCache(z,q).catch(()=>{})}}function Tz(z,q,I){let G=q.find((Q)=>Q.runtimeActive);if(I.result==="needs-auth")return[{blocking:!1,code:"auth.needs_auth",message:`${z} requires authentication before it can be used.`,remediation:"Authenticate the server and then rerun the doctor command.",serverName:z,severity:"warn",sourcePath:G?.sourcePath}];if(I.result==="failed"){let Q=G?.transport==="stdio"&&typeof I.error==="string"&&I.error.toLowerCase().includes("not found");return[{blocking:!0,code:Q?"stdio.command_not_found":"health.failed",message:I.error?`${z} failed its live health check: ${I.error}`:`${z} failed its live health check.`,remediation:Q?"Verify the configured executable exists on PATH or use a full executable path.":"Inspect the server configuration and retry the connection once the underlying problem is fixed.",serverName:z,severity:"error",sourcePath:G?.sourcePath}]}return[]}async function $q(z,q,I,G){let Q={enterprise:G.getMcpConfigsByScope("enterprise"),local:G.getMcpConfigsByScope("local"),project:G.getMcpConfigsByScope("project"),user:G.getMcpConfigsByScope("user")},{servers:U}=await G.getAllMcpConfigs(),W=G.isMcpServerDisabled(z),Z=U[z]??void 0,X=W?void 0:Z,Y=[...L("enterprise",q.scopeFilter)?p(z,"enterprise",Q.enterprise.servers,X,G):[],...L("local",q.scopeFilter)?p(z,"local",Q.local.servers,X,G):[],...L("project",q.scopeFilter)?p(z,"project",Q.project.servers,X,G):[],...L("user",q.scopeFilter)?p(z,"user",Q.user.servers,X,G):[]],P=!!Z&&!Hz(Y,Z,G)&&(Y.length===0&&!q.scopeFilter||Y.length>0&&Y.every((T)=>!T.runtimeActive));if(Z&&P)Y.push(Pz(z,Z,{disabled:W,runtimeActive:!W,runtimeVisible:!W}));let B=Y.some((T)=>T.runtimeActive)||P?X:void 0,A=[...I.get(z)??[],...Oz(Y),...wz(Y)];if(Y.length===0&&!P)A.push({blocking:!0,code:"state.not_found",message:`${z} was not found in the selected MCP configuration sources.`,remediation:"Check the server name and scope, or add the MCP server before retrying.",serverName:z,severity:"error"});let H=await Az(z,B,q.configOnly,Y,G);return A.push(...Tz(z,Y,H)),{serverName:z,requestedByUser:q.requestedByUser,definitions:Y,liveCheck:H,findings:A}}function Mz(z,q,I){let G=new Set(I?Object.keys(q):[]);for(let Q of z)for(let U of Object.keys(Q))G.add(U);return[...G].sort()}async function Cq(z={configOnly:!1},q=xq){let I=yq(z),G={enterprise:q.getMcpConfigsByScope("enterprise"),local:q.getMcpConfigsByScope("local"),project:q.getMcpConfigsByScope("project"),user:q.getMcpConfigsByScope("user")},Q=bq(hq(G,z.scopeFilter)),{globalFindings:U,serverFindingsByName:W}=Fq(Q),{servers:Z}=await q.getAllMcpConfigs(),X=Mz([...L("enterprise",z.scopeFilter)?[G.enterprise.servers]:[],...L("local",z.scopeFilter)?[G.local.servers]:[],...L("project",z.scopeFilter)?[G.project.servers]:[],...L("user",z.scopeFilter)?[G.user.servers]:[]],Z,!z.scopeFilter),Y=await Promise.all(X.map((P)=>$q(P,{configOnly:z.configOnly,requestedByUser:!1,scopeFilter:z.scopeFilter},W,q)));return I.servers=Y,I.findings=U,Sq(I)}async function uq(z,q,I=xq){let G=yq({...q,targetName:z}),Q={enterprise:I.getMcpConfigsByScope("enterprise"),local:I.getMcpConfigsByScope("local"),project:I.getMcpConfigsByScope("project"),user:I.getMcpConfigsByScope("user")},U=bq(hq(Q,q.scopeFilter)),{globalFindings:W,serverFindingsByName:Z}=Fq(U),X=await $q(z,{configOnly:q.configOnly,requestedByUser:!0,scopeFilter:q.scopeFilter},Z,I);return G.servers=[X],G.findings=W,Sq(G)}Nq();Gq();Rq();kz();jz();_z();Bq();Dz();Ez();v();function bz(z){let q=[];if(q.push("MCP Doctor"),q.push(""),q.push("Summary"),q.push(`- ${z.summary.totalReports} server reports generated`),q.push(`- ${z.summary.healthy} healthy`),q.push(`- ${z.summary.warnings} warnings`),q.push(`- ${z.summary.blocking} blocking issues`),z.targetName)q.push(`- target: ${z.targetName}`);for(let I of z.servers){q.push(""),q.push(I.serverName);let G=I.definitions.find((Q)=>Q.runtimeActive);if(G)q.push(`- Active source: ${G.sourceType}`),q.push(`- Transport: ${G.transport??"unknown"}`);if(I.definitions.length>1){let Q=I.definitions.filter((U)=>!U.runtimeActive).map((U)=>U.sourceType);if(Q.length>0)q.push(`- Additional definitions: ${Q.join(", ")}`)}if(I.liveCheck.result){let U=new Set(["disabled","pending","skipped"]).has(I.liveCheck.result)?"State":"Live check";q.push(`- ${U}: ${I.liveCheck.result}`)}if(I.liveCheck.error)q.push(`- Error: ${I.liveCheck.error}`);for(let Q of I.findings)if(q.push(`- ${Q.message}`),Q.remediation)q.push(`- Fix: ${Q.remediation}`)}if(z.findings.length>0){q.push(""),q.push("Global findings");for(let I of z.findings)if(q.push(`- ${I.message}`),I.remediation)q.push(`- Fix: ${I.remediation}`)}return q.join(`
|
|
5
|
-
`)}async function OG(z,q){try{let I=q.scope?F(q.scope):void 0,G=!!q.configOnly,Q=z?await uq(z,{configOnly:G,scopeFilter:I}):await Cq({configOnly:G,scopeFilter:I});if(q.json)process.stdout.write(`${JSON.stringify(Q,null,2)}
|
|
6
|
-
`);else process.stdout.write(`${bz(Q)}
|
|
7
|
-
`);await new Promise((U)=>setTimeout(U,50)),process.exit(Q.summary.blocking>0?1:0);return}catch(I){O(I.message)}}async function eq(z,q){try{let I=await t(z,q);if(I.type==="connected")return"✓ Connected";else if(I.type==="needs-auth")return"! Needs authentication";else return"✗ Failed to connect"}catch(I){return"✗ Connection error"}}async function wG({debug:z,verbose:q}){let I=yz();w("",{});try{await xz(I)}catch(G){if(gq(G))O(`Error: Directory ${I} does not exist`);throw G}try{let{setup:G}=await import("./setup-1.1.18-frcmhac0.mjs");await G(I,"default",!1,!1,void 0,!1);let{startMCPServer:Q}=await import("./mcp-1.1.18-7t3h9h66.mjs");await Q(I,z??!1,q??!1)}catch(G){O(`Error: Failed to start MCP server: ${G}`)}}async function AG(z,q){let I=Wq(z),G=()=>{if(I&&(I.type==="sse"||I.type==="http"))oq(z,I),nq(z,I)};try{if(q.scope){let Y=F(q.scope);w("",{name:z,scope:Y}),await Uq(z,Y),G(),process.stdout.write(`Removed MCP server ${z} from ${Y} config
|
|
8
|
-
`),x(`File modified: ${N(Y)}`)}let Q=vq(),U=fq(),{servers:W}=a("project"),Z=!!W[z],X=[];if(Q.mcpServers?.[z])X.push("local");if(Z)X.push("project");if(U.mcpServers?.[z])X.push("user");if(X.length===0)O(`No MCP server found with name: "${z}"`);else if(X.length===1){let Y=X[0];w("",{name:z,scope:Y}),await Uq(z,Y),G(),process.stdout.write(`Removed MCP server "${z}" from ${Y} config
|
|
9
|
-
`),x(`File modified: ${N(Y)}`)}else process.stderr.write(`MCP server "${z}" exists in multiple scopes:
|
|
10
|
-
`),X.forEach((Y)=>{process.stderr.write(` - ${Xq(Y)} (${N(Y)})
|
|
11
|
-
`)}),process.stderr.write(`
|
|
12
|
-
To remove from a specific scope, use:
|
|
13
|
-
`),X.forEach((Y)=>{process.stderr.write(` claude mcp remove "${z}" -s ${Y}
|
|
14
|
-
`)}),O()}catch(Q){O(Q.message)}}async function TG(){w("",{});let{servers:z}=await J();if(Object.keys(z).length===0)console.log("No MCP servers configured. Use `claude mcp add` to add a server.");else{console.log(`Checking MCP server health...
|
|
15
|
-
`);let q=Object.entries(z),I=await rq(q,async([G,Q])=>({name:G,server:Q,status:await eq(G,Q)}),{concurrency:pq()});for(let{name:G,server:Q,status:U}of I)if(Q.type==="sse")console.log(`${G}: ${Q.url} (SSE) - ${U}`);else if(Q.type==="http")console.log(`${G}: ${Q.url} (HTTP) - ${U}`);else if(Q.type==="claudeai-proxy")console.log(`${G}: ${Q.url} - ${U}`);else if(!Q.type||Q.type==="stdio"){let W=Array.isArray(Q.args)?Q.args:[];console.log(`${G}: ${Q.command} ${W.join(" ")} - ${U}`)}}await b(0)}async function MG(z){w("",{name:z});let q=Wq(z);if(!q)O(`No MCP server found with name: ${z}`);console.log(`${z}:`),console.log(` Scope: ${Xq(q.scope)}`);let I=await eq(z,q);if(console.log(` Status: ${I}`),q.type==="sse"){if(console.log(" Type: sse"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,Q]of Object.entries(q.headers))console.log(` ${G}: ${Q}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="http"){if(console.log(" Type: http"),console.log(` URL: ${q.url}`),q.headers){console.log(" Headers:");for(let[G,Q]of Object.entries(q.headers))console.log(` ${G}: ${Q}`)}if(q.oauth?.clientId||q.oauth?.callbackPort){let G=[];if(q.oauth.clientId)G.push("oauth client configured");if(q.oauth.callbackPort)G.push("callback port configured");console.log(` OAuth: ${G.join(", ")}`)}}else if(q.type==="stdio"){console.log(" Type: stdio"),console.log(` Command: ${q.command}`);let G=Array.isArray(q.args)?q.args:[];if(console.log(` Args: ${G.join(" ")}`),q.env){console.log(" Environment:");for(let[Q,U]of Object.entries(q.env))console.log(` ${Q}=${U}`)}}console.log(`
|
|
16
|
-
To remove this server, run: claude mcp remove "${z}" -s ${q.scope}`),await b(0)}async function BG(z,q,I){try{let G=F(I.scope),Q=mq(q),W=I.clientSecret&&Q&&typeof Q==="object"&&"type"in Q&&(Q.type==="sse"||Q.type==="http")&&"url"in Q&&typeof Q.url==="string"&&"oauth"in Q&&Q.oauth&&typeof Q.oauth==="object"&&"clientId"in Q.oauth?await sq():void 0;await c(z,Q,G);let Z=Q&&typeof Q==="object"&&"type"in Q?String(Q.type||"stdio"):"stdio";if(W&&Q&&typeof Q==="object"&&"type"in Q&&(Q.type==="sse"||Q.type==="http")&&"url"in Q&&typeof Q.url==="string")iq(z,{type:Q.type,url:Q.url},W);w("",{scope:G,source:"json",type:Z}),x(`Added ${Z} MCP server ${z} to ${G} config`)}catch(G){O(G.message)}}async function _G(z){try{let q=F(z.scope),I=lq();w("",{scope:q,platform:I,source:"desktop"});let{readClaudeDesktopMcpServers:G}=await import("./claudeDesktop-1.1.18-v3ghw0k9.mjs"),Q=await G();if(Object.keys(Q).length===0)x("No MCP servers found in Claude Desktop configuration or configuration file does not exist.");let{unmount:U}=await dq(K(aq,{children:K(tq,{children:K(Eq,{servers:Q,scope:q,onDone:()=>{U()}})})}),{exitOnCtrlC:!0})}catch(q){O(q.message)}}async function EG(){w("",{}),cq((z)=>({...z,enabledMcpjsonServers:[],disabledMcpjsonServers:[],enableAllProjectMcpServers:!1})),x(`All project-scoped (.mcp.json) server approvals and rejections have been reset.
|
|
17
|
-
You will be prompted for approval next time you start Claudin.`)}export{wG as mcpServeHandler,EG as mcpResetChoicesHandler,AG as mcpRemoveHandler,TG as mcpListHandler,MG as mcpGetHandler,OG as mcpDoctorHandler,BG as mcpAddJsonHandler,_G as mcpAddFromDesktopHandler};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kta as z}from"./cli-1.1.18-hvd9yyb4.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};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import{Kg as LJ,Mg as NQ}from"./cli-1.1.18-251zfmjp.mjs";import{$x as bq,BG as nq,DG as iJ,KT as kq,LT as JJ,MT as QJ,NT as ZJ,PT as HQ,TT as Uq,UT as bJ,cy as nJ,fU as iq,km as cq,ko as VJ,lo as LQ,nm as uJ,tE as gq,tG as Cq,uE as mJ,uG as sJ,xE as dq,yE as lJ}from"./cli-1.1.18-xfb4pete.mjs";import"./cli-1.1.18-pzeg2p3k.mjs";import"./cli-1.1.18-2qvvz2tv.mjs";import"./cli-1.1.18-cphcr3xr.mjs";import"./cli-1.1.18-k1pkc44n.mjs";import"./cli-1.1.18-hphxdvpd.mjs";import"./cli-1.1.18-ta6r8qry.mjs";import"./cli-1.1.18-heh8xz6x.mjs";import"./cli-1.1.18-rnqtkprk.mjs";import"./cli-1.1.18-cy0ypdkd.mjs";import"./cli-1.1.18-f7jag2rr.mjs";import"./cli-1.1.18-v75xqnbv.mjs";import"./cli-1.1.18-5s8f8gd5.mjs";import"./cli-1.1.18-ccbh77pf.mjs";import"./cli-1.1.18-zd969gzb.mjs";import"./cli-1.1.18-27b82jjj.mjs";import"./cli-1.1.18-pbdm30bs.mjs";import"./cli-1.1.18-ybfayy4j.mjs";import"./cli-1.1.18-fst0kx9m.mjs";import"./cli-1.1.18-1c8pr80a.mjs";import{BY as y,DY as $J,GY as uq,HY as gJ}from"./cli-1.1.18-0h118vrj.mjs";import"./cli-1.1.18-t526ry94.mjs";import{DZ as hq,H1 as Aq,a1 as S,c1 as C,g1 as XJ}from"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import"./cli-1.1.18-12tzkcxz.mjs";import"./cli-1.1.18-mg7jmbh9.mjs";import"./cli-1.1.18-mwevzyy2.mjs";import"./cli-1.1.18-a888prq4.mjs";import"./cli-1.1.18-1t3rb5a8.mjs";import"./cli-1.1.18-8thyc5yy.mjs";import"./cli-1.1.18-npdweafk.mjs";import{d4 as k,e4 as K,f4 as _}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as pq}from"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-0aakxjsk.mjs";import"./cli-1.1.18-948h21gh.mjs";import"./cli-1.1.18-ddreb78e.mjs";import{E4 as $q,G4 as dJ}from"./cli-1.1.18-1spz0azv.mjs";import"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import{k9 as Dq,l9 as yJ}from"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-7nsrr2k0.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import{Bea as Fq,Cea as jq,Dea as xJ,Faa as Pq,Hea as WJ,Iea as zJ,M$ as wJ,Mea as cJ,Nea as yq,Taa as pJ,Wda as Nq,Wga as HJ,cha as VQ,j$ as Sq,kea as hJ,lea as T,pea as zq,sea as fq,yea as Eq}from"./cli-1.1.18-3y4pftxb.mjs";import{vha as _q,zha as fJ}from"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import{jja as rq,lja as UQ}from"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import{Zja as Lq,aka as PJ}from"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import{Bla as KJ,Hla as XQ}from"./cli-1.1.18-cxg522yt.mjs";import{Kla as p,Vla as Tq}from"./cli-1.1.18-3s03nva1.mjs";import{Fna as Mq,yra as DJ}from"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{gta as Wq,hta as _J,kta as b}from"./cli-1.1.18-hvd9yyb4.mjs";function vq(J){return Sq(J)!==null}var Oq=b(()=>{wJ()});import{basename as RJ,join as MJ}from"path";function TJ(J){return J.type==="Project"&&J.parent===void 0&&jq(RJ(J.path))}function wq(J,q){let U=new Set(J.filter(TJ).map((Z)=>Z.path));return Fq(q,(Z)=>U.has(Z))??MJ(q,Eq)}var xq=b(()=>{xJ()});import{mkdir as rJ}from"fs/promises";import{basename as aJ,join as oJ}from"path";function lq(J){let q=mq.c(58),{onSelect:U,onCancel:Z}=J,z=H.use(Uq()),V=Mq(),L=oJ(p(),"CLAUDE.md"),A=wq(z,V),h=aJ(A),CJ=z.some((Q)=>Q.path===L),AJ=z.some((Q)=>Q.path===A),IJ=[...z.filter(zQ).map(WQ),...CJ?[]:[{path:L,type:"User",content:"",exists:!1}],...AJ?[]:[{path:A,type:"Project",content:"",exists:!1}]],Iq=new Map,N=IJ.map((Q)=>{let W=Pq(Q.path),Vq=Q.exists?"":" (new)",Qq=Q.parent?(Iq.get(Q.parent)??0)+1:0;Iq.set(Q.path,Qq);let FJ=Qq>0?" ".repeat(Qq-1):"",P;if(Q.type==="User"&&!Q.isNested&&Q.path===L)P="User memory";else if(Q.type==="Project"&&!Q.isNested&&Q.path===A)P="Project memory";else if(Qq>0)P=`${FJ}L ${W}${Vq}`;else P=`${W}`;let M,jJ=vq(V);if(Q.type==="User"&&!Q.isNested)M="Saved in ~/.claudin/CLAUDE.md";else if(Q.type==="Project"&&!Q.isNested&&Q.path===A)M=`${jJ?"Checked in at":"Saved in"} ./${h}`;else if(Q.parent)M="@-imported";else if(Q.isNested)M="dynamically loaded";else M="";return{label:P,value:Q.path,description:M}}),c=[],SJ=bq(ZQ);if(T()){let Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q={label:"Open auto-memory folder",value:`${f}${zq()}`,description:""},q[0]=Q;else Q=q[0];if(c.push(Q),Rq?.isTeamMemoryEnabled()){let W;if(q[1]===Symbol.for("react.memo_cache_sentinel"))W={label:"Open team memory folder",value:`${f}${Rq?.getTeamMemPath()}`,description:""},q[1]=W;else W=q[1];c.push(W)}for(let W of SJ.activeAgents)if(W.memory){let Vq=cq(W.agentType,W.memory);c.push({label:`Open ${Dq.bold(W.agentType)} agent memory`,value:`${f}${Vq}`,description:`${W.memory} scope`})}}N.push(...c);let u;if(q[2]!==N)u=Zq&&N.some(QQ)?Zq:N[0]?.value||"",q[2]=N,q[3]=u;else u=q[3];let Yq=u,[$,vJ]=H.useState(T),[I,OJ]=H.useState(gq),[B]=H.useState(T),X=bq(qQ),[D,EJ]=H.useState(null),g;if(q[4]!==B)g=()=>{if(!B)return;dq().then(EJ)},q[4]=B,q[5]=g;else g=q[5];let d;if(q[6]!==X||q[7]!==B)d=[B,X],q[6]=X,q[7]=B,q[8]=d;else d=q[8];H.useEffect(g,d);let n;if(q[9]!==X||q[10]!==D)n=X?"running":D===null?"":D===0?"never":`last ran ${_q(new Date(D))}`,q[9]=X,q[10]=D,q[11]=n;else n=q[11];let m=n,[G,Bq]=H.useState(null),Y=G!==null,v=B?1:0,l;if(q[12]!==$)l=function(){let W=!$;Nq("userSettings",{autoMemoryEnabled:W}),vJ(W),Lq("",{enabled:W})},q[12]=$,q[13]=l;else l=q[13];let Gq=l,s;if(q[14]!==I)s=function(){let W=!I;Nq("userSettings",{autoDreamEnabled:W}),OJ(W),Lq("",{enabled:W})},q[14]=I,q[15]=s;else s=q[15];let Kq=s;uq();let i;if(q[16]===Symbol.for("react.memo_cache_sentinel"))i={context:"Confirmation"},q[16]=i;else i=q[16];y("confirm:no",Z,i);let r;if(q[17]!==G||q[18]!==Kq||q[19]!==Gq)r=()=>{if(G===0)Gq();else if(G===1)Kq()},q[17]=G,q[18]=Kq,q[19]=Gq,q[20]=r;else r=q[20];let a;if(q[21]!==Y)a={context:"Confirmation",isActive:Y},q[21]=Y,q[22]=a;else a=q[22];y("confirm:yes",r,a);let o;if(q[23]!==v)o=()=>{Bq((Q)=>Q!==null&&Q<v?Q+1:null)},q[23]=v,q[24]=o;else o=q[24];let t;if(q[25]!==Y)t={context:"Select",isActive:Y},q[25]=Y,q[26]=t;else t=q[26];y("select:next",o,t);let e;if(q[27]===Symbol.for("react.memo_cache_sentinel"))e=()=>{Bq(eJ)},q[27]=e;else e=q[27];let qq;if(q[28]!==Y)qq={context:"Select",isActive:Y},q[28]=Y,q[29]=qq;else qq=q[29];y("select:previous",e,qq);let Hq=G===0,Xq=$?"on":"off",O;if(q[30]!==Xq)O=K(C,{children:["Auto-memory: ",Xq]}),q[30]=Xq,q[31]=O;else O=q[31];let E;if(q[32]!==Hq||q[33]!==O)E=k(Cq,{isFocused:Hq,children:O}),q[32]=Hq,q[33]=O,q[34]=E;else E=q[34];let F;if(q[35]!==I||q[36]!==m||q[37]!==G||q[38]!==X||q[39]!==B)F=B&&k(Cq,{isFocused:G===1,styled:!1,children:K(C,{color:G===1?"suggestion":void 0,children:["Auto-dream: ",I?"on":"off",m&&K(C,{dimColor:!0,children:[" · ",m]}),!X&&I&&k(C,{dimColor:!0,children:" · /dream to run"})]})}),q[35]=I,q[36]=m,q[37]=G,q[38]=X,q[39]=B,q[40]=F;else F=q[40];let j;if(q[41]!==E||q[42]!==F)j=K(S,{flexDirection:"column",marginBottom:1,children:[E,F]}),q[41]=E,q[42]=F,q[43]=j;else j=q[43];let w;if(q[44]!==U)w=(Q)=>{if(Q.startsWith(f)){let W=Q.slice(f.length);rJ(W,{recursive:!0}).catch(tJ).then(()=>$q(W));return}Zq=Q,U(Q)},q[44]=U,q[45]=w;else w=q[45];let x;if(q[46]!==v)x=()=>Bq(v),q[46]=v,q[47]=x;else x=q[47];let R;if(q[48]!==Yq||q[49]!==N||q[50]!==Z||q[51]!==w||q[52]!==x||q[53]!==Y)R=k(nq,{defaultFocusValue:Yq,options:N,isDisabled:Y,onChange:w,onCancel:Z,onUpFromFirstItem:x}),q[48]=Yq,q[49]=N,q[50]=Z,q[51]=w,q[52]=x,q[53]=Y,q[54]=R;else R=q[54];let Jq;if(q[55]!==j||q[56]!==R)Jq=K(S,{flexDirection:"column",width:"100%",children:[j,R]}),q[55]=j,q[56]=R,q[57]=Jq;else Jq=q[57];return Jq}function tJ(){}function eJ(J){return J!==null&&J>0?J-1:J}function qQ(J){return Object.values(J.tasks).some(JQ)}function JQ(J){return J.type==="dream"&&J.status==="running"}function QQ(J){return J.value===Zq}function ZQ(J){return J.agentDefinitions}function WQ(J){return{...J,exists:!0}}function zQ(J){return J.type!=="AutoMem"&&J.type!=="TeamMem"}var mq,H,Rq,Zq,f="__open_folder__";var sq=b(()=>{yJ();DJ();gJ();Aq();$J();fq();PJ();mJ();lJ();nJ();uJ();dJ();iq();Tq();pJ();fJ();Oq();hJ();iJ();sJ();xq();_();mq=Wq(hq(),1),H=Wq(pq(),1),Rq=(yq(),_J(cJ))});import{homedir as YQ}from"os";import{relative as BQ}from"path";function aq(J){let q=YQ(),U=rq(),Z=J.startsWith(q)?"~"+J.slice(q.length):null,z=J.startsWith(U)?"./"+BQ(U,J):null;if(Z&&z)return Z.length<=z.length?Z:z;return Z||z||J}var kQ;var oq=b(()=>{Aq();UQ();_();kQ=Wq(hq(),1)});function tq(J){return J.replace(GQ,"")}function eq(J,q){let U=tq(J),Z=q===null?null:tq(q),z=Math.round(QJ/KQ),V=Z!==null?"skip subdirectories other than the team dir handled separately":"skip all subdirectories",L=Z!==null?`
|
|
2
|
-
## Team memory
|
|
3
|
-
|
|
4
|
-
Also tidy the team memory directory: \`${Z}\`
|
|
5
|
-
|
|
6
|
-
- Apply the exact same orient → identify → merge → update-index steps inside \`${Z}\` (its index is \`${Z}/${kq}\`)
|
|
7
|
-
- 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.
|
|
8
|
-
- **Never merge across the boundary**: a private memory and a team memory about the same fact stay separate. Do not move content between \`${U}\` and \`${Z}\`, 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.
|
|
9
|
-
- Files you change or delete here propagate to the team via automatic sync — another reason to stay strictly conservative.
|
|
10
|
-
`:"";return`# Memory Tidy: conservative duplicate merge
|
|
11
|
-
|
|
12
|
-
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.
|
|
13
|
-
|
|
14
|
-
Memory directory: \`${U}\`
|
|
15
|
-
${ZJ}
|
|
16
|
-
${L}
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## Step 1 — Orient
|
|
20
|
-
|
|
21
|
-
- Read \`${U}/${kq}\` to see the current index
|
|
22
|
-
- Read every \`.md\` file in the directory — full contents, not just frontmatter (there are at most a couple hundred; ${V})
|
|
23
|
-
|
|
24
|
-
## Step 2 — Identify duplicates
|
|
25
|
-
|
|
26
|
-
Look for pairs or groups of files that record the **same fact**:
|
|
27
|
-
|
|
28
|
-
- Same topic under different names (e.g. \`feedback-build-after-edit.md\` vs \`always-build-after-source-change.md\`)
|
|
29
|
-
- Near-identical \`description\` frontmatter
|
|
30
|
-
- Heavily overlapping body content
|
|
31
|
-
|
|
32
|
-
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.
|
|
33
|
-
|
|
34
|
-
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.
|
|
35
|
-
|
|
36
|
-
## Step 3 — Merge (conservatively)
|
|
37
|
-
|
|
38
|
-
For each confirmed duplicate group:
|
|
39
|
-
|
|
40
|
-
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).
|
|
41
|
-
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.
|
|
42
|
-
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.
|
|
43
|
-
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.
|
|
44
|
-
|
|
45
|
-
Hard rules:
|
|
46
|
-
- Never merge across the private ↔ team boundary.
|
|
47
|
-
- Never delete a file that is merely stale, ambiguous, or low-quality — only confirmed duplicates. Stale or wrong content is reported, not fixed.
|
|
48
|
-
- Never create new memory files, and never touch files outside the memory directories.
|
|
49
|
-
|
|
50
|
-
## Step 4 — Update the index (minimal edits, NOT a rewrite)
|
|
51
|
-
|
|
52
|
-
Edit \`${U}/${kq}\` (and the team index if applicable) **in place, surgically**:
|
|
53
|
-
|
|
54
|
-
- Remove only the lines pointing at files you deleted
|
|
55
|
-
- Update the survivor's line only if its title/hook changed
|
|
56
|
-
- Do not reorder, regroup, reformat, or rewrite surviving lines — the rest of the index stays byte-for-byte as it was
|
|
57
|
-
- Format for any line you do touch: \`- [Title](file.md) — one-line hook\`, under ~150 chars
|
|
58
|
-
- The index must stay under ${JJ} lines AND under ~${z}KB — it's an index, never write memory content into it
|
|
59
|
-
|
|
60
|
-
## Step 5 — Report
|
|
61
|
-
|
|
62
|
-
Finish with a brief summary:
|
|
63
|
-
|
|
64
|
-
- **Merged**: which files combined into which survivor (X + Y → Z)
|
|
65
|
-
- **Deleted**: files removed
|
|
66
|
-
- **Ambiguous pairs left alone**: candidates you were not confident about, so the user can decide by hand
|
|
67
|
-
- **Conflicts noted**: factual contradictions you kept as union
|
|
68
|
-
- **Stale or broken observed**: outdated content, malformed frontmatter, or anything else you noticed but deliberately did NOT fix (tidy only merges duplicates)
|
|
69
|
-
|
|
70
|
-
If nothing was duplicated, say so — a tidy run that changes nothing is a correct outcome.`}var GQ,KQ=1024;var qJ=b(()=>{HQ();GQ=/[/\\]+$/});function UJ(){if(WJ())return zJ();return null}var kJ=b(()=>{yq()});function YJ(J){return J.trim()==="tidy"?"tidy":null}function BJ(J){if(!T())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:[eq(zq(),UJ())]}),null}var GJ=b(()=>{fq();qJ();kJ()});import{mkdir as bQ,writeFile as CQ}from"fs/promises";function AQ({onDone:J}){let q=async(Z)=>{try{if(Z.includes(p()))await bQ(p(),{recursive:!0});try{await CQ(Z,"",{encoding:"utf8",flag:"wx"})}catch(h){if(KJ(h)!=="EEXIST")throw h}await LJ(Z);let z="default",V="";if(process.env.VISUAL)z="$VISUAL",V=process.env.VISUAL;else if(process.env.EDITOR)z="$EDITOR",V=process.env.EDITOR;let L=z!=="default"?`Using ${z}="${V}".`:"",A=L?`> ${L} 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 ${aq(Z)}
|
|
71
|
-
|
|
72
|
-
${A}`,{display:"system"})}catch(z){HJ(z),J(`Error opening memory file: ${z}`)}},U=()=>{J("Cancelled memory editing",{display:"system"})};return k(VJ,{title:"Memory",onCancel:U,color:"remember",children:K(S,{flexDirection:"column",children:[k(NJ.Suspense,{fallback:null,children:k(lq,{onSelect:q,onCancel:U})}),k(S,{marginTop:1,children:K(C,{dimColor:!0,children:["Learn more: ",k(XJ,{url:"https://code.claude.com/docs/en/memory"})]})})]})})}var NJ,vZ=async(J,q,U)=>{if(YJ(U)==="tidy")return BJ(J);return bJ(),await Uq(),k(AQ,{onDone:J})};var IQ=b(()=>{LQ();sq();oq();Aq();iq();Tq();XQ();VQ();NQ();GJ();_();NJ=Wq(pq(),1)});IQ();export{vZ as call};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./cli-1.1.18-aek1gddg.mjs";import{nh as m,oh as Rb,ph as _,qh as Ub}from"./cli-1.1.18-cd5r9mfb.mjs";import"./cli-1.1.18-6w9m5m4s.mjs";import{$x as W,ay as v,cy as Qb,dx as i,ex as r,fx as Pb,gQ as t,hQ as Wb}from"./cli-1.1.18-xfb4pete.mjs";import"./cli-1.1.18-pzeg2p3k.mjs";import"./cli-1.1.18-2qvvz2tv.mjs";import"./cli-1.1.18-cphcr3xr.mjs";import"./cli-1.1.18-k1pkc44n.mjs";import"./cli-1.1.18-hphxdvpd.mjs";import"./cli-1.1.18-ta6r8qry.mjs";import"./cli-1.1.18-heh8xz6x.mjs";import"./cli-1.1.18-rnqtkprk.mjs";import"./cli-1.1.18-cy0ypdkd.mjs";import"./cli-1.1.18-f7jag2rr.mjs";import"./cli-1.1.18-v75xqnbv.mjs";import"./cli-1.1.18-5s8f8gd5.mjs";import"./cli-1.1.18-ccbh77pf.mjs";import"./cli-1.1.18-zd969gzb.mjs";import"./cli-1.1.18-27b82jjj.mjs";import"./cli-1.1.18-pbdm30bs.mjs";import"./cli-1.1.18-ybfayy4j.mjs";import"./cli-1.1.18-fst0kx9m.mjs";import"./cli-1.1.18-1c8pr80a.mjs";import"./cli-1.1.18-0h118vrj.mjs";import"./cli-1.1.18-t526ry94.mjs";import{DZ as Nb}from"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import"./cli-1.1.18-12tzkcxz.mjs";import"./cli-1.1.18-mg7jmbh9.mjs";import"./cli-1.1.18-mwevzyy2.mjs";import"./cli-1.1.18-a888prq4.mjs";import"./cli-1.1.18-1t3rb5a8.mjs";import"./cli-1.1.18-8thyc5yy.mjs";import"./cli-1.1.18-npdweafk.mjs";import{d4 as Y,f4 as V}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as Kb}from"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-0aakxjsk.mjs";import"./cli-1.1.18-948h21gh.mjs";import"./cli-1.1.18-ddreb78e.mjs";import"./cli-1.1.18-1spz0azv.mjs";import{A6 as Eb,B6 as $,C6 as Gb,N6 as M,S6 as g,V6 as I,X5 as w,Y5 as x,b6 as X,f7 as Hb,g6 as A,k7 as p,m7 as Jb,p6 as Bb,z6 as f}from"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import{k9 as Q,l9 as e}from"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-7nsrr2k0.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import{Dfa as L,Ega as qb,Rfa as h,Sfa as S,Ufa as kb,hfa as u,wfa as bb,yga as C}from"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import{Mja as F,Nja as D,Oja as zb}from"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import{Zja as Z,aka as o}from"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{gta as c,kta as s}from"./cli-1.1.18-hvd9yyb4.mjs";function Xb(k){let b=a.c(17),{onDone:z}=k,B=W(Ib),q=W(yb),G=W(Zb),J=v(),E;if(b[0]!==B||b[1]!==z)E=function(){Z("",{action:"cancel"});let N=y(B);z(`Kept model as ${Q.bold(N)}`,{display:"system"})},b[0]=B,b[1]=z,b[2]=E;else E=b[2];let R=E,H;if(b[3]!==G||b[4]!==B||b[5]!==z||b[6]!==J)H=function(N,O){Z("",{action:N,from_model:B,to_model:N}),J((n)=>({...n,mainLoopModel:N,mainLoopModelForSession:null}));let P=`Set model to ${Q.bold(y(N))}`;if(O!==void 0)P=P+` with ${Q.bold(O)} effort`;let T=void 0;if(w()){if(A(),!X(N)&&G)J(Yb),T=!1;else if(X(N)&&x()&&G)P=P+" · Fast mode ON",T=!0}if(_(N,T===!0,I()))P=P+" · Billed as extra usage";if(T===!1)P=P+" · Fast mode OFF";z(P)},b[3]=G,b[4]=B,b[5]=z,b[6]=J,b[7]=H;else H=b[7];let U=H,K;if(b[8]!==G||b[9]!==B)K=w()&&G&&X(B)&&x(),b[8]=G,b[9]=B,b[10]=K;else K=b[10];let j;if(b[11]!==R||b[12]!==U||b[13]!==B||b[14]!==q||b[15]!==K)j=Y(m,{initial:B,sessionModel:q,onSelect:U,onCancel:R,isStandaloneCommand:!0,showFastModeNotice:K}),b[11]=R,b[12]=U,b[13]=B,b[14]=q,b[15]=K,b[16]=j;else j=b[16];return j}function Yb(k){return{...k,fastMode:!1}}function Zb(k){return k.fastMode}function yb(k){return k.mainLoopModelForSession}function Ib(k){return k.mainLoopModel}function jb({args:k,onDone:b}){let z=W((G)=>G.fastMode),B=v(),q=k==="default"?null:k;return l.useEffect(()=>{async function G(){if(q&&!$(q)){b(`Model '${q}' is not available. Your organization restricts model selection.`,{display:"system"});return}if(q&&wb(q)){b("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(q&&xb(q)){b("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(!q){J(null);return}if(Tb(q)){J(q);return}try{let{valid:E,error:R}=await t(q);if(E)J(q);else b(R||`Model '${q}' not found`,{display:"system"})}catch(E){b(`Failed to validate model: ${E.message}`,{display:"system"})}}function J(E){B((K)=>({...K,mainLoopModel:E,mainLoopModelForSession:null}));let R=E?Q.dim(" · for this project"):"",H=`Set model to ${Q.bold(y(E))}${R}`,U=void 0;if(w()){if(A(),!X(E)&&z)B((K)=>({...K,fastMode:!1})),U=!1;else if(X(E)&&z)H+=" · Fast mode ON",U=!0}if(_(E,U===!0,I()))H+=" · Billed as extra usage";if(U===!1)H+=" · Fast mode OFF";b(H)}G()},[q,b,B]),null}function Tb(k){return f.includes(k.toLowerCase().trim())}function wb(k){let b=k.toLowerCase();return!i()&&!I()&&b.includes("opus")&&b.includes("[1m]")}function xb(k){let b=k.toLowerCase();return!r()&&!I()&&(b.includes("sonnet[1m]")||b.includes("sonnet-4-6[1m]"))}function Cb(k){let{onDone:b}=k,z=W(_b),B=W(vb),q=W(Ab),G=y(z),J=q!==void 0?` (effort: ${q})`:"",E=u(),H=(E.activeModelForProject?E.activeModelForProjectProfileId===void 0||E.activeModelForProjectProfileId===L()?.id:!1)?Q.dim(" (project)"):"";if(B)b(`Current model: ${Q.bold(y(B))} (session override from plan mode)
|
|
2
|
-
Base model: ${G}${H}${J}`);else b(`Current model: ${G}${H}${J}`);return null}function Ab(k){return k.effortValue}function vb(k){return k.mainLoopModelForSession}function _b(k){return k.mainLoopModel}function Ob(k,b){if(k.length!==b.length)return!1;return k.every((z,B)=>{let q=b[B];return q!==void 0&&z.value===q.value&&z.label===q.label&&z.description===q.description&&z.descriptionForModel===q.descriptionForModel})}async function Vb(){if(!C()?.startsWith("openai:"))return;try{let k=await p();if(k.length===0)return;let b=h();if(Ob(b,k))return;S(k)}catch{}}function y(k){let b=g(k??M());return k===null?`${b} (default)`:b}var a,l,lb=async(k,b,z)=>{if(z=z?.trim()||"",D.includes(z))return Z("",{args:z}),Y(Cb,{onDone:k});if(F.includes(z)){k("Run /model to open the model selection menu, or /model [modelName] to set the model.",{display:"system"});return}if(z)return Z("",{args:z}),Y(jb,{args:z,onDone:k});if(C()?.startsWith("openai:"))Vb();return Y(Xb,{onDone:k})};var cb=s(()=>{e();Rb();zb();o();Qb();bb();Ub();Bb();Eb();Pb();Jb();kb();Hb();Gb();Wb();qb();V();a=c(Nb(),1),l=c(Kb(),1)});cb();export{lb as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$6 as y,D6 as a,E6 as b,F6 as c,G6 as d,H6 as e,I6 as f,J6 as g,K6 as h,L6 as i,M6 as j,N6 as k,O6 as l,P6 as m,Q6 as n,R6 as o,S6 as p,T6 as q,U6 as r,V6 as s,W6 as t,X6 as u,Y6 as v,Z6 as w,_6 as x,a7 as z,b7 as A,c7 as B,d7 as C,e7 as D,f7 as E}from"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import"./cli-1.1.18-hvd9yyb4.mjs";E();export{y as resolveSkillModelOverride,t as renderModelSetting,v as renderModelName,p as renderDefaultModelSetting,x as parseUserSpecifiedModel,C as normalizeModelStringForAPI,D as modelRejectsSamplingParams,A as modelDisplayString,s as isOpus1mMergeEnabled,b as isNonCustomOpusModel,c as isNative1mModel,z as isLegacyModelRemapEnabled,d as getUserSpecifiedModelSetting,a as getSmallFastModel,j as getRuntimeMainLoopModel,w as getPublicModelName,u as getPublicModelDisplayName,r as getOpus5PricingSuffix,q as getOpus46PricingSuffix,B 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};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{$ra as vQ,Zra as y,_ra as D,asa as O,hsa as e,isa as QQ,jsa as RQ,ksa as NQ,lsa as W,msa as r,nsa as n,osa as fQ,rsa as kQ}from"./cli-1.1.18-p3yf1aq6.mjs";import{kta as P}from"./cli-1.1.18-hvd9yyb4.mjs";var o=P(()=>{NQ()});function b($){if($.inputSchema.type!=="object")throw Error(`JSON schema for tool "${$.name}" must be an object, but got ${$.inputSchema.type}`);return{type:"custom",name:$.name,input_schema:$.inputSchema,description:$.description,run:$.run,parse:(Q)=>Q,...$.close?{close:$.close}:{}}}var a=P(()=>{kQ();o()});import*as A from"node:fs/promises";import*as L from"node:path";import{randomUUID as wQ}from"node:crypto";async function MQ($){try{return await A.realpath($)}catch{return $}}function E($){let Q=$?.code;return typeof Q==="string"?Q:void 0}async function yQ($){let Q=[],z=$,q=0;for(;;){let V;try{V=await A.realpath(z)}catch(Y){let Z;try{Z=(await A.lstat(z)).isSymbolicLink()}catch(K){let X=E(K);if(X!=="ENOENT"&&X!=="ENOTDIR")throw K;let J=L.dirname(z);if(J===z)throw K;Q.push(L.basename(z)),z=J;continue}if(!Z)throw Y;if(++q>OQ)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});z=L.resolve(L.dirname(z),await A.readlink(z));continue}return Q.length?L.join(V,...Q.reverse()):V}}async function t($,Q,z){let q=z?.allowOutside??!1,V=await MQ(L.resolve($)),Y=L.resolve(V,Q);if(q)return Y;let Z;try{Z=await yQ(Y)}catch(K){throw new W(j(K,`path ${JSON.stringify(Q)}`))}if(Z!==V&&!Z.startsWith(V+L.sep))throw new W(`path ${JSON.stringify(Q)} escapes workdir`);return Z}async function h($,Q){let z=L.dirname($),q=L.join(z,`.tmp-${process.pid}-${wQ()}`),V;try{V=await A.open(q,"wx",LQ),await V.writeFile(Q,"utf-8"),await V.sync(),await V.close(),V=void 0,await A.rename(q,$)}catch(Y){if(V)await V.close().catch(()=>{});throw await A.unlink(q).catch(()=>{}),Y}}function j($,Q){let z=E($);switch(z){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}: ${z!==void 0?`i/o error (${z})`:"i/o error"}`}}var u=493,LQ=420,OQ=40;var p=P(()=>{r()});import*as w from"node:fs/promises";import*as $Q from"node:fs";import*as U from"node:path";import{execFile as AQ}from"node:child_process";import{promisify as GQ}from"node:util";import{Readable as IQ}from"node:stream";import{pipeline as bQ}from"node:stream/promises";async function BQ($){let{client:Q,sessionId:z}=$;if(!Q||!z)return async()=>{};let q=QQ(Q),V=await Q.beta.sessions.retrieve(z),Y=U.resolve($.workdir,"skills"),Z=[];for(let K of V.agent.skills)try{let X=await zQ(Q,K.skill_id,K.version),J=await Q.beta.skills.versions.retrieve(X,{skill_id:K.skill_id}),H=U.basename(J.name.trim());if(H===""||H==="."||H==="..")H=K.skill_id;let k=U.resolve(Y,H);if(k!==Y&&!k.startsWith(Y+U.sep)){q.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:J.name});continue}let B=await Q.beta.skills.versions.download(X,{skill_id:K.skill_id});await w.rm(k,{recursive:!0,force:!0}),await w.mkdir(k,{recursive:!0,mode:u}),Z.push(k),await VQ(B,k),q.info("downloaded skill",{component:"agent-tool-context",skill_id:K.skill_id,version:X,dest:k})}catch(X){q.warn("failed to download skill",{component:"agent-tool-context",skill_id:K.skill_id,error:String(X)})}return async()=>{for(let K of Z)await w.rm(K,{recursive:!0,force:!0}).catch((X)=>{q.warn("failed to clean up skill",{component:"agent-tool-context",dest:K,error:String(X)})})}}async function zQ($,Q,z){if(/^\d+$/.test(z))return z;let q;for await(let V of $.beta.skills.versions.list(Q))if(/^\d+$/.test(V.version)&&(q===void 0||BigInt(V.version)>BigInt(q)))q=V.version;if(q===void 0)throw new O(`skill ${JSON.stringify(Q)} has no concrete version to resolve ${JSON.stringify(z)} against`);return q}function jQ($){for(let Q of $){let z=Q.trim();if(!z)continue;if(U.isAbsolute(z)||z.split(/[\\/]/).includes(".."))throw new O(`refusing to extract unsafe archive member: ${z}`)}}function s($){let Q=$.split(`
|
|
2
|
-
`);if(Q[Q.length-1]==="")Q.pop();return Q}function PQ($,Q){return/^[\x20-\x7E]+$/.test(Q)&&!/[\\^#]/.test(Q)&&!($==="unzip"&&Q.startsWith("-"))}function uQ($,Q,z){let q=s(Q),V=s(z);if(q.length!==V.length)throw new O(c);let Y=[],Z=[];return q.forEach((K,X)=>{if(xQ[$].has(V[X].charAt(0))){Y.push(K);return}if(!PQ($,K))throw new O(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(K)}`);Z.push(K)}),{plain:Y,special:Z}}async function qQ($){for(let Q of await w.readdir($,{withFileTypes:!0}))if(Q.isDirectory())await qQ(U.join($,Q.name));else if(!Q.isFile())throw new O(c)}async function _($,Q){try{let{stdout:z}=await FQ($,Q);return z}catch(z){if(E(z)==="ENOENT")throw new O(`skill extraction requires the \`${$}\` command, but it was not found on PATH`);throw z}}function EQ($){let Q,z=!1;for(let q of $){let V=q.trim().split("/").filter((Z)=>Z!==""&&Z!==".");if(V.length===0)continue;let Y=V[0];if(Q===void 0)Q=Y;else if(Y!==Q)return"";if(V.length>1)z=!0}return Q!==void 0&&z?Q:""}async function VQ($,Q){let z=U.join(Q,`.skill-archive-${process.pid}-${Date.now()}`);if(!$.body)throw new O("skill download response had no body");await bQ(IQ.fromWeb($.body),$Q.createWriteStream(z));let q=U.join(U.dirname(Q),`.skill-stage-${process.pid}-${Date.now()}`),V=U.join(U.dirname(Q),`.skill-exclude-${process.pid}-${Date.now()}`);try{let Y=await gQ(z,4),Z=Y.length>=4&&Y[0]===80&&Y[1]===75&&Y[2]===3&&Y[3]===4,K=Z?"unzip":"tar",X=await _(K,Z?["-Z1",z]:["-tf",z]),J=await _(K,Z?["-Z","--h","--t",z]:["-tvf",z]),{plain:H,special:k}=uQ(K,X,J);jQ([...H,...k]);let B=EQ(H);if(await w.mkdir(q,{recursive:!0,mode:u}),H.length>0)await _(K,await TQ(K,z,q,k,V));await qQ(q);let f=B?U.join(q,B):q,x=await w.readdir(f).catch((I)=>{throw E(I)==="ENOENT"?new O(c):I});for(let I of x)await w.rename(U.join(f,I),U.join(Q,I))}finally{await w.rm(z,{force:!0}),await w.rm(V,{force:!0}),await w.rm(q,{recursive:!0,force:!0})}}async function TQ($,Q,z,q,V){let Y=q.map((Z)=>Z.replace(/[*?[\\]/g,"\\$&"));if($==="unzip")return["-oq",Q,"-d",z,...Y.length>0?["-x",...Y]:[]];if(Y.length===0)return["-xf",Q,"-C",z];return await w.writeFile(V,Y.join(`
|
|
3
|
-
`)+`
|
|
4
|
-
`,{flag:"wx",mode:384}),["-xf",Q,"-C",z,"-X",V]}async function gQ($,Q){let z=await w.open($,"r");try{let q=Buffer.alloc(Q),{bytesRead:V}=await z.read(q,0,Q,0);return q.subarray(0,V)}finally{await z.close()}}var FQ,c="skill archive listing is inconsistent; refusing to extract",xQ;var KQ=P(()=>{e();RQ();p();FQ=GQ(AQ);xQ={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])}});import*as N from"node:fs/promises";import*as m from"node:fs";import*as C from"node:path";import*as i from"node:child_process";import*as XQ from"node:crypto";import*as JQ from"node:readline";function DQ($){return $===void 0?SQ:$}function B0($){return[cQ($),lQ($),nQ($),iQ($),oQ($),aQ($)]}function v($,Q){return t($.workdir,Q,{allowOutside:$.unrestrictedPaths??!1})}function _Q(){let $={};for(let[Q,z]of Object.entries(process.env)){if(Q.startsWith("ANTHROPIC_"))continue;$[Q]=z}return $}class CQ{constructor($,Q=_Q()){S.add(this),M.set(this,void 0),R.set(this,""),T.set(this,!1),F.set(this,!1),G.set(this,null),y(this,M,i.spawn("/bin/bash",["--noprofile","--norc"],{cwd:$,env:{...Q,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),D(this,M,"f").stdout.setEncoding("utf8"),D(this,M,"f").stderr.setEncoding("utf8"),D(this,M,"f").stdout.on("data",(z)=>D(this,S,"m",l).call(this,z)),D(this,M,"f").stderr.on("data",(z)=>D(this,S,"m",l).call(this,z)),D(this,M,"f").once("close",()=>{y(this,F,!0,"f");let z=D(this,G,"f");y(this,G,null,"f"),z?.resolve()})}get closed(){return D(this,F,"f")}async exec($,Q={}){if(D(this,F,"f"))throw new O("bash session terminated");let z=Q.timeoutMs??HQ,q=Q.signal;q?.throwIfAborted(),y(this,R,"","f"),y(this,T,!1,"f");let V=`__ANT_CMD_${XQ.randomUUID()}_DONE__`,Y=`${V.slice(0,8)}''${V.slice(8)}`,Z=`{ ${$}
|
|
5
|
-
} </dev/null 2>&1; printf '\\n${Y}%d\\n' $?
|
|
6
|
-
`;if(D(this,M,"f").stdin.write(Z),D(this,R,"f").indexOf(V)<0){let{promise:B,resolve:f}=n();y(this,G,{sentinel:V,resolve:f},"f");let x,I;try{await Promise.race([B,new Promise((UQ,d)=>{x=setTimeout(()=>d(new WQ(z)),z)}),new Promise((UQ,d)=>{if(!q)return;I=()=>d(q.reason),q.addEventListener("abort",I,{once:!0})})])}finally{if(x)clearTimeout(x);if(I&&q)q.removeEventListener("abort",I);y(this,G,null,"f")}}let K=D(this,R,"f").indexOf(V);if(K<0)throw new O("bash session terminated");let J=D(this,R,"f").slice(K+V.length).match(/^(-?\d+)/),H=J?parseInt(J[1],10):-1,k=D(this,R,"f").slice(0,K).replace(hQ,"").replace(/\n+$/,"");if(D(this,T,"f"))k=`[output truncated]
|
|
7
|
-
${k}`;return{output:k,exitCode:H}}close(){if(D(this,F,"f"))return;y(this,F,!0,"f");let $=D(this,G,"f");y(this,G,null,"f"),$?.resolve(),D(this,M,"f").stdout.destroy(),D(this,M,"f").stderr.destroy(),D(this,M,"f").stdin.destroy();try{process.kill(-D(this,M,"f").pid,"SIGKILL")}catch{D(this,M,"f").kill("SIGKILL")}D(this,M,"f").unref()}}function cQ($){let Q,z=Promise.resolve();return b({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:Y},Z)=>{let K=z,X=n();z=X.promise;try{await K}catch{}try{if(V)Q?.close(),Q=void 0;if(!q){if(V)return"bash session restarted";throw new W("bash: command is required")}Q??(Q=new CQ($.workdir,$.env));try{let{output:J,exitCode:H}=await Q.exec(q,{timeoutMs:Y??HQ,signal:Z?.signal});if(H!==0)throw new W(J||`exit ${H}`);return J}catch(J){if(J instanceof W)throw J;throw Q.close(),Q=void 0,new W(`bash: ${J instanceof Error?J.message:String(J)}`)}}finally{X.resolve()}},close:()=>{Q?.close(),Q=void 0}})}function lQ($){return b({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:z})=>{if(!Q)throw new W("read: file_path is required");let q=await v($,Q),V;try{let H=await N.stat(q);if(!H.isFile())throw new W(`read: ${Q} is not a regular file`);let k=DQ($.maxFileBytes);if(k!==null&&H.size>k)throw new W(`read: ${Q} is ${H.size} bytes, exceeds ${k}-byte limit. Use bash (head/tail/sed) to read a slice.`);V=await N.readFile(q,"utf8")}catch(H){if(H instanceof W)throw H;throw new W(`read: ${j(H,Q)}`)}if(!z?.length)return V;if(z.length!==2)throw new W("read: view_range must be [start_line, end_line]");let[Y,Z]=z,K=V.split(`
|
|
8
|
-
`),X=Math.max(0,Y-1),J=Z>0?Z:K.length;return K.slice(X,J).join(`
|
|
9
|
-
`)}})}function nQ($){return b({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:z})=>{if(!Q)throw new W("write: file_path is required");let q=await v($,Q);try{await N.mkdir(C.dirname(q),{recursive:!0,mode:u}),await h(q,z??"")}catch(V){throw new W(`write: ${j(V,Q)}`)}return`wrote ${Buffer.byteLength(z??"")} bytes to ${Q}`}})}function iQ($){return b({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:z,new_string:q,replace_all:V})=>{if(!Q)throw new W("edit: file_path is required");if(!z)throw new W("edit: old_string is required");let Y=await v($,Q),Z;try{let J=await N.stat(Y);if(!J.isFile())throw new W(`edit: ${Q} is not a regular file`);let H=DQ($.maxFileBytes);if(H!==null&&J.size>H)throw new W(`edit: ${Q} is ${J.size} bytes, exceeds ${H}-byte limit. Use bash (sed/awk) to edit a large file.`);Z=await N.readFile(Y,"utf8")}catch(J){if(J instanceof W)throw J;throw new W(`edit: ${j(J,Q)}`)}let K=Z.split(z).length-1;if(K===0)throw new W(`edit: old_string not found in ${Q}`);let X;if(V)X=Z.split(z).join(q);else{if(K>1)throw new W(`edit: old_string appears ${K} times in ${Q} (must be unique)`);X=Z.replace(z,()=>q)}try{await h(Y,X)}catch(J){throw new W(`edit: write: ${j(J,Q)}`)}return`edited ${Q} (${V?K:1} replacement(s))`}})}function oQ($){return b({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:z})=>{if(!Q)throw new W("glob: pattern is required");let q=C.resolve($.workdir),V=Q;if(C.isAbsolute(Q)){if(!$.unrestrictedPaths)throw new W("glob: absolute pattern not permitted");q=C.parse(Q).root,V=C.relative(q,Q)}else if(z)q=await v($,z);if(!$.unrestrictedPaths&&V.split(/[\\/]/).includes(".."))throw new W('glob: ".." is not permitted in the pattern');let Y=$.unrestrictedPaths?q:await N.realpath(q).catch(()=>q),Z=[];try{for await(let K of pQ(V,{cwd:q,withFileTypes:!0,exclude:(X)=>X.name===".git"||X.name==="node_modules"})){if(!K.isFile())continue;let X=C.join(K.parentPath,K.name);if(!$.unrestrictedPaths){let H;try{H=await N.realpath(X)}catch{continue}if(!sQ(Y,H))continue}let J=0;try{J=(await N.stat(X)).mtimeMs}catch{}Z.push({path:X,mtime:J})}}catch(K){throw new W(`glob: ${K instanceof Error?K.message:String(K)}`)}if(Z.length===0)return"no matches";return Z.sort((K,X)=>X.mtime-K.mtime),Z.slice(0,dQ).map((K)=>K.path).join(`
|
|
10
|
-
`)}})}function aQ($){return b({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:z},q)=>{if(!Q)throw new W("grep: pattern is required");let V=C.resolve($.workdir);if(z)V=await v($,z);let Y=await z0();return Y?rQ(Y,Q,V,q?.signal):tQ(Q,V,q?.signal)}})}function rQ($,Q,z,q){return new Promise((V,Y)=>{let Z=i.spawn($,["-n","--no-heading","-e",Q,"--",z],{...q?{signal:q}:{}}),K="",X="",J=!1;Z.stdout.on("data",(H)=>{if(J)return;if(K+=H,K.length>g)J=!0,K=K.slice(0,g),Z.kill("SIGKILL")}),Z.stderr.on("data",(H)=>X+=H),Z.on("close",(H)=>{if(q?.aborted)return Y(new W("grep: aborted"));if(J)return V(K+`
|
|
11
|
-
[output truncated at ${g} bytes]`);if(H===0)return V(K);if(H===1)return V("no matches");Y(new W(`grep: rg failed: ${X||`exit ${H}`}`))}),Z.on("error",(H)=>{if(q?.aborted)return Y(new W("grep: aborted"));Y(new W(`grep: rg failed: ${H.message}`))})})}async function tQ($,Q,z){let q;try{q=new RegExp($)}catch(X){throw new W(`grep: invalid regex: ${X instanceof Error?X.message:String(X)}`)}let V=[],Y=g,Z=(X)=>{if(Y-=X.length+1,Y<0)return V.push(`[output truncated at ${g} bytes]`),!1;return V.push(X),!0};if((await N.stat(Q).catch(()=>null))?.isFile())await ZQ(Q,q,Z);else await $0(Q,"",(X)=>ZQ(C.join(Q,X),q,Z),z);if(z?.aborted)throw new W("grep: aborted");if(V.length===0)return"no matches";return V.join(`
|
|
12
|
-
`)}async function ZQ($,Q,z){let q=m.createReadStream($,{encoding:"utf8"}),V=JQ.createInterface({input:q,crlfDelay:1/0}),Y=0;try{for await(let Z of V){if(Y++,Z.length>mQ)continue;if(Q.test(Z)&&!z(`${$}:${Y}:${Z}`))return!1}}catch{}finally{q.destroy()}return!0}function sQ($,Q){let z=C.relative($,Q);return z===""||!z.startsWith(".."+C.sep)&&z!==".."&&!C.isAbsolute(z)}async function $0($,Q,z,q){let V=Q0;async function Y(Z,K){if(K>eQ)return!0;if(q?.aborted)return!1;let X;try{X=await N.readdir(C.join($,Z),{withFileTypes:!0})}catch{return!0}for(let J of X){if(J.name===".git"||J.name==="node_modules")continue;if(V--<=0)return!1;if(q?.aborted)return!1;let H=Z?C.join(Z,J.name):J.name;if(J.isDirectory()){if(!await Y(H,K+1))return!1}else if(J.isFile()){if(await z(H)===!1)return!1}}return!0}await Y(Q,0)}async function z0(){let $=(process.env.PATH??"").split(C.delimiter);for(let Q of $){let z=C.join(Q,"rg");try{return await N.access(z,m.constants.X_OK),z}catch{}}return null}var S,M,R,T,F,G,l,YQ=102400,HQ=120000,SQ=262144,g=102400,mQ=2000,dQ=200,WQ,hQ,pQ,eQ=40,Q0=50000;var q0=P(()=>{vQ();e();r();a();fQ();p();KQ();WQ=class WQ extends O{constructor($){super(`bash command timed out after ${$}ms`);this.name="BashTimeoutError",this.timeoutMs=$}};hQ=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,pQ=N.glob;M=new WeakMap,R=new WeakMap,T=new WeakMap,F=new WeakMap,G=new WeakMap,S=new WeakSet,l=function(Q){if(y(this,R,D(this,R,"f")+Q,"f"),D(this,R,"f").length>YQ)y(this,R,D(this,R,"f").slice(D(this,R,"f").length-YQ),"f"),y(this,T,!0,"f");if(D(this,G,"f")&&D(this,R,"f").indexOf(D(this,G,"f").sentinel)>=0){let z=D(this,G,"f");y(this,G,null,"f"),z.resolve()}}});q0();export{BQ as setupSkills,zQ as resolveSkillVersion,v as resolvePath,VQ as extractSkillArchive,nQ as betaWriteTool,lQ as betaReadTool,aQ as betaGrepTool,oQ as betaGlobTool,iQ as betaEditTool,cQ as betaBashTool,B0 as betaAgentToolset20260401,WQ as BashTimeoutError,CQ as BashSession};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Pja as a,Qja as b,Rja as c,Sja as d,Tja as e,Uja as f,Vja as g,Wja as h,Xja as i,Yja as j}from"./cli-1.1.18-k05shz35.mjs";import"./cli-1.1.18-hvd9yyb4.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};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{Li as QZ,Mi as W0,Ni as WZ}from"./cli-1.1.18-e107yrwx.mjs";import{Qi as l$,Si as J1}from"./cli-1.1.18-86jznh5v.mjs";import{$r as EZ,Aj as R$,Dq as Z0,Dr as hZ,Eq as Z1,Fq as c$,Gq as i$,Hq as f$,Iq as Q1,Jk as _$,Kk as e0,Nq as e$,Oq as O0,Or as Y0,Xq as J0,Xr as Y1,Yr as n$,Zr as z1,_r as X$,as as y$,bs as z0,cs as K0,ds as a$,es as j0,fs as X0,gs as o$,hs as K1,or as D0,qR as H0,rR as TZ,sR as r$,tR as gZ,tj as U$,uj as tZ,vj as a,vr as D1,wj as m$,wr as Z$,xj as d$,yj as p$,zj as eZ}from"./cli-1.1.18-xfb4pete.mjs";import"./cli-1.1.18-pzeg2p3k.mjs";import"./cli-1.1.18-2qvvz2tv.mjs";import"./cli-1.1.18-cphcr3xr.mjs";import"./cli-1.1.18-k1pkc44n.mjs";import"./cli-1.1.18-hphxdvpd.mjs";import"./cli-1.1.18-ta6r8qry.mjs";import"./cli-1.1.18-heh8xz6x.mjs";import"./cli-1.1.18-rnqtkprk.mjs";import"./cli-1.1.18-cy0ypdkd.mjs";import"./cli-1.1.18-f7jag2rr.mjs";import"./cli-1.1.18-v75xqnbv.mjs";import"./cli-1.1.18-5s8f8gd5.mjs";import"./cli-1.1.18-ccbh77pf.mjs";import"./cli-1.1.18-zd969gzb.mjs";import"./cli-1.1.18-27b82jjj.mjs";import"./cli-1.1.18-pbdm30bs.mjs";import"./cli-1.1.18-ybfayy4j.mjs";import"./cli-1.1.18-fst0kx9m.mjs";import"./cli-1.1.18-1c8pr80a.mjs";import"./cli-1.1.18-0h118vrj.mjs";import"./cli-1.1.18-t526ry94.mjs";import"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import"./cli-1.1.18-12tzkcxz.mjs";import{S2 as $0,W2 as $1}from"./cli-1.1.18-mg7jmbh9.mjs";import{Y2 as M$,a3 as SZ}from"./cli-1.1.18-mwevzyy2.mjs";import"./cli-1.1.18-a888prq4.mjs";import"./cli-1.1.18-1t3rb5a8.mjs";import"./cli-1.1.18-8thyc5yy.mjs";import"./cli-1.1.18-npdweafk.mjs";import"./cli-1.1.18-f2j32mha.mjs";import"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-0aakxjsk.mjs";import{r4 as Q0,s4 as W1}from"./cli-1.1.18-948h21gh.mjs";import"./cli-1.1.18-ddreb78e.mjs";import"./cli-1.1.18-1spz0azv.mjs";import{Z4 as sZ,d5 as t0}from"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-7nsrr2k0.mjs";import{C9 as u$,D9 as bZ,E9 as kZ,u9 as aZ,v9 as oZ,w9 as rZ}from"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import{Aga as nZ,Ega as s0,Hga as Y$,Kga as ZZ,Xfa as $Z,Yfa as w0,hga as dZ,kga as pZ,lga as r0,rga as k$,sga as cZ,tga as iZ,vga as h$,wga as lZ}from"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import"./cli-1.1.18-hbv881pn.mjs";import{ala as T,dla as O$}from"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import{Nla as e,Pla as D$,Vla as P$}from"./cli-1.1.18-3s03nva1.mjs";import{yra as a0,zna as b$}from"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import{bsa as V$,rsa as o0}from"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{kta as y}from"./cli-1.1.18-hvd9yyb4.mjs";function J$($,Z=!0){let Q=e$($);if(Q.type==="object"&&Q.properties){let W=Q.properties,J=Array.isArray(Q.required)?Q.required:[],D={};for(let[z,X]of Object.entries(W))D[z]=J$(X,Z);if(Q.properties=D,Z)Q.required=J.filter((z)=>(z in D)),Q.additionalProperties=!1;else Q.required=J.filter((z)=>(z in D))}if("items"in Q)if(Array.isArray(Q.items))Q.items=Q.items.map((W)=>J$(W,Z));else Q.items=J$(Q.items,Z);for(let W of["anyOf","oneOf","allOf"])if(W in Q&&Array.isArray(Q[W]))Q[W]=Q[W].map((J)=>J$(J,Z));return Q}function A$($){let Q=!a()&&!e(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 X=t$.get(W.input_schema);if(X&&X.name===W.name&&X.description===J&&X.strict===Q)return X.result}N0.computes++;let D={...W.input_schema??{type:"object",properties:{}}};if(W.name==="Agent"&&D.properties){let X=D.properties;if(!Array.isArray(D.required))D.required=[];let Y=D.required;for(let K of["message","subagent_type"])if(K in X&&!Y.includes(K))Y.push(K)}let z={type:"function",function:{name:W.name,description:J,parameters:J$(D,Q)}};if(W.input_schema)t$.set(W.input_schema,{name:W.name,description:J,strict:Q,result:z});return z})}var t$,N0;var B$=y(()=>{P$();O0();R$();t$=new WeakMap,N0={computes:0}});function L0(){if(D$())return;try{return $Z().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function JZ(){if(Y$()?.transport!=="gemini")return;let $=QZ(process.env);if($&&$!=="access-token")return;if(D$())return;L0()}var DZ=y(()=>{ZZ();P$();WZ();w0()});import{randomUUID as M0}from"crypto";function U0(){return M0()}function YZ($,Z){let Q=U0(),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,D,z,X,Y,K){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:D,streaming:z};if(X!==void 0)F.first_token_ms=X;if(Y!==void 0)F.total_chunks=Y;if(K)F.error=K;T(JSON.stringify(F),{level:W==="error"?"error":"debug"})}var KZ=y(()=>{O$()});function jZ($){return $.trim().length===0}function _0($){return/^\s*\{\s*['"]?\w+['"]?\s*:/.test($)}function f0($){return typeof $==="object"&&$!==null&&!Array.isArray($)}function I0($){return VZ[$]??null}function FZ($){return $ in VZ}function XZ($,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(f0(Q))return Q;if(typeof Q==="string"&&!jZ(Q))return XZ($,Q)??Q;return Q}catch{if(jZ(Z)||_0(Z))return{};return XZ($,Z)??{}}}var VZ;var v$=y(()=>{VZ={Bash:"command",Read:"file_path",Write:"file_path",Edit:"file_path",Glob:"pattern",Grep:"pattern"}});function z$($){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 GZ($){let Z=$.headers.get("retry-after");return Z?` (Retry-After: ${Z})`:""}var HZ=()=>{};function PZ($){return new Promise((Z)=>setTimeout(Z,$))}function K$(){return`msg_${crypto.randomUUID().replace(/-/g,"")}`}var q$=()=>{};function R0($){let Z=OZ.get($);if(Z!==void 0)return Z;wZ.toolResultComputes++;let Q=B0($.content,$.is_error);return OZ.set($,Q),Q}function A0($){if(typeof $==="string")return $;if($===null||$===void 0)return"{}";if(typeof $!=="object")return JSON.stringify($);let Z=NZ.get($);if(Z!==void 0)return Z;wZ.toolUseArgumentsComputes++;let Q=JSON.stringify($);return NZ.set($,Q),Q}function S$($){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 D=J.source;if(D?.type==="url"&&D.url)Q.push({type:"image_url",image_url:{url:D.url}});else if(D?.type==="base64"&&D.media_type&&D.data)Q.push({type:"image_url",image_url:{url:`data:${D.media_type};base64,${D.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((D)=>D.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 N$($){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 LZ($,Z,Q){let W=Q?.preserveReasoningContent===!0,J=[],D=new Set,z=new Set;for(let K of $){let F=(K.message??K).content;if(Array.isArray(F)){for(let w of F)if(w.type==="tool_result"&&w.tool_use_id)z.add(w.tool_use_id)}}let X=S$(Z);if(X)J.push({role:"system",content:X});for(let K=0;K<$.length;K++){let V=$[K],F=K===$.length-1,w=V.message??V,M=w.role??V.role,H=w.content;if(M==="user")if(Array.isArray(H)){let L=H.filter((O)=>O.type==="tool_result"),_=H.filter((O)=>O.type!=="tool_result");for(let O of L){let R=O.tool_use_id??"unknown";if(D.has(R))J.push({role:"tool",tool_call_id:R,content:R0(O)});else T(`Dropping orphan tool_result for ID: ${R} to prevent API error`)}if(_.length>0)J.push({role:"user",content:N$(_)})}else J.push({role:"user",content:N$(H)});else if(M==="assistant")if(Array.isArray(H)){let L=H.filter((P)=>P.type==="tool_use"),_=H.find((P)=>P.type==="thinking"),O=H.filter((P)=>P.type!=="tool_use"&&P.type!=="thinking"),R={role:"assistant",content:(()=>{let P=N$(O);return typeof P==="string"?P:Array.isArray(P)?P.map((f)=>f.text??"").join(""):""})()};if(W){let P=_?.thinking;if(typeof P==="string"&&P.trim().length>0)R.reasoning_content=P;else R.reasoning_content=""}if(L.length>0){let P=L.map((f)=>{let g=f.id??`call_${crypto.randomUUID().replace(/-/g,"")}`;if(!z.has(g)&&!F)return null;D.add(g);let b={id:g,type:"function",function:{name:f.name??"unknown",arguments:A0(f.input)}};if(f.extra_content)b.extra_content={...f.extra_content};if(a()){let l=f.signature??_?.signature,o=b.extra_content?.google??{};b.extra_content={...b.extra_content,google:{...o,thought_signature:l??"skip_thought_signature_validator"}}}return b}).filter((f)=>f!==null);if(P.length>0)R.tool_calls=P}if(R.content||R.tool_calls?.length)J.push(R)}else{let L={role:"assistant",content:(()=>{let _=N$(H);return typeof _==="string"?_:Array.isArray(_)?_.map((O)=>O.text??"").join(""):""})()};if(L.content)J.push(L)}}let Y=[];for(let K of J){let V=Y[Y.length-1];if(V&&V.role==="tool"&&K.role==="user")Y.push({role:"assistant",content:"[Tool execution interrupted by user]"});let F=Y[Y.length-1];if(F&&F.role===K.role&&K.role!=="tool"&&K.role!=="system"){let w=F.content,M=K.content;if(typeof w==="string"&&typeof M==="string")F.content=w+(w&&M?`
|
|
8
|
-
`:"")+M;else{let H=(L)=>{if(!L)return[];if(typeof L==="string")return L?[{type:"text",text:L}]:[];return L};F.content=[...H(w),...H(M)]}if(K.tool_calls?.length)F.tool_calls=[...F.tool_calls??[],...K.tool_calls]}else Y.push(K)}return Y}var OZ,NZ,wZ;var MZ=y(()=>{O$();R$();OZ=new WeakMap,NZ=new WeakMap,wZ={toolResultComputes:0,toolUseArgumentsComputes:0}});function _Z($){for(let Z of UZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}function fZ($){for(let Z of UZ){let Q=$[Z];if(typeof Q==="string"&&Q!=="")return Q}return null}var UZ;var E$=y(()=>{UZ=["reasoning_content","reasoning","reasoning_text","thinking"]});function IZ(){return{chunkCount:0,firstTokenTime:null,startTime:Date.now()}}function x$($,Z){if($.firstTokenTime===null)$.firstTokenTime=Date.now();$.chunkCount++}function RZ($){let Z=Date.now(),Q=$.firstTokenTime?Z-$.firstTokenTime:null,W=Z-$.startTime;return{totalChunks:$.chunkCount,firstTokenMs:Q,durationMs:W}}var AZ=()=>{};function j$($){let Z=$.trim();if(Z==="")return"";try{return JSON.parse(Z)}catch{return $}}function m0($,Z){let Q=0,W=!1,J=!1;for(let D=Z;D<$.length;D++){let z=$[D];if(J){J=!1;continue}if(z==="\\"&&W){J=!0;continue}if(z==='"'){W=!W;continue}if(W)continue;if(z==="{")Q++;else if(z==="}"){if(Q--,Q===0)return $.slice(Z,D+1)}}return null}function d0($,Z){let Q=[...Z].sort((D,z)=>D[0]-z[0]),W="",J=0;for(let[D,z]of Q)W+=$.slice(J,D),J=z;return W+$.slice(J)}function w$($){return $.split("?",1)[0]?.toLowerCase()==="tencent/hy3"}function p0($){let Z={},Q=$.trim(),W=Q.split(/[\n<]/,1)[0]?.trim().replace(/[\s`*_]+$/,""),J=!1;for(let D of $.matchAll(b0)){let z=D[1];if(z)J=!0,Z[z]=j$(D[2]??"")}for(let D of $.matchAll(k0)){let z=D[1];if(z)J=!0,Z[z]=j$(D[2]??"")}for(let D of $.matchAll(h0)){let z=D[1]?.trim();if(z)J=!0,Z[z]=j$(D[2]??"")}return{name:W&&u0.test(W)&&(J||Q===W)?W:void 0,args:Z}}function vZ($,Z){let Q=0,W=Z?BZ:[C$];for(let J of W){let D=Math.min($.length,J.length-1);for(let z=D;z>0;z--)if(J.startsWith($.slice($.length-z))){Q=Math.max(Q,z);break}}return Q}function qZ($,Z){return(Z?BZ:[C$]).reduce((W,J)=>{let D=$.indexOf(J);return D===-1?W:W===-1?D:Math.min(W,D)},-1)}function c0($,Z=!1){let Q=[],W=new Set,J=[],D=(Y,K)=>{let V=`${Y}:${JSON.stringify(K)}`;if(W.has(V))return;W.add(V),Q.push({id:`xml_tc_${++v0}`,name:Y,arguments:K})},z=Z?[...$.matchAll(y0)].map((Y)=>({range:[Y.index,Y.index+Y[0].length],parsed:p0(Y[1]??"")})):[],X=Z?[...$.matchAll(x0)].filter((Y)=>{let K=[Y.index,Y.index+Y[0].length];return z.some((V)=>V.parsed.name&&K[0]<=V.range[0]&&V.range[1]<=K[1])}).map((Y)=>[Y.index,Y.index+Y[0].length]):[];for(let Y of z){let{name:K,args:V}=Y.parsed;if(!K)continue;let F=Y.range;if(!X.some((w)=>w[0]<=F[0]&&F[1]<=w[1]))J.push(F);D(K,V)}J.push(...X);for(let Y of $.matchAll(E0)){let K=Y[1]??"",V=[Y.index,Y.index+Y[0].length],F,w={},M=K.match(C0);if(M){F=M[1];for(let H of K.matchAll(T0)){let L=H[1];if(L)w[L]=j$(H[2]??"")}}else{let H=K.trim(),L=[...K.matchAll(g0)];if(L.length>0&&!H.startsWith("{")){let _=H.split(/[\n<]/,1)[0]?.trim();if(_)F=_;for(let O of L){let R=(O[1]??"").trim();if(R)w[R]=j$(O[2]??"")}}else{let _=H.indexOf("{");if(_!==-1){let O=m0(H,_);if(O)try{let R=JSON.parse(O);if(typeof R.name==="string"){F=R.name;let P=R.arguments;if(typeof P==="string")try{Object.assign(w,JSON.parse(P))}catch{}else if(P&&typeof P==="object")Object.assign(w,P)}}catch{}}}}if(!F)continue;J.push(V),D(F,w)}return{calls:Q,toolCallRanges:J}}function L$($,Z={}){let{calls:Q,toolCallRanges:W}=c0($,Z.allowHy3??!1),J=Z.toolNames?Q.filter((z)=>Z.toolNames.has(z.name)):Q;if(J.length===0)return null;return{visibleText:X$(d0($,W).trim()).trim(),calls:J}}var v0=0,C$="<tool_call>",q0="<tool_calls:",S0="<tool_call:",BZ,E0,x0,y0,C0,T0,g0,b0,k0,h0,u0;var T$=y(()=>{y$();BZ=[C$,q0,S0],E0=/<tool_call>([\s\S]*?)(?:<\/tool_call>|$)/g,x0=/<tool_calls:[^>\s]+>([\s\S]*?)(?:<\/tool_calls(?::[^>\s]+)?>|$)/g,y0=/<tool_call:[^>\s]+>([\s\S]*?)(?:<\/tool_call(?::[^>\s]+)?>|$)/g,C0=/<function=([^>\s]+)\s*>/,T0=/<parameter=([^>\s]+)\s*>([\s\S]*?)<\/parameter>/g,g0=/<arg_key>([\s\S]*?)<\/arg_key>\s*<arg_value>([\s\S]*?)<\/arg_value>/g,b0=/<parameter\s+name=["']([^"'>\s]+)["']\s*>([\s\S]*?)<\/parameter>/g,k0=/^\s*([A-Za-z_][\w-]*)\s*:\s*(.+?)\s*$/gm,h0=/<arg_key(?::[^>\s]+)?>([\s\S]*?)<\/arg_key(?::[^>\s]+)?>\s*<arg_value(?::[^>\s]+)?>([\s\S]*?)<\/arg_value(?::[^>\s]+)?>/g,u0=/^[A-Za-z_][\w.-]*$/});function i0($){if(!$)return;return M$($)}function l0($){try{let Z=JSON.parse($);return Z&&typeof Z==="object"&&!Array.isArray(Z)?$:null}catch{for(let Z of xZ)try{let Q=$+Z,W=JSON.parse(Q);if(W&&typeof W==="object"&&!Array.isArray(W))return Q}catch{}return null}}async function*yZ($,Z,Q,W,J){let D=K$(),z=0,X=new Map,Y=!1,K=!1,V=!1,F=EZ(),w=null,M=!1,H=!1,L=0,_=IZ(),O=!!J&&J.size>0&&!e(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS),R=w$(Z),P=null,f="",g=null;yield{type:"message_start",message:{id:D,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 b=$.body?.getReader();if(!b)return;let l=b,o=new TextDecoder,r="",p=120000,k=Date.now();async function F$(){return new Promise((I,B)=>{let S=setTimeout(()=>{let U=Math.round((Date.now()-k)/1000);B(Error(`OpenAI/Gemini SSE stream idle for ${U}s (limit: ${p/1000}s). Connection likely dropped.`))},p),A;if(Q)A=()=>{clearTimeout(S)},Q.addEventListener("abort",A,{once:!0});l.read().then((U)=>{if(clearTimeout(S),Q&&A)Q.removeEventListener("abort",A);if(U.value)k=Date.now();I(U)},(U)=>{if(clearTimeout(S),Q&&A)Q.removeEventListener("abort",A);B(U)})})}let n=async function*(){if(!Y)return;let I=F.flush();if(I)yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:I}};yield{type:"content_block_stop",index:z},z++,Y=!1},h=async function*(I){if(!I)return;if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(!Y)yield{type:"content_block_start",index:z,content_block:{type:"text",text:""}},Y=!0;L+=I.length,yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:I}}},W$=async function*(I){if(!I)return;if(P!==null){P+=I;return}let B=f+I,S=qZ(B,R);if(S!==-1){let A=B.slice(0,S);if(A)yield*h(A);f="",P=B.slice(S)}else{let A=vZ(B,R),U=A>0?B.slice(0,B.length-A):B;if(f=A>0?B.slice(B.length-A):"",U)yield*h(U)}},G$=async function*(){if(O){let I=F.flush();if(I)yield*W$(I)}if(P!==null){let I=P;P=null;let B=L$(I,{allowHy3:R,toolNames:J});if(B){if(B.visibleText)yield*h(B.visibleText);if(Y)yield*n();for(let S of B.calls){let A=z;yield{type:"content_block_start",index:A,content_block:{type:"tool_use",id:S.id,name:S.name,input:{}}},z++,yield{type:"content_block_delta",index:A,delta:{type:"input_json_delta",partial_json:JSON.stringify($$(S.name,JSON.stringify(S.arguments)))}},yield{type:"content_block_stop",index:A}}g="tool_use"}else yield*h(I)}else if(f)yield*h(f),f=""};try{while(!0){let{done:I,value:B}=await F$();if(I)break;r+=o.decode(B,{stream:!0});let S=r.split(`
|
|
9
|
-
`);r=S.pop()??"";for(let A of S){let U=A.trim();if(!U||U==="data: [DONE]")continue;if(!U.startsWith("data: "))continue;let t;try{t=JSON.parse(U.slice(6))}catch{continue}let c=i0(t.usage);for(let u of t.choices??[]){let d=u.delta,G=_Z(d);if(G!=null){if(!K)yield{type:"content_block_start",index:z,content_block:{type:"thinking",thinking:""}},K=!0;yield{type:"content_block_delta",index:z,delta:{type:"thinking_delta",thinking:G}}}if(d.content!=null&&d.content!==""){let j=F.feed(d.content);if(x$(_,d.content),j)if(O)yield*W$(j);else yield*h(j)}if(d.tool_calls){if(P!==null)yield*h(P),P=null;if(f)yield*h(f),f="";for(let j of d.tool_calls)if(j.id&&j.function?.name){if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(Y)yield*n();let N=z,v=j.function.arguments??"",E=FZ(j.function.name);if(x$(_,j.function.arguments??""),X.set(j.index,{id:j.id,name:j.function.name,index:N,jsonBuffer:v,normalizeAtStop:E}),yield{type:"content_block_start",index:N,content_block:{type:"tool_use",id:j.id,name:j.function.name,input:{},...j.extra_content?{extra_content:j.extra_content}:{},...j.extra_content?.google?.thought_signature?{signature:(j.extra_content?.google).thought_signature}:{}}},z++,j.function.arguments&&!E)L+=j.function.arguments.length,yield{type:"content_block_delta",index:N,delta:{type:"input_json_delta",partial_json:j.function.arguments}}}else if(j.function?.arguments){let N=X.get(j.index);if(N){if(j.function.arguments)L+=j.function.arguments.length,N.jsonBuffer+=j.function.arguments;if(N.normalizeAtStop)continue;yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:j.function.arguments}}}}}if(u.finish_reason&&!H){if(H=!0,K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(yield*G$(),g)u.finish_reason="tool_calls";if(Y)yield*n();for(let[,N]of X){if(N.normalizeAtStop){let E;if(u.finish_reason==="length")E=N.jsonBuffer;else{let C=l0(N.jsonBuffer);if(C)E=C;else E=JSON.stringify($$(N.name,N.jsonBuffer))}yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:E}},yield{type:"content_block_stop",index:N.index};continue}let v="";if(N.jsonBuffer)try{JSON.parse(N.jsonBuffer)}catch{let E=N.jsonBuffer.trimEnd();for(let C of xZ)try{JSON.parse(E+C),v=C;break}catch{}}if(v)yield{type:"content_block_delta",index:N.index,delta:{type:"input_json_delta",partial_json:v}};yield{type:"content_block_stop",index:N.index}}let j=u.finish_reason==="tool_calls"?"tool_use":u.finish_reason==="length"?"max_tokens":"end_turn";if(u.finish_reason==="content_filter"||u.finish_reason==="safety"){if(!Y)yield{type:"content_block_start",index:z,content_block:{type:"text",text:""}},Y=!0;yield{type:"content_block_delta",index:z,delta:{type:"text_delta",text:`
|
|
10
|
-
|
|
11
|
-
[Content blocked by provider safety filter]`}}}if(w=j,yield{type:"message_delta",delta:{stop_reason:j,stop_sequence:null},...c?{usage:c}:{}},c)M=!0}}if(!M&&c&&(t.choices?.length??0)===0&&w!==null)yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null},usage:c},M=!0}}}finally{l.releaseLock()}if(!H&&(P!==null||f)){if(K&&!V)yield{type:"content_block_stop",index:z},z++,V=!0;if(yield*G$(),Y)yield*n();w=g??"end_turn",yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null}}}let s=RZ(_);if(s.totalChunks>0)T(JSON.stringify({type:"stream_stats",model:Z,total_chunks:s.totalChunks,first_token_ms:s.firstTokenMs,duration_ms:s.durationMs}),{level:"debug"});if(!M&&w!==null&&(L>0||(W??0)>0)){let I=TZ(Z);yield{type:"message_delta",delta:{stop_reason:w,stop_sequence:null},usage:{input_tokens:W??0,output_tokens:Math.ceil(L/I),cache_creation_input_tokens:0,cache_read_input_tokens:0}}}yield{type:"message_stop"}}var xZ,g$;var CZ=y(()=>{O$();AZ();SZ();y$();v$();gZ();P$();q$();E$();T$();xZ=["}",'"}',"]}",'"]}',"}}",'"}}',"]}}",'"]}}','"]}]}',"}]}"];g$=class g${generator;controller=new AbortController;constructor($){this.generator=$}async*[Symbol.asyncIterator](){yield*this.generator}}});function n0($){let Z=$.toLowerCase();return bZ.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(n0(W))Z.searchParams.set(W,"redacted");let Q=Z.toString();return Z$(Q,process.env)??Q}catch{return Z$($,process.env)??$}}var uZ=y(()=>{hZ();kZ()});function mZ($){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=z$($),this.reasoningEffort=Z}create($,Z){let Q=this,W,J=(async()=>{let D=D0($.model,$.effortValue),z=D==="low"||D==="medium"||D==="high"||D==="xhigh"||D==="max"?D:Q.reasoningEffort,X=lZ({model:$.model,reasoningEffortOverride:z}),Y=await Q._doRequest(X,$,Z);W=Y;let K=new Set(($.tools??[]).map((M)=>M.name).filter((M)=>typeof M==="string"));if($.stream){let M=Y.url?.includes("/responses"),H=0;for(let L of $.messages){let _=L,O=_.message?_.message.content:_.content;if(O!=null&&typeof O!=="string"&&!Array.isArray(O))continue;H+=r$(O??void 0)}if(typeof $.system==="string")H+=H0($.system);else if(Array.isArray($.system))H+=r$($.system);return new g$(X.transport==="codex_responses"||M?X0(Y,X.resolvedModel,Z?.signal):yZ(Y,X.resolvedModel,Z?.signal,H,K))}if(X.transport==="codex_responses"){let M=await j0(Y,Z?.signal);return o$(M,X.resolvedModel)}if(Y.url?.includes("/responses")||X.transport==="chat_completions"&&U$()){if((Y.headers.get("content-type")??"").includes("application/json")){let H=await Y.json();if(H&&typeof H==="object"&&(("output"in H)||("incomplete_details"in H)))return o$(H,X.resolvedModel);return Q._convertNonStreamingResponse(H,X.resolvedModel,K)}}if((Y.headers.get("content-type")??"").includes("application/json")){let M=await Y.json();return Q._convertNonStreamingResponse(M,X.resolvedModel,K)}let w=await Y.text().catch(()=>"");throw V$.generate(Y.status,void 0,`OpenAI API error ${Y.status}: unexpected response: ${w.slice(0,500)}`,Y.headers)})();return J.withResponse=async()=>{return{data:await J,response:W??new Response,request_id:W?.headers.get("x-request-id")??K$()}},J}async _doRequest($,Z,Q){let W=h$($.baseUrl),J=U$();if(J&&$.transport==="codex_responses"){let z=Y$(),X=z?.extras?.githubToken??z?.apiKey??"";if(!X)throw Error("GitHub Copilot auth is required. Run /provider and choose GitHub Copilot.");return a$({request:$,credentials:{apiKey:X,source:"env"},params:Z,defaultHeaders:{...this.defaultHeaders,...z$(Q?.headers),...u$,...l$(Z.messages)},signal:Q?.signal})}if($.transport==="codex_responses"&&!J){let z=await pZ().catch(async(Y)=>{return T(`[codex] access token refresh failed before request: ${Y instanceof Error?Y.message:String(Y)}`,{level:"warn"}),{refreshed:!1,credentials:await dZ()}}),X=nZ({storedCredentials:z.credentials});if(!X.apiKey){let Y=D$()?"":", choose Codex OAuth in /provider",K=X.authPath?`${Y} or place a Codex auth.json at ${X.authPath}`:Y,V=Z$($.requestedModel,process.env)??"the requested model";throw Error(`Codex auth is required for ${V}. Set CODEX_API_KEY${K}.`)}if(!X.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 a$({request:$,credentials:X,params:Z,defaultHeaders:{...this.defaultHeaders,...z$(Q?.headers)},signal:Q?.signal})}return this._doOpenAIRequest($,Z,Q)}async _doOpenAIRequest($,Z,Q){let W=Y0(Z.messages),J=LZ(W,Z.system,{preserveReasoningContent:m$($.baseUrl)||p$($.baseUrl)||d$($.baseUrl)}),D={model:$.resolvedModel,messages:J,stream:Z.stream??!1,store:!1,...mZ($.baseUrl)&&{prompt_cache_key:b$(),prompt_cache_retention:"24h"}},z=typeof Z.max_tokens==="number"&&Z.max_tokens>0?Z.max_tokens:void 0,X=typeof Z.max_completion_tokens==="number"?Z.max_completion_tokens:void 0;if(z!==void 0)D.max_completion_tokens=z;else if(X!==void 0)D.max_completion_tokens=X;if(Z.stream&&!k$($.baseUrl))D.stream_options={include_usage:!0};let Y=U$(),K=tZ(),V=k$($.baseUrl),F=h$($.baseUrl),w=Y&&F==="copilot",M=Y&&(F==="models"||F==="custom"),H=m$($.baseUrl),L=p$($.baseUrl),_=d$($.baseUrl);if((Y||K||V||H||L||_)&&D.max_completion_tokens!==void 0)D.max_tokens=D.max_completion_tokens,delete D.max_completion_tokens;if(K||a()||H||L||_)delete D.store;if(Z.temperature!==void 0)D.temperature=Z.temperature;if(Z.top_p!==void 0)D.top_p=Z.top_p;if(L){let G=Z.thinking?.type,j=G==="disabled"?"disabled":G==="enabled"||G==="adaptive"?"enabled":void 0;if(j)D.thinking={type:j};if(j==="enabled"){let N=$.reasoning?.effort;if(N)D.reasoning_effort=eZ(N)}}if(H){let G=$.reasoning?.effort;if(G&&J0($.resolvedModel))D.thinking={type:"enabled",effort:G,keep:"all"}}if(Z.tools&&Z.tools.length>0){let G=A$(Z.tools);if(G.length>0){if(D.tools=G,Z.tool_choice){let j=Z.tool_choice;if(j.type==="auto")D.tool_choice="auto";else if(j.type==="tool"&&j.name)D.tool_choice={type:"function",function:{name:j.name}};else if(j.type==="any")D.tool_choice="required";else if(j.type==="none")D.tool_choice="none"}}}let O={"Content-Type":"application/json",...this.defaultHeaders,...z$(Q?.headers),"User-Agent":Q0()},R=a(),P=Y$(),f=await Z0(P),g=P?.apiKey??P?.extras?.githubToken??f.accessToken??"",b=!1;try{let{hostname:G}=new URL($.baseUrl);b=G.endsWith(".azure.com")&&(G.includes("cognitiveservices")||G.includes("openai")||G.includes("services.ai"))}catch{}let l=!1;try{l=$.baseUrl.toLowerCase().includes("bankr")}catch{}if(g){if(b)O["api-key"]=g;else if(l)O["X-API-Key"]=g;else O.Authorization=`Bearer ${g}`;if(f.userAgent)O["User-Agent"]=f.userAgent;if(f.deviceHeaders)Object.assign(O,f.deviceHeaders)}else if(R){let G=await W0(process.env);if(G.kind!=="none"){if(O.Authorization=`Bearer ${G.credential}`,G.kind!=="api-key"&&"projectId"in G&&G.projectId)O["x-goog-user-project"]=G.projectId}}if(w)Object.assign(O,u$,l$(Z.messages));else if(M)O.Accept="application/vnd.github+json",O["X-GitHub-Api-Version"]="2022-11-28";let o=(G)=>{if(b){let j=process.env.AZURE_OPENAI_API_VERSION??"2024-12-01-preview",N=$.resolvedModel??P?.model??"gpt-4o";if(/\/deployments\//i.test(G))return`${G.replace(/\/+$/,"")}/chat/completions?api-version=${j}`;return`${G.replace(/\/(openai\/)?v1\/?$/,"").replace(/\/+$/,"")}/openai/deployments/${N}/chat/completions?api-version=${j}`}return`${G}/chat/completions`},r=V?cZ($.baseUrl):[],p=$.baseUrl,k=o(p),F$=new Set([p]),n=!1,h=(G)=>{for(let j of r){if(F$.has(j))continue;let N=k;return F$.add(j),p=j,k=o(p),T(`[OpenAIShim] self-heal retry reason=${G} method=POST from=${Q$(N)} to=${Q$(k)} model=${$.resolvedModel}`,{level:"warn"}),!0}return!1},W$=_$(D),G$=()=>{W$=_$(D)},s=()=>({method:"POST",headers:O,body:W$,signal:Q?.signal}),I=V?r.length+1:0,B=(Y?aZ:1)+I,S=(G,j,N)=>{if(Q?.signal?.aborted)throw G;let v=N??i$(G,{url:j}),E=Q$(j),C=Z$(v.message,process.env)||"Request failed";throw T(`[OpenAIShim] transport failure category=${v.category} retryable=${v.retryable} code=${v.code??"unknown"} method=POST url=${E} model=${$.resolvedModel} message=${C}`,{level:"warn"}),V$.generate(503,void 0,c$(`OpenAI API transport error: ${C}${v.code?` (code=${v.code})`:""}`,v),new Headers)},A=(G,j,N,v,E,C="",q)=>{let x=q??f$({status:G,body:j}),i=Q$(E);throw T(`[OpenAIShim] request failed category=${x.category} retryable=${x.retryable} status=${G} method=POST url=${i} model=${$.resolvedModel}`,{level:"warn"}),V$.generate(G,N,c$(`OpenAI API error ${G}: ${j}${C}`,x),v)},U,t=$.baseUrl.includes("nvidia")?"nvidia-nim":$.baseUrl.includes("minimax")?"minimax":$.baseUrl.includes("localhost:11434")||$.baseUrl.includes("localhost:11435")?"ollama":$.baseUrl.includes("anthropic")?"anthropic":"openai",c=sZ(),{correlationId:u,startTime:d}=YZ(t,$.resolvedModel);for(let G=0;G<B;G++){try{U=await n$(k,s(),{provider:c})}catch(q){if(Q?.signal?.aborted===!0||typeof DOMException<"u"&&q instanceof DOMException&&q.name==="AbortError"||typeof q==="object"&&q!==null&&"name"in q&&q.name==="AbortError")throw q;let i=i$(q,{url:k});if(V&&i.category==="localhost_resolution_failed"&&h("localhost_resolution_failed"))continue;S(q,k,i)}if(U.ok){let q=0,x=0;if(!Z.stream)try{let m=await U.clone().json();q=m.usage?.prompt_tokens??0,x=m.usage?.completion_tokens??0}catch{}return zZ(u,d,$.resolvedModel,"success",q,x,!1),U}if(Y&&U.status===429&&G<B-1){await U.text().catch(()=>{});let q=Math.min(oZ*2**G,rZ);await PZ(q*1000);continue}let j=await U.text().catch(()=>"unknown error"),N=Y&&U.status===429?GZ(U):"";if(Y&&U.status===400){if(j.includes("/chat/completions")||j.includes("not accessible")){let q=`${$.baseUrl}/responses`,x={model:$.resolvedModel,input:z0(Z.messages),stream:Z.stream??!1,store:!1,...mZ($.baseUrl)&&{prompt_cache_key:b$(),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=S$(Z.system);if(i)x.instructions=i;if(D.max_tokens!==void 0)x.max_output_tokens=D.max_tokens;if(Z.tools&&Z.tools.length>0){let H$=K0(Z.tools);if(H$.length>0)x.tools=H$}let m;try{m=await n$(q,{method:"POST",headers:O,body:_$(x),signal:Q?.signal},{provider:c})}catch(H$){S(H$,q)}if(m.ok)return m;let I$=await m.text().catch(()=>"unknown error"),P0=f$({status:m.status,body:I$}),s$;try{s$=JSON.parse(I$)}catch{}A(m.status,I$,s$,m.headers,q,"",P0)}}let v=f$({status:U.status,body:j});if(V&&v.category==="endpoint_not_found"&&h("endpoint_not_found"))continue;let E=Array.isArray(D.tools)&&D.tools.length>0;if(!n&&v.category==="tool_call_incompatible"&&iZ({baseUrl:p,hasTools:E})){n=!0,delete D.tools,delete D.tool_choice,G$(),T(`[OpenAIShim] self-heal retry reason=tool_call_incompatible mode=toolless method=POST url=${Q$(k)} model=${$.resolvedModel}`,{level:"warn"});continue}let C;try{C=JSON.parse(j)}catch{}A(U.status,j,C,U.headers,k,N,v)}throw V$.generate(500,void 0,"OpenAI shim: request loop exited unexpectedly",new Headers)}_convertNonStreamingResponse($,Z,Q){let W=$.choices?.[0],J=[],D=!1,z=fZ(W?.message??{});if(z)J.push({type:"thinking",thinking:z});let X=W?.message?.content!==""&&W?.message?.content!=null?W?.message?.content:null;if(typeof X==="string"&&X){let V=!!Q&&Q.size>0&&!e(process.env.CLAUDIN_DISABLE_XML_TOOL_CALLS)?L$(X,{allowHy3:w$(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))});D=!0}else J.push({type:"text",text:X$(X)})}else if(Array.isArray(X)&&X.length>0){let K=[];for(let F of X)if(F&&typeof F==="object"&&F.type==="text"&&typeof F.text==="string")K.push(F.text);let V=K.join(`
|
|
12
|
-
`);if(V)J.push({type:"text",text:X$(V)})}if(W?.message?.tool_calls)for(let K of W.message.tool_calls){let V=$$(K.function.name,K.function.arguments);J.push({type:"tool_use",id:K.id,name:K.function.name,input:V,...K.extra_content?{extra_content:K.extra_content}:{},...K.extra_content?.google?.thought_signature?{signature:(K.extra_content?.google).thought_signature}:{}})}let Y=D||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??K$(),type:"message",role:"assistant",content:J,model:$.model??Z,stop_reason:Y,stop_sequence:null,usage:M$($.usage)}}}class F0{messages;reasoningEffort;constructor($,Z){this.messages=new V0($,Z),this.reasoningEffort=Z}}function j1($){JZ(),$0();let Z=new F0({...$.defaultHeaders??{}},$.reasoningEffort);return{beta:Z,messages:Z.messages}}var G0=y(()=>{o0();r0();O$();P$();WZ();DZ();$1();t0();D1();hZ();KZ();e0();gZ();Y1();ZZ();SZ();K1();z1();Q1();s0();Z1();y$();v$();W1();J1();kZ();HZ();q$();MZ();R$();E$();CZ();a0();B$();T$();uZ()});var X1=y(()=>{B$();G0()});X1();export{j1 as createOpenAIShimClient,A$ as convertTools};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kta as t}from"./cli-1.1.18-hvd9yyb4.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{wi as e,xi as a}from"./cli-1.1.18-18rbpjbc.mjs";import{kta as r}from"./cli-1.1.18-hvd9yyb4.mjs";var t;var o=r(()=>{a();t=e()});o();export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./cli-1.1.18-hvd9yyb4.mjs";var o=()=>null,n=o;export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p9 as a,q9 as b,r9 as c,s9 as d,t9 as e}from"./cli-1.1.18-7nsrr2k0.mjs";import"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-hvd9yyb4.mjs";e();export{c as parseCommandRaw,a as parseCommand,d as extractCommandArguments,b as PARSE_ABORTED};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{BY as y,DY as Qq,GY as S,HY as Uq,PY as O,QY as Xq,RY as b,TY as f,VY as g,WY as m,YY as D}from"./cli-1.1.18-0h118vrj.mjs";import{CZ as Hq,H1 as Nq,a1 as N,c1 as z,g1 as L,w1 as R,xZ as w}from"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import{c4 as X,d4 as q,e4 as J,f4 as V}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as Jq}from"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-ddreb78e.mjs";import"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import{Nba as E,Wga as P,_ea as d,bfa as p,cha as Bq,fca as zq,raa as v,taa as qq,wfa as Yq}from"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import{Zja as _,aka as k}from"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{gta as s,kta as h}from"./cli-1.1.18-hvd9yyb4.mjs";function c({onDone:Y}){let[C,U]=Q.useState(!0),[M,T]=Q.useState([]),[j,W]=Q.useState(!1),[G,x]=Q.useState(null),[A,l]=Q.useState(void 0),Z=S(()=>Y("Guest passes dialog dismissed",{display:"system"})),o=Q.useCallback(()=>{Y("Guest passes dialog dismissed",{display:"system"})},[Y]);if(y("confirm:no",o,{context:"Confirmation"}),R((H,B)=>{if(B.return&&G)w(G).then((K)=>{if(K)process.stdout.write(K);_("",{}),Y("Referral link copied to clipboard!")})}),Q.useEffect(()=>{async function H(){try{let B=await m();if(!B||!B.eligible){W(!1),U(!1);return}if(W(!0),B.referral_code_details?.referral_link)x(B.referral_code_details.referral_link);l(B.referrer_reward);let K=B.referral_code_details?.campaign??"claude_code_guest_pass",I;try{I=await b(K)}catch($){P($),W(!1),U(!1);return}let t=I.redemptions||[],a=I.limit||3,F=[];for(let $=0;$<a;$++){let e=t[$];F.push({passNumber:$+1,isAvailable:!e})}T(F),U(!1)}catch(B){P(B),W(!1),U(!1)}}H()},[]),C)return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[q(z,{dimColor:!0,children:"Loading guest pass information…"}),q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Esc to cancel"})})]})});if(!j)return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[q(z,{children:"Guest passes are not currently available."}),q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Esc to cancel"})})]})});let n=v(M,(H)=>H.isAvailable),r=[...M].sort((H,B)=>+B.isAvailable-+H.isAvailable),i=(H)=>{if(!H.isAvailable)return J(N,{flexDirection:"column",marginRight:1,children:[q(z,{dimColor:!0,children:"┌─────────╱"}),q(z,{dimColor:!0,children:` ) CC ${E} ┊╱`}),q(z,{dimColor:!0,children:"└───────╱"})]},H.passNumber);return J(N,{flexDirection:"column",marginRight:1,children:[q(z,{children:"┌──────────┐"}),J(z,{children:[" ) CC ",q(z,{color:"claude",children:E})," ┊ ( "]}),q(z,{children:"└──────────┘"})]},H.passNumber)};return q(O,{children:J(N,{flexDirection:"column",gap:1,children:[J(z,{color:"permission",children:["Guest passes · ",n," left"]}),q(N,{flexDirection:"row",marginLeft:2,children:r.slice(0,3).map((H)=>i(H))}),G&&q(N,{marginLeft:2,children:q(z,{children:G})}),q(N,{flexDirection:"column",marginLeft:2,children:J(z,{dimColor:!0,children:[A?`Share a free week of Claude Code with friends. If they love it and subscribe, you'll get ${f(A)} of extra usage to keep building. `:"Share a free week of Claude Code with friends. ",q(L,{url:A?"https://support.claude.com/en/articles/13456702-claude-code-guest-passes":"https://support.claude.com/en/articles/12875061-claude-code-guest-passes",children:"Terms apply."})]})}),q(N,{children:q(z,{dimColor:!0,italic:!0,children:Z.pending?J(X,{children:["Press ",Z.keyName," again to exit"]}):q(X,{children:"Enter to copy link · Esc to cancel"})})})]})})}var Q;var u=h(()=>{zq();Uq();Hq();Nq();Qq();k();D();qq();Bq();Xq();V();Q=s(Jq(),1)});async function kq(Y){let U=!p().hasVisitedPasses;if(U){let M=g();d((T)=>({...T,hasVisitedPasses:!0,passesLastSeenRemaining:M??T.passesLastSeenRemaining}))}return _("",{is_first_visit:U}),q(c,{onDone:Y})}var Zq=h(()=>{u();k();D();Yq();V()});Zq();export{kq as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Qha as a,Rha as b,Sha as c}from"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-hvd9yyb4.mjs";c();export{b as PERMISSION_MODES,a as EXTERNAL_PERMISSION_MODES};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{ae as e0,be as nN}from"./cli-1.1.18-rp84hvn4.mjs";import{Ag as jN,Bg as vG}from"./cli-1.1.18-kkr6w2g7.mjs";import{th as OG,uh as sG,vh as IG,wh as tG}from"./cli-1.1.18-zdx4ywwf.mjs";import{Ah as O0,Bh as fN,xh as WG,yh as I0,zh as EG}from"./cli-1.1.18-70jytem3.mjs";import{Ch as iN,Dh as hG}from"./cli-1.1.18-y0eah2b9.mjs";import{Hh as QG,Ih as $G}from"./cli-1.1.18-5pa0bk59.mjs";import"./cli-1.1.18-jp0phw3q.mjs";import"./cli-1.1.18-vnsqk2vn.mjs";import"./cli-1.1.18-q7qp6pv5.mjs";import"./cli-1.1.18-6w9m5m4s.mjs";import"./cli-1.1.18-0xknnw9q.mjs";import{$x as ZG,AO as UG,BG as n,BK as KG,BO as kG,CG as V0,CO as wG,EO as qG,FO as oG,Xm as E0,_m as $0,an as KN,ay as zG,cy as aG,eS as wJ,ep as MN,fp as gG,ko as s0,lo as DN,mJ as pN,nD as a0,nJ as _G,oD as TN,rG as hN,sG as mG,zO as LG}from"./cli-1.1.18-xfb4pete.mjs";import"./cli-1.1.18-pzeg2p3k.mjs";import"./cli-1.1.18-2qvvz2tv.mjs";import"./cli-1.1.18-cphcr3xr.mjs";import"./cli-1.1.18-k1pkc44n.mjs";import"./cli-1.1.18-hphxdvpd.mjs";import"./cli-1.1.18-ta6r8qry.mjs";import"./cli-1.1.18-heh8xz6x.mjs";import"./cli-1.1.18-rnqtkprk.mjs";import"./cli-1.1.18-cy0ypdkd.mjs";import"./cli-1.1.18-f7jag2rr.mjs";import"./cli-1.1.18-v75xqnbv.mjs";import"./cli-1.1.18-5s8f8gd5.mjs";import"./cli-1.1.18-ccbh77pf.mjs";import"./cli-1.1.18-zd969gzb.mjs";import"./cli-1.1.18-27b82jjj.mjs";import"./cli-1.1.18-pbdm30bs.mjs";import"./cli-1.1.18-ybfayy4j.mjs";import"./cli-1.1.18-fst0kx9m.mjs";import"./cli-1.1.18-1c8pr80a.mjs";import{BY as P0,DY as mN,GY as T0,HY as _N,PY as YG,QY as rG,nY as SN,oY as SG}from"./cli-1.1.18-0h118vrj.mjs";import"./cli-1.1.18-t526ry94.mjs";import{DZ as G0,G0 as XG,H1 as J0,a1 as v,c1 as H,k1 as RN,w1 as uN}from"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import"./cli-1.1.18-12tzkcxz.mjs";import"./cli-1.1.18-mg7jmbh9.mjs";import"./cli-1.1.18-mwevzyy2.mjs";import"./cli-1.1.18-a888prq4.mjs";import"./cli-1.1.18-1t3rb5a8.mjs";import"./cli-1.1.18-8thyc5yy.mjs";import"./cli-1.1.18-npdweafk.mjs";import{c4 as a,d4 as Y,e4 as T,f4 as x}from"./cli-1.1.18-f2j32mha.mjs";import{g4 as t0}from"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-0aakxjsk.mjs";import"./cli-1.1.18-948h21gh.mjs";import"./cli-1.1.18-ddreb78e.mjs";import"./cli-1.1.18-1spz0azv.mjs";import"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import{k9 as s,l9 as lG}from"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-7nsrr2k0.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import{Tda as IN,jba as ON,kba as DG,kda as yN,kea as CG,lda as u,mda as HN,pda as FN,x_ as X0,xda as jG,y_ as BN}from"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import"./cli-1.1.18-hbv881pn.mjs";import{Fka as b0,Kka as nG}from"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import{Fna as tN,yra as dG}from"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{gta as i,kta as e}from"./cli-1.1.18-hvd9yyb4.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:pN.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(hN,{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();mG();_N();SG();J0();mN();TN();_G();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=LG(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=EG(),{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(OG,{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=ZG(UJ),L=zG(),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,UG(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,kG(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,wG(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}=IG(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),qG({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(QG,{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(WG,{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(YG,{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();aG();KN();V0();_N();tG();J0();mN();nN();HN();oG();nG();rG();fN();sG();vN();$G();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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{de as S,ee as d}from"./cli-1.1.18-gdvh8p4h.mjs";import{Ig as B,Jg as P,Kg as F,Mg as D}from"./cli-1.1.18-251zfmjp.mjs";import{Co as I,Go as c,Xm as A,an as m,kL as y,mL as j,vm as U,wm as _,zm as g}from"./cli-1.1.18-xfb4pete.mjs";import"./cli-1.1.18-pzeg2p3k.mjs";import"./cli-1.1.18-2qvvz2tv.mjs";import"./cli-1.1.18-cphcr3xr.mjs";import"./cli-1.1.18-k1pkc44n.mjs";import"./cli-1.1.18-hphxdvpd.mjs";import"./cli-1.1.18-ta6r8qry.mjs";import"./cli-1.1.18-heh8xz6x.mjs";import"./cli-1.1.18-rnqtkprk.mjs";import"./cli-1.1.18-cy0ypdkd.mjs";import"./cli-1.1.18-f7jag2rr.mjs";import"./cli-1.1.18-v75xqnbv.mjs";import"./cli-1.1.18-5s8f8gd5.mjs";import"./cli-1.1.18-ccbh77pf.mjs";import"./cli-1.1.18-zd969gzb.mjs";import"./cli-1.1.18-27b82jjj.mjs";import"./cli-1.1.18-pbdm30bs.mjs";import"./cli-1.1.18-ybfayy4j.mjs";import"./cli-1.1.18-fst0kx9m.mjs";import"./cli-1.1.18-1c8pr80a.mjs";import"./cli-1.1.18-0h118vrj.mjs";import"./cli-1.1.18-t526ry94.mjs";import{DZ as h,H1 as T,a1 as V,c1 as G}from"./cli-1.1.18-2w9274tq.mjs";import"./cli-1.1.18-x7jyxff1.mjs";import"./cli-1.1.18-ecds9fxm.mjs";import"./cli-1.1.18-ztyf20j1.mjs";import"./cli-1.1.18-12tzkcxz.mjs";import"./cli-1.1.18-mg7jmbh9.mjs";import"./cli-1.1.18-mwevzyy2.mjs";import"./cli-1.1.18-a888prq4.mjs";import"./cli-1.1.18-1t3rb5a8.mjs";import"./cli-1.1.18-8thyc5yy.mjs";import"./cli-1.1.18-npdweafk.mjs";import{d4 as w,e4 as W,f4 as Z}from"./cli-1.1.18-f2j32mha.mjs";import"./cli-1.1.18-cjkn7t4k.mjs";import"./cli-1.1.18-0aakxjsk.mjs";import"./cli-1.1.18-948h21gh.mjs";import"./cli-1.1.18-ddreb78e.mjs";import"./cli-1.1.18-1spz0azv.mjs";import"./cli-1.1.18-703emt7y.mjs";import"./cli-1.1.18-ythtynpe.mjs";import"./cli-1.1.18-mrrbn0jj.mjs";import"./cli-1.1.18-af7txyky.mjs";import"./cli-1.1.18-7nsrr2k0.mjs";import"./cli-1.1.18-avas0dtp.mjs";import"./cli-1.1.18-f6m259he.mjs";import"./cli-1.1.18-3y4pftxb.mjs";import"./cli-1.1.18-ndct9t5e.mjs";import"./cli-1.1.18-c9h4ga5f.mjs";import"./cli-1.1.18-psb6qqc1.mjs";import"./cli-1.1.18-7pcfwrhj.mjs";import"./cli-1.1.18-esvp6n4e.mjs";import"./cli-1.1.18-cj8tr93q.mjs";import"./cli-1.1.18-k05shz35.mjs";import"./cli-1.1.18-hbv881pn.mjs";import"./cli-1.1.18-ypcye8ae.mjs";import"./cli-1.1.18-mz10pywc.mjs";import"./cli-1.1.18-cxg522yt.mjs";import"./cli-1.1.18-3s03nva1.mjs";import{wqa as R,yra as u}from"./cli-1.1.18-4c3jqppx.mjs";import"./cli-1.1.18-417wb57s.mjs";import"./cli-1.1.18-p3yf1aq6.mjs";import"./cli-1.1.18-vzrv28w4.mjs";import"./cli-1.1.18-4jy396p1.mjs";import"./cli-1.1.18-553zzrge.mjs";import{gta as C,kta as N}from"./cli-1.1.18-hvd9yyb4.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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{kta as z}from"./cli-1.1.18-hvd9yyb4.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};
|