@treegress.com/treegress-browser-core 1.59.0-treegress.3
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/README.md +60 -0
- package/ThirdPartyNotices.txt +3759 -0
- package/bin/install_media_pack.ps1 +5 -0
- package/bin/install_webkit_wsl.ps1 +33 -0
- package/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/browsers.json +81 -0
- package/cli.js +18 -0
- package/index.d.ts +17 -0
- package/index.js +32 -0
- package/index.mjs +28 -0
- package/lib/androidServerImpl.js +65 -0
- package/lib/browserServerImpl.js +120 -0
- package/lib/cli/client/cli.js +6 -0
- package/lib/cli/client/program.js +375 -0
- package/lib/cli/client/registry.js +171 -0
- package/lib/cli/client/session.js +282 -0
- package/lib/cli/client/socketConnection.js +108 -0
- package/lib/cli/daemon/command.js +73 -0
- package/lib/cli/daemon/commands.js +879 -0
- package/lib/cli/daemon/daemon.js +179 -0
- package/lib/cli/daemon/helpGenerator.js +173 -0
- package/lib/cli/daemon/program.js +123 -0
- package/lib/cli/driver.js +98 -0
- package/lib/cli/program.js +598 -0
- package/lib/cli/programWithTestStub.js +74 -0
- package/lib/client/android.js +361 -0
- package/lib/client/api.js +137 -0
- package/lib/client/artifact.js +79 -0
- package/lib/client/browser.js +169 -0
- package/lib/client/browserContext.js +590 -0
- package/lib/client/browserType.js +153 -0
- package/lib/client/cdpSession.js +55 -0
- package/lib/client/channelOwner.js +194 -0
- package/lib/client/clientHelper.js +64 -0
- package/lib/client/clientInstrumentation.js +55 -0
- package/lib/client/clientStackTrace.js +69 -0
- package/lib/client/clock.js +68 -0
- package/lib/client/connect.js +152 -0
- package/lib/client/connection.js +322 -0
- package/lib/client/consoleMessage.js +61 -0
- package/lib/client/coverage.js +44 -0
- package/lib/client/dialog.js +56 -0
- package/lib/client/disposable.js +76 -0
- package/lib/client/download.js +62 -0
- package/lib/client/electron.js +138 -0
- package/lib/client/elementHandle.js +284 -0
- package/lib/client/errors.js +77 -0
- package/lib/client/eventEmitter.js +327 -0
- package/lib/client/events.js +103 -0
- package/lib/client/fetch.js +368 -0
- package/lib/client/fileChooser.js +46 -0
- package/lib/client/fileUtils.js +34 -0
- package/lib/client/frame.js +409 -0
- package/lib/client/harRouter.js +99 -0
- package/lib/client/input.js +84 -0
- package/lib/client/inspector.js +48 -0
- package/lib/client/jsHandle.js +109 -0
- package/lib/client/jsonPipe.js +39 -0
- package/lib/client/localUtils.js +60 -0
- package/lib/client/locator.js +373 -0
- package/lib/client/network.js +750 -0
- package/lib/client/page.js +750 -0
- package/lib/client/pageAgent.js +64 -0
- package/lib/client/platform.js +77 -0
- package/lib/client/playwright.js +71 -0
- package/lib/client/selectors.js +55 -0
- package/lib/client/stream.js +39 -0
- package/lib/client/timeoutSettings.js +79 -0
- package/lib/client/tracing.js +124 -0
- package/lib/client/types.js +28 -0
- package/lib/client/video.js +65 -0
- package/lib/client/waiter.js +142 -0
- package/lib/client/webError.js +39 -0
- package/lib/client/worker.js +85 -0
- package/lib/client/writableStream.js +39 -0
- package/lib/devtools/appIcon.png +0 -0
- package/lib/devtools/devtoolsApp.js +275 -0
- package/lib/devtools/devtoolsController.js +289 -0
- package/lib/generated/bindingsControllerSource.js +28 -0
- package/lib/generated/clockSource.js +28 -0
- package/lib/generated/injectedScriptSource.js +28 -0
- package/lib/generated/pollingRecorderSource.js +28 -0
- package/lib/generated/storageScriptSource.js +28 -0
- package/lib/generated/utilityScriptSource.js +28 -0
- package/lib/generated/webSocketMockSource.js +336 -0
- package/lib/inProcessFactory.js +60 -0
- package/lib/inprocess.js +3 -0
- package/lib/mcp/browserFactory.js +196 -0
- package/lib/mcp/cdpRelay.js +353 -0
- package/lib/mcp/config.d.js +16 -0
- package/lib/mcp/config.js +399 -0
- package/lib/mcp/configIni.js +190 -0
- package/lib/mcp/exports.js +42 -0
- package/lib/mcp/extensionContextFactory.js +59 -0
- package/lib/mcp/index.js +62 -0
- package/lib/mcp/log.js +35 -0
- package/lib/mcp/program.js +111 -0
- package/lib/mcp/protocol.js +28 -0
- package/lib/mcp/sdk/http.js +152 -0
- package/lib/mcp/sdk/server.js +230 -0
- package/lib/mcp/sdk/tool.js +47 -0
- package/lib/mcp/watchdog.js +44 -0
- package/lib/mcpBundle.js +84 -0
- package/lib/mcpBundleImpl/index.js +147 -0
- package/lib/outofprocess.js +76 -0
- package/lib/protocol/serializers.js +197 -0
- package/lib/protocol/validator.js +3064 -0
- package/lib/protocol/validatorPrimitives.js +193 -0
- package/lib/remote/playwrightConnection.js +129 -0
- package/lib/remote/playwrightPipeServer.js +100 -0
- package/lib/remote/playwrightServer.js +339 -0
- package/lib/remote/playwrightWebSocketServer.js +73 -0
- package/lib/remote/serverTransport.js +96 -0
- package/lib/server/agent/actionRunner.js +341 -0
- package/lib/server/agent/actions.js +128 -0
- package/lib/server/agent/codegen.js +111 -0
- package/lib/server/agent/context.js +161 -0
- package/lib/server/agent/expectTools.js +156 -0
- package/lib/server/agent/pageAgent.js +204 -0
- package/lib/server/agent/performTools.js +262 -0
- package/lib/server/agent/tool.js +109 -0
- package/lib/server/android/android.js +465 -0
- package/lib/server/android/backendAdb.js +177 -0
- package/lib/server/artifact.js +127 -0
- package/lib/server/bidi/bidiBrowser.js +560 -0
- package/lib/server/bidi/bidiChromium.js +162 -0
- package/lib/server/bidi/bidiConnection.js +213 -0
- package/lib/server/bidi/bidiDeserializer.js +116 -0
- package/lib/server/bidi/bidiExecutionContext.js +267 -0
- package/lib/server/bidi/bidiFirefox.js +128 -0
- package/lib/server/bidi/bidiInput.js +146 -0
- package/lib/server/bidi/bidiNetworkManager.js +411 -0
- package/lib/server/bidi/bidiOverCdp.js +102 -0
- package/lib/server/bidi/bidiPage.js +598 -0
- package/lib/server/bidi/bidiPdf.js +106 -0
- package/lib/server/bidi/third_party/bidiCommands.d.js +22 -0
- package/lib/server/bidi/third_party/bidiKeyboard.js +256 -0
- package/lib/server/bidi/third_party/bidiProtocol.js +24 -0
- package/lib/server/bidi/third_party/bidiProtocolCore.js +180 -0
- package/lib/server/bidi/third_party/bidiProtocolPermissions.js +42 -0
- package/lib/server/bidi/third_party/bidiSerializer.js +148 -0
- package/lib/server/bidi/third_party/firefoxPrefs.js +261 -0
- package/lib/server/browser.js +217 -0
- package/lib/server/browserContext.js +699 -0
- package/lib/server/browserType.js +337 -0
- package/lib/server/callLog.js +82 -0
- package/lib/server/chromium/appIcon.png +0 -0
- package/lib/server/chromium/chromium.js +399 -0
- package/lib/server/chromium/chromiumSwitches.js +104 -0
- package/lib/server/chromium/crBrowser.js +532 -0
- package/lib/server/chromium/crConnection.js +197 -0
- package/lib/server/chromium/crCoverage.js +235 -0
- package/lib/server/chromium/crDevTools.js +111 -0
- package/lib/server/chromium/crDragDrop.js +131 -0
- package/lib/server/chromium/crExecutionContext.js +146 -0
- package/lib/server/chromium/crInput.js +187 -0
- package/lib/server/chromium/crNetworkManager.js +708 -0
- package/lib/server/chromium/crPage.js +1004 -0
- package/lib/server/chromium/crPdf.js +121 -0
- package/lib/server/chromium/crProtocolHelper.js +145 -0
- package/lib/server/chromium/crServiceWorker.js +136 -0
- package/lib/server/chromium/defaultFontFamilies.js +162 -0
- package/lib/server/chromium/protocol.d.js +16 -0
- package/lib/server/clock.js +149 -0
- package/lib/server/codegen/csharp.js +327 -0
- package/lib/server/codegen/java.js +274 -0
- package/lib/server/codegen/javascript.js +247 -0
- package/lib/server/codegen/jsonl.js +52 -0
- package/lib/server/codegen/language.js +132 -0
- package/lib/server/codegen/languages.js +68 -0
- package/lib/server/codegen/python.js +279 -0
- package/lib/server/codegen/types.js +16 -0
- package/lib/server/console.js +61 -0
- package/lib/server/cookieStore.js +206 -0
- package/lib/server/debugController.js +197 -0
- package/lib/server/debugger.js +119 -0
- package/lib/server/deviceDescriptors.js +39 -0
- package/lib/server/deviceDescriptorsSource.json +1779 -0
- package/lib/server/dialog.js +116 -0
- package/lib/server/dispatchers/androidDispatcher.js +325 -0
- package/lib/server/dispatchers/artifactDispatcher.js +118 -0
- package/lib/server/dispatchers/browserContextDispatcher.js +377 -0
- package/lib/server/dispatchers/browserDispatcher.js +124 -0
- package/lib/server/dispatchers/browserTypeDispatcher.js +71 -0
- package/lib/server/dispatchers/cdpSessionDispatcher.js +47 -0
- package/lib/server/dispatchers/debugControllerDispatcher.js +78 -0
- package/lib/server/dispatchers/dialogDispatcher.js +47 -0
- package/lib/server/dispatchers/dispatcher.js +364 -0
- package/lib/server/dispatchers/disposableDispatcher.js +39 -0
- package/lib/server/dispatchers/electronDispatcher.js +90 -0
- package/lib/server/dispatchers/elementHandlerDispatcher.js +181 -0
- package/lib/server/dispatchers/frameDispatcher.js +227 -0
- package/lib/server/dispatchers/jsHandleDispatcher.js +85 -0
- package/lib/server/dispatchers/jsonPipeDispatcher.js +58 -0
- package/lib/server/dispatchers/localUtilsDispatcher.js +185 -0
- package/lib/server/dispatchers/networkDispatchers.js +214 -0
- package/lib/server/dispatchers/pageAgentDispatcher.js +106 -0
- package/lib/server/dispatchers/pageDispatcher.js +441 -0
- package/lib/server/dispatchers/playwrightDispatcher.js +108 -0
- package/lib/server/dispatchers/streamDispatcher.js +67 -0
- package/lib/server/dispatchers/tracingDispatcher.js +68 -0
- package/lib/server/dispatchers/webSocketRouteDispatcher.js +164 -0
- package/lib/server/dispatchers/writableStreamDispatcher.js +79 -0
- package/lib/server/disposable.js +41 -0
- package/lib/server/dom.js +815 -0
- package/lib/server/download.js +71 -0
- package/lib/server/electron/electron.js +272 -0
- package/lib/server/electron/loader.js +30 -0
- package/lib/server/errors.js +69 -0
- package/lib/server/fetch.js +621 -0
- package/lib/server/fileChooser.js +43 -0
- package/lib/server/fileUploadUtils.js +84 -0
- package/lib/server/firefox/ffBrowser.js +415 -0
- package/lib/server/firefox/ffConnection.js +142 -0
- package/lib/server/firefox/ffExecutionContext.js +150 -0
- package/lib/server/firefox/ffInput.js +159 -0
- package/lib/server/firefox/ffNetworkManager.js +256 -0
- package/lib/server/firefox/ffPage.js +495 -0
- package/lib/server/firefox/firefox.js +114 -0
- package/lib/server/firefox/protocol.d.js +16 -0
- package/lib/server/formData.js +147 -0
- package/lib/server/frameSelectors.js +160 -0
- package/lib/server/frames.js +1476 -0
- package/lib/server/har/harRecorder.js +147 -0
- package/lib/server/har/harTracer.js +608 -0
- package/lib/server/harBackend.js +157 -0
- package/lib/server/helper.js +96 -0
- package/lib/server/index.js +58 -0
- package/lib/server/input.js +277 -0
- package/lib/server/instrumentation.js +72 -0
- package/lib/server/javascript.js +291 -0
- package/lib/server/launchApp.js +127 -0
- package/lib/server/localUtils.js +214 -0
- package/lib/server/macEditingCommands.js +143 -0
- package/lib/server/network.js +668 -0
- package/lib/server/page.js +915 -0
- package/lib/server/pipeTransport.js +89 -0
- package/lib/server/playwright.js +69 -0
- package/lib/server/progress.js +136 -0
- package/lib/server/protocolError.js +52 -0
- package/lib/server/recorder/chat.js +161 -0
- package/lib/server/recorder/recorderApp.js +367 -0
- package/lib/server/recorder/recorderRunner.js +138 -0
- package/lib/server/recorder/recorderSignalProcessor.js +83 -0
- package/lib/server/recorder/recorderUtils.js +157 -0
- package/lib/server/recorder/throttledFile.js +57 -0
- package/lib/server/recorder.js +533 -0
- package/lib/server/registry/browserFetcher.js +177 -0
- package/lib/server/registry/dependencies.js +371 -0
- package/lib/server/registry/index.js +1395 -0
- package/lib/server/registry/nativeDeps.js +1281 -0
- package/lib/server/registry/oopDownloadBrowserMain.js +127 -0
- package/lib/server/screencast.js +214 -0
- package/lib/server/screenshotter.js +333 -0
- package/lib/server/selectors.js +112 -0
- package/lib/server/socksClientCertificatesInterceptor.js +383 -0
- package/lib/server/socksInterceptor.js +95 -0
- package/lib/server/trace/recorder/snapshotter.js +147 -0
- package/lib/server/trace/recorder/snapshotterInjected.js +561 -0
- package/lib/server/trace/recorder/tracing.js +607 -0
- package/lib/server/trace/viewer/traceParser.js +72 -0
- package/lib/server/trace/viewer/traceViewer.js +244 -0
- package/lib/server/transport.js +181 -0
- package/lib/server/types.js +28 -0
- package/lib/server/usKeyboardLayout.js +145 -0
- package/lib/server/utils/ascii.js +44 -0
- package/lib/server/utils/comparators.js +139 -0
- package/lib/server/utils/crypto.js +216 -0
- package/lib/server/utils/debug.js +42 -0
- package/lib/server/utils/debugLogger.js +122 -0
- package/lib/server/utils/env.js +73 -0
- package/lib/server/utils/eventsHelper.js +39 -0
- package/lib/server/utils/expectUtils.js +123 -0
- package/lib/server/utils/fileUtils.js +191 -0
- package/lib/server/utils/happyEyeballs.js +207 -0
- package/lib/server/utils/hostPlatform.js +123 -0
- package/lib/server/utils/httpServer.js +205 -0
- package/lib/server/utils/image_tools/colorUtils.js +89 -0
- package/lib/server/utils/image_tools/compare.js +109 -0
- package/lib/server/utils/image_tools/imageChannel.js +78 -0
- package/lib/server/utils/image_tools/stats.js +102 -0
- package/lib/server/utils/linuxUtils.js +71 -0
- package/lib/server/utils/network.js +244 -0
- package/lib/server/utils/nodePlatform.js +154 -0
- package/lib/server/utils/pipeTransport.js +84 -0
- package/lib/server/utils/processLauncher.js +243 -0
- package/lib/server/utils/profiler.js +65 -0
- package/lib/server/utils/socksProxy.js +511 -0
- package/lib/server/utils/spawnAsync.js +41 -0
- package/lib/server/utils/task.js +51 -0
- package/lib/server/utils/userAgent.js +98 -0
- package/lib/server/utils/wsServer.js +121 -0
- package/lib/server/utils/zipFile.js +74 -0
- package/lib/server/utils/zones.js +57 -0
- package/lib/server/videoRecorder.js +133 -0
- package/lib/server/webkit/protocol.d.js +16 -0
- package/lib/server/webkit/webkit.js +108 -0
- package/lib/server/webkit/wkBrowser.js +331 -0
- package/lib/server/webkit/wkConnection.js +144 -0
- package/lib/server/webkit/wkExecutionContext.js +154 -0
- package/lib/server/webkit/wkInput.js +181 -0
- package/lib/server/webkit/wkInterceptableRequest.js +197 -0
- package/lib/server/webkit/wkPage.js +1164 -0
- package/lib/server/webkit/wkProvisionalPage.js +83 -0
- package/lib/server/webkit/wkWorkers.js +106 -0
- package/lib/serverRegistry.js +136 -0
- package/lib/third_party/pixelmatch.js +255 -0
- package/lib/tools/browserServerBackend.js +79 -0
- package/lib/tools/common.js +63 -0
- package/lib/tools/config.js +41 -0
- package/lib/tools/console.js +65 -0
- package/lib/tools/context.js +282 -0
- package/lib/tools/cookies.js +152 -0
- package/lib/tools/customDomLocatorCompiler.js +239 -0
- package/lib/tools/customDomResolverDiagnostics.js +100 -0
- package/lib/tools/customDomSnapshotFormatter.js +658 -0
- package/lib/tools/devtools.js +42 -0
- package/lib/tools/dialogs.js +59 -0
- package/lib/tools/evaluate.js +61 -0
- package/lib/tools/exports.js +57 -0
- package/lib/tools/files.js +58 -0
- package/lib/tools/form.js +63 -0
- package/lib/tools/keyboard.js +151 -0
- package/lib/tools/logFile.js +95 -0
- package/lib/tools/mouse.js +170 -0
- package/lib/tools/navigate.js +105 -0
- package/lib/tools/network.js +112 -0
- package/lib/tools/pdf.js +48 -0
- package/lib/tools/response.js +278 -0
- package/lib/tools/route.js +140 -0
- package/lib/tools/runCode.js +76 -0
- package/lib/tools/screenshot.js +87 -0
- package/lib/tools/sessionLog.js +75 -0
- package/lib/tools/snapshot.js +209 -0
- package/lib/tools/storage.js +67 -0
- package/lib/tools/tab.js +596 -0
- package/lib/tools/tabs.js +67 -0
- package/lib/tools/tool.js +47 -0
- package/lib/tools/tools.js +94 -0
- package/lib/tools/tracing.js +75 -0
- package/lib/tools/utils.js +88 -0
- package/lib/tools/verify.js +149 -0
- package/lib/tools/video.js +89 -0
- package/lib/tools/wait.js +63 -0
- package/lib/tools/webstorage.js +223 -0
- package/lib/utils/isomorphic/aiSnapshotTypes.js +16 -0
- package/lib/utils/isomorphic/ariaSnapshot.js +455 -0
- package/lib/utils/isomorphic/assert.js +31 -0
- package/lib/utils/isomorphic/colors.js +72 -0
- package/lib/utils/isomorphic/cssParser.js +245 -0
- package/lib/utils/isomorphic/cssTokenizer.js +1051 -0
- package/lib/utils/isomorphic/headers.js +53 -0
- package/lib/utils/isomorphic/imageUtils.js +141 -0
- package/lib/utils/isomorphic/locatorGenerators.js +689 -0
- package/lib/utils/isomorphic/locatorParser.js +176 -0
- package/lib/utils/isomorphic/locatorUtils.js +81 -0
- package/lib/utils/isomorphic/lruCache.js +51 -0
- package/lib/utils/isomorphic/manualPromise.js +114 -0
- package/lib/utils/isomorphic/mimeType.js +464 -0
- package/lib/utils/isomorphic/multimap.js +80 -0
- package/lib/utils/isomorphic/protocolFormatter.js +81 -0
- package/lib/utils/isomorphic/protocolMetainfo.js +345 -0
- package/lib/utils/isomorphic/rtti.js +43 -0
- package/lib/utils/isomorphic/selectorParser.js +386 -0
- package/lib/utils/isomorphic/semaphore.js +54 -0
- package/lib/utils/isomorphic/stackTrace.js +158 -0
- package/lib/utils/isomorphic/stringUtils.js +204 -0
- package/lib/utils/isomorphic/time.js +49 -0
- package/lib/utils/isomorphic/timeoutRunner.js +66 -0
- package/lib/utils/isomorphic/trace/entries.js +16 -0
- package/lib/utils/isomorphic/trace/snapshotRenderer.js +502 -0
- package/lib/utils/isomorphic/trace/snapshotServer.js +120 -0
- package/lib/utils/isomorphic/trace/snapshotStorage.js +89 -0
- package/lib/utils/isomorphic/trace/traceLoader.js +131 -0
- package/lib/utils/isomorphic/trace/traceModel.js +366 -0
- package/lib/utils/isomorphic/trace/traceModernizer.js +401 -0
- package/lib/utils/isomorphic/trace/versions/traceV3.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV4.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV5.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV6.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV7.js +16 -0
- package/lib/utils/isomorphic/trace/versions/traceV8.js +16 -0
- package/lib/utils/isomorphic/traceUtils.js +58 -0
- package/lib/utils/isomorphic/types.js +16 -0
- package/lib/utils/isomorphic/urlMatch.js +243 -0
- package/lib/utils/isomorphic/utilityScriptSerializers.js +262 -0
- package/lib/utils/isomorphic/yaml.js +84 -0
- package/lib/utils.js +111 -0
- package/lib/utilsBundle.js +112 -0
- package/lib/utilsBundleImpl/index.js +218 -0
- package/lib/utilsBundleImpl/xdg-open +1066 -0
- package/lib/vite/devtools/assets/index-D3CVnoLM.css +1 -0
- package/lib/vite/devtools/assets/index-wqccfruE.js +50 -0
- package/lib/vite/devtools/index.html +28 -0
- package/lib/vite/htmlReport/index.html +84 -0
- package/lib/vite/recorder/assets/codeMirrorModule-4NapTJOb.js +32 -0
- package/lib/vite/recorder/assets/codeMirrorModule-DYBRYzYX.css +1 -0
- package/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/lib/vite/recorder/assets/index-BSjZa4pk.css +1 -0
- package/lib/vite/recorder/assets/index-CD9lKVjM.js +193 -0
- package/lib/vite/recorder/index.html +29 -0
- package/lib/vite/recorder/playwright-logo.svg +9 -0
- package/lib/vite/traceViewer/assets/codeMirrorModule-RgXeHFoQ.js +32 -0
- package/lib/vite/traceViewer/assets/defaultSettingsView-DP6vvJEM.js +269 -0
- package/lib/vite/traceViewer/assets/xtermModule-CsJ4vdCR.js +9 -0
- package/lib/vite/traceViewer/codeMirrorModule.DYBRYzYX.css +1 -0
- package/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/lib/vite/traceViewer/defaultSettingsView.DQ9U-ctL.css +1 -0
- package/lib/vite/traceViewer/index.BVu7tZDe.css +1 -0
- package/lib/vite/traceViewer/index.D8YUXFVt.js +2 -0
- package/lib/vite/traceViewer/index.html +43 -0
- package/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/lib/vite/traceViewer/snapshot.html +21 -0
- package/lib/vite/traceViewer/sw.bundle.js +5 -0
- package/lib/vite/traceViewer/uiMode.BIQFTUME.js +6 -0
- package/lib/vite/traceViewer/uiMode.Btcz36p_.css +1 -0
- package/lib/vite/traceViewer/uiMode.html +17 -0
- package/lib/vite/traceViewer/xtermModule.DYP7pi_n.css +32 -0
- package/lib/zipBundle.js +34 -0
- package/lib/zipBundleImpl.js +5 -0
- package/package.json +52 -0
- package/types/protocol.d.ts +24365 -0
- package/types/structs.d.ts +45 -0
- package/types/types.d.ts +23724 -0
|
@@ -0,0 +1,879 @@
|
|
|
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 commands_exports = {};
|
|
20
|
+
__export(commands_exports, {
|
|
21
|
+
commands: () => commands
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(commands_exports);
|
|
24
|
+
var import_mcpBundle = require("../../mcpBundle");
|
|
25
|
+
var import_command = require("./command");
|
|
26
|
+
const numberArg = import_mcpBundle.z.preprocess((val, ctx) => {
|
|
27
|
+
const number = Number(val);
|
|
28
|
+
if (Number.isNaN(number)) {
|
|
29
|
+
ctx.issues.push({
|
|
30
|
+
code: "custom",
|
|
31
|
+
message: `expected number, received '${val}'`,
|
|
32
|
+
input: val
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return number;
|
|
36
|
+
}, import_mcpBundle.z.number());
|
|
37
|
+
const open = (0, import_command.declareCommand)({
|
|
38
|
+
name: "open",
|
|
39
|
+
description: "Open the browser",
|
|
40
|
+
category: "core",
|
|
41
|
+
args: import_mcpBundle.z.object({
|
|
42
|
+
url: import_mcpBundle.z.string().optional().describe("The URL to navigate to")
|
|
43
|
+
}),
|
|
44
|
+
options: import_mcpBundle.z.object({
|
|
45
|
+
browser: import_mcpBundle.z.string().optional().describe("Browser or chrome channel to use, possible values: chrome, firefox, webkit, msedge."),
|
|
46
|
+
config: import_mcpBundle.z.string().optional().describe("Path to the configuration file, defaults to .playwright/cli.config.json"),
|
|
47
|
+
extension: import_mcpBundle.z.boolean().optional().describe("Connect to browser extension"),
|
|
48
|
+
headed: import_mcpBundle.z.boolean().optional().describe("Run browser in headed mode"),
|
|
49
|
+
persistent: import_mcpBundle.z.boolean().optional().describe("Use persistent browser profile"),
|
|
50
|
+
profile: import_mcpBundle.z.string().optional().describe("Use persistent browser profile, store profile in specified directory."),
|
|
51
|
+
attach: import_mcpBundle.z.string().optional().describe("Attach to a running Playwright browser by name or endpoint")
|
|
52
|
+
}),
|
|
53
|
+
toolName: ({ url }) => url ? "browser_navigate" : "browser_snapshot",
|
|
54
|
+
toolParams: ({ url }) => ({ url: url || "about:blank" })
|
|
55
|
+
});
|
|
56
|
+
const close = (0, import_command.declareCommand)({
|
|
57
|
+
name: "close",
|
|
58
|
+
description: "Close the browser",
|
|
59
|
+
category: "core",
|
|
60
|
+
args: import_mcpBundle.z.object({}),
|
|
61
|
+
toolName: "",
|
|
62
|
+
toolParams: () => ({})
|
|
63
|
+
});
|
|
64
|
+
const goto = (0, import_command.declareCommand)({
|
|
65
|
+
name: "goto",
|
|
66
|
+
description: "Navigate to a URL",
|
|
67
|
+
category: "core",
|
|
68
|
+
args: import_mcpBundle.z.object({
|
|
69
|
+
url: import_mcpBundle.z.string().describe("The URL to navigate to")
|
|
70
|
+
}),
|
|
71
|
+
toolName: "browser_navigate",
|
|
72
|
+
toolParams: ({ url }) => ({ url })
|
|
73
|
+
});
|
|
74
|
+
const goBack = (0, import_command.declareCommand)({
|
|
75
|
+
name: "go-back",
|
|
76
|
+
description: "Go back to the previous page",
|
|
77
|
+
category: "navigation",
|
|
78
|
+
args: import_mcpBundle.z.object({}),
|
|
79
|
+
toolName: "browser_navigate_back",
|
|
80
|
+
toolParams: () => ({})
|
|
81
|
+
});
|
|
82
|
+
const goForward = (0, import_command.declareCommand)({
|
|
83
|
+
name: "go-forward",
|
|
84
|
+
description: "Go forward to the next page",
|
|
85
|
+
category: "navigation",
|
|
86
|
+
args: import_mcpBundle.z.object({}),
|
|
87
|
+
toolName: "browser_navigate_forward",
|
|
88
|
+
toolParams: () => ({})
|
|
89
|
+
});
|
|
90
|
+
const reload = (0, import_command.declareCommand)({
|
|
91
|
+
name: "reload",
|
|
92
|
+
description: "Reload the current page",
|
|
93
|
+
category: "navigation",
|
|
94
|
+
args: import_mcpBundle.z.object({}),
|
|
95
|
+
toolName: "browser_reload",
|
|
96
|
+
toolParams: () => ({})
|
|
97
|
+
});
|
|
98
|
+
const pressKey = (0, import_command.declareCommand)({
|
|
99
|
+
name: "press",
|
|
100
|
+
description: "Press a key on the keyboard, `a`, `ArrowLeft`",
|
|
101
|
+
category: "keyboard",
|
|
102
|
+
args: import_mcpBundle.z.object({
|
|
103
|
+
key: import_mcpBundle.z.string().describe("Name of the key to press or a character to generate, such as `ArrowLeft` or `a`")
|
|
104
|
+
}),
|
|
105
|
+
toolName: "browser_press_key",
|
|
106
|
+
toolParams: ({ key }) => ({ key })
|
|
107
|
+
});
|
|
108
|
+
const type = (0, import_command.declareCommand)({
|
|
109
|
+
name: "type",
|
|
110
|
+
description: "Type text into editable element",
|
|
111
|
+
category: "core",
|
|
112
|
+
args: import_mcpBundle.z.object({
|
|
113
|
+
text: import_mcpBundle.z.string().describe("Text to type into the element")
|
|
114
|
+
}),
|
|
115
|
+
options: import_mcpBundle.z.object({
|
|
116
|
+
submit: import_mcpBundle.z.boolean().optional().describe("Whether to submit entered text (press Enter after)")
|
|
117
|
+
}),
|
|
118
|
+
toolName: "browser_press_sequentially",
|
|
119
|
+
toolParams: ({ text, submit }) => ({ text, submit })
|
|
120
|
+
});
|
|
121
|
+
const keydown = (0, import_command.declareCommand)({
|
|
122
|
+
name: "keydown",
|
|
123
|
+
description: "Press a key down on the keyboard",
|
|
124
|
+
category: "keyboard",
|
|
125
|
+
args: import_mcpBundle.z.object({
|
|
126
|
+
key: import_mcpBundle.z.string().describe("Name of the key to press or a character to generate, such as `ArrowLeft` or `a`")
|
|
127
|
+
}),
|
|
128
|
+
toolName: "browser_keydown",
|
|
129
|
+
toolParams: ({ key }) => ({ key })
|
|
130
|
+
});
|
|
131
|
+
const keyup = (0, import_command.declareCommand)({
|
|
132
|
+
name: "keyup",
|
|
133
|
+
description: "Press a key up on the keyboard",
|
|
134
|
+
category: "keyboard",
|
|
135
|
+
args: import_mcpBundle.z.object({
|
|
136
|
+
key: import_mcpBundle.z.string().describe("Name of the key to press or a character to generate, such as `ArrowLeft` or `a`")
|
|
137
|
+
}),
|
|
138
|
+
toolName: "browser_keyup",
|
|
139
|
+
toolParams: ({ key }) => ({ key })
|
|
140
|
+
});
|
|
141
|
+
const mouseMove = (0, import_command.declareCommand)({
|
|
142
|
+
name: "mousemove",
|
|
143
|
+
description: "Move mouse to a given position",
|
|
144
|
+
category: "mouse",
|
|
145
|
+
args: import_mcpBundle.z.object({
|
|
146
|
+
x: numberArg.describe("X coordinate"),
|
|
147
|
+
y: numberArg.describe("Y coordinate")
|
|
148
|
+
}),
|
|
149
|
+
toolName: "browser_mouse_move_xy",
|
|
150
|
+
toolParams: ({ x, y }) => ({ x, y })
|
|
151
|
+
});
|
|
152
|
+
const mouseDown = (0, import_command.declareCommand)({
|
|
153
|
+
name: "mousedown",
|
|
154
|
+
description: "Press mouse down",
|
|
155
|
+
category: "mouse",
|
|
156
|
+
args: import_mcpBundle.z.object({
|
|
157
|
+
button: import_mcpBundle.z.string().optional().describe("Button to press, defaults to left")
|
|
158
|
+
}),
|
|
159
|
+
toolName: "browser_mouse_down",
|
|
160
|
+
toolParams: ({ button }) => ({ button })
|
|
161
|
+
});
|
|
162
|
+
const mouseUp = (0, import_command.declareCommand)({
|
|
163
|
+
name: "mouseup",
|
|
164
|
+
description: "Press mouse up",
|
|
165
|
+
category: "mouse",
|
|
166
|
+
args: import_mcpBundle.z.object({
|
|
167
|
+
button: import_mcpBundle.z.string().optional().describe("Button to press, defaults to left")
|
|
168
|
+
}),
|
|
169
|
+
toolName: "browser_mouse_up",
|
|
170
|
+
toolParams: ({ button }) => ({ button })
|
|
171
|
+
});
|
|
172
|
+
const mouseWheel = (0, import_command.declareCommand)({
|
|
173
|
+
name: "mousewheel",
|
|
174
|
+
description: "Scroll mouse wheel",
|
|
175
|
+
category: "mouse",
|
|
176
|
+
args: import_mcpBundle.z.object({
|
|
177
|
+
dx: numberArg.describe("Y delta"),
|
|
178
|
+
dy: numberArg.describe("X delta")
|
|
179
|
+
}),
|
|
180
|
+
toolName: "browser_mouse_wheel",
|
|
181
|
+
toolParams: ({ dx: deltaY, dy: deltaX }) => ({ deltaY, deltaX })
|
|
182
|
+
});
|
|
183
|
+
const click = (0, import_command.declareCommand)({
|
|
184
|
+
name: "click",
|
|
185
|
+
description: "Perform click on a web page",
|
|
186
|
+
category: "core",
|
|
187
|
+
args: import_mcpBundle.z.object({
|
|
188
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot"),
|
|
189
|
+
button: import_mcpBundle.z.string().optional().describe("Button to click, defaults to left")
|
|
190
|
+
}),
|
|
191
|
+
options: import_mcpBundle.z.object({
|
|
192
|
+
modifiers: import_mcpBundle.z.array(import_mcpBundle.z.string()).optional().describe("Modifier keys to press")
|
|
193
|
+
}),
|
|
194
|
+
toolName: "browser_click",
|
|
195
|
+
toolParams: ({ ref, button, modifiers }) => ({ ref, button, modifiers })
|
|
196
|
+
});
|
|
197
|
+
const doubleClick = (0, import_command.declareCommand)({
|
|
198
|
+
name: "dblclick",
|
|
199
|
+
description: "Perform double click on a web page",
|
|
200
|
+
category: "core",
|
|
201
|
+
args: import_mcpBundle.z.object({
|
|
202
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot"),
|
|
203
|
+
button: import_mcpBundle.z.string().optional().describe("Button to click, defaults to left")
|
|
204
|
+
}),
|
|
205
|
+
options: import_mcpBundle.z.object({
|
|
206
|
+
modifiers: import_mcpBundle.z.array(import_mcpBundle.z.string()).optional().describe("Modifier keys to press")
|
|
207
|
+
}),
|
|
208
|
+
toolName: "browser_click",
|
|
209
|
+
toolParams: ({ ref, button, modifiers }) => ({ ref, button, modifiers, doubleClick: true })
|
|
210
|
+
});
|
|
211
|
+
const drag = (0, import_command.declareCommand)({
|
|
212
|
+
name: "drag",
|
|
213
|
+
description: "Perform drag and drop between two elements",
|
|
214
|
+
category: "core",
|
|
215
|
+
args: import_mcpBundle.z.object({
|
|
216
|
+
startRef: import_mcpBundle.z.string().describe("Exact source element reference from the page snapshot"),
|
|
217
|
+
endRef: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot")
|
|
218
|
+
}),
|
|
219
|
+
toolName: "browser_drag",
|
|
220
|
+
toolParams: ({ startRef, endRef }) => ({ startRef, endRef })
|
|
221
|
+
});
|
|
222
|
+
const fill = (0, import_command.declareCommand)({
|
|
223
|
+
name: "fill",
|
|
224
|
+
description: "Fill text into editable element",
|
|
225
|
+
category: "core",
|
|
226
|
+
args: import_mcpBundle.z.object({
|
|
227
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot"),
|
|
228
|
+
text: import_mcpBundle.z.string().describe("Text to fill into the element")
|
|
229
|
+
}),
|
|
230
|
+
options: import_mcpBundle.z.object({
|
|
231
|
+
submit: import_mcpBundle.z.boolean().optional().describe("Whether to submit entered text (press Enter after)")
|
|
232
|
+
}),
|
|
233
|
+
toolName: "browser_type",
|
|
234
|
+
toolParams: ({ ref, text, submit }) => ({ ref, text, submit })
|
|
235
|
+
});
|
|
236
|
+
const hover = (0, import_command.declareCommand)({
|
|
237
|
+
name: "hover",
|
|
238
|
+
description: "Hover over element on page",
|
|
239
|
+
category: "core",
|
|
240
|
+
args: import_mcpBundle.z.object({
|
|
241
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot")
|
|
242
|
+
}),
|
|
243
|
+
toolName: "browser_hover",
|
|
244
|
+
toolParams: ({ ref }) => ({ ref })
|
|
245
|
+
});
|
|
246
|
+
const select = (0, import_command.declareCommand)({
|
|
247
|
+
name: "select",
|
|
248
|
+
description: "Select an option in a dropdown",
|
|
249
|
+
category: "core",
|
|
250
|
+
args: import_mcpBundle.z.object({
|
|
251
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot"),
|
|
252
|
+
val: import_mcpBundle.z.string().describe("Value to select in the dropdown")
|
|
253
|
+
}),
|
|
254
|
+
toolName: "browser_select_option",
|
|
255
|
+
toolParams: ({ ref, val: value }) => ({ ref, values: [value] })
|
|
256
|
+
});
|
|
257
|
+
const fileUpload = (0, import_command.declareCommand)({
|
|
258
|
+
name: "upload",
|
|
259
|
+
description: "Upload one or multiple files",
|
|
260
|
+
category: "core",
|
|
261
|
+
args: import_mcpBundle.z.object({
|
|
262
|
+
file: import_mcpBundle.z.string().describe("The absolute paths to the files to upload")
|
|
263
|
+
}),
|
|
264
|
+
toolName: "browser_file_upload",
|
|
265
|
+
toolParams: ({ file }) => ({ paths: [file] })
|
|
266
|
+
});
|
|
267
|
+
const check = (0, import_command.declareCommand)({
|
|
268
|
+
name: "check",
|
|
269
|
+
description: "Check a checkbox or radio button",
|
|
270
|
+
category: "core",
|
|
271
|
+
args: import_mcpBundle.z.object({
|
|
272
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot")
|
|
273
|
+
}),
|
|
274
|
+
toolName: "browser_check",
|
|
275
|
+
toolParams: ({ ref }) => ({ ref })
|
|
276
|
+
});
|
|
277
|
+
const uncheck = (0, import_command.declareCommand)({
|
|
278
|
+
name: "uncheck",
|
|
279
|
+
description: "Uncheck a checkbox or radio button",
|
|
280
|
+
category: "core",
|
|
281
|
+
args: import_mcpBundle.z.object({
|
|
282
|
+
ref: import_mcpBundle.z.string().describe("Exact target element reference from the page snapshot")
|
|
283
|
+
}),
|
|
284
|
+
toolName: "browser_uncheck",
|
|
285
|
+
toolParams: ({ ref }) => ({ ref })
|
|
286
|
+
});
|
|
287
|
+
const snapshot = (0, import_command.declareCommand)({
|
|
288
|
+
name: "snapshot",
|
|
289
|
+
description: "Capture page snapshot to obtain element ref",
|
|
290
|
+
category: "core",
|
|
291
|
+
args: import_mcpBundle.z.object({}),
|
|
292
|
+
options: import_mcpBundle.z.object({
|
|
293
|
+
filename: import_mcpBundle.z.string().optional().describe("Save snapshot to markdown file instead of returning it in the response.")
|
|
294
|
+
}),
|
|
295
|
+
toolName: "browser_snapshot",
|
|
296
|
+
toolParams: ({ filename }) => ({ filename })
|
|
297
|
+
});
|
|
298
|
+
const evaluate = (0, import_command.declareCommand)({
|
|
299
|
+
name: "eval",
|
|
300
|
+
description: "Evaluate JavaScript expression on page or element",
|
|
301
|
+
category: "core",
|
|
302
|
+
args: import_mcpBundle.z.object({
|
|
303
|
+
func: import_mcpBundle.z.string().describe("() => { /* code */ } or (element) => { /* code */ } when element is provided"),
|
|
304
|
+
ref: import_mcpBundle.z.string().optional().describe("Exact target element reference from the page snapshot")
|
|
305
|
+
}),
|
|
306
|
+
toolName: "browser_evaluate",
|
|
307
|
+
toolParams: ({ func, ref }) => ({ function: func, ref })
|
|
308
|
+
});
|
|
309
|
+
const dialogAccept = (0, import_command.declareCommand)({
|
|
310
|
+
name: "dialog-accept",
|
|
311
|
+
description: "Accept a dialog",
|
|
312
|
+
category: "core",
|
|
313
|
+
args: import_mcpBundle.z.object({
|
|
314
|
+
prompt: import_mcpBundle.z.string().optional().describe("The text of the prompt in case of a prompt dialog.")
|
|
315
|
+
}),
|
|
316
|
+
toolName: "browser_handle_dialog",
|
|
317
|
+
toolParams: ({ prompt: promptText }) => ({ accept: true, promptText })
|
|
318
|
+
});
|
|
319
|
+
const dialogDismiss = (0, import_command.declareCommand)({
|
|
320
|
+
name: "dialog-dismiss",
|
|
321
|
+
description: "Dismiss a dialog",
|
|
322
|
+
category: "core",
|
|
323
|
+
args: import_mcpBundle.z.object({}),
|
|
324
|
+
toolName: "browser_handle_dialog",
|
|
325
|
+
toolParams: () => ({ accept: false })
|
|
326
|
+
});
|
|
327
|
+
const resize = (0, import_command.declareCommand)({
|
|
328
|
+
name: "resize",
|
|
329
|
+
description: "Resize the browser window",
|
|
330
|
+
category: "core",
|
|
331
|
+
args: import_mcpBundle.z.object({
|
|
332
|
+
w: numberArg.describe("Width of the browser window"),
|
|
333
|
+
h: numberArg.describe("Height of the browser window")
|
|
334
|
+
}),
|
|
335
|
+
toolName: "browser_resize",
|
|
336
|
+
toolParams: ({ w: width, h: height }) => ({ width, height })
|
|
337
|
+
});
|
|
338
|
+
const runCode = (0, import_command.declareCommand)({
|
|
339
|
+
name: "run-code",
|
|
340
|
+
description: "Run Playwright code snippet",
|
|
341
|
+
category: "devtools",
|
|
342
|
+
args: import_mcpBundle.z.object({
|
|
343
|
+
code: import_mcpBundle.z.string().describe("A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction.")
|
|
344
|
+
}),
|
|
345
|
+
toolName: "browser_run_code",
|
|
346
|
+
toolParams: ({ code }) => ({ code })
|
|
347
|
+
});
|
|
348
|
+
const tabList = (0, import_command.declareCommand)({
|
|
349
|
+
name: "tab-list",
|
|
350
|
+
description: "List all tabs",
|
|
351
|
+
category: "tabs",
|
|
352
|
+
args: import_mcpBundle.z.object({}),
|
|
353
|
+
toolName: "browser_tabs",
|
|
354
|
+
toolParams: () => ({ action: "list" })
|
|
355
|
+
});
|
|
356
|
+
const tabNew = (0, import_command.declareCommand)({
|
|
357
|
+
name: "tab-new",
|
|
358
|
+
description: "Create a new tab",
|
|
359
|
+
category: "tabs",
|
|
360
|
+
args: import_mcpBundle.z.object({
|
|
361
|
+
url: import_mcpBundle.z.string().optional().describe("The URL to navigate to in the new tab. If omitted, the new tab will be blank.")
|
|
362
|
+
}),
|
|
363
|
+
toolName: "browser_tabs",
|
|
364
|
+
toolParams: ({ url }) => ({ action: "new", url })
|
|
365
|
+
});
|
|
366
|
+
const tabClose = (0, import_command.declareCommand)({
|
|
367
|
+
name: "tab-close",
|
|
368
|
+
description: "Close a browser tab",
|
|
369
|
+
category: "tabs",
|
|
370
|
+
args: import_mcpBundle.z.object({
|
|
371
|
+
index: numberArg.optional().describe("Tab index. If omitted, current tab is closed.")
|
|
372
|
+
}),
|
|
373
|
+
toolName: "browser_tabs",
|
|
374
|
+
toolParams: ({ index }) => ({ action: "close", index })
|
|
375
|
+
});
|
|
376
|
+
const tabSelect = (0, import_command.declareCommand)({
|
|
377
|
+
name: "tab-select",
|
|
378
|
+
description: "Select a browser tab",
|
|
379
|
+
category: "tabs",
|
|
380
|
+
args: import_mcpBundle.z.object({
|
|
381
|
+
index: numberArg.describe("Tab index")
|
|
382
|
+
}),
|
|
383
|
+
toolName: "browser_tabs",
|
|
384
|
+
toolParams: ({ index }) => ({ action: "select", index })
|
|
385
|
+
});
|
|
386
|
+
const stateLoad = (0, import_command.declareCommand)({
|
|
387
|
+
name: "state-load",
|
|
388
|
+
description: "Loads browser storage (authentication) state from a file",
|
|
389
|
+
category: "storage",
|
|
390
|
+
args: import_mcpBundle.z.object({
|
|
391
|
+
filename: import_mcpBundle.z.string().describe("File name to load the storage state from.")
|
|
392
|
+
}),
|
|
393
|
+
toolName: "browser_set_storage_state",
|
|
394
|
+
toolParams: ({ filename }) => ({ filename })
|
|
395
|
+
});
|
|
396
|
+
const stateSave = (0, import_command.declareCommand)({
|
|
397
|
+
name: "state-save",
|
|
398
|
+
description: "Saves the current storage (authentication) state to a file",
|
|
399
|
+
category: "storage",
|
|
400
|
+
args: import_mcpBundle.z.object({
|
|
401
|
+
filename: import_mcpBundle.z.string().optional().describe("File name to save the storage state to.")
|
|
402
|
+
}),
|
|
403
|
+
toolName: "browser_storage_state",
|
|
404
|
+
toolParams: ({ filename }) => ({ filename })
|
|
405
|
+
});
|
|
406
|
+
const cookieList = (0, import_command.declareCommand)({
|
|
407
|
+
name: "cookie-list",
|
|
408
|
+
description: "List all cookies (optionally filtered by domain/path)",
|
|
409
|
+
category: "storage",
|
|
410
|
+
args: import_mcpBundle.z.object({}),
|
|
411
|
+
options: import_mcpBundle.z.object({
|
|
412
|
+
domain: import_mcpBundle.z.string().optional().describe("Filter cookies by domain"),
|
|
413
|
+
path: import_mcpBundle.z.string().optional().describe("Filter cookies by path")
|
|
414
|
+
}),
|
|
415
|
+
toolName: "browser_cookie_list",
|
|
416
|
+
toolParams: ({ domain, path }) => ({ domain, path })
|
|
417
|
+
});
|
|
418
|
+
const cookieGet = (0, import_command.declareCommand)({
|
|
419
|
+
name: "cookie-get",
|
|
420
|
+
description: "Get a specific cookie by name",
|
|
421
|
+
category: "storage",
|
|
422
|
+
args: import_mcpBundle.z.object({
|
|
423
|
+
name: import_mcpBundle.z.string().describe("Cookie name")
|
|
424
|
+
}),
|
|
425
|
+
toolName: "browser_cookie_get",
|
|
426
|
+
toolParams: ({ name }) => ({ name })
|
|
427
|
+
});
|
|
428
|
+
const cookieSet = (0, import_command.declareCommand)({
|
|
429
|
+
name: "cookie-set",
|
|
430
|
+
description: "Set a cookie with optional flags",
|
|
431
|
+
category: "storage",
|
|
432
|
+
args: import_mcpBundle.z.object({
|
|
433
|
+
name: import_mcpBundle.z.string().describe("Cookie name"),
|
|
434
|
+
value: import_mcpBundle.z.string().describe("Cookie value")
|
|
435
|
+
}),
|
|
436
|
+
options: import_mcpBundle.z.object({
|
|
437
|
+
domain: import_mcpBundle.z.string().optional().describe("Cookie domain"),
|
|
438
|
+
path: import_mcpBundle.z.string().optional().describe("Cookie path"),
|
|
439
|
+
expires: numberArg.optional().describe("Cookie expiration as Unix timestamp"),
|
|
440
|
+
httpOnly: import_mcpBundle.z.boolean().optional().describe("Whether the cookie is HTTP only"),
|
|
441
|
+
secure: import_mcpBundle.z.boolean().optional().describe("Whether the cookie is secure"),
|
|
442
|
+
sameSite: import_mcpBundle.z.enum(["Strict", "Lax", "None"]).optional().describe("Cookie SameSite attribute")
|
|
443
|
+
}),
|
|
444
|
+
toolName: "browser_cookie_set",
|
|
445
|
+
toolParams: ({ name, value, domain, path, expires, httpOnly, secure, sameSite }) => ({ name, value, domain, path, expires, httpOnly, secure, sameSite })
|
|
446
|
+
});
|
|
447
|
+
const cookieDelete = (0, import_command.declareCommand)({
|
|
448
|
+
name: "cookie-delete",
|
|
449
|
+
description: "Delete a specific cookie",
|
|
450
|
+
category: "storage",
|
|
451
|
+
args: import_mcpBundle.z.object({
|
|
452
|
+
name: import_mcpBundle.z.string().describe("Cookie name")
|
|
453
|
+
}),
|
|
454
|
+
toolName: "browser_cookie_delete",
|
|
455
|
+
toolParams: ({ name }) => ({ name })
|
|
456
|
+
});
|
|
457
|
+
const cookieClear = (0, import_command.declareCommand)({
|
|
458
|
+
name: "cookie-clear",
|
|
459
|
+
description: "Clear all cookies",
|
|
460
|
+
category: "storage",
|
|
461
|
+
args: import_mcpBundle.z.object({}),
|
|
462
|
+
toolName: "browser_cookie_clear",
|
|
463
|
+
toolParams: () => ({})
|
|
464
|
+
});
|
|
465
|
+
const localStorageList = (0, import_command.declareCommand)({
|
|
466
|
+
name: "localstorage-list",
|
|
467
|
+
description: "List all localStorage key-value pairs",
|
|
468
|
+
category: "storage",
|
|
469
|
+
args: import_mcpBundle.z.object({}),
|
|
470
|
+
toolName: "browser_localstorage_list",
|
|
471
|
+
toolParams: () => ({})
|
|
472
|
+
});
|
|
473
|
+
const localStorageGet = (0, import_command.declareCommand)({
|
|
474
|
+
name: "localstorage-get",
|
|
475
|
+
description: "Get a localStorage item by key",
|
|
476
|
+
category: "storage",
|
|
477
|
+
args: import_mcpBundle.z.object({
|
|
478
|
+
key: import_mcpBundle.z.string().describe("Key to get")
|
|
479
|
+
}),
|
|
480
|
+
toolName: "browser_localstorage_get",
|
|
481
|
+
toolParams: ({ key }) => ({ key })
|
|
482
|
+
});
|
|
483
|
+
const localStorageSet = (0, import_command.declareCommand)({
|
|
484
|
+
name: "localstorage-set",
|
|
485
|
+
description: "Set a localStorage item",
|
|
486
|
+
category: "storage",
|
|
487
|
+
args: import_mcpBundle.z.object({
|
|
488
|
+
key: import_mcpBundle.z.string().describe("Key to set"),
|
|
489
|
+
value: import_mcpBundle.z.string().describe("Value to set")
|
|
490
|
+
}),
|
|
491
|
+
toolName: "browser_localstorage_set",
|
|
492
|
+
toolParams: ({ key, value }) => ({ key, value })
|
|
493
|
+
});
|
|
494
|
+
const localStorageDelete = (0, import_command.declareCommand)({
|
|
495
|
+
name: "localstorage-delete",
|
|
496
|
+
description: "Delete a localStorage item",
|
|
497
|
+
category: "storage",
|
|
498
|
+
args: import_mcpBundle.z.object({
|
|
499
|
+
key: import_mcpBundle.z.string().describe("Key to delete")
|
|
500
|
+
}),
|
|
501
|
+
toolName: "browser_localstorage_delete",
|
|
502
|
+
toolParams: ({ key }) => ({ key })
|
|
503
|
+
});
|
|
504
|
+
const localStorageClear = (0, import_command.declareCommand)({
|
|
505
|
+
name: "localstorage-clear",
|
|
506
|
+
description: "Clear all localStorage",
|
|
507
|
+
category: "storage",
|
|
508
|
+
args: import_mcpBundle.z.object({}),
|
|
509
|
+
toolName: "browser_localstorage_clear",
|
|
510
|
+
toolParams: () => ({})
|
|
511
|
+
});
|
|
512
|
+
const sessionStorageList = (0, import_command.declareCommand)({
|
|
513
|
+
name: "sessionstorage-list",
|
|
514
|
+
description: "List all sessionStorage key-value pairs",
|
|
515
|
+
category: "storage",
|
|
516
|
+
args: import_mcpBundle.z.object({}),
|
|
517
|
+
toolName: "browser_sessionstorage_list",
|
|
518
|
+
toolParams: () => ({})
|
|
519
|
+
});
|
|
520
|
+
const sessionStorageGet = (0, import_command.declareCommand)({
|
|
521
|
+
name: "sessionstorage-get",
|
|
522
|
+
description: "Get a sessionStorage item by key",
|
|
523
|
+
category: "storage",
|
|
524
|
+
args: import_mcpBundle.z.object({
|
|
525
|
+
key: import_mcpBundle.z.string().describe("Key to get")
|
|
526
|
+
}),
|
|
527
|
+
toolName: "browser_sessionstorage_get",
|
|
528
|
+
toolParams: ({ key }) => ({ key })
|
|
529
|
+
});
|
|
530
|
+
const sessionStorageSet = (0, import_command.declareCommand)({
|
|
531
|
+
name: "sessionstorage-set",
|
|
532
|
+
description: "Set a sessionStorage item",
|
|
533
|
+
category: "storage",
|
|
534
|
+
args: import_mcpBundle.z.object({
|
|
535
|
+
key: import_mcpBundle.z.string().describe("Key to set"),
|
|
536
|
+
value: import_mcpBundle.z.string().describe("Value to set")
|
|
537
|
+
}),
|
|
538
|
+
toolName: "browser_sessionstorage_set",
|
|
539
|
+
toolParams: ({ key, value }) => ({ key, value })
|
|
540
|
+
});
|
|
541
|
+
const sessionStorageDelete = (0, import_command.declareCommand)({
|
|
542
|
+
name: "sessionstorage-delete",
|
|
543
|
+
description: "Delete a sessionStorage item",
|
|
544
|
+
category: "storage",
|
|
545
|
+
args: import_mcpBundle.z.object({
|
|
546
|
+
key: import_mcpBundle.z.string().describe("Key to delete")
|
|
547
|
+
}),
|
|
548
|
+
toolName: "browser_sessionstorage_delete",
|
|
549
|
+
toolParams: ({ key }) => ({ key })
|
|
550
|
+
});
|
|
551
|
+
const sessionStorageClear = (0, import_command.declareCommand)({
|
|
552
|
+
name: "sessionstorage-clear",
|
|
553
|
+
description: "Clear all sessionStorage",
|
|
554
|
+
category: "storage",
|
|
555
|
+
args: import_mcpBundle.z.object({}),
|
|
556
|
+
toolName: "browser_sessionstorage_clear",
|
|
557
|
+
toolParams: () => ({})
|
|
558
|
+
});
|
|
559
|
+
const routeMock = (0, import_command.declareCommand)({
|
|
560
|
+
name: "route",
|
|
561
|
+
description: "Mock network requests matching a URL pattern",
|
|
562
|
+
category: "network",
|
|
563
|
+
args: import_mcpBundle.z.object({
|
|
564
|
+
pattern: import_mcpBundle.z.string().describe('URL pattern to match (e.g., "**/api/users")')
|
|
565
|
+
}),
|
|
566
|
+
options: import_mcpBundle.z.object({
|
|
567
|
+
status: numberArg.optional().describe("HTTP status code (default: 200)"),
|
|
568
|
+
body: import_mcpBundle.z.string().optional().describe("Response body (text or JSON string)"),
|
|
569
|
+
["content-type"]: import_mcpBundle.z.string().optional().describe("Content-Type header"),
|
|
570
|
+
header: import_mcpBundle.z.union([import_mcpBundle.z.string(), import_mcpBundle.z.array(import_mcpBundle.z.string())]).optional().transform((v) => v ? Array.isArray(v) ? v : [v] : void 0).describe('Header to add in "Name: Value" format (repeatable)'),
|
|
571
|
+
["remove-header"]: import_mcpBundle.z.string().optional().describe("Comma-separated header names to remove")
|
|
572
|
+
}),
|
|
573
|
+
toolName: "browser_route",
|
|
574
|
+
toolParams: ({ pattern, status, body, ["content-type"]: contentType, header: headers, ["remove-header"]: removeHeaders }) => ({
|
|
575
|
+
pattern,
|
|
576
|
+
status,
|
|
577
|
+
body,
|
|
578
|
+
contentType,
|
|
579
|
+
headers,
|
|
580
|
+
removeHeaders
|
|
581
|
+
})
|
|
582
|
+
});
|
|
583
|
+
const routeList = (0, import_command.declareCommand)({
|
|
584
|
+
name: "route-list",
|
|
585
|
+
description: "List all active network routes",
|
|
586
|
+
category: "network",
|
|
587
|
+
args: import_mcpBundle.z.object({}),
|
|
588
|
+
toolName: "browser_route_list",
|
|
589
|
+
toolParams: () => ({})
|
|
590
|
+
});
|
|
591
|
+
const unroute = (0, import_command.declareCommand)({
|
|
592
|
+
name: "unroute",
|
|
593
|
+
description: "Remove routes matching a pattern (or all routes)",
|
|
594
|
+
category: "network",
|
|
595
|
+
args: import_mcpBundle.z.object({
|
|
596
|
+
pattern: import_mcpBundle.z.string().optional().describe("URL pattern to unroute (omit to remove all)")
|
|
597
|
+
}),
|
|
598
|
+
toolName: "browser_unroute",
|
|
599
|
+
toolParams: ({ pattern }) => ({ pattern })
|
|
600
|
+
});
|
|
601
|
+
const networkStateSet = (0, import_command.declareCommand)({
|
|
602
|
+
name: "network-state-set",
|
|
603
|
+
description: "Set the browser network state to online or offline",
|
|
604
|
+
category: "network",
|
|
605
|
+
args: import_mcpBundle.z.object({
|
|
606
|
+
state: import_mcpBundle.z.enum(["online", "offline"]).describe('Set to "offline" to simulate offline mode, "online" to restore network connectivity')
|
|
607
|
+
}),
|
|
608
|
+
toolName: "browser_network_state_set",
|
|
609
|
+
toolParams: ({ state }) => ({ state })
|
|
610
|
+
});
|
|
611
|
+
const screenshot = (0, import_command.declareCommand)({
|
|
612
|
+
name: "screenshot",
|
|
613
|
+
description: "screenshot of the current page or element",
|
|
614
|
+
category: "export",
|
|
615
|
+
args: import_mcpBundle.z.object({
|
|
616
|
+
ref: import_mcpBundle.z.string().optional().describe("Exact target element reference from the page snapshot.")
|
|
617
|
+
}),
|
|
618
|
+
options: import_mcpBundle.z.object({
|
|
619
|
+
filename: import_mcpBundle.z.string().optional().describe("File name to save the screenshot to. Defaults to `page-{timestamp}.{png|jpeg}` if not specified."),
|
|
620
|
+
["full-page"]: import_mcpBundle.z.boolean().optional().describe("When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport.")
|
|
621
|
+
}),
|
|
622
|
+
toolName: "browser_take_screenshot",
|
|
623
|
+
toolParams: ({ ref, filename, ["full-page"]: fullPage }) => ({ filename, ref, fullPage })
|
|
624
|
+
});
|
|
625
|
+
const pdfSave = (0, import_command.declareCommand)({
|
|
626
|
+
name: "pdf",
|
|
627
|
+
description: "Save page as PDF",
|
|
628
|
+
category: "export",
|
|
629
|
+
args: import_mcpBundle.z.object({}),
|
|
630
|
+
options: import_mcpBundle.z.object({
|
|
631
|
+
filename: import_mcpBundle.z.string().optional().describe("File name to save the pdf to. Defaults to `page-{timestamp}.pdf` if not specified.")
|
|
632
|
+
}),
|
|
633
|
+
toolName: "browser_pdf_save",
|
|
634
|
+
toolParams: ({ filename }) => ({ filename })
|
|
635
|
+
});
|
|
636
|
+
const consoleList = (0, import_command.declareCommand)({
|
|
637
|
+
name: "console",
|
|
638
|
+
description: "List console messages",
|
|
639
|
+
category: "devtools",
|
|
640
|
+
args: import_mcpBundle.z.object({
|
|
641
|
+
["min-level"]: import_mcpBundle.z.string().optional().describe('Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to "info".')
|
|
642
|
+
}),
|
|
643
|
+
options: import_mcpBundle.z.object({
|
|
644
|
+
clear: import_mcpBundle.z.boolean().optional().describe("Whether to clear the console list")
|
|
645
|
+
}),
|
|
646
|
+
toolName: ({ clear }) => clear ? "browser_console_clear" : "browser_console_messages",
|
|
647
|
+
toolParams: ({ ["min-level"]: level, clear }) => clear ? {} : { level }
|
|
648
|
+
});
|
|
649
|
+
const networkRequests = (0, import_command.declareCommand)({
|
|
650
|
+
name: "network",
|
|
651
|
+
description: "List all network requests since loading the page",
|
|
652
|
+
category: "devtools",
|
|
653
|
+
args: import_mcpBundle.z.object({}),
|
|
654
|
+
options: import_mcpBundle.z.object({
|
|
655
|
+
static: import_mcpBundle.z.boolean().optional().describe("Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false."),
|
|
656
|
+
clear: import_mcpBundle.z.boolean().optional().describe("Whether to clear the network list")
|
|
657
|
+
}),
|
|
658
|
+
toolName: ({ clear }) => clear ? "browser_network_clear" : "browser_network_requests",
|
|
659
|
+
toolParams: ({ static: includeStatic, clear }) => clear ? {} : { includeStatic }
|
|
660
|
+
});
|
|
661
|
+
const tracingStart = (0, import_command.declareCommand)({
|
|
662
|
+
name: "tracing-start",
|
|
663
|
+
description: "Start trace recording",
|
|
664
|
+
category: "devtools",
|
|
665
|
+
args: import_mcpBundle.z.object({}),
|
|
666
|
+
toolName: "browser_start_tracing",
|
|
667
|
+
toolParams: () => ({})
|
|
668
|
+
});
|
|
669
|
+
const tracingStop = (0, import_command.declareCommand)({
|
|
670
|
+
name: "tracing-stop",
|
|
671
|
+
description: "Stop trace recording",
|
|
672
|
+
category: "devtools",
|
|
673
|
+
args: import_mcpBundle.z.object({}),
|
|
674
|
+
toolName: "browser_stop_tracing",
|
|
675
|
+
toolParams: () => ({})
|
|
676
|
+
});
|
|
677
|
+
const videoStart = (0, import_command.declareCommand)({
|
|
678
|
+
name: "video-start",
|
|
679
|
+
description: "Start video recording",
|
|
680
|
+
category: "devtools",
|
|
681
|
+
args: import_mcpBundle.z.object({}),
|
|
682
|
+
toolName: "browser_start_video",
|
|
683
|
+
toolParams: () => ({})
|
|
684
|
+
});
|
|
685
|
+
const videoStop = (0, import_command.declareCommand)({
|
|
686
|
+
name: "video-stop",
|
|
687
|
+
description: "Stop video recording",
|
|
688
|
+
category: "devtools",
|
|
689
|
+
options: import_mcpBundle.z.object({
|
|
690
|
+
filename: import_mcpBundle.z.string().optional().describe("Filename to save the video.")
|
|
691
|
+
}),
|
|
692
|
+
toolName: "browser_stop_video",
|
|
693
|
+
toolParams: ({ filename }) => ({ filename })
|
|
694
|
+
});
|
|
695
|
+
const devtoolsShow = (0, import_command.declareCommand)({
|
|
696
|
+
name: "show",
|
|
697
|
+
description: "Show browser DevTools",
|
|
698
|
+
category: "devtools",
|
|
699
|
+
args: import_mcpBundle.z.object({}),
|
|
700
|
+
toolName: "",
|
|
701
|
+
toolParams: () => ({})
|
|
702
|
+
});
|
|
703
|
+
const devtoolsStart = (0, import_command.declareCommand)({
|
|
704
|
+
name: "devtools-start",
|
|
705
|
+
description: "Show browser DevTools",
|
|
706
|
+
category: "devtools",
|
|
707
|
+
args: import_mcpBundle.z.object({}),
|
|
708
|
+
toolName: "browser_devtools_start",
|
|
709
|
+
toolParams: () => ({})
|
|
710
|
+
});
|
|
711
|
+
const sessionList = (0, import_command.declareCommand)({
|
|
712
|
+
name: "list",
|
|
713
|
+
description: "List browser sessions",
|
|
714
|
+
category: "browsers",
|
|
715
|
+
args: import_mcpBundle.z.object({}),
|
|
716
|
+
options: import_mcpBundle.z.object({
|
|
717
|
+
all: import_mcpBundle.z.boolean().optional().describe("List all browser sessions across all workspaces")
|
|
718
|
+
}),
|
|
719
|
+
toolName: "",
|
|
720
|
+
toolParams: () => ({})
|
|
721
|
+
});
|
|
722
|
+
const sessionCloseAll = (0, import_command.declareCommand)({
|
|
723
|
+
name: "close-all",
|
|
724
|
+
description: "Close all browser sessions",
|
|
725
|
+
category: "browsers",
|
|
726
|
+
toolName: "",
|
|
727
|
+
toolParams: () => ({})
|
|
728
|
+
});
|
|
729
|
+
const killAll = (0, import_command.declareCommand)({
|
|
730
|
+
name: "kill-all",
|
|
731
|
+
description: "Forcefully kill all browser sessions (for stale/zombie processes)",
|
|
732
|
+
category: "browsers",
|
|
733
|
+
toolName: "",
|
|
734
|
+
toolParams: () => ({})
|
|
735
|
+
});
|
|
736
|
+
const deleteData = (0, import_command.declareCommand)({
|
|
737
|
+
name: "delete-data",
|
|
738
|
+
description: "Delete session data",
|
|
739
|
+
category: "core",
|
|
740
|
+
toolName: "",
|
|
741
|
+
toolParams: () => ({})
|
|
742
|
+
});
|
|
743
|
+
const configPrint = (0, import_command.declareCommand)({
|
|
744
|
+
name: "config-print",
|
|
745
|
+
description: "Print the final resolved config after merging CLI options, environment variables and config file.",
|
|
746
|
+
category: "config",
|
|
747
|
+
hidden: true,
|
|
748
|
+
toolName: "browser_get_config",
|
|
749
|
+
toolParams: () => ({})
|
|
750
|
+
});
|
|
751
|
+
const install = (0, import_command.declareCommand)({
|
|
752
|
+
name: "install",
|
|
753
|
+
description: "Initialize workspace",
|
|
754
|
+
category: "install",
|
|
755
|
+
args: import_mcpBundle.z.object({}),
|
|
756
|
+
options: import_mcpBundle.z.object({
|
|
757
|
+
skills: import_mcpBundle.z.boolean().optional().describe("Install skills for Claude / GitHub Copilot")
|
|
758
|
+
}),
|
|
759
|
+
toolName: "",
|
|
760
|
+
toolParams: () => ({})
|
|
761
|
+
});
|
|
762
|
+
const installBrowser = (0, import_command.declareCommand)({
|
|
763
|
+
name: "install-browser",
|
|
764
|
+
description: "Install browser",
|
|
765
|
+
category: "install",
|
|
766
|
+
args: import_mcpBundle.z.object({
|
|
767
|
+
browser: import_mcpBundle.z.string().optional().describe("Browser to install")
|
|
768
|
+
}),
|
|
769
|
+
options: import_mcpBundle.z.object({
|
|
770
|
+
["with-deps"]: import_mcpBundle.z.boolean().optional().describe("Install system dependencies for browsers"),
|
|
771
|
+
["dry-run"]: import_mcpBundle.z.boolean().optional().describe("Do not execute installation, only print information"),
|
|
772
|
+
list: import_mcpBundle.z.boolean().optional().describe("Prints list of browsers from all Playwright installations"),
|
|
773
|
+
force: import_mcpBundle.z.boolean().optional().describe("Force reinstall of already installed browsers"),
|
|
774
|
+
["only-shell"]: import_mcpBundle.z.boolean().optional().describe("Only install headless shell when installing Chromium"),
|
|
775
|
+
["no-shell"]: import_mcpBundle.z.boolean().optional().describe("Do not install Chromium headless shell")
|
|
776
|
+
}),
|
|
777
|
+
toolName: "",
|
|
778
|
+
toolParams: () => ({})
|
|
779
|
+
});
|
|
780
|
+
const tray = (0, import_command.declareCommand)({
|
|
781
|
+
name: "tray",
|
|
782
|
+
description: "Run tray",
|
|
783
|
+
category: "config",
|
|
784
|
+
hidden: true,
|
|
785
|
+
toolName: "",
|
|
786
|
+
toolParams: () => ({})
|
|
787
|
+
});
|
|
788
|
+
const commandsArray = [
|
|
789
|
+
// core category
|
|
790
|
+
open,
|
|
791
|
+
close,
|
|
792
|
+
goto,
|
|
793
|
+
type,
|
|
794
|
+
click,
|
|
795
|
+
doubleClick,
|
|
796
|
+
fill,
|
|
797
|
+
drag,
|
|
798
|
+
hover,
|
|
799
|
+
select,
|
|
800
|
+
fileUpload,
|
|
801
|
+
check,
|
|
802
|
+
uncheck,
|
|
803
|
+
snapshot,
|
|
804
|
+
evaluate,
|
|
805
|
+
consoleList,
|
|
806
|
+
dialogAccept,
|
|
807
|
+
dialogDismiss,
|
|
808
|
+
resize,
|
|
809
|
+
runCode,
|
|
810
|
+
deleteData,
|
|
811
|
+
// navigation category
|
|
812
|
+
goBack,
|
|
813
|
+
goForward,
|
|
814
|
+
reload,
|
|
815
|
+
// keyboard category
|
|
816
|
+
pressKey,
|
|
817
|
+
keydown,
|
|
818
|
+
keyup,
|
|
819
|
+
// mouse category
|
|
820
|
+
mouseMove,
|
|
821
|
+
mouseDown,
|
|
822
|
+
mouseUp,
|
|
823
|
+
mouseWheel,
|
|
824
|
+
// export category
|
|
825
|
+
screenshot,
|
|
826
|
+
pdfSave,
|
|
827
|
+
// tabs category
|
|
828
|
+
tabList,
|
|
829
|
+
tabNew,
|
|
830
|
+
tabClose,
|
|
831
|
+
tabSelect,
|
|
832
|
+
// storage category
|
|
833
|
+
stateLoad,
|
|
834
|
+
stateSave,
|
|
835
|
+
cookieList,
|
|
836
|
+
cookieGet,
|
|
837
|
+
cookieSet,
|
|
838
|
+
cookieDelete,
|
|
839
|
+
cookieClear,
|
|
840
|
+
localStorageList,
|
|
841
|
+
localStorageGet,
|
|
842
|
+
localStorageSet,
|
|
843
|
+
localStorageDelete,
|
|
844
|
+
localStorageClear,
|
|
845
|
+
sessionStorageList,
|
|
846
|
+
sessionStorageGet,
|
|
847
|
+
sessionStorageSet,
|
|
848
|
+
sessionStorageDelete,
|
|
849
|
+
sessionStorageClear,
|
|
850
|
+
// network category
|
|
851
|
+
routeMock,
|
|
852
|
+
routeList,
|
|
853
|
+
unroute,
|
|
854
|
+
networkStateSet,
|
|
855
|
+
// config category
|
|
856
|
+
configPrint,
|
|
857
|
+
// install category
|
|
858
|
+
install,
|
|
859
|
+
installBrowser,
|
|
860
|
+
// devtools category
|
|
861
|
+
networkRequests,
|
|
862
|
+
tracingStart,
|
|
863
|
+
tracingStop,
|
|
864
|
+
videoStart,
|
|
865
|
+
videoStop,
|
|
866
|
+
devtoolsShow,
|
|
867
|
+
devtoolsStart,
|
|
868
|
+
// session category
|
|
869
|
+
sessionList,
|
|
870
|
+
sessionCloseAll,
|
|
871
|
+
killAll,
|
|
872
|
+
// Hidden commands
|
|
873
|
+
tray
|
|
874
|
+
];
|
|
875
|
+
const commands = Object.fromEntries(commandsArray.map((cmd) => [cmd.name, cmd]));
|
|
876
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
877
|
+
0 && (module.exports = {
|
|
878
|
+
commands
|
|
879
|
+
});
|