@xbrowser/cli 1.21.0 → 1.23.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 (43) hide show
  1. package/README.md +21 -3
  2. package/dist/{browser-CNBSH53B.js → browser-BVRFSUXU.js} +3 -2
  3. package/dist/{browser-C2VEOJC2.js → browser-DSYUAE7H.js} +5 -4
  4. package/dist/{browser-VZOOFLAH.js → browser-Q67BJTI2.js} +4 -3
  5. package/dist/{cdp-driver-KFX4A6WR.js → cdp-driver-DC7EIUG5.js} +4 -3
  6. package/dist/{cdp-driver-7Z6ZAT5E.js → cdp-driver-T7D6H2RW.js} +335 -546
  7. package/dist/{cdp-driver-26LGCHXV.js → cdp-driver-WWO2UZDR.js} +3 -2
  8. package/dist/{chunk-Z5RTK4GW.js → chunk-2Q3GQRUP.js} +2 -2
  9. package/dist/{chunk-CLYZPSDR.js → chunk-4OU37CXP.js} +354 -576
  10. package/dist/{chunk-HWWG2ISJ.js → chunk-7OP2ISEY.js} +353 -575
  11. package/dist/{chunk-PIWNMC36.js → chunk-A3MORKYR.js} +1 -1
  12. package/dist/{chunk-3FWLW7FS.js → chunk-A7NEA4PA.js} +39 -1
  13. package/dist/{chunk-OMU63E6J.js → chunk-FBQZ3PVD.js} +5 -8
  14. package/dist/chunk-GYB5BOSP.js +602 -0
  15. package/dist/{chunk-ESJYANQO.js → chunk-IFKJO2UR.js} +360 -582
  16. package/dist/{chunk-NODRQGOK.js → chunk-IR6C24P7.js} +97 -0
  17. package/dist/{chunk-TEXCXIBW.js → chunk-LPW6QS4M.js} +5 -8
  18. package/dist/{chunk-3KZ34AUC.js → chunk-MYH6FIBZ.js} +2 -1
  19. package/dist/{chunk-AVSTNODR.js → chunk-T4WTKBWI.js} +2 -2
  20. package/dist/{chunk-HBHOKZPN.js → chunk-V6KGBU5J.js} +97 -0
  21. package/dist/{chunk-IWVG4XYZ.js → chunk-VCVDILH6.js} +2 -1
  22. package/dist/{chunk-NKW4A74J.js → chunk-XTUAUFL3.js} +5 -8
  23. package/dist/cli.js +497 -252
  24. package/dist/daemon-main.js +25 -19
  25. package/dist/{human-interaction-Y5IDH6LD.js → human-interaction-57VYIR56.js} +1 -1
  26. package/dist/{human-interaction-ZUTR5AC2.js → human-interaction-67K43B4O.js} +1 -1
  27. package/dist/{human-interaction-4YR2N6R6.js → human-interaction-MXST5ZQM.js} +1 -1
  28. package/dist/index.d.ts +52 -4
  29. package/dist/index.js +500 -256
  30. package/dist/keep-awake-M4KJS4B4.js +29 -0
  31. package/dist/{launcher-44STYRJC.js → launcher-IK2FKW6T.js} +1 -1
  32. package/dist/{launcher-EXJHHAUL.js → launcher-LUOMMGZC.js} +1 -1
  33. package/dist/{plugin-singleton-FCNDN3FX.js → plugin-singleton-GJO7EZXB.js} +1 -1
  34. package/dist/{recovery-NXC35EQN.js → recovery-6RI2FE3E.js} +1 -1
  35. package/dist/{recovery-MDWAVXE4.js → recovery-LGY25LIM.js} +1 -1
  36. package/dist/{recovery-L5GLDX4O.js → recovery-LMJW537X.js} +1 -1
  37. package/dist/{session-recorder-SLDBENVF.js → session-recorder-563ISSJK.js} +1 -1
  38. package/dist/{session-recorder-3BEVWHOK.js → session-recorder-GEZVQBKW.js} +1 -1
  39. package/dist/session-replayer-N665T3G5.js +932 -0
  40. package/dist/stealth-2AA2FSNN.js +29 -0
  41. package/dist/stealth-JOXGV34D.js +29 -0
  42. package/package.json +11 -7
  43. package/dist/session-replayer-EVD4HZBB.js +0 -413
@@ -0,0 +1,29 @@
1
+ import "./chunk-KFQGP6VL.js";
2
+
3
+ // src/utils/keep-awake.ts
4
+ import { spawn } from "child_process";
5
+ function startKeepAwake() {
6
+ if (process.platform !== "darwin") return { dispose: () => {
7
+ } };
8
+ try {
9
+ const child = spawn("caffeinate", ["-i", "-w", String(process.pid)], {
10
+ stdio: "ignore",
11
+ detached: false
12
+ });
13
+ return {
14
+ pid: child.pid,
15
+ dispose: () => {
16
+ try {
17
+ child.kill("SIGTERM");
18
+ } catch {
19
+ }
20
+ }
21
+ };
22
+ } catch {
23
+ return { dispose: () => {
24
+ } };
25
+ }
26
+ }
27
+ export {
28
+ startKeepAwake
29
+ };
@@ -7,7 +7,7 @@ import {
7
7
  joinCdpHttpUrl,
8
8
  killChrome,
9
9
  launchChrome
10
- } from "./chunk-3KZ34AUC.js";
10
+ } from "./chunk-MYH6FIBZ.js";
11
11
  import "./chunk-GDKLH7ZY.js";
12
12
  import "./chunk-KFQGP6VL.js";
13
13
  export {
@@ -7,7 +7,7 @@ import {
7
7
  joinCdpHttpUrl,
8
8
  killChrome,
9
9
  launchChrome
10
- } from "./chunk-IWVG4XYZ.js";
10
+ } from "./chunk-VCVDILH6.js";
11
11
  import "./chunk-3RG5ZIWI.js";
12
12
  export {
13
13
  ANTI_DETECT_ARGS,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getPluginLoader,
3
3
  resetPluginLoader
4
- } from "./chunk-PIWNMC36.js";
4
+ } from "./chunk-A3MORKYR.js";
5
5
  import "./chunk-KFQGP6VL.js";
6
6
  export {
7
7
  getPluginLoader,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HumanInteractionManager
3
- } from "./chunk-TEXCXIBW.js";
3
+ } from "./chunk-LPW6QS4M.js";
4
4
  import {
5
5
  buildViewerUrl
6
6
  } from "./chunk-3OD76SUE.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  HumanInteractionManager
3
- } from "./chunk-OMU63E6J.js";
3
+ } from "./chunk-FBQZ3PVD.js";
4
4
  import {
5
5
  buildViewerUrl
6
6
  } from "./chunk-TZPKFUBT.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3OD76SUE.js";
4
4
  import {
5
5
  HumanInteractionManager
6
- } from "./chunk-NKW4A74J.js";
6
+ } from "./chunk-XTUAUFL3.js";
7
7
  import "./chunk-Q2DFJQGS.js";
8
8
  import "./chunk-KFQGP6VL.js";
9
9
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SessionRecorder
3
- } from "./chunk-NODRQGOK.js";
3
+ } from "./chunk-IR6C24P7.js";
4
4
  import "./chunk-OZKD3W4X.js";
5
5
  import "./chunk-KFQGP6VL.js";
6
6
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SessionRecorder
3
- } from "./chunk-HBHOKZPN.js";
3
+ } from "./chunk-V6KGBU5J.js";
4
4
  import "./chunk-KFQGP6VL.js";
5
5
  export {
6
6
  SessionRecorder