@claudiolabs/claudin 1.1.29 → 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.29-awhbrkah.mjs +0 -1
- package/dist/chunks/App-1.1.29-pm1xvr3g.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.29-c44twxse.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.29-f11by8v4.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.29-vnqj2te2.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.29-z2ah9t9j.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.29-30pn689g.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.29-sja8s9ck.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.29-k98h1gzp.mjs +0 -6
- package/dist/chunks/Doctor-1.1.29-ab8tjfg7.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.29-16y5q4ta.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.29-rk6hjgv2.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.29-kwjexf2x.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.29-479a268q.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.29-vshc8a59.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.29-snkzzfjw.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.29-x67swksb.mjs +0 -1
- package/dist/chunks/REPL-1.1.29-yw76hfjs.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.29-033m6wha.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.29-kbtx0xa6.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.29-dq4fkj22.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.29-x5fsxqa3.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.29-18h9wdn7.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.29-42z37x43.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.29-dkk7q8sf.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.29-944b5g4w.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.29-j7qknp7t.mjs +0 -1
- package/dist/chunks/add-dir-1.1.29-na3kdm45.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.29-fjjae3tn.mjs +0 -1
- package/dist/chunks/agents-1.1.29-gdcf24kq.mjs +0 -110
- package/dist/chunks/agents-1.1.29-hbyggbar.mjs +0 -3
- package/dist/chunks/api-1.1.29-tb280rgw.mjs +0 -1
- package/dist/chunks/asciicast-1.1.29-69mc9agv.mjs +0 -1
- package/dist/chunks/assistant-1.1.29-qmvynqfb.mjs +0 -1
- package/dist/chunks/auth-1.1.29-k2h0c136.mjs +0 -1
- package/dist/chunks/auth-1.1.29-mkh8s4y7.mjs +0 -1
- package/dist/chunks/autoMode-1.1.29-5enddc49.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.29-p4hp4dv6.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.29-sk8rt0mh.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.29-qxt8xakt.mjs +0 -1
- package/dist/chunks/branch-1.1.29-0zwfdt6s.mjs +0 -4
- package/dist/chunks/bridge-1.1.29-ee6b7cck.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.29-4wseqmtn.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.29-2r501b1s.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.29-sk2e5ssh.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.29-mjz0jnns.mjs +0 -1
- package/dist/chunks/btw-1.1.29-arf7x19m.mjs +0 -1
- package/dist/chunks/buddy-1.1.29-awsva6y8.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.29-67egf5jw.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.29-yk1h4vdq.mjs +0 -4
- package/dist/chunks/caches-1.1.29-8ryyt679.mjs +0 -1
- package/dist/chunks/cd-1.1.29-w9gepxqm.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.29-7g8vpmk4.mjs +0 -1
- package/dist/chunks/claudemd-1.1.29-z00d07f9.mjs +0 -1
- package/dist/chunks/clear-1.1.29-aj6vgn4b.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.29-95xqw9gq.mjs +0 -1
- package/dist/chunks/cli-1.1.29-0kfg7hf8.mjs +0 -2
- package/dist/chunks/cli-1.1.29-0rnfn0gy.mjs +0 -2
- package/dist/chunks/cli-1.1.29-0s73ykp6.mjs +0 -3
- package/dist/chunks/cli-1.1.29-0tf52nkw.mjs +0 -8
- package/dist/chunks/cli-1.1.29-0v2ryegc.mjs +0 -2
- package/dist/chunks/cli-1.1.29-0vpcc8vm.mjs +0 -2
- package/dist/chunks/cli-1.1.29-11hr4111.mjs +0 -2
- package/dist/chunks/cli-1.1.29-13gvy0m9.mjs +0 -25
- package/dist/chunks/cli-1.1.29-153rxzts.mjs +0 -2
- package/dist/chunks/cli-1.1.29-17kpfbq0.mjs +0 -2
- package/dist/chunks/cli-1.1.29-1dqp4d2w.mjs +0 -2
- package/dist/chunks/cli-1.1.29-1pqjxrp8.mjs +0 -2
- package/dist/chunks/cli-1.1.29-20bcsb6f.mjs +0 -15
- package/dist/chunks/cli-1.1.29-23gv5dgk.mjs +0 -2
- package/dist/chunks/cli-1.1.29-247v5hpd.mjs +0 -2
- package/dist/chunks/cli-1.1.29-252q86ck.mjs +0 -2
- package/dist/chunks/cli-1.1.29-27h8nqm5.mjs +0 -2
- package/dist/chunks/cli-1.1.29-29svre2k.mjs +0 -133
- package/dist/chunks/cli-1.1.29-2e5s8gsb.mjs +0 -24
- package/dist/chunks/cli-1.1.29-2ezms0yf.mjs +0 -2
- package/dist/chunks/cli-1.1.29-2hejf6pj.mjs +0 -2
- package/dist/chunks/cli-1.1.29-2mcxe125.mjs +0 -2
- package/dist/chunks/cli-1.1.29-2sjtk1zb.mjs +0 -2
- package/dist/chunks/cli-1.1.29-2tyhgmxe.mjs +0 -2
- package/dist/chunks/cli-1.1.29-2yev8mxw.mjs +0 -6
- package/dist/chunks/cli-1.1.29-31y8na35.mjs +0 -2
- package/dist/chunks/cli-1.1.29-34nqdrk5.mjs +0 -2
- package/dist/chunks/cli-1.1.29-35kpvqby.mjs +0 -4
- package/dist/chunks/cli-1.1.29-3776marx.mjs +0 -9
- package/dist/chunks/cli-1.1.29-37j436rz.mjs +0 -2
- package/dist/chunks/cli-1.1.29-3dnft82a.mjs +0 -2
- package/dist/chunks/cli-1.1.29-3fcr0sm5.mjs +0 -2
- package/dist/chunks/cli-1.1.29-3s4wcn65.mjs +0 -4
- package/dist/chunks/cli-1.1.29-40v483aw.mjs +0 -58
- package/dist/chunks/cli-1.1.29-4ahf2sg4.mjs +0 -2
- package/dist/chunks/cli-1.1.29-4bemzx23.mjs +0 -2
- package/dist/chunks/cli-1.1.29-4p953chd.mjs +0 -2
- package/dist/chunks/cli-1.1.29-4pdnzc5j.mjs +0 -2
- package/dist/chunks/cli-1.1.29-4q271q7a.mjs +0 -2
- package/dist/chunks/cli-1.1.29-4w9b7g8h.mjs +0 -3
- package/dist/chunks/cli-1.1.29-4xqgqvwm.mjs +0 -2
- package/dist/chunks/cli-1.1.29-4yztmbcx.mjs +0 -17
- package/dist/chunks/cli-1.1.29-55khgk00.mjs +0 -9
- package/dist/chunks/cli-1.1.29-566mygcr.mjs +0 -2
- package/dist/chunks/cli-1.1.29-57e9kkv7.mjs +0 -12
- package/dist/chunks/cli-1.1.29-57f3k3fp.mjs +0 -5
- package/dist/chunks/cli-1.1.29-5bm4np8j.mjs +0 -2
- package/dist/chunks/cli-1.1.29-5gydp5n7.mjs +0 -6
- package/dist/chunks/cli-1.1.29-5mpj7dft.mjs +0 -2
- package/dist/chunks/cli-1.1.29-5p2zzfpq.mjs +0 -4
- package/dist/chunks/cli-1.1.29-5pbjmqzt.mjs +0 -2
- package/dist/chunks/cli-1.1.29-5svhj1v0.mjs +0 -18
- package/dist/chunks/cli-1.1.29-6g47vtst.mjs +0 -2
- package/dist/chunks/cli-1.1.29-6kvtrk8a.mjs +0 -2
- package/dist/chunks/cli-1.1.29-6mbq5wth.mjs +0 -3
- package/dist/chunks/cli-1.1.29-6ngsfhk3.mjs +0 -17
- package/dist/chunks/cli-1.1.29-6q1q5fa3.mjs +0 -2
- package/dist/chunks/cli-1.1.29-6qykmvew.mjs +0 -2
- package/dist/chunks/cli-1.1.29-6t6n6ctd.mjs +0 -2
- package/dist/chunks/cli-1.1.29-71e5px3b.mjs +0 -2
- package/dist/chunks/cli-1.1.29-740d0ga1.mjs +0 -2
- package/dist/chunks/cli-1.1.29-79tgwbnn.mjs +0 -2
- package/dist/chunks/cli-1.1.29-7p975zzx.mjs +0 -2
- package/dist/chunks/cli-1.1.29-7peev9wq.mjs +0 -3
- package/dist/chunks/cli-1.1.29-7pfvq0z6.mjs +0 -60
- package/dist/chunks/cli-1.1.29-7vrxybxh.mjs +0 -15
- package/dist/chunks/cli-1.1.29-834b4680.mjs +0 -2
- package/dist/chunks/cli-1.1.29-8398r1x1.mjs +0 -2
- package/dist/chunks/cli-1.1.29-842m4sds.mjs +0 -2
- package/dist/chunks/cli-1.1.29-84fpb4zk.mjs +0 -2
- package/dist/chunks/cli-1.1.29-89nqwnk6.mjs +0 -3
- package/dist/chunks/cli-1.1.29-8c371c3k.mjs +0 -2
- package/dist/chunks/cli-1.1.29-8dsnjzad.mjs +0 -2
- package/dist/chunks/cli-1.1.29-8eeh9yez.mjs +0 -2
- package/dist/chunks/cli-1.1.29-8k2xw0ns.mjs +0 -16
- package/dist/chunks/cli-1.1.29-8s0k2ydg.mjs +0 -2
- package/dist/chunks/cli-1.1.29-995n5c8r.mjs +0 -2
- package/dist/chunks/cli-1.1.29-9fkgjjzm.mjs +0 -2
- package/dist/chunks/cli-1.1.29-9n8sz71q.mjs +0 -6
- package/dist/chunks/cli-1.1.29-9qc9kyz8.mjs +0 -6
- package/dist/chunks/cli-1.1.29-9s3rafev.mjs +0 -2
- package/dist/chunks/cli-1.1.29-9s9kgzze.mjs +0 -2
- package/dist/chunks/cli-1.1.29-a1p2bm8x.mjs +0 -4
- package/dist/chunks/cli-1.1.29-a6pnwve8.mjs +0 -206
- package/dist/chunks/cli-1.1.29-aa81cr7r.mjs +0 -2
- package/dist/chunks/cli-1.1.29-aazftc8x.mjs +0 -4
- package/dist/chunks/cli-1.1.29-ajwqka67.mjs +0 -2
- package/dist/chunks/cli-1.1.29-akx5bp37.mjs +0 -2
- package/dist/chunks/cli-1.1.29-am1n3767.mjs +0 -5553
- package/dist/chunks/cli-1.1.29-aptcshv0.mjs +0 -2
- package/dist/chunks/cli-1.1.29-ar7jahd2.mjs +0 -2
- package/dist/chunks/cli-1.1.29-bpvwqqqm.mjs +0 -3
- package/dist/chunks/cli-1.1.29-bzfhb58d.mjs +0 -21
- package/dist/chunks/cli-1.1.29-c67xmzgw.mjs +0 -2
- package/dist/chunks/cli-1.1.29-c7eatffy.mjs +0 -7
- package/dist/chunks/cli-1.1.29-ccmw3ns3.mjs +0 -2
- package/dist/chunks/cli-1.1.29-cgska4m2.mjs +0 -2
- package/dist/chunks/cli-1.1.29-cjy4bmpv.mjs +0 -2
- package/dist/chunks/cli-1.1.29-cwngf5s4.mjs +0 -2
- package/dist/chunks/cli-1.1.29-df0crs3h.mjs +0 -2
- package/dist/chunks/cli-1.1.29-dfra4ygt.mjs +0 -2
- package/dist/chunks/cli-1.1.29-dpzd32s9.mjs +0 -2
- package/dist/chunks/cli-1.1.29-dseazhey.mjs +0 -34
- package/dist/chunks/cli-1.1.29-e7b3rw2q.mjs +0 -2
- package/dist/chunks/cli-1.1.29-enk5zgkk.mjs +0 -2
- package/dist/chunks/cli-1.1.29-eq7p29fp.mjs +0 -2
- package/dist/chunks/cli-1.1.29-erh6v56f.mjs +0 -2
- package/dist/chunks/cli-1.1.29-es8f8tm1.mjs +0 -2
- package/dist/chunks/cli-1.1.29-ex9733z1.mjs +0 -2
- package/dist/chunks/cli-1.1.29-f103mqc1.mjs +0 -133
- package/dist/chunks/cli-1.1.29-f56z0kjj.mjs +0 -2
- package/dist/chunks/cli-1.1.29-f8qh0czy.mjs +0 -24
- package/dist/chunks/cli-1.1.29-fhwjnhs2.mjs +0 -12
- package/dist/chunks/cli-1.1.29-fsht50yz.mjs +0 -2
- package/dist/chunks/cli-1.1.29-g2g0bf6s.mjs +0 -2
- package/dist/chunks/cli-1.1.29-g9nssmee.mjs +0 -2
- package/dist/chunks/cli-1.1.29-gd1bzvdb.mjs +0 -20
- package/dist/chunks/cli-1.1.29-gfwfhh3b.mjs +0 -4
- package/dist/chunks/cli-1.1.29-gfyabc3h.mjs +0 -2
- package/dist/chunks/cli-1.1.29-gycpj0z6.mjs +0 -2
- package/dist/chunks/cli-1.1.29-h1ej5qf0.mjs +0 -2
- package/dist/chunks/cli-1.1.29-h4fg85xm.mjs +0 -2
- package/dist/chunks/cli-1.1.29-hez6jzkx.mjs +0 -2
- package/dist/chunks/cli-1.1.29-hsa1qk75.mjs +0 -2
- package/dist/chunks/cli-1.1.29-j17q2nnf.mjs +0 -2
- package/dist/chunks/cli-1.1.29-j3n6rxnx.mjs +0 -2
- package/dist/chunks/cli-1.1.29-k0yj3sf0.mjs +0 -2
- package/dist/chunks/cli-1.1.29-kcfqkdev.mjs +0 -24
- package/dist/chunks/cli-1.1.29-kd96jtpb.mjs +0 -2
- package/dist/chunks/cli-1.1.29-kjbjanmr.mjs +0 -2
- package/dist/chunks/cli-1.1.29-krg96g94.mjs +0 -2
- package/dist/chunks/cli-1.1.29-ksekfz16.mjs +0 -3
- package/dist/chunks/cli-1.1.29-kywbej24.mjs +0 -3
- package/dist/chunks/cli-1.1.29-m4bwjmrm.mjs +0 -2
- package/dist/chunks/cli-1.1.29-m4j21s8k.mjs +0 -3
- package/dist/chunks/cli-1.1.29-m7rehwdd.mjs +0 -58
- package/dist/chunks/cli-1.1.29-mcacd7ag.mjs +0 -2
- package/dist/chunks/cli-1.1.29-mn3z3w8e.mjs +0 -2
- package/dist/chunks/cli-1.1.29-mwntmkzh.mjs +0 -39
- package/dist/chunks/cli-1.1.29-mxtxy5qg.mjs +0 -2
- package/dist/chunks/cli-1.1.29-mxxghqnd.mjs +0 -2
- package/dist/chunks/cli-1.1.29-nkb4dq83.mjs +0 -2
- package/dist/chunks/cli-1.1.29-nn0hkwgq.mjs +0 -2
- package/dist/chunks/cli-1.1.29-nx6ynaex.mjs +0 -6
- package/dist/chunks/cli-1.1.29-nxbgdt4q.mjs +0 -2
- package/dist/chunks/cli-1.1.29-nxvs12dw.mjs +0 -2
- package/dist/chunks/cli-1.1.29-pbydvpcy.mjs +0 -7
- package/dist/chunks/cli-1.1.29-pf67dsfj.mjs +0 -42
- package/dist/chunks/cli-1.1.29-pwsznt80.mjs +0 -2
- package/dist/chunks/cli-1.1.29-q4fv8e5e.mjs +0 -2
- package/dist/chunks/cli-1.1.29-q7nywp06.mjs +0 -2
- package/dist/chunks/cli-1.1.29-q9atby2h.mjs +0 -2
- package/dist/chunks/cli-1.1.29-qqcjvb8v.mjs +0 -3
- package/dist/chunks/cli-1.1.29-qyg6dttd.mjs +0 -2
- package/dist/chunks/cli-1.1.29-qz5zy9rd.mjs +0 -4
- package/dist/chunks/cli-1.1.29-ra7737c1.mjs +0 -2
- package/dist/chunks/cli-1.1.29-rah0vfkh.mjs +0 -1
- package/dist/chunks/cli-1.1.29-rbtgtxtr.mjs +0 -2
- package/dist/chunks/cli-1.1.29-rcf2pvf2.mjs +0 -2
- package/dist/chunks/cli-1.1.29-rd1s45en.mjs +0 -24
- package/dist/chunks/cli-1.1.29-rfz718th.mjs +0 -6
- package/dist/chunks/cli-1.1.29-rn9a55ga.mjs +0 -2
- package/dist/chunks/cli-1.1.29-rnrvwymv.mjs +0 -2
- package/dist/chunks/cli-1.1.29-rse83jw9.mjs +0 -2
- package/dist/chunks/cli-1.1.29-s7njwf37.mjs +0 -15
- package/dist/chunks/cli-1.1.29-s8attyep.mjs +0 -2
- package/dist/chunks/cli-1.1.29-sb5dzja5.mjs +0 -2
- package/dist/chunks/cli-1.1.29-scf5dmr2.mjs +0 -50
- package/dist/chunks/cli-1.1.29-sgfpybka.mjs +0 -2
- package/dist/chunks/cli-1.1.29-smn5dd7n.mjs +0 -2
- package/dist/chunks/cli-1.1.29-snxnt4nr.mjs +0 -2
- package/dist/chunks/cli-1.1.29-t64smfse.mjs +0 -2
- package/dist/chunks/cli-1.1.29-tf20f72b.mjs +0 -2
- package/dist/chunks/cli-1.1.29-tg84q1yd.mjs +0 -20
- package/dist/chunks/cli-1.1.29-tyew653x.mjs +0 -3
- package/dist/chunks/cli-1.1.29-tz817yh8.mjs +0 -2
- package/dist/chunks/cli-1.1.29-v4wsvara.mjs +0 -2
- package/dist/chunks/cli-1.1.29-v6y1118n.mjs +0 -4
- package/dist/chunks/cli-1.1.29-v9bvr1aw.mjs +0 -5
- package/dist/chunks/cli-1.1.29-vd6b2ckm.mjs +0 -2
- package/dist/chunks/cli-1.1.29-vmmpxa0v.mjs +0 -2
- package/dist/chunks/cli-1.1.29-vp3z0245.mjs +0 -2
- package/dist/chunks/cli-1.1.29-vr34j6s2.mjs +0 -3
- package/dist/chunks/cli-1.1.29-vv1sy2ya.mjs +0 -25
- package/dist/chunks/cli-1.1.29-vws4vx43.mjs +0 -2
- package/dist/chunks/cli-1.1.29-vybx7rvs.mjs +0 -10
- package/dist/chunks/cli-1.1.29-we6vghby.mjs +0 -2
- package/dist/chunks/cli-1.1.29-wscghnfp.mjs +0 -2
- package/dist/chunks/cli-1.1.29-wv5r6reg.mjs +0 -2
- package/dist/chunks/cli-1.1.29-wxg06wve.mjs +0 -2
- package/dist/chunks/cli-1.1.29-xfcy5e42.mjs +0 -2
- package/dist/chunks/cli-1.1.29-xfhxkzzh.mjs +0 -2
- package/dist/chunks/cli-1.1.29-xftqnjy0.mjs +0 -4
- package/dist/chunks/cli-1.1.29-xjh2k6ex.mjs +0 -3
- package/dist/chunks/cli-1.1.29-xrwps5rg.mjs +0 -3
- package/dist/chunks/cli-1.1.29-y3v15ehz.mjs +0 -2
- package/dist/chunks/cli-1.1.29-yddrcp23.mjs +0 -2
- package/dist/chunks/cli-1.1.29-ykat6ksh.mjs +0 -2
- package/dist/chunks/cli-1.1.29-ymcd1d05.mjs +0 -2
- package/dist/chunks/cli-1.1.29-ypgjht1s.mjs +0 -2
- package/dist/chunks/cli-1.1.29-yv3r7f00.mjs +0 -2
- package/dist/chunks/cli-1.1.29-zb1qmpq0.mjs +0 -45
- package/dist/chunks/cli-1.1.29-ze1sanxc.mjs +0 -2
- package/dist/chunks/cli-1.1.29-zf1md9se.mjs +0 -2
- package/dist/chunks/cli-1.1.29-zh2qqpcy.mjs +0 -2
- package/dist/chunks/cli-1.1.29-zqccyb2h.mjs +0 -2
- package/dist/chunks/client-1.1.29-abnv29yp.mjs +0 -1
- package/dist/chunks/color-1.1.29-h2d0ea1p.mjs +0 -1
- package/dist/chunks/compact-1.1.29-071ysk4h.mjs +0 -3
- package/dist/chunks/config-1.1.29-jhy41xna.mjs +0 -1
- package/dist/chunks/config-1.1.29-wzvad2ns.mjs +0 -1
- package/dist/chunks/constants-1.1.29-5536grwb.mjs +0 -1
- package/dist/chunks/context-1.1.29-qxvktpnx.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.29-rypt767r.mjs +0 -1
- package/dist/chunks/conversation-1.1.29-yr51bv23.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.29-h3z6avxk.mjs +0 -1
- package/dist/chunks/copy-1.1.29-ze2g86qn.mjs +0 -9
- package/dist/chunks/cost-1.1.29-bn9nefss.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.29-5fe73ss4.mjs +0 -1
- package/dist/chunks/createSession-1.1.29-rscwvwx3.mjs +0 -1
- package/dist/chunks/debug-1.1.29-hsa8740f.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.29-nrkya6cw.mjs +0 -1534
- package/dist/chunks/desktop-1.1.29-wzh1a3fx.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.29-tgssqtyy.mjs +0 -1
- package/dist/chunks/detection-1.1.29-f3hp0x2s.mjs +0 -1
- package/dist/chunks/diff-1.1.29-h7fm7n04.mjs +0 -1
- package/dist/chunks/doctor-1.1.29-5ccr1m55.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.29-vmnf895k.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.29-d0ktjabf.mjs +0 -1
- package/dist/chunks/effort-1.1.29-xxzxaym4.mjs +0 -13
- package/dist/chunks/engine-1.1.29-9ekq4v2g.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.29-8c9jjpjy.mjs +0 -1
- package/dist/chunks/envUtils-1.1.29-593t90q5.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.29-g5qpphd9.mjs +0 -1
- package/dist/chunks/environments-1.1.29-x2aa2eet.mjs +0 -1
- package/dist/chunks/errors-1.1.29-jgx19cvb.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.29-wxzjn2xw.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.29-hexzsnhv.mjs +0 -1
- package/dist/chunks/exit-1.1.29-h788x2yv.mjs +0 -1
- package/dist/chunks/explorer-1.1.29-wtr7bga1.mjs +0 -1
- package/dist/chunks/export-1.1.29-42ve1rgm.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.29-y1e1m369.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.29-gq3g80nm.mjs +0 -1
- package/dist/chunks/fast-1.1.29-h6r42366.mjs +0 -1
- package/dist/chunks/feedback-1.1.29-st43crhj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.29-ckcepqgc.mjs +0 -1
- package/dist/chunks/git-1.1.29-j563zwhc.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.29-vk8m9ket.mjs +0 -1
- package/dist/chunks/goal-1.1.29-p7hzmh24.mjs +0 -4
- package/dist/chunks/growthbook-1.1.29-3549rcjz.mjs +0 -1
- package/dist/chunks/headless-1.1.29-5vx8fpbe.mjs +0 -2
- package/dist/chunks/heapdump-1.1.29-rp203g47.mjs +0 -6
- package/dist/chunks/help-1.1.29-3y5b0e2g.mjs +0 -1
- package/dist/chunks/hookChains-1.1.29-ga4rejj3.mjs +0 -3
- package/dist/chunks/hooks-1.1.29-b38tdtzk.mjs +0 -1
- package/dist/chunks/hooks-1.1.29-ygwx2459.mjs +0 -79
- package/dist/chunks/ide-1.1.29-67nmghjh.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.29-z1xa8jsd.mjs +0 -1
- package/dist/chunks/import-1.1.29-627psf8x.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.29-9dtr0d37.mjs +0 -1
- package/dist/chunks/index-1.1.29-101dgedk.mjs +0 -9
- package/dist/chunks/index-1.1.29-3mknam1s.mjs +0 -1
- package/dist/chunks/index-1.1.29-3rjcfsf3.mjs +0 -1
- package/dist/chunks/index-1.1.29-4ye92se8.mjs +0 -1
- package/dist/chunks/index-1.1.29-568ncn0w.mjs +0 -1
- package/dist/chunks/index-1.1.29-5zbg7qfm.mjs +0 -1
- package/dist/chunks/index-1.1.29-6pe6cr8p.mjs +0 -1
- package/dist/chunks/index-1.1.29-cpvbfs32.mjs +0 -5
- package/dist/chunks/index-1.1.29-e90xbdas.mjs +0 -23
- package/dist/chunks/index-1.1.29-efsdrxv3.mjs +0 -1
- package/dist/chunks/index-1.1.29-gy6pctgv.mjs +0 -1
- package/dist/chunks/index-1.1.29-jghqwznd.mjs +0 -1
- package/dist/chunks/index-1.1.29-k42kw8w5.mjs +0 -1
- package/dist/chunks/index-1.1.29-kvaapa6z.mjs +0 -1
- package/dist/chunks/index-1.1.29-mwtftmry.mjs +0 -9
- package/dist/chunks/index-1.1.29-q7ydx0h2.mjs +0 -2
- package/dist/chunks/index-1.1.29-r4y0qs9x.mjs +0 -1
- package/dist/chunks/index-1.1.29-rgsmqr6q.mjs +0 -1
- package/dist/chunks/index-1.1.29-tfnnf0k2.mjs +0 -1
- package/dist/chunks/index-1.1.29-v640rrh6.mjs +0 -1
- package/dist/chunks/index-1.1.29-v7vcnkxr.mjs +0 -30
- package/dist/chunks/index-1.1.29-xwekv48p.mjs +0 -2
- package/dist/chunks/index-1.1.29-z8a1fx6p.mjs +0 -1
- package/dist/chunks/init-1.1.29-h07twh7g.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.29-ae1e53vd.mjs +0 -1
- package/dist/chunks/ink-1.1.29-jkk9zn2g.mjs +0 -1
- package/dist/chunks/insights-1.1.29-awyethqq.mjs +0 -870
- package/dist/chunks/install-1.1.29-yhkejpep.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.29-jsrj24s4.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.29-gts768ac.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.29-mhgk5gm7.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.29-nz689brn.mjs +0 -1
- package/dist/chunks/keybindings-1.1.29-gh9axh60.mjs +0 -2
- package/dist/chunks/knowledge-1.1.29-hfwtr4gz.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.29-hfeprnvk.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.29-m2np7bm8.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.29-zpz05b3t.mjs +0 -1
- package/dist/chunks/log-1.1.29-fw86q3jh.mjs +0 -1
- package/dist/chunks/main-1.1.29-w3b4z9p1.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.29-r7qb1f8v.mjs +0 -1
- package/dist/chunks/mcp-1.1.29-jyq80had.mjs +0 -4
- package/dist/chunks/mcp-1.1.29-rj6rmrwj.mjs +0 -17
- package/dist/chunks/mcp-1.1.29-v1dw736k.mjs +0 -1
- package/dist/chunks/mcpb-1.1.29-2eqhsr4h.mjs +0 -1
- package/dist/chunks/memory-1.1.29-f9bfe5q1.mjs +0 -77
- package/dist/chunks/model-1.1.29-3cbf7nj8.mjs +0 -1
- package/dist/chunks/model-1.1.29-65mwx0jt.mjs +0 -2
- package/dist/chunks/node-1.1.29-9gdbqzzb.mjs +0 -15
- package/dist/chunks/node-1.1.29-g8j45zsn.mjs +0 -1
- package/dist/chunks/oauth-1.1.29-rzdyddzx.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.29-3v0weah8.mjs +0 -14
- package/dist/chunks/output-style-1.1.29-kh5kpq0r.mjs +0 -1
- package/dist/chunks/package-OS7RONXY-1.1.29-wartca0p.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.29-1pk3egnf.mjs +0 -1
- package/dist/chunks/parser-1.1.29-j664c2gz.mjs +0 -1
- package/dist/chunks/passes-1.1.29-daz9sxtn.mjs +0 -1
- package/dist/chunks/permissions-1.1.29-2t8t5tw7.mjs +0 -1
- package/dist/chunks/permissions-1.1.29-yrdqzbx5.mjs +0 -3
- package/dist/chunks/plan-1.1.29-bz008b9p.mjs +0 -1
- package/dist/chunks/plist-1.1.29-35acgftn.mjs +0 -1
- package/dist/chunks/plugin-1.1.29-8f04719q.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.29-xb113h6m.mjs +0 -1
- package/dist/chunks/plugins-1.1.29-qvtkwvvz.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.29-y3pz26pa.mjs +0 -2
- package/dist/chunks/print-1.1.29-efswnrv9.mjs +0 -57
- package/dist/chunks/process-1.1.29-58f1e2bp.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.29-d1jsv2w2.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.29-b3y0q14a.mjs +0 -9
- package/dist/chunks/prompt-1.1.29-62tsknn0.mjs +0 -1
- package/dist/chunks/prompt-1.1.29-jhbfphh7.mjs +0 -1
- package/dist/chunks/prompts-1.1.29-3z4c3ek4.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.29-rdwh19s1.mjs +0 -13
- package/dist/chunks/provider-1.1.29-3zvq773g.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.29-607et4qp.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.29-yenzyrfm.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.29-298ja1r1.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.29-4jd1spvm.mjs +0 -26
- package/dist/chunks/registry-1.1.29-m25stkr0.mjs +0 -1
- package/dist/chunks/release-notes-1.1.29-22baamfx.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.29-phv53y08.mjs +0 -2
- package/dist/chunks/remote-env-1.1.29-2ey2vymh.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.29-eafsxes0.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.29-hs2wyhc3.mjs +0 -1
- package/dist/chunks/rename-1.1.29-75kb3avp.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.29-dz6hhgez.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.29-09a6pk1q.mjs +0 -1
- package/dist/chunks/resume-1.1.29-685rb92g.mjs +0 -2
- package/dist/chunks/rewind-1.1.29-7nw7f08p.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.29-9cr8rvbr.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.29-xmaezf6n.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.29-db9nwpd6.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.29-wzeynybm.mjs +0 -1
- package/dist/chunks/session-1.1.29-m8fppsh2.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.29-ast9gceq.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.29-h1eqvpq2.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.29-aykc0gmj.mjs +0 -1
- package/dist/chunks/settings-1.1.29-0c2fyzj5.mjs +0 -1
- package/dist/chunks/setup-1.1.29-y2wjm0r9.mjs +0 -12
- package/dist/chunks/sinks-1.1.29-5rs2f8yn.mjs +0 -1
- package/dist/chunks/skills-1.1.29-cp2813x4.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.29-kh45g8fh.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.29-82s33sqm.mjs +0 -1
- package/dist/chunks/state-1.1.29-p67vvgkh.mjs +0 -1
- package/dist/chunks/stats-1.1.29-by56pge2.mjs +0 -1
- package/dist/chunks/status-1.1.29-hw493zns.mjs +0 -1
- package/dist/chunks/stickers-1.1.29-8s1sjy27.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.29-qz9p5e81.mjs +0 -1
- package/dist/chunks/tasks-1.1.29-337vzgbz.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.29-85qvaaf6.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.29-k78c522w.mjs +0 -1
- package/dist/chunks/teleport-1.1.29-c44n1v9b.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.29-rrwvk8ab.mjs +0 -1
- package/dist/chunks/theme-1.1.29-y04xza5k.mjs +0 -1
- package/dist/chunks/thinkback-1.1.29-s3hjbm7q.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.29-2bhrtfq9.mjs +0 -1
- package/dist/chunks/toolPool-1.1.29-gfpcfj2x.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.29-vfnsb7j0.mjs +0 -1
- package/dist/chunks/tools-1.1.29-w11mxfwv.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.29-qwyypx3m.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.29-yxqqz6t4.mjs +0 -69
- package/dist/chunks/types-1.1.29-2v59e63g.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.29-a115pcna.mjs +0 -4
- package/dist/chunks/update-1.1.29-3zmwqt73.mjs +0 -72
- package/dist/chunks/upgrade-1.1.29-xpe0b67z.mjs +0 -1
- package/dist/chunks/upload-1.1.29-d3tkf4nc.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.29-fqatj32w.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.29-9w1d0vdc.mjs +0 -1
- package/dist/chunks/usage-1.1.29-6mr5tsjn.mjs +0 -1
- package/dist/chunks/util-1.1.29-94aahqex.mjs +0 -1
- package/dist/chunks/utils-1.1.29-jg1xnwx8.mjs +0 -1
- package/dist/chunks/vim-1.1.29-hf5m1934.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.29-7z8smp5m.mjs +0 -13
- package/dist/chunks/watcher-1.1.29-qeqe2296.mjs +0 -1
- package/dist/chunks/wiki-1.1.29-cr99gpcx.mjs +0 -132
- package/dist/chunks/workflows-1.1.29-v6f0e3am.mjs +0 -1
- package/dist/chunks/worktree-1.1.29-qf1zfstj.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.29-qxpsmfqy.mjs +0 -1
- package/dist/chunks/wrapper-1.1.29-b7y6s4vd.mjs +0 -7
- /package/dist/chunks/{cli-1.1.29-v507w0kc.mjs → cli-1.1.30-2cmsx74f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.29-8zfk7gyk.mjs → cli-1.1.30-dy1jvt4f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.29-09pf4n9h.mjs → cli-1.1.30-fa5djn9v.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.29-skjcgaw2.mjs → cli-1.1.30-s27erhy7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.29-vk67t66v.mjs → cli-1.1.30-vxh27fdj.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.29-h0m93zmw.mjs → cli-1.1.30-y1pn2vb5.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Eua as n}from"./cli-1.1.30-0e0e9msg.mjs";import{Kua as r}from"./cli-1.1.30-7dtpd1ra.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
+
export{i as P$};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Oc as x,Pc as o}from"./cli-1.1.30-naaxghkh.mjs";import{KL as O,LL as a,TD as M,WL as R,ZD as l,ZL as i,aN as W,dN as t,fq as Y,fv as Z,hq as g,lv as v,pz as $,qz as d,tA as K,uz as y,vA as m,wz as u}from"./cli-1.1.30-pc2wp50b.mjs";import{Qia as X,Yia as h}from"./cli-1.1.30-mebteknr.mjs";import{Ama as c,xma as I}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as V,cna as f}from"./cli-1.1.30-gv4z21b9.mjs";import{Vsa as _,apa as U}from"./cli-1.1.30-ehk76t59.mjs";import{Mua as C}from"./cli-1.1.30-7dtpd1ra.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),K();let G=await W(),[E,F]=await Promise.all([O(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Y(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await $(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),y();let N=!1;try{await M()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();u();o();v();c();f();h();i();a();l();d();g();m();t()});
|
|
2
|
+
export{Lj as Kc,p as Lc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Gaa as z,Iaa as H,Qia as C,Yia as J}from"./cli-1.1.30-mebteknr.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
|
|
2
|
+
export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{n7 as H,o7 as _,p7 as Y,q7 as y}from"./cli-1.1.30-wmpgbhw0.mjs";import{Baa as M,Daa as f}from"./cli-1.1.30-mebteknr.mjs";import{Ala as F,Ama as S,Cla as b,jma as P,nma as p,xma as x}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as V,cna as R}from"./cli-1.1.30-gv4z21b9.mjs";import{ina as U,qna as g}from"./cli-1.1.30-qdnzwgr7.mjs";import{Vsa as A,fra as D,gra as W}from"./cli-1.1.30-ehk76t59.mjs";import{Mua as L}from"./cli-1.1.30-7dtpd1ra.mjs";function I(){let q=D();if(q!==void 0)return q;let G=process.env.CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR;if(!G){let w=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,z=Y(w,"session ingress token");return W(z),z}let Q=parseInt(G,10);if(Number.isNaN(Q))return x(`CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR must be a valid file descriptor number, got: ${G}`,{level:"error"}),W(null),null;try{let w=P(),z=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${Q}`:`/proc/self/fd/${Q}`,X=w.readFileSync(z,{encoding:"utf8"}).trim();if(!X)return x("File descriptor contained empty token",{level:"error"}),W(null),null;return x(`Successfully read token from file descriptor ${Q}`),W(X),_(H,X,"session ingress token"),X}catch(w){x(`Failed to read token from file descriptor ${Q}: ${V(w)}`,{level:"error"});let z=process.env.CLAUDE_SESSION_INGRESS_TOKEN_FILE??H,X=Y(z,"session ingress token");return W(X),X}}function k(){let q=process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN;if(q)return q;return I()}function o(){let q=k();if(!q)return{};if(q.startsWith("sk-ant-sid")){let G={Cookie:`sessionKey=${q}`},Q=process.env.CLAUDE_CODE_ORGANIZATION_UUID;if(Q)G["X-Organization-Uuid"]=Q;return G}return{Authorization:`Bearer ${q}`}}function s(q){process.env.CLAUDE_CODE_SESSION_ACCESS_TOKEN=q}var u=L(()=>{A();y();S();R();p()});function E(){j(),K=setInterval(()=>{if(M("debug","session_keepalive_heartbeat",{refcount:J}),U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()},C)}function v(){if(j(),$===null)return;B=setTimeout(()=>{M("info","session_idle_30s"),B=null},C)}function j(){if(B!==null)clearTimeout(B),B=null}function e(q){if($=q,J>0&&K===null)E()}function qq(){if($=null,K!==null)clearInterval(K),K=null;j()}function Gq(){if(U(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES))$?.()}function Jq(){return $!==null}function Kq(q){if(J++,Z.set(q,(Z.get(q)??0)+1),J===1){if(O=Date.now(),$!==null&&K===null)E()}if(!N)N=!0,F(async()=>{M("info","session_activity_at_shutdown",{refcount:J,active:Object.fromEntries(Z),oldest_activity_ms:J>0&&O!==null?Date.now()-O:null})})}function Qq(q){if(J>0)J--;let G=(Z.get(q)??0)-1;if(G>0)Z.set(q,G);else Z.delete(q);if(J===0&&K!==null)clearInterval(K),K=null,v()}var C=30000,$=null,J=0,Z,O=null,K=null,B=null,N=!1;var m=L(()=>{b();f();g();Z=new Map});var $q;var h=L(()=>{$q={input_tokens:0,cache_creation_input_tokens:0,cache_read_input_tokens:0,output_tokens:0,output_tokens_details:{thinking_tokens:0},server_tool_use:{web_search_requests:0,web_fetch_requests:0},service_tier:"standard",cache_creation:{ephemeral_1h_input_tokens:0,ephemeral_5m_input_tokens:0},inference_geo:"",iterations:[],speed:"standard"}});
|
|
2
|
+
export{k as QW,o as RW,s as SW,u as TW,e as UW,qq as VW,Gq as WW,Jq as XW,Kq as YW,Qq as ZW,m as _W,$q as $W,h as aX};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
|
|
2
|
+
export{z as Iua,A as Jua,B as Kua,C as Lua,D as Mua,F as Nua,G as Oua,H as Pua};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Dma as ZX,Gma as y8}from"./cli-1.1.30-q8sd13v9.mjs";import{Yma as r,cna as R8}from"./cli-1.1.30-gv4z21b9.mjs";import{fna as $X,ina as NJ,qna as j8}from"./cli-1.1.30-qdnzwgr7.mjs";import{$na as yJ,Bna as eJ,Cna as fX,Dna as fQ,Ena as T6,Fna as $Q,Gna as cX,Jna as JQ,Kna as pX,Lna as g,Mna as oJ,Nna as n,Ona as LQ,Rna as pQ,Sna as v6,Vna as l,Vsa as sQ,Wna as wQ,Woa as XX,Xna as w,Yna as kQ,aoa as OX,boa as h,coa as vJ,doa as tJ,eoa as hX,foa as hJ,goa as wX,hoa as y,ioa as OJ,joa as gQ,koa as m6,noa as O,ooa as GJ,rna as dQ,sna as P6,xna as qJ,yna as oX}from"./cli-1.1.30-ehk76t59.mjs";import{Wsa as SJ,Xsa as CX,ata as cJ,bta as TX,cta as HJ,dta as J6,gta as L,hta as XJ,mta as LJ,nta as zX,sta as V,tta as xJ}from"./cli-1.1.30-m62yy9h8.mjs";import{Lua as uJ,Mua as U,Oua as N,Pua as W}from"./cli-1.1.30-7dtpd1ra.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],q=0,H=null,G=null;function I(){if(H)clearTimeout(H),H=null}function B(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],q=0,I()}function M(){if(!H)H=setTimeout(B,Q)}function F(){if(G){G.push(...Z),Z=[],q=0,I();return}let x=Z;Z=[],q=0,I(),G=x,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(x){if(Y){J(x);return}if(Z.push(x),q+=x.length,M(),Z.length>=X||q>=$)F()},flush:B,dispose(){B()}}}var BJ=()=>{};function IJ(J){return t.add(J),()=>t.delete(J)}async function r8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function WX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function EX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function VJ(J,Q){if(!Q)return!0;let X=WX(J);return EX(X,Q)}var FJ;var DJ=U(()=>{xJ();FJ=V((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function MX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=MX});var BX,e;var _J=U(()=>{zX();BX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=BX});function IX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=IX});function VX(J,Q,X){var $=J[Q];if(!(FX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var xX,FX,j;var QJ=U(()=>{JJ();CX();xX=Object.prototype,FX=xX.hasOwnProperty;j=VX});function DX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,q=Q.length;while(++Z<q){var H=Q[Z],G=$?$(X[H],J[H],H,X,J):void 0;if(G===void 0)G=J[H];if(Y)m(X,H,G);else j(X,H,G)}return X}var R;var k=U(()=>{QJ();JJ();R=DX});function RX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=RX});function AX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var PJ;var TJ=U(()=>{PJ=AX});function SX(J){if(!L(J))return PJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!_X.call(J,$))))X.push($);return X}var LX,_X,mJ;var jJ=U(()=>{XJ();vJ();TJ();LX=Object.prototype,_X=LX.hasOwnProperty;mJ=SX});function kX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{OX();jJ();wX();_=kX});function PX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=PX});var p={};uJ(p,{default:()=>$J});function mX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,vX,gJ,bJ,$J;var lJ=U(()=>{TX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,vX=pJ&&pJ.exports===nJ,gJ=vX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=mX});function jX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=jX});function yX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=yX});var dX,b;var ZJ=U(()=>{hX();dX=tJ(Object.getPrototypeOf,Object),b=dX});var gX,bX,u;var YJ=U(()=>{fX();ZJ();oJ();pX();gX=Object.getOwnPropertySymbols,bX=!gX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=bX});function uX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=uX});function nX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{cX();YJ();d();ZQ=nX});function rX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&iX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var lX,iX,qQ;var HQ=U(()=>{lX=Object.prototype,iX=lX.hasOwnProperty;qQ=rX});function sX(J){var Q=new J.constructor(J.byteLength);return new qJ(Q).set(new qJ(J)),Q}var S;var c=U(()=>{oX();S=sX});function aX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=aX});function eX(J){var Q=new J.constructor(J.source,tX.exec(J));return Q.lastIndex=J.lastIndex,Q}var tX,UQ;var NQ=U(()=>{tX=/\w*$/;UQ=eX});function Q6(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{J6();WQ=HJ?HJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=Q6});function X6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var BQ;var IQ=U(()=>{c();BQ=X6});function D6(J,Q,X){var $=J.constructor;switch(Q){case N6:return S(J);case $6:case Z6:return new $(+J);case W6:return GQ(J,X);case E6:case M6:case z6:case B6:case I6:case C6:case x6:case F6:case V6:return BQ(J,X);case Y6:return new $;case q6:case K6:return new $(J);case H6:return UQ(J);case G6:return new $;case U6:return MQ(J)}}var $6="[object Boolean]",Z6="[object Date]",Y6="[object Map]",q6="[object Number]",H6="[object RegExp]",G6="[object Set]",K6="[object String]",U6="[object Symbol]",N6="[object ArrayBuffer]",W6="[object DataView]",E6="[object Float32Array]",M6="[object Float64Array]",z6="[object Int8Array]",B6="[object Int16Array]",I6="[object Int32Array]",C6="[object Uint8Array]",x6="[object Uint8ClampedArray]",F6="[object Uint16Array]",V6="[object Uint32Array]",CQ;var xQ=U(()=>{c();KQ();NQ();zQ();IQ();CQ=D6});var FQ,R6,VQ;var DQ=U(()=>{XJ();FQ=Object.create,R6=function(){function J(){}return function(Q){if(!L(Q))return{};if(FQ)return FQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),VQ=R6});function A6(J){return typeof J.constructor=="function"&&!h(J)?VQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=A6});function _6(J){return n(J)&&O(J)==L6}var L6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=_6});var OQ,S6,PQ;var TQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,S6=OQ?l(OQ):_Q,PQ=S6});function w6(J){return n(J)&&O(J)==O6}var O6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=w6});var jQ,k6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,k6=jQ?l(jQ):vQ,yQ=k6});function i(J,Q,X,$,Y,Z){var q,H=Q&j6,G=Q&y6,I=Q&h6;if(X)q=Y?X(J,$,Y,Z):X(J);if(q!==void 0)return q;if(!L(J))return J;var B=fQ(J);if(B){if(q=qQ(J),!H)return iJ(J,q)}else{var M=O(J),F=M==uQ||M==b6;if(pQ(J))return $J(J,H);if(M==cQ||M==bQ||F&&!Y){if(q=G||F?{}:RQ(J),!H)return G?QQ(J,dJ(q,J)):sJ(J,wJ(q,J))}else{if(!z[M])return Y?J:{};q=CQ(J,M,H)}}Z||(Z=new dQ);var x=Z.get(J);if(x)return x;if(Z.set(J,q),yQ(J))J.forEach(function(D){q.add(i(D,Q,X,D,J,Z))});else if(PQ(J))J.forEach(function(D,A){q.set(A,i(D,Q,X,A,J,Z))});var v=I?G?ZQ:gQ:G?_:y,MJ=B?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(q,A,i(D,Q,X,A,J,Z))}),q}var j6=1,y6=2,h6=4,bQ="[object Arguments]",d6="[object Array]",f6="[object Boolean]",p6="[object Date]",g6="[object Error]",uQ="[object Function]",b6="[object GeneratorFunction]",u6="[object Map]",c6="[object Number]",cQ="[object Object]",n6="[object RegExp]",l6="[object Set]",i6="[object String]",r6="[object Symbol]",o6="[object WeakMap]",s6="[object ArrayBuffer]",a6="[object DataView]",t6="[object Float32Array]",e6="[object Float64Array]",J8="[object Int8Array]",Q8="[object Int16Array]",X8="[object Int32Array]",$8="[object Uint8Array]",Z8="[object Uint8ClampedArray]",Y8="[object Uint16Array]",q8="[object Uint32Array]",z,nQ;var lQ=U(()=>{P6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();m6();YQ();GJ();HQ();xQ();AQ();T6();v6();TQ();XJ();hQ();OJ();d();z={};z[bQ]=z[d6]=z[s6]=z[a6]=z[f6]=z[p6]=z[t6]=z[e6]=z[J8]=z[Q8]=z[X8]=z[u6]=z[c6]=z[cQ]=z[n6]=z[l6]=z[i6]=z[r6]=z[$8]=z[Z8]=z[Y8]=z[q8]=!0;z[g6]=z[uQ]=z[o6]=!1;nQ=i});function K8(J){return nQ(J,H8|G8)}var H8=1,G8=4,iQ;var rQ=U(()=>{lQ();iQ=K8});var V8={};uJ(V8,{writeFileSync_DEPRECATED:()=>F8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>I8,cloneDeep:()=>x8,clone:()=>C8,callerFrame:()=>M8,SLOW_OPERATION_THRESHOLD_MS:()=>E8});import{closeSync as U8,writeFileSync as oQ,fsyncSync as N8,openSync as W8}from"fs";function M8(J){if(!J)return"";for(let Q of J.split(`
|
|
2
|
+
`)){if(Q.includes("slowOperations"))continue;let X=Q.match(/([^/\\]+?):(\d+):\d+\)?$/);if(X)return` @ ${X[1]}:${X[2]}`}return""}function B8(){return z8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}}function C8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}}function x8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function F8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let I=typeof X==="object"&&"encoding"in X?X.encoding:void 0,B=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=W8(J,"w",B),oQ(M,Q,{encoding:I??void 0}),N8(M)}finally{if(M!==void 0)U8(M)}}else oQ(J,Q,X)}catch(q){var H=q,G=1}finally{W(Z,H,G)}}var E8,z8,E,I8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}};var UJ=U(()=>{rQ();sQ();aQ();E8=(()=>{let J=process.env.CLAUDIN_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let Q=Number(J);if(!Number.isNaN(Q)&&Q>=0)return Q}return 1/0})();z8={[Symbol.dispose](){}};E=B8});import*as K from"fs";import{mkdir as A8,open as o,readdir as L8,readFile as tQ,copyFile as _8,rename as S8,rmdir as O8,rm as w8,stat as k8,unlink as P8}from"fs/promises";import{homedir as eQ}from"os";import*as C from"path";function JX(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function H1(J,Q,X){let{resolvedPath:$}=JX(J,Q);if(X.has($))return!0;return X.add($),!1}function T8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),q=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?q:C.join(q,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function G1(J){let Q=J;if(Q==="~")Q=eQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(eQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let q=Q,H=new Set,G=40;for(let I=0;I<G;I++){if(H.has(q))break;if(H.add(q),!$.existsSync(q)){if(q===Q){let x=T8($,Q);if(x!==void 0)X.add(x)}break}let B=$.lstatSync(q);if(B.isFIFO()||B.isSocket()||B.isCharacterDevice()||B.isBlockDevice())break;if(!B.isSymbolicLink())break;let M=$.readlinkSync(q),F=C.isAbsolute(M)?M:C.resolve(C.dirname(q),M);X.add(F),q=F}}catch{}let{resolvedPath:Y,isSymlink:Z}=JX($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return m8}async function K1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await $.read(q,H,Z-H,Q+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:Y}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function U1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let q=Buffer.allocUnsafe(Z);let H=0;while(H<Z){let{bytesRead:x}=await X.read(q,H,Z-H,Y+H);if(x===0)break;H+=x}return{content:q.toString("utf8",0,H),bytesRead:H,bytesTotal:$}}catch(I){var B=I,M=1}finally{var F=W(G,B,M);F&&await F}}async function*N1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),q=Buffer.alloc(4096);while(Y>0){let H=Math.min(4096,Y);Y-=H,await X.read(q,0,H,Y);let G=Buffer.concat([q.subarray(0,H),Z]),I=G.indexOf(10);if(I===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,I));let B=G.toString("utf8",I+1).split(`
|
|
3
|
+
`);for(let M=B.length-1;M>=0;M--){let F=B[M];if(F)yield F}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var v8,m8;var QX=U(()=>{R8();UJ();v8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return k8(J)},async readdir(J){return L8(J,{withFileTypes:!0})},async unlink(J){return P8(J)},async rmdir(J){return O8(J)},async rm(J,Q){return w8(J,Q)},async mkdir(J,Q){try{await A8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return tQ(J,{encoding:Q.encoding})},async rename(J,Q){return S8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return _8(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),I=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:I}}finally{if($)K.closeSync($)}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var q=Z,H=1}finally{W(Y,q,H)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,q=1}finally{W($,Z,q)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return tQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),q=0;while(q<Y){let{bytesRead:H}=await X.read(Z,q,Y-q,q);if(H===0)break;q+=H}return q<Y?Z.subarray(0,q):Z}finally{await X.close()}}},m8=v8});import{appendFile as h8,mkdir as d8,symlink as f8,unlink as p8}from"fs/promises";import{dirname as YX,join as qX}from"path";function L1(){let J=T();return HX=!0,T.cache.clear?.(),J}function u8(J){if(!T())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=b8();return VJ(J,Q)}function _1(J){EJ=J}function S1(){return EJ}async function c8(J,Q,X,$){if(J)await d8(Q,{recursive:!0}).catch(()=>{});await h8(X,$),NX()}function n8(){}function l8(){if(!P){let J=null;P=zJ({writeFn:(Q)=>{let X=UX(),$=YX(X),Y=J!==$;if(J=$,T()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),NX();return}a=a.then(c8.bind(null,Y,$,X,Q)).catch(n8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:T()}),IJ(async()=>{P?.dispose(),await a})}return P}async function O1(){P?.flush(),await a}function D8(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[g8()])return;if(!u8(J))return;if(EJ&&J.includes(`
|
|
4
|
+
`))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
|
|
5
|
+
`;if(GX()){ZX($);return}l8().write($)}function UX(){return KX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??qX($X(),"debug",`${XX()}.txt`)}function w1(J,Q){}var WJ,g8,HX=!1,T,b8,GX,KX,EJ=!1,P=null,a,NX;var aQ=U(()=>{xJ();sQ();BJ();CJ();DJ();j8();QX();y8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},g8=V(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),T=V(()=>{return HX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||GX()||process.argv.some((J)=>J.startsWith("--debug="))||KX()!==null});b8=V(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return FJ(Q)}),GX=V(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),KX=V(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();NX=V(async()=>{try{let J=UX(),Q=YX(J),X=qX(Q,"latest");await p8(X).catch(()=>{}),await f8(J,X)}catch{}})});
|
|
6
|
+
export{zJ as yla,BJ as zla,IJ as Ala,r8 as Bla,CJ as Cla,e as Dla,_J as Ela,m as Fla,JJ as Gla,j as Hla,QJ as Ila,R as Jla,k as Kla,_ as Lla,d as Mla,$J as Nla,lJ as Ola,iJ as Pla,rJ as Qla,b as Rla,ZJ as Sla,ZQ as Tla,YQ as Ula,BQ as Vla,IQ as Wla,RQ as Xla,AQ as Yla,nQ as Zla,lQ as _la,E as $la,KJ as ama,I8 as bma,C8 as cma,F8 as dma,V8 as ema,UJ as fma,JX as gma,H1 as hma,G1 as ima,s as jma,K1 as kma,U1 as lma,N1 as mma,QX as nma,g8 as oma,T as pma,L1 as qma,b8 as rma,GX as sma,KX as tma,_1 as uma,S1 as vma,O1 as wma,D8 as xma,UX as yma,w1 as zma,aQ as Ama};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{Ab as S}from"./cli-1.1.30-dy1jvt4f.mjs";import{Qf as YK,Vf as iK}from"./cli-1.1.30-dv38qw87.mjs";import{$p as dK,BJ as lK,CJ as gK,CL as kK,DU as m,FU as rK,JB as zK,LB as KK,MB as cK,MQ as fz,NM as QK,OM as aK,Rn as tz,Tn as uK,Up as F,VQ as CK,Vp as pK,Xp as ez,bN as XK,dN as nK,qv as vz,uL as bz,xv as jK}from"./cli-1.1.30-pc2wp50b.mjs";import{h3 as Zz,n3 as xK,o3 as $z,p3 as TK}from"./cli-1.1.30-5r9pakw5.mjs";import{A8 as Rz,B8 as oz,D_ as jz,I8 as wz,M6 as A,N8 as D,P8 as Gz,S6 as I,U8 as E,f9 as sz,j9 as SK,p_ as Fz,r_ as kz,s8 as xz,t_ as M,w8 as Tz}from"./cli-1.1.30-wmpgbhw0.mjs";import{Z_ as G,__ as OK}from"./cli-1.1.30-4d90v0pd.mjs";import{Baa as P,Daa as fK,Eba as mK,Ofa as J,Oga as iz,Qfa as $,Qia as W,Rca as Qz,Sfa as nz,Tfa as x,Uga as q,Wca as yK,Wfa as Uz,Xga as V,Yia as O,_aa as Vz,aba as MK,ada as Xz,bha as Lz,cha as Az,dha as rz,eda as GK,ega as B,hba as gz,qha as U,taa as Jz,uaa as IK,uda as Yz,xba as az,xda as DK}from"./cli-1.1.30-mebteknr.mjs";import{Aja as f,Eja as hK}from"./cli-1.1.30-322advqh.mjs";import{Gka as lz,Ika as vK}from"./cli-1.1.30-1ybfyckn.mjs";import{ula as Z,xla as L}from"./cli-1.1.30-pgx35gqd.mjs";import{dma as t,fma as LK,gma as e,jma as zz,nma as AK}from"./cli-1.1.30-7h45a0x6.mjs";import{Fma as Kz,Gma as _K}from"./cli-1.1.30-q8sd13v9.mjs";import{Xma as C,Zma as s,cna as NK}from"./cli-1.1.30-gv4z21b9.mjs";import{hna as v,ina as u,kna as cz,qna as EK}from"./cli-1.1.30-qdnzwgr7.mjs";import{Lqa as pz,Noa as j,Roa as UK,Vsa as T,Xqa as dz,cra as r,hqa as R,iqa as Sz,jqa as w,lqa as uz,vra as o}from"./cli-1.1.30-ehk76t59.mjs";import{Jua as bK}from"./cli-1.1.30-7dtpd1ra.mjs";OK();xK();T();DK();NK();AK();yK();O();_K();GK();UK();LK();TK();import{readFileSync as RK}from"node:fs";var wK=/--inspect(-brk)?/,i=/--inspect(-brk)?|--debug(-brk)?/;function WQ(){let z=Yz()?wK:i,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&i.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function BQ(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Zz)}function UQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function qz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!Qz(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
|
|
2
|
+
`)),process.exit(1);X=$z("claude-settings",".json",{contentHash:z}),t(X,z,"utf8")}else{let{resolvedPath:Y}=e(zz(),K);try{RK(Y,"utf8")}catch(H){if(s(H))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
|
|
3
|
+
`)),process.exit(1);throw H}X=Y}r(X),j()}catch(z){if(z instanceof Error)W(z);process.stderr.write(G.red(`Error processing settings: ${C(z)}
|
|
4
|
+
`)),process.exit(1)}}function Hz(K){try{let z=Xz(K);o(z),j()}catch(z){if(z instanceof Error)W(z);process.stderr.write(G.red(`Error processing --setting-sources: ${C(z)}
|
|
5
|
+
`)),process.exit(1)}}async function NQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(H)=>{Q+=H};process.stdin.on("data",X);let Y=await Kz(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
|
|
6
|
+
`);return[K,Q].filter(Boolean).join(`
|
|
7
|
+
`)}return K}hK();rK();L();uK();U();SK();fK();EK();mK();IK();MK();async function Wz(){if(!await Vz("gh"))return"not_installed";let{exitCode:z}=await Jz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}O();E();aK();dK();nK();L();U();O();B();function Bz(){let K=V();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=J("userSettings")||{};$("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",q((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...H}=Q;return H})}catch(z){W(Error(`Failed to migrate auto-updates: ${z}`)),Z("",{has_error:!0})}}L();U();O();B();function Nz(){if(!V().bypassPermissionsModeAccepted)return;try{if(!Uz())$("userSettings",{skipDangerousModePermissionPrompt:!0});Z("",{}),q((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){W(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}L();U();O();B();function _z(){let K=Lz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=J("localSettings")||{},H={},N=[];if(z&&Y.enableAllProjectMcpServers===void 0)H.enableAllProjectMcpServers=K.enableAllProjectMcpServers,N.push("enableAllProjectMcpServers");else if(z)N.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let _=Y.enabledMcpjsonServers||[];H.enabledMcpjsonServers=[...new Set([..._,...K.enabledMcpjsonServers])],N.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let _=Y.disabledMcpjsonServers||[];H.disabledMcpjsonServers=[...new Set([..._,...K.disabledMcpjsonServers])],N.push("disabledMcpjsonServers")}if(Object.keys(H).length>0)$("localSettings",H);if(N.includes("enableAllProjectMcpServers")||N.includes("enabledMcpjsonServers")||N.includes("disabledMcpjsonServers"))Az((_)=>{let{enableAllProjectMcpServers:p,enabledMcpjsonServers:d,disabledMcpjsonServers:c,...k}=_;return k});Z("",{migratedCount:N.length})}catch(Y){W(Y),Z("",{})}}T();U();B();var b=new Map([["claude-fable-5","claude-fable-5-1"],["anthropic.claude-fable-5","anthropic.claude-fable-5-1"]]);function y(K){return b.get(K)??K}function PK(K){if(!K)return null;let z={};if(K.model!==void 0){let Q=y(K.model);if(Q!==K.model)z.model=Q}if(K.advisorModel!==void 0){let Q=y(K.advisorModel);if(Q!==K.advisorModel)z.advisorModel=Q}if(K.availableModels){let Q=K.availableModels.map(y);if(Q.some((X,Y)=>X!==K.availableModels?.[Y]))z.availableModels=Q}if(K.modelOverrides){let Q=Object.entries(K.modelOverrides),X=Q.filter(([Y])=>b.has(Y));if(X.length>0)z.modelOverrides={...Object.fromEntries(X.map(([Y])=>[Y,void 0])),...Object.fromEntries(Q.map(([Y,H])=>[y(Y),H]))}}return Object.keys(z).length>0?z:null}function FK(K){if(!K)return null;let Q=Object.entries(K).filter(([,Y])=>Y.activeModelForProject!==void 0&&b.has(Y.activeModelForProject));if(Q.length===0)return null;let X={...K};for(let[Y,H]of Q)X[Y]={...H,activeModelForProject:y(H.activeModelForProject)};return X}function Oz(){let K=PK(J("userSettings"));if(K)$("userSettings",K);let z=FK(V().projects);if(z)q((X)=>({...X,projects:z}));let Q=R();if(Q){let X=y(Q);if(X!==Q)w(X)}}B();function yz(){let z=J("userSettings")?.model;if(typeof z==="string"){if(z.startsWith("fennec-latest[1m]"))$("userSettings",{model:"opus[1m]"});else if(z.startsWith("fennec-latest"))$("userSettings",{model:"opus"});else if(z.startsWith("fennec-fast-latest")||z.startsWith("opus-4-5-fast"))$("userSettings",{model:"opus[1m]",fastMode:!0})}}L();U();E();I();B();function Dz(){if(A()!=="firstParty")return;if(!Gz())return;let K=J("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;$("userSettings",{model:"opus"}),q((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("",{from_model:K})}L();E();B();function Iz(){if(!wz())return;if(J("userSettings")?.model!=="opus")return;if(xz(Tz()))return;let z="opus[1m]",Q=D(z)===D(Rz())?void 0:z;$("userSettings",{model:Q}),Z("",{})}U();function Mz(){q((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}T();U();I();B();function Pz(){if(A()!=="firstParty")return;if(V().sonnet1m45MigrationComplete)return;if(J("userSettings")?.model==="sonnet[1m]")$("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(R()==="sonnet[1m]")w("sonnet-4-5-20250929[1m]");q((X)=>({...X,sonnet1m45MigrationComplete:!0}))}L();jz();U();I();B();function Cz(){if(A()!=="firstParty")return;if(!M()&&!Fz()&&!kz())return;let K=J("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if($("userSettings",{model:z?"sonnet[1m]":"sonnet"}),V().numStartups>1)q((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("",{from_model:K,has_1m:z})}L();U();O();kK();B();function Ez(){if(V().hasResetAutoModeOptInForDefaultOffer)return;if(bz()!=="enabled")return;try{let z=J("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")$("userSettings",{skipAutoPermissionPrompt:void 0}),Z("",{});q((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){W(Error(`Failed to reset auto mode opt-in: ${z}`))}}L();jz();U();I();B();function hz(){if(V().opusProMigrationComplete)return;if(A()!=="firstParty"||!M()){q((X)=>({...X,opusProMigrationComplete:!0})),Z("",{skipped:!0});return}if(x()?.model===void 0){let X=Date.now();q((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("",{skipped:!1,had_custom_model:!1})}else q((X)=>({...X,opusProMigrationComplete:!0})),Z("",{skipped:!1,had_custom_model:!0})}iK();pK();T();vK();B();CK();L();jK();async function mz(K,z){let Q=await fz(K),X=vz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}cK();function qY(){try{let K=J("policySettings");if(K){let z=nz(K);Z("",{keyCount:z.length,keys:z.join(",")})}}catch{}}function HY(){let K=D(Sz()??oz());mz(lz(),sz(K,uz())),XK().then(({enabled:z,errors:Q})=>{let X=QK();zK(z,X,ez()),KK(Q,X)}).catch((z)=>W(z))}function oK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDIN_CLIENT_CERT)K.has_client_cert=!0;if(v("--use-system-ca"))K.has_use_system_ca=!0;if(v("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function JY(){if(tz())return;let[K,z,Q]=await Promise.all([gz(),az(),Wz()]);Z("",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:F.isSandboxingEnabled(),are_unsandboxed_commands_allowed:F.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:F.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:rz(),prefers_reduced_motion:x().prefersReducedMotion??!1,...oK()})}var h=13;function VY(){if(V().migrationVersion!==h)Bz(),Nz(),_z(),hz(),Pz(),Dz(),Cz(),yz(),Iz(),Mz(),Oz(),Ez(),q((K)=>K.migrationVersion===h?K:{...K,migrationVersion:h});YK().catch(()=>{})}function WY(){if(pz()){P("info","prefetch_system_context_non_interactive"),m();return}if(iz())P("info","prefetch_system_context_has_trust"),m();else P("info","prefetch_system_context_skipped_no_trust")}function BY(){f("eagerLoadSettings_start");let K=S("--settings");if(K)qz(K);let z=S("--setting-sources");if(z!==void 0)Hz(z);f("eagerLoadSettings_end")}function UY(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(u(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function NY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:H,outputFormat:N,inputFormat:_,numAllowedTools:p,numDisallowedTools:d,mcpClientCount:c,worktreeEnabled:k,skipWebFetchPreflight:ZK,githubActionInputs:l,dangerouslySkipPermissionsPassed:$K,permissionMode:qK,modeIsBypass:HK,allowDangerouslySkipPermissionsPassed:JK,systemPromptFlag:g,appendSystemPromptFlag:a,thinkingConfig:VK,assistantActivationPath:n,isCoordinator:WK}){try{Z("",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:H,outputFormat:N,inputFormat:_,numAllowedTools:p,numDisallowedTools:d,mcpClientCount:c,worktree:k,skipWebFetchPreflight:ZK,...l&&{githubActionInputs:l},dangerouslySkipPermissionsPassed:$K,permissionMode:qK,modeIsBypass:HK,allowDangerouslySkipPermissionsPassed:JK,thinkingType:VK.type,...g&&{systemPromptFlag:g},...a&&{appendSystemPromptFlag:a},is_simple:cz()||void 0,is_coordinator:WK||void 0,...n&&{assistantActivationPath:n},autoUpdatesChannel:x().autoUpdatesChannel??"latest"})}catch(BK){W(BK)}}function LY(K){}function AY(K){return}
|
|
8
|
+
export{WQ as J,BQ as K,UQ as L,NQ as M,qY as N,HY as O,JY as P,VY as Q,WY as R,BY as S,UY as T,NY as U,LY as V,AY as W};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{JK as Y,dl as Q,el as I,kn as W,nn as P,zS as R}from"./cli-1.1.30-pc2wp50b.mjs";import{$ia as B,aja as f}from"./cli-1.1.30-322advqh.mjs";import{Pka as H,Qka as J,jla as F}from"./cli-1.1.30-1ybfyckn.mjs";import{Vsa as $,Woa as x}from"./cli-1.1.30-ehk76t59.mjs";import{Mua as Z}from"./cli-1.1.30-7dtpd1ra.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
+
export{S as be,V as ce,X as de,r as ee,w as fe,T as ge,G as he};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Eo as R,Fo as BJ,gF as k,hF as HJ,ht as D,it as hJ,oq as G,rq as a}from"./cli-1.1.30-pc2wp50b.mjs";import{D_ as bJ,d_ as ZJ,o_ as $J}from"./cli-1.1.30-wmpgbhw0.mjs";import{Ofa as WJ,Uba as C,Vba as GJ,Wba as h,Xba as FJ,Yba as u,Zba as kJ,ega as jJ}from"./cli-1.1.30-mebteknr.mjs";import{Yja as x,ika as gJ}from"./cli-1.1.30-d3n6dp6r.mjs";import{Aka as q,Bka as s,Cka as Y,Dka as r}from"./cli-1.1.30-yy92v8yq.mjs";import{ela as M,jla as yJ}from"./cli-1.1.30-1ybfyckn.mjs";import{Jla as o,Kla as CJ,Tla as n,Ula as EJ,Zla as l,_la as TJ}from"./cli-1.1.30-7h45a0x6.mjs";import{Aoa as YJ,Bna as g,Boa as P,Cna as zJ,Coa as XJ,Dna as A,Ena as wJ,Pna as f,Qna as PJ,Vsa as mJ,toa as c,uoa as OJ,xoa as H,yoa as F,zoa as I,zsa as QJ}from"./cli-1.1.30-ehk76t59.mjs";import{cta as K,dta as DJ}from"./cli-1.1.30-m62yy9h8.mjs";import{Mua as B}from"./cli-1.1.30-7dtpd1ra.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
|
|
2
|
+
${Q}
|
|
3
|
+
</${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
+
export{NQ as Hf,_J as If,JJ as Jf,bQ as Kf,uQ as Lf,cJ as Mf,iQ as Nf,oJ as Of};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{KK as O,Tk as J,VE as L,WE as Y,fs as K,gs as X,zS as C}from"./cli-1.1.30-pc2wp50b.mjs";import{Mua as V}from"./cli-1.1.30-7dtpd1ra.mjs";function N(z){let y=[],D=z.matchAll(Z);for(let v of D)if(v.index!==void 0)y.push({word:v[0],start:v.index,end:v.index+v[0].length});return y}async function W({question:z,cacheSafeParams:y}){let D=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
|
|
2
|
+
|
|
3
|
+
IMPORTANT CONTEXT:
|
|
4
|
+
- You are a separate, lightweight agent spawned to answer this one question
|
|
5
|
+
- The main agent is NOT interrupted - it continues working independently in the background
|
|
6
|
+
- You share the conversation context but are a completely separate instance
|
|
7
|
+
- Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
|
|
8
|
+
|
|
9
|
+
CRITICAL CONSTRAINTS:
|
|
10
|
+
- You have NO tools available - you cannot read files, run commands, search, or take any actions
|
|
11
|
+
- This is a one-off response - there will be no follow-up turns
|
|
12
|
+
- You can ONLY provide information based on what you already know from the conversation context
|
|
13
|
+
- NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
|
|
14
|
+
- If you don't know the answer, say so - do not offer to look it up or investigate
|
|
15
|
+
|
|
16
|
+
Simply answer the question with the information you have.</system-reminder>
|
|
17
|
+
|
|
18
|
+
${z}`,v=await L({promptMessages:[O({content:D})],cacheSafeParams:y,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:$(v.messages),usage:v.totalUsage}}function $(z){let y=z.flatMap((v)=>v.type==="assistant"?v.message.content:[]);if(y.length>0){let v=J(y,`
|
|
19
|
+
|
|
20
|
+
`).trim();if(v)return v;let G=y.find((H)=>H.type==="tool_use");if(G)return`(The model tried to call ${"name"in G?G.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let D=z.find((v)=>v.type==="system"&&("subtype"in v)&&v.subtype==="api_error");if(D)return`(API error: ${K(D.error)})`;return null}var Z;var w=V(()=>{X();Y();C();Z=/^\/btw\b/gi});
|
|
21
|
+
export{N as Ti,W as Ui,w as Vi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$o as r,FG as h,MG as v,_o as R}from"./cli-1.1.30-pc2wp50b.mjs";import{$0 as I,B1 as E,GZ as p,V0 as U,X0 as F}from"./cli-1.1.30-569esepc.mjs";import{S5 as Z,T5 as L,U5 as N}from"./cli-1.1.30-92t0b3hs.mjs";import{V5 as j}from"./cli-1.1.30-cjetc80p.mjs";import{Qfa as B,ega as S}from"./cli-1.1.30-mebteknr.mjs";import{ula as H,xla as b}from"./cli-1.1.30-pgx35gqd.mjs";import{Iua as P,Mua as A}from"./cli-1.1.30-7dtpd1ra.mjs";function l(d){let f=O.c(18),{onAccept:J,onDecline:q,declineExits:m}=d,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];T.default.useEffect(x,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(C){f:switch(C){case"accept":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let k=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=L(U,{flexDirection:"column",gap:1,children:[Z(F,{children:u}),Z(I,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let y=m?"No, exit":"No, go back",w;if(f[7]!==y)w=[...W,X,{label:y,value:"decline"}],f[7]=y,f[8]=w;else w=f[8];let z;if(f[9]!==k)z=(M)=>k(M),f[9]=k,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(h,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=L(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function x(){H("",{})}var O,T,u="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";var g=A(()=>{b();E();S();v();r();N();O=P(p(),1),T=P(j(),1)});
|
|
2
|
+
export{u as pc,l as qc,g as rc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B1 as f,GZ as s,X0 as t}from"./cli-1.1.30-569esepc.mjs";import{S5 as n,T5 as c,U5 as r}from"./cli-1.1.30-92t0b3hs.mjs";import{Iua as m,Mua as l}from"./cli-1.1.30-7dtpd1ra.mjs";function T(){let o=i.c(1),e;if(o[0]===Symbol.for("react.memo_cache_sentinel"))e=c(t,{color:"permission",children:["Press ",n(t,{bold:!0,children:"Enter"})," to continue…"]}),o[0]=e;else e=o[0];return e}var i;var p=l(()=>{f();r();i=m(s(),1)});
|
|
2
|
+
export{T as dh,p as eh};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Kua as T,Mua as J5,Nua as M}from"./cli-1.1.30-7dtpd1ra.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
|
|
2
|
+
]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
|
|
3
|
+
Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
|
|
4
|
+
Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
|
|
5
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
6
|
+
Minimum version required to store current data is: `+F+`.
|
|
7
|
+
`);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
|
|
8
|
+
`);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
|
|
9
|
+
`}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
|
|
10
|
+
`;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
|
|
11
|
+
`}if(U+=R+`
|
|
12
|
+
`,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
|
|
13
|
+
`+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
|
|
14
|
+
`;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
|
|
15
|
+
export{T5 as sf,X5 as tf};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{be as EQ,he as lX}from"./cli-1.1.30-7q8f7mp7.mjs";import{le as LZ,me as HX}from"./cli-1.1.30-pzp496y6.mjs";import{$I as s0,$o as v0,AC as DZ,As as IQ,CG as UY,Co as DJ,DC as h0,Do as GX,Ds as ZY,Dw as bZ,EC as ZZ,Es as tJ,FC as QZ,FG as m0,Fs as $Q,GC as nQ,GE as ZJ,GG as rX,HC as tZ,HE as vZ,IC as JQ,JC as DX,Mk as jZ,Ms as w0,Mx as kQ,NB as BZ,Nx as NY,OB as PY,OI as KQ,PA as R0,PB as IZ,QA as GJ,Qo as xQ,RI as qZ,Ro as HY,SI as MZ,So as k,TI as vJ,To as I0,Tx as fJ,UI as bJ,Ux as rQ,VI as wZ,WI as KZ,Wo as t,Ws as VX,Wx as RY,XI as EZ,Xo as D0,Xs as MJ,Ys as FY,ZI as S0,Zy as gZ,_I as x0,_o as s,_q as lZ,_y as yX,br as AX,bt as n0,bz as HJ,cL as VJ,cz as nZ,dl as o0,el as zZ,fL as cZ,ft as WX,gm as mQ,hl as MQ,il as mX,im as VY,nS as yQ,nl as zJ,pl as _Z,qI as TZ,ql as _J,rI as uZ,rt as t0,sI as FJ,sS as AQ,uI as gJ,ut as AZ,vB as wQ,vF as QJ,vy as iZ,wB as kX,wy as bX,xw as JJ,yF as hZ,zC as u0,zG as lQ,zS as xZ}from"./cli-1.1.30-pc2wp50b.mjs";import{IY as j0,JY as rJ,XY as z0,YY as _0}from"./cli-1.1.30-p3m6d618.mjs";import{$0 as UJ,B1 as G0,GZ as N0,PZ as qJ,V0 as E,X0 as V,j1 as rZ}from"./cli-1.1.30-569esepc.mjs";import{f5 as $J,m5 as WY}from"./cli-1.1.30-2hw4vdpg.mjs";import{R5 as a,S5 as Y,T5 as F,U5 as $}from"./cli-1.1.30-92t0b3hs.mjs";import{V5 as d0}from"./cli-1.1.30-cjetc80p.mjs";import{g6 as YZ,q6 as eQ}from"./cli-1.1.30-eg5krttf.mjs";import{s6 as lJ,t6 as xX}from"./cli-1.1.30-zpss0nht.mjs";import{H6 as fZ,I6 as qX,x9 as yJ,y9 as sQ}from"./cli-1.1.30-wmpgbhw0.mjs";import{$da as a0,Qia as OZ,Uda as q0,Vda as K0,Vea as OQ,Wea as fQ,Yea as pX,Yia as zX,ica as pQ,jca as E0,jfa as Q0,lca as dJ,paa as PJ,qaa as UQ,rfa as kJ}from"./cli-1.1.30-mebteknr.mjs";import{eja as C0,hja as L0,jja as BQ,lja as RJ,mja as YJ,vja as c0}from"./cli-1.1.30-322advqh.mjs";import{Yja as UZ,ika as YX}from"./cli-1.1.30-d3n6dp6r.mjs";import{ula as Z0,xla as eJ}from"./cli-1.1.30-pgx35gqd.mjs";import{Ama as AJ,lma as bQ,nma as JY,xma as B0}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as T0,cna as PZ}from"./cli-1.1.30-gv4z21b9.mjs";import{Iua as J0,Jua as IJ,Lua as FZ,Mua as n}from"./cli-1.1.30-7dtpd1ra.mjs";function r0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function KJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:tJ(Q.status)?Date.now()+oQ:void 0}}function EJ(Q,J){Z0("",{}),J((Z)=>{let X=Z.tasks[Q],q=Z.viewingAgentTaskId,z=q!==void 0?Z.tasks[q]:void 0,W=q!==void 0&&q!==Q&&r0(z)&&z.retain,G=r0(X)&&(!X.retain||X.evictAfter!==void 0),N=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!G&&!N&&!W)return Z;let R=Z.tasks;if(W||G){if(R={...Z.tasks},W)R[q]=KJ(z);if(G)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function LJ(Q){Z0("",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let q=J.tasks[Z];if(!r0(q)||!q.retain)return X;return{...X,tasks:{...J.tasks,[Z]:KJ(q)}}})}function bY(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!r0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let q=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...KJ(X),evictAfter:0}},...q&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var oQ=30000;var JZ=n(()=>{eJ();$Q()});function l0(Q){let J=[h0(Q.container),QZ(Q.container,Q.restartCount)];if(Q.container.state==="running"){let Z=ZZ(Q.container);if(Z)J.push(Z)}return J.join(aQ)}var aQ=" · ";var i0=n(()=>{nQ()});function $0(Q){switch(Q.type){case"local_bash":return Q.kind==="monitor"?Q.description:Q.command;case"remote_agent":return Q.title;case"local_agent":return Q.description;case"local_workflow":return Q.summary??Q.description;case"monitor_mcp":return Q.description;case"dream":return Q.description;case"in_process_teammate":return`@${Q.identity.agentName}`;case"container":return l0(Q);default:return""}}var CJ=n(()=>{i0()});class GZ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let q of X.message.content){if(q.type!=="tool_use")continue;let z=q;if(z.name===o0)this.exitPlanCalls.push(z.id)}else if(X.type==="user"){let q=X.message.content;if(!Array.isArray(q))continue;for(let z of q)if(z.type==="tool_result")this.results.set(z.tool_use_id,z)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let q=this.exitPlanCalls[X];if(this.rejectedIds.has(q))continue;let z=this.results.get(q);if(!z)Z={kind:"pending"};else if(z.is_error===!0){let W=ZX(z.content);Z=W!==null?{kind:"teleport",plan:W}:{kind:"rejected",id:q}}else Z={kind:"approved",plan:QX(z.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function VZ(Q,J,Z,X){let q=Date.now()+J,z=new GZ,W=null,G=0,N="running";while(Date.now()<q){if(X?.())throw new F0("poll stopped by caller","stopped",z.rejectCount);let R,U;try{let f=await qZ(Q,W);R=f.newEvents,W=f.lastEventId,U=f.sessionStatus,G=0}catch(f){if(!YZ(f)||++G>=tQ)throw new F0(f instanceof Error?f.message:String(f),"network_or_unknown",z.rejectCount,{cause:f});await yJ(XZ);continue}let P;try{P=z.ingest(R)}catch(f){throw new F0(f instanceof Error?f.message:String(f),"extract_marker_missing",z.rejectCount)}if(P.kind==="approved")return{plan:P.plan,rejectCount:z.rejectCount,executionTarget:"remote"};if(P.kind==="teleport")return{plan:P.plan,rejectCount:z.rejectCount,executionTarget:"local"};if(P.kind==="terminated")throw new F0(`remote session ended (${P.subtype}) before plan approval`,"terminated",z.rejectCount);let O=(U==="idle"||U==="requires_action")&&R.length===0,w=z.hasPendingPlan?"plan_ready":O?"needs_input":"running";if(w!==N)B0(`[ultraplan] phase ${N} → ${w}`),N=w,Z?.(w);await yJ(XZ)}throw new F0(z.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,z.everSeenPending?"timeout_pending":"timeout_no_plan",z.rejectCount)}function WZ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function ZX(Q){let J=WZ(Q),Z=`${JX}
|
|
2
|
+
`,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function QX(Q){let J=WZ(Q),Z=[`## Approved Plan (edited by user):
|
|
3
|
+
`,`## Approved Plan:
|
|
4
|
+
`];for(let X of Z){let q=J.indexOf(X);if(q!==-1)return J.slice(q+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var XZ=3000,tQ=5,F0,JX="__ULTRAPLAN_TELEPORT_LOCAL__";var HZ=n(()=>{zZ();AJ();sQ();eQ();bJ();F0=class F0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var NZ={};FZ(NZ,{default:()=>XX});var XX=`This is a planning prompt stub.
|
|
5
|
+
`;var RZ=()=>{};function NX(){return UZ("tengu_ultraplan_model",fZ.opus46.firstParty)}function UX(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(PX),Q)Z.push("",Q);return Z.join(`
|
|
6
|
+
`)}function OX(Q,J,Z,X,q){let z=Date.now(),W=!1;(async()=>{try{let{plan:G,rejectCount:N,executionTarget:R}=await VZ(J,FX,(U)=>{if(U==="needs_input")Z0("",{});n0(Q,q,(P)=>{if(P.status!=="running")return P;let O=U==="running"?void 0:U;return P.ultraplanPhase===O?P:{...P,ultraplanPhase:O}})},()=>X().tasks?.[Q]?.status!=="running");if(Z0("",{duration_ms:Date.now()-z,plan_length:G.length,reject_count:N,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;n0(Q,q,(P)=>P.status!=="running"?P:{...P,status:"completed",endTime:Date.now()}),q((P)=>P.ultraplanSessionUrl===Z?{...P,ultraplanSessionUrl:void 0}:P),w0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
|
|
7
|
+
`),mode:"task-notification"})}else q((U)=>{let P=U.tasks?.[Q];if(!P||P.status!=="running")return U;return{...U,ultraplanPendingChoice:{plan:G,sessionId:J,taskId:Q}}})}catch(G){if(X().tasks?.[Q]?.status!=="running")return;W=!0,Z0("",{duration_ms:Date.now()-z,reason:G instanceof F0?G.reason:"network_or_unknown",reject_count:G instanceof F0?G.rejectCount:void 0}),w0({value:`Ultraplan failed: ${T0(G)}
|
|
8
|
+
|
|
9
|
+
Session: ${Z}`,mode:"task-notification"}),vJ(J).catch((R)=>B0(`ultraplan archive failed: ${String(R)}`)),q((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(W)n0(Q,q,(G)=>G.status!=="running"?G:{...G,status:"failed",endTime:Date.now()})}})()}function fX(Q){let J=Q?`${LZ} `:"";return`${q0} ultraplan
|
|
10
|
+
${J}Starting Claude Code on the web…`}function MX(Q){return`${q0} ultraplan · Monitor progress in Claude Code on the web ${Q}
|
|
11
|
+
You can continue working — when the ${q0} fills, press ↓ to view results`}function yZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function e0(Q,J,Z){await S0.kill(Q,Z),Z((q)=>q.ultraplanSessionUrl||q.ultraplanPendingChoice||q.ultraplanLaunching?{...q,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:q);let X=DJ(J,process.env.SESSION_INGRESS_URL);w0({value:`Ultraplan stopped.
|
|
12
|
+
|
|
13
|
+
Session: ${X}`,mode:"task-notification"}),w0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function wX(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:q,signal:z,disconnectedBridge:W,onSessionReady:G}=Q,{ultraplanSessionUrl:N,ultraplanLaunching:R}=X();if(N||R)return Z0("",{reason:N?"already_polling":"already_launching"}),yZ(N);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${CZ}`].join(`
|
|
14
|
+
`);return q((U)=>U.ultraplanLaunching?U:{...U,ultraplanLaunching:!0}),KX({blurb:J,seedPlan:Z,getAppState:X,setAppState:q,signal:z,onSessionReady:G}),fX(W)}async function KX(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:q,signal:z,onSessionReady:W}=Q,G;try{let N=NX(),R=await wZ();if(!R.eligible){Z0("",{reason:"precondition",precondition_errors:R.errors.map((C)=>C.type).join(",")});let M=R.errors.map(KZ).join(`
|
|
15
|
+
`);w0({value:`ultraplan: cannot launch remote session —
|
|
16
|
+
${M}`,mode:"task-notification"});return}let U=UX(J,Z),P,O=await MZ({initialMessage:U,description:J||"Refine local plan",model:N,permissionMode:"plan",ultraplan:!0,signal:z,useDefaultEnvironment:!0,onBundleFail:(M)=>{P=M}});if(!O){Z0("",{reason:P?"bundle_fail":"teleport_null"}),w0({value:`ultraplan: session creation failed${P?` — ${P}`:""}. See --debug for details.`,mode:"task-notification"});return}G=O.id;let w=DJ(O.id,process.env.SESSION_INGRESS_URL);q((M)=>({...M,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),W?.(MX(w)),Z0("",{has_seed_plan:Boolean(Z),model:N});let{taskId:f}=EZ({remoteTaskType:"ultraplan",session:{id:O.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:q},isUltraplan:!0});OX(f,O.id,w,X,q)}catch(N){if(OZ(N),Z0("",{reason:"unexpected_error"}),w0({value:`ultraplan: unexpected error — ${T0(N)}`,mode:"task-notification"}),G)vJ(G).catch((R)=>B0("ultraplan: failed to archive orphaned session",R)),q((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{q((N)=>N.ultraplanLaunching?{...N,ultraplanLaunching:void 0}:N)}}var FX=1800000,CZ="https://code.claude.com/docs/en/claude-code-on-the-web",BJ,RX,PX,EX=async(Q,J,Z)=>{let X=Z.trim();if(!X){let W=await wX({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(W,{display:"system"}),null}let{ultraplanSessionUrl:q,ultraplanLaunching:z}=J.getAppState();if(q||z)return Z0("",{reason:q?"already_polling":"already_launching"}),Q(yZ(q),{display:"system"}),null;return J.setAppState((W)=>({...W,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},eY;var hJ=n(()=>{HX();a0();GX();YX();eJ();s0();AJ();PZ();zX();VX();qX();WX();bJ();HZ();BJ=(RZ(),IJ(NZ)),RX=(typeof BJ==="string"?BJ:BJ.default).trimEnd(),PX=RX;eY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${CZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:EX})}});function SJ(Q,J){if(Q.status!=="running")return;switch(Q.type){case"container":if(!u0(Q))return;J((Z)=>({...Z,pendingContainerStop:{taskId:Q.id,name:h0(Q.container),startedByUs:Q.startedByUs}}));return;case"local_bash":t0.kill(Q.id,J);return;case"local_agent":QJ.kill(Q.id,J);return;case"in_process_teammate":JJ.kill(Q.id,J);return;case"local_workflow":CX?.(Q.id,J);return;case"monitor_mcp":BZ.kill(Q.id,J);return;case"dream":ZJ.kill(Q.id,J);return;case"remote_agent":if(Q.isUltraplan)e0(Q.id,Q.sessionId,J);else S0.kill(Q.id,J);return;default:{B0(`killBackgroundTask: unhandled task type ${String(Q.type)}`);return}}}var LX=null,CX;var SZ=n(()=>{hJ();vZ();bZ();hZ();AZ();IZ();s0();DZ();i0();AJ();CX=LX?.killWorkflowTask??null});function XJ(Q,J,Z){let X=_Z(J,Q.toolName);if(!X)return Q.toolName;try{let q=X.inputSchema.safeParse(Q.input),z=q.success?q.data:{},W=X.userFacingName(z);if(!W)return Q.toolName;let G=X.renderToolUseMessage(z,{theme:Z,verbose:!1});if(G)return F(V,{children:[W,"(",G,")"]});return W}catch{return Q.toolName}}var jJ=n(()=>{G0();_J();$()});function pZ(Q){let J=dZ.c(54),{agent:Z,onDone:X,onKillAgent:q,onBack:z}=Q,[W]=qJ(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=VJ(zJ()),J[0]=G;else G=J[0];let N=G,R=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),U;if(J[1]!==X)U={"confirm:yes":X},J[1]=X,J[2]=U;else U=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];z0(U,P);let O;if(J[4]!==Z.status||J[5]!==z||J[6]!==X||J[7]!==q)O=(v)=>{if(v.key===" ")v.preventDefault(),X();else if(v.key==="left"&&z)v.preventDefault(),z();else if(v.key==="x"&&Z.status==="running"&&q)v.preventDefault(),q()},J[4]=Z.status,J[5]=z,J[6]=X,J[7]=q,J[8]=O;else O=J[8];let w=O,f;if(J[9]!==Z.prompt)f=jZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=f;else f=J[10];let M=f,C=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,L=Z.result?.totalTokens??Z.progress?.tokenCount,b=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,I=Z.selectedAgent?.agentType??"agent",A=Z.description||"Async agent",h;if(J[11]!==I||J[12]!==A)h=F(V,{children:[I," ›"," ",A]}),J[11]=I,J[12]=A,J[13]=h;else h=J[13];let y=h,K;if(J[14]!==Z.status)K=Z.status!=="running"&&F(V,{color:uZ(Z.status),children:[TZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=K;else K=J[15];let p;if(J[16]!==L)p=L!==void 0&&L>0&&F(a,{children:[" · ",YJ(L)," tokens"]}),J[16]=L,J[17]=p;else p=J[17];let c;if(J[18]!==b)c=b!==void 0&&b>0&&F(a,{children:[" ","· ",b," ",b===1?"tool":"tools"]}),J[18]=b,J[19]=c;else c=J[19];let j;if(J[20]!==R||J[21]!==p||J[22]!==c)j=F(V,{dimColor:!0,children:[R,p,c]}),J[20]=R,J[21]=p,J[22]=c,J[23]=j;else j=J[23];let x;if(J[24]!==j||J[25]!==K)x=F(V,{children:[K,j]}),J[24]=j,J[25]=K,J[26]=x;else x=J[26];let d=x,S;if(J[27]!==Z.status||J[28]!==z||J[29]!==q)S=(v)=>v.pending?F(V,{children:["Press ",v.keyName," again to exit"]}):F(t,{children:[z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&q&&Y(k,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=z,J[29]=q,J[30]=S;else S=J[30];let B;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==W)B=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&F(E,{flexDirection:"column",children:[Y(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((v,m)=>F(V,{dimColor:m<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[m===Z.progress.recentActivities.length-1?"› ":" ",XJ(v,N,W)]},m))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=W,J[34]=B;else B=J[34];let _;if(J[35]!==C||J[36]!==M)_=M?Y(E,{marginTop:1,children:Y(gZ,{addMargin:!1,planContent:M})}):F(E,{flexDirection:"column",marginTop:1,children:[Y(V,{bold:!0,dimColor:!0,children:"Prompt"}),Y(V,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=M,J[37]=_;else _=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&F(E,{flexDirection:"column",marginTop:1,children:[Y(V,{bold:!0,color:"error",children:"Error"}),Y(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=T;else T=J[40];let g;if(J[41]!==B||J[42]!==_||J[43]!==T)g=F(E,{flexDirection:"column",children:[B,_,T]}),J[41]=B,J[42]=_,J[43]=T,J[44]=g;else g=J[44];let D;if(J[45]!==X||J[46]!==d||J[47]!==S||J[48]!==g||J[49]!==y)D=Y(s,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:S,children:g}),J[45]=X,J[46]=d,J[47]=S,J[48]=g,J[49]=y,J[50]=D;else D=J[50];let u;if(J[51]!==w||J[52]!==D)u=Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:D}),J[51]=w,J[52]=D,J[53]=u;else u=J[53];return u}var dZ;var mZ=n(()=>{GJ();G0();_0();_J();cZ();c0();xZ();D0();v0();I0();yX();jJ();gJ();$();dZ=J0(N0(),1)});function pJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let q=[`${Z} verified`];if(X>0)q.push(`${X} refuted`);return q.push("deduping"),q.join(" · ")}if(Q==="verifying"){let q=[`${J} found`,`${Z} verified`];if(X>0)q.push(`${X} refuted`);return q.join(" · ")}return J>0?`${J} found`:"finding"}function TJ(Q){let J=WJ.c(5),{text:Z,phase:X}=Q,q=X===void 0?0:X,z;if(J[0]!==Z)z=[...Z],J[0]=Z,J[1]=z;else z=J[1];let W;if(J[2]!==q||J[3]!==z)W=Y(a,{children:z.map((G,N)=>Y(V,{color:lZ(N+q),children:G},N))}),J[2]=q,J[3]=z,J[4]=W;else W=J[4];return W}function uJ(Q,J,Z){let X=cJ.useRef(Q),q=cJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==q.current)X.current+=1,q.current=J;return X.current}function BX(Q){let J=WJ.c(15),{session:Z}=Q,q=iZ().prefersReducedMotion??!1,z=Z.reviewProgress,W=Z.status==="running",[,G]=rZ(W&&!q?kZ:null),N=z?.bugsFound??0,R=z?.bugsVerified??0,U=z?.bugsRefuted??0,P=q||!W,O=uJ(N,G,P),w=uJ(R,G,P),f=uJ(U,G,P),M=Math.floor(G/(kZ*3))%7;if(Z.status==="completed"){let K;if(J[0]===Symbol.for("react.memo_cache_sentinel"))K=F(a,{children:[F(V,{color:"background",children:[K0," "]}),Y(TJ,{text:"ultrareview",phase:0}),Y(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=K;else K=J[0];return K}if(Z.status==="failed"){let K;if(J[1]===Symbol.for("react.memo_cache_sentinel"))K=F(a,{children:[F(V,{color:"background",children:[K0," "]}),Y(TJ,{text:"ultrareview",phase:0}),F(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=K;else K=J[1];return K}let C;if(J[2]!==O||J[3]!==z||J[4]!==f||J[5]!==w)C=!z?"setting up":pJ(z.stage,O,w,f),J[2]=O,J[3]=z,J[4]=f,J[5]=w,J[6]=C;else C=J[6];let L=C,b;if(J[7]===Symbol.for("react.memo_cache_sentinel"))b=F(V,{color:"background",children:[q0," "]}),J[7]=b;else b=J[7];let I=W?M:0,A;if(J[8]!==I)A=Y(TJ,{text:"ultrareview",phase:I}),J[8]=I,J[9]=A;else A=J[9];let h;if(J[10]!==L)h=F(V,{dimColor:!0,children:[" · ",L]}),J[10]=L,J[11]=h;else h=J[11];let y;if(J[12]!==A||J[13]!==h)y=F(a,{children:[b,A,h]}),J[12]=A,J[13]=h,J[14]=y;else y=J[14];return y}function p0(Q){let J=WJ.c(11),{session:Z}=Q;if(Z.isRemoteReview){let G;if(J[0]!==Z)G=Y(BX,{session:Z}),J[0]=Z,J[1]=G;else G=J[1];return G}if(Z.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=Y(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Z.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=Y(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Z.todoList.length){let G;if(J[4]!==Z.status)G=F(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=G;else G=J[5];return G}let X;if(J[6]!==Z.todoList)X=E0(Z.todoList,IX),J[6]=Z.todoList,J[7]=X;else X=J[7];let q=X,z=Z.todoList.length,W;if(J[8]!==q||J[9]!==z)W=F(V,{dimColor:!0,children:[q,"/",z]}),J[8]=q,J[9]=z,J[10]=W;else W=J[10];return W}function IX(Q){return Q.status==="completed"}var WJ,cJ,kZ=80;var mJ=n(()=>{a0();bX();G0();dJ();AX();$();WJ=J0(N0(),1),cJ=J0(d0(),1)});function P0(Q){let J=xJ.c(4),{status:Z,label:X,suffix:q}=Q,z=X??Z,W=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,G;if(J[0]!==W||J[1]!==z||J[2]!==q)G=F(V,{color:W,dimColor:!0,children:["(",z,q,")"]}),J[0]=W,J[1]=z,J[2]=q,J[3]=G;else G=J[3];return G}function $Z(Q){let J=xJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=Y(P0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=Y(P0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=Y(P0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=Y(P0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var xJ;var oZ=n(()=>{G0();$();xJ=J0(N0(),1)});function sZ(Q){let J=aZ.c(92),{task:Z,maxActivityWidth:X}=Q,q=X??40;switch(Z.type){case"local_bash":{let z=Z.kind==="monitor"?Z.description:Z.command,W;if(J[0]!==q||J[1]!==z)W=L0(z,q,!0),J[0]=q,J[1]=z,J[2]=W;else W=J[2];let G;if(J[3]!==Z)G=Y($Z,{shell:Z}),J[3]=Z,J[4]=G;else G=J[4];let N;if(J[5]!==W||J[6]!==G)N=F(V,{children:[W," ",G]}),J[5]=W,J[6]=G,J[7]=N;else N=J[7];return N}case"remote_agent":{if(Z.isRemoteReview){let O;if(J[8]!==Z)O=Y(V,{children:Y(p0,{session:Z})}),J[8]=Z,J[9]=O;else O=J[9];return O}let W=Z.status==="running"||Z.status==="pending"?q0:K0,G;if(J[10]!==W)G=F(V,{dimColor:!0,children:[W," "]}),J[10]=W,J[11]=G;else G=J[11];let N;if(J[12]!==q||J[13]!==Z.title)N=L0(Z.title,q,!0),J[12]=q,J[13]=Z.title,J[14]=N;else N=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=Y(V,{dimColor:!0,children:" · "}),J[15]=R;else R=J[15];let U;if(J[16]!==Z)U=Y(p0,{session:Z}),J[16]=Z,J[17]=U;else U=J[17];let P;if(J[18]!==G||J[19]!==N||J[20]!==U)P=F(V,{children:[G,N,R,U]}),J[18]=G,J[19]=N,J[20]=U,J[21]=P;else P=J[21];return P}case"local_agent":{let z;if(J[22]!==q||J[23]!==Z.description)z=L0(Z.description,q,!0),J[22]=q,J[23]=Z.description,J[24]=z;else z=J[24];let W=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,N;if(J[25]!==W||J[26]!==G||J[27]!==Z.status)N=Y(P0,{status:Z.status,label:W,suffix:G}),J[25]=W,J[26]=G,J[27]=Z.status,J[28]=N;else N=J[28];let R;if(J[29]!==z||J[30]!==N)R=F(V,{children:[z," ",N]}),J[29]=z,J[30]=N,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let z,W,G,N,R,U;if(J[32]!==q||J[33]!==Z){let w=FJ(Z);W=V;let f;if(J[40]!==Z.identity.color)f=HJ(Z.identity.color),J[40]=Z.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Z.identity.agentName)U=F(V,{color:f,children:["@",Z.identity.agentName]}),J[42]=f,J[43]=Z.identity.agentName,J[44]=U;else U=J[44];z=V,G=!0,N=": ",R=L0(w,q,!0),J[32]=q,J[33]=Z,J[34]=z,J[35]=W,J[36]=G,J[37]=N,J[38]=R,J[39]=U}else z=J[34],W=J[35],G=J[36],N=J[37],R=J[38],U=J[39];let P;if(J[45]!==z||J[46]!==G||J[47]!==N||J[48]!==R)P=F(z,{dimColor:G,children:[N,R]}),J[45]=z,J[46]=G,J[47]=N,J[48]=R,J[49]=P;else P=J[49];let O;if(J[50]!==W||J[51]!==U||J[52]!==P)O=F(W,{children:[U,P]}),J[50]=W,J[51]=U,J[52]=P,J[53]=O;else O=J[53];return O}case"local_workflow":{let z=Z.workflowName??Z.summary??Z.description,W;if(J[54]!==q||J[55]!==z)W=L0(z,q,!0),J[54]=q,J[55]=z,J[56]=W;else W=J[56];let G;if(J[57]!==Z.agentCount||J[58]!==Z.status)G=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=G;else G=J[59];let N=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==G||J[61]!==N||J[62]!==Z.status)R=Y(P0,{status:Z.status,label:G,suffix:N}),J[60]=G,J[61]=N,J[62]=Z.status,J[63]=R;else R=J[63];let U;if(J[64]!==W||J[65]!==R)U=F(V,{children:[W," ",R]}),J[64]=W,J[65]=R,J[66]=U;else U=J[66];return U}case"monitor_mcp":{let z;if(J[67]!==q||J[68]!==Z.description)z=L0(Z.description,q,!0),J[67]=q,J[68]=Z.description,J[69]=z;else z=J[69];let W=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,N;if(J[70]!==W||J[71]!==G||J[72]!==Z.status)N=Y(P0,{status:Z.status,label:W,suffix:G}),J[70]=W,J[71]=G,J[72]=Z.status,J[73]=N;else N=J[73];let R;if(J[74]!==z||J[75]!==N)R=F(V,{children:[z," ",N]}),J[74]=z,J[75]=N,J[76]=R;else R=J[76];return R}case"dream":{let z=Z.filesTouched.length,W;if(J[77]!==z||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)W=Z.phase==="updating"&&z>0?`${z} ${Q0(z,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=z,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=W;else W=J[80];let G=W,N;if(J[81]!==G||J[82]!==Z.phase)N=F(V,{dimColor:!0,children:["· ",Z.phase," · ",G]}),J[81]=G,J[82]=Z.phase,J[83]=N;else N=J[83];let R=Z.status==="completed"?"done":void 0,U=Z.status==="completed"&&!Z.notified?", unread":void 0,P;if(J[84]!==R||J[85]!==U||J[86]!==Z.status)P=Y(P0,{status:Z.status,label:R,suffix:U}),J[84]=R,J[85]=U,J[86]=Z.status,J[87]=P;else P=J[87];let O;if(J[88]!==N||J[89]!==P||J[90]!==Z.description)O=F(V,{children:[Z.description," ",N," ",P]}),J[88]=N,J[89]=P,J[90]=Z.description,J[91]=O;else O=J[91];return O}case"container":return Y(V,{children:L0($0(Z),q,!0)})}}var aZ;var eZ=n(()=>{G0();c0();nZ();kJ();a0();mJ();oZ();gJ();CJ();$();aZ=J0(N0(),1)});function ZQ(Q){return SX.test(Q)}function _X(Q){return["logs","--tail",String(NJ),"--timestamps",Q]}function jX(Q,J){let Z=[],X=0;for(let q of[Q,J]){let z="";for(let W of q.split(`
|
|
17
|
+
`)){if(W==="")continue;let G=hX.exec(W);if(G)z=G[1],Z.push({key:z,seq:X++,line:{time:G[2],text:G[3]}});else Z.push({key:z,seq:X++,line:{time:null,text:W}})}}return Z.sort((q,z)=>q.key===z.key?q.seq-z.seq:q.key<z.key?-1:1),Z.slice(-NJ).map((q)=>q.line)}async function QQ(Q,J){let Z=await JQ(_X(Q),{timeout:vX,abortSignal:J});if(Z.code!==0)return{kind:"error",message:Z.unavailable?tZ(Z.unavailable):Z.stderr.split(`
|
|
18
|
+
`).find((z)=>z.trim()!=="")??`docker logs exited with code ${Z.code}`};let X=jX(Z.stdout,Z.stderr);return X.length===0?{kind:"empty"}:{kind:"ok",lines:X}}var NJ=50,vX=1e4,hX,SX;var XQ=n(()=>{DX();hX=/^(\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}:\d{2})\.\d+Z) (.*)$/;SX=/^[[(]?(?:\d{4}-\d{2}-\d{2}[T ])?\d{2}:\d{2}:\d{2}/});function zQ({task:Q,onDone:J,onBack:Z,onStop:X}){let{columns:q}=j0(),[z,W]=g0.useState(null),G=Q.container.id,N=Q.container.state==="running";g0.useEffect(()=>{let O=!1,w=new AbortController,f=async()=>{let C=await QQ(G,w.signal);if(!O)W(C)};if(f(),!N)return()=>{O=!0,w.abort()};let M=setInterval(()=>void f(),gX);return()=>{O=!0,w.abort(),clearInterval(M)}},[G,N]);let R=g0.useCallback(()=>J("Container logs dismissed",{display:"system"}),[J]);z0({"confirm:yes":R},{context:"Confirmation"});let U=(O)=>{if(O.key===" ")O.preventDefault(),R();else if(O.key==="left"&&Z)O.preventDefault(),Z();else if(O.key==="x"&&X)O.preventDefault(),X()},P=(O)=>{if(O.pending)return F(V,{children:["Press ",O.keyName," again to exit"]});return F(t,{children:[Z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),X&&Y(k,{shortcut:"x",action:"stop container"})]})};return Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:U,children:F(s,{title:`Logs · ${h0(Q.container)}`,subtitle:Y(V,{children:l0(Q)}),onCancel:R,color:"background",inputGuide:P,children:[Y(E,{marginX:2,flexDirection:"column",children:F(V,{children:[Y(V,{bold:!0,children:"Image:"})," ",Q.container.image]})}),Y(TX,{logs:z,columns:q})]})})}function TX({logs:Q,columns:J}){if(Q===null)return Y(E,{marginX:2,children:Y(V,{dimColor:!0,children:"Loading logs…"})});if(Q.kind==="error")return Y(E,{marginX:2,flexDirection:"column",children:Y(V,{color:"error",children:Q.message})});if(Q.kind==="empty")return Y(E,{marginX:2,flexDirection:"column",children:Y(V,{dimColor:!0,children:"No logs written yet."})});let Z=Q.lines.slice(-YQ);return F(E,{marginX:2,flexDirection:"column",children:[Y(E,{borderStyle:"round",paddingX:1,flexDirection:"column",height:YQ+2,maxWidth:J-6,children:Z.map((X,q)=>F(V,{wrap:"truncate-end",children:[X.time!==null&&X.text!==""&&!ZQ(X.text)&&F(V,{dimColor:!0,children:[X.time," "]}),X.text]},q))}),F(V,{dimColor:!0,italic:!0,children:["Showing ",Z.length," of the last ",NJ," lines"]})]})}var g0,YQ=14,gX=2000;var qQ=n(()=>{G0();D0();v0();I0();_0();rJ();i0();XQ();$();g0=J0(d0(),1)});function VQ(Q){let J=GQ.c(70),{task:Z,onDone:X,onBack:q,onKill:z}=Q,W=R0(Z.startTime,Z.status==="running",1000,0),G;if(J[0]!==X)G={"confirm:yes":X},J[0]=X,J[1]=G;else G=J[1];let N;if(J[2]===Symbol.for("react.memo_cache_sentinel"))N={context:"Confirmation"},J[2]=N;else N=J[2];z0(G,N);let R;if(J[3]!==q||J[4]!==X||J[5]!==z||J[6]!==Z.status)R=(B)=>{if(B.key===" ")B.preventDefault(),X();else if(B.key==="left"&&q)B.preventDefault(),q();else if(B.key==="x"&&Z.status==="running"&&z)B.preventDefault(),z()},J[3]=q,J[4]=X,J[5]=z,J[6]=Z.status,J[7]=R;else R=J[7];let U=R,P,O,w,f,M,C,L,b,I,A,h,y,K,p,c,j;if(J[8]!==W||J[9]!==U||J[10]!==q||J[11]!==X||J[12]!==z||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let B=Z.turns.filter(dX),_=B.slice(-uX),T=B.length-_.length;w=E,L="column",b=0,I=!0,A=U,O=s,c="Memory consolidation";let g=Z.sessionsReviewing,D;if(J[33]!==Z.sessionsReviewing)D=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=D;else D=J[34];let u;if(J[35]!==Z.filesTouched.length)u=Z.filesTouched.length>0&&F(a,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=u;else u=J[36];if(J[37]!==W||J[38]!==D||J[39]!==u||J[40]!==Z.sessionsReviewing)j=F(V,{dimColor:!0,children:[W," · reviewing ",g," ",D,u]}),J[37]=W,J[38]=D,J[39]=u,J[40]=Z.sessionsReviewing,J[41]=j;else j=J[41];if(f=X,M="background",J[42]!==q||J[43]!==z||J[44]!==Z.status)C=(m)=>m.pending?F(V,{children:["Press ",m.keyName," again to exit"]}):F(t,{children:[q&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&Y(k,{shortcut:"x",action:"stop"})]}),J[42]=q,J[43]=z,J[44]=Z.status,J[45]=C;else C=J[45];P=E,h="column",y=1;let v;if(J[46]===Symbol.for("react.memo_cache_sentinel"))v=Y(V,{bold:!0,children:"Status:"}),J[46]=v;else v=J[46];if(J[47]!==Z.status)K=F(V,{children:[v," ",Z.status==="running"?Y(V,{color:"background",children:"running"}):Z.status==="completed"?Y(V,{color:"success",children:Z.status}):Y(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=K;else K=J[48];p=_.length===0?Y(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):F(a,{children:[T>0&&F(V,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),_.map(cX)]}),J[8]=W,J[9]=U,J[10]=q,J[11]=X,J[12]=z,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=P,J[18]=O,J[19]=w,J[20]=f,J[21]=M,J[22]=C,J[23]=L,J[24]=b,J[25]=I,J[26]=A,J[27]=h,J[28]=y,J[29]=K,J[30]=p,J[31]=c,J[32]=j}else P=J[17],O=J[18],w=J[19],f=J[20],M=J[21],C=J[22],L=J[23],b=J[24],I=J[25],A=J[26],h=J[27],y=J[28],K=J[29],p=J[30],c=J[31],j=J[32];let x;if(J[49]!==P||J[50]!==h||J[51]!==y||J[52]!==K||J[53]!==p)x=F(P,{flexDirection:h,gap:y,children:[K,p]}),J[49]=P,J[50]=h,J[51]=y,J[52]=K,J[53]=p,J[54]=x;else x=J[54];let d;if(J[55]!==O||J[56]!==f||J[57]!==M||J[58]!==C||J[59]!==x||J[60]!==c||J[61]!==j)d=Y(O,{title:c,subtitle:j,onCancel:f,color:M,inputGuide:C,children:x}),J[55]=O,J[56]=f,J[57]=M,J[58]=C,J[59]=x,J[60]=c,J[61]=j,J[62]=d;else d=J[62];let S;if(J[63]!==w||J[64]!==L||J[65]!==b||J[66]!==I||J[67]!==A||J[68]!==d)S=Y(w,{flexDirection:L,tabIndex:b,autoFocus:I,onKeyDown:A,children:d}),J[63]=w,J[64]=L,J[65]=b,J[66]=I,J[67]=A,J[68]=d,J[69]=S;else S=J[69];return S}function cX(Q,J){return F(E,{flexDirection:"column",children:[Y(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&F(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function dX(Q){return Q.text!==""}var GQ,uX=6;var WQ=n(()=>{GJ();G0();_0();kJ();D0();v0();I0();$();GQ=J0(N0(),1)});function FQ(Q){let J=HQ.c(63),{teammate:Z,onDone:X,onKill:q,onBack:z,onForeground:W}=Q,[G]=qJ(),N;if(J[0]===Symbol.for("react.memo_cache_sentinel"))N=VJ(zJ()),J[0]=N;else N=J[0];let R=N,U=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),P;if(J[1]!==X)P={"confirm:yes":X},J[1]=X,J[2]=P;else P=J[2];let O;if(J[3]===Symbol.for("react.memo_cache_sentinel"))O={context:"Confirmation"},J[3]=O;else O=J[3];z0(P,O);let w;if(J[4]!==z||J[5]!==X||J[6]!==W||J[7]!==q||J[8]!==Z.status)w=(r)=>{if(r.key===" ")r.preventDefault(),X();else if(r.key==="left"&&z)r.preventDefault(),z();else if(r.key==="x"&&Z.status==="running"&&q)r.preventDefault(),q();else if(r.key==="f"&&Z.status==="running"&&W)r.preventDefault(),W()},J[4]=z,J[5]=X,J[6]=W,J[7]=q,J[8]=Z.status,J[9]=w;else w=J[9];let f=w,M;if(J[10]!==Z)M=FJ(Z),J[10]=Z,J[11]=M;else M=J[11];let C=M,L=Z.result?.totalTokens??Z.progress?.tokenCount,b=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,I;if(J[12]!==Z.prompt)I=C0(Z.prompt,300),J[12]=Z.prompt,J[13]=I;else I=J[13];let A=I,h;if(J[14]!==Z.identity.color)h=HJ(Z.identity.color),J[14]=Z.identity.color,J[15]=h;else h=J[15];let y;if(J[16]!==h||J[17]!==Z.identity.agentName)y=F(V,{color:h,children:["@",Z.identity.agentName]}),J[16]=h,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let K;if(J[19]!==C)K=C&&F(V,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=K;else K=J[20];let p;if(J[21]!==y||J[22]!==K)p=F(V,{children:[y,K]}),J[21]=y,J[22]=K,J[23]=p;else p=J[23];let c=p,j;if(J[24]!==Z.status)j=Z.status!=="running"&&F(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=j;else j=J[25];let x;if(J[26]!==L)x=L!==void 0&&L>0&&F(a,{children:[" · ",YJ(L)," tokens"]}),J[26]=L,J[27]=x;else x=J[27];let d;if(J[28]!==b)d=b!==void 0&&b>0&&F(a,{children:[" ","· ",b," ",b===1?"tool":"tools"]}),J[28]=b,J[29]=d;else d=J[29];let S;if(J[30]!==U||J[31]!==x||J[32]!==d)S=F(V,{dimColor:!0,children:[U,x,d]}),J[30]=U,J[31]=x,J[32]=d,J[33]=S;else S=J[33];let B;if(J[34]!==j||J[35]!==S)B=F(V,{children:[j,S]}),J[34]=j,J[35]=S,J[36]=B;else B=J[36];let _=B,T;if(J[37]!==z||J[38]!==W||J[39]!==q||J[40]!==Z.status)T=(r)=>r.pending?F(V,{children:["Press ",r.keyName," again to exit"]}):F(t,{children:[z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&q&&Y(k,{shortcut:"x",action:"stop"}),Z.status==="running"&&W&&Y(k,{shortcut:"f",action:"foreground"})]}),J[37]=z,J[38]=W,J[39]=q,J[40]=Z.status,J[41]=T;else T=J[41];let g;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==G)g=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&F(E,{flexDirection:"column",children:[Y(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((r,H)=>F(V,{dimColor:H<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[H===Z.progress.recentActivities.length-1?"› ":" ",XJ(r,R,G)]},H))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=G,J[45]=g;else g=J[45];let D;if(J[46]===Symbol.for("react.memo_cache_sentinel"))D=Y(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=D;else D=J[46];let u;if(J[47]!==A)u=F(E,{flexDirection:"column",marginTop:1,children:[D,Y(V,{wrap:"wrap",children:A})]}),J[47]=A,J[48]=u;else u=J[48];let v;if(J[49]!==Z.error||J[50]!==Z.status)v=Z.status==="failed"&&Z.error&&F(E,{flexDirection:"column",marginTop:1,children:[Y(V,{bold:!0,color:"error",children:"Error"}),Y(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=v;else v=J[51];let m;if(J[52]!==X||J[53]!==_||J[54]!==T||J[55]!==g||J[56]!==u||J[57]!==v||J[58]!==c)m=F(s,{title:c,subtitle:_,onCancel:X,color:"background",inputGuide:T,children:[g,u,v]}),J[52]=X,J[53]=_,J[54]=T,J[55]=g,J[56]=u,J[57]=v,J[58]=c,J[59]=m;else m=J[59];let i;if(J[60]!==f||J[61]!==m)i=Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:m}),J[60]=f,J[61]=m,J[62]=i;else i=J[62];return i}var HQ;var NQ=n(()=>{GJ();G0();_0();_J();cZ();c0();nZ();D0();v0();I0();jJ();gJ();$();HQ=J0(N0(),1)});function iX(Q,J){if(Q===o0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===MQ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let q=X.replace(/\s+/g," ").trim();return`Answer in browser: ${C0(q,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${C0(X,60)}`}return Q}function nX(Q){let J=OJ.c(70),{session:Z,onDone:X,onBack:q,onKill:z}=Q,W=Z.status==="running"||Z.status==="pending",G=Z.ultraplanPhase,N=W?G?$X[G]:"running":Z.status,R=R0(Z.startTime,W,1000,0,Z.endTime),U=0,P=0,O=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let Y0 of X0.message.content){if(Y0.type!=="tool_use")continue;if(P++,O=Y0,Y0.name===OQ||Y0.name===fQ)U++}}let w=1+U,f;if(J[0]!==O)f=O?iX(O.name,O.input):null,J[0]=O,J[1]=f;else f=J[1];let M;if(J[2]!==P||J[3]!==w||J[4]!==f)M={agentsWorking:w,toolCalls:P,lastToolCall:f},J[2]=P,J[3]=w,J[4]=f,J[5]=M;else M=J[5];let{agentsWorking:C,toolCalls:L,lastToolCall:b}=M,I;if(J[6]!==Z.sessionId)I=x0(Z.sessionId),J[6]=Z.sessionId,J[7]=I;else I=J[7];let A=I,h;if(J[8]!==q||J[9]!==X)h=q??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=q,J[9]=X,J[10]=h;else h=J[10];let y=h,[K,p]=U0.useState(!1);if(K){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>p(!1),J[11]=X0;else X0=J[11];let Y0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))Y0=Y(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=Y0;else Y0=J[12];let A0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))A0={label:"Terminate session",value:"stop"},J[13]=A0;else A0=J[13];let b0;if(J[14]===Symbol.for("react.memo_cache_sentinel"))b0=[A0,{label:"Back",value:"back"}],J[14]=b0;else b0=J[14];let M0;if(J[15]!==y||J[16]!==z)M0=Y(s,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:F(E,{flexDirection:"column",gap:1,children:[Y0,Y(m0,{options:b0,onChange:(k0)=>{if(k0==="stop")z?.(),y();else p(!1)}})]})}),J[15]=y,J[16]=z,J[17]=M0;else M0=J[17];return M0}let c=G==="plan_ready"?K0:q0,j;if(J[18]!==c)j=F(V,{color:"background",children:[c," "]}),J[18]=c,J[19]=j;else j=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=Y(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==R||J[22]!==N)d=F(V,{dimColor:!0,children:[" · ",R," · ",N]}),J[21]=R,J[22]=N,J[23]=d;else d=J[23];let S;if(J[24]!==j||J[25]!==d)S=F(V,{children:[j,x,d]}),J[24]=j,J[25]=d,J[26]=S;else S=J[26];let B;if(J[27]!==G)B=G==="plan_ready"&&F(V,{color:"success",children:[PJ.tick," "]}),J[27]=G,J[28]=B;else B=J[28];let _;if(J[29]!==C)_=Q0(C,"agent"),J[29]=C,J[30]=_;else _=J[30];let T=G?oX[G]:"working",g;if(J[31]!==L)g=Q0(L,"call"),J[31]=L,J[32]=g;else g=J[32];let D;if(J[33]!==C||J[34]!==B||J[35]!==_||J[36]!==T||J[37]!==g||J[38]!==L)D=F(V,{children:[B,C," ",_," ",T," · ",L," tool"," ",g]}),J[33]=C,J[34]=B,J[35]=_,J[36]=T,J[37]=g,J[38]=L,J[39]=D;else D=J[39];let u;if(J[40]!==b)u=b&&Y(V,{dimColor:!0,children:b}),J[40]=b,J[41]=u;else u=J[41];let v;if(J[42]!==A)v=Y(V,{dimColor:!0,children:A}),J[42]=A,J[43]=v;else v=J[43];let m;if(J[44]!==A||J[45]!==v)m=Y(UJ,{url:A,children:v}),J[44]=A,J[45]=v,J[46]=m;else m=J[46];let i;if(J[47]===Symbol.for("react.memo_cache_sentinel"))i={label:"Review in Claude Code on the web",value:"open"},J[47]=i;else i=J[47];let r;if(J[48]!==z||J[49]!==W)r=z&&W?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=z,J[49]=W,J[50]=r;else r=J[50];let H;if(J[51]===Symbol.for("react.memo_cache_sentinel"))H={label:"Back",value:"back"},J[51]=H;else H=J[51];let l;if(J[52]!==r)l=[i,...r,H],J[52]=r,J[53]=l;else l=J[53];let e;if(J[54]!==y||J[55]!==X||J[56]!==A)e=(X0)=>{switch(X0){case"open":{lJ(A),X();return}case"stop":{p(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=A,J[57]=e;else e=J[57];let W0;if(J[58]!==l||J[59]!==e)W0=Y(m0,{options:l,onChange:e}),J[58]=l,J[59]=e,J[60]=W0;else W0=J[60];let H0;if(J[61]!==D||J[62]!==u||J[63]!==m||J[64]!==W0)H0=F(E,{flexDirection:"column",gap:1,children:[D,u,m,W0]}),J[61]=D,J[62]=u,J[63]=m,J[64]=W0,J[65]=H0;else H0=J[65];let y0;if(J[66]!==y||J[67]!==S||J[68]!==H0)y0=Y(s,{title:S,onCancel:y,color:"background",children:H0}),J[66]=y,J[67]=S,J[68]=H0,J[69]=y0;else y0=J[69];return y0}function aX(Q){let J=OJ.c(15),{stage:Z,completed:X,hasProgress:q}=Q,z;if(J[0]!==Z)z=Z?RQ.indexOf(Z):-1,J[0]=Z,J[1]=z;else z=J[1];let W=z,G=!X&&!q,N;if(J[2]!==G)N=G?Y(V,{color:"background",children:"Setup"}):Y(V,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=N;else N=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=Y(V,{dimColor:!0,children:" → "}),J[4]=R;else R=J[4];let U;if(J[5]!==X||J[6]!==W||J[7]!==G)U=RQ.map((w,f)=>{let M=!X&&!G&&f===W;return F(U0.default.Fragment,{children:[f>0&&Y(V,{dimColor:!0,children:" → "}),M?Y(V,{color:"background",children:PQ[w]}):Y(V,{dimColor:!0,children:PQ[w]})]},w)}),J[5]=X,J[6]=W,J[7]=G,J[8]=U;else U=J[8];let P;if(J[9]!==X)P=X&&Y(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=P;else P=J[10];let O;if(J[11]!==N||J[12]!==U||J[13]!==P)O=F(V,{children:[N,R,U,P]}),J[11]=N,J[12]=U,J[13]=P,J[14]=O;else O=J[14];return O}function sX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let q=[`${Z} ${Q0(Z,"finding")}`];if(X>0)q.push(`${X} refuted`);return q.join(" · ")}return pJ(J.stage,J.bugsFound,Z,X)}function eX(Q){let J=OJ.c(56),{session:Z,onDone:X,onBack:q,onKill:z}=Q,W=Z.status==="completed",G=Z.status==="running"||Z.status==="pending",[N,R]=U0.useState(!1),U=R0(Z.startTime,G,1000,0,Z.endTime),P;if(J[0]!==X)P=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=P;else P=J[1];let O=P,w=q??O,f;if(J[2]!==Z.sessionId)f=x0(Z.sessionId),J[2]=Z.sessionId,J[3]=f;else f=J[3];let M=f,C=W?"ready":G?"running":Z.status;if(N){let m;if(J[4]===Symbol.for("react.memo_cache_sentinel"))m=()=>R(!1),J[4]=m;else m=J[4];let i;if(J[5]===Symbol.for("react.memo_cache_sentinel"))i=Y(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=i;else i=J[5];let r;if(J[6]===Symbol.for("react.memo_cache_sentinel"))r={label:"Stop ultrareview",value:"stop"},J[6]=r;else r=J[6];let H;if(J[7]===Symbol.for("react.memo_cache_sentinel"))H=[r,{label:"Back",value:"back"}],J[7]=H;else H=J[7];let l;if(J[8]!==w||J[9]!==z)l=Y(s,{title:"Stop ultrareview?",onCancel:m,color:"background",children:F(E,{flexDirection:"column",gap:1,children:[i,Y(m0,{options:H,onChange:(e)=>{if(e==="stop")z?.(),w();else R(!1)}})]})}),J[8]=w,J[9]=z,J[10]=l;else l=J[10];return l}let L;if(J[11]!==W||J[12]!==z||J[13]!==G)L=W?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...z&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=W,J[12]=z,J[13]=G,J[14]=L;else L=J[14];let b=L,I;if(J[15]!==w||J[16]!==O||J[17]!==X||J[18]!==M)I=(m)=>{J:switch(m){case"open":{lJ(M),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":O()}},J[15]=w,J[16]=O,J[17]=X,J[18]=M,J[19]=I;else I=J[19];let A=I,h=W?K0:q0,y;if(J[20]!==h)y=F(V,{color:"background",children:[h," "]}),J[20]=h,J[21]=y;else y=J[21];let K;if(J[22]===Symbol.for("react.memo_cache_sentinel"))K=Y(V,{bold:!0,children:"ultrareview"}),J[22]=K;else K=J[22];let p;if(J[23]!==U||J[24]!==C)p=F(V,{dimColor:!0,children:[" · ",U," · ",C]}),J[23]=U,J[24]=C,J[25]=p;else p=J[25];let c;if(J[26]!==y||J[27]!==p)c=F(V,{children:[y,K,p]}),J[26]=y,J[27]=p,J[28]=c;else c=J[28];let j=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==W||J[30]!==j||J[31]!==x)d=Y(aX,{stage:j,completed:W,hasProgress:x}),J[29]=W,J[30]=j,J[31]=x,J[32]=d;else d=J[32];let S;if(J[33]!==Z)S=sX(Z),J[33]=Z,J[34]=S;else S=J[34];let B;if(J[35]!==S)B=Y(V,{children:S}),J[35]=S,J[36]=B;else B=J[36];let _;if(J[37]!==M)_=Y(V,{dimColor:!0,children:M}),J[37]=M,J[38]=_;else _=J[38];let T;if(J[39]!==M||J[40]!==_)T=Y(UJ,{url:M,children:_}),J[39]=M,J[40]=_,J[41]=T;else T=J[41];let g;if(J[42]!==B||J[43]!==T)g=F(E,{flexDirection:"column",children:[B,T]}),J[42]=B,J[43]=T,J[44]=g;else g=J[44];let D;if(J[45]!==A||J[46]!==b)D=Y(m0,{options:b,onChange:A}),J[45]=A,J[46]=b,J[47]=D;else D=J[47];let u;if(J[48]!==d||J[49]!==g||J[50]!==D)u=F(E,{flexDirection:"column",gap:1,children:[d,g,D]}),J[48]=d,J[49]=g,J[50]=D,J[51]=u;else u=J[51];let v;if(J[52]!==w||J[53]!==u||J[54]!==c)v=Y(s,{title:c,onCancel:w,color:"background",inputGuide:tX,children:u}),J[52]=w,J[53]=u,J[54]=c,J[55]=v;else v=J[55];return v}function tX(Q){return Q.pending?F(V,{children:["Press ",Q.keyName," again to exit"]}):F(t,{children:[Y(k,{shortcut:"Enter",action:"select"}),Y(k,{shortcut:"Esc",action:"go back"})]})}function LQ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:q}){let[z,W]=U0.useState(!1),[G,N]=U0.useState(null),R=U0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return yQ(EQ(Q.log)).filter((M)=>M.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return Y(nX,{session:Q,onDone:Z,onBack:X,onKill:q});if(Q.isRemoteReview)return Y(eX,{session:Q,onDone:Z,onBack:X,onKill:q});let U=()=>Z("Remote session details dismissed",{display:"system"}),P=(M)=>{if(M.key===" ")M.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(M.key==="left"&&X)M.preventDefault(),X();else if(M.key==="t"&&!z)M.preventDefault(),O();else if(M.key==="return")M.preventDefault(),U()};async function O(){W(!0),N(null);try{await KQ(Q.sessionId)}catch(M){N(T0(M))}finally{W(!1)}}let w=C0(Q.title,50),f=Q.status==="pending"?"starting":Q.status;return Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:F(s,{title:"Remote session details",onCancel:U,color:"background",inputGuide:(M)=>M.pending?F(V,{children:["Press ",M.keyName," again to exit"]}):F(t,{children:[X&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),!z&&Y(k,{shortcut:"t",action:"teleport"})]}),children:[F(E,{flexDirection:"column",children:[F(V,{children:[Y(V,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?Y(V,{color:"background",children:f}):f==="completed"?Y(V,{color:"success",children:f}):Y(V,{color:"error",children:f})]}),F(V,{children:[Y(V,{bold:!0,children:"Runtime"}),":"," ",RJ((Q.endTime??Date.now())-Q.startTime)]}),F(V,{wrap:"truncate-end",children:[Y(V,{bold:!0,children:"Title"}),": ",w]}),F(V,{children:[Y(V,{bold:!0,children:"Progress"}),":"," ",Y(p0,{session:Q})]}),F(V,{children:[Y(V,{bold:!0,children:"Session URL"}),":"," ",Y(UJ,{url:x0(Q.sessionId),children:Y(V,{dimColor:!0,children:x0(Q.sessionId)})})]})]}),Q.log.length>0&&F(E,{flexDirection:"column",marginTop:1,children:[F(V,{children:[Y(V,{bold:!0,children:"Recent messages"}),":"]}),Y(E,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((M,C)=>Y(wQ,{message:M,lookups:AQ,addMargin:C>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},C))}),Y(E,{marginTop:1,children:F(V,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]})})]}),G&&Y(E,{marginTop:1,children:F(V,{color:"error",children:["Teleport failed: ",G]})}),z&&Y(V,{color:"background",children:"Teleporting to session…"})]})})}var OJ,U0,$X,oX,RQ,PQ;var CQ=n(()=>{UQ();a0();GJ();G0();s0();pX();mX();zZ();xX();PZ();c0();lX();xZ();kJ();bJ();rX();D0();v0();I0();kX();mJ();$();OJ=J0(N0(),1),U0=J0(d0(),1);$X={needs_input:"input required",plan_ready:"ready"},oX={needs_input:"waiting",plan_ready:"done"};RQ=["finding","verifying","synthesizing"],PQ={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function DQ(Q){let J=IQ(Q.id);try{let Z=await bQ(J,QY);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function vQ(Q){let J=iJ.c(57),{shell:Z,onDone:X,onKillShell:q,onBack:z}=Q,{columns:W}=j0(),G;if(J[0]!==Z)G=()=>DQ(Z),J[0]=Z,J[1]=G;else G=J[1];let[N,R]=V0.useState(G),U=V0.useDeferredValue(N),P;if(J[2]!==Z)P=()=>{if(Z.status!=="running")return;let H=setInterval(XY,1000,R,Z);return()=>clearInterval(H)},J[2]=Z,J[3]=P;else P=J[3];let O;if(J[4]!==Z.id||J[5]!==Z.status)O=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=O;else O=J[6];V0.useEffect(P,O);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let f=w,M;if(J[9]!==f)M={"confirm:yes":f},J[9]=f,J[10]=M;else M=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];z0(M,C);let L;if(J[12]!==z||J[13]!==X||J[14]!==q||J[15]!==Z.status)L=(H)=>{if(H.key===" ")H.preventDefault(),X("Shell details dismissed",{display:"system"});else if(H.key==="left"&&z)H.preventDefault(),z();else if(H.key==="x"&&Z.status==="running"&&q)H.preventDefault(),q()},J[12]=z,J[13]=X,J[14]=q,J[15]=Z.status,J[16]=L;else L=J[16];let b=L,I=Z.kind==="monitor",A;if(J[17]!==Z.command)A=C0(Z.command,280),J[17]=Z.command,J[18]=A;else A=J[18];let h=A,y=I?"Monitor details":"Shell details",K;if(J[19]!==z||J[20]!==q||J[21]!==Z.status)K=(H)=>H.pending?F(V,{children:["Press ",H.keyName," again to exit"]}):F(t,{children:[z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&q&&Y(k,{shortcut:"x",action:"stop"})]}),J[19]=z,J[20]=q,J[21]=Z.status,J[22]=K;else K=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=Y(V,{bold:!0,children:"Status:"}),J[23]=p;else p=J[23];let c;if(J[24]!==Z.result||J[25]!==Z.status)c=F(V,{children:[p," ",Z.status==="running"?F(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?F(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):F(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=c;else c=J[26];let j;if(J[27]===Symbol.for("react.memo_cache_sentinel"))j=Y(V,{bold:!0,children:"Runtime:"}),J[27]=j;else j=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,S;if(J[30]!==d)S=RJ(d),J[30]=d,J[31]=S;else S=J[31];let B;if(J[32]!==S)B=F(V,{children:[j," ",S]}),J[32]=S,J[33]=B;else B=J[33];let _=I?"Script:":"Command:",T;if(J[34]!==_)T=Y(V,{bold:!0,children:_}),J[34]=_,J[35]=T;else T=J[35];let g;if(J[36]!==h||J[37]!==T)g=F(V,{wrap:"wrap",children:[T," ",h]}),J[36]=h,J[37]=T,J[38]=g;else g=J[38];let D;if(J[39]!==c||J[40]!==B||J[41]!==g)D=F(E,{flexDirection:"column",children:[c,B,g]}),J[39]=c,J[40]=B,J[41]=g,J[42]=D;else D=J[42];let u;if(J[43]===Symbol.for("react.memo_cache_sentinel"))u=Y(V,{bold:!0,children:"Output:"}),J[43]=u;else u=J[43];let v;if(J[44]===Symbol.for("react.memo_cache_sentinel"))v=Y(V,{dimColor:!0,children:"Loading output…"}),J[44]=v;else v=J[44];let m;if(J[45]!==W||J[46]!==U)m=F(E,{flexDirection:"column",children:[u,Y(V0.Suspense,{fallback:v,children:Y(YY,{outputPromise:U,columns:W})})]}),J[45]=W,J[46]=U,J[47]=m;else m=J[47];let i;if(J[48]!==f||J[49]!==K||J[50]!==D||J[51]!==m||J[52]!==y)i=F(s,{title:y,onCancel:f,color:"background",inputGuide:K,children:[D,m]}),J[48]=f,J[49]=K,J[50]=D,J[51]=m,J[52]=y,J[53]=i;else i=J[53];let r;if(J[54]!==b||J[55]!==i)r=Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:b,children:i}),J[54]=b,J[55]=i,J[56]=r;else r=J[56];return r}function XY(Q,J){return Q(DQ(J))}function YY(Q){let J=iJ.c(19),{outputPromise:Z,columns:X}=Q,{content:q,bytesTotal:z}=V0.use(Z);if(!q){let M;if(J[0]===Symbol.for("react.memo_cache_sentinel"))M=Y(V,{dimColor:!0,children:"No output available"}),J[0]=M;else M=J[0];return M}let W,G;if(J[1]!==z||J[2]!==q){let M=[],C=q.length;for(let L=0;L<10&&C>0;L++){let b=q.lastIndexOf(`
|
|
19
|
+
`,C-1);M.push(b+1),C=b}M.reverse(),W=z>q.length,G=[];for(let L=0;L<M.length;L++){let b=M[L],I=L<M.length-1?M[L+1]-1:q.length,A=q.slice(b,I);if(A)G.push(A)}J[1]=z,J[2]=q,J[3]=W,J[4]=G}else W=J[3],G=J[4];let N=X-6,R;if(J[5]!==G)R=G.map(zY),J[5]=G,J[6]=R;else R=J[6];let U;if(J[7]!==N||J[8]!==R)U=Y(E,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:N,children:R}),J[7]=N,J[8]=R,J[9]=U;else U=J[9];let P=`Showing ${G.length} lines`,O;if(J[10]!==z||J[11]!==W)O=W?` of ${BQ(z)}`:"",J[10]=z,J[11]=W,J[12]=O;else O=J[12];let w;if(J[13]!==P||J[14]!==O)w=F(V,{dimColor:!0,italic:!0,children:[P,O]}),J[13]=P,J[14]=O,J[15]=w;else w=J[15];let f;if(J[16]!==U||J[17]!==w)f=F(a,{children:[U,w]}),J[16]=U,J[17]=w,J[18]=f;else f=J[18];return f}function zY(Q,J){return Y(V,{wrap:"truncate-end",children:Q},J)}var iJ,V0,QY=8192;var hQ=n(()=>{rJ();G0();_0();c0();JY();ZY();D0();v0();I0();$();iJ=J0(N0(),1),V0=J0(d0(),1)});var SQ={};FZ(SQ,{default:()=>GY});var qY=()=>null,GY;var _Q=n(()=>{GY=qY});function fY(Q,J){return Object.values(Q??{}).filter(MJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function nG({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=fJ((H)=>H.tasks),q=fJ((H)=>H.foregroundedTaskId),z=fJ((H)=>H.expandedView)==="teammates",W=rQ(),G=xQ("chat:killAgents","Chat","ctrl+x ctrl+k"),N=X,R=f0.useRef(!1),[U,P]=f0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let H=fY(N,q);if(H.length===1)return R.current=!0,{mode:"detail",itemId:H[0].id};return{mode:"list"}}),[O,w]=f0.useState(0);lQ("background-tasks-dialog");let{bashTasks:f,remoteSessions:M,agentTasks:C,teammateTasks:L,workflowTasks:b,mcpMonitors:I,containerTasks:A,dreamTasks:h,allSelectableItems:y}=f0.useMemo(()=>{let e=Object.values(N??{}).filter(MJ).map(MY).sort((o,wJ)=>{let aJ=o.status,sJ=wJ.status;if(aJ==="running"&&sJ!=="running")return-1;if(aJ!=="running"&&sJ==="running")return 1;let iQ="task"in o?o.task.startTime:0;return("task"in wJ?wJ.task.startTime:0)-iQ}),W0=e.filter((o)=>o.type==="local_bash"),H0=e.filter((o)=>o.type==="remote_agent"),y0=e.filter((o)=>o.type==="local_agent"&&o.id!==q),X0=e.filter((o)=>o.type==="local_workflow"),Y0=e.filter((o)=>o.type==="monitor_mcp"),A0=e.filter((o)=>o.type==="container"),b0=e.filter((o)=>o.type==="dream"),M0=z?[]:e.filter((o)=>o.type==="in_process_teammate"),k0=M0.length>0?[{id:"__leader__",type:"leader",label:`@${$J}`,status:"running"}]:[];return{bashTasks:W0,remoteSessions:H0,agentTasks:y0,workflowTasks:X0,mcpMonitors:Y0,containerTasks:A0,dreamTasks:b0,teammateTasks:[...k0,...M0],allSelectableItems:[...k0,...M0,...W0,...Y0,...A0,...H0,...y0,...X0,...b0]}},[N,q,z]),K=y[O]??null;z0({"confirm:previous":()=>w((H)=>Math.max(0,H-1)),"confirm:next":()=>w((H)=>Math.min(y.length-1,H+1)),"confirm:yes":()=>{let H=y[O];if(H)if(H.type==="leader")LJ(W),Q("Viewing leader",{display:"system"});else P({mode:"detail",itemId:H.id})}},{context:"Confirmation",isActive:U.mode==="list"});let p=(H)=>{if(U.mode!=="list")return;if(H.key==="left"){H.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let l=y[O];if(!l)return;if(H.key==="x"){if(H.preventDefault(),l.type!=="leader")SJ(l.task,W)}if(H.key==="f"){if(l.type==="in_process_teammate"&&l.status==="running")H.preventDefault(),EJ(l.id,W),Q("Viewing teammate",{display:"system"});else if(l.type==="leader")H.preventDefault(),LJ(W),Q("Viewing leader",{display:"system"})}};async function c(H){await t0.kill(H,W)}async function j(H){await QJ.kill(H,W)}async function x(H){await JJ.kill(H,W)}async function d(H){await ZJ.kill(H,W)}async function S(H){await S0.kill(H,W)}let B=kQ(Q);f0.useEffect(()=>{if(U.mode!=="list"){let l=(N??{})[U.itemId];if(!l||l.type!=="local_workflow"&&!MJ(l))if(R.current)B("Background tasks dialog dismissed",{display:"system"});else P({mode:"list"})}let H=y.length;if(O>=H&&H>0)w(H-1)},[U,N,O,y,B]);let _=()=>{if(R.current&&y.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,P({mode:"list"})};if(U.mode!=="list"&&N){let H=N[U.itemId];if(!H)return null;switch(H.type){case"local_bash":return Y(vQ,{shell:H,onDone:Q,onKillShell:()=>void c(H.id),onBack:_},`shell-${H.id}`);case"local_agent":return Y(pZ,{agent:H,onDone:Q,onKillAgent:()=>void j(H.id),onBack:_},`agent-${H.id}`);case"remote_agent":return Y(LQ,{session:H,onDone:Q,toolUseContext:J,onBack:_,onKill:H.status!=="running"?void 0:H.isUltraplan?()=>void e0(H.id,H.sessionId,W):()=>void S(H.id)},`session-${H.id}`);case"in_process_teammate":return Y(FQ,{teammate:H,onDone:Q,onKill:H.status==="running"?()=>void x(H.id):void 0,onBack:_,onForeground:H.status==="running"?()=>{EJ(H.id,W),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${H.id}`);case"local_workflow":if(!jQ)return null;return Y(jQ,{workflow:H,onDone:Q,onKill:H.status==="running"&&gQ?()=>gQ(H.id,W):void 0,onSkipAgent:H.status==="running"&&TQ?(l)=>TQ(H.id,l,W):void 0,onRetryAgent:H.status==="running"&&uQ?(l)=>uQ(H.id,l,W):void 0,onBack:_},`workflow-${H.id}`);case"monitor_mcp":if(!dQ)return null;return Y(dQ,{task:H,onKill:H.status==="running"&&cQ?()=>cQ(H.id,W):void 0,onBack:_},`monitor-mcp-${H.id}`);case"dream":return Y(VQ,{task:H,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:_,onKill:H.status==="running"?()=>void d(H.id):void 0},`dream-${H.id}`);case"container":return Y(zQ,{task:H,onDone:Q,onBack:_,onStop:u0(H)?()=>SJ(H,W):void 0},`container-${H.id}`)}}let T=E0(f,(H)=>H.status==="running"),g=E0(M,(H)=>H.status==="running"||H.status==="pending")+E0(C,(H)=>H.status==="running"),D=E0(L,(H)=>H.status==="running"),u=pQ([...D>0?[F(V,{children:[D," ",D!==1?"agents":"agent"]},"teammates")]:[],...T>0?[F(V,{children:[T," ",T!==1?"active shells":"active shell"]},"shells")]:[],...g>0?[F(V,{children:[g," ",g!==1?"active agents":"active agent"]},"agents")]:[]],(H)=>Y(V,{children:" · "},`separator-${H}`)),v=K!==null&&K.type!=="leader"&&(K.type==="container"?u0(K.task):K.status==="running"),m=[Y(k,{shortcut:"↑/↓",action:"select"},"upDown"),...K?[Y(k,{shortcut:"Enter",action:K.type==="container"?"logs":"view"},"enter")]:[],...K?.type==="in_process_teammate"&&K.status==="running"?[Y(k,{shortcut:"f",action:"foreground"},"foreground")]:[],...v?[Y(k,{shortcut:"x",action:K?.type==="container"?"stop container":"stop"},"kill")]:[],...C.some((H)=>H.status==="running")?[Y(k,{shortcut:G,action:"stop all agents"},"kill-all")]:[],Y(k,{shortcut:"←/Esc",action:"close"},"esc")],i=()=>Q("Background tasks dialog dismissed",{display:"system"});function r(H){if(H.pending)return F(V,{children:["Press ",H.keyName," again to exit"]});return Y(t,{children:m})}return Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:p,children:Y(s,{title:"Background tasks",subtitle:Y(a,{children:u}),onCancel:i,color:"background",inputGuide:r,children:y.length===0?Y(V,{dimColor:!0,children:"No tasks currently running"}):F(E,{flexDirection:"column",children:[L.length>0&&F(E,{flexDirection:"column",children:[(f.length>0||M.length>0||C.length>0)&&F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Agents"]})," (",E0(L,(H)=>H.type!=="leader"),")"]}),Y(E,{flexDirection:"column",children:Y(wY,{teammateTasks:L,currentSelectionId:K?.id})})]}),f.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0?1:0,children:[(L.length>0||M.length>0||C.length>0)&&F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),Y(E,{flexDirection:"column",children:f.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),I.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Monitors"]})," (",I.length,")"]}),Y(E,{flexDirection:"column",children:I.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),A.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Containers"]})," (",A.length,")"]}),Y(E,{flexDirection:"column",children:A.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),M.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Remote agents"]})," (",M.length,")"]}),Y(E,{flexDirection:"column",children:M.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),C.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0||M.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),Y(E,{flexDirection:"column",children:C.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),b.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0||M.length>0||C.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Workflows"]})," (",b.length,")"]}),Y(E,{flexDirection:"column",children:b.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),h.length>0&&Y(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0||M.length>0||C.length>0||b.length>0?1:0,children:Y(E,{flexDirection:"column",children:h.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})})]})})})}function MY(Q){let J=$0(Q);switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:J,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:J,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:J,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:J,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:J,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:J,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:J,status:Q.status,task:Q};case"container":return{id:Q.id,type:"container",label:J,status:Q.status,task:Q};default:throw Error(`toListItem: unhandled task type ${String(Q.type)}`)}}function O0(Q){let J=oJ.c(14),{item:Z,isSelected:X}=Q,{columns:q}=j0(),z=Math.max(30,q-26),W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=mQ(),J[0]=W;else W=J[0];let G=W,N=G&&X,R=X?PJ.pointer+" ":" ",U;if(J[1]!==N||J[2]!==R)U=Y(V,{dimColor:N,children:R}),J[1]=N,J[2]=R,J[3]=U;else U=J[3];let P=X&&!G?"suggestion":void 0,O;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==z)O=Z.type==="leader"?F(V,{children:["@",$J]}):Y(sZ,{task:Z.task,maxActivityWidth:z}),J[4]=Z.task,J[5]=Z.type,J[6]=z,J[7]=O;else O=J[7];let w;if(J[8]!==P||J[9]!==O)w=Y(V,{color:P,children:O}),J[8]=P,J[9]=O,J[10]=w;else w=J[10];let f;if(J[11]!==U||J[12]!==w)f=F(E,{flexDirection:"row",children:[U,w]}),J[11]=U,J[12]=w,J[13]=f;else f=J[13];return f}function wY(Q){let J=oJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,q;if(J[0]!==X||J[1]!==Z){let z=Z.filter(EY),W=Z.filter(KY),G=new Map;for(let R of W){let U=R.task.identity.teamName,P=G.get(U);if(P)P.push(R);else G.set(U,[R])}let N=[...G.entries()];q=Y(a,{children:N.map((R)=>{let[U,P]=R,O=P.length+z.length;return F(E,{flexDirection:"column",children:[F(V,{dimColor:!0,children:[" ","Team: ",U," (",O,")"]}),z.map((w)=>Y(O0,{item:w,isSelected:w.id===X},`${w.id}-${U}`)),P.map((w)=>Y(O0,{item:w,isSelected:w.id===X},w.id))]},U)})}),J[0]=X,J[1]=Z,J[2]=q}else q=J[2];return q}function KY(Q){return Q.type==="in_process_teammate"}function EY(Q){return Q.type==="leader"}var oJ,f0,jQ=null,nJ=null,gQ,TQ,uQ,OY,cQ,dQ;var LY=n(()=>{UQ();VY();NY();rJ();RY();JZ();vZ();bZ();hZ();AZ();s0();DZ();FY();CJ();SZ();dJ();WY();hJ();UY();G0();_0();HY();dJ();D0();v0();I0();mZ();eZ();qQ();WQ();NQ();CQ();hQ();$();oJ=J0(N0(),1),f0=J0(d0(),1),gQ=nJ?.killWorkflowTask??null,TQ=nJ?.skipWorkflowAgent??null,uQ=nJ?.retryWorkflowAgent??null,OY=(IZ(),IJ(PY)),cQ=OY?.killMonitorMcp??null,dQ=(_Q(),IJ(SQ)).MonitorMcpDetailDialog});
|
|
20
|
+
export{EJ as Rd,LJ as Sd,bY as Td,JZ as Ud,$0 as Vd,CJ as Wd,wX as Xd,hJ as Yd,SJ as Zd,SZ as _d,nG as $d,LY as ae};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ula as X,xla as z}from"./cli-1.1.30-pgx35gqd.mjs";import{Ama as P,ama as Z,fma as O,xma as $}from"./cli-1.1.30-7h45a0x6.mjs";import{Xma as Y,cna as H}from"./cli-1.1.30-gv4z21b9.mjs";import{Mua as x}from"./cli-1.1.30-7dtpd1ra.mjs";function y(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function U(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function j(q){let K=typeof q==="string"?q:Z(q),J=y(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function h(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function m(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var A=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
|
|
2
|
+
export{U as Oe,j as Pe,h as Qe,m as Re,D as Se,L as Te,A as Ue};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{S$ as p,T$ as a}from"./cli-1.1.30-mz5a585j.mjs";import{Kua as i}from"./cli-1.1.30-7dtpd1ra.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as l$};
|