Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
12
node_modules/playwright/lib/mcp/test/testBackend.js
generated
vendored
12
node_modules/playwright/lib/mcp/test/testBackend.js
generated
vendored
@@ -31,15 +31,15 @@ __export(testBackend_exports, {
|
||||
TestServerBackend: () => TestServerBackend
|
||||
});
|
||||
module.exports = __toCommonJS(testBackend_exports);
|
||||
var import_mcpBundle = require("playwright-core/lib/mcpBundle");
|
||||
var mcp = __toESM(require("../sdk/exports"));
|
||||
var import_testContext = require("./testContext");
|
||||
var testTools = __toESM(require("./testTools.js"));
|
||||
var generatorTools = __toESM(require("./generatorTools.js"));
|
||||
var plannerTools = __toESM(require("./plannerTools.js"));
|
||||
var import_tools = require("../browser/tools");
|
||||
var import_bundle = require("../sdk/bundle");
|
||||
class TestServerBackend {
|
||||
constructor(configOption, options) {
|
||||
constructor(configPath, options) {
|
||||
this.name = "Playwright";
|
||||
this.version = "0.0.1";
|
||||
this._tools = [
|
||||
@@ -55,10 +55,10 @@ class TestServerBackend {
|
||||
...import_tools.browserTools.map((tool) => wrapBrowserTool(tool))
|
||||
];
|
||||
this._options = options || {};
|
||||
this._configOption = configOption;
|
||||
this._configPath = configPath;
|
||||
}
|
||||
async initialize(clientInfo) {
|
||||
this._context = new import_testContext.TestContext(clientInfo, this._configOption, this._options);
|
||||
this._context = new import_testContext.TestContext(clientInfo, this._configPath, this._options);
|
||||
}
|
||||
async listTools() {
|
||||
return this._tools.map((tool) => mcp.toMcpTool(tool.schema));
|
||||
@@ -74,13 +74,13 @@ class TestServerBackend {
|
||||
}
|
||||
}
|
||||
serverClosed() {
|
||||
void this._context.close();
|
||||
void this._context?.close();
|
||||
}
|
||||
}
|
||||
const typesWithIntent = ["action", "assertion", "input"];
|
||||
function wrapBrowserTool(tool) {
|
||||
const inputSchema = typesWithIntent.includes(tool.schema.type) ? tool.schema.inputSchema.extend({
|
||||
intent: import_bundle.z.string().describe("The intent of the call, for example the test step description plan idea")
|
||||
intent: import_mcpBundle.z.string().describe("The intent of the call, for example the test step description plan idea")
|
||||
}) : tool.schema.inputSchema;
|
||||
return {
|
||||
schema: {
|
||||
|
||||
Reference in New Issue
Block a user