@claudiolabs/claudin 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.6.8-1h6eg55x.mjs +1 -0
- package/dist/chunks/App-0.6.8-gf7z37d0.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.8-z559z4n4.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.8-a964szce.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.8-hmgphwsn.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.8-9vwjqk2g.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.8-bmx62ftg.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.8-6xg5m0rs.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.8-m77gpjht.mjs +7 -0
- package/dist/chunks/Doctor-0.6.8-h33wtqvb.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.6.8-g4rjbnb6.mjs +6 -0
- package/dist/chunks/Grove-0.6.8-c6v8rps5.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.8-c6rr3der.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.8-rq8061vm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.8-k3gjdk9q.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.8-fndbdavr.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.8-p9c1cvpj.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.8-rgwzy8mv.mjs +1 -0
- package/dist/chunks/REPL-0.6.8-wz4ky583.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.8-0vytwym2.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.8-j49mg943.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.8-1w0czdzd.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.8-3tb748qg.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.8-cchdkcj0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.8-83basabp.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.8-vz9cakde.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.8-9xfzmsa4.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.8-z6bqkc89.mjs +1 -0
- package/dist/chunks/add-dir-0.6.8-maggp9sq.mjs +1 -0
- package/dist/chunks/agents-0.6.8-b17xcjhg.mjs +3 -0
- package/dist/chunks/agents-0.6.8-n3vcbv4n.mjs +110 -0
- package/dist/chunks/api-0.6.8-dx65vfgr.mjs +1 -0
- package/dist/chunks/asciicast-0.6.8-xdty46r6.mjs +1 -0
- package/dist/chunks/assistant-0.6.8-48pyb11z.mjs +1 -0
- package/dist/chunks/auth-0.6.8-jzmpk916.mjs +1 -0
- package/dist/chunks/auth-0.6.8-v4ggd1x2.mjs +1 -0
- package/dist/chunks/autoMode-0.6.8-e3tpbf8n.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.8-kjwba4kd.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.8-ahc5b93c.mjs +1 -0
- package/dist/chunks/branch-0.6.8-bht94rzm.mjs +4 -0
- package/dist/chunks/bridge-0.6.8-w3a5wvz5.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.8-tcqxv3wr.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.8-bbk61bwx.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.8-4gdvjwd9.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.8-y9zbj5sw.mjs +1 -0
- package/dist/chunks/btw-0.6.8-p8v9ccqj.mjs +1 -0
- package/dist/chunks/buddy-0.6.8-cc9dgg1j.mjs +3 -0
- package/dist/chunks/cacache-0.6.8-sa10tzqt.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.8-rb3gqp6p.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.8-ayfpcw3z.mjs +4 -0
- package/dist/chunks/caches-0.6.8-z51zt2q7.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.8-f2s8faxb.mjs +1 -0
- package/dist/chunks/claudemd-0.6.8-b32hs73z.mjs +1 -0
- package/dist/chunks/clear-0.6.8-wr581077.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.8-n1mdykjw.mjs +1 -0
- package/dist/chunks/cli-0.6.8-00w6vgmt.mjs +4 -0
- package/dist/chunks/cli-0.6.8-026meybw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-070cxjdc.mjs +2 -0
- package/dist/chunks/cli-0.6.8-097dncsw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0dtwbbq2.mjs +10 -0
- package/dist/chunks/cli-0.6.8-0gpdjv55.mjs +34 -0
- package/dist/chunks/cli-0.6.8-0hn9sy42.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0mb0d7wn.mjs +3 -0
- package/dist/chunks/cli-0.6.8-0mnxmayn.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0rt710pa.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0s41dm0j.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0yz4b8v5.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0zdwjw7h.mjs +17 -0
- package/dist/chunks/cli-0.6.8-1bmxpdky.mjs +2 -0
- package/dist/chunks/cli-0.6.8-1g5hjvgr.mjs +3 -0
- package/dist/chunks/cli-0.6.8-1k0se62h.mjs +2 -0
- package/dist/chunks/cli-0.6.8-1mnssvmz.mjs +8 -0
- package/dist/chunks/cli-0.6.8-1yx8jjck.mjs +2 -0
- package/dist/chunks/cli-0.6.8-21y1120z.mjs +2 -0
- package/dist/chunks/cli-0.6.8-239wrpj3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-25he0rqv.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2e9hw0b1.mjs +4 -0
- package/dist/chunks/cli-0.6.8-2f4081dz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2h6sve00.mjs +12 -0
- package/dist/chunks/cli-0.6.8-2nda5zxh.mjs +67 -0
- package/dist/chunks/cli-0.6.8-2p06hgb1.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2pj7sdxd.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2qb9g75m.mjs +2 -0
- package/dist/chunks/cli-0.6.8-34gwg749.mjs +2 -0
- package/dist/chunks/cli-0.6.8-3a510y9k.mjs +2 -0
- package/dist/chunks/cli-0.6.8-3ewbgezt.mjs +2 -0
- package/dist/chunks/cli-0.6.8-3phwrcqa.mjs +3 -0
- package/dist/chunks/cli-0.6.8-3z78waf8.mjs +4 -0
- package/dist/chunks/cli-0.6.8-416cqzak.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4a0ebxtv.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4avmxq80.mjs +6 -0
- package/dist/chunks/cli-0.6.8-4d57xs6b.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4jh3r7br.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4zdzrvfa.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5enet6dq.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5gstf2n7.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5n9bwjf9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5sexbrs8.mjs +3 -0
- package/dist/chunks/cli-0.6.8-5y8n5kpk.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6050y1gw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-61qkxc3j.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6495m72a.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6ccg5qmp.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6nasamhy.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6pf3s7fk.mjs +6 -0
- package/dist/chunks/cli-0.6.8-6tgf3xa0.mjs +133 -0
- package/dist/chunks/cli-0.6.8-6v315rd0.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6wdxaa6q.mjs +3 -0
- package/dist/chunks/cli-0.6.8-6z1655sa.mjs +2 -0
- package/dist/chunks/cli-0.6.8-72sec87k.mjs +3 -0
- package/dist/chunks/cli-0.6.8-77sjcesf.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7g7k6yt9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7nqm28z4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7rznct58.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7t0cwmv0.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7t8gpbd2.mjs +6 -0
- package/dist/chunks/cli-0.6.8-82xanm26.mjs +3 -0
- package/dist/chunks/cli-0.6.8-883y3p0j.mjs +5348 -0
- package/dist/chunks/cli-0.6.8-8cptc9vb.mjs +4 -0
- package/dist/chunks/cli-0.6.8-8ezmkwsw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-8h913n7t.mjs +2 -0
- package/dist/chunks/cli-0.6.8-8jkm4bym.mjs +2 -0
- package/dist/chunks/cli-0.6.8-8zc9gtx8.mjs +2 -0
- package/dist/chunks/cli-0.6.8-93hp2f5g.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9cxxg2ax.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9f5w9wre.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9m65pb3r.mjs +18 -0
- package/dist/chunks/cli-0.6.8-9pkhxd6z.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9xem54f8.mjs +2 -0
- package/dist/chunks/cli-0.6.8-a7nmnbm4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-a8zm3cbn.mjs +5 -0
- package/dist/chunks/cli-0.6.8-abapkbf0.mjs +15 -0
- package/dist/chunks/cli-0.6.8-ag8hcaw0.mjs +2 -0
- package/dist/chunks/cli-0.6.8-atjt49c4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b280gnkv.mjs +1 -0
- package/dist/chunks/cli-0.6.8-b2zms4ec.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b3v9vbq6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b6c3tmkx.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b6f3e10d.mjs +2 -0
- package/dist/chunks/cli-0.6.8-bdhpc7zj.mjs +17 -0
- package/dist/chunks/cli-0.6.8-bh09cgap.mjs +6 -0
- package/dist/chunks/cli-0.6.8-bp3vvgaw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-bsqfs15y.mjs +58 -0
- package/dist/chunks/cli-0.6.8-bxcjrmby.mjs +2 -0
- package/dist/chunks/cli-0.6.8-c838p5hk.mjs +3 -0
- package/dist/chunks/cli-0.6.8-cbvnsxaa.mjs +12 -0
- package/dist/chunks/cli-0.6.8-cctyv31j.mjs +4 -0
- package/dist/chunks/cli-0.6.8-cthp7gx1.mjs +2 -0
- package/dist/chunks/cli-0.6.8-cv73s4x5.mjs +4 -0
- package/dist/chunks/cli-0.6.8-dk4bw9mq.mjs +3 -0
- package/dist/chunks/cli-0.6.8-dpz3wm8v.mjs +2 -0
- package/dist/chunks/cli-0.6.8-dvkyrzw7.mjs +5 -0
- package/dist/chunks/cli-0.6.8-dwwx58n6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-dxtyt1wg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ee7wzgsq.mjs +5 -0
- package/dist/chunks/cli-0.6.8-ee9mr0z2.mjs +2 -0
- package/dist/chunks/cli-0.6.8-efkksxch.mjs +2 -0
- package/dist/chunks/cli-0.6.8-efve08ng.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ekkrzmjw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-eyg1sq7b.mjs +2 -0
- package/dist/chunks/cli-0.6.8-eypwe6gz.mjs +15 -0
- package/dist/chunks/cli-0.6.8-fhedvbz1.mjs +15 -0
- package/dist/chunks/cli-0.6.8-fnet85r6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-g3yp49rz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-gcnabbk4.mjs +3 -0
- package/dist/chunks/cli-0.6.8-gfsf3tvy.mjs +2 -0
- package/dist/chunks/cli-0.6.8-gmzxyn2t.mjs +2 -0
- package/dist/chunks/cli-0.6.8-grdpt7ss.mjs +2 -0
- package/dist/chunks/cli-0.6.8-gscmwgeh.mjs +4 -0
- package/dist/chunks/cli-0.6.8-gtwt16bp.mjs +2 -0
- package/dist/chunks/cli-0.6.8-hj3j54vb.mjs +2 -0
- package/dist/chunks/cli-0.6.8-hvckc721.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j22112y9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j5wfgenk.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j81d3bq4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j8mdppyz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-janhze0q.mjs +39 -0
- package/dist/chunks/cli-0.6.8-jea2s05x.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jf4zbgy5.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jp8gk6z3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jp9zzk35.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jx1wvs6x.mjs +2 -0
- package/dist/chunks/cli-0.6.8-k533p6s5.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kjfxmp31.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kkh9paa3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kv1xtman.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kxp0gfzq.mjs +4 -0
- package/dist/chunks/cli-0.6.8-m1r6z413.mjs +2 -0
- package/dist/chunks/cli-0.6.8-m2hw29ah.mjs +2 -0
- package/dist/chunks/cli-0.6.8-m2yf7dzs.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ma2wastm.mjs +50 -0
- package/dist/chunks/cli-0.6.8-mecr32eb.mjs +24 -0
- package/dist/chunks/cli-0.6.8-mkfx6c2h.mjs +7 -0
- package/dist/chunks/cli-0.6.8-n3rhca7k.mjs +2 -0
- package/dist/chunks/cli-0.6.8-n4ecq63e.mjs +2 -0
- package/dist/chunks/cli-0.6.8-nmdsnavk.mjs +2 -0
- package/dist/chunks/cli-0.6.8-nwtmpseh.mjs +2 -0
- package/dist/chunks/cli-0.6.8-nz7pwsys.mjs +2 -0
- package/dist/chunks/cli-0.6.8-p6rhsdxf.mjs +2 -0
- package/dist/chunks/cli-0.6.8-pgcmgfht.mjs +2 -0
- package/dist/chunks/cli-0.6.8-pmpv80vx.mjs +2 -0
- package/dist/chunks/cli-0.6.8-pz3sbced.mjs +25 -0
- package/dist/chunks/cli-0.6.8-pzbspy3n.mjs +2 -0
- package/dist/chunks/cli-0.6.8-q027tb7b.mjs +2 -0
- package/dist/chunks/cli-0.6.8-q3txjpb9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-qg557m5n.mjs +2 -0
- package/dist/chunks/cli-0.6.8-r1yjkwda.mjs +2 -0
- package/dist/chunks/cli-0.6.8-r42pr0w8.mjs +2 -0
- package/dist/chunks/cli-0.6.8-r9jgzx43.mjs +2 -0
- package/dist/chunks/cli-0.6.8-rewjhmpq.mjs +133 -0
- package/dist/chunks/cli-0.6.8-reyv7f1y.mjs +9 -0
- package/dist/chunks/cli-0.6.8-rftvcrp4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-rw4y8s92.mjs +2 -0
- package/dist/chunks/cli-0.6.8-s0geqcvz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-s0s7zs2a.mjs +24 -0
- package/dist/chunks/cli-0.6.8-s6yd5ybz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-s98bd3q2.mjs +2 -0
- package/dist/chunks/cli-0.6.8-sn09eprm.mjs +2 -0
- package/dist/chunks/cli-0.6.8-sz1r1tvd.mjs +2 -0
- package/dist/chunks/cli-0.6.8-sznj03wy.mjs +3 -0
- package/dist/chunks/cli-0.6.8-t1kd2tg3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-t3th9jjg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ta6qf4we.mjs +20 -0
- package/dist/chunks/cli-0.6.8-tb4rrntr.mjs +16 -0
- package/dist/chunks/cli-0.6.8-tewmm6rt.mjs +2 -0
- package/dist/chunks/cli-0.6.8-tnqnaqpx.mjs +3 -0
- package/dist/chunks/cli-0.6.8-tzmx6gz0.mjs +12 -0
- package/dist/chunks/cli-0.6.8-tztjt9fh.mjs +4 -0
- package/dist/chunks/cli-0.6.8-v582jfcn.mjs +4 -0
- package/dist/chunks/cli-0.6.8-v9wg3pvs.mjs +2 -0
- package/dist/chunks/cli-0.6.8-vcpys5fx.mjs +2 -0
- package/dist/chunks/cli-0.6.8-vf9cagcj.mjs +59 -0
- package/dist/chunks/cli-0.6.8-vpaw67v2.mjs +193 -0
- package/dist/chunks/cli-0.6.8-vqhtd9ay.mjs +2 -0
- package/dist/chunks/cli-0.6.8-vseqtday.mjs +21 -0
- package/dist/chunks/cli-0.6.8-vwhx9xjq.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wdjsawer.mjs +3 -0
- package/dist/chunks/cli-0.6.8-wdq4r1nd.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wfy4hqb2.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wh069qak.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wj4r5nwg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wnjmpcsm.mjs +2 -0
- package/dist/chunks/cli-0.6.8-x87v5pq1.mjs +45 -0
- package/dist/chunks/cli-0.6.8-xj1ptmgh.mjs +2 -0
- package/dist/chunks/cli-0.6.8-y0p6bqj6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-y2c1w6bt.mjs +42 -0
- package/dist/chunks/cli-0.6.8-y3hnde8e.mjs +2 -0
- package/dist/chunks/cli-0.6.8-yvfgg1kg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-yvt0y45m.mjs +28 -0
- package/dist/chunks/cli-0.6.8-yztx4k12.mjs +18 -0
- package/dist/chunks/cli-0.6.8-z4wpf0ah.mjs +2 -0
- package/dist/chunks/client-0.6.8-8kz2zw01.mjs +1 -0
- package/dist/chunks/color-0.6.8-jhpvc051.mjs +1 -0
- package/dist/chunks/compact-0.6.8-0gcf2ncc.mjs +3 -0
- package/dist/chunks/config-0.6.8-dxk5q3qr.mjs +1 -0
- package/dist/chunks/config-0.6.8-xdt0r55h.mjs +1 -0
- package/dist/chunks/constants-0.6.8-49aaqy22.mjs +1 -0
- package/dist/chunks/context-0.6.8-tavd1s8s.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.8-6vagjsgf.mjs +1 -0
- package/dist/chunks/conversation-0.6.8-10fvebzj.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.8-fqca0jf7.mjs +1 -0
- package/dist/chunks/copy-0.6.8-rhzw5vyv.mjs +9 -0
- package/dist/chunks/cost-0.6.8-w3qf0kpn.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.8-r7cw30nn.mjs +1 -0
- package/dist/chunks/createSession-0.6.8-vwbe80jv.mjs +1 -0
- package/dist/chunks/debug-0.6.8-pzm167m4.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.8-nnx5s7ws.mjs +1367 -0
- package/dist/chunks/desktop-0.6.8-ef8y3qjr.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.8-3ayp37pd.mjs +1 -0
- package/dist/chunks/detection-0.6.8-pdrw5y2x.mjs +1 -0
- package/dist/chunks/diff-0.6.8-fxk9tzbd.mjs +1 -0
- package/dist/chunks/doctor-0.6.8-ajzrj1jx.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.8-w72jdksp.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.8-ca9mzfzf.mjs +1 -0
- package/dist/chunks/effort-0.6.8-e6xp1ycv.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.8-9vz6evg2.mjs +1 -0
- package/dist/chunks/envUtils-0.6.8-vq8np9fm.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.8-mf3acav0.mjs +1 -0
- package/dist/chunks/environments-0.6.8-k7rgvnpj.mjs +1 -0
- package/dist/chunks/errors-0.6.8-svsjkqng.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.8-7qjc7y64.mjs +1 -0
- package/dist/chunks/exit-0.6.8-507vwyf9.mjs +1 -0
- package/dist/chunks/explorer-0.6.8-25m08xd0.mjs +1 -0
- package/dist/chunks/export-0.6.8-w1yn5sa3.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.8-sahj9pr6.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.8-3r3nczjf.mjs +1 -0
- package/dist/chunks/fast-0.6.8-jpkz65vs.mjs +1 -0
- package/dist/chunks/feedback-0.6.8-5w9gvrc0.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.8-b2w3hkeb.mjs +1 -0
- package/dist/chunks/git-0.6.8-drry71tr.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.8-4phd2tn9.mjs +1 -0
- package/dist/chunks/goal-0.6.8-vp972bd7.mjs +4 -0
- package/dist/chunks/grove-0.6.8-9dr81tf3.mjs +1 -0
- package/dist/chunks/growthbook-0.6.8-fcwcztdp.mjs +1 -0
- package/dist/chunks/headless-0.6.8-m2jzbvg9.mjs +2 -0
- package/dist/chunks/heapdump-0.6.8-awp81a34.mjs +6 -0
- package/dist/chunks/help-0.6.8-hbsb7av5.mjs +1 -0
- package/dist/chunks/hookChains-0.6.8-04mbkzxt.mjs +3 -0
- package/dist/chunks/hooks-0.6.8-6x1xc1rx.mjs +1 -0
- package/dist/chunks/hooks-0.6.8-80h8h076.mjs +79 -0
- package/dist/chunks/ide-0.6.8-7vbxnmby.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.8-8m23kpm0.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.8-wcyd47px.mjs +1 -0
- package/dist/chunks/index-0.6.8-1q3w68f1.mjs +1 -0
- package/dist/chunks/index-0.6.8-1w8hv7a8.mjs +1 -0
- package/dist/chunks/index-0.6.8-2sp7v8r9.mjs +2 -0
- package/dist/chunks/index-0.6.8-3782mjyy.mjs +1 -0
- package/dist/chunks/index-0.6.8-6eeqw069.mjs +1 -0
- package/dist/chunks/index-0.6.8-7dmsg46k.mjs +5 -0
- package/dist/chunks/index-0.6.8-7prxs8kr.mjs +1 -0
- package/dist/chunks/index-0.6.8-azcjsyp8.mjs +1 -0
- package/dist/chunks/index-0.6.8-ccq5xheq.mjs +2 -0
- package/dist/chunks/index-0.6.8-dkdk0g9j.mjs +1 -0
- package/dist/chunks/index-0.6.8-dv8qe20v.mjs +1 -0
- package/dist/chunks/index-0.6.8-fsfq8ekm.mjs +1 -0
- package/dist/chunks/index-0.6.8-k3r9pz8v.mjs +1 -0
- package/dist/chunks/index-0.6.8-ke45hjqk.mjs +1 -0
- package/dist/chunks/index-0.6.8-kvjzqm75.mjs +9 -0
- package/dist/chunks/index-0.6.8-m9y8nqmz.mjs +30 -0
- package/dist/chunks/index-0.6.8-mc1wvtc8.mjs +1 -0
- package/dist/chunks/index-0.6.8-svxnm6ph.mjs +1 -0
- package/dist/chunks/index-0.6.8-vvg8dg6z.mjs +9 -0
- package/dist/chunks/index-0.6.8-wec8yb9e.mjs +1 -0
- package/dist/chunks/index-0.6.8-y535r49s.mjs +1 -0
- package/dist/chunks/index-0.6.8-yf6035wh.mjs +1 -0
- package/dist/chunks/index-0.6.8-zcf4qg35.mjs +1 -0
- package/dist/chunks/init-0.6.8-brwjmnyg.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.8-5jcj5ax3.mjs +1 -0
- package/dist/chunks/ink-0.6.8-cts7p4b7.mjs +1 -0
- package/dist/chunks/insights-0.6.8-h5b5ve9h.mjs +870 -0
- package/dist/chunks/install-0.6.8-e3gdw6r9.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.8-hh3mzyfs.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.8-n4pb88x6.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.8-67ewcnwm.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.8-ryjx3tbw.mjs +1 -0
- package/dist/chunks/keybindings-0.6.8-8v6q91kq.mjs +2 -0
- package/dist/chunks/knowledge-0.6.8-dn40ytkg.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.8-xx081act.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.8-vhh6hfk9.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.8-p15wjdk7.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.8-tjd9ekbf.mjs +1 -0
- package/dist/chunks/log-0.6.8-srvm2n7a.mjs +1 -0
- package/dist/chunks/main-0.6.8-5mcvdtte.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.8-3m2x6zgp.mjs +1 -0
- package/dist/chunks/mcp-0.6.8-3dztd40j.mjs +17 -0
- package/dist/chunks/mcp-0.6.8-5msk2pvy.mjs +4 -0
- package/dist/chunks/mcp-0.6.8-nxyt74pa.mjs +1 -0
- package/dist/chunks/mcpb-0.6.8-v8q530w6.mjs +1 -0
- package/dist/chunks/memory-0.6.8-1pkjxmpb.mjs +3 -0
- package/dist/chunks/model-0.6.8-00wgempd.mjs +2 -0
- package/dist/chunks/model-0.6.8-99m80ayt.mjs +1 -0
- package/dist/chunks/node-0.6.8-b8rvxhkh.mjs +12 -0
- package/dist/chunks/oauth-0.6.8-c2r6j7j0.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.8-z736wyft.mjs +14 -0
- package/dist/chunks/output-style-0.6.8-586m3zta.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.8-xe49mr3f.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.8-wawy5rxc.mjs +1 -0
- package/dist/chunks/parser-0.6.8-zjc9fwme.mjs +1 -0
- package/dist/chunks/passes-0.6.8-mn4rnfm9.mjs +1 -0
- package/dist/chunks/permissions-0.6.8-jdgt2sv8.mjs +1 -0
- package/dist/chunks/permissions-0.6.8-z6ybrhdp.mjs +3 -0
- package/dist/chunks/plan-0.6.8-9h16p6t0.mjs +1 -0
- package/dist/chunks/plist-0.6.8-ras7a7wc.mjs +1 -0
- package/dist/chunks/plugin-0.6.8-0p0a1k4b.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.8-ff7hmaes.mjs +1 -0
- package/dist/chunks/plugins-0.6.8-fbp29vr3.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.8-1qt932q1.mjs +2 -0
- package/dist/chunks/print-0.6.8-tm9918yr.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.8-5e2yd64z.mjs +1 -0
- package/dist/chunks/process-0.6.8-mqtgb3cx.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.8-xtx2v6da.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.8-xgvzddwk.mjs +9 -0
- package/dist/chunks/prompt-0.6.8-57r1r589.mjs +1 -0
- package/dist/chunks/prompt-0.6.8-npwq825f.mjs +1 -0
- package/dist/chunks/prompts-0.6.8-ta5q8t8a.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.8-mf45pq35.mjs +13 -0
- package/dist/chunks/provider-0.6.8-pemvh2k5.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.8-t4rbsxrj.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.8-jvfz53fe.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.8-egm6fsa2.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.8-c33k54ns.mjs +34 -0
- package/dist/chunks/registry-0.6.8-v7m02nk2.mjs +1 -0
- package/dist/chunks/release-notes-0.6.8-wwv5r86y.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.8-72v51g0k.mjs +2 -0
- package/dist/chunks/remote-env-0.6.8-gn37jake.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.8-7cd0x0sw.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.8-tr5ph176.mjs +1 -0
- package/dist/chunks/rename-0.6.8-8jb90c48.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.8-znyhk31n.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.8-we5yqk5n.mjs +1 -0
- package/dist/chunks/resume-0.6.8-x8vd5cdx.mjs +2 -0
- package/dist/chunks/rewind-0.6.8-dg7aawme.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.8-ezrfenmz.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.8-cfj9xd48.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.8-mffa8yr5.mjs +1 -0
- package/dist/chunks/session-0.6.8-6pyjb4jn.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.8-e3h9zvrp.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.8-5q6x4jx9.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.8-3tvaj86g.mjs +1 -0
- package/dist/chunks/settings-0.6.8-m72ttv29.mjs +1 -0
- package/dist/chunks/setup-0.6.8-f3y64bte.mjs +5 -0
- package/dist/chunks/sinks-0.6.8-t8e55v3b.mjs +1 -0
- package/dist/chunks/skills-0.6.8-17ktqb7y.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.8-qj52vcw4.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.8-51vrdbj6.mjs +1 -0
- package/dist/chunks/state-0.6.8-pwxe3dfk.mjs +1 -0
- package/dist/chunks/stats-0.6.8-fc152nhd.mjs +6 -0
- package/dist/chunks/status-0.6.8-bjgdnsz8.mjs +1 -0
- package/dist/chunks/stickers-0.6.8-dndn2kp3.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.8-zzdkzkpq.mjs +1 -0
- package/dist/chunks/tasks-0.6.8-zjm7dnep.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.8-prrabxj1.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.8-21bj5sj0.mjs +1 -0
- package/dist/chunks/teleport-0.6.8-jvcjg7d7.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.8-9y4235w1.mjs +1 -0
- package/dist/chunks/theme-0.6.8-wvdhk95e.mjs +1 -0
- package/dist/chunks/thinkback-0.6.8-8dn71z5r.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.8-agrskwfn.mjs +1 -0
- package/dist/chunks/toolPool-0.6.8-90318hbv.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.8-eyr73a52.mjs +1 -0
- package/dist/chunks/tools-0.6.8-mdjqydpm.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.8-b7fae7s5.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.8-sgzhfavm.mjs +69 -0
- package/dist/chunks/types-0.6.8-4gf5x9jb.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.8-5cdef89y.mjs +4 -0
- package/dist/chunks/update-0.6.8-hv3gahmz.mjs +86 -0
- package/dist/chunks/upgrade-0.6.8-w044cw9y.mjs +1 -0
- package/dist/chunks/upload-0.6.8-er3nq389.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.8-zfg8pv8q.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.8-1q2hrhb3.mjs +1 -0
- package/dist/chunks/usage-0.6.8-pc8gdf6b.mjs +1 -0
- package/dist/chunks/util-0.6.8-rt8y16fm.mjs +1 -0
- package/dist/chunks/utils-0.6.8-8nsbk9w4.mjs +1 -0
- package/dist/chunks/vim-0.6.8-y1wq10k6.mjs +1 -0
- package/dist/chunks/watcher-0.6.8-hq0y1y68.mjs +1 -0
- package/dist/chunks/wiki-0.6.8-jqbmvz1r.mjs +132 -0
- package/dist/chunks/worktree-0.6.8-hn8ac7q6.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.8-k0yys6b0.mjs +1 -0
- package/dist/chunks/wrapper-0.6.8-r1wx821t.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +0 -1
- package/dist/chunks/App-0.6.7-9x70f9jb.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +0 -7
- package/dist/chunks/Doctor-0.6.7-smded214.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +0 -6
- package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +0 -1
- package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +0 -1
- package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +0 -1
- package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +0 -110
- package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +0 -3
- package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +0 -1
- package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +0 -1
- package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +0 -1
- package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +0 -1
- package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +0 -1
- package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +0 -1
- package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +0 -4
- package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +0 -1
- package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +0 -1
- package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +0 -3
- package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +0 -4
- package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +0 -1
- package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +0 -1
- package/dist/chunks/clear-0.6.7-b2weanr6.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +0 -1
- package/dist/chunks/cli-0.6.7-09aymh1b.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +0 -28
- package/dist/chunks/cli-0.6.7-0a406bqw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +0 -42
- package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +0 -1
- package/dist/chunks/cli-0.6.7-105zxdx5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-11a89p5q.mjs +0 -2
- package/dist/chunks/cli-0.6.7-15mn3n46.mjs +0 -2
- package/dist/chunks/cli-0.6.7-17dafwxd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +0 -7
- package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +0 -12
- package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +0 -2
- package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +0 -2
- package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +0 -133
- package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +0 -5348
- package/dist/chunks/cli-0.6.7-30y87jp9.mjs +0 -3
- package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-37a1n221.mjs +0 -2
- package/dist/chunks/cli-0.6.7-393mf77x.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3anc14y3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3w59rctc.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +0 -2
- package/dist/chunks/cli-0.6.7-417g4eq7.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4723xt8g.mjs +0 -4
- package/dist/chunks/cli-0.6.7-4qezg54y.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4qv89taa.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4r8s96as.mjs +0 -18
- package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4y6eh566.mjs +0 -2
- package/dist/chunks/cli-0.6.7-568qkrtn.mjs +0 -2
- package/dist/chunks/cli-0.6.7-5jkermx7.mjs +0 -2
- package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +0 -67
- package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +0 -17
- package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +0 -2
- package/dist/chunks/cli-0.6.7-7hqt2520.mjs +0 -2
- package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +0 -2
- package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +0 -4
- package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +0 -4
- package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +0 -5
- package/dist/chunks/cli-0.6.7-895afk0q.mjs +0 -39
- package/dist/chunks/cli-0.6.7-8hg68yde.mjs +0 -3
- package/dist/chunks/cli-0.6.7-8npy06pd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +0 -2
- package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +0 -2
- package/dist/chunks/cli-0.6.7-986a2c9a.mjs +0 -20
- package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +0 -59
- package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +0 -2
- package/dist/chunks/cli-0.6.7-a49h84jx.mjs +0 -2
- package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ad305tsz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +0 -4
- package/dist/chunks/cli-0.6.7-askr0gdn.mjs +0 -12
- package/dist/chunks/cli-0.6.7-axgab18a.mjs +0 -2
- package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +0 -50
- package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +0 -4
- package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +0 -2
- package/dist/chunks/cli-0.6.7-bvke740f.mjs +0 -58
- package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +0 -45
- package/dist/chunks/cli-0.6.7-c9drqby8.mjs +0 -5
- package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-csw6s95q.mjs +0 -2
- package/dist/chunks/cli-0.6.7-cykfmytk.mjs +0 -2
- package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +0 -2
- package/dist/chunks/cli-0.6.7-d513frqa.mjs +0 -2
- package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +0 -2
- package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +0 -2
- package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +0 -2
- package/dist/chunks/cli-0.6.7-e96htnt8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-egf9dysz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ej85ys91.mjs +0 -133
- package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +0 -25
- package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +0 -6
- package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +0 -3
- package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +0 -2
- package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +0 -12
- package/dist/chunks/cli-0.6.7-g4r471w6.mjs +0 -15
- package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +0 -21
- package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +0 -2
- package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hd512c6x.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +0 -2
- package/dist/chunks/cli-0.6.7-jayzyra3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +0 -18
- package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +0 -3
- package/dist/chunks/cli-0.6.7-jvyry09r.mjs +0 -3
- package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +0 -3
- package/dist/chunks/cli-0.6.7-k69edthm.mjs +0 -2
- package/dist/chunks/cli-0.6.7-k7qq705k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +0 -17
- package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +0 -24
- package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +0 -3
- package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +0 -2
- package/dist/chunks/cli-0.6.7-me667czz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +0 -16
- package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +0 -34
- package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +0 -2
- package/dist/chunks/cli-0.6.7-msab4rsa.mjs +0 -3
- package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +0 -2
- package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +0 -3
- package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nembqgq6.mjs +0 -4
- package/dist/chunks/cli-0.6.7-njtz9caz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +0 -3
- package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nmasp64q.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nsaek892.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +0 -2
- package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +0 -3
- package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +0 -2
- package/dist/chunks/cli-0.6.7-p140ghs7.mjs +0 -4
- package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +0 -2
- package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +0 -193
- package/dist/chunks/cli-0.6.7-p77b3p80.mjs +0 -4
- package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +0 -10
- package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +0 -6
- package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +0 -2
- package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +0 -2
- package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +0 -2
- package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qkzax44g.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qnpad07x.mjs +0 -15
- package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +0 -9
- package/dist/chunks/cli-0.6.7-r2phypw4.mjs +0 -2
- package/dist/chunks/cli-0.6.7-r4494gs0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-r4njgjve.mjs +0 -2
- package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +0 -4
- package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rgfh878z.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +0 -2
- package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +0 -5
- package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +0 -8
- package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +0 -2
- package/dist/chunks/cli-0.6.7-tthw17vc.mjs +0 -6
- package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +0 -4
- package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +0 -2
- package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +0 -6
- package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-vdks0afp.mjs +0 -3
- package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-vy64g49j.mjs +0 -2
- package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +0 -2
- package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +0 -15
- package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +0 -2
- package/dist/chunks/cli-0.6.7-wyped9p6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +0 -2
- package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +0 -3
- package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ybk07j40.mjs +0 -2
- package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-z7jett9s.mjs +0 -2
- package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +0 -24
- package/dist/chunks/client-0.6.7-445v9987.mjs +0 -1
- package/dist/chunks/color-0.6.7-856m55kg.mjs +0 -1
- package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +0 -3
- package/dist/chunks/config-0.6.7-8cp9wg00.mjs +0 -1
- package/dist/chunks/config-0.6.7-h357gwre.mjs +0 -1
- package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +0 -1
- package/dist/chunks/context-0.6.7-52mqtjt5.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +0 -1
- package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +0 -1
- package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +0 -9
- package/dist/chunks/cost-0.6.7-mcmacwts.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +0 -1
- package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +0 -1
- package/dist/chunks/debug-0.6.7-40mxhr43.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +0 -1367
- package/dist/chunks/desktop-0.6.7-m8hceses.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +0 -1
- package/dist/chunks/detection-0.6.7-796dd7my.mjs +0 -1
- package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +0 -1
- package/dist/chunks/doctor-0.6.7-69xecv72.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +0 -1
- package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +0 -1
- package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +0 -1
- package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +0 -1
- package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +0 -1
- package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +0 -1
- package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +0 -1
- package/dist/chunks/export-0.6.7-nxr4yk69.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +0 -1
- package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +0 -1
- package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +0 -1
- package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +0 -1
- package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +0 -4
- package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +0 -1
- package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +0 -1
- package/dist/chunks/headless-0.6.7-35yksmzv.mjs +0 -2
- package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +0 -6
- package/dist/chunks/help-0.6.7-xe78z9ep.mjs +0 -1
- package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +0 -3
- package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +0 -79
- package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +0 -1
- package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +0 -1
- package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +0 -1
- package/dist/chunks/index-0.6.7-1ngjds1q.mjs +0 -30
- package/dist/chunks/index-0.6.7-269433vt.mjs +0 -2
- package/dist/chunks/index-0.6.7-299hd0kq.mjs +0 -1
- package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +0 -9
- package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +0 -1
- package/dist/chunks/index-0.6.7-938hete3.mjs +0 -1
- package/dist/chunks/index-0.6.7-9qxbggwj.mjs +0 -1
- package/dist/chunks/index-0.6.7-adw6e99t.mjs +0 -1
- package/dist/chunks/index-0.6.7-da5n32m6.mjs +0 -1
- package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +0 -1
- package/dist/chunks/index-0.6.7-fewh0t9g.mjs +0 -1
- package/dist/chunks/index-0.6.7-jyep217e.mjs +0 -1
- package/dist/chunks/index-0.6.7-mmh99nq4.mjs +0 -1
- package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +0 -2
- package/dist/chunks/index-0.6.7-pspakten.mjs +0 -1
- package/dist/chunks/index-0.6.7-qy50jasm.mjs +0 -5
- package/dist/chunks/index-0.6.7-r7sewgza.mjs +0 -1
- package/dist/chunks/index-0.6.7-tet87444.mjs +0 -1
- package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +0 -1
- package/dist/chunks/index-0.6.7-xhxjqdft.mjs +0 -1
- package/dist/chunks/index-0.6.7-yc13tnk8.mjs +0 -1
- package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +0 -9
- package/dist/chunks/init-0.6.7-9mxee8s9.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +0 -1
- package/dist/chunks/ink-0.6.7-24swqw8m.mjs +0 -1
- package/dist/chunks/insights-0.6.7-wf368crb.mjs +0 -870
- package/dist/chunks/install-0.6.7-a9dezzjy.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +0 -1
- package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +0 -2
- package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +0 -1
- package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +0 -1
- package/dist/chunks/main-0.6.7-epme77xk.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +0 -1
- package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +0 -17
- package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +0 -4
- package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +0 -1
- package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +0 -1
- package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +0 -3
- package/dist/chunks/model-0.6.7-bnf162h5.mjs +0 -2
- package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +0 -1
- package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +0 -12
- package/dist/chunks/oauth-0.6.7-ecry38es.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +0 -14
- package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +0 -1
- package/dist/chunks/parser-0.6.7-dwxttek7.mjs +0 -1
- package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +0 -1
- package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +0 -3
- package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +0 -1
- package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +0 -1
- package/dist/chunks/plist-0.6.7-vcn459ke.mjs +0 -1
- package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +0 -1
- package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +0 -2
- package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +0 -1
- package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +0 -9
- package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +0 -1
- package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +0 -1
- package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +0 -13
- package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +0 -34
- package/dist/chunks/registry-0.6.7-vnf153w2.mjs +0 -1
- package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +0 -2
- package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +0 -1
- package/dist/chunks/rename-0.6.7-9hky49hm.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +0 -1
- package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +0 -2
- package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +0 -1
- package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +0 -1
- package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +0 -1
- package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +0 -5
- package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +0 -1
- package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +0 -1
- package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +0 -1
- package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +0 -6
- package/dist/chunks/status-0.6.7-4dybregh.mjs +0 -1
- package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +0 -1
- package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +0 -1
- package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +0 -1
- package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +0 -1
- package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +0 -1
- package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +0 -1
- package/dist/chunks/tools-0.6.7-w23c68c1.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +0 -69
- package/dist/chunks/types-0.6.7-q8m8v654.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +0 -4
- package/dist/chunks/update-0.6.7-gwfz54bh.mjs +0 -86
- package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +0 -1
- package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +0 -1
- package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +0 -1
- package/dist/chunks/util-0.6.7-3z6r92wt.mjs +0 -1
- package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +0 -1
- package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +0 -1
- package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +0 -1
- package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +0 -132
- package/dist/chunks/worktree-0.6.7-214cy52d.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +0 -1
- package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +0 -7
- /package/dist/chunks/{cli-0.6.7-790sqdfy.mjs → cli-0.6.8-0fra5z78.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-nzdwcqxv.mjs → cli-0.6.8-0s2z302k.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-z26mhn5a.mjs → cli-0.6.8-259kprym.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-32sp32ph.mjs → cli-0.6.8-7cychtp8.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-7ggj90ge.mjs → cli-0.6.8-9bt8c69s.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-zwf5adf9.mjs → cli-0.6.8-aasxytdk.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-pgcg3w1c.mjs → cli-0.6.8-akzaeas1.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-04v8p8ay.mjs → cli-0.6.8-fe86xfp4.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I7 as P}from"./cli-0.6.8-5y8n5kpk.mjs";import{xpa as p,ypa as w}from"./cli-0.6.8-reyv7f1y.mjs";import"./cli-0.6.8-0zdwjw7h.mjs";import{Lpa as u,Mpa as a}from"./cli-0.6.8-259kprym.mjs";var d,t,f,E,_,v=(r,e,s)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let i=new Date;if(new Date(e.Expiration)<i)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let o=e.AccountId;if(!o&&s?.[r]?.aws_account_id)o=s[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...o&&{accountId:o}};return _.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},x=async(r,e,s)=>{let o=e[r];if(e[r]){let n=o.credential_process;if(n!==void 0){let i=E.promisify(d.externalDataInterceptor?.getTokenRecord?.().exec??f.exec);try{let{stdout:c}=await i(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return v(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:s})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})},h=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await d.parseKnownFiles(r);return x(d.getProfileName({profile:r.profile??e?.profile}),s,r.logger)},y;var S=u(()=>{d=P(),t=w(),f=a("node:child_process"),E=a("node:util"),_=p();y=h});S();export{y as fromProcess};export default {get fromProcess(){return y}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e7 as a}from"./cli-0.6.8-grdpt7ss.mjs";import"./cli-0.6.8-reyv7f1y.mjs";import"./cli-0.6.8-0zdwjw7h.mjs";import"./cli-0.6.8-259kprym.mjs";export default a();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{e7 as V}from"./cli-0.6.8-grdpt7ss.mjs";import{I7 as W}from"./cli-0.6.8-5y8n5kpk.mjs";import{ypa as g}from"./cli-0.6.8-reyv7f1y.mjs";import"./cli-0.6.8-0zdwjw7h.mjs";import{Hpa as H,Lpa as F,Mpa as O}from"./cli-0.6.8-259kprym.mjs";function M(b,q){let j=N(b),B,G,z,Q=async(J)=>{if(J?.forceRefresh)return await j(J);if(z?.expiration){if(z?.expiration?.getTime()<Date.now())z=void 0}if(B)await B;else if(!z||q?.(z))if(z){if(!G)G=j(J).then((X)=>{z=X}).finally(()=>{G=void 0})}else return B=j(J).then((X)=>{z=X}).finally(()=>{B=void 0}),Q(J);return z};return Q}var Y,K,h,Z="AWS_EC2_METADATA_DISABLED",x=async(b)=>{let{ENV_CMDS_FULL_URI:q,ENV_CMDS_RELATIVE_URI:j,fromContainerMetadata:B,fromInstanceMetadata:G}=await import("./index-0.6.8-ccq5xheq.mjs");if(process.env[j]||process.env[q]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:z}=await import("./index-0.6.8-7dmsg46k.mjs").then((m)=>H(m.default,1));return K.chain(z(b),B(b))}if(process.env[Z]&&process.env[Z]!=="false")return async()=>{throw new K.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),G(b)},N=(b)=>async(q)=>{let j;for(let B of b)try{return await B(q)}catch(G){if(j=G,G?.tryNextLink)continue;throw G}throw j},$=!1,T=(b={})=>M([async()=>{if(b.profile??process.env[h.ENV_PROFILE]){if(process.env[Y.ENV_KEY]&&process.env[Y.ENV_SECRET]){if(!$)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn.bind(b.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
2
|
+
Multiple credential sources detected:
|
|
3
|
+
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
4
|
+
This SDK will proceed with the AWS_PROFILE value.
|
|
5
|
+
|
|
6
|
+
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
7
|
+
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
8
|
+
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
9
|
+
`),$=!0}throw new K.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:b.logger,tryNextLink:!0})}return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Y.fromEnv(b)()},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:j,ssoAccountId:B,ssoRegion:G,ssoRoleName:z,ssoSession:Q}=b;if(!j&&!B&&!G&&!z&&!Q)throw new K.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:b.logger});let{fromSSO:J}=await import("./index-0.6.8-2sp7v8r9.mjs");return J(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:j}=await import("./index-0.6.8-zcf4qg35.mjs");return j(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:j}=await import("./index-0.6.8-mc1wvtc8.mjs");return j(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:j}=await import("./index-0.6.8-ke45hjqk.mjs").then((m)=>H(m.default,1));return j(b)(q)},async()=>{return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await x(b))()},async()=>{throw new K.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:b.logger})}],D),U=(b)=>b?.expiration!==void 0,D=(b)=>b?.expiration!==void 0&&b.expiration.getTime()-Date.now()<300000,C,u,A;var R=F(()=>{Y=V(),K=g(),h=W();C=D,u=U,A=T});R();export{A as defaultProvider,u as credentialsWillNeedRefresh,C as credentialsTreatedAsExpired};export default {get defaultProvider(){return A},get credentialsWillNeedRefresh(){return u},get credentialsTreatedAsExpired(){return C}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ai as l,bi as $X}from"./cli-0.6.8-nwtmpseh.mjs";import{g1 as m,h1 as YX}from"./cli-0.6.8-bh09cgap.mjs";import{$oa as B,bpa as F,rpa as u}from"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import{Lpa as r,Mpa as XX}from"./cli-0.6.8-259kprym.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.8-y535r49s.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.8-xe49mr3f.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O6 as a}from"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-259kprym.mjs";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A7 as Xt,B7 as Ct,C7 as ft,D7 as Ft,E7 as $t,F7 as uo,G7 as Oo,g7 as w,h7 as so,i7 as no,j7 as co,k7 as ce,l7 as Rt,m7 as Rr,n7 as ao,o7 as _e,p7 as po,q7 as lo,r7 as ge,s7 as h,t7 as vr,u7 as Vt,v7 as Wt,x7 as Yt,y7 as Jt,z7 as Kt}from"./cli-0.6.8-ta6qf4we.mjs";import{H7 as Ye}from"./cli-0.6.8-tnqnaqpx.mjs";import{wpa as Tt,xpa as Bt}from"./cli-0.6.8-reyv7f1y.mjs";import{zpa as Lt}from"./cli-0.6.8-00w6vgmt.mjs";import{Bpa as xe}from"./cli-0.6.8-0zdwjw7h.mjs";import{Jpa as v}from"./cli-0.6.8-259kprym.mjs";var U=v((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.resolveHttpAuthSchemeConfig=re.defaultSSOOIDCHttpAuthSchemeProvider=re.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var Er=w(),j=vr(),Sr=async(e,r,i)=>{return{operation:(0,j.getSmithyContext)(r).operation,region:await(0,j.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};re.defaultSSOOIDCHttpAuthSchemeParametersProvider=Sr;function Ir(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,i)=>({signingProperties:{config:r,context:i}})}}function Pr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(Pr(e));break}default:r.push(Ir(e))}return r};re.defaultSSOOIDCHttpAuthSchemeProvider=xr;var Dr=(e)=>{let r=(0,Er.resolveAwsSdkSigV4Config)(e);return Object.assign(r,{authSchemePreference:(0,j.normalizeProvider)(e.authSchemePreference??[])})};re.resolveHttpAuthSchemeConfig=Dr});var le=v((ae)=>{Object.defineProperty(ae,"__esModule",{value:!0});ae.bdd=void 0;var yr=ce(),D="ref",S=-1,y=!0,oe="isSet",de="PartitionResult",N="booleanEquals",M="getAttr",ie={[D]:"Endpoint"},A={[D]:de},x={},se=[{[D]:"Region"}],ne={conditions:[[oe,[ie]],[oe,se],["aws.partition",se,de],[N,[{[D]:"UseFIPS"},y]],[N,[{[D]:"UseDualStack"},y]],[N,[{fn:M,argv:[A,"supportsDualStack"]},y]],[N,[{fn:M,argv:[A,"supportsFIPS"]},y]],["stringEquals",[{fn:M,argv:[A,"name"]},"aws-us-gov"]]],results:[[S],[S,"Invalid Configuration: FIPS and custom endpoint are not supported"],[S,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ie,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[S,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[S,"Invalid Configuration: Missing Region"]]},Nr=2,n=1e8,hr=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]);ae.bdd=yr.BinaryDecisionDiagram.from(hr,Nr,ne.conditions,ne.results)});var ve=v((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var fr=Rr(),G=ce(),Fr=le(),$r=new G.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),jr=(e,r={})=>{return $r.get(e,()=>(0,G.decideEndpoint)(Fr.bdd,{endpointParams:e,logger:r.logger}))};ue.defaultEndpointResolver=jr;G.customEndpointFunctions.aws=fr.awsEndpointFunctions});var R=v((z)=>{Object.defineProperty(z,"__esModule",{value:!0});z.SSOOIDCServiceException=z.__ServiceException=void 0;var Ee=h();Object.defineProperty(z,"__ServiceException",{enumerable:!0,get:function(){return Ee.ServiceException}});class m extends Ee.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,m.prototype)}}z.SSOOIDCServiceException=m});var Q=v((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.UnsupportedGrantTypeException=Ie.UnauthorizedClientException=Ie.SlowDownException=Ie.InvalidScopeException=Ie.InvalidRequestException=Ie.InvalidGrantException=Ie.InvalidClientException=Ie.InternalServerException=Ie.ExpiredTokenException=Ie.AuthorizationPendingException=Ie.AccessDeniedException=void 0;var a=R();class H extends a.SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.AccessDeniedException=H;class L extends a.SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.AuthorizationPendingException=L;class T extends a.SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.ExpiredTokenException=T;class B extends a.SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InternalServerException=B;class V extends a.SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidClientException=V;class W extends a.SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidGrantException=W;class Y extends a.SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.InvalidRequestException=Y;class J extends a.SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidScopeException=J;class K extends a.SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.SlowDownException=K;class X extends a.SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnauthorizedClientException=X;class C extends a.SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnsupportedGrantTypeException=C});var Z=v((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.CreateToken$=Re.CreateTokenResponse$=Re.CreateTokenRequest$=Re.errorTypeRegistries=Re.UnsupportedGrantTypeException$=Re.UnauthorizedClientException$=Re.SlowDownException$=Re.InvalidScopeException$=Re.InvalidRequestException$=Re.InvalidGrantException$=Re.InvalidClientException$=Re.InternalServerException$=Re.ExpiredTokenException$=Re.AuthorizationPendingException$=Re.AccessDeniedException$=Re.SSOOIDCServiceException$=void 0;var Br="AccessDeniedException",Vr="AuthorizationPendingException",Wr="AccessToken",Yr="ClientSecret",Jr="CreateToken",Kr="CreateTokenRequest",Xr="CreateTokenResponse",Cr="CodeVerifier",Qr="ExpiredTokenException",Zr="InvalidClientException",kr="InvalidGrantException",_r="InvalidRequestException",gr="InternalServerException",et="InvalidScopeException",rt="IdToken",tt="RefreshToken",ot="SlowDownException",it="UnauthorizedClientException",st="UnsupportedGrantTypeException",nt="accessToken",O="client",ct="clientId",dt="clientSecret",at="codeVerifier",pt="code",lt="deviceCode",t="error",ut="expiresIn",p="error_description",Ot="grantType",vt="http",l="httpError",Et="idToken",De="reason",be="refreshToken",St="redirectUri",qe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",It="scope",Pt="server",xt="tokenType",o="com.amazonaws.ssooidc",ye=xe(),u=Q(),Dt=R(),Ne=ye.TypeRegistry.for(qe);Re.SSOOIDCServiceException$=[-3,qe,"SSOOIDCServiceException",0,[],[]];Ne.registerError(Re.SSOOIDCServiceException$,Dt.SSOOIDCServiceException);var c=ye.TypeRegistry.for(o);Re.AccessDeniedException$=[-3,o,Br,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.AccessDeniedException$,u.AccessDeniedException);Re.AuthorizationPendingException$=[-3,o,Vr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.AuthorizationPendingException$,u.AuthorizationPendingException);Re.ExpiredTokenException$=[-3,o,Qr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.ExpiredTokenException$,u.ExpiredTokenException);Re.InternalServerException$=[-3,o,gr,{[t]:Pt,[l]:500},[t,p],[0,0]];c.registerError(Re.InternalServerException$,u.InternalServerException);Re.InvalidClientException$=[-3,o,Zr,{[t]:O,[l]:401},[t,p],[0,0]];c.registerError(Re.InvalidClientException$,u.InvalidClientException);Re.InvalidGrantException$=[-3,o,kr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidGrantException$,u.InvalidGrantException);Re.InvalidRequestException$=[-3,o,_r,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.InvalidRequestException$,u.InvalidRequestException);Re.InvalidScopeException$=[-3,o,et,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidScopeException$,u.InvalidScopeException);Re.SlowDownException$=[-3,o,ot,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.SlowDownException$,u.SlowDownException);Re.UnauthorizedClientException$=[-3,o,it,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnauthorizedClientException$,u.UnauthorizedClientException);Re.UnsupportedGrantTypeException$=[-3,o,st,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnsupportedGrantTypeException$,u.UnsupportedGrantTypeException);Re.errorTypeRegistries=[Ne,c];var bt=[0,o,Wr,8,0],qt=[0,o,Yr,8,0],yt=[0,o,Cr,8,0],Nt=[0,o,rt,8,0],he=[0,o,tt,8,0];Re.CreateTokenRequest$=[3,o,Kr,0,[ct,dt,Ot,lt,pt,be,It,St,at],[0,[()=>qt,0],0,0,0,[()=>he,0],64,0,[()=>yt,0]],3];Re.CreateTokenResponse$=[3,o,Xr,0,[nt,xt,ut,be,Et],[[()=>bt,0],0,1,[()=>he,0],[()=>Nt,0]]];Re.CreateToken$=[9,o,Jr,{[vt]:["POST","/token",200]},()=>Re.CreateTokenRequest$,()=>Re.CreateTokenResponse$]});var Xe=v((Je)=>{Object.defineProperty(Je,"__esModule",{value:!0});Je.getRuntimeConfig=void 0;var jt=w(),wt=Ft(),Ut=Ye(),Mt=h(),At=Rt(),Ve=$t(),We=ft(),Gt=U(),mt=ve(),zt=Z(),Ht=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ve.fromBase64,base64Encoder:e?.base64Encoder??Ve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??mt.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Gt.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new jt.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ut.NoAuthSigner}],logger:e?.logger??new Mt.NoOpLogger,protocol:e?.protocol??wt.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:zt.errorTypeRegistries,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??At.parseUrl,utf8Decoder:e?.utf8Decoder??We.fromUtf8,utf8Encoder:e?.utf8Encoder??We.toUtf8}};Je.getRuntimeConfig=Ht});var tr=v((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.getRuntimeConfig=void 0;var Qt=Vt(),Zt=Qt.__importDefault(Wt()),kt=Bt(),_t=w(),Ce=Yt(),f=_e(),gt=Jt(),Qe=ge(),I=Kt(),Ze=Lt(),ke=h(),eo=Xt(),ro=Ct(),to=Tt(),oo=Xe(),io=(e)=>{(0,ke.emitWarningIfUnsupportedVersion)(process.version);let r=(0,ro.resolveDefaultsModeConfig)(e),i=()=>r().then(ke.loadConfigsForDefaultMode),d=(0,oo.getRuntimeConfig)(e);(0,kt.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:r,authSchemePreference:e?.authSchemePreference??(0,I.loadConfig)(_t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??eo.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Ce.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Zt.default.version}),maxAttempts:e?.maxAttempts??(0,I.loadConfig)(Qe.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,I.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:Ze.NodeHttpHandler.create(e?.requestHandler??i),retryMode:e?.retryMode??(0,I.loadConfig)({...Qe.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||to.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??gt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ze.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,I.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,I.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,I.loadConfig)(Ce.NODE_APP_ID_CONFIG_OPTIONS,s)}};er.getRuntimeConfig=io});var zo=v((E)=>{var or=so(),vo=no(),Eo=co(),ir=ao(),So=_e(),k=Ye(),Io=xe(),Po=po(),ar=lo(),sr=ge(),P=h(),nr=U(),xo=tr(),cr=uo(),dr=Oo(),b=Z(),F=Q(),Do=R(),bo=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},qo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},yo=(e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:i,credentials:d}=e;return{setHttpAuthScheme(s){let q=r.findIndex(($)=>$.schemeId===s.schemeId);if(q===-1)r.push(s);else r.splice(q,1,s)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(s){i=s},httpAuthSchemeProvider(){return i},setCredentials(s){d=s},credentials(){return d}}},No=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ho=(e,r)=>{let i=Object.assign(cr.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),dr.getHttpHandlerExtensionConfiguration(e),yo(e));return r.forEach((d)=>d.configure(i)),Object.assign(e,cr.resolveAwsRegionExtensionConfiguration(i),P.resolveDefaultRuntimeConfig(i),dr.resolveHttpHandlerRuntimeConfig(i),No(i))};class _ extends P.Client{config;constructor(...[e]){let r=xo.getRuntimeConfig(e||{});super(r);this.initConfig=r;let i=bo(r),d=ir.resolveUserAgentConfig(i),s=sr.resolveRetryConfig(d),q=So.resolveRegionConfig(s),$=or.resolveHostHeaderConfig(q),pr=ar.resolveEndpointConfig($),lr=nr.resolveHttpAuthSchemeConfig(pr),ur=ho(lr,e?.extensions||[]);this.config=ur,this.middlewareStack.use(Io.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(ir.getUserAgentPlugin(this.config)),this.middlewareStack.use(sr.getRetryPlugin(this.config)),this.middlewareStack.use(Po.getContentLengthPlugin(this.config)),this.middlewareStack.use(or.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vo.getLoggerPlugin(this.config)),this.middlewareStack.use(Eo.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(k.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:nr.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Or)=>new k.DefaultIdentityProviderConfig({"aws.auth#sigv4":Or.credentials})})),this.middlewareStack.use(k.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends P.Command.classBuilder().ep(qo).m(function(e,r,i,d){return[ar.getEndpointPlugin(i,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(b.CreateToken$).build(){}var Ro={CreateTokenCommand:g};class ee extends _{}P.createAggregatedClient(Ro,ee);var fo={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Fo={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};E.$Command=P.Command;E.__Client=P.Client;E.SSOOIDCServiceException=Do.SSOOIDCServiceException;E.AccessDeniedExceptionReason=fo;E.CreateTokenCommand=g;E.InvalidRequestExceptionReason=Fo;E.SSOOIDC=ee;E.SSOOIDCClient=_;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=b[e]});Object.prototype.hasOwnProperty.call(F,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:F.__proto__});Object.keys(F).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=F[e]})});export default zo();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I7 as G}from"./cli-0.6.8-5y8n5kpk.mjs";import{xpa as _,ypa as U}from"./cli-0.6.8-reyv7f1y.mjs";import{Gpa as X}from"./cli-0.6.8-0zdwjw7h.mjs";import{Hpa as K,Jpa as B,Lpa as l,Mpa as E}from"./cli-0.6.8-259kprym.mjs";var v=B((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.resolveHttpHandlerRuntimeConfig=k.getHttpHandlerExtensionConfiguration=k.isValidHostname=k.HttpResponse=k.HttpRequest=k.Fields=k.Field=void 0;var H=X();Object.defineProperty(k,"Field",{enumerable:!0,get:function(){return H.Field}});Object.defineProperty(k,"Fields",{enumerable:!0,get:function(){return H.Fields}});Object.defineProperty(k,"HttpRequest",{enumerable:!0,get:function(){return H.HttpRequest}});Object.defineProperty(k,"HttpResponse",{enumerable:!0,get:function(){return H.HttpResponse}});Object.defineProperty(k,"isValidHostname",{enumerable:!0,get:function(){return H.isValidHostname}});Object.defineProperty(k,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return H.getHttpHandlerExtensionConfiguration}});Object.defineProperty(k,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return H.resolveHttpHandlerRuntimeConfig}})});var J=B((C)=>{var Q=_(),T=U(),P=G(),W=v(),F=E("node:crypto"),q=E("node:fs"),Z=E("node:os"),A=E("node:path");class ${profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,n,t){this.profileData=e,this.init=n,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new T.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=e.accessToken,t=Date.now();if(new Date(n.expiresAt).getTime()-t<=$.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:n,CreateOAuth2TokenCommand:t}=await import("./index-0.6.8-6eeqw069.mjs").then((m)=>K(m.default)),{logger:s,userAgentAppId:c}=this.callerClientConfig??{},r=((h)=>{return h?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,a=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,i=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:a,requestHandler:r,logger:s,userAgentAppId:c,...this.init?.clientConfig});this.createDPoPInterceptor(i.middlewareStack);let x={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let h=await i.send(new t(x)),{accessKeyId:y,secretAccessKey:d,sessionToken:I}=h.tokenOutput?.accessToken??{},{refreshToken:S,expiresIn:m}=h.tokenOutput??{};if(!y||!d||!I||!S)throw new T.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(m??900)*1000,b=new Date(Date.now()+R),j={...e,accessToken:{...e.accessToken,accessKeyId:y,secretAccessKey:d,sessionToken:I,expiresAt:b.toISOString()},refreshToken:S};await this.saveToken(j);let o=j.accessToken;return{accessKeyId:o.accessKeyId,secretAccessKey:o.secretAccessKey,sessionToken:o.sessionToken,accountId:o.accountId,expiration:b}}catch(h){if(h.name==="AccessDeniedException"){let y=h.error,d;switch(y){case"TOKEN_EXPIRED":d="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":d="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":d="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:d=`Failed to refresh token: ${String(h)}. Please re-authenticate using \`aws login\``}throw new T.CredentialsProviderError(d,{logger:this.logger,tryNextLink:!1})}throw new T.CredentialsProviderError(`Failed to refresh token: ${String(h)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let n;try{n=await P.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{n=await q.promises.readFile(e,"utf8")}let t=JSON.parse(n),s=["accessToken","clientId","refreshToken","dpopKey"].filter((c)=>!t[c]);if(!t.accessToken?.accountId)s.push("accountId");if(s.length>0)throw new T.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(n){throw new T.CredentialsProviderError(`Failed to load token from ${e}: ${String(n)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let n=this.getTokenFilePath(),t=A.dirname(n);try{await q.promises.mkdir(t,{recursive:!0})}catch(s){}await q.promises.writeFile(n,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A.join(Z.homedir(),".aws","login","cache"),n=Buffer.from(this.loginSession,"utf8"),t=F.createHash("sha256").update(n).digest("hex");return A.join(e,`${t}.json`)}derToRawSignature(e){let n=2;if(e[n]!==2)throw Error("Invalid DER signature");n++;let t=e[n++],s=e.subarray(n,n+t);if(n+=t,e[n]!==2)throw Error("Invalid DER signature");n++;let c=e[n++],u=e.subarray(n,n+c);s=s[0]===0?s.subarray(1):s,u=u[0]===0?u.subarray(1):u;let r=Buffer.concat([Buffer.alloc(32-s.length),s]),a=Buffer.concat([Buffer.alloc(32-u.length),u]);return Buffer.concat([r,a])}createDPoPInterceptor(e){e.add((n)=>async(t)=>{if(W.HttpRequest.isInstance(t.request)){let s=t.request,c=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,u=await this.generateDpop(s.method,c);s.headers={...s.headers,DPoP:u}}return n(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",n){let t=await this.loadToken();try{let s=F.createPrivateKey({key:t.dpopKey,format:"pem",type:"sec1"}),u=F.createPublicKey(s).export({format:"der",type:"spki"}),r=-1;for(let b=0;b<u.length;b++)if(u[b]===4){r=b;break}let a=u.slice(r+1,r+33),i=u.slice(r+33,r+65),x={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:a.toString("base64url"),y:i.toString("base64url")}},h={jti:crypto.randomUUID(),htm:e,htu:n,iat:Math.floor(Date.now()/1000)},y=Buffer.from(JSON.stringify(x)).toString("base64url"),d=Buffer.from(JSON.stringify(h)).toString("base64url"),I=`${y}.${d}`,S=F.sign("sha256",Buffer.from(I),s),R=this.derToRawSignature(S).toString("base64url");return`${I}.${R}`}catch(s){throw new T.CredentialsProviderError(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}}var N=(e)=>async({callerClientConfig:n}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P.parseKnownFiles(e||{}),s=P.getProfileName({profile:e?.profile??n?.profile}),c=t[s];if(!c?.login_session)throw new T.CredentialsProviderError(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let r=await new $(c,e,n).loadCredentials();return Q.setCredentialFeature(r,"CREDENTIALS_LOGIN","AD")};C.fromLoginCredentials=N});var L,O,w,p,ee=(e,n,t)=>{let s={EcsContainer:async(c)=>{let{fromHttp:u}=await import("./index-0.6.8-7dmsg46k.mjs").then((m)=>K(m.default,1)),{fromContainerMetadata:r}=await import("./index-0.6.8-ccq5xheq.mjs");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>O.chain(u(c??{}),r(c))().then(D)},Ec2InstanceMetadata:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:u}=await import("./index-0.6.8-ccq5xheq.mjs");return async()=>u(c)().then(D)},Environment:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:u}=await import("./index-0.6.8-svxnm6ph.mjs");return async()=>u(c)().then(D)}};if(e in s)return s[e];else throw new O.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},D=(e)=>w.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),te=(e,{profile:n="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(ne(e,{profile:n,logger:t})||se(e,{profile:n,logger:t}))},ne=(e,{profile:n,logger:t})=>{let s=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(s)t?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return s},se=(e,{profile:n,logger:t})=>{let s=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(s)t?.debug?.(` ${n} isCredentialSourceProfile credential_source=${e.credential_source}`);return s},re=async(e,n,t,s,c={},u)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let r=n[e],{source_profile:a,region:i}=r;if(!t.roleAssumer){let{getDefaultRoleAssumer:h}=await import("./index-0.6.8-fsfq8ekm.mjs").then((m)=>K(m.default,1));t.roleAssumer=h({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...s,...t?.parentClientConfig,region:i??t?.parentClientConfig?.region??s?.region}},t.clientPlugins)}if(a&&a in c)throw new O.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${L.getProfileName(t)}. Profiles visited: `+Object.keys(c).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${e}]`}`);let x=a?u(a,n,t,s,{...c,[a]:!0},V(n[a]??{})):(await ee(r.credential_source,e,t.logger)(t))();if(V(r))return x.then((h)=>w.setCredentialFeature(h,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let h={RoleArn:r.role_arn,RoleSessionName:r.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:r.external_id,DurationSeconds:parseInt(r.duration_seconds||"3600",10)},{mfa_serial:y}=r;if(y){if(!t.mfaCodeProvider)throw new O.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});h.SerialNumber=y,h.TokenCode=await t.mfaCodeProvider(y)}let d=await x;return t.roleAssumer(d,h).then((I)=>w.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},V=(e)=>{return!e.role_arn&&!!e.credential_source},ce=(e)=>{return Boolean(e&&e.login_session)},ue=async(e,n,t)=>{let s=await p.fromLoginCredentials({...n,profile:e})({callerClientConfig:t});return w.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")},he=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",ae=async(e,n)=>import("./index-0.6.8-mc1wvtc8.mjs").then(({fromProcess:t})=>t({...e,profile:n})().then((s)=>w.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v"))),de=async(e,n,t={},s)=>{let{fromSSO:c}=await import("./index-0.6.8-2sp7v8r9.mjs");return c({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:s}).then((u)=>{if(n.sso_session)return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO","r");else return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},ye=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),Y=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,g=async(e,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return w.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")},ke=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,we=async(e,n,t)=>import("./index-0.6.8-ke45hjqk.mjs").then((m)=>K(m.default,1)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:t}).then((c)=>w.setCredentialFeature(c,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),z=async(e,n,t,s,c={},u=!1)=>{let r=n[e];if(Object.keys(c).length>0&&Y(r))return g(r,t);if(u||te(r,{profile:e,logger:t.logger}))return re(e,n,t,s,c,z);if(Y(r))return g(r,t);if(ke(r))return we(r,t,s);if(he(r))return ae(t,e);if(ye(r))return await de(e,r,t,s);if(ce(r))return ue(e,t,s);throw new O.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})},Te=(e={})=>async({callerClientConfig:n}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await L.parseKnownFiles(e);return z(L.getProfileName({profile:e.profile??n?.profile}),t,e,n)},Ee;var Ie=l(()=>{L=G(),O=U(),w=_(),p=J();Ee=Te});Ie();export{Ee as fromIni};export default {get fromIni(){return Ee}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L as a,M as b}from"./cli-0.6.8-gcnabbk4.mjs";import"./cli-0.6.8-25he0rqv.mjs";import"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import"./cli-0.6.8-vqhtd9ay.mjs";import"./cli-0.6.8-xj1ptmgh.mjs";import"./cli-0.6.8-y3hnde8e.mjs";import"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import"./cli-0.6.8-259kprym.mjs";export{b as initializeTelemetryAfterTrust,a as init};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$a as RQ}from"./cli-0.6.8-dvkyrzw7.mjs";import{ab as GQ,bb as AJ,cb as WQ,db as NQ,eb as OQ,fb as fQ}from"./cli-0.6.8-nz7pwsys.mjs";import{gb as vJ,hb as zZ}from"./cli-0.6.8-y0p6bqj6.mjs";import{ib as PQ,jb as UQ,kb as wQ}from"./cli-0.6.8-bp3vvgaw.mjs";import"./cli-0.6.8-mkfx6c2h.mjs";import{pb as yQ,qb as BQ,rb as bJ,sb as AQ}from"./cli-0.6.8-7nqm28z4.mjs";import"./cli-0.6.8-qg557m5n.mjs";import{Ab as CJ,Bb as mJ,wb as TJ,xb as _Q,yb as qQ,zb as LQ}from"./cli-0.6.8-r1yjkwda.mjs";import"./cli-0.6.8-aasxytdk.mjs";import{$b as QZ,bc as bZ}from"./cli-0.6.8-wdjsawer.mjs";import{ie as sQ,je as nQ,ke as TZ}from"./cli-0.6.8-abapkbf0.mjs";import{Re as pJ,Ue as mZ}from"./cli-0.6.8-b3v9vbq6.mjs";import"./cli-0.6.8-416cqzak.mjs";import{ff as rQ,hf as eQ,if as JZ,jf as CZ}from"./cli-0.6.8-kv1xtman.mjs";import{mf as VQ,nf as HQ,pf as i,qf as xQ}from"./cli-0.6.8-z4wpf0ah.mjs";import{ci as lQ,ei as KJ,fi as aQ,gi as kZ}from"./cli-0.6.8-0yz4b8v5.mjs";import{DP as vZ,Ll as pQ,Ml as EZ,Pj as IQ,QR as SZ,VD as uQ,WD as dQ,aE as hZ,dR as qJ,iP as ZZ,pP as $Z}from"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import"./cli-0.6.8-vqhtd9ay.mjs";import{CU as DJ,DU as _Z}from"./cli-0.6.8-xj1ptmgh.mjs";import{NU as XQ,RU as qZ}from"./cli-0.6.8-y3hnde8e.mjs";import{TU as gQ,VU as iQ,WU as tQ,XU as oQ,_U as DZ}from"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import{MV as jQ,OV as LZ}from"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import{B0 as cQ,C0 as zQ,D0 as KQ,F0 as YQ}from"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import{S5 as SJ,U5 as IJ,W5 as SQ,a3 as vQ,d3 as MZ,k5 as OJ,l5 as OZ,q6 as FZ}from"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import{$da as wZ,Hca as fZ,V8 as DQ,X8 as TQ,Zda as bQ,j8 as GJ,jca as CQ,l8 as NZ,l9 as UZ,mca as mQ}from"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import{mfa as kQ,xfa as PZ}from"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import{Lga as q,Oga as xZ}from"./cli-0.6.8-dxtyt1wg.mjs";import{Oha as J,Rga as eJ,Rha as $Q,Tga as GZ}from"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import{gia as D,nia as ZQ}from"./cli-0.6.8-cv73s4x5.mjs";import{Bia as QQ,Dia as WZ,tia as JQ}from"./cli-0.6.8-4jh3r7br.mjs";import{eoa as RZ,hka as _J,nka as hQ}from"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import{Mpa as rJ}from"./cli-0.6.8-259kprym.mjs";RZ();PZ();MZ();hZ();FZ();fZ();$Q();wZ();ZQ();UZ();mZ();vZ();SZ();TZ();EZ();kZ();DZ();CZ();xQ();bZ();import{hostname as IZ}from"os";import{randomUUID as oJ}from"crypto";$Q();NZ();xZ();GZ();YQ();LZ();qZ();_Z();WZ();xQ();ZQ();OZ();var yZ=2000,sJ=60000,nJ=900000,BZ=0;async function MQ(p){let{dir:L,machineName:T,branch:y,gitRepoUrl:t,title:o,baseUrl:s,sessionIngressUrl:w,workerType:S,getAccessToken:n,createSession:r,archiveSession:l,getCurrentTitle:ZJ=()=>o,toSDKMessages:YJ=()=>{throw Error("BridgeCoreParams.toSDKMessages not provided. Pass it if you use writeMessages() or initialMessages — daemon callers that only use writeSdkMessages() never hit this path.")},onAuth401:P,getPollIntervalConfig:U=()=>vJ,initialHistoryCap:M=200,initialMessages:x,previouslyFlushedUUIDs:m,onInboundMessage:C,onPermissionResponse:e,onInterrupt:c,onSetModel:V,onSetMaxThinkingTokens:F,onSetPermissionMode:B,onStateChange:G,onUserMessage:b,perpetual:E,initialSSESequenceNum:u=0}=p,O=++BZ,{writeBridgePointer:h,clearBridgePointer:JJ,readBridgePointer:j}=await import("./bridgePointer-0.6.8-y9zbj5sw.mjs"),H=E?await j(L):null,K=H?.source==="repl"?H:null;J(`[bridge:repl] initBridgeCore #${O} starting (initialMessages=${x?.length??0}${K?` perpetual prior=env:${K.environmentId}`:""})`);let R=WQ({baseUrl:s,getAccessToken:n,runnerVersion:"99.0.0",onDebug:J,onAuth401:P,getTrustedDeviceToken:XQ}),QJ={dir:L,machineName:T,branch:y,gitRepoUrl:t,maxSessions:1,spawnMode:"single-session",verbose:!1,sandbox:!1,bridgeId:oJ(),workerType:S,environmentId:oJ(),reuseEnvironmentId:K?.environmentId,apiBaseUrl:s,sessionIngressUrl:w},X,LJ;try{let Q=await R.registerBridgeEnvironment(QJ);X=Q.environment_id,LJ=Q.environment_secret}catch(Q){if(i("registration_failed",`[bridge:repl] Environment registration failed: ${D(Q)}`),K)await JJ(L);return G?.("failed",D(Q)),null}J(`[bridge:repl] Environment registered: ${X}`),GJ("info","bridge_repl_env_registered"),q("tengu_bridge_repl_env_registered",{});async function cJ(Q,$){if(X!==Q)return J(`[bridge:repl] Env mismatch (requested ${Q}, got ${X}) — cannot reconnect in place`),!1;let W=KQ($),Y=W===$?[$]:[$,W];for(let A of Y)try{return await R.reconnectSession(X,A),J(`[bridge:repl] Reconnected session ${A} in place on env ${X}`),!0}catch(d){J(`[bridge:repl] reconnectSession(${A}) failed: ${D(d)}`)}return J("[bridge:repl] reconnectSession exhausted — falling through to fresh session"),!1}let RJ=K?await cJ(K.environmentId,K.sessionId):!1;if(K&&!RJ)await JJ(L);let z;if(RJ&&K){if(z=K.sessionId,J(`[bridge:repl] Perpetual session reused: ${z}`),x&&m)for(let Q of x)m.add(Q.uuid)}else{let Q=await r({environmentId:X,title:o,gitRepoUrl:t,branch:y,signal:AbortSignal.timeout(15000)});if(!Q)return J("[bridge:repl] Session creation failed, deregistering environment"),q("tengu_bridge_repl_session_failed",{}),await R.deregisterEnvironment(X).catch(()=>{}),G?.("failed","Session creation failed"),null;z=Q,J(`[bridge:repl] Session created: ${z}`)}await h(L,{sessionId:z,environmentId:X,source:"repl"}),GJ("info","bridge_repl_session_created"),q("tengu_bridge_repl_started",{has_initial_messages:!!(x&&x.length>0),inProtectedNamespace:QQ()});let PJ=new Set;if(x)for(let Q of x)PJ.add(Q.uuid);let $J=new mJ(2000);for(let Q of PJ)$J.add(Q);let uJ=new mJ(2000),a=new AbortController,Z=null,XJ=0,v=RJ?u:0,k=null,jJ=null,dJ=fQ(a.signal),WJ=dJ.wake,KZ=dJ.signal,g=new wQ,UJ=!b,fJ=3,zJ=0,VJ=null;async function lJ(){if(VJ)return VJ;VJ=YZ();try{return await VJ}finally{VJ=null}}async function YZ(){if(zJ++,XJ++,J(`[bridge:repl] Reconnecting after env lost (attempt ${zJ}/${fJ})`),zJ>fJ)return J(`[bridge:repl] Environment reconnect limit reached (${fJ}), giving up`),!1;if(Z){let Y=Z.getLastSequenceNum();if(Y>v)v=Y;Z.close(),Z=null}if(WJ(),g.drop(),k){let Y=k;if(await R.stopWork(X,Y,!1).catch(()=>{}),k!==Y)return J("[bridge:repl] Poll loop recovered during stopWork await — deferring to it"),zJ=0,!0;k=null,jJ=null}if(a.signal.aborted)return J("[bridge:repl] Reconnect aborted by teardown"),!1;let Q=X;QJ.reuseEnvironmentId=Q;try{let Y=await R.registerBridgeEnvironment(QJ);X=Y.environment_id,LJ=Y.environment_secret}catch(Y){return QJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Environment re-registration failed: ${D(Y)}`),!1}if(QJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Re-registered: requested=${Q} got=${X}`),a.signal.aborted)return J("[bridge:repl] Reconnect aborted after env registration, cleaning up"),await R.deregisterEnvironment(X).catch(()=>{}),!1;if(Z!==null)return J("[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it"),zJ=0,!0;if(await cJ(Q,z))return q("tengu_bridge_repl_reconnected_in_place",{}),zJ=0,!0;if(X!==Q)q("tengu_bridge_repl_env_expired_fresh_session",{});if(await l(z),a.signal.aborted)return J("[bridge:repl] Reconnect aborted after archive, cleaning up"),await R.deregisterEnvironment(X).catch(()=>{}),!1;let $=ZJ(),W=await r({environmentId:X,title:$,gitRepoUrl:t,branch:y,signal:AbortSignal.timeout(15000)});if(!W)return J("[bridge:repl] Session creation failed during reconnection"),!1;if(a.signal.aborted)return J("[bridge:repl] Reconnect aborted after session creation, cleaning up"),await l(W),!1;return z=W,jQ(zQ(W)).catch(()=>{}),v=0,uJ.clear(),UJ=!b,J(`[bridge:repl] Re-created session: ${z}`),await h(L,{sessionId:z,environmentId:X,source:"repl"}),m?.clear(),zJ=0,!0}function wJ(){return n()}function aJ(){let Q=g.end();if(Q.length===0)return;if(!Z){J(`[bridge:repl] Cannot drain ${Q.length} pending message(s): no transport`);return}for(let Y of Q)$J.add(Y.uuid);let W=YJ(Q).map((Y)=>({...Y,session_id:z}));J(`[bridge:repl] Drained ${Q.length} pending message(s) after flush`),Z.writeBatch(W)}let yJ=null;function MJ(){yJ?.()}function XZ(Q){if(J(`[bridge:repl] Transport permanently closed: code=${Q}`),q("tengu_bridge_repl_ws_closed",{code:Q}),Z){let W=Z.getLastSequenceNum();if(W>v)v=W;Z=null}WJ();let $=g.drop();if($>0)J(`[bridge:repl] Dropping ${$} pending message(s) on transport close (code=${Q})`,{level:"warn"});if(Q===1000){G?.("failed","session ended"),a.abort(),MJ();return}G?.("reconnecting",`Remote Control connection lost (code ${Q})`),J(`[bridge:repl] Transport reconnect budget exhausted (code=${Q}), attempting env reconnect`),lJ().then((W)=>{if(W)return;if(a.signal.aborted)return;J("[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down"),q("tengu_bridge_repl_reconnect_failed",{close_code:Q}),G?.("failed","reconnection failed"),MJ()})}let jZ={api:R,getCredentials:()=>({environmentId:X,environmentSecret:LJ}),signal:a.signal,getPollIntervalConfig:U,onStateChange:G,getWsState:()=>Z?.getStateLabel()??"null",isAtCapacity:()=>Z!==null,capacitySignal:KZ,onFatalError:MJ,getHeartbeatInfo:()=>{if(!k||!jJ)return null;return{environmentId:X,workId:k,sessionToken:jJ}},onHeartbeatFatal:(Q)=>{if(J(`[bridge:repl] heartbeatWork fatal (status=${Q.status}) — tearing down work item for fast re-dispatch`),Z){let $=Z.getLastSequenceNum();if($>v)v=$;Z.close(),Z=null}if(g.drop(),k)R.stopWork(X,k,!1).catch(($)=>{J(`[bridge:repl] stopWork after heartbeat fatal: ${D($)}`)});k=null,jJ=null,WJ(),G?.("reconnecting","Work item lease expired, fetching fresh token")},async onEnvironmentLost(){if(!await lJ())return null;return{environmentId:X,environmentSecret:LJ}},onWorkReceived:(Q,$,W,Y)=>{if(Z?.isConnectedStatus())J(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${W})`);if(J(`[bridge:repl] Work received: workId=${W} workSessionId=${Q} currentSessionId=${z} match=${bJ(Q,z)}`),h(L,{sessionId:z,environmentId:X,source:"repl"}),!bJ(Q,z)){J(`[bridge:repl] Rejecting foreign session: expected=${z} got=${Q}`);return}k=W,jJ=$;let A=Y||JQ(process.env.CLAUDE_BRIDGE_USE_CCR_V2),d;if(!A){if(d=wJ(),!d){J("[bridge:repl] No OAuth token available for session ingress, skipping work");return}DJ(d)}if(q("tengu_bridge_repl_work_received",{}),Z){let N=Z;Z=null;let _=N.getLastSequenceNum();if(_>v)v=_;N.close()}g.deactivate();let HZ=(N)=>LQ(N,{transport:Z,sessionId:z,onInterrupt:c,onSetModel:V,onSetMaxThinkingTokens:F,onSetPermissionMode:B}),kJ=!1,iJ=(N)=>{if(Z=N,N.setOnConnect(()=>{if(Z!==N)return;if(J("[bridge:repl] Ingress transport connected"),q("tengu_bridge_repl_ws_connected",{}),!A){let _=wJ();if(_)DJ(_)}if(hJ=!1,!kJ&&x&&x.length>0){kJ=!0;let _=M,I=x.filter((BJ)=>TJ(BJ)&&!m?.has(BJ.uuid)),HJ=_>0&&I.length>_?I.slice(-_):I;if(HJ.length<I.length)J(`[bridge:repl] Capped initial flush: ${I.length} -> ${HJ.length} (cap=${_})`),q("tengu_bridge_repl_history_capped",{eligible_count:I.length,capped_count:HJ.length});let NJ=YJ(HJ);if(NJ.length>0){J(`[bridge:repl] Flushing ${NJ.length} initial message(s) via transport`);let BJ=NJ.map((xJ)=>({...xJ,session_id:z})),tJ=N.droppedBatchCount;N.writeBatch(BJ).then(()=>{if(N.droppedBatchCount>tJ){J(`[bridge:repl] Initial flush dropped ${N.droppedBatchCount-tJ} batch(es) — not marking ${NJ.length} UUID(s) as flushed`);return}if(m){for(let xJ of NJ)if(xJ.uuid)m.add(xJ.uuid)}}).catch((xJ)=>J(`[bridge:repl] Initial flush failed: ${xJ}`)).finally(()=>{if(Z!==N)return;aJ(),G?.("connected")})}else aJ(),G?.("connected")}else if(!g.active)G?.("connected")}),N.setOnData((_)=>{qQ(_,$J,uJ,C,e,HZ)}),N.setOnClose((_)=>{if(Z!==N)return;XZ(_)}),!kJ&&x&&x.length>0)g.start();N.connect()};if(XJ++,A){let N=AQ(s,Q),_=XJ;J(`[bridge:repl] CCR v2: sessionUrl=${N} session=${Q} gen=${_}`),UQ({sessionUrl:N,ingressToken:$,sessionId:Q,initialSequenceNum:v}).then((I)=>{if(a.signal.aborted){I.close();return}if(_!==XJ){J(`[bridge:repl] CCR v2: discarding stale handshake gen=${_} current=${XJ}`),I.close();return}iJ(I)},(I)=>{if(J(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${D(I)}`,{level:"error"}),q("tengu_bridge_repl_ccr_v2_init_failed",{}),_!==XJ)return;if(k)R.stopWork(X,k,!1).catch((HJ)=>{J(`[bridge:repl] stopWork after v2 init failure: ${D(HJ)}`)}),k=null,jJ=null;WJ()})}else{let N=BQ(w,Q);J(`[bridge:repl] Ingress URL: ${N}`),J(`[bridge:repl] Creating HybridTransport: session=${Q}`);let _=d??"";iJ(PQ(new RQ(new URL(N),{Authorization:`Bearer ${_}`,"anthropic-version":"2023-06-01"},Q,()=>({Authorization:`Bearer ${wJ()??_}`,"anthropic-version":"2023-06-01"}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{G?.("reconnecting","Lost sync with Remote Control — events could not be delivered"),WJ()}})))}}};AZ(jZ);let FJ=E?setInterval(()=>{if(VJ)return;h(L,{sessionId:z,environmentId:X,source:"repl"})},3600000):null;FJ?.unref?.();let gJ=U().session_keepalive_interval_v2_ms,EJ=gJ>0?setInterval(()=>{if(!Z)return;J("[bridge:repl] keep_alive sent"),Z.write({type:"keep_alive"}).catch((Q)=>{J(`[bridge:repl] keep_alive write failed: ${D(Q)}`)})},gJ):null;EJ?.unref?.();let hJ=!1;yJ=async()=>{if(hJ){J(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${X} session=${z}`);return}hJ=!0;let Q=Date.now();if(J(`[bridge:repl] Teardown starting: env=${X} session=${z} workId=${k??"none"} transportState=${Z?.getStateLabel()??"null"}`),FJ!==null)clearInterval(FJ);if(EJ!==null)clearInterval(EJ);if(a.abort(),J("[bridge:repl] Teardown: poll loop aborted"),Z){let Y=Z.getLastSequenceNum();if(Y>v)v=Y}if(E){Z=null,g.drop(),await h(L,{sessionId:z,environmentId:X,source:"repl"}),J(`[bridge:repl] Teardown (perpetual): leaving env=${X} session=${z} alive on server, duration=${Date.now()-Q}ms`);return}let $=Z;if(Z=null,g.drop(),$)$.write(CJ(z));let W=k?R.stopWork(X,k,!0).then(()=>{J("[bridge:repl] Teardown: stopWork completed")}).catch((Y)=>{J(`[bridge:repl] Teardown stopWork failed: ${D(Y)}`)}):Promise.resolve();await Promise.all([W,l(z)]),$?.close(),J("[bridge:repl] Teardown: transport closed"),await R.deregisterEnvironment(X).catch((Y)=>{J(`[bridge:repl] Teardown deregister failed: ${D(Y)}`)}),await JJ(L),J(`[bridge:repl] Teardown complete: env=${X} duration=${Date.now()-Q}ms`)};let VZ=eJ(()=>yJ?.());return J(`[bridge:repl] Ready: env=${X} session=${z}`),G?.("ready"),{get bridgeSessionId(){return z},get environmentId(){return X},getSSESequenceNum(){let Q=Z?.getLastSequenceNum()??0;return Math.max(v,Q)},sessionIngressUrl:w,writeMessages(Q){let $=Q.filter((A)=>TJ(A)&&!PJ.has(A.uuid)&&!$J.has(A.uuid));if($.length===0)return;if(!UJ)for(let A of $){let d=_Q(A);if(d!==void 0&&b?.(d,z)){UJ=!0;break}}if(g.enqueue(...$)){J(`[bridge:repl] Queued ${$.length} message(s) during initial flush`);return}if(!Z){let A=$.map((d)=>d.type).join(",");J(`[bridge:repl] Transport not configured, dropping ${$.length} message(s) [${A}] for session=${z}`,{level:"warn"});return}for(let A of $)$J.add(A.uuid);J(`[bridge:repl] Sending ${$.length} message(s) via transport`);let Y=YJ($).map((A)=>({...A,session_id:z}));Z.writeBatch(Y)},writeSdkMessages(Q){let $=Q.filter((Y)=>!Y.uuid||!$J.has(Y.uuid));if($.length===0)return;if(!Z){J(`[bridge:repl] Transport not configured, dropping ${$.length} SDK message(s) for session=${z}`,{level:"warn"});return}for(let Y of $)if(Y.uuid)$J.add(Y.uuid);let W=$.map((Y)=>({...Y,session_id:z}));Z.writeBatch(W)},sendControlRequest(Q){if(!Z){J("[bridge:repl] Transport not configured, skipping control_request");return}let $={...Q,session_id:z};Z.write($),J(`[bridge:repl] Sent control_request request_id=${Q.request_id}`)},sendControlResponse(Q){if(!Z){J("[bridge:repl] Transport not configured, skipping control_response");return}let $={...Q,session_id:z};Z.write($),J("[bridge:repl] Sent control_response")},sendControlCancelRequest(Q){if(!Z){J("[bridge:repl] Transport not configured, skipping control_cancel_request");return}let $={type:"control_cancel_request",request_id:Q,session_id:z};Z.write($),J(`[bridge:repl] Sent control_cancel_request request_id=${Q}`)},sendResult(){if(!Z){J(`[bridge:repl] sendResult: skipping, transport not configured session=${z}`);return}Z.write(CJ(z)),J(`[bridge:repl] Sent result for session=${z}`)},async teardown(){VZ(),await yJ?.(),J("[bridge:repl] Torn down"),q("tengu_bridge_repl_teardown",{})}}}async function AZ({api:p,getCredentials:L,signal:T,onStateChange:y,onWorkReceived:t,onEnvironmentLost:o,getWsState:s,isAtCapacity:w,capacitySignal:S,onFatalError:n,getPollIntervalConfig:r=()=>vJ,getHeartbeatInfo:l,onHeartbeatFatal:ZJ}){J(`[bridge:repl] Starting work poll loop for env=${L().environmentId}`);let P=0,U=null,M=null,x=0,m=!1;while(!T.aborted){let{environmentId:C,environmentSecret:e}=L(),c=r();try{let V=await p.pollForWork(C,e,T,c.reclaim_older_than_ms);if(x=0,P>0)J(`[bridge:repl] Poll recovered after ${P} consecutive error(s)`),P=0,U=null,M=null,y?.("ready");if(!V){let B=m;if(m=!1,w?.()&&S&&!B){let G=c.poll_interval_ms_at_capacity;if(c.non_exclusive_heartbeat_interval_ms>0&&l){q("tengu_bridge_heartbeat_mode_entered",{heartbeat_interval_ms:c.non_exclusive_heartbeat_interval_ms});let E=G>0?Date.now()+G:null,u=!1,O=0;while(!T.aborted&&w()&&(E===null||Date.now()<E)){let JJ=r();if(JJ.non_exclusive_heartbeat_interval_ms<=0)break;let j=l();if(!j)break;let H=S();try{await p.heartbeatWork(j.environmentId,j.workId,j.sessionToken)}catch(K){if(J(`[bridge:repl:heartbeat] Failed: ${D(K)}`),K instanceof AJ){if(H.cleanup(),q("tengu_bridge_heartbeat_error",{status:K.status,error_type:K.status===401||K.status===403?"auth_failed":"fatal"}),ZJ)ZJ(K),J(`[bridge:repl:heartbeat] Fatal (status=${K.status}), work state cleared — fast-polling for re-dispatch`);else u=!0;break}}O++,await OJ(JJ.non_exclusive_heartbeat_interval_ms,H.signal),H.cleanup()}let h=u?"error":T.aborted?"shutdown":!w()?"capacity_changed":E!==null&&Date.now()>=E?"poll_due":"config_disabled";if(q("tengu_bridge_heartbeat_mode_exited",{reason:h,heartbeat_cycles:O}),!u){if(h==="poll_due")J(`[bridge:repl] Heartbeat poll_due after ${O} cycles — falling through to pollForWork`);continue}}let b=G>0?G:c.non_exclusive_heartbeat_interval_ms;if(b>0){let E=S(),u=Date.now();await OJ(b,E.signal),E.cleanup();let O=Date.now()-u-b;if(O>60000)J(`[bridge:repl] At-capacity sleep overran by ${Math.round(O/1000)}s — process suspension detected, forcing one fast-poll cycle`),q("tengu_bridge_repl_suspension_detected",{overrun_ms:O}),m=!0}}else await OJ(c.poll_interval_ms_not_at_capacity,T);continue}let F;try{F=yQ(V.secret)}catch(B){J(`[bridge:repl] Failed to decode work secret: ${D(B)}`),q("tengu_bridge_repl_work_secret_failed",{}),await p.stopWork(C,V.id,!1).catch(()=>{});continue}J(`[bridge:repl] Acknowledging workId=${V.id}`);try{await p.acknowledgeWork(C,V.id,F.session_ingress_token)}catch(B){J(`[bridge:repl] Acknowledge failed workId=${V.id}: ${D(B)}`)}if(V.data.type==="healthcheck"){J("[bridge:repl] Healthcheck received");continue}if(V.data.type==="session"){let B=V.data.id;try{GQ(B,"session_id")}catch{J(`[bridge:repl] Invalid session_id in work: ${B}`);continue}t(B,F.session_ingress_token,V.id,F.use_code_sessions===!0),J("[bridge:repl] Work accepted, continuing poll loop")}}catch(V){if(T.aborted)break;if(V instanceof AJ&&V.status===404&&o){let O=L().environmentId;if(C!==O){J(`[bridge:repl] Stale poll error for old env=${C}, current env=${O} — skipping onEnvironmentLost`),P=0,U=null;continue}if(x++,J(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${x}/3)`),q("tengu_bridge_repl_env_lost",{attempt:x}),x>3){J("[bridge:repl] Environment re-registration limit reached (3), giving up"),y?.("failed","Environment deleted and re-registration limit reached"),n?.();break}y?.("reconnecting","environment lost, recreating session");let h=await o();if(T.aborted)break;if(h){P=0,U=null,y?.("ready"),J(`[bridge:repl] Re-registered environment: ${h.environmentId}`);continue}y?.("failed","Environment deleted and re-registration failed"),n?.();break}if(V instanceof AJ){let O=NQ(V.errorType),h=OQ(V);if(J(`[bridge:repl] Fatal poll error: ${V.message} (status=${V.status}, type=${V.errorType??"unknown"})${h?" (suppressed)":""}`),q("tengu_bridge_repl_fatal_error",{status:V.status,error_type:V.errorType}),GJ(O?"info":"error","bridge_repl_fatal_error",{status:V.status,error_type:V.errorType}),!h)y?.("failed",O?"session expired · /remote-control to reconnect":V.message);n?.();break}let F=Date.now();if(M!==null&&F-M>sJ*2)J(`[bridge:repl] Detected system sleep (${Math.round((F-M)/1000)}s gap), resetting poll error budget`),GJ("info","bridge_repl_poll_sleep_detected",{gapMs:F-M}),P=0,U=null;if(M=F,P++,U===null)U=F;let B=F-U,G=HQ(V),b=VQ(V),E=s?.()??"unknown";if(J(`[bridge:repl] Poll error (attempt ${P}, elapsed ${Math.round(B/1000)}s, ws=${E}): ${b}`),q("tengu_bridge_repl_poll_error",{status:G,consecutiveErrors:P,elapsedMs:B}),P===1)y?.("reconnecting",b);if(B>=nJ){J(`[bridge:repl] Poll failures exceeded ${nJ/1000}s (${P} errors), giving up`),GJ("info","bridge_repl_poll_give_up"),q("tengu_bridge_repl_poll_give_up",{consecutiveErrors:P,elapsedMs:B,lastStatus:G}),y?.("failed","connection to server lost");break}let u=Math.min(yZ*2**(P-1),sJ);if(r().non_exclusive_heartbeat_interval_ms>0){let O=l?.();if(O)try{await p.heartbeatWork(O.environmentId,O.workId,O.sessionToken)}catch{}}await OJ(u,T)}}J(`[bridge:repl] Work poll loop ended (aborted=${T.aborted}) env=${L().environmentId}`)}YQ();async function T0(p){let{onInboundMessage:L,onPermissionResponse:T,onInterrupt:y,onSetModel:t,onSetMaxThinkingTokens:o,onSetPermissionMode:s,onStateChange:w,initialMessages:S,getMessages:n,previouslyFlushedUUIDs:r,initialName:l,perpetual:ZJ,outboundOnly:YJ,tags:P}=p??{};if(cQ(tQ),!await gQ())return i("not_enabled","[bridge:repl] Skipping: bridge not enabled"),null;if(!KJ())return i("no_oauth","[bridge:repl] Skipping: no OAuth tokens"),w?.("failed","/login"),null;if(await uQ(),!dQ("allow_remote_control"))return i("policy_denied","[bridge:repl] Skipping: allow_remote_control policy not allowed"),w?.("failed","disabled by your organization's policy"),null;if(!lQ()){let j=mQ();if(j.bridgeOauthDeadExpiresAt!=null&&(j.bridgeOauthDeadFailCount??0)>=3&&SJ()?.expiresAt===j.bridgeOauthDeadExpiresAt)return J(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${j.bridgeOauthDeadFailCount} times)`),null;await SQ();let H=SJ();if(H&&H.expiresAt!==null&&H.expiresAt<=Date.now()){i("oauth_expired_unrefreshable","[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)"),w?.("failed","/login");let K=H.expiresAt;return CQ((f)=>({...f,bridgeOauthDeadExpiresAt:K,bridgeOauthDeadFailCount:f.bridgeOauthDeadExpiresAt===K?(f.bridgeOauthDeadFailCount??0)+1:1})),null}}let U=aQ(),M=`remote-control-${pQ()}`,x=!1,m=!1;if(l)M=l,x=!0,m=!0;else{let j=_J(),H=j?qJ(j):void 0;if(H)M=H,x=!0,m=!0;else if(S&&S.length>0)for(let K=S.length-1;K>=0;K--){let f=S[K];if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary||f.origin&&f.origin.kind!=="human"||ZZ(f))continue;let R=IQ(f.message.content);if(!R)continue;let QJ=EQ(R);if(!QJ)continue;M=QJ,x=!0;break}}let C=0,e,c=0,V=(j,H,K)=>{x=!0,M=j,J(`[bridge:repl] derived title from message ${K}: ${j}`),JZ(H,j,{baseUrl:U,getAccessToken:KJ}).catch(()=>{})},F=(j,H)=>{let K=++c,f=C;nQ(j,AbortSignal.timeout(15000)).then((R)=>{if(R&&K===c&&e===H&&!qJ(_J()))V(R,H,f)})},B=(j,H)=>{if(m||qJ(_J()))return!0;if(e!==void 0&&e!==H)C=0;if(e=H,C++,C===1&&!x){let K=EQ(j);if(K)V(K,H,C);F(j,H)}else if(C===3){let K=n?.(),f=K?sQ($Z(K)):j;F(f,H)}return C>=3},G=kQ("tengu_bridge_initial_history_cap",200,300000),b=await vQ();if(!b)return i("no_org_uuid","[bridge:repl] Skipping: no org UUID"),w?.("failed","/login"),null;if(iQ()&&!ZJ){let j=await QZ();if(j)return i("version_too_old",`[bridge:repl] Skipping: ${j}`,!0),w?.("failed","run `claude update` to upgrade"),null;J("[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)");let{initEnvLessBridgeCore:H}=await import("./remoteBridgeCore-0.6.8-7cd0x0sw.mjs");return H({baseUrl:U,orgUUID:b,title:M,getAccessToken:KJ,onAuth401:IJ,toSDKMessages:pJ,initialHistoryCap:G,initialMessages:S,onInboundMessage:L,onUserMessage:B,onPermissionResponse:T,onInterrupt:y,onSetModel:t,onSetMaxThinkingTokens:o,onSetPermissionMode:s,onStateChange:w,outboundOnly:YJ,tags:P})}let E=oQ();if(E)return i("version_too_old",`[bridge:repl] Skipping: ${E}`),w?.("failed","run `claude update` to upgrade"),null;let u=await DQ(),O=await TQ(),h=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||U,JJ="claude_code";return MQ({dir:hQ(),machineName:IZ(),branch:u,gitRepoUrl:O,title:M,baseUrl:U,sessionIngressUrl:h,workerType:JJ,getAccessToken:KJ,createSession:(j)=>rQ({...j,events:[],baseUrl:U,getAccessToken:KJ}),archiveSession:(j)=>eQ(j,{baseUrl:U,getAccessToken:KJ,timeoutMs:1500}).catch((H)=>{J(`[bridge:repl] archiveBridgeSession threw: ${D(H)}`,{level:"error"})}),getCurrentTitle:()=>qJ(_J())??M,onUserMessage:B,toSDKMessages:pJ,onAuth401:IJ,getPollIntervalConfig:zZ,initialHistoryCap:G,initialMessages:S,previouslyFlushedUUIDs:r,onInboundMessage:L,onPermissionResponse:T,onInterrupt:y,onSetModel:t,onSetMaxThinkingTokens:o,onSetPermissionMode:s,onStateChange:w,perpetual:ZJ})}var FQ=50;function EQ(p){let L=bQ(p),y=(/^(.*?[.!?])\s/.exec(L)?.[1]??L).replace(/\s+/g," ").trim();if(!y)return;return y.length>FQ?y.slice(0,FQ-1)+"…":y}export{T0 as initReplBridge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AZ as J,BX as a,BZ as K,CY as m,CZ as L,DZ as M,EX as b,FX as c,HY as n,IX as d,JY as o,LX as e,MX as f,NX as g,OX as h,PY as p,WY as q,YY as r,_Y as s,cY as i,cZ as t,dY as j,eZ as u,fZ as v,gZ as w,hZ as x,iZ as y,jZ as z,kZ as A,mZ as B,nY as k,nZ as C,rY as l,sZ as D,tZ as E,uZ as F,vZ as G,yZ as H,zZ as I}from"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-6z1655sa.mjs";import"./cli-0.6.8-259kprym.mjs";M();export{k as wrapText,g as useThemeSetting,f as useTheme,A as useTerminalViewport,I as useTerminalTitle,m as useTerminalFocus,H as useTabStatus,d as useStdin,G as useSelection,h as usePreviewTheme,F as useInterval,D as useInput,C as useApp,E as useAnimationTimer,B as useAnimationFrame,a as supportsTabStatus,K as render,J as measureElement,L as createRoot,q as color,e as ThemeProvider,s as Text,j as TerminalFocusEvent,z as Spacer,y as RawAnsi,x as NoSelect,w as Newline,t as Link,i as InputEvent,l as FocusManager,c as EventEmitter,b as Event,p as ClickEvent,v as Button,r as Box,o as BaseText,n as BaseBox,u as Ansi};
|