@aria-cli/tools 1.0.12 → 1.0.13
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/ask-user-interaction.d.ts +1 -0
- package/dist/ask-user-interaction.d.ts.map +1 -0
- package/dist/ask-user-interaction.js +1 -0
- package/dist/ask-user-interaction.js.map +1 -0
- package/dist/cache/web-cache.d.ts +1 -0
- package/dist/cache/web-cache.d.ts.map +1 -0
- package/dist/cache/web-cache.js +1 -0
- package/dist/cache/web-cache.js.map +1 -0
- package/dist/definitions/arion.d.ts +1 -0
- package/dist/definitions/arion.d.ts.map +1 -0
- package/dist/definitions/arion.js +1 -0
- package/dist/definitions/arion.js.map +1 -0
- package/dist/definitions/browser/browser.d.ts +1 -0
- package/dist/definitions/browser/browser.d.ts.map +1 -0
- package/dist/definitions/browser/browser.js +1 -0
- package/dist/definitions/browser/browser.js.map +1 -0
- package/dist/definitions/browser/index.d.ts +1 -0
- package/dist/definitions/browser/index.d.ts.map +1 -0
- package/dist/definitions/browser/index.js +1 -0
- package/dist/definitions/browser/index.js.map +1 -0
- package/dist/definitions/browser/pw-downloads.d.ts +1 -0
- package/dist/definitions/browser/pw-downloads.d.ts.map +1 -0
- package/dist/definitions/browser/pw-downloads.js +1 -0
- package/dist/definitions/browser/pw-downloads.js.map +1 -0
- package/dist/definitions/browser/pw-interactions.d.ts +1 -0
- package/dist/definitions/browser/pw-interactions.d.ts.map +1 -0
- package/dist/definitions/browser/pw-interactions.js +1 -0
- package/dist/definitions/browser/pw-interactions.js.map +1 -0
- package/dist/definitions/browser/pw-responses.d.ts +1 -0
- package/dist/definitions/browser/pw-responses.d.ts.map +1 -0
- package/dist/definitions/browser/pw-responses.js +1 -0
- package/dist/definitions/browser/pw-responses.js.map +1 -0
- package/dist/definitions/browser/pw-session.d.ts +1 -0
- package/dist/definitions/browser/pw-session.d.ts.map +1 -0
- package/dist/definitions/browser/pw-session.js +1 -0
- package/dist/definitions/browser/pw-session.js.map +1 -0
- package/dist/definitions/browser/pw-shared.d.ts +1 -0
- package/dist/definitions/browser/pw-shared.d.ts.map +1 -0
- package/dist/definitions/browser/pw-shared.js +1 -0
- package/dist/definitions/browser/pw-shared.js.map +1 -0
- package/dist/definitions/browser/pw-snapshot.d.ts +1 -0
- package/dist/definitions/browser/pw-snapshot.d.ts.map +1 -0
- package/dist/definitions/browser/pw-snapshot.js +1 -0
- package/dist/definitions/browser/pw-snapshot.js.map +1 -0
- package/dist/definitions/browser/pw-state.d.ts +1 -0
- package/dist/definitions/browser/pw-state.d.ts.map +1 -0
- package/dist/definitions/browser/pw-state.js +1 -0
- package/dist/definitions/browser/pw-state.js.map +1 -0
- package/dist/definitions/browser/types.d.ts +1 -0
- package/dist/definitions/browser/types.d.ts.map +1 -0
- package/dist/definitions/browser/types.js +1 -0
- package/dist/definitions/browser/types.js.map +1 -0
- package/dist/definitions/code-intelligence.d.ts +1 -0
- package/dist/definitions/code-intelligence.d.ts.map +1 -0
- package/dist/definitions/code-intelligence.js +1 -0
- package/dist/definitions/code-intelligence.js.map +1 -0
- package/dist/definitions/core.d.ts +1 -0
- package/dist/definitions/core.d.ts.map +1 -0
- package/dist/definitions/core.js +1 -0
- package/dist/definitions/core.js.map +1 -0
- package/dist/definitions/delegation.d.ts +1 -0
- package/dist/definitions/delegation.d.ts.map +1 -0
- package/dist/definitions/delegation.js +1 -0
- package/dist/definitions/delegation.js.map +1 -0
- package/dist/definitions/deploy.d.ts +1 -0
- package/dist/definitions/deploy.d.ts.map +1 -0
- package/dist/definitions/deploy.js +1 -0
- package/dist/definitions/deploy.js.map +1 -0
- package/dist/definitions/filesystem.d.ts +1 -0
- package/dist/definitions/filesystem.d.ts.map +1 -0
- package/dist/definitions/filesystem.js +1 -0
- package/dist/definitions/filesystem.js.map +1 -0
- package/dist/definitions/frg.d.ts +1 -0
- package/dist/definitions/frg.d.ts.map +1 -0
- package/dist/definitions/frg.js +1 -0
- package/dist/definitions/frg.js.map +1 -0
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/index.js +1 -0
- package/dist/definitions/index.js.map +1 -0
- package/dist/definitions/memory.d.ts +1 -0
- package/dist/definitions/memory.d.ts.map +1 -0
- package/dist/definitions/memory.js +1 -0
- package/dist/definitions/memory.js.map +1 -0
- package/dist/definitions/messaging.d.ts +1 -0
- package/dist/definitions/messaging.d.ts.map +1 -0
- package/dist/definitions/messaging.js +1 -0
- package/dist/definitions/messaging.js.map +1 -0
- package/dist/definitions/meta.d.ts +1 -0
- package/dist/definitions/meta.d.ts.map +1 -0
- package/dist/definitions/meta.js +1 -0
- package/dist/definitions/meta.js.map +1 -0
- package/dist/definitions/network.d.ts +1 -0
- package/dist/definitions/network.d.ts.map +1 -0
- package/dist/definitions/network.js +1 -0
- package/dist/definitions/network.js.map +1 -0
- package/dist/definitions/outlook.d.ts +1 -0
- package/dist/definitions/outlook.d.ts.map +1 -0
- package/dist/definitions/outlook.js +1 -0
- package/dist/definitions/outlook.js.map +1 -0
- package/dist/definitions/patch/apply-patch.d.ts +1 -0
- package/dist/definitions/patch/apply-patch.d.ts.map +1 -0
- package/dist/definitions/patch/apply-patch.js +1 -0
- package/dist/definitions/patch/apply-patch.js.map +1 -0
- package/dist/definitions/patch/fuzzy-match.d.ts +1 -0
- package/dist/definitions/patch/fuzzy-match.d.ts.map +1 -0
- package/dist/definitions/patch/fuzzy-match.js +1 -0
- package/dist/definitions/patch/fuzzy-match.js.map +1 -0
- package/dist/definitions/patch/index.d.ts +1 -0
- package/dist/definitions/patch/index.d.ts.map +1 -0
- package/dist/definitions/patch/index.js +1 -0
- package/dist/definitions/patch/index.js.map +1 -0
- package/dist/definitions/patch/patch-parser.d.ts +1 -0
- package/dist/definitions/patch/patch-parser.d.ts.map +1 -0
- package/dist/definitions/patch/patch-parser.js +1 -0
- package/dist/definitions/patch/patch-parser.js.map +1 -0
- package/dist/definitions/patch/sandbox-paths.d.ts +1 -0
- package/dist/definitions/patch/sandbox-paths.d.ts.map +1 -0
- package/dist/definitions/patch/sandbox-paths.js +1 -0
- package/dist/definitions/patch/sandbox-paths.js.map +1 -0
- package/dist/definitions/process/index.d.ts +1 -0
- package/dist/definitions/process/index.d.ts.map +1 -0
- package/dist/definitions/process/index.js +1 -0
- package/dist/definitions/process/index.js.map +1 -0
- package/dist/definitions/process/process-registry.d.ts +1 -0
- package/dist/definitions/process/process-registry.d.ts.map +1 -0
- package/dist/definitions/process/process-registry.js +1 -0
- package/dist/definitions/process/process-registry.js.map +1 -0
- package/dist/definitions/process/process.d.ts +1 -0
- package/dist/definitions/process/process.d.ts.map +1 -0
- package/dist/definitions/process/process.js +1 -0
- package/dist/definitions/process/process.js.map +1 -0
- package/dist/definitions/process/pty-keys.d.ts +1 -0
- package/dist/definitions/process/pty-keys.d.ts.map +1 -0
- package/dist/definitions/process/pty-keys.js +1 -0
- package/dist/definitions/process/pty-keys.js.map +1 -0
- package/dist/definitions/process/session-slug.d.ts +1 -0
- package/dist/definitions/process/session-slug.d.ts.map +1 -0
- package/dist/definitions/process/session-slug.js +1 -0
- package/dist/definitions/process/session-slug.js.map +1 -0
- package/dist/definitions/quip.d.ts +1 -0
- package/dist/definitions/quip.d.ts.map +1 -0
- package/dist/definitions/quip.js +1 -0
- package/dist/definitions/quip.js.map +1 -0
- package/dist/definitions/search.d.ts +1 -0
- package/dist/definitions/search.d.ts.map +1 -0
- package/dist/definitions/search.js +1 -0
- package/dist/definitions/search.js.map +1 -0
- package/dist/definitions/session-history.d.ts +1 -0
- package/dist/definitions/session-history.d.ts.map +1 -0
- package/dist/definitions/session-history.js +1 -0
- package/dist/definitions/session-history.js.map +1 -0
- package/dist/definitions/shell.d.ts +1 -0
- package/dist/definitions/shell.d.ts.map +1 -0
- package/dist/definitions/shell.js +1 -0
- package/dist/definitions/shell.js.map +1 -0
- package/dist/definitions/slack.d.ts +1 -0
- package/dist/definitions/slack.d.ts.map +1 -0
- package/dist/definitions/slack.js +1 -0
- package/dist/definitions/slack.js.map +1 -0
- package/dist/definitions/web.d.ts +1 -0
- package/dist/definitions/web.d.ts.map +1 -0
- package/dist/definitions/web.js +1 -0
- package/dist/definitions/web.js.map +1 -0
- package/dist/executors/apply-patch.d.ts +1 -0
- package/dist/executors/apply-patch.d.ts.map +1 -0
- package/dist/executors/apply-patch.js +1 -0
- package/dist/executors/apply-patch.js.map +1 -0
- package/dist/executors/arion.d.ts +1 -0
- package/dist/executors/arion.d.ts.map +1 -0
- package/dist/executors/arion.js +1 -0
- package/dist/executors/arion.js.map +1 -0
- package/dist/executors/code-intelligence.d.ts +1 -0
- package/dist/executors/code-intelligence.d.ts.map +1 -0
- package/dist/executors/code-intelligence.js +1 -0
- package/dist/executors/code-intelligence.js.map +1 -0
- package/dist/executors/deploy.d.ts +1 -0
- package/dist/executors/deploy.d.ts.map +1 -0
- package/dist/executors/deploy.js +1 -0
- package/dist/executors/deploy.js.map +1 -0
- package/dist/executors/filesystem.d.ts +1 -0
- package/dist/executors/filesystem.d.ts.map +1 -0
- package/dist/executors/filesystem.js +1 -0
- package/dist/executors/filesystem.js.map +1 -0
- package/dist/executors/frg-freshness.d.ts +1 -0
- package/dist/executors/frg-freshness.d.ts.map +1 -0
- package/dist/executors/frg-freshness.js +1 -0
- package/dist/executors/frg-freshness.js.map +1 -0
- package/dist/executors/frg.d.ts +1 -0
- package/dist/executors/frg.d.ts.map +1 -0
- package/dist/executors/frg.js +1 -0
- package/dist/executors/frg.js.map +1 -0
- package/dist/executors/index.d.ts +1 -0
- package/dist/executors/index.d.ts.map +1 -0
- package/dist/executors/index.js +1 -0
- package/dist/executors/index.js.map +1 -0
- package/dist/executors/learning-meta.d.ts +1 -0
- package/dist/executors/learning-meta.d.ts.map +1 -0
- package/dist/executors/learning-meta.js +1 -0
- package/dist/executors/learning-meta.js.map +1 -0
- package/dist/executors/lsp-client.d.ts +1 -0
- package/dist/executors/lsp-client.d.ts.map +1 -0
- package/dist/executors/lsp-client.js +1 -0
- package/dist/executors/lsp-client.js.map +1 -0
- package/dist/executors/memory.d.ts +1 -0
- package/dist/executors/memory.d.ts.map +1 -0
- package/dist/executors/memory.js +1 -0
- package/dist/executors/memory.js.map +1 -0
- package/dist/executors/meta.d.ts +1 -0
- package/dist/executors/meta.d.ts.map +1 -0
- package/dist/executors/meta.js +1 -0
- package/dist/executors/meta.js.map +1 -0
- package/dist/executors/process-registry.d.ts +1 -0
- package/dist/executors/process-registry.d.ts.map +1 -0
- package/dist/executors/process-registry.js +1 -0
- package/dist/executors/process-registry.js.map +1 -0
- package/dist/executors/pty-session-store.d.ts +1 -0
- package/dist/executors/pty-session-store.d.ts.map +1 -0
- package/dist/executors/pty-session-store.js +1 -0
- package/dist/executors/pty-session-store.js.map +1 -0
- package/dist/executors/pty.d.ts +1 -0
- package/dist/executors/pty.d.ts.map +1 -0
- package/dist/executors/pty.js +1 -0
- package/dist/executors/pty.js.map +1 -0
- package/dist/executors/restart.d.ts +1 -0
- package/dist/executors/restart.d.ts.map +1 -0
- package/dist/executors/restart.js +1 -0
- package/dist/executors/restart.js.map +1 -0
- package/dist/executors/search-freshness.d.ts +1 -0
- package/dist/executors/search-freshness.d.ts.map +1 -0
- package/dist/executors/search-freshness.js +1 -0
- package/dist/executors/search-freshness.js.map +1 -0
- package/dist/executors/search-types.d.ts +1 -0
- package/dist/executors/search-types.d.ts.map +1 -0
- package/dist/executors/search-types.js +1 -0
- package/dist/executors/search-types.js.map +1 -0
- package/dist/executors/search.d.ts +1 -0
- package/dist/executors/search.d.ts.map +1 -0
- package/dist/executors/search.js +1 -0
- package/dist/executors/search.js.map +1 -0
- package/dist/executors/self-diagnose.d.ts +1 -0
- package/dist/executors/self-diagnose.d.ts.map +1 -0
- package/dist/executors/self-diagnose.js +1 -0
- package/dist/executors/self-diagnose.js.map +1 -0
- package/dist/executors/session-history.d.ts +1 -0
- package/dist/executors/session-history.d.ts.map +1 -0
- package/dist/executors/session-history.js +1 -0
- package/dist/executors/session-history.js.map +1 -0
- package/dist/executors/shell-safety.d.ts +1 -0
- package/dist/executors/shell-safety.d.ts.map +1 -0
- package/dist/executors/shell-safety.js +1 -0
- package/dist/executors/shell-safety.js.map +1 -0
- package/dist/executors/shell.d.ts +1 -0
- package/dist/executors/shell.d.ts.map +1 -0
- package/dist/executors/shell.js +1 -0
- package/dist/executors/shell.js.map +1 -0
- package/dist/executors/utils.d.ts +1 -0
- package/dist/executors/utils.d.ts.map +1 -0
- package/dist/executors/utils.js +1 -0
- package/dist/executors/utils.js.map +1 -0
- package/dist/executors/web.d.ts +1 -0
- package/dist/executors/web.d.ts.map +1 -0
- package/dist/executors/web.js +1 -0
- package/dist/executors/web.js.map +1 -0
- package/dist/extraction/content-extraction.d.ts +1 -0
- package/dist/extraction/content-extraction.d.ts.map +1 -0
- package/dist/extraction/content-extraction.js +1 -0
- package/dist/extraction/content-extraction.js.map +1 -0
- package/dist/extraction/index.d.ts +1 -0
- package/dist/extraction/index.d.ts.map +1 -0
- package/dist/extraction/index.js +1 -0
- package/dist/extraction/index.js.map +1 -0
- package/dist/headless-control-contract.d.ts +1 -0
- package/dist/headless-control-contract.d.ts.map +1 -0
- package/dist/headless-control-contract.js +1 -0
- package/dist/headless-control-contract.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/local-control-http-auth.d.ts +1 -0
- package/dist/local-control-http-auth.d.ts.map +1 -0
- package/dist/local-control-http-auth.js +1 -0
- package/dist/local-control-http-auth.js.map +1 -0
- package/dist/mcp/client.d.ts +1 -0
- package/dist/mcp/client.d.ts.map +1 -0
- package/dist/mcp/client.js +1 -0
- package/dist/mcp/client.js.map +1 -0
- package/dist/mcp/connection.d.ts +1 -0
- package/dist/mcp/connection.d.ts.map +1 -0
- package/dist/mcp/connection.js +1 -0
- package/dist/mcp/connection.js.map +1 -0
- package/dist/mcp/index.d.ts +1 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +1 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/jsonrpc.d.ts +1 -0
- package/dist/mcp/jsonrpc.d.ts.map +1 -0
- package/dist/mcp/jsonrpc.js +1 -0
- package/dist/mcp/jsonrpc.js.map +1 -0
- package/dist/mcp/types.d.ts +1 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +1 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/network-control-adapter.d.ts +1 -0
- package/dist/network-control-adapter.d.ts.map +1 -0
- package/dist/network-control-adapter.js +1 -0
- package/dist/network-control-adapter.js.map +1 -0
- package/dist/network-runtime/address-types.d.ts +1 -0
- package/dist/network-runtime/address-types.d.ts.map +1 -0
- package/dist/network-runtime/address-types.js +1 -0
- package/dist/network-runtime/address-types.js.map +1 -0
- package/dist/network-runtime/db-owner-fencing.d.ts +1 -0
- package/dist/network-runtime/db-owner-fencing.d.ts.map +1 -0
- package/dist/network-runtime/db-owner-fencing.js +1 -0
- package/dist/network-runtime/db-owner-fencing.js.map +1 -0
- package/dist/network-runtime/delivery-receipts.d.ts +1 -0
- package/dist/network-runtime/delivery-receipts.d.ts.map +1 -0
- package/dist/network-runtime/delivery-receipts.js +1 -0
- package/dist/network-runtime/delivery-receipts.js.map +1 -0
- package/dist/network-runtime/direct-endpoint-authority.d.ts +1 -0
- package/dist/network-runtime/direct-endpoint-authority.d.ts.map +1 -0
- package/dist/network-runtime/direct-endpoint-authority.js +1 -0
- package/dist/network-runtime/direct-endpoint-authority.js.map +1 -0
- package/dist/network-runtime/index.d.ts +1 -0
- package/dist/network-runtime/index.d.ts.map +1 -0
- package/dist/network-runtime/index.js +1 -0
- package/dist/network-runtime/index.js.map +1 -0
- package/dist/network-runtime/local-control-contract.d.ts +1 -0
- package/dist/network-runtime/local-control-contract.d.ts.map +1 -0
- package/dist/network-runtime/local-control-contract.js +1 -0
- package/dist/network-runtime/local-control-contract.js.map +1 -0
- package/dist/network-runtime/node-store-contract.d.ts +1 -0
- package/dist/network-runtime/node-store-contract.d.ts.map +1 -0
- package/dist/network-runtime/node-store-contract.js +1 -0
- package/dist/network-runtime/node-store-contract.js.map +1 -0
- package/dist/network-runtime/pair-route-contract.d.ts +1 -0
- package/dist/network-runtime/pair-route-contract.d.ts.map +1 -0
- package/dist/network-runtime/pair-route-contract.js +1 -0
- package/dist/network-runtime/pair-route-contract.js.map +1 -0
- package/dist/network-runtime/peer-capabilities.d.ts +1 -0
- package/dist/network-runtime/peer-capabilities.d.ts.map +1 -0
- package/dist/network-runtime/peer-capabilities.js +1 -0
- package/dist/network-runtime/peer-capabilities.js.map +1 -0
- package/dist/network-runtime/peer-principal-ref.d.ts +1 -0
- package/dist/network-runtime/peer-principal-ref.d.ts.map +1 -0
- package/dist/network-runtime/peer-principal-ref.js +1 -0
- package/dist/network-runtime/peer-principal-ref.js.map +1 -0
- package/dist/network-runtime/peer-state-machine.d.ts +1 -0
- package/dist/network-runtime/peer-state-machine.d.ts.map +1 -0
- package/dist/network-runtime/peer-state-machine.js +1 -0
- package/dist/network-runtime/peer-state-machine.js.map +1 -0
- package/dist/network-runtime/protocol-schemas.d.ts +1 -0
- package/dist/network-runtime/protocol-schemas.d.ts.map +1 -0
- package/dist/network-runtime/protocol-schemas.js +1 -0
- package/dist/network-runtime/protocol-schemas.js.map +1 -0
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts +1 -0
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts.map +1 -0
- package/dist/network-runtime/runtime-bootstrap-contract.js +1 -0
- package/dist/network-runtime/runtime-bootstrap-contract.js.map +1 -0
- package/dist/outlook/desktop-session.d.ts +1 -0
- package/dist/outlook/desktop-session.d.ts.map +1 -0
- package/dist/outlook/desktop-session.js +1 -0
- package/dist/outlook/desktop-session.js.map +1 -0
- package/dist/policy.d.ts +1 -0
- package/dist/policy.d.ts.map +1 -0
- package/dist/policy.js +1 -0
- package/dist/policy.js.map +1 -0
- package/dist/providers/brave.d.ts +1 -0
- package/dist/providers/brave.d.ts.map +1 -0
- package/dist/providers/brave.js +1 -0
- package/dist/providers/brave.js.map +1 -0
- package/dist/providers/duckduckgo.d.ts +1 -0
- package/dist/providers/duckduckgo.d.ts.map +1 -0
- package/dist/providers/duckduckgo.js +1 -0
- package/dist/providers/duckduckgo.js.map +1 -0
- package/dist/providers/exa.d.ts +1 -0
- package/dist/providers/exa.d.ts.map +1 -0
- package/dist/providers/exa.js +1 -0
- package/dist/providers/exa.js.map +1 -0
- package/dist/providers/firecrawl.d.ts +1 -0
- package/dist/providers/firecrawl.d.ts.map +1 -0
- package/dist/providers/firecrawl.js +1 -0
- package/dist/providers/firecrawl.js.map +1 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/jina.d.ts +1 -0
- package/dist/providers/jina.d.ts.map +1 -0
- package/dist/providers/jina.js +1 -0
- package/dist/providers/jina.js.map +1 -0
- package/dist/providers/router.d.ts +1 -0
- package/dist/providers/router.d.ts.map +1 -0
- package/dist/providers/router.js +1 -0
- package/dist/providers/router.js.map +1 -0
- package/dist/providers/search-provider.d.ts +1 -0
- package/dist/providers/search-provider.d.ts.map +1 -0
- package/dist/providers/search-provider.js +1 -0
- package/dist/providers/search-provider.js.map +1 -0
- package/dist/providers/tavily.d.ts +1 -0
- package/dist/providers/tavily.d.ts.map +1 -0
- package/dist/providers/tavily.js +1 -0
- package/dist/providers/tavily.js.map +1 -0
- package/dist/quip/desktop-session.d.ts +1 -0
- package/dist/quip/desktop-session.d.ts.map +1 -0
- package/dist/quip/desktop-session.js +1 -0
- package/dist/quip/desktop-session.js.map +1 -0
- package/dist/registry/index.d.ts +1 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +1 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/registry.d.ts +1 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +1 -0
- package/dist/registry/registry.js.map +1 -0
- package/dist/runtime-socket-local-control-client.d.ts +1 -0
- package/dist/runtime-socket-local-control-client.d.ts.map +1 -0
- package/dist/runtime-socket-local-control-client.js +1 -0
- package/dist/runtime-socket-local-control-client.js.map +1 -0
- package/dist/security/dns-normalization.d.ts +1 -0
- package/dist/security/dns-normalization.d.ts.map +1 -0
- package/dist/security/dns-normalization.js +1 -0
- package/dist/security/dns-normalization.js.map +1 -0
- package/dist/security/dns-pinning.d.ts +1 -0
- package/dist/security/dns-pinning.d.ts.map +1 -0
- package/dist/security/dns-pinning.js +1 -0
- package/dist/security/dns-pinning.js.map +1 -0
- package/dist/security/external-content.d.ts +1 -0
- package/dist/security/external-content.d.ts.map +1 -0
- package/dist/security/external-content.js +1 -0
- package/dist/security/external-content.js.map +1 -0
- package/dist/security/ssrf.d.ts +1 -0
- package/dist/security/ssrf.d.ts.map +1 -0
- package/dist/security/ssrf.js +1 -0
- package/dist/security/ssrf.js.map +1 -0
- package/dist/slack/desktop-session.d.ts +1 -0
- package/dist/slack/desktop-session.d.ts.map +1 -0
- package/dist/slack/desktop-session.js +1 -0
- package/dist/slack/desktop-session.js.map +1 -0
- package/dist/tool-factory.d.ts +1 -0
- package/dist/tool-factory.d.ts.map +1 -0
- package/dist/tool-factory.js +1 -0
- package/dist/tool-factory.js.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/retry.d.ts +1 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/utils/retry.js +1 -0
- package/dist/utils/retry.js.map +1 -0
- package/dist/utils/safe-parse-json.d.ts +1 -0
- package/dist/utils/safe-parse-json.d.ts.map +1 -0
- package/dist/utils/safe-parse-json.js +1 -0
- package/dist/utils/safe-parse-json.js.map +1 -0
- package/dist/utils/url.d.ts +1 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/url.js +1 -0
- package/dist/utils/url.js.map +1 -0
- package/dist-cjs/index.js +400 -435
- package/dist-cjs/network-runtime/index.js +8 -172
- package/package.json +6 -6
- package/dist-cjs/ask-user-interaction.js +0 -27
- package/dist-cjs/cache/web-cache.js +0 -70
- package/dist-cjs/definitions/arion.js +0 -107
- package/dist-cjs/definitions/browser/browser.js +0 -421
- package/dist-cjs/definitions/browser/index.js +0 -8
- package/dist-cjs/definitions/browser/pw-downloads.js +0 -117
- package/dist-cjs/definitions/browser/pw-interactions.js +0 -213
- package/dist-cjs/definitions/browser/pw-responses.js +0 -84
- package/dist-cjs/definitions/browser/pw-session.js +0 -326
- package/dist-cjs/definitions/browser/pw-shared.js +0 -72
- package/dist-cjs/definitions/browser/pw-snapshot.js +0 -307
- package/dist-cjs/definitions/browser/pw-state.js +0 -70
- package/dist-cjs/definitions/browser/types.js +0 -5
- package/dist-cjs/definitions/code-intelligence.js +0 -473
- package/dist-cjs/definitions/core.js +0 -133
- package/dist-cjs/definitions/delegation.js +0 -515
- package/dist-cjs/definitions/deploy.js +0 -68
- package/dist-cjs/definitions/filesystem.js +0 -199
- package/dist-cjs/definitions/frg.js +0 -66
- package/dist-cjs/definitions/index.js +0 -43
- package/dist-cjs/definitions/memory.js +0 -126
- package/dist-cjs/definitions/messaging.js +0 -631
- package/dist-cjs/definitions/meta.js +0 -352
- package/dist-cjs/definitions/network.js +0 -162
- package/dist-cjs/definitions/outlook.js +0 -280
- package/dist-cjs/definitions/patch/apply-patch.js +0 -191
- package/dist-cjs/definitions/patch/fuzzy-match.js +0 -172
- package/dist-cjs/definitions/patch/index.js +0 -5
- package/dist-cjs/definitions/patch/patch-parser.js +0 -215
- package/dist-cjs/definitions/patch/sandbox-paths.js +0 -113
- package/dist-cjs/definitions/process/index.js +0 -8
- package/dist-cjs/definitions/process/process-registry.js +0 -231
- package/dist-cjs/definitions/process/process.js +0 -389
- package/dist-cjs/definitions/process/pty-keys.js +0 -259
- package/dist-cjs/definitions/process/session-slug.js +0 -145
- package/dist-cjs/definitions/quip.js +0 -198
- package/dist-cjs/definitions/search.js +0 -63
- package/dist-cjs/definitions/session-history.js +0 -72
- package/dist-cjs/definitions/shell.js +0 -184
- package/dist-cjs/definitions/slack.js +0 -183
- package/dist-cjs/definitions/web.js +0 -112
- package/dist-cjs/executors/apply-patch.js +0 -938
- package/dist-cjs/executors/arion.js +0 -125
- package/dist-cjs/executors/code-intelligence.js +0 -925
- package/dist-cjs/executors/deploy.js +0 -869
- package/dist-cjs/executors/filesystem.js +0 -1167
- package/dist-cjs/executors/frg-freshness.js +0 -627
- package/dist-cjs/executors/frg.js +0 -334
- package/dist-cjs/executors/index.js +0 -143
- package/dist-cjs/executors/learning-meta.js +0 -1165
- package/dist-cjs/executors/lsp-client.js +0 -310
- package/dist-cjs/executors/memory.js +0 -796
- package/dist-cjs/executors/meta.js +0 -226
- package/dist-cjs/executors/process-registry.js +0 -469
- package/dist-cjs/executors/pty-session-store.js +0 -34
- package/dist-cjs/executors/pty.js +0 -312
- package/dist-cjs/executors/restart.js +0 -155
- package/dist-cjs/executors/search-freshness.js +0 -234
- package/dist-cjs/executors/search-types.js +0 -56
- package/dist-cjs/executors/search.js +0 -102
- package/dist-cjs/executors/self-diagnose.js +0 -434
- package/dist-cjs/executors/session-history.js +0 -320
- package/dist-cjs/executors/shell-safety.js +0 -478
- package/dist-cjs/executors/shell.js +0 -1001
- package/dist-cjs/executors/utils.js +0 -73
- package/dist-cjs/executors/web.js +0 -547
- package/dist-cjs/extraction/content-extraction.js +0 -243
- package/dist-cjs/extraction/index.js +0 -8
- package/dist-cjs/headless-control-contract.js +0 -972
- package/dist-cjs/local-control-http-auth.js +0 -5
- package/dist-cjs/mcp/client.js +0 -185
- package/dist-cjs/mcp/connection.js +0 -484
- package/dist-cjs/mcp/index.js +0 -30
- package/dist-cjs/mcp/jsonrpc.js +0 -148
- package/dist-cjs/mcp/types.js +0 -8
- package/dist-cjs/network-control-adapter.js +0 -77
- package/dist-cjs/network-runtime/address-types.js +0 -168
- package/dist-cjs/network-runtime/db-owner-fencing.js +0 -76
- package/dist-cjs/network-runtime/delivery-receipts.js +0 -276
- package/dist-cjs/network-runtime/direct-endpoint-authority.js +0 -29
- package/dist-cjs/network-runtime/local-control-contract.js +0 -633
- package/dist-cjs/network-runtime/node-store-contract.js +0 -38
- package/dist-cjs/network-runtime/pair-route-contract.js +0 -80
- package/dist-cjs/network-runtime/peer-capabilities.js +0 -37
- package/dist-cjs/network-runtime/peer-principal-ref.js +0 -15
- package/dist-cjs/network-runtime/peer-state-machine.js +0 -129
- package/dist-cjs/network-runtime/protocol-schemas.js +0 -212
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.js +0 -63
- package/dist-cjs/outlook/desktop-session.js +0 -318
- package/dist-cjs/policy.js +0 -155
- package/dist-cjs/providers/brave.js +0 -66
- package/dist-cjs/providers/duckduckgo.js +0 -180
- package/dist-cjs/providers/exa.js +0 -67
- package/dist-cjs/providers/firecrawl.js +0 -59
- package/dist-cjs/providers/index.js +0 -17
- package/dist-cjs/providers/jina.js +0 -53
- package/dist-cjs/providers/router.js +0 -100
- package/dist-cjs/providers/search-provider.js +0 -36
- package/dist-cjs/providers/tavily.js +0 -58
- package/dist-cjs/quip/desktop-session.js +0 -353
- package/dist-cjs/registry/index.js +0 -6
- package/dist-cjs/registry/registry.js +0 -761
- package/dist-cjs/runtime-socket-local-control-client.js +0 -367
- package/dist-cjs/security/dns-normalization.js +0 -22
- package/dist-cjs/security/dns-pinning.js +0 -160
- package/dist-cjs/security/external-content.js +0 -95
- package/dist-cjs/security/ssrf.js +0 -221
- package/dist-cjs/slack/desktop-session.js +0 -366
- package/dist-cjs/tool-factory.js +0 -50
- package/dist-cjs/types.js +0 -8
- package/dist-cjs/utils/retry.js +0 -169
- package/dist-cjs/utils/safe-parse-json.js +0 -164
- package/dist-cjs/utils/url.js +0 -23
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Originally from OpenClaw (MIT License, Copyright 2025 Peter Steinberger)
|
|
3
|
-
// https://github.com/openclaw/openclaw
|
|
4
|
-
// Modified for ARIA — stripped OpenClaw runtime, rewired to ARIA Tool interface
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.refLocator = refLocator;
|
|
7
|
-
exports.clickViaPlaywright = clickViaPlaywright;
|
|
8
|
-
exports.hoverViaPlaywright = hoverViaPlaywright;
|
|
9
|
-
exports.dragViaPlaywright = dragViaPlaywright;
|
|
10
|
-
exports.typeViaPlaywright = typeViaPlaywright;
|
|
11
|
-
exports.selectOptionViaPlaywright = selectOptionViaPlaywright;
|
|
12
|
-
exports.pressKeyViaPlaywright = pressKeyViaPlaywright;
|
|
13
|
-
exports.evaluateViaPlaywright = evaluateViaPlaywright;
|
|
14
|
-
exports.takeScreenshot = takeScreenshot;
|
|
15
|
-
exports.scrollPage = scrollPage;
|
|
16
|
-
exports.waitForCondition = waitForCondition;
|
|
17
|
-
exports.uploadFiles = uploadFiles;
|
|
18
|
-
const pw_shared_js_1 = require("./pw-shared.js");
|
|
19
|
-
// ── Ref locator ───────────────────────────────────────────────────────
|
|
20
|
-
/**
|
|
21
|
-
* Resolve a ref string (e.g. "e1") into a Playwright Locator using the
|
|
22
|
-
* role-ref map from the last snapshot.
|
|
23
|
-
*/
|
|
24
|
-
function refLocator(page, ref, refs) {
|
|
25
|
-
const normalized = ref.startsWith("@")
|
|
26
|
-
? ref.slice(1)
|
|
27
|
-
: ref.startsWith("ref=")
|
|
28
|
-
? ref.slice(4)
|
|
29
|
-
: ref;
|
|
30
|
-
if (/^e\d+$/.test(normalized)) {
|
|
31
|
-
const info = refs[normalized];
|
|
32
|
-
if (!info) {
|
|
33
|
-
throw new Error(`Unknown ref "${normalized}". Run a new snapshot and use a ref from that snapshot.`);
|
|
34
|
-
}
|
|
35
|
-
const locator = info.name
|
|
36
|
-
? page.getByRole(info.role, { name: info.name, exact: true })
|
|
37
|
-
: page.getByRole(info.role);
|
|
38
|
-
return info.nth !== undefined ? locator.nth(info.nth) : locator;
|
|
39
|
-
}
|
|
40
|
-
// Fallback: treat as CSS selector
|
|
41
|
-
return page.locator(normalized);
|
|
42
|
-
}
|
|
43
|
-
// ── Click ─────────────────────────────────────────────────────────────
|
|
44
|
-
async function clickViaPlaywright(opts) {
|
|
45
|
-
const ref = (0, pw_shared_js_1.requireRef)(opts.ref);
|
|
46
|
-
const locator = refLocator(opts.page, ref, opts.refs);
|
|
47
|
-
const timeout = (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeoutMs, 8000);
|
|
48
|
-
try {
|
|
49
|
-
if (opts.doubleClick) {
|
|
50
|
-
await locator.dblclick({
|
|
51
|
-
timeout,
|
|
52
|
-
button: opts.button,
|
|
53
|
-
modifiers: opts.modifiers,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
await locator.click({
|
|
58
|
-
timeout,
|
|
59
|
-
button: opts.button,
|
|
60
|
-
modifiers: opts.modifiers,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (err) {
|
|
65
|
-
throw (0, pw_shared_js_1.toAIFriendlyError)(err, ref);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
// ── Hover ─────────────────────────────────────────────────────────────
|
|
69
|
-
async function hoverViaPlaywright(opts) {
|
|
70
|
-
const ref = (0, pw_shared_js_1.requireRef)(opts.ref);
|
|
71
|
-
try {
|
|
72
|
-
await refLocator(opts.page, ref, opts.refs).hover({
|
|
73
|
-
timeout: (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeoutMs, 8000),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
catch (err) {
|
|
77
|
-
throw (0, pw_shared_js_1.toAIFriendlyError)(err, ref);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
// ── Drag ──────────────────────────────────────────────────────────────
|
|
81
|
-
async function dragViaPlaywright(opts) {
|
|
82
|
-
const startRef = (0, pw_shared_js_1.requireRef)(opts.startRef);
|
|
83
|
-
const endRef = (0, pw_shared_js_1.requireRef)(opts.endRef);
|
|
84
|
-
try {
|
|
85
|
-
await refLocator(opts.page, startRef, opts.refs).dragTo(refLocator(opts.page, endRef, opts.refs), { timeout: (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeoutMs, 8000) });
|
|
86
|
-
}
|
|
87
|
-
catch (err) {
|
|
88
|
-
throw (0, pw_shared_js_1.toAIFriendlyError)(err, `${startRef} -> ${endRef}`);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
// ── Type ──────────────────────────────────────────────────────────────
|
|
92
|
-
async function typeViaPlaywright(opts) {
|
|
93
|
-
const text = String(opts.text ?? "");
|
|
94
|
-
const ref = (0, pw_shared_js_1.requireRef)(opts.ref);
|
|
95
|
-
const locator = refLocator(opts.page, ref, opts.refs);
|
|
96
|
-
const timeout = (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeoutMs, 8000);
|
|
97
|
-
try {
|
|
98
|
-
if (opts.slowly) {
|
|
99
|
-
await locator.click({ timeout });
|
|
100
|
-
await locator.type(text, { timeout, delay: 75 });
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
await locator.fill(text, { timeout });
|
|
104
|
-
}
|
|
105
|
-
if (opts.submit) {
|
|
106
|
-
await locator.press("Enter", { timeout });
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
catch (err) {
|
|
110
|
-
throw (0, pw_shared_js_1.toAIFriendlyError)(err, ref);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
// ── Select option ─────────────────────────────────────────────────────
|
|
114
|
-
async function selectOptionViaPlaywright(opts) {
|
|
115
|
-
const ref = (0, pw_shared_js_1.requireRef)(opts.ref);
|
|
116
|
-
if (!opts.values?.length) {
|
|
117
|
-
throw new Error("values are required");
|
|
118
|
-
}
|
|
119
|
-
try {
|
|
120
|
-
await refLocator(opts.page, ref, opts.refs).selectOption(opts.values, {
|
|
121
|
-
timeout: (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeoutMs, 8000),
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
catch (err) {
|
|
125
|
-
throw (0, pw_shared_js_1.toAIFriendlyError)(err, ref);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// ── Key press ─────────────────────────────────────────────────────────
|
|
129
|
-
async function pressKeyViaPlaywright(opts) {
|
|
130
|
-
const key = String(opts.key ?? "").trim();
|
|
131
|
-
if (!key) {
|
|
132
|
-
throw new Error("key is required");
|
|
133
|
-
}
|
|
134
|
-
await opts.page.keyboard.press(key);
|
|
135
|
-
}
|
|
136
|
-
// ── Evaluate ──────────────────────────────────────────────────────────
|
|
137
|
-
async function evaluateViaPlaywright(opts) {
|
|
138
|
-
const script = String(opts.script ?? "").trim();
|
|
139
|
-
if (!script) {
|
|
140
|
-
throw new Error("script is required");
|
|
141
|
-
}
|
|
142
|
-
const evaluateTimeout = (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeoutMs, 20_000);
|
|
143
|
-
// Inject a timeout wrapper into the browser context so async scripts
|
|
144
|
-
// don't block the Playwright command queue indefinitely.
|
|
145
|
-
// We use a string-form evaluate to avoid TypeScript signature conflicts
|
|
146
|
-
// with our minimal PwPage interface.
|
|
147
|
-
const wrappedScript = `
|
|
148
|
-
(function() {
|
|
149
|
-
var fnBody = ${JSON.stringify(script)};
|
|
150
|
-
var timeoutMs = ${evaluateTimeout};
|
|
151
|
-
try {
|
|
152
|
-
var candidate = eval("(" + fnBody + ")");
|
|
153
|
-
var result = typeof candidate === "function" ? candidate() : candidate;
|
|
154
|
-
if (result && typeof result === "object" && typeof result.then === "function") {
|
|
155
|
-
return Promise.race([
|
|
156
|
-
result,
|
|
157
|
-
new Promise(function(_, reject) {
|
|
158
|
-
setTimeout(function() { reject(new Error("evaluate timed out after " + timeoutMs + "ms")); }, timeoutMs);
|
|
159
|
-
})
|
|
160
|
-
]);
|
|
161
|
-
}
|
|
162
|
-
return result;
|
|
163
|
-
} catch (err) {
|
|
164
|
-
throw new Error("Invalid evaluate function: " + (err && err.message ? err.message : String(err)));
|
|
165
|
-
}
|
|
166
|
-
})()
|
|
167
|
-
`;
|
|
168
|
-
const result = await opts.page.evaluate(wrappedScript);
|
|
169
|
-
return result;
|
|
170
|
-
}
|
|
171
|
-
// ── Screenshot ────────────────────────────────────────────────────────
|
|
172
|
-
async function takeScreenshot(opts) {
|
|
173
|
-
return opts.page.screenshot({
|
|
174
|
-
type: "png",
|
|
175
|
-
fullPage: Boolean(opts.fullPage),
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
// ── Scroll ────────────────────────────────────────────────────────────
|
|
179
|
-
async function scrollPage(opts) {
|
|
180
|
-
const pixels = Math.max(100, Math.min(5000, opts.amount ?? 500));
|
|
181
|
-
const deltaY = opts.direction === "up" ? -pixels : pixels;
|
|
182
|
-
await opts.page.mouse.wheel(0, deltaY);
|
|
183
|
-
// Give the page a moment to process the scroll
|
|
184
|
-
await opts.page.waitForTimeout(300);
|
|
185
|
-
}
|
|
186
|
-
// ── Wait ──────────────────────────────────────────────────────────────
|
|
187
|
-
async function waitForCondition(opts) {
|
|
188
|
-
const timeout = (0, pw_shared_js_1.normalizeTimeoutMs)(opts.timeout, 10_000);
|
|
189
|
-
if (opts.text) {
|
|
190
|
-
await opts.page.locator(`text=${opts.text}`).first().waitFor({ state: "visible", timeout });
|
|
191
|
-
return;
|
|
192
|
-
}
|
|
193
|
-
if (opts.selector) {
|
|
194
|
-
await opts.page.locator(opts.selector).first().waitFor({ state: "visible", timeout });
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
// Default: wait for network idle
|
|
198
|
-
await opts.page.waitForLoadState("networkidle", { timeout });
|
|
199
|
-
}
|
|
200
|
-
// ── Upload ────────────────────────────────────────────────────────────
|
|
201
|
-
async function uploadFiles(opts) {
|
|
202
|
-
if (!opts.paths?.length) {
|
|
203
|
-
throw new Error("paths are required");
|
|
204
|
-
}
|
|
205
|
-
const ref = (0, pw_shared_js_1.requireRef)(opts.ref);
|
|
206
|
-
const locator = refLocator(opts.page, ref, opts.refs);
|
|
207
|
-
try {
|
|
208
|
-
await locator.setInputFiles(opts.paths);
|
|
209
|
-
}
|
|
210
|
-
catch (err) {
|
|
211
|
-
throw (0, pw_shared_js_1.toAIFriendlyError)(err, ref);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Originally from OpenClaw (MIT License, Copyright 2025 Peter Steinberger)
|
|
3
|
-
// https://github.com/openclaw/openclaw
|
|
4
|
-
// Modified for ARIA — stripped OpenClaw runtime, rewired to ARIA Tool interface
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MAX_PAGE_ERRORS = exports.MAX_NETWORK_REQUESTS = exports.MAX_CONSOLE_MESSAGES = void 0;
|
|
7
|
-
exports.filterConsoleMessages = filterConsoleMessages;
|
|
8
|
-
exports.filterNetworkRequests = filterNetworkRequests;
|
|
9
|
-
exports.formatConsoleMessages = formatConsoleMessages;
|
|
10
|
-
exports.formatNetworkRequests = formatNetworkRequests;
|
|
11
|
-
exports.formatPageErrors = formatPageErrors;
|
|
12
|
-
// ── Circular buffer limits ────────────────────────────────────────────
|
|
13
|
-
exports.MAX_CONSOLE_MESSAGES = 500;
|
|
14
|
-
exports.MAX_NETWORK_REQUESTS = 500;
|
|
15
|
-
exports.MAX_PAGE_ERRORS = 200;
|
|
16
|
-
// ── Console message filtering ─────────────────────────────────────────
|
|
17
|
-
function consolePriority(level) {
|
|
18
|
-
switch (level) {
|
|
19
|
-
case "error":
|
|
20
|
-
return 3;
|
|
21
|
-
case "warning":
|
|
22
|
-
return 2;
|
|
23
|
-
case "info":
|
|
24
|
-
case "log":
|
|
25
|
-
return 1;
|
|
26
|
-
case "debug":
|
|
27
|
-
return 0;
|
|
28
|
-
default:
|
|
29
|
-
return 1;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Filter console messages by minimum severity level.
|
|
34
|
-
*/
|
|
35
|
-
function filterConsoleMessages(messages, level) {
|
|
36
|
-
if (!level) {
|
|
37
|
-
return [...messages];
|
|
38
|
-
}
|
|
39
|
-
const min = consolePriority(level);
|
|
40
|
-
return messages.filter((msg) => consolePriority(msg.type) >= min);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Filter network requests by URL substring match.
|
|
44
|
-
*/
|
|
45
|
-
function filterNetworkRequests(requests, filter) {
|
|
46
|
-
const pattern = typeof filter === "string" ? filter.trim() : "";
|
|
47
|
-
if (!pattern) {
|
|
48
|
-
return [...requests];
|
|
49
|
-
}
|
|
50
|
-
return requests.filter((r) => r.url.includes(pattern));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Format console messages for tool output.
|
|
54
|
-
*/
|
|
55
|
-
function formatConsoleMessages(messages) {
|
|
56
|
-
if (!messages.length) {
|
|
57
|
-
return "No console messages captured.";
|
|
58
|
-
}
|
|
59
|
-
return messages.map((m) => `[${m.type.toUpperCase()}] ${m.text}`).join("\n");
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Format network requests for tool output.
|
|
63
|
-
*/
|
|
64
|
-
function formatNetworkRequests(requests) {
|
|
65
|
-
if (!requests.length) {
|
|
66
|
-
return "No network requests captured.";
|
|
67
|
-
}
|
|
68
|
-
return requests
|
|
69
|
-
.map((r) => {
|
|
70
|
-
const status = r.status !== undefined ? ` ${r.status}` : "";
|
|
71
|
-
const failure = r.failureText ? ` (FAILED: ${r.failureText})` : "";
|
|
72
|
-
return `${r.method}${status} ${r.url}${failure}`;
|
|
73
|
-
})
|
|
74
|
-
.join("\n");
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Format page errors for tool output.
|
|
78
|
-
*/
|
|
79
|
-
function formatPageErrors(errors) {
|
|
80
|
-
if (!errors.length) {
|
|
81
|
-
return "No page errors captured.";
|
|
82
|
-
}
|
|
83
|
-
return errors.map((e) => `${e.name ?? "Error"}: ${e.message}`).join("\n");
|
|
84
|
-
}
|
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Originally from OpenClaw (MIT License, Copyright 2025 Peter Steinberger)
|
|
3
|
-
// https://github.com/openclaw/openclaw
|
|
4
|
-
// Modified for ARIA — stripped OpenClaw runtime, rewired to ARIA Tool interface
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getSession = getSession;
|
|
7
|
-
exports.getRefs = getRefs;
|
|
8
|
-
exports.setRefs = setRefs;
|
|
9
|
-
exports.getConsoleMessages = getConsoleMessages;
|
|
10
|
-
exports.getNetworkRequests = getNetworkRequests;
|
|
11
|
-
exports.getPageErrors = getPageErrors;
|
|
12
|
-
exports.setPlaywrightLoaderForTest = setPlaywrightLoaderForTest;
|
|
13
|
-
exports.resolveChromiumLauncher = resolveChromiumLauncher;
|
|
14
|
-
exports.launchBrowser = launchBrowser;
|
|
15
|
-
exports.closeBrowser = closeBrowser;
|
|
16
|
-
exports.listTabs = listTabs;
|
|
17
|
-
exports.newTab = newTab;
|
|
18
|
-
exports.selectTab = selectTab;
|
|
19
|
-
exports.closeTab = closeTab;
|
|
20
|
-
const pw_responses_js_1 = require("./pw-responses.js");
|
|
21
|
-
// ── Module-level state (singleton per Node process) ───────────────────
|
|
22
|
-
let currentSession = null;
|
|
23
|
-
let currentRefs = {};
|
|
24
|
-
const consoleMessages = [];
|
|
25
|
-
const networkRequests = [];
|
|
26
|
-
const pageErrors = [];
|
|
27
|
-
let nextRequestId = 0;
|
|
28
|
-
const DEFAULT_NAVIGATION_OPTIONS = {
|
|
29
|
-
timeout: 20_000,
|
|
30
|
-
waitUntil: "domcontentloaded",
|
|
31
|
-
};
|
|
32
|
-
// ── Accessors ─────────────────────────────────────────────────────────
|
|
33
|
-
function getSession() {
|
|
34
|
-
return currentSession;
|
|
35
|
-
}
|
|
36
|
-
function getRefs() {
|
|
37
|
-
return currentRefs;
|
|
38
|
-
}
|
|
39
|
-
function setRefs(refs) {
|
|
40
|
-
currentRefs = refs;
|
|
41
|
-
}
|
|
42
|
-
function getConsoleMessages() {
|
|
43
|
-
return consoleMessages;
|
|
44
|
-
}
|
|
45
|
-
function getNetworkRequests() {
|
|
46
|
-
return networkRequests;
|
|
47
|
-
}
|
|
48
|
-
function getPageErrors() {
|
|
49
|
-
return pageErrors;
|
|
50
|
-
}
|
|
51
|
-
const defaultPlaywrightLoader = () => Function('return import("playwright")')();
|
|
52
|
-
let playwrightLoader = defaultPlaywrightLoader;
|
|
53
|
-
/**
|
|
54
|
-
* Test seam for injecting a mocked playwright loader.
|
|
55
|
-
* Passing null restores the production loader.
|
|
56
|
-
*/
|
|
57
|
-
function setPlaywrightLoaderForTest(loader) {
|
|
58
|
-
playwrightLoader = loader ?? defaultPlaywrightLoader;
|
|
59
|
-
}
|
|
60
|
-
// ── Page listener wiring ──────────────────────────────────────────────
|
|
61
|
-
const observedPages = new WeakSet();
|
|
62
|
-
function wirePageListeners(page) {
|
|
63
|
-
if (observedPages.has(page)) {
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
observedPages.add(page);
|
|
67
|
-
page.on("console", (...args) => {
|
|
68
|
-
const msg = args[0];
|
|
69
|
-
if (!msg)
|
|
70
|
-
return;
|
|
71
|
-
const entry = {
|
|
72
|
-
type: typeof msg.type === "function" ? msg.type() : "log",
|
|
73
|
-
text: typeof msg.text === "function" ? msg.text() : String(msg),
|
|
74
|
-
timestamp: new Date().toISOString(),
|
|
75
|
-
};
|
|
76
|
-
consoleMessages.push(entry);
|
|
77
|
-
if (consoleMessages.length > pw_responses_js_1.MAX_CONSOLE_MESSAGES) {
|
|
78
|
-
consoleMessages.shift();
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
page.on("pageerror", (...args) => {
|
|
82
|
-
const err = args[0];
|
|
83
|
-
pageErrors.push({
|
|
84
|
-
message: err?.message ? String(err.message) : String(err),
|
|
85
|
-
name: err?.name ? String(err.name) : undefined,
|
|
86
|
-
timestamp: new Date().toISOString(),
|
|
87
|
-
});
|
|
88
|
-
if (pageErrors.length > pw_responses_js_1.MAX_PAGE_ERRORS) {
|
|
89
|
-
pageErrors.shift();
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
page.on("request", (...args) => {
|
|
93
|
-
const req = args[0];
|
|
94
|
-
if (!req)
|
|
95
|
-
return;
|
|
96
|
-
nextRequestId += 1;
|
|
97
|
-
const entry = {
|
|
98
|
-
id: `r${nextRequestId}`,
|
|
99
|
-
timestamp: new Date().toISOString(),
|
|
100
|
-
method: typeof req.method === "function" ? req.method() : "GET",
|
|
101
|
-
url: typeof req.url === "function" ? req.url() : "",
|
|
102
|
-
resourceType: typeof req.resourceType === "function" ? req.resourceType() : undefined,
|
|
103
|
-
};
|
|
104
|
-
networkRequests.push(entry);
|
|
105
|
-
if (networkRequests.length > pw_responses_js_1.MAX_NETWORK_REQUESTS) {
|
|
106
|
-
networkRequests.shift();
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
page.on("response", (...args) => {
|
|
110
|
-
const resp = args[0];
|
|
111
|
-
if (!resp)
|
|
112
|
-
return;
|
|
113
|
-
const respUrl = typeof resp.url === "function" ? resp.url() : "";
|
|
114
|
-
// Match by URL (find most recent matching request)
|
|
115
|
-
for (let i = networkRequests.length - 1; i >= 0; i -= 1) {
|
|
116
|
-
const rec = networkRequests[i];
|
|
117
|
-
if (rec && rec.url === respUrl && rec.status === undefined) {
|
|
118
|
-
rec.status = typeof resp.status === "function" ? resp.status() : undefined;
|
|
119
|
-
rec.ok = typeof resp.ok === "function" ? resp.ok() : undefined;
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
page.on("requestfailed", (...args) => {
|
|
125
|
-
const req = args[0];
|
|
126
|
-
if (!req)
|
|
127
|
-
return;
|
|
128
|
-
const failUrl = typeof req.url === "function" ? req.url() : "";
|
|
129
|
-
for (let i = networkRequests.length - 1; i >= 0; i -= 1) {
|
|
130
|
-
const rec = networkRequests[i];
|
|
131
|
-
if (rec && rec.url === failUrl && rec.ok === undefined) {
|
|
132
|
-
rec.ok = false;
|
|
133
|
-
rec.failureText = typeof req.failure === "function" ? req.failure()?.errorText : undefined;
|
|
134
|
-
break;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
function isChromiumLike(value) {
|
|
140
|
-
return (typeof value === "object" &&
|
|
141
|
-
value !== null &&
|
|
142
|
-
typeof value.launch === "function");
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Resolve Playwright's chromium launcher across module interop shapes.
|
|
146
|
-
* Some runtimes expose `{ chromium }`, others only `{ default: { chromium } }`.
|
|
147
|
-
*/
|
|
148
|
-
function resolveChromiumLauncher(moduleValue) {
|
|
149
|
-
const pw = moduleValue;
|
|
150
|
-
const chromium = pw?.chromium ?? pw?.default?.chromium;
|
|
151
|
-
if (isChromiumLike(chromium)) {
|
|
152
|
-
return chromium;
|
|
153
|
-
}
|
|
154
|
-
const keys = pw && typeof pw === "object"
|
|
155
|
-
? Object.keys(pw)
|
|
156
|
-
.sort()
|
|
157
|
-
.join(", ")
|
|
158
|
-
: String(pw);
|
|
159
|
-
throw new Error(`Invalid playwright module shape: missing chromium.launch (module keys: ${keys || "(none)"}).`);
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Launch a new Playwright browser session.
|
|
163
|
-
* Uses dynamic import so the tool module loads even without playwright installed.
|
|
164
|
-
*/
|
|
165
|
-
async function launchBrowser(options) {
|
|
166
|
-
if (currentSession) {
|
|
167
|
-
// Already have a session — navigate if URL given, otherwise return existing
|
|
168
|
-
if (options?.url) {
|
|
169
|
-
try {
|
|
170
|
-
await currentSession.page.goto(options.url, DEFAULT_NAVIGATION_OPTIONS);
|
|
171
|
-
}
|
|
172
|
-
catch (error) {
|
|
173
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
174
|
-
throw new Error(`Navigation to ${options.url} failed: ${message}. Session remains active; use 'snapshot' or retry 'navigate'.`);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
return currentSession;
|
|
178
|
-
}
|
|
179
|
-
// Dynamic import: playwright is an optional peer dependency.
|
|
180
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
181
|
-
let pw;
|
|
182
|
-
try {
|
|
183
|
-
pw = await playwrightLoader();
|
|
184
|
-
}
|
|
185
|
-
catch {
|
|
186
|
-
throw new Error("playwright is not installed. Run: npx playwright install chromium\n" +
|
|
187
|
-
"Or: npm install playwright && npx playwright install chromium");
|
|
188
|
-
}
|
|
189
|
-
const chromium = resolveChromiumLauncher(pw);
|
|
190
|
-
const browser = await chromium.launch({
|
|
191
|
-
headless: options?.headless !== false, // default headless
|
|
192
|
-
});
|
|
193
|
-
const context = browser.newContext
|
|
194
|
-
? await browser.newContext({
|
|
195
|
-
viewport: { width: 1280, height: 720 },
|
|
196
|
-
userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
|
197
|
-
})
|
|
198
|
-
: (browser.contexts()[0] ??
|
|
199
|
-
(() => {
|
|
200
|
-
throw new Error("No browser context available");
|
|
201
|
-
})());
|
|
202
|
-
const page = context.pages?.().length
|
|
203
|
-
? context.pages()[0]
|
|
204
|
-
: await context.newPage();
|
|
205
|
-
wirePageListeners(page);
|
|
206
|
-
// Persist session state before first navigation so launch+goto timeout
|
|
207
|
-
// cannot leave the tool in a "no session" state.
|
|
208
|
-
currentSession = { browser, context, page };
|
|
209
|
-
currentRefs = {};
|
|
210
|
-
consoleMessages.length = 0;
|
|
211
|
-
networkRequests.length = 0;
|
|
212
|
-
pageErrors.length = 0;
|
|
213
|
-
nextRequestId = 0;
|
|
214
|
-
if (options?.url) {
|
|
215
|
-
try {
|
|
216
|
-
await page.goto(options.url, DEFAULT_NAVIGATION_OPTIONS);
|
|
217
|
-
}
|
|
218
|
-
catch (error) {
|
|
219
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
220
|
-
throw new Error(`Browser launched, but initial navigation to ${options.url} failed: ${message}. Session remains active; use 'snapshot' or retry 'navigate'.`);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return currentSession;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Close the current browser session and clean up all state.
|
|
227
|
-
*/
|
|
228
|
-
async function closeBrowser() {
|
|
229
|
-
const session = currentSession;
|
|
230
|
-
currentSession = null;
|
|
231
|
-
currentRefs = {};
|
|
232
|
-
consoleMessages.length = 0;
|
|
233
|
-
networkRequests.length = 0;
|
|
234
|
-
pageErrors.length = 0;
|
|
235
|
-
nextRequestId = 0;
|
|
236
|
-
if (session) {
|
|
237
|
-
try {
|
|
238
|
-
await session.browser.close();
|
|
239
|
-
}
|
|
240
|
-
catch {
|
|
241
|
-
// Best-effort close.
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
// ── Tab management ────────────────────────────────────────────────────
|
|
246
|
-
/**
|
|
247
|
-
* List all open tabs (pages) in the current context.
|
|
248
|
-
*/
|
|
249
|
-
function listTabs() {
|
|
250
|
-
if (!currentSession) {
|
|
251
|
-
return [];
|
|
252
|
-
}
|
|
253
|
-
const pages = currentSession.context.pages();
|
|
254
|
-
return pages.map((p, i) => ({
|
|
255
|
-
index: i,
|
|
256
|
-
url: p.url(),
|
|
257
|
-
active: p === currentSession.page,
|
|
258
|
-
}));
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Open a new tab, optionally navigating to a URL.
|
|
262
|
-
*/
|
|
263
|
-
async function newTab(url) {
|
|
264
|
-
if (!currentSession) {
|
|
265
|
-
const launched = await launchBrowser({ url });
|
|
266
|
-
return { index: 0, url: launched.page.url() };
|
|
267
|
-
}
|
|
268
|
-
const page = await currentSession.context.newPage();
|
|
269
|
-
wirePageListeners(page);
|
|
270
|
-
currentSession.page = page;
|
|
271
|
-
currentRefs = {};
|
|
272
|
-
if (url) {
|
|
273
|
-
await page.goto(url, DEFAULT_NAVIGATION_OPTIONS);
|
|
274
|
-
}
|
|
275
|
-
const pages = currentSession.context.pages();
|
|
276
|
-
return { index: pages.length - 1, url: page.url() };
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Switch to a tab by index.
|
|
280
|
-
*/
|
|
281
|
-
async function selectTab(index) {
|
|
282
|
-
if (!currentSession) {
|
|
283
|
-
await launchBrowser();
|
|
284
|
-
}
|
|
285
|
-
if (!currentSession) {
|
|
286
|
-
throw new Error("No tabs open.");
|
|
287
|
-
}
|
|
288
|
-
const pages = currentSession.context.pages();
|
|
289
|
-
if (index < 0 || index >= pages.length) {
|
|
290
|
-
throw new Error(`Tab index ${index} out of range (0..${pages.length - 1})`);
|
|
291
|
-
}
|
|
292
|
-
const page = pages[index];
|
|
293
|
-
currentSession.page = page;
|
|
294
|
-
wirePageListeners(page);
|
|
295
|
-
currentRefs = {};
|
|
296
|
-
return { url: page.url() };
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Close a tab by index (defaults to current tab).
|
|
300
|
-
*/
|
|
301
|
-
async function closeTab(index) {
|
|
302
|
-
if (!currentSession) {
|
|
303
|
-
throw new Error("No tabs open.");
|
|
304
|
-
}
|
|
305
|
-
const pages = currentSession.context.pages();
|
|
306
|
-
const targetIndex = index ?? pages.indexOf(currentSession.page);
|
|
307
|
-
if (targetIndex < 0 || targetIndex >= pages.length) {
|
|
308
|
-
throw new Error(`Tab index ${targetIndex} out of range`);
|
|
309
|
-
}
|
|
310
|
-
const targetPage = pages[targetIndex];
|
|
311
|
-
await targetPage.close();
|
|
312
|
-
// Update current page if we closed the active one
|
|
313
|
-
const remaining = currentSession.context.pages();
|
|
314
|
-
if (!remaining.length) {
|
|
315
|
-
// All tabs closed — create a fresh one
|
|
316
|
-
const page = await currentSession.context.newPage();
|
|
317
|
-
currentSession.page = page;
|
|
318
|
-
wirePageListeners(page);
|
|
319
|
-
}
|
|
320
|
-
else if (targetPage === currentSession.page) {
|
|
321
|
-
const newIndex = Math.min(targetIndex, remaining.length - 1);
|
|
322
|
-
currentSession.page = remaining[newIndex];
|
|
323
|
-
wirePageListeners(currentSession.page);
|
|
324
|
-
}
|
|
325
|
-
currentRefs = {};
|
|
326
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Originally from OpenClaw (MIT License, Copyright 2025 Peter Steinberger)
|
|
3
|
-
// https://github.com/openclaw/openclaw
|
|
4
|
-
// Modified for ARIA — stripped OpenClaw runtime, rewired to ARIA Tool interface
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.parseRoleRef = parseRoleRef;
|
|
7
|
-
exports.requireRef = requireRef;
|
|
8
|
-
exports.normalizeTimeoutMs = normalizeTimeoutMs;
|
|
9
|
-
exports.toAIFriendlyError = toAIFriendlyError;
|
|
10
|
-
/**
|
|
11
|
-
* Shared utilities for Playwright-based browser tool functions.
|
|
12
|
-
* Ported from OpenClaw's pw-tools-core.shared.ts.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Parse a raw ref string into its canonical "eN" form.
|
|
16
|
-
* Accepts: "e1", "@e1", "ref=e1" -> "e1". Returns null if invalid.
|
|
17
|
-
*/
|
|
18
|
-
function parseRoleRef(raw) {
|
|
19
|
-
const trimmed = raw.trim();
|
|
20
|
-
if (!trimmed) {
|
|
21
|
-
return null;
|
|
22
|
-
}
|
|
23
|
-
const normalized = trimmed.startsWith("@")
|
|
24
|
-
? trimmed.slice(1)
|
|
25
|
-
: trimmed.startsWith("ref=")
|
|
26
|
-
? trimmed.slice(4)
|
|
27
|
-
: trimmed;
|
|
28
|
-
return /^e\d+$/.test(normalized) ? normalized : null;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Validate and normalize a ref string. Throws if the ref is empty/invalid.
|
|
32
|
-
*/
|
|
33
|
-
function requireRef(value) {
|
|
34
|
-
const raw = typeof value === "string" ? value.trim() : "";
|
|
35
|
-
const roleRef = raw ? parseRoleRef(raw) : null;
|
|
36
|
-
const ref = roleRef ?? (raw.startsWith("@") ? raw.slice(1) : raw);
|
|
37
|
-
if (!ref) {
|
|
38
|
-
throw new Error("ref is required");
|
|
39
|
-
}
|
|
40
|
-
return ref;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Clamp a timeout value to a safe range (500ms .. 120s).
|
|
44
|
-
*/
|
|
45
|
-
function normalizeTimeoutMs(timeoutMs, fallback) {
|
|
46
|
-
return Math.max(500, Math.min(120_000, timeoutMs ?? fallback));
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Rewrite Playwright errors into messages that guide the LLM to take
|
|
50
|
-
* corrective action (re-snapshot, scroll, etc.).
|
|
51
|
-
*/
|
|
52
|
-
function toAIFriendlyError(error, selector) {
|
|
53
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
54
|
-
if (message.includes("strict mode violation")) {
|
|
55
|
-
const countMatch = message.match(/resolved to (\d+) elements/);
|
|
56
|
-
const count = countMatch ? countMatch[1] : "multiple";
|
|
57
|
-
return new Error(`Selector "${selector}" matched ${count} elements. ` +
|
|
58
|
-
`Run a new snapshot to get updated refs, or use a different ref.`);
|
|
59
|
-
}
|
|
60
|
-
if ((message.includes("Timeout") || message.includes("waiting for")) &&
|
|
61
|
-
(message.includes("to be visible") || message.includes("not visible"))) {
|
|
62
|
-
return new Error(`Element "${selector}" not found or not visible. ` +
|
|
63
|
-
`Run a new snapshot to see current page elements.`);
|
|
64
|
-
}
|
|
65
|
-
if (message.includes("intercepts pointer events") ||
|
|
66
|
-
message.includes("not visible") ||
|
|
67
|
-
message.includes("not receive pointer events")) {
|
|
68
|
-
return new Error(`Element "${selector}" is not interactable (hidden or covered). ` +
|
|
69
|
-
`Try scrolling it into view, closing overlays, or re-snapshotting.`);
|
|
70
|
-
}
|
|
71
|
-
return error instanceof Error ? error : new Error(message);
|
|
72
|
-
}
|