@zohodesk/testinglibrary 3.2.13 → 3.2.15
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/.gitlab-ci.yml +13 -13
- package/README.md +18 -0
- package/build/common/data-generator/steps/DataGeneratorStepsHelper.js +3 -1
- package/build/core/dataGenerator/DataGenerator.js +0 -9
- package/build/core/playwright/constants/reporterConstants.js +11 -0
- package/build/core/playwright/helpers/auth/getUsers.js +2 -1
- package/build/core/playwright/reporter/helpers/mergeAbortedTests.js +78 -0
- package/build/core/playwright/setup/custom-reporter.js +3 -0
- package/build/utils/logger.js +1 -1
- package/npm-shrinkwrap.json +59 -204
- package/package.json +1 -3
- package/test-results/.last-run.json +4 -0
- package/unit_reports/unit-report.html +260 -0
- package/playwright-mcp-test/node_modules/.package-lock.json +0 -54
- package/playwright-mcp-test/node_modules/@playwright/mcp/LICENSE +0 -202
- package/playwright-mcp-test/node_modules/@playwright/mcp/README.md +0 -907
- package/playwright-mcp-test/node_modules/@playwright/mcp/cli.js +0 -24
- package/playwright-mcp-test/node_modules/@playwright/mcp/config.d.ts +0 -174
- package/playwright-mcp-test/node_modules/@playwright/mcp/index.d.ts +0 -23
- package/playwright-mcp-test/node_modules/@playwright/mcp/index.js +0 -19
- package/playwright-mcp-test/node_modules/@playwright/mcp/package.json +0 -52
- package/playwright-mcp-test/node_modules/playwright/LICENSE +0 -202
- package/playwright-mcp-test/node_modules/playwright/NOTICE +0 -5
- package/playwright-mcp-test/node_modules/playwright/README.md +0 -168
- package/playwright-mcp-test/node_modules/playwright/ThirdPartyNotices.txt +0 -6277
- package/playwright-mcp-test/node_modules/playwright/cli.js +0 -19
- package/playwright-mcp-test/node_modules/playwright/index.d.ts +0 -17
- package/playwright-mcp-test/node_modules/playwright/index.js +0 -17
- package/playwright-mcp-test/node_modules/playwright/index.mjs +0 -18
- package/playwright-mcp-test/node_modules/playwright/jsx-runtime.js +0 -42
- package/playwright-mcp-test/node_modules/playwright/jsx-runtime.mjs +0 -21
- package/playwright-mcp-test/node_modules/playwright/lib/agents/generateAgents.js +0 -368
- package/playwright-mcp-test/node_modules/playwright/lib/agents/generator.agent.md +0 -101
- package/playwright-mcp-test/node_modules/playwright/lib/agents/healer.agent.md +0 -77
- package/playwright-mcp-test/node_modules/playwright/lib/agents/planner.agent.md +0 -138
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-coverage.prompt.md +0 -31
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-generate.prompt.md +0 -8
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-heal.prompt.md +0 -6
- package/playwright-mcp-test/node_modules/playwright/lib/agents/test-plan.prompt.md +0 -9
- package/playwright-mcp-test/node_modules/playwright/lib/common/config.js +0 -280
- package/playwright-mcp-test/node_modules/playwright/lib/common/configLoader.js +0 -344
- package/playwright-mcp-test/node_modules/playwright/lib/common/esmLoaderHost.js +0 -102
- package/playwright-mcp-test/node_modules/playwright/lib/common/expectBundle.js +0 -52
- package/playwright-mcp-test/node_modules/playwright/lib/common/expectBundleImpl.js +0 -389
- package/playwright-mcp-test/node_modules/playwright/lib/common/fixtures.js +0 -302
- package/playwright-mcp-test/node_modules/playwright/lib/common/globals.js +0 -58
- package/playwright-mcp-test/node_modules/playwright/lib/common/ipc.js +0 -60
- package/playwright-mcp-test/node_modules/playwright/lib/common/poolBuilder.js +0 -85
- package/playwright-mcp-test/node_modules/playwright/lib/common/process.js +0 -104
- package/playwright-mcp-test/node_modules/playwright/lib/common/suiteUtils.js +0 -140
- package/playwright-mcp-test/node_modules/playwright/lib/common/test.js +0 -321
- package/playwright-mcp-test/node_modules/playwright/lib/common/testLoader.js +0 -101
- package/playwright-mcp-test/node_modules/playwright/lib/common/testType.js +0 -298
- package/playwright-mcp-test/node_modules/playwright/lib/common/validators.js +0 -68
- package/playwright-mcp-test/node_modules/playwright/lib/fsWatcher.js +0 -67
- package/playwright-mcp-test/node_modules/playwright/lib/index.js +0 -682
- package/playwright-mcp-test/node_modules/playwright/lib/internalsForTest.js +0 -42
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/events.js +0 -77
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/folders.js +0 -30
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/stringInternPool.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/teleReceiver.js +0 -508
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +0 -137
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testServerConnection.js +0 -211
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testServerInterface.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/testTree.js +0 -334
- package/playwright-mcp-test/node_modules/playwright/lib/isomorphic/types.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/loader/loaderMain.js +0 -59
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/expect.js +0 -325
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/matcherHint.js +0 -87
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/matchers.js +0 -366
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toBeTruthy.js +0 -73
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toEqual.js +0 -99
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toHaveURL.js +0 -102
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +0 -159
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchSnapshot.js +0 -341
- package/playwright-mcp-test/node_modules/playwright/lib/matchers/toMatchText.js +0 -99
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/actions.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +0 -296
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +0 -76
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/codegen.js +0 -66
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/config.js +0 -385
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/context.js +0 -287
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/response.js +0 -228
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/sessionLog.js +0 -160
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tab.js +0 -280
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/common.js +0 -63
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/console.js +0 -44
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +0 -60
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/files.js +0 -58
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/form.js +0 -73
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/install.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +0 -84
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/mouse.js +0 -107
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/navigate.js +0 -62
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/network.js +0 -54
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/pdf.js +0 -59
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +0 -106
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +0 -181
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tabs.js +0 -67
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tool.js +0 -49
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/tracing.js +0 -74
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/utils.js +0 -89
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/verify.js +0 -153
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools/wait.js +0 -63
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/tools.js +0 -80
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/browser/watchdog.js +0 -44
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/config.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/cdpRelay.js +0 -351
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +0 -75
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/extension/protocol.js +0 -28
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/index.js +0 -61
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/log.js +0 -35
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/program.js +0 -96
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/bundle.js +0 -81
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/exports.js +0 -32
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/http.js +0 -187
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +0 -71
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/mdb.js +0 -206
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/proxyBackend.js +0 -128
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/server.js +0 -189
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/sdk/tool.js +0 -51
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/browserBackend.js +0 -98
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/generatorTools.js +0 -122
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/plannerTools.js +0 -46
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/seed.js +0 -82
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/streams.js +0 -39
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testBackend.js +0 -97
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testContext.js +0 -176
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testTool.js +0 -30
- package/playwright-mcp-test/node_modules/playwright/lib/mcp/test/testTools.js +0 -115
- package/playwright-mcp-test/node_modules/playwright/lib/mcpBundleImpl.js +0 -41
- package/playwright-mcp-test/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +0 -198
- package/playwright-mcp-test/node_modules/playwright/lib/plugins/index.js +0 -28
- package/playwright-mcp-test/node_modules/playwright/lib/plugins/webServerPlugin.js +0 -209
- package/playwright-mcp-test/node_modules/playwright/lib/program.js +0 -411
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/base.js +0 -609
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/blob.js +0 -135
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/dot.js +0 -82
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/empty.js +0 -32
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/github.js +0 -128
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/html.js +0 -623
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/internalReporter.js +0 -130
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/json.js +0 -254
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/junit.js +0 -232
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/line.js +0 -113
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/list.js +0 -235
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/listModeReporter.js +0 -69
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/markdown.js +0 -144
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/merge.js +0 -541
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/multiplexer.js +0 -104
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/reporterV2.js +0 -102
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/teleEmitter.js +0 -298
- package/playwright-mcp-test/node_modules/playwright/lib/reporters/versions/blobV1.js +0 -16
- package/playwright-mcp-test/node_modules/playwright/lib/runner/dispatcher.js +0 -491
- package/playwright-mcp-test/node_modules/playwright/lib/runner/failureTracker.js +0 -72
- package/playwright-mcp-test/node_modules/playwright/lib/runner/lastRun.js +0 -77
- package/playwright-mcp-test/node_modules/playwright/lib/runner/loadUtils.js +0 -334
- package/playwright-mcp-test/node_modules/playwright/lib/runner/loaderHost.js +0 -89
- package/playwright-mcp-test/node_modules/playwright/lib/runner/processHost.js +0 -161
- package/playwright-mcp-test/node_modules/playwright/lib/runner/projectUtils.js +0 -241
- package/playwright-mcp-test/node_modules/playwright/lib/runner/rebase.js +0 -189
- package/playwright-mcp-test/node_modules/playwright/lib/runner/reporters.js +0 -139
- package/playwright-mcp-test/node_modules/playwright/lib/runner/sigIntWatcher.js +0 -96
- package/playwright-mcp-test/node_modules/playwright/lib/runner/taskRunner.js +0 -127
- package/playwright-mcp-test/node_modules/playwright/lib/runner/tasks.js +0 -410
- package/playwright-mcp-test/node_modules/playwright/lib/runner/testGroups.js +0 -117
- package/playwright-mcp-test/node_modules/playwright/lib/runner/testRunner.js +0 -390
- package/playwright-mcp-test/node_modules/playwright/lib/runner/testServer.js +0 -264
- package/playwright-mcp-test/node_modules/playwright/lib/runner/uiModeReporter.js +0 -30
- package/playwright-mcp-test/node_modules/playwright/lib/runner/vcs.js +0 -72
- package/playwright-mcp-test/node_modules/playwright/lib/runner/watchMode.js +0 -395
- package/playwright-mcp-test/node_modules/playwright/lib/runner/workerHost.js +0 -95
- package/playwright-mcp-test/node_modules/playwright/lib/third_party/pirates.js +0 -62
- package/playwright-mcp-test/node_modules/playwright/lib/third_party/tsconfig-loader.js +0 -103
- package/playwright-mcp-test/node_modules/playwright/lib/transform/babelBundle.js +0 -43
- package/playwright-mcp-test/node_modules/playwright/lib/transform/babelBundleImpl.js +0 -461
- package/playwright-mcp-test/node_modules/playwright/lib/transform/compilationCache.js +0 -272
- package/playwright-mcp-test/node_modules/playwright/lib/transform/esmLoader.js +0 -104
- package/playwright-mcp-test/node_modules/playwright/lib/transform/portTransport.js +0 -67
- package/playwright-mcp-test/node_modules/playwright/lib/transform/transform.js +0 -293
- package/playwright-mcp-test/node_modules/playwright/lib/util.js +0 -403
- package/playwright-mcp-test/node_modules/playwright/lib/utilsBundle.js +0 -43
- package/playwright-mcp-test/node_modules/playwright/lib/utilsBundleImpl.js +0 -100
- package/playwright-mcp-test/node_modules/playwright/lib/worker/fixtureRunner.js +0 -258
- package/playwright-mcp-test/node_modules/playwright/lib/worker/testInfo.js +0 -514
- package/playwright-mcp-test/node_modules/playwright/lib/worker/testTracing.js +0 -344
- package/playwright-mcp-test/node_modules/playwright/lib/worker/timeoutManager.js +0 -174
- package/playwright-mcp-test/node_modules/playwright/lib/worker/util.js +0 -31
- package/playwright-mcp-test/node_modules/playwright/lib/worker/workerMain.js +0 -520
- package/playwright-mcp-test/node_modules/playwright/package.json +0 -72
- package/playwright-mcp-test/node_modules/playwright/test.d.ts +0 -18
- package/playwright-mcp-test/node_modules/playwright/test.js +0 -24
- package/playwright-mcp-test/node_modules/playwright/test.mjs +0 -33
- package/playwright-mcp-test/node_modules/playwright/types/test.d.ts +0 -10185
- package/playwright-mcp-test/node_modules/playwright/types/testReporter.d.ts +0 -821
- package/playwright-mcp-test/node_modules/playwright-core/LICENSE +0 -202
- package/playwright-mcp-test/node_modules/playwright-core/NOTICE +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/README.md +0 -3
- package/playwright-mcp-test/node_modules/playwright-core/ThirdPartyNotices.txt +0 -1161
- package/playwright-mcp-test/node_modules/playwright-core/bin/install_media_pack.ps1 +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +0 -35
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -13
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -12
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -48
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -11
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +0 -23
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -48
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -11
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +0 -23
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -48
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -11
- package/playwright-mcp-test/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/browsers.json +0 -80
- package/playwright-mcp-test/node_modules/playwright-core/cli.js +0 -18
- package/playwright-mcp-test/node_modules/playwright-core/index.d.ts +0 -17
- package/playwright-mcp-test/node_modules/playwright-core/index.js +0 -32
- package/playwright-mcp-test/node_modules/playwright-core/index.mjs +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/androidServerImpl.js +0 -65
- package/playwright-mcp-test/node_modules/playwright-core/lib/browserServerImpl.js +0 -120
- package/playwright-mcp-test/node_modules/playwright-core/lib/cli/driver.js +0 -97
- package/playwright-mcp-test/node_modules/playwright-core/lib/cli/program.js +0 -634
- package/playwright-mcp-test/node_modules/playwright-core/lib/cli/programWithTestStub.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/accessibility.js +0 -49
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/android.js +0 -361
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/api.js +0 -137
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/artifact.js +0 -79
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/browser.js +0 -163
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/browserContext.js +0 -529
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/browserType.js +0 -184
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/cdpSession.js +0 -51
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/channelOwner.js +0 -194
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientHelper.js +0 -64
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientInstrumentation.js +0 -55
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clientStackTrace.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/clock.js +0 -68
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/connection.js +0 -314
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/consoleMessage.js +0 -54
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/coverage.js +0 -44
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/dialog.js +0 -56
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/download.js +0 -62
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/electron.js +0 -138
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/elementHandle.js +0 -281
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/errors.js +0 -77
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/eventEmitter.js +0 -314
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/events.js +0 -99
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/fetch.js +0 -369
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/fileChooser.js +0 -46
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/fileUtils.js +0 -34
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/frame.js +0 -408
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/harRouter.js +0 -87
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/input.js +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/jsHandle.js +0 -109
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/jsonPipe.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/localUtils.js +0 -60
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/locator.js +0 -369
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/network.js +0 -747
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/page.js +0 -721
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/platform.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/playwright.js +0 -71
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/selectors.js +0 -55
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/stream.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/timeoutSettings.js +0 -79
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/tracing.js +0 -117
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/types.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/video.js +0 -59
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/waiter.js +0 -142
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/webError.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/webSocket.js +0 -93
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/worker.js +0 -63
- package/playwright-mcp-test/node_modules/playwright-core/lib/client/writableStream.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/clockSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/injectedScriptSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/storageScriptSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/utilityScriptSource.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/generated/webSocketMockSource.js +0 -336
- package/playwright-mcp-test/node_modules/playwright-core/lib/inProcessFactory.js +0 -60
- package/playwright-mcp-test/node_modules/playwright-core/lib/inprocess.js +0 -3
- package/playwright-mcp-test/node_modules/playwright-core/lib/outofprocess.js +0 -76
- package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/serializers.js +0 -192
- package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/validator.js +0 -2912
- package/playwright-mcp-test/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +0 -193
- package/playwright-mcp-test/node_modules/playwright-core/lib/remote/playwrightConnection.js +0 -129
- package/playwright-mcp-test/node_modules/playwright-core/lib/remote/playwrightServer.js +0 -335
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/accessibility.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/android/android.js +0 -465
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/android/backendAdb.js +0 -177
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/artifact.js +0 -127
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +0 -490
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +0 -153
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +0 -212
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +0 -221
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +0 -130
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiInput.js +0 -146
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +0 -383
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +0 -102
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiPage.js +0 -554
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +0 -106
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiDeserializer.js +0 -98
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +0 -24
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +0 -179
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +0 -148
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +0 -259
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/browser.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/browserContext.js +0 -695
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/browserType.js +0 -328
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/callLog.js +0 -82
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/chromium.js +0 -402
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +0 -95
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crAccessibility.js +0 -263
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crBrowser.js +0 -502
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crConnection.js +0 -202
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crCoverage.js +0 -235
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crDevTools.js +0 -113
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +0 -131
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +0 -146
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crInput.js +0 -187
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +0 -666
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crPage.js +0 -1069
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crPdf.js +0 -121
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +0 -145
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +0 -123
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +0 -162
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/protocol.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/chromium/videoRecorder.js +0 -113
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/clock.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/csharp.js +0 -327
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/java.js +0 -274
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/javascript.js +0 -270
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/jsonl.js +0 -52
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/language.js +0 -132
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/languages.js +0 -68
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/python.js +0 -279
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/codegen/types.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/console.js +0 -53
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/cookieStore.js +0 -206
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/debugController.js +0 -191
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/debugger.js +0 -119
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/deviceDescriptors.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +0 -1779
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dialog.js +0 -116
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +0 -325
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +0 -118
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +0 -364
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +0 -118
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +0 -64
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +0 -44
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +0 -47
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +0 -371
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +0 -89
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +0 -227
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +0 -213
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +0 -401
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +0 -108
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +0 -67
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +0 -68
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -165
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/dom.js +0 -806
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/download.js +0 -70
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/electron/electron.js +0 -270
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/electron/loader.js +0 -29
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/errors.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/fetch.js +0 -621
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/fileChooser.js +0 -43
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/fileUploadUtils.js +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffAccessibility.js +0 -238
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +0 -428
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffConnection.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +0 -150
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffInput.js +0 -159
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +0 -256
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/ffPage.js +0 -503
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/firefox.js +0 -116
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/firefox/protocol.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/formData.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/frameSelectors.js +0 -154
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/frames.js +0 -1455
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/har/harRecorder.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/har/harTracer.js +0 -607
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/harBackend.js +0 -157
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/helper.js +0 -96
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/index.js +0 -58
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/input.js +0 -273
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/instrumentation.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/javascript.js +0 -291
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/launchApp.js +0 -128
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/localUtils.js +0 -214
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/macEditingCommands.js +0 -143
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/network.js +0 -629
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/page.js +0 -867
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/pipeTransport.js +0 -89
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/playwright.js +0 -69
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/progress.js +0 -112
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/protocolError.js +0 -52
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/chat.js +0 -161
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderApp.js +0 -387
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +0 -138
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +0 -83
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +0 -157
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder/throttledFile.js +0 -57
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/recorder.js +0 -499
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/browserFetcher.js +0 -175
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/dependencies.js +0 -371
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/index.js +0 -1361
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/nativeDeps.js +0 -1280
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +0 -124
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/screenshotter.js +0 -333
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/selectors.js +0 -112
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +0 -383
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/socksInterceptor.js +0 -95
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +0 -147
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +0 -541
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +0 -602
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/test/inMemorySnapshotter.js +0 -87
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +0 -230
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/transport.js +0 -181
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/types.js +0 -28
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/usKeyboardLayout.js +0 -145
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/ascii.js +0 -44
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/comparators.js +0 -139
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/crypto.js +0 -216
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/debug.js +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/debugLogger.js +0 -122
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/env.js +0 -73
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/eventsHelper.js +0 -39
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/expectUtils.js +0 -38
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/fileUtils.js +0 -191
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +0 -207
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/hostPlatform.js +0 -123
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/httpServer.js +0 -218
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/imageUtils.js +0 -146
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +0 -89
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +0 -109
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +0 -78
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +0 -102
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/linuxUtils.js +0 -71
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/network.js +0 -233
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/nodePlatform.js +0 -148
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/pipeTransport.js +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/processLauncher.js +0 -241
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/profiler.js +0 -65
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/socksProxy.js +0 -511
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/spawnAsync.js +0 -41
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/task.js +0 -51
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/userAgent.js +0 -98
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/wsServer.js +0 -121
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/zipFile.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/utils/zones.js +0 -57
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/protocol.d.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/webkit.js +0 -119
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkAccessibility.js +0 -237
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +0 -339
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkConnection.js +0 -149
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +0 -154
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkInput.js +0 -181
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +0 -169
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkPage.js +0 -1134
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +0 -83
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +0 -104
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wsl/webkit-wsl-transport-client.js +0 -74
- package/playwright-mcp-test/node_modules/playwright-core/lib/server/webkit/wsl/webkit-wsl-transport-server.js +0 -113
- package/playwright-mcp-test/node_modules/playwright-core/lib/third_party/pixelmatch.js +0 -255
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +0 -392
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/assert.js +0 -31
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/colors.js +0 -72
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +0 -245
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +0 -1051
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/headers.js +0 -53
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +0 -689
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +0 -176
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +0 -81
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +0 -114
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +0 -459
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +0 -80
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +0 -81
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +0 -321
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +0 -43
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +0 -386
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +0 -54
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +0 -158
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +0 -155
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/time.js +0 -49
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +0 -66
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +0 -58
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/types.js +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +0 -179
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +0 -251
- package/playwright-mcp-test/node_modules/playwright-core/lib/utils.js +0 -109
- package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundle.js +0 -112
- package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundleImpl/index.js +0 -218
- package/playwright-mcp-test/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +0 -1066
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/htmlReport/index.html +0 -84
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-C3UTv-Ge.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DX585GyR.js +0 -25
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/index-DjadjNw5.js +0 -193
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/assets/index-Ri0uHF7I.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/index.html +0 -29
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +0 -9
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-Cw-6jrKz.js +0 -25
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-BZIhX7gh.js +0 -266
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +0 -9
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.C3UTv-Ge.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.BEjzWGz-.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.Dk_obRs3.js +0 -2
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.I8N9v4jT.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/index.html +0 -43
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +0 -16
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +0 -9
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +0 -21
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +0 -3
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Bai-qGIw.js +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +0 -1
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +0 -17
- package/playwright-mcp-test/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +0 -32
- package/playwright-mcp-test/node_modules/playwright-core/lib/zipBundle.js +0 -34
- package/playwright-mcp-test/node_modules/playwright-core/lib/zipBundleImpl.js +0 -5
- package/playwright-mcp-test/node_modules/playwright-core/package.json +0 -42
- package/playwright-mcp-test/node_modules/playwright-core/types/protocol.d.ts +0 -23130
- package/playwright-mcp-test/node_modules/playwright-core/types/structs.d.ts +0 -45
- package/playwright-mcp-test/node_modules/playwright-core/types/types.d.ts +0 -22872
- package/playwright-mcp-test/package-lock.json +0 -76
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var bundle_exports = {};
|
|
30
|
-
__export(bundle_exports, {
|
|
31
|
-
CallToolRequestSchema: () => CallToolRequestSchema,
|
|
32
|
-
Client: () => Client,
|
|
33
|
-
ListRootsRequestSchema: () => ListRootsRequestSchema,
|
|
34
|
-
ListToolsRequestSchema: () => ListToolsRequestSchema,
|
|
35
|
-
PingRequestSchema: () => PingRequestSchema,
|
|
36
|
-
ProgressNotificationSchema: () => ProgressNotificationSchema,
|
|
37
|
-
SSEClientTransport: () => SSEClientTransport,
|
|
38
|
-
SSEServerTransport: () => SSEServerTransport,
|
|
39
|
-
Server: () => Server,
|
|
40
|
-
StdioClientTransport: () => StdioClientTransport,
|
|
41
|
-
StdioServerTransport: () => StdioServerTransport,
|
|
42
|
-
StreamableHTTPClientTransport: () => StreamableHTTPClientTransport,
|
|
43
|
-
StreamableHTTPServerTransport: () => StreamableHTTPServerTransport,
|
|
44
|
-
z: () => z,
|
|
45
|
-
zodToJsonSchema: () => zodToJsonSchema
|
|
46
|
-
});
|
|
47
|
-
module.exports = __toCommonJS(bundle_exports);
|
|
48
|
-
var bundle = __toESM(require("../../mcpBundleImpl"));
|
|
49
|
-
const zodToJsonSchema = bundle.zodToJsonSchema;
|
|
50
|
-
const Client = bundle.Client;
|
|
51
|
-
const Server = bundle.Server;
|
|
52
|
-
const SSEClientTransport = bundle.SSEClientTransport;
|
|
53
|
-
const SSEServerTransport = bundle.SSEServerTransport;
|
|
54
|
-
const StdioClientTransport = bundle.StdioClientTransport;
|
|
55
|
-
const StdioServerTransport = bundle.StdioServerTransport;
|
|
56
|
-
const StreamableHTTPServerTransport = bundle.StreamableHTTPServerTransport;
|
|
57
|
-
const StreamableHTTPClientTransport = bundle.StreamableHTTPClientTransport;
|
|
58
|
-
const CallToolRequestSchema = bundle.CallToolRequestSchema;
|
|
59
|
-
const ListRootsRequestSchema = bundle.ListRootsRequestSchema;
|
|
60
|
-
const ProgressNotificationSchema = bundle.ProgressNotificationSchema;
|
|
61
|
-
const ListToolsRequestSchema = bundle.ListToolsRequestSchema;
|
|
62
|
-
const PingRequestSchema = bundle.PingRequestSchema;
|
|
63
|
-
const z = bundle.z;
|
|
64
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
-
0 && (module.exports = {
|
|
66
|
-
CallToolRequestSchema,
|
|
67
|
-
Client,
|
|
68
|
-
ListRootsRequestSchema,
|
|
69
|
-
ListToolsRequestSchema,
|
|
70
|
-
PingRequestSchema,
|
|
71
|
-
ProgressNotificationSchema,
|
|
72
|
-
SSEClientTransport,
|
|
73
|
-
SSEServerTransport,
|
|
74
|
-
Server,
|
|
75
|
-
StdioClientTransport,
|
|
76
|
-
StdioServerTransport,
|
|
77
|
-
StreamableHTTPClientTransport,
|
|
78
|
-
StreamableHTTPServerTransport,
|
|
79
|
-
z,
|
|
80
|
-
zodToJsonSchema
|
|
81
|
-
});
|
|
@@ -1,32 +0,0 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var exports_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(exports_exports);
|
|
18
|
-
__reExport(exports_exports, require("./inProcessTransport"), module.exports);
|
|
19
|
-
__reExport(exports_exports, require("./proxyBackend"), module.exports);
|
|
20
|
-
__reExport(exports_exports, require("./server"), module.exports);
|
|
21
|
-
__reExport(exports_exports, require("./tool"), module.exports);
|
|
22
|
-
__reExport(exports_exports, require("./http"), module.exports);
|
|
23
|
-
__reExport(exports_exports, require("./mdb"), module.exports);
|
|
24
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
25
|
-
0 && (module.exports = {
|
|
26
|
-
...require("./inProcessTransport"),
|
|
27
|
-
...require("./proxyBackend"),
|
|
28
|
-
...require("./server"),
|
|
29
|
-
...require("./tool"),
|
|
30
|
-
...require("./http"),
|
|
31
|
-
...require("./mdb")
|
|
32
|
-
});
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var http_exports = {};
|
|
30
|
-
__export(http_exports, {
|
|
31
|
-
httpAddressToString: () => httpAddressToString,
|
|
32
|
-
installHttpTransport: () => installHttpTransport,
|
|
33
|
-
startHttpServer: () => startHttpServer
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(http_exports);
|
|
36
|
-
var import_assert = __toESM(require("assert"));
|
|
37
|
-
var import_http = __toESM(require("http"));
|
|
38
|
-
var import_crypto = __toESM(require("crypto"));
|
|
39
|
-
var import_utilsBundle = require("playwright-core/lib/utilsBundle");
|
|
40
|
-
var mcpBundle = __toESM(require("./bundle"));
|
|
41
|
-
var mcpServer = __toESM(require("./server"));
|
|
42
|
-
const testDebug = (0, import_utilsBundle.debug)("pw:mcp:test");
|
|
43
|
-
async function startHttpServer(config, abortSignal) {
|
|
44
|
-
const { host, port } = config;
|
|
45
|
-
const httpServer = import_http.default.createServer();
|
|
46
|
-
decorateServer(httpServer);
|
|
47
|
-
await new Promise((resolve, reject) => {
|
|
48
|
-
httpServer.on("error", reject);
|
|
49
|
-
abortSignal?.addEventListener("abort", () => {
|
|
50
|
-
httpServer.close();
|
|
51
|
-
reject(new Error("Aborted"));
|
|
52
|
-
});
|
|
53
|
-
httpServer.listen(port, host, () => {
|
|
54
|
-
resolve();
|
|
55
|
-
httpServer.removeListener("error", reject);
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
return httpServer;
|
|
59
|
-
}
|
|
60
|
-
function httpAddressToString(address) {
|
|
61
|
-
(0, import_assert.default)(address, "Could not bind server socket");
|
|
62
|
-
if (typeof address === "string")
|
|
63
|
-
return address;
|
|
64
|
-
const resolvedPort = address.port;
|
|
65
|
-
let resolvedHost = address.family === "IPv4" ? address.address : `[${address.address}]`;
|
|
66
|
-
if (resolvedHost === "0.0.0.0" || resolvedHost === "[::]")
|
|
67
|
-
resolvedHost = "localhost";
|
|
68
|
-
return `http://${resolvedHost}:${resolvedPort}`;
|
|
69
|
-
}
|
|
70
|
-
async function installHttpTransport(httpServer, serverBackendFactory, unguessableUrl, allowedHosts) {
|
|
71
|
-
const url = httpAddressToString(httpServer.address());
|
|
72
|
-
const host = new URL(url).host;
|
|
73
|
-
allowedHosts = (allowedHosts || [host]).map((h) => h.toLowerCase());
|
|
74
|
-
const allowAnyHost = allowedHosts.includes("*");
|
|
75
|
-
const pathPrefix = unguessableUrl ? `/${import_crypto.default.randomUUID()}` : "";
|
|
76
|
-
const sseSessions = /* @__PURE__ */ new Map();
|
|
77
|
-
const streamableSessions = /* @__PURE__ */ new Map();
|
|
78
|
-
httpServer.on("request", async (req, res) => {
|
|
79
|
-
if (!allowAnyHost) {
|
|
80
|
-
const host2 = req.headers.host?.toLowerCase();
|
|
81
|
-
if (!host2) {
|
|
82
|
-
res.statusCode = 400;
|
|
83
|
-
return res.end("Missing host");
|
|
84
|
-
}
|
|
85
|
-
if (!allowedHosts.includes(host2)) {
|
|
86
|
-
res.statusCode = 403;
|
|
87
|
-
return res.end("Access is only allowed at " + allowedHosts.join(", "));
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if (!req.url?.startsWith(pathPrefix)) {
|
|
91
|
-
res.statusCode = 404;
|
|
92
|
-
return res.end("Not found");
|
|
93
|
-
}
|
|
94
|
-
const path = req.url?.slice(pathPrefix.length);
|
|
95
|
-
const url2 = new URL(`http://localhost${path}`);
|
|
96
|
-
if (url2.pathname === "/killkillkill" && req.method === "GET") {
|
|
97
|
-
res.statusCode = 200;
|
|
98
|
-
res.end("Killing process");
|
|
99
|
-
process.emit("SIGINT");
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
if (url2.pathname.startsWith("/sse"))
|
|
103
|
-
await handleSSE(serverBackendFactory, req, res, url2, sseSessions);
|
|
104
|
-
else
|
|
105
|
-
await handleStreamable(serverBackendFactory, req, res, streamableSessions);
|
|
106
|
-
});
|
|
107
|
-
return `${url}${pathPrefix}`;
|
|
108
|
-
}
|
|
109
|
-
async function handleSSE(serverBackendFactory, req, res, url, sessions) {
|
|
110
|
-
if (req.method === "POST") {
|
|
111
|
-
const sessionId = url.searchParams.get("sessionId");
|
|
112
|
-
if (!sessionId) {
|
|
113
|
-
res.statusCode = 400;
|
|
114
|
-
return res.end("Missing sessionId");
|
|
115
|
-
}
|
|
116
|
-
const transport = sessions.get(sessionId);
|
|
117
|
-
if (!transport) {
|
|
118
|
-
res.statusCode = 404;
|
|
119
|
-
return res.end("Session not found");
|
|
120
|
-
}
|
|
121
|
-
return await transport.handlePostMessage(req, res);
|
|
122
|
-
} else if (req.method === "GET") {
|
|
123
|
-
const transport = new mcpBundle.SSEServerTransport("/sse", res);
|
|
124
|
-
sessions.set(transport.sessionId, transport);
|
|
125
|
-
testDebug(`create SSE session: ${transport.sessionId}`);
|
|
126
|
-
await mcpServer.connect(serverBackendFactory, transport, false);
|
|
127
|
-
res.on("close", () => {
|
|
128
|
-
testDebug(`delete SSE session: ${transport.sessionId}`);
|
|
129
|
-
sessions.delete(transport.sessionId);
|
|
130
|
-
});
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
res.statusCode = 405;
|
|
134
|
-
res.end("Method not allowed");
|
|
135
|
-
}
|
|
136
|
-
async function handleStreamable(serverBackendFactory, req, res, sessions) {
|
|
137
|
-
const sessionId = req.headers["mcp-session-id"];
|
|
138
|
-
if (sessionId) {
|
|
139
|
-
const transport = sessions.get(sessionId);
|
|
140
|
-
if (!transport) {
|
|
141
|
-
res.statusCode = 404;
|
|
142
|
-
res.end("Session not found");
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
return await transport.handleRequest(req, res);
|
|
146
|
-
}
|
|
147
|
-
if (req.method === "POST") {
|
|
148
|
-
const transport = new mcpBundle.StreamableHTTPServerTransport({
|
|
149
|
-
sessionIdGenerator: () => import_crypto.default.randomUUID(),
|
|
150
|
-
onsessioninitialized: async (sessionId2) => {
|
|
151
|
-
testDebug(`create http session: ${transport.sessionId}`);
|
|
152
|
-
await mcpServer.connect(serverBackendFactory, transport, true);
|
|
153
|
-
sessions.set(sessionId2, transport);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
transport.onclose = () => {
|
|
157
|
-
if (!transport.sessionId)
|
|
158
|
-
return;
|
|
159
|
-
sessions.delete(transport.sessionId);
|
|
160
|
-
testDebug(`delete http session: ${transport.sessionId}`);
|
|
161
|
-
};
|
|
162
|
-
await transport.handleRequest(req, res);
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
res.statusCode = 400;
|
|
166
|
-
res.end("Invalid request");
|
|
167
|
-
}
|
|
168
|
-
function decorateServer(server) {
|
|
169
|
-
const sockets = /* @__PURE__ */ new Set();
|
|
170
|
-
server.on("connection", (socket) => {
|
|
171
|
-
sockets.add(socket);
|
|
172
|
-
socket.once("close", () => sockets.delete(socket));
|
|
173
|
-
});
|
|
174
|
-
const close = server.close;
|
|
175
|
-
server.close = (callback) => {
|
|
176
|
-
for (const socket of sockets)
|
|
177
|
-
socket.destroy();
|
|
178
|
-
sockets.clear();
|
|
179
|
-
return close.call(server, callback);
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
183
|
-
0 && (module.exports = {
|
|
184
|
-
httpAddressToString,
|
|
185
|
-
installHttpTransport,
|
|
186
|
-
startHttpServer
|
|
187
|
-
});
|
|
@@ -1,71 +0,0 @@
|
|
|
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 inProcessTransport_exports = {};
|
|
20
|
-
__export(inProcessTransport_exports, {
|
|
21
|
-
InProcessTransport: () => InProcessTransport
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(inProcessTransport_exports);
|
|
24
|
-
class InProcessTransport {
|
|
25
|
-
constructor(server) {
|
|
26
|
-
this._connected = false;
|
|
27
|
-
this._server = server;
|
|
28
|
-
this._serverTransport = new InProcessServerTransport(this);
|
|
29
|
-
}
|
|
30
|
-
async start() {
|
|
31
|
-
if (this._connected)
|
|
32
|
-
throw new Error("InprocessTransport already started!");
|
|
33
|
-
await this._server.connect(this._serverTransport);
|
|
34
|
-
this._connected = true;
|
|
35
|
-
}
|
|
36
|
-
async send(message, options) {
|
|
37
|
-
if (!this._connected)
|
|
38
|
-
throw new Error("Transport not connected");
|
|
39
|
-
this._serverTransport._receiveFromClient(message);
|
|
40
|
-
}
|
|
41
|
-
async close() {
|
|
42
|
-
if (this._connected) {
|
|
43
|
-
this._connected = false;
|
|
44
|
-
this.onclose?.();
|
|
45
|
-
this._serverTransport.onclose?.();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
_receiveFromServer(message, extra) {
|
|
49
|
-
this.onmessage?.(message, extra);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
class InProcessServerTransport {
|
|
53
|
-
constructor(clientTransport) {
|
|
54
|
-
this._clientTransport = clientTransport;
|
|
55
|
-
}
|
|
56
|
-
async start() {
|
|
57
|
-
}
|
|
58
|
-
async send(message, options) {
|
|
59
|
-
this._clientTransport._receiveFromServer(message);
|
|
60
|
-
}
|
|
61
|
-
async close() {
|
|
62
|
-
this.onclose?.();
|
|
63
|
-
}
|
|
64
|
-
_receiveFromClient(message) {
|
|
65
|
-
this.onmessage?.(message);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
69
|
-
0 && (module.exports = {
|
|
70
|
-
InProcessTransport
|
|
71
|
-
});
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var mdb_exports = {};
|
|
30
|
-
__export(mdb_exports, {
|
|
31
|
-
MDBBackend: () => MDBBackend,
|
|
32
|
-
runMainBackend: () => runMainBackend,
|
|
33
|
-
runOnPauseBackendLoop: () => runOnPauseBackendLoop
|
|
34
|
-
});
|
|
35
|
-
module.exports = __toCommonJS(mdb_exports);
|
|
36
|
-
var import_utilsBundle = require("playwright-core/lib/utilsBundle");
|
|
37
|
-
var import_utils = require("playwright-core/lib/utils");
|
|
38
|
-
var import_tool = require("./tool");
|
|
39
|
-
var mcpBundle = __toESM(require("./bundle"));
|
|
40
|
-
var mcpServer = __toESM(require("./server"));
|
|
41
|
-
var mcpHttp = __toESM(require("./http"));
|
|
42
|
-
const mdbDebug = (0, import_utilsBundle.debug)("pw:mcp:mdb");
|
|
43
|
-
const errorsDebug = (0, import_utilsBundle.debug)("pw:mcp:errors");
|
|
44
|
-
const z = mcpBundle.z;
|
|
45
|
-
class MDBBackend {
|
|
46
|
-
constructor(mainBackend) {
|
|
47
|
-
this._progress = [];
|
|
48
|
-
this._mainBackend = mainBackend;
|
|
49
|
-
this._progressCallback = (params) => {
|
|
50
|
-
if (params.message)
|
|
51
|
-
this._progress.push({ type: "text", text: params.message });
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
async initialize(server, clientInfo) {
|
|
55
|
-
if (!this._clientInfo) {
|
|
56
|
-
this._clientInfo = clientInfo;
|
|
57
|
-
await this._mainBackend.initialize?.(server, clientInfo);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
async listTools() {
|
|
61
|
-
return await this._mainBackend.listTools();
|
|
62
|
-
}
|
|
63
|
-
async callTool(name, args) {
|
|
64
|
-
if (name === pushToolsSchema.name) {
|
|
65
|
-
await this._createOnPauseClient(pushToolsSchema.inputSchema.parse(args || {}));
|
|
66
|
-
return { content: [{ type: "text", text: "Tools pushed" }] };
|
|
67
|
-
}
|
|
68
|
-
if (this._onPauseClient?.tools.find((tool) => tool.name === name)) {
|
|
69
|
-
const result2 = await this._onPauseClient.client.callTool({
|
|
70
|
-
name,
|
|
71
|
-
arguments: args
|
|
72
|
-
});
|
|
73
|
-
await this._mainBackend.afterCallTool?.(name, args, result2);
|
|
74
|
-
return result2;
|
|
75
|
-
}
|
|
76
|
-
await this._onPauseClient?.transport.terminateSession().catch(errorsDebug);
|
|
77
|
-
await this._onPauseClient?.client.close().catch(errorsDebug);
|
|
78
|
-
this._onPauseClient = void 0;
|
|
79
|
-
const resultPromise = new import_utils.ManualPromise();
|
|
80
|
-
const interruptPromise = new import_utils.ManualPromise();
|
|
81
|
-
this._interruptPromise = interruptPromise;
|
|
82
|
-
this._mainBackend.callTool(name, args, this._progressCallback).then((result2) => {
|
|
83
|
-
resultPromise.resolve(result2);
|
|
84
|
-
}).catch((e) => {
|
|
85
|
-
resultPromise.resolve({ content: [{ type: "text", text: String(e) }], isError: true });
|
|
86
|
-
});
|
|
87
|
-
const result = await Promise.race([interruptPromise, resultPromise]);
|
|
88
|
-
if (interruptPromise.isDone())
|
|
89
|
-
mdbDebug("client call intercepted", result);
|
|
90
|
-
else
|
|
91
|
-
mdbDebug("client call result", result);
|
|
92
|
-
result.content.unshift(...this._progress);
|
|
93
|
-
this._progress.length = 0;
|
|
94
|
-
return result;
|
|
95
|
-
}
|
|
96
|
-
async _createOnPauseClient(params) {
|
|
97
|
-
if (this._onPauseClient)
|
|
98
|
-
await this._onPauseClient.client.close().catch(errorsDebug);
|
|
99
|
-
this._onPauseClient = await this._createClient(params.mcpUrl);
|
|
100
|
-
this._interruptPromise?.resolve({
|
|
101
|
-
content: [{
|
|
102
|
-
type: "text",
|
|
103
|
-
text: params.introMessage || ""
|
|
104
|
-
}]
|
|
105
|
-
});
|
|
106
|
-
this._interruptPromise = void 0;
|
|
107
|
-
}
|
|
108
|
-
async _createClient(url) {
|
|
109
|
-
const client = new mcpBundle.Client({ name: "Interrupting client", version: "0.0.0" }, { capabilities: { roots: {} } });
|
|
110
|
-
client.setRequestHandler(mcpBundle.ListRootsRequestSchema, () => ({ roots: this._clientInfo?.roots || [] }));
|
|
111
|
-
client.setRequestHandler(mcpBundle.PingRequestSchema, () => ({}));
|
|
112
|
-
client.setNotificationHandler(mcpBundle.ProgressNotificationSchema, (notification) => {
|
|
113
|
-
if (notification.method === "notifications/progress") {
|
|
114
|
-
const { message } = notification.params;
|
|
115
|
-
if (message)
|
|
116
|
-
this._progress.push({ type: "text", text: message });
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
const transport = new mcpBundle.StreamableHTTPClientTransport(new URL(url));
|
|
120
|
-
await client.connect(transport);
|
|
121
|
-
const { tools } = await client.listTools();
|
|
122
|
-
return { client, tools, transport };
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
const pushToolsSchema = (0, import_tool.defineToolSchema)({
|
|
126
|
-
name: "mdb_push_tools",
|
|
127
|
-
title: "Push MCP tools to the tools stack",
|
|
128
|
-
description: "Push MCP tools to the tools stack",
|
|
129
|
-
inputSchema: z.object({
|
|
130
|
-
mcpUrl: z.string(),
|
|
131
|
-
introMessage: z.string().optional()
|
|
132
|
-
}),
|
|
133
|
-
type: "readOnly"
|
|
134
|
-
});
|
|
135
|
-
async function runMainBackend(backendFactory, options) {
|
|
136
|
-
const mdbBackend = new MDBBackend(backendFactory.create());
|
|
137
|
-
const factory = {
|
|
138
|
-
...backendFactory,
|
|
139
|
-
create: () => mdbBackend
|
|
140
|
-
};
|
|
141
|
-
const url = await startAsHttp(factory, { port: options?.port || 0 });
|
|
142
|
-
process.env.PLAYWRIGHT_DEBUGGER_MCP = url;
|
|
143
|
-
if (options?.port !== void 0)
|
|
144
|
-
return url;
|
|
145
|
-
await mcpServer.connect(factory, new mcpBundle.StdioServerTransport(), false);
|
|
146
|
-
}
|
|
147
|
-
async function runOnPauseBackendLoop(backend, introMessage) {
|
|
148
|
-
const wrappedBackend = new ServerBackendWithCloseListener(backend);
|
|
149
|
-
const factory = {
|
|
150
|
-
name: "on-pause-backend",
|
|
151
|
-
nameInConfig: "on-pause-backend",
|
|
152
|
-
version: "0.0.0",
|
|
153
|
-
create: () => wrappedBackend
|
|
154
|
-
};
|
|
155
|
-
const httpServer = await mcpHttp.startHttpServer({ port: 0 });
|
|
156
|
-
const url = await mcpHttp.installHttpTransport(httpServer, factory, true);
|
|
157
|
-
const client = new mcpBundle.Client({ name: "Pushing client", version: "0.0.0" });
|
|
158
|
-
client.setRequestHandler(mcpBundle.PingRequestSchema, () => ({}));
|
|
159
|
-
const transport = new mcpBundle.StreamableHTTPClientTransport(new URL(process.env.PLAYWRIGHT_DEBUGGER_MCP));
|
|
160
|
-
await client.connect(transport);
|
|
161
|
-
const pushToolsResult = await client.callTool({
|
|
162
|
-
name: pushToolsSchema.name,
|
|
163
|
-
arguments: {
|
|
164
|
-
mcpUrl: url,
|
|
165
|
-
introMessage
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
if (pushToolsResult.isError)
|
|
169
|
-
errorsDebug("Failed to push tools", pushToolsResult.content);
|
|
170
|
-
await transport.terminateSession();
|
|
171
|
-
await client.close();
|
|
172
|
-
await wrappedBackend.waitForClosed();
|
|
173
|
-
httpServer.close();
|
|
174
|
-
}
|
|
175
|
-
async function startAsHttp(backendFactory, options) {
|
|
176
|
-
const httpServer = await mcpHttp.startHttpServer(options);
|
|
177
|
-
return await mcpHttp.installHttpTransport(httpServer, backendFactory, true);
|
|
178
|
-
}
|
|
179
|
-
class ServerBackendWithCloseListener {
|
|
180
|
-
constructor(backend) {
|
|
181
|
-
this._serverClosedPromise = new import_utils.ManualPromise();
|
|
182
|
-
this._backend = backend;
|
|
183
|
-
}
|
|
184
|
-
async initialize(server, clientInfo) {
|
|
185
|
-
await this._backend.initialize?.(server, clientInfo);
|
|
186
|
-
}
|
|
187
|
-
async listTools() {
|
|
188
|
-
return this._backend.listTools();
|
|
189
|
-
}
|
|
190
|
-
async callTool(name, args, progress) {
|
|
191
|
-
return this._backend.callTool(name, args, progress);
|
|
192
|
-
}
|
|
193
|
-
serverClosed(server) {
|
|
194
|
-
this._backend.serverClosed?.(server);
|
|
195
|
-
this._serverClosedPromise.resolve();
|
|
196
|
-
}
|
|
197
|
-
async waitForClosed() {
|
|
198
|
-
await this._serverClosedPromise;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
202
|
-
0 && (module.exports = {
|
|
203
|
-
MDBBackend,
|
|
204
|
-
runMainBackend,
|
|
205
|
-
runOnPauseBackendLoop
|
|
206
|
-
});
|