@claudiolabs/claudin 0.6.6 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -25
- package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +1 -0
- package/dist/chunks/App-0.6.7-9x70f9jb.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +7 -0
- package/dist/chunks/Doctor-0.6.7-smded214.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +6 -0
- package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +1 -0
- package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +1 -0
- package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +1 -0
- package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +110 -0
- package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +3 -0
- package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +1 -0
- package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +1 -0
- package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +1 -0
- package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +1 -0
- package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +1 -0
- package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +1 -0
- package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +4 -0
- package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +1 -0
- package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +1 -0
- package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +3 -0
- package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +4 -0
- package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +1 -0
- package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +1 -0
- package/dist/chunks/clear-0.6.7-b2weanr6.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +1 -0
- package/dist/chunks/cli-0.6.7-04v8p8ay.mjs +2 -0
- package/dist/chunks/cli-0.6.7-09aymh1b.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +28 -0
- package/dist/chunks/cli-0.6.7-0a406bqw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +42 -0
- package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +1 -0
- package/dist/chunks/cli-0.6.7-105zxdx5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-11a89p5q.mjs +2 -0
- package/dist/chunks/cli-0.6.7-15mn3n46.mjs +2 -0
- package/dist/chunks/cli-0.6.7-17dafwxd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +7 -0
- package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +12 -0
- package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +2 -0
- package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +2 -0
- package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +133 -0
- package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +5348 -0
- package/dist/chunks/cli-0.6.7-30y87jp9.mjs +3 -0
- package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-32sp32ph.mjs +2 -0
- package/dist/chunks/cli-0.6.7-37a1n221.mjs +2 -0
- package/dist/chunks/cli-0.6.7-393mf77x.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3anc14y3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3w59rctc.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +2 -0
- package/dist/chunks/cli-0.6.7-417g4eq7.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4723xt8g.mjs +4 -0
- package/dist/chunks/cli-0.6.7-4qezg54y.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4qv89taa.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4r8s96as.mjs +18 -0
- package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4y6eh566.mjs +2 -0
- package/dist/chunks/cli-0.6.7-568qkrtn.mjs +2 -0
- package/dist/chunks/cli-0.6.7-5jkermx7.mjs +2 -0
- package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +67 -0
- package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +17 -0
- package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +2 -0
- package/dist/chunks/cli-0.6.7-7ggj90ge.mjs +26 -0
- package/dist/chunks/cli-0.6.7-7hqt2520.mjs +2 -0
- package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +2 -0
- package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +4 -0
- package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +4 -0
- package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +5 -0
- package/dist/chunks/cli-0.6.7-895afk0q.mjs +39 -0
- package/dist/chunks/cli-0.6.7-8hg68yde.mjs +3 -0
- package/dist/chunks/cli-0.6.7-8npy06pd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +2 -0
- package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +2 -0
- package/dist/chunks/cli-0.6.7-986a2c9a.mjs +20 -0
- package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +59 -0
- package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +2 -0
- package/dist/chunks/cli-0.6.7-a49h84jx.mjs +2 -0
- package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ad305tsz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +4 -0
- package/dist/chunks/cli-0.6.7-askr0gdn.mjs +12 -0
- package/dist/chunks/cli-0.6.7-axgab18a.mjs +2 -0
- package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +50 -0
- package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +4 -0
- package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +2 -0
- package/dist/chunks/cli-0.6.7-bvke740f.mjs +58 -0
- package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +45 -0
- package/dist/chunks/cli-0.6.7-c9drqby8.mjs +5 -0
- package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-csw6s95q.mjs +2 -0
- package/dist/chunks/cli-0.6.7-cykfmytk.mjs +2 -0
- package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +2 -0
- package/dist/chunks/cli-0.6.7-d513frqa.mjs +2 -0
- package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +2 -0
- package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +2 -0
- package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +2 -0
- package/dist/chunks/cli-0.6.7-e96htnt8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-egf9dysz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ej85ys91.mjs +133 -0
- package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +25 -0
- package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +6 -0
- package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +3 -0
- package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +2 -0
- package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +12 -0
- package/dist/chunks/cli-0.6.7-g4r471w6.mjs +15 -0
- package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +21 -0
- package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +2 -0
- package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hd512c6x.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +2 -0
- package/dist/chunks/cli-0.6.7-jayzyra3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +18 -0
- package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +3 -0
- package/dist/chunks/cli-0.6.7-jvyry09r.mjs +3 -0
- package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +3 -0
- package/dist/chunks/cli-0.6.7-k69edthm.mjs +2 -0
- package/dist/chunks/cli-0.6.7-k7qq705k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +17 -0
- package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +24 -0
- package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +3 -0
- package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +2 -0
- package/dist/chunks/cli-0.6.7-me667czz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +16 -0
- package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +34 -0
- package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +2 -0
- package/dist/chunks/cli-0.6.7-msab4rsa.mjs +3 -0
- package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +2 -0
- package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +3 -0
- package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nembqgq6.mjs +4 -0
- package/dist/chunks/cli-0.6.7-njtz9caz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +3 -0
- package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nmasp64q.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nsaek892.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +2 -0
- package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +3 -0
- package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +2 -0
- package/dist/chunks/cli-0.6.7-p140ghs7.mjs +4 -0
- package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +2 -0
- package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +193 -0
- package/dist/chunks/cli-0.6.7-p77b3p80.mjs +4 -0
- package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +10 -0
- package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +6 -0
- package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +2 -0
- package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +2 -0
- package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +2 -0
- package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qkzax44g.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qnpad07x.mjs +15 -0
- package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +9 -0
- package/dist/chunks/cli-0.6.7-r2phypw4.mjs +2 -0
- package/dist/chunks/cli-0.6.7-r4494gs0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-r4njgjve.mjs +2 -0
- package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +4 -0
- package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rgfh878z.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +2 -0
- package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +5 -0
- package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +8 -0
- package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +2 -0
- package/dist/chunks/cli-0.6.7-tthw17vc.mjs +6 -0
- package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +4 -0
- package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +2 -0
- package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +6 -0
- package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-vdks0afp.mjs +3 -0
- package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-vy64g49j.mjs +2 -0
- package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +2 -0
- package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +15 -0
- package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +2 -0
- package/dist/chunks/cli-0.6.7-wyped9p6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +2 -0
- package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +3 -0
- package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ybk07j40.mjs +2 -0
- package/dist/chunks/cli-0.6.7-z26mhn5a.mjs +2 -0
- package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-z7jett9s.mjs +2 -0
- package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +24 -0
- package/dist/chunks/cli-0.6.7-zwf5adf9.mjs +2 -0
- package/dist/chunks/client-0.6.7-445v9987.mjs +1 -0
- package/dist/chunks/color-0.6.7-856m55kg.mjs +1 -0
- package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +3 -0
- package/dist/chunks/config-0.6.7-8cp9wg00.mjs +1 -0
- package/dist/chunks/config-0.6.7-h357gwre.mjs +1 -0
- package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +1 -0
- package/dist/chunks/context-0.6.7-52mqtjt5.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +1 -0
- package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +1 -0
- package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +9 -0
- package/dist/chunks/cost-0.6.7-mcmacwts.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +1 -0
- package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +1 -0
- package/dist/chunks/debug-0.6.7-40mxhr43.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +1367 -0
- package/dist/chunks/desktop-0.6.7-m8hceses.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +1 -0
- package/dist/chunks/detection-0.6.7-796dd7my.mjs +1 -0
- package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +1 -0
- package/dist/chunks/doctor-0.6.7-69xecv72.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +1 -0
- package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +1 -0
- package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +1 -0
- package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +1 -0
- package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +1 -0
- package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +1 -0
- package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +1 -0
- package/dist/chunks/export-0.6.7-nxr4yk69.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +1 -0
- package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +1 -0
- package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +1 -0
- package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +1 -0
- package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +4 -0
- package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +1 -0
- package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +1 -0
- package/dist/chunks/headless-0.6.7-35yksmzv.mjs +2 -0
- package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +6 -0
- package/dist/chunks/help-0.6.7-xe78z9ep.mjs +1 -0
- package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +3 -0
- package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +79 -0
- package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +1 -0
- package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +1 -0
- package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +1 -0
- package/dist/chunks/index-0.6.7-1ngjds1q.mjs +30 -0
- package/dist/chunks/index-0.6.7-269433vt.mjs +2 -0
- package/dist/chunks/index-0.6.7-299hd0kq.mjs +1 -0
- package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +9 -0
- package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +1 -0
- package/dist/chunks/index-0.6.7-938hete3.mjs +1 -0
- package/dist/chunks/index-0.6.7-9qxbggwj.mjs +1 -0
- package/dist/chunks/index-0.6.7-adw6e99t.mjs +1 -0
- package/dist/chunks/index-0.6.7-da5n32m6.mjs +1 -0
- package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +1 -0
- package/dist/chunks/index-0.6.7-fewh0t9g.mjs +1 -0
- package/dist/chunks/index-0.6.7-jyep217e.mjs +1 -0
- package/dist/chunks/index-0.6.7-mmh99nq4.mjs +1 -0
- package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +2 -0
- package/dist/chunks/index-0.6.7-pspakten.mjs +1 -0
- package/dist/chunks/index-0.6.7-qy50jasm.mjs +5 -0
- package/dist/chunks/index-0.6.7-r7sewgza.mjs +1 -0
- package/dist/chunks/index-0.6.7-tet87444.mjs +1 -0
- package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +1 -0
- package/dist/chunks/index-0.6.7-xhxjqdft.mjs +1 -0
- package/dist/chunks/index-0.6.7-yc13tnk8.mjs +1 -0
- package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +9 -0
- package/dist/chunks/init-0.6.7-9mxee8s9.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +1 -0
- package/dist/chunks/ink-0.6.7-24swqw8m.mjs +1 -0
- package/dist/chunks/insights-0.6.7-wf368crb.mjs +870 -0
- package/dist/chunks/install-0.6.7-a9dezzjy.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +1 -0
- package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +2 -0
- package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +1 -0
- package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +1 -0
- package/dist/chunks/main-0.6.7-epme77xk.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +1 -0
- package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +17 -0
- package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +4 -0
- package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +1 -0
- package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +1 -0
- package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +3 -0
- package/dist/chunks/model-0.6.7-bnf162h5.mjs +2 -0
- package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +1 -0
- package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +12 -0
- package/dist/chunks/oauth-0.6.7-ecry38es.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +14 -0
- package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +1 -0
- package/dist/chunks/parser-0.6.7-dwxttek7.mjs +1 -0
- package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +1 -0
- package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +3 -0
- package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +1 -0
- package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +1 -0
- package/dist/chunks/plist-0.6.7-vcn459ke.mjs +1 -0
- package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +1 -0
- package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +2 -0
- package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +1 -0
- package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +9 -0
- package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +1 -0
- package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +1 -0
- package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +13 -0
- package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +34 -0
- package/dist/chunks/registry-0.6.7-vnf153w2.mjs +1 -0
- package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +2 -0
- package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +1 -0
- package/dist/chunks/rename-0.6.7-9hky49hm.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +1 -0
- package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +2 -0
- package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +1 -0
- package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +1 -0
- package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +1 -0
- package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +5 -0
- package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +1 -0
- package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +1 -0
- package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +1 -0
- package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +6 -0
- package/dist/chunks/status-0.6.7-4dybregh.mjs +1 -0
- package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +1 -0
- package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +1 -0
- package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +1 -0
- package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +1 -0
- package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +1 -0
- package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +1 -0
- package/dist/chunks/tools-0.6.7-w23c68c1.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +69 -0
- package/dist/chunks/types-0.6.7-q8m8v654.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +4 -0
- package/dist/chunks/update-0.6.7-gwfz54bh.mjs +86 -0
- package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +1 -0
- package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +1 -0
- package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +1 -0
- package/dist/chunks/util-0.6.7-3z6r92wt.mjs +1 -0
- package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +1 -0
- package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +1 -0
- package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +1 -0
- package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +132 -0
- package/dist/chunks/worktree-0.6.7-214cy52d.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +1 -0
- package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.6-bdcafcej.mjs +0 -1
- package/dist/chunks/App-0.6.6-k5gj5n4h.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.6-7fdtwksv.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.6-2j0e7ev9.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.6-6yx84pzc.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.6-vjc7apke.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.6-td62cgn4.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.6-5aqhvkcg.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.6-d2jxy48y.mjs +0 -11
- package/dist/chunks/Doctor-0.6.6-me4wn4j5.mjs +0 -1
- package/dist/chunks/Grove-0.6.6-xfwy6rbw.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.6-qthf2vr3.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.6-mp5b6a5j.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.6-awc54gyk.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.6-4qg3bf91.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.6-fewq1c0b.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.6-cx15mb4s.mjs +0 -1
- package/dist/chunks/REPL-0.6.6-ev64pese.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.6-gkxw58n4.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.6-45f8nb47.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.6-5314g8tw.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.6-w4svp0jn.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.6-5vjtrnya.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.6-rphhdvq8.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.6-s2f271df.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.6-s74swp6v.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.6-r3wwyv1a.mjs +0 -1
- package/dist/chunks/add-dir-0.6.6-nm6s9jm3.mjs +0 -1
- package/dist/chunks/agents-0.6.6-yfx529qm.mjs +0 -3
- package/dist/chunks/agents-0.6.6-z45zpb7a.mjs +0 -110
- package/dist/chunks/api-0.6.6-rrs0y38h.mjs +0 -1
- package/dist/chunks/asciicast-0.6.6-qrz006k9.mjs +0 -1
- package/dist/chunks/assistant-0.6.6-tfmwrg23.mjs +0 -1
- package/dist/chunks/auth-0.6.6-61djjn63.mjs +0 -1
- package/dist/chunks/auth-0.6.6-8pgs8nej.mjs +0 -1
- package/dist/chunks/autoMode-0.6.6-d0vbqpdq.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.6-xacp5fck.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.6-dnhts5fj.mjs +0 -1
- package/dist/chunks/branch-0.6.6-84wkac2e.mjs +0 -4
- package/dist/chunks/bridge-0.6.6-p3dy64f9.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.6-fvzjs1pa.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.6-ge15dg1p.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.6-w0xmef6b.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.6-cba0ahq2.mjs +0 -1
- package/dist/chunks/btw-0.6.6-46grbbjr.mjs +0 -1
- package/dist/chunks/buddy-0.6.6-90qdgfw4.mjs +0 -3
- package/dist/chunks/cacache-0.6.6-v19w3dxf.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.6-k4ev06pn.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.6-dehpnmz9.mjs +0 -4
- package/dist/chunks/caches-0.6.6-4a0mnm1h.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.6-fhspw8yv.mjs +0 -1
- package/dist/chunks/claudemd-0.6.6-s2nktt1h.mjs +0 -1
- package/dist/chunks/clear-0.6.6-e06ssw4n.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.6-062bve0j.mjs +0 -1
- package/dist/chunks/cli-0.6.6-0ak8r49x.mjs +0 -2
- package/dist/chunks/cli-0.6.6-0j61q3w5.mjs +0 -2
- package/dist/chunks/cli-0.6.6-0pptmkkg.mjs +0 -4
- package/dist/chunks/cli-0.6.6-0w254y38.mjs +0 -2
- package/dist/chunks/cli-0.6.6-10re6ept.mjs +0 -2
- package/dist/chunks/cli-0.6.6-141tbvn2.mjs +0 -2
- package/dist/chunks/cli-0.6.6-1a0fnhh0.mjs +0 -2
- package/dist/chunks/cli-0.6.6-1dy4fd01.mjs +0 -2
- package/dist/chunks/cli-0.6.6-1jt6s6c8.mjs +0 -2
- package/dist/chunks/cli-0.6.6-23snct9d.mjs +0 -5348
- package/dist/chunks/cli-0.6.6-27tkk39p.mjs +0 -2
- package/dist/chunks/cli-0.6.6-2dtp6rc2.mjs +0 -2
- package/dist/chunks/cli-0.6.6-2fasp96a.mjs +0 -2
- package/dist/chunks/cli-0.6.6-2gjay42h.mjs +0 -2
- package/dist/chunks/cli-0.6.6-2mf6j1pf.mjs +0 -4
- package/dist/chunks/cli-0.6.6-36kc5vh1.mjs +0 -3
- package/dist/chunks/cli-0.6.6-37wcg59v.mjs +0 -2
- package/dist/chunks/cli-0.6.6-3agn70fr.mjs +0 -50
- package/dist/chunks/cli-0.6.6-3qbz76xq.mjs +0 -2
- package/dist/chunks/cli-0.6.6-3s3k6nsb.mjs +0 -2
- package/dist/chunks/cli-0.6.6-3t45jvj0.mjs +0 -2
- package/dist/chunks/cli-0.6.6-3t9gkjhn.mjs +0 -8
- package/dist/chunks/cli-0.6.6-3ykkcpjf.mjs +0 -2
- package/dist/chunks/cli-0.6.6-40n0q9g3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-44bk8ev1.mjs +0 -2
- package/dist/chunks/cli-0.6.6-4d55s633.mjs +0 -3
- package/dist/chunks/cli-0.6.6-4jrf033h.mjs +0 -12
- package/dist/chunks/cli-0.6.6-4m7r4esm.mjs +0 -4
- package/dist/chunks/cli-0.6.6-4nxq7s1k.mjs +0 -2
- package/dist/chunks/cli-0.6.6-4qj9brbk.mjs +0 -2
- package/dist/chunks/cli-0.6.6-4qrnzmjb.mjs +0 -2
- package/dist/chunks/cli-0.6.6-4r50eqxg.mjs +0 -2
- package/dist/chunks/cli-0.6.6-4tp2yb2x.mjs +0 -2
- package/dist/chunks/cli-0.6.6-4tzkbyes.mjs +0 -2
- package/dist/chunks/cli-0.6.6-504vvx3q.mjs +0 -2
- package/dist/chunks/cli-0.6.6-5eww20j0.mjs +0 -2
- package/dist/chunks/cli-0.6.6-5p4qy3we.mjs +0 -2
- package/dist/chunks/cli-0.6.6-61wnn1as.mjs +0 -3
- package/dist/chunks/cli-0.6.6-6gzy2tvk.mjs +0 -12
- package/dist/chunks/cli-0.6.6-6p78renb.mjs +0 -2
- package/dist/chunks/cli-0.6.6-6zs5dyhh.mjs +0 -20
- package/dist/chunks/cli-0.6.6-731hhd3s.mjs +0 -2
- package/dist/chunks/cli-0.6.6-73eg8qn0.mjs +0 -2
- package/dist/chunks/cli-0.6.6-76rkjh7v.mjs +0 -2
- package/dist/chunks/cli-0.6.6-7n7fwzth.mjs +0 -2
- package/dist/chunks/cli-0.6.6-7pfzbq40.mjs +0 -2
- package/dist/chunks/cli-0.6.6-7r4esgkf.mjs +0 -2
- package/dist/chunks/cli-0.6.6-7r817n5d.mjs +0 -2
- package/dist/chunks/cli-0.6.6-7s8bhv18.mjs +0 -2
- package/dist/chunks/cli-0.6.6-7tnsnb0c.mjs +0 -2
- package/dist/chunks/cli-0.6.6-816nja7p.mjs +0 -2
- package/dist/chunks/cli-0.6.6-85mqgh7w.mjs +0 -133
- package/dist/chunks/cli-0.6.6-8bvd4smw.mjs +0 -3
- package/dist/chunks/cli-0.6.6-8e7c224v.mjs +0 -2
- package/dist/chunks/cli-0.6.6-8gcxhg7t.mjs +0 -3
- package/dist/chunks/cli-0.6.6-8gmesggf.mjs +0 -2
- package/dist/chunks/cli-0.6.6-8hzhy95p.mjs +0 -2
- package/dist/chunks/cli-0.6.6-8s6h2xee.mjs +0 -3
- package/dist/chunks/cli-0.6.6-8vnkmjet.mjs +0 -2
- package/dist/chunks/cli-0.6.6-8wwb7c4z.mjs +0 -10
- package/dist/chunks/cli-0.6.6-8yvh28tb.mjs +0 -16
- package/dist/chunks/cli-0.6.6-92dvpnqv.mjs +0 -3
- package/dist/chunks/cli-0.6.6-962my51a.mjs +0 -2
- package/dist/chunks/cli-0.6.6-99e532z3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-9r04g0xa.mjs +0 -2
- package/dist/chunks/cli-0.6.6-9rjdy05g.mjs +0 -2
- package/dist/chunks/cli-0.6.6-9tjtzwyt.mjs +0 -2
- package/dist/chunks/cli-0.6.6-a2e4eek5.mjs +0 -2
- package/dist/chunks/cli-0.6.6-a837m6n5.mjs +0 -2
- package/dist/chunks/cli-0.6.6-aep3cnz5.mjs +0 -2
- package/dist/chunks/cli-0.6.6-akjyt0hr.mjs +0 -2
- package/dist/chunks/cli-0.6.6-akqfmyeb.mjs +0 -2
- package/dist/chunks/cli-0.6.6-am3sz82d.mjs +0 -58
- package/dist/chunks/cli-0.6.6-ap1eg2xa.mjs +0 -2
- package/dist/chunks/cli-0.6.6-apq4h0nf.mjs +0 -2
- package/dist/chunks/cli-0.6.6-aq30fm8p.mjs +0 -1
- package/dist/chunks/cli-0.6.6-ar43nqjq.mjs +0 -3
- package/dist/chunks/cli-0.6.6-arvcw19g.mjs +0 -2
- package/dist/chunks/cli-0.6.6-as18fmg3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-at7yytqj.mjs +0 -2
- package/dist/chunks/cli-0.6.6-axvjexmr.mjs +0 -15
- package/dist/chunks/cli-0.6.6-b1wqaqv9.mjs +0 -4
- package/dist/chunks/cli-0.6.6-bbv794xs.mjs +0 -4
- package/dist/chunks/cli-0.6.6-bn18ty4n.mjs +0 -18
- package/dist/chunks/cli-0.6.6-by1ngr5q.mjs +0 -5
- package/dist/chunks/cli-0.6.6-c267ckfv.mjs +0 -2
- package/dist/chunks/cli-0.6.6-c2xmgnfp.mjs +0 -7
- package/dist/chunks/cli-0.6.6-ct7zap14.mjs +0 -2
- package/dist/chunks/cli-0.6.6-czhez59x.mjs +0 -2
- package/dist/chunks/cli-0.6.6-d0qrt51j.mjs +0 -2
- package/dist/chunks/cli-0.6.6-d5dexg4d.mjs +0 -2
- package/dist/chunks/cli-0.6.6-dmd73xa3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-dmtpt4r7.mjs +0 -17
- package/dist/chunks/cli-0.6.6-dnx45tc3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-drg8zfkg.mjs +0 -2
- package/dist/chunks/cli-0.6.6-e4pcw0z3.mjs +0 -3
- package/dist/chunks/cli-0.6.6-eeaxd1dd.mjs +0 -2
- package/dist/chunks/cli-0.6.6-efkct3rx.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ek8y79wd.mjs +0 -2
- package/dist/chunks/cli-0.6.6-en2sexw5.mjs +0 -59
- package/dist/chunks/cli-0.6.6-enc586ry.mjs +0 -4
- package/dist/chunks/cli-0.6.6-esnwdj9p.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ezhp9zxv.mjs +0 -2
- package/dist/chunks/cli-0.6.6-f6wc5yc6.mjs +0 -17
- package/dist/chunks/cli-0.6.6-fep3xed7.mjs +0 -2
- package/dist/chunks/cli-0.6.6-fj9rpekf.mjs +0 -2
- package/dist/chunks/cli-0.6.6-g6ja9jcs.mjs +0 -4
- package/dist/chunks/cli-0.6.6-g9mdc3pd.mjs +0 -2
- package/dist/chunks/cli-0.6.6-gk8s7mch.mjs +0 -67
- package/dist/chunks/cli-0.6.6-gte1km05.mjs +0 -2
- package/dist/chunks/cli-0.6.6-h02v66zq.mjs +0 -2
- package/dist/chunks/cli-0.6.6-h12zw82h.mjs +0 -3
- package/dist/chunks/cli-0.6.6-h2aqs05m.mjs +0 -2
- package/dist/chunks/cli-0.6.6-h8d7s4qz.mjs +0 -21
- package/dist/chunks/cli-0.6.6-h8ew0rcw.mjs +0 -24
- package/dist/chunks/cli-0.6.6-hcajyfhg.mjs +0 -6
- package/dist/chunks/cli-0.6.6-hejk0ae6.mjs +0 -5
- package/dist/chunks/cli-0.6.6-hetrxwwb.mjs +0 -2
- package/dist/chunks/cli-0.6.6-heymhe69.mjs +0 -24
- package/dist/chunks/cli-0.6.6-hp08wrzx.mjs +0 -15
- package/dist/chunks/cli-0.6.6-hsgfy54f.mjs +0 -2
- package/dist/chunks/cli-0.6.6-hyqpcaay.mjs +0 -2
- package/dist/chunks/cli-0.6.6-j4j7a9y4.mjs +0 -2
- package/dist/chunks/cli-0.6.6-je6w2y3h.mjs +0 -2
- package/dist/chunks/cli-0.6.6-jh33fwqe.mjs +0 -18
- package/dist/chunks/cli-0.6.6-jjj2qt22.mjs +0 -2
- package/dist/chunks/cli-0.6.6-jqxfz350.mjs +0 -2
- package/dist/chunks/cli-0.6.6-jrpy2bkk.mjs +0 -2
- package/dist/chunks/cli-0.6.6-kca8bnv6.mjs +0 -2
- package/dist/chunks/cli-0.6.6-khr65dty.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ktwh4wvp.mjs +0 -6
- package/dist/chunks/cli-0.6.6-mb1z3n48.mjs +0 -2
- package/dist/chunks/cli-0.6.6-mc9x1jry.mjs +0 -28
- package/dist/chunks/cli-0.6.6-mezb9tga.mjs +0 -2
- package/dist/chunks/cli-0.6.6-mk746t95.mjs +0 -2
- package/dist/chunks/cli-0.6.6-mmgfr8v9.mjs +0 -2
- package/dist/chunks/cli-0.6.6-mrkkgjdh.mjs +0 -2
- package/dist/chunks/cli-0.6.6-mzjbzje2.mjs +0 -2
- package/dist/chunks/cli-0.6.6-nbrpn6xq.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ncqg4xxp.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ntyx46a7.mjs +0 -2
- package/dist/chunks/cli-0.6.6-nw0nh4e0.mjs +0 -2
- package/dist/chunks/cli-0.6.6-nymfz9tw.mjs +0 -2
- package/dist/chunks/cli-0.6.6-p3xdjh86.mjs +0 -12
- package/dist/chunks/cli-0.6.6-phfaae6k.mjs +0 -2
- package/dist/chunks/cli-0.6.6-py5db2ds.mjs +0 -2
- package/dist/chunks/cli-0.6.6-q1j20ysc.mjs +0 -193
- package/dist/chunks/cli-0.6.6-q6pybpxh.mjs +0 -2
- package/dist/chunks/cli-0.6.6-qvmtyvz3.mjs +0 -3
- package/dist/chunks/cli-0.6.6-r5fnevcm.mjs +0 -2
- package/dist/chunks/cli-0.6.6-r6ph5dqe.mjs +0 -2
- package/dist/chunks/cli-0.6.6-rhcte81y.mjs +0 -15
- package/dist/chunks/cli-0.6.6-rqfeyzcp.mjs +0 -2
- package/dist/chunks/cli-0.6.6-rxhq7h6p.mjs +0 -2
- package/dist/chunks/cli-0.6.6-s3y8t7we.mjs +0 -2
- package/dist/chunks/cli-0.6.6-sc6nf44p.mjs +0 -2
- package/dist/chunks/cli-0.6.6-sh4pyhkw.mjs +0 -2
- package/dist/chunks/cli-0.6.6-sqvm4f1y.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ssjjspdc.mjs +0 -2
- package/dist/chunks/cli-0.6.6-sxde5jj7.mjs +0 -2
- package/dist/chunks/cli-0.6.6-t3vvf5fy.mjs +0 -2
- package/dist/chunks/cli-0.6.6-t7p08nsw.mjs +0 -2
- package/dist/chunks/cli-0.6.6-tam4amwx.mjs +0 -2
- package/dist/chunks/cli-0.6.6-tg1e3sdx.mjs +0 -2
- package/dist/chunks/cli-0.6.6-tk00k0e1.mjs +0 -34
- package/dist/chunks/cli-0.6.6-v17a8yzy.mjs +0 -2
- package/dist/chunks/cli-0.6.6-vesqvt0y.mjs +0 -2
- package/dist/chunks/cli-0.6.6-vjj3g5dm.mjs +0 -2
- package/dist/chunks/cli-0.6.6-vt1181th.mjs +0 -39
- package/dist/chunks/cli-0.6.6-vvz9vw7f.mjs +0 -5
- package/dist/chunks/cli-0.6.6-vy3wa7f9.mjs +0 -2
- package/dist/chunks/cli-0.6.6-w687eya6.mjs +0 -2
- package/dist/chunks/cli-0.6.6-w6tqtrzg.mjs +0 -4
- package/dist/chunks/cli-0.6.6-wctj7gmc.mjs +0 -6
- package/dist/chunks/cli-0.6.6-ww6zy0p0.mjs +0 -2
- package/dist/chunks/cli-0.6.6-wxst92je.mjs +0 -4
- package/dist/chunks/cli-0.6.6-x1zrpt5g.mjs +0 -45
- package/dist/chunks/cli-0.6.6-x3tz7qvq.mjs +0 -2
- package/dist/chunks/cli-0.6.6-x88t5n54.mjs +0 -133
- package/dist/chunks/cli-0.6.6-xe6egv3r.mjs +0 -25
- package/dist/chunks/cli-0.6.6-xmd2zss3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-xna6taqd.mjs +0 -9
- package/dist/chunks/cli-0.6.6-xnazk7t9.mjs +0 -2
- package/dist/chunks/cli-0.6.6-xq4cysdk.mjs +0 -2
- package/dist/chunks/cli-0.6.6-xt0p4ems.mjs +0 -4
- package/dist/chunks/cli-0.6.6-xtj65dsh.mjs +0 -2
- package/dist/chunks/cli-0.6.6-y305shhz.mjs +0 -2
- package/dist/chunks/cli-0.6.6-yakt9hjc.mjs +0 -3
- package/dist/chunks/cli-0.6.6-yj2tafrk.mjs +0 -26
- package/dist/chunks/cli-0.6.6-ymge82rt.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ythetarc.mjs +0 -3
- package/dist/chunks/cli-0.6.6-ytskhcd3.mjs +0 -42
- package/dist/chunks/cli-0.6.6-ytws2j1w.mjs +0 -2
- package/dist/chunks/cli-0.6.6-yve3e654.mjs +0 -2
- package/dist/chunks/cli-0.6.6-yxd04fex.mjs +0 -2
- package/dist/chunks/cli-0.6.6-zb8ddz0k.mjs +0 -2
- package/dist/chunks/cli-0.6.6-ze6rx70y.mjs +0 -2
- package/dist/chunks/cli-0.6.6-zhky93y3.mjs +0 -2
- package/dist/chunks/cli-0.6.6-zwk7a82m.mjs +0 -2
- package/dist/chunks/cli-0.6.6-zx0cgvxq.mjs +0 -2
- package/dist/chunks/client-0.6.6-epndq4qc.mjs +0 -1
- package/dist/chunks/color-0.6.6-8rzmvtwk.mjs +0 -1
- package/dist/chunks/compact-0.6.6-hx8hw1kn.mjs +0 -3
- package/dist/chunks/config-0.6.6-0j07cdc5.mjs +0 -1
- package/dist/chunks/config-0.6.6-2fm368ym.mjs +0 -1
- package/dist/chunks/constants-0.6.6-0yxw2f7y.mjs +0 -1
- package/dist/chunks/context-0.6.6-1ask7yck.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.6-kk5a8p4w.mjs +0 -1
- package/dist/chunks/conversation-0.6.6-fetjq503.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.6-fwqs850f.mjs +0 -1
- package/dist/chunks/copy-0.6.6-8j7h9rrr.mjs +0 -9
- package/dist/chunks/cost-0.6.6-1b4svxh2.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.6-nj5vfp9k.mjs +0 -1
- package/dist/chunks/createSession-0.6.6-mphh6gbj.mjs +0 -1
- package/dist/chunks/debug-0.6.6-ghaq68w2.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.6-t8g2hnht.mjs +0 -1367
- package/dist/chunks/desktop-0.6.6-a4mc0bda.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.6-ncw5b2aj.mjs +0 -1
- package/dist/chunks/detection-0.6.6-214xzj0w.mjs +0 -1
- package/dist/chunks/diff-0.6.6-7nwejtje.mjs +0 -1
- package/dist/chunks/doctor-0.6.6-2wetaw67.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.6-wvp7h2xr.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.6-9jbsyrke.mjs +0 -1
- package/dist/chunks/effort-0.6.6-ncb29f3c.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.6-6pv90cvs.mjs +0 -1
- package/dist/chunks/envUtils-0.6.6-mwnbc88a.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.6-gac9h0m9.mjs +0 -1
- package/dist/chunks/environments-0.6.6-dyqm7563.mjs +0 -1
- package/dist/chunks/errors-0.6.6-q707mqqm.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.6-wd6w9zh5.mjs +0 -1
- package/dist/chunks/exit-0.6.6-8vj2yn2g.mjs +0 -1
- package/dist/chunks/export-0.6.6-ze9h049t.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.6-mp9th9v6.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.6-rmjhm3ng.mjs +0 -1
- package/dist/chunks/fast-0.6.6-764x92hh.mjs +0 -1
- package/dist/chunks/feedback-0.6.6-5x42sy6a.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.6-x2gcw7ns.mjs +0 -1
- package/dist/chunks/git-0.6.6-rw5vzxwm.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.6-f2n56xmf.mjs +0 -1
- package/dist/chunks/goal-0.6.6-9rtva22g.mjs +0 -4
- package/dist/chunks/grove-0.6.6-97994twv.mjs +0 -1
- package/dist/chunks/growthbook-0.6.6-8reejkag.mjs +0 -1
- package/dist/chunks/headless-0.6.6-qgkvkz56.mjs +0 -2
- package/dist/chunks/heapdump-0.6.6-s68hkj7v.mjs +0 -6
- package/dist/chunks/help-0.6.6-a74x2714.mjs +0 -1
- package/dist/chunks/hookChains-0.6.6-wrp608b1.mjs +0 -3
- package/dist/chunks/hooks-0.6.6-skad5kp2.mjs +0 -79
- package/dist/chunks/hooks-0.6.6-zy3p5ymd.mjs +0 -1
- package/dist/chunks/ide-0.6.6-xpbxyf5x.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.6-8ggh2rjn.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.6-xfbtg9vz.mjs +0 -1
- package/dist/chunks/index-0.6.6-0g09kzhh.mjs +0 -1
- package/dist/chunks/index-0.6.6-1p1fy7cz.mjs +0 -5
- package/dist/chunks/index-0.6.6-27ems47g.mjs +0 -9
- package/dist/chunks/index-0.6.6-4v2spjs5.mjs +0 -1
- package/dist/chunks/index-0.6.6-5me3rm4s.mjs +0 -9
- package/dist/chunks/index-0.6.6-70tj26f9.mjs +0 -1
- package/dist/chunks/index-0.6.6-8zcthv4z.mjs +0 -1
- package/dist/chunks/index-0.6.6-aef14n9j.mjs +0 -2
- package/dist/chunks/index-0.6.6-apxc13te.mjs +0 -1
- package/dist/chunks/index-0.6.6-dq42pv3d.mjs +0 -1
- package/dist/chunks/index-0.6.6-ebp0mayr.mjs +0 -1
- package/dist/chunks/index-0.6.6-ejmkdrzm.mjs +0 -1
- package/dist/chunks/index-0.6.6-kqbyedrd.mjs +0 -1
- package/dist/chunks/index-0.6.6-m0dywyy2.mjs +0 -30
- package/dist/chunks/index-0.6.6-pjnpey6d.mjs +0 -1
- package/dist/chunks/index-0.6.6-pykm48ja.mjs +0 -1
- package/dist/chunks/index-0.6.6-pzvhyk3s.mjs +0 -1
- package/dist/chunks/index-0.6.6-rxae4gv4.mjs +0 -1
- package/dist/chunks/index-0.6.6-s4wsdcz8.mjs +0 -2
- package/dist/chunks/index-0.6.6-spnbnmsj.mjs +0 -1
- package/dist/chunks/index-0.6.6-sqygenvb.mjs +0 -1
- package/dist/chunks/index-0.6.6-t43srges.mjs +0 -1
- package/dist/chunks/index-0.6.6-zgh9z1rm.mjs +0 -1
- package/dist/chunks/init-0.6.6-6yxjq5pc.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.6-eeynkqk3.mjs +0 -1
- package/dist/chunks/ink-0.6.6-keyn52qn.mjs +0 -1
- package/dist/chunks/insights-0.6.6-2wjtvjnd.mjs +0 -870
- package/dist/chunks/install-0.6.6-vdpf15fp.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.6-8zk1xfpw.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.6-j2a9c586.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.6-35f0r0ts.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.6-18x9yezm.mjs +0 -1
- package/dist/chunks/keybindings-0.6.6-9r4m4jvq.mjs +0 -2
- package/dist/chunks/knowledge-0.6.6-1rjjrsqn.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.6-32rrz0z9.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.6-tjygbn96.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.6-8xsdzy59.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.6-fr4gdkcy.mjs +0 -1
- package/dist/chunks/log-0.6.6-6nzgdpd0.mjs +0 -1
- package/dist/chunks/main-0.6.6-aq9jq72v.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.6-6bth8e56.mjs +0 -1
- package/dist/chunks/mcp-0.6.6-4xb16x7y.mjs +0 -1
- package/dist/chunks/mcp-0.6.6-chps3y13.mjs +0 -4
- package/dist/chunks/mcp-0.6.6-fxy3qcdv.mjs +0 -17
- package/dist/chunks/mcpb-0.6.6-bhpebgzm.mjs +0 -1
- package/dist/chunks/memory-0.6.6-89t2e497.mjs +0 -3
- package/dist/chunks/model-0.6.6-8bpwy4gg.mjs +0 -1
- package/dist/chunks/model-0.6.6-m3x9crqt.mjs +0 -2
- package/dist/chunks/node-0.6.6-rm65t01m.mjs +0 -12
- package/dist/chunks/oauth-0.6.6-akp7n7mb.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.6-ft40jfrp.mjs +0 -14
- package/dist/chunks/output-style-0.6.6-bvhtp4tc.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.6-0ykwzcyt.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.6-jve0dvpn.mjs +0 -1
- package/dist/chunks/parser-0.6.6-xa5qsjfh.mjs +0 -1
- package/dist/chunks/passes-0.6.6-tdv74eqj.mjs +0 -1
- package/dist/chunks/permissions-0.6.6-46df10nj.mjs +0 -3
- package/dist/chunks/permissions-0.6.6-8wcv4q7d.mjs +0 -1
- package/dist/chunks/plan-0.6.6-qw8t4gpk.mjs +0 -1
- package/dist/chunks/plist-0.6.6-5m3etrhq.mjs +0 -1
- package/dist/chunks/plugin-0.6.6-narwef70.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.6-v7kxdq6w.mjs +0 -1
- package/dist/chunks/plugins-0.6.6-10y990d0.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.6-0vkxazxv.mjs +0 -2
- package/dist/chunks/print-0.6.6-ym6tndvq.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.6-05da2gne.mjs +0 -1
- package/dist/chunks/process-0.6.6-da3h3zfe.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.6-m76r9et2.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.6-xxwnh0cf.mjs +0 -9
- package/dist/chunks/prompt-0.6.6-60sg3pmt.mjs +0 -1
- package/dist/chunks/prompt-0.6.6-vfh4fr6f.mjs +0 -1
- package/dist/chunks/prompts-0.6.6-vbfva1a5.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.6-73vezfvr.mjs +0 -13
- package/dist/chunks/provider-0.6.6-ch5qq6n3.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.6-jtysbyrm.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.6-5509e4cb.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.6-cfm37mqk.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.6-7p5mr9t1.mjs +0 -34
- package/dist/chunks/registry-0.6.6-z5cnbznq.mjs +0 -1
- package/dist/chunks/release-notes-0.6.6-90zjvqjx.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.6-jyxrw2jq.mjs +0 -2
- package/dist/chunks/remote-env-0.6.6-wyekcz2k.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.6-favpnrd5.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.6-snjkbaw2.mjs +0 -1
- package/dist/chunks/rename-0.6.6-3wang66e.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.6-dmxdjqjy.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.6-bvhzfdx8.mjs +0 -1
- package/dist/chunks/resume-0.6.6-zqn712k4.mjs +0 -2
- package/dist/chunks/rewind-0.6.6-h8kc53mc.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.6-wcam7tjd.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.6-qbm1rqdf.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.6-m882ckxv.mjs +0 -1
- package/dist/chunks/session-0.6.6-ezqqmxrd.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.6-0q34cmbe.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.6-3tek8yje.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.6-pgfjqhdj.mjs +0 -1
- package/dist/chunks/settings-0.6.6-ms6t0ray.mjs +0 -1
- package/dist/chunks/setup-0.6.6-n2vjxxmx.mjs +0 -5
- package/dist/chunks/sinks-0.6.6-mq00wrfa.mjs +0 -1
- package/dist/chunks/skills-0.6.6-vgr1dpf7.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.6-5nbjv2gp.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.6-z6adga96.mjs +0 -1
- package/dist/chunks/state-0.6.6-w2grqwqw.mjs +0 -1
- package/dist/chunks/stats-0.6.6-z11zcde6.mjs +0 -6
- package/dist/chunks/status-0.6.6-vbcqezgp.mjs +0 -1
- package/dist/chunks/stickers-0.6.6-c1pczjgd.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.6-95tf6phx.mjs +0 -1
- package/dist/chunks/tasks-0.6.6-pm1cbtt0.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.6-ec57k1fn.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.6-964bq8fq.mjs +0 -1
- package/dist/chunks/teleport-0.6.6-ksymynm4.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.6-r5q2y7w0.mjs +0 -1
- package/dist/chunks/theme-0.6.6-y46frztn.mjs +0 -1
- package/dist/chunks/thinkback-0.6.6-3j0w6yjk.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.6-rrcqmyxk.mjs +0 -1
- package/dist/chunks/toolPool-0.6.6-2jmzd43n.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.6-2rrd60cx.mjs +0 -1
- package/dist/chunks/tools-0.6.6-13yxm82t.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.6-yk1yrpb0.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.6-nhq9m5br.mjs +0 -69
- package/dist/chunks/types-0.6.6-stnrzm1j.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.6-7ytrj9jv.mjs +0 -4
- package/dist/chunks/update-0.6.6-5hf3mst5.mjs +0 -86
- package/dist/chunks/upgrade-0.6.6-y2gdvy9z.mjs +0 -1
- package/dist/chunks/upload-0.6.6-mwd7k6ym.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.6-2fc9x5pq.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.6-gbs8n3ne.mjs +0 -1
- package/dist/chunks/usage-0.6.6-8n0sxpw2.mjs +0 -1
- package/dist/chunks/util-0.6.6-hpjf8dnn.mjs +0 -1
- package/dist/chunks/utils-0.6.6-w937v7sr.mjs +0 -1
- package/dist/chunks/vim-0.6.6-b8g833z7.mjs +0 -1
- package/dist/chunks/watcher-0.6.6-bsqe9pa4.mjs +0 -1
- package/dist/chunks/wiki-0.6.6-2fstcx28.mjs +0 -132
- package/dist/chunks/worktree-0.6.6-yctkpbmx.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.6-yv2bvj70.mjs +0 -1
- package/dist/chunks/wrapper-0.6.6-02cwy0nm.mjs +0 -7
- /package/dist/chunks/{cli-0.6.6-mfee7shn.mjs → cli-0.6.7-790sqdfy.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.6-zk5p5pm9.mjs → cli-0.6.7-nzdwcqxv.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.6-7bzhgmhp.mjs → cli-0.6.7-pgcg3w1c.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as D}from"./cli-0.6.6-mezb9tga.mjs";import{C as x}from"./cli-0.6.6-3t9gkjhn.mjs";import{Pa as A}from"./cli-0.6.6-4m7r4esm.mjs";import{Qa as L}from"./cli-0.6.6-a2e4eek5.mjs";import{$R as b,Vn as k,Wn as U,Zn as F,_n as p,aS as u}from"./cli-0.6.6-23snct9d.mjs";import{MS as O,PS as c}from"./cli-0.6.6-4qj9brbk.mjs";import{b6 as m,m2 as Y,r2 as I,v4 as w,w4 as M,w5 as E,x5 as G}from"./cli-0.6.6-8yvh28tb.mjs";import{Bda as $,Eda as z,tba as X,uba as B}from"./cli-0.6.6-q1j20ysc.mjs";import{Ifa as _,Jfa as y}from"./cli-0.6.6-d5dexg4d.mjs";import{Cha as T,zha as K}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as V,_ha as S}from"./cli-0.6.6-g6ja9jcs.mjs";import{eia as J,gia as N,oia as v}from"./cli-0.6.6-nw0nh4e0.mjs";import{Moa as W,cpa as j}from"./cli-0.6.6-mc9x1jry.mjs";v();c();u();z();m();p();y();j();T();S();I();B();var C=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let R of P.server.remotes??[]){let Q=h(R.url);if(Q)H.add(Q)}C=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}M();U();function Xq(){if(J(process.env.CLAUDE_CODE_EXIT_AFTER_FIRST_RENDER)||N())return;O(),b(),x(),A();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH))G();if(q==="vertex"&&!J(process.env.CLAUDE_CODE_SKIP_VERTEX_AUTH))E();if(F(_(),AbortSignal.timeout(3000),[]),D(),Z(),w(),k.initialize(),!N())L.initialize()}
|
|
2
|
-
export{Xq as q};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{BU as W,GU as p}from"./cli-0.6.6-ar43nqjq.mjs";import{Q0 as H,S0 as P}from"./cli-0.6.6-4nxq7s1k.mjs";import{Xea as M,ifa as Z}from"./cli-0.6.6-y305shhz.mjs";import{Bfa as q,Dfa as $,Efa as Q,Ffa as k}from"./cli-0.6.6-gk8s7mch.mjs";import{wpa as Y}from"./cli-0.6.6-py5db2ds.mjs";async function X(){let x=await M("tengu_bridge_repl_v2_config",K),J=w().safeParse(x);return J.success?J.data:K}async function V(){let x=await X();if(x.min_version&&H("99.0.0",x.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${x.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function b(){if(!W())return!1;return(await X()).should_show_app_upgrade_message}var K,w;var O=Y(()=>{$();Z();k();P();p();K={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},w=Q(()=>q.object({init_retry_max_attempts:q.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:q.number().int().min(100).default(500),init_retry_jitter_fraction:q.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:q.number().int().min(500).default(4000),http_timeout_ms:q.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:q.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:q.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:q.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:q.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:q.number().int().min(500).max(2000).default(1500),connect_timeout_ms:q.number().int().min(5000).max(60000).default(15000),min_version:q.string().refine((x)=>{try{return H(x,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:q.boolean().default(!1)}))});
|
|
3
|
-
export{K as Xb,X as Yb,V as Zb,b as _b,O as $b};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hd as Jq,Ld as Tq}from"./cli-0.6.6-2mf6j1pf.mjs";import{Sd as zq,Td as bq}from"./cli-0.6.6-vesqvt0y.mjs";import{AJ as a,DJ as l,HJ as t,MJ as e,NG as u,OG as fq,OJ as Rq,VJ as qq,YE as r,ZE as Gq,ZJ as Fq,hJ as S,kJ as Nq,kn as n,ln as yq,nK as D,qK as Cq,vJ as s,wJ as _q}from"./cli-0.6.6-23snct9d.mjs";import{JY as F,LY as C,eX as i,fX as Kq,oX as Bq,oZ as Oq}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as v,v1 as R,w1 as p}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as Lq}from"./cli-0.6.6-c267ckfv.mjs";import{$8 as Hq,I9 as x,O7 as g,P7 as Zq,Qda as m,Yda as wq,_7 as $,_8 as o,a8 as Xq,c_ as vq}from"./cli-0.6.6-q1j20ysc.mjs";import{Cha as Yq,zha as B}from"./cli-0.6.6-hcajyfhg.mjs";import{Sha as P,Vha as h,_ha as Wq}from"./cli-0.6.6-g6ja9jcs.mjs";import{spa as d,wpa as Vq}from"./cli-0.6.6-py5db2ds.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
-
export{Iq as xd,Yz as yd,Dq as zd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{OF as z,PF as M,Ru as J,Su as Z,aE as L,bE as h}from"./cli-0.6.6-23snct9d.mjs";import{oX as X}from"./cli-0.6.6-en2sexw5.mjs";import{x1 as W}from"./cli-0.6.6-c267ckfv.mjs";import{Rna as V,mna as H}from"./cli-0.6.6-ncqg4xxp.mjs";import{spa as D,wpa as U}from"./cli-0.6.6-py5db2ds.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
-
export{v as Sf,A as Tf};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{upa as T,wpa as J5,xpa as M}from"./cli-0.6.6-py5db2ds.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 ge,X5 as he};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{oX as O}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as X,w1 as Q}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as b}from"./cli-0.6.6-c267ckfv.mjs";import{eca as W,sca as P}from"./cli-0.6.6-q1j20ysc.mjs";import{spa as U}from"./cli-0.6.6-py5db2ds.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
|
|
2
|
-
export{V as Ib,C as Jb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{fi as W,gi as B}from"./cli-0.6.6-vjj3g5dm.mjs";import{u1 as U,w1 as J}from"./cli-0.6.6-arvcw19g.mjs";import{U1 as V,V1 as v}from"./cli-0.6.6-ythetarc.mjs";import{C2 as N,D2 as _,D5 as Q,I5 as R,b6 as $}from"./cli-0.6.6-8yvh28tb.mjs";import{Qda as K,Yda as Z}from"./cli-0.6.6-q1j20ysc.mjs";import{wpa as Y}from"./cli-0.6.6-py5db2ds.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
|
|
2
|
-
export{w as Sb,E as Tb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N1 as N,S1 as $}from"./cli-0.6.6-nymfz9tw.mjs";import{D5 as M,N2 as L,Q2 as Y,b6 as Z}from"./cli-0.6.6-8yvh28tb.mjs";import{Qda as Q,Yda as X}from"./cli-0.6.6-q1j20ysc.mjs";import{uga as J,vga as V}from"./cli-0.6.6-7r4esgkf.mjs";import{Sha as P,_ha as S}from"./cli-0.6.6-g6ja9jcs.mjs";import{Moa as K,cpa as W}from"./cli-0.6.6-mc9x1jry.mjs";import{wpa as R}from"./cli-0.6.6-py5db2ds.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
-
export{C as zV,j as AV,b as BV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{pM as O,qM as P,rM as Q,sM as U,ui as M,vM as X,vi as W}from"./cli-0.6.6-23snct9d.mjs";import{wpa as V}from"./cli-0.6.6-py5db2ds.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as Uf,$ as Vf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zea as G,ifa as K}from"./cli-0.6.6-y305shhz.mjs";import{Bfa as j,Dfa as M,Efa as J,Ffa as N}from"./cli-0.6.6-gk8s7mch.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
|
|
2
|
-
export{q as ab,$ as bb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{wpa as V}from"./cli-0.6.6-py5db2ds.mjs";var k0,b;var T=V(()=>{k0=typeof global=="object"&&global&&global.Object===Object&&global,b=k0});var m0,y0,K;var z=V(()=>{T();m0=typeof self=="object"&&self&&self.Object===Object&&self,y0=b||m0||Function("return this")(),K=y0});var l0,B;var x=V(()=>{z();l0=K.Symbol,B=l0});function c0(q){var Z=v0.call(q,N),Q=q[N];try{q[N]=void 0;var Y=!0}catch(L){}var A=u0.call(q);if(Y)if(Z)q[N]=Q;else delete q[N];return A}var j,v0,u0,N,C;var f=V(()=>{x();j=Object.prototype,v0=j.hasOwnProperty,u0=j.toString,N=B?B.toStringTag:void 0;C=c0});function i0(q){return o0.call(q)}var h0,o0,g;var d=V(()=>{h0=Object.prototype,o0=h0.toString;g=i0});function s0(q){if(q==null)return q===void 0?r0:n0;return p&&p in Object(q)?C(q):g(q)}var n0="[object Null]",r0="[object Undefined]",p,k;var m=V(()=>{x();f();d();p=B?B.toStringTag:void 0;k=s0});function t0(q){var Z=typeof q;return q!=null&&(Z=="object"||Z=="function")}var G;var O=V(()=>{G=t0});function Qq(q){if(!G(q))return!1;var Z=k(q);return Z==e0||Z==qq||Z==a0||Z==Zq}var a0="[object AsyncFunction]",e0="[object Function]",qq="[object GeneratorFunction]",Zq="[object Proxy]",y;var l=V(()=>{m();O();y=Qq});var Vq,I;var v=V(()=>{z();Vq=K["__core-js_shared__"],I=Vq});function Yq(q){return!!u&&u in q}var u,c;var h=V(()=>{v();u=function(){var q=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||"");return q?"Symbol(src)_1."+q:""}();c=Yq});function Xq(q){if(q!=null){try{return Wq.call(q)}catch(Z){}try{return q+""}catch(Z){}}return""}var $q,Wq,o;var i=V(()=>{$q=Function.prototype,Wq=$q.toString;o=Xq});function Nq(q){if(!G(q)||c(q))return!1;var Z=y(q)?Lq:Bq;return Z.test(o(q))}var Kq,Bq,Jq,Uq,Eq,Aq,Lq,n;var r=V(()=>{l();h();O();i();Kq=/[\\^$.*+?()[\]{}|]/g,Bq=/^\[object .+?Constructor\]$/,Jq=Function.prototype,Uq=Object.prototype,Eq=Jq.toString,Aq=Uq.hasOwnProperty,Lq=RegExp("^"+Eq.call(Aq).replace(Kq,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");n=Nq});function wq(q,Z){return q==null?void 0:q[Z]}var s;var t=V(()=>{s=wq});function Fq(q,Z){var Q=s(q,Z);return n(Q)?Q:void 0}var D;var R=V(()=>{r();t();D=Fq});var Pq,$;var w=V(()=>{R();Pq=D(Object,"create"),$=Pq});function zq(){this.__data__=$?$(null):{},this.size=0}var a;var e=V(()=>{w();a=zq});function Gq(q){var Z=this.has(q)&&delete this.__data__[q];return this.size-=Z?1:0,Z}var q0;var Z0=V(()=>{q0=Gq});function Oq(q){var Z=this.__data__;if($){var Q=Z[q];return Q===Iq?void 0:Q}return xq.call(Z,q)?Z[q]:void 0}var Iq="__lodash_hash_undefined__",Dq,xq,Q0;var V0=V(()=>{w();Dq=Object.prototype,xq=Dq.hasOwnProperty;Q0=Oq});function Mq(q){var Z=this.__data__;return $?Z[q]!==void 0:Hq.call(Z,q)}var Rq,Hq,Y0;var $0=V(()=>{w();Rq=Object.prototype,Hq=Rq.hasOwnProperty;Y0=Mq});function Sq(q,Z){var Q=this.__data__;return this.size+=this.has(q)?0:1,Q[q]=$&&Z===void 0?_q:Z,this}var _q="__lodash_hash_undefined__",W0;var X0=V(()=>{w();W0=Sq});function J(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var H;var K0=V(()=>{e();Z0();V0();$0();X0();J.prototype.clear=a;J.prototype.delete=q0;J.prototype.get=Q0;J.prototype.has=Y0;J.prototype.set=W0;H=J});function bq(){this.__data__=[],this.size=0}var B0;var J0=V(()=>{B0=bq});function Tq(q,Z){return q===Z||q!==q&&Z!==Z}var U0;var E0=V(()=>{U0=Tq});function jq(q,Z){var Q=q.length;while(Q--)if(U0(q[Q][0],Z))return Q;return-1}var W;var F=V(()=>{E0();W=jq});function gq(q){var Z=this.__data__,Q=W(Z,q);if(Q<0)return!1;var Y=Z.length-1;if(Q==Y)Z.pop();else fq.call(Z,Q,1);return--this.size,!0}var Cq,fq,A0;var L0=V(()=>{F();Cq=Array.prototype,fq=Cq.splice;A0=gq});function dq(q){var Z=this.__data__,Q=W(Z,q);return Q<0?void 0:Z[Q][1]}var N0;var w0=V(()=>{F();N0=dq});function pq(q){return W(this.__data__,q)>-1}var F0;var P0=V(()=>{F();F0=pq});function kq(q,Z){var Q=this.__data__,Y=W(Q,q);if(Y<0)++this.size,Q.push([q,Z]);else Q[Y][1]=Z;return this}var z0;var G0=V(()=>{F();z0=kq});function U(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var I0;var D0=V(()=>{J0();L0();w0();P0();G0();U.prototype.clear=B0;U.prototype.delete=A0;U.prototype.get=N0;U.prototype.has=F0;U.prototype.set=z0;I0=U});var mq,x0;var O0=V(()=>{R();z();mq=D(K,"Map"),x0=mq});function yq(){this.size=0,this.__data__={hash:new H,map:new(x0||I0),string:new H}}var R0;var H0=V(()=>{K0();D0();O0();R0=yq});function lq(q){var Z=typeof q;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null}var M0;var _0=V(()=>{M0=lq});function vq(q,Z){var Q=q.__data__;return M0(Z)?Q[typeof Z=="string"?"string":"hash"]:Q.map}var X;var P=V(()=>{_0();X=vq});function uq(q){var Z=X(this,q).delete(q);return this.size-=Z?1:0,Z}var S0;var b0=V(()=>{P();S0=uq});function cq(q){return X(this,q).get(q)}var T0;var j0=V(()=>{P();T0=cq});function hq(q){return X(this,q).has(q)}var C0;var f0=V(()=>{P();C0=hq});function oq(q,Z){var Q=X(this,q),Y=Q.size;return Q.set(q,Z),this.size+=Q.size==Y?0:1,this}var g0;var d0=V(()=>{P();g0=oq});function E(q){var Z=-1,Q=q==null?0:q.length;this.clear();while(++Z<Q){var Y=q[Z];this.set(Y[0],Y[1])}}var M;var p0=V(()=>{H0();b0();j0();f0();d0();E.prototype.clear=R0;E.prototype.delete=S0;E.prototype.get=T0;E.prototype.has=C0;E.prototype.set=g0;M=E});function _(q,Z){if(typeof q!="function"||Z!=null&&typeof Z!="function")throw TypeError(iq);var Q=function(){var Y=arguments,A=Z?Z.apply(this,Y):Y[0],L=Q.cache;if(L.has(A))return L.get(A);var S=q.apply(this,Y);return Q.cache=L.set(A,S)||L,S};return Q.cache=new(_.Cache||M),Q}var iq="Expected a function",j6;var nq=V(()=>{p0();_.Cache=M;j6=_});
|
|
2
|
-
export{U0 as Sna,E0 as Tna,I0 as Una,D0 as Vna,b as Wna,T as Xna,K as Yna,z as Zna,B as _na,x as $na,k as aoa,m as boa,G as coa,O as doa,y as eoa,l as foa,o as goa,i as hoa,D as ioa,R as joa,x0 as koa,O0 as loa,M as moa,p0 as noa,j6 as ooa,nq as poa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mO as x,pO as B}from"./cli-0.6.6-23snct9d.mjs";import{wpa as z}from"./cli-0.6.6-py5db2ds.mjs";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var A=z(()=>{B()});
|
|
2
|
-
export{G as Wf,H as Xf,A as Yf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u1 as v,w1 as D}from"./cli-0.6.6-arvcw19g.mjs";import{xpa as B}from"./cli-0.6.6-py5db2ds.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.6.6-k5gj5n4h.mjs"),J=z??import("./REPL-0.6.6-ev64pese.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
|
|
2
|
-
export{N as Sa,O as Ta};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{wpa as K}from"./cli-0.6.6-py5db2ds.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as Dha,N as Eha,Q as Fha,R as Gha,S as Hha,L as Iha};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{oX as f}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as p,w1 as c}from"./cli-0.6.6-arvcw19g.mjs";import{x1 as M}from"./cli-0.6.6-c267ckfv.mjs";import{spa as o}from"./cli-0.6.6-py5db2ds.mjs";c();var n=o(f(),1),r=o(M(),1),d=r.createContext(void 0);function a(F){let e=n.c(3),{getFpsMetrics:s,children:i}=F,t;if(e[0]!==i||e[1]!==s)t=p(d.Provider,{value:s,children:i}),e[0]=i,e[1]=s,e[2]=t;else t=e[2];return t}function l(){return r.useContext(d)}
|
|
2
|
-
export{a as Kb,l as Lb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ko as W,Lo as n,Mx as I,Nx as P,Qx as t}from"./cli-0.6.6-23snct9d.mjs";import{C1 as H,D1 as p}from"./cli-0.6.6-8vnkmjet.mjs";import{E1 as C,G1 as i}from"./cli-0.6.6-4tp2yb2x.mjs";import{D5 as R,J5 as V,b6 as l,c5 as v,m2 as S,r2 as c}from"./cli-0.6.6-8yvh28tb.mjs";import{Bda as k,Eda as g,Qda as D,Wba as E,Yda as m,Zba as X,rda as T,sca as O,sda as Y,tba as q,uba as u,yda as y}from"./cli-0.6.6-q1j20ysc.mjs";import{Bfa as G,Dfa as f,Efa as $,Ffa as h}from"./cli-0.6.6-gk8s7mch.mjs";import{pga as Z,uga as _,vga as M}from"./cli-0.6.6-7r4esgkf.mjs";import{Cha as b,zha as x}from"./cli-0.6.6-hcajyfhg.mjs";import{Moa as Q,cpa as A}from"./cli-0.6.6-mc9x1jry.mjs";import{wpa as U}from"./cli-0.6.6-py5db2ds.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
-
export{Yj as ec,r as fc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{an as Q,bn as aq,uu as Pq,yu as hq}from"./cli-0.6.6-23snct9d.mjs";import{RW as Uq,SW as Iq,VW as fq}from"./cli-0.6.6-tk00k0e1.mjs";import{JY as J,LY as L,oX as nq,oZ as Sq}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as H,v1 as O,w1 as vq}from"./cli-0.6.6-arvcw19g.mjs";import{G3 as jq,m3 as bq,n3 as Mq}from"./cli-0.6.6-8yvh28tb.mjs";import{$8 as yq,I_ as Nq,K_ as _q,Zba as Rq,_8 as Xq,sca as pq}from"./cli-0.6.6-q1j20ysc.mjs";import{ifa as kq}from"./cli-0.6.6-y305shhz.mjs";import{spa as Bq,wpa as Gq}from"./cli-0.6.6-py5db2ds.mjs";function lq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function mq(V,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return V.length>0&&!/^\s/.test(V)&&!V.startsWith("\x1B")}var Wq=Gq(()=>{fq();pq();_q()});function T(V){return V.replace(/\+/g," + ")}function DD(V){let q=Eq.c(99),{dimColor:D,fixedWidth:Aq,gap:x,paddingX:l}=V,m=Q("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=T(m),q[0]=m,q[1]=p;else p=q[1];let e=p,d=Q("app:toggleTodos","Global","ctrl+t"),f;if(q[2]!==d)f=T(d),q[2]=d,q[3]=f;else f=q[3];let s=f,i=Q("chat:undo","Chat","ctrl+_"),B;if(q[4]!==i)B=T(i),q[4]=i,q[5]=B;else B=q[5];let r=B,$=Q("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=T($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=Q("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=T(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Dq=Q("chat:modelPicker","Chat","alt+p"),j;if(q[10]!==Dq)j=T(Dq),q[10]=Dq,q[11]=j;else j=q[11];let Hq=j,Jq=Q("chat:fastMode","Chat","alt+o"),n;if(q[12]!==Jq)n=T(Jq),q[12]=Jq,q[13]=n;else n=q[13];let Lq=n,Oq=Q("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Oq)S=T(Oq),q[14]=Oq,q[15]=S;else S=q[15];let Qq=S,Tq=Q("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Tq)a=T(Tq),q[16]=Tq,q[17]=a;else a=q[17];let Fq=a,Vq=Q("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Vq)h=T(Vq),q[18]=Vq,q[19]=h;else h=q[19];let Yq=h,gq=T(Q("chat:increaseEffort","Chat","shift+right")),C;if(q[20]!==D||q[21]!==Fq)C=null,q[20]=D,q[21]=Fq,q[22]=C;else C=q[22];let Zq=C,wq=Aq?24:void 0,Y;if(q[23]!==D)Y=H(J,{children:H(L,{dimColor:D,children:"! for bash mode"})}),q[23]=D,q[24]=Y;else Y=q[24];let Z;if(q[25]!==D)Z=H(J,{children:H(L,{dimColor:D,children:"/ for commands"})}),q[25]=D,q[26]=Z;else Z=q[26];let w;if(q[27]!==D)w=H(J,{children:H(L,{dimColor:D,children:"@ for file paths"})}),q[27]=D,q[28]=w;else w=q[28];let z;if(q[29]!==D)z=H(J,{children:H(L,{dimColor:D,children:"& for background"})}),q[29]=D,q[30]=z;else z=q[30];let A;if(q[31]!==D)A=H(J,{children:H(L,{dimColor:D,children:"/btw for side question"})}),q[31]=D,q[32]=A;else A=q[32];let F;if(q[33]!==wq||q[34]!==Y||q[35]!==Z||q[36]!==w||q[37]!==z||q[38]!==A)F=O(J,{flexDirection:"column",width:wq,children:[Y,Z,w,z,A]}),q[33]=wq,q[34]=Y,q[35]=Z,q[36]=w,q[37]=z,q[38]=A,q[39]=F;else F=q[39];let zq=Aq?35:void 0,G;if(q[40]!==D)G=H(J,{children:H(L,{dimColor:D,children:"double tap esc to clear input"})}),q[40]=D,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==D)N=H(J,{children:O(L,{dimColor:D,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=D,q[44]=N;else N=q[44];let R;if(q[45]!==D||q[46]!==e)R=H(J,{children:O(L,{dimColor:D,children:[e," for verbose output"]})}),q[45]=D,q[46]=e,q[47]=R;else R=q[47];let U;if(q[48]!==D||q[49]!==s)U=H(J,{children:O(L,{dimColor:D,children:[s," to toggle tasks"]})}),q[48]=D,q[49]=s,q[50]=U;else U=q[50];let c;if(q[51]===Symbol.for("react.memo_cache_sentinel"))c=Kq(),q[51]=c;else c=q[51];let I;if(q[52]!==D)I=H(J,{children:H(L,{dimColor:D,children:c})}),q[52]=D,q[53]=I;else I=q[53];let K;if(q[54]!==zq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==Zq)K=O(J,{flexDirection:"column",width:zq,children:[G,N,R,U,Zq,I]}),q[54]=zq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=Zq,q[61]=K;else K=q[61];let W;if(q[62]!==D||q[63]!==r)W=H(J,{children:O(L,{dimColor:D,children:[r," to undo"]})}),q[62]=D,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==D)v=Xq()!=="windows"&&H(J,{children:H(L,{dimColor:D,children:"ctrl + z to suspend"})}),q[65]=D,q[66]=v;else v=q[66];let X;if(q[67]!==D||q[68]!==Yq)X=H(J,{children:O(L,{dimColor:D,children:[Yq," to paste images"]})}),q[67]=D,q[68]=Yq,q[69]=X;else X=q[69];let b;if(q[70]!==D||q[71]!==Hq)b=H(J,{children:O(L,{dimColor:D,children:[Hq," to switch model"]})}),q[70]=D,q[71]=Hq,q[72]=b;else b=q[72];let M;if(q[73]!==D||q[74]!==Lq)M=bq()&&Mq()&&H(J,{children:O(L,{dimColor:D,children:[Lq," to toggle fast mode"]})}),q[73]=D,q[74]=Lq,q[75]=M;else M=q[75];let P;if(q[76]!==D||q[77]!==o)P=H(J,{children:O(L,{dimColor:D,children:[o," to stash prompt"]})}),q[76]=D,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==D||q[80]!==Qq)E=H(J,{children:O(L,{dimColor:D,children:[Qq," to edit in $EDITOR"]})}),q[79]=D,q[80]=Qq,q[81]=E;else E=q[81];let g;if(q[82]!==D)g=Pq()&&H(J,{children:H(L,{dimColor:D,children:"/keybindings to customize"})}),q[82]=D,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=O(J,{flexDirection:"column",children:[W,v,X,b,H(J,{children:O(L,{dimColor:D,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let u;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)u=O(J,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=u;else u=q[98];return u}var Eq;var Cq=Gq(()=>{Sq();yq();hq();aq();kq();jq();Wq();vq();Eq=Bq(nq(),1)});
|
|
2
|
-
export{lq as fg,mq as gg,Wq as hg,DD as ig,Cq as jg};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{HY as X,NY as JT,OY as ST,oZ as IT}from"./cli-0.6.6-en2sexw5.mjs";import{x6 as K,y6 as VT}from"./cli-0.6.6-wctj7gmc.mjs";import{$8 as _T,Aba as YT,I_ as Q,K_ as UT,Qda as H,Wba as z,Y9 as s,Yda as n,Zba as V,_7 as Y,_8 as BT,a8 as o,c_ as XT,dca as l,eca as d,g_ as FT,j_ as qT,k_ as OT,sca as D,yba as f}from"./cli-0.6.6-q1j20ysc.mjs";import{Ifa as E,Jfa as QT}from"./cli-0.6.6-d5dexg4d.mjs";import{cha as GT,dha as $T,hha as zT,lha as P,pha as KT}from"./cli-0.6.6-hcajyfhg.mjs";import{Yha as u,_ha as LT}from"./cli-0.6.6-g6ja9jcs.mjs";import{ooa as r,poa as ZT}from"./cli-0.6.6-sqvm4f1y.mjs";import{wpa as I}from"./cli-0.6.6-py5db2ds.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{QT();XT();KT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();o();n()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
|
|
2
|
-
|
|
3
|
-
No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
|
|
4
|
-
`;else if(B==="windows")J=` • Windows: Windows Terminal
|
|
5
|
-
`;let F=`Terminal setup cannot be run from ${$}.
|
|
6
|
-
|
|
7
|
-
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
-
${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
-
|
|
10
|
-
To set up the shortcut (optional):
|
|
11
|
-
1. Exit tmux/screen temporarily
|
|
12
|
-
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
-
${J} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
-
• Other: Alacritty
|
|
15
|
-
3. Return to tmux/screen - settings will persist
|
|
16
|
-
|
|
17
|
-
${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
|
|
18
|
-
{
|
|
19
|
-
"key": "shift+enter",
|
|
20
|
-
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
-
"args": { "text": "\\u001b\\r" },
|
|
22
|
-
"when": "terminalFocus"
|
|
23
|
-
}
|
|
24
|
-
]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
|
|
25
|
-
`))F+=`
|
|
26
|
-
`;return F+=`
|
|
27
|
-
[[keyboard.bindings]]
|
|
28
|
-
key = "Return"
|
|
29
|
-
mods = "Shift"
|
|
30
|
-
chars = "\\u001B\\r"
|
|
31
|
-
`,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
|
|
32
|
-
`,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
|
|
33
|
-
`,j;var bT=I(()=>{VT();ST();IT();h();TT();D();UT();LT();o();OT();n();_T();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
-
export{a as KW,h as LW,e as MW,TT as NW,Ww as OW,uT as PW,ET as QW,Lw as RW,zw as SW,Vw as TW,_w as UW,bT as VW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{YE as h,_E as I,kn as g,ln as k}from"./cli-0.6.6-23snct9d.mjs";import{LY as s,oX as S,oZ as _}from"./cli-0.6.6-en2sexw5.mjs";import{u1 as c,v1 as m,w1 as T}from"./cli-0.6.6-arvcw19g.mjs";import{Wba as b,sca as P}from"./cli-0.6.6-q1j20ysc.mjs";import{spa as D}from"./cli-0.6.6-py5db2ds.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
-
export{E as N};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Co as _,Do as S,KJ as R,OJ as b,RJ as w,XJ as M,ZJ as P,cK as m,dK as h,hK as c,xo as L,yo as D,zo as O}from"./cli-0.6.6-23snct9d.mjs";import{I$ as x,Q$ as T,Qda as N,Uaa as B,Waa as A,Yda as j,Zaa as C,hba as E}from"./cli-0.6.6-q1j20ysc.mjs";import{Ifa as U,Jfa as v}from"./cli-0.6.6-d5dexg4d.mjs";import{Cha as F,zha as G}from"./cli-0.6.6-hcajyfhg.mjs";import{wpa as y}from"./cli-0.6.6-py5db2ds.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
|
|
2
|
-
export{qq as Md,zq as Nd,Jq as Od,Kq as Pd,p as Qd,Qq as Rd,Vq as Sd,a as Td};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import{Gx as B,Ix as U,ZN as L,_N as w,aP as N,oP as d}from"./cli-0.6.6-23snct9d.mjs";import{n_ as z,u_ as F,xaa as P}from"./cli-0.6.6-q1j20ysc.mjs";import{nea as H,tea as v}from"./cli-0.6.6-b1wqaqv9.mjs";import{wpa as j}from"./cli-0.6.6-py5db2ds.mjs";async function V(R){let{messages:I,getAppState:O,options:{mainLoopModel:J,tools:Y,agentDefinitions:Z,customSystemPrompt:W,appendSystemPrompt:X}}=R,Q=N(I),{messages:K}=await B(Q),h=O();return L(K,J,async()=>h.toolPermissionContext,Y,Z,void 0,{options:{customSystemPrompt:W,appendSystemPrompt:X}},void 0,Q)}async function g(R,I){let O=await V(I);return{type:"text",value:b(O)}}function b(R){let{categories:I,totalTokens:O,rawMaxTokens:J,percentage:Y,model:Z,memoryFiles:W,mcpTools:X,agents:Q,skills:K}=R,h=`## Context Usage
|
|
2
|
-
|
|
3
|
-
`;h+=`**Model:** ${Z}
|
|
4
|
-
`,h+=`**Tokens:** ${H(O)} / ${H(J)} (${Y}%)
|
|
5
|
-
`,h+=`
|
|
6
|
-
`;let _=I.filter((q)=>q.tokens>0&&q.name!=="Free space"&&q.name!=="Autocompact buffer");if(_.length>0){h+=`### Estimated usage by category
|
|
7
|
-
|
|
8
|
-
`,h+=`| Category | Tokens | Percentage |
|
|
9
|
-
`,h+=`|----------|--------|------------|
|
|
10
|
-
`;for(let G of _){let $=(G.tokens/J*100).toFixed(1);h+=`| ${G.name} | ${H(G.tokens)} | ${$}% |
|
|
11
|
-
`}let q=I.find((G)=>G.name==="Free space");if(q&&q.tokens>0){let G=(q.tokens/J*100).toFixed(1);h+=`| Free space | ${H(q.tokens)} | ${G}% |
|
|
12
|
-
`}let E=I.find((G)=>G.name==="Autocompact buffer");if(E&&E.tokens>0){let G=(E.tokens/J*100).toFixed(1);h+=`| Autocompact buffer | ${H(E.tokens)} | ${G}% |
|
|
13
|
-
`}h+=`
|
|
14
|
-
`}if(X.length>0){h+=`### MCP Tools
|
|
15
|
-
|
|
16
|
-
`,h+=`| Tool | Server | Tokens |
|
|
17
|
-
`,h+=`|------|--------|--------|
|
|
18
|
-
`;for(let q of X)h+=`| ${q.name} | ${q.serverName} | ${H(q.tokens)} |
|
|
19
|
-
`;h+=`
|
|
20
|
-
`}if(Q.length>0){h+=`### Custom Agents
|
|
21
|
-
|
|
22
|
-
`,h+=`| Agent Type | Source | Tokens |
|
|
23
|
-
`,h+=`|------------|--------|--------|
|
|
24
|
-
`;for(let q of Q){let E;switch(q.source){case"projectSettings":E="Project";break;case"userSettings":E="User";break;case"localSettings":E="Local";break;case"flagSettings":E="Flag";break;case"policySettings":E="Policy";break;case"plugin":E="Plugin";break;case"built-in":E="Built-in";break;default:E=String(q.source)}h+=`| ${q.agentType} | ${E} | ${H(q.tokens)} |
|
|
25
|
-
`}h+=`
|
|
26
|
-
`}if(W.length>0){h+=`### Memory Files
|
|
27
|
-
|
|
28
|
-
`,h+=`| Type | Path | Tokens |
|
|
29
|
-
`,h+=`|------|------|--------|
|
|
30
|
-
`;for(let q of W)h+=`| ${q.type} | ${q.path} | ${H(q.tokens)} |
|
|
31
|
-
`;h+=`
|
|
32
|
-
`}if(K&&K.tokens>0&&K.skillFrontmatter.length>0){h+=`### Skills
|
|
33
|
-
|
|
34
|
-
`,h+=`| Skill | Source | Tokens |
|
|
35
|
-
`,h+=`|-------|--------|--------|
|
|
36
|
-
`;for(let q of K.skillFrontmatter)h+=`| ${q.name} | ${z(q.source)} | ${H(q.tokens)} |
|
|
37
|
-
`;h+=`
|
|
38
|
-
`}return h}var A=j(()=>{U();w();v();d();F();P()});
|
|
39
|
-
export{V as Zg,g as _g,A as $g};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{Cn as D,Gn as r,kE as F,lE as y,oE as S,uE as o}from"./cli-0.6.6-23snct9d.mjs";import{cX as A,dX as l,eX as z,fX as O}from"./cli-0.6.6-en2sexw5.mjs";import{q8 as x,r8 as d,t8 as b,u8 as g}from"./cli-0.6.6-q1j20ysc.mjs";import{Cha as I,fha as k,hha as p,lha as L,pha as c,zha as V}from"./cli-0.6.6-hcajyfhg.mjs";import{ooa as T,poa as C}from"./cli-0.6.6-sqvm4f1y.mjs";import{wpa as w}from"./cli-0.6.6-py5db2ds.mjs";import{spawn as G,spawnSync as _}from"child_process";import{basename as R}from"path";function u(q){return!!b(q)}function N(q){let H=R(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function m(q,H,B){if(!B)return[H];if(f.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=N(B);if(Q){let W=m(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>V(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&P.test(R(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=_(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=_(X,M,W)}if(Z.error)return V(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,P,f,v;var j=w(()=>{C();O();I();g();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],P=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,f=new Set(["code","cursor","windsurf","codium"]);v=T(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>u(H))})});function a(q){return N(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!a(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=s[J]??J;return x(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${D(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=y(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Nq(q,H){let B=L(),J=A();try{let X=H?S(q,H):q;k(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
-
`)&&!Q.endsWith(`
|
|
3
|
-
|
|
4
|
-
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var s;var t=w(()=>{o();O();j();d();c();r();p();l();s={code:"code -w",subl:"subl --wait"}});
|
|
5
|
-
export{Qq as $f,v as ag,j as bg,i as cg,Nq as dg,t as eg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{U1 as M,V1 as E}from"./cli-0.6.6-ythetarc.mjs";import{Bda as S,Eda as p,Fca as F,Qca as l,Tca as L,Uca as c,xca as _}from"./cli-0.6.6-q1j20ysc.mjs";import{gia as Y,oia as m}from"./cli-0.6.6-nw0nh4e0.mjs";import{wpa as B}from"./cli-0.6.6-py5db2ds.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
-
export{R as l0,r as m0,o as n0,e as o0,I as p0,O as q0,U as r0,VJ as s0,a as t0,WJ as u0,yJ as v0,zJ as w0,n as x0,jJ as y0,s as z0};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A7 as w,v7 as Z,z7 as _}from"./cli-0.6.6-0w254y38.mjs";import{I9 as k,Wba as W,Y8 as T,Zba as V,c_ as D,j8 as Y,k8 as U,sca as j,v8 as $}from"./cli-0.6.6-q1j20ysc.mjs";import{Cha as M,zha as N}from"./cli-0.6.6-hcajyfhg.mjs";import{Rna as O,_ja as X}from"./cli-0.6.6-ncqg4xxp.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
-
export{b as Db,y as Eb,P as Fb,d as Gb,c as Hb};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{QI as DJ,QP as jJ,RI as BJ,RP as ZV,SI as pJ,Yn as IJ,_n as cJ,rP as TJ,ri as dJ}from"./cli-0.6.6-23snct9d.mjs";import{$7 as c,A8 as p,Qda as L,Y8 as fJ,Yda as hJ,Zaa as WJ,Zba as NJ,a8 as PJ,f9 as qJ,hba as gJ,j9 as mJ,sca as uJ,v8 as VJ}from"./cli-0.6.6-q1j20ysc.mjs";import{Ifa as j,Jfa as kJ}from"./cli-0.6.6-d5dexg4d.mjs";import{wga as f,zga as zJ}from"./cli-0.6.6-a837m6n5.mjs";import{Cha as bJ,lha as JJ,pha as yJ,zha as Q}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as e,_ha as SJ}from"./cli-0.6.6-g6ja9jcs.mjs";import{Qja as AJ,Rja as wJ}from"./cli-0.6.6-ncqg4xxp.mjs";import{spa as LJ,wpa as HJ}from"./cli-0.6.6-py5db2ds.mjs";class d{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let $=0;$<J.length;$++){let _=J[$];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if(($&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let X=!0;for(let $=0;$<V.length;$++)if(this.indexPath($),($&255)===255&&performance.now()-Y>4){if(this.readyCount=$+1,X)W(),X=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=CJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let X=W.charCodeAt(Y);if(X>=97&&X<=122)V|=1<<X-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),X=Array(Y),$=0;for(let M=0;M<Y;M++){let B=V.charAt(M);X[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)$|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:U,readyCount:m}=this;J:for(let M=0;M<m;M++){if((x[M]&$)!==$)continue;let B=Z?I[M]:q[M],E=B.indexOf(X[0]);if(E===-1)continue;y[0]=E;let R=0,g=0,u=E;for(let A=1;A<Y;A++){if(E=B.indexOf(X[A],u+1),E===-1)continue J;y[A]=E;let F=E-u-1;if(F===0)g+=4;else R+=3+F*1;u=E}if(H.length===W&&_+g-R<=N)continue;let S=I[M],UJ=U[M],T=Y*16+g-R;T+=XJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=XJ(S,y[A],!1);if(T+=Math.max(0,32-(UJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let h=A+F>>1;if(H[h].fuzzScore<T)A=h+1;else F=h}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,R=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:R}}return z}}function XJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(vJ(V))return 8;if(GJ(V)&&RJ(J.charCodeAt(W)))return 6;return 0}function vJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function RJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function CJ(J,W){let Z=new Set;for(let Y of J){let X=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){X=_;break}}let $=Y.slice(0,X);if($.length>0){if(Z.add($),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,X)=>{let $=Y.length-X.length;if($!==0)return $;return Y<X?-1:Y>X?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var _J=4,y;var QJ=HJ(()=>{y=new Int32Array(64)});import{statSync as lJ}from"fs";import*as O from"path";function l(){if(!K)K=new d;return K}function UV(){K=null,v=null,G++,k=null,C=[],ZJ=[],$J=[],YJ.clear(),n=null,s=null,o=0,a=null,i=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let X=J[Y];for(let $=0;$<X.length;$++)V=(V^X.charCodeAt($))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let X=0;X<Y.length;X++)V=(V^Y.charCodeAt(X))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function nJ(){let J=VJ(j());if(!J)return null;try{return lJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function MJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function sJ(J){if(J.length===0)return;if(!K||C.length===0)return;let W=await FJ(J),Z=[...C,...ZJ,...$J,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${C.length} tracked + ${J.length} untracked files`)}async function OJ(J,W){let Z=`${J}:${W}`;if(s===Z)return n;let V=JJ(),Y=[".ignore",".rgignore"],X=[...new Set([J,W])],$=KJ.default(),_=!1,H=X.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;$.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?$:null;return n=I,s=Z,I}async function oJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=VJ(j());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=j(),X=Date.now(),$=await c(p(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-X}ms`),$.code!==0)return Q(`[FileIndex] git ls-files failed (code=${$.code}, stderr=${$.stderr}), falling back to ripgrep`),null;let _=$.stdout.trim().split(`
|
|
2
|
-
`).filter(Boolean),H=MJ(_,V,Y),N=await OJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}C=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=G;k=c(p(),q,{timeout:1e4,cwd:V}).then(async(U)=>{if(x!==G)return;if(U.code===0){let m=U.stdout.trim().split(`
|
|
3
|
-
`).filter(Boolean),D=MJ(m,V,Y),w=await OJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),sJ(D)}}).catch((U)=>{Q(`[FileIndex] background untracked fetch failed: ${U}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${e(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(aJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>_J)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function aJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let X=O.dirname(J[Y]);while(X!=="."&&!V.has(X)){let $=O.dirname(X);if($===X)break;V.add(X),X=$}}}async function iJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function rJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await oJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;Q("[FileIndex] git ls-files returned null, falling back to ripgrep");let V=Date.now(),Y=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)Y.push("--no-ignore-vcs");let $=(await IJ(Y,".",J)).map((H)=>O.relative(j(),H)),_=Date.now()-V;return Q(`[FileIndex] ripgrep: ${$.length} files in ${_}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:_}),$}async function tJ(){let J=AbortSignal.timeout(1e4),W=l();try{let Z=WJ(),V=NJ(),Y=Z.respectGitignore??V.respectGitignore??!0,X=j(),[$,_]=await Promise.all([rJ(J,Y),iJ(X)]);ZJ=_;let H=[...$,..._],N=await FJ(H);$J=N;let I=[...N,...H],q=xJ(I);if(q!==i)await W.loadFromFileListAsync(I).done,i=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){L(Z)}return W}function eJ(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function vV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=eJ(Z,Y),Z==="")return""}return Z}function r(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function JV(J,W){return J.search(W,t).map((V)=>r(V.path,V.score))}function EJ(){if(v)return;let J=nJ();if(K){if(!(J!==null&&J!==a)&&Date.now()-o<VV)return}let W=G,Z=Date.now();l(),v=tJ().then((V)=>{if(W!==G)return V;return v=null,YJ.emit(),a=J,o=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${e(V)}`),L(V),W===G)v=null;return l()})}async function WV(){let J=JJ(),W=j();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let X=V.isDirectory(),$=Y.isDirectory();if(X!==$)return X?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),X=O.relative(W,Y);return V.isDirectory()?X+O.sep:X})}catch(Z){return L(Z),[]}}async function GV(J,W=!1){if(!J&&!W)return[];if(WJ().fileSuggestion?.type==="command"){let V={...TJ(),query:J};return(await jJ(V)).slice(0,t).map(r)}if(J===""||J==="."||J==="./"){let V=await WV();return EJ(),V.slice(0,t).map(r)}let Z=Date.now();try{let V=v!==null;EJ();let Y=J,X="."+O.sep;if(J.startsWith(X))Y=J.substring(2);if(Y.startsWith("~"))Y=qJ(Y);let $=K?JV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${$.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:$.length,query_length:J.length}),$}catch(V){return L(V),[]}}function RV(J,W,Z,V,Y,X){let $=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+$+W.substring(V+Z.length);Y(_);let H=V+$.length;X(H)}var KJ,K=null,v=null,YJ,jV,G=0,k=null,C,ZJ,$J,n=null,s=null,o=0,a=null,i=null,P=null,t=100,VV=5000;var YV=HJ(()=>{pJ();QJ();zJ();uJ();kJ();bJ();SJ();PJ();yJ();fJ();ZV();hJ();mJ();cJ();gJ();wJ();KJ=LJ(dJ(),1);YJ=AJ(),jV=YJ.subscribe,C=[],ZJ=[],$J=[]});
|
|
4
|
-
export{jV as yh,UV as zh,vV as Ah,EJ as Bh,GV as Ch,RV as Dh,YV as Eh};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{wpa as j}from"./cli-0.6.6-py5db2ds.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+z,H=D+1,D=q.indexOf(`
|
|
4
|
-
`,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
|
|
5
|
-
`);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
|
|
6
|
-
export{o as w6,O1 as x6,e as y6};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{gV as YJ,kV as DJ,oV as vJ,pV as c,qV as SJ,yV as ZJ}from"./cli-0.6.6-fj9rpekf.mjs";import{k1 as CJ,r1 as TJ}from"./cli-0.6.6-0j61q3w5.mjs";import{$7 as OJ,A8 as xJ,F9 as jJ,Qda as p,Y8 as NJ,Yda as wJ,a8 as FJ,qba as S,sba as yJ}from"./cli-0.6.6-q1j20ysc.mjs";import{Bfa as R,Dfa as VJ,Efa as w,Ffa as XJ}from"./cli-0.6.6-gk8s7mch.mjs";import{Cha as QJ,cha as v,dha as y,hha as JJ,zha as G}from"./cli-0.6.6-hcajyfhg.mjs";import{Tha as W,Uha as C,_ha as e}from"./cli-0.6.6-g6ja9jcs.mjs";import{bia as s,cia as I,eia as t,oia as a}from"./cli-0.6.6-nw0nh4e0.mjs";import{$ma as L,Hla as i,Qja as r,Rja as MJ,Rna as m,Uja as d}from"./cli-0.6.6-ncqg4xxp.mjs";import{wpa as T,xpa as BJ}from"./cli-0.6.6-py5db2ds.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.6.6-z5cnbznq.mjs"),import("./detection-0.6.6-214xzj0w.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{HQ as rT,UQ as sT,BQ as tT,fJ as uT,OQ as vT,xQ as wT,CQ as xT,_J as yT,E as zT,bJ as AT,vQ as BT,O as CT,j as DT,SQ as ET,h as FT,AQ as GT,zQ as HT,MQ as IT,HJ as JT,n as KT,UJ as LT,oQ as MT,zJ as NT,nQ as OT,u as PT,F as QT,H as RT,kJ as ST,rJ as TT,kQ as UT,rQ as VT,dQ as WT,iQ as XT,mQ as YT,dJ as ZT,sQ as _T,tQ as $T,aQ as aU,eQ as bU,JV as cU,QV as dU,sJ as eU,tJ as fU};
|