@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
|
@@ -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[];
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core tool definitions for ARIA
|
|
3
|
-
* Core tools across 10 definition groups:
|
|
4
|
-
* memory (5), web (3+1), filesystem (8), shell (7+1), arion (4), delegation (3), messaging (4+2), network (2), deploy (1), meta (11)
|
|
5
|
-
*
|
|
6
|
-
* Individual category definitions are in their respective files.
|
|
7
|
-
* This module assembles them into the unified CORE_TOOL_DEFINITIONS array.
|
|
8
|
-
* browser and process are forked from OpenClaw (MIT) and added directly here.
|
|
9
|
-
*/
|
|
10
|
-
import type { Tool, ToolCategory, RiskLevel } from "../types.js";
|
|
11
|
-
export { MEMORY_TOOL_DEFINITIONS } from "./memory.js";
|
|
12
|
-
export { WEB_TOOL_DEFINITIONS } from "./web.js";
|
|
13
|
-
export { FILESYSTEM_TOOL_DEFINITIONS } from "./filesystem.js";
|
|
14
|
-
export { SHELL_TOOL_DEFINITIONS } from "./shell.js";
|
|
15
|
-
export { ARION_TOOL_DEFINITIONS } from "./arion.js";
|
|
16
|
-
export { DELEGATION_TOOL_DEFINITIONS } from "./delegation.js";
|
|
17
|
-
export { MESSAGING_TOOL_DEFINITIONS } from "./messaging.js";
|
|
18
|
-
export { SLACK_TOOL_DEFINITIONS } from "./slack.js";
|
|
19
|
-
export { OUTLOOK_TOOL_DEFINITIONS } from "./outlook.js";
|
|
20
|
-
export { QUIP_TOOL_DEFINITIONS } from "./quip.js";
|
|
21
|
-
export { NETWORK_TOOL_DEFINITIONS } from "./network.js";
|
|
22
|
-
export { DEPLOY_TOOL_DEFINITIONS } from "./deploy.js";
|
|
23
|
-
export { META_TOOL_DEFINITIONS } from "./meta.js";
|
|
24
|
-
export { SESSION_HISTORY_TOOL_DEFINITIONS } from "./session-history.js";
|
|
25
|
-
export { FRG_TOOL_DEFINITIONS } from "./frg.js";
|
|
26
|
-
export { CODE_INTELLIGENCE_TOOL_DEFINITIONS } from "./code-intelligence.js";
|
|
27
|
-
export { SEARCH_TOOL_DEFINITIONS } from "./search.js";
|
|
28
|
-
/**
|
|
29
|
-
* All core tool definitions
|
|
30
|
-
*/
|
|
31
|
-
export declare const CORE_TOOL_DEFINITIONS: Tool[];
|
|
32
|
-
/**
|
|
33
|
-
* Get all core tools
|
|
34
|
-
*/
|
|
35
|
-
export declare function getCoreTools(): Tool[];
|
|
36
|
-
/**
|
|
37
|
-
* Get a core tool by name
|
|
38
|
-
*/
|
|
39
|
-
export declare function getCoreTool(name: string): Tool | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Get all tools in a category
|
|
42
|
-
*/
|
|
43
|
-
export declare function getCoreToolsByCategory(category: ToolCategory): Tool[];
|
|
44
|
-
/**
|
|
45
|
-
* Get all tools by risk level
|
|
46
|
-
*/
|
|
47
|
-
export declare function getCoreToolsByRiskLevel(riskLevel: RiskLevel): Tool[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Delegation tool definitions
|
|
3
|
-
*
|
|
4
|
-
* Tools: delegate_arion, spawn_worker, check_delegation, pause_delegation, resume_delegation, delegate_remote, quest_report (7 tools)
|
|
5
|
-
*
|
|
6
|
-
* delegate_arion and spawn_worker call context.delegationExecutor (injected by runner).
|
|
7
|
-
* check_delegation uses context.delegationRegistry for status queries.
|
|
8
|
-
* When the executor/registry aren't wired, tools return a clear error.
|
|
9
|
-
*/
|
|
10
|
-
/** Delegation tool definitions (7) */
|
|
11
|
-
export declare const DELEGATION_TOOL_DEFINITIONS: import("../types.js").Tool[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deploy tool definition.
|
|
3
|
-
*
|
|
4
|
-
* Tools: deploy (1 tool)
|
|
5
|
-
*
|
|
6
|
-
* Deploys ARIA to a remote machine via SSH. Detects OS, installs Node.js + pnpm,
|
|
7
|
-
* clones/syncs repo, builds, sets up TLS certs, configures firewall, writes config,
|
|
8
|
-
* and starts the daemon.
|
|
9
|
-
*
|
|
10
|
-
* Safety: requires explicit user confirmation (dangerous risk level).
|
|
11
|
-
* Auto-denied in daemon autorun mode.
|
|
12
|
-
*/
|
|
13
|
-
import type { Tool } from "../types.js";
|
|
14
|
-
/** Deploy tool definitions (1) */
|
|
15
|
-
export declare const DEPLOY_TOOL_DEFINITIONS: Tool[];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Filesystem tool definitions
|
|
3
|
-
*
|
|
4
|
-
* Tools: read_file, write_file, edit_file, glob, ls, apply_patch (6 tools)
|
|
5
|
-
* Note: grep replaced by native indexed search in SEARCH_TOOL_DEFINITIONS
|
|
6
|
-
*/
|
|
7
|
-
import type { Tool } from "../types.js";
|
|
8
|
-
/** Filesystem tool definitions (6) — grep replaced by native indexed search in SEARCH_TOOL_DEFINITIONS */
|
|
9
|
-
export declare const FILESYSTEM_TOOL_DEFINITIONS: Tool[];
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool definitions exports
|
|
3
|
-
*/
|
|
4
|
-
export { CORE_TOOL_DEFINITIONS, getCoreTools, getCoreTool, getCoreToolsByCategory, getCoreToolsByRiskLevel, } from "./core.js";
|
|
5
|
-
export { MEMORY_TOOL_DEFINITIONS } from "./memory.js";
|
|
6
|
-
export { WEB_TOOL_DEFINITIONS } from "./web.js";
|
|
7
|
-
export { FILESYSTEM_TOOL_DEFINITIONS } from "./filesystem.js";
|
|
8
|
-
export { SHELL_TOOL_DEFINITIONS } from "./shell.js";
|
|
9
|
-
export { ARION_TOOL_DEFINITIONS } from "./arion.js";
|
|
10
|
-
export { DELEGATION_TOOL_DEFINITIONS } from "./delegation.js";
|
|
11
|
-
export { MESSAGING_TOOL_DEFINITIONS } from "./messaging.js";
|
|
12
|
-
export { SLACK_TOOL_DEFINITIONS } from "./slack.js";
|
|
13
|
-
export { QUIP_TOOL_DEFINITIONS } from "./quip.js";
|
|
14
|
-
export { NETWORK_TOOL_DEFINITIONS } from "./network.js";
|
|
15
|
-
export { META_TOOL_DEFINITIONS } from "./meta.js";
|
|
16
|
-
export { SESSION_HISTORY_TOOL_DEFINITIONS } from "./session-history.js";
|
|
17
|
-
export { FRG_TOOL_DEFINITIONS } from "./frg.js";
|
|
18
|
-
export { CODE_INTELLIGENCE_TOOL_DEFINITIONS } from "./code-intelligence.js";
|
|
19
|
-
export { SEARCH_TOOL_DEFINITIONS } from "./search.js";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Messaging tool definitions
|
|
3
|
-
*
|
|
4
|
-
* Tools: send_message, check_messages, search_messages, get_thread (4 tools)
|
|
5
|
-
*
|
|
6
|
-
* Inter-agent messaging for arions, workers, and leaders.
|
|
7
|
-
* All tools use context.messageStore (injected by runner when Memoria is available).
|
|
8
|
-
* When the message store isn't wired, tools return a clear error.
|
|
9
|
-
*/
|
|
10
|
-
/** Messaging tool definitions (4) */
|
|
11
|
-
export declare const MESSAGING_TOOL_DEFINITIONS: import("../types.js").Tool[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Meta tool definitions
|
|
3
|
-
*
|
|
4
|
-
* Tools:
|
|
5
|
-
* - ask_user, quest_update, quest_list
|
|
6
|
-
* - search, learn_tool, learn_skill
|
|
7
|
-
* - create_tool, create_skill, use_skill
|
|
8
|
-
*/
|
|
9
|
-
import type { Tool } from "../types.js";
|
|
10
|
-
/** Meta tool definitions */
|
|
11
|
-
export declare const META_TOOL_DEFINITIONS: Tool[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Network management tool definitions.
|
|
3
|
-
*
|
|
4
|
-
* Tools: manage_network, list_clients (2 tools)
|
|
5
|
-
*
|
|
6
|
-
* ARIA manages its own secure WireGuard network. The LLM uses this tool
|
|
7
|
-
* to invite peers, revoke access, list connections, and check status.
|
|
8
|
-
* No user configuration needed — the network auto-creates on first run.
|
|
9
|
-
*/
|
|
10
|
-
/** Network tool definitions (2) */
|
|
11
|
-
export declare const NETWORK_TOOL_DEFINITIONS: import("../types.js").Tool[];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Tool } from "../../types.js";
|
|
2
|
-
import type { ApplyPatchSummary } from "./patch-parser.js";
|
|
3
|
-
export type ApplyPatchResult = {
|
|
4
|
-
success: boolean;
|
|
5
|
-
summary: ApplyPatchSummary;
|
|
6
|
-
text: string;
|
|
7
|
-
};
|
|
8
|
-
export declare function applyPatch(input: string, options: {
|
|
9
|
-
cwd: string;
|
|
10
|
-
}): Promise<ApplyPatchResult>;
|
|
11
|
-
export declare const applyPatchTool: Tool;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type UpdateFileChunk = {
|
|
2
|
-
changeContext?: string;
|
|
3
|
-
oldLines: string[];
|
|
4
|
-
newLines: string[];
|
|
5
|
-
isEndOfFile: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare function applyUpdateHunk(filePath: string, chunks: UpdateFileChunk[], options?: {
|
|
8
|
-
readFile?: (filePath: string) => Promise<string>;
|
|
9
|
-
}): Promise<string>;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { applyPatchTool } from "./apply-patch.js";
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const BEGIN_PATCH_MARKER = "*** Begin Patch";
|
|
2
|
-
export declare const END_PATCH_MARKER = "*** End Patch";
|
|
3
|
-
export declare const ADD_FILE_MARKER = "*** Add File: ";
|
|
4
|
-
export declare const DELETE_FILE_MARKER = "*** Delete File: ";
|
|
5
|
-
export declare const UPDATE_FILE_MARKER = "*** Update File: ";
|
|
6
|
-
export declare const MOVE_TO_MARKER = "*** Move to: ";
|
|
7
|
-
export declare const EOF_MARKER = "*** End of File";
|
|
8
|
-
export declare const CHANGE_CONTEXT_MARKER = "@@ ";
|
|
9
|
-
export declare const EMPTY_CHANGE_CONTEXT_MARKER = "@@";
|
|
10
|
-
export type AddFileHunk = {
|
|
11
|
-
kind: "add";
|
|
12
|
-
path: string;
|
|
13
|
-
contents: string;
|
|
14
|
-
};
|
|
15
|
-
export type DeleteFileHunk = {
|
|
16
|
-
kind: "delete";
|
|
17
|
-
path: string;
|
|
18
|
-
};
|
|
19
|
-
export type UpdateFileChunk = {
|
|
20
|
-
changeContext?: string;
|
|
21
|
-
oldLines: string[];
|
|
22
|
-
newLines: string[];
|
|
23
|
-
isEndOfFile: boolean;
|
|
24
|
-
};
|
|
25
|
-
export type UpdateFileHunk = {
|
|
26
|
-
kind: "update";
|
|
27
|
-
path: string;
|
|
28
|
-
movePath?: string;
|
|
29
|
-
chunks: UpdateFileChunk[];
|
|
30
|
-
};
|
|
31
|
-
export type Hunk = AddFileHunk | DeleteFileHunk | UpdateFileHunk;
|
|
32
|
-
export type ApplyPatchSummary = {
|
|
33
|
-
added: string[];
|
|
34
|
-
modified: string[];
|
|
35
|
-
deleted: string[];
|
|
36
|
-
};
|
|
37
|
-
export declare function normalizeUnicodeSpaces(value: string): string;
|
|
38
|
-
export declare function parsePatchText(input: string): {
|
|
39
|
-
hunks: Hunk[];
|
|
40
|
-
patch: string;
|
|
41
|
-
};
|
|
42
|
-
export declare function checkPatchBoundariesLenient(lines: string[]): string[];
|
|
43
|
-
export declare function parseOneHunk(lines: string[], lineNumber: number): {
|
|
44
|
-
hunk: Hunk;
|
|
45
|
-
consumed: number;
|
|
46
|
-
};
|
|
47
|
-
export declare function parseUpdateFileChunk(lines: string[], lineNumber: number, allowMissingContext: boolean): {
|
|
48
|
-
chunk: UpdateFileChunk;
|
|
49
|
-
consumed: number;
|
|
50
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare function resolveSandboxInputPath(filePath: string, cwd: string): string;
|
|
2
|
-
export declare function resolveSandboxPath(params: {
|
|
3
|
-
filePath: string;
|
|
4
|
-
cwd: string;
|
|
5
|
-
root: string;
|
|
6
|
-
}): {
|
|
7
|
-
resolved: string;
|
|
8
|
-
relative: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function assertSandboxPath(params: {
|
|
11
|
-
filePath: string;
|
|
12
|
-
cwd: string;
|
|
13
|
-
root: string;
|
|
14
|
-
allowFinalSymlink?: boolean;
|
|
15
|
-
}): Promise<{
|
|
16
|
-
resolved: string;
|
|
17
|
-
relative: string;
|
|
18
|
-
}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { processTool } from "./process.js";
|