@claudiolabs/claudin 1.1.28 → 1.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.30-3wq8zzaa.mjs +1 -0
- package/dist/chunks/App-1.1.30-ywb53g2c.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.30-wtpe9n8e.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.30-776xks64.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.30-bjm91hx0.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.30-rcy7msd9.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.30-bexsqxcb.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.30-jfhq3h4z.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.30-kqds97f2.mjs +6 -0
- package/dist/chunks/Doctor-1.1.30-48qzfckm.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.30-tfv4wc5m.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.30-z31ecx5v.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.30-f17w1kzx.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.30-fzajgngq.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.30-15c4h452.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.30-xajg2p3r.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.30-8jrhxd1r.mjs +1 -0
- package/dist/chunks/REPL-1.1.30-74pzzw1d.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.30-8bmshptz.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.30-v5fnwt30.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.30-v55nsv7g.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.30-2hg56v1b.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.30-r2hwd3a6.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.30-y6hny4s2.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.30-cq18pvam.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.30-qp3cr0fk.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.30-ydaqb760.mjs +1 -0
- package/dist/chunks/add-dir-1.1.30-gta8twv0.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.30-rxcmv28v.mjs +1 -0
- package/dist/chunks/agents-1.1.30-d5hxfnnt.mjs +3 -0
- package/dist/chunks/agents-1.1.30-q3f25044.mjs +110 -0
- package/dist/chunks/api-1.1.30-30hng0e4.mjs +1 -0
- package/dist/chunks/asciicast-1.1.30-mhcedd5b.mjs +1 -0
- package/dist/chunks/assistant-1.1.30-1zxsr09t.mjs +1 -0
- package/dist/chunks/auth-1.1.30-mmymct98.mjs +1 -0
- package/dist/chunks/auth-1.1.30-ntfwzwxz.mjs +1 -0
- package/dist/chunks/autoMode-1.1.30-9jd1avyj.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.30-8cnp296z.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.30-f0wbf5ha.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.30-b7t4y9th.mjs +1 -0
- package/dist/chunks/branch-1.1.30-x77nhthz.mjs +4 -0
- package/dist/chunks/bridge-1.1.30-scfmh172.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.30-8hd92b6p.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.30-n5c6p8kd.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.30-9cpc29zx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.30-gsa0eerc.mjs +1 -0
- package/dist/chunks/btw-1.1.30-gyh84rd1.mjs +1 -0
- package/dist/chunks/buddy-1.1.30-vzfs4xt1.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.30-qjppzj5p.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.30-w1c0ekr4.mjs +4 -0
- package/dist/chunks/caches-1.1.30-6rye5cdg.mjs +1 -0
- package/dist/chunks/cd-1.1.30-tn402589.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.30-sm5ncwqz.mjs +1 -0
- package/dist/chunks/claudemd-1.1.30-36eyf63s.mjs +1 -0
- package/dist/chunks/clear-1.1.30-p5p9kp96.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.30-nrdembs6.mjs +1 -0
- package/dist/chunks/cli-1.1.30-053d5ph7.mjs +2 -0
- package/dist/chunks/cli-1.1.30-092dkm0p.mjs +2 -0
- package/dist/chunks/cli-1.1.30-0e0e9msg.mjs +17 -0
- package/dist/chunks/cli-1.1.30-0fz758j0.mjs +2 -0
- package/dist/chunks/cli-1.1.30-0qcyzbs1.mjs +2 -0
- package/dist/chunks/cli-1.1.30-0yafp3ky.mjs +2 -0
- package/dist/chunks/cli-1.1.30-1j4dyr5r.mjs +2 -0
- package/dist/chunks/cli-1.1.30-1k2bwved.mjs +3 -0
- package/dist/chunks/cli-1.1.30-1qczaqkt.mjs +2 -0
- package/dist/chunks/cli-1.1.30-1wfffyq2.mjs +2 -0
- package/dist/chunks/cli-1.1.30-1xmhk219.mjs +2 -0
- package/dist/chunks/cli-1.1.30-1ybfyckn.mjs +2 -0
- package/dist/chunks/cli-1.1.30-1zsgv3yp.mjs +2 -0
- package/dist/chunks/cli-1.1.30-2af3eeg6.mjs +2 -0
- package/dist/chunks/cli-1.1.30-2hw4vdpg.mjs +2 -0
- package/dist/chunks/cli-1.1.30-2pqs37e0.mjs +3 -0
- package/dist/chunks/cli-1.1.30-2y4yj9sd.mjs +2 -0
- package/dist/chunks/cli-1.1.30-2yd2af56.mjs +50 -0
- package/dist/chunks/cli-1.1.30-2zq3aea6.mjs +2 -0
- package/dist/chunks/cli-1.1.30-322advqh.mjs +4 -0
- package/dist/chunks/cli-1.1.30-3b1nw95m.mjs +2 -0
- package/dist/chunks/cli-1.1.30-3c6j35rs.mjs +2 -0
- package/dist/chunks/cli-1.1.30-3x86c2pa.mjs +24 -0
- package/dist/chunks/cli-1.1.30-489cr054.mjs +2 -0
- package/dist/chunks/cli-1.1.30-4d90v0pd.mjs +6 -0
- package/dist/chunks/cli-1.1.30-4kytbyxq.mjs +15 -0
- package/dist/chunks/cli-1.1.30-4t03vay7.mjs +2 -0
- package/dist/chunks/cli-1.1.30-4wqfr0ya.mjs +2 -0
- package/dist/chunks/cli-1.1.30-4zrfbe17.mjs +2 -0
- package/dist/chunks/cli-1.1.30-51kze0eh.mjs +2 -0
- package/dist/chunks/cli-1.1.30-569esepc.mjs +60 -0
- package/dist/chunks/cli-1.1.30-57b410qh.mjs +25 -0
- package/dist/chunks/cli-1.1.30-5cc6nada.mjs +2 -0
- package/dist/chunks/cli-1.1.30-5f76gnk2.mjs +2 -0
- package/dist/chunks/cli-1.1.30-5j2mdj81.mjs +2 -0
- package/dist/chunks/cli-1.1.30-5pn20fxz.mjs +2 -0
- package/dist/chunks/cli-1.1.30-5r9pakw5.mjs +2 -0
- package/dist/chunks/cli-1.1.30-63ndyxgm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-6eaj3n76.mjs +9 -0
- package/dist/chunks/cli-1.1.30-6phpx599.mjs +2 -0
- package/dist/chunks/cli-1.1.30-6pp4z5px.mjs +2 -0
- package/dist/chunks/cli-1.1.30-7a064pfm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-7bdj31x8.mjs +2 -0
- package/dist/chunks/cli-1.1.30-7dtpd1ra.mjs +2 -0
- package/dist/chunks/cli-1.1.30-7h45a0x6.mjs +6 -0
- package/dist/chunks/cli-1.1.30-7ma427qh.mjs +8 -0
- package/dist/chunks/cli-1.1.30-7q8f7mp7.mjs +2 -0
- package/dist/chunks/cli-1.1.30-84cemtwn.mjs +4 -0
- package/dist/chunks/cli-1.1.30-87zsgch6.mjs +21 -0
- package/dist/chunks/cli-1.1.30-8a5gwcde.mjs +2 -0
- package/dist/chunks/cli-1.1.30-8e36e2c1.mjs +2 -0
- package/dist/chunks/cli-1.1.30-8hcc4gax.mjs +15 -0
- package/dist/chunks/cli-1.1.30-8t3c3a4k.mjs +20 -0
- package/dist/chunks/cli-1.1.30-8vr9ea9g.mjs +2 -0
- package/dist/chunks/cli-1.1.30-8zyep40e.mjs +2 -0
- package/dist/chunks/cli-1.1.30-902jyjpx.mjs +2 -0
- package/dist/chunks/cli-1.1.30-917y0q4m.mjs +2 -0
- package/dist/chunks/cli-1.1.30-92t0b3hs.mjs +2 -0
- package/dist/chunks/cli-1.1.30-94vhzqcd.mjs +2 -0
- package/dist/chunks/cli-1.1.30-9685r12p.mjs +2 -0
- package/dist/chunks/cli-1.1.30-9h8mm4pg.mjs +2 -0
- package/dist/chunks/cli-1.1.30-9m8jc7as.mjs +4 -0
- package/dist/chunks/cli-1.1.30-9rn8qz9x.mjs +2 -0
- package/dist/chunks/cli-1.1.30-9s9qp1m7.mjs +2 -0
- package/dist/chunks/cli-1.1.30-a1phf5vm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-a2ww16zh.mjs +2 -0
- package/dist/chunks/cli-1.1.30-a2xctbvc.mjs +18 -0
- package/dist/chunks/cli-1.1.30-amecp2v0.mjs +3 -0
- package/dist/chunks/cli-1.1.30-aqvjv0jh.mjs +4 -0
- package/dist/chunks/cli-1.1.30-aw93z4yt.mjs +2 -0
- package/dist/chunks/cli-1.1.30-b1mqmct7.mjs +4 -0
- package/dist/chunks/cli-1.1.30-bfqnz691.mjs +2 -0
- package/dist/chunks/cli-1.1.30-bgrp9j3q.mjs +2 -0
- package/dist/chunks/cli-1.1.30-bwdw42tf.mjs +24 -0
- package/dist/chunks/cli-1.1.30-bzjamz5p.mjs +2 -0
- package/dist/chunks/cli-1.1.30-c0b5kmhr.mjs +2 -0
- package/dist/chunks/cli-1.1.30-c2e2yeaj.mjs +2 -0
- package/dist/chunks/cli-1.1.30-c44kpd39.mjs +2 -0
- package/dist/chunks/cli-1.1.30-c70p43p6.mjs +133 -0
- package/dist/chunks/cli-1.1.30-c9xtenrd.mjs +2 -0
- package/dist/chunks/cli-1.1.30-ca1a9ntm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-cb34mrvh.mjs +2 -0
- package/dist/chunks/cli-1.1.30-cgcdnarw.mjs +2 -0
- package/dist/chunks/cli-1.1.30-cjetc80p.mjs +2 -0
- package/dist/chunks/cli-1.1.30-cwc68erm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-d3n6dp6r.mjs +2 -0
- package/dist/chunks/cli-1.1.30-d8chymja.mjs +2 -0
- package/dist/chunks/cli-1.1.30-d9sphwgb.mjs +3 -0
- package/dist/chunks/cli-1.1.30-dbbhdfn1.mjs +2 -0
- package/dist/chunks/cli-1.1.30-dv38qw87.mjs +3 -0
- package/dist/chunks/cli-1.1.30-e0fcx44n.mjs +2 -0
- package/dist/chunks/cli-1.1.30-e15hq24m.mjs +2 -0
- package/dist/chunks/cli-1.1.30-eg5krttf.mjs +2 -0
- package/dist/chunks/cli-1.1.30-ehk76t59.mjs +2 -0
- package/dist/chunks/cli-1.1.30-em031y3s.mjs +2 -0
- package/dist/chunks/cli-1.1.30-endh0hmx.mjs +2 -0
- package/dist/chunks/cli-1.1.30-ensp6hjk.mjs +2 -0
- package/dist/chunks/cli-1.1.30-erqva8zn.mjs +2 -0
- package/dist/chunks/cli-1.1.30-etnn22zf.mjs +2 -0
- package/dist/chunks/cli-1.1.30-f6tarbyn.mjs +2 -0
- package/dist/chunks/cli-1.1.30-f8qnd0hw.mjs +20 -0
- package/dist/chunks/cli-1.1.30-f9cckkn6.mjs +7 -0
- package/dist/chunks/cli-1.1.30-f9tp1b8r.mjs +6 -0
- package/dist/chunks/cli-1.1.30-facztg9n.mjs +133 -0
- package/dist/chunks/cli-1.1.30-fct5wt67.mjs +2 -0
- package/dist/chunks/cli-1.1.30-fm4mj7wy.mjs +2 -0
- package/dist/chunks/cli-1.1.30-fpa799y4.mjs +3 -0
- package/dist/chunks/cli-1.1.30-fzan6qjf.mjs +2 -0
- package/dist/chunks/cli-1.1.30-g17zgmea.mjs +3 -0
- package/dist/chunks/cli-1.1.30-g3qd3ec3.mjs +2 -0
- package/dist/chunks/cli-1.1.30-g4c9mx6r.mjs +2 -0
- package/dist/chunks/cli-1.1.30-g9qsgq1r.mjs +2 -0
- package/dist/chunks/cli-1.1.30-gdmbygdz.mjs +2 -0
- package/dist/chunks/cli-1.1.30-gev0f31f.mjs +24 -0
- package/dist/chunks/cli-1.1.30-gk8x7f6m.mjs +2 -0
- package/dist/chunks/cli-1.1.30-gncy6j5b.mjs +2 -0
- package/dist/chunks/cli-1.1.30-gv4z21b9.mjs +4 -0
- package/dist/chunks/cli-1.1.30-gvp1pabq.mjs +2 -0
- package/dist/chunks/cli-1.1.30-h5yj1axw.mjs +6 -0
- package/dist/chunks/cli-1.1.30-h9pfkdf2.mjs +2 -0
- package/dist/chunks/cli-1.1.30-ha9qd4n4.mjs +2 -0
- package/dist/chunks/cli-1.1.30-he73pyqy.mjs +2 -0
- package/dist/chunks/cli-1.1.30-hncb22wm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-hxy861gq.mjs +2 -0
- package/dist/chunks/cli-1.1.30-j29r8pgr.mjs +4 -0
- package/dist/chunks/cli-1.1.30-j2wahkcp.mjs +6 -0
- package/dist/chunks/cli-1.1.30-j46p2me4.mjs +3 -0
- package/dist/chunks/cli-1.1.30-jb34rbbt.mjs +7 -0
- package/dist/chunks/cli-1.1.30-jevxd0jk.mjs +2 -0
- package/dist/chunks/cli-1.1.30-jgxnrbme.mjs +2 -0
- package/dist/chunks/cli-1.1.30-jvqc1jfc.mjs +2 -0
- package/dist/chunks/cli-1.1.30-jyvb3jrk.mjs +3 -0
- package/dist/chunks/cli-1.1.30-kx2svwf6.mjs +2 -0
- package/dist/chunks/cli-1.1.30-kzbhw1mf.mjs +2 -0
- package/dist/chunks/cli-1.1.30-m5fx6y02.mjs +2 -0
- package/dist/chunks/cli-1.1.30-m5ta5zwh.mjs +2 -0
- package/dist/chunks/cli-1.1.30-m62yy9h8.mjs +2 -0
- package/dist/chunks/cli-1.1.30-mebteknr.mjs +206 -0
- package/dist/chunks/cli-1.1.30-mef66hvr.mjs +10 -0
- package/dist/chunks/cli-1.1.30-mgj06132.mjs +2 -0
- package/dist/chunks/cli-1.1.30-mpmg84pk.mjs +3 -0
- package/dist/chunks/cli-1.1.30-mz5a585j.mjs +9 -0
- package/dist/chunks/cli-1.1.30-n306djbd.mjs +2 -0
- package/dist/chunks/cli-1.1.30-naaxghkh.mjs +2 -0
- package/dist/chunks/cli-1.1.30-nhfsct38.mjs +2 -0
- package/dist/chunks/cli-1.1.30-p3m6d618.mjs +2 -0
- package/dist/chunks/cli-1.1.30-p63h2njx.mjs +42 -0
- package/dist/chunks/cli-1.1.30-p6bsj13y.mjs +2 -0
- package/dist/chunks/cli-1.1.30-pc2wp50b.mjs +5504 -0
- package/dist/chunks/cli-1.1.30-pc6nevmd.mjs +2 -0
- package/dist/chunks/cli-1.1.30-pez1sh7w.mjs +2 -0
- package/dist/chunks/cli-1.1.30-pg6jbgcq.mjs +12 -0
- package/dist/chunks/cli-1.1.30-pgx35gqd.mjs +2 -0
- package/dist/chunks/cli-1.1.30-pw08jvvr.mjs +3 -0
- package/dist/chunks/cli-1.1.30-pzp496y6.mjs +2 -0
- package/dist/chunks/cli-1.1.30-q00wdmf9.mjs +2 -0
- package/dist/chunks/cli-1.1.30-q51sf5gk.mjs +2 -0
- package/dist/chunks/cli-1.1.30-q8sd13v9.mjs +2 -0
- package/dist/chunks/cli-1.1.30-q8xgmv1x.mjs +39 -0
- package/dist/chunks/cli-1.1.30-qcwzchrc.mjs +2 -0
- package/dist/chunks/cli-1.1.30-qdnzwgr7.mjs +2 -0
- package/dist/chunks/cli-1.1.30-qjdmnkfj.mjs +2 -0
- package/dist/chunks/cli-1.1.30-qm4vn98q.mjs +2 -0
- package/dist/chunks/cli-1.1.30-qn71nvqn.mjs +2 -0
- package/dist/chunks/cli-1.1.30-qykdr3bk.mjs +2 -0
- package/dist/chunks/cli-1.1.30-r4ap6bq3.mjs +4 -0
- package/dist/chunks/cli-1.1.30-rdbwn1xc.mjs +2 -0
- package/dist/chunks/cli-1.1.30-rdgv4qpw.mjs +2 -0
- package/dist/chunks/cli-1.1.30-s2b0zbj0.mjs +1 -0
- package/dist/chunks/cli-1.1.30-s7f7x42j.mjs +2 -0
- package/dist/chunks/cli-1.1.30-sdxgwxfm.mjs +2 -0
- package/dist/chunks/cli-1.1.30-sgm7bcet.mjs +58 -0
- package/dist/chunks/cli-1.1.30-sr3wnzt7.mjs +17 -0
- package/dist/chunks/cli-1.1.30-syea4bx7.mjs +2 -0
- package/dist/chunks/cli-1.1.30-t27wxks6.mjs +6 -0
- package/dist/chunks/cli-1.1.30-tc8vq728.mjs +15 -0
- package/dist/chunks/cli-1.1.30-tcz89gqa.mjs +2 -0
- package/dist/chunks/cli-1.1.30-tt85hxby.mjs +25 -0
- package/dist/chunks/cli-1.1.30-ty0pw373.mjs +24 -0
- package/dist/chunks/cli-1.1.30-vcexen3n.mjs +2 -0
- package/dist/chunks/cli-1.1.30-vda14n5e.mjs +2 -0
- package/dist/chunks/cli-1.1.30-vf6wrqmh.mjs +2 -0
- package/dist/chunks/cli-1.1.30-vhh5kt6v.mjs +2 -0
- package/dist/chunks/cli-1.1.30-vrgnzjd2.mjs +2 -0
- package/dist/chunks/cli-1.1.30-w9wdamqc.mjs +34 -0
- package/dist/chunks/cli-1.1.30-wfs29rd9.mjs +12 -0
- package/dist/chunks/cli-1.1.30-wgmdrp34.mjs +2 -0
- package/dist/chunks/cli-1.1.30-wjx6yhry.mjs +2 -0
- package/dist/chunks/cli-1.1.30-wmpgbhw0.mjs +16 -0
- package/dist/chunks/cli-1.1.30-x76str7r.mjs +3 -0
- package/dist/chunks/cli-1.1.30-x8wzmxay.mjs +2 -0
- package/dist/chunks/cli-1.1.30-x960htw5.mjs +2 -0
- package/dist/chunks/cli-1.1.30-xhk0n48x.mjs +2 -0
- package/dist/chunks/cli-1.1.30-xqb55m51.mjs +2 -0
- package/dist/chunks/cli-1.1.30-xrrzhx6s.mjs +5 -0
- package/dist/chunks/cli-1.1.30-xxvagrpc.mjs +2 -0
- package/dist/chunks/cli-1.1.30-ycv7a9hg.mjs +2 -0
- package/dist/chunks/cli-1.1.30-ygdwz4ed.mjs +4 -0
- package/dist/chunks/cli-1.1.30-yt59tc1t.mjs +2 -0
- package/dist/chunks/cli-1.1.30-yw5qpt76.mjs +2 -0
- package/dist/chunks/cli-1.1.30-yy92v8yq.mjs +63 -0
- package/dist/chunks/cli-1.1.30-z1e7k65a.mjs +5 -0
- package/dist/chunks/cli-1.1.30-z9xfs5zq.mjs +2 -0
- package/dist/chunks/cli-1.1.30-zfz29t3v.mjs +3 -0
- package/dist/chunks/cli-1.1.30-zj3nk96z.mjs +2 -0
- package/dist/chunks/cli-1.1.30-zm2e2zvb.mjs +2 -0
- package/dist/chunks/cli-1.1.30-zpss0nht.mjs +3 -0
- package/dist/chunks/cli-1.1.30-zxkfqcvj.mjs +2 -0
- package/dist/chunks/cli-1.1.30-zych8w4z.mjs +45 -0
- package/dist/chunks/client-1.1.30-6xd07jrd.mjs +1 -0
- package/dist/chunks/color-1.1.30-yhxh49s0.mjs +1 -0
- package/dist/chunks/compact-1.1.30-wxxb111z.mjs +3 -0
- package/dist/chunks/config-1.1.30-4gdp5w7v.mjs +1 -0
- package/dist/chunks/config-1.1.30-s02sv9vf.mjs +1 -0
- package/dist/chunks/constants-1.1.30-g1xm727k.mjs +1 -0
- package/dist/chunks/context-1.1.30-pepgc836.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.30-ahdmm09h.mjs +1 -0
- package/dist/chunks/conversation-1.1.30-93marv3a.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.30-ypx3j03s.mjs +1 -0
- package/dist/chunks/copy-1.1.30-bsfx33za.mjs +9 -0
- package/dist/chunks/cost-1.1.30-rhgx2a0h.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.30-p5qve4c1.mjs +1 -0
- package/dist/chunks/createSession-1.1.30-rwvvv9na.mjs +1 -0
- package/dist/chunks/debug-1.1.30-j1zw0q5b.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.30-5gkcnqp5.mjs +1481 -0
- package/dist/chunks/desktop-1.1.30-rwbfgek7.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.30-2xwvggy6.mjs +1 -0
- package/dist/chunks/detection-1.1.30-kkar89w6.mjs +1 -0
- package/dist/chunks/diff-1.1.30-t1r0x9g4.mjs +1 -0
- package/dist/chunks/doctor-1.1.30-cvqts45f.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.30-smg0046q.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.30-cpx4e858.mjs +1 -0
- package/dist/chunks/effort-1.1.30-jdxyeqz7.mjs +13 -0
- package/dist/chunks/engine-1.1.30-8qhtasfe.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.30-jnz4sy6x.mjs +1 -0
- package/dist/chunks/envUtils-1.1.30-y5dyaydm.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.30-w1z47qad.mjs +1 -0
- package/dist/chunks/environments-1.1.30-sjscvfn9.mjs +1 -0
- package/dist/chunks/errors-1.1.30-7cmbc98j.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.30-jx9hvt2q.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.30-dqrsra7k.mjs +1 -0
- package/dist/chunks/exit-1.1.30-m2yzbcth.mjs +1 -0
- package/dist/chunks/explorer-1.1.30-5tat30es.mjs +1 -0
- package/dist/chunks/export-1.1.30-545a0v8x.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.30-5k9b4t6b.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.30-h5fqbtg3.mjs +1 -0
- package/dist/chunks/fast-1.1.30-91wr1vy4.mjs +1 -0
- package/dist/chunks/feedback-1.1.30-36xrb399.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.30-be1ke8r3.mjs +1 -0
- package/dist/chunks/git-1.1.30-sxa8xf85.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.30-m7a8kdwg.mjs +1 -0
- package/dist/chunks/goal-1.1.30-71sj2735.mjs +4 -0
- package/dist/chunks/growthbook-1.1.30-rx44zvrq.mjs +1 -0
- package/dist/chunks/headless-1.1.30-h98t9mfb.mjs +2 -0
- package/dist/chunks/heapdump-1.1.30-82m1rvjw.mjs +6 -0
- package/dist/chunks/help-1.1.30-vnsg1001.mjs +1 -0
- package/dist/chunks/hookChains-1.1.30-tc5ff3xr.mjs +3 -0
- package/dist/chunks/hooks-1.1.30-2sctf45c.mjs +79 -0
- package/dist/chunks/hooks-1.1.30-707b390t.mjs +1 -0
- package/dist/chunks/ide-1.1.30-e8neepsj.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.30-gcqgfeec.mjs +1 -0
- package/dist/chunks/import-1.1.30-g0p9rj63.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.30-a5p4ftqg.mjs +1 -0
- package/dist/chunks/index-1.1.30-00d73fwg.mjs +1 -0
- package/dist/chunks/index-1.1.30-0sdck5q1.mjs +9 -0
- package/dist/chunks/index-1.1.30-38597fv3.mjs +5 -0
- package/dist/chunks/index-1.1.30-3z58evcj.mjs +1 -0
- package/dist/chunks/index-1.1.30-5k081eyt.mjs +1 -0
- package/dist/chunks/index-1.1.30-8n15b4e3.mjs +2 -0
- package/dist/chunks/index-1.1.30-9nx8fm72.mjs +1 -0
- package/dist/chunks/index-1.1.30-9zfyk995.mjs +23 -0
- package/dist/chunks/index-1.1.30-ba27qy75.mjs +1 -0
- package/dist/chunks/index-1.1.30-cddndqaa.mjs +1 -0
- package/dist/chunks/index-1.1.30-cnbcr7zp.mjs +1 -0
- package/dist/chunks/index-1.1.30-f65yg5kz.mjs +9 -0
- package/dist/chunks/index-1.1.30-fwvhky1a.mjs +1 -0
- package/dist/chunks/index-1.1.30-hmnpjmd5.mjs +1 -0
- package/dist/chunks/index-1.1.30-nemv1gaj.mjs +1 -0
- package/dist/chunks/index-1.1.30-pnpy7v0s.mjs +1 -0
- package/dist/chunks/index-1.1.30-q4x054c8.mjs +2 -0
- package/dist/chunks/index-1.1.30-racdqjba.mjs +1 -0
- package/dist/chunks/index-1.1.30-scb66j47.mjs +1 -0
- package/dist/chunks/index-1.1.30-tfz6950h.mjs +30 -0
- package/dist/chunks/index-1.1.30-tx381qq5.mjs +1 -0
- package/dist/chunks/index-1.1.30-w4zhj1qd.mjs +1 -0
- package/dist/chunks/index-1.1.30-xxh224ea.mjs +1 -0
- package/dist/chunks/init-1.1.30-txzpz2vm.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.30-hkrhwfr3.mjs +1 -0
- package/dist/chunks/ink-1.1.30-av1t4b54.mjs +1 -0
- package/dist/chunks/insights-1.1.30-nbs0zndp.mjs +870 -0
- package/dist/chunks/install-1.1.30-kd3vnaat.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.30-ea78ytf6.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.30-v2q1py01.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.30-20686d7h.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.30-rd0zzjyp.mjs +1 -0
- package/dist/chunks/keybindings-1.1.30-157aap7w.mjs +2 -0
- package/dist/chunks/knowledge-1.1.30-4mcx1txk.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.30-65qvjpys.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.30-nfrca2zv.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.30-wa8regkc.mjs +1 -0
- package/dist/chunks/log-1.1.30-nh81h0jz.mjs +1 -0
- package/dist/chunks/main-1.1.30-87zf4enf.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.30-p38nd6r6.mjs +1 -0
- package/dist/chunks/mcp-1.1.30-egynhffm.mjs +17 -0
- package/dist/chunks/mcp-1.1.30-gaz9mgmq.mjs +4 -0
- package/dist/chunks/mcp-1.1.30-r6q89d8c.mjs +1 -0
- package/dist/chunks/mcpb-1.1.30-qxpx83j6.mjs +1 -0
- package/dist/chunks/memory-1.1.30-72gbfb3b.mjs +77 -0
- package/dist/chunks/model-1.1.30-7nsbqqvm.mjs +2 -0
- package/dist/chunks/model-1.1.30-f7d6dbt2.mjs +1 -0
- package/dist/chunks/node-1.1.30-nbnhkya6.mjs +15 -0
- package/dist/chunks/node-1.1.30-vaaf7x0g.mjs +1 -0
- package/dist/chunks/oauth-1.1.30-g201gbyg.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.30-rz4xax1e.mjs +14 -0
- package/dist/chunks/output-style-1.1.30-ms4eck90.mjs +1 -0
- package/dist/chunks/package-D2QZMRW7-1.1.30-08c7mgpt.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.30-bd7ade4m.mjs +1 -0
- package/dist/chunks/parser-1.1.30-qe7n0vnw.mjs +1 -0
- package/dist/chunks/passes-1.1.30-3cz64bpa.mjs +1 -0
- package/dist/chunks/permissions-1.1.30-28z7ax7g.mjs +3 -0
- package/dist/chunks/permissions-1.1.30-vgtb4qf9.mjs +1 -0
- package/dist/chunks/plan-1.1.30-s865r5b5.mjs +1 -0
- package/dist/chunks/plist-1.1.30-pxa62mce.mjs +1 -0
- package/dist/chunks/plugin-1.1.30-6apj9sf8.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.30-gmcab9kx.mjs +1 -0
- package/dist/chunks/plugins-1.1.30-40c7sagf.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.30-q2g48qsk.mjs +2 -0
- package/dist/chunks/print-1.1.30-drvg0v0c.mjs +57 -0
- package/dist/chunks/process-1.1.30-f6y2msx6.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.30-5bzgcejg.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.30-2bwd1kpt.mjs +9 -0
- package/dist/chunks/prompt-1.1.30-9rbbx5vr.mjs +1 -0
- package/dist/chunks/prompt-1.1.30-phmv317m.mjs +1 -0
- package/dist/chunks/prompts-1.1.30-1myv5ewh.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.30-d6jkd0dk.mjs +13 -0
- package/dist/chunks/provider-1.1.30-cwkzb2t8.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.30-qe0y7b6e.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.30-rzg2nkx3.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.30-4q04y9f7.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.30-k3ar1dyg.mjs +26 -0
- package/dist/chunks/registry-1.1.30-epdyxcsa.mjs +1 -0
- package/dist/chunks/release-notes-1.1.30-k11yp5hh.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.30-n7qhqqr3.mjs +2 -0
- package/dist/chunks/remote-env-1.1.30-f8e03jpx.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.30-fqankvvx.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.30-fc5x1bz4.mjs +1 -0
- package/dist/chunks/rename-1.1.30-vw8eyfha.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.30-bagtg7fm.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.30-318vaq80.mjs +1 -0
- package/dist/chunks/resume-1.1.30-jrj1wpvj.mjs +2 -0
- package/dist/chunks/rewind-1.1.30-z97mdn25.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.30-ybrgmmyy.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.30-w3gn8w75.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.30-4rd9w5by.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.30-zmtfq25w.mjs +1 -0
- package/dist/chunks/session-1.1.30-sbykpbav.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.30-dd680nx7.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.30-4rhdr018.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.30-cwb5a83p.mjs +1 -0
- package/dist/chunks/settings-1.1.30-xxee6nzb.mjs +1 -0
- package/dist/chunks/setup-1.1.30-p2wwqw6v.mjs +12 -0
- package/dist/chunks/sinks-1.1.30-phkc3yep.mjs +1 -0
- package/dist/chunks/skills-1.1.30-vsg5twx1.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.30-wa0xbx1z.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.30-9cgnvwtt.mjs +1 -0
- package/dist/chunks/state-1.1.30-ge0kb9gr.mjs +1 -0
- package/dist/chunks/stats-1.1.30-n5w7ehyg.mjs +1 -0
- package/dist/chunks/status-1.1.30-snsvg4xb.mjs +1 -0
- package/dist/chunks/stickers-1.1.30-7ffpw08c.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.30-5efpmhgz.mjs +1 -0
- package/dist/chunks/tasks-1.1.30-ykgkx7d8.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.30-cjjzmnj6.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.30-e2mh88ze.mjs +1 -0
- package/dist/chunks/teleport-1.1.30-9y1akw6m.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.30-mwbzfrfc.mjs +1 -0
- package/dist/chunks/theme-1.1.30-9dqykgv2.mjs +1 -0
- package/dist/chunks/thinkback-1.1.30-3pbzqt97.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.30-83akae4q.mjs +1 -0
- package/dist/chunks/toolPool-1.1.30-3kvrwtxa.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.30-s60zcj4t.mjs +1 -0
- package/dist/chunks/tools-1.1.30-by0ddhf4.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.30-ecq2hfrc.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.30-m5hyejns.mjs +69 -0
- package/dist/chunks/types-1.1.30-mrv5q877.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.30-5etzjedp.mjs +4 -0
- package/dist/chunks/update-1.1.30-ax60cy72.mjs +72 -0
- package/dist/chunks/upgrade-1.1.30-hrny7f12.mjs +1 -0
- package/dist/chunks/upload-1.1.30-s0z8kw2s.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.30-tkvbafsh.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.30-enhczdhm.mjs +1 -0
- package/dist/chunks/usage-1.1.30-ew9dakf2.mjs +1 -0
- package/dist/chunks/util-1.1.30-knp77fm5.mjs +1 -0
- package/dist/chunks/utils-1.1.30-74ykpfac.mjs +1 -0
- package/dist/chunks/vim-1.1.30-y01vnb23.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.30-sjecqqx4.mjs +13 -0
- package/dist/chunks/watcher-1.1.30-qnfq5sma.mjs +1 -0
- package/dist/chunks/wiki-1.1.30-qddcp6x2.mjs +132 -0
- package/dist/chunks/workflows-1.1.30-j5wcb76g.mjs +1 -0
- package/dist/chunks/worktree-1.1.30-m6gvqkc9.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.30-nma5ggmd.mjs +1 -0
- package/dist/chunks/wrapper-1.1.30-c8vm3try.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.28-hdgcephe.mjs +0 -1
- package/dist/chunks/App-1.1.28-rdhr58j6.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.28-dn460p70.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.28-k16de89c.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.28-19td2te8.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.28-011pgh7b.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.28-ych5693j.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.28-7p5bx0b5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.28-nkct57y5.mjs +0 -6
- package/dist/chunks/Doctor-1.1.28-xerfvzx5.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.28-ne9ftnxx.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.28-07enf929.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.28-mcsd53vd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.28-rmrgfzbv.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.28-w5mh2w2b.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.28-7q9nc8c9.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.28-08ytr6ma.mjs +0 -1
- package/dist/chunks/REPL-1.1.28-pxy1ag0k.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.28-b2pk1nan.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.28-xa772x92.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.28-6x6ca6kq.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.28-vy7p3j3e.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.28-egnv67by.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.28-y1ss2e0h.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.28-7w099741.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.28-49aey2f6.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.28-gw9e23bc.mjs +0 -1
- package/dist/chunks/add-dir-1.1.28-5j989gf2.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.28-hxk0wpj5.mjs +0 -1
- package/dist/chunks/agents-1.1.28-3yth9sa4.mjs +0 -110
- package/dist/chunks/agents-1.1.28-4qdh001q.mjs +0 -3
- package/dist/chunks/api-1.1.28-znpy0eyy.mjs +0 -1
- package/dist/chunks/asciicast-1.1.28-r6dsend4.mjs +0 -1
- package/dist/chunks/assistant-1.1.28-16hn1f6b.mjs +0 -1
- package/dist/chunks/auth-1.1.28-bw7dane8.mjs +0 -1
- package/dist/chunks/auth-1.1.28-ht6j3ag3.mjs +0 -1
- package/dist/chunks/autoMode-1.1.28-nyaf1s0s.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.28-sjjeha2m.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.28-070wmr6y.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.28-y5mjznxx.mjs +0 -1
- package/dist/chunks/branch-1.1.28-5d97ysjr.mjs +0 -4
- package/dist/chunks/bridge-1.1.28-62qv0wgq.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.28-m986jcxg.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.28-0fs5tkxx.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.28-pyr5gvmx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.28-wpzz2yca.mjs +0 -1
- package/dist/chunks/btw-1.1.28-p1tk901s.mjs +0 -1
- package/dist/chunks/buddy-1.1.28-thrnzpdp.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.28-bb4xsnev.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.28-9p9fmxas.mjs +0 -4
- package/dist/chunks/caches-1.1.28-t6dq2xtp.mjs +0 -1
- package/dist/chunks/cd-1.1.28-84z1kqam.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.28-3x0y2w87.mjs +0 -1
- package/dist/chunks/claudemd-1.1.28-skmb6ar5.mjs +0 -1
- package/dist/chunks/clear-1.1.28-78f1rnc5.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.28-sx5qqtxb.mjs +0 -1
- package/dist/chunks/cli-1.1.28-01g60h7m.mjs +0 -2
- package/dist/chunks/cli-1.1.28-040xb4f8.mjs +0 -2
- package/dist/chunks/cli-1.1.28-0c0kb6x2.mjs +0 -24
- package/dist/chunks/cli-1.1.28-0njtm2nf.mjs +0 -60
- package/dist/chunks/cli-1.1.28-0vgve5rw.mjs +0 -24
- package/dist/chunks/cli-1.1.28-12g8qyfk.mjs +0 -58
- package/dist/chunks/cli-1.1.28-130w2y17.mjs +0 -50
- package/dist/chunks/cli-1.1.28-13j6r7pz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-14abe08r.mjs +0 -4
- package/dist/chunks/cli-1.1.28-1jd8x2af.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1mscaejt.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1q409efb.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1rrn1mhr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-1vrff9a3.mjs +0 -5
- package/dist/chunks/cli-1.1.28-2arzkhzs.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2dafhgjv.mjs +0 -34
- package/dist/chunks/cli-1.1.28-2esp2ssp.mjs +0 -6
- package/dist/chunks/cli-1.1.28-2q7dztmb.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2wem9fnx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2ykcw73j.mjs +0 -2
- package/dist/chunks/cli-1.1.28-2zhmwh7t.mjs +0 -2
- package/dist/chunks/cli-1.1.28-30yw5q4z.mjs +0 -4
- package/dist/chunks/cli-1.1.28-347ygvzg.mjs +0 -6
- package/dist/chunks/cli-1.1.28-36891pwy.mjs +0 -2
- package/dist/chunks/cli-1.1.28-36y6830c.mjs +0 -2
- package/dist/chunks/cli-1.1.28-37rkgevh.mjs +0 -2
- package/dist/chunks/cli-1.1.28-3bj091x6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-3fssr567.mjs +0 -2
- package/dist/chunks/cli-1.1.28-3p6j7k4a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4kda7s33.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4kxqqtpz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4mpm44jj.mjs +0 -9
- package/dist/chunks/cli-1.1.28-4qh42y9g.mjs +0 -2
- package/dist/chunks/cli-1.1.28-4sx3zr2c.mjs +0 -3
- package/dist/chunks/cli-1.1.28-58rs1ja0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-5edzsdcr.mjs +0 -6
- package/dist/chunks/cli-1.1.28-5y1xeh89.mjs +0 -206
- package/dist/chunks/cli-1.1.28-638dshxx.mjs +0 -42
- package/dist/chunks/cli-1.1.28-6bc84c0n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-6x9c71q9.mjs +0 -2
- package/dist/chunks/cli-1.1.28-6y7vtevf.mjs +0 -17
- package/dist/chunks/cli-1.1.28-75thpvfa.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7amn29ks.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7e3nqd5c.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7fz4fqgd.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7g65bppm.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7nye6zs7.mjs +0 -4
- package/dist/chunks/cli-1.1.28-7pmtq82j.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7vvtkeeh.mjs +0 -25
- package/dist/chunks/cli-1.1.28-7x94aewp.mjs +0 -2
- package/dist/chunks/cli-1.1.28-7zpfvkxq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-81p0zmxc.mjs +0 -2
- package/dist/chunks/cli-1.1.28-83k0knzj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-8ahmbnjh.mjs +0 -2
- package/dist/chunks/cli-1.1.28-8avwqt1z.mjs +0 -4
- package/dist/chunks/cli-1.1.28-8jrfznkw.mjs +0 -2
- package/dist/chunks/cli-1.1.28-8v2vx373.mjs +0 -2
- package/dist/chunks/cli-1.1.28-943993zt.mjs +0 -2
- package/dist/chunks/cli-1.1.28-94sk1z8g.mjs +0 -5
- package/dist/chunks/cli-1.1.28-95fs05hq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-9e74kqtd.mjs +0 -2
- package/dist/chunks/cli-1.1.28-9s4pee5a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-a00k75hj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-a79xcdg3.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ad15rvp0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ak2bzv1v.mjs +0 -16
- package/dist/chunks/cli-1.1.28-atrbc4s7.mjs +0 -2
- package/dist/chunks/cli-1.1.28-avxe0zxq.mjs +0 -15
- package/dist/chunks/cli-1.1.28-b2jq83aj.mjs +0 -15
- package/dist/chunks/cli-1.1.28-be8cxh1e.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bfs5hmfp.mjs +0 -3
- package/dist/chunks/cli-1.1.28-bqtpnyqr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-brh6rw23.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bsqgt8m4.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bwbz3v3j.mjs +0 -2
- package/dist/chunks/cli-1.1.28-bwgr7j8z.mjs +0 -2
- package/dist/chunks/cli-1.1.28-by5acg3a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-c9nh8cpr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-cb5wemmj.mjs +0 -7
- package/dist/chunks/cli-1.1.28-cfq2wwx5.mjs +0 -2
- package/dist/chunks/cli-1.1.28-cyrrpdkd.mjs +0 -2
- package/dist/chunks/cli-1.1.28-d5h3kve6.mjs +0 -24
- package/dist/chunks/cli-1.1.28-davs3ve8.mjs +0 -58
- package/dist/chunks/cli-1.1.28-denmqz0s.mjs +0 -2
- package/dist/chunks/cli-1.1.28-dqsxqszf.mjs +0 -2
- package/dist/chunks/cli-1.1.28-dy3tnnyd.mjs +0 -3
- package/dist/chunks/cli-1.1.28-e2mfhtpx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-egskcwa5.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ek683x01.mjs +0 -2
- package/dist/chunks/cli-1.1.28-epzkhgww.mjs +0 -2
- package/dist/chunks/cli-1.1.28-erqn7gwg.mjs +0 -6
- package/dist/chunks/cli-1.1.28-es8var4t.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ev0gfjgf.mjs +0 -24
- package/dist/chunks/cli-1.1.28-evvcbjb6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-f0vrbk1t.mjs +0 -2
- package/dist/chunks/cli-1.1.28-f1n8p9v2.mjs +0 -12
- package/dist/chunks/cli-1.1.28-f3rdt4zg.mjs +0 -2
- package/dist/chunks/cli-1.1.28-f8av9yzr.mjs +0 -39
- package/dist/chunks/cli-1.1.28-fetsedc8.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ffy07rnm.mjs +0 -2
- package/dist/chunks/cli-1.1.28-fjbefwwe.mjs +0 -2
- package/dist/chunks/cli-1.1.28-fnd6z5bq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-fv1twt9b.mjs +0 -8
- package/dist/chunks/cli-1.1.28-h00s5n5y.mjs +0 -2
- package/dist/chunks/cli-1.1.28-h7p3dmnv.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hb02sa63.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hkfays5k.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hx5j3q23.mjs +0 -17
- package/dist/chunks/cli-1.1.28-hxbkncxe.mjs +0 -2
- package/dist/chunks/cli-1.1.28-hyd7kkyr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-j5m0kc75.mjs +0 -3
- package/dist/chunks/cli-1.1.28-j6nysca9.mjs +0 -2
- package/dist/chunks/cli-1.1.28-jqnzq23v.mjs +0 -3
- package/dist/chunks/cli-1.1.28-jr3jtfkf.mjs +0 -2
- package/dist/chunks/cli-1.1.28-jwg70mjs.mjs +0 -2
- package/dist/chunks/cli-1.1.28-k0ewezmj.mjs +0 -20
- package/dist/chunks/cli-1.1.28-k10f3f7z.mjs +0 -3
- package/dist/chunks/cli-1.1.28-k7pnt9ba.mjs +0 -2
- package/dist/chunks/cli-1.1.28-kaddwxsy.mjs +0 -2
- package/dist/chunks/cli-1.1.28-kc8f0nz7.mjs +0 -3
- package/dist/chunks/cli-1.1.28-khcgtk4a.mjs +0 -2
- package/dist/chunks/cli-1.1.28-knfg26kb.mjs +0 -2
- package/dist/chunks/cli-1.1.28-m6k4d2wx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mdexghj2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mk8zwqb2.mjs +0 -4
- package/dist/chunks/cli-1.1.28-mkm05wf9.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mpjz8znf.mjs +0 -3
- package/dist/chunks/cli-1.1.28-mqmy0gy0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mvkxhjmj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-mx413hqd.mjs +0 -3
- package/dist/chunks/cli-1.1.28-n2jx5w3n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-n7v87yyn.mjs +0 -2
- package/dist/chunks/cli-1.1.28-n8d1x31e.mjs +0 -2
- package/dist/chunks/cli-1.1.28-neqd5cwa.mjs +0 -2
- package/dist/chunks/cli-1.1.28-nq2qxnzx.mjs +0 -10
- package/dist/chunks/cli-1.1.28-nqjbqqb6.mjs +0 -4
- package/dist/chunks/cli-1.1.28-nyvjfkx6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-p11zcjmv.mjs +0 -2
- package/dist/chunks/cli-1.1.28-pabfwpqr.mjs +0 -2
- package/dist/chunks/cli-1.1.28-pdxwmetp.mjs +0 -25
- package/dist/chunks/cli-1.1.28-pfnc9p9n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-prd0t983.mjs +0 -9
- package/dist/chunks/cli-1.1.28-pykx8k1j.mjs +0 -4
- package/dist/chunks/cli-1.1.28-q14qmewe.mjs +0 -2
- package/dist/chunks/cli-1.1.28-q43r6snq.mjs +0 -2
- package/dist/chunks/cli-1.1.28-q6dv65zx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qb921m5a.mjs +0 -3
- package/dist/chunks/cli-1.1.28-qf1qq8t0.mjs +0 -3
- package/dist/chunks/cli-1.1.28-qhqkr80z.mjs +0 -45
- package/dist/chunks/cli-1.1.28-qj312jgw.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qjn28vhw.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qrx5ata3.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qvpamm5s.mjs +0 -4
- package/dist/chunks/cli-1.1.28-qvr8rkg2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-qzg6n6hj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-r81y1681.mjs +0 -3
- package/dist/chunks/cli-1.1.28-rbjeq16x.mjs +0 -2
- package/dist/chunks/cli-1.1.28-rbne7wtq.mjs +0 -4
- package/dist/chunks/cli-1.1.28-rez81jab.mjs +0 -6
- package/dist/chunks/cli-1.1.28-rq49kn4q.mjs +0 -2
- package/dist/chunks/cli-1.1.28-rt0aect8.mjs +0 -2
- package/dist/chunks/cli-1.1.28-rwfwz209.mjs +0 -2
- package/dist/chunks/cli-1.1.28-s1pbcd86.mjs +0 -3
- package/dist/chunks/cli-1.1.28-s2pcpdyc.mjs +0 -2
- package/dist/chunks/cli-1.1.28-s6w8jb6z.mjs +0 -2
- package/dist/chunks/cli-1.1.28-smb1frk6.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ss8nzmnb.mjs +0 -12
- package/dist/chunks/cli-1.1.28-sx3mmc5d.mjs +0 -2
- package/dist/chunks/cli-1.1.28-sz8sgxj4.mjs +0 -2
- package/dist/chunks/cli-1.1.28-t5yawarz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-tt0c354s.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v1p12e3g.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v5r7bmzh.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v5ypq0r2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-v6ewa1y0.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vctvnrwx.mjs +0 -133
- package/dist/chunks/cli-1.1.28-vf3j29kt.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vgfss8e4.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vje1ac31.mjs +0 -7
- package/dist/chunks/cli-1.1.28-vphadsag.mjs +0 -2
- package/dist/chunks/cli-1.1.28-vyzp74xh.mjs +0 -3
- package/dist/chunks/cli-1.1.28-w0kxa99b.mjs +0 -2
- package/dist/chunks/cli-1.1.28-w6cd3j36.mjs +0 -20
- package/dist/chunks/cli-1.1.28-wew8jymx.mjs +0 -2
- package/dist/chunks/cli-1.1.28-wmyy1pdj.mjs +0 -2
- package/dist/chunks/cli-1.1.28-wvj52k91.mjs +0 -2
- package/dist/chunks/cli-1.1.28-wze93r29.mjs +0 -2
- package/dist/chunks/cli-1.1.28-x04zkwy5.mjs +0 -18
- package/dist/chunks/cli-1.1.28-x0ypcq4e.mjs +0 -2
- package/dist/chunks/cli-1.1.28-x13sctb2.mjs +0 -2
- package/dist/chunks/cli-1.1.28-xv2tg10n.mjs +0 -2
- package/dist/chunks/cli-1.1.28-y173v5ak.mjs +0 -133
- package/dist/chunks/cli-1.1.28-y4k1f7he.mjs +0 -2
- package/dist/chunks/cli-1.1.28-y5w3ev7m.mjs +0 -2
- package/dist/chunks/cli-1.1.28-yaa1gft3.mjs +0 -15
- package/dist/chunks/cli-1.1.28-ypzyse5q.mjs +0 -2
- package/dist/chunks/cli-1.1.28-yv5gzenz.mjs +0 -2
- package/dist/chunks/cli-1.1.28-yyk292aq.mjs +0 -6
- package/dist/chunks/cli-1.1.28-z4kzjv3v.mjs +0 -21
- package/dist/chunks/cli-1.1.28-z5mbbt38.mjs +0 -2
- package/dist/chunks/cli-1.1.28-zarbrcn7.mjs +0 -2
- package/dist/chunks/cli-1.1.28-ze1j03ww.mjs +0 -1
- package/dist/chunks/cli-1.1.28-zhftjycn.mjs +0 -5553
- package/dist/chunks/cli-1.1.28-zqpvgqxf.mjs +0 -2
- package/dist/chunks/cli-1.1.28-zv9zfwz9.mjs +0 -2
- package/dist/chunks/client-1.1.28-59t63af8.mjs +0 -1
- package/dist/chunks/color-1.1.28-gmbrq89g.mjs +0 -1
- package/dist/chunks/compact-1.1.28-14hmkmd6.mjs +0 -3
- package/dist/chunks/config-1.1.28-b69ey9g1.mjs +0 -1
- package/dist/chunks/config-1.1.28-cryax439.mjs +0 -1
- package/dist/chunks/constants-1.1.28-63cv4s6z.mjs +0 -1
- package/dist/chunks/context-1.1.28-09kfp2sa.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.28-h9279pbh.mjs +0 -1
- package/dist/chunks/conversation-1.1.28-qnj7ywxq.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.28-yjrmx9z1.mjs +0 -1
- package/dist/chunks/copy-1.1.28-az1n9y3n.mjs +0 -9
- package/dist/chunks/cost-1.1.28-507xt42s.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.28-m9ecjhc1.mjs +0 -1
- package/dist/chunks/createSession-1.1.28-gbrmw9ad.mjs +0 -1
- package/dist/chunks/debug-1.1.28-k9m06yz6.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.28-4sxh2jyw.mjs +0 -1534
- package/dist/chunks/desktop-1.1.28-ycc1hv5c.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.28-mxrqqjv6.mjs +0 -1
- package/dist/chunks/detection-1.1.28-06p2mev8.mjs +0 -1
- package/dist/chunks/diff-1.1.28-d9a2n60t.mjs +0 -1
- package/dist/chunks/doctor-1.1.28-qef12k2p.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.28-v5rq4x27.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.28-xr89w719.mjs +0 -1
- package/dist/chunks/effort-1.1.28-yjbwr68r.mjs +0 -13
- package/dist/chunks/engine-1.1.28-yv6qdcgp.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.28-tpjzc2ar.mjs +0 -1
- package/dist/chunks/envUtils-1.1.28-n17cxj8h.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.28-c7vj172q.mjs +0 -1
- package/dist/chunks/environments-1.1.28-08b7gpg6.mjs +0 -1
- package/dist/chunks/errors-1.1.28-eysc80qa.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.28-gk1ma509.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.28-4nc53n56.mjs +0 -1
- package/dist/chunks/exit-1.1.28-7rjnfzc2.mjs +0 -1
- package/dist/chunks/explorer-1.1.28-hf7jvkfg.mjs +0 -1
- package/dist/chunks/export-1.1.28-3xgdy7gr.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.28-6wkgsscs.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.28-03hnqa8n.mjs +0 -1
- package/dist/chunks/fast-1.1.28-gf0rb9by.mjs +0 -1
- package/dist/chunks/feedback-1.1.28-dvdyq5v7.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.28-rd6eskzg.mjs +0 -1
- package/dist/chunks/git-1.1.28-ktf61jaz.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.28-re8t0b2z.mjs +0 -1
- package/dist/chunks/goal-1.1.28-s7n55rqn.mjs +0 -4
- package/dist/chunks/growthbook-1.1.28-jcs0qzz8.mjs +0 -1
- package/dist/chunks/headless-1.1.28-yzfk04g2.mjs +0 -2
- package/dist/chunks/heapdump-1.1.28-hgfac8pe.mjs +0 -6
- package/dist/chunks/help-1.1.28-yhrv28x1.mjs +0 -1
- package/dist/chunks/hookChains-1.1.28-9y5pz734.mjs +0 -3
- package/dist/chunks/hooks-1.1.28-pwy1h39c.mjs +0 -79
- package/dist/chunks/hooks-1.1.28-xhtrbwa5.mjs +0 -1
- package/dist/chunks/ide-1.1.28-27vb56tk.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.28-b092deny.mjs +0 -1
- package/dist/chunks/import-1.1.28-bqs6ebec.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.28-0jb4nc2j.mjs +0 -1
- package/dist/chunks/index-1.1.28-0p3tfhd7.mjs +0 -23
- package/dist/chunks/index-1.1.28-30ges9rx.mjs +0 -1
- package/dist/chunks/index-1.1.28-3kg2kmpd.mjs +0 -1
- package/dist/chunks/index-1.1.28-76ztpb54.mjs +0 -1
- package/dist/chunks/index-1.1.28-a6fzpa8n.mjs +0 -1
- package/dist/chunks/index-1.1.28-ac1sbem8.mjs +0 -9
- package/dist/chunks/index-1.1.28-axnrgqkq.mjs +0 -1
- package/dist/chunks/index-1.1.28-b5b1qact.mjs +0 -1
- package/dist/chunks/index-1.1.28-bqm5cnw1.mjs +0 -1
- package/dist/chunks/index-1.1.28-bt937784.mjs +0 -1
- package/dist/chunks/index-1.1.28-bxtzy977.mjs +0 -2
- package/dist/chunks/index-1.1.28-dgnx1m4x.mjs +0 -9
- package/dist/chunks/index-1.1.28-dtfxav1q.mjs +0 -1
- package/dist/chunks/index-1.1.28-gk3v69b8.mjs +0 -1
- package/dist/chunks/index-1.1.28-m2nnkj3d.mjs +0 -1
- package/dist/chunks/index-1.1.28-qk8rhq5n.mjs +0 -1
- package/dist/chunks/index-1.1.28-vgc6r0g0.mjs +0 -1
- package/dist/chunks/index-1.1.28-w2a4k4md.mjs +0 -2
- package/dist/chunks/index-1.1.28-wajajmmp.mjs +0 -1
- package/dist/chunks/index-1.1.28-xaw4tf13.mjs +0 -30
- package/dist/chunks/index-1.1.28-y7jd8m9f.mjs +0 -1
- package/dist/chunks/index-1.1.28-ymg3kz4x.mjs +0 -5
- package/dist/chunks/index-1.1.28-z85wbmey.mjs +0 -1
- package/dist/chunks/init-1.1.28-vt168swt.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.28-vtkc85kf.mjs +0 -1
- package/dist/chunks/ink-1.1.28-8bcvzs97.mjs +0 -1
- package/dist/chunks/insights-1.1.28-hcccjwbm.mjs +0 -870
- package/dist/chunks/install-1.1.28-azeaj14w.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.28-jr58yj7c.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.28-ca73e004.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.28-v5fj6zfn.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.28-k8pjx51r.mjs +0 -1
- package/dist/chunks/keybindings-1.1.28-szefym9t.mjs +0 -2
- package/dist/chunks/knowledge-1.1.28-twc2bf6q.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.28-swqk1ppm.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.28-gvzkk593.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.28-j5fvzh5b.mjs +0 -1
- package/dist/chunks/log-1.1.28-744tvnnz.mjs +0 -1
- package/dist/chunks/main-1.1.28-ngd4qj24.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.28-v3t5y08t.mjs +0 -1
- package/dist/chunks/mcp-1.1.28-bjtwbjwv.mjs +0 -17
- package/dist/chunks/mcp-1.1.28-k0p4t3rs.mjs +0 -1
- package/dist/chunks/mcp-1.1.28-pxxge6kd.mjs +0 -4
- package/dist/chunks/mcpb-1.1.28-rjvsf8d4.mjs +0 -1
- package/dist/chunks/memory-1.1.28-437zyh3m.mjs +0 -77
- package/dist/chunks/model-1.1.28-1weg50dg.mjs +0 -2
- package/dist/chunks/model-1.1.28-qbnnaa17.mjs +0 -1
- package/dist/chunks/node-1.1.28-f9q7m0bb.mjs +0 -15
- package/dist/chunks/node-1.1.28-q18jbvyv.mjs +0 -1
- package/dist/chunks/oauth-1.1.28-nv1bmgrh.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.28-qt0bgn0p.mjs +0 -14
- package/dist/chunks/output-style-1.1.28-xpmnvzvz.mjs +0 -1
- package/dist/chunks/package-OS7RONXY-1.1.28-s8fma63p.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.28-9e7g8r3q.mjs +0 -1
- package/dist/chunks/parser-1.1.28-hahczgmc.mjs +0 -1
- package/dist/chunks/passes-1.1.28-73vxd2mh.mjs +0 -1
- package/dist/chunks/permissions-1.1.28-4dzfyh6m.mjs +0 -1
- package/dist/chunks/permissions-1.1.28-mh27xg9k.mjs +0 -3
- package/dist/chunks/plan-1.1.28-awnhzrk0.mjs +0 -1
- package/dist/chunks/plist-1.1.28-yf5fjx19.mjs +0 -1
- package/dist/chunks/plugin-1.1.28-m9j8cnkz.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.28-w4yvsmat.mjs +0 -1
- package/dist/chunks/plugins-1.1.28-rgr19gwa.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.28-bq157gz5.mjs +0 -2
- package/dist/chunks/print-1.1.28-g8smjzce.mjs +0 -57
- package/dist/chunks/process-1.1.28-tk5w2b0a.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.28-0a601ws2.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.28-2mq2y7nd.mjs +0 -9
- package/dist/chunks/prompt-1.1.28-tj8v37yx.mjs +0 -1
- package/dist/chunks/prompt-1.1.28-x4mxe7n2.mjs +0 -1
- package/dist/chunks/prompts-1.1.28-z2rx5cb6.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.28-cvce24s6.mjs +0 -13
- package/dist/chunks/provider-1.1.28-wd0k9dj9.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.28-ansdm0bp.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.28-xkpar3nj.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.28-kv8762wq.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.28-464hjqs0.mjs +0 -26
- package/dist/chunks/registry-1.1.28-a9wz892f.mjs +0 -1
- package/dist/chunks/release-notes-1.1.28-3dsn738r.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.28-8kfgxbx6.mjs +0 -2
- package/dist/chunks/remote-env-1.1.28-x46beyd7.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.28-1pr9890h.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.28-0dbsb9gr.mjs +0 -1
- package/dist/chunks/rename-1.1.28-m7z3qe6s.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.28-h8cn3e2b.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.28-dc94xnm0.mjs +0 -1
- package/dist/chunks/resume-1.1.28-mr6necqk.mjs +0 -2
- package/dist/chunks/rewind-1.1.28-dk5z09nd.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.28-g6c2bc4a.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.28-2r5z099n.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.28-9gkyj8zg.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.28-mvyww40e.mjs +0 -1
- package/dist/chunks/session-1.1.28-8xwfxnzq.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.28-6twnc7gm.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.28-w6yt6st1.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.28-rfvff5qy.mjs +0 -1
- package/dist/chunks/settings-1.1.28-b3wrgfej.mjs +0 -1
- package/dist/chunks/setup-1.1.28-6vt58sg8.mjs +0 -12
- package/dist/chunks/sinks-1.1.28-rdvsx829.mjs +0 -1
- package/dist/chunks/skills-1.1.28-b53h2c2v.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.28-mk4vmdef.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.28-0p8x3xh5.mjs +0 -1
- package/dist/chunks/state-1.1.28-fd27gqw0.mjs +0 -1
- package/dist/chunks/stats-1.1.28-fmezsyc4.mjs +0 -1
- package/dist/chunks/status-1.1.28-67a4bkc3.mjs +0 -1
- package/dist/chunks/stickers-1.1.28-0g68m8nd.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.28-548a2kyv.mjs +0 -1
- package/dist/chunks/tasks-1.1.28-h3xfz4f4.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.28-4twfmqhf.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.28-7p6f8wg0.mjs +0 -1
- package/dist/chunks/teleport-1.1.28-zdrc7v25.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.28-fbkk7v65.mjs +0 -1
- package/dist/chunks/theme-1.1.28-tj36fh0f.mjs +0 -1
- package/dist/chunks/thinkback-1.1.28-x1bq9k3h.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.28-3jdfk2q7.mjs +0 -1
- package/dist/chunks/toolPool-1.1.28-fpt8xrnv.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.28-mvqt18a8.mjs +0 -1
- package/dist/chunks/tools-1.1.28-a9t3fc6d.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.28-9e0gqehg.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.28-dhs0afg7.mjs +0 -69
- package/dist/chunks/types-1.1.28-51fcbp8c.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.28-d4ca5c58.mjs +0 -4
- package/dist/chunks/update-1.1.28-t9v2gpbh.mjs +0 -72
- package/dist/chunks/upgrade-1.1.28-12174ed0.mjs +0 -1
- package/dist/chunks/upload-1.1.28-whe18m8m.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.28-bnjrek99.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.28-0gh9dbnj.mjs +0 -1
- package/dist/chunks/usage-1.1.28-6m1bv4x5.mjs +0 -1
- package/dist/chunks/util-1.1.28-cvpx898d.mjs +0 -1
- package/dist/chunks/utils-1.1.28-ztac8cf7.mjs +0 -1
- package/dist/chunks/vim-1.1.28-rrv9qbr2.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.28-rtznty0c.mjs +0 -13
- package/dist/chunks/watcher-1.1.28-7v4bd9pm.mjs +0 -1
- package/dist/chunks/wiki-1.1.28-m0y2n8rc.mjs +0 -132
- package/dist/chunks/workflows-1.1.28-k9wt163q.mjs +0 -1
- package/dist/chunks/worktree-1.1.28-5bjehwgc.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.28-d1yy7627.mjs +0 -1
- package/dist/chunks/wrapper-1.1.28-qgyry9mh.mjs +0 -7
- /package/dist/chunks/{cli-1.1.28-qzdtd4w8.mjs → cli-1.1.30-2cmsx74f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-f658tc1w.mjs → cli-1.1.30-dy1jvt4f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-m37hk495.mjs → cli-1.1.30-fa5djn9v.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-7d7hz6b4.mjs → cli-1.1.30-s27erhy7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-43p679k7.mjs → cli-1.1.30-vxh27fdj.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.28-m7x3ax7z.mjs → cli-1.1.30-y1pn2vb5.mjs} +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{B1 as Aq,T0 as z,Z0 as Bq,_0 as xq}from"./cli-1.1.30-569esepc.mjs";import{Z_ as H,__ as Rq}from"./cli-1.1.30-4d90v0pd.mjs";import{Cda as W,Eca as p,Eda as jq,Gaa as G,Gba as Yq,Hba as wq,Iaa as o,Lca as zq,Qia as v,Sca as Zq,Uga as _,Vca as $q,Wca as Mq,Xga as R,Yia as a,bha as N,cha as m,qha as b,vga as l,xga as Gq}from"./cli-1.1.30-mebteknr.mjs";import{Gka as T,Ika as Wq}from"./cli-1.1.30-1ybfyckn.mjs";import{ama as Qq,bma as Xq,fma as _q,jma as c,nma as Hq}from"./cli-1.1.30-7h45a0x6.mjs";import{ana as E,cna as Uq}from"./cli-1.1.30-gv4z21b9.mjs";import{sta as s,tta as Lq}from"./cli-1.1.30-m62yy9h8.mjs";import{Mua as A}from"./cli-1.1.30-7dtpd1ra.mjs";function h(){let q=l(T(),c().existsSync)!==null,J=p(T());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:J},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:q,isCompletable:!0,isEnabled:!J}]}function I(){return h().filter(({isCompletable:q,isEnabled:J})=>q&&J).every(({isComplete:q})=>q)}var y=A(()=>{Wq();zq();Hq();Gq()});function i(){if(N().hasCompletedProjectOnboarding)return;if(I())m((q)=>({...q,hasCompletedProjectOnboarding:!0}))}var lq;var n=A(()=>{Lq();b();y();y();lq=s(()=>{let q=N();if(q.hasCompletedProjectOnboarding||q.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!I()})});import{stat as r}from"fs/promises";import{homedir as Vq}from"os";import{join as vq}from"path";function Oq(q){_((J)=>({...J,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:q}))}function U(){_((q)=>({...q,appleTerminalSetupInProgress:!1}))}function Fq(){let q=R();return{inProgress:q.appleTerminalSetupInProgress??!1,backupPath:q.appleTerminalBackupPath||null}}function w(){return vq(Vq(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let q=w(),J=`${q}.bak`;try{let{code:K}=await G("defaults",["export","com.apple.Terminal",q]);if(K!==0)return null;try{await r(q)}catch{return null}return await G("defaults",["export","com.apple.Terminal",J]),Oq(J),J}catch(K){return v(K),null}}async function e(){let{inProgress:q,backupPath:J}=Fq();if(!q)return{status:"no_backup"};if(!J)return U(),{status:"no_backup"};try{await r(J)}catch{return U(),{status:"no_backup"}}try{let{code:K}=await G("defaults",["import","com.apple.Terminal",J]);if(K!==0)return{status:"failed",backupPath:J};return await G("killall",["cfprefsd"]),U(),{status:"restored"}}catch(K){return v(Error(`Failed to restore Terminal.app settings with: ${K}`)),U(),{status:"failed",backupPath:J}}}var qq=A(()=>{b();o();a()});import{randomBytes as k}from"crypto";import{copyFile as g,mkdir as f,readFile as u,writeFile as P}from"fs/promises";import{homedir as d,platform as S}from"os";import{dirname as Iq,join as O}from"path";import{pathToFileURL as Sq}from"url";function Dq(){let q=process.env.VSCODE_GIT_ASKPASS_MAIN??"",J=process.env.PATH??"";return q.includes(".vscode-server")||q.includes(".cursor-server")||q.includes(".windsurf-server")||J.includes(".vscode-server")||J.includes(".cursor-server")||J.includes(".windsurf-server")}function FJ(){if(!W.terminal||!(W.terminal in D))return null;return D[W.terminal]??null}function L(q){if(!Bq())return q;return`\x1B]8;;${Sq(q).href}\x07${q}\x1B]8;;\x07`}function Eq(){return S()==="darwin"&&W.terminal==="Apple_Terminal"||W.terminal==="vscode"||W.terminal==="cursor"||W.terminal==="windsurf"||W.terminal==="alacritty"||W.terminal==="zed"}async function Tq(q){let J="";switch(W.terminal){case"Apple_Terminal":J=await yq(q);break;case"vscode":J=await C("VSCode",q);break;case"cursor":J=await C("Cursor",q);break;case"windsurf":J=await C("Windsurf",q);break;case"alacritty":J=await Nq(q);break;case"zed":J=await bq(q);break;case null:break}return _((K)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(W.terminal??"")){if(K.shiftEnterKeyBindingInstalled===!0)return K;return{...K,shiftEnterKeyBindingInstalled:!0}}else if(W.terminal==="Apple_Terminal"){if(K.optionAsMetaKeyInstalled===!0)return K;return{...K,optionAsMetaKeyInstalled:!0}}return K}),i(),J}function UJ(){return R().shiftEnterKeyBindingInstalled===!0}function _J(){return R().hasUsedBackslashReturn===!0}function RJ(){if(!R().hasUsedBackslashReturn)_((J)=>({...J,hasUsedBackslashReturn:!0}))}async function wJ(q,J,K){if(W.terminal&&W.terminal in D){let X=`Shift+Enter is natively supported in ${D[W.terminal]}.
|
|
2
|
+
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`;return q(X),null}if(!Eq()){let X=W.terminal||"your current terminal",Y=Yq(),B="";if(Y==="macos")B=` • macOS: Apple Terminal
|
|
4
|
+
`;else if(Y==="windows")B=` • Windows: Windows Terminal
|
|
5
|
+
`;let Z=`Terminal setup cannot be run from ${X}.
|
|
6
|
+
|
|
7
|
+
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
+
${H.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
+
|
|
10
|
+
To set up the shortcut (optional):
|
|
11
|
+
1. Exit tmux/screen temporarily
|
|
12
|
+
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
+
${B} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
+
• Other: Alacritty
|
|
15
|
+
3. Return to tmux/screen - settings will persist
|
|
16
|
+
|
|
17
|
+
${H.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return q(Z),null}let $=await Tq(J.options.theme);return q($),null}async function C(q="VSCode",J){if(Dq())return`${z("warning",J)(`Cannot install keybindings from a remote ${q} session.`)}${Q}${Q}${q} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${q} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${H.dim(`[
|
|
18
|
+
{
|
|
19
|
+
"key": "shift+enter",
|
|
20
|
+
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
+
"args": { "text": "\\u001b\\r" },
|
|
22
|
+
"when": "terminalFocus"
|
|
23
|
+
}
|
|
24
|
+
]`)}${Q}`;let K=q==="VSCode"?"Code":q,$=O(d(),S()==="win32"?O("AppData","Roaming",K,"User"):S()==="darwin"?O("Library","Application Support",K,"User"):O(".config",K,"User")),X=O($,"keybindings.json");try{await f($,{recursive:!0});let Y="[]",B=[],Z=!1;try{Y=await u(X,{encoding:"utf-8"}),Z=!0,B=Zq(Y)??[]}catch(V){if(!E(V))throw V}if(Z){let V=k(4).toString("hex"),x=`${X}.${V}.bak`;try{await g(X,x)}catch{return`${z("warning",J)(`Error backing up existing ${q} terminal keybindings. Bailing out.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(x)}`)}${Q}`}}if(B.find((V)=>V.key==="shift+enter"&&V.command==="workbench.action.terminal.sendSequence"&&V.when==="terminalFocus"))return`${z("warning",J)(`Found existing ${q} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let j=$q(Y,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await P(X,j,{encoding:"utf-8"}),`${z("success",J)(`Installed ${q} terminal Shift+Enter key binding`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Y){throw v(Y),Error(`Failed to install ${q} terminal Shift+Enter key binding`)}}async function Jq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':useOptionAsMetaKey bool true`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':useOptionAsMetaKey true`,w()]);if(K!==0)return v(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${q}`)),!1}return!0}async function Kq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':Bell bool false`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':Bell false`,w()]);if(K!==0)return v(Error(`Failed to disable audio bell for Terminal.app profile: ${q}`)),!1}return!0}async function yq(q){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:K,code:$}=await G("defaults",["read","com.apple.Terminal","Default Window Settings"]);if($!==0||!K.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:X,code:Y}=await G("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(Y!==0||!X.trim())throw Error("Failed to read startup Terminal.app profile");let B=!1,Z=K.trim(),F=await Jq(Z),M=await Kq(Z);if(F||M)B=!0;let j=X.trim();if(j!==Z){let V=await Jq(j),x=await Kq(j);if(V||x)B=!0}if(!B)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await G("killall",["cfprefsd"]),U(),`${z("success",q)("Configured Terminal.app settings:")}${Q}${z("success",q)('- Enabled "Use Option as Meta key"')}${Q}${z("success",q)("- Switched to visual bell")}${Q}${H.dim("Option+Enter will now enter a newline.")}${Q}${H.dim("You must restart Terminal.app for changes to take effect.",q)}${Q}`}catch(J){v(J);let K=await e(),$="Failed to enable Option as Meta key for Terminal.app.";if(K.status==="restored")throw Error(`${$} Your settings have been restored from backup.`);else if(K.status==="failed")throw Error(`${$} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${K.backupPath}`);else throw Error(`${$} No backup was available to restore from.`)}}async function Nq(q){let K=[],$=process.env.XDG_CONFIG_HOME;if($)K.push(O($,"alacritty","alacritty.toml"));else K.push(O(d(),".config","alacritty","alacritty.toml"));if(S()==="win32"){let Z=process.env.APPDATA;if(Z)K.push(O(Z,"alacritty","alacritty.toml"))}let X=null,Y="",B=!1;for(let Z of K)try{Y=await u(Z,{encoding:"utf-8"}),X=Z,B=!0;break}catch(F){if(!E(F))throw F}if(!X)X=K[0]??null;if(!X)throw Error("No valid config path found for Alacritty");try{if(B){if(Y.includes('mods = "Shift"')&&Y.includes('key = "Return"'))return`${z("warning",q)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let F=k(4).toString("hex"),M=`${X}.${F}.bak`;try{await g(X,M)}catch{return`${z("warning",q)("Error backing up existing Alacritty config. Bailing out.")}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(M)}`)}${Q}`}}else await f(Iq(X),{recursive:!0});let Z=Y;if(Y&&!Y.endsWith(`
|
|
25
|
+
`))Z+=`
|
|
26
|
+
`;return Z+=`
|
|
27
|
+
[[keyboard.bindings]]
|
|
28
|
+
key = "Return"
|
|
29
|
+
mods = "Shift"
|
|
30
|
+
chars = "\\u001B\\r"
|
|
31
|
+
`,await P(X,Z,{encoding:"utf-8"}),`${z("success",q)("Installed Alacritty Shift+Enter key binding")}${Q}${z("success",q)("You may need to restart Alacritty for changes to take effect")}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Z){throw v(Z),Error("Failed to install Alacritty Shift+Enter key binding")}}async function bq(q){let J=O(d(),".config","zed"),K=O(J,"keymap.json");try{await f(J,{recursive:!0});let $="[]",X=!1;try{$=await u(K,{encoding:"utf-8"}),X=!0}catch(B){if(!E(B))throw B}if(X){if($.includes("shift-enter"))return`${z("warning",q)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(K)}`)}${Q}`;let B=k(4).toString("hex"),Z=`${K}.${B}.bak`;try{await g(K,Z)}catch{return`${z("warning",q)("Error backing up existing Zed keymap. Bailing out.")}${Q}${H.dim(`See ${L(K)}`)}${Q}${H.dim(`Backup path: ${L(Z)}`)}${Q}`}}let Y;try{if(Y=Xq($),!Array.isArray(Y))Y=[]}catch{Y=[]}return Y.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await P(K,Qq(Y,null,2)+`
|
|
32
|
+
`,{encoding:"utf-8"}),`${z("success",q)("Installed Zed Shift+Enter key binding")}${Q}${H.dim(`See ${L(K)}`)}${Q}`}catch($){throw v($),Error("Failed to install Zed Shift+Enter key binding")}}var Q=`
|
|
33
|
+
`,D;var Cq=A(()=>{Rq();xq();Aq();n();qq();b();jq();Uq();o();Mq();a();wq();_q();D={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
+
export{i as sZ,n as tZ,e as uZ,qq as vZ,FJ as wZ,Eq as xZ,Tq as yZ,UJ as zZ,_J as AZ,RJ as BZ,wJ as CZ,Cq as DZ};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{$_ as D}from"./cli-1.1.30-facztg9n.mjs";import{Ama as a,jma as L,nma as JG,xma as W}from"./cli-1.1.30-7h45a0x6.mjs";import{hna as c,ina as jG,qna as GG}from"./cli-1.1.30-qdnzwgr7.mjs";import{sta as q,tta as g}from"./cli-1.1.30-m62yy9h8.mjs";import{Yta as H,oua as RG}from"./cli-1.1.30-gev0f31f.mjs";import{vua as XG}from"./cli-1.1.30-j2wahkcp.mjs";import{Iua as WG,Mua as j,Nua as e}from"./cli-1.1.30-7dtpd1ra.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
+
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
+
\r
|
|
4
|
+
`);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
+
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
+
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
|
|
7
|
+
`;let $=n(K);K.write(`${X}\r
|
|
8
|
+
`);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
|
|
9
|
+
`;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
|
|
10
|
+
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
+
`);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.30-cnbcr7zp.mjs"),import("./index-1.1.30-f65yg5kz.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
+
export{yG as E_,i as F_,N as G_,gG as H_,aG as I_,iG as J_,KG as K_,MJ as L_,HJ as M_,OG as N_,E as O_,y as P_,_J as Q_,jJ as R_,qJ as S_,UJ as T_,NJ as U_,TJ as V_,FJ as W_,PG as X_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{BM as S,EM as O,KM as _,MM as P,RM as h,SM as f,WM as c,lq as N,mq as D,nq as x,qq as A,rq as b,xM as C}from"./cli-1.1.30-pc2wp50b.mjs";import{Cea as L,Kea as v,Ofa as G,Qfa as M,Qia as H,Tfa as R,Yia as T,ega as E}from"./cli-1.1.30-mebteknr.mjs";import{Gka as U,Ika as F}from"./cli-1.1.30-1ybfyckn.mjs";import{Ama as y,xma as w}from"./cli-1.1.30-7h45a0x6.mjs";import{Mua as m}from"./cli-1.1.30-7dtpd1ra.mjs";import{join as I}from"path";async function e(){let q=R(),J=[],Q=N();for(let[z,K]of Object.entries(Q))if(z.includes("@")&&K)J.push(z);if(q.enabledPlugins)for(let[z,K]of Object.entries(q.enabledPlugins)){if(!z.includes("@"))continue;let W=J.indexOf(z);if(K){if(W===-1)J.push(z)}else if(W!==-1)J.splice(W,1)}return J}function qq(){let q=new Map,J=N();for(let[z,K]of Object.entries(J)){if(!z.includes("@"))continue;if(K===!0)q.set(z,"flag");else if(K===!1)q.delete(z)}let Q=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:z,source:K}of Q){let W=G(K);if(!W?.enabledPlugins)continue;for(let[V,Y]of Object.entries(W.enabledPlugins)){if(!V.includes("@"))continue;if(V in J&&J[V]!==Y)w(`Plugin ${V} from --add-dir (${J[V]}) overridden by ${K} (${Y})`);if(Y===!0)q.set(V,z);else if(Y===!1)q.delete(V)}}return w(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([z,K])=>`${z}(${K})`).join(", ")}`),q}function zq(q){return x[q]}async function Jq(){_().catch((Q)=>{H(Q)});let q=O(),J=Object.keys(q.plugins);return w(`Found ${J.length} installed plugins`),J}async function Kq(q,J,Q="user"){let z=Q!=="user"?U():void 0,K=A(Q),W=G(K),V={...W?.enabledPlugins},Y=[],B=[];for(let k=0;k<q.length;k++){let X=q[k];if(!X)continue;if(J)J(X,k+1,q.length);try{let Z=await C(X);if(!Z){B.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:j}=Z;if(!L($.source))await h(X,$,Q,z);else f({pluginId:X,installPath:I(j,$.source),version:$.version},Q,z);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);B.push({name:X,error:$}),H(Z)}}return M(K,{...W,enabledPlugins:V}),{installed:Y,failed:B}}var p=m(()=>{F();y();T();E();D();P();S();b();c();v()});
|
|
2
|
+
export{e as Ce,qq as De,zq as Ee,Jq as Fe,Kq as Ge,p as He};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B1 as k,GZ as f,k1 as W,z1 as X}from"./cli-1.1.30-569esepc.mjs";import{R5 as V,S5 as J,U5 as K}from"./cli-1.1.30-92t0b3hs.mjs";import{V5 as P}from"./cli-1.1.30-cjetc80p.mjs";import{$ia as U,aja as O}from"./cli-1.1.30-322advqh.mjs";import{Iua as Q,Mua as L}from"./cli-1.1.30-7dtpd1ra.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
+
export{g as Tc,N as Uc,j as Vc};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{V_ as P5,X_ as R7}from"./cli-1.1.30-wfs29rd9.mjs";import{Z_ as A,__ as e8}from"./cli-1.1.30-4d90v0pd.mjs";import{i$ as a2,k$ as D7}from"./cli-1.1.30-3b1nw95m.mjs";import{$da as G8,Bia as L,Eia as J0,Faa as v2,Iaa as ZZ,Kda as z2,Mha as B4,Ofa as P,Oga as c,Oha as J4,Qfa as x5,Qia as k,Rha as N5,Sha as QZ,Tfa as N,Tga as n2,Uga as S,Vaa as P2,Xaa as $Z,Xga as D,Yia as n0,bha as e1,ega as x0,ifa as o1,jaa as A4,kaa as t,laa as K5,maa as L0,naa as C4,nga as s4,oaa as s5,pga as JZ,pia as l2,qga as S1,qha as $0,rfa as H8,rga as m7,sha as Z4,sia as G4,taa as H0,tha as R8,uaa as H1,wda as M1,xda as p7,xha as $4,yia as s2}from"./cli-1.1.30-mebteknr.mjs";import{Yja as M0,_ja as h4,ika as T1}from"./cli-1.1.30-d3n6dp6r.mjs";import{lla as A2,mla as l4,nla as B0,pla as G7,qla as H7,sla as U,tla as _0}from"./cli-1.1.30-c9xtenrd.mjs";import{ula as x,xla as z5}from"./cli-1.1.30-pgx35gqd.mjs";import{Ama as Z0,bma as U2,fma as o8,jma as n5,nma as S7,xma as z,zma as m0}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as g,Zma as z1,cna as x1}from"./cli-1.1.30-gv4z21b9.mjs";import{fna as N2,ina as K,kna as u,mna as v5,qna as d}from"./cli-1.1.30-qdnzwgr7.mjs";import{Lqa as C,Soa as Y0,Sqa as I1,Toa as D1,Vpa as d1,Vsa as Q0,hqa as r1,hra as X1,ira as V1,jra as W1,kra as j1,lqa as _4,qqa as y0,rqa as Z5,wra as j5}from"./cli-1.1.30-ehk76t59.mjs";import{sta as h,tta as t0}from"./cli-1.1.30-m62yy9h8.mjs";import{Yta as v,oua as Y5}from"./cli-1.1.30-gev0f31f.mjs";import{Jua as E0,Lua as c5,Mua as R,Nua as r}from"./cli-1.1.30-7dtpd1ra.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.30-cnbcr7zp.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.30-hmnpjmd5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function rZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.30-cnbcr7zp.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.30-hmnpjmd5.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function eZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,oZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});oZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,y5,_5,h5,I5,T5,M5,S5,l0,s0,a0,N0,f5,A5,C5,U0,d2;var u5=R(()=>{O5={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},E5={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},y5={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},_5={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},h5={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},I5={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T5={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},M5={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},S5={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},s0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},a0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},N0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f5={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C5={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},U0={haiku35:y5,haiku45:_5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:N0,fable51:f5},d2=Object.fromEntries(Object.entries(U0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var P0={};c5(P0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>y7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>_7});function v0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=v0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=v0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=v0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&v0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function y7(Z){return e0(Z)?.model.limit.output}function _7(Z){e=Z,z0=Z?v0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var O0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function z$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(O0(),E0(P0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function x$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function B$(){return W()}function G$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=U0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=U0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function k$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(U0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function U$(Z){return Z}function v$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function I$(){let $=D().oauthAccount?.accountUuid,J=h0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();_0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,g$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,g$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function t$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",I0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",a$="effort-2025-11-24",r$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",o$="extended-cache-ttl-2025-04-11",e$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",y1="thinking-token-count-2026-05-13",_1="token-efficient-tools-2026-03-28",ZJ="afk-mode-2026-01-31",$J="advisor-tool-2026-03-01",o5,JJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),JJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=M0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&M0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function DJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function bJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??S0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function UJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function vJ(){R0={status:"active"}}function PJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function EJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function yJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function hJ(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function IJ(){if(S1())return;if(!I())return;if(T0)return z("Fast mode prefetch in progress, returning in-flight promise"),T0;let Z=h0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{T0=null}}return T0=Y(),T0}var LJ="Opus 5",R0,Z2=!1,C1,u1,kJ,NJ,g1,OJ,E,$2,_J,a7=30000,h1=0,T0=null;var p1=R(()=>{Y5();_0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),kJ=C1.subscribe,NJ=u1.subscribe;g1=Y0(),OJ=g1.subscribe;E={status:"pending"},$2=Y0(),_J=$2.subscribe});function Y8(Z){for(let $ of Q8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(N0.firstParty)]??n}function q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function X8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(N0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=Y8(Z);if(Y)return Y;return V8(Z,J),Y2[b(S0())]??J8}return Q}function V8(Z,$){x("",{model:Z,shortName:$}),d1()}function W8(Z,$){let J=X8(Z,$);return q8(J,$)}function uJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return W8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var r7,f0,m1,n,o7,e7,i1,Z8,$8,J8,Q8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();r7={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},f0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},o7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},e7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},Z8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},$8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},J8=n,Q8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];Y2={[F(y5.firstParty)]:Z8,[F(_5.firstParty)]:$8,[F(E5.firstParty)]:f0,[F(O5.firstParty)]:f0,[F(h5.firstParty)]:f0,[F(I5.firstParty)]:f0,[F(A5.firstParty)]:f0,[F(C5.firstParty)]:r7,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(N0.firstParty)]:n,[F(f5.firstParty)]:o7,"claude-fable-5":e7}});function p(Z){return j8.includes(Z)}function F0(Z){return z8.includes(Z)}var j8,z8;var W2=R(()=>{j8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z8=["sonnet","opus","haiku"]});function x8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function B8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(F0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!F0(Y)||!l1(Y,q))return!0}for(let X of q)if(F0(X)&&!l1(X,q)&&x8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!F0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!F0(X)&&!p(X)){if(B8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function K0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function z9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function x9(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=K0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function B9(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function w8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=K0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=K0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function G9(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function S0(){let Z=K0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(S0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5-1"))return"claude-fable-5-1";if(Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function F8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?K8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function H9(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function R9(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function K8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(y()&&f()===null)return!1;return!0}function w9(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(O0(),E0(P0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable51:return"Fable 5.1";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function F9(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return w8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return B().fable51;if(W()==="firstParty"&&D8(Y)&&b8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function K9(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function D8(Z){return L8.includes(Z)}function b8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function L9(Z){if(Z===null){if(y())return`Default (${F8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function D9(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5-1"))return"Fable 5.1";if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function b9(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function k9(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var L8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();R8();Q5();t1();x0();i();G8();a1();W2();H8();p5();L8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function U9(){}var V4=()=>{};function v8(Z,$={}){if($.isPro??(U8.test(Z)||W4.has(Z)))return!1;if(k8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(N8);return Q?Number.parseFloat(Q[1])>5.4:!1}function P9(){return w5.filter((Z)=>v8(Z.id,{isPro:Z.isPro}))}var w5,k8,W4,N8,U8,j4,z4;var x4=R(()=>{w5=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],k8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),N8=/^gpt-(\d+\.\d+)/,U8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>S8,getDiscoveredContextWindow:()=>P8,discoverOpenAICompatibleModelOptions:()=>F4});function P8(Z){return R4.get(Z)}function O8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function E8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function y8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(E8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function _8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function h8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function I8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function T8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${I8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function M8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=O8(),$=y8(Z),J=await T8(_8(Z),$);if(J.length>0)return J;let Q=h8(Z);if(Q)return M8(Q,$);return[]}function S8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),E0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(f8,C8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(O0(),E0(P0));return J(Z)}catch{return}}function N4(Z){let $=b4(A8,u8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(O0(),E0(P0));return J(Z)}catch{return}}var f8,A8,C8,u8;var U4=R(()=>{J0();x4();f8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...j4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},A8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,...z4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},C8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),u8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function n9(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),g8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(I0)&&x2(Z))return 1e6;if(c8(Z))return 1e6;return R2}function c8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function l9(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function s9(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=p8,J=m8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,g8,d9=20000,p8=32000,m8=64000,i9=8000,t9=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();g8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var d8,P4;var O4=R(()=>{t0();i();d8=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of d8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function i8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function G3(Z){if(!Z||Z.length===0)return;if(y()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=i8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function t8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function n8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function l8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function H3(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function R3(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function y4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function w3(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function F3(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=_4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),s8.cache?.clear?.()}var I4,w2,T4,s8;var S4=R(()=>{t0();T1();Q0();e5();_0();o();B2();d();w0();O4();i();x0();I4=[I0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=y4();if(!J)$.push(W5);if(y())$.push(B0);if(l(Z))$.push(I0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(y1);let q=n8(Z);if(y4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||M0("tengu_amber_json_tools",!1));if(Y&&l8(Z)&&X)$.push(U1);if(Y&&V)$.push(_1);if(Q==="vertex"&&t8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),s8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as a8}from"child_process";function f4(Z){return new Promise(($)=>{a8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:r8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function k3(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function N3(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var r8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function P3(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var pZ={};c5(pZ,{validateForceLoginOrg:()=>gZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>OZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>NZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>UZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>BZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>TZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>hZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>MZ,isCustomApiKeyApproved:()=>PZ,isConsumerSubscriber:()=>CZ,isClaudeAISubscriber:()=>y,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>y2,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>_Z,hasProfileScope:()=>q0,hasOpusAccess:()=>IZ,hasAnthropicApiKeyAuth:()=>WZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>fZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>jZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>h0,getAccountInformation:()=>uZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>kZ,clearAwsCredentialsCache:()=>FZ,clearApiKeyHelperCache:()=>xZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as YZ,stat as qZ}from"fs/promises";import{join as XZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(b0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function h0(){let{key:Z}=c0();return Z}function WZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function y2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function _2(){return(N()||{}).awsCredentialExport}function h2(){let Z=_2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return VZ}function jZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(_){if(Date.now()-_.timestamp<$)return _.value;if(!m)m={promise:i4(Z,!1,D0),startedAt:null};return _.value}if(m)return m.promise;return m={promise:i4(Z,!0,D0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await zZ(Z);if(J!==D0)return Q;if(Q!==null)_={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==D0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&_&&_.value!==" ")return _={..._,timestamp:Date.now()},_.value;return _={value:" ",timestamp:Date.now()}," "}finally{if(J===D0)m=null}}async function zZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return _?.value??null}function xZ(){D0++,_=null,m=null}function BZ(Z){if(e4()&&!c())return;$7(Z)}async function HZ(){let Z=E2();if(!Z)return!1;if(y2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:RZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function wZ(){let Z=_2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function FZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(KZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function DZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:bZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function kZ(){M2.cache.clear()}function NZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function UZ(){let Z=E2(),$=_2();if(!Z&&!$)return;if(y2()||h2()){if(!c()&&!C())return}j0(),B()}function vZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!vZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
|
|
2
|
+
`;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function PZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function OZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!b0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),L0()}async function EZ(){try{let{mtimeMs:Z}=await qZ(XZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=yZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function yZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await EZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!b0(Q.scopes))return!1;w.cache?.clear?.(),L0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await YZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),L0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:b0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),L0(),!0}catch(V){k(V),w.cache?.clear?.(),L0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function y(){if(!k0())return!1;return b0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function _Z(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(y())return!1;return!0}function b5(){return k0()?D().oauthAccount:void 0}function hZ(){let $=b5()?.billingType;if(!y()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function IZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function TZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function MZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function fZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||SZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function AZ(Z){return Z==="max"||Z==="pro"}function CZ(){let Z=f();return y()&&Z!==null&&AZ(Z)}function uZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(y())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function gZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${Z}
|
|
10
|
+
Token organization: ${q}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var VZ=300000,_=null,m=null,D0=0,GZ=3600000,RZ=180000,j0,KZ=5000,LZ=3600000,bZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,SZ=1740000,x7;var o=R(()=>{e8();H1();t0();_0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();ZZ();JZ();n0();$Z();QZ();g4();s5();x0();p4();o8();d4();j0=P2(async()=>{let Z=await HZ(),$=await wZ();if(Z||$)await K1();return $},GZ);M2=P2(async()=>{return await DZ()},LZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function b0(Z){return Boolean(Z?.includes(A2))}function mZ(Z){return Z?.split(" ").filter(Boolean)??[]}function wQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function FQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=mZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await cZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function KQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function LQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function cZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function DQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function bQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!y()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();_0();o();$0();Z0();t5()});
|
|
16
|
+
export{k3 as u6,N3 as v6,g4 as w6,C2 as x6,u2 as y6,rZ as z6,oZ as A6,w7 as B6,L7 as C6,eZ as D6,c2 as E6,l0 as F6,N0 as G6,U0 as H6,u5 as I6,i5 as J6,v7 as K6,O0 as L6,W as M6,z$ as N6,h7 as O6,x$ as P6,B$ as Q6,G$ as R6,i as S6,B as T6,k$ as U6,Q5 as V6,U$ as W6,v$ as X6,Y1 as Y6,I$ as Z6,G0 as _6,t5 as $6,b0 as a7,mZ as b7,wQ as c7,FQ as d7,a4 as e7,KQ as f7,LQ as g7,g0 as h7,cZ as i7,DQ as j7,bQ as k7,B7 as l7,r4 as m7,g$ as n7,g7 as o7,q1 as p7,G1 as q7,V5 as r7,w1 as s7,t$ as t7,L1 as u7,M as v7,b1 as w7,I0 as x7,N1 as y7,U1 as z7,a$ as A7,r$ as B7,O1 as C7,o$ as D7,e$ as E7,E1 as F7,ZJ as G7,$J as H7,JJ as I7,e5 as J7,I as K7,f1 as L7,d7 as M7,LJ as N7,DJ as O7,bJ as P7,A1 as Q7,kJ as R7,NJ as S7,i7 as T7,UJ as U7,vJ as V7,PJ as W7,OJ as X7,EJ as Y7,l7 as Z7,yJ as _7,_J as $7,hJ as a8,IJ as b8,p1 as c8,f0 as d8,o7 as e8,Z8 as f8,$8 as g8,q2 as h8,W8 as i8,uJ as j8,V2 as k8,t1 as l8,j8 as m8,W2 as n8,s1 as o8,a1 as p8,z9 as q8,x9 as r8,B5 as s8,j2 as t8,B9 as u8,w8 as v8,X0 as w8,A0 as x8,Q4 as y8,G9 as z8,S0 as A8,Y4 as B8,F as C8,b as D8,F8 as E8,H9 as F8,R9 as G8,K8 as H8,J2 as I8,w9 as J8,q4 as K8,X4 as L8,F9 as M8,T as N8,K9 as O8,b8 as P8,L9 as Q8,D9 as R8,b9 as S8,k9 as T8,w0 as U8,U9 as V8,V4 as W8,P9 as X8,x4 as Y8,F4 as Z8,S8 as _8,L4 as $8,d9 as a9,i9 as b9,t9 as c9,V0 as d9,l as e9,n9 as f9,c8 as g9,l9 as h9,s9 as i9,B2 as j9,P4 as k9,O4 as l9,G3 as m9,l8 as n9,H3 as o9,R3 as p9,y4 as q9,w3 as r9,T4 as s9,s8 as t9,F3 as u9,M4 as v9,S4 as w9,L2 as x9,p4 as y9,P3 as z9,c4 as A9,d4 as B9,k0 as C9,O2 as D9,h0 as E9,WZ as F9,c0 as G9,s as H9,y2 as I9,h2 as J9,Z7 as K9,jZ as L9,$7 as M9,b2 as N9,xZ as O9,BZ as P9,J7 as Q9,j0 as R9,FZ as S9,T2 as T9,Q7 as U9,Y7 as V9,M2 as W9,kZ as X9,NZ as Y9,UZ as Z9,U5 as _9,S2 as $9,PZ as a_,OZ as b_,X7 as c_,w as d_,f2 as e_,Q2 as f_,p0 as g_,d0 as h_,y as i_,q0 as j_,_Z as k_,b5 as l_,hZ as m_,IZ as n_,f as o_,H5 as p_,TZ as q_,R5 as r_,MZ as s_,G2 as t_,V7 as u_,W7 as v_,k5 as w_,z7 as x_,fZ as y_,CZ as z_,uZ as A_,gZ as B_,pZ as C_,o as D_};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{$o as Xq,Cm as m,FG as l,GG as Aq,Nm as W,Qm as p,Rm as j,Xm as Jq,_o as c,bU as Oq,cU as Bq,eT as n,gT as _q,in as F,ll as S,ml as Iq,nD as P,nn as Vq,oD as Zq,xI as d,yI as Yq}from"./cli-1.1.30-pc2wp50b.mjs";import{pV as i,qV as Lq}from"./cli-1.1.30-aw93z4yt.mjs";import{B1 as Qq,GZ as Gq,V0 as M,X0 as E}from"./cli-1.1.30-569esepc.mjs";import{S5 as Q,T5 as v,U5 as N}from"./cli-1.1.30-92t0b3hs.mjs";import{V5 as Kq}from"./cli-1.1.30-cjetc80p.mjs";import{Gaa as R,Iaa as Hq}from"./cli-1.1.30-mebteknr.mjs";import{ula as y,xla as qq}from"./cli-1.1.30-pgx35gqd.mjs";import{Ama as zq,xma as T}from"./cli-1.1.30-7h45a0x6.mjs";import{Iua as k,Jua as e,Mua as g}from"./cli-1.1.30-7dtpd1ra.mjs";function f(){(Bq(),e(Oq)).saveWorktreeState(null),S()}function u({onDone:G,onCancel:J}){let[V,H]=X.useState("loading"),[I,O]=X.useState([]),[z,Z]=X.useState(0),[_,K]=X.useState(),q=m();if(X.useEffect(()=>{async function A(){let B=[],Y=await R("git",["status","--porcelain"]);if(Y.stdout)B=Y.stdout.split(`
|
|
2
|
+
`).filter((U)=>U.trim()!==""),O(B);if(q){let{stdout:U}=await R("git",["rev-list","--count",`${q.originalHeadCommit}..HEAD`]),w=parseInt(U.trim())||0;if(Z(w),B.length===0&&w===0){H("removing"),j().then(()=>{process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.(),K("Worktree removed (no changes)")}).catch((s)=>{T(`Failed to clean up worktree: ${s}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway")}).finally(()=>{f()}).then(()=>{H("done")});return}else H("asking")}}A()},[q]),X.useEffect(()=>{if(V==="done")G(_)},[V,G,_]),!q)return G("No active worktree session found",{display:"system"}),null;if(V==="loading"||V==="done")return null;async function D(A){if(!q)return;let B=Boolean(q.tmuxSessionName);if(A==="keep"||A==="keep-with-tmux"){H("keeping"),y("",{commits:z,changed_files:I.length}),await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}if(F.cache.clear?.(),B)K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${q.tmuxSessionName}`);else K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}`);H("done")}else if(A==="keep-kill-tmux"){if(H("keeping"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);await p();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}F.cache.clear?.(),K(`Worktree kept at ${q.worktreePath} on branch ${q.worktreeBranch}. Tmux session terminated.`),H("done")}else if(A==="remove"||A==="remove-with-tmux"){if(H("removing"),y("",{commits:z,changed_files:I.length}),q.tmuxSessionName)await W(q.tmuxSessionName);try{await j(),process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.()}catch(U){T(`Failed to clean up worktree: ${U}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway"),H("done");return}finally{f()}let Y=B?" Tmux session terminated.":"";if(z>0&&I.length>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} and uncommitted changes were discarded.${Y}`);else if(z>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} on ${q.worktreeBranch} ${z===1?"was":"were"} discarded.${Y}`);else if(I.length>0)K(`Worktree removed. Uncommitted changes were discarded.${Y}`);else K(`Worktree removed.${Y}`);H("done")}}if(V==="keeping")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Keeping worktree…"})]});if(V==="removing")return v(M,{flexDirection:"row",marginY:1,children:[Q(d,{}),Q(E,{children:"Removing worktree…"})]});let h=q.worktreeBranch,b=I.length>0,$=z>0,L="";if(b&&$)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"} and ${z} ${z===1?"commit":"commits"} on ${h}. All will be lost if you remove.`;else if(b)L=`You have ${I.length} uncommitted ${I.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if($)L=`You have ${z} ${z===1?"commit":"commits"} on ${h}. The branch will be deleted if you remove the worktree.`;else L="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function o(){if(J){J();return}D("keep")}let x=b||$?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(q.tmuxSessionName),t=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${q.worktreePath}. Reattach with: tmux attach -t ${q.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${q.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:x}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${q.worktreePath}`},{label:"Remove worktree",value:"remove",description:x}];return Q(c,{title:"Exiting worktree session",subtitle:L,onCancel:o,children:Q(l,{defaultFocusValue:C?"keep-with-tmux":"keep",options:t,onChange:D})})}var X;var a=g(()=>{qq();zq();Qq();Hq();Vq();Iq();Zq();Jq();Aq();Xq();Yq();N();X=k(Kq(),1)});function Fq(){return i(Uq)??"Goodbye!"}function wq(G){let J=r.c(5),{showWorktree:V,onDone:H,onCancel:I}=G,O;if(J[0]!==H)O=async function(_){H(_??Fq()),await n(0,"prompt_input_exit")},J[0]=H,J[1]=O;else O=J[1];let z=O;if(V){let Z;if(J[2]!==I||J[3]!==z)Z=Q(u,{onDone:z,onCancel:I}),J[2]=I,J[3]=z,J[4]=Z;else Z=J[4];return Z}return null}var r,Uq;var Pq=g(()=>{Lq();_q();a();N();r=k(Gq(),1),Uq=["Goodbye!","See ya!","Bye!","Catch you later!"]});
|
|
3
|
+
export{wq as fc,Pq as gc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{NW as u,wW as f,xW as h}from"./cli-1.1.30-ycv7a9hg.mjs";import{WX as C,gY as d}from"./cli-1.1.30-1zsgv3yp.mjs";import{o6 as w,q6 as F}from"./cli-1.1.30-eg5krttf.mjs";import{M6 as O,S6 as i}from"./cli-1.1.30-wmpgbhw0.mjs";import{H_ as x,K_ as v,R_ as M,S_ as A,X_ as I}from"./cli-1.1.30-wfs29rd9.mjs";import{Qia as K,Yia as j}from"./cli-1.1.30-mebteknr.mjs";import{sla as R,tla as _}from"./cli-1.1.30-c9xtenrd.mjs";import{Ama as W,ama as X,bma as P,fma as T,xma as J}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as y,cna as p}from"./cli-1.1.30-gv4z21b9.mjs";import{Nua as q}from"./cli-1.1.30-7dtpd1ra.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.30-c8vm3try.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
+
export{N as Ka,$z as La,Xz as Ma,xz as Na,Uz as Oa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{w0 as z,x0 as $,y0 as D}from"./cli-1.1.30-569esepc.mjs";import{J3 as W,P3 as Z,S3 as x}from"./cli-1.1.30-5r9pakw5.mjs";import{Xga as Q,qha as Y}from"./cli-1.1.30-mebteknr.mjs";import{Mua as C}from"./cli-1.1.30-7dtpd1ra.mjs";function L(){let q=process.env.TERM_PROGRAM;if(q&&O.has(q))return!0;let y=process.env.TERM;if(y&&X.has(y))return!0;let J=W()?.toLowerCase();if(J===void 0)return!1;return k.some((B)=>J.startsWith(B))}function H(q){if(q===void 0||q==="")return null;let y=Number(q);if(!Number.isFinite(y)||y<d||y>w)return null;return y}function K(q){return u.get(q)??Math.max(1,Math.round(1000/q))}function I(){return H(process.env.CLAUDIN_FPS)!==null}function j(){let q=H(process.env.CLAUDIN_FPS);if(q!==null)return K(q);if(Z())return z;let y=H(Q().renderFrameRate);if(y!==null)return K(y);if(L()&&!process.env.TMUX)return h;return z}function P(){let q=j();return String(G.get(q)??Math.round(1000/q))}function S(){$(j())}var c,O,X,k,d=10,w=360,h=8,b,u,G;var N=C(()=>{D();x();Y();c=["auto","120","240","360"],O=new Set(["ghostty","kitty","WezTerm","alacritty","contour","foot","rio","WarpTerminal"]),X=new Set(["xterm-kitty","xterm-ghostty","alacritty","contour","foot","foot-extra","rio"]),k=["ghostty","kitty","wezterm","alacritty","contour","foot","rio","warp"],b=[[60,16],[120,h],[240,4],[360,3]],u=new Map(b),G=new Map(b.map(([q,y])=>[y,q]))});
|
|
2
|
+
export{c as Rh,I as Sh,P as Th,S as Uh,N as Vh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Qia as B,Xga as A,Yia as N,qha as L}from"./cli-1.1.30-mebteknr.mjs";import{Ama as K,xma as z}from"./cli-1.1.30-7h45a0x6.mjs";import{Lua as I,Mua as J}from"./cli-1.1.30-7dtpd1ra.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=A().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)B(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{L();K();N()});
|
|
2
|
+
export{P as vV,Q as wV,R as xV,H as yV,U as zV,V as AV,W as BV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hY as H,jY as M}from"./cli-1.1.30-5cc6nada.mjs";import{Ofa as B,Tfa as D,Xca as y,eda as K,ega as L}from"./cli-1.1.30-mebteknr.mjs";import{Mua as J}from"./cli-1.1.30-7dtpd1ra.mjs";async function Z(){let b=await H();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let x=D()?.remote?.defaultEnvironmentId,z=b.find((q)=>q.kind!=="bridge")??b[0],A=null;if(x){let q=b.find((k)=>k.environment_id===x);if(q){z=q;for(let k=y.length-1;k>=0;k--){let w=y[k];if(!w||w==="flagSettings")continue;if(B(w)?.remote?.defaultEnvironmentId===x){A=w;break}}}}return{availableEnvironments:b,selectedEnvironment:z,selectedEnvironmentSource:A}}var P=J(()=>{K();L();M()});
|
|
2
|
+
export{Z as lc,P as mc};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{$F as S,_F as F,cG as C,iG as a,qp as y,up as r}from"./cli-1.1.30-pc2wp50b.mjs";import{EZ as z,FZ as b}from"./cli-1.1.30-569esepc.mjs";import{o3 as D,p3 as o}from"./cli-1.1.30-5r9pakw5.mjs";import{$aa as T,Yaa as R,Zaa as l,aba as u}from"./cli-1.1.30-mebteknr.mjs";import{Ama as g,dma as O,fma as c,jma as L,nma as d,xma as N}from"./cli-1.1.30-7h45a0x6.mjs";import{sta as _,tta as I}from"./cli-1.1.30-m62yy9h8.mjs";import{Mua as j}from"./cli-1.1.30-7dtpd1ra.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function P(q){return!!T(q)}function V(q){let H=k(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,f,m,v;var x=j(()=>{I();b();g();u();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=_(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>P(H))})});function s(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!s(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${y(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
+
`)&&!Q.endsWith(`
|
|
3
|
+
|
|
4
|
+
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=j(()=>{a();b();x();l();d();r();c();o();A={code:"code -w",subl:"subl --wait"}});
|
|
5
|
+
export{Qq as mg,v as ng,x as og,i as pg,Vq as qg,t as rg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$p as Zq,Ap as m,Bp as Xq,Bq as l,Dq as Rq,Eq as i,Gq as Aq,Wp as D,zp as j}from"./cli-1.1.30-pc2wp50b.mjs";import{Bea as g,Eea as h,Fea as n,Kea as vq,Qia as L,Yia as Qq,zea as u}from"./cli-1.1.30-mebteknr.mjs";import{Aka as d,Bka as Uq}from"./cli-1.1.30-yy92v8yq.mjs";import{Ama as e,ama as P,bma as v,fma as f,jma as M,nma as y,xma as V}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as W,Yma as O,Zma as C,cna as N}from"./cli-1.1.30-gv4z21b9.mjs";import{Yta as p,oua as qq}from"./cli-1.1.30-gev0f31f.mjs";import{Mua as E}from"./cli-1.1.30-7dtpd1ra.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(x){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let J=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:J,ref:X}:{source:"git",url:J}}}return{source:"url",url:G}}let K=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||K){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=E(()=>{N();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as xq}from"fs/promises";import{join as Jq}from"path";function c(){return Jq(D(),Kq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==_)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${_})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=D();await M().mkdir(Q);let B=P(Z,null,2);await xq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){L(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${w}`);let Z=performance.now();try{let q=await p.get(w,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return j("install_counts",w,"success",performance.now()-Z),q.data.plugins}catch(q){throw j("install_counts",w,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),j("install_counts",w,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:_,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return L(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var _=1,Kq="install-counts-cache.json",w="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=E(()=>{qq();e();N();y();Qq();f();Xq();Zq()});import{readdir as wq,readFile as A,stat as Iq}from"fs/promises";import*as H from"path";function jq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function I(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Eq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function S(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(K&&typeof K==="object"){let X=K;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((x,J)=>{if(typeof x==="string")I(x,`commands[${J}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((x,J)=>{if(typeof x==="string")I(x,`agents[${J}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((x,J)=>{if(typeof x==="string")I(x,`skills[${J}]`,q)})}let z=K;if(typeof K==="object"&&K!==null){let X=K,Y=Object.keys(X).filter((x)=>Mq.has(x));if(Y.length>0){let x={...X};for(let J of Y)delete x[J],$.push({path:J,message:`Field '${J}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claudin "+"ignores it at load time."});z=x}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claudin accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),x;if(Y==="ENOENT")x=`File not found: ${Q}`;else if(Y==="EISDIR")x=`Path is not a file: ${Q}`;else x=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:x,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let K;try{K=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(K&&typeof K==="object"){let X=K;if(Array.isArray(X.plugins))X.plugins.forEach((Y,x)=>{if(Y&&typeof Y==="object"&&"source"in Y){let J=Y.source;if(typeof J==="string")I(J,`plugins[${x}].source`,q,Eq(J));if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")I(J.path,`plugins[${x}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(K);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((J,U)=>{if(X.plugins.filter((R)=>R.name===J.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${J.name}" found in marketplace`})});let Y=H.dirname(Q),x=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[J,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(x,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${J}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function Nq(Z,q,$){let Q=[],B=[],K=q.match(i);if(!K)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=K[1]||"",G;try{G=l(z)}catch(J){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(J)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let J=X.description;if(typeof J!=="string"&&typeof J!=="number"&&typeof J!=="boolean"&&J!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(J)?"array":typeof J}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((J)=>typeof J!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let x=X.shell;if(x!==void 0&&x!==null)if(typeof x!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof x}.`});else{let J=x.trim().toLowerCase();if(J!=="bash"&&J!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${x}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function _q(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await wq(Z,{withFileTypes:!0})}catch(B){let K=O(B);if(K==="ENOENT"||K==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let K=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(K,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(K)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,K]of $){let z=await o(K,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(x){if(C(x))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(x)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=Nq(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await _q(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await Iq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),K=await k(B);if(K.errors[0]?.code!=="ENOENT")return K;let z=H.join(q,".claude-plugin","plugin.json"),G=await S(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(jq(Z)){case"plugin":return S(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),K=v(B);if(Array.isArray(K.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return S(Z)}}}var Mq;var Lq=E(()=>{Uq();N();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as sc,r as tc,nq as uc,lq as vc,Oq as wc,QQ as xc,XQ as yc,Lq as zc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{QX as Xq,UX as wq,YX as vq,ZX as c,_X as xq,gY as Yq}from"./cli-1.1.30-1zsgv3yp.mjs";import{f5 as zq,m5 as Nq}from"./cli-1.1.30-2hw4vdpg.mjs";import{Eba as Fq,Haa as Oq,Iaa as Lq,Qia as b,Yia as yq,gba as jq,nga as C,pga as Mq}from"./cli-1.1.30-mebteknr.mjs";import{Aka as R,Bka as Qq,Cka as w,Dka as Vq}from"./cli-1.1.30-yy92v8yq.mjs";import{Ama as Jq,ama as z,bma as y,fma as qq,xma as G}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as W,Yma as x,cna as e}from"./cli-1.1.30-gv4z21b9.mjs";import{fna as s,gna as l,ina as t,qna as a}from"./cli-1.1.30-qdnzwgr7.mjs";import{Lqa as i,Soa as r,Toa as Aq,Vsa as m,Woa as d,dsa as u}from"./cli-1.1.30-ehk76t59.mjs";import{Mua as T,Nua as Hq}from"./cli-1.1.30-7dtpd1ra.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!xq())return;let Q=J??c(),V=vq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==zq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.30-epdyxcsa.mjs"),import("./detection-1.1.30-kkar89w6.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
+
export{_J as YV,WJ as ZV,UJ as _V,fq as $V,BJ as aW,EJ as bW,HJ as cW,OJ as dW,_q as eW,U as fW,bq as gW,jJ as hW,O as iW,v as jW,vJ as kW,P as lW,xJ as mW,zJ as nW,CJ as oW,Bq as pW,n as qW,Eq as rW,IJ as sW,Sq as tW,gJ as uW,L as vW,F as wW,B as xW,nq as yW,kq as zW,oJ as AW,nJ as BW,kJ as CW,rJ as DW,dJ as EW,rq as FW,iJ as GW,mJ as HW,sJ as IW,tJ as JW,aJ as KW,eJ as LW,mq as MW,sq as NW};
|