stably 4.12.1 → 4.12.2
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/dist/index.mjs +1 -1
- package/dist/node_modules/minimist/.eslintrc +29 -0
- package/dist/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/dist/node_modules/minimist/.nycrc +14 -0
- package/dist/node_modules/minimist/CHANGELOG.md +298 -0
- package/dist/node_modules/minimist/LICENSE +18 -0
- package/dist/node_modules/minimist/README.md +121 -0
- package/dist/node_modules/minimist/example/parse.js +4 -0
- package/dist/node_modules/minimist/index.js +263 -0
- package/dist/node_modules/minimist/package.json +75 -0
- package/dist/node_modules/minimist/test/all_bool.js +34 -0
- package/dist/node_modules/minimist/test/bool.js +177 -0
- package/dist/node_modules/minimist/test/dash.js +43 -0
- package/dist/node_modules/minimist/test/default_bool.js +37 -0
- package/dist/node_modules/minimist/test/dotted.js +24 -0
- package/dist/node_modules/minimist/test/kv_short.js +32 -0
- package/dist/node_modules/minimist/test/long.js +33 -0
- package/dist/node_modules/minimist/test/num.js +38 -0
- package/dist/node_modules/minimist/test/parse.js +209 -0
- package/dist/node_modules/minimist/test/parse_modified.js +11 -0
- package/dist/node_modules/minimist/test/proto.js +64 -0
- package/dist/node_modules/minimist/test/short.js +69 -0
- package/dist/node_modules/minimist/test/stop_early.js +17 -0
- package/dist/node_modules/minimist/test/unknown.js +104 -0
- package/dist/node_modules/minimist/test/whitespace.js +10 -0
- package/dist/node_modules/playwright/LICENSE +202 -0
- package/dist/node_modules/playwright/NOTICE +5 -0
- package/dist/node_modules/playwright/README.md +170 -0
- package/dist/node_modules/playwright/ThirdPartyNotices.txt +5042 -0
- package/dist/node_modules/playwright/cli.js +19 -0
- package/dist/node_modules/playwright/index.d.ts +17 -0
- package/dist/node_modules/playwright/index.js +17 -0
- package/dist/node_modules/playwright/index.mjs +18 -0
- package/dist/node_modules/playwright/jsx-runtime.js +42 -0
- package/dist/node_modules/playwright/jsx-runtime.mjs +21 -0
- package/dist/node_modules/playwright/lib/agents/agentParser.js +89 -0
- package/dist/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
- package/dist/node_modules/playwright/lib/agents/generateAgents.js +348 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +55 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
- package/dist/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +73 -0
- package/dist/node_modules/playwright/lib/cli/client/appIcon.png +0 -0
- package/dist/node_modules/playwright/lib/cli/client/devtoolsApp.js +246 -0
- package/dist/node_modules/playwright/lib/cli/client/help.json +89 -0
- package/dist/node_modules/playwright/lib/cli/client/program.js +364 -0
- package/dist/node_modules/playwright/lib/cli/client/registry.js +146 -0
- package/dist/node_modules/playwright/lib/cli/client/session.js +309 -0
- package/dist/node_modules/playwright/lib/cli/client/socketConnection.js +99 -0
- package/dist/node_modules/playwright/lib/cli/daemon/command.js +73 -0
- package/dist/node_modules/playwright/lib/cli/daemon/commands.js +859 -0
- package/dist/node_modules/playwright/lib/cli/daemon/daemon.js +151 -0
- package/dist/node_modules/playwright/lib/cli/daemon/helpGenerator.js +173 -0
- package/dist/node_modules/playwright/lib/cli/daemon/program.js +109 -0
- package/dist/node_modules/playwright/lib/common/config.js +281 -0
- package/dist/node_modules/playwright/lib/common/configLoader.js +344 -0
- package/dist/node_modules/playwright/lib/common/esmLoaderHost.js +104 -0
- package/dist/node_modules/playwright/lib/common/expectBundle.js +28 -0
- package/dist/node_modules/playwright/lib/common/expectBundleImpl.js +407 -0
- package/dist/node_modules/playwright/lib/common/fixtures.js +302 -0
- package/dist/node_modules/playwright/lib/common/globals.js +58 -0
- package/dist/node_modules/playwright/lib/common/ipc.js +60 -0
- package/dist/node_modules/playwright/lib/common/poolBuilder.js +85 -0
- package/dist/node_modules/playwright/lib/common/process.js +132 -0
- package/dist/node_modules/playwright/lib/common/suiteUtils.js +140 -0
- package/dist/node_modules/playwright/lib/common/test.js +330 -0
- package/dist/node_modules/playwright/lib/common/testLoader.js +101 -0
- package/dist/node_modules/playwright/lib/common/testType.js +298 -0
- package/dist/node_modules/playwright/lib/common/validators.js +68 -0
- package/dist/node_modules/playwright/lib/fsWatcher.js +67 -0
- package/dist/node_modules/playwright/lib/index.js +726 -0
- package/dist/node_modules/playwright/lib/internalsForTest.js +42 -0
- package/dist/node_modules/playwright/lib/isomorphic/events.js +77 -0
- package/dist/node_modules/playwright/lib/isomorphic/folders.js +30 -0
- package/dist/node_modules/playwright/lib/isomorphic/stringInternPool.js +69 -0
- package/dist/node_modules/playwright/lib/isomorphic/teleReceiver.js +539 -0
- package/dist/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +157 -0
- package/dist/node_modules/playwright/lib/isomorphic/testServerConnection.js +225 -0
- package/dist/node_modules/playwright/lib/isomorphic/testServerInterface.js +16 -0
- package/dist/node_modules/playwright/lib/isomorphic/testTree.js +329 -0
- package/dist/node_modules/playwright/lib/isomorphic/types.d.js +16 -0
- package/dist/node_modules/playwright/lib/loader/loaderMain.js +59 -0
- package/dist/node_modules/playwright/lib/matchers/expect.js +311 -0
- package/dist/node_modules/playwright/lib/matchers/matcherHint.js +44 -0
- package/dist/node_modules/playwright/lib/matchers/matchers.js +395 -0
- package/dist/node_modules/playwright/lib/matchers/toBeTruthy.js +75 -0
- package/dist/node_modules/playwright/lib/matchers/toEqual.js +100 -0
- package/dist/node_modules/playwright/lib/matchers/toHaveURL.js +101 -0
- package/dist/node_modules/playwright/lib/matchers/toMatchAriaSnapshot.js +159 -0
- package/dist/node_modules/playwright/lib/matchers/toMatchSnapshot.js +342 -0
- package/dist/node_modules/playwright/lib/matchers/toMatchText.js +99 -0
- package/dist/node_modules/playwright/lib/mcp/browser/browserContextFactory.js +332 -0
- package/dist/node_modules/playwright/lib/mcp/browser/browserServerBackend.js +85 -0
- package/dist/node_modules/playwright/lib/mcp/browser/config.js +467 -0
- package/dist/node_modules/playwright/lib/mcp/browser/configIni.js +190 -0
- package/dist/node_modules/playwright/lib/mcp/browser/context.js +302 -0
- package/dist/node_modules/playwright/lib/mcp/browser/logFile.js +96 -0
- package/dist/node_modules/playwright/lib/mcp/browser/response.js +270 -0
- package/dist/node_modules/playwright/lib/mcp/browser/sessionLog.js +75 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tab.js +421 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/common.js +63 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/config.js +41 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/console.js +65 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/cookies.js +152 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/devtools.js +42 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/dialogs.js +59 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/evaluate.js +61 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/files.js +58 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/form.js +63 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/install.js +73 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/keyboard.js +151 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/mouse.js +159 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/navigate.js +105 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/network.js +92 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/pdf.js +48 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/route.js +140 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/runCode.js +76 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/screenshot.js +86 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/snapshot.js +207 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/storage.js +67 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/tabs.js +67 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/tool.js +47 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/tracing.js +75 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/utils.js +88 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/verify.js +143 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/video.js +89 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/wait.js +63 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools/webstorage.js +223 -0
- package/dist/node_modules/playwright/lib/mcp/browser/tools.js +96 -0
- package/dist/node_modules/playwright/lib/mcp/browser/watchdog.js +44 -0
- package/dist/node_modules/playwright/lib/mcp/config.d.js +16 -0
- package/dist/node_modules/playwright/lib/mcp/extension/cdpRelay.js +354 -0
- package/dist/node_modules/playwright/lib/mcp/extension/extensionContextFactory.js +77 -0
- package/dist/node_modules/playwright/lib/mcp/extension/protocol.js +28 -0
- package/dist/node_modules/playwright/lib/mcp/index.js +61 -0
- package/dist/node_modules/playwright/lib/mcp/log.js +35 -0
- package/dist/node_modules/playwright/lib/mcp/program.js +76 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/exports.js +28 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/http.js +152 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/inProcessTransport.js +71 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/server.js +223 -0
- package/dist/node_modules/playwright/lib/mcp/sdk/tool.js +47 -0
- package/dist/node_modules/playwright/lib/mcp/test/browserBackend.js +98 -0
- package/dist/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
- package/dist/node_modules/playwright/lib/mcp/test/plannerTools.js +145 -0
- package/dist/node_modules/playwright/lib/mcp/test/seed.js +82 -0
- package/dist/node_modules/playwright/lib/mcp/test/streams.js +44 -0
- package/dist/node_modules/playwright/lib/mcp/test/testBackend.js +99 -0
- package/dist/node_modules/playwright/lib/mcp/test/testContext.js +285 -0
- package/dist/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
- package/dist/node_modules/playwright/lib/mcp/test/testTools.js +108 -0
- package/dist/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +198 -0
- package/dist/node_modules/playwright/lib/plugins/index.js +28 -0
- package/dist/node_modules/playwright/lib/plugins/webServerPlugin.js +237 -0
- package/dist/node_modules/playwright/lib/program.js +425 -0
- package/dist/node_modules/playwright/lib/reporters/base.js +634 -0
- package/dist/node_modules/playwright/lib/reporters/blob.js +138 -0
- package/dist/node_modules/playwright/lib/reporters/dot.js +99 -0
- package/dist/node_modules/playwright/lib/reporters/empty.js +32 -0
- package/dist/node_modules/playwright/lib/reporters/github.js +128 -0
- package/dist/node_modules/playwright/lib/reporters/html.js +644 -0
- package/dist/node_modules/playwright/lib/reporters/internalReporter.js +138 -0
- package/dist/node_modules/playwright/lib/reporters/json.js +254 -0
- package/dist/node_modules/playwright/lib/reporters/junit.js +232 -0
- package/dist/node_modules/playwright/lib/reporters/line.js +131 -0
- package/dist/node_modules/playwright/lib/reporters/list.js +253 -0
- package/dist/node_modules/playwright/lib/reporters/listModeReporter.js +69 -0
- package/dist/node_modules/playwright/lib/reporters/markdown.js +144 -0
- package/dist/node_modules/playwright/lib/reporters/merge.js +579 -0
- package/dist/node_modules/playwright/lib/reporters/multiplexer.js +116 -0
- package/dist/node_modules/playwright/lib/reporters/reporterV2.js +102 -0
- package/dist/node_modules/playwright/lib/reporters/teleEmitter.js +319 -0
- package/dist/node_modules/playwright/lib/reporters/versions/blobV1.js +16 -0
- package/dist/node_modules/playwright/lib/runner/dispatcher.js +530 -0
- package/dist/node_modules/playwright/lib/runner/failureTracker.js +72 -0
- package/dist/node_modules/playwright/lib/runner/lastRun.js +77 -0
- package/dist/node_modules/playwright/lib/runner/loadUtils.js +334 -0
- package/dist/node_modules/playwright/lib/runner/loaderHost.js +89 -0
- package/dist/node_modules/playwright/lib/runner/processHost.js +180 -0
- package/dist/node_modules/playwright/lib/runner/projectUtils.js +241 -0
- package/dist/node_modules/playwright/lib/runner/rebase.js +189 -0
- package/dist/node_modules/playwright/lib/runner/reporters.js +143 -0
- package/dist/node_modules/playwright/lib/runner/sigIntWatcher.js +96 -0
- package/dist/node_modules/playwright/lib/runner/storage.js +91 -0
- package/dist/node_modules/playwright/lib/runner/taskRunner.js +127 -0
- package/dist/node_modules/playwright/lib/runner/tasks.js +410 -0
- package/dist/node_modules/playwright/lib/runner/testGroups.js +125 -0
- package/dist/node_modules/playwright/lib/runner/testRunner.js +398 -0
- package/dist/node_modules/playwright/lib/runner/testServer.js +269 -0
- package/dist/node_modules/playwright/lib/runner/uiModeReporter.js +30 -0
- package/dist/node_modules/playwright/lib/runner/vcs.js +72 -0
- package/dist/node_modules/playwright/lib/runner/watchMode.js +396 -0
- package/dist/node_modules/playwright/lib/runner/workerHost.js +104 -0
- package/dist/node_modules/playwright/lib/skill/SKILL.md +278 -0
- package/dist/node_modules/playwright/lib/skill/references/request-mocking.md +87 -0
- package/dist/node_modules/playwright/lib/skill/references/running-code.md +232 -0
- package/dist/node_modules/playwright/lib/skill/references/session-management.md +169 -0
- package/dist/node_modules/playwright/lib/skill/references/storage-state.md +275 -0
- package/dist/node_modules/playwright/lib/skill/references/test-generation.md +88 -0
- package/dist/node_modules/playwright/lib/skill/references/tracing.md +139 -0
- package/dist/node_modules/playwright/lib/skill/references/video-recording.md +43 -0
- package/dist/node_modules/playwright/lib/third_party/pirates.js +62 -0
- package/dist/node_modules/playwright/lib/third_party/tsconfig-loader.js +103 -0
- package/dist/node_modules/playwright/lib/transform/babelBundle.js +46 -0
- package/dist/node_modules/playwright/lib/transform/babelBundleImpl.js +461 -0
- package/dist/node_modules/playwright/lib/transform/compilationCache.js +274 -0
- package/dist/node_modules/playwright/lib/transform/esmLoader.js +103 -0
- package/dist/node_modules/playwright/lib/transform/md.js +221 -0
- package/dist/node_modules/playwright/lib/transform/portTransport.js +67 -0
- package/dist/node_modules/playwright/lib/transform/transform.js +303 -0
- package/dist/node_modules/playwright/lib/util.js +400 -0
- package/dist/node_modules/playwright/lib/utilsBundle.js +50 -0
- package/dist/node_modules/playwright/lib/utilsBundleImpl.js +103 -0
- package/dist/node_modules/playwright/lib/worker/fixtureRunner.js +262 -0
- package/dist/node_modules/playwright/lib/worker/testInfo.js +536 -0
- package/dist/node_modules/playwright/lib/worker/testTracing.js +345 -0
- package/dist/node_modules/playwright/lib/worker/timeoutManager.js +174 -0
- package/dist/node_modules/playwright/lib/worker/util.js +31 -0
- package/dist/node_modules/playwright/lib/worker/workerMain.js +532 -0
- package/dist/node_modules/playwright/node_modules/.bin/playwright-core +21 -0
- package/dist/node_modules/playwright/package.json +73 -0
- package/dist/node_modules/playwright/test.d.ts +18 -0
- package/dist/node_modules/playwright/test.js +24 -0
- package/dist/node_modules/playwright/test.mjs +34 -0
- package/dist/node_modules/playwright/types/test.d.ts +10326 -0
- package/dist/node_modules/playwright/types/testReporter.d.ts +822 -0
- package/dist/node_modules/playwright-core/LICENSE +202 -0
- package/dist/node_modules/playwright-core/NOTICE +5 -0
- package/dist/node_modules/playwright-core/README.md +3 -0
- package/dist/node_modules/playwright-core/ThirdPartyNotices.txt +4095 -0
- package/dist/node_modules/playwright-core/bin/install_media_pack.ps1 +5 -0
- package/dist/node_modules/playwright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/dist/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/dist/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/dist/node_modules/playwright-core/browsers.json +81 -0
- package/dist/node_modules/playwright-core/cli.js +18 -0
- package/dist/node_modules/playwright-core/index.d.ts +17 -0
- package/dist/node_modules/playwright-core/index.js +32 -0
- package/dist/node_modules/playwright-core/index.mjs +28 -0
- package/dist/node_modules/playwright-core/lib/androidServerImpl.js +65 -0
- package/dist/node_modules/playwright-core/lib/browserServerImpl.js +120 -0
- package/dist/node_modules/playwright-core/lib/cli/driver.js +97 -0
- package/dist/node_modules/playwright-core/lib/cli/program.js +589 -0
- package/dist/node_modules/playwright-core/lib/cli/programWithTestStub.js +74 -0
- package/dist/node_modules/playwright-core/lib/client/android.js +361 -0
- package/dist/node_modules/playwright-core/lib/client/api.js +137 -0
- package/dist/node_modules/playwright-core/lib/client/artifact.js +79 -0
- package/dist/node_modules/playwright-core/lib/client/browser.js +161 -0
- package/dist/node_modules/playwright-core/lib/client/browserContext.js +589 -0
- package/dist/node_modules/playwright-core/lib/client/browserType.js +195 -0
- package/dist/node_modules/playwright-core/lib/client/cdpSession.js +51 -0
- package/dist/node_modules/playwright-core/lib/client/channelOwner.js +194 -0
- package/dist/node_modules/playwright-core/lib/client/clientHelper.js +64 -0
- package/dist/node_modules/playwright-core/lib/client/clientInstrumentation.js +55 -0
- package/dist/node_modules/playwright-core/lib/client/clientStackTrace.js +69 -0
- package/dist/node_modules/playwright-core/lib/client/clock.js +68 -0
- package/dist/node_modules/playwright-core/lib/client/connection.js +318 -0
- package/dist/node_modules/playwright-core/lib/client/consoleMessage.js +61 -0
- package/dist/node_modules/playwright-core/lib/client/coverage.js +44 -0
- package/dist/node_modules/playwright-core/lib/client/dialog.js +56 -0
- package/dist/node_modules/playwright-core/lib/client/download.js +62 -0
- package/dist/node_modules/playwright-core/lib/client/electron.js +138 -0
- package/dist/node_modules/playwright-core/lib/client/elementHandle.js +284 -0
- package/dist/node_modules/playwright-core/lib/client/errors.js +77 -0
- package/dist/node_modules/playwright-core/lib/client/eventEmitter.js +314 -0
- package/dist/node_modules/playwright-core/lib/client/events.js +103 -0
- package/dist/node_modules/playwright-core/lib/client/fetch.js +368 -0
- package/dist/node_modules/playwright-core/lib/client/fileChooser.js +46 -0
- package/dist/node_modules/playwright-core/lib/client/fileUtils.js +34 -0
- package/dist/node_modules/playwright-core/lib/client/frame.js +409 -0
- package/dist/node_modules/playwright-core/lib/client/harRouter.js +99 -0
- package/dist/node_modules/playwright-core/lib/client/input.js +84 -0
- package/dist/node_modules/playwright-core/lib/client/jsHandle.js +109 -0
- package/dist/node_modules/playwright-core/lib/client/jsonPipe.js +39 -0
- package/dist/node_modules/playwright-core/lib/client/localUtils.js +60 -0
- package/dist/node_modules/playwright-core/lib/client/locator.js +369 -0
- package/dist/node_modules/playwright-core/lib/client/network.js +747 -0
- package/dist/node_modules/playwright-core/lib/client/page.js +741 -0
- package/dist/node_modules/playwright-core/lib/client/pageAgent.js +64 -0
- package/dist/node_modules/playwright-core/lib/client/platform.js +77 -0
- package/dist/node_modules/playwright-core/lib/client/playwright.js +71 -0
- package/dist/node_modules/playwright-core/lib/client/selectors.js +55 -0
- package/dist/node_modules/playwright-core/lib/client/stream.js +39 -0
- package/dist/node_modules/playwright-core/lib/client/timeoutSettings.js +79 -0
- package/dist/node_modules/playwright-core/lib/client/tracing.js +119 -0
- package/dist/node_modules/playwright-core/lib/client/types.js +28 -0
- package/dist/node_modules/playwright-core/lib/client/video.js +63 -0
- package/dist/node_modules/playwright-core/lib/client/waiter.js +142 -0
- package/dist/node_modules/playwright-core/lib/client/webError.js +39 -0
- package/dist/node_modules/playwright-core/lib/client/webSocket.js +93 -0
- package/dist/node_modules/playwright-core/lib/client/worker.js +85 -0
- package/dist/node_modules/playwright-core/lib/client/writableStream.js +39 -0
- package/dist/node_modules/playwright-core/lib/generated/bindingsControllerSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/clockSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/injectedScriptSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/storageScriptSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/utilityScriptSource.js +28 -0
- package/dist/node_modules/playwright-core/lib/generated/webSocketMockSource.js +336 -0
- package/dist/node_modules/playwright-core/lib/inProcessFactory.js +60 -0
- package/dist/node_modules/playwright-core/lib/inprocess.js +3 -0
- package/dist/node_modules/playwright-core/lib/mcpBundle.js +84 -0
- package/dist/node_modules/playwright-core/lib/mcpBundleImpl/index.js +147 -0
- package/dist/node_modules/playwright-core/lib/outofprocess.js +76 -0
- package/dist/node_modules/playwright-core/lib/protocol/serializers.js +197 -0
- package/dist/node_modules/playwright-core/lib/protocol/validator.js +3017 -0
- package/dist/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +193 -0
- package/dist/node_modules/playwright-core/lib/remote/playwrightConnection.js +129 -0
- package/dist/node_modules/playwright-core/lib/remote/playwrightServer.js +334 -0
- package/dist/node_modules/playwright-core/lib/server/agent/actionRunner.js +341 -0
- package/dist/node_modules/playwright-core/lib/server/agent/actions.js +128 -0
- package/dist/node_modules/playwright-core/lib/server/agent/codegen.js +111 -0
- package/dist/node_modules/playwright-core/lib/server/agent/context.js +161 -0
- package/dist/node_modules/playwright-core/lib/server/agent/expectTools.js +156 -0
- package/dist/node_modules/playwright-core/lib/server/agent/pageAgent.js +204 -0
- package/dist/node_modules/playwright-core/lib/server/agent/performTools.js +262 -0
- package/dist/node_modules/playwright-core/lib/server/agent/tool.js +109 -0
- package/dist/node_modules/playwright-core/lib/server/android/android.js +465 -0
- package/dist/node_modules/playwright-core/lib/server/android/backendAdb.js +177 -0
- package/dist/node_modules/playwright-core/lib/server/artifact.js +127 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +549 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiChromium.js +164 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +213 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiDeserializer.js +116 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +267 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +128 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiInput.js +146 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +410 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiOverCdp.js +102 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiPage.js +598 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/bidiPdf.js +106 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +24 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +148 -0
- package/dist/node_modules/playwright-core/lib/server/bidi/third_party/firefoxPrefs.js +261 -0
- package/dist/node_modules/playwright-core/lib/server/browser.js +143 -0
- package/dist/node_modules/playwright-core/lib/server/browserContext.js +712 -0
- package/dist/node_modules/playwright-core/lib/server/browserType.js +332 -0
- package/dist/node_modules/playwright-core/lib/server/callLog.js +82 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/chromium.js +403 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +104 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crBrowser.js +523 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crConnection.js +197 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crCoverage.js +235 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crDevTools.js +111 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +131 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +146 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crInput.js +187 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +707 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crPage.js +1004 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crPdf.js +121 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +145 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +136 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +162 -0
- package/dist/node_modules/playwright-core/lib/server/chromium/protocol.d.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/clock.js +149 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/csharp.js +327 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/java.js +274 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/javascript.js +247 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/jsonl.js +52 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/language.js +132 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/languages.js +68 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/python.js +279 -0
- package/dist/node_modules/playwright-core/lib/server/codegen/types.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/console.js +61 -0
- package/dist/node_modules/playwright-core/lib/server/cookieStore.js +206 -0
- package/dist/node_modules/playwright-core/lib/server/debugController.js +191 -0
- package/dist/node_modules/playwright-core/lib/server/debugger.js +119 -0
- package/dist/node_modules/playwright-core/lib/server/deviceDescriptors.js +39 -0
- package/dist/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +1779 -0
- package/dist/node_modules/playwright-core/lib/server/devtoolsController.js +365 -0
- package/dist/node_modules/playwright-core/lib/server/dialog.js +116 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +325 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +118 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +383 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +118 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +71 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +44 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +47 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +364 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +90 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +227 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +149 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +211 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/pageAgentDispatcher.js +106 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +410 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +108 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +67 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +68 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/webSocketRouteDispatcher.js +164 -0
- package/dist/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
- package/dist/node_modules/playwright-core/lib/server/dom.js +815 -0
- package/dist/node_modules/playwright-core/lib/server/download.js +70 -0
- package/dist/node_modules/playwright-core/lib/server/electron/electron.js +272 -0
- package/dist/node_modules/playwright-core/lib/server/electron/loader.js +30 -0
- package/dist/node_modules/playwright-core/lib/server/errors.js +69 -0
- package/dist/node_modules/playwright-core/lib/server/fetch.js +621 -0
- package/dist/node_modules/playwright-core/lib/server/fileChooser.js +43 -0
- package/dist/node_modules/playwright-core/lib/server/fileUploadUtils.js +84 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +415 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffConnection.js +142 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +150 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffInput.js +159 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +256 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/ffPage.js +495 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/firefox.js +114 -0
- package/dist/node_modules/playwright-core/lib/server/firefox/protocol.d.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/formData.js +147 -0
- package/dist/node_modules/playwright-core/lib/server/frameSelectors.js +160 -0
- package/dist/node_modules/playwright-core/lib/server/frames.js +1476 -0
- package/dist/node_modules/playwright-core/lib/server/har/harRecorder.js +147 -0
- package/dist/node_modules/playwright-core/lib/server/har/harTracer.js +607 -0
- package/dist/node_modules/playwright-core/lib/server/harBackend.js +157 -0
- package/dist/node_modules/playwright-core/lib/server/helper.js +96 -0
- package/dist/node_modules/playwright-core/lib/server/index.js +56 -0
- package/dist/node_modules/playwright-core/lib/server/input.js +277 -0
- package/dist/node_modules/playwright-core/lib/server/instrumentation.js +72 -0
- package/dist/node_modules/playwright-core/lib/server/javascript.js +291 -0
- package/dist/node_modules/playwright-core/lib/server/launchApp.js +128 -0
- package/dist/node_modules/playwright-core/lib/server/localUtils.js +214 -0
- package/dist/node_modules/playwright-core/lib/server/macEditingCommands.js +143 -0
- package/dist/node_modules/playwright-core/lib/server/network.js +667 -0
- package/dist/node_modules/playwright-core/lib/server/page.js +839 -0
- package/dist/node_modules/playwright-core/lib/server/pipeTransport.js +89 -0
- package/dist/node_modules/playwright-core/lib/server/playwright.js +69 -0
- package/dist/node_modules/playwright-core/lib/server/progress.js +136 -0
- package/dist/node_modules/playwright-core/lib/server/protocolError.js +52 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/chat.js +161 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderApp.js +366 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +138 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderSignalProcessor.js +83 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +157 -0
- package/dist/node_modules/playwright-core/lib/server/recorder/throttledFile.js +57 -0
- package/dist/node_modules/playwright-core/lib/server/recorder.js +527 -0
- package/dist/node_modules/playwright-core/lib/server/registry/browserFetcher.js +177 -0
- package/dist/node_modules/playwright-core/lib/server/registry/dependencies.js +371 -0
- package/dist/node_modules/playwright-core/lib/server/registry/index.js +1391 -0
- package/dist/node_modules/playwright-core/lib/server/registry/nativeDeps.js +1281 -0
- package/dist/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +127 -0
- package/dist/node_modules/playwright-core/lib/server/screencast.js +204 -0
- package/dist/node_modules/playwright-core/lib/server/screenshotter.js +333 -0
- package/dist/node_modules/playwright-core/lib/server/selectors.js +112 -0
- package/dist/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +383 -0
- package/dist/node_modules/playwright-core/lib/server/socksInterceptor.js +95 -0
- package/dist/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +147 -0
- package/dist/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +561 -0
- package/dist/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +604 -0
- package/dist/node_modules/playwright-core/lib/server/trace/viewer/traceParser.js +72 -0
- package/dist/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +245 -0
- package/dist/node_modules/playwright-core/lib/server/transport.js +181 -0
- package/dist/node_modules/playwright-core/lib/server/types.js +28 -0
- package/dist/node_modules/playwright-core/lib/server/usKeyboardLayout.js +145 -0
- package/dist/node_modules/playwright-core/lib/server/utils/ascii.js +44 -0
- package/dist/node_modules/playwright-core/lib/server/utils/comparators.js +139 -0
- package/dist/node_modules/playwright-core/lib/server/utils/crypto.js +216 -0
- package/dist/node_modules/playwright-core/lib/server/utils/debug.js +42 -0
- package/dist/node_modules/playwright-core/lib/server/utils/debugLogger.js +122 -0
- package/dist/node_modules/playwright-core/lib/server/utils/env.js +73 -0
- package/dist/node_modules/playwright-core/lib/server/utils/eventsHelper.js +39 -0
- package/dist/node_modules/playwright-core/lib/server/utils/expectUtils.js +123 -0
- package/dist/node_modules/playwright-core/lib/server/utils/fileUtils.js +191 -0
- package/dist/node_modules/playwright-core/lib/server/utils/happyEyeballs.js +207 -0
- package/dist/node_modules/playwright-core/lib/server/utils/hostPlatform.js +138 -0
- package/dist/node_modules/playwright-core/lib/server/utils/httpServer.js +205 -0
- package/dist/node_modules/playwright-core/lib/server/utils/imageUtils.js +141 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/colorUtils.js +89 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/compare.js +109 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/imageChannel.js +78 -0
- package/dist/node_modules/playwright-core/lib/server/utils/image_tools/stats.js +102 -0
- package/dist/node_modules/playwright-core/lib/server/utils/linuxUtils.js +71 -0
- package/dist/node_modules/playwright-core/lib/server/utils/network.js +242 -0
- package/dist/node_modules/playwright-core/lib/server/utils/nodePlatform.js +154 -0
- package/dist/node_modules/playwright-core/lib/server/utils/pipeTransport.js +84 -0
- package/dist/node_modules/playwright-core/lib/server/utils/processLauncher.js +242 -0
- package/dist/node_modules/playwright-core/lib/server/utils/profiler.js +65 -0
- package/dist/node_modules/playwright-core/lib/server/utils/socksProxy.js +511 -0
- package/dist/node_modules/playwright-core/lib/server/utils/spawnAsync.js +41 -0
- package/dist/node_modules/playwright-core/lib/server/utils/task.js +51 -0
- package/dist/node_modules/playwright-core/lib/server/utils/userAgent.js +98 -0
- package/dist/node_modules/playwright-core/lib/server/utils/wsServer.js +121 -0
- package/dist/node_modules/playwright-core/lib/server/utils/zipFile.js +74 -0
- package/dist/node_modules/playwright-core/lib/server/utils/zones.js +57 -0
- package/dist/node_modules/playwright-core/lib/server/videoRecorder.js +133 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/protocol.d.js +16 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/webkit.js +108 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +331 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkConnection.js +144 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +154 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkInput.js +181 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +197 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkPage.js +1163 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +83 -0
- package/dist/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +106 -0
- package/dist/node_modules/playwright-core/lib/third_party/pixelmatch.js +255 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/ariaSnapshot.js +455 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/assert.js +31 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/colors.js +72 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +245 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +1051 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/headers.js +53 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +689 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +176 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +81 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/lruCache.js +51 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/manualPromise.js +114 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +459 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/multimap.js +80 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/protocolFormatter.js +81 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/protocolMetainfo.js +338 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/rtti.js +43 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +386 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/semaphore.js +54 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/stackTrace.js +158 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +204 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/time.js +49 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/timeoutRunner.js +66 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/entries.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotRenderer.js +502 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/traceLoader.js +131 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModel.js +365 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/traceModernizer.js +400 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +58 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/types.js +16 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +243 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/utilityScriptSerializers.js +262 -0
- package/dist/node_modules/playwright-core/lib/utils/isomorphic/yaml.js +84 -0
- package/dist/node_modules/playwright-core/lib/utils.js +111 -0
- package/dist/node_modules/playwright-core/lib/utilsBundle.js +112 -0
- package/dist/node_modules/playwright-core/lib/utilsBundleImpl/index.js +220 -0
- package/dist/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +1066 -0
- package/dist/node_modules/playwright-core/lib/vite/devtools/assets/index-BlUdtOgD.js +50 -0
- package/dist/node_modules/playwright-core/lib/vite/devtools/assets/index-CcsbAkl3.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/devtools/index.html +28 -0
- package/dist/node_modules/playwright-core/lib/vite/htmlReport/index.html +84 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-DadYNm1I.js +32 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/index-BSjZa4pk.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/assets/index-BhTWtUlo.js +193 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/index.html +29 -0
- package/dist/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-DgOX2t83.js +32 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Dlnhdtv5.js +266 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/defaultSettingsView.Cqh7ej8a.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/index.BVu7tZDe.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/index.DQVmDDrI.js +2 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/index.html +43 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +21 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +5 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/uiMode.D_PBkkZn.js +5 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +17 -0
- package/dist/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- package/dist/node_modules/playwright-core/lib/zipBundle.js +34 -0
- package/dist/node_modules/playwright-core/lib/zipBundleImpl.js +5 -0
- package/dist/node_modules/playwright-core/package.json +43 -0
- package/dist/node_modules/playwright-core/types/protocol.d.ts +24365 -0
- package/dist/node_modules/playwright-core/types/structs.d.ts +45 -0
- package/dist/node_modules/playwright-core/types/types.d.ts +23332 -0
- package/dist/playwright-cli.js +7 -1
- package/dist/stably-plugin-cli/skills/ai-to-programmatic-migration/SKILL.md +95 -0
- package/dist/stably-plugin-cli/skills/browser-interaction-guide/SKILL.md +67 -1
- package/dist/stably-plugin-cli/skills/bulk-test-handling/SKILL.md +4 -0
- package/dist/stably-plugin-cli/skills/debugging-test-failures/SKILL.md +73 -8
- package/dist/stably-plugin-cli/skills/playwright-cli/SKILL.md +32 -0
- package/dist/stably-plugin-cli/skills/stably-cli/SKILL.md +34 -16
- package/package.json +2 -2
|
@@ -0,0 +1,467 @@
|
|
|
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 config_exports = {};
|
|
30
|
+
__export(config_exports, {
|
|
31
|
+
commaSeparatedList: () => commaSeparatedList,
|
|
32
|
+
configFromCLIOptions: () => configFromCLIOptions,
|
|
33
|
+
configFromEnv: () => configFromEnv,
|
|
34
|
+
defaultConfig: () => defaultConfig,
|
|
35
|
+
dotenvFileLoader: () => dotenvFileLoader,
|
|
36
|
+
enumParser: () => enumParser,
|
|
37
|
+
headerParser: () => headerParser,
|
|
38
|
+
loadConfig: () => loadConfig,
|
|
39
|
+
mergeConfig: () => mergeConfig,
|
|
40
|
+
numberParser: () => numberParser,
|
|
41
|
+
outputDir: () => outputDir,
|
|
42
|
+
outputFile: () => outputFile,
|
|
43
|
+
resolutionParser: () => resolutionParser,
|
|
44
|
+
resolveCLIConfig: () => resolveCLIConfig,
|
|
45
|
+
resolveConfig: () => resolveConfig,
|
|
46
|
+
semicolonSeparatedList: () => semicolonSeparatedList,
|
|
47
|
+
validateConfig: () => validateConfig,
|
|
48
|
+
workspaceDir: () => workspaceDir,
|
|
49
|
+
workspaceFile: () => workspaceFile
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(config_exports);
|
|
52
|
+
var import_fs = __toESM(require("fs"));
|
|
53
|
+
var import_os = __toESM(require("os"));
|
|
54
|
+
var import_path = __toESM(require("path"));
|
|
55
|
+
var import_server = require("playwright-core/lib/server");
|
|
56
|
+
var import_playwright_core = require("playwright-core");
|
|
57
|
+
var import_utilsBundle = require("playwright-core/lib/utilsBundle");
|
|
58
|
+
var import_configIni = require("./configIni");
|
|
59
|
+
var import_util = require("../../util");
|
|
60
|
+
var import_server2 = require("../sdk/server");
|
|
61
|
+
const defaultConfig = {
|
|
62
|
+
browser: {
|
|
63
|
+
browserName: "chromium",
|
|
64
|
+
launchOptions: {
|
|
65
|
+
channel: "chrome",
|
|
66
|
+
headless: import_os.default.platform() === "linux" && !process.env.DISPLAY
|
|
67
|
+
},
|
|
68
|
+
contextOptions: {
|
|
69
|
+
viewport: null
|
|
70
|
+
},
|
|
71
|
+
isolated: false
|
|
72
|
+
},
|
|
73
|
+
console: {
|
|
74
|
+
level: "info"
|
|
75
|
+
},
|
|
76
|
+
network: {
|
|
77
|
+
allowedOrigins: void 0,
|
|
78
|
+
blockedOrigins: void 0
|
|
79
|
+
},
|
|
80
|
+
server: {},
|
|
81
|
+
saveTrace: false,
|
|
82
|
+
snapshot: {
|
|
83
|
+
mode: "incremental",
|
|
84
|
+
output: "stdout"
|
|
85
|
+
},
|
|
86
|
+
timeouts: {
|
|
87
|
+
action: 5e3,
|
|
88
|
+
navigation: 6e4
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
async function resolveConfig(config) {
|
|
92
|
+
return mergeConfig(defaultConfig, config);
|
|
93
|
+
}
|
|
94
|
+
async function resolveCLIConfig(cliOptions) {
|
|
95
|
+
const envOverrides = configFromEnv();
|
|
96
|
+
const cliOverrides = configFromCLIOptions(cliOptions);
|
|
97
|
+
const configFile = cliOverrides.configFile ?? envOverrides.configFile;
|
|
98
|
+
const configInFile = await loadConfig(configFile);
|
|
99
|
+
let result = defaultConfig;
|
|
100
|
+
result = mergeConfig(result, configInFile);
|
|
101
|
+
result = mergeConfig(result, envOverrides);
|
|
102
|
+
result = mergeConfig(result, cliOverrides);
|
|
103
|
+
result.configFile = configFile;
|
|
104
|
+
await validateConfig(result);
|
|
105
|
+
return result;
|
|
106
|
+
}
|
|
107
|
+
async function validateConfig(config) {
|
|
108
|
+
if (config.browser.browserName === "chromium" && config.browser.launchOptions.chromiumSandbox === void 0) {
|
|
109
|
+
if (process.platform === "linux")
|
|
110
|
+
config.browser.launchOptions.chromiumSandbox = config.browser.launchOptions.channel !== "chromium";
|
|
111
|
+
else
|
|
112
|
+
config.browser.launchOptions.chromiumSandbox = true;
|
|
113
|
+
}
|
|
114
|
+
if (config.saveVideo && !checkFfmpeg()) {
|
|
115
|
+
console.error(`
|
|
116
|
+
Error: ffmpeg required to save the video is not installed.`);
|
|
117
|
+
console.error(`
|
|
118
|
+
Please run the command below. It will install a local copy of ffmpeg and will not change any system-wide settings.`);
|
|
119
|
+
console.error(`
|
|
120
|
+
npx playwright install ffmpeg
|
|
121
|
+
`);
|
|
122
|
+
process.exit(1);
|
|
123
|
+
}
|
|
124
|
+
if (config.browser.initScript) {
|
|
125
|
+
for (const script of config.browser.initScript) {
|
|
126
|
+
if (!await (0, import_util.fileExistsAsync)(script))
|
|
127
|
+
throw new Error(`Init script file does not exist: ${script}`);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if (config.browser.initPage) {
|
|
131
|
+
for (const page of config.browser.initPage) {
|
|
132
|
+
if (!await (0, import_util.fileExistsAsync)(page))
|
|
133
|
+
throw new Error(`Init page file does not exist: ${page}`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (config.sharedBrowserContext && config.saveVideo)
|
|
137
|
+
throw new Error("saveVideo is not supported when sharedBrowserContext is true");
|
|
138
|
+
}
|
|
139
|
+
function configFromCLIOptions(cliOptions) {
|
|
140
|
+
let browserName;
|
|
141
|
+
let channel;
|
|
142
|
+
switch (cliOptions.browser) {
|
|
143
|
+
case "chrome":
|
|
144
|
+
case "chrome-beta":
|
|
145
|
+
case "chrome-canary":
|
|
146
|
+
case "chrome-dev":
|
|
147
|
+
case "chromium":
|
|
148
|
+
case "msedge":
|
|
149
|
+
case "msedge-beta":
|
|
150
|
+
case "msedge-canary":
|
|
151
|
+
case "msedge-dev":
|
|
152
|
+
browserName = "chromium";
|
|
153
|
+
channel = cliOptions.browser;
|
|
154
|
+
break;
|
|
155
|
+
case "firefox":
|
|
156
|
+
browserName = "firefox";
|
|
157
|
+
break;
|
|
158
|
+
case "webkit":
|
|
159
|
+
browserName = "webkit";
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
const launchOptions = {
|
|
163
|
+
channel,
|
|
164
|
+
executablePath: cliOptions.executablePath,
|
|
165
|
+
headless: cliOptions.headless
|
|
166
|
+
};
|
|
167
|
+
if (cliOptions.sandbox !== void 0)
|
|
168
|
+
launchOptions.chromiumSandbox = cliOptions.sandbox;
|
|
169
|
+
if (cliOptions.proxyServer) {
|
|
170
|
+
launchOptions.proxy = {
|
|
171
|
+
server: cliOptions.proxyServer
|
|
172
|
+
};
|
|
173
|
+
if (cliOptions.proxyBypass)
|
|
174
|
+
launchOptions.proxy.bypass = cliOptions.proxyBypass;
|
|
175
|
+
}
|
|
176
|
+
if (cliOptions.device && cliOptions.cdpEndpoint)
|
|
177
|
+
throw new Error("Device emulation is not supported with cdpEndpoint.");
|
|
178
|
+
const contextOptions = cliOptions.device ? import_playwright_core.devices[cliOptions.device] : {};
|
|
179
|
+
if (cliOptions.storageState)
|
|
180
|
+
contextOptions.storageState = cliOptions.storageState;
|
|
181
|
+
if (cliOptions.userAgent)
|
|
182
|
+
contextOptions.userAgent = cliOptions.userAgent;
|
|
183
|
+
if (cliOptions.viewportSize)
|
|
184
|
+
contextOptions.viewport = cliOptions.viewportSize;
|
|
185
|
+
if (cliOptions.ignoreHttpsErrors)
|
|
186
|
+
contextOptions.ignoreHTTPSErrors = true;
|
|
187
|
+
if (cliOptions.blockServiceWorkers)
|
|
188
|
+
contextOptions.serviceWorkers = "block";
|
|
189
|
+
if (cliOptions.grantPermissions)
|
|
190
|
+
contextOptions.permissions = cliOptions.grantPermissions;
|
|
191
|
+
const config = {
|
|
192
|
+
browser: {
|
|
193
|
+
browserName,
|
|
194
|
+
isolated: cliOptions.isolated,
|
|
195
|
+
userDataDir: cliOptions.userDataDir,
|
|
196
|
+
launchOptions,
|
|
197
|
+
contextOptions,
|
|
198
|
+
cdpEndpoint: cliOptions.cdpEndpoint,
|
|
199
|
+
cdpHeaders: cliOptions.cdpHeader,
|
|
200
|
+
cdpTimeout: cliOptions.cdpTimeout,
|
|
201
|
+
initPage: cliOptions.initPage,
|
|
202
|
+
initScript: cliOptions.initScript
|
|
203
|
+
},
|
|
204
|
+
extension: cliOptions.extension,
|
|
205
|
+
server: {
|
|
206
|
+
port: cliOptions.port,
|
|
207
|
+
host: cliOptions.host,
|
|
208
|
+
allowedHosts: cliOptions.allowedHosts
|
|
209
|
+
},
|
|
210
|
+
capabilities: cliOptions.caps,
|
|
211
|
+
console: {
|
|
212
|
+
level: cliOptions.consoleLevel
|
|
213
|
+
},
|
|
214
|
+
network: {
|
|
215
|
+
allowedOrigins: cliOptions.allowedOrigins,
|
|
216
|
+
blockedOrigins: cliOptions.blockedOrigins
|
|
217
|
+
},
|
|
218
|
+
allowUnrestrictedFileAccess: cliOptions.allowUnrestrictedFileAccess,
|
|
219
|
+
codegen: cliOptions.codegen,
|
|
220
|
+
saveSession: cliOptions.saveSession,
|
|
221
|
+
saveTrace: cliOptions.saveTrace,
|
|
222
|
+
saveVideo: cliOptions.saveVideo,
|
|
223
|
+
secrets: cliOptions.secrets,
|
|
224
|
+
sharedBrowserContext: cliOptions.sharedBrowserContext,
|
|
225
|
+
snapshot: cliOptions.snapshotMode ? { mode: cliOptions.snapshotMode } : void 0,
|
|
226
|
+
outputMode: cliOptions.outputMode,
|
|
227
|
+
outputDir: cliOptions.outputDir,
|
|
228
|
+
imageResponses: cliOptions.imageResponses,
|
|
229
|
+
testIdAttribute: cliOptions.testIdAttribute,
|
|
230
|
+
timeouts: {
|
|
231
|
+
action: cliOptions.timeoutAction,
|
|
232
|
+
navigation: cliOptions.timeoutNavigation
|
|
233
|
+
}
|
|
234
|
+
};
|
|
235
|
+
return { ...config, configFile: cliOptions.config };
|
|
236
|
+
}
|
|
237
|
+
function configFromEnv() {
|
|
238
|
+
const options = {};
|
|
239
|
+
options.allowedHosts = commaSeparatedList(process.env.PLAYWRIGHT_MCP_ALLOWED_HOSTNAMES);
|
|
240
|
+
options.allowedOrigins = semicolonSeparatedList(process.env.PLAYWRIGHT_MCP_ALLOWED_ORIGINS);
|
|
241
|
+
options.allowUnrestrictedFileAccess = envToBoolean(process.env.PLAYWRIGHT_MCP_ALLOW_UNRESTRICTED_FILE_ACCESS);
|
|
242
|
+
options.blockedOrigins = semicolonSeparatedList(process.env.PLAYWRIGHT_MCP_BLOCKED_ORIGINS);
|
|
243
|
+
options.blockServiceWorkers = envToBoolean(process.env.PLAYWRIGHT_MCP_BLOCK_SERVICE_WORKERS);
|
|
244
|
+
options.browser = envToString(process.env.PLAYWRIGHT_MCP_BROWSER);
|
|
245
|
+
options.caps = commaSeparatedList(process.env.PLAYWRIGHT_MCP_CAPS);
|
|
246
|
+
options.cdpEndpoint = envToString(process.env.PLAYWRIGHT_MCP_CDP_ENDPOINT);
|
|
247
|
+
options.cdpHeader = headerParser(process.env.PLAYWRIGHT_MCP_CDP_HEADERS, {});
|
|
248
|
+
options.cdpTimeout = numberParser(process.env.PLAYWRIGHT_MCP_CDP_TIMEOUT);
|
|
249
|
+
options.config = envToString(process.env.PLAYWRIGHT_MCP_CONFIG);
|
|
250
|
+
if (process.env.PLAYWRIGHT_MCP_CONSOLE_LEVEL)
|
|
251
|
+
options.consoleLevel = enumParser("--console-level", ["error", "warning", "info", "debug"], process.env.PLAYWRIGHT_MCP_CONSOLE_LEVEL);
|
|
252
|
+
options.device = envToString(process.env.PLAYWRIGHT_MCP_DEVICE);
|
|
253
|
+
options.executablePath = envToString(process.env.PLAYWRIGHT_MCP_EXECUTABLE_PATH);
|
|
254
|
+
options.extension = envToBoolean(process.env.PLAYWRIGHT_MCP_EXTENSION);
|
|
255
|
+
options.grantPermissions = commaSeparatedList(process.env.PLAYWRIGHT_MCP_GRANT_PERMISSIONS);
|
|
256
|
+
options.headless = envToBoolean(process.env.PLAYWRIGHT_MCP_HEADLESS);
|
|
257
|
+
options.host = envToString(process.env.PLAYWRIGHT_MCP_HOST);
|
|
258
|
+
options.ignoreHttpsErrors = envToBoolean(process.env.PLAYWRIGHT_MCP_IGNORE_HTTPS_ERRORS);
|
|
259
|
+
const initPage = envToString(process.env.PLAYWRIGHT_MCP_INIT_PAGE);
|
|
260
|
+
if (initPage)
|
|
261
|
+
options.initPage = [initPage];
|
|
262
|
+
const initScript = envToString(process.env.PLAYWRIGHT_MCP_INIT_SCRIPT);
|
|
263
|
+
if (initScript)
|
|
264
|
+
options.initScript = [initScript];
|
|
265
|
+
options.isolated = envToBoolean(process.env.PLAYWRIGHT_MCP_ISOLATED);
|
|
266
|
+
if (process.env.PLAYWRIGHT_MCP_IMAGE_RESPONSES)
|
|
267
|
+
options.imageResponses = enumParser("--image-responses", ["allow", "omit"], process.env.PLAYWRIGHT_MCP_IMAGE_RESPONSES);
|
|
268
|
+
options.sandbox = envToBoolean(process.env.PLAYWRIGHT_MCP_SANDBOX);
|
|
269
|
+
options.outputDir = envToString(process.env.PLAYWRIGHT_MCP_OUTPUT_DIR);
|
|
270
|
+
options.port = numberParser(process.env.PLAYWRIGHT_MCP_PORT);
|
|
271
|
+
options.proxyBypass = envToString(process.env.PLAYWRIGHT_MCP_PROXY_BYPASS);
|
|
272
|
+
options.proxyServer = envToString(process.env.PLAYWRIGHT_MCP_PROXY_SERVER);
|
|
273
|
+
options.saveTrace = envToBoolean(process.env.PLAYWRIGHT_MCP_SAVE_TRACE);
|
|
274
|
+
options.saveVideo = resolutionParser("--save-video", process.env.PLAYWRIGHT_MCP_SAVE_VIDEO);
|
|
275
|
+
options.secrets = dotenvFileLoader(process.env.PLAYWRIGHT_MCP_SECRETS_FILE);
|
|
276
|
+
options.storageState = envToString(process.env.PLAYWRIGHT_MCP_STORAGE_STATE);
|
|
277
|
+
options.testIdAttribute = envToString(process.env.PLAYWRIGHT_MCP_TEST_ID_ATTRIBUTE);
|
|
278
|
+
options.timeoutAction = numberParser(process.env.PLAYWRIGHT_MCP_TIMEOUT_ACTION);
|
|
279
|
+
options.timeoutNavigation = numberParser(process.env.PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION);
|
|
280
|
+
options.userAgent = envToString(process.env.PLAYWRIGHT_MCP_USER_AGENT);
|
|
281
|
+
options.userDataDir = envToString(process.env.PLAYWRIGHT_MCP_USER_DATA_DIR);
|
|
282
|
+
options.viewportSize = resolutionParser("--viewport-size", process.env.PLAYWRIGHT_MCP_VIEWPORT_SIZE);
|
|
283
|
+
return configFromCLIOptions(options);
|
|
284
|
+
}
|
|
285
|
+
async function loadConfig(configFile) {
|
|
286
|
+
if (!configFile)
|
|
287
|
+
return {};
|
|
288
|
+
if (configFile.endsWith(".ini"))
|
|
289
|
+
return (0, import_configIni.configFromIniFile)(configFile);
|
|
290
|
+
try {
|
|
291
|
+
return JSON.parse(await import_fs.default.promises.readFile(configFile, "utf8"));
|
|
292
|
+
} catch {
|
|
293
|
+
return (0, import_configIni.configFromIniFile)(configFile);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
function workspaceDir(clientInfo) {
|
|
297
|
+
return import_path.default.resolve((0, import_server2.firstRootPath)(clientInfo) ?? process.cwd());
|
|
298
|
+
}
|
|
299
|
+
async function workspaceFile(config, clientInfo, fileName, perCallWorkspaceDir) {
|
|
300
|
+
const workspace = perCallWorkspaceDir ?? workspaceDir(clientInfo);
|
|
301
|
+
const resolvedName = import_path.default.resolve(workspace, fileName);
|
|
302
|
+
await checkFile(config, clientInfo, resolvedName, { origin: "code" });
|
|
303
|
+
return resolvedName;
|
|
304
|
+
}
|
|
305
|
+
function outputDir(config, clientInfo) {
|
|
306
|
+
if (config.outputDir)
|
|
307
|
+
return import_path.default.resolve(config.outputDir);
|
|
308
|
+
const rootPath = (0, import_server2.firstRootPath)(clientInfo);
|
|
309
|
+
if (rootPath)
|
|
310
|
+
return import_path.default.resolve(rootPath, config.skillMode ? ".playwright-cli" : ".playwright-mcp");
|
|
311
|
+
const tmpDir = process.env.PW_TMPDIR_FOR_TEST ?? import_os.default.tmpdir();
|
|
312
|
+
return import_path.default.resolve(tmpDir, "playwright-mcp-output", String(clientInfo.timestamp));
|
|
313
|
+
}
|
|
314
|
+
async function outputFile(config, clientInfo, fileName, options) {
|
|
315
|
+
const resolvedFile = import_path.default.resolve(outputDir(config, clientInfo), fileName);
|
|
316
|
+
await checkFile(config, clientInfo, resolvedFile, options);
|
|
317
|
+
await import_fs.default.promises.mkdir(import_path.default.dirname(resolvedFile), { recursive: true });
|
|
318
|
+
(0, import_utilsBundle.debug)("pw:mcp:file")(resolvedFile);
|
|
319
|
+
return resolvedFile;
|
|
320
|
+
}
|
|
321
|
+
async function checkFile(config, clientInfo, resolvedFilename, options) {
|
|
322
|
+
if (options.origin === "code")
|
|
323
|
+
return;
|
|
324
|
+
const output = outputDir(config, clientInfo);
|
|
325
|
+
const workspace = workspaceDir(clientInfo);
|
|
326
|
+
if (!resolvedFilename.startsWith(output) && !resolvedFilename.startsWith(workspace))
|
|
327
|
+
throw new Error(`Resolved file path ${resolvedFilename} is outside of the output directory ${output} and workspace directory ${workspace}. Use relative file names to stay within the output directory.`);
|
|
328
|
+
}
|
|
329
|
+
function pickDefined(obj) {
|
|
330
|
+
return Object.fromEntries(
|
|
331
|
+
Object.entries(obj ?? {}).filter(([_, v]) => v !== void 0)
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
function mergeConfig(base, overrides) {
|
|
335
|
+
const browser = {
|
|
336
|
+
...pickDefined(base.browser),
|
|
337
|
+
...pickDefined(overrides.browser),
|
|
338
|
+
browserName: overrides.browser?.browserName ?? base.browser?.browserName ?? "chromium",
|
|
339
|
+
isolated: overrides.browser?.isolated ?? base.browser?.isolated ?? false,
|
|
340
|
+
launchOptions: {
|
|
341
|
+
...pickDefined(base.browser?.launchOptions),
|
|
342
|
+
...pickDefined(overrides.browser?.launchOptions),
|
|
343
|
+
...{ assistantMode: true }
|
|
344
|
+
},
|
|
345
|
+
contextOptions: {
|
|
346
|
+
...pickDefined(base.browser?.contextOptions),
|
|
347
|
+
...pickDefined(overrides.browser?.contextOptions)
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
if (browser.browserName !== "chromium" && browser.launchOptions)
|
|
351
|
+
delete browser.launchOptions.channel;
|
|
352
|
+
return {
|
|
353
|
+
...pickDefined(base),
|
|
354
|
+
...pickDefined(overrides),
|
|
355
|
+
browser,
|
|
356
|
+
console: {
|
|
357
|
+
...pickDefined(base.console),
|
|
358
|
+
...pickDefined(overrides.console)
|
|
359
|
+
},
|
|
360
|
+
network: {
|
|
361
|
+
...pickDefined(base.network),
|
|
362
|
+
...pickDefined(overrides.network)
|
|
363
|
+
},
|
|
364
|
+
server: {
|
|
365
|
+
...pickDefined(base.server),
|
|
366
|
+
...pickDefined(overrides.server)
|
|
367
|
+
},
|
|
368
|
+
snapshot: {
|
|
369
|
+
...pickDefined(base.snapshot),
|
|
370
|
+
...pickDefined(overrides.snapshot)
|
|
371
|
+
},
|
|
372
|
+
timeouts: {
|
|
373
|
+
...pickDefined(base.timeouts),
|
|
374
|
+
...pickDefined(overrides.timeouts)
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
function semicolonSeparatedList(value) {
|
|
379
|
+
if (!value)
|
|
380
|
+
return void 0;
|
|
381
|
+
return value.split(";").map((v) => v.trim());
|
|
382
|
+
}
|
|
383
|
+
function commaSeparatedList(value) {
|
|
384
|
+
if (!value)
|
|
385
|
+
return void 0;
|
|
386
|
+
return value.split(",").map((v) => v.trim());
|
|
387
|
+
}
|
|
388
|
+
function dotenvFileLoader(value) {
|
|
389
|
+
if (!value)
|
|
390
|
+
return void 0;
|
|
391
|
+
return import_utilsBundle.dotenv.parse(import_fs.default.readFileSync(value, "utf8"));
|
|
392
|
+
}
|
|
393
|
+
function numberParser(value) {
|
|
394
|
+
if (!value)
|
|
395
|
+
return void 0;
|
|
396
|
+
return +value;
|
|
397
|
+
}
|
|
398
|
+
function resolutionParser(name, value) {
|
|
399
|
+
if (!value)
|
|
400
|
+
return void 0;
|
|
401
|
+
if (value.includes("x")) {
|
|
402
|
+
const [width, height] = value.split("x").map((v) => +v);
|
|
403
|
+
if (isNaN(width) || isNaN(height) || width <= 0 || height <= 0)
|
|
404
|
+
throw new Error(`Invalid resolution format: use ${name}="800x600"`);
|
|
405
|
+
return { width, height };
|
|
406
|
+
}
|
|
407
|
+
if (value.includes(",")) {
|
|
408
|
+
const [width, height] = value.split(",").map((v) => +v);
|
|
409
|
+
if (isNaN(width) || isNaN(height) || width <= 0 || height <= 0)
|
|
410
|
+
throw new Error(`Invalid resolution format: use ${name}="800x600"`);
|
|
411
|
+
return { width, height };
|
|
412
|
+
}
|
|
413
|
+
throw new Error(`Invalid resolution format: use ${name}="800x600"`);
|
|
414
|
+
}
|
|
415
|
+
function headerParser(arg, previous) {
|
|
416
|
+
if (!arg)
|
|
417
|
+
return previous || {};
|
|
418
|
+
const result = previous || {};
|
|
419
|
+
const [name, value] = arg.split(":").map((v) => v.trim());
|
|
420
|
+
result[name] = value;
|
|
421
|
+
return result;
|
|
422
|
+
}
|
|
423
|
+
function enumParser(name, options, value) {
|
|
424
|
+
if (!options.includes(value))
|
|
425
|
+
throw new Error(`Invalid ${name}: ${value}. Valid values are: ${options.join(", ")}`);
|
|
426
|
+
return value;
|
|
427
|
+
}
|
|
428
|
+
function envToBoolean(value) {
|
|
429
|
+
if (value === "true" || value === "1")
|
|
430
|
+
return true;
|
|
431
|
+
if (value === "false" || value === "0")
|
|
432
|
+
return false;
|
|
433
|
+
return void 0;
|
|
434
|
+
}
|
|
435
|
+
function envToString(value) {
|
|
436
|
+
return value ? value.trim() : void 0;
|
|
437
|
+
}
|
|
438
|
+
function checkFfmpeg() {
|
|
439
|
+
try {
|
|
440
|
+
const executable = import_server.registry.findExecutable("ffmpeg");
|
|
441
|
+
return import_fs.default.existsSync(executable.executablePath());
|
|
442
|
+
} catch (error) {
|
|
443
|
+
return false;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
447
|
+
0 && (module.exports = {
|
|
448
|
+
commaSeparatedList,
|
|
449
|
+
configFromCLIOptions,
|
|
450
|
+
configFromEnv,
|
|
451
|
+
defaultConfig,
|
|
452
|
+
dotenvFileLoader,
|
|
453
|
+
enumParser,
|
|
454
|
+
headerParser,
|
|
455
|
+
loadConfig,
|
|
456
|
+
mergeConfig,
|
|
457
|
+
numberParser,
|
|
458
|
+
outputDir,
|
|
459
|
+
outputFile,
|
|
460
|
+
resolutionParser,
|
|
461
|
+
resolveCLIConfig,
|
|
462
|
+
resolveConfig,
|
|
463
|
+
semicolonSeparatedList,
|
|
464
|
+
validateConfig,
|
|
465
|
+
workspaceDir,
|
|
466
|
+
workspaceFile
|
|
467
|
+
});
|
|
@@ -0,0 +1,190 @@
|
|
|
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 configIni_exports = {};
|
|
30
|
+
__export(configIni_exports, {
|
|
31
|
+
configFromIniFile: () => configFromIniFile,
|
|
32
|
+
configsFromIniFile: () => configsFromIniFile
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(configIni_exports);
|
|
35
|
+
var import_fs = __toESM(require("fs"));
|
|
36
|
+
var import_utilsBundle = require("playwright-core/lib/utilsBundle");
|
|
37
|
+
function configFromIniFile(filePath) {
|
|
38
|
+
const content = import_fs.default.readFileSync(filePath, "utf8");
|
|
39
|
+
const parsed = import_utilsBundle.ini.parse(content);
|
|
40
|
+
return iniEntriesToConfig(parsed);
|
|
41
|
+
}
|
|
42
|
+
function configsFromIniFile(filePath) {
|
|
43
|
+
const content = import_fs.default.readFileSync(filePath, "utf8");
|
|
44
|
+
const parsed = import_utilsBundle.ini.parse(content);
|
|
45
|
+
const result = /* @__PURE__ */ new Map();
|
|
46
|
+
for (const [sectionName, sectionData] of Object.entries(parsed)) {
|
|
47
|
+
if (typeof sectionData !== "object" || sectionData === null)
|
|
48
|
+
continue;
|
|
49
|
+
result.set(sectionName, iniEntriesToConfig(sectionData));
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
function iniEntriesToConfig(entries) {
|
|
54
|
+
const config = {};
|
|
55
|
+
for (const [targetPath, rawValue] of Object.entries(entries)) {
|
|
56
|
+
const type = longhandTypes[targetPath];
|
|
57
|
+
const value = type ? coerceToType(rawValue, type) : coerceIniValue(rawValue);
|
|
58
|
+
setNestedValue(config, targetPath, value);
|
|
59
|
+
}
|
|
60
|
+
return config;
|
|
61
|
+
}
|
|
62
|
+
function coerceToType(value, type) {
|
|
63
|
+
switch (type) {
|
|
64
|
+
case "string":
|
|
65
|
+
return String(value);
|
|
66
|
+
case "number":
|
|
67
|
+
return Number(value);
|
|
68
|
+
case "boolean":
|
|
69
|
+
if (typeof value === "boolean")
|
|
70
|
+
return value;
|
|
71
|
+
return value === "true" || value === "1";
|
|
72
|
+
case "string[]":
|
|
73
|
+
if (Array.isArray(value))
|
|
74
|
+
return value.map(String);
|
|
75
|
+
return [String(value)];
|
|
76
|
+
case "size": {
|
|
77
|
+
if (typeof value === "string" && value.includes("x")) {
|
|
78
|
+
const [w, h] = value.split("x").map(Number);
|
|
79
|
+
if (!isNaN(w) && !isNaN(h) && w > 0 && h > 0)
|
|
80
|
+
return { width: w, height: h };
|
|
81
|
+
}
|
|
82
|
+
return void 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function coerceIniValue(value) {
|
|
87
|
+
if (typeof value !== "string")
|
|
88
|
+
return value;
|
|
89
|
+
const trimmed = value.trim();
|
|
90
|
+
if (trimmed === "")
|
|
91
|
+
return trimmed;
|
|
92
|
+
const num = Number(trimmed);
|
|
93
|
+
if (!isNaN(num))
|
|
94
|
+
return num;
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
function setNestedValue(obj, dotPath, value) {
|
|
98
|
+
const parts = dotPath.split(".");
|
|
99
|
+
let current = obj;
|
|
100
|
+
for (let i = 0; i < parts.length - 1; i++) {
|
|
101
|
+
const part = parts[i];
|
|
102
|
+
if (!(part in current) || typeof current[part] !== "object" || current[part] === null)
|
|
103
|
+
current[part] = {};
|
|
104
|
+
current = current[part];
|
|
105
|
+
}
|
|
106
|
+
current[parts[parts.length - 1]] = value;
|
|
107
|
+
}
|
|
108
|
+
const longhandTypes = {
|
|
109
|
+
// browser direct
|
|
110
|
+
"browser.browserName": "string",
|
|
111
|
+
"browser.isolated": "boolean",
|
|
112
|
+
"browser.userDataDir": "string",
|
|
113
|
+
"browser.cdpEndpoint": "string",
|
|
114
|
+
"browser.cdpTimeout": "number",
|
|
115
|
+
"browser.remoteEndpoint": "string",
|
|
116
|
+
"browser.initPage": "string[]",
|
|
117
|
+
"browser.initScript": "string[]",
|
|
118
|
+
// browser.launchOptions
|
|
119
|
+
"browser.launchOptions.channel": "string",
|
|
120
|
+
"browser.launchOptions.headless": "boolean",
|
|
121
|
+
"browser.launchOptions.executablePath": "string",
|
|
122
|
+
"browser.launchOptions.chromiumSandbox": "boolean",
|
|
123
|
+
"browser.launchOptions.args": "string[]",
|
|
124
|
+
"browser.launchOptions.downloadsPath": "string",
|
|
125
|
+
"browser.launchOptions.handleSIGHUP": "boolean",
|
|
126
|
+
"browser.launchOptions.handleSIGINT": "boolean",
|
|
127
|
+
"browser.launchOptions.handleSIGTERM": "boolean",
|
|
128
|
+
"browser.launchOptions.slowMo": "number",
|
|
129
|
+
"browser.launchOptions.timeout": "number",
|
|
130
|
+
"browser.launchOptions.tracesDir": "string",
|
|
131
|
+
"browser.launchOptions.proxy.server": "string",
|
|
132
|
+
"browser.launchOptions.proxy.bypass": "string",
|
|
133
|
+
"browser.launchOptions.proxy.username": "string",
|
|
134
|
+
"browser.launchOptions.proxy.password": "string",
|
|
135
|
+
// browser.contextOptions
|
|
136
|
+
"browser.contextOptions.acceptDownloads": "boolean",
|
|
137
|
+
"browser.contextOptions.baseURL": "string",
|
|
138
|
+
"browser.contextOptions.bypassCSP": "boolean",
|
|
139
|
+
"browser.contextOptions.colorScheme": "string",
|
|
140
|
+
"browser.contextOptions.contrast": "string",
|
|
141
|
+
"browser.contextOptions.deviceScaleFactor": "number",
|
|
142
|
+
"browser.contextOptions.forcedColors": "string",
|
|
143
|
+
"browser.contextOptions.hasTouch": "boolean",
|
|
144
|
+
"browser.contextOptions.ignoreHTTPSErrors": "boolean",
|
|
145
|
+
"browser.contextOptions.isMobile": "boolean",
|
|
146
|
+
"browser.contextOptions.javaScriptEnabled": "boolean",
|
|
147
|
+
"browser.contextOptions.locale": "string",
|
|
148
|
+
"browser.contextOptions.offline": "boolean",
|
|
149
|
+
"browser.contextOptions.permissions": "string[]",
|
|
150
|
+
"browser.contextOptions.reducedMotion": "string",
|
|
151
|
+
"browser.contextOptions.screen": "size",
|
|
152
|
+
"browser.contextOptions.serviceWorkers": "string",
|
|
153
|
+
"browser.contextOptions.storageState": "string",
|
|
154
|
+
"browser.contextOptions.strictSelectors": "boolean",
|
|
155
|
+
"browser.contextOptions.timezoneId": "string",
|
|
156
|
+
"browser.contextOptions.userAgent": "string",
|
|
157
|
+
"browser.contextOptions.viewport": "size",
|
|
158
|
+
// top-level
|
|
159
|
+
"extension": "boolean",
|
|
160
|
+
"capabilities": "string[]",
|
|
161
|
+
"saveSession": "boolean",
|
|
162
|
+
"saveTrace": "boolean",
|
|
163
|
+
"saveVideo": "size",
|
|
164
|
+
"sharedBrowserContext": "boolean",
|
|
165
|
+
"outputDir": "string",
|
|
166
|
+
"outputMode": "string",
|
|
167
|
+
"imageResponses": "string",
|
|
168
|
+
"allowUnrestrictedFileAccess": "boolean",
|
|
169
|
+
"codegen": "string",
|
|
170
|
+
"testIdAttribute": "string",
|
|
171
|
+
// server
|
|
172
|
+
"server.port": "number",
|
|
173
|
+
"server.host": "string",
|
|
174
|
+
"server.allowedHosts": "string[]",
|
|
175
|
+
// console
|
|
176
|
+
"console.level": "string",
|
|
177
|
+
// network
|
|
178
|
+
"network.allowedOrigins": "string[]",
|
|
179
|
+
"network.blockedOrigins": "string[]",
|
|
180
|
+
// timeouts
|
|
181
|
+
"timeouts.action": "number",
|
|
182
|
+
"timeouts.navigation": "number",
|
|
183
|
+
// snapshot
|
|
184
|
+
"snapshot.mode": "string"
|
|
185
|
+
};
|
|
186
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
187
|
+
0 && (module.exports = {
|
|
188
|
+
configFromIniFile,
|
|
189
|
+
configsFromIniFile
|
|
190
|
+
});
|