@cotestdev/mcp_playwright 0.0.53 → 0.0.55
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/lib/mcp/browser/tools/common.js +0 -6
- package/lib/mcp/program.js +4 -4
- package/lib/mcp/terminal/program.js +1 -4
- package/lib/transform/babelBundle.js +46 -0
- package/lib/transform/babelBundleImpl.js +461 -0
- package/lib/transform/compilationCache.js +274 -0
- package/lib/transform/esmLoader.js +103 -0
- package/lib/transform/md.js +221 -0
- package/lib/transform/portTransport.js +67 -0
- package/lib/transform/transform.js +303 -0
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var babelBundle_exports = {};
|
|
20
|
+
__export(babelBundle_exports, {
|
|
21
|
+
babelParse: () => babelParse,
|
|
22
|
+
babelTransform: () => babelTransform,
|
|
23
|
+
codeFrameColumns: () => codeFrameColumns,
|
|
24
|
+
declare: () => declare,
|
|
25
|
+
genMapping: () => genMapping,
|
|
26
|
+
traverse: () => traverse,
|
|
27
|
+
types: () => types
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(babelBundle_exports);
|
|
30
|
+
const codeFrameColumns = require("./babelBundleImpl").codeFrameColumns;
|
|
31
|
+
const declare = require("./babelBundleImpl").declare;
|
|
32
|
+
const types = require("./babelBundleImpl").types;
|
|
33
|
+
const traverse = require("./babelBundleImpl").traverse;
|
|
34
|
+
const babelTransform = require("./babelBundleImpl").babelTransform;
|
|
35
|
+
const babelParse = require("./babelBundleImpl").babelParse;
|
|
36
|
+
const genMapping = require("./babelBundleImpl").genMapping;
|
|
37
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
38
|
+
0 && (module.exports = {
|
|
39
|
+
babelParse,
|
|
40
|
+
babelTransform,
|
|
41
|
+
codeFrameColumns,
|
|
42
|
+
declare,
|
|
43
|
+
genMapping,
|
|
44
|
+
traverse,
|
|
45
|
+
types
|
|
46
|
+
});
|