@ddwang/magnitude-core 0.3.1-ddwang.2 → 0.3.1-ddwang.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +2 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.mjs +1 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/index.cjs +2704 -1522
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +188 -50
- package/dist/index.d.ts +1147 -23
- package/dist/index.mjs +2527 -1362
- package/dist/index.mjs.map +1 -0
- package/node_modules/patchright-core/README.md +3 -0
- package/node_modules/patchright-core/ThirdPartyNotices.txt +13 -0
- package/node_modules/patchright-core/bin/install_media_pack.ps1 +5 -0
- package/node_modules/patchright-core/bin/install_webkit_wsl.ps1 +33 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_beta_linux.sh +42 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_beta_mac.sh +13 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_beta_win.ps1 +24 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_stable_linux.sh +42 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_stable_mac.sh +12 -0
- package/node_modules/patchright-core/bin/reinstall_chrome_stable_win.ps1 +24 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_beta_linux.sh +48 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_beta_mac.sh +11 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_beta_win.ps1 +23 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_dev_linux.sh +48 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_dev_mac.sh +11 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_dev_win.ps1 +23 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_stable_linux.sh +48 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_stable_mac.sh +11 -0
- package/node_modules/patchright-core/bin/reinstall_msedge_stable_win.ps1 +24 -0
- package/node_modules/patchright-core/browsers.json +52 -0
- package/node_modules/patchright-core/cli.js +22 -0
- package/node_modules/patchright-core/index.d.ts +17 -0
- package/node_modules/patchright-core/index.js +17 -0
- package/node_modules/patchright-core/index.mjs +28 -0
- package/node_modules/patchright-core/lib/bootstrap.js +149 -0
- package/node_modules/patchright-core/lib/coreBundle.js +80653 -0
- package/node_modules/patchright-core/lib/entry/cliDaemon.js +5 -0
- package/node_modules/patchright-core/lib/entry/dashboardApp.js +3 -0
- package/node_modules/patchright-core/lib/entry/mcp.js +10 -0
- package/node_modules/patchright-core/lib/entry/oopBrowserDownload.js +3 -0
- package/node_modules/patchright-core/lib/package.js +50 -0
- package/node_modules/patchright-core/lib/server/chromium/appIcon.png +0 -0
- package/node_modules/patchright-core/lib/server/electron/loader.js +112 -0
- package/node_modules/patchright-core/lib/serverRegistry.js +1939 -0
- package/node_modules/patchright-core/lib/serverRegistry.js.LICENSE +65 -0
- package/node_modules/patchright-core/lib/tools/cli-client/channelSessions.js +141 -0
- package/node_modules/patchright-core/lib/tools/cli-client/cli.js +7 -0
- package/node_modules/patchright-core/lib/tools/cli-client/help.json +808 -0
- package/node_modules/patchright-core/lib/tools/cli-client/minimist.js +128 -0
- package/node_modules/patchright-core/lib/tools/cli-client/output.js +352 -0
- package/node_modules/patchright-core/lib/tools/cli-client/program.js +422 -0
- package/node_modules/patchright-core/lib/tools/cli-client/registry.js +180 -0
- package/node_modules/patchright-core/lib/tools/cli-client/session.js +261 -0
- package/node_modules/patchright-core/lib/tools/dashboard/appIcon.png +0 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/SKILL.md +493 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/element-attributes.md +23 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/playwright-tests.md +39 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/pr-attachments.md +60 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/request-mocking.md +87 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/running-code.md +245 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/session-management.md +227 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/storage-state.md +275 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/test-generation.md +433 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/tracing.md +139 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-cli/references/video-recording.md +216 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/SKILL.md +136 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/gallery-spec.md +144 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/migration.md +89 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/react.md +69 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/typing.md +173 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-component-testing/references/vue.md +77 -0
- package/node_modules/patchright-core/lib/tools/skills/playwright-trace/SKILL.md +174 -0
- package/node_modules/patchright-core/lib/tools/utils/extension.js +112 -0
- package/node_modules/patchright-core/lib/tools/utils/socketConnection.js +108 -0
- package/node_modules/patchright-core/lib/utilsBundle.js +86225 -0
- package/node_modules/patchright-core/lib/utilsBundle.js.LICENSE +1890 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/codeMirrorModule-CQ8RZGBm.js +32 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/index-AwgwcYie.css +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/index-hRvO4yU2.js +12 -0
- package/node_modules/patchright-core/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
- package/node_modules/patchright-core/lib/vite/dashboard/index.html +29 -0
- package/node_modules/patchright-core/lib/vite/dashboard/playwright-logo.svg +24 -0
- package/node_modules/patchright-core/lib/vite/htmlReport/index.html +16 -0
- package/node_modules/patchright-core/lib/vite/htmlReport/report.css +2 -0
- package/node_modules/patchright-core/lib/vite/htmlReport/report.js +32 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/codeMirrorModule--QdMvsKi.css +1 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/codeMirrorModule-GBnsXk4c.js +32 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/index-BZpYJZ-P.css +1 -0
- package/node_modules/patchright-core/lib/vite/recorder/assets/index-CVDOfo-j.js +129 -0
- package/node_modules/patchright-core/lib/vite/recorder/index.html +29 -0
- package/node_modules/patchright-core/lib/vite/recorder/playwright-logo.svg +9 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/codeMirrorModule-G79327TW.js +32 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/defaultSettingsView-D9EV0iaS.js +184 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/urlMatch-L3liM589.js +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/assets/xtermModule-Al_u-Nk5.js +7 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/codeMirrorModule.-QdMvsKi.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/defaultSettingsView.C8BeHuxd.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/index.B_TqY17P.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/index.CMB2-c8e.js +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/index.html +44 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/manifest.webmanifest +16 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/playwright-logo.svg +9 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/snapshot.B_Jk1wbt.js +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/snapshot.html +10 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/sw.bundle.js +4 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.C3yLoy2G.js +5 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.CyMfwkXJ.css +1 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/uiMode.html +18 -0
- package/node_modules/patchright-core/lib/vite/traceViewer/xtermModule.kHJ-D0s7.css +1 -0
- package/node_modules/patchright-core/lib/webp_codec.LICENSE +173 -0
- package/node_modules/patchright-core/lib/webp_codec.wasm +0 -0
- package/node_modules/patchright-core/lib/xdg-open +1267 -0
- package/node_modules/patchright-core/package.json +34 -0
- package/node_modules/patchright-core/types/protocol.d.ts +24776 -0
- package/node_modules/patchright-core/types/structs.d.ts +52 -0
- package/node_modules/patchright-core/types/types.d.ts +27167 -0
- package/node_modules/playwright/.bun-tag-91d746a6045e143f +0 -0
- package/node_modules/playwright/README.md +300 -0
- package/node_modules/playwright/ThirdPartyNotices.txt +14 -0
- package/node_modules/playwright/cli.js +19 -0
- package/node_modules/playwright/index.d.ts +17 -0
- package/node_modules/playwright/index.js +17 -0
- package/node_modules/playwright/index.mjs +18 -0
- package/node_modules/playwright/lib/agents/agentParser.js +89 -0
- package/node_modules/playwright/lib/agents/copilot-setup-steps.yml +34 -0
- package/node_modules/playwright/lib/agents/generateAgents.js +395 -0
- package/node_modules/playwright/lib/agents/playwright-test-coverage.prompt.md +31 -0
- package/node_modules/playwright/lib/agents/playwright-test-generate.prompt.md +8 -0
- package/node_modules/playwright/lib/agents/playwright-test-generator.agent.md +88 -0
- package/node_modules/playwright/lib/agents/playwright-test-heal.prompt.md +6 -0
- package/node_modules/playwright/lib/agents/playwright-test-healer.agent.md +56 -0
- package/node_modules/playwright/lib/agents/playwright-test-plan.prompt.md +9 -0
- package/node_modules/playwright/lib/agents/playwright-test-planner.agent.md +74 -0
- package/node_modules/playwright/lib/cli/reportActions.js +78 -0
- package/node_modules/playwright/lib/cli/testActions.js +217 -0
- package/node_modules/playwright/lib/common/index.js +2937 -0
- package/node_modules/playwright/lib/common/index.js.txt +33 -0
- package/node_modules/playwright/lib/errorContext.js +129 -0
- package/node_modules/playwright/lib/globals.js +58 -0
- package/node_modules/playwright/lib/index.js +827 -0
- package/node_modules/playwright/lib/isomorphic.js +260 -0
- package/node_modules/playwright/lib/isomorphic.js.txt +9 -0
- package/node_modules/playwright/lib/loader/loaderProcessEntry.js +34 -0
- package/node_modules/playwright/lib/loader/loaderProcessEntry.js.txt +9 -0
- package/node_modules/playwright/lib/matchers/expect.js +13496 -0
- package/node_modules/playwright/lib/matchers/expect.js.LICENSE +640 -0
- package/node_modules/playwright/lib/matchers/expect.js.txt +67 -0
- package/node_modules/playwright/lib/mcp/test/browserBackend.js +135 -0
- package/node_modules/playwright/lib/mcp/test/generatorTools.js +122 -0
- package/node_modules/playwright/lib/mcp/test/plannerTools.js +150 -0
- package/node_modules/playwright/lib/mcp/test/seed.js +82 -0
- package/node_modules/playwright/lib/mcp/test/streams.js +44 -0
- package/node_modules/playwright/lib/mcp/test/testBackend.js +99 -0
- package/node_modules/playwright/lib/mcp/test/testContext.js +306 -0
- package/node_modules/playwright/lib/mcp/test/testTool.js +30 -0
- package/node_modules/playwright/lib/mcp/test/testTools.js +98 -0
- package/node_modules/playwright/lib/package.js +47 -0
- package/node_modules/playwright/lib/program.js +242 -0
- package/node_modules/playwright/lib/runner/index.js +8721 -0
- package/node_modules/playwright/lib/runner/index.js.txt +62 -0
- package/node_modules/playwright/lib/transform/babelBundle.js +72490 -0
- package/node_modules/playwright/lib/transform/babelBundle.js.LICENSE +2384 -0
- package/node_modules/playwright/lib/transform/babelBundle.js.txt +328 -0
- package/node_modules/playwright/lib/transform/esmLoader.js +8213 -0
- package/node_modules/playwright/lib/transform/esmLoader.js.LICENSE +355 -0
- package/node_modules/playwright/lib/transform/esmLoader.js.txt +60 -0
- package/node_modules/playwright/lib/util.js +373 -0
- package/node_modules/playwright/lib/worker/workerProcessEntry.js +1860 -0
- package/node_modules/playwright/lib/worker/workerProcessEntry.js.txt +19 -0
- package/node_modules/playwright/package.json +50 -0
- package/node_modules/playwright/test.d.ts +18 -0
- package/node_modules/playwright/test.js +24 -0
- package/node_modules/playwright/test.mjs +35 -0
- package/node_modules/playwright/types/test.d.ts +11191 -0
- package/node_modules/playwright/types/testReporter.d.ts +950 -0
- package/package.json +21 -12
- package/dist/actions/desktopActions.d.ts +0 -58
- package/dist/actions/desktopActions.js +0 -155
- package/dist/actions/index.d.ts +0 -27
- package/dist/actions/index.js +0 -11
- package/dist/actions/memoryActions.d.ts +0 -9
- package/dist/actions/memoryActions.js +0 -34
- package/dist/actions/taskActions.d.ts +0 -8
- package/dist/actions/taskActions.js +0 -27
- package/dist/actions/types.d.ts +0 -35
- package/dist/actions/types.js +0 -5
- package/dist/actions/util.d.ts +0 -21
- package/dist/actions/util.js +0 -280
- package/dist/actions/webActions.d.ts +0 -87
- package/dist/actions/webActions.js +0 -214
- package/dist/actions/webActions.test.d.ts +0 -1
- package/dist/actions/webActions.test.js +0 -43
- package/dist/agent/browserAgent.d.ts +0 -31
- package/dist/agent/browserAgent.js +0 -136
- package/dist/agent/errors.d.ts +0 -22
- package/dist/agent/errors.js +0 -97
- package/dist/agent/index.d.ts +0 -64
- package/dist/agent/index.js +0 -505
- package/dist/agent/narrator.d.ts +0 -4
- package/dist/agent/narrator.js +0 -63
- package/dist/agent/pause.test.d.ts +0 -1
- package/dist/agent/pause.test.js +0 -194
- package/dist/ai/baml_client/async_client.d.ts +0 -64
- package/dist/ai/baml_client/async_client.js +0 -284
- package/dist/ai/baml_client/async_request.d.ts +0 -39
- package/dist/ai/baml_client/async_request.js +0 -134
- package/dist/ai/baml_client/config.d.ts +0 -11
- package/dist/ai/baml_client/config.js +0 -20
- package/dist/ai/baml_client/globals.d.ts +0 -16
- package/dist/ai/baml_client/globals.js +0 -37
- package/dist/ai/baml_client/index.d.ts +0 -17
- package/dist/ai/baml_client/index.js +0 -42
- package/dist/ai/baml_client/inlinedbaml.d.ts +0 -19
- package/dist/ai/baml_client/inlinedbaml.js +0 -31
- package/dist/ai/baml_client/parser.d.ts +0 -53
- package/dist/ai/baml_client/parser.js +0 -86
- package/dist/ai/baml_client/partial_types.d.ts +0 -61
- package/dist/ai/baml_client/partial_types.js +0 -10
- package/dist/ai/baml_client/sync_client.d.ts +0 -57
- package/dist/ai/baml_client/sync_client.js +0 -142
- package/dist/ai/baml_client/sync_request.d.ts +0 -37
- package/dist/ai/baml_client/sync_request.js +0 -134
- package/dist/ai/baml_client/tracing.d.ts +0 -16
- package/dist/ai/baml_client/tracing.js +0 -18
- package/dist/ai/baml_client/type_builder.d.ts +0 -40
- package/dist/ai/baml_client/type_builder.js +0 -120
- package/dist/ai/baml_client/types.d.ts +0 -69
- package/dist/ai/baml_client/types.js +0 -15
- package/dist/ai/baml_client/watchers.d.ts +0 -32
- package/dist/ai/baml_client/watchers.js +0 -50
- package/dist/ai/baseten.d.ts +0 -4
- package/dist/ai/baseten.js +0 -10
- package/dist/ai/claudeCode.d.ts +0 -1
- package/dist/ai/claudeCode.js +0 -186
- package/dist/ai/modelHarness.d.ts +0 -39
- package/dist/ai/modelHarness.js +0 -324
- package/dist/ai/modelResponseError.d.ts +0 -4
- package/dist/ai/modelResponseError.js +0 -8
- package/dist/ai/multiModelHarness.d.ts +0 -24
- package/dist/ai/multiModelHarness.js +0 -52
- package/dist/ai/plannerResponse.d.ts +0 -34
- package/dist/ai/plannerResponse.js +0 -96
- package/dist/ai/plannerResponse.test.d.ts +0 -1
- package/dist/ai/plannerResponse.test.js +0 -112
- package/dist/ai/structuredOutput.d.ts +0 -11
- package/dist/ai/structuredOutput.js +0 -94
- package/dist/ai/structuredOutput.test.d.ts +0 -1
- package/dist/ai/structuredOutput.test.js +0 -91
- package/dist/ai/types.d.ts +0 -119
- package/dist/ai/types.js +0 -5
- package/dist/ai/util.d.ts +0 -13
- package/dist/ai/util.js +0 -200
- package/dist/ai/util.test.d.ts +0 -1
- package/dist/ai/util.test.js +0 -95
- package/dist/cli.js +0 -3
- package/dist/common/actions.js +0 -14
- package/dist/common/events.d.ts +0 -17
- package/dist/common/events.js +0 -3
- package/dist/common/failure.d.ts +0 -68
- package/dist/common/failure.js +0 -1
- package/dist/common/index.d.ts +0 -3
- package/dist/common/index.js +0 -3
- package/dist/common/operation.d.ts +0 -31
- package/dist/common/operation.js +0 -102
- package/dist/common/operation.test.d.ts +0 -1
- package/dist/common/operation.test.js +0 -53
- package/dist/common/retry.d.ts +0 -16
- package/dist/common/retry.js +0 -35
- package/dist/common/util.d.ts +0 -23
- package/dist/common/util.js +0 -139
- package/dist/connectors/browserConnector.d.ts +0 -53
- package/dist/connectors/browserConnector.js +0 -290
- package/dist/connectors/desktopConnector.d.ts +0 -58
- package/dist/connectors/desktopConnector.js +0 -68
- package/dist/connectors/index.d.ts +0 -14
- package/dist/connectors/index.js +0 -2
- package/dist/index.js +0 -28
- package/dist/logger.d.ts +0 -3
- package/dist/logger.js +0 -15
- package/dist/memory/agentMemory.d.ts +0 -47
- package/dist/memory/agentMemory.js +0 -167
- package/dist/memory/agentMemory.test.d.ts +0 -1
- package/dist/memory/agentMemory.test.js +0 -150
- package/dist/memory/image.d.ts +0 -28
- package/dist/memory/image.js +0 -95
- package/dist/memory/image.test.d.ts +0 -1
- package/dist/memory/image.test.js +0 -46
- package/dist/memory/index.d.ts +0 -3
- package/dist/memory/index.js +0 -3
- package/dist/memory/masking.d.ts +0 -7
- package/dist/memory/masking.js +0 -141
- package/dist/memory/masking.test.d.ts +0 -1
- package/dist/memory/masking.test.js +0 -117
- package/dist/memory/notebook.d.ts +0 -58
- package/dist/memory/notebook.js +0 -75
- package/dist/memory/notebook.test.d.ts +0 -1
- package/dist/memory/notebook.test.js +0 -99
- package/dist/memory/observation.d.ts +0 -38
- package/dist/memory/observation.js +0 -79
- package/dist/memory/rendering/index.d.ts +0 -10
- package/dist/memory/rendering/index.js +0 -13
- package/dist/memory/rendering/renderJsonParts.d.ts +0 -3
- package/dist/memory/rendering/renderJsonParts.js +0 -115
- package/dist/memory/rendering/renderJsonParts.test.d.ts +0 -1
- package/dist/memory/rendering/renderJsonParts.test.js +0 -217
- package/dist/memory/rendering/renderXmlParts.d.ts +0 -7
- package/dist/memory/rendering/renderXmlParts.js +0 -127
- package/dist/memory/serde.d.ts +0 -20
- package/dist/memory/serde.js +0 -67
- package/dist/memory/serde.test.d.ts +0 -1
- package/dist/memory/serde.test.js +0 -64
- package/dist/memory/util.d.ts +0 -2
- package/dist/memory/util.js +0 -17
- package/dist/telemetry/events.d.ts +0 -9
- package/dist/telemetry/events.js +0 -80
- package/dist/telemetry/index.d.ts +0 -6
- package/dist/telemetry/index.js +0 -91
- package/dist/types.d.ts +0 -30
- package/dist/types.js +0 -1
- package/dist/util.d.ts +0 -1
- package/dist/util.js +0 -12
- package/dist/version.d.ts +0 -1
- package/dist/version.js +0 -3
- package/dist/web/browserProvider.d.ts +0 -24
- package/dist/web/browserProvider.js +0 -164
- package/dist/web/browserProvider.test.d.ts +0 -1
- package/dist/web/browserProvider.test.js +0 -44
- package/dist/web/harness.d.ts +0 -109
- package/dist/web/harness.js +0 -401
- package/dist/web/recovery.d.ts +0 -46
- package/dist/web/recovery.js +0 -137
- package/dist/web/recovery.test.d.ts +0 -1
- package/dist/web/recovery.test.js +0 -182
- package/dist/web/stability.d.ts +0 -57
- package/dist/web/stability.js +0 -323
- package/dist/web/tabs.d.ts +0 -58
- package/dist/web/tabs.js +0 -293
- package/dist/web/transformer.d.ts +0 -7
- package/dist/web/transformer.js +0 -41
- package/dist/web/types.d.ts +0 -37
- package/dist/web/types.js +0 -2
- package/dist/web/util.d.ts +0 -3
- package/dist/web/util.js +0 -81
- package/dist/web/visualizer/cursor.d.ts +0 -16
- package/dist/web/visualizer/cursor.js +0 -153
- package/dist/web/visualizer/index.d.ts +0 -22
- package/dist/web/visualizer/index.js +0 -47
- package/dist/web/visualizer/mouseEffects.d.ts +0 -18
- package/dist/web/visualizer/mouseEffects.js +0 -287
- package/dist/web/visualizer/typeEffects.d.ts +0 -10
- package/dist/web/visualizer/typeEffects.js +0 -190
- package/dist/web/zodReexport.test.d.ts +0 -1
- package/dist/web/zodReexport.test.js +0 -14
- /package/{dist/common/actions.d.ts → node_modules/patchright-core/.bun-tag-19f23bd68c84ec1f} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import EventEmitter from 'eventemitter3';
|
|
2
|
-
import z$1, { z, Schema,
|
|
2
|
+
import z$1, { z, Schema, ZodSchema } from 'zod';
|
|
3
3
|
export { z } from 'zod';
|
|
4
4
|
import { Image as Image$1 } from '@boundaryml/baml';
|
|
5
|
-
import
|
|
5
|
+
import { Sharp, FormatEnum } from 'sharp';
|
|
6
6
|
import { BrowserContext, Page, PageScreenshotOptions, Browser, BrowserContextOptions, LaunchOptions } from 'playwright';
|
|
7
7
|
import { PostHog } from 'posthog-node';
|
|
8
8
|
import pino from 'pino';
|
|
@@ -83,6 +83,15 @@ interface CheckIntent {
|
|
|
83
83
|
|
|
84
84
|
type BrowserAgentRole = 'act' | 'extract' | 'query';
|
|
85
85
|
declare const allBrowserAgentRoles: BrowserAgentRole[];
|
|
86
|
+
/** Optional request budget for one model call, used for act() planning and for extract(). */
|
|
87
|
+
interface TimeoutPolicy {
|
|
88
|
+
/** Includes transport retries and format correction within one invocation. */
|
|
89
|
+
timeoutMs: number;
|
|
90
|
+
/** Retries after timeout, once the previous invocation settles. Default: 1. */
|
|
91
|
+
maxRetries?: number;
|
|
92
|
+
}
|
|
93
|
+
/** The published name for the planner's policy, kept for existing imports. */
|
|
94
|
+
type PlannerOptions = TimeoutPolicy;
|
|
86
95
|
type LLMClient = (AnthropicClient | ClaudeCodeClient | BedrockClient | GoogleAIClient | GoogleVertexClient | OpenAIClient | BasetenClient | OpenAIGenericClient | AzureOpenAIClient) & {
|
|
87
96
|
roles?: BrowserAgentRole[];
|
|
88
97
|
};
|
|
@@ -201,7 +210,100 @@ interface ModelUsage {
|
|
|
201
210
|
outputCost?: number;
|
|
202
211
|
}
|
|
203
212
|
|
|
213
|
+
interface OperationOptions {
|
|
214
|
+
signal?: AbortSignal;
|
|
215
|
+
/** Absolute Unix time in milliseconds, shared by every step, retry, and wait. */
|
|
216
|
+
deadline?: number;
|
|
217
|
+
}
|
|
218
|
+
type OperationKind = 'act' | 'query' | 'extract' | 'nav' | 'exec';
|
|
219
|
+
type OperationPhase = 'preparing' | 'context' | 'observations' | 'model' | 'action' | 'screenshot' | 'stability' | 'cooldown' | 'retry' | 'paused' | 'cursor';
|
|
220
|
+
interface OperationTiming {
|
|
221
|
+
count: number;
|
|
222
|
+
totalMs: number;
|
|
223
|
+
}
|
|
224
|
+
interface ProviderAttemptDiagnostics {
|
|
225
|
+
operationId: string;
|
|
226
|
+
attempt: number;
|
|
227
|
+
provider: string;
|
|
228
|
+
model: string;
|
|
229
|
+
startedAt: number;
|
|
230
|
+
elapsedMs: number | null;
|
|
231
|
+
httpStatus: number | null;
|
|
232
|
+
requestId: string | null;
|
|
233
|
+
/** Local planner invocation, when this HTTP attempt belongs to act() planning. */
|
|
234
|
+
plannerCallId?: string;
|
|
235
|
+
/** HTTP outcome, not successful parsing or completion of the agent's task. */
|
|
236
|
+
outcome: 'succeeded' | 'failed' | 'unknown';
|
|
237
|
+
/** Reported input tokens, including cached input, or null when the response has no usage. */
|
|
238
|
+
promptTokens: number | null;
|
|
239
|
+
/** Reported input tokens read from the provider's cache, or null when the response has no usage. */
|
|
240
|
+
cachedPromptTokens: number | null;
|
|
241
|
+
/** Reported output tokens, including reasoning, or null when the response has no usage. */
|
|
242
|
+
outputTokens: number | null;
|
|
243
|
+
}
|
|
244
|
+
interface PlannerCallDiagnostics {
|
|
245
|
+
id: string;
|
|
246
|
+
/** One-based timeout attempt within a planning step. */
|
|
247
|
+
attempt: number;
|
|
248
|
+
provider: string;
|
|
249
|
+
model: string;
|
|
250
|
+
startedAt: number;
|
|
251
|
+
endedAt?: number;
|
|
252
|
+
elapsedMs: number;
|
|
253
|
+
timeoutMs?: number;
|
|
254
|
+
status: 'running' | 'draining' | 'finished';
|
|
255
|
+
outcome?: 'succeeded' | 'failed' | 'timeout' | 'cancelled' | 'deadline';
|
|
256
|
+
}
|
|
257
|
+
interface BrowserClickDiagnostics {
|
|
258
|
+
operationId: string;
|
|
259
|
+
actionIndex: number | null;
|
|
260
|
+
x: number;
|
|
261
|
+
y: number;
|
|
262
|
+
button: 'left' | 'right' | 'middle';
|
|
263
|
+
clickCount: number;
|
|
264
|
+
screenshot: {
|
|
265
|
+
width: number;
|
|
266
|
+
height: number;
|
|
267
|
+
} | null;
|
|
268
|
+
viewport: {
|
|
269
|
+
width: number;
|
|
270
|
+
height: number;
|
|
271
|
+
} | null;
|
|
272
|
+
hit: {
|
|
273
|
+
tag: string | null;
|
|
274
|
+
role: string | null;
|
|
275
|
+
} | null;
|
|
276
|
+
}
|
|
277
|
+
interface OperationDiagnostics {
|
|
278
|
+
id: string;
|
|
279
|
+
kind: OperationKind;
|
|
280
|
+
status: 'running' | 'draining' | 'finished';
|
|
281
|
+
outcome?: 'succeeded' | 'failed' | 'cancelled' | 'deadline';
|
|
282
|
+
phase: OperationPhase;
|
|
283
|
+
startedAt: number;
|
|
284
|
+
elapsedMs: number;
|
|
285
|
+
cancellationToDrainMs?: number;
|
|
286
|
+
cancellationToIdleMs?: number;
|
|
287
|
+
lastAction?: {
|
|
288
|
+
index: number;
|
|
289
|
+
name: string;
|
|
290
|
+
state: 'pending' | 'started' | 'completed' | 'failed';
|
|
291
|
+
};
|
|
292
|
+
/** Inclusive totals: nested and concurrent phases overlap and must not be summed. */
|
|
293
|
+
timings: Partial<Record<OperationPhase, OperationTiming>>;
|
|
294
|
+
/** Latest 100 SDK attempts, available after each model invocation settles. */
|
|
295
|
+
providerAttempts?: ProviderAttemptDiagnostics[];
|
|
296
|
+
providerAttemptsTruncated?: boolean;
|
|
297
|
+
/** Latest 100 planner invocations, including the currently running request. */
|
|
298
|
+
plannerCalls?: PlannerCallDiagnostics[];
|
|
299
|
+
plannerCallsTruncated?: boolean;
|
|
300
|
+
/** Pre-dispatch hit evidence for the latest submitted click, not proof of success. */
|
|
301
|
+
lastClick?: BrowserClickDiagnostics;
|
|
302
|
+
}
|
|
303
|
+
|
|
204
304
|
interface AgentEvents {
|
|
305
|
+
/** Payload-free snapshots. Existing action/thought events retain their original payloads. */
|
|
306
|
+
'operation': (diagnostics: OperationDiagnostics) => void;
|
|
205
307
|
'start': () => void;
|
|
206
308
|
'stop': () => void;
|
|
207
309
|
'thought': (thought: string) => void;
|
|
@@ -266,7 +368,7 @@ declare class Image {
|
|
|
266
368
|
private encoded?;
|
|
267
369
|
constructor(img: Sharp);
|
|
268
370
|
static fromBase64(base64: string): Image;
|
|
269
|
-
getFormat(): Promise<keyof
|
|
371
|
+
getFormat(): Promise<keyof FormatEnum>;
|
|
270
372
|
private encode;
|
|
271
373
|
/**
|
|
272
374
|
* Convert the image to a JSON representation
|
|
@@ -295,6 +397,8 @@ interface ObservationRetentionOptions {
|
|
|
295
397
|
type: string;
|
|
296
398
|
limit?: number;
|
|
297
399
|
dedupe?: boolean;
|
|
400
|
+
/** Render only the latest of this type after cached history; overrides limit and dedupe. Full audit retains every entry. */
|
|
401
|
+
current?: boolean;
|
|
298
402
|
}
|
|
299
403
|
type ObservationSource = `connector:${string}` | `action:taken:${string}` | `action:result:${string}` | `thought`;
|
|
300
404
|
declare class Observation {
|
|
@@ -322,37 +426,19 @@ declare class Observation {
|
|
|
322
426
|
declare const noteSchema: z.ZodObject<{
|
|
323
427
|
key: z.ZodString;
|
|
324
428
|
text: z.ZodString;
|
|
325
|
-
sources: z.ZodArray<z.ZodNumber
|
|
326
|
-
},
|
|
327
|
-
key: string;
|
|
328
|
-
text: string;
|
|
329
|
-
sources: number[];
|
|
330
|
-
}, {
|
|
331
|
-
key: string;
|
|
332
|
-
text: string;
|
|
333
|
-
sources: number[];
|
|
334
|
-
}>;
|
|
429
|
+
sources: z.ZodArray<z.ZodNumber>;
|
|
430
|
+
}, z.core.$strict>;
|
|
335
431
|
type NoteInput = z.infer<typeof noteSchema>;
|
|
336
432
|
declare const noteUpdateSchema: z.ZodObject<{
|
|
337
433
|
key: z.ZodString;
|
|
338
434
|
text: z.ZodString;
|
|
339
|
-
sources: z.ZodArray<z.ZodNumber
|
|
340
|
-
|
|
341
|
-
|
|
435
|
+
sources: z.ZodArray<z.ZodNumber>;
|
|
436
|
+
operation: z.ZodEnum<{
|
|
437
|
+
add: "add";
|
|
438
|
+
correct: "correct";
|
|
439
|
+
}>;
|
|
342
440
|
expected_text: z.ZodNullable<z.ZodString>;
|
|
343
|
-
},
|
|
344
|
-
key: string;
|
|
345
|
-
text: string;
|
|
346
|
-
sources: number[];
|
|
347
|
-
operation: "add" | "correct";
|
|
348
|
-
expected_text: string | null;
|
|
349
|
-
}, {
|
|
350
|
-
key: string;
|
|
351
|
-
text: string;
|
|
352
|
-
sources: number[];
|
|
353
|
-
operation: "add" | "correct";
|
|
354
|
-
expected_text: string | null;
|
|
355
|
-
}>;
|
|
441
|
+
}, z.core.$strict>;
|
|
356
442
|
type NoteUpdate = z.infer<typeof noteUpdateSchema>;
|
|
357
443
|
|
|
358
444
|
interface SerializedAgentMemory {
|
|
@@ -384,6 +470,8 @@ declare class AgentMemory {
|
|
|
384
470
|
private cacheControlIndices;
|
|
385
471
|
constructor(options?: AgentMemoryOptions);
|
|
386
472
|
get instructions(): string | null;
|
|
473
|
+
/** Apply current instructions and provider caching policy without replacing task evidence. */
|
|
474
|
+
configure(options: Pick<AgentMemoryOptions, 'instructions' | 'promptCaching'>): void;
|
|
387
475
|
render(options?: MemoryRenderOptions): Promise<MultiMediaMessage[]>;
|
|
388
476
|
simpleRender(): Promise<(Image$1 | string)[]>;
|
|
389
477
|
private observationPrefix;
|
|
@@ -395,15 +483,10 @@ declare class AgentMemory {
|
|
|
395
483
|
recordObservation(obs: Observation): void;
|
|
396
484
|
getLastThoughtMessage(): string | null;
|
|
397
485
|
toJSON(): Promise<SerializedAgentMemory>;
|
|
486
|
+
/** Replace saved state atomically; runtime caching and thought limits stay with this instance. */
|
|
398
487
|
loadJSON(data: SerializedAgentMemory): Promise<void>;
|
|
399
488
|
}
|
|
400
489
|
|
|
401
|
-
interface OperationOptions {
|
|
402
|
-
signal?: AbortSignal;
|
|
403
|
-
/** Absolute Unix time in milliseconds, shared by every step, retry, and wait. */
|
|
404
|
-
deadline?: number;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
490
|
type ActionContext<T> = {
|
|
408
491
|
input: T;
|
|
409
492
|
agent: Agent;
|
|
@@ -416,13 +499,14 @@ interface ActionDefinition<T> {
|
|
|
416
499
|
resolver: (context: ActionContext<T>) => Promise<void | RenderableContent>;
|
|
417
500
|
render: (action: T) => string;
|
|
418
501
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
502
|
+
type ActionOptions<T> = Omit<ActionDefinition<T>, 'render'> & {
|
|
503
|
+
render?: ActionDefinition<T>['render'];
|
|
504
|
+
};
|
|
505
|
+
type EmptyActionOptions = Omit<ActionOptions<Record<string, never>>, 'schema'> & {
|
|
506
|
+
schema?: undefined;
|
|
507
|
+
};
|
|
508
|
+
declare function createAction<T>(action: ActionOptions<T>): ActionDefinition<T>;
|
|
509
|
+
declare function createAction(action: EmptyActionOptions): ActionDefinition<Record<string, never>>;
|
|
426
510
|
type ActionPayload<A extends ActionDefinition<any>> = {
|
|
427
511
|
name: A['name'];
|
|
428
512
|
} & z.infer<A['schema']>;
|
|
@@ -433,6 +517,8 @@ interface AgentConnector {
|
|
|
433
517
|
onStop?(): Promise<void>;
|
|
434
518
|
beforeAction?(action: Action, options?: OperationOptions): Promise<void>;
|
|
435
519
|
onTaskStart?(options?: OperationOptions): void;
|
|
520
|
+
/** Called before each planner request, after the observations it will see are recorded. */
|
|
521
|
+
beforePlan?(options?: OperationOptions): Promise<void>;
|
|
436
522
|
getActionSpace?(): ActionDefinition<any>[];
|
|
437
523
|
collectObservations?(options?: OperationOptions): Promise<Observation[]>;
|
|
438
524
|
getInstructions?(options?: OperationOptions): Promise<void | string>;
|
|
@@ -457,7 +543,10 @@ declare class MultiModelHarness {
|
|
|
457
543
|
private roles;
|
|
458
544
|
private uniqueModels;
|
|
459
545
|
readonly events: EventEmitter<ModelHarnessEvents>;
|
|
460
|
-
constructor(clients: LLMClient[]
|
|
546
|
+
constructor(clients: LLMClient[], policies?: {
|
|
547
|
+
planner?: TimeoutPolicy;
|
|
548
|
+
extract?: TimeoutPolicy;
|
|
549
|
+
});
|
|
461
550
|
setup(): Promise<void>;
|
|
462
551
|
describe(): string;
|
|
463
552
|
partialAct<T>(context: AgentContext, task: string, data: MultiMediaContentPart[], actionVocabulary: ActionDefinition<T>[]): Promise<PlannerResponse>;
|
|
@@ -473,6 +562,10 @@ interface AgentOptions {
|
|
|
473
562
|
prompt?: string | null;
|
|
474
563
|
telemetry?: boolean;
|
|
475
564
|
maxActions?: number;
|
|
565
|
+
/** Omitted preserves existing planner retry behavior without a per-call timeout. */
|
|
566
|
+
planner?: TimeoutPolicy;
|
|
567
|
+
/** Omitted runs extract() without a per-call timeout. */
|
|
568
|
+
extract?: TimeoutPolicy;
|
|
476
569
|
}
|
|
477
570
|
interface ActOptions extends OperationOptions {
|
|
478
571
|
prompt?: string;
|
|
@@ -490,18 +583,30 @@ declare class Agent {
|
|
|
490
583
|
private _paused;
|
|
491
584
|
private _pauseResolve;
|
|
492
585
|
private activeOperation?;
|
|
586
|
+
private latestOperation?;
|
|
493
587
|
private idle;
|
|
494
|
-
private
|
|
588
|
+
private resolveIdle?;
|
|
589
|
+
private pendingWork;
|
|
590
|
+
private lifecycleTail;
|
|
591
|
+
private lifecycleRequest?;
|
|
592
|
+
private lifecycleState;
|
|
593
|
+
private telemetryStarted;
|
|
495
594
|
protected latestTaskMemory: AgentMemory;
|
|
496
595
|
constructor(baseConfig?: Partial<AgentOptions>);
|
|
497
596
|
getConnector<C extends AgentConnector>(connectorClass: new (...args: any[]) => C): C | undefined;
|
|
498
597
|
require<C extends AgentConnector>(connectorClass: new (...args: any[]) => C): C;
|
|
499
598
|
start(): Promise<void>;
|
|
599
|
+
get lifecycle(): 'new' | 'starting' | 'ready' | 'stopping' | 'stopped';
|
|
600
|
+
private beginWork;
|
|
601
|
+
private endWork;
|
|
602
|
+
private scheduleLifecycle;
|
|
500
603
|
identifyAction(action: Action): ActionDefinition<any>;
|
|
501
604
|
/** True until underlying work settles, including after a cancelled caller returns. */
|
|
502
605
|
get busy(): boolean;
|
|
503
606
|
whenIdle(): Promise<void>;
|
|
504
|
-
|
|
607
|
+
/** A payload-free snapshot of the active or most recent operation. */
|
|
608
|
+
get operation(): OperationDiagnostics | undefined;
|
|
609
|
+
protected runOperation<T>(options: OperationOptions, fn: () => Promise<T>, kind?: OperationKind): Promise<T>;
|
|
505
610
|
exec(action: Action, memory?: AgentMemory, options?: OperationOptions): Promise<unknown>;
|
|
506
611
|
private _exec;
|
|
507
612
|
protected _recordConnectorObservations(memory: AgentMemory): Promise<void>;
|
|
@@ -518,10 +623,13 @@ declare class Agent {
|
|
|
518
623
|
resume(): void;
|
|
519
624
|
get paused(): boolean;
|
|
520
625
|
stop(): Promise<void>;
|
|
626
|
+
private stopConnectors;
|
|
521
627
|
}
|
|
522
628
|
|
|
523
629
|
interface ActionVisualizerOptions {
|
|
524
630
|
showCursor?: boolean;
|
|
631
|
+
/** Set false to skip the 300 ms movement animation. Defaults to true. */
|
|
632
|
+
animateCursor?: boolean;
|
|
525
633
|
showHoverCircle?: boolean;
|
|
526
634
|
showClickRipple?: boolean;
|
|
527
635
|
showDragLine?: boolean;
|
|
@@ -557,6 +665,8 @@ interface WebHarnessOptions {
|
|
|
557
665
|
};
|
|
558
666
|
visuals?: ActionVisualizerOptions;
|
|
559
667
|
switchTabsOnActivity?: boolean;
|
|
668
|
+
/** Refuse to type into password and one-time-code fields; the host owns authentication. */
|
|
669
|
+
hostOnlyAuthentication?: boolean;
|
|
560
670
|
}
|
|
561
671
|
interface WebHarnessEvents {
|
|
562
672
|
'activePageChanged': (page: Page) => Promise<void>;
|
|
@@ -572,6 +682,7 @@ declare class WebHarness {
|
|
|
572
682
|
readonly visualizer: ActionVisualizer;
|
|
573
683
|
private transformer;
|
|
574
684
|
private tabs;
|
|
685
|
+
private lastScreenshot?;
|
|
575
686
|
readonly events: EventEmitter<WebHarnessEvents>;
|
|
576
687
|
constructor(context: BrowserContext, options?: WebHarnessOptions);
|
|
577
688
|
setActivePage(page: Page): Promise<void>;
|
|
@@ -594,7 +705,13 @@ declare class WebHarness {
|
|
|
594
705
|
}, options?: {
|
|
595
706
|
transform: boolean;
|
|
596
707
|
}): Promise<void>;
|
|
708
|
+
/** Recheck an observed target after hover effects, before submitting any click. */
|
|
709
|
+
clickGrounded(resolve: () => Promise<{
|
|
710
|
+
x: number;
|
|
711
|
+
y: number;
|
|
712
|
+
} | null>): Promise<boolean>;
|
|
597
713
|
private _click;
|
|
714
|
+
private dispatchClick;
|
|
598
715
|
hover({ x, y }: {
|
|
599
716
|
x: number;
|
|
600
717
|
y: number;
|
|
@@ -621,6 +738,8 @@ declare class WebHarness {
|
|
|
621
738
|
}, options?: {
|
|
622
739
|
transform: boolean;
|
|
623
740
|
}): Promise<void>;
|
|
741
|
+
/** Stops the operation when the focused field, in any frame, takes a password or one-time code. */
|
|
742
|
+
private refuseCredentialField;
|
|
624
743
|
type({ content }: {
|
|
625
744
|
content: string;
|
|
626
745
|
}): Promise<void>;
|
|
@@ -686,6 +805,7 @@ interface BrowserBlock {
|
|
|
686
805
|
}
|
|
687
806
|
declare class BrowserBlockedError extends Error {
|
|
688
807
|
readonly block: BrowserBlock;
|
|
808
|
+
readonly operation?: OperationDiagnostics;
|
|
689
809
|
constructor(block: BrowserBlock);
|
|
690
810
|
}
|
|
691
811
|
interface HttpDiagnostic {
|
|
@@ -697,6 +817,7 @@ interface HttpDiagnostic {
|
|
|
697
817
|
}
|
|
698
818
|
interface RecoveryOptions {
|
|
699
819
|
maxRateLimitWaitMs?: number;
|
|
820
|
+
/** Unchanged attempts before stopping; known-state cycles allow twice this many attempts. Default: 6. */
|
|
700
821
|
repeatedActionLimit?: number;
|
|
701
822
|
/** Opt in to heuristic loop warnings and automatic no-progress termination. */
|
|
702
823
|
noProgress?: boolean;
|
|
@@ -707,16 +828,18 @@ declare class BrowserRecovery {
|
|
|
707
828
|
waitUntil?: number;
|
|
708
829
|
private rateWaitMs;
|
|
709
830
|
private blockedActions;
|
|
710
|
-
private recent;
|
|
711
831
|
private recentStates;
|
|
712
832
|
private repetitions;
|
|
833
|
+
private knownStateAttempts;
|
|
713
834
|
private lastFingerprint?;
|
|
714
835
|
readonly maxRateLimitWaitMs: number;
|
|
715
836
|
readonly repeatedActionLimit: number;
|
|
716
837
|
readonly noProgress: boolean;
|
|
717
838
|
constructor(options?: RecoveryOptions);
|
|
718
839
|
reset(): void;
|
|
719
|
-
|
|
840
|
+
/** New non-page evidence, such as a browser download lifecycle transition. */
|
|
841
|
+
recordProgress(): void;
|
|
842
|
+
observe(fingerprint: string | null, action: Action | undefined, block: BrowserBlock | undefined, now?: number): void;
|
|
720
843
|
check(): void;
|
|
721
844
|
waitDuration(requestedMs: number, now?: number, deadline?: number): number;
|
|
722
845
|
}
|
|
@@ -731,6 +854,10 @@ interface BrowserConnectorOptions {
|
|
|
731
854
|
minScreenshots?: number;
|
|
732
855
|
visuals?: ActionVisualizerOptions;
|
|
733
856
|
recovery?: RecoveryOptions | false;
|
|
857
|
+
/** Opt in to current-viewport link, button, and native field observations with browser:click, browser:select, and browser:fill references. */
|
|
858
|
+
groundedControls?: boolean;
|
|
859
|
+
/** The host owns sign-in: typing into a password or one-time-code field stops the task as blocked by authentication. */
|
|
860
|
+
hostOnlyAuthentication?: boolean;
|
|
734
861
|
}
|
|
735
862
|
interface BrowserConnectorStateData {
|
|
736
863
|
screenshot: Image;
|
|
@@ -748,12 +875,15 @@ declare class BrowserConnector implements AgentConnector {
|
|
|
748
875
|
private responses;
|
|
749
876
|
private pendingAction?;
|
|
750
877
|
private cancelWait?;
|
|
878
|
+
private downloads?;
|
|
879
|
+
private controls?;
|
|
751
880
|
constructor(options?: BrowserConnectorOptions);
|
|
752
881
|
onStart(): Promise<void>;
|
|
753
882
|
onStop(): Promise<void>;
|
|
754
883
|
getActionSpace(): ActionDefinition<any>[];
|
|
755
884
|
private onResponse;
|
|
756
885
|
beforeAction(action: Action): Promise<void>;
|
|
886
|
+
beforePlan(): Promise<void>;
|
|
757
887
|
onTaskStart(): void;
|
|
758
888
|
wait(requestedMs: number): Promise<void>;
|
|
759
889
|
getHarness(): WebHarness;
|
|
@@ -785,7 +915,7 @@ declare class BrowserAgent extends Agent {
|
|
|
785
915
|
get page(): Page;
|
|
786
916
|
get context(): BrowserContext;
|
|
787
917
|
nav(url: string, options?: OperationOptions): Promise<void>;
|
|
788
|
-
extract<T extends Schema
|
|
918
|
+
extract<T extends Schema<ExtractedOutput>>(instructions: string, schema: T, options?: OperationOptions): Promise<z$1.infer<T>>;
|
|
789
919
|
private _extract;
|
|
790
920
|
}
|
|
791
921
|
|
|
@@ -850,6 +980,7 @@ interface AgentErrorOptions {
|
|
|
850
980
|
adaptable?: boolean;
|
|
851
981
|
}
|
|
852
982
|
declare class AgentError extends Error {
|
|
983
|
+
readonly operation?: OperationDiagnostics;
|
|
853
984
|
readonly options: Required<AgentErrorOptions>;
|
|
854
985
|
constructor(message: string, options?: AgentErrorOptions);
|
|
855
986
|
}
|
|
@@ -867,6 +998,14 @@ declare class OperationDeadlineError extends AgentError {
|
|
|
867
998
|
declare class AgentBusyError extends AgentError {
|
|
868
999
|
constructor();
|
|
869
1000
|
}
|
|
1001
|
+
declare class PlannerTimeoutError extends AgentError {
|
|
1002
|
+
readonly timeoutMs: number;
|
|
1003
|
+
constructor(timeoutMs: number);
|
|
1004
|
+
}
|
|
1005
|
+
declare class ExtractTimeoutError extends AgentError {
|
|
1006
|
+
readonly timeoutMs: number;
|
|
1007
|
+
constructor(timeoutMs: number);
|
|
1008
|
+
}
|
|
870
1009
|
|
|
871
1010
|
/**
|
|
872
1011
|
* Represents any reason why a test case could have failed, for example:
|
|
@@ -1006,5 +1145,4 @@ declare function buildDefaultBrowserAgentOptions({ agentOptions, browserOptions
|
|
|
1006
1145
|
|
|
1007
1146
|
declare const logger: pino.Logger<never, boolean>;
|
|
1008
1147
|
|
|
1009
|
-
export { ActionLimitError, Agent, AgentBusyError, AgentError, AgentMemory, BrowserAgent, BrowserBlockedError, BrowserConnector, BrowserProvider, DesktopConnector, Observation, OperationCancelledError, OperationDeadlineError, WebHarness, allBrowserAgentRoles, buildDefaultBrowserAgentOptions, createAction, createId, deepEquals, getCodebaseId, getMachineId, logger, mergeMessages, posthog, retryOnError, retryOnErrorIsSuccess, sendTelemetry, startBrowserAgent };
|
|
1010
|
-
export type { ActOptions, Action, ActionContext, ActionDefinition, ActionIntent, ActionPayload, AgentConnector, AgentErrorOptions, AgentEvents, AgentMemoryOptions, AgentOptions, AnthropicClient, ApiKeyFailure, AzureOpenAIClient, Base64Image, BasetenClient, BedrockClient, BlockReason, BrowserAgentRole, BrowserBlock, BrowserConnectorOptions, BrowserConnectorStateData, BrowserFailure, BrowserOptions, BugDetectedFailure, BugSeverity, CancelledFailure, CheckIntent, ClaudeCodeClient, ClickIntent, ClickWebAction, DesktopConnectorOptions, DesktopInterface, FailedTestCaseResult, FailureDescriptor, GoogleAIClient, GoogleVertexClient, HoverIntent, HoverWebAction, HttpDiagnostic, Intent, LLMClient, LLMClientIdentifier, MemoryRenderOptions, MisalignmentFailure, ModelUsage, NavigateWebAction, NetworkFailure, ObservableDataArray, ObservableDataObject, ObservableDataPrimitive, ObservationRetentionOptions, ObservationRole, ObservationSource, OpenAIClient, OpenAIGenericClient, OperationOptions, PixelCoordinate, RateLimitFailure, RecoveryOptions, RenderableContent, RetryMode, RetryOptions, RetryParams, ScrollIntent, ScrollWebAction, SerializedAgentMemory, SuccessfulTestCaseResult, SwitchTabIntent, SwitchTabWebAction, TestCaseDefinition, TestCaseResult, TestData, TestDataEntry, TestStepDefinition, TypeIntent, TypeWebAction, UnknownFailure, WebAction, WebHarnessEvents, WebHarnessOptions };
|
|
1148
|
+
export { type ActOptions, type Action, type ActionContext, type ActionDefinition, type ActionIntent, ActionLimitError, type ActionPayload, Agent, AgentBusyError, type AgentConnector, AgentError, type AgentErrorOptions, type AgentEvents, AgentMemory, type AgentMemoryOptions, type AgentOptions, type AnthropicClient, type ApiKeyFailure, type AzureOpenAIClient, type Base64Image, type BasetenClient, type BedrockClient, type BlockReason, BrowserAgent, type BrowserAgentRole, type BrowserBlock, BrowserBlockedError, type BrowserClickDiagnostics, BrowserConnector, type BrowserConnectorOptions, type BrowserConnectorStateData, type BrowserFailure, type BrowserOptions, BrowserProvider, type BugDetectedFailure, type BugSeverity, type CancelledFailure, type CheckIntent, type ClaudeCodeClient, type ClickIntent, type ClickWebAction, DesktopConnector, type DesktopConnectorOptions, type DesktopInterface, ExtractTimeoutError, type FailedTestCaseResult, type FailureDescriptor, type GoogleAIClient, type GoogleVertexClient, type HoverIntent, type HoverWebAction, type HttpDiagnostic, type Intent, type LLMClient, type LLMClientIdentifier, type MemoryRenderOptions, type MisalignmentFailure, type ModelUsage, type NavigateWebAction, type NetworkFailure, type ObservableDataArray, type ObservableDataObject, type ObservableDataPrimitive, Observation, type ObservationRetentionOptions, type ObservationRole, type ObservationSource, type OpenAIClient, type OpenAIGenericClient, OperationCancelledError, OperationDeadlineError, type OperationDiagnostics, type OperationKind, type OperationOptions, type OperationPhase, type OperationTiming, type PixelCoordinate, type PlannerCallDiagnostics, type PlannerOptions, PlannerTimeoutError, type ProviderAttemptDiagnostics, type RateLimitFailure, type RecoveryOptions, type RenderableContent, type RetryMode, type RetryOptions, type RetryParams, type ScrollIntent, type ScrollWebAction, type SerializedAgentMemory, type SuccessfulTestCaseResult, type SwitchTabIntent, type SwitchTabWebAction, type TestCaseDefinition, type TestCaseResult, type TestData, type TestDataEntry, type TestStepDefinition, type TimeoutPolicy, type TypeIntent, type TypeWebAction, type UnknownFailure, type WebAction, WebHarness, type WebHarnessEvents, type WebHarnessOptions, allBrowserAgentRoles, buildDefaultBrowserAgentOptions, createAction, createId, deepEquals, getCodebaseId, getMachineId, logger, mergeMessages, posthog, retryOnError, retryOnErrorIsSuccess, sendTelemetry, startBrowserAgent };
|