@cotestdev/mcp_playwright 0.0.53 → 0.0.54
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.
|
@@ -18,7 +18,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var common_exports = {};
|
|
20
20
|
__export(common_exports, {
|
|
21
|
-
baseSchema: () => import_schema2.baseSchema,
|
|
22
21
|
default: () => common_default
|
|
23
22
|
});
|
|
24
23
|
module.exports = __toCommonJS(common_exports);
|
|
@@ -26,7 +25,6 @@ var import_mcpBundle = require("../../../mcpBundle");
|
|
|
26
25
|
var import_tool = require("./tool");
|
|
27
26
|
var import_response = require("../response");
|
|
28
27
|
var import_schema = require("./schema");
|
|
29
|
-
var import_schema2 = require("./schema");
|
|
30
28
|
const close = (0, import_tool.defineTool)({
|
|
31
29
|
capability: "core",
|
|
32
30
|
schema: {
|
|
@@ -64,7 +62,3 @@ var common_default = [
|
|
|
64
62
|
close,
|
|
65
63
|
resize
|
|
66
64
|
];
|
|
67
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
-
0 && (module.exports = {
|
|
69
|
-
baseSchema
|
|
70
|
-
});
|
package/lib/mcp/program.js
CHANGED
|
@@ -67,12 +67,12 @@ Please run the command below. It will install a local copy of ffmpeg and will no
|
|
|
67
67
|
const extensionContextFactory = new import_extensionContextFactory.ExtensionContextFactory(config.browser.launchOptions.channel || "chrome", config.browser.userDataDir, config.browser.launchOptions.executablePath, forceNewTab);
|
|
68
68
|
if (config.sessionConfig) {
|
|
69
69
|
const contextFactory2 = config.extension ? extensionContextFactory : browserContextFactory;
|
|
70
|
-
console.log(`### Config`);
|
|
71
|
-
console.log("```json");
|
|
72
|
-
console.log(JSON.stringify(config, null, 2));
|
|
73
|
-
console.log("```");
|
|
74
70
|
try {
|
|
75
71
|
const socketPath = await (0, import_daemon.startMcpDaemonServer)(config, contextFactory2);
|
|
72
|
+
console.log(`### Config`);
|
|
73
|
+
console.log("```json");
|
|
74
|
+
console.log(JSON.stringify(config, null, 2));
|
|
75
|
+
console.log("```");
|
|
76
76
|
console.log(`### Success
|
|
77
77
|
Daemon listening on ${socketPath}`);
|
|
78
78
|
console.log("<EOF>");
|
|
@@ -398,10 +398,7 @@ const globalOptions = [
|
|
|
398
398
|
const booleanOptions = [
|
|
399
399
|
"all",
|
|
400
400
|
"help",
|
|
401
|
-
"version"
|
|
402
|
-
"extension",
|
|
403
|
-
"headed",
|
|
404
|
-
"persistent"
|
|
401
|
+
"version"
|
|
405
402
|
];
|
|
406
403
|
async function program(packageLocation) {
|
|
407
404
|
const clientInfo = createClientInfo(packageLocation);
|