@xbrowser/cli 1.36.0 → 1.36.1
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/{chunk-RL5FFY2Q.js → chunk-3ZHERY5Z.js} +2 -2
- package/dist/{chunk-GVJ2UY65.js → chunk-5BD2RE4G.js} +2 -2
- package/dist/{chunk-ZR4NHTUV.js → chunk-7O73V4GO.js} +1 -1
- package/dist/{chunk-WGWPWNIA.js → chunk-DGPPP5XB.js} +1 -1
- package/dist/{chunk-2IOFJ6A3.js → chunk-DUC664TA.js} +2 -2
- package/dist/{chunk-SBMVECDS.js → chunk-HNIGRT6P.js} +1 -1
- package/dist/{chunk-7KVH6MQG.js → chunk-NE344XKO.js} +2 -2
- package/dist/cli.js +10 -10
- package/dist/{daemon-client-BBPQWLUX.js → daemon-client-D4JG74IW.js} +1 -1
- package/dist/{daemon-client-AKQK5IIB.js → daemon-client-XKWIZI4N.js} +1 -1
- package/dist/daemon-main.js +3 -3
- package/dist/index.js +10 -10
- package/dist/{run-routes-64IBBVOX.js → run-routes-BDNVNZOS.js} +3 -3
- package/dist/{run-routes-FG4LIACU.js → run-routes-FBMZ3OUW.js} +3 -3
- package/dist/{server-K22LJBO2.js → server-6OWQMWRG.js} +1 -1
- package/dist/{server-ZHZDJJMG.js → server-TPM3X3XK.js} +1 -1
- package/dist/{viewer-routes-CEO7HWCB.js → viewer-routes-7E7S2QBD.js} +2 -2
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-RGL2YTWQ.js";
|
|
5
5
|
import {
|
|
6
6
|
executeChain
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5BD2RE4G.js";
|
|
8
8
|
import {
|
|
9
9
|
forwardManagedRun
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DGPPP5XB.js";
|
|
11
11
|
import {
|
|
12
12
|
errMsg
|
|
13
13
|
} from "./chunk-GDKLH7ZY.js";
|
|
@@ -10148,7 +10148,7 @@ async function executePluginChainStep(context) {
|
|
|
10148
10148
|
}
|
|
10149
10149
|
const needsBrowser = cmdEntry.scope === "page" || cmdEntry.scope === "browser";
|
|
10150
10150
|
if (needsBrowser && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
10151
|
-
const { forwardPluginExec } = await import("./daemon-client-
|
|
10151
|
+
const { forwardPluginExec } = await import("./daemon-client-D4JG74IW.js");
|
|
10152
10152
|
const userTimeout = typeof pluginParams.timeout === "number" && pluginParams.timeout > 0 ? pluginParams.timeout * 1e3 + 3e4 : void 0;
|
|
10153
10153
|
const startFwd = Date.now();
|
|
10154
10154
|
const fwd = await forwardPluginExec(
|
|
@@ -10393,7 +10393,7 @@ async function executeCommand(commandName, params, sessionName = "default", extr
|
|
|
10393
10393
|
params = result.data;
|
|
10394
10394
|
}
|
|
10395
10395
|
if (command.scope !== "cli" && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
10396
|
-
const { forwardExec } = await import("./daemon-client-
|
|
10396
|
+
const { forwardExec } = await import("./daemon-client-D4JG74IW.js");
|
|
10397
10397
|
const longRunning = /^(vision-task|task|crawl|scrape|record|replay)$/.test(commandName);
|
|
10398
10398
|
const result = await forwardExec(
|
|
10399
10399
|
commandName,
|
|
@@ -11,7 +11,7 @@ import { createRequire } from "module";
|
|
|
11
11
|
var require2 = createRequire(import.meta.url);
|
|
12
12
|
var pkg = require2("../package.json");
|
|
13
13
|
var version = pkg.version;
|
|
14
|
-
var buildId = true ? "
|
|
14
|
+
var buildId = true ? "mwuc4jre" : "dev";
|
|
15
15
|
|
|
16
16
|
// src/client/daemon-client.ts
|
|
17
17
|
import { request as httpRequest } from "http";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeChain
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NE344XKO.js";
|
|
4
4
|
import {
|
|
5
5
|
outputEnvelope,
|
|
6
6
|
outputError
|
|
7
7
|
} from "./chunk-RGL2YTWQ.js";
|
|
8
8
|
import {
|
|
9
9
|
forwardManagedRun
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DGPPP5XB.js";
|
|
11
11
|
import {
|
|
12
12
|
errMsg
|
|
13
13
|
} from "./chunk-GDKLH7ZY.js";
|
|
@@ -3,7 +3,7 @@ import { createRequire } from "module";
|
|
|
3
3
|
var require2 = createRequire(import.meta.url);
|
|
4
4
|
var pkg = require2("../package.json");
|
|
5
5
|
var version = pkg.version;
|
|
6
|
-
var buildId = true ? "
|
|
6
|
+
var buildId = true ? "mwuc4jre" : "dev";
|
|
7
7
|
|
|
8
8
|
export {
|
|
9
9
|
version,
|
|
@@ -9833,7 +9833,7 @@ async function executePluginChainStep(context) {
|
|
|
9833
9833
|
}
|
|
9834
9834
|
const needsBrowser = cmdEntry.scope === "page" || cmdEntry.scope === "browser";
|
|
9835
9835
|
if (needsBrowser && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
9836
|
-
const { forwardPluginExec } = await import("./daemon-client-
|
|
9836
|
+
const { forwardPluginExec } = await import("./daemon-client-D4JG74IW.js");
|
|
9837
9837
|
const userTimeout = typeof pluginParams.timeout === "number" && pluginParams.timeout > 0 ? pluginParams.timeout * 1e3 + 3e4 : void 0;
|
|
9838
9838
|
const startFwd = Date.now();
|
|
9839
9839
|
const fwd = await forwardPluginExec(
|
|
@@ -10078,7 +10078,7 @@ async function executeCommand(commandName, params, sessionName = "default", extr
|
|
|
10078
10078
|
params = result.data;
|
|
10079
10079
|
}
|
|
10080
10080
|
if (command.scope !== "cli" && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
10081
|
-
const { forwardExec } = await import("./daemon-client-
|
|
10081
|
+
const { forwardExec } = await import("./daemon-client-D4JG74IW.js");
|
|
10082
10082
|
const longRunning = /^(vision-task|task|crawl|scrape|record|replay)$/.test(commandName);
|
|
10083
10083
|
const result = await forwardExec(
|
|
10084
10084
|
commandName,
|
package/dist/cli.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
handleRun,
|
|
4
4
|
readStdin
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DUC664TA.js";
|
|
6
6
|
import {
|
|
7
7
|
PluginMetadataParser,
|
|
8
8
|
XBrowserPluginLoader,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
parsePluginParams,
|
|
25
25
|
readJsonFile,
|
|
26
26
|
splitOutsideQuotes
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NE344XKO.js";
|
|
28
28
|
import {
|
|
29
29
|
closeAllSessions,
|
|
30
30
|
closeSessionByName,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
} from "./chunk-ZTHE5RBZ.js";
|
|
51
51
|
import {
|
|
52
52
|
handleViewer
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7O73V4GO.js";
|
|
54
54
|
import {
|
|
55
55
|
outputEnvelope,
|
|
56
56
|
outputError,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
forwardSessionClose,
|
|
81
81
|
forwardSessionList,
|
|
82
82
|
version
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-DGPPP5XB.js";
|
|
84
84
|
import {
|
|
85
85
|
getDaemonProcessStatus,
|
|
86
86
|
killAllDaemonProcesses,
|
|
@@ -2782,7 +2782,7 @@ async function handleSession(args, options, mode, _cdpEndpoint) {
|
|
|
2782
2782
|
const sub = args[0];
|
|
2783
2783
|
switch (sub) {
|
|
2784
2784
|
case "handoff": {
|
|
2785
|
-
const { handleViewer: handleViewer2 } = await import("./viewer-routes-
|
|
2785
|
+
const { handleViewer: handleViewer2 } = await import("./viewer-routes-7E7S2QBD.js");
|
|
2786
2786
|
await handleViewer2([], { ...options, session: args[1] ?? options.session }, mode, _cdpEndpoint);
|
|
2787
2787
|
break;
|
|
2788
2788
|
}
|
|
@@ -2790,7 +2790,7 @@ async function handleSession(args, options, mode, _cdpEndpoint) {
|
|
|
2790
2790
|
case "restore": {
|
|
2791
2791
|
const name = args[1] || options.session || process.env.XBROWSER_SESSION || "default";
|
|
2792
2792
|
try {
|
|
2793
|
-
const { forwardSessionState } = await import("./daemon-client-
|
|
2793
|
+
const { forwardSessionState } = await import("./daemon-client-D4JG74IW.js");
|
|
2794
2794
|
const data = await forwardSessionState(sub, name);
|
|
2795
2795
|
outputEnvelope({ success: true, data }, { command: `session ${sub}` }, mode);
|
|
2796
2796
|
} catch (error) {
|
|
@@ -3320,7 +3320,7 @@ async function handlePlugin(args, options, mode) {
|
|
|
3320
3320
|
} catch {
|
|
3321
3321
|
}
|
|
3322
3322
|
try {
|
|
3323
|
-
const { daemonPing: daemonPing2 } = await import("./daemon-client-
|
|
3323
|
+
const { daemonPing: daemonPing2 } = await import("./daemon-client-D4JG74IW.js");
|
|
3324
3324
|
if (await daemonPing2()) {
|
|
3325
3325
|
await fetch("http://localhost:9224/rpc", {
|
|
3326
3326
|
method: "POST",
|
|
@@ -8079,7 +8079,7 @@ async function handleRemote(args, options, mode) {
|
|
|
8079
8079
|
}
|
|
8080
8080
|
}
|
|
8081
8081
|
async function startMcpServer() {
|
|
8082
|
-
const { startMcpStdio } = await import("./server-
|
|
8082
|
+
const { startMcpStdio } = await import("./server-TPM3X3XK.js");
|
|
8083
8083
|
startMcpStdio();
|
|
8084
8084
|
}
|
|
8085
8085
|
|
|
@@ -8129,7 +8129,7 @@ async function dispatchSubcommand(request) {
|
|
|
8129
8129
|
if (cdpEndpoint || options.bridge) {
|
|
8130
8130
|
outputError("Managed runs use a self-launched headless browser");
|
|
8131
8131
|
} else {
|
|
8132
|
-
const { handleManagedRunFile } = await import("./run-routes-
|
|
8132
|
+
const { handleManagedRunFile } = await import("./run-routes-BDNVNZOS.js");
|
|
8133
8133
|
await handleManagedRunFile(cmdArgs[0], { sessionName, parallel: options.parallel, mode });
|
|
8134
8134
|
}
|
|
8135
8135
|
} else {
|
|
@@ -8380,7 +8380,7 @@ Run "xbrowser ${command} ${subCommand} --help" to see available parameters.`
|
|
|
8380
8380
|
}
|
|
8381
8381
|
const needsBrowser = cmdEntry.scope === "page" || cmdEntry.scope === "browser";
|
|
8382
8382
|
if (needsBrowser && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
8383
|
-
const { forwardPluginExec } = await import("./daemon-client-
|
|
8383
|
+
const { forwardPluginExec } = await import("./daemon-client-D4JG74IW.js");
|
|
8384
8384
|
const userTimeout = typeof params.timeout === "number" && params.timeout > 0 ? params.timeout * 1e3 + 3e4 : void 0;
|
|
8385
8385
|
const result = await forwardPluginExec(`${command}.${subCommand}`, params, sessionName, cdpEndpoint, userTimeout);
|
|
8386
8386
|
const resultData = result && typeof result === "object" && "data" in result ? result.data : void 0;
|
package/dist/daemon-main.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
buildId,
|
|
11
11
|
version
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HNIGRT6P.js";
|
|
13
13
|
import {
|
|
14
14
|
buildViewerUrl
|
|
15
15
|
} from "./chunk-TZPKFUBT.js";
|
|
@@ -9361,7 +9361,7 @@ async function executePluginChainStep(context) {
|
|
|
9361
9361
|
}
|
|
9362
9362
|
const needsBrowser = cmdEntry.scope === "page" || cmdEntry.scope === "browser";
|
|
9363
9363
|
if (needsBrowser && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
9364
|
-
const { forwardPluginExec } = await import("./daemon-client-
|
|
9364
|
+
const { forwardPluginExec } = await import("./daemon-client-XKWIZI4N.js");
|
|
9365
9365
|
const userTimeout = typeof pluginParams.timeout === "number" && pluginParams.timeout > 0 ? pluginParams.timeout * 1e3 + 3e4 : void 0;
|
|
9366
9366
|
const startFwd = Date.now();
|
|
9367
9367
|
const fwd = await forwardPluginExec(
|
|
@@ -9606,7 +9606,7 @@ async function executeCommand(commandName, params, sessionName = "default", extr
|
|
|
9606
9606
|
params = result.data;
|
|
9607
9607
|
}
|
|
9608
9608
|
if (command.scope !== "cli" && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
9609
|
-
const { forwardExec } = await import("./daemon-client-
|
|
9609
|
+
const { forwardExec } = await import("./daemon-client-XKWIZI4N.js");
|
|
9610
9610
|
const longRunning = /^(vision-task|task|crawl|scrape|record|replay)$/.test(commandName);
|
|
9611
9611
|
const result = await forwardExec(
|
|
9612
9612
|
commandName,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleViewer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7O73V4GO.js";
|
|
4
4
|
import {
|
|
5
5
|
generateBashScript,
|
|
6
6
|
generateJSScript,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
handleRun,
|
|
20
20
|
readCommandFile,
|
|
21
21
|
readStdin
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3ZHERY5Z.js";
|
|
23
23
|
import {
|
|
24
24
|
outputEnvelope,
|
|
25
25
|
outputError,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
splitOutsideQuotes,
|
|
70
70
|
waitForAIResponse,
|
|
71
71
|
waitForPage
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-5BD2RE4G.js";
|
|
73
73
|
import {
|
|
74
74
|
SessionRecorder,
|
|
75
75
|
readMarkdownSummary
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
forwardSessionClose,
|
|
113
113
|
forwardSessionList,
|
|
114
114
|
version
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-DGPPP5XB.js";
|
|
116
116
|
import {
|
|
117
117
|
buildViewerUrl
|
|
118
118
|
} from "./chunk-3OD76SUE.js";
|
|
@@ -2876,7 +2876,7 @@ async function handleSession(args, options, mode, _cdpEndpoint) {
|
|
|
2876
2876
|
const sub = args[0];
|
|
2877
2877
|
switch (sub) {
|
|
2878
2878
|
case "handoff": {
|
|
2879
|
-
const { handleViewer: handleViewer2 } = await import("./viewer-routes-
|
|
2879
|
+
const { handleViewer: handleViewer2 } = await import("./viewer-routes-7E7S2QBD.js");
|
|
2880
2880
|
await handleViewer2([], { ...options, session: args[1] ?? options.session }, mode, _cdpEndpoint);
|
|
2881
2881
|
break;
|
|
2882
2882
|
}
|
|
@@ -2884,7 +2884,7 @@ async function handleSession(args, options, mode, _cdpEndpoint) {
|
|
|
2884
2884
|
case "restore": {
|
|
2885
2885
|
const name = args[1] || options.session || process.env.XBROWSER_SESSION || "default";
|
|
2886
2886
|
try {
|
|
2887
|
-
const { forwardSessionState } = await import("./daemon-client-
|
|
2887
|
+
const { forwardSessionState } = await import("./daemon-client-D4JG74IW.js");
|
|
2888
2888
|
const data = await forwardSessionState(sub, name);
|
|
2889
2889
|
outputEnvelope({ success: true, data }, { command: `session ${sub}` }, mode);
|
|
2890
2890
|
} catch (error) {
|
|
@@ -3414,7 +3414,7 @@ async function handlePlugin(args, options, mode) {
|
|
|
3414
3414
|
} catch {
|
|
3415
3415
|
}
|
|
3416
3416
|
try {
|
|
3417
|
-
const { daemonPing: daemonPing2 } = await import("./daemon-client-
|
|
3417
|
+
const { daemonPing: daemonPing2 } = await import("./daemon-client-D4JG74IW.js");
|
|
3418
3418
|
if (await daemonPing2()) {
|
|
3419
3419
|
await fetch("http://localhost:9224/rpc", {
|
|
3420
3420
|
method: "POST",
|
|
@@ -8173,7 +8173,7 @@ async function handleRemote(args, options, mode) {
|
|
|
8173
8173
|
}
|
|
8174
8174
|
}
|
|
8175
8175
|
async function startMcpServer() {
|
|
8176
|
-
const { startMcpStdio } = await import("./server-
|
|
8176
|
+
const { startMcpStdio } = await import("./server-6OWQMWRG.js");
|
|
8177
8177
|
startMcpStdio();
|
|
8178
8178
|
}
|
|
8179
8179
|
|
|
@@ -8223,7 +8223,7 @@ async function dispatchSubcommand(request) {
|
|
|
8223
8223
|
if (cdpEndpoint || options.bridge) {
|
|
8224
8224
|
outputError("Managed runs use a self-launched headless browser");
|
|
8225
8225
|
} else {
|
|
8226
|
-
const { handleManagedRunFile } = await import("./run-routes-
|
|
8226
|
+
const { handleManagedRunFile } = await import("./run-routes-FBMZ3OUW.js");
|
|
8227
8227
|
await handleManagedRunFile(cmdArgs[0], { sessionName, parallel: options.parallel, mode });
|
|
8228
8228
|
}
|
|
8229
8229
|
} else {
|
|
@@ -8474,7 +8474,7 @@ Run "xbrowser ${command} ${subCommand} --help" to see available parameters.`
|
|
|
8474
8474
|
}
|
|
8475
8475
|
const needsBrowser = cmdEntry.scope === "page" || cmdEntry.scope === "browser";
|
|
8476
8476
|
if (needsBrowser && !process.env.XBROWSER_DAEMON_WORKER) {
|
|
8477
|
-
const { forwardPluginExec } = await import("./daemon-client-
|
|
8477
|
+
const { forwardPluginExec } = await import("./daemon-client-D4JG74IW.js");
|
|
8478
8478
|
const userTimeout = typeof params.timeout === "number" && params.timeout > 0 ? params.timeout * 1e3 + 3e4 : void 0;
|
|
8479
8479
|
const result = await forwardPluginExec(`${command}.${subCommand}`, params, sessionName, cdpEndpoint, userTimeout);
|
|
8480
8480
|
const resultData = result && typeof result === "object" && "data" in result ? result.data : void 0;
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
handleManagedRunFile,
|
|
3
3
|
handleRun,
|
|
4
4
|
runNamedJobs
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-DUC664TA.js";
|
|
6
|
+
import "./chunk-NE344XKO.js";
|
|
7
7
|
import "./chunk-KSB4PMCY.js";
|
|
8
8
|
import "./chunk-JKVUFP3G.js";
|
|
9
9
|
import "./chunk-3SZTCI33.js";
|
|
10
10
|
import "./chunk-3OD76SUE.js";
|
|
11
11
|
import "./chunk-ZTHE5RBZ.js";
|
|
12
12
|
import "./chunk-RGL2YTWQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-DGPPP5XB.js";
|
|
14
14
|
import "./chunk-Q2DFJQGS.js";
|
|
15
15
|
import "./chunk-GYGVHWG3.js";
|
|
16
16
|
import "./chunk-SMYSNO4M.js";
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
handleManagedRunFile,
|
|
3
3
|
handleRun,
|
|
4
4
|
runNamedJobs
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3ZHERY5Z.js";
|
|
6
6
|
import "./chunk-RGL2YTWQ.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-5BD2RE4G.js";
|
|
8
8
|
import "./chunk-ENTENDF5.js";
|
|
9
9
|
import "./chunk-JKVUFP3G.js";
|
|
10
10
|
import "./chunk-3SZTCI33.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-DGPPP5XB.js";
|
|
12
12
|
import "./chunk-3OD76SUE.js";
|
|
13
13
|
import "./chunk-ZTHE5RBZ.js";
|
|
14
14
|
import "./chunk-Q2DFJQGS.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleViewer
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7O73V4GO.js";
|
|
4
4
|
import "./chunk-RGL2YTWQ.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-DGPPP5XB.js";
|
|
6
6
|
import "./chunk-Q2DFJQGS.js";
|
|
7
7
|
import "./chunk-GDKLH7ZY.js";
|
|
8
8
|
import "./chunk-KFQGP6VL.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xbrowser/cli",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.1",
|
|
4
4
|
"description": "Browser automation CLI for web scraping, headless browsing, SEO analysis, and AI agent workflows. A command-line alternative to Playwright, Puppeteer, and Selenium.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|