@xbrowser/cli 1.10.0 → 1.12.0

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.
Files changed (42) hide show
  1. package/dist/{anti-bot-DR56Y63V.js → anti-bot-GTTYNEFB.js} +1 -1
  2. package/dist/{browser-WQZ3D6AE.js → browser-3HQKDZQ6.js} +4 -2
  3. package/dist/{browser-T3V3JWVH.js → browser-ILXTEWH4.js} +1 -1
  4. package/dist/{browser-HBL72GPZ.js → browser-XPDMY2NX.js} +3 -3
  5. package/dist/{cdp-driver-J3YQ4LJV.js → cdp-driver-ESH3PDE6.js} +2 -1
  6. package/dist/cdp-driver-N2E2ZNSC.js +4644 -0
  7. package/dist/cdp-driver-YIKR4BUX.js +49 -0
  8. package/dist/chunk-3FWLW7FS.js +106 -0
  9. package/dist/chunk-A6LPGFAL.js +437 -0
  10. package/dist/{chunk-RRBXV7KE.js → chunk-DKM2JOZL.js} +633 -63
  11. package/dist/{chunk-ABXMBNQ6.js → chunk-H2A5JUK5.js} +37 -466
  12. package/dist/{chunk-5UGR6MUK.js → chunk-HBHOKZPN.js} +51 -16
  13. package/dist/{chunk-BNO7OKO4.js → chunk-HBMEFSTB.js} +39 -0
  14. package/dist/{chunk-INTQPBYF.js → chunk-JKVUFP3G.js} +6 -2
  15. package/dist/chunk-KJTABK3Z.js +1255 -0
  16. package/dist/{chunk-DWDXEGVK.js → chunk-NKW4A74J.js} +9 -3
  17. package/dist/{chunk-4452SPFI.js → chunk-NODRQGOK.js} +51 -16
  18. package/dist/{chunk-SQHSZENE.js → chunk-OMU63E6J.js} +3 -22
  19. package/dist/{chunk-NITFVWWS.js → chunk-OVW2UEWN.js} +981 -407
  20. package/dist/{chunk-WSCP7QCJ.js → chunk-R6IJ6PIV.js} +14 -11
  21. package/dist/{chunk-YMUSHPU4.js → chunk-SH6OTPXN.js} +46 -16
  22. package/dist/{chunk-MWFHZUIY.js → chunk-TEXCXIBW.js} +1 -1
  23. package/dist/{cdp-driver-2T4P4ZE2.js → chunk-Z6CUR3VG.js} +1542 -134
  24. package/dist/{chunk-IIM5GOD7.js → chunk-ZTHE5RBZ.js} +7 -1
  25. package/dist/cli.js +1136 -584
  26. package/dist/{daemon-client-GKEPT4NY.js → daemon-client-7D6EZNOE.js} +46 -16
  27. package/dist/{daemon-client-O6BYVRXV.js → daemon-client-HEGAXWGK.js} +1 -1
  28. package/dist/daemon-main.js +1031 -522
  29. package/dist/{human-interaction-5AO42MBA.js → human-interaction-4YR2N6R6.js} +2 -2
  30. package/dist/{human-interaction-C5OEGXGO.js → human-interaction-Y5IDH6LD.js} +1 -1
  31. package/dist/{human-interaction-ISXZTAYY.js → human-interaction-ZUTR5AC2.js} +2 -2
  32. package/dist/index.d.ts +10 -0
  33. package/dist/index.js +1147 -593
  34. package/dist/{proxy-C6CK3UH5.js → proxy-LUR4U5YF.js} +2 -1
  35. package/dist/{recovery-J2ISVGUL.js → recovery-FTZGV6VY.js} +2 -2
  36. package/dist/{recovery-ZJVVHP7N.js → recovery-L5GLDX4O.js} +1 -1
  37. package/dist/{recovery-EF33LKRJ.js → recovery-Z3RDZENA.js} +2 -2
  38. package/dist/{session-recorder-H3KEYU26.js → session-recorder-3BEVWHOK.js} +1 -1
  39. package/dist/{session-recorder-QRZMKFVL.js → session-recorder-SLDBENVF.js} +1 -1
  40. package/dist/{session-replayer-LJUC4TI7.js → session-replayer-K4A6OI4M.js} +90 -2
  41. package/package.json +1 -1
  42. package/dist/chunk-BAHSRZIX.js +0 -2191
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HumanInteractionManager
3
- } from "./chunk-MWFHZUIY.js";
4
- import "./chunk-IIM5GOD7.js";
3
+ } from "./chunk-OMU63E6J.js";
4
+ import "./chunk-HBMEFSTB.js";
5
5
  import "./chunk-KFQGP6VL.js";
6
6
  export {
7
7
  HumanInteractionManager
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HumanInteractionManager
3
- } from "./chunk-DWDXEGVK.js";
3
+ } from "./chunk-NKW4A74J.js";
4
4
  import "./chunk-KFQGP6VL.js";
5
5
  export {
6
6
  HumanInteractionManager
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HumanInteractionManager
3
- } from "./chunk-SQHSZENE.js";
4
- import "./chunk-BNO7OKO4.js";
3
+ } from "./chunk-TEXCXIBW.js";
4
+ import "./chunk-ZTHE5RBZ.js";
5
5
  import "./chunk-KFQGP6VL.js";
6
6
  export {
7
7
  HumanInteractionManager
package/dist/index.d.ts CHANGED
@@ -172,7 +172,15 @@ interface XBPage {
172
172
  height: number;
173
173
  }): Promise<void>;
174
174
  addInitScript(script: string): Promise<void>;
175
+ /** 覆盖当前页会话的 User-Agent(Network.setUserAgentOverride,会话级持久) */
176
+ setUserAgent(userAgent: string): Promise<void>;
175
177
  discoverFrames(): Promise<XBFrame[]>;
178
+ /**
179
+ * 在 URL 含 urlIncludes 的 iframe 上下文中执行表达式。
180
+ * 同进程 iframe 走 contextId;跨域 OOPIF 走 Target auto-attach。
181
+ * 绕过页面同源策略(CDP 是调试通道)——跨域嵌入内容读写的唯一路径。
182
+ */
183
+ evaluateInFrame<R = unknown>(urlIncludes: string, expression: string): Promise<R>;
176
184
  bringToFront(): Promise<void>;
177
185
  setExtraHTTPHeaders(headers: Record<string, string>): Promise<void>;
178
186
  setOfflineMode(offline: boolean): Promise<void>;
@@ -288,6 +296,7 @@ interface XBMouse {
288
296
  button?: 'left' | 'right' | 'middle';
289
297
  clickCount?: number;
290
298
  delay?: number;
299
+ stealth?: boolean;
291
300
  }): Promise<void>;
292
301
  dblclick(x: number, y: number, opts?: {
293
302
  button?: 'left' | 'right' | 'middle';
@@ -311,6 +320,7 @@ interface XBKeyboard {
311
320
  up(key: string): Promise<void>;
312
321
  type(text: string, opts?: {
313
322
  delay?: number;
323
+ stealth?: boolean;
314
324
  }): Promise<void>;
315
325
  insertText(text: string): Promise<void>;
316
326
  }