@aria-cli/tools 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ask-user-interaction.d.ts +0 -1
- package/dist/ask-user-interaction.js +0 -1
- package/dist/cache/web-cache.d.ts +0 -1
- package/dist/cache/web-cache.js +0 -1
- package/dist/definitions/arion.d.ts +0 -1
- package/dist/definitions/arion.js +0 -1
- package/dist/definitions/browser/browser.d.ts +0 -1
- package/dist/definitions/browser/browser.js +0 -1
- package/dist/definitions/browser/index.d.ts +0 -1
- package/dist/definitions/browser/index.js +0 -1
- package/dist/definitions/browser/pw-downloads.d.ts +0 -1
- package/dist/definitions/browser/pw-downloads.js +0 -1
- package/dist/definitions/browser/pw-interactions.d.ts +0 -1
- package/dist/definitions/browser/pw-interactions.js +0 -1
- package/dist/definitions/browser/pw-responses.d.ts +0 -1
- package/dist/definitions/browser/pw-responses.js +0 -1
- package/dist/definitions/browser/pw-session.d.ts +0 -1
- package/dist/definitions/browser/pw-session.js +0 -1
- package/dist/definitions/browser/pw-shared.d.ts +0 -1
- package/dist/definitions/browser/pw-shared.js +0 -1
- package/dist/definitions/browser/pw-snapshot.d.ts +0 -1
- package/dist/definitions/browser/pw-snapshot.js +0 -1
- package/dist/definitions/browser/pw-state.d.ts +0 -1
- package/dist/definitions/browser/pw-state.js +0 -1
- package/dist/definitions/browser/types.d.ts +0 -1
- package/dist/definitions/browser/types.js +0 -1
- package/dist/definitions/code-intelligence.d.ts +0 -1
- package/dist/definitions/code-intelligence.js +0 -1
- package/dist/definitions/core.d.ts +0 -1
- package/dist/definitions/core.js +0 -1
- package/dist/definitions/delegation.d.ts +0 -1
- package/dist/definitions/delegation.js +0 -1
- package/dist/definitions/deploy.d.ts +0 -1
- package/dist/definitions/deploy.js +0 -1
- package/dist/definitions/filesystem.d.ts +0 -1
- package/dist/definitions/filesystem.js +0 -1
- package/dist/definitions/frg.d.ts +0 -1
- package/dist/definitions/frg.js +0 -1
- package/dist/definitions/index.d.ts +0 -1
- package/dist/definitions/index.js +0 -1
- package/dist/definitions/memory.d.ts +0 -1
- package/dist/definitions/memory.js +0 -1
- package/dist/definitions/messaging.d.ts +0 -1
- package/dist/definitions/messaging.js +0 -1
- package/dist/definitions/meta.d.ts +0 -1
- package/dist/definitions/meta.js +0 -1
- package/dist/definitions/network.d.ts +0 -1
- package/dist/definitions/network.js +0 -1
- package/dist/definitions/outlook.d.ts +0 -1
- package/dist/definitions/outlook.js +0 -1
- package/dist/definitions/patch/apply-patch.d.ts +0 -1
- package/dist/definitions/patch/apply-patch.js +0 -1
- package/dist/definitions/patch/fuzzy-match.d.ts +0 -1
- package/dist/definitions/patch/fuzzy-match.js +0 -1
- package/dist/definitions/patch/index.d.ts +0 -1
- package/dist/definitions/patch/index.js +0 -1
- package/dist/definitions/patch/patch-parser.d.ts +0 -1
- package/dist/definitions/patch/patch-parser.js +0 -1
- package/dist/definitions/patch/sandbox-paths.d.ts +0 -1
- package/dist/definitions/patch/sandbox-paths.js +0 -1
- package/dist/definitions/process/index.d.ts +0 -1
- package/dist/definitions/process/index.js +0 -1
- package/dist/definitions/process/process-registry.d.ts +0 -1
- package/dist/definitions/process/process-registry.js +0 -1
- package/dist/definitions/process/process.d.ts +0 -1
- package/dist/definitions/process/process.js +0 -1
- package/dist/definitions/process/pty-keys.d.ts +0 -1
- package/dist/definitions/process/pty-keys.js +0 -1
- package/dist/definitions/process/session-slug.d.ts +0 -1
- package/dist/definitions/process/session-slug.js +0 -1
- package/dist/definitions/quip.d.ts +0 -1
- package/dist/definitions/quip.js +0 -1
- package/dist/definitions/search.d.ts +0 -1
- package/dist/definitions/search.js +0 -1
- package/dist/definitions/session-history.d.ts +0 -1
- package/dist/definitions/session-history.js +0 -1
- package/dist/definitions/shell.d.ts +0 -1
- package/dist/definitions/shell.js +0 -1
- package/dist/definitions/slack.d.ts +0 -1
- package/dist/definitions/slack.js +0 -1
- package/dist/definitions/web.d.ts +0 -1
- package/dist/definitions/web.js +0 -1
- package/dist/executors/apply-patch.d.ts +0 -1
- package/dist/executors/apply-patch.js +0 -1
- package/dist/executors/arion.d.ts +0 -1
- package/dist/executors/arion.js +0 -1
- package/dist/executors/code-intelligence.d.ts +0 -1
- package/dist/executors/code-intelligence.js +0 -1
- package/dist/executors/deploy.d.ts +0 -1
- package/dist/executors/deploy.js +0 -1
- package/dist/executors/filesystem.d.ts +0 -1
- package/dist/executors/filesystem.js +0 -1
- package/dist/executors/frg-freshness.d.ts +0 -1
- package/dist/executors/frg-freshness.js +0 -1
- package/dist/executors/frg.d.ts +0 -1
- package/dist/executors/frg.js +0 -1
- package/dist/executors/index.d.ts +0 -1
- package/dist/executors/index.js +0 -1
- package/dist/executors/learning-meta.d.ts +0 -1
- package/dist/executors/learning-meta.js +0 -1
- package/dist/executors/lsp-client.d.ts +0 -1
- package/dist/executors/lsp-client.js +0 -1
- package/dist/executors/memory.d.ts +0 -1
- package/dist/executors/memory.js +0 -1
- package/dist/executors/meta.d.ts +0 -1
- package/dist/executors/meta.js +0 -1
- package/dist/executors/process-registry.d.ts +0 -1
- package/dist/executors/process-registry.js +0 -1
- package/dist/executors/pty-session-store.d.ts +0 -1
- package/dist/executors/pty-session-store.js +0 -1
- package/dist/executors/pty.d.ts +0 -1
- package/dist/executors/pty.js +0 -1
- package/dist/executors/restart.d.ts +0 -1
- package/dist/executors/restart.js +0 -1
- package/dist/executors/search-freshness.d.ts +0 -1
- package/dist/executors/search-freshness.js +0 -1
- package/dist/executors/search-types.d.ts +0 -1
- package/dist/executors/search-types.js +0 -1
- package/dist/executors/search.d.ts +0 -1
- package/dist/executors/search.js +0 -1
- package/dist/executors/self-diagnose.d.ts +0 -1
- package/dist/executors/self-diagnose.js +0 -1
- package/dist/executors/session-history.d.ts +0 -1
- package/dist/executors/session-history.js +0 -1
- package/dist/executors/shell-safety.d.ts +0 -1
- package/dist/executors/shell-safety.js +0 -1
- package/dist/executors/shell.d.ts +0 -1
- package/dist/executors/shell.js +0 -1
- package/dist/executors/utils.d.ts +0 -1
- package/dist/executors/utils.js +0 -1
- package/dist/executors/web.d.ts +0 -1
- package/dist/executors/web.js +0 -1
- package/dist/extraction/content-extraction.d.ts +0 -1
- package/dist/extraction/content-extraction.js +0 -1
- package/dist/extraction/index.d.ts +0 -1
- package/dist/extraction/index.js +0 -1
- package/dist/headless-control-contract.d.ts +0 -1
- package/dist/headless-control-contract.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/local-control-http-auth.d.ts +0 -1
- package/dist/local-control-http-auth.js +0 -1
- package/dist/mcp/client.d.ts +0 -1
- package/dist/mcp/client.js +0 -1
- package/dist/mcp/connection.d.ts +0 -1
- package/dist/mcp/connection.js +0 -1
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/index.js +0 -1
- package/dist/mcp/jsonrpc.d.ts +0 -1
- package/dist/mcp/jsonrpc.js +0 -1
- package/dist/mcp/types.d.ts +0 -1
- package/dist/mcp/types.js +0 -1
- package/dist/network-control-adapter.d.ts +0 -1
- package/dist/network-control-adapter.js +0 -1
- package/dist/network-runtime/address-types.d.ts +0 -1
- package/dist/network-runtime/address-types.js +0 -1
- package/dist/network-runtime/db-owner-fencing.d.ts +0 -1
- package/dist/network-runtime/db-owner-fencing.js +0 -1
- package/dist/network-runtime/delivery-receipts.d.ts +0 -1
- package/dist/network-runtime/delivery-receipts.js +0 -1
- package/dist/network-runtime/direct-endpoint-authority.d.ts +0 -1
- package/dist/network-runtime/direct-endpoint-authority.js +0 -1
- package/dist/network-runtime/index.d.ts +0 -1
- package/dist/network-runtime/index.js +0 -1
- package/dist/network-runtime/local-control-contract.d.ts +0 -1
- package/dist/network-runtime/local-control-contract.js +0 -1
- package/dist/network-runtime/node-store-contract.d.ts +0 -1
- package/dist/network-runtime/node-store-contract.js +0 -1
- package/dist/network-runtime/pair-route-contract.d.ts +0 -1
- package/dist/network-runtime/pair-route-contract.js +0 -1
- package/dist/network-runtime/peer-capabilities.d.ts +0 -1
- package/dist/network-runtime/peer-capabilities.js +0 -1
- package/dist/network-runtime/peer-principal-ref.d.ts +0 -1
- package/dist/network-runtime/peer-principal-ref.js +0 -1
- package/dist/network-runtime/peer-state-machine.d.ts +0 -1
- package/dist/network-runtime/peer-state-machine.js +0 -1
- package/dist/network-runtime/protocol-schemas.d.ts +0 -1
- package/dist/network-runtime/protocol-schemas.js +0 -1
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts +0 -1
- package/dist/network-runtime/runtime-bootstrap-contract.js +0 -1
- package/dist/outlook/desktop-session.d.ts +0 -1
- package/dist/outlook/desktop-session.js +0 -1
- package/dist/policy.d.ts +0 -1
- package/dist/policy.js +0 -1
- package/dist/providers/brave.d.ts +0 -1
- package/dist/providers/brave.js +0 -1
- package/dist/providers/duckduckgo.d.ts +0 -1
- package/dist/providers/duckduckgo.js +0 -1
- package/dist/providers/exa.d.ts +0 -1
- package/dist/providers/exa.js +0 -1
- package/dist/providers/firecrawl.d.ts +0 -1
- package/dist/providers/firecrawl.js +0 -1
- package/dist/providers/index.d.ts +0 -1
- package/dist/providers/index.js +0 -1
- package/dist/providers/jina.d.ts +0 -1
- package/dist/providers/jina.js +0 -1
- package/dist/providers/router.d.ts +0 -1
- package/dist/providers/router.js +0 -1
- package/dist/providers/search-provider.d.ts +0 -1
- package/dist/providers/search-provider.js +0 -1
- package/dist/providers/tavily.d.ts +0 -1
- package/dist/providers/tavily.js +0 -1
- package/dist/quip/desktop-session.d.ts +0 -1
- package/dist/quip/desktop-session.js +0 -1
- package/dist/registry/index.d.ts +0 -1
- package/dist/registry/index.js +0 -1
- package/dist/registry/registry.d.ts +0 -1
- package/dist/registry/registry.js +0 -1
- package/dist/runtime-socket-local-control-client.d.ts +0 -1
- package/dist/runtime-socket-local-control-client.js +0 -1
- package/dist/security/dns-normalization.d.ts +0 -1
- package/dist/security/dns-normalization.js +0 -1
- package/dist/security/dns-pinning.d.ts +0 -1
- package/dist/security/dns-pinning.js +0 -1
- package/dist/security/external-content.d.ts +0 -1
- package/dist/security/external-content.js +0 -1
- package/dist/security/ssrf.d.ts +0 -1
- package/dist/security/ssrf.js +0 -1
- package/dist/slack/desktop-session.d.ts +0 -1
- package/dist/slack/desktop-session.js +0 -1
- package/dist/tool-factory.d.ts +0 -1
- package/dist/tool-factory.js +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.js +0 -1
- package/dist/utils/retry.d.ts +0 -1
- package/dist/utils/retry.js +0 -1
- package/dist/utils/safe-parse-json.d.ts +0 -1
- package/dist/utils/safe-parse-json.js +0 -1
- package/dist/utils/url.d.ts +0 -1
- package/dist/utils/url.js +0 -1
- package/dist-cjs/.tsbuildinfo +1 -0
- package/dist-cjs/ask-user-interaction.d.ts +10 -0
- package/dist-cjs/ask-user-interaction.js +27 -0
- package/dist-cjs/cache/web-cache.d.ts +52 -0
- package/dist-cjs/cache/web-cache.js +70 -0
- package/dist-cjs/definitions/arion.d.ts +8 -0
- package/dist-cjs/definitions/arion.js +107 -0
- package/dist-cjs/definitions/browser/browser.d.ts +2 -0
- package/dist-cjs/definitions/browser/browser.js +421 -0
- package/dist-cjs/definitions/browser/index.d.ts +1 -0
- package/dist-cjs/definitions/browser/index.js +8 -0
- package/dist-cjs/definitions/browser/pw-downloads.d.ts +13 -0
- package/dist-cjs/definitions/browser/pw-downloads.js +117 -0
- package/dist-cjs/definitions/browser/pw-interactions.d.ts +78 -0
- package/dist-cjs/definitions/browser/pw-interactions.js +213 -0
- package/dist-cjs/definitions/browser/pw-responses.d.ts +28 -0
- package/dist-cjs/definitions/browser/pw-responses.js +84 -0
- package/dist-cjs/definitions/browser/pw-session.d.ts +65 -0
- package/dist-cjs/definitions/browser/pw-session.js +326 -0
- package/dist-cjs/definitions/browser/pw-shared.d.ts +22 -0
- package/dist-cjs/definitions/browser/pw-shared.js +72 -0
- package/dist-cjs/definitions/browser/pw-snapshot.d.ts +34 -0
- package/dist-cjs/definitions/browser/pw-snapshot.js +307 -0
- package/dist-cjs/definitions/browser/pw-state.d.ts +22 -0
- package/dist-cjs/definitions/browser/pw-state.js +70 -0
- package/dist-cjs/definitions/browser/types.d.ts +277 -0
- package/dist-cjs/definitions/browser/types.js +5 -0
- package/dist-cjs/definitions/code-intelligence.d.ts +8 -0
- package/dist-cjs/definitions/code-intelligence.js +473 -0
- package/dist-cjs/definitions/core.d.ts +47 -0
- package/dist-cjs/definitions/core.js +133 -0
- package/dist-cjs/definitions/delegation.d.ts +11 -0
- package/dist-cjs/definitions/delegation.js +515 -0
- package/dist-cjs/definitions/deploy.d.ts +15 -0
- package/dist-cjs/definitions/deploy.js +68 -0
- package/dist-cjs/definitions/filesystem.d.ts +9 -0
- package/dist-cjs/definitions/filesystem.js +199 -0
- package/dist-cjs/definitions/frg.d.ts +3 -0
- package/dist-cjs/definitions/frg.js +66 -0
- package/dist-cjs/definitions/index.d.ts +19 -0
- package/dist-cjs/definitions/index.js +43 -0
- package/dist-cjs/definitions/memory.d.ts +8 -0
- package/dist-cjs/definitions/memory.js +126 -0
- package/dist-cjs/definitions/messaging.d.ts +11 -0
- package/dist-cjs/definitions/messaging.js +631 -0
- package/dist-cjs/definitions/meta.d.ts +11 -0
- package/dist-cjs/definitions/meta.js +352 -0
- package/dist-cjs/definitions/network.d.ts +11 -0
- package/dist-cjs/definitions/network.js +162 -0
- package/dist-cjs/definitions/outlook.d.ts +2 -0
- package/dist-cjs/definitions/outlook.js +280 -0
- package/dist-cjs/definitions/patch/apply-patch.d.ts +11 -0
- package/dist-cjs/definitions/patch/apply-patch.js +191 -0
- package/dist-cjs/definitions/patch/fuzzy-match.d.ts +10 -0
- package/dist-cjs/definitions/patch/fuzzy-match.js +172 -0
- package/dist-cjs/definitions/patch/index.d.ts +1 -0
- package/dist-cjs/definitions/patch/index.js +5 -0
- package/dist-cjs/definitions/patch/patch-parser.d.ts +50 -0
- package/dist-cjs/definitions/patch/patch-parser.js +215 -0
- package/dist-cjs/definitions/patch/sandbox-paths.d.ts +18 -0
- package/dist-cjs/definitions/patch/sandbox-paths.js +113 -0
- package/dist-cjs/definitions/process/index.d.ts +1 -0
- package/dist-cjs/definitions/process/index.js +8 -0
- package/dist-cjs/definitions/process/process-registry.d.ts +67 -0
- package/dist-cjs/definitions/process/process-registry.js +231 -0
- package/dist-cjs/definitions/process/process.d.ts +9 -0
- package/dist-cjs/definitions/process/process.js +389 -0
- package/dist-cjs/definitions/process/pty-keys.d.ts +13 -0
- package/dist-cjs/definitions/process/pty-keys.js +259 -0
- package/dist-cjs/definitions/process/session-slug.d.ts +1 -0
- package/dist-cjs/definitions/process/session-slug.js +145 -0
- package/dist-cjs/definitions/quip.d.ts +2 -0
- package/dist-cjs/definitions/quip.js +198 -0
- package/dist-cjs/definitions/search.d.ts +9 -0
- package/dist-cjs/definitions/search.js +63 -0
- package/dist-cjs/definitions/session-history.d.ts +11 -0
- package/dist-cjs/definitions/session-history.js +72 -0
- package/dist-cjs/definitions/shell.d.ts +8 -0
- package/dist-cjs/definitions/shell.js +184 -0
- package/dist-cjs/definitions/slack.d.ts +2 -0
- package/dist-cjs/definitions/slack.js +183 -0
- package/dist-cjs/definitions/web.d.ts +8 -0
- package/dist-cjs/definitions/web.js +112 -0
- package/dist-cjs/executors/apply-patch.d.ts +51 -0
- package/dist-cjs/executors/apply-patch.js +938 -0
- package/dist-cjs/executors/arion.d.ts +50 -0
- package/dist-cjs/executors/arion.js +125 -0
- package/dist-cjs/executors/code-intelligence.d.ts +138 -0
- package/dist-cjs/executors/code-intelligence.js +925 -0
- package/dist-cjs/executors/deploy.d.ts +169 -0
- package/dist-cjs/executors/deploy.js +869 -0
- package/dist-cjs/executors/filesystem.d.ts +150 -0
- package/dist-cjs/executors/filesystem.js +1167 -0
- package/dist-cjs/executors/frg-freshness.d.ts +93 -0
- package/dist-cjs/executors/frg-freshness.js +627 -0
- package/dist-cjs/executors/frg.d.ts +27 -0
- package/dist-cjs/executors/frg.js +334 -0
- package/dist-cjs/executors/index.d.ts +44 -0
- package/dist-cjs/executors/index.js +143 -0
- package/dist-cjs/executors/learning-meta.d.ts +87 -0
- package/dist-cjs/executors/learning-meta.js +1165 -0
- package/dist-cjs/executors/lsp-client.d.ts +38 -0
- package/dist-cjs/executors/lsp-client.js +310 -0
- package/dist-cjs/executors/memory.d.ts +203 -0
- package/dist-cjs/executors/memory.js +796 -0
- package/dist-cjs/executors/meta.d.ts +73 -0
- package/dist-cjs/executors/meta.js +226 -0
- package/dist-cjs/executors/process-registry.d.ts +98 -0
- package/dist-cjs/executors/process-registry.js +469 -0
- package/dist-cjs/executors/pty-session-store.d.ts +14 -0
- package/dist-cjs/executors/pty-session-store.js +34 -0
- package/dist-cjs/executors/pty.d.ts +133 -0
- package/dist-cjs/executors/pty.js +312 -0
- package/dist-cjs/executors/restart.d.ts +13 -0
- package/dist-cjs/executors/restart.js +155 -0
- package/dist-cjs/executors/search-freshness.d.ts +50 -0
- package/dist-cjs/executors/search-freshness.js +234 -0
- package/dist-cjs/executors/search-types.d.ts +52 -0
- package/dist-cjs/executors/search-types.js +56 -0
- package/dist-cjs/executors/search.d.ts +11 -0
- package/dist-cjs/executors/search.js +102 -0
- package/dist-cjs/executors/self-diagnose.d.ts +89 -0
- package/dist-cjs/executors/self-diagnose.js +434 -0
- package/dist-cjs/executors/session-history.d.ts +75 -0
- package/dist-cjs/executors/session-history.js +320 -0
- package/dist-cjs/executors/shell-safety.d.ts +27 -0
- package/dist-cjs/executors/shell-safety.js +478 -0
- package/dist-cjs/executors/shell.d.ts +168 -0
- package/dist-cjs/executors/shell.js +1001 -0
- package/dist-cjs/executors/utils.d.ts +20 -0
- package/dist-cjs/executors/utils.js +73 -0
- package/dist-cjs/executors/web.d.ts +89 -0
- package/dist-cjs/executors/web.js +547 -0
- package/dist-cjs/extraction/content-extraction.d.ts +48 -0
- package/dist-cjs/extraction/content-extraction.js +243 -0
- package/dist-cjs/extraction/index.d.ts +4 -0
- package/dist-cjs/extraction/index.js +8 -0
- package/dist-cjs/headless-control-contract.d.ts +3182 -0
- package/dist-cjs/headless-control-contract.js +972 -0
- package/dist-cjs/index.d.ts +62 -0
- package/dist-cjs/index.js +437 -0
- package/dist-cjs/local-control-http-auth.d.ts +2 -0
- package/dist-cjs/local-control-http-auth.js +5 -0
- package/dist-cjs/mcp/client.d.ts +68 -0
- package/dist-cjs/mcp/client.js +185 -0
- package/dist-cjs/mcp/connection.d.ts +54 -0
- package/dist-cjs/mcp/connection.js +484 -0
- package/dist-cjs/mcp/index.d.ts +10 -0
- package/dist-cjs/mcp/index.js +30 -0
- package/dist-cjs/mcp/jsonrpc.d.ts +36 -0
- package/dist-cjs/mcp/jsonrpc.js +148 -0
- package/dist-cjs/mcp/types.d.ts +178 -0
- package/dist-cjs/mcp/types.js +8 -0
- package/dist-cjs/network-control-adapter.d.ts +4 -0
- package/dist-cjs/network-control-adapter.js +77 -0
- package/dist-cjs/network-runtime/address-types.d.ts +201 -0
- package/dist-cjs/network-runtime/address-types.js +168 -0
- package/dist-cjs/network-runtime/db-owner-fencing.d.ts +43 -0
- package/dist-cjs/network-runtime/db-owner-fencing.js +76 -0
- package/dist-cjs/network-runtime/delivery-receipts.d.ts +117 -0
- package/dist-cjs/network-runtime/delivery-receipts.js +276 -0
- package/dist-cjs/network-runtime/direct-endpoint-authority.d.ts +8 -0
- package/dist-cjs/network-runtime/direct-endpoint-authority.js +29 -0
- package/dist-cjs/network-runtime/index.d.ts +24 -0
- package/dist-cjs/network-runtime/index.js +172 -0
- package/dist-cjs/network-runtime/local-control-contract.d.ts +758 -0
- package/dist-cjs/network-runtime/local-control-contract.js +633 -0
- package/dist-cjs/network-runtime/node-store-contract.d.ts +49 -0
- package/dist-cjs/network-runtime/node-store-contract.js +38 -0
- package/dist-cjs/network-runtime/pair-route-contract.d.ts +100 -0
- package/dist-cjs/network-runtime/pair-route-contract.js +80 -0
- package/dist-cjs/network-runtime/peer-capabilities.d.ts +10 -0
- package/dist-cjs/network-runtime/peer-capabilities.js +37 -0
- package/dist-cjs/network-runtime/peer-principal-ref.d.ts +9 -0
- package/dist-cjs/network-runtime/peer-principal-ref.js +15 -0
- package/dist-cjs/network-runtime/peer-state-machine.d.ts +70 -0
- package/dist-cjs/network-runtime/peer-state-machine.js +129 -0
- package/dist-cjs/network-runtime/protocol-schemas.d.ts +328 -0
- package/dist-cjs/network-runtime/protocol-schemas.js +212 -0
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.d.ts +81 -0
- package/dist-cjs/network-runtime/runtime-bootstrap-contract.js +63 -0
- package/dist-cjs/outlook/desktop-session.d.ts +68 -0
- package/dist-cjs/outlook/desktop-session.js +318 -0
- package/dist-cjs/package.json +3 -0
- package/dist-cjs/policy.d.ts +43 -0
- package/dist-cjs/policy.js +155 -0
- package/dist-cjs/providers/brave.d.ts +10 -0
- package/dist-cjs/providers/brave.js +66 -0
- package/dist-cjs/providers/duckduckgo.d.ts +18 -0
- package/dist-cjs/providers/duckduckgo.js +180 -0
- package/dist-cjs/providers/exa.d.ts +10 -0
- package/dist-cjs/providers/exa.js +67 -0
- package/dist-cjs/providers/firecrawl.d.ts +10 -0
- package/dist-cjs/providers/firecrawl.js +59 -0
- package/dist-cjs/providers/index.d.ts +8 -0
- package/dist-cjs/providers/index.js +17 -0
- package/dist-cjs/providers/jina.d.ts +10 -0
- package/dist-cjs/providers/jina.js +53 -0
- package/dist-cjs/providers/router.d.ts +21 -0
- package/dist-cjs/providers/router.js +100 -0
- package/dist-cjs/providers/search-provider.d.ts +35 -0
- package/dist-cjs/providers/search-provider.js +36 -0
- package/dist-cjs/providers/tavily.d.ts +10 -0
- package/dist-cjs/providers/tavily.js +58 -0
- package/dist-cjs/quip/desktop-session.d.ts +69 -0
- package/dist-cjs/quip/desktop-session.js +353 -0
- package/dist-cjs/registry/index.d.ts +1 -0
- package/dist-cjs/registry/index.js +6 -0
- package/dist-cjs/registry/registry.d.ts +156 -0
- package/dist-cjs/registry/registry.js +761 -0
- package/dist-cjs/runtime-socket-local-control-client.d.ts +10 -0
- package/dist-cjs/runtime-socket-local-control-client.js +367 -0
- package/dist-cjs/security/dns-normalization.d.ts +6 -0
- package/dist-cjs/security/dns-normalization.js +22 -0
- package/dist-cjs/security/dns-pinning.d.ts +27 -0
- package/dist-cjs/security/dns-pinning.js +160 -0
- package/dist-cjs/security/external-content.d.ts +40 -0
- package/dist-cjs/security/external-content.js +95 -0
- package/dist-cjs/security/ssrf.d.ts +40 -0
- package/dist-cjs/security/ssrf.js +221 -0
- package/dist-cjs/slack/desktop-session.d.ts +69 -0
- package/dist-cjs/slack/desktop-session.js +366 -0
- package/dist-cjs/tool-factory.d.ts +46 -0
- package/dist-cjs/tool-factory.js +50 -0
- package/dist-cjs/types.d.ts +1192 -0
- package/dist-cjs/types.js +8 -0
- package/dist-cjs/utils/retry.d.ts +11 -0
- package/dist-cjs/utils/retry.js +169 -0
- package/dist-cjs/utils/safe-parse-json.d.ts +26 -0
- package/dist-cjs/utils/safe-parse-json.js +164 -0
- package/dist-cjs/utils/url.d.ts +10 -0
- package/dist-cjs/utils/url.js +23 -0
- package/package.json +7 -6
- package/dist/ask-user-interaction.d.ts.map +0 -1
- package/dist/ask-user-interaction.js.map +0 -1
- package/dist/cache/web-cache.d.ts.map +0 -1
- package/dist/cache/web-cache.js.map +0 -1
- package/dist/definitions/arion.d.ts.map +0 -1
- package/dist/definitions/arion.js.map +0 -1
- package/dist/definitions/browser/browser.d.ts.map +0 -1
- package/dist/definitions/browser/browser.js.map +0 -1
- package/dist/definitions/browser/index.d.ts.map +0 -1
- package/dist/definitions/browser/index.js.map +0 -1
- package/dist/definitions/browser/pw-downloads.d.ts.map +0 -1
- package/dist/definitions/browser/pw-downloads.js.map +0 -1
- package/dist/definitions/browser/pw-interactions.d.ts.map +0 -1
- package/dist/definitions/browser/pw-interactions.js.map +0 -1
- package/dist/definitions/browser/pw-responses.d.ts.map +0 -1
- package/dist/definitions/browser/pw-responses.js.map +0 -1
- package/dist/definitions/browser/pw-session.d.ts.map +0 -1
- package/dist/definitions/browser/pw-session.js.map +0 -1
- package/dist/definitions/browser/pw-shared.d.ts.map +0 -1
- package/dist/definitions/browser/pw-shared.js.map +0 -1
- package/dist/definitions/browser/pw-snapshot.d.ts.map +0 -1
- package/dist/definitions/browser/pw-snapshot.js.map +0 -1
- package/dist/definitions/browser/pw-state.d.ts.map +0 -1
- package/dist/definitions/browser/pw-state.js.map +0 -1
- package/dist/definitions/browser/types.d.ts.map +0 -1
- package/dist/definitions/browser/types.js.map +0 -1
- package/dist/definitions/code-intelligence.d.ts.map +0 -1
- package/dist/definitions/code-intelligence.js.map +0 -1
- package/dist/definitions/core.d.ts.map +0 -1
- package/dist/definitions/core.js.map +0 -1
- package/dist/definitions/delegation.d.ts.map +0 -1
- package/dist/definitions/delegation.js.map +0 -1
- package/dist/definitions/deploy.d.ts.map +0 -1
- package/dist/definitions/deploy.js.map +0 -1
- package/dist/definitions/filesystem.d.ts.map +0 -1
- package/dist/definitions/filesystem.js.map +0 -1
- package/dist/definitions/frg.d.ts.map +0 -1
- package/dist/definitions/frg.js.map +0 -1
- package/dist/definitions/index.d.ts.map +0 -1
- package/dist/definitions/index.js.map +0 -1
- package/dist/definitions/memory.d.ts.map +0 -1
- package/dist/definitions/memory.js.map +0 -1
- package/dist/definitions/messaging.d.ts.map +0 -1
- package/dist/definitions/messaging.js.map +0 -1
- package/dist/definitions/meta.d.ts.map +0 -1
- package/dist/definitions/meta.js.map +0 -1
- package/dist/definitions/network.d.ts.map +0 -1
- package/dist/definitions/network.js.map +0 -1
- package/dist/definitions/outlook.d.ts.map +0 -1
- package/dist/definitions/outlook.js.map +0 -1
- package/dist/definitions/patch/apply-patch.d.ts.map +0 -1
- package/dist/definitions/patch/apply-patch.js.map +0 -1
- package/dist/definitions/patch/fuzzy-match.d.ts.map +0 -1
- package/dist/definitions/patch/fuzzy-match.js.map +0 -1
- package/dist/definitions/patch/index.d.ts.map +0 -1
- package/dist/definitions/patch/index.js.map +0 -1
- package/dist/definitions/patch/patch-parser.d.ts.map +0 -1
- package/dist/definitions/patch/patch-parser.js.map +0 -1
- package/dist/definitions/patch/sandbox-paths.d.ts.map +0 -1
- package/dist/definitions/patch/sandbox-paths.js.map +0 -1
- package/dist/definitions/process/index.d.ts.map +0 -1
- package/dist/definitions/process/index.js.map +0 -1
- package/dist/definitions/process/process-registry.d.ts.map +0 -1
- package/dist/definitions/process/process-registry.js.map +0 -1
- package/dist/definitions/process/process.d.ts.map +0 -1
- package/dist/definitions/process/process.js.map +0 -1
- package/dist/definitions/process/pty-keys.d.ts.map +0 -1
- package/dist/definitions/process/pty-keys.js.map +0 -1
- package/dist/definitions/process/session-slug.d.ts.map +0 -1
- package/dist/definitions/process/session-slug.js.map +0 -1
- package/dist/definitions/quip.d.ts.map +0 -1
- package/dist/definitions/quip.js.map +0 -1
- package/dist/definitions/search.d.ts.map +0 -1
- package/dist/definitions/search.js.map +0 -1
- package/dist/definitions/session-history.d.ts.map +0 -1
- package/dist/definitions/session-history.js.map +0 -1
- package/dist/definitions/shell.d.ts.map +0 -1
- package/dist/definitions/shell.js.map +0 -1
- package/dist/definitions/slack.d.ts.map +0 -1
- package/dist/definitions/slack.js.map +0 -1
- package/dist/definitions/web.d.ts.map +0 -1
- package/dist/definitions/web.js.map +0 -1
- package/dist/executors/apply-patch.d.ts.map +0 -1
- package/dist/executors/apply-patch.js.map +0 -1
- package/dist/executors/arion.d.ts.map +0 -1
- package/dist/executors/arion.js.map +0 -1
- package/dist/executors/code-intelligence.d.ts.map +0 -1
- package/dist/executors/code-intelligence.js.map +0 -1
- package/dist/executors/deploy.d.ts.map +0 -1
- package/dist/executors/deploy.js.map +0 -1
- package/dist/executors/filesystem.d.ts.map +0 -1
- package/dist/executors/filesystem.js.map +0 -1
- package/dist/executors/frg-freshness.d.ts.map +0 -1
- package/dist/executors/frg-freshness.js.map +0 -1
- package/dist/executors/frg.d.ts.map +0 -1
- package/dist/executors/frg.js.map +0 -1
- package/dist/executors/index.d.ts.map +0 -1
- package/dist/executors/index.js.map +0 -1
- package/dist/executors/learning-meta.d.ts.map +0 -1
- package/dist/executors/learning-meta.js.map +0 -1
- package/dist/executors/lsp-client.d.ts.map +0 -1
- package/dist/executors/lsp-client.js.map +0 -1
- package/dist/executors/memory.d.ts.map +0 -1
- package/dist/executors/memory.js.map +0 -1
- package/dist/executors/meta.d.ts.map +0 -1
- package/dist/executors/meta.js.map +0 -1
- package/dist/executors/process-registry.d.ts.map +0 -1
- package/dist/executors/process-registry.js.map +0 -1
- package/dist/executors/pty-session-store.d.ts.map +0 -1
- package/dist/executors/pty-session-store.js.map +0 -1
- package/dist/executors/pty.d.ts.map +0 -1
- package/dist/executors/pty.js.map +0 -1
- package/dist/executors/restart.d.ts.map +0 -1
- package/dist/executors/restart.js.map +0 -1
- package/dist/executors/search-freshness.d.ts.map +0 -1
- package/dist/executors/search-freshness.js.map +0 -1
- package/dist/executors/search-types.d.ts.map +0 -1
- package/dist/executors/search-types.js.map +0 -1
- package/dist/executors/search.d.ts.map +0 -1
- package/dist/executors/search.js.map +0 -1
- package/dist/executors/self-diagnose.d.ts.map +0 -1
- package/dist/executors/self-diagnose.js.map +0 -1
- package/dist/executors/session-history.d.ts.map +0 -1
- package/dist/executors/session-history.js.map +0 -1
- package/dist/executors/shell-safety.d.ts.map +0 -1
- package/dist/executors/shell-safety.js.map +0 -1
- package/dist/executors/shell.d.ts.map +0 -1
- package/dist/executors/shell.js.map +0 -1
- package/dist/executors/utils.d.ts.map +0 -1
- package/dist/executors/utils.js.map +0 -1
- package/dist/executors/web.d.ts.map +0 -1
- package/dist/executors/web.js.map +0 -1
- package/dist/extraction/content-extraction.d.ts.map +0 -1
- package/dist/extraction/content-extraction.js.map +0 -1
- package/dist/extraction/index.d.ts.map +0 -1
- package/dist/extraction/index.js.map +0 -1
- package/dist/headless-control-contract.d.ts.map +0 -1
- package/dist/headless-control-contract.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/local-control-http-auth.d.ts.map +0 -1
- package/dist/local-control-http-auth.js.map +0 -1
- package/dist/mcp/client.d.ts.map +0 -1
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/connection.d.ts.map +0 -1
- package/dist/mcp/connection.js.map +0 -1
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/jsonrpc.d.ts.map +0 -1
- package/dist/mcp/jsonrpc.js.map +0 -1
- package/dist/mcp/types.d.ts.map +0 -1
- package/dist/mcp/types.js.map +0 -1
- package/dist/network-control-adapter.d.ts.map +0 -1
- package/dist/network-control-adapter.js.map +0 -1
- package/dist/network-runtime/address-types.d.ts.map +0 -1
- package/dist/network-runtime/address-types.js.map +0 -1
- package/dist/network-runtime/db-owner-fencing.d.ts.map +0 -1
- package/dist/network-runtime/db-owner-fencing.js.map +0 -1
- package/dist/network-runtime/delivery-receipts.d.ts.map +0 -1
- package/dist/network-runtime/delivery-receipts.js.map +0 -1
- package/dist/network-runtime/direct-endpoint-authority.d.ts.map +0 -1
- package/dist/network-runtime/direct-endpoint-authority.js.map +0 -1
- package/dist/network-runtime/index.d.ts.map +0 -1
- package/dist/network-runtime/index.js.map +0 -1
- package/dist/network-runtime/local-control-contract.d.ts.map +0 -1
- package/dist/network-runtime/local-control-contract.js.map +0 -1
- package/dist/network-runtime/node-store-contract.d.ts.map +0 -1
- package/dist/network-runtime/node-store-contract.js.map +0 -1
- package/dist/network-runtime/pair-route-contract.d.ts.map +0 -1
- package/dist/network-runtime/pair-route-contract.js.map +0 -1
- package/dist/network-runtime/peer-capabilities.d.ts.map +0 -1
- package/dist/network-runtime/peer-capabilities.js.map +0 -1
- package/dist/network-runtime/peer-principal-ref.d.ts.map +0 -1
- package/dist/network-runtime/peer-principal-ref.js.map +0 -1
- package/dist/network-runtime/peer-state-machine.d.ts.map +0 -1
- package/dist/network-runtime/peer-state-machine.js.map +0 -1
- package/dist/network-runtime/protocol-schemas.d.ts.map +0 -1
- package/dist/network-runtime/protocol-schemas.js.map +0 -1
- package/dist/network-runtime/runtime-bootstrap-contract.d.ts.map +0 -1
- package/dist/network-runtime/runtime-bootstrap-contract.js.map +0 -1
- package/dist/outlook/desktop-session.d.ts.map +0 -1
- package/dist/outlook/desktop-session.js.map +0 -1
- package/dist/policy.d.ts.map +0 -1
- package/dist/policy.js.map +0 -1
- package/dist/providers/brave.d.ts.map +0 -1
- package/dist/providers/brave.js.map +0 -1
- package/dist/providers/duckduckgo.d.ts.map +0 -1
- package/dist/providers/duckduckgo.js.map +0 -1
- package/dist/providers/exa.d.ts.map +0 -1
- package/dist/providers/exa.js.map +0 -1
- package/dist/providers/firecrawl.d.ts.map +0 -1
- package/dist/providers/firecrawl.js.map +0 -1
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/jina.d.ts.map +0 -1
- package/dist/providers/jina.js.map +0 -1
- package/dist/providers/router.d.ts.map +0 -1
- package/dist/providers/router.js.map +0 -1
- package/dist/providers/search-provider.d.ts.map +0 -1
- package/dist/providers/search-provider.js.map +0 -1
- package/dist/providers/tavily.d.ts.map +0 -1
- package/dist/providers/tavily.js.map +0 -1
- package/dist/quip/desktop-session.d.ts.map +0 -1
- package/dist/quip/desktop-session.js.map +0 -1
- package/dist/registry/index.d.ts.map +0 -1
- package/dist/registry/index.js.map +0 -1
- package/dist/registry/registry.d.ts.map +0 -1
- package/dist/registry/registry.js.map +0 -1
- package/dist/runtime-socket-local-control-client.d.ts.map +0 -1
- package/dist/runtime-socket-local-control-client.js.map +0 -1
- package/dist/security/dns-normalization.d.ts.map +0 -1
- package/dist/security/dns-normalization.js.map +0 -1
- package/dist/security/dns-pinning.d.ts.map +0 -1
- package/dist/security/dns-pinning.js.map +0 -1
- package/dist/security/external-content.d.ts.map +0 -1
- package/dist/security/external-content.js.map +0 -1
- package/dist/security/ssrf.d.ts.map +0 -1
- package/dist/security/ssrf.js.map +0 -1
- package/dist/slack/desktop-session.d.ts.map +0 -1
- package/dist/slack/desktop-session.js.map +0 -1
- package/dist/tool-factory.d.ts.map +0 -1
- package/dist/tool-factory.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/retry.d.ts.map +0 -1
- package/dist/utils/retry.js.map +0 -1
- package/dist/utils/safe-parse-json.d.ts.map +0 -1
- package/dist/utils/safe-parse-json.js.map +0 -1
- package/dist/utils/url.d.ts.map +0 -1
- package/dist/utils/url.js.map +0 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Session History tool definitions
|
|
4
|
+
*
|
|
5
|
+
* Tools: session_history (1 tool with multi-action pattern)
|
|
6
|
+
*
|
|
7
|
+
* Provides list, search, get, current, stats, delete, and set_title
|
|
8
|
+
* actions against the SessionHistory SQLite database.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.SESSION_HISTORY_TOOL_DEFINITIONS = void 0;
|
|
12
|
+
const session_history_js_1 = require("../executors/session-history.js");
|
|
13
|
+
const sessionHistory = {
|
|
14
|
+
name: "session_history",
|
|
15
|
+
description: "List, search, and manage conversation session history. Actions: " +
|
|
16
|
+
"'list' shows recent sessions, 'search' finds sessions by message content (full-text search), " +
|
|
17
|
+
"'get' retrieves a full session transcript, 'current' shows current session info, " +
|
|
18
|
+
"'stats' shows session statistics, 'delete' removes a session, " +
|
|
19
|
+
"'set_title' renames a session.",
|
|
20
|
+
category: "memory",
|
|
21
|
+
parameters: {
|
|
22
|
+
type: "object",
|
|
23
|
+
properties: {
|
|
24
|
+
action: {
|
|
25
|
+
type: "string",
|
|
26
|
+
enum: ["list", "search", "get", "current", "stats", "delete", "set_title"],
|
|
27
|
+
description: "Action to perform",
|
|
28
|
+
},
|
|
29
|
+
query: {
|
|
30
|
+
type: "string",
|
|
31
|
+
description: "Search query (required for 'search' action)",
|
|
32
|
+
},
|
|
33
|
+
sessionId: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Session ID or prefix — 8+ chars for prefix match, full UUID for exact match (required for 'get', 'delete', 'set_title')",
|
|
36
|
+
},
|
|
37
|
+
title: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "New title (required for 'set_title' action)",
|
|
40
|
+
},
|
|
41
|
+
limit: {
|
|
42
|
+
type: "number",
|
|
43
|
+
description: "Maximum number of results to return (default 20)",
|
|
44
|
+
default: 20,
|
|
45
|
+
},
|
|
46
|
+
offset: {
|
|
47
|
+
type: "number",
|
|
48
|
+
description: "Pagination offset (default 0)",
|
|
49
|
+
default: 0,
|
|
50
|
+
},
|
|
51
|
+
messageLimit: {
|
|
52
|
+
type: "number",
|
|
53
|
+
description: "Maximum messages to return per session for 'get' action (default 50)",
|
|
54
|
+
default: 50,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
required: ["action"],
|
|
58
|
+
},
|
|
59
|
+
riskLevel: "moderate",
|
|
60
|
+
isReadOnly: false,
|
|
61
|
+
loadingTier: "deferred",
|
|
62
|
+
// Only 'delete' needs confirmation — all other actions are safe
|
|
63
|
+
skipApprovalForInput: (input) => {
|
|
64
|
+
const i = input;
|
|
65
|
+
return i?.action !== "delete";
|
|
66
|
+
},
|
|
67
|
+
execute: (input, ctx) => {
|
|
68
|
+
return (0, session_history_js_1.executeSessionHistory)(input, ctx);
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
/** Session History tool definitions (1) */
|
|
72
|
+
exports.SESSION_HISTORY_TOOL_DEFINITIONS = [sessionHistory];
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Shell tool definitions
|
|
4
|
+
*
|
|
5
|
+
* Tools: bash, exec, spawn, kill, write_stdin, list_processes, wait_process (7 tools)
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SHELL_TOOL_DEFINITIONS = void 0;
|
|
9
|
+
const index_js_1 = require("../executors/index.js");
|
|
10
|
+
const shell_js_1 = require("../executors/shell.js");
|
|
11
|
+
const shell_safety_js_1 = require("../executors/shell-safety.js");
|
|
12
|
+
const bash = {
|
|
13
|
+
name: "bash",
|
|
14
|
+
description: "Execute a shell command in a bash environment. Returns stdout and stderr.",
|
|
15
|
+
category: "shell",
|
|
16
|
+
parameters: {
|
|
17
|
+
type: "object",
|
|
18
|
+
properties: {
|
|
19
|
+
command: { type: "string", description: "Command to execute" },
|
|
20
|
+
cwd: { type: "string", description: "Working directory" },
|
|
21
|
+
env: { type: "object", description: "Environment variables" },
|
|
22
|
+
timeout: { type: "number", description: "Timeout in milliseconds" },
|
|
23
|
+
},
|
|
24
|
+
required: ["command"],
|
|
25
|
+
},
|
|
26
|
+
riskLevel: "dangerous",
|
|
27
|
+
requiresConfirmation: true,
|
|
28
|
+
isReadOnly: false,
|
|
29
|
+
loadingTier: "always",
|
|
30
|
+
skipApprovalForInput: (input) => {
|
|
31
|
+
const cmd = input?.command;
|
|
32
|
+
return typeof cmd === "string" && (0, shell_safety_js_1.classifyCommand)(cmd) === "safe";
|
|
33
|
+
},
|
|
34
|
+
execute: index_js_1.executeBash,
|
|
35
|
+
};
|
|
36
|
+
const exec = {
|
|
37
|
+
name: "exec",
|
|
38
|
+
description: "Execute a program directly without shell interpretation. Safer than bash for untrusted input.",
|
|
39
|
+
category: "shell",
|
|
40
|
+
parameters: {
|
|
41
|
+
type: "object",
|
|
42
|
+
properties: {
|
|
43
|
+
program: { type: "string", description: "Program to execute" },
|
|
44
|
+
args: {
|
|
45
|
+
type: "array",
|
|
46
|
+
items: { type: "string" },
|
|
47
|
+
description: "Command arguments",
|
|
48
|
+
},
|
|
49
|
+
cwd: { type: "string", description: "Working directory" },
|
|
50
|
+
env: { type: "object", description: "Environment variables" },
|
|
51
|
+
timeout: { type: "number", description: "Timeout in milliseconds" },
|
|
52
|
+
},
|
|
53
|
+
required: ["program"],
|
|
54
|
+
},
|
|
55
|
+
riskLevel: "dangerous",
|
|
56
|
+
isReadOnly: false,
|
|
57
|
+
loadingTier: "always",
|
|
58
|
+
execute: index_js_1.executeExec,
|
|
59
|
+
};
|
|
60
|
+
const spawn = {
|
|
61
|
+
name: "spawn",
|
|
62
|
+
description: "Start a long-running process in the background. Returns a process ID for management.",
|
|
63
|
+
category: "shell",
|
|
64
|
+
parameters: {
|
|
65
|
+
type: "object",
|
|
66
|
+
properties: {
|
|
67
|
+
program: { type: "string", description: "Program to spawn" },
|
|
68
|
+
args: {
|
|
69
|
+
type: "array",
|
|
70
|
+
items: { type: "string" },
|
|
71
|
+
description: "Command arguments",
|
|
72
|
+
},
|
|
73
|
+
cwd: { type: "string", description: "Working directory" },
|
|
74
|
+
env: { type: "object", description: "Environment variables" },
|
|
75
|
+
interactive: {
|
|
76
|
+
type: "boolean",
|
|
77
|
+
description: "Start as interactive PTY session (enables write_stdin). Default: false",
|
|
78
|
+
default: false,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
required: ["program"],
|
|
82
|
+
},
|
|
83
|
+
riskLevel: "dangerous",
|
|
84
|
+
isReadOnly: false,
|
|
85
|
+
loadingTier: "always",
|
|
86
|
+
execute: index_js_1.executeSpawn,
|
|
87
|
+
};
|
|
88
|
+
const kill = {
|
|
89
|
+
name: "kill",
|
|
90
|
+
description: "Terminate a running process by its process ID.",
|
|
91
|
+
category: "shell",
|
|
92
|
+
parameters: {
|
|
93
|
+
type: "object",
|
|
94
|
+
properties: {
|
|
95
|
+
pid: { type: "number", description: "Process ID to kill" },
|
|
96
|
+
signal: {
|
|
97
|
+
type: "string",
|
|
98
|
+
description: "Signal to send",
|
|
99
|
+
default: "SIGTERM",
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
required: ["pid"],
|
|
103
|
+
},
|
|
104
|
+
riskLevel: "dangerous",
|
|
105
|
+
requiresConfirmation: true,
|
|
106
|
+
isReadOnly: false,
|
|
107
|
+
loadingTier: "always",
|
|
108
|
+
execute: index_js_1.executeKill,
|
|
109
|
+
};
|
|
110
|
+
const write_stdin = {
|
|
111
|
+
name: "write_stdin",
|
|
112
|
+
description: "Send input to an interactive PTY session by PID. Use after spawning a process with interactive=true. Returns recent output from the session.",
|
|
113
|
+
category: "shell",
|
|
114
|
+
parameters: {
|
|
115
|
+
type: "object",
|
|
116
|
+
properties: {
|
|
117
|
+
pid: { type: "number", description: "PID of the interactive process" },
|
|
118
|
+
input: { type: "string", description: "Input string to send to the process" },
|
|
119
|
+
timeout: {
|
|
120
|
+
type: "number",
|
|
121
|
+
description: "Milliseconds to wait for output after writing (max 30000)",
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
required: ["pid", "input"],
|
|
125
|
+
},
|
|
126
|
+
riskLevel: "moderate",
|
|
127
|
+
isReadOnly: false,
|
|
128
|
+
loadingTier: "always",
|
|
129
|
+
execute: index_js_1.executeWriteStdin,
|
|
130
|
+
};
|
|
131
|
+
const list_processes = {
|
|
132
|
+
name: "list_processes",
|
|
133
|
+
description: "List tracked shell processes started in this session with metadata and runtime status.",
|
|
134
|
+
category: "shell",
|
|
135
|
+
parameters: {
|
|
136
|
+
type: "object",
|
|
137
|
+
properties: {
|
|
138
|
+
includeExited: {
|
|
139
|
+
type: "boolean",
|
|
140
|
+
description: "Include recently exited processes from registry history (default: false).",
|
|
141
|
+
default: false,
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
required: [],
|
|
145
|
+
},
|
|
146
|
+
riskLevel: "safe",
|
|
147
|
+
isReadOnly: true,
|
|
148
|
+
loadingTier: "always",
|
|
149
|
+
execute: shell_js_1.executeListProcesses,
|
|
150
|
+
};
|
|
151
|
+
const wait_process = {
|
|
152
|
+
name: "wait_process",
|
|
153
|
+
description: "Wait for a tracked process to exit and return exit metadata. Fails on timeout.",
|
|
154
|
+
category: "shell",
|
|
155
|
+
parameters: {
|
|
156
|
+
type: "object",
|
|
157
|
+
properties: {
|
|
158
|
+
pid: { type: "number", description: "PID of the process to wait for" },
|
|
159
|
+
timeoutMs: {
|
|
160
|
+
type: "number",
|
|
161
|
+
description: "Maximum milliseconds to wait (max 300000, default 30000).",
|
|
162
|
+
},
|
|
163
|
+
timeout: {
|
|
164
|
+
type: "number",
|
|
165
|
+
description: "Deprecated alias for timeoutMs.",
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
required: ["pid"],
|
|
169
|
+
},
|
|
170
|
+
riskLevel: "safe",
|
|
171
|
+
isReadOnly: true,
|
|
172
|
+
loadingTier: "always",
|
|
173
|
+
execute: shell_js_1.executeWaitProcess,
|
|
174
|
+
};
|
|
175
|
+
/** Shell tool definitions (7) */
|
|
176
|
+
exports.SHELL_TOOL_DEFINITIONS = [
|
|
177
|
+
bash,
|
|
178
|
+
exec,
|
|
179
|
+
spawn,
|
|
180
|
+
kill,
|
|
181
|
+
write_stdin,
|
|
182
|
+
list_processes,
|
|
183
|
+
wait_process,
|
|
184
|
+
];
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SLACK_TOOL_DEFINITIONS = void 0;
|
|
4
|
+
const desktop_session_js_1 = require("../slack/desktop-session.js");
|
|
5
|
+
const check_slack_messages = {
|
|
6
|
+
name: "check_slack_messages",
|
|
7
|
+
description: "Read recent Slack messages from a channel or DM using the local Slack Desktop session on this machine.",
|
|
8
|
+
category: "messaging",
|
|
9
|
+
parameters: {
|
|
10
|
+
type: "object",
|
|
11
|
+
properties: {
|
|
12
|
+
teamId: {
|
|
13
|
+
type: "string",
|
|
14
|
+
description: "Optional Slack team id to target when the local Slack Desktop app is signed into multiple workspaces.",
|
|
15
|
+
},
|
|
16
|
+
channel: {
|
|
17
|
+
type: "string",
|
|
18
|
+
description: "Slack conversation id (C/G/D...) or channel name.",
|
|
19
|
+
},
|
|
20
|
+
limit: {
|
|
21
|
+
type: "number",
|
|
22
|
+
description: "Maximum number of messages to return (default 20, max 100).",
|
|
23
|
+
default: 20,
|
|
24
|
+
},
|
|
25
|
+
threadTs: {
|
|
26
|
+
type: "string",
|
|
27
|
+
description: "Optional thread timestamp. When provided, reads thread replies instead of the root channel history.",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
required: ["channel"],
|
|
31
|
+
},
|
|
32
|
+
riskLevel: "safe",
|
|
33
|
+
isReadOnly: true,
|
|
34
|
+
loadingTier: "always",
|
|
35
|
+
execute: async (input) => {
|
|
36
|
+
const typedInput = input;
|
|
37
|
+
const client = await (0, desktop_session_js_1.createSlackDesktopClient)({
|
|
38
|
+
teamId: typeof typedInput.teamId === "string" ? typedInput.teamId : undefined,
|
|
39
|
+
});
|
|
40
|
+
try {
|
|
41
|
+
const result = await client.listMessages({
|
|
42
|
+
channel: String(typedInput.channel ?? ""),
|
|
43
|
+
limit: typeof typedInput.limit === "number" ? typedInput.limit : 20,
|
|
44
|
+
threadTs: typeof typedInput.threadTs === "string" ? typedInput.threadTs : undefined,
|
|
45
|
+
});
|
|
46
|
+
return {
|
|
47
|
+
success: true,
|
|
48
|
+
message: `Fetched ${result.messages.length} Slack messages from ${result.channelId}.`,
|
|
49
|
+
data: result,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
return {
|
|
54
|
+
success: false,
|
|
55
|
+
message: error instanceof Error ? error.message : "Slack read failed.",
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
finally {
|
|
59
|
+
await client.close();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
const send_slack_message = {
|
|
64
|
+
name: "send_slack_message",
|
|
65
|
+
description: "Send a Slack message through the local Slack Desktop session on this machine. Requires confirmation because it posts externally.",
|
|
66
|
+
category: "messaging",
|
|
67
|
+
parameters: {
|
|
68
|
+
type: "object",
|
|
69
|
+
properties: {
|
|
70
|
+
teamId: {
|
|
71
|
+
type: "string",
|
|
72
|
+
description: "Optional Slack team id to target when the local Slack Desktop app is signed into multiple workspaces.",
|
|
73
|
+
},
|
|
74
|
+
channel: {
|
|
75
|
+
type: "string",
|
|
76
|
+
description: "Slack conversation id (C/G/D...) or channel name.",
|
|
77
|
+
},
|
|
78
|
+
text: {
|
|
79
|
+
type: "string",
|
|
80
|
+
description: "Message text to send.",
|
|
81
|
+
},
|
|
82
|
+
threadTs: {
|
|
83
|
+
type: "string",
|
|
84
|
+
description: "Optional thread timestamp to reply inside an existing thread.",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
required: ["channel", "text"],
|
|
88
|
+
},
|
|
89
|
+
riskLevel: "dangerous",
|
|
90
|
+
requiresConfirmation: true,
|
|
91
|
+
isReadOnly: false,
|
|
92
|
+
loadingTier: "always",
|
|
93
|
+
execute: async (input) => {
|
|
94
|
+
const typedInput = input;
|
|
95
|
+
const client = await (0, desktop_session_js_1.createSlackDesktopClient)({
|
|
96
|
+
teamId: typeof typedInput.teamId === "string" ? typedInput.teamId : undefined,
|
|
97
|
+
});
|
|
98
|
+
try {
|
|
99
|
+
const result = await client.sendMessage({
|
|
100
|
+
channel: String(typedInput.channel ?? ""),
|
|
101
|
+
text: String(typedInput.text ?? ""),
|
|
102
|
+
threadTs: typeof typedInput.threadTs === "string" ? typedInput.threadTs : undefined,
|
|
103
|
+
});
|
|
104
|
+
return {
|
|
105
|
+
success: true,
|
|
106
|
+
message: `Sent Slack message to ${result.channelId}.`,
|
|
107
|
+
data: result,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
return {
|
|
112
|
+
success: false,
|
|
113
|
+
message: error instanceof Error ? error.message : "Slack send failed.",
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
finally {
|
|
117
|
+
await client.close();
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
const react_slack_message = {
|
|
122
|
+
name: "react_slack_message",
|
|
123
|
+
description: "Add an emoji reaction to a Slack message using the local Slack Desktop session on this machine. Requires confirmation because it modifies external state.",
|
|
124
|
+
category: "messaging",
|
|
125
|
+
parameters: {
|
|
126
|
+
type: "object",
|
|
127
|
+
properties: {
|
|
128
|
+
teamId: {
|
|
129
|
+
type: "string",
|
|
130
|
+
description: "Optional Slack team id to target when the local Slack Desktop app is signed into multiple workspaces.",
|
|
131
|
+
},
|
|
132
|
+
channel: {
|
|
133
|
+
type: "string",
|
|
134
|
+
description: "Slack conversation id (C/G/D...) or channel name.",
|
|
135
|
+
},
|
|
136
|
+
timestamp: {
|
|
137
|
+
type: "string",
|
|
138
|
+
description: "Message timestamp to react to.",
|
|
139
|
+
},
|
|
140
|
+
name: {
|
|
141
|
+
type: "string",
|
|
142
|
+
description: "Emoji name without colons (e.g., thumbsup, eyes, white_check_mark).",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
required: ["channel", "timestamp", "name"],
|
|
146
|
+
},
|
|
147
|
+
riskLevel: "dangerous",
|
|
148
|
+
requiresConfirmation: true,
|
|
149
|
+
isReadOnly: false,
|
|
150
|
+
loadingTier: "always",
|
|
151
|
+
execute: async (input) => {
|
|
152
|
+
const typedInput = input;
|
|
153
|
+
const client = await (0, desktop_session_js_1.createSlackDesktopClient)({
|
|
154
|
+
teamId: typeof typedInput.teamId === "string" ? typedInput.teamId : undefined,
|
|
155
|
+
});
|
|
156
|
+
try {
|
|
157
|
+
const result = await client.addReaction({
|
|
158
|
+
channel: String(typedInput.channel ?? ""),
|
|
159
|
+
timestamp: String(typedInput.timestamp ?? ""),
|
|
160
|
+
name: String(typedInput.name ?? ""),
|
|
161
|
+
});
|
|
162
|
+
return {
|
|
163
|
+
success: true,
|
|
164
|
+
message: `Added :${typedInput.name}: reaction in ${result.channelId}.`,
|
|
165
|
+
data: result,
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
catch (error) {
|
|
169
|
+
return {
|
|
170
|
+
success: false,
|
|
171
|
+
message: error instanceof Error ? error.message : "Slack reaction failed.",
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
finally {
|
|
175
|
+
await client.close();
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
exports.SLACK_TOOL_DEFINITIONS = [
|
|
180
|
+
check_slack_messages,
|
|
181
|
+
send_slack_message,
|
|
182
|
+
react_slack_message,
|
|
183
|
+
];
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Web tool definitions
|
|
4
|
+
*
|
|
5
|
+
* Tools: web_search, web_fetch, browse (3 tools)
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.WEB_TOOL_DEFINITIONS = void 0;
|
|
9
|
+
const index_js_1 = require("../executors/index.js");
|
|
10
|
+
// web_search uses SearchProviderRouter with automatic provider selection
|
|
11
|
+
const web_search = {
|
|
12
|
+
name: "web_search",
|
|
13
|
+
description: "Search the web for information. Auto-selects the best available search provider (Brave, Firecrawl, Exa, Tavily, Jina, or DuckDuckGo). Works without any API key via Jina/DuckDuckGo fallback. Set ARIA_SEARCH_PROVIDER to override.",
|
|
14
|
+
category: "web",
|
|
15
|
+
parameters: {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
query: { type: "string", description: "Search query" },
|
|
19
|
+
limit: {
|
|
20
|
+
type: "number",
|
|
21
|
+
description: "Maximum number of results",
|
|
22
|
+
default: 10,
|
|
23
|
+
},
|
|
24
|
+
domains: {
|
|
25
|
+
type: "array",
|
|
26
|
+
items: { type: "string" },
|
|
27
|
+
description: "Only include results from these domains",
|
|
28
|
+
},
|
|
29
|
+
excludeDomains: {
|
|
30
|
+
type: "array",
|
|
31
|
+
items: { type: "string" },
|
|
32
|
+
description: "Exclude results from these domains",
|
|
33
|
+
},
|
|
34
|
+
topic: {
|
|
35
|
+
type: "string",
|
|
36
|
+
enum: ["general", "news"],
|
|
37
|
+
description: "Search topic classification",
|
|
38
|
+
},
|
|
39
|
+
timeRange: {
|
|
40
|
+
type: "string",
|
|
41
|
+
enum: ["day", "week", "month", "year"],
|
|
42
|
+
description: "Restrict results to a recent time window",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
required: ["query"],
|
|
46
|
+
},
|
|
47
|
+
riskLevel: "moderate",
|
|
48
|
+
isReadOnly: true,
|
|
49
|
+
loadingTier: "always",
|
|
50
|
+
execute: index_js_1.executeWebSearch,
|
|
51
|
+
};
|
|
52
|
+
const web_fetch = {
|
|
53
|
+
name: "web_fetch",
|
|
54
|
+
description: "Fetch the content of a web page. Returns the page content as text or structured data.",
|
|
55
|
+
category: "web",
|
|
56
|
+
parameters: {
|
|
57
|
+
type: "object",
|
|
58
|
+
properties: {
|
|
59
|
+
url: { type: "string", description: "URL to fetch" },
|
|
60
|
+
format: {
|
|
61
|
+
type: "string",
|
|
62
|
+
enum: ["text", "html", "json"],
|
|
63
|
+
description: "Output format",
|
|
64
|
+
default: "text",
|
|
65
|
+
},
|
|
66
|
+
headers: {
|
|
67
|
+
type: "object",
|
|
68
|
+
description: "Custom request headers",
|
|
69
|
+
additionalProperties: { type: "string" },
|
|
70
|
+
},
|
|
71
|
+
timeoutMs: {
|
|
72
|
+
type: "number",
|
|
73
|
+
description: "Request timeout in milliseconds",
|
|
74
|
+
default: 30_000,
|
|
75
|
+
},
|
|
76
|
+
maxSizeBytes: {
|
|
77
|
+
type: "number",
|
|
78
|
+
description: "Maximum response body size in bytes",
|
|
79
|
+
default: 1 * 1024 * 1024,
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
required: ["url"],
|
|
83
|
+
},
|
|
84
|
+
riskLevel: "safe",
|
|
85
|
+
isReadOnly: true,
|
|
86
|
+
loadingTier: "always",
|
|
87
|
+
execute: index_js_1.executeWebFetch,
|
|
88
|
+
};
|
|
89
|
+
// browse uses Readability + Turndown for structured markdown extraction
|
|
90
|
+
const browse = {
|
|
91
|
+
name: "browse",
|
|
92
|
+
description: "Browse a web page and extract structured markdown content using Readability + Turndown. Returns the page title and markdown (up to 50K chars). Handles GitHub URL normalization and retry with backoff.",
|
|
93
|
+
category: "web",
|
|
94
|
+
parameters: {
|
|
95
|
+
type: "object",
|
|
96
|
+
properties: {
|
|
97
|
+
url: { type: "string", description: "URL to browse" },
|
|
98
|
+
timeoutMs: {
|
|
99
|
+
type: "number",
|
|
100
|
+
description: "Request timeout in milliseconds",
|
|
101
|
+
default: 30_000,
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
required: ["url"],
|
|
105
|
+
},
|
|
106
|
+
riskLevel: "safe",
|
|
107
|
+
isReadOnly: true,
|
|
108
|
+
loadingTier: "always",
|
|
109
|
+
execute: index_js_1.executeBrowse,
|
|
110
|
+
};
|
|
111
|
+
/** Web tool definitions (3) */
|
|
112
|
+
exports.WEB_TOOL_DEFINITIONS = [web_search, web_fetch, browse];
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @aria/tools - Apply Patch executor
|
|
3
|
+
*
|
|
4
|
+
* Parses and applies unified diff patches with:
|
|
5
|
+
* - Path traversal protection (SECURITY-CRITICAL)
|
|
6
|
+
* - Atomic writes (all-or-nothing application)
|
|
7
|
+
* - Fuzzy hunk matching (offset tolerance)
|
|
8
|
+
* - CRLF normalization
|
|
9
|
+
*/
|
|
10
|
+
import type { ToolContext, ToolResult } from "../types.js";
|
|
11
|
+
export interface ApplyPatchInput {
|
|
12
|
+
/** Unified diff format patch content */
|
|
13
|
+
patch: string;
|
|
14
|
+
/** Working directory for relative paths in the patch */
|
|
15
|
+
cwd?: string;
|
|
16
|
+
}
|
|
17
|
+
/** A single hunk within a file diff */
|
|
18
|
+
interface Hunk {
|
|
19
|
+
/** Original file start line (1-based) */
|
|
20
|
+
oldStart: number;
|
|
21
|
+
/** Number of lines in original */
|
|
22
|
+
oldCount: number;
|
|
23
|
+
/** Modified file start line (1-based) */
|
|
24
|
+
newStart: number;
|
|
25
|
+
/** Number of lines in modified */
|
|
26
|
+
newCount: number;
|
|
27
|
+
/** Lines in the hunk: each prefixed with ' ', '+', or '-' */
|
|
28
|
+
lines: string[];
|
|
29
|
+
}
|
|
30
|
+
/** A diff for a single file */
|
|
31
|
+
interface FileDiff {
|
|
32
|
+
/** Original file path (null for new files) */
|
|
33
|
+
oldPath: string | null;
|
|
34
|
+
/** Modified file path (null for deleted files) */
|
|
35
|
+
newPath: string | null;
|
|
36
|
+
/** Hunks to apply */
|
|
37
|
+
hunks: Hunk[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Parse a unified diff string into an array of file diffs.
|
|
41
|
+
* Handles standard unified diff and git-style diffs.
|
|
42
|
+
*/
|
|
43
|
+
export declare function parseUnifiedDiff(patch: string): FileDiff[];
|
|
44
|
+
/**
|
|
45
|
+
* Execute the apply_patch tool.
|
|
46
|
+
*
|
|
47
|
+
* Parses a unified diff, validates all paths for security,
|
|
48
|
+
* and applies changes atomically.
|
|
49
|
+
*/
|
|
50
|
+
export declare function executeApplyPatch(input: ApplyPatchInput, ctx: ToolContext): Promise<ToolResult>;
|
|
51
|
+
export {};
|