@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.
Files changed (466) hide show
  1. package/dist/.aria-build-stamp.json +1 -1
  2. package/dist/ask-user-interaction.js +23 -0
  3. package/dist/cache/web-cache.js +67 -0
  4. package/dist/definitions/arion.js +105 -0
  5. package/dist/definitions/browser/browser.js +419 -0
  6. package/dist/definitions/browser/index.js +5 -0
  7. package/dist/definitions/browser/pw-downloads.js +115 -0
  8. package/dist/definitions/browser/pw-interactions.js +200 -0
  9. package/dist/definitions/browser/pw-responses.js +77 -0
  10. package/dist/definitions/browser/pw-session.js +311 -0
  11. package/dist/definitions/browser/pw-shared.js +67 -0
  12. package/dist/definitions/browser/pw-snapshot.js +302 -0
  13. package/dist/definitions/browser/pw-state.js +63 -0
  14. package/dist/definitions/browser/types.js +5 -0
  15. package/dist/definitions/code-intelligence.js +471 -0
  16. package/dist/definitions/core.js +110 -0
  17. package/dist/definitions/delegation.js +513 -0
  18. package/dist/definitions/deploy.js +66 -0
  19. package/dist/definitions/filesystem.js +197 -0
  20. package/dist/definitions/frg.js +64 -0
  21. package/{dist-cjs/definitions/index.d.ts → dist/definitions/index.js} +2 -0
  22. package/dist/definitions/memory.js +124 -0
  23. package/dist/definitions/messaging.js +626 -0
  24. package/dist/definitions/meta.js +350 -0
  25. package/dist/definitions/network.js +160 -0
  26. package/dist/definitions/outlook.js +278 -0
  27. package/dist/definitions/patch/apply-patch.js +185 -0
  28. package/dist/definitions/patch/fuzzy-match.js +167 -0
  29. package/{dist-cjs/definitions/patch/index.d.ts → dist/definitions/patch/index.js} +1 -0
  30. package/dist/definitions/patch/patch-parser.js +208 -0
  31. package/dist/definitions/patch/sandbox-paths.js +106 -0
  32. package/dist/definitions/process/index.js +5 -0
  33. package/dist/definitions/process/process-registry.js +214 -0
  34. package/dist/definitions/process/process.js +387 -0
  35. package/dist/definitions/process/pty-keys.js +255 -0
  36. package/dist/definitions/process/session-slug.js +143 -0
  37. package/dist/definitions/quip.js +196 -0
  38. package/dist/definitions/search.js +61 -0
  39. package/dist/definitions/session-history.js +70 -0
  40. package/dist/definitions/shell.js +182 -0
  41. package/dist/definitions/slack.js +181 -0
  42. package/dist/definitions/web.js +110 -0
  43. package/dist/{dns-pinning-vc0r0vpx.js → dns-pinning-7szqhtmq.js} +1 -1
  44. package/dist/executors/apply-patch.js +902 -0
  45. package/dist/executors/arion.js +120 -0
  46. package/dist/executors/code-intelligence.js +883 -0
  47. package/dist/executors/deploy.js +849 -0
  48. package/dist/executors/filesystem.js +1119 -0
  49. package/dist/executors/frg-freshness.js +577 -0
  50. package/dist/executors/frg.js +299 -0
  51. package/{dist-cjs/executors/index.d.ts → dist/executors/index.js} +22 -19
  52. package/dist/executors/learning-meta.js +1147 -0
  53. package/dist/executors/lsp-client.js +297 -0
  54. package/dist/executors/memory.js +751 -0
  55. package/dist/executors/meta.js +221 -0
  56. package/dist/executors/process-registry.js +466 -0
  57. package/dist/executors/pty-session-store.js +31 -0
  58. package/dist/executors/pty.js +281 -0
  59. package/dist/executors/restart.js +120 -0
  60. package/dist/executors/search-freshness.js +196 -0
  61. package/dist/executors/search-types.js +53 -0
  62. package/dist/executors/search.js +67 -0
  63. package/dist/executors/self-diagnose.js +399 -0
  64. package/dist/executors/session-history.js +284 -0
  65. package/dist/executors/shell-safety.js +474 -0
  66. package/dist/executors/shell.js +955 -0
  67. package/dist/executors/utils.js +34 -0
  68. package/dist/executors/web.js +543 -0
  69. package/dist/extraction/content-extraction.js +248 -0
  70. package/dist/extraction/index.js +5 -0
  71. package/dist/headless-control-contract.js +968 -0
  72. package/dist/{index-x52t2mbj.js → index-45qvfjbf.js} +2 -2
  73. package/dist/{index-8xap0se3.js → index-b3sdwzh5.js} +1 -1
  74. package/dist/index-tvryzx00.js +2 -0
  75. package/dist/index.js +71 -372
  76. package/dist/local-control-http-auth.js +3 -0
  77. package/dist/{lsp-client-msnj763y.js → lsp-client-3qxptwyw.js} +1 -1
  78. package/dist/mcp/client.js +182 -0
  79. package/dist/mcp/connection.js +484 -0
  80. package/dist/mcp/index.js +11 -0
  81. package/dist/mcp/jsonrpc.js +145 -0
  82. package/dist/mcp/types.js +8 -0
  83. package/dist/network-control-adapter.js +73 -0
  84. package/dist/network-runtime/address-types.js +166 -0
  85. package/dist/network-runtime/db-owner-fencing.js +70 -0
  86. package/dist/network-runtime/delivery-receipts.js +270 -0
  87. package/dist/network-runtime/direct-endpoint-authority.js +26 -0
  88. package/dist/network-runtime/index.js +13 -1
  89. package/dist/network-runtime/local-control-contract.js +628 -0
  90. package/dist/network-runtime/node-store-contract.js +35 -0
  91. package/dist/network-runtime/pair-route-contract.js +78 -0
  92. package/dist/network-runtime/peer-capabilities.js +29 -0
  93. package/dist/network-runtime/peer-principal-ref.js +13 -0
  94. package/dist/network-runtime/peer-state-machine.js +122 -0
  95. package/dist/network-runtime/protocol-schemas.js +206 -0
  96. package/dist/network-runtime/runtime-bootstrap-contract.js +61 -0
  97. package/dist/outlook/desktop-session.js +280 -0
  98. package/dist/policy.js +150 -0
  99. package/dist/providers/brave.js +63 -0
  100. package/dist/providers/duckduckgo.js +177 -0
  101. package/dist/providers/exa.js +64 -0
  102. package/dist/providers/firecrawl.js +56 -0
  103. package/{dist-cjs/providers/index.d.ts → dist/providers/index.js} +1 -1
  104. package/dist/providers/jina.js +50 -0
  105. package/dist/providers/router.js +97 -0
  106. package/dist/providers/search-provider.js +33 -0
  107. package/dist/providers/tavily.js +55 -0
  108. package/dist/pty-w5c9dv33.js +1 -0
  109. package/dist/quip/desktop-session.js +318 -0
  110. package/{dist-cjs/registry/index.d.ts → dist/registry/index.js} +1 -0
  111. package/dist/registry/registry.js +757 -0
  112. package/dist/runtime-socket-local-control-client.js +331 -0
  113. package/dist/security/dns-normalization.js +20 -0
  114. package/dist/security/dns-pinning.js +124 -0
  115. package/dist/security/external-content.js +92 -0
  116. package/dist/security/ssrf.js +182 -0
  117. package/dist/session-history-gk75e3ta.js +1 -0
  118. package/dist/slack/desktop-session.js +325 -0
  119. package/dist/tool-factory.js +48 -0
  120. package/dist/types.js +8 -0
  121. package/dist/utils/retry.js +133 -0
  122. package/dist/utils/safe-parse-json.js +161 -0
  123. package/dist/utils/url.js +20 -0
  124. package/dist-cjs/ask-user-interaction.js +28 -0
  125. package/dist-cjs/cache/web-cache.js +71 -0
  126. package/dist-cjs/definitions/arion.js +108 -0
  127. package/dist-cjs/definitions/browser/browser.js +422 -0
  128. package/dist-cjs/definitions/browser/index.js +9 -0
  129. package/dist-cjs/definitions/browser/pw-downloads.js +118 -0
  130. package/dist-cjs/definitions/browser/pw-interactions.js +214 -0
  131. package/dist-cjs/definitions/browser/pw-responses.js +85 -0
  132. package/dist-cjs/definitions/browser/pw-session.js +327 -0
  133. package/dist-cjs/definitions/browser/pw-shared.js +73 -0
  134. package/dist-cjs/definitions/browser/pw-snapshot.js +308 -0
  135. package/dist-cjs/definitions/browser/pw-state.js +71 -0
  136. package/dist-cjs/definitions/browser/types.js +6 -0
  137. package/dist-cjs/definitions/code-intelligence.js +474 -0
  138. package/dist-cjs/definitions/core.js +134 -0
  139. package/dist-cjs/definitions/delegation.js +516 -0
  140. package/dist-cjs/definitions/deploy.js +69 -0
  141. package/dist-cjs/definitions/filesystem.js +200 -0
  142. package/dist-cjs/definitions/frg.js +67 -0
  143. package/dist-cjs/definitions/index.js +44 -0
  144. package/dist-cjs/definitions/memory.js +127 -0
  145. package/dist-cjs/definitions/messaging.js +632 -0
  146. package/dist-cjs/definitions/meta.js +353 -0
  147. package/dist-cjs/definitions/network.js +163 -0
  148. package/dist-cjs/definitions/outlook.js +281 -0
  149. package/dist-cjs/definitions/patch/apply-patch.js +192 -0
  150. package/dist-cjs/definitions/patch/fuzzy-match.js +173 -0
  151. package/dist-cjs/definitions/patch/index.js +6 -0
  152. package/dist-cjs/definitions/patch/patch-parser.js +216 -0
  153. package/dist-cjs/definitions/patch/sandbox-paths.js +114 -0
  154. package/dist-cjs/definitions/process/index.js +9 -0
  155. package/dist-cjs/definitions/process/process-registry.js +232 -0
  156. package/dist-cjs/definitions/process/process.js +390 -0
  157. package/dist-cjs/definitions/process/pty-keys.js +260 -0
  158. package/dist-cjs/definitions/process/session-slug.js +146 -0
  159. package/dist-cjs/definitions/quip.js +199 -0
  160. package/dist-cjs/definitions/search.js +64 -0
  161. package/dist-cjs/definitions/session-history.js +73 -0
  162. package/dist-cjs/definitions/shell.js +185 -0
  163. package/dist-cjs/definitions/slack.js +184 -0
  164. package/dist-cjs/definitions/web.js +113 -0
  165. package/dist-cjs/executors/apply-patch.js +939 -0
  166. package/dist-cjs/executors/arion.js +126 -0
  167. package/dist-cjs/executors/code-intelligence.js +926 -0
  168. package/dist-cjs/executors/deploy.js +870 -0
  169. package/dist-cjs/executors/filesystem.js +1164 -0
  170. package/dist-cjs/executors/frg-freshness.js +628 -0
  171. package/dist-cjs/executors/frg.js +335 -0
  172. package/dist-cjs/executors/index.js +144 -0
  173. package/dist-cjs/executors/learning-meta.js +1166 -0
  174. package/dist-cjs/executors/memory.js +797 -0
  175. package/dist-cjs/executors/meta.js +227 -0
  176. package/dist-cjs/executors/process-registry.js +470 -0
  177. package/dist-cjs/executors/pty-session-store.js +35 -0
  178. package/dist-cjs/executors/pty.js +289 -0
  179. package/dist-cjs/executors/restart.js +156 -0
  180. package/dist-cjs/executors/search-freshness.js +235 -0
  181. package/dist-cjs/executors/search-types.js +57 -0
  182. package/dist-cjs/executors/search.js +103 -0
  183. package/dist-cjs/executors/self-diagnose.js +435 -0
  184. package/dist-cjs/executors/session-history.js +321 -0
  185. package/dist-cjs/executors/shell-safety.js +479 -0
  186. package/dist-cjs/executors/shell.js +1002 -0
  187. package/dist-cjs/executors/utils.js +74 -0
  188. package/dist-cjs/executors/web.js +548 -0
  189. package/dist-cjs/extraction/content-extraction.js +289 -0
  190. package/dist-cjs/extraction/index.js +9 -0
  191. package/dist-cjs/headless-control-contract.js +973 -0
  192. package/dist-cjs/index.js +436 -385
  193. package/dist-cjs/local-control-http-auth.js +6 -0
  194. package/dist-cjs/mcp/client.js +186 -0
  195. package/dist-cjs/mcp/connection.js +488 -0
  196. package/dist-cjs/mcp/index.js +31 -0
  197. package/dist-cjs/mcp/jsonrpc.js +149 -0
  198. package/dist-cjs/mcp/types.js +9 -0
  199. package/dist-cjs/network-control-adapter.js +78 -0
  200. package/dist-cjs/network-runtime/address-types.js +169 -0
  201. package/dist-cjs/network-runtime/db-owner-fencing.js +77 -0
  202. package/dist-cjs/network-runtime/delivery-receipts.js +279 -0
  203. package/dist-cjs/network-runtime/direct-endpoint-authority.js +30 -0
  204. package/dist-cjs/network-runtime/index.js +173 -8
  205. package/dist-cjs/network-runtime/local-control-contract.js +634 -0
  206. package/dist-cjs/network-runtime/node-store-contract.js +39 -0
  207. package/dist-cjs/network-runtime/pair-route-contract.js +81 -0
  208. package/dist-cjs/network-runtime/peer-capabilities.js +38 -0
  209. package/dist-cjs/network-runtime/peer-principal-ref.js +16 -0
  210. package/dist-cjs/network-runtime/peer-state-machine.js +130 -0
  211. package/dist-cjs/network-runtime/protocol-schemas.js +213 -0
  212. package/dist-cjs/network-runtime/runtime-bootstrap-contract.js +64 -0
  213. package/dist-cjs/outlook/desktop-session.js +319 -0
  214. package/dist-cjs/policy.js +156 -0
  215. package/dist-cjs/providers/brave.js +67 -0
  216. package/dist-cjs/providers/duckduckgo.js +181 -0
  217. package/dist-cjs/providers/exa.js +68 -0
  218. package/dist-cjs/providers/firecrawl.js +60 -0
  219. package/dist-cjs/providers/index.js +18 -0
  220. package/dist-cjs/providers/jina.js +54 -0
  221. package/dist-cjs/providers/router.js +101 -0
  222. package/dist-cjs/providers/search-provider.js +37 -0
  223. package/dist-cjs/providers/tavily.js +59 -0
  224. package/dist-cjs/quip/desktop-session.js +354 -0
  225. package/dist-cjs/registry/index.js +7 -0
  226. package/dist-cjs/registry/registry.js +762 -0
  227. package/dist-cjs/runtime-socket-local-control-client.js +368 -0
  228. package/dist-cjs/security/dns-normalization.js +23 -0
  229. package/dist-cjs/security/dns-pinning.js +161 -0
  230. package/dist-cjs/security/external-content.js +96 -0
  231. package/dist-cjs/security/ssrf.js +222 -0
  232. package/dist-cjs/slack/desktop-session.js +367 -0
  233. package/dist-cjs/tool-factory.js +51 -0
  234. package/dist-cjs/types.js +9 -0
  235. package/dist-cjs/utils/retry.js +170 -0
  236. package/dist-cjs/utils/safe-parse-json.js +165 -0
  237. package/dist-cjs/utils/url.js +24 -0
  238. package/package.json +11 -10
  239. package/dist/ask-user-interaction.d.ts +0 -10
  240. package/dist/cache/web-cache.d.ts +0 -52
  241. package/dist/definitions/arion.d.ts +0 -8
  242. package/dist/definitions/browser/browser.d.ts +0 -2
  243. package/dist/definitions/browser/index.d.ts +0 -1
  244. package/dist/definitions/browser/pw-downloads.d.ts +0 -13
  245. package/dist/definitions/browser/pw-interactions.d.ts +0 -78
  246. package/dist/definitions/browser/pw-responses.d.ts +0 -28
  247. package/dist/definitions/browser/pw-session.d.ts +0 -65
  248. package/dist/definitions/browser/pw-shared.d.ts +0 -22
  249. package/dist/definitions/browser/pw-snapshot.d.ts +0 -34
  250. package/dist/definitions/browser/pw-state.d.ts +0 -22
  251. package/dist/definitions/browser/types.d.ts +0 -277
  252. package/dist/definitions/code-intelligence.d.ts +0 -8
  253. package/dist/definitions/core.d.ts +0 -47
  254. package/dist/definitions/delegation.d.ts +0 -11
  255. package/dist/definitions/deploy.d.ts +0 -15
  256. package/dist/definitions/filesystem.d.ts +0 -9
  257. package/dist/definitions/frg.d.ts +0 -3
  258. package/dist/definitions/index.d.ts +0 -19
  259. package/dist/definitions/memory.d.ts +0 -8
  260. package/dist/definitions/messaging.d.ts +0 -11
  261. package/dist/definitions/meta.d.ts +0 -11
  262. package/dist/definitions/network.d.ts +0 -11
  263. package/dist/definitions/outlook.d.ts +0 -2
  264. package/dist/definitions/patch/apply-patch.d.ts +0 -11
  265. package/dist/definitions/patch/fuzzy-match.d.ts +0 -10
  266. package/dist/definitions/patch/index.d.ts +0 -1
  267. package/dist/definitions/patch/patch-parser.d.ts +0 -50
  268. package/dist/definitions/patch/sandbox-paths.d.ts +0 -18
  269. package/dist/definitions/process/index.d.ts +0 -1
  270. package/dist/definitions/process/process-registry.d.ts +0 -67
  271. package/dist/definitions/process/process.d.ts +0 -9
  272. package/dist/definitions/process/pty-keys.d.ts +0 -13
  273. package/dist/definitions/process/session-slug.d.ts +0 -1
  274. package/dist/definitions/quip.d.ts +0 -2
  275. package/dist/definitions/search.d.ts +0 -9
  276. package/dist/definitions/session-history.d.ts +0 -11
  277. package/dist/definitions/shell.d.ts +0 -8
  278. package/dist/definitions/slack.d.ts +0 -2
  279. package/dist/definitions/web.d.ts +0 -8
  280. package/dist/executors/apply-patch.d.ts +0 -51
  281. package/dist/executors/arion.d.ts +0 -50
  282. package/dist/executors/code-intelligence.d.ts +0 -138
  283. package/dist/executors/deploy.d.ts +0 -169
  284. package/dist/executors/filesystem.d.ts +0 -150
  285. package/dist/executors/frg-freshness.d.ts +0 -93
  286. package/dist/executors/frg.d.ts +0 -27
  287. package/dist/executors/index.d.ts +0 -44
  288. package/dist/executors/learning-meta.d.ts +0 -87
  289. package/dist/executors/lsp-client.d.ts +0 -38
  290. package/dist/executors/memory.d.ts +0 -203
  291. package/dist/executors/meta.d.ts +0 -73
  292. package/dist/executors/process-registry.d.ts +0 -98
  293. package/dist/executors/pty-session-store.d.ts +0 -14
  294. package/dist/executors/pty.d.ts +0 -133
  295. package/dist/executors/restart.d.ts +0 -13
  296. package/dist/executors/search-freshness.d.ts +0 -50
  297. package/dist/executors/search-types.d.ts +0 -52
  298. package/dist/executors/search.d.ts +0 -11
  299. package/dist/executors/self-diagnose.d.ts +0 -89
  300. package/dist/executors/session-history.d.ts +0 -75
  301. package/dist/executors/shell-safety.d.ts +0 -27
  302. package/dist/executors/shell.d.ts +0 -168
  303. package/dist/executors/utils.d.ts +0 -20
  304. package/dist/executors/web.d.ts +0 -89
  305. package/dist/extraction/content-extraction.d.ts +0 -48
  306. package/dist/extraction/index.d.ts +0 -4
  307. package/dist/headless-control-contract.d.ts +0 -3182
  308. package/dist/index-a2fr1b3x.js +0 -2
  309. package/dist/index.d.ts +0 -62
  310. package/dist/local-control-http-auth.d.ts +0 -2
  311. package/dist/mcp/client.d.ts +0 -68
  312. package/dist/mcp/connection.d.ts +0 -54
  313. package/dist/mcp/index.d.ts +0 -10
  314. package/dist/mcp/jsonrpc.d.ts +0 -36
  315. package/dist/mcp/types.d.ts +0 -178
  316. package/dist/network-control-adapter.d.ts +0 -4
  317. package/dist/network-runtime/address-types.d.ts +0 -201
  318. package/dist/network-runtime/db-owner-fencing.d.ts +0 -43
  319. package/dist/network-runtime/delivery-receipts.d.ts +0 -117
  320. package/dist/network-runtime/direct-endpoint-authority.d.ts +0 -8
  321. package/dist/network-runtime/index.d.ts +0 -24
  322. package/dist/network-runtime/local-control-contract.d.ts +0 -758
  323. package/dist/network-runtime/node-store-contract.d.ts +0 -49
  324. package/dist/network-runtime/pair-route-contract.d.ts +0 -100
  325. package/dist/network-runtime/peer-capabilities.d.ts +0 -10
  326. package/dist/network-runtime/peer-principal-ref.d.ts +0 -9
  327. package/dist/network-runtime/peer-state-machine.d.ts +0 -70
  328. package/dist/network-runtime/protocol-schemas.d.ts +0 -328
  329. package/dist/network-runtime/runtime-bootstrap-contract.d.ts +0 -81
  330. package/dist/outlook/desktop-session.d.ts +0 -68
  331. package/dist/policy.d.ts +0 -43
  332. package/dist/providers/brave.d.ts +0 -10
  333. package/dist/providers/duckduckgo.d.ts +0 -18
  334. package/dist/providers/exa.d.ts +0 -10
  335. package/dist/providers/firecrawl.d.ts +0 -10
  336. package/dist/providers/index.d.ts +0 -8
  337. package/dist/providers/jina.d.ts +0 -10
  338. package/dist/providers/router.d.ts +0 -21
  339. package/dist/providers/search-provider.d.ts +0 -35
  340. package/dist/providers/tavily.d.ts +0 -10
  341. package/dist/pty-ff59hy75.js +0 -1
  342. package/dist/quip/desktop-session.d.ts +0 -69
  343. package/dist/registry/index.d.ts +0 -1
  344. package/dist/registry/registry.d.ts +0 -156
  345. package/dist/runtime-socket-local-control-client.d.ts +0 -10
  346. package/dist/security/dns-normalization.d.ts +0 -6
  347. package/dist/security/dns-pinning.d.ts +0 -27
  348. package/dist/security/external-content.d.ts +0 -40
  349. package/dist/security/ssrf.d.ts +0 -40
  350. package/dist/session-history-6gn52xhp.js +0 -1
  351. package/dist/slack/desktop-session.d.ts +0 -69
  352. package/dist/tool-factory.d.ts +0 -46
  353. package/dist/types.d.ts +0 -1192
  354. package/dist/utils/retry.d.ts +0 -11
  355. package/dist/utils/safe-parse-json.d.ts +0 -26
  356. package/dist/utils/url.d.ts +0 -10
  357. package/dist-cjs/ask-user-interaction.d.ts +0 -10
  358. package/dist-cjs/cache/web-cache.d.ts +0 -52
  359. package/dist-cjs/definitions/arion.d.ts +0 -8
  360. package/dist-cjs/definitions/browser/browser.d.ts +0 -2
  361. package/dist-cjs/definitions/browser/index.d.ts +0 -1
  362. package/dist-cjs/definitions/browser/pw-downloads.d.ts +0 -13
  363. package/dist-cjs/definitions/browser/pw-interactions.d.ts +0 -78
  364. package/dist-cjs/definitions/browser/pw-responses.d.ts +0 -28
  365. package/dist-cjs/definitions/browser/pw-session.d.ts +0 -65
  366. package/dist-cjs/definitions/browser/pw-shared.d.ts +0 -22
  367. package/dist-cjs/definitions/browser/pw-snapshot.d.ts +0 -34
  368. package/dist-cjs/definitions/browser/pw-state.d.ts +0 -22
  369. package/dist-cjs/definitions/browser/types.d.ts +0 -277
  370. package/dist-cjs/definitions/code-intelligence.d.ts +0 -8
  371. package/dist-cjs/definitions/core.d.ts +0 -47
  372. package/dist-cjs/definitions/delegation.d.ts +0 -11
  373. package/dist-cjs/definitions/deploy.d.ts +0 -15
  374. package/dist-cjs/definitions/filesystem.d.ts +0 -9
  375. package/dist-cjs/definitions/frg.d.ts +0 -3
  376. package/dist-cjs/definitions/memory.d.ts +0 -8
  377. package/dist-cjs/definitions/messaging.d.ts +0 -11
  378. package/dist-cjs/definitions/meta.d.ts +0 -11
  379. package/dist-cjs/definitions/network.d.ts +0 -11
  380. package/dist-cjs/definitions/outlook.d.ts +0 -2
  381. package/dist-cjs/definitions/patch/apply-patch.d.ts +0 -11
  382. package/dist-cjs/definitions/patch/fuzzy-match.d.ts +0 -10
  383. package/dist-cjs/definitions/patch/patch-parser.d.ts +0 -50
  384. package/dist-cjs/definitions/patch/sandbox-paths.d.ts +0 -18
  385. package/dist-cjs/definitions/process/index.d.ts +0 -1
  386. package/dist-cjs/definitions/process/process-registry.d.ts +0 -67
  387. package/dist-cjs/definitions/process/process.d.ts +0 -9
  388. package/dist-cjs/definitions/process/pty-keys.d.ts +0 -13
  389. package/dist-cjs/definitions/process/session-slug.d.ts +0 -1
  390. package/dist-cjs/definitions/quip.d.ts +0 -2
  391. package/dist-cjs/definitions/search.d.ts +0 -9
  392. package/dist-cjs/definitions/session-history.d.ts +0 -11
  393. package/dist-cjs/definitions/shell.d.ts +0 -8
  394. package/dist-cjs/definitions/slack.d.ts +0 -2
  395. package/dist-cjs/definitions/web.d.ts +0 -8
  396. package/dist-cjs/executors/apply-patch.d.ts +0 -51
  397. package/dist-cjs/executors/arion.d.ts +0 -50
  398. package/dist-cjs/executors/code-intelligence.d.ts +0 -138
  399. package/dist-cjs/executors/deploy.d.ts +0 -169
  400. package/dist-cjs/executors/filesystem.d.ts +0 -150
  401. package/dist-cjs/executors/frg-freshness.d.ts +0 -93
  402. package/dist-cjs/executors/frg.d.ts +0 -27
  403. package/dist-cjs/executors/learning-meta.d.ts +0 -87
  404. package/dist-cjs/executors/lsp-client.d.ts +0 -38
  405. package/dist-cjs/executors/memory.d.ts +0 -203
  406. package/dist-cjs/executors/meta.d.ts +0 -73
  407. package/dist-cjs/executors/process-registry.d.ts +0 -98
  408. package/dist-cjs/executors/pty-session-store.d.ts +0 -14
  409. package/dist-cjs/executors/pty.d.ts +0 -133
  410. package/dist-cjs/executors/restart.d.ts +0 -13
  411. package/dist-cjs/executors/search-freshness.d.ts +0 -50
  412. package/dist-cjs/executors/search-types.d.ts +0 -52
  413. package/dist-cjs/executors/search.d.ts +0 -11
  414. package/dist-cjs/executors/self-diagnose.d.ts +0 -89
  415. package/dist-cjs/executors/session-history.d.ts +0 -75
  416. package/dist-cjs/executors/shell-safety.d.ts +0 -27
  417. package/dist-cjs/executors/shell.d.ts +0 -168
  418. package/dist-cjs/executors/utils.d.ts +0 -20
  419. package/dist-cjs/executors/web.d.ts +0 -89
  420. package/dist-cjs/extraction/content-extraction.d.ts +0 -48
  421. package/dist-cjs/extraction/index.d.ts +0 -4
  422. package/dist-cjs/headless-control-contract.d.ts +0 -3182
  423. package/dist-cjs/index.d.ts +0 -62
  424. package/dist-cjs/local-control-http-auth.d.ts +0 -2
  425. package/dist-cjs/mcp/client.d.ts +0 -68
  426. package/dist-cjs/mcp/connection.d.ts +0 -54
  427. package/dist-cjs/mcp/index.d.ts +0 -10
  428. package/dist-cjs/mcp/jsonrpc.d.ts +0 -36
  429. package/dist-cjs/mcp/types.d.ts +0 -178
  430. package/dist-cjs/network-control-adapter.d.ts +0 -4
  431. package/dist-cjs/network-runtime/address-types.d.ts +0 -201
  432. package/dist-cjs/network-runtime/db-owner-fencing.d.ts +0 -43
  433. package/dist-cjs/network-runtime/delivery-receipts.d.ts +0 -117
  434. package/dist-cjs/network-runtime/direct-endpoint-authority.d.ts +0 -8
  435. package/dist-cjs/network-runtime/index.d.ts +0 -24
  436. package/dist-cjs/network-runtime/local-control-contract.d.ts +0 -758
  437. package/dist-cjs/network-runtime/node-store-contract.d.ts +0 -49
  438. package/dist-cjs/network-runtime/pair-route-contract.d.ts +0 -100
  439. package/dist-cjs/network-runtime/peer-capabilities.d.ts +0 -10
  440. package/dist-cjs/network-runtime/peer-principal-ref.d.ts +0 -9
  441. package/dist-cjs/network-runtime/peer-state-machine.d.ts +0 -70
  442. package/dist-cjs/network-runtime/protocol-schemas.d.ts +0 -328
  443. package/dist-cjs/network-runtime/runtime-bootstrap-contract.d.ts +0 -81
  444. package/dist-cjs/outlook/desktop-session.d.ts +0 -68
  445. package/dist-cjs/policy.d.ts +0 -43
  446. package/dist-cjs/providers/brave.d.ts +0 -10
  447. package/dist-cjs/providers/duckduckgo.d.ts +0 -18
  448. package/dist-cjs/providers/exa.d.ts +0 -10
  449. package/dist-cjs/providers/firecrawl.d.ts +0 -10
  450. package/dist-cjs/providers/jina.d.ts +0 -10
  451. package/dist-cjs/providers/router.d.ts +0 -21
  452. package/dist-cjs/providers/search-provider.d.ts +0 -35
  453. package/dist-cjs/providers/tavily.d.ts +0 -10
  454. package/dist-cjs/quip/desktop-session.d.ts +0 -69
  455. package/dist-cjs/registry/registry.d.ts +0 -156
  456. package/dist-cjs/runtime-socket-local-control-client.d.ts +0 -10
  457. package/dist-cjs/security/dns-normalization.d.ts +0 -6
  458. package/dist-cjs/security/dns-pinning.d.ts +0 -27
  459. package/dist-cjs/security/external-content.d.ts +0 -40
  460. package/dist-cjs/security/ssrf.d.ts +0 -40
  461. package/dist-cjs/slack/desktop-session.d.ts +0 -69
  462. package/dist-cjs/tool-factory.d.ts +0 -46
  463. package/dist-cjs/types.d.ts +0 -1192
  464. package/dist-cjs/utils/retry.d.ts +0 -11
  465. package/dist-cjs/utils/safe-parse-json.d.ts +0 -26
  466. package/dist-cjs/utils/url.d.ts +0 -10
@@ -0,0 +1,474 @@
1
+ "use strict";
2
+ /**
3
+ * Code intelligence tool definitions
4
+ *
5
+ * 7 native tools wrapping external CLI binaries for code search, structural
6
+ * analysis, knowledge graphs, LSP intelligence, and file discovery.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.CODE_INTELLIGENCE_TOOL_DEFINITIONS = void 0;
10
+ const code_intelligence_js_1 = require("../executors/code-intelligence.js");
11
+ // ---------------------------------------------------------------------------
12
+ // rg — ripgrep
13
+ // ---------------------------------------------------------------------------
14
+ const rg = {
15
+ name: "rg",
16
+ description: "Fast text/regex search (ripgrep). SIMD-accelerated, .gitignore-aware. " +
17
+ "Returns structured JSON matches with file, line, and text. " +
18
+ "Use for finding strings, patterns, identifiers. Fastest grep available.",
19
+ category: "code",
20
+ parameters: {
21
+ type: "object",
22
+ properties: {
23
+ pattern: { type: "string", description: "Search pattern (regex by default)" },
24
+ path: { type: "string", description: "File or directory to search (default: working dir)" },
25
+ ignore_case: { type: "boolean", description: "Case-insensitive search (-i)" },
26
+ smart_case: {
27
+ type: "boolean",
28
+ description: "Case-insensitive unless pattern has uppercase (-S)",
29
+ },
30
+ fixed_strings: {
31
+ type: "boolean",
32
+ description: "Treat pattern as literal string, not regex (-F)",
33
+ },
34
+ word_regexp: { type: "boolean", description: "Match whole words only (-w)" },
35
+ file_type: {
36
+ type: "string",
37
+ description: "File type filter: ts, py, rs, go, java, etc. (-t TYPE)",
38
+ },
39
+ glob: { type: "string", description: "Glob filter, prefix ! to exclude (-g GLOB)" },
40
+ context: { type: "number", description: "Context lines around matches (-C NUM)" },
41
+ max_count: { type: "number", description: "Max matches per file (-m NUM)", default: 100 },
42
+ invert: { type: "boolean", description: "Show lines NOT matching (-v)" },
43
+ files_only: { type: "boolean", description: "Only print file names with matches (-l)" },
44
+ count: { type: "boolean", description: "Only print match count per file (-c)" },
45
+ extra_args: {
46
+ type: "array",
47
+ items: { type: "string" },
48
+ description: "Additional rg flags: ['--pcre2','-U','--max-depth=3','--hidden','--no-ignore','--type-not=test']",
49
+ },
50
+ },
51
+ required: ["pattern"],
52
+ },
53
+ riskLevel: "safe",
54
+ isReadOnly: true,
55
+ loadingTier: "always",
56
+ execute: code_intelligence_js_1.executeRg,
57
+ };
58
+ // ---------------------------------------------------------------------------
59
+ // ug — ugrep
60
+ // ---------------------------------------------------------------------------
61
+ const ug = {
62
+ name: "ug",
63
+ description: "Text search with fuzzy matching, boolean queries, and archive search (ugrep). " +
64
+ "Superset of ripgrep features. Use fuzzy for approximate matching (typos), " +
65
+ "bool for AND/OR/NOT queries, decompress for searching inside zip/tar/gz.",
66
+ category: "code",
67
+ parameters: {
68
+ type: "object",
69
+ properties: {
70
+ pattern: { type: "string", description: "Search pattern (regex by default)" },
71
+ path: { type: "string", description: "File or directory to search (default: working dir)" },
72
+ ignore_case: { type: "boolean", description: "Case-insensitive (-i)" },
73
+ smart_case: {
74
+ type: "boolean",
75
+ description: "Smart case: insensitive unless uppercase present (-j)",
76
+ },
77
+ fixed_strings: { type: "boolean", description: "Literal string matching (-F)" },
78
+ word_regexp: { type: "boolean", description: "Match whole words only (-w)" },
79
+ file_type: { type: "string", description: "File type filter (-t TYPE)" },
80
+ glob: { type: "string", description: "Glob filter (-g GLOB)" },
81
+ context: { type: "number", description: "Context lines around matches (-C NUM)" },
82
+ max_count: { type: "number", description: "Max matches per file (-m NUM)", default: 100 },
83
+ fuzzy: {
84
+ oneOf: [{ type: "boolean" }, { type: "number" }],
85
+ description: "Fuzzy matching (-Z). true=default distance, number=max Levenshtein distance",
86
+ },
87
+ bool: {
88
+ type: "boolean",
89
+ description: "Boolean query mode (-%%). Pattern uses AND/OR/NOT: 'auth AND NOT test'",
90
+ },
91
+ neg_pattern: {
92
+ type: "string",
93
+ description: "Negative pattern — reject matching lines (-N PATTERN)",
94
+ },
95
+ files_only: { type: "boolean", description: "Only print file names (-l)" },
96
+ count: { type: "boolean", description: "Only print match count per file (-c)" },
97
+ decompress: {
98
+ type: "boolean",
99
+ description: "Search inside compressed files and archives (-z)",
100
+ },
101
+ extra_args: {
102
+ type: "array",
103
+ items: { type: "string" },
104
+ description: "Additional ug flags: ['--depth=3','-O=ts,js','--min-size=1K','--format=%f:%n:%o']",
105
+ },
106
+ },
107
+ required: ["pattern"],
108
+ },
109
+ riskLevel: "safe",
110
+ isReadOnly: true,
111
+ loadingTier: "always",
112
+ execute: code_intelligence_js_1.executeUg,
113
+ };
114
+ // ---------------------------------------------------------------------------
115
+ // probe
116
+ // ---------------------------------------------------------------------------
117
+ const probe = {
118
+ name: "probe",
119
+ description: "Ranked semantic code search with token budgeting (Probe). Returns complete functions/classes, " +
120
+ "not line fragments. 4 commands: search (ES-style boolean queries with BM25 ranking), " +
121
+ "extract (get code by file:line or file#symbol), symbols (list symbols in file), " +
122
+ "query (AST pattern matching). Use max_tokens for LLM context budgeting, session for pagination.",
123
+ category: "code",
124
+ parameters: {
125
+ type: "object",
126
+ properties: {
127
+ command: {
128
+ type: "string",
129
+ enum: ["search", "extract", "symbols", "query"],
130
+ default: "search",
131
+ description: "search=semantic search, extract=get code by line/symbol, symbols=list symbols, query=AST pattern",
132
+ },
133
+ query: {
134
+ type: "string",
135
+ description: "Search query (ES syntax: AND/OR/NOT, ext:rs, file:path, dir:tests) or AST pattern for query command",
136
+ },
137
+ path: { type: "string", description: "Directory to search (default: working dir)" },
138
+ exact: {
139
+ type: "boolean",
140
+ description: "Exact match (true) vs stemmed search (false). 'getUserData' exact vs 'get','user','data'",
141
+ },
142
+ max_tokens: {
143
+ type: "number",
144
+ description: "Token budget — limit total output tokens for LLM context",
145
+ },
146
+ max_results: { type: "number", description: "Maximum number of results" },
147
+ session: {
148
+ type: "string",
149
+ description: "Session ID for pagination. Reuse to get next page (dedup previous results)",
150
+ },
151
+ language: {
152
+ type: "string",
153
+ description: "Language filter: rust, typescript, python, go, java, etc.",
154
+ },
155
+ reranker: {
156
+ type: "string",
157
+ description: "Ranking algorithm: bm25 (default), tfidf, hybrid, hybrid2",
158
+ },
159
+ allow_tests: { type: "boolean", description: "Include test files in results" },
160
+ files: {
161
+ type: "array",
162
+ items: { type: "string" },
163
+ description: "File specs for extract and symbols commands: ['src/auth.ts:42', 'src/auth.ts#handleAuth', 'src/auth.ts:10-50']",
164
+ },
165
+ extra_args: {
166
+ type: "array",
167
+ items: { type: "string" },
168
+ description: "Additional probe flags: ['--files-only','--no-merge','--lsp','--timeout=60']",
169
+ },
170
+ },
171
+ required: [],
172
+ },
173
+ riskLevel: "safe",
174
+ isReadOnly: true,
175
+ loadingTier: "always",
176
+ execute: code_intelligence_js_1.executeProbe,
177
+ };
178
+ // ---------------------------------------------------------------------------
179
+ // sg — ast-grep
180
+ // ---------------------------------------------------------------------------
181
+ const sg = {
182
+ name: "sg",
183
+ description: "AST structural pattern matching and rewriting (ast-grep). Patterns look like real code. " +
184
+ "$NAME matches single node, $$$ARGS matches variadic, $_ is wildcard. " +
185
+ "Examples: 'console.log($MSG)', 'async function $NAME($$$PARAMS) { $$$BODY }'. " +
186
+ "Set rewrite for search-and-replace refactoring. Use command='scan' with inline_rules for YAML rules.",
187
+ category: "code",
188
+ parameters: {
189
+ type: "object",
190
+ properties: {
191
+ command: {
192
+ type: "string",
193
+ enum: ["run", "scan"],
194
+ default: "run",
195
+ description: "run=pattern match/rewrite, scan=rule-based scanning",
196
+ },
197
+ pattern: {
198
+ type: "string",
199
+ description: "AST pattern. $NAME=single node, $$$ARGS=variadic, $_=wildcard. " +
200
+ "Examples: 'console.log($MSG)', 'async function $NAME($$$PARAMS) { $$$BODY }'",
201
+ },
202
+ language: {
203
+ type: "string",
204
+ description: "Language: typescript, python, rust, go, java, javascript, c, cpp, ruby, php, swift, kotlin",
205
+ },
206
+ rewrite: {
207
+ type: "string",
208
+ description: "Replacement pattern with same metavariables. Example: pattern='console.log($MSG)' rewrite='logger.info($MSG)'",
209
+ },
210
+ strictness: {
211
+ type: "string",
212
+ enum: ["cst", "smart", "ast", "relaxed", "signature"],
213
+ description: "Matching strictness. smart=default, ast=ignore punctuation, relaxed=ignore comments",
214
+ },
215
+ globs: { type: "string", description: "File glob filter, prefix ! to exclude" },
216
+ rule: { type: "string", description: "Path to a YAML rule file (for scan)" },
217
+ inline_rules: {
218
+ type: "string",
219
+ description: "Inline YAML rule text (for scan). Example: 'id: no-console\\nlanguage: TypeScript\\nrule:\\n pattern: console.log($$$)'",
220
+ },
221
+ path: { type: "string", description: "Directory to search (default: working dir)" },
222
+ update_all: { type: "boolean", description: "Apply all rewrites without confirmation (-U)" },
223
+ context: { type: "number", description: "Context lines around matches (-C NUM)" },
224
+ extra_args: {
225
+ type: "array",
226
+ items: { type: "string" },
227
+ description: "Additional sg flags: ['--selector=function_declaration','--threads=4','--no-ignore=hidden']",
228
+ },
229
+ },
230
+ required: [],
231
+ },
232
+ riskLevel: "safe",
233
+ isReadOnly: true,
234
+ loadingTier: "always",
235
+ execute: code_intelligence_js_1.executeSg,
236
+ };
237
+ // ---------------------------------------------------------------------------
238
+ // cbm — codebase-memory-mcp
239
+ // ---------------------------------------------------------------------------
240
+ const cbm = {
241
+ name: "cbm",
242
+ description: "Code knowledge graph (codebase-memory-mcp). Index codebases, search symbols, trace call chains, " +
243
+ "analyze blast radius. Run action='index' once per project. Then: search (symbols by name/type/file), " +
244
+ "trace (who calls this? what does it call?), impact (what breaks if I change this?), " +
245
+ "context (360° view: definition + callers + callees in one call), architecture (project overview), " +
246
+ "snippet (read source by qualified name), code_search (graph-augmented grep), cypher (raw Cypher query).",
247
+ category: "code",
248
+ parameters: {
249
+ type: "object",
250
+ properties: {
251
+ action: {
252
+ type: "string",
253
+ enum: [
254
+ "index",
255
+ "search",
256
+ "trace",
257
+ "impact",
258
+ "context",
259
+ "snippet",
260
+ "code_search",
261
+ "architecture",
262
+ "schema",
263
+ "cypher",
264
+ "list_projects",
265
+ "delete_project",
266
+ "status",
267
+ ],
268
+ description: "Action to perform",
269
+ },
270
+ path: { type: "string", description: "Repository path to index" },
271
+ mode: {
272
+ type: "string",
273
+ enum: ["full", "fast"],
274
+ description: "full=with git history, fast=skip git",
275
+ },
276
+ name: { type: "string", description: "Symbol name or regex pattern" },
277
+ label: {
278
+ type: "string",
279
+ description: "Node type: Function, Class, Method, Interface, Enum, Type, Module, File, Route, Package",
280
+ },
281
+ file: { type: "string", description: "File path filter" },
282
+ direction: {
283
+ type: "string",
284
+ enum: ["inbound", "outbound", "both"],
285
+ default: "both",
286
+ description: "inbound=callers, outbound=callees",
287
+ },
288
+ depth: { type: "number", description: "Traversal depth (1-5)", default: 3 },
289
+ edge_types: {
290
+ type: "array",
291
+ items: { type: "string" },
292
+ description: "Filter edges: CALLS, IMPORTS, INHERITS, IMPLEMENTS, USES_TYPE, TESTS, HTTP_CALLS",
293
+ },
294
+ scope: { type: "string", description: "Git diff scope: 'staged', 'HEAD~1', branch name" },
295
+ base_branch: { type: "string", description: "Git branch for comparison", default: "main" },
296
+ qualified_name: {
297
+ type: "string",
298
+ description: "Full qualified name from search results (for snippet)",
299
+ },
300
+ include_neighbors: {
301
+ type: "boolean",
302
+ description: "Include caller/callee names (for snippet)",
303
+ },
304
+ code_pattern: { type: "string", description: "Text search pattern (for code_search)" },
305
+ regex: { type: "boolean", description: "Use regex for code_search" },
306
+ code_mode: {
307
+ type: "string",
308
+ enum: ["compact", "full", "files"],
309
+ description: "Output mode for code_search",
310
+ },
311
+ query: { type: "string", description: "Cypher query string (for cypher action)" },
312
+ max_rows: { type: "number", description: "Max rows for cypher query" },
313
+ project: {
314
+ type: "string",
315
+ description: "Project name (auto-detected if one project indexed)",
316
+ },
317
+ limit: { type: "number", description: "Max results", default: 20 },
318
+ context: { type: "number", description: "Context lines for code_search" },
319
+ },
320
+ required: ["action"],
321
+ },
322
+ riskLevel: "safe",
323
+ isReadOnly: true,
324
+ loadingTier: "always",
325
+ execute: code_intelligence_js_1.executeCbm,
326
+ };
327
+ // ---------------------------------------------------------------------------
328
+ // lsp — native LSP client (direct JSON-RPC to language servers)
329
+ // ---------------------------------------------------------------------------
330
+ const lsp = {
331
+ name: "lsp",
332
+ description: "Compiler-accurate code intelligence via native LSP (Language Server Protocol). " +
333
+ "Spawns real language servers directly — same as VS Code and Claude Code. " +
334
+ "No Serena, no MCP, no HTTP. Supports: TypeScript, Python, Go, Rust, C/C++, Swift, Java, Kotlin, Lua, PHP, Ruby, C#. " +
335
+ "Actions: definition (go-to-definition), references (find all references), " +
336
+ "hover (type info + docs), symbols (document symbol list), rename (safe cross-file rename). " +
337
+ "Line and character are 0-based. Server starts on first use and stays warm.",
338
+ category: "code",
339
+ parameters: {
340
+ type: "object",
341
+ properties: {
342
+ action: {
343
+ type: "string",
344
+ enum: ["definition", "references", "hover", "symbols", "rename"],
345
+ description: "definition=go to definition, references=find all references, " +
346
+ "hover=type info and docs, symbols=list all symbols in file, " +
347
+ "rename=rename symbol across codebase",
348
+ },
349
+ file: {
350
+ type: "string",
351
+ description: "File path (relative or absolute). Language server auto-detected from extension.",
352
+ },
353
+ line: {
354
+ type: "number",
355
+ description: "0-based line number (for definition, references, hover, rename)",
356
+ },
357
+ character: {
358
+ type: "number",
359
+ description: "0-based column/character offset (for definition, references, hover, rename)",
360
+ },
361
+ new_name: {
362
+ type: "string",
363
+ description: "New symbol name (for rename action only)",
364
+ },
365
+ },
366
+ required: ["action", "file"],
367
+ },
368
+ riskLevel: "safe",
369
+ isReadOnly: true,
370
+ loadingTier: "always",
371
+ execute: code_intelligence_js_1.executeLsp,
372
+ };
373
+ // ---------------------------------------------------------------------------
374
+ // serena — LSP intelligence via HTTP project server
375
+ // ---------------------------------------------------------------------------
376
+ const serena = {
377
+ name: "serena",
378
+ description: "Compiler-accurate LSP symbol navigation and editing via Serena HTTP project server. " +
379
+ "Use for symbol-level operations by name path (not line/column). " +
380
+ "Actions: find_symbol, find_references, overview, replace_body, insert_after, insert_before, rename, search. " +
381
+ "Requires: uvx --from 'git+https://github.com/oraios/serena' serena start-project-server --port 9750",
382
+ category: "code",
383
+ parameters: {
384
+ type: "object",
385
+ properties: {
386
+ action: {
387
+ type: "string",
388
+ enum: [
389
+ "find_symbol",
390
+ "find_references",
391
+ "overview",
392
+ "replace_body",
393
+ "insert_after",
394
+ "insert_before",
395
+ "rename",
396
+ "search",
397
+ ],
398
+ description: "Serena action",
399
+ },
400
+ name_path: {
401
+ type: "string",
402
+ description: "Symbol name path: 'handleAuth', 'MyClass/myMethod', '/TopLevel/Nested'",
403
+ },
404
+ relative_path: { type: "string", description: "Restrict to file or directory" },
405
+ include_body: { type: "boolean", description: "Include source code of the symbol" },
406
+ include_info: { type: "boolean", description: "Include hover info (docstring, signature)" },
407
+ depth: { type: "number", description: "Descendants depth (1=immediate children)" },
408
+ body: { type: "string", description: "New code content (for replace_body/insert)" },
409
+ new_name: { type: "string", description: "New symbol name (for rename)" },
410
+ pattern: { type: "string", description: "Regex pattern (for search action)" },
411
+ context_before: { type: "number", description: "Context lines before match" },
412
+ context_after: { type: "number", description: "Context lines after match" },
413
+ paths_include: { type: "string", description: "Glob to include files" },
414
+ paths_exclude: { type: "string", description: "Glob to exclude files" },
415
+ extra_args: { type: "object", description: "Additional Serena API params" },
416
+ },
417
+ required: ["action"],
418
+ },
419
+ riskLevel: "safe",
420
+ isReadOnly: true,
421
+ loadingTier: "always",
422
+ execute: code_intelligence_js_1.executeSerena,
423
+ };
424
+ // ---------------------------------------------------------------------------
425
+ // fff — frecency-aware file finder
426
+ // ---------------------------------------------------------------------------
427
+ const fff = {
428
+ name: "fff",
429
+ description: "Frecency-aware fuzzy file finder and grep (fff). Files you access often rank higher. " +
430
+ "3 actions: grep (search file contents), find_files (fuzzy file search by topic), " +
431
+ "multi_grep (OR-search across multiple patterns). Use constraints for filtering: " +
432
+ "'*.rs' (type), 'src/' (dir), 'schema.rs' (file), '!test/' (exclude).",
433
+ category: "code",
434
+ parameters: {
435
+ type: "object",
436
+ properties: {
437
+ action: {
438
+ type: "string",
439
+ enum: ["grep", "find_files", "multi_grep"],
440
+ description: "grep=search contents, find_files=fuzzy file search, multi_grep=OR-search multiple patterns",
441
+ },
442
+ query: { type: "string", description: "Search text or topic description" },
443
+ patterns: {
444
+ type: "array",
445
+ items: { type: "string" },
446
+ description: "Multiple patterns for OR-search (multi_grep only)",
447
+ },
448
+ constraints: {
449
+ type: "string",
450
+ description: "Inline constraints: '*.rs' (type), 'src/' (dir), 'schema.rs' (file), '!test/' (exclude)",
451
+ },
452
+ path: { type: "string", description: "Directory to search (default: working dir)" },
453
+ },
454
+ required: ["action"],
455
+ },
456
+ riskLevel: "safe",
457
+ isReadOnly: true,
458
+ loadingTier: "always",
459
+ execute: code_intelligence_js_1.executeFff,
460
+ };
461
+ // ---------------------------------------------------------------------------
462
+ // Export
463
+ // ---------------------------------------------------------------------------
464
+ exports.CODE_INTELLIGENCE_TOOL_DEFINITIONS = [
465
+ rg,
466
+ ug,
467
+ probe,
468
+ sg,
469
+ cbm,
470
+ lsp,
471
+ serena,
472
+ fff,
473
+ ];
474
+ //# sourceMappingURL=code-intelligence.js.map
@@ -0,0 +1,134 @@
1
+ "use strict";
2
+ /**
3
+ * Core tool definitions for ARIA
4
+ * Core tools across 10 definition groups:
5
+ * memory (5), web (3+1), filesystem (8), shell (7+1), arion (4), delegation (3), messaging (4+2), network (2), deploy (1), meta (11)
6
+ *
7
+ * Individual category definitions are in their respective files.
8
+ * This module assembles them into the unified CORE_TOOL_DEFINITIONS array.
9
+ * browser and process are forked from OpenClaw (MIT) and added directly here.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CORE_TOOL_DEFINITIONS = exports.SEARCH_TOOL_DEFINITIONS = exports.CODE_INTELLIGENCE_TOOL_DEFINITIONS = exports.FRG_TOOL_DEFINITIONS = exports.SESSION_HISTORY_TOOL_DEFINITIONS = exports.META_TOOL_DEFINITIONS = exports.DEPLOY_TOOL_DEFINITIONS = exports.NETWORK_TOOL_DEFINITIONS = exports.QUIP_TOOL_DEFINITIONS = exports.OUTLOOK_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 = void 0;
13
+ exports.getCoreTools = getCoreTools;
14
+ exports.getCoreTool = getCoreTool;
15
+ exports.getCoreToolsByCategory = getCoreToolsByCategory;
16
+ exports.getCoreToolsByRiskLevel = getCoreToolsByRiskLevel;
17
+ const memory_js_1 = require("./memory.js");
18
+ const web_js_1 = require("./web.js");
19
+ const filesystem_js_1 = require("./filesystem.js");
20
+ const shell_js_1 = require("./shell.js");
21
+ const arion_js_1 = require("./arion.js");
22
+ const delegation_js_1 = require("./delegation.js");
23
+ const messaging_js_1 = require("./messaging.js");
24
+ const slack_js_1 = require("./slack.js");
25
+ const outlook_js_1 = require("./outlook.js");
26
+ const quip_js_1 = require("./quip.js");
27
+ const network_js_1 = require("./network.js");
28
+ const deploy_js_1 = require("./deploy.js");
29
+ const meta_js_1 = require("./meta.js");
30
+ const session_history_js_1 = require("./session-history.js");
31
+ const frg_js_1 = require("./frg.js");
32
+ const code_intelligence_js_1 = require("./code-intelligence.js");
33
+ const search_js_1 = require("./search.js");
34
+ // OpenClaw forks (MIT) — Playwright browser automation and background process management
35
+ const index_js_1 = require("./browser/index.js");
36
+ const index_js_2 = require("./process/index.js");
37
+ // Re-export category arrays for direct access
38
+ var memory_js_2 = require("./memory.js");
39
+ Object.defineProperty(exports, "MEMORY_TOOL_DEFINITIONS", { enumerable: true, get: function () { return memory_js_2.MEMORY_TOOL_DEFINITIONS; } });
40
+ var web_js_2 = require("./web.js");
41
+ Object.defineProperty(exports, "WEB_TOOL_DEFINITIONS", { enumerable: true, get: function () { return web_js_2.WEB_TOOL_DEFINITIONS; } });
42
+ var filesystem_js_2 = require("./filesystem.js");
43
+ Object.defineProperty(exports, "FILESYSTEM_TOOL_DEFINITIONS", { enumerable: true, get: function () { return filesystem_js_2.FILESYSTEM_TOOL_DEFINITIONS; } });
44
+ var shell_js_2 = require("./shell.js");
45
+ Object.defineProperty(exports, "SHELL_TOOL_DEFINITIONS", { enumerable: true, get: function () { return shell_js_2.SHELL_TOOL_DEFINITIONS; } });
46
+ var arion_js_2 = require("./arion.js");
47
+ Object.defineProperty(exports, "ARION_TOOL_DEFINITIONS", { enumerable: true, get: function () { return arion_js_2.ARION_TOOL_DEFINITIONS; } });
48
+ var delegation_js_2 = require("./delegation.js");
49
+ Object.defineProperty(exports, "DELEGATION_TOOL_DEFINITIONS", { enumerable: true, get: function () { return delegation_js_2.DELEGATION_TOOL_DEFINITIONS; } });
50
+ var messaging_js_2 = require("./messaging.js");
51
+ Object.defineProperty(exports, "MESSAGING_TOOL_DEFINITIONS", { enumerable: true, get: function () { return messaging_js_2.MESSAGING_TOOL_DEFINITIONS; } });
52
+ var slack_js_2 = require("./slack.js");
53
+ Object.defineProperty(exports, "SLACK_TOOL_DEFINITIONS", { enumerable: true, get: function () { return slack_js_2.SLACK_TOOL_DEFINITIONS; } });
54
+ var outlook_js_2 = require("./outlook.js");
55
+ Object.defineProperty(exports, "OUTLOOK_TOOL_DEFINITIONS", { enumerable: true, get: function () { return outlook_js_2.OUTLOOK_TOOL_DEFINITIONS; } });
56
+ var quip_js_2 = require("./quip.js");
57
+ Object.defineProperty(exports, "QUIP_TOOL_DEFINITIONS", { enumerable: true, get: function () { return quip_js_2.QUIP_TOOL_DEFINITIONS; } });
58
+ var network_js_2 = require("./network.js");
59
+ Object.defineProperty(exports, "NETWORK_TOOL_DEFINITIONS", { enumerable: true, get: function () { return network_js_2.NETWORK_TOOL_DEFINITIONS; } });
60
+ var deploy_js_2 = require("./deploy.js");
61
+ Object.defineProperty(exports, "DEPLOY_TOOL_DEFINITIONS", { enumerable: true, get: function () { return deploy_js_2.DEPLOY_TOOL_DEFINITIONS; } });
62
+ var meta_js_2 = require("./meta.js");
63
+ Object.defineProperty(exports, "META_TOOL_DEFINITIONS", { enumerable: true, get: function () { return meta_js_2.META_TOOL_DEFINITIONS; } });
64
+ var session_history_js_2 = require("./session-history.js");
65
+ Object.defineProperty(exports, "SESSION_HISTORY_TOOL_DEFINITIONS", { enumerable: true, get: function () { return session_history_js_2.SESSION_HISTORY_TOOL_DEFINITIONS; } });
66
+ var frg_js_2 = require("./frg.js");
67
+ Object.defineProperty(exports, "FRG_TOOL_DEFINITIONS", { enumerable: true, get: function () { return frg_js_2.FRG_TOOL_DEFINITIONS; } });
68
+ var code_intelligence_js_2 = require("./code-intelligence.js");
69
+ Object.defineProperty(exports, "CODE_INTELLIGENCE_TOOL_DEFINITIONS", { enumerable: true, get: function () { return code_intelligence_js_2.CODE_INTELLIGENCE_TOOL_DEFINITIONS; } });
70
+ var search_js_2 = require("./search.js");
71
+ Object.defineProperty(exports, "SEARCH_TOOL_DEFINITIONS", { enumerable: true, get: function () { return search_js_2.SEARCH_TOOL_DEFINITIONS; } });
72
+ /**
73
+ * All core tool definitions
74
+ */
75
+ exports.CORE_TOOL_DEFINITIONS = [
76
+ // Memory tools (5)
77
+ ...memory_js_1.MEMORY_TOOL_DEFINITIONS,
78
+ // Web tools (3 + browser)
79
+ ...web_js_1.WEB_TOOL_DEFINITIONS,
80
+ index_js_1.browserTool,
81
+ // Filesystem tools (6: read_file, write_file, edit_file, glob, ls, apply_patch)
82
+ ...filesystem_js_1.FILESYSTEM_TOOL_DEFINITIONS,
83
+ // Shell tools (7 + process)
84
+ ...shell_js_1.SHELL_TOOL_DEFINITIONS,
85
+ index_js_2.processTool,
86
+ // Arion tools (4)
87
+ ...arion_js_1.ARION_TOOL_DEFINITIONS,
88
+ // Delegation tools (7): delegate_arion, spawn_worker, check_delegation, pause_delegation, resume_delegation, delegate_remote, quest_report
89
+ ...delegation_js_1.DELEGATION_TOOL_DEFINITIONS,
90
+ // Messaging tools (6): send_message, check_messages, search_messages, get_thread, check_slack_messages, send_slack_message
91
+ ...messaging_js_1.MESSAGING_TOOL_DEFINITIONS,
92
+ ...slack_js_1.SLACK_TOOL_DEFINITIONS,
93
+ ...outlook_js_1.OUTLOOK_TOOL_DEFINITIONS,
94
+ ...quip_js_1.QUIP_TOOL_DEFINITIONS,
95
+ // Network tools (2): manage_network + list_clients
96
+ ...network_js_1.NETWORK_TOOL_DEFINITIONS,
97
+ // Deploy tools (1): deploy (SSH remote deployment)
98
+ ...deploy_js_1.DEPLOY_TOOL_DEFINITIONS,
99
+ // Meta tools (10): ask_user/quest plus learning/meta capability tools
100
+ ...meta_js_1.META_TOOL_DEFINITIONS,
101
+ // Session History tools (1): session_history (list/search/get/current/stats/delete/set_title)
102
+ ...session_history_js_1.SESSION_HISTORY_TOOL_DEFINITIONS,
103
+ // Fast regex native tool (1): frg (index/search/status/update/replace)
104
+ ...frg_js_1.FRG_TOOL_DEFINITIONS,
105
+ // Code Intelligence tools (7): rg, ug, probe, sg, cbm, serena, fff
106
+ ...code_intelligence_js_1.CODE_INTELLIGENCE_TOOL_DEFINITIONS,
107
+ // Native indexed grep (1): grep (replaces TS grep with n-gram indexed Rust NAPI)
108
+ ...search_js_1.SEARCH_TOOL_DEFINITIONS,
109
+ ];
110
+ /**
111
+ * Get all core tools
112
+ */
113
+ function getCoreTools() {
114
+ return exports.CORE_TOOL_DEFINITIONS;
115
+ }
116
+ /**
117
+ * Get a core tool by name
118
+ */
119
+ function getCoreTool(name) {
120
+ return exports.CORE_TOOL_DEFINITIONS.find((tool) => tool.name === name);
121
+ }
122
+ /**
123
+ * Get all tools in a category
124
+ */
125
+ function getCoreToolsByCategory(category) {
126
+ return exports.CORE_TOOL_DEFINITIONS.filter((tool) => tool.category === category);
127
+ }
128
+ /**
129
+ * Get all tools by risk level
130
+ */
131
+ function getCoreToolsByRiskLevel(riskLevel) {
132
+ return exports.CORE_TOOL_DEFINITIONS.filter((tool) => tool.riskLevel === riskLevel);
133
+ }
134
+ //# sourceMappingURL=core.js.map