@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,350 @@
1
+ /**
2
+ * Meta tool definitions
3
+ *
4
+ * Tools:
5
+ * - ask_user, quest_update, quest_list
6
+ * - search, learn_tool, learn_skill
7
+ * - create_tool, create_skill, use_skill
8
+ */
9
+ import { executeAskUser, executeQuestUpdate, executeQuestList, executeSearchKnowledge, executeLearnLegacy, executeCreateTool, executeCreateSkill, executeUseSkill, executeRestart, executeSelfDiagnose, } from "../executors/index.js";
10
+ const ask_user = {
11
+ name: "ask_user",
12
+ description: "Ask the user clarifying questions. Supports optional multiple-choice answers. Use when you need user input to proceed.",
13
+ category: "meta",
14
+ parameters: {
15
+ type: "object",
16
+ properties: {
17
+ questions: {
18
+ type: "array",
19
+ description: "List of questions to ask the user",
20
+ items: {
21
+ type: "object",
22
+ properties: {
23
+ question: {
24
+ type: "string",
25
+ description: "The question to ask",
26
+ },
27
+ options: {
28
+ type: "array",
29
+ items: { type: "string" },
30
+ description: "Optional multiple-choice answers",
31
+ },
32
+ },
33
+ required: ["question"],
34
+ },
35
+ },
36
+ },
37
+ required: ["questions"],
38
+ },
39
+ riskLevel: "moderate",
40
+ // Human interaction is a resumable barrier, not a parallel read-only batch item.
41
+ isReadOnly: false,
42
+ loadingTier: "always",
43
+ execute: executeAskUser,
44
+ };
45
+ const quest_update = {
46
+ name: "quest_update",
47
+ description: "Create, update, or complete quests (task tracking). Quests persist in a structured database across sessions.",
48
+ category: "meta",
49
+ parameters: {
50
+ type: "object",
51
+ properties: {
52
+ quests: {
53
+ type: "array",
54
+ description: "List of quests to create or update",
55
+ items: {
56
+ type: "object",
57
+ properties: {
58
+ id: {
59
+ type: "string",
60
+ description: "Quest ID (omit to create a new quest)",
61
+ },
62
+ title: {
63
+ type: "string",
64
+ description: "Quest title",
65
+ },
66
+ status: {
67
+ type: "string",
68
+ enum: ["open", "active", "blocked", "done"],
69
+ description: "Quest status: open (ready), active (in progress), blocked, done",
70
+ },
71
+ priority: {
72
+ type: "number",
73
+ description: "Priority 0-4 (0 = highest, default 2)",
74
+ minimum: 0,
75
+ maximum: 4,
76
+ },
77
+ blocked_by: {
78
+ type: "string",
79
+ description: "ID of quest blocking this one",
80
+ },
81
+ notes: {
82
+ type: "string",
83
+ description: "Progress notes or context",
84
+ },
85
+ },
86
+ required: [],
87
+ },
88
+ },
89
+ },
90
+ required: ["quests"],
91
+ },
92
+ riskLevel: "moderate",
93
+ isReadOnly: false,
94
+ loadingTier: "always",
95
+ execute: executeQuestUpdate,
96
+ };
97
+ const quest_list = {
98
+ name: "quest_list",
99
+ description: "List current quests with their status, priority, and dependencies.",
100
+ category: "meta",
101
+ parameters: {
102
+ type: "object",
103
+ properties: {
104
+ status: {
105
+ type: "string",
106
+ enum: ["all", "open", "active", "blocked", "done"],
107
+ description: "Filter by status (default: all)",
108
+ default: "all",
109
+ },
110
+ },
111
+ required: [],
112
+ },
113
+ riskLevel: "safe",
114
+ isReadOnly: true,
115
+ loadingTier: "always",
116
+ execute: executeQuestList,
117
+ };
118
+ const search = {
119
+ name: "search",
120
+ description: "Search for tools, skills, and capabilities across Memoria, local skill files, skill registries, and optional web/package sources.",
121
+ category: "meta",
122
+ parameters: {
123
+ type: "object",
124
+ properties: {
125
+ query: {
126
+ type: "string",
127
+ description: "What to find — tool name, skill name, or capability description",
128
+ },
129
+ sources: {
130
+ type: "array",
131
+ items: {
132
+ type: "string",
133
+ enum: ["memoria", "local", "registry", "web"],
134
+ },
135
+ default: ["memoria", "local", "registry"],
136
+ description: "Where to search. memoria=learned tools/skills, local=SKILL.md files, registry=skills.sh+clawhub, web=npm/brew+general",
137
+ },
138
+ limit: { type: "number", minimum: 1, maximum: 50, default: 10 },
139
+ },
140
+ required: ["query"],
141
+ },
142
+ riskLevel: "safe",
143
+ isReadOnly: true,
144
+ loadingTier: "always",
145
+ execute: executeSearchKnowledge,
146
+ };
147
+ const learn_tool = {
148
+ name: "learn_tool",
149
+ description: "Learn a CLI tool from `<command> --help` and persist it as callable tool knowledge. (Deprecated — use learn instead)",
150
+ category: "meta",
151
+ parameters: {
152
+ type: "object",
153
+ properties: {
154
+ command: { type: "string", description: "CLI command name (supports subcommands)" },
155
+ name: { type: "string" },
156
+ description: { type: "string" },
157
+ category: {
158
+ type: "string",
159
+ enum: ["filesystem", "code", "shell", "web", "data", "memory", "meta", "arion"],
160
+ },
161
+ },
162
+ required: ["command"],
163
+ },
164
+ riskLevel: "moderate",
165
+ isReadOnly: false,
166
+ loadingTier: "always",
167
+ execute: (input, ctx) => executeLearnLegacy({ source: { type: "cli", command: String(input.command ?? "") } }, ctx),
168
+ };
169
+ const learn_skill = {
170
+ name: "learn_skill",
171
+ description: "Learn a skill from a SKILL.md file or inline content and persist it in Memoria. (Deprecated — use learn instead)",
172
+ category: "meta",
173
+ parameters: {
174
+ type: "object",
175
+ properties: {
176
+ path: { type: "string", description: "Path to SKILL.md (optional if using inline content)" },
177
+ name: { type: "string" },
178
+ description: { type: "string" },
179
+ content: { type: "string" },
180
+ tags: { type: "array", items: { type: "string" } },
181
+ toolIds: { type: "array", items: { type: "string" } },
182
+ },
183
+ required: [],
184
+ },
185
+ riskLevel: "moderate",
186
+ isReadOnly: false,
187
+ loadingTier: "always",
188
+ execute: (input, ctx) => executeLearnLegacy({ source: { type: "file", path: String(input.path ?? "") } }, ctx),
189
+ };
190
+ const learn = {
191
+ name: "learn",
192
+ description: "Backward-compatible learning tool. Delegates to learn_tool (CLI) or learn_skill (file).",
193
+ category: "meta",
194
+ parameters: {
195
+ type: "object",
196
+ properties: {
197
+ source: {
198
+ type: "object",
199
+ properties: {
200
+ type: { type: "string", enum: ["cli", "file"] },
201
+ command: { type: "string" },
202
+ path: { type: "string" },
203
+ },
204
+ required: ["type"],
205
+ },
206
+ },
207
+ required: ["source"],
208
+ },
209
+ riskLevel: "moderate",
210
+ isReadOnly: false,
211
+ loadingTier: "always",
212
+ execute: executeLearnLegacy,
213
+ };
214
+ const create_tool = {
215
+ name: "create_tool",
216
+ description: "Create a reusable script-backed tool and save it to Memoria for future discovery/use.",
217
+ category: "meta",
218
+ parameters: {
219
+ type: "object",
220
+ properties: {
221
+ name: { type: "string" },
222
+ description: { type: "string" },
223
+ command: {
224
+ type: "string",
225
+ description: "Shell command to wrap (optional if script provided)",
226
+ },
227
+ script: {
228
+ type: "string",
229
+ description: "Script body to write (optional if command provided)",
230
+ },
231
+ argsSchema: { type: "object", additionalProperties: true },
232
+ tags: { type: "array", items: { type: "string" } },
233
+ },
234
+ required: ["name", "description"],
235
+ },
236
+ riskLevel: "dangerous",
237
+ isReadOnly: false,
238
+ loadingTier: "always",
239
+ execute: executeCreateTool,
240
+ };
241
+ const create_skill = {
242
+ name: "create_skill",
243
+ description: "Create a reusable skill/procedure and optionally link it to the current arion profile.",
244
+ category: "meta",
245
+ parameters: {
246
+ type: "object",
247
+ properties: {
248
+ name: { type: "string" },
249
+ description: { type: "string" },
250
+ content: { type: "string" },
251
+ level: { type: "string", enum: ["beginner", "intermediate", "advanced", "expert"] },
252
+ tags: { type: "array", items: { type: "string" } },
253
+ toolIds: { type: "array", items: { type: "string" } },
254
+ },
255
+ required: ["name", "description", "content"],
256
+ },
257
+ riskLevel: "moderate",
258
+ isReadOnly: false,
259
+ loadingTier: "always",
260
+ execute: executeCreateSkill,
261
+ };
262
+ const use_skill = {
263
+ name: "use_skill",
264
+ description: "Retrieve a learned skill by name/id and record its execution metrics.",
265
+ category: "meta",
266
+ parameters: {
267
+ type: "object",
268
+ properties: {
269
+ name: { type: "string" },
270
+ skillId: { type: "string" },
271
+ success: { type: "boolean", default: true },
272
+ durationMs: { type: "number" },
273
+ notes: { type: "string" },
274
+ },
275
+ required: [],
276
+ },
277
+ riskLevel: "safe",
278
+ isReadOnly: false,
279
+ loadingTier: "always",
280
+ execute: executeUseSkill,
281
+ };
282
+ const restart = {
283
+ name: "restart",
284
+ description: "Restart ARIA through the RelaunchSupervisor. Use when you need to pick up code changes after a build, recover from a corrupted state, or when explicitly asked to restart. Fails closed when no supervisor is attached.",
285
+ category: "meta",
286
+ parameters: {
287
+ type: "object",
288
+ properties: {
289
+ reason: {
290
+ type: "string",
291
+ description: "Why the restart is needed (logged for diagnostics)",
292
+ },
293
+ },
294
+ },
295
+ riskLevel: "dangerous",
296
+ requiresConfirmation: true,
297
+ loadingTier: "always",
298
+ execute: executeRestart,
299
+ };
300
+ const self_diagnose = {
301
+ name: "self_diagnose",
302
+ description: "Gather comprehensive diagnostic context for debugging ARIA's own errors, crashes, and runtime issues. Returns structured data from configs, error logs, crash dumps, databases, active quests, sessions, network, and model state — all in one call. Use this as the first step when investigating any ARIA bug or unexpected behavior.",
303
+ category: "meta",
304
+ parameters: {
305
+ type: "object",
306
+ properties: {
307
+ focus: {
308
+ type: "string",
309
+ description: "Optional keyword to filter errors/crashes (e.g. 'quest_update', 'OOM', 'crash')",
310
+ },
311
+ sections: {
312
+ type: "array",
313
+ items: {
314
+ type: "string",
315
+ enum: ["runtime", "errors", "crashes", "databases", "daemon", "network"],
316
+ },
317
+ description: "Optional subset of sections to return (default: all 6)",
318
+ },
319
+ since: {
320
+ type: "string",
321
+ description: "ISO timestamp cutoff — only show events after this (default: last 1h)",
322
+ },
323
+ limit: {
324
+ type: "number",
325
+ description: "Max entries per section (default: 10)",
326
+ default: 10,
327
+ },
328
+ },
329
+ },
330
+ riskLevel: "safe",
331
+ isReadOnly: true,
332
+ loadingTier: "always",
333
+ execute: executeSelfDiagnose,
334
+ };
335
+ /** Meta tool definitions */
336
+ export const META_TOOL_DEFINITIONS = [
337
+ ask_user,
338
+ quest_update,
339
+ quest_list,
340
+ search,
341
+ learn,
342
+ learn_tool,
343
+ learn_skill,
344
+ create_tool,
345
+ create_skill,
346
+ use_skill,
347
+ restart,
348
+ self_diagnose,
349
+ ];
350
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1,160 @@
1
+ /**
2
+ * Network management tool definitions.
3
+ *
4
+ * Tools: manage_network, list_clients (2 tools)
5
+ *
6
+ * ARIA manages its own secure WireGuard network. The LLM uses this tool
7
+ * to invite peers, revoke access, list connections, and check status.
8
+ * No user configuration needed — the network auto-creates on first run.
9
+ */
10
+ import { z } from "zod";
11
+ import { tool } from "../tool-factory.js";
12
+ import { NodeIdSchema } from "../network-runtime/index.js";
13
+ /**
14
+ * Network management — ARIA manages its own secure mesh network.
15
+ *
16
+ * Actions:
17
+ * invite: Generate an invite token for a new peer
18
+ * revoke: Remove a peer from the network
19
+ * list_peers: List all connected Arions
20
+ * status: Network health/connectivity status
21
+ */
22
+ const manage_network = tool({
23
+ name: "manage_network",
24
+ description: "Manage ARIA's secure WireGuard mesh network. Invite peers to the network, " +
25
+ "revoke access, list connected Arions, or check network status. " +
26
+ "The network auto-creates on first run — no user configuration needed.",
27
+ parameters: z.object({
28
+ action: z
29
+ .enum(["invite", "revoke", "list_peers", "status"])
30
+ .describe("Network management action"),
31
+ displayName: z.string().optional().describe("Optional local label for the invite"),
32
+ nodeId: NodeIdSchema.optional().describe("Durable remote node id (required for revoke)"),
33
+ duration: z.number().optional().describe("Invite token validity in ms (default: no expiry)"),
34
+ }),
35
+ category: "arion",
36
+ riskLevel: "moderate",
37
+ isReadOnly: false,
38
+ execute: async (input, context) => {
39
+ // Network management requires the Memoria DB for peer registry
40
+ // The actual implementation lives in @aria-cli/wireguard — we only call it here
41
+ // through the runtime-owned control surface when it is wired in.
42
+ const networkControl = context.networkControl;
43
+ if (!networkControl) {
44
+ return {
45
+ success: false,
46
+ message: "Network manager not available. Secure networking requires the @aria-cli/wireguard package.",
47
+ };
48
+ }
49
+ switch (input.action) {
50
+ case "invite": {
51
+ try {
52
+ const result = networkControl.invite(input.displayName, input.duration);
53
+ const inviteLabel = input.displayName?.trim();
54
+ return {
55
+ success: true,
56
+ message: `${inviteLabel ? `Invite token for "${inviteLabel}":\n\n` : "Invite token:\n\n"}${result.token}\n\n` +
57
+ `Token security model: bearer credential in plaintext payload form. ` +
58
+ `Share only via secure channels. They can join with: aria pairing join <token>`,
59
+ data: { token: result.token, ...(inviteLabel ? { displayName: inviteLabel } : {}) },
60
+ };
61
+ }
62
+ catch (e) {
63
+ return { success: false, message: `invite failed: ${e.message}` };
64
+ }
65
+ }
66
+ case "revoke": {
67
+ if (!input.nodeId) {
68
+ return { success: false, message: "nodeId is required for revoke action" };
69
+ }
70
+ const revoked = networkControl.revokePeer(NodeIdSchema.parse(input.nodeId));
71
+ if (!revoked) {
72
+ return { success: false, message: `node "${input.nodeId}" not found` };
73
+ }
74
+ return {
75
+ success: true,
76
+ message: `Revoked access for "${input.nodeId}". They will be disconnected.`,
77
+ data: { nodeId: input.nodeId, revoked: true },
78
+ };
79
+ }
80
+ case "list_peers": {
81
+ const peers = networkControl.listPeers();
82
+ if (peers.length === 0) {
83
+ return {
84
+ success: true,
85
+ message: "No peers connected. Use manage_network(invite) to add peers.",
86
+ data: { peers: [] },
87
+ };
88
+ }
89
+ const networkSummary = peers
90
+ .map((p) => `${p.displayNameSnapshot ?? p.nodeId} (membership=${p.membershipStatus ?? p.status}, route=${p.routeOwnership ?? "current"}, session=${p.sessionState ?? "none"}, delivery=${p.deliveryReadiness ?? "cannot_address"}) — ${p.endpointHost ?? "unknown"}:${p.endpointPort ?? "?"}`)
91
+ .join("\n");
92
+ return {
93
+ success: true,
94
+ message: `${peers.length} peer(s):\n${networkSummary}`,
95
+ data: { peers },
96
+ };
97
+ }
98
+ case "status": {
99
+ const status = networkControl.status();
100
+ // Include signing public key for message signature verification
101
+ const signingPublicKey = status.signingPublicKey ?? null;
102
+ return {
103
+ success: true,
104
+ message: status.configured
105
+ ? `Network active. Node: ${status.nodeId?.slice(0, 12) ?? "unknown"}... ` +
106
+ `Transport: ${status.transportPublicKey?.slice(0, 12) ?? "unknown"}... ` +
107
+ `Port: ${status.listenPort}. ` +
108
+ `External: ${status.externalEndpoint ? `${status.externalEndpoint.address}:${status.externalEndpoint.port}` : "unknown"}. ` +
109
+ `Peers: ${status.activePeers} trusted / ${status.totalPeers} total. ` +
110
+ `Sessions: ${status.connectedPeers ?? 0} connected, ${status.handshakingPeers ?? 0} handshaking. ` +
111
+ `Delivery: ${status.queueOnlyPeers ?? 0} queue-only, ${status.supersededPeers ?? 0} superseded.` +
112
+ (signingPublicKey ? ` Signing key: ${signingPublicKey.slice(0, 12)}...` : "")
113
+ : "Network not configured. It will be created automatically on next startup.",
114
+ data: { ...status, signingPublicKey },
115
+ };
116
+ }
117
+ default:
118
+ return { success: false, message: `Unknown action: ${input.action}` };
119
+ }
120
+ },
121
+ });
122
+ /** Network tool definitions (1) */
123
+ const list_clients = tool({
124
+ name: "list_clients",
125
+ description: "List same-home attached clients that share this runtime. Use this before sending a direct local message to another attached terminal by exact clientId.",
126
+ parameters: z.object({}),
127
+ category: "arion",
128
+ riskLevel: "safe",
129
+ isReadOnly: true,
130
+ execute: async (_input, context) => {
131
+ const networkControl = context.networkControl;
132
+ const listAttachedClients = networkControl?.listAttachedClients;
133
+ if (!listAttachedClients) {
134
+ return {
135
+ success: false,
136
+ message: "Same-home client directory is not available for this runtime.",
137
+ };
138
+ }
139
+ const clients = await Promise.resolve(listAttachedClients());
140
+ const selfClient = clients.find((client) => client.self) ?? null;
141
+ const otherClients = clients.filter((client) => !client.self);
142
+ if (clients.length === 0) {
143
+ return {
144
+ success: true,
145
+ message: "No same-home attached clients are currently available.",
146
+ data: { clients: [], otherClients: [], selfClient: null },
147
+ };
148
+ }
149
+ return {
150
+ success: true,
151
+ message: otherClients.length > 0
152
+ ? `${otherClients.length} other same-home client(s) available`
153
+ : "No other same-home attached clients are currently available.",
154
+ data: { clients, otherClients, selfClient },
155
+ };
156
+ },
157
+ });
158
+ /** Network tool definitions (2) */
159
+ export const NETWORK_TOOL_DEFINITIONS = [manage_network, list_clients];
160
+ //# sourceMappingURL=network.js.map