@claudiolabs/claudin 0.6.5 → 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 +14 -14
- package/dist/chunks/AgentTool-0.6.5-9pre88qb.mjs +0 -1
- package/dist/chunks/App-0.6.5-syfacmqb.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.5-2rrtj277.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.5-8deawh7z.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.5-8e3v3cgx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.5-3pjygvs2.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.5-s2js1wag.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.5-36z08571.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.5-g256mdz0.mjs +0 -3
- package/dist/chunks/Doctor-0.6.5-vty8ec8n.mjs +0 -1
- package/dist/chunks/Grove-0.6.5-p00f24rh.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.5-53j2wh9w.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.5-gtpj7hn7.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.5-3d3v9kn1.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.5-mnbsk1bz.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.5-9r9rkgj0.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.5-yb8w75gs.mjs +0 -1
- package/dist/chunks/REPL-0.6.5-wqyg8nfv.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.5-0d1tkqfd.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.5-n5pa0d9r.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.5-t863eyfb.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.5-11ykz8de.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.5-dn6dvzvv.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.5-yd46t6dv.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.5-6kssfnkp.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.5-mdbqw8dc.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.5-wpe1bnhr.mjs +0 -1
- package/dist/chunks/add-dir-0.6.5-zphaxr62.mjs +0 -1
- package/dist/chunks/agents-0.6.5-9rhdp3vp.mjs +0 -110
- package/dist/chunks/agents-0.6.5-krnahvn4.mjs +0 -3
- package/dist/chunks/api-0.6.5-vfnxfssn.mjs +0 -1
- package/dist/chunks/asciicast-0.6.5-hr205c81.mjs +0 -1
- package/dist/chunks/assistant-0.6.5-nfbsgssx.mjs +0 -1
- package/dist/chunks/auth-0.6.5-9baxvtxg.mjs +0 -1
- package/dist/chunks/auth-0.6.5-cq4yrhn2.mjs +0 -1
- package/dist/chunks/autoMode-0.6.5-kzhwpmfg.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.5-bkzpv0pd.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.5-2mkev4qh.mjs +0 -1
- package/dist/chunks/branch-0.6.5-8vtt7esr.mjs +0 -4
- package/dist/chunks/bridge-0.6.5-9c1v2e52.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.5-w77y3p5n.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.5-k6hvamvf.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.5-pea2hztr.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.5-87t92nmh.mjs +0 -1
- package/dist/chunks/btw-0.6.5-xhyyarh0.mjs +0 -1
- package/dist/chunks/buddy-0.6.5-g9csmkdw.mjs +0 -3
- package/dist/chunks/cacache-0.6.5-kzjmbjve.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.5-c2br8x9m.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.5-kbdcab9q.mjs +0 -4
- package/dist/chunks/caches-0.6.5-nwzvsny2.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.5-51tkmdr1.mjs +0 -1
- package/dist/chunks/claudemd-0.6.5-212twher.mjs +0 -1
- package/dist/chunks/clear-0.6.5-yg0wcbw4.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.5-0c24f1yy.mjs +0 -1
- package/dist/chunks/cli-0.6.5-00kbsd9f.mjs +0 -2
- package/dist/chunks/cli-0.6.5-0356tc6y.mjs +0 -2
- package/dist/chunks/cli-0.6.5-06d8zge2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-0j7fzwkx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-0pt0eq6a.mjs +0 -3
- package/dist/chunks/cli-0.6.5-13g3042y.mjs +0 -12
- package/dist/chunks/cli-0.6.5-192npvx3.mjs +0 -2
- package/dist/chunks/cli-0.6.5-19mg5dfx.mjs +0 -6
- package/dist/chunks/cli-0.6.5-1bz46ywp.mjs +0 -2
- package/dist/chunks/cli-0.6.5-1fqhk4mv.mjs +0 -9
- package/dist/chunks/cli-0.6.5-1k5wyv3x.mjs +0 -2
- package/dist/chunks/cli-0.6.5-1m46f13z.mjs +0 -2
- package/dist/chunks/cli-0.6.5-1r4j3nda.mjs +0 -58
- package/dist/chunks/cli-0.6.5-2dq7pa8p.mjs +0 -34
- package/dist/chunks/cli-0.6.5-2s673b9m.mjs +0 -2
- package/dist/chunks/cli-0.6.5-38gqwg2m.mjs +0 -2
- package/dist/chunks/cli-0.6.5-3hemanw8.mjs +0 -15
- package/dist/chunks/cli-0.6.5-3p5vg2yx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-3ybp7ww7.mjs +0 -6
- package/dist/chunks/cli-0.6.5-406dcpxw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-41tc50h9.mjs +0 -2
- package/dist/chunks/cli-0.6.5-477kp2fg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-47s6s6ew.mjs +0 -2
- package/dist/chunks/cli-0.6.5-4k3kk3pr.mjs +0 -17
- package/dist/chunks/cli-0.6.5-4whh4m3h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-54w728vm.mjs +0 -2
- package/dist/chunks/cli-0.6.5-57jmtd2z.mjs +0 -2
- package/dist/chunks/cli-0.6.5-58ck75qn.mjs +0 -2
- package/dist/chunks/cli-0.6.5-5py2stcw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-5rpfanmw.mjs +0 -3
- package/dist/chunks/cli-0.6.5-5t6d3asz.mjs +0 -5347
- package/dist/chunks/cli-0.6.5-5wr197ms.mjs +0 -25
- package/dist/chunks/cli-0.6.5-5ymbb1v4.mjs +0 -2
- package/dist/chunks/cli-0.6.5-60hfev34.mjs +0 -2
- package/dist/chunks/cli-0.6.5-61tnv5c7.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6829jyhh.mjs +0 -9
- package/dist/chunks/cli-0.6.5-69f24h9w.mjs +0 -8
- package/dist/chunks/cli-0.6.5-6ab8b50h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6e6pv00e.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6ev1k0qv.mjs +0 -133
- package/dist/chunks/cli-0.6.5-6q2d7p49.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6qvtcs5y.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6wpz6mks.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6x91apzw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-72v6gjqf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-7am1hb1v.mjs +0 -2
- package/dist/chunks/cli-0.6.5-7tzhpeyn.mjs +0 -2
- package/dist/chunks/cli-0.6.5-7vnp5x55.mjs +0 -15
- package/dist/chunks/cli-0.6.5-81fzcvec.mjs +0 -4
- package/dist/chunks/cli-0.6.5-87qz97g2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-8hsxq1p3.mjs +0 -2
- package/dist/chunks/cli-0.6.5-8zsy7h21.mjs +0 -2
- package/dist/chunks/cli-0.6.5-95a4872h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-983fq4aj.mjs +0 -7
- package/dist/chunks/cli-0.6.5-987r1x1q.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9cs6r2j7.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9d9gmzev.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9g1pn7jy.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9g7p6wdj.mjs +0 -5
- package/dist/chunks/cli-0.6.5-9hp0d08c.mjs +0 -2
- package/dist/chunks/cli-0.6.5-a0ke5n08.mjs +0 -2
- package/dist/chunks/cli-0.6.5-a1csk51d.mjs +0 -3
- package/dist/chunks/cli-0.6.5-a23zsgke.mjs +0 -3
- package/dist/chunks/cli-0.6.5-a8za8sjg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-akw85jbw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-amtt1tbm.mjs +0 -39
- package/dist/chunks/cli-0.6.5-awhfeefv.mjs +0 -5
- package/dist/chunks/cli-0.6.5-azwzatpd.mjs +0 -20
- package/dist/chunks/cli-0.6.5-b7x38zg8.mjs +0 -2
- package/dist/chunks/cli-0.6.5-bm7v9qp0.mjs +0 -2
- package/dist/chunks/cli-0.6.5-brk2sfdw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-bzz83kdv.mjs +0 -2
- package/dist/chunks/cli-0.6.5-c0nyamvd.mjs +0 -17
- package/dist/chunks/cli-0.6.5-c4v4vgw4.mjs +0 -2
- package/dist/chunks/cli-0.6.5-c7yx03g7.mjs +0 -16
- package/dist/chunks/cli-0.6.5-ce51qb6k.mjs +0 -4
- package/dist/chunks/cli-0.6.5-ckc9hr8m.mjs +0 -2
- package/dist/chunks/cli-0.6.5-cwaewkgb.mjs +0 -2
- package/dist/chunks/cli-0.6.5-czc9nvxh.mjs +0 -133
- package/dist/chunks/cli-0.6.5-d7nvtk63.mjs +0 -2
- package/dist/chunks/cli-0.6.5-dcr7rpqe.mjs +0 -2
- package/dist/chunks/cli-0.6.5-dm2rwpsb.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e47bwdgy.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e5pzxdbx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e7k35s7j.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e9t7harq.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ef17hb7w.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ef6b5qvc.mjs +0 -193
- package/dist/chunks/cli-0.6.5-efh1xzne.mjs +0 -24
- package/dist/chunks/cli-0.6.5-efsxkpxr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ej3jf59h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-env00jtm.mjs +0 -1
- package/dist/chunks/cli-0.6.5-eq4cscgw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-eqk6q7pf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ev41fmky.mjs +0 -2
- package/dist/chunks/cli-0.6.5-f34ttkbg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-f4x1fb90.mjs +0 -4
- package/dist/chunks/cli-0.6.5-f71ncwzk.mjs +0 -59
- package/dist/chunks/cli-0.6.5-fg2a16s4.mjs +0 -2
- package/dist/chunks/cli-0.6.5-g43wnabd.mjs +0 -2
- package/dist/chunks/cli-0.6.5-g7d8vsb2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-g8qt9gm7.mjs +0 -2
- package/dist/chunks/cli-0.6.5-gjzdpmdx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-gk89f6jk.mjs +0 -4
- package/dist/chunks/cli-0.6.5-gw6ygdnq.mjs +0 -3
- package/dist/chunks/cli-0.6.5-h08jc3cj.mjs +0 -18
- package/dist/chunks/cli-0.6.5-h0xnjwg1.mjs +0 -2
- package/dist/chunks/cli-0.6.5-h3cch37f.mjs +0 -2
- package/dist/chunks/cli-0.6.5-h5x9r5ap.mjs +0 -50
- package/dist/chunks/cli-0.6.5-j45setk1.mjs +0 -2
- package/dist/chunks/cli-0.6.5-j5v5jpq8.mjs +0 -2
- package/dist/chunks/cli-0.6.5-je97ssab.mjs +0 -2
- package/dist/chunks/cli-0.6.5-jqbkgjhs.mjs +0 -2
- package/dist/chunks/cli-0.6.5-jrnx4znh.mjs +0 -2
- package/dist/chunks/cli-0.6.5-jygg6ynx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k15yzap9.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k74repdw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k8vb0qqx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k8vgyecf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kac7d6qe.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kd1sw5qm.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ke48d24y.mjs +0 -2
- package/dist/chunks/cli-0.6.5-khsn0wkk.mjs +0 -21
- package/dist/chunks/cli-0.6.5-kjntnfas.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kqhpzqdw.mjs +0 -67
- package/dist/chunks/cli-0.6.5-kr0q8v74.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kxwg80ye.mjs +0 -42
- package/dist/chunks/cli-0.6.5-kyp268ew.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kzr5p1mv.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kztnt6aq.mjs +0 -2
- package/dist/chunks/cli-0.6.5-m2619f84.mjs +0 -2
- package/dist/chunks/cli-0.6.5-mgv2cvps.mjs +0 -45
- package/dist/chunks/cli-0.6.5-mpdvzrnw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-mtx91sgr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-n4hnag3x.mjs +0 -2
- package/dist/chunks/cli-0.6.5-n64fe6ey.mjs +0 -2
- package/dist/chunks/cli-0.6.5-nd6kqcck.mjs +0 -2
- package/dist/chunks/cli-0.6.5-nngqh0bh.mjs +0 -2
- package/dist/chunks/cli-0.6.5-p6n42hmh.mjs +0 -4
- package/dist/chunks/cli-0.6.5-pa3ap7rs.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pbahk0n4.mjs +0 -12
- package/dist/chunks/cli-0.6.5-pbyhms5s.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pgs0eeqg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pky7r4pf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pv1b8wyy.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pw1077hd.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pz5add8h.mjs +0 -4
- package/dist/chunks/cli-0.6.5-q027r0rf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-q1qpax7b.mjs +0 -2
- package/dist/chunks/cli-0.6.5-q2z0n0me.mjs +0 -2
- package/dist/chunks/cli-0.6.5-q4gh8d4w.mjs +0 -6
- package/dist/chunks/cli-0.6.5-q67zwknt.mjs +0 -4
- package/dist/chunks/cli-0.6.5-qhq9tmd4.mjs +0 -24
- package/dist/chunks/cli-0.6.5-qx67z0cv.mjs +0 -2
- package/dist/chunks/cli-0.6.5-r06ahe39.mjs +0 -3
- package/dist/chunks/cli-0.6.5-r2khv6re.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ras9cma3.mjs +0 -2
- package/dist/chunks/cli-0.6.5-rkjw25m5.mjs +0 -2
- package/dist/chunks/cli-0.6.5-rrteyxna.mjs +0 -5
- package/dist/chunks/cli-0.6.5-rsve86mh.mjs +0 -12
- package/dist/chunks/cli-0.6.5-rvnz8f4b.mjs +0 -3
- package/dist/chunks/cli-0.6.5-ry2zfh45.mjs +0 -2
- package/dist/chunks/cli-0.6.5-s1ahtmc1.mjs +0 -2
- package/dist/chunks/cli-0.6.5-s42kf4d5.mjs +0 -2
- package/dist/chunks/cli-0.6.5-s580r0vs.mjs +0 -2
- package/dist/chunks/cli-0.6.5-sph3w6xt.mjs +0 -2
- package/dist/chunks/cli-0.6.5-svr5tx29.mjs +0 -2
- package/dist/chunks/cli-0.6.5-sz8mbg6v.mjs +0 -2
- package/dist/chunks/cli-0.6.5-t0x65qv4.mjs +0 -26
- package/dist/chunks/cli-0.6.5-t4tz7xht.mjs +0 -18
- package/dist/chunks/cli-0.6.5-th48yhz2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-thfwpyjp.mjs +0 -2
- package/dist/chunks/cli-0.6.5-tj3hcx9x.mjs +0 -2
- package/dist/chunks/cli-0.6.5-tqwbfn5c.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ts0kvt5k.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vbw9z7ya.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vj647gqr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vjydf7v2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vn8pa80z.mjs +0 -3
- package/dist/chunks/cli-0.6.5-vpebat6v.mjs +0 -4
- package/dist/chunks/cli-0.6.5-vqb4jtcr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vsmwyh7p.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vywqm5j0.mjs +0 -2
- package/dist/chunks/cli-0.6.5-w2qf3sbz.mjs +0 -2
- package/dist/chunks/cli-0.6.5-wa6b2ksg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-wgdp3ytt.mjs +0 -15
- package/dist/chunks/cli-0.6.5-xbz59an6.mjs +0 -2
- package/dist/chunks/cli-0.6.5-xngsek99.mjs +0 -3
- package/dist/chunks/cli-0.6.5-xwvfjaga.mjs +0 -2
- package/dist/chunks/cli-0.6.5-xxnhfq1f.mjs +0 -3
- package/dist/chunks/cli-0.6.5-xxtrec34.mjs +0 -2
- package/dist/chunks/cli-0.6.5-y4kbaj8m.mjs +0 -3
- package/dist/chunks/cli-0.6.5-ybxktrwn.mjs +0 -4
- package/dist/chunks/cli-0.6.5-ynxewk0a.mjs +0 -18
- package/dist/chunks/cli-0.6.5-yv4805v6.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ywh9eaz9.mjs +0 -3
- package/dist/chunks/cli-0.6.5-yy3mtt7p.mjs +0 -4
- package/dist/chunks/cli-0.6.5-z5qqy4bb.mjs +0 -10
- package/dist/chunks/cli-0.6.5-z64827fd.mjs +0 -2
- package/dist/chunks/cli-0.6.5-zxppzj42.mjs +0 -3
- package/dist/chunks/client-0.6.5-kcsx56gb.mjs +0 -1
- package/dist/chunks/color-0.6.5-m4adc5zy.mjs +0 -1
- package/dist/chunks/compact-0.6.5-pp3jftxy.mjs +0 -3
- package/dist/chunks/config-0.6.5-4t1bbgpf.mjs +0 -1
- package/dist/chunks/config-0.6.5-8j3ajra5.mjs +0 -1
- package/dist/chunks/constants-0.6.5-z1rfnbw0.mjs +0 -1
- package/dist/chunks/context-0.6.5-k4dkxskt.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.5-t2s33qfv.mjs +0 -1
- package/dist/chunks/conversation-0.6.5-wtjv42fh.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.5-t5d64yyd.mjs +0 -1
- package/dist/chunks/copy-0.6.5-r2cah677.mjs +0 -9
- package/dist/chunks/cost-0.6.5-8bs4d6y0.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.5-7p69k83d.mjs +0 -1
- package/dist/chunks/createSession-0.6.5-fwtmdngf.mjs +0 -1
- package/dist/chunks/debug-0.6.5-xmxftwgk.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.5-z6w9jmje.mjs +0 -1367
- package/dist/chunks/desktop-0.6.5-fargeve3.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.5-ymk4cd49.mjs +0 -1
- package/dist/chunks/detection-0.6.5-9v4p8jdz.mjs +0 -1
- package/dist/chunks/diff-0.6.5-8ja76cbj.mjs +0 -1
- package/dist/chunks/doctor-0.6.5-j9ztya6c.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.5-4rk9v7gn.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.5-jnt6pqdj.mjs +0 -1
- package/dist/chunks/effort-0.6.5-wn6gayah.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.5-eptez4tg.mjs +0 -1
- package/dist/chunks/envUtils-0.6.5-62qkktte.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.5-zdqp06ex.mjs +0 -1
- package/dist/chunks/environments-0.6.5-4cxm9f2v.mjs +0 -1
- package/dist/chunks/errors-0.6.5-zrzdygzb.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.5-c4p6gs14.mjs +0 -1
- package/dist/chunks/exit-0.6.5-491d2dm3.mjs +0 -1
- package/dist/chunks/export-0.6.5-ydgbaqvw.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.5-qc1chr9f.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.5-g2ratb24.mjs +0 -1
- package/dist/chunks/fast-0.6.5-19egbvsn.mjs +0 -1
- package/dist/chunks/feedback-0.6.5-r15hzy5x.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.5-h0wam92d.mjs +0 -1
- package/dist/chunks/git-0.6.5-kd4a5hgs.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.5-ahxqf63c.mjs +0 -1
- package/dist/chunks/goal-0.6.5-kyahd6wn.mjs +0 -4
- package/dist/chunks/grove-0.6.5-qjgh7ss3.mjs +0 -1
- package/dist/chunks/growthbook-0.6.5-ax1nfvk4.mjs +0 -1
- package/dist/chunks/headless-0.6.5-4pg9fsvq.mjs +0 -2
- package/dist/chunks/heapdump-0.6.5-9k0vppqs.mjs +0 -6
- package/dist/chunks/help-0.6.5-tfhm2beq.mjs +0 -1
- package/dist/chunks/hookChains-0.6.5-6szjehhz.mjs +0 -3
- package/dist/chunks/hooks-0.6.5-dgpkkjn0.mjs +0 -79
- package/dist/chunks/hooks-0.6.5-w5dctm3q.mjs +0 -1
- package/dist/chunks/ide-0.6.5-13et7be7.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.5-hnw96fqh.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.5-qc951hng.mjs +0 -1
- package/dist/chunks/index-0.6.5-01x1ejhn.mjs +0 -1
- package/dist/chunks/index-0.6.5-0abf9jmk.mjs +0 -1
- package/dist/chunks/index-0.6.5-1mp331dd.mjs +0 -1
- package/dist/chunks/index-0.6.5-1sg6s6z6.mjs +0 -1
- package/dist/chunks/index-0.6.5-4q6jjbs7.mjs +0 -1
- package/dist/chunks/index-0.6.5-6sk15ws5.mjs +0 -2
- package/dist/chunks/index-0.6.5-6t864t2c.mjs +0 -1
- package/dist/chunks/index-0.6.5-6xqpvv54.mjs +0 -30
- package/dist/chunks/index-0.6.5-7zhnqzn2.mjs +0 -1
- package/dist/chunks/index-0.6.5-89hxhv95.mjs +0 -1
- package/dist/chunks/index-0.6.5-aty810n8.mjs +0 -1
- package/dist/chunks/index-0.6.5-c2hwywv3.mjs +0 -1
- package/dist/chunks/index-0.6.5-e2wq7gh6.mjs +0 -2
- package/dist/chunks/index-0.6.5-g0kwgaqr.mjs +0 -17
- package/dist/chunks/index-0.6.5-gtcspa71.mjs +0 -1
- package/dist/chunks/index-0.6.5-h3efeppv.mjs +0 -1
- package/dist/chunks/index-0.6.5-m5ejvtqa.mjs +0 -1
- package/dist/chunks/index-0.6.5-mh7r1b3g.mjs +0 -1
- package/dist/chunks/index-0.6.5-pvve2ng4.mjs +0 -5
- package/dist/chunks/index-0.6.5-snpzxxv3.mjs +0 -9
- package/dist/chunks/index-0.6.5-tfw7v414.mjs +0 -9
- package/dist/chunks/index-0.6.5-wjkwk8e7.mjs +0 -1
- package/dist/chunks/index-0.6.5-z62wqvcx.mjs +0 -1
- package/dist/chunks/init-0.6.5-zhc6fyd5.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.5-7r1y5662.mjs +0 -1
- package/dist/chunks/ink-0.6.5-tndp68zg.mjs +0 -1
- package/dist/chunks/insights-0.6.5-vqzkktqr.mjs +0 -870
- package/dist/chunks/install-0.6.5-5gr23h3m.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.5-tng076rr.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.5-gsz9yrym.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.5-nqsng4g6.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.5-k1pvqxme.mjs +0 -1
- package/dist/chunks/keybindings-0.6.5-xerpw7ac.mjs +0 -2
- package/dist/chunks/knowledge-0.6.5-3cqswtp3.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.5-mvrgq9dd.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.5-h16ggtfs.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.5-35e6kcw6.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.5-qm874zd2.mjs +0 -1
- package/dist/chunks/log-0.6.5-xge4vs13.mjs +0 -1
- package/dist/chunks/main-0.6.5-4pf8xcyc.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.5-qbgyznrt.mjs +0 -1
- package/dist/chunks/mcp-0.6.5-293k7n7h.mjs +0 -4
- package/dist/chunks/mcp-0.6.5-45d2qxwd.mjs +0 -17
- package/dist/chunks/mcp-0.6.5-b5jvd286.mjs +0 -1
- package/dist/chunks/mcpb-0.6.5-e68tqw35.mjs +0 -1
- package/dist/chunks/memory-0.6.5-9htftc81.mjs +0 -3
- package/dist/chunks/model-0.6.5-rpyjsh6m.mjs +0 -1
- package/dist/chunks/model-0.6.5-zsk9vwg7.mjs +0 -2
- package/dist/chunks/node-0.6.5-j42ec4dm.mjs +0 -12
- package/dist/chunks/oauth-0.6.5-d8r75abq.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.5-deev7qr4.mjs +0 -14
- package/dist/chunks/output-style-0.6.5-t4my27zb.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.5-a34phgmb.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.5-3rw1krw2.mjs +0 -1
- package/dist/chunks/parser-0.6.5-hnbj9e8f.mjs +0 -1
- package/dist/chunks/passes-0.6.5-9x43pms7.mjs +0 -1
- package/dist/chunks/permissions-0.6.5-aymv501j.mjs +0 -1
- package/dist/chunks/permissions-0.6.5-y4jnw514.mjs +0 -3
- package/dist/chunks/plan-0.6.5-kct7xqkt.mjs +0 -1
- package/dist/chunks/plist-0.6.5-gp660say.mjs +0 -1
- package/dist/chunks/plugin-0.6.5-5vnph48t.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.5-y74n8rfx.mjs +0 -1
- package/dist/chunks/plugins-0.6.5-y0xna858.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.5-gd8pge33.mjs +0 -2
- package/dist/chunks/print-0.6.5-zr884wv0.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.5-gm8tkeqk.mjs +0 -1
- package/dist/chunks/process-0.6.5-ha5587zb.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.5-qpanbrjt.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.5-0zzej132.mjs +0 -9
- package/dist/chunks/prompt-0.6.5-n2e16857.mjs +0 -1
- package/dist/chunks/prompt-0.6.5-yd9wwvye.mjs +0 -1
- package/dist/chunks/prompts-0.6.5-4h181zjj.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.5-btkqsev6.mjs +0 -13
- package/dist/chunks/provider-0.6.5-pk6rtf1a.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.5-spn4hk2w.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.5-j9fqm33r.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.5-n0s4jxw7.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.5-s6pemg0a.mjs +0 -34
- package/dist/chunks/registry-0.6.5-q9cda2p7.mjs +0 -1
- package/dist/chunks/release-notes-0.6.5-5s8sv8ea.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.5-bqh5fz13.mjs +0 -2
- package/dist/chunks/remote-env-0.6.5-29f08tqs.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.5-gk9afz22.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.5-w7r3dh6h.mjs +0 -1
- package/dist/chunks/rename-0.6.5-es4wyt7z.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.5-66va2rkv.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.5-xzbbew8q.mjs +0 -1
- package/dist/chunks/resume-0.6.5-q2e001ra.mjs +0 -2
- package/dist/chunks/rewind-0.6.5-hhxvb1pk.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.5-smyb5d6s.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.5-6zvjjrgg.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.5-ch59ryyz.mjs +0 -1
- package/dist/chunks/session-0.6.5-22r80wyd.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.5-aae5t467.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.5-a6xg367a.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.5-dqg82tdb.mjs +0 -1
- package/dist/chunks/settings-0.6.5-egjxpxrx.mjs +0 -1
- package/dist/chunks/setup-0.6.5-ks0cjhc0.mjs +0 -5
- package/dist/chunks/sinks-0.6.5-vnqdp1xs.mjs +0 -1
- package/dist/chunks/skills-0.6.5-fhq4v7kx.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.5-qg0j96r8.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.5-kgegmr3s.mjs +0 -1
- package/dist/chunks/state-0.6.5-s7hqk377.mjs +0 -1
- package/dist/chunks/stats-0.6.5-1c35kfn8.mjs +0 -6
- package/dist/chunks/status-0.6.5-wxfn3y7k.mjs +0 -1
- package/dist/chunks/stickers-0.6.5-vr2yr1fh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.5-p4nz5egm.mjs +0 -1
- package/dist/chunks/tasks-0.6.5-jq5x8fny.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.5-s5tew7t1.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.5-0yh7b47q.mjs +0 -1
- package/dist/chunks/teleport-0.6.5-hmv7mh01.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.5-k9d4e82r.mjs +0 -1
- package/dist/chunks/theme-0.6.5-24hr0s0e.mjs +0 -1
- package/dist/chunks/thinkback-0.6.5-6997cmgj.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.5-5bm6dv3e.mjs +0 -1
- package/dist/chunks/toolPool-0.6.5-599y15ba.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.5-acm72rsk.mjs +0 -1
- package/dist/chunks/tools-0.6.5-kydccz7r.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.5-44vjv9at.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.5-s2n7faa4.mjs +0 -69
- package/dist/chunks/types-0.6.5-h60ghfcx.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.5-vhpd8cxc.mjs +0 -4
- package/dist/chunks/update-0.6.5-j61jnpbt.mjs +0 -86
- package/dist/chunks/upgrade-0.6.5-yg323wxz.mjs +0 -1
- package/dist/chunks/upload-0.6.5-5tsm3bt7.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.5-0ayrwt4t.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.5-6sb73p95.mjs +0 -1
- package/dist/chunks/usage-0.6.5-0tjr5c54.mjs +0 -1
- package/dist/chunks/util-0.6.5-xcfvn255.mjs +0 -1
- package/dist/chunks/utils-0.6.5-gjqewwe3.mjs +0 -1
- package/dist/chunks/vim-0.6.5-hmp35ayy.mjs +0 -1
- package/dist/chunks/watcher-0.6.5-jra6eh4m.mjs +0 -1
- package/dist/chunks/wiki-0.6.5-0k1cftcn.mjs +0 -132
- package/dist/chunks/worktree-0.6.5-a5vvycs0.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.5-rva8222w.mjs +0 -1
- package/dist/chunks/wrapper-0.6.5-0bxnwc77.mjs +0 -7
- /package/dist/chunks/{cli-0.6.5-pynms6t8.mjs → cli-0.6.7-790sqdfy.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.5-dy5v4gms.mjs → cli-0.6.7-nzdwcqxv.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.5-pev4540w.mjs → cli-0.6.7-pgcg3w1c.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ai as l,bi as $X}from"./cli-0.6.7-26tkvqk3.mjs";import{g1 as m,h1 as YX}from"./cli-0.6.7-pacmjx4t.mjs";import{$oa as B,bpa as F,rpa as u}from"./cli-0.6.7-0a04vzzk.mjs";import"./cli-0.6.7-wjg0q7hk.mjs";import{Lpa as r,Mpa as XX}from"./cli-0.6.7-z26mhn5a.mjs";import{EventEmitter as $Y}from"events";function d(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return l()?.version||"3.x.x"}catch{return"3.x.x"}}function R(Y){if(!Y||typeof Y!=="object")return!1;let X=Y,$="_def"in X&&(typeof X.safeParse==="function"||typeof X.parse==="function"),G="_zod"in X&&typeof X._zod==="object";return $||G}function _X(Y){if(!Y||typeof Y!=="object")return!1;return"_zod"in Y&&typeof Y._zod==="object"}function NX(Y){if(!_X(Y))return null;try{let X=Y.constructor?.prototype?.constructor;if(X&&typeof X.toJSONSchema==="function")return X.toJSONSchema(Y)}catch{}return null}function U(Y){if(!R(Y))return Y;let X=NX(Y);if(X)return X;try{return m(Y)}catch{return Y}}function S(Y){if(!Y||typeof Y!=="object"||Array.isArray(Y))return!1;let X=Object.values(Y);if(X.length===0)return!1;return X.some(($)=>$&&typeof $==="object"&&$._def&&typeof $.safeParse==="function")}function HX(Y){if(!Y)return;for(let X of Y){if(typeof X==="string"){if(X==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");continue}if(X.type==="json"){let $=X;if(!$.prompt&&!$.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let G=$.schema;if(R(G))$.schema=U(G);else if(S(G))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(X.type==="changeTracking"){let $=X,G=$.schema;if(R(G))$.schema=U(G);else if(S(G))throw Error("changeTracking format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(X.type==="question"){let $=X;if(typeof $.question!=="string"||$.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(X.type==="highlights"){let $=X;if(typeof $.query!=="string"||$.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(X.type==="query"){let $=X;if(typeof $.prompt!=="string"||$.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if($.mode!=null&&$.mode!=="freeform"&&$.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'");continue}if(X.type==="screenshot"){let $=X;if($.quality!=null&&(typeof $.quality!=="number"||$.quality<0))throw Error("screenshot.quality must be a non-negative number")}}}function f(Y){if(!Y)return;if(Y.timeout!=null&&Y.timeout<=0)throw Error("timeout must be positive");if(Y.waitFor!=null&&Y.waitFor<0)throw Error("waitFor must be non-negative");HX(Y.formats)}function QX(Y){if(!Y)return;for(let X of Y){if(typeof X==="string"){if(X==="json")throw Error("json format must be an object with { type: 'json', prompt, schema }");if(X==="screenshot")throw Error("parse does not support screenshot format");if(X==="changeTracking")throw Error("parse does not support changeTracking format");if(X==="branding")throw Error("parse does not support branding format");if(X==="audio"||X==="video")throw Error(`parse does not support ${X} format`);continue}let $=X.type;if($==="changeTracking")throw Error("parse does not support changeTracking format");if($==="screenshot")throw Error("parse does not support screenshot format");if($==="branding")throw Error("parse does not support branding format");if($==="audio"||$==="video")throw Error(`parse does not support ${$} format`);if(X.type==="json"){let G=X;if(!G.prompt&&!G.schema)throw Error("json format requires either 'prompt' or 'schema' (or both)");let _=G.schema;if(R(_))G.schema=U(_);else if(S(_))throw Error("json format schema appears to be a Zod schema's .shape property. Pass the Zod schema directly (e.g., `schema: MySchema`) instead of `schema: MySchema.shape`. The SDK will automatically convert Zod schemas to JSON Schema format.");continue}if(X.type==="question"){let G=X;if(typeof G.question!=="string"||G.question.trim().length===0)throw Error("question format requires a non-empty 'question' string");continue}if(X.type==="highlights"){let G=X;if(typeof G.query!=="string"||G.query.trim().length===0)throw Error("highlights format requires a non-empty 'query' string");continue}if(X.type==="query"){let G=X;if(typeof G.prompt!=="string"||G.prompt.trim().length===0)throw Error("query format requires a non-empty 'prompt' string");if(G.mode!=null&&G.mode!=="freeform"&&G.mode!=="directQuote")throw Error("query format mode must be 'freeform' or 'directQuote'")}}}function ZX(Y){if(!Y)return;if(Y.timeout!=null&&Y.timeout<=0)throw Error("timeout must be positive");let X=Y;if(X.waitFor!==void 0)throw Error("parse does not support waitFor");if(X.actions!==void 0)throw Error("parse does not support actions");if(X.location!==void 0)throw Error("parse does not support location overrides");if(X.mobile!==void 0)throw Error("parse does not support mobile rendering");if(X.maxAge!==void 0||X.minAge!==void 0||X.storeInCache!==void 0||X.lockdown!==void 0)throw Error("parse does not support cache/index options");if(X.proxy!==void 0&&X.proxy!=="basic"&&X.proxy!=="auto")throw Error("parse only supports proxy values of 'basic' or 'auto'");QX(Y.formats)}function J(Y,X){let $=Y.status,G=Y.data||{},_=G?.error||G?.message||`Request failed (${$}) while trying to ${X}`;throw new K(_,$,void 0,G?.details)}function W(Y,X){let $=Y.response?.status,G=Y.response?.data,_=G?.error||Y.message||`Request failed${$?` (${$})`:""} while trying to ${X}`,N=G?.code||Y.code;throw new K(_,$,N,G?.details??G)}function i(Y){if(Y instanceof w)return!1;if(Y instanceof K||Y&&typeof Y==="object"&&"status"in Y){let X=Y.status;if(X&&X>=400&&X<500)return!1;if(X&&X>=500)return!0}if(Y?.isAxiosError&&!Y.response)return!0;if(Y?.code==="ECONNABORTED"||Y?.message?.includes("timeout"))return!0;return!0}async function VX(Y,X,$){if(!X||!X.trim())throw Error("URL cannot be empty");if($)f($);let G={url:X.trim()};if($)Object.assign(G,$);try{let _=await Y.post("/v2/scrape",G,typeof $?.timeout==="number"?{timeoutMs:$.timeout+5000}:{});if(_.status!==200||!_.data?.success)J(_,"scrape");return _.data.data||{}}catch(_){if(_?.isAxiosError)return W(_,"scrape");throw _}}async function OX(Y,X,$){if(!X||!X.trim())throw Error("Job ID cannot be empty");let G=$?.code&&$.code.trim(),_=$?.prompt&&$.prompt.trim();if(!G&&!_)throw Error("Either 'code' or 'prompt' must be provided");let N={};if(G)N.code=$.code;if(_)N.prompt=$.prompt;if(N.language=$.language??"node",$.timeout!=null)N.timeout=$.timeout;if($.origin)N.origin=$.origin;try{let Q=await Y.post(`/v2/scrape/${X}/interact`,N,$.timeout!=null?{timeoutMs:$.timeout*1000+5000}:{});if(Q.status!==200)J(Q,"interact with scrape browser");return Q.data}catch(Q){if(Q?.isAxiosError)return W(Q,"interact with scrape browser");throw Q}}async function WX(Y,X){if(!X||!X.trim())throw Error("Job ID cannot be empty");try{let $=await Y.delete(`/v2/scrape/${X}/interact`);if($.status!==200)J($,"stop interaction");return $.data}catch($){if($?.isAxiosError)return W($,"stop interaction");throw $}}function h(Y,X){if(typeof Blob<"u"&&Y instanceof Blob){if(X&&Y.type!==X)return new Blob([Y],{type:X});return Y}if(typeof Buffer<"u"&&Buffer.isBuffer(Y))return new Blob([Y],{type:X});if(Y instanceof ArrayBuffer)return new Blob([Y],{type:X});if(ArrayBuffer.isView(Y))return new Blob([Y],{type:X});if(typeof Y==="string")return new Blob([Y],{type:X??"text/plain; charset=utf-8"});throw Error("Unsupported parse file data type")}async function JX(Y,X,$){if(!X||!X.filename||!X.filename.trim())throw Error("filename cannot be empty");if(X.data==null)throw Error("file data cannot be empty");if(h(X.data,X.contentType).size===0)throw Error("file data cannot be empty");if($)ZX($);let _=d(),N={...$??{},origin:typeof $?.origin==="string"&&$.origin.includes("mcp")?$.origin:$?.origin??`js-sdk@${_}`},Q=new FormData;Q.append("options",JSON.stringify(N)),Q.append("file",h(X.data,X.contentType),X.filename.trim());try{let H=await Y.postMultipart("/v2/parse",Q,typeof N.timeout==="number"?{timeoutMs:N.timeout+5000}:{});if(H.status!==200||!H.data?.success)J(H,"parse");return H.data.data||{}}catch(H){if(H?.isAxiosError)return W(H,"parse");throw H}}function MX(Y){if(!Y.query||!Y.query.trim())throw Error("Query cannot be empty");if(Y.limit!=null&&Y.limit<=0)throw Error("limit must be positive");if(Y.timeout!=null&&Y.timeout<=0)throw Error("timeout must be positive");if(Y.includeDomains?.length&&Y.excludeDomains?.length)throw Error("includeDomains and excludeDomains cannot both be specified");let X={query:Y.query};if(Y.sources)X.sources=Y.sources;if(Y.categories)X.categories=Y.categories;if(Y.includeDomains)X.includeDomains=Y.includeDomains;if(Y.excludeDomains)X.excludeDomains=Y.excludeDomains;if(Y.limit!=null)X.limit=Y.limit;if(Y.tbs!=null)X.tbs=Y.tbs;if(Y.location!=null)X.location=Y.location;if(Y.ignoreInvalidURLs!=null)X.ignoreInvalidURLs=Y.ignoreInvalidURLs;if(Y.timeout!=null)X.timeout=Y.timeout;if(Y.integration&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.scrapeOptions)f(Y.scrapeOptions),X.scrapeOptions=Y.scrapeOptions;return X}function v(Y){let X=[];for(let $ of Y)if($&&typeof $==="object")if("markdown"in $||"html"in $||"rawHtml"in $||"links"in $||"screenshot"in $||"changeTracking"in $||"summary"in $||"json"in $)X.push($);else X.push($);else X.push({url:$});return X}async function LX(Y,X){let $=MX(X);try{let G=await Y.post("/v2/search",$,typeof X.timeout==="number"?{timeoutMs:X.timeout+5000}:{});if(G.status!==200||!G.data?.success)J(G,"search");let _=G.data.data||{},N={};if(_.web)N.web=v(_.web);if(_.news)N.news=v(_.news);if(_.images)N.images=v(_.images);return Object.defineProperty(N,"data",{get(){let Q=[];if(N.web?.length)Q.push(`.web (${N.web.length} results)`);if(N.news?.length)Q.push(`.news (${N.news.length} results)`);if(N.images?.length)Q.push(`.images (${N.images.length} results)`);let H=Q.length?Q.join(", "):".web, .news, or .images";throw Error(`SearchData has no '.data'. Results are grouped by source: ${H}`)},enumerable:!1,configurable:!0}),N}catch(G){if(G?.isAxiosError)return W(G,"search");throw G}}function PX(Y,X){if(!Y||!Y.trim())throw Error("URL cannot be empty");let $={url:Y.trim()};if(X){if(X.sitemap!=null)$.sitemap=X.sitemap;if(X.search!=null)$.search=X.search;if(X.includeSubdomains!=null)$.includeSubdomains=X.includeSubdomains;if(X.ignoreQueryParameters!=null)$.ignoreQueryParameters=X.ignoreQueryParameters;if(X.limit!=null)$.limit=X.limit;if(X.timeout!=null)$.timeout=X.timeout;if(X.integration!=null&&X.integration.trim())$.integration=X.integration.trim();if(X.origin)$.origin=X.origin;if(X.location!=null)$.location=X.location}return $}async function UX(Y,X,$){let G=PX(X,$);try{let _=await Y.post("/v2/map",G,typeof $?.timeout==="number"?{timeoutMs:$.timeout+5000}:{});if(_.status!==200||!_.data?.success)J(_,"map");let N=_.data.links||[],Q=[];for(let H of N)if(typeof H==="string")Q.push({url:H});else if(H&&typeof H==="object")Q.push({url:H.url,title:H.title,description:H.description});return{id:_.data.id,links:Q}}catch(_){if(_?.isAxiosError)return W(_,"map");throw _}}function n(Y){if(!["good","partial","bad"].includes(Y))throw Error("rating must be one of: good, partial, bad")}async function KX(Y,X){if(!X.endpoint)throw Error("endpoint is required");if(!X.jobId)throw Error("jobId is required");n(X.rating);try{let $=await Y.post("/v2/feedback",X);if($.status!==200||!$.data?.success)J($,"feedback");return $.data}catch($){if($?.isAxiosError)return W($,"feedback");throw $}}async function CX(Y,X,$){if(!X)throw Error("jobId is required");n($.rating);try{let G=await Y.post(`/v2/search/${encodeURIComponent(X)}/feedback`,$);if(G.status!==200||!G.data?.success)J(G,"searchFeedback");return G.data}catch(G){if(G?.isAxiosError)return W(G,"searchFeedback");throw G}}async function q(Y,X,$,G){let _=$.slice(),N=X,Q=0,H=G?.maxPages??void 0,V=G?.maxResults??void 0,O=G?.maxWaitTime??void 0,L=Date.now();while(N){if(H!=null&&Q>=H)break;if(O!=null&&(Date.now()-L)/1000>O)break;let M=null;try{M=(await Y.get(N)).data}catch{break}if(!M?.success)break;let T=Array.isArray(M.data)?M.data:M.data?.pages||[];for(let C of T){if(V!=null&&_.length>=V)break;_.push(C)}if(V!=null&&_.length>=V)break;N=M.next??(Array.isArray(M.data)?null:M.data?.next)??null,Q+=1}return _}function TX(Y){if(!Y.url||!Y.url.trim())throw Error("URL cannot be empty");let X={url:Y.url.trim()};if(Y.prompt)X.prompt=Y.prompt;if(Y.excludePaths)X.excludePaths=Y.excludePaths;if(Y.includePaths)X.includePaths=Y.includePaths;if(Y.maxDiscoveryDepth!=null)X.maxDiscoveryDepth=Y.maxDiscoveryDepth;if(Y.sitemap!=null)X.sitemap=Y.sitemap;if(Y.robotsUserAgent!=null)X.robotsUserAgent=Y.robotsUserAgent;if(Y.ignoreQueryParameters!=null)X.ignoreQueryParameters=Y.ignoreQueryParameters;if(Y.deduplicateSimilarURLs!=null)X.deduplicateSimilarURLs=Y.deduplicateSimilarURLs;if(Y.limit!=null)X.limit=Y.limit;if(Y.crawlEntireDomain!=null)X.crawlEntireDomain=Y.crawlEntireDomain;if(Y.allowExternalLinks!=null)X.allowExternalLinks=Y.allowExternalLinks;if(Y.allowSubdomains!=null)X.allowSubdomains=Y.allowSubdomains;if(Y.delay!=null)X.delay=Y.delay;if(Y.maxConcurrency!=null)X.maxConcurrency=Y.maxConcurrency;if(Y.regexOnFullURL!=null)X.regexOnFullURL=Y.regexOnFullURL;if(Y.webhook!=null)X.webhook=Y.webhook;if(Y.integration!=null&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.scrapeOptions)f(Y.scrapeOptions),X.scrapeOptions=Y.scrapeOptions;if(Y.zeroDataRetention!=null)X.zeroDataRetention=Y.zeroDataRetention;return X}async function p(Y,X){let $=TX(X);try{let G=await Y.post("/v2/crawl",$);if(G.status!==200||!G.data?.success)J(G,"start crawl");return{id:G.data.id,url:G.data.url}}catch(G){if(G?.isAxiosError)return W(G,"start crawl");throw G}}async function b(Y,X,$){try{let G=await Y.get(`/v2/crawl/${X}`);if(G.status!==200||!G.data?.success)J(G,"get crawl status");let _=G.data,N=_.data||[];if(!($?.autoPaginate??!0)||!_.next)return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:_.next??null,data:N};let H=await q(Y,_.next,N,$);return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:null,data:H}}catch(G){if(G?.isAxiosError)return W(G,"get crawl status");throw G}}async function BX(Y,X){try{let $=await Y.delete(`/v2/crawl/${X}`);if($.status!==200)J($,"cancel crawl");return $.data?.status==="cancelled"}catch($){if($?.isAxiosError)return W($,"cancel crawl");throw $}}async function zX(Y,X,$=2,G){let _=Date.now();while(!0){try{let N=await b(Y,X);if(["completed","failed","cancelled"].includes(N.status))return N}catch(N){if(!i(N)){if(N instanceof K)throw new K(N.message,N.status,N.code,N.details,X);throw N}}if(G!=null&&Date.now()-_>G*1000)throw new w(X,G,"crawl");await new Promise((N)=>setTimeout(N,Math.max(1000,$*1000)))}}async function kX(Y,X,$=2,G){let _=await p(Y,X);return zX(Y,_.id,$,G)}async function RX(Y,X){try{let $=await Y.get(`/v2/crawl/${X}/errors`);if($.status!==200)J($,"get crawl errors");let G=$.data?.data??$.data;return{errors:G.errors||[],robotsBlocked:G.robotsBlocked||[]}}catch($){if($?.isAxiosError)return W($,"get crawl errors");throw $}}async function fX(Y){try{let X=await Y.get("/v2/crawl/active");if(X.status!==200||!X.data?.success)J(X,"get active crawls");return{success:!0,crawls:(X.data?.crawls||[]).map((_)=>({id:_.id,teamId:_.teamId??_.team_id,url:_.url,options:_.options??null}))}}catch(X){if(X?.isAxiosError)return W(X,"get active crawls");throw X}}async function AX(Y,X,$){if(!X||!X.trim())throw Error("URL cannot be empty");if(!$||!$.trim())throw Error("Prompt cannot be empty");try{let G=await Y.post("/v2/crawl/params-preview",{url:X.trim(),prompt:$});if(G.status!==200||!G.data?.success)J(G,"crawl params preview");let _=G.data.data||{};if(G.data.warning)_.warning=G.data.warning;return _}catch(G){if(G?.isAxiosError)return W(G,"crawl params preview");throw G}}async function t(Y,X,{options:$,webhook:G,appendToId:_,ignoreInvalidURLs:N,maxConcurrency:Q,zeroDataRetention:H,idempotencyKey:V,integration:O,origin:L}={}){if(!Array.isArray(X)||X.length===0)throw Error("URLs list cannot be empty");let M={urls:X};if($)f($),Object.assign(M,$);if(G!=null)M.webhook=G;if(_!=null)M.appendToId=_;if(N!=null)M.ignoreInvalidURLs=N;if(Q!=null)M.maxConcurrency=Q;if(H!=null)M.zeroDataRetention=H;if(O!=null&&O.trim())M.integration=O.trim();if(L)M.origin=L;try{let T=Y.prepareHeaders(V),C=await Y.post("/v2/batch/scrape",M,{headers:T});if(C.status!==200||!C.data?.success)J(C,"start batch scrape");return{id:C.data.id,url:C.data.url,invalidURLs:C.data.invalidURLs||void 0}}catch(T){if(T?.isAxiosError)return W(T,"start batch scrape");throw T}}async function y(Y,X,$){try{let G=await Y.get(`/v2/batch/scrape/${X}`);if(G.status!==200||!G.data?.success)J(G,"get batch scrape status");let _=G.data,N=_.data||[];if(!($?.autoPaginate??!0)||!_.next)return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:_.next??null,data:N};let H=await q(Y,_.next,N,$);return{id:X,status:_.status,completed:_.completed??0,total:_.total??0,creditsUsed:_.creditsUsed,expiresAt:_.expiresAt,next:null,data:H}}catch(G){if(G?.isAxiosError)return W(G,"get batch scrape status");throw G}}async function xX(Y,X){try{let $=await Y.delete(`/v2/batch/scrape/${X}`);if($.status!==200)J($,"cancel batch scrape");return $.data?.status==="cancelled"}catch($){if($?.isAxiosError)return W($,"cancel batch scrape");throw $}}async function DX(Y,X){try{let $=await Y.get(`/v2/batch/scrape/${X}/errors`);if($.status!==200)J($,"get batch scrape errors");let G=$.data?.data??$.data;return{errors:G.errors||[],robotsBlocked:G.robotsBlocked||[]}}catch($){if($?.isAxiosError)return W($,"get batch scrape errors");throw $}}async function FX(Y,X,$=2,G){let _=Date.now();while(!0){try{let N=await y(Y,X);if(["completed","failed","cancelled"].includes(N.status))return N}catch(N){if(!i(N)){if(N instanceof K)throw new K(N.message,N.status,N.code,N.details,X);throw N}}if(G!=null&&Date.now()-_>G*1000)throw new w(X,G,"batch");await new Promise((N)=>setTimeout(N,Math.max(1000,$*1000)))}}async function vX(Y,X,$={}){let G=await t(Y,X,$);return FX(Y,G.id,$.pollInterval??2,$.timeout)}function EX(Y){let X={};if(Y.urls)X.urls=Y.urls;if(Y.prompt!=null)X.prompt=Y.prompt;if(Y.schema!=null)X.schema=R(Y.schema)?U(Y.schema):Y.schema;if(Y.systemPrompt!=null)X.systemPrompt=Y.systemPrompt;if(Y.allowExternalLinks!=null)X.allowExternalLinks=Y.allowExternalLinks;if(Y.enableWebSearch!=null)X.enableWebSearch=Y.enableWebSearch;if(Y.showSources!=null)X.showSources=Y.showSources;if(Y.ignoreInvalidURLs!=null)X.ignoreInvalidURLs=Y.ignoreInvalidURLs;if(Y.integration&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.agent)X.agent=Y.agent;if(Y.scrapeOptions)f(Y.scrapeOptions),X.scrapeOptions=Y.scrapeOptions;return X}async function a(Y,X){let $=EX(X);try{let G=await Y.post("/v2/extract",$);if(G.status!==200)J(G,"extract");return G.data}catch(G){if(G?.isAxiosError)return W(G,"extract");throw G}}async function o(Y,X){try{let $=await Y.get(`/v2/extract/${X}`);if($.status!==200)J($,"extract status");return $.data}catch($){if($?.isAxiosError)return W($,"extract status");throw $}}async function SX(Y,X,$=2,G){let _=Date.now();while(!0){let N=await o(Y,X);if(["completed","failed","cancelled"].includes(N.status||""))return N;if(G!=null&&Date.now()-_>G*1000)return N;await new Promise((Q)=>setTimeout(Q,Math.max(1000,$*1000)))}}async function jX(Y,X){let $=await a(Y,X),G=$.id;if(!G)return $;return SX(Y,G,X.pollInterval??2,X.timeout)}function IX(Y){let X={};if(Y.urls)X.urls=Y.urls;if(X.prompt=Y.prompt,Y.schema!=null)X.schema=R(Y.schema)?U(Y.schema):Y.schema;if(Y.integration&&Y.integration.trim())X.integration=Y.integration.trim();if(Y.origin)X.origin=Y.origin;if(Y.maxCredits!==null&&Y.maxCredits!==void 0)X.maxCredits=Y.maxCredits;if(Y.strictConstrainToURLs!==null&&Y.strictConstrainToURLs!==void 0)X.strictConstrainToURLs=Y.strictConstrainToURLs;if(Y.model!==null&&Y.model!==void 0)X.model=Y.model;if(Y.webhook!=null)X.webhook=Y.webhook;return X}async function s(Y,X){let $=IX(X);try{let G=await Y.post("/v2/agent",$);if(G.status!==200)J(G,"agent");return G.data}catch(G){if(G?.isAxiosError)return W(G,"agent");throw G}}async function e(Y,X){try{let $=await Y.get(`/v2/agent/${X}`);if($.status!==200)J($,"agent status");return $.data}catch($){if($?.isAxiosError)return W($,"agent status");throw $}}async function wX(Y,X,$=2,G){let _=Date.now();while(!0){let N=await e(Y,X);if(["completed","failed","cancelled"].includes(N.status||""))return N;if(G!=null&&Date.now()-_>G*1000)return N;await new Promise((Q)=>setTimeout(Q,Math.max(1000,$*1000)))}}async function qX(Y,X){let $=await s(Y,X),G=$.id;if(!G)return $;return wX(Y,G,X.pollInterval??2,X.timeout)}async function bX(Y,X){try{let $=await Y.delete(`/v2/agent/${X}`);if($.status!==200)J($,"cancel agent");return $.data?.success===!0}catch($){if($?.isAxiosError)return W($,"cancel agent");throw $}}async function yX(Y,X={}){let $={};if(X.ttl!=null)$.ttl=X.ttl;if(X.activityTtl!=null)$.activityTtl=X.activityTtl;if(X.streamWebView!=null)$.streamWebView=X.streamWebView;if(X.profile!=null)$.profile=X.profile;if(X.integration!=null)$.integration=X.integration;if(X.origin)$.origin=X.origin;try{let G=await Y.post("/v2/browser",$);if(G.status!==200)J(G,"create browser session");return G.data}catch(G){if(G?.isAxiosError)return W(G,"create browser session");throw G}}async function gX(Y,X,$){let G={code:$.code,language:$.language??"bash"};if($.timeout!=null)G.timeout=$.timeout;try{let _=await Y.post(`/v2/browser/${X}/execute`,G,$.timeout!=null?{timeoutMs:$.timeout*1000+5000}:{});if(_.status!==200)J(_,"execute browser code");return _.data}catch(_){if(_?.isAxiosError)return W(_,"execute browser code");throw _}}async function hX(Y,X){try{let $=await Y.delete(`/v2/browser/${X}`);if($.status!==200)J($,"delete browser session");return $.data}catch($){if($?.isAxiosError)return W($,"delete browser session");throw $}}async function cX(Y,X={}){let $="/v2/browser";if(X.status)$+=`?status=${X.status}`;try{let G=await Y.get($);if(G.status!==200)J(G,"list browser sessions");return G.data}catch(G){if(G?.isAxiosError)return W(G,"list browser sessions");throw G}}async function uX(Y){try{let X=await Y.get("/v2/concurrency-check");if(X.status!==200||!X.data?.success)J(X,"get concurrency");let $=X.data.data||X.data;return{concurrency:$.concurrency,maxConcurrency:$.maxConcurrency??$.max_concurrency}}catch(X){if(X?.isAxiosError)return W(X,"get concurrency");throw X}}async function mX(Y){try{let X=await Y.get("/v2/team/credit-usage");if(X.status!==200||!X.data?.success)J(X,"get credit usage");let $=X.data.data||X.data;return{remainingCredits:$.remainingCredits??$.remaining_credits??0,planCredits:$.planCredits??$.plan_credits,billingPeriodStart:$.billingPeriodStart??$.billing_period_start??null,billingPeriodEnd:$.billingPeriodEnd??$.billing_period_end??null}}catch(X){if(X?.isAxiosError)return W(X,"get credit usage");throw X}}async function lX(Y){try{let X=await Y.get("/v2/team/token-usage");if(X.status!==200||!X.data?.success)J(X,"get token usage");let $=X.data.data||X.data;return{remainingTokens:$.remainingTokens??$.remaining_tokens??0,planTokens:$.planTokens??$.plan_tokens,billingPeriodStart:$.billingPeriodStart??$.billing_period_start??null,billingPeriodEnd:$.billingPeriodEnd??$.billing_period_end??null}}catch(X){if(X?.isAxiosError)return W(X,"get token usage");throw X}}async function dX(Y){try{let X=await Y.get("/v2/team/queue-status");if(X.status!==200||!X.data?.success)J(X,"get queue status");return X.data}catch(X){if(X?.isAxiosError)return W(X,"get queue status");throw X}}async function iX(Y,X){try{let $=X?"?byApiKey=true":"",G=await Y.get(`/v2/team/credit-usage/historical${$}`);if(G.status!==200||!G.data?.success)J(G,"get credit usage historical");return G.data}catch($){if($?.isAxiosError)return W($,"get credit usage historical");throw $}}async function nX(Y,X){try{let $=X?"?byApiKey=true":"",G=await Y.get(`/v2/team/token-usage/historical${$}`);if(G.status!==200||!G.data?.success)J(G,"get token usage historical");return G.data}catch($){if($?.isAxiosError)return W($,"get token usage historical");throw $}}function P(Y,X,$){if($==null)return;if(Array.isArray($)){for(let G of $)if(G!=null&&String(G).length>0)Y.append(X,String(G))}else Y.append(X,String($))}function x(Y,X){let $=X.toString();return $?`${Y}?${$}`:Y}function D(Y,X){if(Y?.isAxiosError){let $=Y.response?.status,G=Y.response?.data;if(G&&(G.detail||G.title)){let _=G.detail||G.title;throw new K(_,$,G.type,G)}throw new K(Y.message||`Request failed while trying to ${X}`,$,Y.code,G)}throw Y}function g(Y){if(!Y)return"";let X=new URLSearchParams;for(let[G,_]of Object.entries(Y))if(_!==void 0&&_!==null)X.set(G,String(_));let $=X.toString();return $?`?${$}`:""}function z(Y,X){if(Y.status!==200||!Y.data?.success||Y.data.data==null)J(Y,X);return Y.data.data}async function tX(Y,X){try{let $=await Y.post("/v2/monitor",X);return z($,"create monitor")}catch($){if($?.isAxiosError)return W($,"create monitor");throw $}}async function aX(Y,X){try{let $=await Y.get(`/v2/monitor${g(X)}`);return z($,"list monitors")}catch($){if($?.isAxiosError)return W($,"list monitors");throw $}}async function oX(Y,X){try{let $=await Y.get(`/v2/monitor/${X}`);return z($,"get monitor")}catch($){if($?.isAxiosError)return W($,"get monitor");throw $}}async function sX(Y,X,$){try{let G=await Y.patch(`/v2/monitor/${X}`,$);return z(G,"update monitor")}catch(G){if(G?.isAxiosError)return W(G,"update monitor");throw G}}async function eX(Y,X){try{let $=await Y.delete(`/v2/monitor/${X}`);if($.status!==200||!$.data?.success)J($,"delete monitor");return!0}catch($){if($?.isAxiosError)return W($,"delete monitor");throw $}}async function rX(Y,X){try{let $=await Y.post(`/v2/monitor/${X}/run`,{});return z($,"run monitor")}catch($){if($?.isAxiosError)return W($,"run monitor");throw $}}async function XY(Y,X,$){try{let G=await Y.get(`/v2/monitor/${X}/checks${g($)}`);return z(G,"list monitor checks")}catch(G){if(G?.isAxiosError)return W(G,"list monitor checks");throw G}}async function YY(Y,X,$,G){try{let{autoPaginate:_,maxPages:N,maxResults:Q,maxWaitTime:H,...V}=G??{},O=await Y.get(`/v2/monitor/${X}/checks/${$}${g(V)}`),L=z(O,"get monitor check"),M=O.data?.next??L.next??null;if(!(G?.autoPaginate??!0)||!M)return{...L,next:M};return{...L,pages:await q(Y,M,L.pages||[],G),next:null}}catch(_){if(_?.isAxiosError)return W(_,"get monitor check");throw _}}var GX=class{instance;apiKey;apiUrl;maxRetries;backoffFactor;constructor(Y){this.apiKey=Y.apiKey,this.apiUrl=Y.apiUrl.replace(/\/$/,""),this.maxRetries=Y.maxRetries??3,this.backoffFactor=Y.backoffFactor??0.5,this.instance=B.create({baseURL:this.apiUrl,timeout:Y.timeoutMs??300000,headers:{...this.apiKey?{Authorization:`Bearer ${this.apiKey}`}:{}},transitional:{clarifyTimeoutError:!0}})}getApiUrl(){return this.apiUrl}getApiKey(){return this.apiKey}async request(Y){let X=d();Y.headers={...Y.headers||{}};let $;for(let G=0;G<this.maxRetries;G++)try{let _={...Y},N=typeof FormData<"u"&&_.data instanceof FormData;if(!N&&_.data!=null&&typeof _.data==="object"&&!Array.isArray(_.data)&&_.method&&["post","put","patch"].includes(_.method.toLowerCase())){let V=_.data??{};_.data={...V,origin:typeof V.origin==="string"&&V.origin.includes("mcp")?V.origin:`js-sdk@${X}`}}if(N)_.headers={..._.headers||{}},delete _.headers["Content-Type"],delete _.headers["content-type"];let H=await this.instance.request(_);if(H.status===502&&G<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,G));continue}return H}catch(_){if($=_,_?.response?.status===502&&G<this.maxRetries-1){await this.sleep(this.backoffFactor*Math.pow(2,G));continue}throw _}throw $??Error("Unexpected HTTP client error")}sleep(Y){return new Promise((X)=>setTimeout(X,Y*1000))}post(Y,X,$){return this.request({method:"post",url:Y,data:X,headers:$?.headers,timeout:$?.timeoutMs})}postMultipart(Y,X,$){return this.request({method:"post",url:Y,data:X,headers:$?.headers,timeout:$?.timeoutMs})}get(Y,X){return this.request({method:"get",url:Y,headers:X})}delete(Y,X){return this.request({method:"delete",url:Y,headers:X})}patch(Y,X,$){return this.request({method:"patch",url:Y,data:X,headers:$?.headers,timeout:$?.timeoutMs})}prepareHeaders(Y){let X={};if(Y)X["x-idempotency-key"]=Y;return X}},K,w,A="/v2/search/research",pX=class{constructor(Y){this.http=Y}http;async searchPapers(Y,X={}){if(!Y||!Y.trim())throw Error("query cannot be empty");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;P($,"query",Y),P($,"k",X.k),P($,"authors",X.authors),P($,"categories",X.categories),P($,"from",X.from),P($,"to",X.to);try{let G=await this.http.get(x(`${A}/papers`,$));if(G.status!==200)J(G,"search papers");return G.data}catch(G){return D(G,"search papers")}}async getPaper(Y,X={}){if(!Y||!Y.trim())throw Error("id cannot be empty");if(X.k!=null&&X.query==null)throw Error("k is only valid together with query");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;P($,"query",X.query),P($,"k",X.k);try{let G=await this.http.get(x(`${A}/papers/${encodeURIComponent(Y)}`,$));if(G.status!==200)J(G,"get paper");return G.data}catch(G){return D(G,"get paper")}}async similarPapers(Y,X){if(!Y||!Y.trim())throw Error("id cannot be empty");if(!X?.intent||!X.intent.trim())throw Error("intent cannot be empty");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;if(P($,"intent",X.intent),P($,"mode",X.mode),P($,"k",X.k),X.rerank!=null)P($,"rerank",X.rerank);P($,"anchor",X.anchor);try{let G=await this.http.get(x(`${A}/papers/${encodeURIComponent(Y)}/similar`,$));if(G.status!==200)J(G,"find similar papers");return G.data}catch(G){return D(G,"find similar papers")}}async searchGithub(Y,X={}){if(!Y||!Y.trim())throw Error("query cannot be empty");if(X.k!=null&&X.k<=0)throw Error("k must be positive");let $=new URLSearchParams;P($,"query",Y),P($,"k",X.k);try{let G=await this.http.get(x(`${A}/github`,$));if(G.status!==200)J(G,"search github");return G.data}catch(G){return D(G,"search github")}}},GY=()=>{if(typeof globalThis>"u")return;let Y=globalThis.WebSocket;return typeof Y==="function"?Y:void 0},_Y=()=>typeof process<"u"&&!!process.versions?.node,k,E,NY=async()=>{if(!_Y())return;try{let Y=await import("./index-0.6.7-9qxbggwj.mjs"),X=Y.WebSocket??Y.default?.WebSocket;return typeof X==="function"?X:void 0}catch{return}},HY=async()=>{if(k)return k;let Y=GY();if(Y)return k=Y,k;if(!E)E=NY();return k=await E,k},QY,ZY=(Y)=>{if(typeof Y==="string")return Y;if(typeof Buffer<"u"&&Buffer.isBuffer(Y))return Y.toString("utf8");let X=($)=>{if(typeof Buffer<"u")return Buffer.from($.buffer,$.byteOffset,$.byteLength).toString("utf8");return QY?.decode($)};if(ArrayBuffer.isView(Y))return X(Y);if(Y instanceof ArrayBuffer)return X(new Uint8Array(Y));return},VY,j=class{http;_research;isCloudService(Y){return Y.includes("api.firecrawl.dev")}constructor(Y={}){let X=typeof Y==="string"?{apiKey:Y}:Y,$=(X.apiKey??process.env.FIRECRAWL_API_KEY??"").trim(),G=(X.apiUrl??process.env.FIRECRAWL_API_URL??"https://api.firecrawl.dev").replace(/\/$/,"");this.http=new GX({apiKey:$,apiUrl:G,timeoutMs:X.timeoutMs,maxRetries:X.maxRetries,backoffFactor:X.backoffFactor})}async scrape(Y,X){return VX(this.http,Y,X)}async interact(Y,X){return OX(this.http,Y,X)}async stopInteraction(Y){return WX(this.http,Y)}async scrapeExecute(Y,X){return this.interact(Y,X)}async stopInteractiveBrowser(Y){return this.stopInteraction(Y)}async deleteScrapeBrowser(Y){return this.stopInteraction(Y)}async parse(Y,X){return JX(this.http,Y,X)}async search(Y,X={}){return LX(this.http,{query:Y,...X})}async feedback(Y){return KX(this.http,Y)}async searchFeedback(Y,X){return CX(this.http,Y,X)}get research(){if(!this._research)this._research=new pX(this.http);return this._research}async map(Y,X){return UX(this.http,Y,X)}async startCrawl(Y,X={}){return p(this.http,{url:Y,...X})}async getCrawlStatus(Y,X){return b(this.http,Y,X)}async cancelCrawl(Y){return BX(this.http,Y)}async crawl(Y,X={}){return kX(this.http,{url:Y,...X},X.pollInterval,X.timeout)}async getCrawlErrors(Y){return RX(this.http,Y)}async getActiveCrawls(){return fX(this.http)}async crawlParamsPreview(Y,X){return AX(this.http,Y,X)}async createMonitor(Y){return tX(this.http,Y)}async listMonitors(Y){return aX(this.http,Y)}async getMonitor(Y){return oX(this.http,Y)}async updateMonitor(Y,X){return sX(this.http,Y,X)}async deleteMonitor(Y){return eX(this.http,Y)}async runMonitor(Y){return rX(this.http,Y)}async listMonitorChecks(Y,X){return XY(this.http,Y,X)}async getMonitorCheck(Y,X,$){return YY(this.http,Y,X,$)}async startBatchScrape(Y,X){return t(this.http,Y,X)}async getBatchScrapeStatus(Y,X){return y(this.http,Y,X)}async getBatchScrapeErrors(Y){return DX(this.http,Y)}async cancelBatchScrape(Y){return xX(this.http,Y)}async batchScrape(Y,X){return vX(this.http,Y,X)}async startExtract(Y){return a(this.http,Y)}async getExtractStatus(Y){return o(this.http,Y)}async extract(Y){return jX(this.http,Y)}async startAgent(Y){return s(this.http,Y)}async getAgentStatus(Y){return e(this.http,Y)}async agent(Y){return qX(this.http,Y)}async cancelAgent(Y){return bX(this.http,Y)}async browser(Y={}){return yX(this.http,Y)}async browserExecute(Y,X){return gX(this.http,Y,X)}async deleteBrowser(Y){return hX(this.http,Y)}async listBrowsers(Y={}){return cX(this.http,Y)}async getConcurrency(){return uX(this.http)}async getCreditUsage(){return mX(this.http)}async getTokenUsage(){return lX(this.http)}async getCreditUsageHistorical(Y){return iX(this.http,Y)}async getTokenUsageHistorical(Y){return nX(this.http,Y)}async getQueueStatus(){return dX(this.http)}watcher(Y,X={}){return new VY(this.http,Y,X)}async scrapeUrl(Y,X){return this.scrape(Y,X)}async crawlUrl(Y,X={}){return this.crawl(Y,X)}async asyncCrawlUrl(Y,X={}){return this.startCrawl(Y,X)}async checkCrawlStatus(Y,X){return this.getCrawlStatus(Y,X)}async checkCrawlErrors(Y){return this.getCrawlErrors(Y)}async mapUrl(Y,X){return this.map(Y,X)}async batchScrapeUrls(Y,X){return this.batchScrape(Y,X)}async asyncBatchScrapeUrls(Y,X){return this.startBatchScrape(Y,X)}async checkBatchScrapeStatus(Y,X){return this.getBatchScrapeStatus(Y,X)}async checkBatchScrapeErrors(Y){return this.getBatchScrapeErrors(Y)}},OY,Z,WY=class{apiKey;apiUrl;version="1.25.1";isCloudService(Y){return Y.includes("api.firecrawl.dev")}async getVersion(){try{if(typeof process<"u"&&process.env&&process.env.npm_package_version)return process.env.npm_package_version;return(await import("./package-FMOR3ELU-0.6.7-g0c2811q.mjs")).default.version}catch(Y){if(!(typeof process<"u"&&(process.env.JEST_WORKER_ID!=null||!1)))console.error("Error getting version:",Y);return"1.25.1"}}async init(){this.version=await this.getVersion()}constructor({apiKey:Y=null,apiUrl:X=null}){let $=X||"https://api.firecrawl.dev";if(this.isCloudService($)&&typeof Y!=="string")throw new Z("No API key provided",401);this.apiKey=Y||"",this.apiUrl=$,this.init()}async scrapeUrl(Y,X){let $={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},G={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};if(G?.extract?.schema)G={...G,extract:{...G.extract,schema:U(G.extract.schema)}};if(G?.jsonOptions?.schema)G={...G,jsonOptions:{...G.jsonOptions,schema:U(G.jsonOptions.schema)}};try{let _=await B.post(this.apiUrl+"/v1/scrape",G,{headers:$,timeout:X?.timeout!==void 0?X.timeout+5000:void 0});if(_.status===200){let N=_.data;if(N.success)return{success:!0,warning:N.warning,error:N.error,...N.data};else throw new Z(`Failed to scrape URL. Error: ${N.error}`,_.status)}else this.handleError(_,"scrape URL")}catch(_){this.handleError(_.response,"scrape URL")}return{success:!1,error:"Internal server error."}}async search(Y,X){let $={"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`},G={query:Y,limit:X?.limit??5,tbs:X?.tbs,filter:X?.filter,lang:X?.lang??"en",country:X?.country??"us",location:X?.location,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`,timeout:X?.timeout??60000,scrapeOptions:X?.scrapeOptions??{formats:[]}};if(G?.scrapeOptions?.extract?.schema)G={...G,scrapeOptions:{...G.scrapeOptions,extract:{...G.scrapeOptions.extract,schema:U(G.scrapeOptions.extract.schema)}}};try{let _=await this.postRequest(this.apiUrl+"/v1/search",G,$);if(_.status===200){let N=_.data;if(N.success)return{success:!0,data:N.data,warning:N.warning};else throw new Z(`Failed to search. Error: ${N.error}`,_.status)}else this.handleError(_,"search")}catch(_){if(_.response?.data?.error)throw new Z(`Request failed with status code ${_.response.status}. Error: ${_.response.data.error} ${_.response.data.details?` - ${JSON.stringify(_.response.data.details)}`:""}`,_.response.status);else throw new Z(_.message,500)}return{success:!1,error:"Internal server error.",data:[]}}async crawlUrl(Y,X,$=2,G){let _=this.prepareHeaders(G),N={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let Q=await this.postRequest(this.apiUrl+"/v1/crawl",N,_);if(Q.status===200){let H=Q.data.id;return this.monitorJobStatus(H,_,$)}else this.handleError(Q,"start crawl job")}catch(Q){if(Q.response?.data?.error)throw new Z(`Request failed with status code ${Q.response.status}. Error: ${Q.response.data.error} ${Q.response.data.details?` - ${JSON.stringify(Q.response.data.details)}`:""}`,Q.response.status);else throw new Z(Q.message,500)}return{success:!1,error:"Internal server error."}}async asyncCrawlUrl(Y,X,$){let G=this.prepareHeaders($),_={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let N=await this.postRequest(this.apiUrl+"/v1/crawl",_,G);if(N.status===200)return N.data;else this.handleError(N,"start crawl job")}catch(N){if(N.response?.data?.error)throw new Z(`Request failed with status code ${N.response.status}. Error: ${N.response.data.error} ${N.response.data.details?` - ${JSON.stringify(N.response.data.details)}`:""}`,N.response.status);else throw new Z(N.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlStatus(Y,X=!1,$,G,_){if(!Y)throw new Z("No crawl ID provided",400);let N=this.prepareHeaders(),Q=new URL($??`${this.apiUrl}/v1/crawl/${Y}`);if(G!==void 0)Q.searchParams.set("skip",G.toString());if(_!==void 0)Q.searchParams.set("limit",_.toString());try{let H=await this.getRequest(Q.href,N);if(H.status===200){let V=H.data.data;if(X&&H.data.status==="completed"){let L=H.data;if("data"in L){let M=L.data;while(typeof L==="object"&&"next"in L){if(M.length===0)break;L=(await this.getRequest(L.next,N)).data,M=M.concat(L.data)}V=M}}let O={success:H.data.success,status:H.data.status,total:H.data.total,completed:H.data.completed,creditsUsed:H.data.creditsUsed,next:X?void 0:H.data.next,expiresAt:new Date(H.data.expiresAt),data:V};if(!H.data.success&&H.data.error)O={...O,success:!1,error:H.data.error};if(H.data.next)O.next=H.data.next;return O}else this.handleError(H,"check crawl status")}catch(H){throw new Z(H.message,500)}return{success:!1,error:"Internal server error."}}async checkCrawlErrors(Y){let X=this.prepareHeaders();try{let $=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${Y}/errors`,X);if($.status===200)return $.data;else this.handleError($,"check crawl errors")}catch($){throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async cancelCrawl(Y){let X=this.prepareHeaders();try{let $=await this.deleteRequest(`${this.apiUrl}/v1/crawl/${Y}`,X);if($.status===200)return $.data;else this.handleError($,"cancel crawl job")}catch($){throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async crawlUrlAndWatch(Y,X,$){let G=await this.asyncCrawlUrl(Y,X,$);if(G.success&&G.id){let _=G.id;return new c(_,this)}throw new Z("Crawl job failed to start",400)}async mapUrl(Y,X){let $=this.prepareHeaders(),G={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let _=await this.postRequest(this.apiUrl+"/v1/map",G,$);if(_.status===200)return _.data;else this.handleError(_,"map")}catch(_){throw new Z(_.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrls(Y,X,$=2,G,_,N,Q){let H=this.prepareHeaders(G),V={urls:Y,webhook:_,ignoreInvalidURLs:N,maxConcurrency:Q,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};if(V?.extract?.schema)V={...V,extract:{...V.extract,schema:U(V.extract.schema)}};if(V?.jsonOptions?.schema)V={...V,jsonOptions:{...V.jsonOptions,schema:U(V.jsonOptions.schema)}};try{let O=await this.postRequest(this.apiUrl+"/v1/batch/scrape",V,H);if(O.status===200){let L=O.data.id;return this.monitorJobStatus(L,H,$)}else this.handleError(O,"start batch scrape job")}catch(O){if(O.response?.data?.error)throw new Z(`Request failed with status code ${O.response.status}. Error: ${O.response.data.error} ${O.response.data.details?` - ${JSON.stringify(O.response.data.details)}`:""}`,O.response.status);else throw new Z(O.message,500)}return{success:!1,error:"Internal server error."}}async asyncBatchScrapeUrls(Y,X,$,G,_){let N=this.prepareHeaders($),Q={urls:Y,webhook:G,ignoreInvalidURLs:_,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let H=await this.postRequest(this.apiUrl+"/v1/batch/scrape",Q,N);if(H.status===200)return H.data;else this.handleError(H,"start batch scrape job")}catch(H){if(H.response?.data?.error)throw new Z(`Request failed with status code ${H.response.status}. Error: ${H.response.data.error} ${H.response.data.details?` - ${JSON.stringify(H.response.data.details)}`:""}`,H.response.status);else throw new Z(H.message,500)}return{success:!1,error:"Internal server error."}}async batchScrapeUrlsAndWatch(Y,X,$,G,_){let N=await this.asyncBatchScrapeUrls(Y,X,$,G,_);if(N.success&&N.id){let Q=N.id;return new c(Q,this)}throw new Z("Batch scrape job failed to start",400)}async checkBatchScrapeStatus(Y,X=!1,$,G,_){if(!Y)throw new Z("No batch scrape ID provided",400);let N=this.prepareHeaders(),Q=new URL($??`${this.apiUrl}/v1/batch/scrape/${Y}`);if(G!==void 0)Q.searchParams.set("skip",G.toString());if(_!==void 0)Q.searchParams.set("limit",_.toString());try{let H=await this.getRequest(Q.href,N);if(H.status===200){let V=H.data.data;if(X&&H.data.status==="completed"){let L=H.data;if("data"in L){let M=L.data;while(typeof L==="object"&&"next"in L){if(M.length===0)break;L=(await this.getRequest(L.next,N)).data,M=M.concat(L.data)}V=M}}let O={success:H.data.success,status:H.data.status,total:H.data.total,completed:H.data.completed,creditsUsed:H.data.creditsUsed,next:X?void 0:H.data.next,expiresAt:new Date(H.data.expiresAt),data:V};if(!H.data.success&&H.data.error)O={...O,success:!1,error:H.data.error};if(H.data.next)O.next=H.data.next;return O}else this.handleError(H,"check batch scrape status")}catch(H){throw new Z(H.message,500)}return{success:!1,error:"Internal server error."}}async checkBatchScrapeErrors(Y){let X=this.prepareHeaders();try{let $=await this.deleteRequest(`${this.apiUrl}/v1/batch/scrape/${Y}/errors`,X);if($.status===200)return $.data;else this.handleError($,"check batch scrape errors")}catch($){throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async extract(Y,X){let $=this.prepareHeaders(),G={urls:Y,...X},_=X?.schema?U(X.schema):void 0;try{let N=await this.postRequest(this.apiUrl+"/v1/extract",{...G,schema:_,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`},$);if(N.status===200){let Q=N.data.id,H;do{let V=await this.getRequest(`${this.apiUrl}/v1/extract/${Q}`,$);if(H=V.data,H.status==="completed")if(H.success)return{success:!0,data:H.data,warning:H.warning,error:H.error,sources:H?.sources||void 0};else throw new Z(`Failed to extract data. Error: ${H.error}`,V.status);else if(H.status==="failed"||H.status==="cancelled")throw new Z(`Extract job ${H.status}. Error: ${H.error}`,V.status);await new Promise((O)=>setTimeout(O,1000))}while(H.status!=="completed")}else this.handleError(N,"extract")}catch(N){throw new Z(N.message,500,N.response?.data?.details)}return{success:!1,error:"Internal server error."}}async asyncExtract(Y,X,$){let G=this.prepareHeaders($),_={urls:Y,...X},N=X?.schema?U(X.schema):void 0;try{let Q=await this.postRequest(this.apiUrl+"/v1/extract",{..._,schema:N,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`},G);if(Q.status===200)return Q.data;else this.handleError(Q,"start extract job")}catch(Q){throw new Z(Q.message,500,Q.response?.data?.details)}return{success:!1,error:"Internal server error."}}async getExtractStatus(Y){try{let X=await this.getRequest(`${this.apiUrl}/v1/extract/${Y}`,this.prepareHeaders());if(X.status===200)return X.data;else this.handleError(X,"get extract status")}catch(X){throw new Z(X.message,500)}}prepareHeaders(Y){return{"Content-Type":"application/json",Authorization:`Bearer ${this.apiKey}`,...Y?{"x-idempotency-key":Y}:{}}}postRequest(Y,X,$){return B.post(Y,X,{headers:$,timeout:X?.timeout?X.timeout+5000:void 0})}async getRequest(Y,X){try{return await B.get(Y,{headers:X})}catch($){if($ instanceof F&&$.response)return $.response;else throw $}}async deleteRequest(Y,X){try{return await B.delete(Y,{headers:X})}catch($){if($ instanceof F&&$.response)return $.response;else throw $}}async monitorJobStatus(Y,X,$){let G=0,_=0,N=3;while(!0)try{let Q=await this.getRequest(`${this.apiUrl}/v1/crawl/${Y}`,X);if(Q.status===200){G=0,_=0;let H=Q.data;if(H.status==="completed")if("data"in H){let V=H.data;while(typeof H==="object"&&"next"in H){if(V.length===0)break;Q=await this.getRequest(H.next,X),H=Q.data,V=V.concat(H.data)}return H.data=V,H}else throw new Z("Crawl job completed but no data was returned",500);else if(["active","paused","pending","queued","waiting","scraping"].includes(H.status))$=Math.max($,2),await new Promise((V)=>setTimeout(V,$*1000));else throw new Z(`Crawl job failed or was stopped. Status: ${H.status}`,500)}else if(G++,G>=3)this.handleError(Q,"check crawl status")}catch(Q){if(this.isRetryableError(Q)&&_<N){_++;let H=Math.min(1000*Math.pow(2,_-1),1e4);await new Promise((V)=>setTimeout(V,H));continue}throw new Z(Q,500)}}isRetryableError(Y){if(Y instanceof F){if(!Y.response){let X=Y.code,$=Y.message?.toLowerCase()||"";return X==="ECONNRESET"||X==="ETIMEDOUT"||X==="ENOTFOUND"||X==="ECONNREFUSED"||$.includes("socket hang up")||$.includes("network error")||$.includes("timeout")}if(Y.response?.status===408||Y.response?.status===504)return!0}if(Y&&typeof Y==="object"){let X=Y.code,$=Y.message?.toLowerCase()||"";if(X==="ECONNRESET"||X==="ETIMEDOUT"||X==="ENOTFOUND"||X==="ECONNREFUSED"||$.includes("socket hang up")||$.includes("network error")||$.includes("timeout"))return!0;if(Y.response?.status===408||Y.response?.status===504)return!0}return!1}handleError(Y,X){if(!Y)throw new Z(`No response received while trying to ${X}. This may be a network error or the server is unreachable.`,0);if([400,402,403,408,409,500].includes(Y.status)){let $=Y.data.error||"Unknown error occurred",G=Y.data.details?` - ${JSON.stringify(Y.data.details)}`:"";throw new Z(`Failed to ${X}. Status code: ${Y.status}. Error: ${$}${G}`,Y.status,Y?.data?.details)}else throw new Z(`Unexpected error occurred while trying to ${X}. Status code: ${Y.status}`,Y.status)}async deepResearch(Y,X,$,G){try{let _=await this.asyncDeepResearch(Y,X);if(!_.success||"error"in _)return{success:!1,error:"error"in _?_.error:"Unknown error"};if(!_.id)throw new Z("Failed to start research. No job ID returned.",500);let N=_.id,Q,H=0,V=0;while(!0){if(Q=await this.checkDeepResearchStatus(N),"error"in Q&&!Q.success)return Q;if($&&Q.activities){let O=Q.activities.slice(H);for(let L of O)$(L);H=Q.activities.length}if(G&&Q.sources){let O=Q.sources.slice(V);for(let L of O)G(L);V=Q.sources.length}if(Q.status==="completed")return Q;if(Q.status==="failed")throw new Z(`Research job ${Q.status}. Error: ${Q.error}`,500);if(Q.status!=="processing")break;await new Promise((O)=>setTimeout(O,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(_){throw new Z(_.message,500,_.response?.data?.details)}}async asyncDeepResearch(Y,X){let $=this.prepareHeaders(),G={query:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};if(G?.jsonOptions?.schema)G={...G,jsonOptions:{...G.jsonOptions,schema:U(G.jsonOptions.schema)}};try{let _=await this.postRequest(`${this.apiUrl}/v1/deep-research`,G,$);if(_.status===200)return _.data;else this.handleError(_,"start deep research")}catch(_){if(_.response?.data?.error)throw new Z(`Request failed with status code ${_.response.status}. Error: ${_.response.data.error} ${_.response.data.details?` - ${JSON.stringify(_.response.data.details)}`:""}`,_.response.status);else throw new Z(_.message,500)}return{success:!1,error:"Internal server error."}}async checkDeepResearchStatus(Y){let X=this.prepareHeaders();try{let $=await this.getRequest(`${this.apiUrl}/v1/deep-research/${Y}`,X);if($.status===200)return $.data;else if($.status===404)throw new Z("Deep research job not found",404);else this.handleError($,"check deep research status")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async __deepResearch(Y,X,$){try{let G=await this.__asyncDeepResearch(Y,X);if(!G.success||"error"in G)return{success:!1,error:"error"in G?G.error:"Unknown error"};if(!G.id)throw new Z("Failed to start research. No job ID returned.",500);let _=G.id,N,Q=0;while(!0){if(N=await this.__checkDeepResearchStatus(_),"error"in N&&!N.success)return N;if($&&N.activities){let H=N.activities.slice(Q);for(let V of H)$(V);Q=N.activities.length}if(N.status==="completed")return N;if(N.status==="failed")throw new Z(`Research job ${N.status}. Error: ${N.error}`,500);if(N.status!=="processing")break;await new Promise((H)=>setTimeout(H,2000))}return{success:!1,error:"Research job terminated unexpectedly"}}catch(G){throw new Z(G.message,500,G.response?.data?.details)}}async __asyncDeepResearch(Y,X){let $=this.prepareHeaders();try{let G={topic:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`},_=await this.postRequest(`${this.apiUrl}/v1/deep-research`,G,$);if(_.status===200)return _.data;else this.handleError(_,"start deep research")}catch(G){if(G.response?.data?.error)throw new Z(`Request failed with status code ${G.response.status}. Error: ${G.response.data.error} ${G.response.data.details?` - ${JSON.stringify(G.response.data.details)}`:""}`,G.response.status);else throw new Z(G.message,500)}return{success:!1,error:"Internal server error."}}async __checkDeepResearchStatus(Y){let X=this.prepareHeaders();try{let $=await this.getRequest(`${this.apiUrl}/v1/deep-research/${Y}`,X);if($.status===200)return $.data;else if($.status===404)throw new Z("Deep research job not found",404);else this.handleError($,"check deep research status")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async generateLLMsText(Y,X){try{let $=await this.asyncGenerateLLMsText(Y,X);if(!$.success||"error"in $)return{success:!1,error:"error"in $?$.error:"Unknown error"};if(!$.id)throw new Z("Failed to start LLMs.txt generation. No job ID returned.",500);let G=$.id,_;while(!0){if(_=await this.checkGenerateLLMsTextStatus(G),"error"in _&&!_.success)return _;if(_.status==="completed")return _;if(_.status==="failed")throw new Z(`LLMs.txt generation job ${_.status}. Error: ${_.error}`,500);if(_.status!=="processing")break;await new Promise((N)=>setTimeout(N,2000))}return{success:!1,error:"LLMs.txt generation job terminated unexpectedly"}}catch($){throw new Z($.message,500,$.response?.data?.details)}}async asyncGenerateLLMsText(Y,X){let $=this.prepareHeaders(),G={url:Y,...X,origin:typeof X.origin==="string"&&X.origin.includes("mcp")?X.origin:`js-sdk@${this.version}`};try{let _=await this.postRequest(`${this.apiUrl}/v1/llmstxt`,G,$);if(_.status===200)return _.data;else this.handleError(_,"start LLMs.txt generation")}catch(_){if(_.response?.data?.error)throw new Z(`Request failed with status code ${_.response.status}. Error: ${_.response.data.error} ${_.response.data.details?` - ${JSON.stringify(_.response.data.details)}`:""}`,_.response.status);else throw new Z(_.message,500)}return{success:!1,error:"Internal server error."}}async checkGenerateLLMsTextStatus(Y){let X=this.prepareHeaders();try{let $=await this.getRequest(`${this.apiUrl}/v1/llmstxt/${Y}`,X);if($.status===200)return $.data;else if($.status===404)throw new Z("LLMs.txt generation job not found",404);else this.handleError($,"check LLMs.txt generation status")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async getQueueStatus(){let Y=this.prepareHeaders();try{let X=await this.getRequest(`${this.apiUrl}/v1/team/queue-status`,Y);if(X.status===200)return X.data;else this.handleError(X,"get queue status")}catch(X){if(X.response?.data?.error)throw new Z(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new Z(X.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsage(){let Y=this.prepareHeaders();try{let X=await this.getRequest(`${this.apiUrl}/v1/team/credit-usage`,Y);if(X.status===200)return X.data;else this.handleError(X,"get credit usage")}catch(X){if(X.response?.data?.error)throw new Z(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new Z(X.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsage(){let Y=this.prepareHeaders();try{let X=await this.getRequest(`${this.apiUrl}/v1/team/token-usage`,Y);if(X.status===200)return X.data;else this.handleError(X,"get token usage")}catch(X){if(X.response?.data?.error)throw new Z(`Request failed with status code ${X.response.status}. Error: ${X.response.data.error} ${X.response.data.details?` - ${JSON.stringify(X.response.data.details)}`:""}`,X.response.status);else throw new Z(X.message,500)}return{success:!1,error:"Internal server error."}}async getCreditUsageHistorical(Y){let X=this.prepareHeaders();try{let $=`${this.apiUrl}/v1/team/credit-usage/historical${Y?"?byApiKey=true":""}`,G=await this.getRequest($,X);if(G.status===200)return G.data;else this.handleError(G,"get credit usage historical")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}async getTokenUsageHistorical(Y){let X=this.prepareHeaders();try{let $=`${this.apiUrl}/v1/team/token-usage/historical${Y?"?byApiKey=true":""}`,G=await this.getRequest($,X);if(G.status===200)return G.data;else this.handleError(G,"get token usage historical")}catch($){if($.response?.data?.error)throw new Z(`Request failed with status code ${$.response.status}. Error: ${$.response.data.error} ${$.response.data.details?` - ${JSON.stringify($.response.data.details)}`:""}`,$.response.status);else throw new Z($.message,500)}return{success:!1,error:"Internal server error."}}},c,I,CY;var JY=r(()=>{$X();u();YX();u();K=class extends Error{status;code;details;jobId;constructor(Y,X,$,G,_){super(Y);this.name="FirecrawlSdkError",this.status=X,this.code=$,this.details=G,this.jobId=_}},w=class extends K{timeoutSeconds;constructor(Y,X,$="batch"){let G=$==="batch"?"batch scrape":"crawl";super(`${G.charAt(0).toUpperCase()+G.slice(1)} job ${Y} did not complete within ${X} seconds`,void 0,"JOB_TIMEOUT",void 0,Y);this.name="JobTimeoutError",this.timeoutSeconds=X}};QY=typeof TextDecoder<"u"?new TextDecoder:void 0,VY=class extends $Y{http;jobId;kind;pollInterval;timeout;ws;closed=!1;emittedDocumentKeys=new Set;constructor(Y,X,$={}){super();this.http=Y,this.jobId=X,this.kind=$.kind??"crawl",this.pollInterval=$.pollInterval??2,this.timeout=$.timeout}buildWsUrl(){let X=this.http.getApiUrl().replace(/^http/,"ws"),$=this.kind==="crawl"?`/v2/crawl/${this.jobId}`:`/v2/batch/scrape/${this.jobId}`;return`${X}${$}`}async start(){return new Promise((Y,X)=>{let $=()=>{_(),Y()},G=(N)=>{_(),Y()},_=()=>{this.removeListener("done",$),this.removeListener("error",G)};this.on("done",$),this.on("error",G),(async()=>{try{let N=this.buildWsUrl(),Q=await HY();if(!Q){this.pollLoop();return}if(this.ws=new Q(N,this.http.getApiKey()),this.ws&&"binaryType"in this.ws)this.ws.binaryType="arraybuffer";if(this.ws)this.attachWsHandlers(this.ws)}catch(N){this.pollLoop()}})()})}attachWsHandlers(Y){let X=Date.now(),$=this.timeout?this.timeout*1000:void 0;Y.onmessage=(G)=>{try{let _=ZY(G.data);if(!_)return;let N=JSON.parse(_),Q=N.type;if(Q==="error"){this.emit("error",{status:"failed",data:[],error:N.error,id:this.jobId});return}if(Q==="catchup"){let V=N.data||{};this.emitDocuments(V.data||[]),this.emitSnapshot(V);return}if(Q==="document"){let V=N.data;if(V)this.emitDocuments([V]);return}if(Q==="done"){let V=N.data||N,O=V.data||[];if(O.length)this.emitDocuments(O);this.emit("done",{status:"completed",data:O,id:this.jobId,total:V.total,completed:V.completed,creditsUsed:V.creditsUsed}),this.close();return}let H=N.data||N;if(H&&H.status)this.emitSnapshot(H)}catch{}if($&&Date.now()-X>$)this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close()},Y.onerror=()=>{this.emit("error",{status:"failed",data:[],error:"WebSocket error",id:this.jobId}),this.close()},Y.onclose=()=>{if(!this.closed)this.pollLoop()}}documentKey(Y){if(Y&&typeof Y==="object"){let X=Y.id??Y.docId??Y.url;if(typeof X==="string"&&X.length)return X}try{return JSON.stringify(Y)}catch{return`${Date.now()}-${Math.random()}`}}emitDocuments(Y){for(let X of Y){if(!X)continue;let $=this.documentKey(X);if(this.emittedDocumentKeys.has($))continue;this.emittedDocumentKeys.add($),this.emit("document",{...X,id:this.jobId})}}emitSnapshot(Y){let X=Y.status,$=Y.data||[],G=this.kind==="crawl"?{id:this.jobId,status:X,completed:Y.completed??0,total:Y.total??0,creditsUsed:Y.creditsUsed,expiresAt:Y.expiresAt,next:Y.next??null,data:$}:{id:this.jobId,status:X,completed:Y.completed??0,total:Y.total??0,creditsUsed:Y.creditsUsed,expiresAt:Y.expiresAt,next:Y.next??null,data:$};if(this.emit("snapshot",G),["completed","failed","cancelled"].includes(X))this.emit("done",{status:X,data:$,id:this.jobId,total:Y.total??0,completed:Y.completed??0,creditsUsed:Y.creditsUsed}),this.close()}async pollLoop(){let Y=Date.now(),X=this.timeout?this.timeout*1000:void 0;while(!this.closed){try{let $=this.kind==="crawl"?await b(this.http,this.jobId):await y(this.http,this.jobId);if(this.emitDocuments($.data||[]),this.emit("snapshot",$),["completed","failed","cancelled"].includes($.status)){this.emit("done",{status:$.status,data:$.data,id:this.jobId,total:$.total??0,completed:$.completed??0,creditsUsed:$.creditsUsed}),this.close();break}}catch{}if(X&&Date.now()-Y>X){this.emit("error",{status:"failed",data:[],error:"Watcher timeout",id:this.jobId}),this.close();break}await new Promise(($)=>setTimeout($,Math.max(1000,this.pollInterval*1000)))}}close(){if(this.closed=!0,this.ws&&this.ws.close)this.ws.close()}},OY=class extends EventTarget{dispatchTypedEvent(Y,X){return super.dispatchEvent(X)}},Z=class extends Error{statusCode;details;constructor(Y,X,$){super(Y);this.statusCode=X,this.details=$}},c=class extends OY{ws;data;status;id;constructor(Y,X){super();this.id=Y;let $=X.apiUrl.replace(/^http/,"ws");this.ws=new WebSocket(`${$}/v1/crawl/${Y}`,X.apiKey),this.status="scraping",this.data=[];let G=(_)=>{if(_.type==="done")this.status="completed",this.dispatchTypedEvent("done",new CustomEvent("done",{detail:{status:this.status,data:this.data,id:this.id}}));else if(_.type==="error")this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:_.error,id:this.id}}));else if(_.type==="catchup"){this.status=_.data.status,this.data.push(..._.data.data??[]);for(let N of this.data)this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{...N,id:this.id}}))}else if(_.type==="document")this.dispatchTypedEvent("document",new CustomEvent("document",{detail:{..._.data,id:this.id}}))};this.ws.onmessage=((_)=>{if(typeof _.data!=="string"){this.ws.close();return}try{let N=JSON.parse(_.data);G(N)}catch(N){console.error("Error on message",N)}}).bind(this),this.ws.onclose=((_)=>{try{let N=JSON.parse(_.reason);G(N)}catch(N){console.error("Error on close",N)}}).bind(this),this.ws.onerror=((_)=>{this.status="failed",this.dispatchTypedEvent("error",new CustomEvent("error",{detail:{status:this.status,data:this.data,error:"WebSocket error",id:this.id}}))}).bind(this)}close(){this.ws.close()}},I=class extends j{_v1;_v1Opts;constructor(Y={}){let X=typeof Y==="string"?{apiKey:Y}:Y;super(X);this._v1Opts={apiKey:X.apiKey,apiUrl:X.apiUrl}}get v1(){if(!this._v1)this._v1=new WY(this._v1Opts);return this._v1}};(function(){for(let X of Object.getOwnPropertyNames(j.prototype)){if(X==="constructor")continue;if(Object.prototype.hasOwnProperty.call(I.prototype,X))continue;let $=Object.getOwnPropertyDescriptor(j.prototype,X);if($)Object.defineProperty(I.prototype,X,$)}})();CY=I});JY();export{CY as default,VY as Watcher,K as SdkError,pX as ResearchClient,w as JobTimeoutError,j as FirecrawlClient,WY as FirecrawlAppV1,I as Firecrawl};
|