@aria-cli/tools 1.0.18 → 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/{dns-pinning-vc0r0vpx.js → dns-pinning-7szqhtmq.js} +1 -1
- 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-x52t2mbj.js → index-45qvfjbf.js} +2 -2
- package/dist/{index-8xap0se3.js → index-b3sdwzh5.js} +1 -1
- package/dist/index-tvryzx00.js +2 -0
- package/dist/index.js +71 -372
- package/dist/local-control-http-auth.js +3 -0
- package/dist/{lsp-client-msnj763y.js → lsp-client-3qxptwyw.js} +1 -1
- 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/session-history-gk75e3ta.js +1 -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-a2fr1b3x.js +0 -2
- 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-ff59hy75.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/session-history-6gn52xhp.js +0 -1
- 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
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Filesystem tool definitions
|
|
4
|
+
*
|
|
5
|
+
* Tools: read_file, write_file, edit_file, glob, ls, apply_patch (6 tools)
|
|
6
|
+
* Note: grep replaced by native indexed search in SEARCH_TOOL_DEFINITIONS
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.FILESYSTEM_TOOL_DEFINITIONS = void 0;
|
|
10
|
+
const index_js_1 = require("../executors/index.js");
|
|
11
|
+
const read_file = {
|
|
12
|
+
name: "read_file",
|
|
13
|
+
description: "Read the contents of a file from the filesystem.",
|
|
14
|
+
category: "filesystem",
|
|
15
|
+
parameters: {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
path: { type: "string", description: "Path to the file to read" },
|
|
19
|
+
encoding: {
|
|
20
|
+
type: "string",
|
|
21
|
+
enum: [
|
|
22
|
+
"utf-8",
|
|
23
|
+
"utf8",
|
|
24
|
+
"latin1",
|
|
25
|
+
"ascii",
|
|
26
|
+
"base64",
|
|
27
|
+
"base64url",
|
|
28
|
+
"utf16le",
|
|
29
|
+
"ucs2",
|
|
30
|
+
"hex",
|
|
31
|
+
"binary",
|
|
32
|
+
],
|
|
33
|
+
description: "File encoding",
|
|
34
|
+
default: "utf-8",
|
|
35
|
+
},
|
|
36
|
+
offset: { type: "number", description: "Starting line offset (0-based)" },
|
|
37
|
+
limit: { type: "number", description: "Maximum number of lines to read" },
|
|
38
|
+
},
|
|
39
|
+
required: ["path"],
|
|
40
|
+
},
|
|
41
|
+
riskLevel: "safe",
|
|
42
|
+
isReadOnly: true,
|
|
43
|
+
loadingTier: "always",
|
|
44
|
+
execute: index_js_1.executeReadFile,
|
|
45
|
+
};
|
|
46
|
+
const write_file = {
|
|
47
|
+
name: "write_file",
|
|
48
|
+
description: "Write content to a file on the filesystem. Creates the file if it does not exist.",
|
|
49
|
+
category: "filesystem",
|
|
50
|
+
parameters: {
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {
|
|
53
|
+
path: { type: "string", description: "Path to the file to write" },
|
|
54
|
+
content: { type: "string", description: "Content to write" },
|
|
55
|
+
encoding: {
|
|
56
|
+
type: "string",
|
|
57
|
+
enum: [
|
|
58
|
+
"utf-8",
|
|
59
|
+
"utf8",
|
|
60
|
+
"latin1",
|
|
61
|
+
"ascii",
|
|
62
|
+
"base64",
|
|
63
|
+
"base64url",
|
|
64
|
+
"utf16le",
|
|
65
|
+
"ucs2",
|
|
66
|
+
"hex",
|
|
67
|
+
"binary",
|
|
68
|
+
],
|
|
69
|
+
description: "File encoding",
|
|
70
|
+
default: "utf-8",
|
|
71
|
+
},
|
|
72
|
+
append: {
|
|
73
|
+
type: "boolean",
|
|
74
|
+
description: "Append to existing file",
|
|
75
|
+
default: false,
|
|
76
|
+
},
|
|
77
|
+
expectedHash: {
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "Optional SHA-256 hash of the current file content. When provided, write fails if the file has changed.",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
required: ["path", "content"],
|
|
83
|
+
},
|
|
84
|
+
riskLevel: "dangerous",
|
|
85
|
+
isReadOnly: false,
|
|
86
|
+
loadingTier: "always",
|
|
87
|
+
execute: index_js_1.executeWriteFile,
|
|
88
|
+
};
|
|
89
|
+
const edit_file = {
|
|
90
|
+
name: "edit_file",
|
|
91
|
+
description: "Edit a file by replacing text. Uses exact match first, then resilient matching strategies for whitespace and indentation drift.",
|
|
92
|
+
category: "filesystem",
|
|
93
|
+
parameters: {
|
|
94
|
+
type: "object",
|
|
95
|
+
properties: {
|
|
96
|
+
path: { type: "string", description: "Path to the file to edit" },
|
|
97
|
+
oldText: { type: "string", description: "Text to find and replace" },
|
|
98
|
+
newText: { type: "string", description: "Replacement text" },
|
|
99
|
+
replaceAll: {
|
|
100
|
+
type: "boolean",
|
|
101
|
+
description: "Replace all occurrences instead of just the first",
|
|
102
|
+
default: false,
|
|
103
|
+
},
|
|
104
|
+
expectedReplacements: {
|
|
105
|
+
type: "number",
|
|
106
|
+
description: "Optional safety check. If provided, the tool will fail unless exactly this many replacements are applied.",
|
|
107
|
+
},
|
|
108
|
+
expectedHash: {
|
|
109
|
+
type: "string",
|
|
110
|
+
description: "Optional SHA-256 hash of the current file content. Edit fails if the file changed since it was read.",
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
required: ["path", "oldText", "newText"],
|
|
114
|
+
},
|
|
115
|
+
riskLevel: "dangerous",
|
|
116
|
+
isReadOnly: false,
|
|
117
|
+
loadingTier: "always",
|
|
118
|
+
execute: index_js_1.executeEditFile,
|
|
119
|
+
};
|
|
120
|
+
const glob = {
|
|
121
|
+
name: "glob",
|
|
122
|
+
description: "Find files matching a glob pattern.",
|
|
123
|
+
category: "filesystem",
|
|
124
|
+
parameters: {
|
|
125
|
+
type: "object",
|
|
126
|
+
properties: {
|
|
127
|
+
pattern: {
|
|
128
|
+
type: "string",
|
|
129
|
+
description: 'Glob pattern to match (e.g., "**/*.ts")',
|
|
130
|
+
},
|
|
131
|
+
cwd: { type: "string", description: "Working directory for the pattern" },
|
|
132
|
+
ignore: {
|
|
133
|
+
type: "array",
|
|
134
|
+
items: { type: "string" },
|
|
135
|
+
description: "Patterns to ignore",
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
required: ["pattern"],
|
|
139
|
+
},
|
|
140
|
+
riskLevel: "safe",
|
|
141
|
+
isReadOnly: true,
|
|
142
|
+
loadingTier: "always",
|
|
143
|
+
execute: index_js_1.executeGlob,
|
|
144
|
+
};
|
|
145
|
+
const ls = {
|
|
146
|
+
name: "ls",
|
|
147
|
+
description: "List files and directories with a structured response including entries, depth/limit/offset/ignore, and truncated metadata.",
|
|
148
|
+
category: "filesystem",
|
|
149
|
+
parameters: {
|
|
150
|
+
type: "object",
|
|
151
|
+
properties: {
|
|
152
|
+
path: { type: "string", description: "Path to list", default: "." },
|
|
153
|
+
all: {
|
|
154
|
+
type: "boolean",
|
|
155
|
+
description: "Include hidden files",
|
|
156
|
+
default: false,
|
|
157
|
+
},
|
|
158
|
+
long: {
|
|
159
|
+
type: "boolean",
|
|
160
|
+
description: "Include detailed metadata when available (size, mode, mtimeMs, modifiedAt)",
|
|
161
|
+
default: false,
|
|
162
|
+
},
|
|
163
|
+
depth: {
|
|
164
|
+
type: "number",
|
|
165
|
+
description: "Recursion depth where 1 lists immediate children",
|
|
166
|
+
},
|
|
167
|
+
limit: {
|
|
168
|
+
type: "number",
|
|
169
|
+
description: "Maximum number of entries to return",
|
|
170
|
+
},
|
|
171
|
+
offset: {
|
|
172
|
+
type: "number",
|
|
173
|
+
description: "Number of entries to skip before returning results",
|
|
174
|
+
},
|
|
175
|
+
ignore: {
|
|
176
|
+
type: "array",
|
|
177
|
+
items: { type: "string" },
|
|
178
|
+
description: "Glob patterns to ignore while listing",
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
required: [],
|
|
182
|
+
},
|
|
183
|
+
riskLevel: "safe",
|
|
184
|
+
isReadOnly: true,
|
|
185
|
+
loadingTier: "always",
|
|
186
|
+
execute: index_js_1.executeLs,
|
|
187
|
+
};
|
|
188
|
+
// apply_patch: forked from OpenClaw (MIT) — includes fuzzy matching for robust patching.
|
|
189
|
+
// Replaces the simple inline version with the full implementation from ./patch/.
|
|
190
|
+
const index_js_2 = require("./patch/index.js");
|
|
191
|
+
/** Filesystem tool definitions (6) — grep replaced by native indexed search in SEARCH_TOOL_DEFINITIONS */
|
|
192
|
+
exports.FILESYSTEM_TOOL_DEFINITIONS = [
|
|
193
|
+
read_file,
|
|
194
|
+
write_file,
|
|
195
|
+
edit_file,
|
|
196
|
+
glob,
|
|
197
|
+
ls,
|
|
198
|
+
index_js_2.applyPatchTool,
|
|
199
|
+
];
|
|
200
|
+
//# sourceMappingURL=filesystem.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FRG_TOOL_DEFINITIONS = exports.frgTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const tool_factory_js_1 = require("../tool-factory.js");
|
|
6
|
+
const frg_js_1 = require("../executors/frg.js");
|
|
7
|
+
exports.frgTool = (0, tool_factory_js_1.tool)({
|
|
8
|
+
name: "frg",
|
|
9
|
+
description: "Native fastripgrep tool via napi-rs. Wraps the original frg commands in one tool: init, index, search, update, status, replace, man, completions, watch, and upgrade-safe metadata.",
|
|
10
|
+
category: "code",
|
|
11
|
+
riskLevel: "safe",
|
|
12
|
+
isReadOnly: false,
|
|
13
|
+
loadingTier: "always",
|
|
14
|
+
parameters: zod_1.z.object({
|
|
15
|
+
command: zod_1.z
|
|
16
|
+
.enum([
|
|
17
|
+
"init",
|
|
18
|
+
"index",
|
|
19
|
+
"search",
|
|
20
|
+
"update",
|
|
21
|
+
"status",
|
|
22
|
+
"replace",
|
|
23
|
+
"man",
|
|
24
|
+
"completions",
|
|
25
|
+
"watch",
|
|
26
|
+
"upgrade",
|
|
27
|
+
])
|
|
28
|
+
.describe("Original frg command to run"),
|
|
29
|
+
pattern: zod_1.z.string().optional().describe("Regex pattern for search/replace"),
|
|
30
|
+
replacement: zod_1.z.string().optional().describe("Replacement string for replace"),
|
|
31
|
+
path: zod_1.z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("Repository or directory to operate on (defaults to current working directory)"),
|
|
35
|
+
noIndex: zod_1.z.boolean().optional().describe("Skip the index and do a brute-force scan for search"),
|
|
36
|
+
literal: zod_1.z.boolean().optional().describe("Treat pattern as a fixed string"),
|
|
37
|
+
caseInsensitive: zod_1.z.boolean().optional().describe("Enable case-insensitive matching"),
|
|
38
|
+
smartCase: zod_1.z.boolean().optional().describe("Use smart-case matching"),
|
|
39
|
+
filesOnly: zod_1.z.boolean().optional().describe("Return only file paths with matches"),
|
|
40
|
+
count: zod_1.z.boolean().optional().describe("Return match counts per file"),
|
|
41
|
+
maxCount: zod_1.z.number().optional().describe("Maximum matches per file"),
|
|
42
|
+
quiet: zod_1.z.boolean().optional().describe("Only report whether a match exists"),
|
|
43
|
+
context: zod_1.z.number().optional().describe("Context lines for search matches"),
|
|
44
|
+
json: zod_1.z.boolean().optional().describe("Compatibility flag matching upstream JSON mode"),
|
|
45
|
+
glob: zod_1.z.string().optional().describe("Glob filter for candidate files"),
|
|
46
|
+
fileType: zod_1.z.string().optional().describe("File extension/type filter"),
|
|
47
|
+
follow: zod_1.z.boolean().optional().describe("Follow symbolic links"),
|
|
48
|
+
extraPatterns: zod_1.z
|
|
49
|
+
.array(zod_1.z.string())
|
|
50
|
+
.optional()
|
|
51
|
+
.describe("Additional regex patterns combined with OR"),
|
|
52
|
+
maxFilesize: zod_1.z
|
|
53
|
+
.number()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe("Maximum file size in bytes while indexing/updating/init"),
|
|
56
|
+
force: zod_1.z.boolean().optional().describe("Compatibility flag for forced rebuilds"),
|
|
57
|
+
write: zod_1.z.boolean().optional().describe("Actually apply replace changes instead of previewing"),
|
|
58
|
+
hook: zod_1.z.boolean().optional().describe("Install a post-commit git hook when using init"),
|
|
59
|
+
shell: zod_1.z
|
|
60
|
+
.enum(["bash", "elvish", "fish", "powershell", "zsh"])
|
|
61
|
+
.optional()
|
|
62
|
+
.describe("Shell target when using completions"),
|
|
63
|
+
}),
|
|
64
|
+
execute: frg_js_1.executeFrg,
|
|
65
|
+
});
|
|
66
|
+
exports.FRG_TOOL_DEFINITIONS = [exports.frgTool];
|
|
67
|
+
//# sourceMappingURL=frg.js.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Tool definitions exports
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.SEARCH_TOOL_DEFINITIONS = exports.CODE_INTELLIGENCE_TOOL_DEFINITIONS = exports.FRG_TOOL_DEFINITIONS = exports.SESSION_HISTORY_TOOL_DEFINITIONS = exports.META_TOOL_DEFINITIONS = exports.NETWORK_TOOL_DEFINITIONS = exports.QUIP_TOOL_DEFINITIONS = exports.SLACK_TOOL_DEFINITIONS = exports.MESSAGING_TOOL_DEFINITIONS = exports.DELEGATION_TOOL_DEFINITIONS = exports.ARION_TOOL_DEFINITIONS = exports.SHELL_TOOL_DEFINITIONS = exports.FILESYSTEM_TOOL_DEFINITIONS = exports.WEB_TOOL_DEFINITIONS = exports.MEMORY_TOOL_DEFINITIONS = exports.getCoreToolsByRiskLevel = exports.getCoreToolsByCategory = exports.getCoreTool = exports.getCoreTools = exports.CORE_TOOL_DEFINITIONS = void 0;
|
|
7
|
+
var core_js_1 = require("./core.js");
|
|
8
|
+
Object.defineProperty(exports, "CORE_TOOL_DEFINITIONS", { enumerable: true, get: function () { return core_js_1.CORE_TOOL_DEFINITIONS; } });
|
|
9
|
+
Object.defineProperty(exports, "getCoreTools", { enumerable: true, get: function () { return core_js_1.getCoreTools; } });
|
|
10
|
+
Object.defineProperty(exports, "getCoreTool", { enumerable: true, get: function () { return core_js_1.getCoreTool; } });
|
|
11
|
+
Object.defineProperty(exports, "getCoreToolsByCategory", { enumerable: true, get: function () { return core_js_1.getCoreToolsByCategory; } });
|
|
12
|
+
Object.defineProperty(exports, "getCoreToolsByRiskLevel", { enumerable: true, get: function () { return core_js_1.getCoreToolsByRiskLevel; } });
|
|
13
|
+
// Category-specific definition arrays
|
|
14
|
+
var memory_js_1 = require("./memory.js");
|
|
15
|
+
Object.defineProperty(exports, "MEMORY_TOOL_DEFINITIONS", { enumerable: true, get: function () { return memory_js_1.MEMORY_TOOL_DEFINITIONS; } });
|
|
16
|
+
var web_js_1 = require("./web.js");
|
|
17
|
+
Object.defineProperty(exports, "WEB_TOOL_DEFINITIONS", { enumerable: true, get: function () { return web_js_1.WEB_TOOL_DEFINITIONS; } });
|
|
18
|
+
var filesystem_js_1 = require("./filesystem.js");
|
|
19
|
+
Object.defineProperty(exports, "FILESYSTEM_TOOL_DEFINITIONS", { enumerable: true, get: function () { return filesystem_js_1.FILESYSTEM_TOOL_DEFINITIONS; } });
|
|
20
|
+
var shell_js_1 = require("./shell.js");
|
|
21
|
+
Object.defineProperty(exports, "SHELL_TOOL_DEFINITIONS", { enumerable: true, get: function () { return shell_js_1.SHELL_TOOL_DEFINITIONS; } });
|
|
22
|
+
var arion_js_1 = require("./arion.js");
|
|
23
|
+
Object.defineProperty(exports, "ARION_TOOL_DEFINITIONS", { enumerable: true, get: function () { return arion_js_1.ARION_TOOL_DEFINITIONS; } });
|
|
24
|
+
var delegation_js_1 = require("./delegation.js");
|
|
25
|
+
Object.defineProperty(exports, "DELEGATION_TOOL_DEFINITIONS", { enumerable: true, get: function () { return delegation_js_1.DELEGATION_TOOL_DEFINITIONS; } });
|
|
26
|
+
var messaging_js_1 = require("./messaging.js");
|
|
27
|
+
Object.defineProperty(exports, "MESSAGING_TOOL_DEFINITIONS", { enumerable: true, get: function () { return messaging_js_1.MESSAGING_TOOL_DEFINITIONS; } });
|
|
28
|
+
var slack_js_1 = require("./slack.js");
|
|
29
|
+
Object.defineProperty(exports, "SLACK_TOOL_DEFINITIONS", { enumerable: true, get: function () { return slack_js_1.SLACK_TOOL_DEFINITIONS; } });
|
|
30
|
+
var quip_js_1 = require("./quip.js");
|
|
31
|
+
Object.defineProperty(exports, "QUIP_TOOL_DEFINITIONS", { enumerable: true, get: function () { return quip_js_1.QUIP_TOOL_DEFINITIONS; } });
|
|
32
|
+
var network_js_1 = require("./network.js");
|
|
33
|
+
Object.defineProperty(exports, "NETWORK_TOOL_DEFINITIONS", { enumerable: true, get: function () { return network_js_1.NETWORK_TOOL_DEFINITIONS; } });
|
|
34
|
+
var meta_js_1 = require("./meta.js");
|
|
35
|
+
Object.defineProperty(exports, "META_TOOL_DEFINITIONS", { enumerable: true, get: function () { return meta_js_1.META_TOOL_DEFINITIONS; } });
|
|
36
|
+
var session_history_js_1 = require("./session-history.js");
|
|
37
|
+
Object.defineProperty(exports, "SESSION_HISTORY_TOOL_DEFINITIONS", { enumerable: true, get: function () { return session_history_js_1.SESSION_HISTORY_TOOL_DEFINITIONS; } });
|
|
38
|
+
var frg_js_1 = require("./frg.js");
|
|
39
|
+
Object.defineProperty(exports, "FRG_TOOL_DEFINITIONS", { enumerable: true, get: function () { return frg_js_1.FRG_TOOL_DEFINITIONS; } });
|
|
40
|
+
var code_intelligence_js_1 = require("./code-intelligence.js");
|
|
41
|
+
Object.defineProperty(exports, "CODE_INTELLIGENCE_TOOL_DEFINITIONS", { enumerable: true, get: function () { return code_intelligence_js_1.CODE_INTELLIGENCE_TOOL_DEFINITIONS; } });
|
|
42
|
+
var search_js_1 = require("./search.js");
|
|
43
|
+
Object.defineProperty(exports, "SEARCH_TOOL_DEFINITIONS", { enumerable: true, get: function () { return search_js_1.SEARCH_TOOL_DEFINITIONS; } });
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Memory tool definitions
|
|
4
|
+
*
|
|
5
|
+
* Tools: remember, recall, forget, recall_knowledge, reflect (5 tools)
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.MEMORY_TOOL_DEFINITIONS = void 0;
|
|
9
|
+
const index_js_1 = require("../executors/index.js");
|
|
10
|
+
const remember = {
|
|
11
|
+
name: "remember",
|
|
12
|
+
description: "Store information in memory for later recall. Use this to save important facts, decisions, or context. (Deprecated — use learn instead)",
|
|
13
|
+
category: "memory",
|
|
14
|
+
parameters: {
|
|
15
|
+
type: "object",
|
|
16
|
+
properties: {
|
|
17
|
+
content: { type: "string", description: "The content to remember" },
|
|
18
|
+
importance: { type: "number", description: "Importance score from 0-1" },
|
|
19
|
+
},
|
|
20
|
+
required: ["content"],
|
|
21
|
+
},
|
|
22
|
+
riskLevel: "moderate",
|
|
23
|
+
isReadOnly: false,
|
|
24
|
+
loadingTier: "always",
|
|
25
|
+
execute: (input, ctx) => {
|
|
26
|
+
// Delegate to learn with content-only input
|
|
27
|
+
return (0, index_js_1.executeLearnLegacy)({ content: String(input.content ?? "") }, ctx);
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const recall = {
|
|
31
|
+
name: "recall",
|
|
32
|
+
description: "Retrieve information from memory based on a query. Supports temporal queries to see what was known at a specific date.",
|
|
33
|
+
category: "memory",
|
|
34
|
+
parameters: {
|
|
35
|
+
type: "object",
|
|
36
|
+
properties: {
|
|
37
|
+
query: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "The query to search for in memory",
|
|
40
|
+
},
|
|
41
|
+
limit: {
|
|
42
|
+
type: "number",
|
|
43
|
+
description: "Maximum number of results to return",
|
|
44
|
+
default: 10,
|
|
45
|
+
},
|
|
46
|
+
date: {
|
|
47
|
+
type: "string",
|
|
48
|
+
description: "ISO 8601 date string for temporal query — returns memories valid at this date. Example: '2026-01-15'",
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
required: ["query"],
|
|
52
|
+
},
|
|
53
|
+
riskLevel: "safe",
|
|
54
|
+
isReadOnly: true,
|
|
55
|
+
loadingTier: "always",
|
|
56
|
+
execute: index_js_1.executeRecall,
|
|
57
|
+
};
|
|
58
|
+
const forget = {
|
|
59
|
+
name: "forget",
|
|
60
|
+
description: "Remove information from memory. Use sparingly to clean up outdated or incorrect information.",
|
|
61
|
+
category: "memory",
|
|
62
|
+
parameters: {
|
|
63
|
+
type: "object",
|
|
64
|
+
properties: {
|
|
65
|
+
id: { type: "string", description: "ID of the memory to forget" },
|
|
66
|
+
},
|
|
67
|
+
required: ["id"],
|
|
68
|
+
},
|
|
69
|
+
riskLevel: "dangerous",
|
|
70
|
+
requiresConfirmation: true,
|
|
71
|
+
isReadOnly: false,
|
|
72
|
+
loadingTier: "always",
|
|
73
|
+
execute: index_js_1.executeForget,
|
|
74
|
+
};
|
|
75
|
+
const recallKnowledge = {
|
|
76
|
+
name: "recall_knowledge",
|
|
77
|
+
description: "Search for tools, skills, or both in memory, local skill files, and the web. (Deprecated — use search instead)",
|
|
78
|
+
category: "memory",
|
|
79
|
+
parameters: {
|
|
80
|
+
type: "object",
|
|
81
|
+
properties: {
|
|
82
|
+
topic: { type: "string", description: "Topic to search knowledge for" },
|
|
83
|
+
limit: {
|
|
84
|
+
type: "number",
|
|
85
|
+
description: "Maximum number of knowledge items to retrieve",
|
|
86
|
+
default: 10,
|
|
87
|
+
},
|
|
88
|
+
kind: {
|
|
89
|
+
type: "string",
|
|
90
|
+
enum: ["tool", "skill"],
|
|
91
|
+
description: "Kind of knowledge to filter by",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
required: ["topic"],
|
|
95
|
+
},
|
|
96
|
+
riskLevel: "safe",
|
|
97
|
+
isReadOnly: true,
|
|
98
|
+
loadingTier: "always",
|
|
99
|
+
execute: (input, ctx) => {
|
|
100
|
+
// Delegate to search with query mapped from topic
|
|
101
|
+
return (0, index_js_1.executeSearchKnowledge)({ query: String(input.topic ?? ""), limit: input.limit }, ctx);
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
const reflect = {
|
|
105
|
+
name: "reflect",
|
|
106
|
+
description: "Reflect on the current conversation to identify genuine learnings about yourself — " +
|
|
107
|
+
"limitations, non-obvious strategies, user preferences, or blind spots. " +
|
|
108
|
+
"Use sparingly: most conversations teach nothing new.",
|
|
109
|
+
category: "memory",
|
|
110
|
+
parameters: {
|
|
111
|
+
type: "object",
|
|
112
|
+
properties: {
|
|
113
|
+
summary: {
|
|
114
|
+
type: "string",
|
|
115
|
+
description: "Summary of what happened in the conversation — what you did, what worked, what didn't",
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
required: ["summary"],
|
|
119
|
+
},
|
|
120
|
+
riskLevel: "moderate",
|
|
121
|
+
isReadOnly: false,
|
|
122
|
+
loadingTier: "always",
|
|
123
|
+
execute: index_js_1.executeReflect,
|
|
124
|
+
};
|
|
125
|
+
/** Memory tool definitions (5) */
|
|
126
|
+
exports.MEMORY_TOOL_DEFINITIONS = [remember, recall, forget, recallKnowledge, reflect];
|
|
127
|
+
//# sourceMappingURL=memory.js.map
|