@aria-cli/tools 1.0.0
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 +4 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/ask-user-interaction.d.ts +11 -0
- package/dist/ask-user-interaction.d.ts.map +1 -0
- package/dist/ask-user-interaction.js +23 -0
- package/dist/ask-user-interaction.js.map +1 -0
- package/dist/cache/web-cache.d.ts +53 -0
- package/dist/cache/web-cache.d.ts.map +1 -0
- package/dist/cache/web-cache.js +67 -0
- package/dist/cache/web-cache.js.map +1 -0
- package/dist/definitions/arion.d.ts +9 -0
- package/dist/definitions/arion.d.ts.map +1 -0
- package/dist/definitions/arion.js +105 -0
- package/dist/definitions/arion.js.map +1 -0
- package/dist/definitions/browser/browser.d.ts +3 -0
- package/dist/definitions/browser/browser.d.ts.map +1 -0
- package/dist/definitions/browser/browser.js +419 -0
- package/dist/definitions/browser/browser.js.map +1 -0
- package/dist/definitions/browser/index.d.ts +2 -0
- package/dist/definitions/browser/index.d.ts.map +1 -0
- package/dist/definitions/browser/index.js +5 -0
- package/dist/definitions/browser/index.js.map +1 -0
- package/dist/definitions/browser/pw-downloads.d.ts +14 -0
- package/dist/definitions/browser/pw-downloads.d.ts.map +1 -0
- package/dist/definitions/browser/pw-downloads.js +115 -0
- package/dist/definitions/browser/pw-downloads.js.map +1 -0
- package/dist/definitions/browser/pw-interactions.d.ts +79 -0
- package/dist/definitions/browser/pw-interactions.d.ts.map +1 -0
- package/dist/definitions/browser/pw-interactions.js +200 -0
- package/dist/definitions/browser/pw-interactions.js.map +1 -0
- package/dist/definitions/browser/pw-responses.d.ts +29 -0
- package/dist/definitions/browser/pw-responses.d.ts.map +1 -0
- package/dist/definitions/browser/pw-responses.js +77 -0
- package/dist/definitions/browser/pw-responses.js.map +1 -0
- package/dist/definitions/browser/pw-session.d.ts +66 -0
- package/dist/definitions/browser/pw-session.d.ts.map +1 -0
- package/dist/definitions/browser/pw-session.js +311 -0
- package/dist/definitions/browser/pw-session.js.map +1 -0
- package/dist/definitions/browser/pw-shared.d.ts +23 -0
- package/dist/definitions/browser/pw-shared.d.ts.map +1 -0
- package/dist/definitions/browser/pw-shared.js +67 -0
- package/dist/definitions/browser/pw-shared.js.map +1 -0
- package/dist/definitions/browser/pw-snapshot.d.ts +35 -0
- package/dist/definitions/browser/pw-snapshot.d.ts.map +1 -0
- package/dist/definitions/browser/pw-snapshot.js +302 -0
- package/dist/definitions/browser/pw-snapshot.js.map +1 -0
- package/dist/definitions/browser/pw-state.d.ts +23 -0
- package/dist/definitions/browser/pw-state.d.ts.map +1 -0
- package/dist/definitions/browser/pw-state.js +63 -0
- package/dist/definitions/browser/pw-state.js.map +1 -0
- package/dist/definitions/browser/types.d.ts +278 -0
- package/dist/definitions/browser/types.d.ts.map +1 -0
- package/dist/definitions/browser/types.js +5 -0
- package/dist/definitions/browser/types.js.map +1 -0
- package/dist/definitions/core.d.ts +45 -0
- package/dist/definitions/core.d.ts.map +1 -0
- package/dist/definitions/core.js +98 -0
- package/dist/definitions/core.js.map +1 -0
- package/dist/definitions/delegation.d.ts +12 -0
- package/dist/definitions/delegation.d.ts.map +1 -0
- package/dist/definitions/delegation.js +513 -0
- package/dist/definitions/delegation.js.map +1 -0
- package/dist/definitions/deploy.d.ts +16 -0
- package/dist/definitions/deploy.d.ts.map +1 -0
- package/dist/definitions/deploy.js +66 -0
- package/dist/definitions/deploy.js.map +1 -0
- package/dist/definitions/filesystem.d.ts +9 -0
- package/dist/definitions/filesystem.d.ts.map +1 -0
- package/dist/definitions/filesystem.js +231 -0
- package/dist/definitions/filesystem.js.map +1 -0
- package/dist/definitions/index.d.ts +17 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/index.js +18 -0
- package/dist/definitions/index.js.map +1 -0
- package/dist/definitions/memory.d.ts +9 -0
- package/dist/definitions/memory.d.ts.map +1 -0
- package/dist/definitions/memory.js +124 -0
- package/dist/definitions/memory.js.map +1 -0
- package/dist/definitions/messaging.d.ts +12 -0
- package/dist/definitions/messaging.d.ts.map +1 -0
- package/dist/definitions/messaging.js +626 -0
- package/dist/definitions/messaging.js.map +1 -0
- package/dist/definitions/meta.d.ts +12 -0
- package/dist/definitions/meta.d.ts.map +1 -0
- package/dist/definitions/meta.js +350 -0
- package/dist/definitions/meta.js.map +1 -0
- package/dist/definitions/network.d.ts +12 -0
- package/dist/definitions/network.d.ts.map +1 -0
- package/dist/definitions/network.js +160 -0
- package/dist/definitions/network.js.map +1 -0
- package/dist/definitions/outlook.d.ts +3 -0
- package/dist/definitions/outlook.d.ts.map +1 -0
- package/dist/definitions/outlook.js +278 -0
- package/dist/definitions/outlook.js.map +1 -0
- package/dist/definitions/patch/apply-patch.d.ts +12 -0
- package/dist/definitions/patch/apply-patch.d.ts.map +1 -0
- package/dist/definitions/patch/apply-patch.js +185 -0
- package/dist/definitions/patch/apply-patch.js.map +1 -0
- package/dist/definitions/patch/fuzzy-match.d.ts +11 -0
- package/dist/definitions/patch/fuzzy-match.d.ts.map +1 -0
- package/dist/definitions/patch/fuzzy-match.js +167 -0
- package/dist/definitions/patch/fuzzy-match.js.map +1 -0
- package/dist/definitions/patch/index.d.ts +2 -0
- package/dist/definitions/patch/index.d.ts.map +1 -0
- package/dist/definitions/patch/index.js +2 -0
- package/dist/definitions/patch/index.js.map +1 -0
- package/dist/definitions/patch/patch-parser.d.ts +51 -0
- package/dist/definitions/patch/patch-parser.d.ts.map +1 -0
- package/dist/definitions/patch/patch-parser.js +208 -0
- package/dist/definitions/patch/patch-parser.js.map +1 -0
- package/dist/definitions/patch/sandbox-paths.d.ts +19 -0
- package/dist/definitions/patch/sandbox-paths.d.ts.map +1 -0
- package/dist/definitions/patch/sandbox-paths.js +106 -0
- package/dist/definitions/patch/sandbox-paths.js.map +1 -0
- package/dist/definitions/process/index.d.ts +2 -0
- package/dist/definitions/process/index.d.ts.map +1 -0
- package/dist/definitions/process/index.js +5 -0
- package/dist/definitions/process/index.js.map +1 -0
- package/dist/definitions/process/process-registry.d.ts +68 -0
- package/dist/definitions/process/process-registry.d.ts.map +1 -0
- package/dist/definitions/process/process-registry.js +214 -0
- package/dist/definitions/process/process-registry.js.map +1 -0
- package/dist/definitions/process/process.d.ts +10 -0
- package/dist/definitions/process/process.d.ts.map +1 -0
- package/dist/definitions/process/process.js +387 -0
- package/dist/definitions/process/process.js.map +1 -0
- package/dist/definitions/process/pty-keys.d.ts +14 -0
- package/dist/definitions/process/pty-keys.d.ts.map +1 -0
- package/dist/definitions/process/pty-keys.js +255 -0
- package/dist/definitions/process/pty-keys.js.map +1 -0
- package/dist/definitions/process/session-slug.d.ts +2 -0
- package/dist/definitions/process/session-slug.d.ts.map +1 -0
- package/dist/definitions/process/session-slug.js +143 -0
- package/dist/definitions/process/session-slug.js.map +1 -0
- package/dist/definitions/quip.d.ts +3 -0
- package/dist/definitions/quip.d.ts.map +1 -0
- package/dist/definitions/quip.js +196 -0
- package/dist/definitions/quip.js.map +1 -0
- package/dist/definitions/session-history.d.ts +12 -0
- package/dist/definitions/session-history.d.ts.map +1 -0
- package/dist/definitions/session-history.js +70 -0
- package/dist/definitions/session-history.js.map +1 -0
- package/dist/definitions/shell.d.ts +9 -0
- package/dist/definitions/shell.d.ts.map +1 -0
- package/dist/definitions/shell.js +182 -0
- package/dist/definitions/shell.js.map +1 -0
- package/dist/definitions/slack.d.ts +3 -0
- package/dist/definitions/slack.d.ts.map +1 -0
- package/dist/definitions/slack.js +181 -0
- package/dist/definitions/slack.js.map +1 -0
- package/dist/definitions/web.d.ts +9 -0
- package/dist/definitions/web.d.ts.map +1 -0
- package/dist/definitions/web.js +110 -0
- package/dist/definitions/web.js.map +1 -0
- package/dist/executors/apply-patch.d.ts +52 -0
- package/dist/executors/apply-patch.d.ts.map +1 -0
- package/dist/executors/apply-patch.js +884 -0
- package/dist/executors/apply-patch.js.map +1 -0
- package/dist/executors/arion.d.ts +51 -0
- package/dist/executors/arion.d.ts.map +1 -0
- package/dist/executors/arion.js +120 -0
- package/dist/executors/arion.js.map +1 -0
- package/dist/executors/deploy.d.ts +170 -0
- package/dist/executors/deploy.d.ts.map +1 -0
- package/dist/executors/deploy.js +849 -0
- package/dist/executors/deploy.js.map +1 -0
- package/dist/executors/filesystem.d.ts +151 -0
- package/dist/executors/filesystem.d.ts.map +1 -0
- package/dist/executors/filesystem.js +1117 -0
- package/dist/executors/filesystem.js.map +1 -0
- package/dist/executors/index.d.ts +39 -0
- package/dist/executors/index.d.ts.map +1 -0
- package/dist/executors/index.js +42 -0
- package/dist/executors/index.js.map +1 -0
- package/dist/executors/learning-meta.d.ts +88 -0
- package/dist/executors/learning-meta.d.ts.map +1 -0
- package/dist/executors/learning-meta.js +1147 -0
- package/dist/executors/learning-meta.js.map +1 -0
- package/dist/executors/memory.d.ts +204 -0
- package/dist/executors/memory.d.ts.map +1 -0
- package/dist/executors/memory.js +751 -0
- package/dist/executors/memory.js.map +1 -0
- package/dist/executors/meta.d.ts +74 -0
- package/dist/executors/meta.d.ts.map +1 -0
- package/dist/executors/meta.js +221 -0
- package/dist/executors/meta.js.map +1 -0
- package/dist/executors/process-registry.d.ts +99 -0
- package/dist/executors/process-registry.d.ts.map +1 -0
- package/dist/executors/process-registry.js +466 -0
- package/dist/executors/process-registry.js.map +1 -0
- package/dist/executors/pty-session-store.d.ts +15 -0
- package/dist/executors/pty-session-store.d.ts.map +1 -0
- package/dist/executors/pty-session-store.js +31 -0
- package/dist/executors/pty-session-store.js.map +1 -0
- package/dist/executors/pty.d.ts +134 -0
- package/dist/executors/pty.d.ts.map +1 -0
- package/dist/executors/pty.js +272 -0
- package/dist/executors/pty.js.map +1 -0
- package/dist/executors/restart.d.ts +19 -0
- package/dist/executors/restart.d.ts.map +1 -0
- package/dist/executors/restart.js +151 -0
- package/dist/executors/restart.js.map +1 -0
- package/dist/executors/search-types.d.ts +53 -0
- package/dist/executors/search-types.d.ts.map +1 -0
- package/dist/executors/search-types.js +53 -0
- package/dist/executors/search-types.js.map +1 -0
- package/dist/executors/self-diagnose.d.ts +90 -0
- package/dist/executors/self-diagnose.d.ts.map +1 -0
- package/dist/executors/self-diagnose.js +399 -0
- package/dist/executors/self-diagnose.js.map +1 -0
- package/dist/executors/session-history.d.ts +76 -0
- package/dist/executors/session-history.d.ts.map +1 -0
- package/dist/executors/session-history.js +284 -0
- package/dist/executors/session-history.js.map +1 -0
- package/dist/executors/shell-safety.d.ts +28 -0
- package/dist/executors/shell-safety.d.ts.map +1 -0
- package/dist/executors/shell-safety.js +474 -0
- package/dist/executors/shell-safety.js.map +1 -0
- package/dist/executors/shell.d.ts +169 -0
- package/dist/executors/shell.d.ts.map +1 -0
- package/dist/executors/shell.js +955 -0
- package/dist/executors/shell.js.map +1 -0
- package/dist/executors/utils.d.ts +21 -0
- package/dist/executors/utils.d.ts.map +1 -0
- package/dist/executors/utils.js +34 -0
- package/dist/executors/utils.js.map +1 -0
- package/dist/executors/web.d.ts +90 -0
- package/dist/executors/web.d.ts.map +1 -0
- package/dist/executors/web.js +543 -0
- package/dist/executors/web.js.map +1 -0
- package/dist/extraction/content-extraction.d.ts +49 -0
- package/dist/extraction/content-extraction.d.ts.map +1 -0
- package/dist/extraction/content-extraction.js +236 -0
- package/dist/extraction/content-extraction.js.map +1 -0
- package/dist/extraction/index.d.ts +5 -0
- package/dist/extraction/index.d.ts.map +1 -0
- package/dist/extraction/index.js +5 -0
- package/dist/extraction/index.js.map +1 -0
- package/dist/headless-control-contract.d.ts +3171 -0
- package/dist/headless-control-contract.d.ts.map +1 -0
- package/dist/headless-control-contract.js +968 -0
- package/dist/headless-control-contract.js.map +1 -0
- package/dist/index.d.ts +63 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +73 -0
- package/dist/index.js.map +1 -0
- package/dist/local-control-http-auth.d.ts +3 -0
- package/dist/local-control-http-auth.d.ts.map +1 -0
- package/dist/local-control-http-auth.js +3 -0
- package/dist/local-control-http-auth.js.map +1 -0
- package/dist/mcp/client.d.ts +69 -0
- package/dist/mcp/client.d.ts.map +1 -0
- package/dist/mcp/client.js +182 -0
- package/dist/mcp/client.js.map +1 -0
- package/dist/mcp/connection.d.ts +55 -0
- package/dist/mcp/connection.d.ts.map +1 -0
- package/dist/mcp/connection.js +481 -0
- package/dist/mcp/connection.js.map +1 -0
- package/dist/mcp/index.d.ts +11 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +11 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/jsonrpc.d.ts +37 -0
- package/dist/mcp/jsonrpc.d.ts.map +1 -0
- package/dist/mcp/jsonrpc.js +145 -0
- package/dist/mcp/jsonrpc.js.map +1 -0
- package/dist/mcp/types.d.ts +179 -0
- package/dist/mcp/types.d.ts.map +1 -0
- package/dist/mcp/types.js +8 -0
- package/dist/mcp/types.js.map +1 -0
- package/dist/network-control-adapter.d.ts +5 -0
- package/dist/network-control-adapter.d.ts.map +1 -0
- package/dist/network-control-adapter.js +73 -0
- package/dist/network-control-adapter.js.map +1 -0
- package/dist/network-runtime/address-types.d.ts +202 -0
- package/dist/network-runtime/address-types.d.ts.map +1 -0
- package/dist/network-runtime/address-types.js +166 -0
- package/dist/network-runtime/address-types.js.map +1 -0
- package/dist/network-runtime/db-owner-fencing.d.ts +44 -0
- package/dist/network-runtime/db-owner-fencing.d.ts.map +1 -0
- package/dist/network-runtime/db-owner-fencing.js +70 -0
- package/dist/network-runtime/db-owner-fencing.js.map +1 -0
- package/dist/network-runtime/delivery-receipts.d.ts +118 -0
- package/dist/network-runtime/delivery-receipts.d.ts.map +1 -0
- package/dist/network-runtime/delivery-receipts.js +268 -0
- package/dist/network-runtime/delivery-receipts.js.map +1 -0
- package/dist/network-runtime/direct-endpoint-authority.d.ts +9 -0
- package/dist/network-runtime/direct-endpoint-authority.d.ts.map +1 -0
- package/dist/network-runtime/direct-endpoint-authority.js +26 -0
- package/dist/network-runtime/direct-endpoint-authority.js.map +1 -0
- package/dist/network-runtime/index.d.ts +25 -0
- package/dist/network-runtime/index.d.ts.map +1 -0
- package/dist/network-runtime/index.js +13 -0
- package/dist/network-runtime/index.js.map +1 -0
- package/dist/network-runtime/local-control-contract.d.ts +753 -0
- package/dist/network-runtime/local-control-contract.d.ts.map +1 -0
- package/dist/network-runtime/local-control-contract.js +622 -0
- package/dist/network-runtime/local-control-contract.js.map +1 -0
- package/dist/network-runtime/node-store-contract.d.ts +50 -0
- package/dist/network-runtime/node-store-contract.d.ts.map +1 -0
- package/dist/network-runtime/node-store-contract.js +35 -0
- package/dist/network-runtime/node-store-contract.js.map +1 -0
- package/dist/network-runtime/pair-route-contract.d.ts +101 -0
- package/dist/network-runtime/pair-route-contract.d.ts.map +1 -0
- package/dist/network-runtime/pair-route-contract.js +78 -0
- package/dist/network-runtime/pair-route-contract.js.map +1 -0
- package/dist/network-runtime/peer-capabilities.d.ts +11 -0
- package/dist/network-runtime/peer-capabilities.d.ts.map +1 -0
- package/dist/network-runtime/peer-capabilities.js +29 -0
- package/dist/network-runtime/peer-capabilities.js.map +1 -0
- package/dist/network-runtime/peer-principal-ref.d.ts +10 -0
- package/dist/network-runtime/peer-principal-ref.d.ts.map +1 -0
- package/dist/network-runtime/peer-principal-ref.js +13 -0
- package/dist/network-runtime/peer-principal-ref.js.map +1 -0
- package/dist/network-runtime/peer-state-machine.d.ts +71 -0
- package/dist/network-runtime/peer-state-machine.d.ts.map +1 -0
- package/dist/network-runtime/peer-state-machine.js +122 -0
- package/dist/network-runtime/peer-state-machine.js.map +1 -0
- package/dist/network-runtime/protocol-schemas.d.ts +329 -0
- package/dist/network-runtime/protocol-schemas.d.ts.map +1 -0
- package/dist/network-runtime/protocol-schemas.js +206 -0
- package/dist/network-runtime/protocol-schemas.js.map +1 -0
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts +82 -0
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts.map +1 -0
- package/dist/network-runtime/runtime-bootstrap-contract.js +61 -0
- package/dist/network-runtime/runtime-bootstrap-contract.js.map +1 -0
- package/dist/outlook/desktop-session.d.ts +69 -0
- package/dist/outlook/desktop-session.d.ts.map +1 -0
- package/dist/outlook/desktop-session.js +280 -0
- package/dist/outlook/desktop-session.js.map +1 -0
- package/dist/policy.d.ts +44 -0
- package/dist/policy.d.ts.map +1 -0
- package/dist/policy.js +150 -0
- package/dist/policy.js.map +1 -0
- package/dist/providers/brave.d.ts +11 -0
- package/dist/providers/brave.d.ts.map +1 -0
- package/dist/providers/brave.js +63 -0
- package/dist/providers/brave.js.map +1 -0
- package/dist/providers/duckduckgo.d.ts +19 -0
- package/dist/providers/duckduckgo.d.ts.map +1 -0
- package/dist/providers/duckduckgo.js +177 -0
- package/dist/providers/duckduckgo.js.map +1 -0
- package/dist/providers/exa.d.ts +11 -0
- package/dist/providers/exa.d.ts.map +1 -0
- package/dist/providers/exa.js +64 -0
- package/dist/providers/exa.js.map +1 -0
- package/dist/providers/firecrawl.d.ts +11 -0
- package/dist/providers/firecrawl.d.ts.map +1 -0
- package/dist/providers/firecrawl.js +56 -0
- package/dist/providers/firecrawl.js.map +1 -0
- package/dist/providers/index.d.ts +9 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +8 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/providers/jina.d.ts +11 -0
- package/dist/providers/jina.d.ts.map +1 -0
- package/dist/providers/jina.js +50 -0
- package/dist/providers/jina.js.map +1 -0
- package/dist/providers/router.d.ts +22 -0
- package/dist/providers/router.d.ts.map +1 -0
- package/dist/providers/router.js +97 -0
- package/dist/providers/router.js.map +1 -0
- package/dist/providers/search-provider.d.ts +36 -0
- package/dist/providers/search-provider.d.ts.map +1 -0
- package/dist/providers/search-provider.js +33 -0
- package/dist/providers/search-provider.js.map +1 -0
- package/dist/providers/tavily.d.ts +11 -0
- package/dist/providers/tavily.d.ts.map +1 -0
- package/dist/providers/tavily.js +55 -0
- package/dist/providers/tavily.js.map +1 -0
- package/dist/quip/desktop-session.d.ts +70 -0
- package/dist/quip/desktop-session.d.ts.map +1 -0
- package/dist/quip/desktop-session.js +318 -0
- package/dist/quip/desktop-session.js.map +1 -0
- package/dist/registry/index.d.ts +2 -0
- package/dist/registry/index.d.ts.map +1 -0
- package/dist/registry/index.js +2 -0
- package/dist/registry/index.js.map +1 -0
- package/dist/registry/registry.d.ts +157 -0
- package/dist/registry/registry.d.ts.map +1 -0
- package/dist/registry/registry.js +757 -0
- package/dist/registry/registry.js.map +1 -0
- package/dist/runtime-socket-local-control-client.d.ts +11 -0
- package/dist/runtime-socket-local-control-client.d.ts.map +1 -0
- package/dist/runtime-socket-local-control-client.js +331 -0
- package/dist/runtime-socket-local-control-client.js.map +1 -0
- package/dist/security/dns-normalization.d.ts +7 -0
- package/dist/security/dns-normalization.d.ts.map +1 -0
- package/dist/security/dns-normalization.js +20 -0
- package/dist/security/dns-normalization.js.map +1 -0
- package/dist/security/dns-pinning.d.ts +28 -0
- package/dist/security/dns-pinning.d.ts.map +1 -0
- package/dist/security/dns-pinning.js +124 -0
- package/dist/security/dns-pinning.js.map +1 -0
- package/dist/security/external-content.d.ts +41 -0
- package/dist/security/external-content.d.ts.map +1 -0
- package/dist/security/external-content.js +92 -0
- package/dist/security/external-content.js.map +1 -0
- package/dist/security/ssrf.d.ts +41 -0
- package/dist/security/ssrf.d.ts.map +1 -0
- package/dist/security/ssrf.js +182 -0
- package/dist/security/ssrf.js.map +1 -0
- package/dist/slack/desktop-session.d.ts +70 -0
- package/dist/slack/desktop-session.d.ts.map +1 -0
- package/dist/slack/desktop-session.js +325 -0
- package/dist/slack/desktop-session.js.map +1 -0
- package/dist/tool-factory.d.ts +47 -0
- package/dist/tool-factory.d.ts.map +1 -0
- package/dist/tool-factory.js +48 -0
- package/dist/tool-factory.js.map +1 -0
- package/dist/types.d.ts +1189 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +8 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/retry.d.ts +12 -0
- package/dist/utils/retry.d.ts.map +1 -0
- package/dist/utils/retry.js +133 -0
- package/dist/utils/retry.js.map +1 -0
- package/dist/utils/safe-parse-json.d.ts +27 -0
- package/dist/utils/safe-parse-json.d.ts.map +1 -0
- package/dist/utils/safe-parse-json.js +161 -0
- package/dist/utils/safe-parse-json.js.map +1 -0
- package/dist/utils/url.d.ts +11 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/url.js +20 -0
- package/dist/utils/url.js.map +1 -0
- package/dist-cjs/.tsbuildinfo +1 -0
- package/dist-cjs/ask-user-interaction.d.ts +10 -0
- package/dist-cjs/ask-user-interaction.js +28 -0
- package/dist-cjs/ask-user-interaction.js.map +1 -0
- package/dist-cjs/cache/web-cache.d.ts +52 -0
- package/dist-cjs/cache/web-cache.js +71 -0
- package/dist-cjs/cache/web-cache.js.map +1 -0
- package/dist-cjs/definitions/arion.d.ts +8 -0
- package/dist-cjs/definitions/arion.js +108 -0
- package/dist-cjs/definitions/arion.js.map +1 -0
- package/dist-cjs/definitions/browser/browser.d.ts +2 -0
- package/dist-cjs/definitions/browser/browser.js +422 -0
- package/dist-cjs/definitions/browser/browser.js.map +1 -0
- package/dist-cjs/definitions/browser/index.d.ts +1 -0
- package/dist-cjs/definitions/browser/index.js +9 -0
- package/dist-cjs/definitions/browser/index.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-downloads.d.ts +13 -0
- package/dist-cjs/definitions/browser/pw-downloads.js +118 -0
- package/dist-cjs/definitions/browser/pw-downloads.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-interactions.d.ts +78 -0
- package/dist-cjs/definitions/browser/pw-interactions.js +214 -0
- package/dist-cjs/definitions/browser/pw-interactions.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-responses.d.ts +28 -0
- package/dist-cjs/definitions/browser/pw-responses.js +85 -0
- package/dist-cjs/definitions/browser/pw-responses.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-session.d.ts +65 -0
- package/dist-cjs/definitions/browser/pw-session.js +327 -0
- package/dist-cjs/definitions/browser/pw-session.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-shared.d.ts +22 -0
- package/dist-cjs/definitions/browser/pw-shared.js +73 -0
- package/dist-cjs/definitions/browser/pw-shared.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-snapshot.d.ts +34 -0
- package/dist-cjs/definitions/browser/pw-snapshot.js +308 -0
- package/dist-cjs/definitions/browser/pw-snapshot.js.map +1 -0
- package/dist-cjs/definitions/browser/pw-state.d.ts +22 -0
- package/dist-cjs/definitions/browser/pw-state.js +71 -0
- package/dist-cjs/definitions/browser/pw-state.js.map +1 -0
- package/dist-cjs/definitions/browser/types.d.ts +277 -0
- package/dist-cjs/definitions/browser/types.js +6 -0
- package/dist-cjs/definitions/browser/types.js.map +1 -0
- package/dist-cjs/definitions/core.d.ts +44 -0
- package/dist-cjs/definitions/core.js +119 -0
- package/dist-cjs/definitions/core.js.map +1 -0
- package/dist-cjs/definitions/delegation.d.ts +11 -0
- package/dist-cjs/definitions/delegation.js +516 -0
- package/dist-cjs/definitions/delegation.js.map +1 -0
- package/dist-cjs/definitions/deploy.d.ts +15 -0
- package/dist-cjs/definitions/deploy.js +69 -0
- package/dist-cjs/definitions/deploy.js.map +1 -0
- package/dist-cjs/definitions/filesystem.d.ts +8 -0
- package/dist-cjs/definitions/filesystem.js +234 -0
- package/dist-cjs/definitions/filesystem.js.map +1 -0
- package/dist-cjs/definitions/index.d.ts +16 -0
- package/dist-cjs/definitions/index.js +38 -0
- package/dist-cjs/definitions/index.js.map +1 -0
- package/dist-cjs/definitions/memory.d.ts +8 -0
- package/dist-cjs/definitions/memory.js +127 -0
- package/dist-cjs/definitions/memory.js.map +1 -0
- package/dist-cjs/definitions/messaging.d.ts +11 -0
- package/dist-cjs/definitions/messaging.js +632 -0
- package/dist-cjs/definitions/messaging.js.map +1 -0
- package/dist-cjs/definitions/meta.d.ts +11 -0
- package/dist-cjs/definitions/meta.js +353 -0
- package/dist-cjs/definitions/meta.js.map +1 -0
- package/dist-cjs/definitions/network.d.ts +11 -0
- package/dist-cjs/definitions/network.js +163 -0
- package/dist-cjs/definitions/network.js.map +1 -0
- package/dist-cjs/definitions/outlook.d.ts +2 -0
- package/dist-cjs/definitions/outlook.js +281 -0
- package/dist-cjs/definitions/outlook.js.map +1 -0
- package/dist-cjs/definitions/patch/apply-patch.d.ts +11 -0
- package/dist-cjs/definitions/patch/apply-patch.js +192 -0
- package/dist-cjs/definitions/patch/apply-patch.js.map +1 -0
- package/dist-cjs/definitions/patch/fuzzy-match.d.ts +10 -0
- package/dist-cjs/definitions/patch/fuzzy-match.js +173 -0
- package/dist-cjs/definitions/patch/fuzzy-match.js.map +1 -0
- package/dist-cjs/definitions/patch/index.d.ts +1 -0
- package/dist-cjs/definitions/patch/index.js +6 -0
- package/dist-cjs/definitions/patch/index.js.map +1 -0
- package/dist-cjs/definitions/patch/patch-parser.d.ts +50 -0
- package/dist-cjs/definitions/patch/patch-parser.js +216 -0
- package/dist-cjs/definitions/patch/patch-parser.js.map +1 -0
- package/dist-cjs/definitions/patch/sandbox-paths.d.ts +18 -0
- package/dist-cjs/definitions/patch/sandbox-paths.js +114 -0
- package/dist-cjs/definitions/patch/sandbox-paths.js.map +1 -0
- package/dist-cjs/definitions/process/index.d.ts +1 -0
- package/dist-cjs/definitions/process/index.js +9 -0
- package/dist-cjs/definitions/process/index.js.map +1 -0
- package/dist-cjs/definitions/process/process-registry.d.ts +67 -0
- package/dist-cjs/definitions/process/process-registry.js +232 -0
- package/dist-cjs/definitions/process/process-registry.js.map +1 -0
- package/dist-cjs/definitions/process/process.d.ts +9 -0
- package/dist-cjs/definitions/process/process.js +390 -0
- package/dist-cjs/definitions/process/process.js.map +1 -0
- package/dist-cjs/definitions/process/pty-keys.d.ts +13 -0
- package/dist-cjs/definitions/process/pty-keys.js +260 -0
- package/dist-cjs/definitions/process/pty-keys.js.map +1 -0
- package/dist-cjs/definitions/process/session-slug.d.ts +1 -0
- package/dist-cjs/definitions/process/session-slug.js +146 -0
- package/dist-cjs/definitions/process/session-slug.js.map +1 -0
- package/dist-cjs/definitions/quip.d.ts +2 -0
- package/dist-cjs/definitions/quip.js +199 -0
- package/dist-cjs/definitions/quip.js.map +1 -0
- package/dist-cjs/definitions/session-history.d.ts +11 -0
- package/dist-cjs/definitions/session-history.js +73 -0
- package/dist-cjs/definitions/session-history.js.map +1 -0
- package/dist-cjs/definitions/shell.d.ts +8 -0
- package/dist-cjs/definitions/shell.js +185 -0
- package/dist-cjs/definitions/shell.js.map +1 -0
- package/dist-cjs/definitions/slack.d.ts +2 -0
- package/dist-cjs/definitions/slack.js +184 -0
- package/dist-cjs/definitions/slack.js.map +1 -0
- package/dist-cjs/definitions/web.d.ts +8 -0
- package/dist-cjs/definitions/web.js +113 -0
- package/dist-cjs/definitions/web.js.map +1 -0
- package/dist-cjs/executors/apply-patch.d.ts +51 -0
- package/dist-cjs/executors/apply-patch.js +921 -0
- package/dist-cjs/executors/apply-patch.js.map +1 -0
- package/dist-cjs/executors/arion.d.ts +50 -0
- package/dist-cjs/executors/arion.js +126 -0
- package/dist-cjs/executors/arion.js.map +1 -0
- package/dist-cjs/executors/deploy.d.ts +169 -0
- package/dist-cjs/executors/deploy.js +870 -0
- package/dist-cjs/executors/deploy.js.map +1 -0
- package/dist-cjs/executors/filesystem.d.ts +150 -0
- package/dist-cjs/executors/filesystem.js +1159 -0
- package/dist-cjs/executors/filesystem.js.map +1 -0
- package/dist-cjs/executors/index.d.ts +38 -0
- package/dist-cjs/executors/index.js +112 -0
- package/dist-cjs/executors/index.js.map +1 -0
- package/dist-cjs/executors/learning-meta.d.ts +87 -0
- package/dist-cjs/executors/learning-meta.js +1166 -0
- package/dist-cjs/executors/learning-meta.js.map +1 -0
- package/dist-cjs/executors/memory.d.ts +203 -0
- package/dist-cjs/executors/memory.js +797 -0
- package/dist-cjs/executors/memory.js.map +1 -0
- package/dist-cjs/executors/meta.d.ts +73 -0
- package/dist-cjs/executors/meta.js +227 -0
- package/dist-cjs/executors/meta.js.map +1 -0
- package/dist-cjs/executors/process-registry.d.ts +98 -0
- package/dist-cjs/executors/process-registry.js +470 -0
- package/dist-cjs/executors/process-registry.js.map +1 -0
- package/dist-cjs/executors/pty-session-store.d.ts +14 -0
- package/dist-cjs/executors/pty-session-store.js +35 -0
- package/dist-cjs/executors/pty-session-store.js.map +1 -0
- package/dist-cjs/executors/pty.d.ts +133 -0
- package/dist-cjs/executors/pty.js +313 -0
- package/dist-cjs/executors/pty.js.map +1 -0
- package/dist-cjs/executors/restart.d.ts +18 -0
- package/dist-cjs/executors/restart.js +187 -0
- package/dist-cjs/executors/restart.js.map +1 -0
- package/dist-cjs/executors/search-types.d.ts +52 -0
- package/dist-cjs/executors/search-types.js +57 -0
- package/dist-cjs/executors/search-types.js.map +1 -0
- package/dist-cjs/executors/self-diagnose.d.ts +89 -0
- package/dist-cjs/executors/self-diagnose.js +435 -0
- package/dist-cjs/executors/self-diagnose.js.map +1 -0
- package/dist-cjs/executors/session-history.d.ts +75 -0
- package/dist-cjs/executors/session-history.js +321 -0
- package/dist-cjs/executors/session-history.js.map +1 -0
- package/dist-cjs/executors/shell-safety.d.ts +27 -0
- package/dist-cjs/executors/shell-safety.js +479 -0
- package/dist-cjs/executors/shell-safety.js.map +1 -0
- package/dist-cjs/executors/shell.d.ts +168 -0
- package/dist-cjs/executors/shell.js +1002 -0
- package/dist-cjs/executors/shell.js.map +1 -0
- package/dist-cjs/executors/utils.d.ts +20 -0
- package/dist-cjs/executors/utils.js +74 -0
- package/dist-cjs/executors/utils.js.map +1 -0
- package/dist-cjs/executors/web.d.ts +89 -0
- package/dist-cjs/executors/web.js +548 -0
- package/dist-cjs/executors/web.js.map +1 -0
- package/dist-cjs/extraction/content-extraction.d.ts +48 -0
- package/dist-cjs/extraction/content-extraction.js +244 -0
- package/dist-cjs/extraction/content-extraction.js.map +1 -0
- package/dist-cjs/extraction/index.d.ts +4 -0
- package/dist-cjs/extraction/index.js +9 -0
- package/dist-cjs/extraction/index.js.map +1 -0
- package/dist-cjs/headless-control-contract.d.ts +3170 -0
- package/dist-cjs/headless-control-contract.js +973 -0
- package/dist-cjs/headless-control-contract.js.map +1 -0
- package/dist-cjs/index.d.ts +62 -0
- package/dist-cjs/index.js +418 -0
- package/dist-cjs/index.js.map +1 -0
- package/dist-cjs/local-control-http-auth.d.ts +2 -0
- package/dist-cjs/local-control-http-auth.js +6 -0
- package/dist-cjs/local-control-http-auth.js.map +1 -0
- package/dist-cjs/mcp/client.d.ts +68 -0
- package/dist-cjs/mcp/client.js +186 -0
- package/dist-cjs/mcp/client.js.map +1 -0
- package/dist-cjs/mcp/connection.d.ts +54 -0
- package/dist-cjs/mcp/connection.js +485 -0
- package/dist-cjs/mcp/connection.js.map +1 -0
- package/dist-cjs/mcp/index.d.ts +10 -0
- package/dist-cjs/mcp/index.js +31 -0
- package/dist-cjs/mcp/index.js.map +1 -0
- package/dist-cjs/mcp/jsonrpc.d.ts +36 -0
- package/dist-cjs/mcp/jsonrpc.js +149 -0
- package/dist-cjs/mcp/jsonrpc.js.map +1 -0
- package/dist-cjs/mcp/types.d.ts +178 -0
- package/dist-cjs/mcp/types.js +9 -0
- package/dist-cjs/mcp/types.js.map +1 -0
- package/dist-cjs/network-control-adapter.d.ts +4 -0
- package/dist-cjs/network-control-adapter.js +78 -0
- package/dist-cjs/network-control-adapter.js.map +1 -0
- package/dist-cjs/network-runtime/address-types.d.ts +201 -0
- package/dist-cjs/network-runtime/address-types.js +169 -0
- package/dist-cjs/network-runtime/address-types.js.map +1 -0
- package/dist-cjs/network-runtime/db-owner-fencing.d.ts +43 -0
- package/dist-cjs/network-runtime/db-owner-fencing.js +77 -0
- package/dist-cjs/network-runtime/db-owner-fencing.js.map +1 -0
- package/dist-cjs/network-runtime/delivery-receipts.d.ts +117 -0
- package/dist-cjs/network-runtime/delivery-receipts.js +277 -0
- package/dist-cjs/network-runtime/delivery-receipts.js.map +1 -0
- package/dist-cjs/network-runtime/direct-endpoint-authority.d.ts +8 -0
- package/dist-cjs/network-runtime/direct-endpoint-authority.js +30 -0
- package/dist-cjs/network-runtime/direct-endpoint-authority.js.map +1 -0
- package/dist-cjs/network-runtime/index.d.ts +24 -0
- package/dist-cjs/network-runtime/index.js +173 -0
- package/dist-cjs/network-runtime/index.js.map +1 -0
- package/dist-cjs/network-runtime/local-control-contract.d.ts +752 -0
- package/dist-cjs/network-runtime/local-control-contract.js +628 -0
- package/dist-cjs/network-runtime/local-control-contract.js.map +1 -0
- package/dist-cjs/network-runtime/node-store-contract.d.ts +49 -0
- package/dist-cjs/network-runtime/node-store-contract.js +39 -0
- package/dist-cjs/network-runtime/node-store-contract.js.map +1 -0
- package/dist-cjs/network-runtime/pair-route-contract.d.ts +100 -0
- package/dist-cjs/network-runtime/pair-route-contract.js +81 -0
- package/dist-cjs/network-runtime/pair-route-contract.js.map +1 -0
- package/dist-cjs/network-runtime/peer-capabilities.d.ts +10 -0
- package/dist-cjs/network-runtime/peer-capabilities.js +38 -0
- package/dist-cjs/network-runtime/peer-capabilities.js.map +1 -0
- package/dist-cjs/network-runtime/peer-principal-ref.d.ts +9 -0
- package/dist-cjs/network-runtime/peer-principal-ref.js +16 -0
- package/dist-cjs/network-runtime/peer-principal-ref.js.map +1 -0
- package/dist-cjs/network-runtime/peer-state-machine.d.ts +70 -0
- package/dist-cjs/network-runtime/peer-state-machine.js +130 -0
- package/dist-cjs/network-runtime/peer-state-machine.js.map +1 -0
- package/dist-cjs/network-runtime/protocol-schemas.d.ts +328 -0
- package/dist-cjs/network-runtime/protocol-schemas.js +213 -0
- package/dist-cjs/network-runtime/protocol-schemas.js.map +1 -0
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.d.ts +81 -0
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.js +64 -0
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.js.map +1 -0
- package/dist-cjs/outlook/desktop-session.d.ts +68 -0
- package/dist-cjs/outlook/desktop-session.js +319 -0
- package/dist-cjs/outlook/desktop-session.js.map +1 -0
- package/dist-cjs/package.json +3 -0
- package/dist-cjs/policy.d.ts +43 -0
- package/dist-cjs/policy.js +156 -0
- package/dist-cjs/policy.js.map +1 -0
- package/dist-cjs/providers/brave.d.ts +10 -0
- package/dist-cjs/providers/brave.js +67 -0
- package/dist-cjs/providers/brave.js.map +1 -0
- package/dist-cjs/providers/duckduckgo.d.ts +18 -0
- package/dist-cjs/providers/duckduckgo.js +181 -0
- package/dist-cjs/providers/duckduckgo.js.map +1 -0
- package/dist-cjs/providers/exa.d.ts +10 -0
- package/dist-cjs/providers/exa.js +68 -0
- package/dist-cjs/providers/exa.js.map +1 -0
- package/dist-cjs/providers/firecrawl.d.ts +10 -0
- package/dist-cjs/providers/firecrawl.js +60 -0
- package/dist-cjs/providers/firecrawl.js.map +1 -0
- package/dist-cjs/providers/index.d.ts +8 -0
- package/dist-cjs/providers/index.js +18 -0
- package/dist-cjs/providers/index.js.map +1 -0
- package/dist-cjs/providers/jina.d.ts +10 -0
- package/dist-cjs/providers/jina.js +54 -0
- package/dist-cjs/providers/jina.js.map +1 -0
- package/dist-cjs/providers/router.d.ts +21 -0
- package/dist-cjs/providers/router.js +101 -0
- package/dist-cjs/providers/router.js.map +1 -0
- package/dist-cjs/providers/search-provider.d.ts +35 -0
- package/dist-cjs/providers/search-provider.js +37 -0
- package/dist-cjs/providers/search-provider.js.map +1 -0
- package/dist-cjs/providers/tavily.d.ts +10 -0
- package/dist-cjs/providers/tavily.js +59 -0
- package/dist-cjs/providers/tavily.js.map +1 -0
- package/dist-cjs/quip/desktop-session.d.ts +69 -0
- package/dist-cjs/quip/desktop-session.js +354 -0
- package/dist-cjs/quip/desktop-session.js.map +1 -0
- package/dist-cjs/registry/index.d.ts +1 -0
- package/dist-cjs/registry/index.js +7 -0
- package/dist-cjs/registry/index.js.map +1 -0
- package/dist-cjs/registry/registry.d.ts +156 -0
- package/dist-cjs/registry/registry.js +762 -0
- package/dist-cjs/registry/registry.js.map +1 -0
- package/dist-cjs/runtime-socket-local-control-client.d.ts +10 -0
- package/dist-cjs/runtime-socket-local-control-client.js +368 -0
- package/dist-cjs/runtime-socket-local-control-client.js.map +1 -0
- package/dist-cjs/security/dns-normalization.d.ts +6 -0
- package/dist-cjs/security/dns-normalization.js +23 -0
- package/dist-cjs/security/dns-normalization.js.map +1 -0
- package/dist-cjs/security/dns-pinning.d.ts +27 -0
- package/dist-cjs/security/dns-pinning.js +161 -0
- package/dist-cjs/security/dns-pinning.js.map +1 -0
- package/dist-cjs/security/external-content.d.ts +40 -0
- package/dist-cjs/security/external-content.js +96 -0
- package/dist-cjs/security/external-content.js.map +1 -0
- package/dist-cjs/security/ssrf.d.ts +40 -0
- package/dist-cjs/security/ssrf.js +222 -0
- package/dist-cjs/security/ssrf.js.map +1 -0
- package/dist-cjs/slack/desktop-session.d.ts +69 -0
- package/dist-cjs/slack/desktop-session.js +367 -0
- package/dist-cjs/slack/desktop-session.js.map +1 -0
- package/dist-cjs/tool-factory.d.ts +46 -0
- package/dist-cjs/tool-factory.js +51 -0
- package/dist-cjs/tool-factory.js.map +1 -0
- package/dist-cjs/types.d.ts +1188 -0
- package/dist-cjs/types.js +9 -0
- package/dist-cjs/types.js.map +1 -0
- package/dist-cjs/utils/retry.d.ts +11 -0
- package/dist-cjs/utils/retry.js +170 -0
- package/dist-cjs/utils/retry.js.map +1 -0
- package/dist-cjs/utils/safe-parse-json.d.ts +26 -0
- package/dist-cjs/utils/safe-parse-json.js +165 -0
- package/dist-cjs/utils/safe-parse-json.js.map +1 -0
- package/dist-cjs/utils/url.d.ts +10 -0
- package/dist-cjs/utils/url.js +24 -0
- package/dist-cjs/utils/url.js.map +1 -0
- package/package.json +55 -0
- package/src/__tests__/web-fetch-download.test.ts +433 -0
- package/src/__tests__/web-tools.test.ts +619 -0
- package/src/ask-user-interaction.ts +33 -0
- package/src/cache/web-cache.ts +110 -0
- package/src/definitions/arion.ts +118 -0
- package/src/definitions/browser/browser.ts +502 -0
- package/src/definitions/browser/index.ts +5 -0
- package/src/definitions/browser/pw-downloads.ts +142 -0
- package/src/definitions/browser/pw-interactions.ts +282 -0
- package/src/definitions/browser/pw-responses.ts +98 -0
- package/src/definitions/browser/pw-session.ts +405 -0
- package/src/definitions/browser/pw-shared.ts +85 -0
- package/src/definitions/browser/pw-snapshot.ts +383 -0
- package/src/definitions/browser/pw-state.ts +101 -0
- package/src/definitions/browser/types.ts +203 -0
- package/src/definitions/core.ts +106 -0
- package/src/definitions/delegation.ts +567 -0
- package/src/definitions/deploy.ts +73 -0
- package/src/definitions/filesystem.ts +253 -0
- package/src/definitions/index.ts +25 -0
- package/src/definitions/memory.ts +150 -0
- package/src/definitions/messaging.ts +734 -0
- package/src/definitions/meta.ts +392 -0
- package/src/definitions/network.ts +179 -0
- package/src/definitions/outlook.ts +318 -0
- package/src/definitions/patch/apply-patch.ts +235 -0
- package/src/definitions/patch/fuzzy-match.ts +217 -0
- package/src/definitions/patch/index.ts +1 -0
- package/src/definitions/patch/patch-parser.ts +297 -0
- package/src/definitions/patch/sandbox-paths.ts +129 -0
- package/src/definitions/process/index.ts +5 -0
- package/src/definitions/process/process-registry.ts +303 -0
- package/src/definitions/process/process.ts +456 -0
- package/src/definitions/process/pty-keys.ts +298 -0
- package/src/definitions/process/session-slug.ts +147 -0
- package/src/definitions/quip.ts +225 -0
- package/src/definitions/session-history.ts +79 -0
- package/src/definitions/shell.ts +202 -0
- package/src/definitions/slack.ts +211 -0
- package/src/definitions/web.ts +119 -0
- package/src/executors/apply-patch.ts +1015 -0
- package/src/executors/arion.ts +199 -0
- package/src/executors/deploy.ts +1066 -0
- package/src/executors/filesystem.ts +1421 -0
- package/src/executors/index.ts +222 -0
- package/src/executors/learning-meta.ts +1367 -0
- package/src/executors/memory.ts +978 -0
- package/src/executors/meta.ts +293 -0
- package/src/executors/process-registry.ts +570 -0
- package/src/executors/pty-session-store.ts +43 -0
- package/src/executors/pty.ts +342 -0
- package/src/executors/restart.ts +168 -0
- package/src/executors/search-types.ts +98 -0
- package/src/executors/self-diagnose.ts +552 -0
- package/src/executors/session-history.ts +435 -0
- package/src/executors/shell-safety.ts +519 -0
- package/src/executors/shell.ts +1243 -0
- package/src/executors/utils.ts +40 -0
- package/src/executors/web.ts +786 -0
- package/src/extraction/content-extraction.ts +281 -0
- package/src/extraction/index.ts +5 -0
- package/src/headless-control-contract.ts +1149 -0
- package/src/index.ts +763 -0
- package/src/local-control-http-auth.ts +2 -0
- package/src/mcp/client.ts +218 -0
- package/src/mcp/connection.ts +568 -0
- package/src/mcp/index.ts +11 -0
- package/src/mcp/jsonrpc.ts +195 -0
- package/src/mcp/types.ts +199 -0
- package/src/network-control-adapter.ts +88 -0
- package/src/network-runtime/address-types.ts +218 -0
- package/src/network-runtime/db-owner-fencing.ts +91 -0
- package/src/network-runtime/delivery-receipts.ts +372 -0
- package/src/network-runtime/direct-endpoint-authority.ts +35 -0
- package/src/network-runtime/index.ts +316 -0
- package/src/network-runtime/local-control-contract.ts +778 -0
- package/src/network-runtime/node-store-contract.ts +46 -0
- package/src/network-runtime/pair-route-contract.ts +97 -0
- package/src/network-runtime/peer-capabilities.ts +48 -0
- package/src/network-runtime/peer-principal-ref.ts +20 -0
- package/src/network-runtime/peer-state-machine.ts +160 -0
- package/src/network-runtime/protocol-schemas.ts +265 -0
- package/src/network-runtime/runtime-bootstrap-contract.ts +83 -0
- package/src/outlook/desktop-session.ts +409 -0
- package/src/policy.ts +171 -0
- package/src/providers/brave.ts +80 -0
- package/src/providers/duckduckgo.ts +199 -0
- package/src/providers/exa.ts +85 -0
- package/src/providers/firecrawl.ts +77 -0
- package/src/providers/index.ts +8 -0
- package/src/providers/jina.ts +70 -0
- package/src/providers/router.ts +121 -0
- package/src/providers/search-provider.ts +74 -0
- package/src/providers/tavily.ts +74 -0
- package/src/quip/desktop-session.ts +435 -0
- package/src/registry/index.ts +1 -0
- package/src/registry/registry.ts +905 -0
- package/src/runtime-socket-local-control-client.ts +632 -0
- package/src/security/dns-normalization.ts +34 -0
- package/src/security/dns-pinning.ts +138 -0
- package/src/security/external-content.ts +129 -0
- package/src/security/ssrf.ts +207 -0
- package/src/slack/desktop-session.ts +493 -0
- package/src/tool-factory.ts +91 -0
- package/src/types.ts +1337 -0
- package/src/utils/retry.ts +163 -0
- package/src/utils/safe-parse-json.ts +176 -0
- package/src/utils/url.ts +20 -0
- package/tests/benchmarks/registry.bench.ts +57 -0
- package/tests/cache/web-cache.test.ts +147 -0
- package/tests/critical-integration.test.ts +1465 -0
- package/tests/definitions/apply-patch.test.ts +586 -0
- package/tests/definitions/browser.test.ts +495 -0
- package/tests/definitions/delegation-pause-resume.test.ts +758 -0
- package/tests/definitions/execution.test.ts +671 -0
- package/tests/definitions/messaging-inbox-scope.test.ts +229 -0
- package/tests/definitions/messaging.test.ts +1468 -0
- package/tests/definitions/outlook.test.ts +30 -0
- package/tests/definitions/process.test.ts +469 -0
- package/tests/definitions/slack.test.ts +28 -0
- package/tests/definitions/tool-inventory.test.ts +207 -0
- package/tests/e2e/delegation-quest-orchestration.e2e.test.ts +433 -0
- package/tests/e2e/memory-tool-discovery-contract.e2e.test.ts +81 -0
- package/tests/executors/apply-patch.test.ts +538 -0
- package/tests/executors/arion.test.ts +309 -0
- package/tests/executors/conversation-primitives.test.ts +250 -0
- package/tests/executors/deploy.test.ts +746 -0
- package/tests/executors/filesystem-tools.test.ts +357 -0
- package/tests/executors/filesystem.test.ts +959 -0
- package/tests/executors/memory-bugfixes.test.ts +257 -0
- package/tests/executors/memory-real-memoria.integration.test.ts +316 -0
- package/tests/executors/memory.test.ts +853 -0
- package/tests/executors/meta-tools.test.ts +411 -0
- package/tests/executors/meta.test.ts +683 -0
- package/tests/executors/path-containment.test.ts +51 -0
- package/tests/executors/process-registry.test.ts +505 -0
- package/tests/executors/pty.test.ts +664 -0
- package/tests/executors/quest-security.test.ts +249 -0
- package/tests/executors/read-file-media.test.ts +230 -0
- package/tests/executors/recall-knowledge-schema.test.ts +209 -0
- package/tests/executors/recall-tags.test.ts +278 -0
- package/tests/executors/remember-null-safety.contract.test.ts +41 -0
- package/tests/executors/restart.test.ts +67 -0
- package/tests/executors/search-unified.test.ts +381 -0
- package/tests/executors/session-history.test.ts +340 -0
- package/tests/executors/session-transcript.test.ts +561 -0
- package/tests/executors/shell-abort.test.ts +416 -0
- package/tests/executors/shell-env-blocklist.test.ts +648 -0
- package/tests/executors/shell-env-process.test.ts +245 -0
- package/tests/executors/shell-process-registry.test.ts +334 -0
- package/tests/executors/shell-tools.test.ts +393 -0
- package/tests/executors/shell.test.ts +690 -0
- package/tests/executors/web-abort-vs-timeout.test.ts +213 -0
- package/tests/executors/web-integration.test.ts +633 -0
- package/tests/executors/web-symlink.test.ts +18 -0
- package/tests/executors/web.test.ts +1400 -0
- package/tests/executors/write-stdin.test.ts +145 -0
- package/tests/extraction/content-extraction.test.ts +153 -0
- package/tests/guards/tools-default-test-lane.integration.test.ts +21 -0
- package/tests/guards/tools-package-test-commands.e2e.test.ts +43 -0
- package/tests/guards/tools-test-lane-manifest.contract.test.ts +76 -0
- package/tests/guards/tools-vitest-workspace-alias.contract.test.ts +63 -0
- package/tests/helpers/async-waits.ts +53 -0
- package/tests/integration/headless-control-contract.integration.test.ts +151 -0
- package/tests/integration/memory-tool-schema-parity.integration.test.ts +67 -0
- package/tests/integration/meta-tools-round-trip.integration.test.ts +506 -0
- package/tests/integration/quest-round-trip.test.ts +303 -0
- package/tests/integration/registry-executor-flow.test.ts +85 -0
- package/tests/integration.test.ts +177 -0
- package/tests/loading-tier.test.ts +126 -0
- package/tests/mcp/client-reconnect.test.ts +267 -0
- package/tests/mcp/connection.test.ts +846 -0
- package/tests/mcp/injectable-logger.test.ts +83 -0
- package/tests/mcp/jsonrpc.test.ts +109 -0
- package/tests/mcp/lifecycle.test.ts +879 -0
- package/tests/network-runtime/address-types.contract.test.ts +143 -0
- package/tests/network-runtime/continuity-bind-schema.contract.test.ts +203 -0
- package/tests/network-runtime/local-control-contract.test.ts +869 -0
- package/tests/network-runtime/local-control-invite-token.contract.test.ts +146 -0
- package/tests/network-runtime/node-store-contract.test.ts +11 -0
- package/tests/network-runtime/pair-protocol-nodeid.contract.test.ts +15 -0
- package/tests/network-runtime/peer-state-machine.contract.test.ts +148 -0
- package/tests/network-runtime/protocol-schemas.contract.test.ts +512 -0
- package/tests/network-runtime/relay-pending-nodeid.contract.test.ts +62 -0
- package/tests/network-runtime/runtime-bootstrap-contract.test.ts +227 -0
- package/tests/network-runtime/runtime-socket-local-control-client.test.ts +621 -0
- package/tests/network-runtime/wait-for-message-script.test.ts +288 -0
- package/tests/parallel.test.ts +71 -0
- package/tests/policy.test.ts +184 -0
- package/tests/print-default-test-lane.ts +14 -0
- package/tests/print-test-lane-manifest.ts +22 -0
- package/tests/providers/brave.test.ts +159 -0
- package/tests/providers/duckduckgo.test.ts +207 -0
- package/tests/providers/exa.test.ts +175 -0
- package/tests/providers/firecrawl.test.ts +168 -0
- package/tests/providers/jina.test.ts +144 -0
- package/tests/providers/router.test.ts +328 -0
- package/tests/providers/tavily.test.ts +165 -0
- package/tests/registry/discovery.test.ts +154 -0
- package/tests/registry/injectable-logger.test.ts +230 -0
- package/tests/registry/input-validation.test.ts +361 -0
- package/tests/registry/interface-completeness.test.ts +85 -0
- package/tests/registry/mcp-integration.test.ts +103 -0
- package/tests/registry/mcp-read-only-hint.test.ts +60 -0
- package/tests/registry/memoria-discovery.test.ts +390 -0
- package/tests/registry/nested-validation.test.ts +283 -0
- package/tests/registry/pseudo-tool-filtering.test.ts +258 -0
- package/tests/registry/registration-lifecycle.test.ts +133 -0
- package/tests/registry-validation.test.ts +424 -0
- package/tests/registry.test.ts +460 -0
- package/tests/security/dns-pinning.test.ts +162 -0
- package/tests/security/external-content.test.ts +144 -0
- package/tests/security/ssrf.test.ts +118 -0
- package/tests/shell-safety-integration.test.ts +32 -0
- package/tests/shell-safety.test.ts +365 -0
- package/tests/slack/desktop-session.test.ts +50 -0
- package/tests/test-lane-manifest.ts +436 -0
- package/tests/test-utils.ts +27 -0
- package/tests/tool-factory.test.ts +188 -0
- package/tests/utils/retry.test.ts +231 -0
- package/tests/utils/url.test.ts +63 -0
- package/tsconfig.cjs.json +16 -0
- package/tsconfig.json +12 -0
- package/vitest.config.ts +55 -0
- package/vitest.e2e.config.ts +24 -0
- package/vitest.integration.config.ts +24 -0
- package/vitest.native.config.ts +24 -0
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration tests for the quest system — round-trip through executors
|
|
3
|
+
*
|
|
4
|
+
* Tests create → list → update → filter flows through executeQuestUpdate and
|
|
5
|
+
* executeQuestList with a mock QuestStore that stores data in memory.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { describe, it, expect, beforeEach, vi } from "vitest";
|
|
9
|
+
import type {
|
|
10
|
+
ToolContext,
|
|
11
|
+
QuestStoreRef,
|
|
12
|
+
QuestStoreItem,
|
|
13
|
+
QuestStoreStatus,
|
|
14
|
+
} from "../../src/types.js";
|
|
15
|
+
import {
|
|
16
|
+
executeQuestUpdate,
|
|
17
|
+
executeQuestList,
|
|
18
|
+
type QuestUpdateOutput,
|
|
19
|
+
type QuestListOutput,
|
|
20
|
+
} from "../../src/executors/meta.js";
|
|
21
|
+
|
|
22
|
+
// ─── In-memory QuestStore mock ──────────────────────────────────
|
|
23
|
+
|
|
24
|
+
const createMockQuestStore = (): QuestStoreRef & { _quests: Map<string, QuestStoreItem> } => {
|
|
25
|
+
const quests = new Map<string, QuestStoreItem>();
|
|
26
|
+
return {
|
|
27
|
+
_quests: quests,
|
|
28
|
+
createQuest: vi.fn(
|
|
29
|
+
(input: {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
priority?: number;
|
|
34
|
+
status?: QuestStoreStatus;
|
|
35
|
+
progress?: string;
|
|
36
|
+
blockedBy?: string;
|
|
37
|
+
}) => {
|
|
38
|
+
const now = Date.now();
|
|
39
|
+
const quest: QuestStoreItem = {
|
|
40
|
+
id: input.id,
|
|
41
|
+
title: input.title,
|
|
42
|
+
description: input.description,
|
|
43
|
+
priority: input.priority ?? 2,
|
|
44
|
+
status: input.status ?? "open",
|
|
45
|
+
progress: input.progress ?? "",
|
|
46
|
+
blockedBy: input.blockedBy,
|
|
47
|
+
attempts: 0,
|
|
48
|
+
createdAt: now,
|
|
49
|
+
updatedAt: now,
|
|
50
|
+
};
|
|
51
|
+
quests.set(input.id, quest);
|
|
52
|
+
return quest;
|
|
53
|
+
},
|
|
54
|
+
),
|
|
55
|
+
updateQuest: vi.fn(
|
|
56
|
+
(
|
|
57
|
+
id: string,
|
|
58
|
+
updates: Partial<{
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
priority: number;
|
|
62
|
+
status: QuestStoreStatus;
|
|
63
|
+
progress: string;
|
|
64
|
+
blockedBy: string;
|
|
65
|
+
}>,
|
|
66
|
+
) => {
|
|
67
|
+
const existing = quests.get(id);
|
|
68
|
+
if (!existing) throw new Error(`Quest not found: ${id}`);
|
|
69
|
+
// Match real QuestStore behavior: only apply non-undefined fields
|
|
70
|
+
const updated: QuestStoreItem = { ...existing, updatedAt: Date.now() };
|
|
71
|
+
for (const [key, value] of Object.entries(updates)) {
|
|
72
|
+
if (value !== undefined) (updated as Record<string, unknown>)[key] = value;
|
|
73
|
+
}
|
|
74
|
+
quests.set(id, updated);
|
|
75
|
+
return updated;
|
|
76
|
+
},
|
|
77
|
+
),
|
|
78
|
+
getQuest: vi.fn((id: string) => quests.get(id) ?? null),
|
|
79
|
+
listQuests: vi.fn((filter?: { status?: string }) => {
|
|
80
|
+
const all = Array.from(quests.values());
|
|
81
|
+
if (filter?.status) return all.filter((q) => q.status === filter.status);
|
|
82
|
+
return all;
|
|
83
|
+
}),
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// ─── Helpers ─────────────────────────────────────────────────────
|
|
88
|
+
|
|
89
|
+
function createContext(questStore: QuestStoreRef): ToolContext {
|
|
90
|
+
return {
|
|
91
|
+
workingDir: "/tmp/test",
|
|
92
|
+
env: {},
|
|
93
|
+
confirm: async () => true,
|
|
94
|
+
questStore,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// ─── Tests ───────────────────────────────────────────────────────
|
|
99
|
+
|
|
100
|
+
describe("Quest round-trip integration", () => {
|
|
101
|
+
let questStore: ReturnType<typeof createMockQuestStore>;
|
|
102
|
+
let ctx: ToolContext;
|
|
103
|
+
|
|
104
|
+
beforeEach(() => {
|
|
105
|
+
questStore = createMockQuestStore();
|
|
106
|
+
ctx = createContext(questStore);
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
it("create a quest → list it → verify it appears", async () => {
|
|
110
|
+
// Create
|
|
111
|
+
const createResult = await executeQuestUpdate(
|
|
112
|
+
{
|
|
113
|
+
quests: [{ title: "Fix authentication bug", status: "open" }],
|
|
114
|
+
},
|
|
115
|
+
ctx,
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
expect(createResult.success).toBe(true);
|
|
119
|
+
const createData = createResult.data as QuestUpdateOutput;
|
|
120
|
+
expect(createData.quests).toHaveLength(1);
|
|
121
|
+
expect(createData.quests[0]!.action).toBe("created");
|
|
122
|
+
const questId = createData.quests[0]!.id;
|
|
123
|
+
|
|
124
|
+
// List
|
|
125
|
+
const listResult = await executeQuestList({}, ctx);
|
|
126
|
+
|
|
127
|
+
expect(listResult.success).toBe(true);
|
|
128
|
+
const listData = listResult.data as QuestListOutput;
|
|
129
|
+
expect(listData.count).toBeGreaterThanOrEqual(1);
|
|
130
|
+
|
|
131
|
+
const found = listData.quests.find((q) => q.id === questId);
|
|
132
|
+
expect(found).toBeDefined();
|
|
133
|
+
expect(found!.status).toBe("open");
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
it("create quest → update status → list filtered → verify filter works", async () => {
|
|
137
|
+
// Create two quests
|
|
138
|
+
const createResult = await executeQuestUpdate(
|
|
139
|
+
{
|
|
140
|
+
quests: [
|
|
141
|
+
{ title: "Task A", status: "open" },
|
|
142
|
+
{ title: "Task B", status: "open" },
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
ctx,
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
expect(createResult.success).toBe(true);
|
|
149
|
+
const createData = createResult.data as QuestUpdateOutput;
|
|
150
|
+
const idA = createData.quests[0]!.id;
|
|
151
|
+
|
|
152
|
+
// Update Task A to active
|
|
153
|
+
const updateResult = await executeQuestUpdate(
|
|
154
|
+
{
|
|
155
|
+
quests: [{ id: idA, title: "Task A", status: "active" }],
|
|
156
|
+
},
|
|
157
|
+
ctx,
|
|
158
|
+
);
|
|
159
|
+
|
|
160
|
+
expect(updateResult.success).toBe(true);
|
|
161
|
+
const updateData = updateResult.data as QuestUpdateOutput;
|
|
162
|
+
expect(updateData.quests[0]!.action).toBe("updated");
|
|
163
|
+
|
|
164
|
+
// List only active quests
|
|
165
|
+
const listResult = await executeQuestList({ status: "active" }, ctx);
|
|
166
|
+
|
|
167
|
+
expect(listResult.success).toBe(true);
|
|
168
|
+
const listData = listResult.data as QuestListOutput;
|
|
169
|
+
// Should find Task A (active) but not Task B (open)
|
|
170
|
+
expect(listData.count).toBe(1);
|
|
171
|
+
expect(listData.quests[0]!.id).toBe(idA);
|
|
172
|
+
expect(listData.quests[0]!.status).toBe("active");
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it("create quest → complete it → list with status filter", async () => {
|
|
176
|
+
// Create
|
|
177
|
+
const createResult = await executeQuestUpdate(
|
|
178
|
+
{
|
|
179
|
+
quests: [{ title: "Deploy to staging", status: "open" }],
|
|
180
|
+
},
|
|
181
|
+
ctx,
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
const createData = createResult.data as QuestUpdateOutput;
|
|
185
|
+
const questId = createData.quests[0]!.id;
|
|
186
|
+
|
|
187
|
+
// Complete it
|
|
188
|
+
const completeResult = await executeQuestUpdate(
|
|
189
|
+
{
|
|
190
|
+
quests: [{ id: questId, title: "Deploy to staging", status: "done" }],
|
|
191
|
+
},
|
|
192
|
+
ctx,
|
|
193
|
+
);
|
|
194
|
+
|
|
195
|
+
expect(completeResult.success).toBe(true);
|
|
196
|
+
|
|
197
|
+
// List done quests
|
|
198
|
+
const listDone = await executeQuestList({ status: "done" }, ctx);
|
|
199
|
+
expect(listDone.success).toBe(true);
|
|
200
|
+
const doneData = listDone.data as QuestListOutput;
|
|
201
|
+
expect(doneData.count).toBe(1);
|
|
202
|
+
expect(doneData.quests[0]!.id).toBe(questId);
|
|
203
|
+
expect(doneData.quests[0]!.status).toBe("done");
|
|
204
|
+
|
|
205
|
+
// List open quests — should NOT include the done quest
|
|
206
|
+
const listOpen = await executeQuestList({ status: "open" }, ctx);
|
|
207
|
+
expect(listOpen.success).toBe(true);
|
|
208
|
+
const openData = listOpen.data as QuestListOutput;
|
|
209
|
+
const stillOpen = openData.quests.find((q) => q.id === questId);
|
|
210
|
+
expect(stillOpen).toBeUndefined();
|
|
211
|
+
});
|
|
212
|
+
|
|
213
|
+
it("all quests are visible regardless of creation order", async () => {
|
|
214
|
+
await executeQuestUpdate(
|
|
215
|
+
{
|
|
216
|
+
quests: [{ title: "Quest 1", status: "open" }],
|
|
217
|
+
},
|
|
218
|
+
ctx,
|
|
219
|
+
);
|
|
220
|
+
|
|
221
|
+
await executeQuestUpdate(
|
|
222
|
+
{
|
|
223
|
+
quests: [{ title: "Quest 2", status: "active" }],
|
|
224
|
+
},
|
|
225
|
+
ctx,
|
|
226
|
+
);
|
|
227
|
+
|
|
228
|
+
// Both quests should be retrievable
|
|
229
|
+
const listResult = await executeQuestList({}, ctx);
|
|
230
|
+
expect(listResult.success).toBe(true);
|
|
231
|
+
const listData = listResult.data as QuestListOutput;
|
|
232
|
+
expect(listData.count).toBe(2);
|
|
233
|
+
|
|
234
|
+
const titles = listData.quests.map((q) => q.title);
|
|
235
|
+
expect(titles).toContain("Quest 1");
|
|
236
|
+
expect(titles).toContain("Quest 2");
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
it("partial update — status only, title preserved", async () => {
|
|
240
|
+
// Create a quest
|
|
241
|
+
const createResult = await executeQuestUpdate(
|
|
242
|
+
{
|
|
243
|
+
quests: [{ title: "Important task", status: "open", notes: "Initial notes" }],
|
|
244
|
+
},
|
|
245
|
+
ctx,
|
|
246
|
+
);
|
|
247
|
+
|
|
248
|
+
const createData = createResult.data as QuestUpdateOutput;
|
|
249
|
+
const questId = createData.quests[0]!.id;
|
|
250
|
+
|
|
251
|
+
// Update only status — no title or notes
|
|
252
|
+
const updateResult = await executeQuestUpdate(
|
|
253
|
+
{
|
|
254
|
+
quests: [{ id: questId, status: "active" }],
|
|
255
|
+
},
|
|
256
|
+
ctx,
|
|
257
|
+
);
|
|
258
|
+
|
|
259
|
+
expect(updateResult.success).toBe(true);
|
|
260
|
+
const updateData = updateResult.data as QuestUpdateOutput;
|
|
261
|
+
expect(updateData.quests[0]!.action).toBe("updated");
|
|
262
|
+
expect(updateData.quests[0]!.title).toBe("Important task"); // preserved
|
|
263
|
+
|
|
264
|
+
// List and verify all fields preserved
|
|
265
|
+
const listResult = await executeQuestList({}, ctx);
|
|
266
|
+
const listData = listResult.data as QuestListOutput;
|
|
267
|
+
const quest = listData.quests.find((q) => q.id === questId);
|
|
268
|
+
expect(quest).toBeDefined();
|
|
269
|
+
expect(quest!.title).toBe("Important task");
|
|
270
|
+
expect(quest!.status).toBe("active");
|
|
271
|
+
expect(quest!.notes).toBe("Initial notes"); // preserved
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
it("quest with notes and blockedBy round-trips correctly", async () => {
|
|
275
|
+
const createResult = await executeQuestUpdate(
|
|
276
|
+
{
|
|
277
|
+
quests: [
|
|
278
|
+
{
|
|
279
|
+
title: "Investigate flaky tests",
|
|
280
|
+
status: "blocked",
|
|
281
|
+
blocked_by: "quest_xyz",
|
|
282
|
+
notes: "Waiting on CI fix",
|
|
283
|
+
},
|
|
284
|
+
],
|
|
285
|
+
},
|
|
286
|
+
ctx,
|
|
287
|
+
);
|
|
288
|
+
|
|
289
|
+
expect(createResult.success).toBe(true);
|
|
290
|
+
const createData = createResult.data as QuestUpdateOutput;
|
|
291
|
+
const questId = createData.quests[0]!.id;
|
|
292
|
+
|
|
293
|
+
const listResult = await executeQuestList({}, ctx);
|
|
294
|
+
expect(listResult.success).toBe(true);
|
|
295
|
+
const listData = listResult.data as QuestListOutput;
|
|
296
|
+
|
|
297
|
+
const quest = listData.quests.find((q) => q.id === questId);
|
|
298
|
+
expect(quest).toBeDefined();
|
|
299
|
+
expect(quest!.status).toBe("blocked");
|
|
300
|
+
expect(quest!.blocked_by).toBe("quest_xyz");
|
|
301
|
+
expect(quest!.notes).toBe("Waiting on CI fix");
|
|
302
|
+
});
|
|
303
|
+
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { describe, it, expect, beforeEach, afterEach } from "vitest";
|
|
2
|
+
import { createToolRegistry } from "../../src/index.js";
|
|
3
|
+
import type { ToolRegistry, ToolContext } from "../../src/types.js";
|
|
4
|
+
import * as fs from "node:fs/promises";
|
|
5
|
+
import * as path from "node:path";
|
|
6
|
+
import * as os from "node:os";
|
|
7
|
+
|
|
8
|
+
describe("Tool Registry→Executor Integration", () => {
|
|
9
|
+
let registry: ToolRegistry;
|
|
10
|
+
let tempDir: string;
|
|
11
|
+
let mockContext: ToolContext;
|
|
12
|
+
|
|
13
|
+
beforeEach(async () => {
|
|
14
|
+
tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "registry-test-"));
|
|
15
|
+
mockContext = {
|
|
16
|
+
workingDir: tempDir,
|
|
17
|
+
env: {},
|
|
18
|
+
confirm: async () => true,
|
|
19
|
+
};
|
|
20
|
+
registry = createToolRegistry();
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
afterEach(async () => {
|
|
24
|
+
await fs.rm(tempDir, { recursive: true, force: true }).catch(() => {});
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
it("should execute read_file tool through registry", async () => {
|
|
28
|
+
const testFile = path.join(tempDir, "test.txt");
|
|
29
|
+
await fs.writeFile(testFile, "Hello from registry test");
|
|
30
|
+
|
|
31
|
+
const tool = registry.get("read_file");
|
|
32
|
+
expect(tool).toBeDefined();
|
|
33
|
+
expect(tool!.name).toBe("read_file");
|
|
34
|
+
|
|
35
|
+
const result = await tool!.execute({ path: "test.txt" }, mockContext);
|
|
36
|
+
|
|
37
|
+
expect(result.success).toBe(true);
|
|
38
|
+
expect(result.data).toBe("Hello from registry test");
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
it("should execute write_file tool through registry", async () => {
|
|
42
|
+
const tool = registry.get("write_file");
|
|
43
|
+
expect(tool).toBeDefined();
|
|
44
|
+
|
|
45
|
+
const result = await tool!.execute(
|
|
46
|
+
{ path: "output.txt", content: "Written via registry" },
|
|
47
|
+
mockContext,
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
expect(result.success).toBe(true);
|
|
51
|
+
|
|
52
|
+
const writtenContent = await fs.readFile(
|
|
53
|
+
path.join(tempDir, "output.txt"),
|
|
54
|
+
"utf-8",
|
|
55
|
+
);
|
|
56
|
+
expect(writtenContent).toBe("Written via registry");
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
it("should execute bash tool through registry", async () => {
|
|
60
|
+
const tool = registry.get("bash");
|
|
61
|
+
expect(tool).toBeDefined();
|
|
62
|
+
|
|
63
|
+
const result = await tool!.execute(
|
|
64
|
+
{ command: "echo 'Registry test'" },
|
|
65
|
+
mockContext,
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
expect(result.success).toBe(true);
|
|
69
|
+
const data = result.data as { stdout: string };
|
|
70
|
+
expect(data.stdout).toMatch(/Registry test/);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it("should return undefined for non-existent tool", () => {
|
|
74
|
+
const tool = registry.get("nonexistent_tool");
|
|
75
|
+
expect(tool).toBeUndefined();
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
it("should list all registered tools", () => {
|
|
79
|
+
const tools = registry.list();
|
|
80
|
+
expect(tools.length).toBeGreaterThan(0);
|
|
81
|
+
expect(tools.map((t) => t.name)).toContain("read_file");
|
|
82
|
+
expect(tools.map((t) => t.name)).toContain("write_file");
|
|
83
|
+
expect(tools.map((t) => t.name)).toContain("bash");
|
|
84
|
+
});
|
|
85
|
+
});
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// packages/tools/tests/integration.test.ts
|
|
2
|
+
import { describe, it, expect, beforeEach, afterEach } from "vitest";
|
|
3
|
+
import { mkdir, rm, writeFile } from "fs/promises";
|
|
4
|
+
import { join } from "path";
|
|
5
|
+
import { tmpdir } from "os";
|
|
6
|
+
import {
|
|
7
|
+
ToolRegistry,
|
|
8
|
+
createToolRegistry,
|
|
9
|
+
getCoreTools,
|
|
10
|
+
getCoreTool,
|
|
11
|
+
executeReadFile,
|
|
12
|
+
executeBash,
|
|
13
|
+
PTYSession,
|
|
14
|
+
createPTYSession,
|
|
15
|
+
SpawnedProcessRegistry,
|
|
16
|
+
} from "../src/index.js";
|
|
17
|
+
import type { ToolContext } from "../src/index.js";
|
|
18
|
+
|
|
19
|
+
// Check if PTY is available in this environment
|
|
20
|
+
let ptyAvailable = true;
|
|
21
|
+
try {
|
|
22
|
+
const nodePty = await import("node-pty");
|
|
23
|
+
const testPty = nodePty.spawn("/bin/echo", ["test"]);
|
|
24
|
+
testPty.kill();
|
|
25
|
+
} catch {
|
|
26
|
+
ptyAvailable = false;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
describe("@aria/tools Integration", () => {
|
|
30
|
+
let testDir: string;
|
|
31
|
+
let ctx: ToolContext;
|
|
32
|
+
|
|
33
|
+
beforeEach(async () => {
|
|
34
|
+
testDir = join(tmpdir(), `aria-tools-int-${Date.now()}`);
|
|
35
|
+
await mkdir(testDir, { recursive: true });
|
|
36
|
+
ctx = { workingDir: testDir, env: {}, confirm: async () => true };
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
afterEach(async () => {
|
|
40
|
+
await rm(testDir, { recursive: true, force: true });
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
describe("Complete workflow", () => {
|
|
44
|
+
it("should register core tools and execute them", async () => {
|
|
45
|
+
const registry = new ToolRegistry();
|
|
46
|
+
|
|
47
|
+
// Register all core tools
|
|
48
|
+
for (const tool of getCoreTools()) {
|
|
49
|
+
registry.register(tool);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
expect(registry.size).toBe(getCoreTools().length);
|
|
53
|
+
|
|
54
|
+
// Use read_file tool
|
|
55
|
+
const filePath = join(testDir, "test.txt");
|
|
56
|
+
await writeFile(filePath, "Hello from integration test");
|
|
57
|
+
|
|
58
|
+
const readTool = registry.get("read_file");
|
|
59
|
+
expect(readTool).toBeDefined();
|
|
60
|
+
|
|
61
|
+
const result = await readTool!.execute({ path: filePath }, ctx);
|
|
62
|
+
expect(result.success).toBe(true);
|
|
63
|
+
expect(result.data).toBe("Hello from integration test");
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
it("should search for tools", async () => {
|
|
67
|
+
const registry = new ToolRegistry();
|
|
68
|
+
|
|
69
|
+
for (const tool of getCoreTools()) {
|
|
70
|
+
registry.register(tool);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const fileTools = registry.search("file");
|
|
74
|
+
expect(fileTools.length).toBeGreaterThan(0);
|
|
75
|
+
|
|
76
|
+
const shellTools = registry.list("shell");
|
|
77
|
+
expect(shellTools).toHaveLength(
|
|
78
|
+
getCoreTools().filter((tool) => tool.category === "shell").length,
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it("should directly use executors", async () => {
|
|
83
|
+
const filePath = join(testDir, "direct.txt");
|
|
84
|
+
await writeFile(filePath, "Direct access");
|
|
85
|
+
|
|
86
|
+
const result = await executeReadFile({ path: filePath }, ctx);
|
|
87
|
+
expect(result.success).toBe(true);
|
|
88
|
+
expect(result.data).toBe("Direct access");
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it("should wire shell process observability tools through definitions", async () => {
|
|
92
|
+
const processRegistry = new SpawnedProcessRegistry();
|
|
93
|
+
const ctxWithRegistry: ToolContext = {
|
|
94
|
+
...ctx,
|
|
95
|
+
processRegistry,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const spawnTool = getCoreTool("spawn");
|
|
99
|
+
const listTool = getCoreTool("list_processes");
|
|
100
|
+
const waitTool = getCoreTool("wait_process");
|
|
101
|
+
|
|
102
|
+
expect(spawnTool).toBeDefined();
|
|
103
|
+
expect(listTool).toBeDefined();
|
|
104
|
+
expect(waitTool).toBeDefined();
|
|
105
|
+
|
|
106
|
+
const spawned = await spawnTool!.execute({ program: "sleep", args: ["1"] }, ctxWithRegistry);
|
|
107
|
+
expect(spawned.success).toBe(true);
|
|
108
|
+
const { pid } = spawned.data as { pid: number };
|
|
109
|
+
|
|
110
|
+
const listed = await listTool!.execute({}, ctxWithRegistry);
|
|
111
|
+
expect(listed.success).toBe(true);
|
|
112
|
+
expect(listed.data).toMatchObject({
|
|
113
|
+
processes: expect.arrayContaining([expect.objectContaining({ pid, status: "running" })]),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
const waited = await waitTool!.execute({ pid, timeoutMs: 3_000 }, ctxWithRegistry);
|
|
117
|
+
expect(waited.success).toBe(true);
|
|
118
|
+
expect(waited.data).toMatchObject({
|
|
119
|
+
pid,
|
|
120
|
+
exited: true,
|
|
121
|
+
timedOut: false,
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it.skipIf(!ptyAvailable)("should run interactive PTY sessions", async () => {
|
|
126
|
+
const session = await createPTYSession({
|
|
127
|
+
command: "echo",
|
|
128
|
+
args: ["PTY works"],
|
|
129
|
+
cwd: testDir,
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
const output = await session.waitForExit();
|
|
133
|
+
expect(output).toContain("PTY works");
|
|
134
|
+
|
|
135
|
+
session.close();
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
describe("Exports", () => {
|
|
140
|
+
it("should export all necessary types", async () => {
|
|
141
|
+
// These imports should all work
|
|
142
|
+
const {
|
|
143
|
+
ToolRegistry,
|
|
144
|
+
getCoreTools,
|
|
145
|
+
getCoreTool,
|
|
146
|
+
getCoreToolsByCategory,
|
|
147
|
+
getCoreToolsByRiskLevel,
|
|
148
|
+
CORE_TOOL_DEFINITIONS,
|
|
149
|
+
executeReadFile,
|
|
150
|
+
executeWriteFile,
|
|
151
|
+
executeBash,
|
|
152
|
+
executeExec,
|
|
153
|
+
PTYSession,
|
|
154
|
+
createPTYSession,
|
|
155
|
+
runInPTY,
|
|
156
|
+
} = await import("../src/index.js");
|
|
157
|
+
|
|
158
|
+
expect(ToolRegistry).toBeDefined();
|
|
159
|
+
expect(getCoreTools).toBeDefined();
|
|
160
|
+
expect(executeReadFile).toBeDefined();
|
|
161
|
+
expect(PTYSession).toBeDefined();
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
describe("createToolRegistry", () => {
|
|
166
|
+
it("should create registry with builtins by default", () => {
|
|
167
|
+
const registry = createToolRegistry();
|
|
168
|
+
expect(registry.size).toBeGreaterThan(0);
|
|
169
|
+
expect(registry.has("read_file")).toBe(true);
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it("should create empty registry when includeBuiltins is false", () => {
|
|
173
|
+
const registry = createToolRegistry({ includeBuiltins: false });
|
|
174
|
+
expect(registry.size).toBe(0);
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
});
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests for loadingTier field on Tool type.
|
|
3
|
+
*
|
|
4
|
+
* loadingTier determines which tools are sent to the LLM on every request
|
|
5
|
+
* ("always") vs. which are only available via search ("deferred").
|
|
6
|
+
*
|
|
7
|
+
* After the aria-c3x refactoring, ALL built-in tools are "always" (no deferred built-ins).
|
|
8
|
+
* MCP tools may still be deferred, but that is handled by the MCP layer.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { describe, it, expect } from "vitest";
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
import { CORE_TOOL_DEFINITIONS } from "../src/definitions/core.js";
|
|
14
|
+
import { tool } from "../src/tool-factory.js";
|
|
15
|
+
|
|
16
|
+
describe("loadingTier", () => {
|
|
17
|
+
describe("Tool interface: all core tools have loadingTier defined", () => {
|
|
18
|
+
it("every core tool has loadingTier as either 'always' or 'deferred'", () => {
|
|
19
|
+
expect(CORE_TOOL_DEFINITIONS.length).toBeGreaterThan(0);
|
|
20
|
+
|
|
21
|
+
for (const t of CORE_TOOL_DEFINITIONS) {
|
|
22
|
+
expect(
|
|
23
|
+
(t as Record<string, unknown>).loadingTier,
|
|
24
|
+
`Tool "${t.name}" should have loadingTier defined`,
|
|
25
|
+
).toBeDefined();
|
|
26
|
+
|
|
27
|
+
expect(
|
|
28
|
+
["always", "deferred"],
|
|
29
|
+
`Tool "${t.name}" should have loadingTier of "always" or "deferred"`,
|
|
30
|
+
).toContain((t as Record<string, unknown>).loadingTier);
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
describe("All built-in tools are always-on or explicitly deferred", () => {
|
|
36
|
+
const ALLOWED_DEFERRED = new Set(["session_history", "self_diagnose"]);
|
|
37
|
+
it("every core tool has loadingTier === 'always' except explicitly deferred tools", () => {
|
|
38
|
+
for (const t of CORE_TOOL_DEFINITIONS) {
|
|
39
|
+
if (ALLOWED_DEFERRED.has(t.name)) {
|
|
40
|
+
expect(
|
|
41
|
+
(t as Record<string, unknown>).loadingTier,
|
|
42
|
+
`Tool "${t.name}" should have loadingTier === "deferred"`,
|
|
43
|
+
).toBe("deferred");
|
|
44
|
+
} else {
|
|
45
|
+
expect(
|
|
46
|
+
(t as Record<string, unknown>).loadingTier,
|
|
47
|
+
`Tool "${t.name}" should have loadingTier === "always"`,
|
|
48
|
+
).toBe("always");
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
describe("requiresConfirmation tools", () => {
|
|
55
|
+
it("forget and kill have requiresConfirmation: true", () => {
|
|
56
|
+
const forgetTool = CORE_TOOL_DEFINITIONS.find((t) => t.name === "forget");
|
|
57
|
+
const killTool = CORE_TOOL_DEFINITIONS.find((t) => t.name === "kill");
|
|
58
|
+
|
|
59
|
+
expect(forgetTool).toBeDefined();
|
|
60
|
+
expect(killTool).toBeDefined();
|
|
61
|
+
expect(forgetTool!.requiresConfirmation).toBe(true);
|
|
62
|
+
expect(killTool!.requiresConfirmation).toBe(true);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("apply_patch has requiresConfirmation: true", () => {
|
|
66
|
+
const applyPatch = CORE_TOOL_DEFINITIONS.find((t) => t.name === "apply_patch");
|
|
67
|
+
expect(applyPatch).toBeDefined();
|
|
68
|
+
expect(applyPatch!.requiresConfirmation).toBe(true);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
it("bash has requiresConfirmation: true", () => {
|
|
72
|
+
const bash = CORE_TOOL_DEFINITIONS.find((t) => t.name === "bash");
|
|
73
|
+
expect(bash).toBeDefined();
|
|
74
|
+
expect(bash!.requiresConfirmation).toBe(true);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
describe("Tool factory", () => {
|
|
79
|
+
it("sets loadingTier when specified", () => {
|
|
80
|
+
const t = tool({
|
|
81
|
+
name: "test_deferred_tool",
|
|
82
|
+
description: "A test tool with deferred loading",
|
|
83
|
+
parameters: z.object({ input: z.string() }),
|
|
84
|
+
execute: async () => ({ success: true, message: "ok" }),
|
|
85
|
+
loadingTier: "deferred",
|
|
86
|
+
} as Parameters<typeof tool>[0] & { loadingTier: "deferred" });
|
|
87
|
+
|
|
88
|
+
expect(
|
|
89
|
+
(t as Record<string, unknown>).loadingTier,
|
|
90
|
+
"Tool created with loadingTier: 'deferred' should have that value on the result",
|
|
91
|
+
).toBe("deferred");
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it("defaults loadingTier to 'always' when not specified", () => {
|
|
95
|
+
const t = tool({
|
|
96
|
+
name: "test_default_tool",
|
|
97
|
+
description: "A test tool without explicit loadingTier",
|
|
98
|
+
parameters: z.object({ input: z.string() }),
|
|
99
|
+
execute: async () => ({ success: true, message: "ok" }),
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
expect(
|
|
103
|
+
(t as Record<string, unknown>).loadingTier,
|
|
104
|
+
"Tool created without loadingTier should default to 'always'",
|
|
105
|
+
).toBe("always");
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
describe("Total core tools split", () => {
|
|
110
|
+
it("62 always + 2 deferred = 64 total core tools", () => {
|
|
111
|
+
// Verify total count
|
|
112
|
+
expect(CORE_TOOL_DEFINITIONS.length).toBe(64);
|
|
113
|
+
|
|
114
|
+
const alwaysTools = CORE_TOOL_DEFINITIONS.filter(
|
|
115
|
+
(t) => (t as Record<string, unknown>).loadingTier === "always",
|
|
116
|
+
);
|
|
117
|
+
const deferredTools = CORE_TOOL_DEFINITIONS.filter(
|
|
118
|
+
(t) => (t as Record<string, unknown>).loadingTier === "deferred",
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
expect(alwaysTools.length).toBe(62);
|
|
122
|
+
expect(deferredTools.length).toBe(2);
|
|
123
|
+
expect(alwaysTools.length + deferredTools.length).toBe(64);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
});
|