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:
2
node_modules/playwright/lib/mcp/extension/cdpRelay.js
generated
vendored
2
node_modules/playwright/lib/mcp/extension/cdpRelay.js
generated
vendored
@@ -44,7 +44,7 @@ class CDPRelayServer {
|
||||
this._playwrightConnection = null;
|
||||
this._extensionConnection = null;
|
||||
this._nextSessionId = 1;
|
||||
this._wsHost = (0, import_http2.httpAddressToString)(server.address()).replace(/^http/, "ws");
|
||||
this._wsHost = (0, import_http2.addressToString)(server.address(), { protocol: "ws" });
|
||||
this._browserChannel = browserChannel;
|
||||
this._userDataDir = userDataDir;
|
||||
this._executablePath = executablePath;
|
||||
|
||||
11
node_modules/playwright/lib/mcp/extension/extensionContextFactory.js
generated
vendored
11
node_modules/playwright/lib/mcp/extension/extensionContextFactory.js
generated
vendored
@@ -33,7 +33,7 @@ __export(extensionContextFactory_exports, {
|
||||
module.exports = __toCommonJS(extensionContextFactory_exports);
|
||||
var playwright = __toESM(require("playwright-core"));
|
||||
var import_utilsBundle = require("playwright-core/lib/utilsBundle");
|
||||
var import_http = require("../sdk/http");
|
||||
var import_utils = require("playwright-core/lib/utils");
|
||||
var import_cdpRelay = require("./cdpRelay");
|
||||
const debugLogger = (0, import_utilsBundle.debug)("pw:mcp:relay");
|
||||
class ExtensionContextFactory {
|
||||
@@ -42,8 +42,8 @@ class ExtensionContextFactory {
|
||||
this._userDataDir = userDataDir;
|
||||
this._executablePath = executablePath;
|
||||
}
|
||||
async createContext(clientInfo, abortSignal, toolName) {
|
||||
const browser = await this._obtainBrowser(clientInfo, abortSignal, toolName);
|
||||
async createContext(clientInfo, abortSignal, options) {
|
||||
const browser = await this._obtainBrowser(clientInfo, abortSignal, options?.toolName);
|
||||
return {
|
||||
browserContext: browser.contexts()[0],
|
||||
close: async () => {
|
||||
@@ -55,10 +55,11 @@ class ExtensionContextFactory {
|
||||
async _obtainBrowser(clientInfo, abortSignal, toolName) {
|
||||
const relay = await this._startRelay(abortSignal);
|
||||
await relay.ensureExtensionConnectionForMCPContext(clientInfo, abortSignal, toolName);
|
||||
return await playwright.chromium.connectOverCDP(relay.cdpEndpoint());
|
||||
return await playwright.chromium.connectOverCDP(relay.cdpEndpoint(), { isLocal: true });
|
||||
}
|
||||
async _startRelay(abortSignal) {
|
||||
const httpServer = await (0, import_http.startHttpServer)({});
|
||||
const httpServer = (0, import_utils.createHttpServer)();
|
||||
await (0, import_utils.startHttpServer)(httpServer, {});
|
||||
if (abortSignal.aborted) {
|
||||
httpServer.close();
|
||||
throw new Error(abortSignal.reason);
|
||||
|
||||
Reference in New Issue
Block a user