@withbuddi/buddi 0.1.0-pre.50 → 0.1.0-pre.52
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/extension/background.js +1604 -847
- package/extension/manifest.json +3 -3
- package/extension/popup.css +91 -3
- package/extension/popup.html +49 -32
- package/extension/popup.js +215 -123
- package/node_modules/@buddi/cli/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/cli/dist/commands.d.ts.map +1 -1
- package/node_modules/@buddi/cli/dist/commands.js +11 -1
- package/node_modules/@buddi/cli/dist/commands.js.map +1 -1
- package/node_modules/@buddi/core/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/core/dist/plugin/index.d.ts +1 -1
- package/node_modules/@buddi/core/dist/plugin/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/plugin/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/questions/store.d.ts +3 -1
- package/node_modules/@buddi/core/dist/questions/store.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/questions/store.js +3 -3
- package/node_modules/@buddi/core/dist/questions/store.js.map +1 -1
- package/node_modules/@buddi/core/dist/questions/types.d.ts +46 -1
- package/node_modules/@buddi/core/dist/questions/types.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/questions/types.js +2 -1
- package/node_modules/@buddi/core/dist/questions/types.js.map +1 -1
- package/node_modules/@buddi/core/dist/registry.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/registry.js +11 -2
- package/node_modules/@buddi/core/dist/registry.js.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/index.d.ts +1 -0
- package/node_modules/@buddi/core/dist/scheduler/index.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/index.js +1 -0
- package/node_modules/@buddi/core/dist/scheduler/index.js.map +1 -1
- package/node_modules/@buddi/core/dist/scheduler/manual.d.ts +50 -0
- package/node_modules/@buddi/core/dist/scheduler/manual.d.ts.map +1 -0
- package/node_modules/@buddi/core/dist/scheduler/manual.js +73 -0
- package/node_modules/@buddi/core/dist/scheduler/manual.js.map +1 -0
- package/node_modules/@buddi/core/dist/secrets/approval.d.ts +54 -0
- package/node_modules/@buddi/core/dist/secrets/approval.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/approval.js +58 -1
- package/node_modules/@buddi/core/dist/secrets/approval.js.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/settings.d.ts +178 -0
- package/node_modules/@buddi/core/dist/secrets/settings.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/settings.js +63 -6
- package/node_modules/@buddi/core/dist/secrets/settings.js.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/store.d.ts +31 -0
- package/node_modules/@buddi/core/dist/secrets/store.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/store.js +75 -0
- package/node_modules/@buddi/core/dist/secrets/store.js.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/use.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/secrets/use.js +68 -3
- package/node_modules/@buddi/core/dist/secrets/use.js.map +1 -1
- package/node_modules/@buddi/core/dist/tools.d.ts +22 -0
- package/node_modules/@buddi/core/dist/tools.d.ts.map +1 -1
- package/node_modules/@buddi/core/dist/tools.js.map +1 -1
- package/node_modules/@buddi/core/migrations/080_secret_requests.sql +14 -0
- package/node_modules/@buddi/gateway/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/gateway/dist/chat/session.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/chat/session.js +2 -1
- package/node_modules/@buddi/gateway/dist/chat/session.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.js +9 -1
- package/node_modules/@buddi/gateway/dist/mcp/requests.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/execute.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/execute.js +3 -1
- package/node_modules/@buddi/gateway/dist/missions/execute.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/reminders.d.ts +7 -2
- package/node_modules/@buddi/gateway/dist/missions/reminders.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/reminders.js +27 -9
- package/node_modules/@buddi/gateway/dist/missions/reminders.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions/run-now.d.ts +38 -0
- package/node_modules/@buddi/gateway/dist/missions/run-now.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/missions/run-now.js +62 -0
- package/node_modules/@buddi/gateway/dist/missions/run-now.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/missions-cli.d.ts +1 -1
- package/node_modules/@buddi/gateway/dist/missions-cli.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/missions-cli.js +21 -10
- package/node_modules/@buddi/gateway/dist/missions-cli.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/serve.d.ts +3 -12
- package/node_modules/@buddi/gateway/dist/serve.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/serve.js +2 -21
- package/node_modules/@buddi/gateway/dist/serve.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/browser-cards.d.ts +15 -3
- package/node_modules/@buddi/gateway/dist/surfaces/browser-cards.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/browser-cards.js +34 -7
- package/node_modules/@buddi/gateway/dist/surfaces/browser-cards.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/offered-actions.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/offered-actions.js +8 -2
- package/node_modules/@buddi/gateway/dist/surfaces/offered-actions.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/pending-question.d.ts +3 -1
- package/node_modules/@buddi/gateway/dist/surfaces/pending-question.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/pending-question.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/surfaces/secret-request.d.ts +173 -0
- package/node_modules/@buddi/gateway/dist/surfaces/secret-request.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/surfaces/secret-request.js +332 -0
- package/node_modules/@buddi/gateway/dist/surfaces/secret-request.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/system-context.js +1 -1
- package/node_modules/@buddi/gateway/dist/system-context.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/main.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/main.js +14 -3
- package/node_modules/@buddi/gateway/dist/telegram/main.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/surface.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/telegram/surface.js +4 -1
- package/node_modules/@buddi/gateway/dist/telegram/surface.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-routes.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/api-routes.js +16 -1
- package/node_modules/@buddi/gateway/dist/web/api-routes.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/approval-ask.js +2 -2
- package/node_modules/@buddi/gateway/dist/web/approval-ask.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/browser-capture.d.ts +13 -0
- package/node_modules/@buddi/gateway/dist/web/browser-capture.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/browser-capture.js +24 -0
- package/node_modules/@buddi/gateway/dist/web/browser-capture.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/chat.d.ts +26 -0
- package/node_modules/@buddi/gateway/dist/web/chat.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/chat.js +87 -2
- package/node_modules/@buddi/gateway/dist/web/chat.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/extension.d.ts +30 -0
- package/node_modules/@buddi/gateway/dist/web/extension.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/extension.js +86 -6
- package/node_modules/@buddi/gateway/dist/web/extension.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/onboarding.js +1 -1
- package/node_modules/@buddi/gateway/dist/web/onboarding.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/read.d.ts +2 -0
- package/node_modules/@buddi/gateway/dist/web/read.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/read.js +2 -1
- package/node_modules/@buddi/gateway/dist/web/read.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/remote-hand.d.ts +26 -2
- package/node_modules/@buddi/gateway/dist/web/remote-hand.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/remote-hand.js +89 -28
- package/node_modules/@buddi/gateway/dist/web/remote-hand.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/secret-request.d.ts +54 -0
- package/node_modules/@buddi/gateway/dist/web/secret-request.d.ts.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/secret-request.js +264 -0
- package/node_modules/@buddi/gateway/dist/web/secret-request.js.map +1 -0
- package/node_modules/@buddi/gateway/dist/web/secrets.d.ts +1 -0
- package/node_modules/@buddi/gateway/dist/web/secrets.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/secrets.js +1 -1
- package/node_modules/@buddi/gateway/dist/web/secrets.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/server.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/server.js +76 -4
- package/node_modules/@buddi/gateway/dist/web/server.js.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/write.d.ts +14 -0
- package/node_modules/@buddi/gateway/dist/web/write.d.ts.map +1 -1
- package/node_modules/@buddi/gateway/dist/web/write.js +21 -0
- package/node_modules/@buddi/gateway/dist/web/write.js.map +1 -1
- package/node_modules/@buddi/install/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/runtime/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/runtime/dist/anthropic.d.ts +7 -0
- package/node_modules/@buddi/runtime/dist/anthropic.d.ts.map +1 -1
- package/node_modules/@buddi/runtime/dist/anthropic.js +19 -1
- package/node_modules/@buddi/runtime/dist/anthropic.js.map +1 -1
- package/node_modules/@buddi/runtime/dist/codex-direct.d.ts +1 -1
- package/node_modules/@buddi/runtime/dist/codex-direct.js +1 -1
- package/node_modules/@buddi/tool-artifacts/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-browser/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-browser/dist/controller.d.ts +16 -1
- package/node_modules/@buddi/tool-browser/dist/controller.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/controller.js +59 -5
- package/node_modules/@buddi/tool-browser/dist/controller.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/driver.d.ts +12 -0
- package/node_modules/@buddi/tool-browser/dist/driver.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/driver.js +41 -2
- package/node_modules/@buddi/tool-browser/dist/driver.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/extension.d.ts +49 -9
- package/node_modules/@buddi/tool-browser/dist/extension.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/extension.js +145 -21
- package/node_modules/@buddi/tool-browser/dist/extension.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.d.ts +10 -6
- package/node_modules/@buddi/tool-browser/dist/index.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/index.js +22 -8
- package/node_modules/@buddi/tool-browser/dist/index.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/routes.d.ts +10 -1
- package/node_modules/@buddi/tool-browser/dist/routes.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/routes.js +24 -0
- package/node_modules/@buddi/tool-browser/dist/routes.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/service.d.ts +48 -1
- package/node_modules/@buddi/tool-browser/dist/service.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/service.js +114 -11
- package/node_modules/@buddi/tool-browser/dist/service.js.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/types.d.ts +54 -3
- package/node_modules/@buddi/tool-browser/dist/types.d.ts.map +1 -1
- package/node_modules/@buddi/tool-browser/dist/types.js +17 -1
- package/node_modules/@buddi/tool-browser/dist/types.js.map +1 -1
- package/node_modules/@buddi/tool-email/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-host/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-mcp/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-memory/dist/.tsbuildinfo +1 -1
- package/node_modules/@buddi/tool-web/dist/.tsbuildinfo +1 -1
- package/node_modules/imapflow/CHANGELOG.md +30 -0
- package/node_modules/imapflow/dist/cjs/commands/authenticate.js +15 -4
- package/node_modules/imapflow/dist/cjs/commands/enable.js +6 -0
- package/node_modules/imapflow/dist/cjs/commands/fetch.js +22 -5
- package/node_modules/imapflow/dist/cjs/commands/select.d.ts +3 -14
- package/node_modules/imapflow/dist/cjs/commands/select.js +1 -4
- package/node_modules/imapflow/dist/cjs/commands/store.js +7 -6
- package/node_modules/imapflow/dist/cjs/download.js +139 -5
- package/node_modules/imapflow/dist/cjs/imap-flow.d.ts +2 -2
- package/node_modules/imapflow/dist/cjs/imap-flow.js +51 -12
- package/node_modules/imapflow/dist/cjs/package-info.d.ts +1 -1
- package/node_modules/imapflow/dist/cjs/package-info.js +1 -1
- package/node_modules/imapflow/dist/cjs/search-compiler.js +6 -3
- package/node_modules/imapflow/dist/cjs/tools.d.ts +14 -3
- package/node_modules/imapflow/dist/cjs/tools.js +68 -6
- package/node_modules/imapflow/dist/cjs/types.d.ts +9 -1
- package/node_modules/imapflow/dist/esm/commands/authenticate.js +15 -4
- package/node_modules/imapflow/dist/esm/commands/enable.js +6 -0
- package/node_modules/imapflow/dist/esm/commands/fetch.js +22 -5
- package/node_modules/imapflow/dist/esm/commands/select.d.ts +3 -14
- package/node_modules/imapflow/dist/esm/commands/select.js +1 -4
- package/node_modules/imapflow/dist/esm/commands/store.js +8 -7
- package/node_modules/imapflow/dist/esm/download.js +139 -5
- package/node_modules/imapflow/dist/esm/imap-flow.d.ts +2 -2
- package/node_modules/imapflow/dist/esm/imap-flow.js +52 -13
- package/node_modules/imapflow/dist/esm/package-info.d.ts +1 -1
- package/node_modules/imapflow/dist/esm/package-info.js +1 -1
- package/node_modules/imapflow/dist/esm/search-compiler.js +6 -3
- package/node_modules/imapflow/dist/esm/tools.d.ts +14 -3
- package/node_modules/imapflow/dist/esm/tools.js +67 -6
- package/node_modules/imapflow/dist/esm/types.d.ts +9 -1
- package/node_modules/imapflow/package.json +5 -3
- package/node_modules/playwright/README.md +4 -4
- package/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +1 -1
- package/node_modules/playwright/lib/cli/testActions.js +8 -5
- package/node_modules/playwright/lib/common/index.js +37 -23
- package/node_modules/playwright/lib/common/index.js.txt +8 -9
- package/node_modules/playwright/lib/index.js +16 -4
- package/node_modules/playwright/lib/matchers/expect.js +13 -7
- package/node_modules/playwright/lib/matchers/expect.js.txt +4 -4
- package/node_modules/playwright/lib/program.js +2 -1
- package/node_modules/playwright/lib/runner/index.js +438 -244
- package/node_modules/playwright/lib/runner/index.js.txt +12 -11
- package/node_modules/playwright/lib/transform/babelBundle.js +2612 -2396
- package/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +15 -15
- package/node_modules/playwright/lib/transform/babelBundle.js.txt +14 -11
- package/node_modules/playwright/lib/transform/esmLoader.js +17 -5
- package/node_modules/playwright/lib/transform/esmLoader.js.txt +3 -3
- package/node_modules/playwright/lib/worker/workerProcessEntry.js +17 -18
- package/node_modules/playwright/package.json +2 -7
- package/node_modules/playwright/types/test.d.ts +156 -39
- package/node_modules/playwright-core/browsers.json +9 -9
- package/node_modules/playwright-core/cli.js +1 -0
- package/node_modules/playwright-core/lib/bootstrap.js +61 -0
- package/node_modules/playwright-core/lib/coreBundle.js +6393 -4170
- package/node_modules/playwright-core/lib/server/electron/loader.js +4 -0
- package/node_modules/playwright-core/lib/tools/cli-client/cli.js +2 -1
- package/node_modules/playwright-core/lib/tools/cli-client/help.json +99 -12
- package/node_modules/playwright-core/lib/tools/cli-client/output.js +17 -16
- package/node_modules/playwright-core/lib/tools/cli-client/program.js +8 -4
- package/node_modules/playwright-core/lib/tools/cli-client/session.js +2 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/SKILL.md +71 -3
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/pr-attachments.md +60 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/running-code.md +4 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/session-management.md +2 -0
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/test-generation.md +1 -1
- package/node_modules/playwright-core/lib/tools/skills/playwright-cli/references/video-recording.md +76 -3
- package/node_modules/playwright-core/lib/tools/skills/playwright-trace/SKILL.md +1 -1
- package/node_modules/playwright-core/lib/utilsBundle.js +948 -227
- package/node_modules/playwright-core/lib/utilsBundle.js.LICENSE +6 -6
- package/node_modules/playwright-core/lib/vite/htmlReport/report.js +1 -1
- package/node_modules/playwright-core/lib/vite/recorder/assets/{codeMirrorModule-CVQWJZAA.js → codeMirrorModule-DK72OMRi.js} +1 -1
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-Cn0mmDuv.js +129 -0
- package/node_modules/playwright-core/lib/vite/recorder/index.html +1 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/{codeMirrorModule-BbkfBe3n.js → codeMirrorModule-BEB2e8M3.js} +1 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-D-g2vrvf.js +184 -0
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/{xtermModule-DywYcAf8.js → xtermModule-B794rD2Z.js} +1 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/{defaultSettingsView.Bqk9acqE.css → defaultSettingsView.C8BeHuxd.css} +1 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/{index.B4cLoZK3.js → index.7-c5LSTW.js} +1 -1
- package/node_modules/playwright-core/lib/vite/traceViewer/index.html +3 -3
- package/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +3 -3
- package/node_modules/playwright-core/lib/vite/traceViewer/{uiMode.CU5KtEkS.js → uiMode.CYwC_gH1.js} +4 -4
- package/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +3 -3
- package/node_modules/playwright-core/package.json +1 -1
- package/node_modules/playwright-core/types/protocol.d.ts +468 -337
- package/node_modules/playwright-core/types/types.d.ts +572 -37
- package/package.json +2 -2
- package/packages/cli/dist/.tsbuildinfo +1 -1
- package/packages/cli/dist/commands.d.ts.map +1 -1
- package/packages/cli/dist/commands.js +11 -1
- package/packages/cli/dist/commands.js.map +1 -1
- package/packages/core/dist/.tsbuildinfo +1 -1
- package/packages/core/dist/plugin/index.d.ts +1 -1
- package/packages/core/dist/plugin/index.d.ts.map +1 -1
- package/packages/core/dist/plugin/index.js.map +1 -1
- package/packages/core/dist/questions/store.d.ts +3 -1
- package/packages/core/dist/questions/store.d.ts.map +1 -1
- package/packages/core/dist/questions/store.js +3 -3
- package/packages/core/dist/questions/store.js.map +1 -1
- package/packages/core/dist/questions/types.d.ts +46 -1
- package/packages/core/dist/questions/types.d.ts.map +1 -1
- package/packages/core/dist/questions/types.js +2 -1
- package/packages/core/dist/questions/types.js.map +1 -1
- package/packages/core/dist/registry.d.ts.map +1 -1
- package/packages/core/dist/registry.js +11 -2
- package/packages/core/dist/registry.js.map +1 -1
- package/packages/core/dist/scheduler/index.d.ts +1 -0
- package/packages/core/dist/scheduler/index.d.ts.map +1 -1
- package/packages/core/dist/scheduler/index.js +1 -0
- package/packages/core/dist/scheduler/index.js.map +1 -1
- package/packages/core/dist/scheduler/manual.d.ts +50 -0
- package/packages/core/dist/scheduler/manual.d.ts.map +1 -0
- package/packages/core/dist/scheduler/manual.js +73 -0
- package/packages/core/dist/scheduler/manual.js.map +1 -0
- package/packages/core/dist/secrets/approval.d.ts +54 -0
- package/packages/core/dist/secrets/approval.d.ts.map +1 -1
- package/packages/core/dist/secrets/approval.js +58 -1
- package/packages/core/dist/secrets/approval.js.map +1 -1
- package/packages/core/dist/secrets/settings.d.ts +178 -0
- package/packages/core/dist/secrets/settings.d.ts.map +1 -1
- package/packages/core/dist/secrets/settings.js +63 -6
- package/packages/core/dist/secrets/settings.js.map +1 -1
- package/packages/core/dist/secrets/store.d.ts +31 -0
- package/packages/core/dist/secrets/store.d.ts.map +1 -1
- package/packages/core/dist/secrets/store.js +75 -0
- package/packages/core/dist/secrets/store.js.map +1 -1
- package/packages/core/dist/secrets/use.d.ts.map +1 -1
- package/packages/core/dist/secrets/use.js +68 -3
- package/packages/core/dist/secrets/use.js.map +1 -1
- package/packages/core/dist/tools.d.ts +22 -0
- package/packages/core/dist/tools.d.ts.map +1 -1
- package/packages/core/dist/tools.js.map +1 -1
- package/packages/core/migrations/080_secret_requests.sql +14 -0
- package/packages/gateway/dist/.tsbuildinfo +1 -1
- package/packages/gateway/dist/chat/session.d.ts.map +1 -1
- package/packages/gateway/dist/chat/session.js +2 -1
- package/packages/gateway/dist/chat/session.js.map +1 -1
- package/packages/gateway/dist/mcp/requests.d.ts.map +1 -1
- package/packages/gateway/dist/mcp/requests.js +9 -1
- package/packages/gateway/dist/mcp/requests.js.map +1 -1
- package/packages/gateway/dist/missions/execute.d.ts.map +1 -1
- package/packages/gateway/dist/missions/execute.js +3 -1
- package/packages/gateway/dist/missions/execute.js.map +1 -1
- package/packages/gateway/dist/missions/reminders.d.ts +7 -2
- package/packages/gateway/dist/missions/reminders.d.ts.map +1 -1
- package/packages/gateway/dist/missions/reminders.js +27 -9
- package/packages/gateway/dist/missions/reminders.js.map +1 -1
- package/packages/gateway/dist/missions/run-now.d.ts +38 -0
- package/packages/gateway/dist/missions/run-now.d.ts.map +1 -0
- package/packages/gateway/dist/missions/run-now.js +62 -0
- package/packages/gateway/dist/missions/run-now.js.map +1 -0
- package/packages/gateway/dist/missions-cli.d.ts +1 -1
- package/packages/gateway/dist/missions-cli.d.ts.map +1 -1
- package/packages/gateway/dist/missions-cli.js +21 -10
- package/packages/gateway/dist/missions-cli.js.map +1 -1
- package/packages/gateway/dist/serve.d.ts +3 -12
- package/packages/gateway/dist/serve.d.ts.map +1 -1
- package/packages/gateway/dist/serve.js +2 -21
- package/packages/gateway/dist/serve.js.map +1 -1
- package/packages/gateway/dist/surfaces/browser-cards.d.ts +15 -3
- package/packages/gateway/dist/surfaces/browser-cards.d.ts.map +1 -1
- package/packages/gateway/dist/surfaces/browser-cards.js +34 -7
- package/packages/gateway/dist/surfaces/browser-cards.js.map +1 -1
- package/packages/gateway/dist/surfaces/offered-actions.d.ts.map +1 -1
- package/packages/gateway/dist/surfaces/offered-actions.js +8 -2
- package/packages/gateway/dist/surfaces/offered-actions.js.map +1 -1
- package/packages/gateway/dist/surfaces/pending-question.d.ts +3 -1
- package/packages/gateway/dist/surfaces/pending-question.d.ts.map +1 -1
- package/packages/gateway/dist/surfaces/pending-question.js.map +1 -1
- package/packages/gateway/dist/surfaces/secret-request.d.ts +173 -0
- package/packages/gateway/dist/surfaces/secret-request.d.ts.map +1 -0
- package/packages/gateway/dist/surfaces/secret-request.js +332 -0
- package/packages/gateway/dist/surfaces/secret-request.js.map +1 -0
- package/packages/gateway/dist/system-context.js +1 -1
- package/packages/gateway/dist/system-context.js.map +1 -1
- package/packages/gateway/dist/telegram/main.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/main.js +14 -3
- package/packages/gateway/dist/telegram/main.js.map +1 -1
- package/packages/gateway/dist/telegram/surface.d.ts.map +1 -1
- package/packages/gateway/dist/telegram/surface.js +4 -1
- package/packages/gateway/dist/telegram/surface.js.map +1 -1
- package/packages/gateway/dist/web/api-routes.d.ts.map +1 -1
- package/packages/gateway/dist/web/api-routes.js +16 -1
- package/packages/gateway/dist/web/api-routes.js.map +1 -1
- package/packages/gateway/dist/web/approval-ask.js +2 -2
- package/packages/gateway/dist/web/approval-ask.js.map +1 -1
- package/packages/gateway/dist/web/browser-capture.d.ts +13 -0
- package/packages/gateway/dist/web/browser-capture.d.ts.map +1 -0
- package/packages/gateway/dist/web/browser-capture.js +24 -0
- package/packages/gateway/dist/web/browser-capture.js.map +1 -0
- package/packages/gateway/dist/web/chat.d.ts +26 -0
- package/packages/gateway/dist/web/chat.d.ts.map +1 -1
- package/packages/gateway/dist/web/chat.js +87 -2
- package/packages/gateway/dist/web/chat.js.map +1 -1
- package/packages/gateway/dist/web/extension.d.ts +30 -0
- package/packages/gateway/dist/web/extension.d.ts.map +1 -1
- package/packages/gateway/dist/web/extension.js +86 -6
- package/packages/gateway/dist/web/extension.js.map +1 -1
- package/packages/gateway/dist/web/onboarding.js +1 -1
- package/packages/gateway/dist/web/onboarding.js.map +1 -1
- package/packages/gateway/dist/web/read.d.ts +2 -0
- package/packages/gateway/dist/web/read.d.ts.map +1 -1
- package/packages/gateway/dist/web/read.js +2 -1
- package/packages/gateway/dist/web/read.js.map +1 -1
- package/packages/gateway/dist/web/remote-hand.d.ts +26 -2
- package/packages/gateway/dist/web/remote-hand.d.ts.map +1 -1
- package/packages/gateway/dist/web/remote-hand.js +89 -28
- package/packages/gateway/dist/web/remote-hand.js.map +1 -1
- package/packages/gateway/dist/web/secret-request.d.ts +54 -0
- package/packages/gateway/dist/web/secret-request.d.ts.map +1 -0
- package/packages/gateway/dist/web/secret-request.js +264 -0
- package/packages/gateway/dist/web/secret-request.js.map +1 -0
- package/packages/gateway/dist/web/secrets.d.ts +1 -0
- package/packages/gateway/dist/web/secrets.d.ts.map +1 -1
- package/packages/gateway/dist/web/secrets.js +1 -1
- package/packages/gateway/dist/web/secrets.js.map +1 -1
- package/packages/gateway/dist/web/server.d.ts.map +1 -1
- package/packages/gateway/dist/web/server.js +76 -4
- package/packages/gateway/dist/web/server.js.map +1 -1
- package/packages/gateway/dist/web/write.d.ts +14 -0
- package/packages/gateway/dist/web/write.d.ts.map +1 -1
- package/packages/gateway/dist/web/write.js +21 -0
- package/packages/gateway/dist/web/write.js.map +1 -1
- package/packages/install/dist/.tsbuildinfo +1 -1
- package/packages/runtime/dist/.tsbuildinfo +1 -1
- package/packages/runtime/dist/anthropic.d.ts +7 -0
- package/packages/runtime/dist/anthropic.d.ts.map +1 -1
- package/packages/runtime/dist/anthropic.js +19 -1
- package/packages/runtime/dist/anthropic.js.map +1 -1
- package/packages/runtime/dist/codex-direct.d.ts +1 -1
- package/packages/runtime/dist/codex-direct.js +1 -1
- package/packages/tools/artifacts/dist/.tsbuildinfo +1 -1
- package/packages/tools/browser/dist/.tsbuildinfo +1 -1
- package/packages/tools/browser/dist/controller.d.ts +16 -1
- package/packages/tools/browser/dist/controller.d.ts.map +1 -1
- package/packages/tools/browser/dist/controller.js +59 -5
- package/packages/tools/browser/dist/controller.js.map +1 -1
- package/packages/tools/browser/dist/driver.d.ts +12 -0
- package/packages/tools/browser/dist/driver.d.ts.map +1 -1
- package/packages/tools/browser/dist/driver.js +41 -2
- package/packages/tools/browser/dist/driver.js.map +1 -1
- package/packages/tools/browser/dist/extension.d.ts +49 -9
- package/packages/tools/browser/dist/extension.d.ts.map +1 -1
- package/packages/tools/browser/dist/extension.js +145 -21
- package/packages/tools/browser/dist/extension.js.map +1 -1
- package/packages/tools/browser/dist/index.d.ts +10 -6
- package/packages/tools/browser/dist/index.d.ts.map +1 -1
- package/packages/tools/browser/dist/index.js +22 -8
- package/packages/tools/browser/dist/index.js.map +1 -1
- package/packages/tools/browser/dist/routes.d.ts +10 -1
- package/packages/tools/browser/dist/routes.d.ts.map +1 -1
- package/packages/tools/browser/dist/routes.js +24 -0
- package/packages/tools/browser/dist/routes.js.map +1 -1
- package/packages/tools/browser/dist/service.d.ts +48 -1
- package/packages/tools/browser/dist/service.d.ts.map +1 -1
- package/packages/tools/browser/dist/service.js +114 -11
- package/packages/tools/browser/dist/service.js.map +1 -1
- package/packages/tools/browser/dist/types.d.ts +54 -3
- package/packages/tools/browser/dist/types.d.ts.map +1 -1
- package/packages/tools/browser/dist/types.js +17 -1
- package/packages/tools/browser/dist/types.js.map +1 -1
- package/packages/tools/email/dist/.tsbuildinfo +1 -1
- package/packages/tools/host/dist/.tsbuildinfo +1 -1
- package/packages/tools/mcp/dist/.tsbuildinfo +1 -1
- package/packages/tools/memory/dist/.tsbuildinfo +1 -1
- package/packages/tools/web/dist/.tsbuildinfo +1 -1
- package/packages/web/dist/assets/index-oxmxR39o.js +155 -0
- package/packages/web/dist/assets/index-rMRjibNI.css +1 -0
- package/packages/web/dist/assets/{lottie_light-BJaxbmZQ.js → lottie_light-DROBTM6Y.js} +1 -1
- package/packages/web/dist/build.json +1 -1
- package/packages/web/dist/index.html +2 -2
- package/packages/web/dist/precache.json +4 -4
- package/node_modules/playwright/jsx-runtime.js +0 -42
- package/node_modules/playwright/jsx-runtime.mjs +0 -21
- package/node_modules/playwright-core/lib/vite/recorder/assets/index-hrlLqLtq.js +0 -129
- package/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Ds6CBOo0.js +0 -182
- package/packages/web/dist/assets/index-DBVZzTau.css +0 -1
- package/packages/web/dist/assets/index-DqoP9iYJ.js +0 -155
|
@@ -2454,8 +2454,17 @@ export interface Page {
|
|
|
2454
2454
|
|
|
2455
2455
|
/**
|
|
2456
2456
|
* Gets the full HTML contents of the page, including the doctype.
|
|
2457
|
+
* @param options
|
|
2457
2458
|
*/
|
|
2458
|
-
content(
|
|
2459
|
+
content(options?: {
|
|
2460
|
+
/**
|
|
2461
|
+
* When true, contents of open shadow roots are included as
|
|
2462
|
+
* [declarative shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM#declaratively_with_html),
|
|
2463
|
+
* i.e. `<template shadowrootmode="open">` elements nested inside their host elements. Closed shadow roots are never
|
|
2464
|
+
* included. Defaults to `false`.
|
|
2465
|
+
*/
|
|
2466
|
+
includeShadow?: boolean;
|
|
2467
|
+
}): Promise<string>;
|
|
2459
2468
|
|
|
2460
2469
|
/**
|
|
2461
2470
|
* Get the browser context that the page belongs to.
|
|
@@ -3147,6 +3156,25 @@ export interface Page {
|
|
|
3147
3156
|
exact?: boolean;
|
|
3148
3157
|
}): Locator;
|
|
3149
3158
|
|
|
3159
|
+
/**
|
|
3160
|
+
* Locate element by its aria ref. Refs like `[ref=e2]` are reported by
|
|
3161
|
+
* [page.ariaSnapshot([options])](https://playwright.dev/docs/api/class-page#page-aria-snapshot) when called with the
|
|
3162
|
+
* `"ai"` mode, and resolve against the latest snapshot taken in the element's frame.
|
|
3163
|
+
*
|
|
3164
|
+
* **Usage**
|
|
3165
|
+
*
|
|
3166
|
+
* Consider the following aria snapshot.
|
|
3167
|
+
*
|
|
3168
|
+
* You can locate the button by its ref:
|
|
3169
|
+
*
|
|
3170
|
+
* ```js
|
|
3171
|
+
* await page.getByRef('e2').click();
|
|
3172
|
+
* ```
|
|
3173
|
+
*
|
|
3174
|
+
* @param ref Aria ref of the element, for example `e2` or `f1e3`.
|
|
3175
|
+
*/
|
|
3176
|
+
getByRef(ref: string): Locator;
|
|
3177
|
+
|
|
3150
3178
|
/**
|
|
3151
3179
|
* Allows locating elements by their [ARIA role](https://www.w3.org/TR/wai-aria-1.2/#roles),
|
|
3152
3180
|
* [ARIA attributes](https://www.w3.org/TR/wai-aria-1.2/#aria-attributes) and
|
|
@@ -5872,6 +5900,22 @@ export interface Page {
|
|
|
5872
5900
|
|
|
5873
5901
|
touchscreen: Touchscreen;
|
|
5874
5902
|
|
|
5903
|
+
/**
|
|
5904
|
+
* Tools that the main frame registers through the experimental [WebMCP](https://playwright.dev/docs/api/class-webmcp)
|
|
5905
|
+
* browser API. Shortcut for [frame.webmcp](https://playwright.dev/docs/api/class-frame#frame-webmcp) of
|
|
5906
|
+
* [page.mainFrame()](https://playwright.dev/docs/api/class-page#page-main-frame), see
|
|
5907
|
+
* [WebMCP](https://playwright.dev/docs/api/class-webmcp) for details.
|
|
5908
|
+
*
|
|
5909
|
+
* **Usage**
|
|
5910
|
+
*
|
|
5911
|
+
* ```js
|
|
5912
|
+
* const tools = await page.webmcp.tools();
|
|
5913
|
+
* const result = await page.webmcp.callTool('add', { a: 2, b: 40 });
|
|
5914
|
+
* ```
|
|
5915
|
+
*
|
|
5916
|
+
*/
|
|
5917
|
+
webmcp: WebMCP;
|
|
5918
|
+
|
|
5875
5919
|
[Symbol.asyncDispose](): Promise<void>;
|
|
5876
5920
|
}
|
|
5877
5921
|
|
|
@@ -6937,8 +6981,17 @@ export interface Frame {
|
|
|
6937
6981
|
|
|
6938
6982
|
/**
|
|
6939
6983
|
* Gets the full HTML contents of the frame, including the doctype.
|
|
6984
|
+
* @param options
|
|
6940
6985
|
*/
|
|
6941
|
-
content(
|
|
6986
|
+
content(options?: {
|
|
6987
|
+
/**
|
|
6988
|
+
* When true, contents of open shadow roots are included as
|
|
6989
|
+
* [declarative shadow DOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM#declaratively_with_html),
|
|
6990
|
+
* i.e. `<template shadowrootmode="open">` elements nested inside their host elements. Closed shadow roots are never
|
|
6991
|
+
* included. Defaults to `false`.
|
|
6992
|
+
*/
|
|
6993
|
+
includeShadow?: boolean;
|
|
6994
|
+
}): Promise<string>;
|
|
6942
6995
|
|
|
6943
6996
|
/**
|
|
6944
6997
|
* **NOTE** Use locator-based [locator.dblclick([options])](https://playwright.dev/docs/api/class-locator#locator-dblclick)
|
|
@@ -9113,6 +9166,12 @@ export interface Frame {
|
|
|
9113
9166
|
*/
|
|
9114
9167
|
waitUntil?: "load"|"domcontentloaded"|"networkidle"|"commit";
|
|
9115
9168
|
}): Promise<void>;
|
|
9169
|
+
|
|
9170
|
+
/**
|
|
9171
|
+
* Tools that the frame registers through the experimental [WebMCP](https://playwright.dev/docs/api/class-webmcp)
|
|
9172
|
+
* browser API. See [WebMCP](https://playwright.dev/docs/api/class-webmcp) for details.
|
|
9173
|
+
*/
|
|
9174
|
+
webmcp: WebMCP;
|
|
9116
9175
|
}
|
|
9117
9176
|
|
|
9118
9177
|
/**
|
|
@@ -10601,6 +10660,12 @@ export interface BrowserContext {
|
|
|
10601
10660
|
|
|
10602
10661
|
/**
|
|
10603
10662
|
* @param offline Whether to emulate network being offline for the browser context.
|
|
10663
|
+
*
|
|
10664
|
+
* **NOTE** Offline emulation only affects requests that go through the browser's regular network stack, such as page
|
|
10665
|
+
* navigations, `fetch()`, `XMLHttpRequest` and WebSockets. It does not affect WebRTC traffic: established
|
|
10666
|
+
* `RTCPeerConnection`s keep sending and receiving media over UDP. To test WebRTC connection loss, interrupt the
|
|
10667
|
+
* connection outside the browser, for example by stopping the TURN server or using an OS-level firewall.
|
|
10668
|
+
*
|
|
10604
10669
|
*/
|
|
10605
10670
|
setOffline(offline: boolean): Promise<void>;
|
|
10606
10671
|
|
|
@@ -10682,8 +10747,8 @@ export interface BrowserContext {
|
|
|
10682
10747
|
/**
|
|
10683
10748
|
* Set to `true` to include the context's virtual WebAuthn
|
|
10684
10749
|
* [browserContext.credentials](https://playwright.dev/docs/api/class-browsercontext#browser-context-credentials)
|
|
10685
|
-
* (passkeys) in the storage state snapshot. The captured credentials carry their private keys
|
|
10686
|
-
* re-seeded into a later context via the
|
|
10750
|
+
* (passkeys) in the storage state snapshot. The captured credentials carry their private keys and signature counters,
|
|
10751
|
+
* so they can be re-seeded into a later context via the
|
|
10687
10752
|
* [`storageState`](https://playwright.dev/docs/api/class-browser#browser-new-context-option-storage-state) option or
|
|
10688
10753
|
* [browserContext.setStorageState(storageState)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-storage-state).
|
|
10689
10754
|
* Note that restoring the storage state that contains credentials will automatically install the virtual WebAuthn
|
|
@@ -11435,8 +11500,8 @@ export interface Browser {
|
|
|
11435
11500
|
|
|
11436
11501
|
/**
|
|
11437
11502
|
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
|
|
11438
|
-
* so you don't actually need to set it manually. Defaults to `false
|
|
11439
|
-
*
|
|
11503
|
+
* so you don't actually need to set it manually. Defaults to `false`. Learn more about
|
|
11504
|
+
* [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
|
|
11440
11505
|
*/
|
|
11441
11506
|
isMobile?: boolean;
|
|
11442
11507
|
|
|
@@ -11570,6 +11635,12 @@ export interface Browser {
|
|
|
11570
11635
|
height: number;
|
|
11571
11636
|
};
|
|
11572
11637
|
|
|
11638
|
+
/**
|
|
11639
|
+
* Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up
|
|
11640
|
+
* to 25 frames per second.
|
|
11641
|
+
*/
|
|
11642
|
+
fps?: number;
|
|
11643
|
+
|
|
11573
11644
|
/**
|
|
11574
11645
|
* If specified, enables visual annotations on interacted elements during video recording.
|
|
11575
11646
|
*/
|
|
@@ -11585,7 +11656,7 @@ export interface Browser {
|
|
|
11585
11656
|
position?: "top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right";
|
|
11586
11657
|
|
|
11587
11658
|
/**
|
|
11588
|
-
* Font size of the action title in pixels. Defaults to `24`.
|
|
11659
|
+
* Font size of the action title in pixels. Defaults to `24`. Deprecated, use `style.title` instead.
|
|
11589
11660
|
*/
|
|
11590
11661
|
fontSize?: number;
|
|
11591
11662
|
|
|
@@ -11594,6 +11665,26 @@ export interface Browser {
|
|
|
11594
11665
|
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
11595
11666
|
*/
|
|
11596
11667
|
cursor?: "none"|"pointer";
|
|
11668
|
+
|
|
11669
|
+
/**
|
|
11670
|
+
* Styles of the action decorations.
|
|
11671
|
+
*/
|
|
11672
|
+
style?: {
|
|
11673
|
+
/**
|
|
11674
|
+
* CSS declarations for the zero-sized marker centered on the action point. Not shown when omitted.
|
|
11675
|
+
*/
|
|
11676
|
+
point?: string;
|
|
11677
|
+
|
|
11678
|
+
/**
|
|
11679
|
+
* CSS declarations for the box that covers the target element. Not shown when omitted.
|
|
11680
|
+
*/
|
|
11681
|
+
highlight?: string;
|
|
11682
|
+
|
|
11683
|
+
/**
|
|
11684
|
+
* CSS declarations for the action title.
|
|
11685
|
+
*/
|
|
11686
|
+
title?: string;
|
|
11687
|
+
};
|
|
11597
11688
|
};
|
|
11598
11689
|
};
|
|
11599
11690
|
|
|
@@ -14382,7 +14473,7 @@ export interface Locator {
|
|
|
14382
14473
|
* multiple elements match the locator, throws.
|
|
14383
14474
|
* @param options
|
|
14384
14475
|
*/
|
|
14385
|
-
elementHandle(options?: { timeout?: number }): Promise<ElementHandle<SVGElement | HTMLElement>>;
|
|
14476
|
+
elementHandle(options?: { timeout?: number, signal?: AbortSignal }): Promise<ElementHandle<SVGElement | HTMLElement>>;
|
|
14386
14477
|
/**
|
|
14387
14478
|
* Highlight the corresponding element(s) on the screen. Useful for debugging, don't commit the code that uses
|
|
14388
14479
|
* [locator.highlight([options])](https://playwright.dev/docs/api/class-locator#locator-highlight).
|
|
@@ -16404,6 +16495,24 @@ export interface Locator {
|
|
|
16404
16495
|
* Returns a new locator that uses best practices for referencing the matched element, prioritizing test ids, aria
|
|
16405
16496
|
* roles, and other user-facing attributes over CSS selectors. This is useful for converting implementation-detail
|
|
16406
16497
|
* selectors into more resilient, human-readable locators.
|
|
16498
|
+
*
|
|
16499
|
+
* **Usage**
|
|
16500
|
+
*
|
|
16501
|
+
* An agent can pick an element by its ref from an
|
|
16502
|
+
* [page.ariaSnapshot([options])](https://playwright.dev/docs/api/class-page#page-aria-snapshot) taken in the `"ai"`
|
|
16503
|
+
* mode. Refs only work for the latest snapshot. Normalize the ref locator and convert it to a string to get resilient
|
|
16504
|
+
* locator code in your language, the same way `codegen` does.
|
|
16505
|
+
*
|
|
16506
|
+
* Consider the following aria snapshot.
|
|
16507
|
+
*
|
|
16508
|
+
* You can turn the ref into locator code:
|
|
16509
|
+
*
|
|
16510
|
+
* ```js
|
|
16511
|
+
* const normalized = await page.getByRef('e2').normalize();
|
|
16512
|
+
* console.log(normalized.toString());
|
|
16513
|
+
* // getByRole('button', { name: 'Submit' })
|
|
16514
|
+
* ```
|
|
16515
|
+
*
|
|
16407
16516
|
*/
|
|
16408
16517
|
normalize(): Promise<Locator>;
|
|
16409
16518
|
|
|
@@ -17294,6 +17403,27 @@ export interface Locator {
|
|
|
17294
17403
|
*/
|
|
17295
17404
|
timeout?: number;
|
|
17296
17405
|
}): Promise<void>;
|
|
17406
|
+
|
|
17407
|
+
/**
|
|
17408
|
+
* Returns a locator that matches this locator's elements inside each element matched by
|
|
17409
|
+
* [`locator`](https://playwright.dev/docs/api/class-locator#locator-within-option-locator).
|
|
17410
|
+
*
|
|
17411
|
+
* Note that relative locators, such as
|
|
17412
|
+
* [locator.nth(index)](https://playwright.dev/docs/api/class-locator#locator-nth) or
|
|
17413
|
+
* [locator.first()](https://playwright.dev/docs/api/class-locator#locator-first), are resolved separately inside each
|
|
17414
|
+
* matched parent. In the example below, `page.getByRole('cell').nth(2)` picks the third cell of every row, not the
|
|
17415
|
+
* third cell in the whole table.
|
|
17416
|
+
*
|
|
17417
|
+
* **Usage**
|
|
17418
|
+
*
|
|
17419
|
+
* ```js
|
|
17420
|
+
* const thirdColumn = page.getByRole('cell').nth(2).within(page.getByRole('row'));
|
|
17421
|
+
* await expect(thirdColumn).toHaveText(['Apple', 'Banana', 'Cherry']);
|
|
17422
|
+
* ```
|
|
17423
|
+
*
|
|
17424
|
+
* @param locator Locator matching the parent elements to search within.
|
|
17425
|
+
*/
|
|
17426
|
+
within(locator: Locator): Locator;
|
|
17297
17427
|
}
|
|
17298
17428
|
|
|
17299
17429
|
/**
|
|
@@ -17782,8 +17912,8 @@ export interface BrowserType<Unused = {}> {
|
|
|
17782
17912
|
|
|
17783
17913
|
/**
|
|
17784
17914
|
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
|
|
17785
|
-
* so you don't actually need to set it manually. Defaults to `false
|
|
17786
|
-
*
|
|
17915
|
+
* so you don't actually need to set it manually. Defaults to `false`. Learn more about
|
|
17916
|
+
* [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
|
|
17787
17917
|
*/
|
|
17788
17918
|
isMobile?: boolean;
|
|
17789
17919
|
|
|
@@ -17917,6 +18047,12 @@ export interface BrowserType<Unused = {}> {
|
|
|
17917
18047
|
height: number;
|
|
17918
18048
|
};
|
|
17919
18049
|
|
|
18050
|
+
/**
|
|
18051
|
+
* Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up
|
|
18052
|
+
* to 25 frames per second.
|
|
18053
|
+
*/
|
|
18054
|
+
fps?: number;
|
|
18055
|
+
|
|
17920
18056
|
/**
|
|
17921
18057
|
* If specified, enables visual annotations on interacted elements during video recording.
|
|
17922
18058
|
*/
|
|
@@ -17932,7 +18068,7 @@ export interface BrowserType<Unused = {}> {
|
|
|
17932
18068
|
position?: "top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right";
|
|
17933
18069
|
|
|
17934
18070
|
/**
|
|
17935
|
-
* Font size of the action title in pixels. Defaults to `24`.
|
|
18071
|
+
* Font size of the action title in pixels. Defaults to `24`. Deprecated, use `style.title` instead.
|
|
17936
18072
|
*/
|
|
17937
18073
|
fontSize?: number;
|
|
17938
18074
|
|
|
@@ -17941,6 +18077,26 @@ export interface BrowserType<Unused = {}> {
|
|
|
17941
18077
|
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
17942
18078
|
*/
|
|
17943
18079
|
cursor?: "none"|"pointer";
|
|
18080
|
+
|
|
18081
|
+
/**
|
|
18082
|
+
* Styles of the action decorations.
|
|
18083
|
+
*/
|
|
18084
|
+
style?: {
|
|
18085
|
+
/**
|
|
18086
|
+
* CSS declarations for the zero-sized marker centered on the action point. Not shown when omitted.
|
|
18087
|
+
*/
|
|
18088
|
+
point?: string;
|
|
18089
|
+
|
|
18090
|
+
/**
|
|
18091
|
+
* CSS declarations for the box that covers the target element. Not shown when omitted.
|
|
18092
|
+
*/
|
|
18093
|
+
highlight?: string;
|
|
18094
|
+
|
|
18095
|
+
/**
|
|
18096
|
+
* CSS declarations for the action title.
|
|
18097
|
+
*/
|
|
18098
|
+
title?: string;
|
|
18099
|
+
};
|
|
17944
18100
|
};
|
|
17945
18101
|
};
|
|
17946
18102
|
|
|
@@ -17991,7 +18147,7 @@ export interface BrowserType<Unused = {}> {
|
|
|
17991
18147
|
strictSelectors?: boolean;
|
|
17992
18148
|
|
|
17993
18149
|
/**
|
|
17994
|
-
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to `
|
|
18150
|
+
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to `180000` (3 minutes). Pass `0`
|
|
17995
18151
|
* to disable timeout.
|
|
17996
18152
|
*/
|
|
17997
18153
|
timeout?: number;
|
|
@@ -18190,7 +18346,7 @@ export interface BrowserType<Unused = {}> {
|
|
|
18190
18346
|
};
|
|
18191
18347
|
|
|
18192
18348
|
/**
|
|
18193
|
-
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to `
|
|
18349
|
+
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to `180000` (3 minutes). Pass `0`
|
|
18194
18350
|
* to disable timeout.
|
|
18195
18351
|
*/
|
|
18196
18352
|
timeout?: number;
|
|
@@ -18656,6 +18812,7 @@ export interface Screencast {
|
|
|
18656
18812
|
height: number;
|
|
18657
18813
|
};
|
|
18658
18814
|
quality?: number;
|
|
18815
|
+
fps?: number;
|
|
18659
18816
|
}): Promise<Disposable>;
|
|
18660
18817
|
/**
|
|
18661
18818
|
* Removes action decorations.
|
|
@@ -18685,6 +18842,8 @@ export interface Screencast {
|
|
|
18685
18842
|
|
|
18686
18843
|
/**
|
|
18687
18844
|
* Font size of the action title in pixels. Defaults to `24`.
|
|
18845
|
+
* @deprecated Use `title` in [`style`](https://playwright.dev/docs/api/class-screencast#screencast-show-actions-option-style)
|
|
18846
|
+
* instead, for example `style: { title: 'font-size: 32px' }`.
|
|
18688
18847
|
*/
|
|
18689
18848
|
fontSize?: number;
|
|
18690
18849
|
|
|
@@ -18692,6 +18851,44 @@ export interface Screencast {
|
|
|
18692
18851
|
* Position of the action title overlay. Defaults to `"top-right"`.
|
|
18693
18852
|
*/
|
|
18694
18853
|
position?: "top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right";
|
|
18854
|
+
|
|
18855
|
+
/**
|
|
18856
|
+
* Styles of the action decorations. All decorations fade out over
|
|
18857
|
+
* [`duration`](https://playwright.dev/docs/api/class-screencast#screencast-show-actions-option-duration).
|
|
18858
|
+
*
|
|
18859
|
+
* **Usage**
|
|
18860
|
+
*
|
|
18861
|
+
* ```js
|
|
18862
|
+
* await page.screencast.showActions({
|
|
18863
|
+
* style: {
|
|
18864
|
+
* point: 'width: 20px; height: 20px; border-radius: 50%; background: red',
|
|
18865
|
+
* highlight: 'outline: 2px solid #333; background: rgba(0, 128, 255, .15)',
|
|
18866
|
+
* title: 'font-size: 16px',
|
|
18867
|
+
* },
|
|
18868
|
+
* });
|
|
18869
|
+
* ```
|
|
18870
|
+
*
|
|
18871
|
+
*/
|
|
18872
|
+
style?: {
|
|
18873
|
+
/**
|
|
18874
|
+
* CSS declarations for the marker at the action point. The marker is positioned at the action point, has zero size
|
|
18875
|
+
* and is centered on the point, so its size and look come from this style. Not shown when omitted.
|
|
18876
|
+
*/
|
|
18877
|
+
point?: string;
|
|
18878
|
+
|
|
18879
|
+
/**
|
|
18880
|
+
* CSS declarations for the box that covers the target element. The box is positioned and sized to the element bounds.
|
|
18881
|
+
* Not shown when omitted.
|
|
18882
|
+
*/
|
|
18883
|
+
highlight?: string;
|
|
18884
|
+
|
|
18885
|
+
/**
|
|
18886
|
+
* CSS declarations for the action title, for example `'font-size: 32px; background: #333'`. The title is placed
|
|
18887
|
+
* according to
|
|
18888
|
+
* [`position`](https://playwright.dev/docs/api/class-screencast#screencast-show-actions-option-position).
|
|
18889
|
+
*/
|
|
18890
|
+
title?: string;
|
|
18891
|
+
};
|
|
18695
18892
|
}): Promise<Disposable>;
|
|
18696
18893
|
|
|
18697
18894
|
/**
|
|
@@ -19520,6 +19717,139 @@ export interface APIRequest {
|
|
|
19520
19717
|
* `APIRequestContext` object will have its own isolated cookie storage.
|
|
19521
19718
|
*/
|
|
19522
19719
|
export interface APIRequestContext {
|
|
19720
|
+
/**
|
|
19721
|
+
* Adds cookies into this request context. They will be sent with matching subsequent requests. For
|
|
19722
|
+
* [browserContext.request](https://playwright.dev/docs/api/class-browsercontext#browser-context-request) and
|
|
19723
|
+
* [page.request](https://playwright.dev/docs/api/class-page#page-request), this is equivalent to calling
|
|
19724
|
+
* [browserContext.addCookies(cookies)](https://playwright.dev/docs/api/class-browsercontext#browser-context-add-cookies)
|
|
19725
|
+
* on the corresponding browser context.
|
|
19726
|
+
*
|
|
19727
|
+
* **Usage**
|
|
19728
|
+
*
|
|
19729
|
+
* ```js
|
|
19730
|
+
* await request.addCookies([cookieObject1, cookieObject2]);
|
|
19731
|
+
* ```
|
|
19732
|
+
*
|
|
19733
|
+
* @param cookies
|
|
19734
|
+
*/
|
|
19735
|
+
addCookies(cookies: ReadonlyArray<{
|
|
19736
|
+
name: string;
|
|
19737
|
+
|
|
19738
|
+
value: string;
|
|
19739
|
+
|
|
19740
|
+
/**
|
|
19741
|
+
* Either `url` or both `domain` and `path` are required. Optional.
|
|
19742
|
+
*/
|
|
19743
|
+
url?: string;
|
|
19744
|
+
|
|
19745
|
+
/**
|
|
19746
|
+
* For the cookie to apply to all subdomains as well, prefix domain with a dot, like this: ".example.com". Either
|
|
19747
|
+
* `url` or both `domain` and `path` are required. Optional.
|
|
19748
|
+
*/
|
|
19749
|
+
domain?: string;
|
|
19750
|
+
|
|
19751
|
+
/**
|
|
19752
|
+
* Either `url` or both `domain` and `path` are required. Optional.
|
|
19753
|
+
*/
|
|
19754
|
+
path?: string;
|
|
19755
|
+
|
|
19756
|
+
/**
|
|
19757
|
+
* Unix time in seconds. Optional.
|
|
19758
|
+
*/
|
|
19759
|
+
expires?: number;
|
|
19760
|
+
|
|
19761
|
+
/**
|
|
19762
|
+
* Optional.
|
|
19763
|
+
*/
|
|
19764
|
+
httpOnly?: boolean;
|
|
19765
|
+
|
|
19766
|
+
/**
|
|
19767
|
+
* Optional.
|
|
19768
|
+
*/
|
|
19769
|
+
secure?: boolean;
|
|
19770
|
+
|
|
19771
|
+
/**
|
|
19772
|
+
* Optional.
|
|
19773
|
+
*/
|
|
19774
|
+
sameSite?: "Strict"|"Lax"|"None";
|
|
19775
|
+
|
|
19776
|
+
/**
|
|
19777
|
+
* For partitioned third-party cookies (aka
|
|
19778
|
+
* [CHIPS](https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies)), the
|
|
19779
|
+
* partition key. Optional.
|
|
19780
|
+
*/
|
|
19781
|
+
partitionKey?: string;
|
|
19782
|
+
}>): Promise<void>;
|
|
19783
|
+
|
|
19784
|
+
/**
|
|
19785
|
+
* Removes cookies from this request context. Accepts optional filter. For
|
|
19786
|
+
* [browserContext.request](https://playwright.dev/docs/api/class-browsercontext#browser-context-request) and
|
|
19787
|
+
* [page.request](https://playwright.dev/docs/api/class-page#page-request), this is equivalent to calling
|
|
19788
|
+
* [browserContext.clearCookies([options])](https://playwright.dev/docs/api/class-browsercontext#browser-context-clear-cookies)
|
|
19789
|
+
* on the corresponding browser context.
|
|
19790
|
+
*
|
|
19791
|
+
* **Usage**
|
|
19792
|
+
*
|
|
19793
|
+
* ```js
|
|
19794
|
+
* await request.clearCookies();
|
|
19795
|
+
* await request.clearCookies({ name: 'session-id' });
|
|
19796
|
+
* await request.clearCookies({ domain: 'my-origin.com' });
|
|
19797
|
+
* await request.clearCookies({ domain: /.*my-origin\.com/ });
|
|
19798
|
+
* await request.clearCookies({ path: '/api/v1' });
|
|
19799
|
+
* await request.clearCookies({ name: 'session-id', domain: 'my-origin.com' });
|
|
19800
|
+
* ```
|
|
19801
|
+
*
|
|
19802
|
+
* @param options
|
|
19803
|
+
*/
|
|
19804
|
+
clearCookies(options?: {
|
|
19805
|
+
/**
|
|
19806
|
+
* Only removes cookies with the given domain.
|
|
19807
|
+
*/
|
|
19808
|
+
domain?: string|RegExp;
|
|
19809
|
+
|
|
19810
|
+
/**
|
|
19811
|
+
* Only removes cookies with the given name.
|
|
19812
|
+
*/
|
|
19813
|
+
name?: string|RegExp;
|
|
19814
|
+
|
|
19815
|
+
/**
|
|
19816
|
+
* Only removes cookies with the given path.
|
|
19817
|
+
*/
|
|
19818
|
+
path?: string|RegExp;
|
|
19819
|
+
}): Promise<void>;
|
|
19820
|
+
|
|
19821
|
+
/**
|
|
19822
|
+
* If no URLs are specified, this method returns all cookies. If URLs are specified, only cookies that affect those
|
|
19823
|
+
* URLs are returned. For
|
|
19824
|
+
* [browserContext.request](https://playwright.dev/docs/api/class-browsercontext#browser-context-request) and
|
|
19825
|
+
* [page.request](https://playwright.dev/docs/api/class-page#page-request), this is equivalent to calling
|
|
19826
|
+
* [browserContext.cookies([urls])](https://playwright.dev/docs/api/class-browsercontext#browser-context-cookies) on
|
|
19827
|
+
* the corresponding browser context.
|
|
19828
|
+
* @param urls Optional list of URLs.
|
|
19829
|
+
*/
|
|
19830
|
+
cookies(urls?: string|ReadonlyArray<string>): Promise<Array<{
|
|
19831
|
+
name: string;
|
|
19832
|
+
|
|
19833
|
+
value: string;
|
|
19834
|
+
|
|
19835
|
+
domain: string;
|
|
19836
|
+
|
|
19837
|
+
path: string;
|
|
19838
|
+
|
|
19839
|
+
/**
|
|
19840
|
+
* Unix time in seconds.
|
|
19841
|
+
*/
|
|
19842
|
+
expires: number;
|
|
19843
|
+
|
|
19844
|
+
httpOnly: boolean;
|
|
19845
|
+
|
|
19846
|
+
secure: boolean;
|
|
19847
|
+
|
|
19848
|
+
sameSite: "Strict"|"Lax"|"None";
|
|
19849
|
+
|
|
19850
|
+
partitionKey?: string;
|
|
19851
|
+
}>>;
|
|
19852
|
+
|
|
19523
19853
|
/**
|
|
19524
19854
|
* Sends HTTP(S) [DELETE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) request and returns its
|
|
19525
19855
|
* response. The method will populate request cookies from the context and update context cookies from the response.
|
|
@@ -20467,6 +20797,7 @@ export interface Clock {
|
|
|
20467
20797
|
/**
|
|
20468
20798
|
* Install fake implementations for the following time-related functions:
|
|
20469
20799
|
* - `Date`
|
|
20800
|
+
* - `Temporal.Now`
|
|
20470
20801
|
* - `setTimeout`
|
|
20471
20802
|
* - `clearTimeout`
|
|
20472
20803
|
* - `setInterval`
|
|
@@ -20713,7 +21044,7 @@ export interface Coverage {
|
|
|
20713
21044
|
* **NOTE** Anonymous scripts are ones that don't have an associated url. These are scripts that are dynamically
|
|
20714
21045
|
* created on the page using `eval` or `new Function`. If
|
|
20715
21046
|
* [`reportAnonymousScripts`](https://playwright.dev/docs/api/class-coverage#coverage-start-js-coverage-option-report-anonymous-scripts)
|
|
20716
|
-
* is set to `true`, anonymous scripts will have
|
|
21047
|
+
* is set to `true`, anonymous scripts will have an empty string as their URL.
|
|
20717
21048
|
*
|
|
20718
21049
|
* @param options
|
|
20719
21050
|
*/
|
|
@@ -20864,7 +21195,7 @@ export interface Coverage {
|
|
|
20864
21195
|
*
|
|
20865
21196
|
* **Usage: save credentials in the storage state, restore later**
|
|
20866
21197
|
*
|
|
20867
|
-
* See [authentication guide](https://playwright.dev/docs/auth) for examples of using saving and
|
|
21198
|
+
* See [authentication guide](https://playwright.dev/docs/auth) for examples of using saving and restoring the storage state.
|
|
20868
21199
|
*
|
|
20869
21200
|
* **Defaults**
|
|
20870
21201
|
*/
|
|
@@ -20882,6 +21213,8 @@ export interface Credentials {
|
|
|
20882
21213
|
* [`userHandle`](https://playwright.dev/docs/api/class-credentials#credentials-create-option-user-handle),
|
|
20883
21214
|
* [`privateKey`](https://playwright.dev/docs/api/class-credentials#credentials-create-option-private-key) and
|
|
20884
21215
|
* [`publicKey`](https://playwright.dev/docs/api/class-credentials#credentials-create-option-public-key) together.
|
|
21216
|
+
* Pass [`signCount`](https://playwright.dev/docs/api/class-credentials#credentials-create-option-sign-count) as well
|
|
21217
|
+
* to continue from the signature counter the relying party has already seen.
|
|
20885
21218
|
*
|
|
20886
21219
|
* Call [credentials.install()](https://playwright.dev/docs/api/class-credentials#credentials-install) before
|
|
20887
21220
|
* navigating to a page that uses WebAuthn.
|
|
@@ -20904,6 +21237,13 @@ export interface Credentials {
|
|
|
20904
21237
|
*/
|
|
20905
21238
|
publicKey?: string;
|
|
20906
21239
|
|
|
21240
|
+
/**
|
|
21241
|
+
* Initial value of the [signature counter](https://www.w3.org/TR/webauthn-2/#signature-counter). The counter is
|
|
21242
|
+
* incremented by one on every successful `navigator.credentials.get()` assertion, so the first assertion reports
|
|
21243
|
+
* `signCount + 1`. Defaults to `0`.
|
|
21244
|
+
*/
|
|
21245
|
+
signCount?: number;
|
|
21246
|
+
|
|
20907
21247
|
/**
|
|
20908
21248
|
* Base64url-encoded user handle. Auto-generated if omitted.
|
|
20909
21249
|
*/
|
|
@@ -20933,6 +21273,11 @@ export interface Credentials {
|
|
|
20933
21273
|
* Base64url-encoded SPKI (DER) public key.
|
|
20934
21274
|
*/
|
|
20935
21275
|
publicKey: string;
|
|
21276
|
+
|
|
21277
|
+
/**
|
|
21278
|
+
* Signature counter, the value reported to the relying party in the most recent assertion.
|
|
21279
|
+
*/
|
|
21280
|
+
signCount: number;
|
|
20936
21281
|
}>;
|
|
20937
21282
|
|
|
20938
21283
|
/**
|
|
@@ -20951,8 +21296,8 @@ export interface Credentials {
|
|
|
20951
21296
|
* [credentials.create(rpId[, options])](https://playwright.dev/docs/api/class-credentials#credentials-create) and
|
|
20952
21297
|
* credentials the page registered itself by calling `navigator.credentials.create()`.
|
|
20953
21298
|
*
|
|
20954
|
-
* Each returned credential includes its private and public keys, so a passkey the
|
|
20955
|
-
* and re-seeded into a later test with
|
|
21299
|
+
* Each returned credential includes its private and public keys and the current signature counter, so a passkey the
|
|
21300
|
+
* app just registered can be saved and re-seeded into a later test with
|
|
20956
21301
|
* [credentials.create(rpId[, options])](https://playwright.dev/docs/api/class-credentials#credentials-create) — see
|
|
20957
21302
|
* the second example in the class overview.
|
|
20958
21303
|
* @param options
|
|
@@ -20977,6 +21322,8 @@ export interface Credentials {
|
|
|
20977
21322
|
privateKey: string;
|
|
20978
21323
|
|
|
20979
21324
|
publicKey: string;
|
|
21325
|
+
|
|
21326
|
+
signCount: number;
|
|
20980
21327
|
}>>;
|
|
20981
21328
|
|
|
20982
21329
|
/**
|
|
@@ -21918,7 +22265,7 @@ export interface Keyboard {
|
|
|
21918
22265
|
* **Usage**
|
|
21919
22266
|
*
|
|
21920
22267
|
* ```js
|
|
21921
|
-
* page.keyboard.insertText('嗨');
|
|
22268
|
+
* await page.keyboard.insertText('嗨');
|
|
21922
22269
|
* ```
|
|
21923
22270
|
*
|
|
21924
22271
|
* **NOTE** Modifier keys DO NOT effect `keyboard.insertText`. Holding down `Shift` will not type the text in upper
|
|
@@ -22413,7 +22760,7 @@ export interface Request {
|
|
|
22413
22760
|
/**
|
|
22414
22761
|
* Contains the request's resource type as it was perceived by the rendering engine. ResourceType will be one of the
|
|
22415
22762
|
* following: `document`, `stylesheet`, `image`, `media`, `font`, `script`, `texttrack`, `xhr`, `fetch`,
|
|
22416
|
-
* `eventsource`, `websocket`, `manifest`, `other`.
|
|
22763
|
+
* `eventsource`, `websocket`, `manifest`, `beacon`, `ping`, `cspreport`, `other`.
|
|
22417
22764
|
*/
|
|
22418
22765
|
resourceType(): string;
|
|
22419
22766
|
|
|
@@ -22578,9 +22925,10 @@ export interface Response {
|
|
|
22578
22925
|
headers(): { [key: string]: string; };
|
|
22579
22926
|
|
|
22580
22927
|
/**
|
|
22581
|
-
* An array with all the
|
|
22928
|
+
* An array with all the response HTTP headers associated with this response. Unlike
|
|
22582
22929
|
* [response.allHeaders()](https://playwright.dev/docs/api/class-response#response-all-headers), header names are NOT
|
|
22583
|
-
* lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times.
|
|
22930
|
+
* lower-cased. Headers with multiple entries, such as `Set-Cookie`, appear in the array multiple times. Some browser
|
|
22931
|
+
* network stacks combine multiple field values before reporting them, so separate entries are not always available.
|
|
22584
22932
|
*/
|
|
22585
22933
|
headersArray(): Promise<Array<{
|
|
22586
22934
|
/**
|
|
@@ -23200,7 +23548,9 @@ export interface Tracing {
|
|
|
23200
23548
|
groupEnd(): Promise<void>;
|
|
23201
23549
|
|
|
23202
23550
|
/**
|
|
23203
|
-
* Start tracing.
|
|
23551
|
+
* Start tracing. Disposing the returned [Disposable](https://playwright.dev/docs/api/class-disposable) stops tracing
|
|
23552
|
+
* without saving the trace, similarly to calling
|
|
23553
|
+
* [tracing.stop([options])](https://playwright.dev/docs/api/class-tracing#tracing-stop) without a path.
|
|
23204
23554
|
*
|
|
23205
23555
|
* **NOTE** You probably want to
|
|
23206
23556
|
* [enable tracing in your config file](https://playwright.dev/docs/api/class-testoptions#test-options-trace) instead
|
|
@@ -23275,10 +23625,13 @@ export interface Tracing {
|
|
|
23275
23625
|
* Trace name to be shown in the Trace Viewer.
|
|
23276
23626
|
*/
|
|
23277
23627
|
title?: string;
|
|
23278
|
-
}): Promise<
|
|
23628
|
+
}): Promise<Disposable>;
|
|
23279
23629
|
|
|
23280
23630
|
/**
|
|
23281
|
-
* Start a new trace chunk.
|
|
23631
|
+
* Start a new trace chunk. Disposing the returned [Disposable](https://playwright.dev/docs/api/class-disposable)
|
|
23632
|
+
* stops the chunk without saving it, similarly to calling
|
|
23633
|
+
* [tracing.stopChunk([options])](https://playwright.dev/docs/api/class-tracing#tracing-stop-chunk) without a path. If
|
|
23634
|
+
* you'd like to record multiple traces on the same
|
|
23282
23635
|
* [BrowserContext](https://playwright.dev/docs/api/class-browsercontext), use
|
|
23283
23636
|
* [tracing.start([options])](https://playwright.dev/docs/api/class-tracing#tracing-start) once, and then create
|
|
23284
23637
|
* multiple trace chunks with
|
|
@@ -23320,7 +23673,7 @@ export interface Tracing {
|
|
|
23320
23673
|
* Trace name to be shown in the Trace Viewer.
|
|
23321
23674
|
*/
|
|
23322
23675
|
title?: string;
|
|
23323
|
-
}): Promise<
|
|
23676
|
+
}): Promise<Disposable>;
|
|
23324
23677
|
|
|
23325
23678
|
/**
|
|
23326
23679
|
* Start recording a HAR (HTTP Archive) of network activity in this context. The HAR file is written to disk when
|
|
@@ -23477,6 +23830,112 @@ export interface WebError {
|
|
|
23477
23830
|
page(): null|Page;
|
|
23478
23831
|
}
|
|
23479
23832
|
|
|
23833
|
+
/**
|
|
23834
|
+
* [WebMCP](https://playwright.dev/docs/api/class-webmcp) exposes the tools that a frame registers through the
|
|
23835
|
+
* experimental [WebMCP](https://playwright.dev/docs/api/class-webmcp) browser API, `navigator.modelContext`. It lists
|
|
23836
|
+
* the tools and calls them.
|
|
23837
|
+
*
|
|
23838
|
+
* Instances are accessed through [frame.webmcp](https://playwright.dev/docs/api/class-frame#frame-webmcp).
|
|
23839
|
+
* [page.webmcp](https://playwright.dev/docs/api/class-page#page-webmcp) is the instance of the main frame.
|
|
23840
|
+
*
|
|
23841
|
+
* **NOTE** WebMCP is an experimental browser feature. Chromium enables it with the `--enable-features=WebMCP` launch
|
|
23842
|
+
* argument, Firefox with the `dom.modelcontext.enabled` and `dom.modelcontext.testing.enabled` preferences. WebKit
|
|
23843
|
+
* does not implement it.
|
|
23844
|
+
*
|
|
23845
|
+
* Tool names, descriptions, input schemas and results are provided by the page, so treat them as untrusted input.
|
|
23846
|
+
*
|
|
23847
|
+
* ```js
|
|
23848
|
+
* const browser = await chromium.launch({ args: ['--enable-features=WebMCP'] });
|
|
23849
|
+
* const page = await browser.newPage();
|
|
23850
|
+
* await page.goto('https://example.com');
|
|
23851
|
+
*
|
|
23852
|
+
* for (const tool of await page.webmcp.tools())
|
|
23853
|
+
* console.log(tool.name, tool.description);
|
|
23854
|
+
*
|
|
23855
|
+
* const result = await page.webmcp.callTool('add', { a: 2, b: 40 });
|
|
23856
|
+
* ```
|
|
23857
|
+
*
|
|
23858
|
+
*/
|
|
23859
|
+
export interface WebMCP {
|
|
23860
|
+
/**
|
|
23861
|
+
* Calls a tool registered by the frame and returns its result. The result is whatever the tool's `execute` function
|
|
23862
|
+
* resolved to, typically an object with a `content` array. A result with `isError: true` is returned as is. The
|
|
23863
|
+
* method throws when the tool is not registered or its `execute` function throws.
|
|
23864
|
+
*
|
|
23865
|
+
* ```js
|
|
23866
|
+
* const result = await page.webmcp.callTool('add', { a: 2, b: 40 });
|
|
23867
|
+
* console.log(result.content[0].text); // "42"
|
|
23868
|
+
* ```
|
|
23869
|
+
*
|
|
23870
|
+
* @param name Name of the tool, as reported by
|
|
23871
|
+
* [webMCP.tools([options])](https://playwright.dev/docs/api/class-webmcp#web-mcp-tools).
|
|
23872
|
+
* @param input Input for the tool, matching its `inputSchema`. Defaults to an empty object.
|
|
23873
|
+
* @param options
|
|
23874
|
+
*/
|
|
23875
|
+
callTool(name: string, input?: Serializable, options?: {
|
|
23876
|
+
/**
|
|
23877
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
23878
|
+
* option in the config, or by using the
|
|
23879
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
23880
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
23881
|
+
*/
|
|
23882
|
+
timeout?: number;
|
|
23883
|
+
}): Promise<Serializable>;
|
|
23884
|
+
|
|
23885
|
+
/**
|
|
23886
|
+
* Returns the tools currently registered by the frame. Throws if the browser was launched without WebMCP support, see
|
|
23887
|
+
* the note above for the launch options that enable it.
|
|
23888
|
+
*
|
|
23889
|
+
* [page.webmcp](https://playwright.dev/docs/api/class-page#page-webmcp) covers the main frame only, child frames list
|
|
23890
|
+
* their tools through their own [frame.webmcp](https://playwright.dev/docs/api/class-frame#frame-webmcp).
|
|
23891
|
+
* @param options
|
|
23892
|
+
*/
|
|
23893
|
+
tools(options?: {
|
|
23894
|
+
/**
|
|
23895
|
+
* Maximum time in milliseconds. Defaults to `0` - no timeout. The default value can be changed via `actionTimeout`
|
|
23896
|
+
* option in the config, or by using the
|
|
23897
|
+
* [browserContext.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-browsercontext#browser-context-set-default-timeout)
|
|
23898
|
+
* or [page.setDefaultTimeout(timeout)](https://playwright.dev/docs/api/class-page#page-set-default-timeout) methods.
|
|
23899
|
+
*/
|
|
23900
|
+
timeout?: number;
|
|
23901
|
+
}): Promise<Array<{
|
|
23902
|
+
/**
|
|
23903
|
+
* Tool name, unique within the frame.
|
|
23904
|
+
*/
|
|
23905
|
+
name: string;
|
|
23906
|
+
|
|
23907
|
+
/**
|
|
23908
|
+
* Tool description.
|
|
23909
|
+
*/
|
|
23910
|
+
description: string;
|
|
23911
|
+
|
|
23912
|
+
/**
|
|
23913
|
+
* JSON Schema of the tool input, when the page provides one.
|
|
23914
|
+
*/
|
|
23915
|
+
inputSchema?: Serializable;
|
|
23916
|
+
|
|
23917
|
+
/**
|
|
23918
|
+
* Hints the page provides about the tool.
|
|
23919
|
+
*/
|
|
23920
|
+
annotations?: {
|
|
23921
|
+
/**
|
|
23922
|
+
* The tool does not modify any state.
|
|
23923
|
+
*/
|
|
23924
|
+
readOnly?: boolean;
|
|
23925
|
+
|
|
23926
|
+
/**
|
|
23927
|
+
* The tool output may contain third-party content.
|
|
23928
|
+
*/
|
|
23929
|
+
untrustedContent?: boolean;
|
|
23930
|
+
|
|
23931
|
+
/**
|
|
23932
|
+
* The tool takes a consequential action, such as placing an order.
|
|
23933
|
+
*/
|
|
23934
|
+
consequential?: boolean;
|
|
23935
|
+
};
|
|
23936
|
+
}>>;
|
|
23937
|
+
}
|
|
23938
|
+
|
|
23480
23939
|
/**
|
|
23481
23940
|
* The [WebSocket](https://playwright.dev/docs/api/class-websocket) class represents WebSocket connections within a
|
|
23482
23941
|
* page. It provides the ability to inspect and manipulate the data being transmitted and received.
|
|
@@ -23824,9 +24283,7 @@ export interface WebStorage {
|
|
|
23824
24283
|
* ```
|
|
23825
24284
|
*
|
|
23826
24285
|
* **Supported Electron versions are:**
|
|
23827
|
-
* -
|
|
23828
|
-
* - v13.4.0+
|
|
23829
|
-
* - v14+
|
|
24286
|
+
* - v21+
|
|
23830
24287
|
*
|
|
23831
24288
|
* **Known issues:**
|
|
23832
24289
|
*
|
|
@@ -24079,6 +24536,12 @@ export interface Electron {
|
|
|
24079
24536
|
height: number;
|
|
24080
24537
|
};
|
|
24081
24538
|
|
|
24539
|
+
/**
|
|
24540
|
+
* Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up
|
|
24541
|
+
* to 25 frames per second.
|
|
24542
|
+
*/
|
|
24543
|
+
fps?: number;
|
|
24544
|
+
|
|
24082
24545
|
/**
|
|
24083
24546
|
* If specified, enables visual annotations on interacted elements during video recording.
|
|
24084
24547
|
*/
|
|
@@ -24094,7 +24557,7 @@ export interface Electron {
|
|
|
24094
24557
|
position?: "top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right";
|
|
24095
24558
|
|
|
24096
24559
|
/**
|
|
24097
|
-
* Font size of the action title in pixels. Defaults to `24`.
|
|
24560
|
+
* Font size of the action title in pixels. Defaults to `24`. Deprecated, use `style.title` instead.
|
|
24098
24561
|
*/
|
|
24099
24562
|
fontSize?: number;
|
|
24100
24563
|
|
|
@@ -24103,6 +24566,26 @@ export interface Electron {
|
|
|
24103
24566
|
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
24104
24567
|
*/
|
|
24105
24568
|
cursor?: "none"|"pointer";
|
|
24569
|
+
|
|
24570
|
+
/**
|
|
24571
|
+
* Styles of the action decorations.
|
|
24572
|
+
*/
|
|
24573
|
+
style?: {
|
|
24574
|
+
/**
|
|
24575
|
+
* CSS declarations for the zero-sized marker centered on the action point. Not shown when omitted.
|
|
24576
|
+
*/
|
|
24577
|
+
point?: string;
|
|
24578
|
+
|
|
24579
|
+
/**
|
|
24580
|
+
* CSS declarations for the box that covers the target element. Not shown when omitted.
|
|
24581
|
+
*/
|
|
24582
|
+
highlight?: string;
|
|
24583
|
+
|
|
24584
|
+
/**
|
|
24585
|
+
* CSS declarations for the action title.
|
|
24586
|
+
*/
|
|
24587
|
+
title?: string;
|
|
24588
|
+
};
|
|
24106
24589
|
};
|
|
24107
24590
|
};
|
|
24108
24591
|
|
|
@@ -24134,7 +24617,7 @@ export interface Electron {
|
|
|
24134
24617
|
* - Android device or AVD Emulator.
|
|
24135
24618
|
* - [ADB daemon](https://developer.android.com/studio/command-line/adb) running and authenticated with your device.
|
|
24136
24619
|
* Typically running `adb devices` is all you need to do.
|
|
24137
|
-
* - [`Chrome
|
|
24620
|
+
* - [`Chrome 105`](https://play.google.com/store/apps/details?id=com.android.chrome) or newer installed on the
|
|
24138
24621
|
* device
|
|
24139
24622
|
* - "Enable command line on non-rooted devices" enabled in `chrome://flags`.
|
|
24140
24623
|
*
|
|
@@ -24654,8 +25137,8 @@ export interface AndroidDevice {
|
|
|
24654
25137
|
|
|
24655
25138
|
/**
|
|
24656
25139
|
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
|
|
24657
|
-
* so you don't actually need to set it manually. Defaults to `false
|
|
24658
|
-
*
|
|
25140
|
+
* so you don't actually need to set it manually. Defaults to `false`. Learn more about
|
|
25141
|
+
* [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
|
|
24659
25142
|
*/
|
|
24660
25143
|
isMobile?: boolean;
|
|
24661
25144
|
|
|
@@ -24794,6 +25277,12 @@ export interface AndroidDevice {
|
|
|
24794
25277
|
height: number;
|
|
24795
25278
|
};
|
|
24796
25279
|
|
|
25280
|
+
/**
|
|
25281
|
+
* Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up
|
|
25282
|
+
* to 25 frames per second.
|
|
25283
|
+
*/
|
|
25284
|
+
fps?: number;
|
|
25285
|
+
|
|
24797
25286
|
/**
|
|
24798
25287
|
* If specified, enables visual annotations on interacted elements during video recording.
|
|
24799
25288
|
*/
|
|
@@ -24809,7 +25298,7 @@ export interface AndroidDevice {
|
|
|
24809
25298
|
position?: "top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right";
|
|
24810
25299
|
|
|
24811
25300
|
/**
|
|
24812
|
-
* Font size of the action title in pixels. Defaults to `24`.
|
|
25301
|
+
* Font size of the action title in pixels. Defaults to `24`. Deprecated, use `style.title` instead.
|
|
24813
25302
|
*/
|
|
24814
25303
|
fontSize?: number;
|
|
24815
25304
|
|
|
@@ -24818,6 +25307,26 @@ export interface AndroidDevice {
|
|
|
24818
25307
|
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
24819
25308
|
*/
|
|
24820
25309
|
cursor?: "none"|"pointer";
|
|
25310
|
+
|
|
25311
|
+
/**
|
|
25312
|
+
* Styles of the action decorations.
|
|
25313
|
+
*/
|
|
25314
|
+
style?: {
|
|
25315
|
+
/**
|
|
25316
|
+
* CSS declarations for the zero-sized marker centered on the action point. Not shown when omitted.
|
|
25317
|
+
*/
|
|
25318
|
+
point?: string;
|
|
25319
|
+
|
|
25320
|
+
/**
|
|
25321
|
+
* CSS declarations for the box that covers the target element. Not shown when omitted.
|
|
25322
|
+
*/
|
|
25323
|
+
highlight?: string;
|
|
25324
|
+
|
|
25325
|
+
/**
|
|
25326
|
+
* CSS declarations for the action title.
|
|
25327
|
+
*/
|
|
25328
|
+
title?: string;
|
|
25329
|
+
};
|
|
24821
25330
|
};
|
|
24822
25331
|
};
|
|
24823
25332
|
|
|
@@ -25498,7 +26007,7 @@ export interface LaunchOptions {
|
|
|
25498
26007
|
slowMo?: number;
|
|
25499
26008
|
|
|
25500
26009
|
/**
|
|
25501
|
-
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to `
|
|
26010
|
+
* Maximum time in milliseconds to wait for the browser instance to start. Defaults to `180000` (3 minutes). Pass `0`
|
|
25502
26011
|
* to disable timeout.
|
|
25503
26012
|
*/
|
|
25504
26013
|
timeout?: number;
|
|
@@ -25871,8 +26380,8 @@ export interface BrowserContextOptions {
|
|
|
25871
26380
|
|
|
25872
26381
|
/**
|
|
25873
26382
|
* Whether the `meta viewport` tag is taken into account and touch events are enabled. isMobile is a part of device,
|
|
25874
|
-
* so you don't actually need to set it manually. Defaults to `false
|
|
25875
|
-
*
|
|
26383
|
+
* so you don't actually need to set it manually. Defaults to `false`. Learn more about
|
|
26384
|
+
* [mobile emulation](https://playwright.dev/docs/emulation#ismobile).
|
|
25876
26385
|
*/
|
|
25877
26386
|
isMobile?: boolean;
|
|
25878
26387
|
|
|
@@ -26006,6 +26515,12 @@ export interface BrowserContextOptions {
|
|
|
26006
26515
|
height: number;
|
|
26007
26516
|
};
|
|
26008
26517
|
|
|
26518
|
+
/**
|
|
26519
|
+
* Frame rate of the recorded videos in frames per second. Defaults to `25`. Firefox and WebKit currently capture up
|
|
26520
|
+
* to 25 frames per second.
|
|
26521
|
+
*/
|
|
26522
|
+
fps?: number;
|
|
26523
|
+
|
|
26009
26524
|
/**
|
|
26010
26525
|
* If specified, enables visual annotations on interacted elements during video recording.
|
|
26011
26526
|
*/
|
|
@@ -26021,7 +26536,7 @@ export interface BrowserContextOptions {
|
|
|
26021
26536
|
position?: "top-left"|"top"|"top-right"|"bottom-left"|"bottom"|"bottom-right";
|
|
26022
26537
|
|
|
26023
26538
|
/**
|
|
26024
|
-
* Font size of the action title in pixels. Defaults to `24`.
|
|
26539
|
+
* Font size of the action title in pixels. Defaults to `24`. Deprecated, use `style.title` instead.
|
|
26025
26540
|
*/
|
|
26026
26541
|
fontSize?: number;
|
|
26027
26542
|
|
|
@@ -26030,6 +26545,26 @@ export interface BrowserContextOptions {
|
|
|
26030
26545
|
* the previous action point to the next one. `"none"` disables the cursor decoration.
|
|
26031
26546
|
*/
|
|
26032
26547
|
cursor?: "none"|"pointer";
|
|
26548
|
+
|
|
26549
|
+
/**
|
|
26550
|
+
* Styles of the action decorations.
|
|
26551
|
+
*/
|
|
26552
|
+
style?: {
|
|
26553
|
+
/**
|
|
26554
|
+
* CSS declarations for the zero-sized marker centered on the action point. Not shown when omitted.
|
|
26555
|
+
*/
|
|
26556
|
+
point?: string;
|
|
26557
|
+
|
|
26558
|
+
/**
|
|
26559
|
+
* CSS declarations for the box that covers the target element. Not shown when omitted.
|
|
26560
|
+
*/
|
|
26561
|
+
highlight?: string;
|
|
26562
|
+
|
|
26563
|
+
/**
|
|
26564
|
+
* CSS declarations for the action title.
|
|
26565
|
+
*/
|
|
26566
|
+
title?: string;
|
|
26567
|
+
};
|
|
26033
26568
|
};
|
|
26034
26569
|
};
|
|
26035
26570
|
|