@aria-cli/tools 1.0.19 → 1.0.31
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/.aria-build-stamp.json +1 -1
- package/dist/ask-user-interaction.js +23 -0
- package/dist/cache/web-cache.js +67 -0
- package/dist/definitions/arion.js +105 -0
- package/dist/definitions/browser/browser.js +419 -0
- package/dist/definitions/browser/index.js +5 -0
- package/dist/definitions/browser/pw-downloads.js +115 -0
- package/dist/definitions/browser/pw-interactions.js +200 -0
- package/dist/definitions/browser/pw-responses.js +77 -0
- package/dist/definitions/browser/pw-session.js +311 -0
- package/dist/definitions/browser/pw-shared.js +67 -0
- package/dist/definitions/browser/pw-snapshot.js +302 -0
- package/dist/definitions/browser/pw-state.js +63 -0
- package/dist/definitions/browser/types.js +5 -0
- package/dist/definitions/code-intelligence.js +471 -0
- package/dist/definitions/core.js +110 -0
- package/dist/definitions/delegation.js +513 -0
- package/dist/definitions/deploy.js +66 -0
- package/dist/definitions/filesystem.js +197 -0
- package/dist/definitions/frg.js +64 -0
- package/{dist-cjs/definitions/index.d.ts → dist/definitions/index.js} +2 -0
- package/dist/definitions/memory.js +124 -0
- package/dist/definitions/messaging.js +626 -0
- package/dist/definitions/meta.js +350 -0
- package/dist/definitions/network.js +160 -0
- package/dist/definitions/outlook.js +278 -0
- package/dist/definitions/patch/apply-patch.js +185 -0
- package/dist/definitions/patch/fuzzy-match.js +167 -0
- package/{dist-cjs/definitions/patch/index.d.ts → dist/definitions/patch/index.js} +1 -0
- package/dist/definitions/patch/patch-parser.js +208 -0
- package/dist/definitions/patch/sandbox-paths.js +106 -0
- package/dist/definitions/process/index.js +5 -0
- package/dist/definitions/process/process-registry.js +214 -0
- package/dist/definitions/process/process.js +387 -0
- package/dist/definitions/process/pty-keys.js +255 -0
- package/dist/definitions/process/session-slug.js +143 -0
- package/dist/definitions/quip.js +196 -0
- package/dist/definitions/search.js +61 -0
- package/dist/definitions/session-history.js +70 -0
- package/dist/definitions/shell.js +182 -0
- package/dist/definitions/slack.js +181 -0
- package/dist/definitions/web.js +110 -0
- package/dist/executors/apply-patch.js +902 -0
- package/dist/executors/arion.js +120 -0
- package/dist/executors/code-intelligence.js +883 -0
- package/dist/executors/deploy.js +849 -0
- package/dist/executors/filesystem.js +1119 -0
- package/dist/executors/frg-freshness.js +577 -0
- package/dist/executors/frg.js +299 -0
- package/{dist-cjs/executors/index.d.ts → dist/executors/index.js} +22 -19
- package/dist/executors/learning-meta.js +1147 -0
- package/dist/executors/lsp-client.js +297 -0
- package/dist/executors/memory.js +751 -0
- package/dist/executors/meta.js +221 -0
- package/dist/executors/process-registry.js +466 -0
- package/dist/executors/pty-session-store.js +31 -0
- package/dist/executors/pty.js +281 -0
- package/dist/executors/restart.js +120 -0
- package/dist/executors/search-freshness.js +196 -0
- package/dist/executors/search-types.js +53 -0
- package/dist/executors/search.js +67 -0
- package/dist/executors/self-diagnose.js +399 -0
- package/dist/executors/session-history.js +284 -0
- package/dist/executors/shell-safety.js +474 -0
- package/dist/executors/shell.js +955 -0
- package/dist/executors/utils.js +34 -0
- package/dist/executors/web.js +543 -0
- package/dist/extraction/content-extraction.js +248 -0
- package/dist/extraction/index.js +5 -0
- package/dist/headless-control-contract.js +968 -0
- package/dist/{index-v49pd2a0.js → index-45qvfjbf.js} +2 -2
- package/dist/index.js +71 -372
- package/dist/local-control-http-auth.js +3 -0
- package/dist/mcp/client.js +182 -0
- package/dist/mcp/connection.js +484 -0
- package/dist/mcp/index.js +11 -0
- package/dist/mcp/jsonrpc.js +145 -0
- package/dist/mcp/types.js +8 -0
- package/dist/network-control-adapter.js +73 -0
- package/dist/network-runtime/address-types.js +166 -0
- package/dist/network-runtime/db-owner-fencing.js +70 -0
- package/dist/network-runtime/delivery-receipts.js +270 -0
- package/dist/network-runtime/direct-endpoint-authority.js +26 -0
- package/dist/network-runtime/index.js +13 -1
- package/dist/network-runtime/local-control-contract.js +628 -0
- package/dist/network-runtime/node-store-contract.js +35 -0
- package/dist/network-runtime/pair-route-contract.js +78 -0
- package/dist/network-runtime/peer-capabilities.js +29 -0
- package/dist/network-runtime/peer-principal-ref.js +13 -0
- package/dist/network-runtime/peer-state-machine.js +122 -0
- package/dist/network-runtime/protocol-schemas.js +206 -0
- package/dist/network-runtime/runtime-bootstrap-contract.js +61 -0
- package/dist/outlook/desktop-session.js +280 -0
- package/dist/policy.js +150 -0
- package/dist/providers/brave.js +63 -0
- package/dist/providers/duckduckgo.js +177 -0
- package/dist/providers/exa.js +64 -0
- package/dist/providers/firecrawl.js +56 -0
- package/{dist-cjs/providers/index.d.ts → dist/providers/index.js} +1 -1
- package/dist/providers/jina.js +50 -0
- package/dist/providers/router.js +97 -0
- package/dist/providers/search-provider.js +33 -0
- package/dist/providers/tavily.js +55 -0
- package/dist/pty-w5c9dv33.js +1 -0
- package/dist/quip/desktop-session.js +318 -0
- package/{dist-cjs/registry/index.d.ts → dist/registry/index.js} +1 -0
- package/dist/registry/registry.js +757 -0
- package/dist/runtime-socket-local-control-client.js +331 -0
- package/dist/security/dns-normalization.js +20 -0
- package/dist/security/dns-pinning.js +124 -0
- package/dist/security/external-content.js +92 -0
- package/dist/security/ssrf.js +182 -0
- package/dist/slack/desktop-session.js +325 -0
- package/dist/tool-factory.js +48 -0
- package/dist/types.js +8 -0
- package/dist/utils/retry.js +133 -0
- package/dist/utils/safe-parse-json.js +161 -0
- package/dist/utils/url.js +20 -0
- package/dist-cjs/ask-user-interaction.js +28 -0
- package/dist-cjs/cache/web-cache.js +71 -0
- package/dist-cjs/definitions/arion.js +108 -0
- package/dist-cjs/definitions/browser/browser.js +422 -0
- package/dist-cjs/definitions/browser/index.js +9 -0
- package/dist-cjs/definitions/browser/pw-downloads.js +118 -0
- package/dist-cjs/definitions/browser/pw-interactions.js +214 -0
- package/dist-cjs/definitions/browser/pw-responses.js +85 -0
- package/dist-cjs/definitions/browser/pw-session.js +327 -0
- package/dist-cjs/definitions/browser/pw-shared.js +73 -0
- package/dist-cjs/definitions/browser/pw-snapshot.js +308 -0
- package/dist-cjs/definitions/browser/pw-state.js +71 -0
- package/dist-cjs/definitions/browser/types.js +6 -0
- package/dist-cjs/definitions/code-intelligence.js +474 -0
- package/dist-cjs/definitions/core.js +134 -0
- package/dist-cjs/definitions/delegation.js +516 -0
- package/dist-cjs/definitions/deploy.js +69 -0
- package/dist-cjs/definitions/filesystem.js +200 -0
- package/dist-cjs/definitions/frg.js +67 -0
- package/dist-cjs/definitions/index.js +44 -0
- package/dist-cjs/definitions/memory.js +127 -0
- package/dist-cjs/definitions/messaging.js +632 -0
- package/dist-cjs/definitions/meta.js +353 -0
- package/dist-cjs/definitions/network.js +163 -0
- package/dist-cjs/definitions/outlook.js +281 -0
- package/dist-cjs/definitions/patch/apply-patch.js +192 -0
- package/dist-cjs/definitions/patch/fuzzy-match.js +173 -0
- package/dist-cjs/definitions/patch/index.js +6 -0
- package/dist-cjs/definitions/patch/patch-parser.js +216 -0
- package/dist-cjs/definitions/patch/sandbox-paths.js +114 -0
- package/dist-cjs/definitions/process/index.js +9 -0
- package/dist-cjs/definitions/process/process-registry.js +232 -0
- package/dist-cjs/definitions/process/process.js +390 -0
- package/dist-cjs/definitions/process/pty-keys.js +260 -0
- package/dist-cjs/definitions/process/session-slug.js +146 -0
- package/dist-cjs/definitions/quip.js +199 -0
- package/dist-cjs/definitions/search.js +64 -0
- package/dist-cjs/definitions/session-history.js +73 -0
- package/dist-cjs/definitions/shell.js +185 -0
- package/dist-cjs/definitions/slack.js +184 -0
- package/dist-cjs/definitions/web.js +113 -0
- package/dist-cjs/executors/apply-patch.js +939 -0
- package/dist-cjs/executors/arion.js +126 -0
- package/dist-cjs/executors/code-intelligence.js +926 -0
- package/dist-cjs/executors/deploy.js +870 -0
- package/dist-cjs/executors/filesystem.js +1164 -0
- package/dist-cjs/executors/frg-freshness.js +628 -0
- package/dist-cjs/executors/frg.js +335 -0
- package/dist-cjs/executors/index.js +144 -0
- package/dist-cjs/executors/learning-meta.js +1166 -0
- package/dist-cjs/executors/memory.js +797 -0
- package/dist-cjs/executors/meta.js +227 -0
- package/dist-cjs/executors/process-registry.js +470 -0
- package/dist-cjs/executors/pty-session-store.js +35 -0
- package/dist-cjs/executors/pty.js +289 -0
- package/dist-cjs/executors/restart.js +156 -0
- package/dist-cjs/executors/search-freshness.js +235 -0
- package/dist-cjs/executors/search-types.js +57 -0
- package/dist-cjs/executors/search.js +103 -0
- package/dist-cjs/executors/self-diagnose.js +435 -0
- package/dist-cjs/executors/session-history.js +321 -0
- package/dist-cjs/executors/shell-safety.js +479 -0
- package/dist-cjs/executors/shell.js +1002 -0
- package/dist-cjs/executors/utils.js +74 -0
- package/dist-cjs/executors/web.js +548 -0
- package/dist-cjs/extraction/content-extraction.js +289 -0
- package/dist-cjs/extraction/index.js +9 -0
- package/dist-cjs/headless-control-contract.js +973 -0
- package/dist-cjs/index.js +436 -385
- package/dist-cjs/local-control-http-auth.js +6 -0
- package/dist-cjs/mcp/client.js +186 -0
- package/dist-cjs/mcp/connection.js +488 -0
- package/dist-cjs/mcp/index.js +31 -0
- package/dist-cjs/mcp/jsonrpc.js +149 -0
- package/dist-cjs/mcp/types.js +9 -0
- package/dist-cjs/network-control-adapter.js +78 -0
- package/dist-cjs/network-runtime/address-types.js +169 -0
- package/dist-cjs/network-runtime/db-owner-fencing.js +77 -0
- package/dist-cjs/network-runtime/delivery-receipts.js +279 -0
- package/dist-cjs/network-runtime/direct-endpoint-authority.js +30 -0
- package/dist-cjs/network-runtime/index.js +173 -8
- package/dist-cjs/network-runtime/local-control-contract.js +634 -0
- package/dist-cjs/network-runtime/node-store-contract.js +39 -0
- package/dist-cjs/network-runtime/pair-route-contract.js +81 -0
- package/dist-cjs/network-runtime/peer-capabilities.js +38 -0
- package/dist-cjs/network-runtime/peer-principal-ref.js +16 -0
- package/dist-cjs/network-runtime/peer-state-machine.js +130 -0
- package/dist-cjs/network-runtime/protocol-schemas.js +213 -0
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.js +64 -0
- package/dist-cjs/outlook/desktop-session.js +319 -0
- package/dist-cjs/policy.js +156 -0
- package/dist-cjs/providers/brave.js +67 -0
- package/dist-cjs/providers/duckduckgo.js +181 -0
- package/dist-cjs/providers/exa.js +68 -0
- package/dist-cjs/providers/firecrawl.js +60 -0
- package/dist-cjs/providers/index.js +18 -0
- package/dist-cjs/providers/jina.js +54 -0
- package/dist-cjs/providers/router.js +101 -0
- package/dist-cjs/providers/search-provider.js +37 -0
- package/dist-cjs/providers/tavily.js +59 -0
- package/dist-cjs/quip/desktop-session.js +354 -0
- package/dist-cjs/registry/index.js +7 -0
- package/dist-cjs/registry/registry.js +762 -0
- package/dist-cjs/runtime-socket-local-control-client.js +368 -0
- package/dist-cjs/security/dns-normalization.js +23 -0
- package/dist-cjs/security/dns-pinning.js +161 -0
- package/dist-cjs/security/external-content.js +96 -0
- package/dist-cjs/security/ssrf.js +222 -0
- package/dist-cjs/slack/desktop-session.js +367 -0
- package/dist-cjs/tool-factory.js +51 -0
- package/dist-cjs/types.js +9 -0
- package/dist-cjs/utils/retry.js +170 -0
- package/dist-cjs/utils/safe-parse-json.js +165 -0
- package/dist-cjs/utils/url.js +24 -0
- package/package.json +11 -10
- package/dist/ask-user-interaction.d.ts +0 -10
- package/dist/cache/web-cache.d.ts +0 -52
- package/dist/definitions/arion.d.ts +0 -8
- package/dist/definitions/browser/browser.d.ts +0 -2
- package/dist/definitions/browser/index.d.ts +0 -1
- package/dist/definitions/browser/pw-downloads.d.ts +0 -13
- package/dist/definitions/browser/pw-interactions.d.ts +0 -78
- package/dist/definitions/browser/pw-responses.d.ts +0 -28
- package/dist/definitions/browser/pw-session.d.ts +0 -65
- package/dist/definitions/browser/pw-shared.d.ts +0 -22
- package/dist/definitions/browser/pw-snapshot.d.ts +0 -34
- package/dist/definitions/browser/pw-state.d.ts +0 -22
- package/dist/definitions/browser/types.d.ts +0 -277
- package/dist/definitions/code-intelligence.d.ts +0 -8
- package/dist/definitions/core.d.ts +0 -47
- package/dist/definitions/delegation.d.ts +0 -11
- package/dist/definitions/deploy.d.ts +0 -15
- package/dist/definitions/filesystem.d.ts +0 -9
- package/dist/definitions/frg.d.ts +0 -3
- package/dist/definitions/index.d.ts +0 -19
- package/dist/definitions/memory.d.ts +0 -8
- package/dist/definitions/messaging.d.ts +0 -11
- package/dist/definitions/meta.d.ts +0 -11
- package/dist/definitions/network.d.ts +0 -11
- package/dist/definitions/outlook.d.ts +0 -2
- package/dist/definitions/patch/apply-patch.d.ts +0 -11
- package/dist/definitions/patch/fuzzy-match.d.ts +0 -10
- package/dist/definitions/patch/index.d.ts +0 -1
- package/dist/definitions/patch/patch-parser.d.ts +0 -50
- package/dist/definitions/patch/sandbox-paths.d.ts +0 -18
- package/dist/definitions/process/index.d.ts +0 -1
- package/dist/definitions/process/process-registry.d.ts +0 -67
- package/dist/definitions/process/process.d.ts +0 -9
- package/dist/definitions/process/pty-keys.d.ts +0 -13
- package/dist/definitions/process/session-slug.d.ts +0 -1
- package/dist/definitions/quip.d.ts +0 -2
- package/dist/definitions/search.d.ts +0 -9
- package/dist/definitions/session-history.d.ts +0 -11
- package/dist/definitions/shell.d.ts +0 -8
- package/dist/definitions/slack.d.ts +0 -2
- package/dist/definitions/web.d.ts +0 -8
- package/dist/executors/apply-patch.d.ts +0 -51
- package/dist/executors/arion.d.ts +0 -50
- package/dist/executors/code-intelligence.d.ts +0 -138
- package/dist/executors/deploy.d.ts +0 -169
- package/dist/executors/filesystem.d.ts +0 -150
- package/dist/executors/frg-freshness.d.ts +0 -93
- package/dist/executors/frg.d.ts +0 -27
- package/dist/executors/index.d.ts +0 -44
- package/dist/executors/learning-meta.d.ts +0 -87
- package/dist/executors/lsp-client.d.ts +0 -38
- package/dist/executors/memory.d.ts +0 -203
- package/dist/executors/meta.d.ts +0 -73
- package/dist/executors/process-registry.d.ts +0 -98
- package/dist/executors/pty-session-store.d.ts +0 -14
- package/dist/executors/pty.d.ts +0 -133
- package/dist/executors/restart.d.ts +0 -13
- package/dist/executors/search-freshness.d.ts +0 -50
- package/dist/executors/search-types.d.ts +0 -52
- package/dist/executors/search.d.ts +0 -11
- package/dist/executors/self-diagnose.d.ts +0 -89
- package/dist/executors/session-history.d.ts +0 -75
- package/dist/executors/shell-safety.d.ts +0 -27
- package/dist/executors/shell.d.ts +0 -168
- package/dist/executors/utils.d.ts +0 -20
- package/dist/executors/web.d.ts +0 -89
- package/dist/extraction/content-extraction.d.ts +0 -48
- package/dist/extraction/index.d.ts +0 -4
- package/dist/headless-control-contract.d.ts +0 -3182
- package/dist/index.d.ts +0 -62
- package/dist/local-control-http-auth.d.ts +0 -2
- package/dist/mcp/client.d.ts +0 -68
- package/dist/mcp/connection.d.ts +0 -54
- package/dist/mcp/index.d.ts +0 -10
- package/dist/mcp/jsonrpc.d.ts +0 -36
- package/dist/mcp/types.d.ts +0 -178
- package/dist/network-control-adapter.d.ts +0 -4
- package/dist/network-runtime/address-types.d.ts +0 -201
- package/dist/network-runtime/db-owner-fencing.d.ts +0 -43
- package/dist/network-runtime/delivery-receipts.d.ts +0 -117
- package/dist/network-runtime/direct-endpoint-authority.d.ts +0 -8
- package/dist/network-runtime/index.d.ts +0 -24
- package/dist/network-runtime/local-control-contract.d.ts +0 -758
- package/dist/network-runtime/node-store-contract.d.ts +0 -49
- package/dist/network-runtime/pair-route-contract.d.ts +0 -100
- package/dist/network-runtime/peer-capabilities.d.ts +0 -10
- package/dist/network-runtime/peer-principal-ref.d.ts +0 -9
- package/dist/network-runtime/peer-state-machine.d.ts +0 -70
- package/dist/network-runtime/protocol-schemas.d.ts +0 -328
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts +0 -81
- package/dist/outlook/desktop-session.d.ts +0 -68
- package/dist/policy.d.ts +0 -43
- package/dist/providers/brave.d.ts +0 -10
- package/dist/providers/duckduckgo.d.ts +0 -18
- package/dist/providers/exa.d.ts +0 -10
- package/dist/providers/firecrawl.d.ts +0 -10
- package/dist/providers/index.d.ts +0 -8
- package/dist/providers/jina.d.ts +0 -10
- package/dist/providers/router.d.ts +0 -21
- package/dist/providers/search-provider.d.ts +0 -35
- package/dist/providers/tavily.d.ts +0 -10
- package/dist/pty-cf6pmvx6.js +0 -1
- package/dist/quip/desktop-session.d.ts +0 -69
- package/dist/registry/index.d.ts +0 -1
- package/dist/registry/registry.d.ts +0 -156
- package/dist/runtime-socket-local-control-client.d.ts +0 -10
- package/dist/security/dns-normalization.d.ts +0 -6
- package/dist/security/dns-pinning.d.ts +0 -27
- package/dist/security/external-content.d.ts +0 -40
- package/dist/security/ssrf.d.ts +0 -40
- package/dist/slack/desktop-session.d.ts +0 -69
- package/dist/tool-factory.d.ts +0 -46
- package/dist/types.d.ts +0 -1192
- package/dist/utils/retry.d.ts +0 -11
- package/dist/utils/safe-parse-json.d.ts +0 -26
- package/dist/utils/url.d.ts +0 -10
- package/dist-cjs/ask-user-interaction.d.ts +0 -10
- package/dist-cjs/cache/web-cache.d.ts +0 -52
- package/dist-cjs/definitions/arion.d.ts +0 -8
- package/dist-cjs/definitions/browser/browser.d.ts +0 -2
- package/dist-cjs/definitions/browser/index.d.ts +0 -1
- package/dist-cjs/definitions/browser/pw-downloads.d.ts +0 -13
- package/dist-cjs/definitions/browser/pw-interactions.d.ts +0 -78
- package/dist-cjs/definitions/browser/pw-responses.d.ts +0 -28
- package/dist-cjs/definitions/browser/pw-session.d.ts +0 -65
- package/dist-cjs/definitions/browser/pw-shared.d.ts +0 -22
- package/dist-cjs/definitions/browser/pw-snapshot.d.ts +0 -34
- package/dist-cjs/definitions/browser/pw-state.d.ts +0 -22
- package/dist-cjs/definitions/browser/types.d.ts +0 -277
- package/dist-cjs/definitions/code-intelligence.d.ts +0 -8
- package/dist-cjs/definitions/core.d.ts +0 -47
- package/dist-cjs/definitions/delegation.d.ts +0 -11
- package/dist-cjs/definitions/deploy.d.ts +0 -15
- package/dist-cjs/definitions/filesystem.d.ts +0 -9
- package/dist-cjs/definitions/frg.d.ts +0 -3
- package/dist-cjs/definitions/memory.d.ts +0 -8
- package/dist-cjs/definitions/messaging.d.ts +0 -11
- package/dist-cjs/definitions/meta.d.ts +0 -11
- package/dist-cjs/definitions/network.d.ts +0 -11
- package/dist-cjs/definitions/outlook.d.ts +0 -2
- package/dist-cjs/definitions/patch/apply-patch.d.ts +0 -11
- package/dist-cjs/definitions/patch/fuzzy-match.d.ts +0 -10
- package/dist-cjs/definitions/patch/patch-parser.d.ts +0 -50
- package/dist-cjs/definitions/patch/sandbox-paths.d.ts +0 -18
- package/dist-cjs/definitions/process/index.d.ts +0 -1
- package/dist-cjs/definitions/process/process-registry.d.ts +0 -67
- package/dist-cjs/definitions/process/process.d.ts +0 -9
- package/dist-cjs/definitions/process/pty-keys.d.ts +0 -13
- package/dist-cjs/definitions/process/session-slug.d.ts +0 -1
- package/dist-cjs/definitions/quip.d.ts +0 -2
- package/dist-cjs/definitions/search.d.ts +0 -9
- package/dist-cjs/definitions/session-history.d.ts +0 -11
- package/dist-cjs/definitions/shell.d.ts +0 -8
- package/dist-cjs/definitions/slack.d.ts +0 -2
- package/dist-cjs/definitions/web.d.ts +0 -8
- package/dist-cjs/executors/apply-patch.d.ts +0 -51
- package/dist-cjs/executors/arion.d.ts +0 -50
- package/dist-cjs/executors/code-intelligence.d.ts +0 -138
- package/dist-cjs/executors/deploy.d.ts +0 -169
- package/dist-cjs/executors/filesystem.d.ts +0 -150
- package/dist-cjs/executors/frg-freshness.d.ts +0 -93
- package/dist-cjs/executors/frg.d.ts +0 -27
- package/dist-cjs/executors/learning-meta.d.ts +0 -87
- package/dist-cjs/executors/lsp-client.d.ts +0 -38
- package/dist-cjs/executors/memory.d.ts +0 -203
- package/dist-cjs/executors/meta.d.ts +0 -73
- package/dist-cjs/executors/process-registry.d.ts +0 -98
- package/dist-cjs/executors/pty-session-store.d.ts +0 -14
- package/dist-cjs/executors/pty.d.ts +0 -133
- package/dist-cjs/executors/restart.d.ts +0 -13
- package/dist-cjs/executors/search-freshness.d.ts +0 -50
- package/dist-cjs/executors/search-types.d.ts +0 -52
- package/dist-cjs/executors/search.d.ts +0 -11
- package/dist-cjs/executors/self-diagnose.d.ts +0 -89
- package/dist-cjs/executors/session-history.d.ts +0 -75
- package/dist-cjs/executors/shell-safety.d.ts +0 -27
- package/dist-cjs/executors/shell.d.ts +0 -168
- package/dist-cjs/executors/utils.d.ts +0 -20
- package/dist-cjs/executors/web.d.ts +0 -89
- package/dist-cjs/extraction/content-extraction.d.ts +0 -48
- package/dist-cjs/extraction/index.d.ts +0 -4
- package/dist-cjs/headless-control-contract.d.ts +0 -3182
- package/dist-cjs/index.d.ts +0 -62
- package/dist-cjs/local-control-http-auth.d.ts +0 -2
- package/dist-cjs/mcp/client.d.ts +0 -68
- package/dist-cjs/mcp/connection.d.ts +0 -54
- package/dist-cjs/mcp/index.d.ts +0 -10
- package/dist-cjs/mcp/jsonrpc.d.ts +0 -36
- package/dist-cjs/mcp/types.d.ts +0 -178
- package/dist-cjs/network-control-adapter.d.ts +0 -4
- package/dist-cjs/network-runtime/address-types.d.ts +0 -201
- package/dist-cjs/network-runtime/db-owner-fencing.d.ts +0 -43
- package/dist-cjs/network-runtime/delivery-receipts.d.ts +0 -117
- package/dist-cjs/network-runtime/direct-endpoint-authority.d.ts +0 -8
- package/dist-cjs/network-runtime/index.d.ts +0 -24
- package/dist-cjs/network-runtime/local-control-contract.d.ts +0 -758
- package/dist-cjs/network-runtime/node-store-contract.d.ts +0 -49
- package/dist-cjs/network-runtime/pair-route-contract.d.ts +0 -100
- package/dist-cjs/network-runtime/peer-capabilities.d.ts +0 -10
- package/dist-cjs/network-runtime/peer-principal-ref.d.ts +0 -9
- package/dist-cjs/network-runtime/peer-state-machine.d.ts +0 -70
- package/dist-cjs/network-runtime/protocol-schemas.d.ts +0 -328
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.d.ts +0 -81
- package/dist-cjs/outlook/desktop-session.d.ts +0 -68
- package/dist-cjs/policy.d.ts +0 -43
- package/dist-cjs/providers/brave.d.ts +0 -10
- package/dist-cjs/providers/duckduckgo.d.ts +0 -18
- package/dist-cjs/providers/exa.d.ts +0 -10
- package/dist-cjs/providers/firecrawl.d.ts +0 -10
- package/dist-cjs/providers/jina.d.ts +0 -10
- package/dist-cjs/providers/router.d.ts +0 -21
- package/dist-cjs/providers/search-provider.d.ts +0 -35
- package/dist-cjs/providers/tavily.d.ts +0 -10
- package/dist-cjs/quip/desktop-session.d.ts +0 -69
- package/dist-cjs/registry/registry.d.ts +0 -156
- package/dist-cjs/runtime-socket-local-control-client.d.ts +0 -10
- package/dist-cjs/security/dns-normalization.d.ts +0 -6
- package/dist-cjs/security/dns-pinning.d.ts +0 -27
- package/dist-cjs/security/external-content.d.ts +0 -40
- package/dist-cjs/security/ssrf.d.ts +0 -40
- package/dist-cjs/slack/desktop-session.d.ts +0 -69
- package/dist-cjs/tool-factory.d.ts +0 -46
- package/dist-cjs/types.d.ts +0 -1192
- package/dist-cjs/utils/retry.d.ts +0 -11
- package/dist-cjs/utils/safe-parse-json.d.ts +0 -26
- package/dist-cjs/utils/url.d.ts +0 -10
package/dist/utils/retry.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface RetryOptions {
|
|
2
|
-
maxAttempts?: number;
|
|
3
|
-
baseDelayMs?: number;
|
|
4
|
-
maxDelayMs?: number;
|
|
5
|
-
retryableStatuses?: number[];
|
|
6
|
-
retryableCodes?: string[];
|
|
7
|
-
/** Custom fetch function for per-attempt wrappers (e.g., DNS pinning). */
|
|
8
|
-
fetchFn?: (url: string, init: RequestInit) => Promise<Response>;
|
|
9
|
-
}
|
|
10
|
-
export declare function fetchWithRetry(url: string, init: RequestInit, options?: RetryOptions): Promise<Response>;
|
|
11
|
-
export declare function fetchWithSsrf(url: string, init: RequestInit, retryOptions?: RetryOptions): Promise<Response>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Safe JSON extraction and parsing utilities for LLM output.
|
|
3
|
-
*
|
|
4
|
-
* Handles code fences, preamble text, bare JSON, and validates against Zod schemas.
|
|
5
|
-
* NEVER throws -- always returns a typed Result.
|
|
6
|
-
*/
|
|
7
|
-
import type { ZodType } from "zod";
|
|
8
|
-
export type JsonParseResult<T> = {
|
|
9
|
-
ok: true;
|
|
10
|
-
data: T;
|
|
11
|
-
} | {
|
|
12
|
-
ok: false;
|
|
13
|
-
reason: "no_json" | "parse_error" | "schema_mismatch";
|
|
14
|
-
raw: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Extract JSON substring from LLM output.
|
|
18
|
-
* Returns the first candidate found by robust balanced scanning.
|
|
19
|
-
*/
|
|
20
|
-
export declare function extractJson(raw: string): string | null;
|
|
21
|
-
/**
|
|
22
|
-
* Safely extract and parse JSON from LLM output with Zod validation.
|
|
23
|
-
* Handles code fences, preamble text, bare JSON.
|
|
24
|
-
* NEVER throws -- always returns a typed Result.
|
|
25
|
-
*/
|
|
26
|
-
export declare function safeParseJson<T>(raw: string, schema: ZodType<T>): JsonParseResult<T>;
|
package/dist/utils/url.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Convert GitHub blob URLs to raw.githubusercontent.com URLs.
|
|
3
|
-
* GitHub blob URLs return HTML wrappers; raw URLs return actual file content.
|
|
4
|
-
*/
|
|
5
|
-
export declare function normalizeGitHubUrl(url: string): string;
|
|
6
|
-
/**
|
|
7
|
-
* Get configurable User-Agent string.
|
|
8
|
-
* Reads from ARIA_USER_AGENT env var, falls back to default.
|
|
9
|
-
*/
|
|
10
|
-
export declare function getUserAgent(): string;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface AskUserQuestion {
|
|
2
|
-
question: string;
|
|
3
|
-
options?: string[];
|
|
4
|
-
}
|
|
5
|
-
export declare class AskUserPauseRequiredError extends Error {
|
|
6
|
-
readonly code: "ASK_USER_PAUSE_REQUIRED";
|
|
7
|
-
readonly questions: AskUserQuestion[];
|
|
8
|
-
constructor(questions: AskUserQuestion[], message?: string);
|
|
9
|
-
}
|
|
10
|
-
export declare function isAskUserPauseRequiredError(error: unknown): error is AskUserPauseRequiredError;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export declare class WebCache<T> {
|
|
2
|
-
private maxEntries;
|
|
3
|
-
private ttlMs;
|
|
4
|
-
private cache;
|
|
5
|
-
private setCallCount;
|
|
6
|
-
/** How often to run proactive eviction (every N set() calls) */
|
|
7
|
-
private static readonly EVICTION_INTERVAL;
|
|
8
|
-
constructor(maxEntries?: number, ttlMs?: number);
|
|
9
|
-
get(key: string): T | undefined;
|
|
10
|
-
set(key: string, value: T): void;
|
|
11
|
-
/**
|
|
12
|
-
* Proactively remove all expired entries from the cache.
|
|
13
|
-
* Called periodically from set() to prevent expired entries from
|
|
14
|
-
* consuming memory until they are accessed or evicted by LRU.
|
|
15
|
-
*/
|
|
16
|
-
evictExpired(): void;
|
|
17
|
-
/** Remove all entries from the cache */
|
|
18
|
-
clear(): void;
|
|
19
|
-
/** Current number of entries in the cache */
|
|
20
|
-
get size(): number;
|
|
21
|
-
}
|
|
22
|
-
import type { SearchResult } from "../providers/search-provider.js";
|
|
23
|
-
/** Cached search output: query + results array */
|
|
24
|
-
export interface CachedSearchOutput {
|
|
25
|
-
query: string;
|
|
26
|
-
results: SearchResult[];
|
|
27
|
-
}
|
|
28
|
-
/** Cached fetch output with metadata */
|
|
29
|
-
export interface CachedFetchOutput {
|
|
30
|
-
content: unknown;
|
|
31
|
-
status: number;
|
|
32
|
-
contentType?: string;
|
|
33
|
-
fromCache: boolean;
|
|
34
|
-
fetchedAt: string;
|
|
35
|
-
finalUrl: string;
|
|
36
|
-
contentBytes: number;
|
|
37
|
-
truncated: boolean;
|
|
38
|
-
}
|
|
39
|
-
/** Cached browse output with metadata */
|
|
40
|
-
export interface CachedBrowseOutput {
|
|
41
|
-
url: string;
|
|
42
|
-
title: string;
|
|
43
|
-
content: string;
|
|
44
|
-
fromCache: boolean;
|
|
45
|
-
fetchedAt: string;
|
|
46
|
-
finalUrl: string;
|
|
47
|
-
contentBytes: number;
|
|
48
|
-
truncated: boolean;
|
|
49
|
-
}
|
|
50
|
-
export declare const searchCache: WebCache<CachedSearchOutput>;
|
|
51
|
-
export declare const fetchCache: WebCache<CachedFetchOutput>;
|
|
52
|
-
export declare const browseCache: WebCache<CachedBrowseOutput>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { browserTool } from "./browser.js";
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { PwPage } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Wait for the next download event on the page and save the file.
|
|
4
|
-
*/
|
|
5
|
-
export declare function waitForDownload(opts: {
|
|
6
|
-
page: PwPage;
|
|
7
|
-
path?: string;
|
|
8
|
-
timeoutMs?: number;
|
|
9
|
-
}): Promise<{
|
|
10
|
-
url: string;
|
|
11
|
-
suggestedFilename: string;
|
|
12
|
-
path: string;
|
|
13
|
-
}>;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Playwright interaction handlers: click, type, hover, drag, select, key press, evaluate.
|
|
3
|
-
* Ported from OpenClaw's pw-tools-core.interactions.ts.
|
|
4
|
-
*/
|
|
5
|
-
import type { PwPage, RoleRefMap } from "./types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Resolve a ref string (e.g. "e1") into a Playwright Locator using the
|
|
8
|
-
* role-ref map from the last snapshot.
|
|
9
|
-
*/
|
|
10
|
-
export declare function refLocator(page: PwPage, ref: string, refs: RoleRefMap): import("./types.js").PwLocator;
|
|
11
|
-
export declare function clickViaPlaywright(opts: {
|
|
12
|
-
page: PwPage;
|
|
13
|
-
refs: RoleRefMap;
|
|
14
|
-
ref: string;
|
|
15
|
-
doubleClick?: boolean;
|
|
16
|
-
button?: "left" | "right" | "middle";
|
|
17
|
-
modifiers?: string[];
|
|
18
|
-
timeoutMs?: number;
|
|
19
|
-
}): Promise<void>;
|
|
20
|
-
export declare function hoverViaPlaywright(opts: {
|
|
21
|
-
page: PwPage;
|
|
22
|
-
refs: RoleRefMap;
|
|
23
|
-
ref: string;
|
|
24
|
-
timeoutMs?: number;
|
|
25
|
-
}): Promise<void>;
|
|
26
|
-
export declare function dragViaPlaywright(opts: {
|
|
27
|
-
page: PwPage;
|
|
28
|
-
refs: RoleRefMap;
|
|
29
|
-
startRef: string;
|
|
30
|
-
endRef: string;
|
|
31
|
-
timeoutMs?: number;
|
|
32
|
-
}): Promise<void>;
|
|
33
|
-
export declare function typeViaPlaywright(opts: {
|
|
34
|
-
page: PwPage;
|
|
35
|
-
refs: RoleRefMap;
|
|
36
|
-
ref: string;
|
|
37
|
-
text: string;
|
|
38
|
-
submit?: boolean;
|
|
39
|
-
slowly?: boolean;
|
|
40
|
-
timeoutMs?: number;
|
|
41
|
-
}): Promise<void>;
|
|
42
|
-
export declare function selectOptionViaPlaywright(opts: {
|
|
43
|
-
page: PwPage;
|
|
44
|
-
refs: RoleRefMap;
|
|
45
|
-
ref: string;
|
|
46
|
-
values: string[];
|
|
47
|
-
timeoutMs?: number;
|
|
48
|
-
}): Promise<void>;
|
|
49
|
-
export declare function pressKeyViaPlaywright(opts: {
|
|
50
|
-
page: PwPage;
|
|
51
|
-
key: string;
|
|
52
|
-
}): Promise<void>;
|
|
53
|
-
export declare function evaluateViaPlaywright(opts: {
|
|
54
|
-
page: PwPage;
|
|
55
|
-
script: string;
|
|
56
|
-
timeoutMs?: number;
|
|
57
|
-
}): Promise<unknown>;
|
|
58
|
-
export declare function takeScreenshot(opts: {
|
|
59
|
-
page: PwPage;
|
|
60
|
-
fullPage?: boolean;
|
|
61
|
-
}): Promise<Buffer>;
|
|
62
|
-
export declare function scrollPage(opts: {
|
|
63
|
-
page: PwPage;
|
|
64
|
-
direction: "up" | "down";
|
|
65
|
-
amount?: number;
|
|
66
|
-
}): Promise<void>;
|
|
67
|
-
export declare function waitForCondition(opts: {
|
|
68
|
-
page: PwPage;
|
|
69
|
-
selector?: string;
|
|
70
|
-
text?: string;
|
|
71
|
-
timeout?: number;
|
|
72
|
-
}): Promise<void>;
|
|
73
|
-
export declare function uploadFiles(opts: {
|
|
74
|
-
page: PwPage;
|
|
75
|
-
refs: RoleRefMap;
|
|
76
|
-
ref: string;
|
|
77
|
-
paths: string[];
|
|
78
|
-
}): Promise<void>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Console, network, and error monitoring.
|
|
3
|
-
* Ported from OpenClaw's pw-tools-core.activity.ts + pw-tools-core.responses.ts.
|
|
4
|
-
*/
|
|
5
|
-
import type { BrowserConsoleMessage, BrowserNetworkRequest, BrowserPageError } from "./types.js";
|
|
6
|
-
export declare const MAX_CONSOLE_MESSAGES = 500;
|
|
7
|
-
export declare const MAX_NETWORK_REQUESTS = 500;
|
|
8
|
-
export declare const MAX_PAGE_ERRORS = 200;
|
|
9
|
-
/**
|
|
10
|
-
* Filter console messages by minimum severity level.
|
|
11
|
-
*/
|
|
12
|
-
export declare function filterConsoleMessages(messages: BrowserConsoleMessage[], level?: string): BrowserConsoleMessage[];
|
|
13
|
-
/**
|
|
14
|
-
* Filter network requests by URL substring match.
|
|
15
|
-
*/
|
|
16
|
-
export declare function filterNetworkRequests(requests: BrowserNetworkRequest[], filter?: string): BrowserNetworkRequest[];
|
|
17
|
-
/**
|
|
18
|
-
* Format console messages for tool output.
|
|
19
|
-
*/
|
|
20
|
-
export declare function formatConsoleMessages(messages: BrowserConsoleMessage[]): string;
|
|
21
|
-
/**
|
|
22
|
-
* Format network requests for tool output.
|
|
23
|
-
*/
|
|
24
|
-
export declare function formatNetworkRequests(requests: BrowserNetworkRequest[]): string;
|
|
25
|
-
/**
|
|
26
|
-
* Format page errors for tool output.
|
|
27
|
-
*/
|
|
28
|
-
export declare function formatPageErrors(errors: BrowserPageError[]): string;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser session lifecycle management.
|
|
3
|
-
* Unlike OpenClaw (which connects to an external Chrome via CDP), ARIA
|
|
4
|
-
* launches its own Playwright browser instance directly.
|
|
5
|
-
*/
|
|
6
|
-
import type { BrowserConsoleMessage, BrowserNetworkRequest, BrowserPageError, BrowserSession, PwBrowser, RoleRefMap } from "./types.js";
|
|
7
|
-
export declare function getSession(): BrowserSession | null;
|
|
8
|
-
export declare function getRefs(): RoleRefMap;
|
|
9
|
-
export declare function setRefs(refs: RoleRefMap): void;
|
|
10
|
-
export declare function getConsoleMessages(): BrowserConsoleMessage[];
|
|
11
|
-
export declare function getNetworkRequests(): BrowserNetworkRequest[];
|
|
12
|
-
export declare function getPageErrors(): BrowserPageError[];
|
|
13
|
-
/**
|
|
14
|
-
* Test seam for injecting a mocked playwright loader.
|
|
15
|
-
* Passing null restores the production loader.
|
|
16
|
-
*/
|
|
17
|
-
export declare function setPlaywrightLoaderForTest(loader: (() => Promise<unknown>) | null): void;
|
|
18
|
-
type ChromiumLike = {
|
|
19
|
-
launch: (options?: {
|
|
20
|
-
headless?: boolean;
|
|
21
|
-
}) => Promise<PwBrowser>;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Resolve Playwright's chromium launcher across module interop shapes.
|
|
25
|
-
* Some runtimes expose `{ chromium }`, others only `{ default: { chromium } }`.
|
|
26
|
-
*/
|
|
27
|
-
export declare function resolveChromiumLauncher(moduleValue: unknown): ChromiumLike;
|
|
28
|
-
/**
|
|
29
|
-
* Launch a new Playwright browser session.
|
|
30
|
-
* Uses dynamic import so the tool module loads even without playwright installed.
|
|
31
|
-
*/
|
|
32
|
-
export declare function launchBrowser(options?: {
|
|
33
|
-
headless?: boolean;
|
|
34
|
-
url?: string;
|
|
35
|
-
}): Promise<BrowserSession>;
|
|
36
|
-
/**
|
|
37
|
-
* Close the current browser session and clean up all state.
|
|
38
|
-
*/
|
|
39
|
-
export declare function closeBrowser(): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* List all open tabs (pages) in the current context.
|
|
42
|
-
*/
|
|
43
|
-
export declare function listTabs(): Array<{
|
|
44
|
-
index: number;
|
|
45
|
-
url: string;
|
|
46
|
-
active: boolean;
|
|
47
|
-
}>;
|
|
48
|
-
/**
|
|
49
|
-
* Open a new tab, optionally navigating to a URL.
|
|
50
|
-
*/
|
|
51
|
-
export declare function newTab(url?: string): Promise<{
|
|
52
|
-
index: number;
|
|
53
|
-
url: string;
|
|
54
|
-
}>;
|
|
55
|
-
/**
|
|
56
|
-
* Switch to a tab by index.
|
|
57
|
-
*/
|
|
58
|
-
export declare function selectTab(index: number): Promise<{
|
|
59
|
-
url: string;
|
|
60
|
-
}>;
|
|
61
|
-
/**
|
|
62
|
-
* Close a tab by index (defaults to current tab).
|
|
63
|
-
*/
|
|
64
|
-
export declare function closeTab(index?: number): Promise<void>;
|
|
65
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared utilities for Playwright-based browser tool functions.
|
|
3
|
-
* Ported from OpenClaw's pw-tools-core.shared.ts.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Parse a raw ref string into its canonical "eN" form.
|
|
7
|
-
* Accepts: "e1", "@e1", "ref=e1" -> "e1". Returns null if invalid.
|
|
8
|
-
*/
|
|
9
|
-
export declare function parseRoleRef(raw: string): string | null;
|
|
10
|
-
/**
|
|
11
|
-
* Validate and normalize a ref string. Throws if the ref is empty/invalid.
|
|
12
|
-
*/
|
|
13
|
-
export declare function requireRef(value: unknown): string;
|
|
14
|
-
/**
|
|
15
|
-
* Clamp a timeout value to a safe range (500ms .. 120s).
|
|
16
|
-
*/
|
|
17
|
-
export declare function normalizeTimeoutMs(timeoutMs: number | undefined, fallback: number): number;
|
|
18
|
-
/**
|
|
19
|
-
* Rewrite Playwright errors into messages that guide the LLM to take
|
|
20
|
-
* corrective action (re-snapshot, scroll, etc.).
|
|
21
|
-
*/
|
|
22
|
-
export declare function toAIFriendlyError(error: unknown, selector: string): Error;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Accessibility tree snapshot and role-ref system.
|
|
3
|
-
* Ported from OpenClaw's pw-role-snapshot.ts + pw-tools-core.snapshot.ts.
|
|
4
|
-
*/
|
|
5
|
-
import type { PwPage, RoleRefMap, RoleSnapshotStats, SnapshotResult } from "./types.js";
|
|
6
|
-
export interface RoleSnapshotOptions {
|
|
7
|
-
/** Only include interactive elements (buttons, links, inputs, etc.). */
|
|
8
|
-
interactive?: boolean;
|
|
9
|
-
/** Maximum depth to include (0 = root only). */
|
|
10
|
-
maxDepth?: number;
|
|
11
|
-
/** Remove unnamed structural elements and empty branches. */
|
|
12
|
-
compact?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function getRoleSnapshotStats(snapshot: string, refs: RoleRefMap): RoleSnapshotStats;
|
|
15
|
-
/**
|
|
16
|
-
* Build a role-ref snapshot from Playwright's ariaSnapshot() output.
|
|
17
|
-
* This is the core transform: raw ARIA tree text -> annotated tree + ref map.
|
|
18
|
-
*/
|
|
19
|
-
export declare function buildRoleSnapshotFromAriaSnapshot(ariaSnapshot: string, options?: RoleSnapshotOptions): {
|
|
20
|
-
snapshot: string;
|
|
21
|
-
refs: RoleRefMap;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* Take a role-based accessibility snapshot of a page.
|
|
25
|
-
* Uses Playwright's built-in ariaSnapshot() on the :root locator,
|
|
26
|
-
* then annotates elements with [ref=eN] markers.
|
|
27
|
-
*/
|
|
28
|
-
export declare function snapshotPage(page: PwPage, options?: RoleSnapshotOptions): Promise<SnapshotResult>;
|
|
29
|
-
/**
|
|
30
|
-
* Navigate a page to a URL.
|
|
31
|
-
*/
|
|
32
|
-
export declare function navigatePage(page: PwPage, url: string, timeoutMs?: number): Promise<{
|
|
33
|
-
url: string;
|
|
34
|
-
}>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Cookie and storage management.
|
|
3
|
-
* Ported from OpenClaw's pw-tools-core.state.ts + pw-tools-core.storage.ts.
|
|
4
|
-
*/
|
|
5
|
-
import type { PwBrowserContext, PwCookie, PwPage } from "./types.js";
|
|
6
|
-
export declare function cookiesGet(context: PwBrowserContext): Promise<{
|
|
7
|
-
cookies: PwCookie[];
|
|
8
|
-
}>;
|
|
9
|
-
export declare function cookiesSet(context: PwBrowserContext, cookies: Array<{
|
|
10
|
-
name: string;
|
|
11
|
-
value: string;
|
|
12
|
-
domain: string;
|
|
13
|
-
path?: string;
|
|
14
|
-
}>): Promise<void>;
|
|
15
|
-
export declare function cookiesClear(context: PwBrowserContext): Promise<void>;
|
|
16
|
-
type StorageKind = "local" | "session";
|
|
17
|
-
export declare function storageGet(page: PwPage, kind: StorageKind, key?: string): Promise<{
|
|
18
|
-
values: Record<string, string>;
|
|
19
|
-
}>;
|
|
20
|
-
export declare function storageSet(page: PwPage, kind: StorageKind, key: string, value: string): Promise<void>;
|
|
21
|
-
export declare function storageClear(page: PwPage, kind: StorageKind): Promise<void>;
|
|
22
|
-
export {};
|
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared browser tool types.
|
|
3
|
-
*
|
|
4
|
-
* Playwright types are referenced dynamically (the `playwright` package is an
|
|
5
|
-
* optional peer dependency loaded via `await import("playwright")`).
|
|
6
|
-
*/
|
|
7
|
-
/** Minimal Browser interface (matches Playwright's Browser). */
|
|
8
|
-
export interface PwBrowser {
|
|
9
|
-
close(): Promise<void>;
|
|
10
|
-
contexts(): PwBrowserContext[];
|
|
11
|
-
isConnected(): boolean;
|
|
12
|
-
}
|
|
13
|
-
/** Minimal BrowserContext interface. */
|
|
14
|
-
export interface PwBrowserContext {
|
|
15
|
-
pages(): PwPage[];
|
|
16
|
-
newPage(): Promise<PwPage>;
|
|
17
|
-
cookies(urls?: string | string[]): Promise<PwCookie[]>;
|
|
18
|
-
addCookies(cookies: PwCookie[]): Promise<void>;
|
|
19
|
-
clearCookies(): Promise<void>;
|
|
20
|
-
setOffline(offline: boolean): Promise<void>;
|
|
21
|
-
close(): Promise<void>;
|
|
22
|
-
}
|
|
23
|
-
/** Minimal Page interface. */
|
|
24
|
-
export interface PwPage {
|
|
25
|
-
goto(url: string, options?: {
|
|
26
|
-
timeout?: number;
|
|
27
|
-
waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit";
|
|
28
|
-
}): Promise<unknown>;
|
|
29
|
-
url(): string;
|
|
30
|
-
title(): Promise<string>;
|
|
31
|
-
close(): Promise<void>;
|
|
32
|
-
content(): Promise<string>;
|
|
33
|
-
setViewportSize(size: {
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
|
-
}): Promise<void>;
|
|
37
|
-
screenshot(options?: {
|
|
38
|
-
type?: "png" | "jpeg";
|
|
39
|
-
fullPage?: boolean;
|
|
40
|
-
}): Promise<Buffer>;
|
|
41
|
-
evaluate<T>(fn: string | ((...args: unknown[]) => T), arg?: unknown): Promise<T>;
|
|
42
|
-
locator(selector: string): PwLocator;
|
|
43
|
-
getByRole(role: string, options?: {
|
|
44
|
-
name?: string;
|
|
45
|
-
exact?: boolean;
|
|
46
|
-
}): PwLocator;
|
|
47
|
-
keyboard: {
|
|
48
|
-
press(key: string, options?: {
|
|
49
|
-
delay?: number;
|
|
50
|
-
}): Promise<void>;
|
|
51
|
-
};
|
|
52
|
-
mouse: {
|
|
53
|
-
wheel(deltaX: number, deltaY: number): Promise<void>;
|
|
54
|
-
};
|
|
55
|
-
waitForTimeout(timeout: number): Promise<void>;
|
|
56
|
-
waitForSelector(selector: string, options?: {
|
|
57
|
-
timeout?: number;
|
|
58
|
-
state?: string;
|
|
59
|
-
}): Promise<unknown>;
|
|
60
|
-
waitForLoadState(state?: string, options?: {
|
|
61
|
-
timeout?: number;
|
|
62
|
-
}): Promise<void>;
|
|
63
|
-
on(event: string, handler: (...args: unknown[]) => void): void;
|
|
64
|
-
off(event: string, handler: (...args: unknown[]) => void): void;
|
|
65
|
-
isClosed(): boolean;
|
|
66
|
-
frameLocator(selector: string): PwFrameLocator;
|
|
67
|
-
}
|
|
68
|
-
export interface PwFrameLocator {
|
|
69
|
-
locator(selector: string): PwLocator;
|
|
70
|
-
getByRole(role: string, options?: {
|
|
71
|
-
name?: string;
|
|
72
|
-
exact?: boolean;
|
|
73
|
-
}): PwLocator;
|
|
74
|
-
}
|
|
75
|
-
export interface PwLocator {
|
|
76
|
-
click(options?: {
|
|
77
|
-
timeout?: number;
|
|
78
|
-
button?: string;
|
|
79
|
-
modifiers?: string[];
|
|
80
|
-
}): Promise<void>;
|
|
81
|
-
dblclick(options?: {
|
|
82
|
-
timeout?: number;
|
|
83
|
-
button?: string;
|
|
84
|
-
modifiers?: string[];
|
|
85
|
-
}): Promise<void>;
|
|
86
|
-
fill(value: string, options?: {
|
|
87
|
-
timeout?: number;
|
|
88
|
-
}): Promise<void>;
|
|
89
|
-
type(text: string, options?: {
|
|
90
|
-
timeout?: number;
|
|
91
|
-
delay?: number;
|
|
92
|
-
}): Promise<void>;
|
|
93
|
-
press(key: string, options?: {
|
|
94
|
-
timeout?: number;
|
|
95
|
-
}): Promise<void>;
|
|
96
|
-
hover(options?: {
|
|
97
|
-
timeout?: number;
|
|
98
|
-
}): Promise<void>;
|
|
99
|
-
selectOption(values: string | string[], options?: {
|
|
100
|
-
timeout?: number;
|
|
101
|
-
}): Promise<string[]>;
|
|
102
|
-
dragTo(target: PwLocator, options?: {
|
|
103
|
-
timeout?: number;
|
|
104
|
-
}): Promise<void>;
|
|
105
|
-
setInputFiles(files: string | string[]): Promise<void>;
|
|
106
|
-
highlight(): Promise<void>;
|
|
107
|
-
screenshot(options?: {
|
|
108
|
-
type?: "png" | "jpeg";
|
|
109
|
-
}): Promise<Buffer>;
|
|
110
|
-
scrollIntoViewIfNeeded(options?: {
|
|
111
|
-
timeout?: number;
|
|
112
|
-
}): Promise<void>;
|
|
113
|
-
boundingBox(): Promise<{
|
|
114
|
-
x: number;
|
|
115
|
-
y: number;
|
|
116
|
-
width: number;
|
|
117
|
-
height: number;
|
|
118
|
-
} | null>;
|
|
119
|
-
elementHandle(): Promise<PwElementHandle | null>;
|
|
120
|
-
nth(index: number): PwLocator;
|
|
121
|
-
first(): PwLocator;
|
|
122
|
-
waitFor(options?: {
|
|
123
|
-
state?: string;
|
|
124
|
-
timeout?: number;
|
|
125
|
-
}): Promise<void>;
|
|
126
|
-
ariaSnapshot(): Promise<string>;
|
|
127
|
-
setChecked(checked: boolean, options?: {
|
|
128
|
-
timeout?: number;
|
|
129
|
-
}): Promise<void>;
|
|
130
|
-
}
|
|
131
|
-
export interface PwElementHandle {
|
|
132
|
-
evaluate<T>(fn: (el: Element, ...args: unknown[]) => T, ...args: unknown[]): Promise<T>;
|
|
133
|
-
}
|
|
134
|
-
export interface PwCookie {
|
|
135
|
-
name: string;
|
|
136
|
-
value: string;
|
|
137
|
-
domain?: string;
|
|
138
|
-
path?: string;
|
|
139
|
-
url?: string;
|
|
140
|
-
expires?: number;
|
|
141
|
-
httpOnly?: boolean;
|
|
142
|
-
secure?: boolean;
|
|
143
|
-
sameSite?: "Lax" | "None" | "Strict";
|
|
144
|
-
}
|
|
145
|
-
export interface BrowserSession {
|
|
146
|
-
browser: PwBrowser;
|
|
147
|
-
context: PwBrowserContext;
|
|
148
|
-
page: PwPage;
|
|
149
|
-
}
|
|
150
|
-
export interface RoleRef {
|
|
151
|
-
role: string;
|
|
152
|
-
name?: string;
|
|
153
|
-
/** Index used only when role+name duplicates exist. */
|
|
154
|
-
nth?: number;
|
|
155
|
-
}
|
|
156
|
-
export type RoleRefMap = Record<string, RoleRef>;
|
|
157
|
-
export interface RoleSnapshotStats {
|
|
158
|
-
lines: number;
|
|
159
|
-
chars: number;
|
|
160
|
-
refs: number;
|
|
161
|
-
interactive: number;
|
|
162
|
-
}
|
|
163
|
-
export interface SnapshotResult {
|
|
164
|
-
/** Text representation of accessibility tree */
|
|
165
|
-
snapshot: string;
|
|
166
|
-
refs: RoleRefMap;
|
|
167
|
-
stats: RoleSnapshotStats;
|
|
168
|
-
url: string;
|
|
169
|
-
title: string;
|
|
170
|
-
}
|
|
171
|
-
export interface BrowserConsoleMessage {
|
|
172
|
-
type: string;
|
|
173
|
-
text: string;
|
|
174
|
-
timestamp: string;
|
|
175
|
-
}
|
|
176
|
-
export interface BrowserNetworkRequest {
|
|
177
|
-
id: string;
|
|
178
|
-
timestamp: string;
|
|
179
|
-
method: string;
|
|
180
|
-
url: string;
|
|
181
|
-
status?: number;
|
|
182
|
-
resourceType?: string;
|
|
183
|
-
ok?: boolean;
|
|
184
|
-
failureText?: string;
|
|
185
|
-
}
|
|
186
|
-
export interface BrowserPageError {
|
|
187
|
-
message: string;
|
|
188
|
-
name?: string;
|
|
189
|
-
timestamp: string;
|
|
190
|
-
}
|
|
191
|
-
export type BrowserAction = {
|
|
192
|
-
action: "launch";
|
|
193
|
-
url?: string;
|
|
194
|
-
headless?: boolean;
|
|
195
|
-
} | {
|
|
196
|
-
action: "close";
|
|
197
|
-
} | {
|
|
198
|
-
action: "navigate";
|
|
199
|
-
url: string;
|
|
200
|
-
} | {
|
|
201
|
-
action: "snapshot";
|
|
202
|
-
interactive?: boolean;
|
|
203
|
-
} | {
|
|
204
|
-
action: "click";
|
|
205
|
-
ref: string;
|
|
206
|
-
button?: "left" | "right" | "middle";
|
|
207
|
-
modifiers?: string[];
|
|
208
|
-
doubleClick?: boolean;
|
|
209
|
-
} | {
|
|
210
|
-
action: "type";
|
|
211
|
-
ref: string;
|
|
212
|
-
text: string;
|
|
213
|
-
submit?: boolean;
|
|
214
|
-
slowly?: boolean;
|
|
215
|
-
} | {
|
|
216
|
-
action: "hover";
|
|
217
|
-
ref: string;
|
|
218
|
-
} | {
|
|
219
|
-
action: "drag";
|
|
220
|
-
startRef: string;
|
|
221
|
-
endRef: string;
|
|
222
|
-
} | {
|
|
223
|
-
action: "select_option";
|
|
224
|
-
ref: string;
|
|
225
|
-
values: string[];
|
|
226
|
-
} | {
|
|
227
|
-
action: "press_key";
|
|
228
|
-
key: string;
|
|
229
|
-
} | {
|
|
230
|
-
action: "scroll";
|
|
231
|
-
direction: "up" | "down";
|
|
232
|
-
amount?: number;
|
|
233
|
-
} | {
|
|
234
|
-
action: "evaluate";
|
|
235
|
-
script: string;
|
|
236
|
-
} | {
|
|
237
|
-
action: "screenshot";
|
|
238
|
-
} | {
|
|
239
|
-
action: "get_console";
|
|
240
|
-
level?: string;
|
|
241
|
-
} | {
|
|
242
|
-
action: "get_network";
|
|
243
|
-
filter?: string;
|
|
244
|
-
} | {
|
|
245
|
-
action: "wait";
|
|
246
|
-
selector?: string;
|
|
247
|
-
text?: string;
|
|
248
|
-
timeout?: number;
|
|
249
|
-
} | {
|
|
250
|
-
action: "tab_list";
|
|
251
|
-
} | {
|
|
252
|
-
action: "tab_new";
|
|
253
|
-
url?: string;
|
|
254
|
-
} | {
|
|
255
|
-
action: "tab_select";
|
|
256
|
-
index: number;
|
|
257
|
-
} | {
|
|
258
|
-
action: "tab_close";
|
|
259
|
-
index?: number;
|
|
260
|
-
} | {
|
|
261
|
-
action: "cookies_get";
|
|
262
|
-
url?: string;
|
|
263
|
-
} | {
|
|
264
|
-
action: "cookies_set";
|
|
265
|
-
cookies: Array<{
|
|
266
|
-
name: string;
|
|
267
|
-
value: string;
|
|
268
|
-
domain: string;
|
|
269
|
-
path?: string;
|
|
270
|
-
}>;
|
|
271
|
-
} | {
|
|
272
|
-
action: "cookies_clear";
|
|
273
|
-
} | {
|
|
274
|
-
action: "upload";
|
|
275
|
-
ref: string;
|
|
276
|
-
paths: string[];
|
|
277
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Code intelligence tool definitions
|
|
3
|
-
*
|
|
4
|
-
* 7 native tools wrapping external CLI binaries for code search, structural
|
|
5
|
-
* analysis, knowledge graphs, LSP intelligence, and file discovery.
|
|
6
|
-
*/
|
|
7
|
-
import type { Tool } from "../types.js";
|
|
8
|
-
export declare const CODE_INTELLIGENCE_TOOL_DEFINITIONS: Tool[];
|