@xylabs/aries 0.1.1

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 (421) hide show
  1. package/README.md +693 -0
  2. package/dist/actions/audit/auditPaths.mjs +22 -0
  3. package/dist/actions/audit/auditPaths.mjs.map +1 -0
  4. package/dist/actions/audit/index.mjs +739 -0
  5. package/dist/actions/audit/index.mjs.map +1 -0
  6. package/dist/actions/audit/installPlugin.mjs +298 -0
  7. package/dist/actions/audit/installPlugin.mjs.map +1 -0
  8. package/dist/actions/audit/listSessions.mjs +93 -0
  9. package/dist/actions/audit/listSessions.mjs.map +1 -0
  10. package/dist/actions/audit/openAuditDir.mjs +44 -0
  11. package/dist/actions/audit/openAuditDir.mjs.map +1 -0
  12. package/dist/actions/audit/searchAudit.mjs +77 -0
  13. package/dist/actions/audit/searchAudit.mjs.map +1 -0
  14. package/dist/actions/audit/showAiMeta.mjs +105 -0
  15. package/dist/actions/audit/showAiMeta.mjs.map +1 -0
  16. package/dist/actions/audit/showSession.mjs +105 -0
  17. package/dist/actions/audit/showSession.mjs.map +1 -0
  18. package/dist/actions/audit/statusAudit.mjs +98 -0
  19. package/dist/actions/audit/statusAudit.mjs.map +1 -0
  20. package/dist/actions/clamp/clampAudit.mjs +53 -0
  21. package/dist/actions/clamp/clampAudit.mjs.map +1 -0
  22. package/dist/actions/clamp/index.mjs +2258 -0
  23. package/dist/actions/clamp/index.mjs.map +1 -0
  24. package/dist/actions/clamp/ipcServer.mjs +55 -0
  25. package/dist/actions/clamp/ipcServer.mjs.map +1 -0
  26. package/dist/actions/clamp/policyManagement.mjs +144 -0
  27. package/dist/actions/clamp/policyManagement.mjs.map +1 -0
  28. package/dist/actions/clamp/promptUser.mjs +91 -0
  29. package/dist/actions/clamp/promptUser.mjs.map +1 -0
  30. package/dist/actions/clamp/runClamped.mjs +2107 -0
  31. package/dist/actions/clamp/runClamped.mjs.map +1 -0
  32. package/dist/actions/clamp/sandboxExec.mjs +1612 -0
  33. package/dist/actions/clamp/sandboxExec.mjs.map +1 -0
  34. package/dist/actions/clamp/shellEnvSetup.mjs +59 -0
  35. package/dist/actions/clamp/shellEnvSetup.mjs.map +1 -0
  36. package/dist/actions/clamp/shimGenerator.mjs +68 -0
  37. package/dist/actions/clamp/shimGenerator.mjs.map +1 -0
  38. package/dist/actions/clamp/terminalRenderer.mjs +145 -0
  39. package/dist/actions/clamp/terminalRenderer.mjs.map +1 -0
  40. package/dist/actions/datalake/audit/auditLog.mjs +191 -0
  41. package/dist/actions/datalake/audit/auditLog.mjs.map +1 -0
  42. package/dist/actions/datalake/createDatalake.mjs +127 -0
  43. package/dist/actions/datalake/createDatalake.mjs.map +1 -0
  44. package/dist/actions/datalake/describeDatalake.mjs +159 -0
  45. package/dist/actions/datalake/describeDatalake.mjs.map +1 -0
  46. package/dist/actions/datalake/destroyDatalake.mjs +34 -0
  47. package/dist/actions/datalake/destroyDatalake.mjs.map +1 -0
  48. package/dist/actions/datalake/dev/downDevServer.mjs +102 -0
  49. package/dist/actions/datalake/dev/downDevServer.mjs.map +1 -0
  50. package/dist/actions/datalake/dev/index.mjs +369 -0
  51. package/dist/actions/datalake/dev/index.mjs.map +1 -0
  52. package/dist/actions/datalake/dev/logsDevServer.mjs +44 -0
  53. package/dist/actions/datalake/dev/logsDevServer.mjs.map +1 -0
  54. package/dist/actions/datalake/dev/paths.mjs +25 -0
  55. package/dist/actions/datalake/dev/paths.mjs.map +1 -0
  56. package/dist/actions/datalake/dev/resetDevServer.mjs +118 -0
  57. package/dist/actions/datalake/dev/resetDevServer.mjs.map +1 -0
  58. package/dist/actions/datalake/dev/resolveServerBin.mjs +26 -0
  59. package/dist/actions/datalake/dev/resolveServerBin.mjs.map +1 -0
  60. package/dist/actions/datalake/dev/state.mjs +62 -0
  61. package/dist/actions/datalake/dev/state.mjs.map +1 -0
  62. package/dist/actions/datalake/dev/statusDevServer.mjs +101 -0
  63. package/dist/actions/datalake/dev/statusDevServer.mjs.map +1 -0
  64. package/dist/actions/datalake/dev/upDevServer.mjs +221 -0
  65. package/dist/actions/datalake/dev/upDevServer.mjs.map +1 -0
  66. package/dist/actions/datalake/dev/waitForHealth.mjs +22 -0
  67. package/dist/actions/datalake/dev/waitForHealth.mjs.map +1 -0
  68. package/dist/actions/datalake/formatters.mjs +90 -0
  69. package/dist/actions/datalake/formatters.mjs.map +1 -0
  70. package/dist/actions/datalake/grantAccess.mjs +116 -0
  71. package/dist/actions/datalake/grantAccess.mjs.map +1 -0
  72. package/dist/actions/datalake/index.mjs +361 -0
  73. package/dist/actions/datalake/index.mjs.map +1 -0
  74. package/dist/actions/datalake/listDatalakes.mjs +54 -0
  75. package/dist/actions/datalake/listDatalakes.mjs.map +1 -0
  76. package/dist/actions/datalake/login.mjs +20 -0
  77. package/dist/actions/datalake/login.mjs.map +1 -0
  78. package/dist/actions/datalake/logout.mjs +11 -0
  79. package/dist/actions/datalake/logout.mjs.map +1 -0
  80. package/dist/actions/datalake/mintToken.mjs +37 -0
  81. package/dist/actions/datalake/mintToken.mjs.map +1 -0
  82. package/dist/actions/datalake/parseSize.mjs +21 -0
  83. package/dist/actions/datalake/parseSize.mjs.map +1 -0
  84. package/dist/actions/datalake/payloads/fetchPayload.mjs +76 -0
  85. package/dist/actions/datalake/payloads/fetchPayload.mjs.map +1 -0
  86. package/dist/actions/datalake/payloads/index.mjs +271 -0
  87. package/dist/actions/datalake/payloads/index.mjs.map +1 -0
  88. package/dist/actions/datalake/payloads/mintAndConnect.mjs +46 -0
  89. package/dist/actions/datalake/payloads/mintAndConnect.mjs.map +1 -0
  90. package/dist/actions/datalake/payloads/parsePayloadsFile.mjs +71 -0
  91. package/dist/actions/datalake/payloads/parsePayloadsFile.mjs.map +1 -0
  92. package/dist/actions/datalake/payloads/pushPayloads.mjs +181 -0
  93. package/dist/actions/datalake/payloads/pushPayloads.mjs.map +1 -0
  94. package/dist/actions/datalake/payloads/tailPayloads.mjs +106 -0
  95. package/dist/actions/datalake/payloads/tailPayloads.mjs.map +1 -0
  96. package/dist/actions/datalake/resolveTarget.mjs +15 -0
  97. package/dist/actions/datalake/resolveTarget.mjs.map +1 -0
  98. package/dist/actions/datalake/revokeAccess.mjs +108 -0
  99. package/dist/actions/datalake/revokeAccess.mjs.map +1 -0
  100. package/dist/actions/datalake/useDatalake.mjs +22 -0
  101. package/dist/actions/datalake/useDatalake.mjs.map +1 -0
  102. package/dist/actions/detect/detectAiClients.mjs +405 -0
  103. package/dist/actions/detect/detectAiClients.mjs.map +1 -0
  104. package/dist/actions/detect/index.mjs +405 -0
  105. package/dist/actions/detect/index.mjs.map +1 -0
  106. package/dist/actions/hash/algorithms/blockhash.mjs +61 -0
  107. package/dist/actions/hash/algorithms/blockhash.mjs.map +1 -0
  108. package/dist/actions/hash/algorithms/chromaprint.mjs +205 -0
  109. package/dist/actions/hash/algorithms/chromaprint.mjs.map +1 -0
  110. package/dist/actions/hash/algorithms/dhash.mjs +75 -0
  111. package/dist/actions/hash/algorithms/dhash.mjs.map +1 -0
  112. package/dist/actions/hash/algorithms/index.mjs +818 -0
  113. package/dist/actions/hash/algorithms/index.mjs.map +1 -0
  114. package/dist/actions/hash/algorithms/nilsimsa.mjs +27 -0
  115. package/dist/actions/hash/algorithms/nilsimsa.mjs.map +1 -0
  116. package/dist/actions/hash/algorithms/pdq.mjs +83 -0
  117. package/dist/actions/hash/algorithms/pdq.mjs.map +1 -0
  118. package/dist/actions/hash/algorithms/phash.mjs +71 -0
  119. package/dist/actions/hash/algorithms/phash.mjs.map +1 -0
  120. package/dist/actions/hash/algorithms/sha256.mjs +24 -0
  121. package/dist/actions/hash/algorithms/sha256.mjs.map +1 -0
  122. package/dist/actions/hash/algorithms/ssdeep.mjs +203 -0
  123. package/dist/actions/hash/algorithms/ssdeep.mjs.map +1 -0
  124. package/dist/actions/hash/algorithms/tlsh.mjs +66 -0
  125. package/dist/actions/hash/algorithms/tlsh.mjs.map +1 -0
  126. package/dist/actions/hash/algorithms/types.mjs +1 -0
  127. package/dist/actions/hash/algorithms/types.mjs.map +1 -0
  128. package/dist/actions/hash/algorithms/videoFrames.mjs +404 -0
  129. package/dist/actions/hash/algorithms/videoFrames.mjs.map +1 -0
  130. package/dist/actions/hash/algorithms/xyo.mjs +30 -0
  131. package/dist/actions/hash/algorithms/xyo.mjs.map +1 -0
  132. package/dist/actions/hash/compareHashes.mjs +823 -0
  133. package/dist/actions/hash/compareHashes.mjs.map +1 -0
  134. package/dist/actions/hash/hashInput.mjs +868 -0
  135. package/dist/actions/hash/hashInput.mjs.map +1 -0
  136. package/dist/actions/hash/index.mjs +881 -0
  137. package/dist/actions/hash/index.mjs.map +1 -0
  138. package/dist/actions/hash/lib/hamming.mjs +44 -0
  139. package/dist/actions/hash/lib/hamming.mjs.map +1 -0
  140. package/dist/actions/hash/lib/levenshtein.mjs +36 -0
  141. package/dist/actions/hash/lib/levenshtein.mjs.map +1 -0
  142. package/dist/actions/hash/lib/runBinary.mjs +54 -0
  143. package/dist/actions/hash/lib/runBinary.mjs.map +1 -0
  144. package/dist/actions/hash/lib/which.mjs +36 -0
  145. package/dist/actions/hash/lib/which.mjs.map +1 -0
  146. package/dist/actions/hash/lib/withTempfile.mjs +19 -0
  147. package/dist/actions/hash/lib/withTempfile.mjs.map +1 -0
  148. package/dist/actions/index.mjs +4615 -0
  149. package/dist/actions/index.mjs.map +1 -0
  150. package/dist/actions/printVersion.mjs +12 -0
  151. package/dist/actions/printVersion.mjs.map +1 -0
  152. package/dist/actions/sync/index.mjs +51 -0
  153. package/dist/actions/sync/index.mjs.map +1 -0
  154. package/dist/actions/sync/syncAiConfig.mjs +51 -0
  155. package/dist/actions/sync/syncAiConfig.mjs.map +1 -0
  156. package/dist/actions/wallet/account/deriveAndAdd.mjs +394 -0
  157. package/dist/actions/wallet/account/deriveAndAdd.mjs.map +1 -0
  158. package/dist/actions/wallet/account/getActiveWallet.mjs +338 -0
  159. package/dist/actions/wallet/account/getActiveWallet.mjs.map +1 -0
  160. package/dist/actions/wallet/account/labelAccount.mjs +389 -0
  161. package/dist/actions/wallet/account/labelAccount.mjs.map +1 -0
  162. package/dist/actions/wallet/account/listAccounts.mjs +374 -0
  163. package/dist/actions/wallet/account/listAccounts.mjs.map +1 -0
  164. package/dist/actions/wallet/account/removeAccount.mjs +384 -0
  165. package/dist/actions/wallet/account/removeAccount.mjs.map +1 -0
  166. package/dist/actions/wallet/account/showAccount.mjs +368 -0
  167. package/dist/actions/wallet/account/showAccount.mjs.map +1 -0
  168. package/dist/actions/wallet/addressBook/storage.mjs +110 -0
  169. package/dist/actions/wallet/addressBook/storage.mjs.map +1 -0
  170. package/dist/actions/wallet/backup/exportBackup.mjs +93 -0
  171. package/dist/actions/wallet/backup/exportBackup.mjs.map +1 -0
  172. package/dist/actions/wallet/backup/importBackup.mjs +142 -0
  173. package/dist/actions/wallet/backup/importBackup.mjs.map +1 -0
  174. package/dist/actions/wallet/balance/getBalance.mjs +434 -0
  175. package/dist/actions/wallet/balance/getBalance.mjs.map +1 -0
  176. package/dist/actions/wallet/client/walletClient.mjs +64 -0
  177. package/dist/actions/wallet/client/walletClient.mjs.map +1 -0
  178. package/dist/actions/wallet/contact/contactActions.mjs +120 -0
  179. package/dist/actions/wallet/contact/contactActions.mjs.map +1 -0
  180. package/dist/actions/wallet/contact/storage.mjs +69 -0
  181. package/dist/actions/wallet/contact/storage.mjs.map +1 -0
  182. package/dist/actions/wallet/index.mjs +1439 -0
  183. package/dist/actions/wallet/index.mjs.map +1 -0
  184. package/dist/actions/wallet/network/networkActions.mjs +137 -0
  185. package/dist/actions/wallet/network/networkActions.mjs.map +1 -0
  186. package/dist/actions/wallet/network/storage.mjs +93 -0
  187. package/dist/actions/wallet/network/storage.mjs.map +1 -0
  188. package/dist/actions/wallet/password/changePassword.mjs +282 -0
  189. package/dist/actions/wallet/password/changePassword.mjs.map +1 -0
  190. package/dist/actions/wallet/password/getActiveKey.mjs +297 -0
  191. package/dist/actions/wallet/password/getActiveKey.mjs.map +1 -0
  192. package/dist/actions/wallet/password/initOrUnlock.mjs +337 -0
  193. package/dist/actions/wallet/password/initOrUnlock.mjs.map +1 -0
  194. package/dist/actions/wallet/password/passwordStorage.mjs +69 -0
  195. package/dist/actions/wallet/password/passwordStorage.mjs.map +1 -0
  196. package/dist/actions/wallet/password/setPassword.mjs +138 -0
  197. package/dist/actions/wallet/password/setPassword.mjs.map +1 -0
  198. package/dist/actions/wallet/password/validatePassword.mjs +123 -0
  199. package/dist/actions/wallet/password/validatePassword.mjs.map +1 -0
  200. package/dist/actions/wallet/passwordKey.mjs +87 -0
  201. package/dist/actions/wallet/passwordKey.mjs.map +1 -0
  202. package/dist/actions/wallet/paths.mjs +26 -0
  203. package/dist/actions/wallet/paths.mjs.map +1 -0
  204. package/dist/actions/wallet/prompt.mjs +93 -0
  205. package/dist/actions/wallet/prompt.mjs.map +1 -0
  206. package/dist/actions/wallet/seedPhrase/createPhrase.mjs +392 -0
  207. package/dist/actions/wallet/seedPhrase/createPhrase.mjs.map +1 -0
  208. package/dist/actions/wallet/seedPhrase/exportPhrase.mjs +334 -0
  209. package/dist/actions/wallet/seedPhrase/exportPhrase.mjs.map +1 -0
  210. package/dist/actions/wallet/seedPhrase/idGen.mjs +11 -0
  211. package/dist/actions/wallet/seedPhrase/idGen.mjs.map +1 -0
  212. package/dist/actions/wallet/seedPhrase/importPhrase.mjs +393 -0
  213. package/dist/actions/wallet/seedPhrase/importPhrase.mjs.map +1 -0
  214. package/dist/actions/wallet/seedPhrase/listPhrases.mjs +62 -0
  215. package/dist/actions/wallet/seedPhrase/listPhrases.mjs.map +1 -0
  216. package/dist/actions/wallet/seedPhrase/phraseStorage.mjs +89 -0
  217. package/dist/actions/wallet/seedPhrase/phraseStorage.mjs.map +1 -0
  218. package/dist/actions/wallet/seedPhrase/removePhrase.mjs +366 -0
  219. package/dist/actions/wallet/seedPhrase/removePhrase.mjs.map +1 -0
  220. package/dist/actions/wallet/seedPhrase/renamePhrase.mjs +78 -0
  221. package/dist/actions/wallet/seedPhrase/renamePhrase.mjs.map +1 -0
  222. package/dist/actions/wallet/seedPhrase/types.mjs +1 -0
  223. package/dist/actions/wallet/seedPhrase/types.mjs.map +1 -0
  224. package/dist/actions/wallet/seedPhrase/usePhrase.mjs +83 -0
  225. package/dist/actions/wallet/seedPhrase/usePhrase.mjs.map +1 -0
  226. package/dist/actions/wallet/session/machineId.mjs +145 -0
  227. package/dist/actions/wallet/session/machineId.mjs.map +1 -0
  228. package/dist/actions/wallet/session/sessionCache.mjs +221 -0
  229. package/dist/actions/wallet/session/sessionCache.mjs.map +1 -0
  230. package/dist/actions/wallet/session/unlock.mjs +307 -0
  231. package/dist/actions/wallet/session/unlock.mjs.map +1 -0
  232. package/dist/actions/wallet/sign/signPayload.mjs +637 -0
  233. package/dist/actions/wallet/sign/signPayload.mjs.map +1 -0
  234. package/dist/actions/wallet/storage.mjs +51 -0
  235. package/dist/actions/wallet/storage.mjs.map +1 -0
  236. package/dist/actions/wallet/transaction/broadcastTransaction.mjs +453 -0
  237. package/dist/actions/wallet/transaction/broadcastTransaction.mjs.map +1 -0
  238. package/dist/actions/wallet/transaction/sendTransaction.mjs +457 -0
  239. package/dist/actions/wallet/transaction/sendTransaction.mjs.map +1 -0
  240. package/dist/actions/wallet/transaction/signTransactionFile.mjs +378 -0
  241. package/dist/actions/wallet/transaction/signTransactionFile.mjs.map +1 -0
  242. package/dist/actions/xyo/index.mjs +138 -0
  243. package/dist/actions/xyo/index.mjs.map +1 -0
  244. package/dist/actions/xyo/transaction/index.mjs +138 -0
  245. package/dist/actions/xyo/transaction/index.mjs.map +1 -0
  246. package/dist/actions/xyo/transaction/validateTransactions.mjs +138 -0
  247. package/dist/actions/xyo/transaction/validateTransactions.mjs.map +1 -0
  248. package/dist/aries.mjs +8466 -0
  249. package/dist/aries.mjs.map +1 -0
  250. package/dist/bin/aries.mjs +8472 -0
  251. package/dist/bin/aries.mjs.map +1 -0
  252. package/dist/commands/aiCommand.mjs +492 -0
  253. package/dist/commands/aiCommand.mjs.map +1 -0
  254. package/dist/commands/auditAiCommand.mjs +119 -0
  255. package/dist/commands/auditAiCommand.mjs.map +1 -0
  256. package/dist/commands/auditCommand.mjs +857 -0
  257. package/dist/commands/auditCommand.mjs.map +1 -0
  258. package/dist/commands/auditInstallCommand.mjs +324 -0
  259. package/dist/commands/auditInstallCommand.mjs.map +1 -0
  260. package/dist/commands/auditListCommand.mjs +107 -0
  261. package/dist/commands/auditListCommand.mjs.map +1 -0
  262. package/dist/commands/auditOpenCommand.mjs +51 -0
  263. package/dist/commands/auditOpenCommand.mjs.map +1 -0
  264. package/dist/commands/auditSearchCommand.mjs +98 -0
  265. package/dist/commands/auditSearchCommand.mjs.map +1 -0
  266. package/dist/commands/auditShowCommand.mjs +123 -0
  267. package/dist/commands/auditShowCommand.mjs.map +1 -0
  268. package/dist/commands/auditStatusCommand.mjs +105 -0
  269. package/dist/commands/auditStatusCommand.mjs.map +1 -0
  270. package/dist/commands/clampCommand.mjs +2328 -0
  271. package/dist/commands/clampCommand.mjs.map +1 -0
  272. package/dist/commands/clampPolicyCommand.mjs +184 -0
  273. package/dist/commands/clampPolicyCommand.mjs.map +1 -0
  274. package/dist/commands/clampPolicyInitCommand.mjs +63 -0
  275. package/dist/commands/clampPolicyInitCommand.mjs.map +1 -0
  276. package/dist/commands/clampPolicyListCommand.mjs +56 -0
  277. package/dist/commands/clampPolicyListCommand.mjs.map +1 -0
  278. package/dist/commands/clampPolicyShowCommand.mjs +83 -0
  279. package/dist/commands/clampPolicyShowCommand.mjs.map +1 -0
  280. package/dist/commands/clampRunCommand.mjs +2137 -0
  281. package/dist/commands/clampRunCommand.mjs.map +1 -0
  282. package/dist/commands/datalakeAuditCommand.mjs +273 -0
  283. package/dist/commands/datalakeAuditCommand.mjs.map +1 -0
  284. package/dist/commands/datalakeCommand.mjs +1637 -0
  285. package/dist/commands/datalakeCommand.mjs.map +1 -0
  286. package/dist/commands/datalakeCreateCommand.mjs +189 -0
  287. package/dist/commands/datalakeCreateCommand.mjs.map +1 -0
  288. package/dist/commands/datalakeDescribeCommand.mjs +172 -0
  289. package/dist/commands/datalakeDescribeCommand.mjs.map +1 -0
  290. package/dist/commands/datalakeDestroyCommand.mjs +53 -0
  291. package/dist/commands/datalakeDestroyCommand.mjs.map +1 -0
  292. package/dist/commands/datalakeDevCommand.mjs +470 -0
  293. package/dist/commands/datalakeDevCommand.mjs.map +1 -0
  294. package/dist/commands/datalakeDevDownCommand.mjs +111 -0
  295. package/dist/commands/datalakeDevDownCommand.mjs.map +1 -0
  296. package/dist/commands/datalakeDevLogsCommand.mjs +65 -0
  297. package/dist/commands/datalakeDevLogsCommand.mjs.map +1 -0
  298. package/dist/commands/datalakeDevResetCommand.mjs +125 -0
  299. package/dist/commands/datalakeDevResetCommand.mjs.map +1 -0
  300. package/dist/commands/datalakeDevStatusCommand.mjs +110 -0
  301. package/dist/commands/datalakeDevStatusCommand.mjs.map +1 -0
  302. package/dist/commands/datalakeDevUpCommand.mjs +268 -0
  303. package/dist/commands/datalakeDevUpCommand.mjs.map +1 -0
  304. package/dist/commands/datalakeFetchCommand.mjs +106 -0
  305. package/dist/commands/datalakeFetchCommand.mjs.map +1 -0
  306. package/dist/commands/datalakeGrantCommand.mjs +147 -0
  307. package/dist/commands/datalakeGrantCommand.mjs.map +1 -0
  308. package/dist/commands/datalakeListCommand.mjs +61 -0
  309. package/dist/commands/datalakeListCommand.mjs.map +1 -0
  310. package/dist/commands/datalakeLoginCommand.mjs +39 -0
  311. package/dist/commands/datalakeLoginCommand.mjs.map +1 -0
  312. package/dist/commands/datalakeLogoutCommand.mjs +20 -0
  313. package/dist/commands/datalakeLogoutCommand.mjs.map +1 -0
  314. package/dist/commands/datalakePushCommand.mjs +214 -0
  315. package/dist/commands/datalakePushCommand.mjs.map +1 -0
  316. package/dist/commands/datalakeRevokeCommand.mjs +127 -0
  317. package/dist/commands/datalakeRevokeCommand.mjs.map +1 -0
  318. package/dist/commands/datalakeTailCommand.mjs +144 -0
  319. package/dist/commands/datalakeTailCommand.mjs.map +1 -0
  320. package/dist/commands/datalakeTokenCommand.mjs +61 -0
  321. package/dist/commands/datalakeTokenCommand.mjs.map +1 -0
  322. package/dist/commands/datalakeUseCommand.mjs +35 -0
  323. package/dist/commands/datalakeUseCommand.mjs.map +1 -0
  324. package/dist/commands/detectCommand.mjs +419 -0
  325. package/dist/commands/detectCommand.mjs.map +1 -0
  326. package/dist/commands/hashCommand.mjs +976 -0
  327. package/dist/commands/hashCommand.mjs.map +1 -0
  328. package/dist/commands/hashCompareCommand.mjs +865 -0
  329. package/dist/commands/hashCompareCommand.mjs.map +1 -0
  330. package/dist/commands/index.mjs +8461 -0
  331. package/dist/commands/index.mjs.map +1 -0
  332. package/dist/commands/syncCommand.mjs +66 -0
  333. package/dist/commands/syncCommand.mjs.map +1 -0
  334. package/dist/commands/versionCommand.mjs +24 -0
  335. package/dist/commands/versionCommand.mjs.map +1 -0
  336. package/dist/commands/walletAccountCommand.mjs +536 -0
  337. package/dist/commands/walletAccountCommand.mjs.map +1 -0
  338. package/dist/commands/walletAccountDeriveCommand.mjs +415 -0
  339. package/dist/commands/walletAccountDeriveCommand.mjs.map +1 -0
  340. package/dist/commands/walletAccountLabelCommand.mjs +405 -0
  341. package/dist/commands/walletAccountLabelCommand.mjs.map +1 -0
  342. package/dist/commands/walletAccountListCommand.mjs +381 -0
  343. package/dist/commands/walletAccountListCommand.mjs.map +1 -0
  344. package/dist/commands/walletAccountRemoveCommand.mjs +396 -0
  345. package/dist/commands/walletAccountRemoveCommand.mjs.map +1 -0
  346. package/dist/commands/walletAccountShowCommand.mjs +380 -0
  347. package/dist/commands/walletAccountShowCommand.mjs.map +1 -0
  348. package/dist/commands/walletBackupCommand.mjs +222 -0
  349. package/dist/commands/walletBackupCommand.mjs.map +1 -0
  350. package/dist/commands/walletBackupExportCommand.mjs +107 -0
  351. package/dist/commands/walletBackupExportCommand.mjs.map +1 -0
  352. package/dist/commands/walletBackupImportCommand.mjs +154 -0
  353. package/dist/commands/walletBackupImportCommand.mjs.map +1 -0
  354. package/dist/commands/walletBalanceCommand.mjs +448 -0
  355. package/dist/commands/walletBalanceCommand.mjs.map +1 -0
  356. package/dist/commands/walletCommand.mjs +1968 -0
  357. package/dist/commands/walletCommand.mjs.map +1 -0
  358. package/dist/commands/walletContactAddCommand.mjs +111 -0
  359. package/dist/commands/walletContactAddCommand.mjs.map +1 -0
  360. package/dist/commands/walletContactCommand.mjs +184 -0
  361. package/dist/commands/walletContactCommand.mjs.map +1 -0
  362. package/dist/commands/walletContactListCommand.mjs +66 -0
  363. package/dist/commands/walletContactListCommand.mjs.map +1 -0
  364. package/dist/commands/walletContactRemoveCommand.mjs +97 -0
  365. package/dist/commands/walletContactRemoveCommand.mjs.map +1 -0
  366. package/dist/commands/walletContactRenameCommand.mjs +114 -0
  367. package/dist/commands/walletContactRenameCommand.mjs.map +1 -0
  368. package/dist/commands/walletCreateCommand.mjs +407 -0
  369. package/dist/commands/walletCreateCommand.mjs.map +1 -0
  370. package/dist/commands/walletExportCommand.mjs +345 -0
  371. package/dist/commands/walletExportCommand.mjs.map +1 -0
  372. package/dist/commands/walletImportCommand.mjs +413 -0
  373. package/dist/commands/walletImportCommand.mjs.map +1 -0
  374. package/dist/commands/walletListCommand.mjs +69 -0
  375. package/dist/commands/walletListCommand.mjs.map +1 -0
  376. package/dist/commands/walletLockCommand.mjs +56 -0
  377. package/dist/commands/walletLockCommand.mjs.map +1 -0
  378. package/dist/commands/walletNetworkAddCommand.mjs +131 -0
  379. package/dist/commands/walletNetworkAddCommand.mjs.map +1 -0
  380. package/dist/commands/walletNetworkCommand.mjs +206 -0
  381. package/dist/commands/walletNetworkCommand.mjs.map +1 -0
  382. package/dist/commands/walletNetworkListCommand.mjs +104 -0
  383. package/dist/commands/walletNetworkListCommand.mjs.map +1 -0
  384. package/dist/commands/walletNetworkRemoveCommand.mjs +112 -0
  385. package/dist/commands/walletNetworkRemoveCommand.mjs.map +1 -0
  386. package/dist/commands/walletNetworkUseCommand.mjs +110 -0
  387. package/dist/commands/walletNetworkUseCommand.mjs.map +1 -0
  388. package/dist/commands/walletPasswordChangeCommand.mjs +291 -0
  389. package/dist/commands/walletPasswordChangeCommand.mjs.map +1 -0
  390. package/dist/commands/walletPasswordCommand.mjs +301 -0
  391. package/dist/commands/walletPasswordCommand.mjs.map +1 -0
  392. package/dist/commands/walletRemoveCommand.mjs +378 -0
  393. package/dist/commands/walletRemoveCommand.mjs.map +1 -0
  394. package/dist/commands/walletRenameCommand.mjs +94 -0
  395. package/dist/commands/walletRenameCommand.mjs.map +1 -0
  396. package/dist/commands/walletSignCommand.mjs +662 -0
  397. package/dist/commands/walletSignCommand.mjs.map +1 -0
  398. package/dist/commands/walletTxBroadcastCommand.mjs +473 -0
  399. package/dist/commands/walletTxBroadcastCommand.mjs.map +1 -0
  400. package/dist/commands/walletTxCommand.mjs +612 -0
  401. package/dist/commands/walletTxCommand.mjs.map +1 -0
  402. package/dist/commands/walletTxSendCommand.mjs +492 -0
  403. package/dist/commands/walletTxSendCommand.mjs.map +1 -0
  404. package/dist/commands/walletTxSignCommand.mjs +403 -0
  405. package/dist/commands/walletTxSignCommand.mjs.map +1 -0
  406. package/dist/commands/walletUnlockCommand.mjs +308 -0
  407. package/dist/commands/walletUnlockCommand.mjs.map +1 -0
  408. package/dist/commands/walletUseCommand.mjs +95 -0
  409. package/dist/commands/walletUseCommand.mjs.map +1 -0
  410. package/dist/commands/xyoCommand.mjs +188 -0
  411. package/dist/commands/xyoCommand.mjs.map +1 -0
  412. package/dist/commands/xyoTxCommand.mjs +178 -0
  413. package/dist/commands/xyoTxCommand.mjs.map +1 -0
  414. package/dist/commands/xyoTxValidateCommand.mjs +168 -0
  415. package/dist/commands/xyoTxValidateCommand.mjs.map +1 -0
  416. package/dist/index.d.ts +3 -0
  417. package/dist/index.mjs +8466 -0
  418. package/dist/index.mjs.map +1 -0
  419. package/dist/types/modules.d.mjs +1 -0
  420. package/dist/types/modules.d.mjs.map +1 -0
  421. package/package.json +197 -0
package/README.md ADDED
@@ -0,0 +1,693 @@
1
+ # @xylabs/aries
2
+
3
+ Aries Tools CLI — a suite by Arie Trouw for AI-client tooling, Claude/Codex audit trails, sandboxed command execution, XL1 datalake provisioning, content hashing (strict + fuzzy + perceptual), XL1 wallet management, payload witnessing, and XYO protocol utilities.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install -g @xylabs/aries
9
+ # or
10
+ pnpm add -g @xylabs/aries
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```sh
16
+ aries --help
17
+ aries info
18
+ aries hash --algorithm pdq ./photo.jpg
19
+ aries wallet create
20
+ aries witness url --url https://example.com
21
+ aries datalake list
22
+ ```
23
+
24
+ ## Top-level commands
25
+
26
+ ```text
27
+ aries ai AI client tools
28
+ aries audit Manage the Claude Code audit trail
29
+ aries clamp Run commands inside a permission-controlled sandbox
30
+ aries datalake Provision and manage on-demand XL1 datalakes
31
+ aries hash [file] Generate a hash (sha256, xyo, fuzzy, perceptual)
32
+ aries info Display version and environment info
33
+ aries wallet XL1 wallet — seed phrases, accounts, transactions, contacts
34
+ aries witness Observe data and produce XYO-compliant payloads
35
+ aries xyo XYO protocol utilities
36
+ ```
37
+
38
+ ## Global options
39
+
40
+ Available on every command:
41
+
42
+ | Option | Description |
43
+ |---|---|
44
+ | `-v, --verbose` | Enable verbose output |
45
+ | `--version` | Show version number |
46
+ | `--help` | Show help |
47
+
48
+ ---
49
+
50
+ ## `aries ai` — AI client tools
51
+
52
+ ### `aries ai detect`
53
+
54
+ Scan for installed AI clients.
55
+
56
+ | Option | Default | Description |
57
+ |---|---|---|
58
+ | `--json` | `false` | Output as JSON |
59
+
60
+ ### `aries ai sync`
61
+
62
+ Sync AI config between Claude Code and Codex.
63
+
64
+ | Option | Default | Description |
65
+ |---|---|---|
66
+ | `--from <claude\|agents>` | `claude` | Source to sync from (the authority) |
67
+
68
+ ---
69
+
70
+ ## `aries audit` — Manage the Claude Code audit trail
71
+
72
+ ```sh
73
+ aries audit ai # Show current AI metadata recorded in audit entries
74
+ aries audit list # List audit sessions
75
+ aries audit show <session-id> # Show audit trail for a session
76
+ aries audit search <query> # Search audit logs
77
+ aries audit install [provider] # Install the audit plugin (claude | codex | both)
78
+ aries audit uninstall [provider] # Uninstall the audit plugin
79
+ aries audit open # Open the audit log directory in Finder/Explorer
80
+ aries audit status # Show audit plugin status and log statistics
81
+ ```
82
+
83
+ ### Per-command flags
84
+
85
+ #### `aries audit ai`
86
+ | Option | Default | Description |
87
+ |---|---|---|
88
+ | `--json` | `false` | Output as JSON |
89
+
90
+ #### `aries audit list`
91
+ | Option | Default | Description |
92
+ |---|---|---|
93
+ | `-d, --date <YYYY-MM-DD>` | | Filter by date |
94
+
95
+ #### `aries audit show <session-id>`
96
+ | Positional | | Description |
97
+ |---|---|---|
98
+ | `session-id` | required | Session ID (or prefix) |
99
+
100
+ | Option | Default | Description |
101
+ |---|---|---|
102
+ | `-f, --format <text\|json>` | `text` | Output format |
103
+
104
+ #### `aries audit search <query>`
105
+ | Positional | | Description |
106
+ |---|---|---|
107
+ | `query` | required | Search text |
108
+
109
+ | Option | Default | Description |
110
+ |---|---|---|
111
+ | `-d, --date <YYYY-MM-DD>` | | Filter by date |
112
+ | `-n, --limit <n>` | `50` | Max results |
113
+
114
+ #### `aries audit install [provider]` / `aries audit uninstall [provider]`
115
+ | Positional | | Description |
116
+ |---|---|---|
117
+ | `provider` | both | `claude` or `codex` |
118
+
119
+ `open`, `status` take no command-specific options.
120
+
121
+ ---
122
+
123
+ ## `aries clamp` — Run commands inside a permission-controlled sandbox
124
+
125
+ ```sh
126
+ aries clamp run <command> [args..] # Run a command inside the clamp sandbox
127
+ aries clamp policy list # List available clamp policies
128
+ aries clamp policy show <name> # Show a clamp policy
129
+ aries clamp policy init # Create a starter .aries-clamp.json
130
+ ```
131
+
132
+ ### Per-command flags
133
+
134
+ #### `aries clamp run <command> [args..]`
135
+ | Positional | | Description |
136
+ |---|---|---|
137
+ | `command` | required | Command to run inside the sandbox |
138
+ | `args` | `[]` | Arguments for the command |
139
+
140
+ | Option | Default | Description |
141
+ |---|---|---|
142
+ | `-p, --policy <path-or-name>` | | Policy file path or name |
143
+ | `--audit` | `true` | Enable audit logging |
144
+ | `--dry-run` | `false` | Show what would be sandboxed without running |
145
+
146
+ #### `aries clamp policy show <name>`
147
+ | Positional | | Description |
148
+ |---|---|---|
149
+ | `name` | required | Policy name or file path |
150
+
151
+ `policy list` and `policy init` take no command-specific options.
152
+
153
+ ---
154
+
155
+ ## `aries datalake` — Provision and manage on-demand XL1 datalakes
156
+
157
+ ### Authentication
158
+
159
+ #### `aries datalake login`
160
+ | Option | Default | Description |
161
+ |---|---|---|
162
+ | `--base-url <url>` | | Control-plane base URL (P0: required) |
163
+ | `--token <jwt>` | | Pre-issued auth token (P0: required; OAuth lands in P1) |
164
+
165
+ `aries datalake logout` — clears stored credentials, no flags.
166
+
167
+ ### Lifecycle
168
+
169
+ #### `aries datalake create <name>`
170
+ | Positional | | Description |
171
+ |---|---|---|
172
+ | `name` | required | Human-friendly name (unique per owner) |
173
+
174
+ | Option | Default | Description |
175
+ |---|---|---|
176
+ | `-t, --tier <small\|medium\|large\|archive>` | `small` | Service tier |
177
+ | `-s, --size <e.g. 10GB>` | | Capacity |
178
+ | `--iops <n>` | | Provisioned IOPS target |
179
+ | `-r, --region <us-west-2\|us-east-1\|eu-west-1>` | | Deployment region |
180
+ | `--retention-days <n>` | tier default | Retention in days |
181
+ | `--verify-hashes` | `false` | Reject inserts whose `$hash` does not match the content digest |
182
+ | `--rate-auth-per-minute <n>` | | Override: authenticated requests per minute |
183
+ | `--rate-anon-per-minute <n>` | | Override: anonymous requests per minute |
184
+ | `--rate-burst-factor <n>` | | Override: rate-limit burst factor (1 = no burst) |
185
+
186
+ `aries datalake list` — no flags.
187
+
188
+ #### `aries datalake describe [name]` / `aries datalake destroy [name]`
189
+ | Positional | | Description |
190
+ |---|---|---|
191
+ | `name` | active default | Datalake name or id |
192
+
193
+ `destroy` adds:
194
+ | Option | Default | Description |
195
+ |---|---|---|
196
+ | `-f, --force` | `false` | Required confirmation flag |
197
+
198
+ #### `aries datalake use [name]`
199
+
200
+ Sets the default datalake for subsequent commands. Omit the name to clear.
201
+
202
+ ### Access control
203
+
204
+ #### `aries datalake grant <name> <principal>`
205
+ | Positional | | Description |
206
+ |---|---|---|
207
+ | `name` | required | Datalake name or id |
208
+ | `principal` | required | User id, or the literal `public` |
209
+
210
+ | Option | Default | Description |
211
+ |---|---|---|
212
+ | `-r, --role <viewer\|runner>` | `viewer` | Role to grant |
213
+ | `--confirm-public` | `false` | Required to grant `public runner` (anonymous writes) |
214
+
215
+ #### `aries datalake revoke <name> <principal>`
216
+
217
+ Same positionals; no command-specific options.
218
+
219
+ #### `aries datalake token [name]`
220
+ | Positional | | Description |
221
+ |---|---|---|
222
+ | `name` | active default | Datalake name or id |
223
+
224
+ | Option | Default | Description |
225
+ |---|---|---|
226
+ | `-r, --role <viewer\|runner>` | `viewer` | Role encoded in the token |
227
+ | `--ttl <seconds>` | server-capped | Lifetime in seconds |
228
+
229
+ ### Data plane
230
+
231
+ #### `aries datalake push <file> [name]`
232
+ | Positional | | Description |
233
+ |---|---|---|
234
+ | `file` | required | Path to a `.json` (array) or `.jsonl` (one payload/line) file |
235
+ | `name` | active default | Target datalake |
236
+
237
+ | Option | Default | Description |
238
+ |---|---|---|
239
+ | `--batch-size <n>` | `500` | Max payloads per HTTP request |
240
+ | `--verify` | `false` | Verify each payload's `$hash` against content locally before pushing |
241
+ | `--xl1-sdk` | `false` | Use the real `@xyo-network/xl1-protocol-sdk RestDataLakeRunner` |
242
+
243
+ #### `aries datalake fetch <hash> [name]`
244
+ | Positional | | Description |
245
+ |---|---|---|
246
+ | `hash` | required | Content hash of the payload |
247
+ | `name` | active default | Target datalake |
248
+
249
+ | Option | Default | Description |
250
+ |---|---|---|
251
+ | `--raw` | `false` | Print only the raw JSON payload (no header) |
252
+ | `--xl1-sdk` | `false` | Use the real `@xyo-network/xl1-protocol-sdk RestDataLakeViewer` |
253
+
254
+ #### `aries datalake tail [name]`
255
+ | Positional | | Description |
256
+ |---|---|---|
257
+ | `name` | active default | Datalake name or id |
258
+
259
+ | Option | Default | Description |
260
+ |---|---|---|
261
+ | `-f, --follow` | `false` | Keep polling for new payloads after draining the backlog |
262
+ | `-n, --limit <n>` | `50` | Max payloads per page |
263
+ | `--cursor <hash>` | | Resume after this hash (exclusive) |
264
+ | `--schemas <csv>` | | Comma-separated list of schemas to include |
265
+ | `--poll-interval <ms>` | `1000` | Poll interval in ms when following |
266
+
267
+ ### Audit (data-plane log inspection)
268
+
269
+ ```sh
270
+ aries datalake audit # default: view
271
+ aries datalake audit view # Print audit log rows
272
+ aries datalake audit purge # Delete rotated audit files older than --max-age-days
273
+ ```
274
+
275
+ #### `aries datalake audit view`
276
+ | Option | Default | Description |
277
+ |---|---|---|
278
+ | `-f, --follow` | `false` | Stream new rows as they arrive (tails the most recent file) |
279
+ | `-n, --lines <n>` | `50` | Tail this many rows (0 = start fresh in `--follow` mode) |
280
+ | `-d, --datalake <id>` | | Filter by datalake name or id |
281
+ | `--status <prefix>` | | Status code prefix filter (e.g. `4` matches 4xx) |
282
+ | `--method <verb>` | | HTTP method filter (`GET`, `POST`, …) |
283
+ | `--authenticated <true\|false>` | | Show only authenticated or only anonymous requests |
284
+ | `--grep <regex>` | | Regex pattern applied to the raw JSON line |
285
+ | `--file <path>` | | File or directory (auto-detects rotation layout) |
286
+
287
+ #### `aries datalake audit purge`
288
+ | Option | Default | Description |
289
+ |---|---|---|
290
+ | `--max-age-days <n>` | required | Retention window; files older than this are deleted |
291
+ | `--directory <path>` | `<ARIES_HOME>/dev/audit` | Rotation directory |
292
+ | `--dry-run` | `false` | Report what would be deleted without removing anything |
293
+
294
+ ### Local development
295
+
296
+ ```sh
297
+ aries datalake dev up # Start the local control + data plane dev server
298
+ aries datalake dev down # Stop it (clears credentials)
299
+ aries datalake dev status # Report whether the local dev server is running and healthy
300
+ aries datalake dev logs # Print recent dev server log output
301
+ aries datalake dev reset # Stop the dev server and wipe all local state
302
+ ```
303
+
304
+ #### `aries datalake dev up`
305
+ | Option | Default | Description |
306
+ |---|---|---|
307
+ | `--control-port <n>` | `8787` | Control-plane port |
308
+ | `--plane-port <n>` | `8788` | Data-plane port |
309
+ | `--timeout <s>` | `10` | Seconds to wait for health |
310
+ | `--persist` | `false` | Persist store state to disk so it survives restarts |
311
+ | `--audit` | `false` | Write a JSONL audit log of every data-plane request |
312
+ | `--audit-rotate` | `false` | Rotate the audit log daily (writes to `<home>/dev/audit/`) |
313
+ | `--audit-keep-days <n>` | | Prune rotated audit files older than this many days |
314
+
315
+ #### `aries datalake dev logs`
316
+ | Option | Default | Description |
317
+ |---|---|---|
318
+ | `-f, --follow` | `false` | Stream new lines as they arrive |
319
+ | `-n, --lines <n>` | `50` | Number of tail lines to show |
320
+
321
+ `down`, `status`, `reset` take no command-specific options.
322
+
323
+ ---
324
+
325
+ ## `aries hash [file]` — content hashing
326
+
327
+ ```text
328
+ aries hash [file] [options]
329
+ aries hash compare <hashA> <hashB> --algorithm <name> [--json]
330
+ ```
331
+
332
+ Reads input from `[file]` (positional), `--string`, or piped stdin (priority order). Dispatches to one of 11 algorithms.
333
+
334
+ ### Options
335
+
336
+ | Option | Default | Description |
337
+ |---|---|---|
338
+ | `-a, --algorithm <name>` | `sha256` | Algorithm — see the matrix below |
339
+ | `-s, --string <text>` | | Hash this string instead of a file/stdin |
340
+ | `-x, --xyo` | `false` | Shortcut for `--algorithm xyo` (input must be JSON) |
341
+ | `--base64` | `false` | Re-encode hex output as base64 (only for hex-output algorithms) |
342
+ | `--fps <n>` | `1` | Frames-per-second sample rate (`video-frames` only) |
343
+ | `--frame-algorithm <phash\|pdq>` | `phash` | Per-frame hash for `video-frames` |
344
+
345
+ ### Algorithm reference
346
+
347
+ | Algorithm | Family | Input | Output | External binary | Compare metric |
348
+ |---|---|---|---|---|---|
349
+ | `sha256` | strict | bytes | 64-char hex | — | `exact-match` |
350
+ | `xyo` | strict | JSON | 64-char hex | — | `exact-match` |
351
+ | `tlsh` | fuzzy-byte | ≥50 bytes | 70-char hex | — | `tlsh-bit-hamming` ⚠ |
352
+ | `nilsimsa` | fuzzy-byte | bytes | 64-char hex | — | `nilsimsa-score` |
353
+ | `ssdeep` | fuzzy-byte | bytes | `bs:h1:h2` | `ssdeep` | `ssdeep-levenshtein` ⚠ |
354
+ | `phash` | perceptual-image | image | 16-char hex (64-bit) | — | `hamming-64` |
355
+ | `dhash` | perceptual-image | image | 16-char hex (64-bit) | — | `hamming-64` |
356
+ | `blockhash` | perceptual-image | image | 16-char hex (64-bit) | — | `hamming-64` |
357
+ | `pdq` | perceptual-image | image | 64-char hex (256-bit) — Meta PDQ via WASM | — | `hamming-256` |
358
+ | `chromaprint` | audio | audio file | JSON `{duration, fingerprint[]}` | `fpcalc` | `chromaprint-windowed-hamming` |
359
+ | `video-frames` | video | video file | JSON `{fps, frames:[{t,hash}]}` | `ffmpeg` | `frame-sequence-<algo>@<fps>fps` |
360
+
361
+ ⚠ — Approximations, not the canonical reference scores:
362
+ - `tlsh-bit-hamming` — the upstream `tlsh` npm package only exposes hashing, not the canonical TLSH-diff algorithm. We use bit-level Hamming over the hash body as a proxy.
363
+ - `ssdeep-levenshtein` — block-size-aware Levenshtein, without the canonical block-size attenuation curve.
364
+
365
+ ### External binary install
366
+
367
+ ```sh
368
+ # macOS
369
+ brew install ssdeep chromaprint ffmpeg
370
+
371
+ # Debian/Ubuntu
372
+ apt install ssdeep libchromaprint-tools ffmpeg
373
+
374
+ # Windows
375
+ choco install ssdeep chromaprint ffmpeg
376
+ ```
377
+
378
+ Each algorithm probes its binary at hash time and prints clear install instructions if the binary is missing.
379
+
380
+ ### Examples
381
+
382
+ ```sh
383
+ # Strict
384
+ aries hash --string "hello"
385
+ aries hash ./payload.json --algorithm xyo
386
+
387
+ # Byte-fuzzy
388
+ aries hash --algorithm tlsh ./binary.exe
389
+ aries hash compare <hashA> <hashB> --algorithm tlsh
390
+
391
+ # Perceptual image
392
+ aries hash --algorithm phash ./photo.jpg
393
+ aries hash --algorithm pdq ./photo.jpg
394
+ aries hash compare <hashA> <hashB> --algorithm pdq
395
+
396
+ # Audio
397
+ aries hash --algorithm chromaprint ./song.mp3 > song.fp.json
398
+ aries hash compare "$(cat a.fp.json)" "$(cat b.fp.json)" --algorithm chromaprint --json
399
+
400
+ # Video
401
+ aries hash --algorithm video-frames --fps 1 ./movie.mkv > movie.fp.json
402
+ aries hash --algorithm video-frames --fps 1 --frame-algorithm pdq ./movie.mkv > movie-pdq.fp.json
403
+ aries hash compare "$(cat a.fp.json)" "$(cat b.fp.json)" --algorithm video-frames
404
+ ```
405
+
406
+ ### `aries hash compare <hashA> <hashB>`
407
+
408
+ | Positional | | Description |
409
+ |---|---|---|
410
+ | `hashA` | required | First hash |
411
+ | `hashB` | required | Second hash |
412
+
413
+ | Option | Default | Description |
414
+ |---|---|---|
415
+ | `-a, --algorithm <name>` | required | Algorithm that produced the hashes |
416
+ | `--json` | `false` | Print full result as JSON |
417
+
418
+ Plain output: `<similarity>\t<metric>[\tdistance=<n>]` (similarity is a 0..1 float, 1 = identical). JSON output: `{"similarity":0.93,"distance":18,"metric":"hamming-256"}`.
419
+
420
+ The compare command needs only the two hash strings — works against hashes generated on different machines.
421
+
422
+ ---
423
+
424
+ ## `aries info`
425
+
426
+ Display ariestools version and environment info. No command-specific options.
427
+
428
+ ---
429
+
430
+ ## `aries wallet` — XL1 wallet
431
+
432
+ ### Wallet management
433
+
434
+ ```sh
435
+ aries wallet create # Generate a new XL1 wallet (random recovery phrase)
436
+ aries wallet import # Import an existing XL1 recovery phrase
437
+ aries wallet export # Print the recovery phrase for the active (or specified) wallet
438
+ aries wallet list # List stored wallets
439
+ aries wallet use <id> # Set the active wallet
440
+ aries wallet rename <id> <label> # Rename a stored wallet
441
+ aries wallet remove <id> # Delete a stored wallet (and its address book)
442
+ ```
443
+
444
+ #### `aries wallet create`
445
+ | Option | Default | Description |
446
+ |---|---|---|
447
+ | `-l, --label <text>` | `primary` | Friendly label for the wallet |
448
+
449
+ #### `aries wallet import`
450
+ | Option | Default | Description |
451
+ |---|---|---|
452
+ | `-l, --label <text>` | `imported` | Friendly label |
453
+ | `-p, --phrase <words>` | | Recovery phrase (skips interactive prompt) |
454
+
455
+ #### `aries wallet export`
456
+ | Option | Default | Description |
457
+ |---|---|---|
458
+ | `--id <wallet-id>` | active | Wallet id or label |
459
+
460
+ #### `aries wallet use <id>` / `aries wallet remove <id>`
461
+ | Positional | | Description |
462
+ |---|---|---|
463
+ | `id` | required | Wallet id or label |
464
+
465
+ #### `aries wallet rename <id> <label>`
466
+ | Positional | | Description |
467
+ |---|---|---|
468
+ | `id` | required | Wallet id or current label |
469
+ | `label` | required | New label |
470
+
471
+ ### Session
472
+
473
+ ```sh
474
+ aries wallet unlock # Cache the wallet password (encrypted at rest) for a TTL
475
+ aries wallet lock # Clear the cached unlocked session
476
+ aries wallet password change # Change the wallet password (re-encrypts every stored phrase)
477
+ ```
478
+
479
+ #### `aries wallet unlock`
480
+ | Option | Default | Description |
481
+ |---|---|---|
482
+ | `--ttl <seconds>` | `900` | Session lifetime in seconds (default 15 min) |
483
+
484
+ `lock` and `password change` take no command-specific options.
485
+
486
+ ### Accounts
487
+
488
+ ```sh
489
+ aries wallet account list # List derived accounts in the active wallet
490
+ aries wallet account show <offset> # Show details for a derived account
491
+ aries wallet account derive <offset> # Derive a new account at the given HD offset
492
+ aries wallet account label <offset> <label> # Label a derived account
493
+ aries wallet account remove <offset> # Remove an account from the address book
494
+ ```
495
+
496
+ All `account` commands take an HD path offset positional (e.g. `0`).
497
+
498
+ #### `aries wallet account derive <offset>`
499
+ | Option | Default | Description |
500
+ |---|---|---|
501
+ | `-l, --label <text>` | | Friendly label for the account |
502
+
503
+ ### Balance & signing
504
+
505
+ #### `aries wallet balance [offset]`
506
+ | Positional | | Description |
507
+ |---|---|---|
508
+ | `offset` | `0` | HD path offset |
509
+
510
+ #### `aries wallet sign <file>`
511
+ | Positional | | Description |
512
+ |---|---|---|
513
+ | `file` | required | Path to a JSON payload file |
514
+
515
+ | Option | Default | Description |
516
+ |---|---|---|
517
+ | `-o, --offset <n>` | `0` | HD path offset of the signer |
518
+ | `-O, --output <path>` | | Write output to file instead of stdout |
519
+
520
+ Produces a BoundWitness.
521
+
522
+ ### Transactions
523
+
524
+ ```sh
525
+ aries wallet tx send <recipient> <amount> # Build, sign, and broadcast an XL1 transfer
526
+ aries wallet tx sign <file> # Sign an unsigned transaction JSON file
527
+ aries wallet tx broadcast <file> # Broadcast a signed transaction JSON file
528
+ ```
529
+
530
+ #### `aries wallet tx send <recipient> <amount>`
531
+ | Positional | | Description |
532
+ |---|---|---|
533
+ | `recipient` | required | Recipient address (`0x…`) |
534
+ | `amount` | required | Amount in whole XL1 |
535
+
536
+ | Option | Default | Description |
537
+ |---|---|---|
538
+ | `-o, --offset <n>` | `0` | HD path offset of the sender |
539
+ | `--attempts <n>` | `30` | Confirmation polling attempts |
540
+ | `--delay <ms>` | `2000` | Delay between confirmation attempts |
541
+
542
+ #### `aries wallet tx sign <file>`
543
+ | Positional | | Description |
544
+ |---|---|---|
545
+ | `file` | required | Path to unsigned transaction JSON |
546
+
547
+ | Option | Default | Description |
548
+ |---|---|---|
549
+ | `-o, --offset <n>` | `0` | HD path offset of the signer |
550
+ | `-O, --output <path>` | | Write signed tx to file instead of stdout |
551
+
552
+ #### `aries wallet tx broadcast <file>`
553
+ | Positional | | Description |
554
+ |---|---|---|
555
+ | `file` | required | Path to signed transaction JSON |
556
+
557
+ | Option | Default | Description |
558
+ |---|---|---|
559
+ | `-o, --offset <n>` | `0` | HD path offset for client connection |
560
+
561
+ ### Networks
562
+
563
+ ```sh
564
+ aries wallet network list # List configured networks
565
+ aries wallet network add <id> <rpcUrl> # Add a custom network
566
+ aries wallet network use <id> # Set the active network
567
+ aries wallet network remove <id> # Remove a custom network
568
+ ```
569
+
570
+ #### `aries wallet network add <id> <rpcUrl>`
571
+ | Positional | | Description |
572
+ |---|---|---|
573
+ | `id` | required | Network id (unique) |
574
+ | `rpcUrl` | required | Gateway RPC URL |
575
+
576
+ | Option | Default | Description |
577
+ |---|---|---|
578
+ | `-l, --label <text>` | | Friendly label |
579
+ | `--chain-id <hex>` | | Chain id (hex) |
580
+
581
+ `use` and `remove` take a network `id` positional only.
582
+
583
+ ### Contacts
584
+
585
+ ```sh
586
+ aries wallet contact list # List address-book contacts
587
+ aries wallet contact add <address> <label> # Add or update a contact
588
+ aries wallet contact rename <address> <label> # Rename an existing contact
589
+ aries wallet contact remove <address> # Remove a contact
590
+ ```
591
+
592
+ All take an `address` positional (`0x…`); `add`/`rename` also take a `label` positional. No additional flags.
593
+
594
+ ### Backup
595
+
596
+ ```sh
597
+ aries wallet backup export <file> # Export address books and contacts to a JSON file
598
+ aries wallet backup import <file> # Import a wallet backup JSON file (merges into current state)
599
+ ```
600
+
601
+ `file` is the only positional; no additional flags.
602
+
603
+ ---
604
+
605
+ ## `aries witness` — Observe data and produce XYO-compliant payloads
606
+
607
+ ```sh
608
+ aries witness timestamp # Capture the current timestamp
609
+ aries witness system-info # Capture system information (OS, CPU, memory, etc.)
610
+ aries witness url # Capture metadata and content from a URL
611
+ aries witness app # Inspect installed applications
612
+ aries witness app list # List installed macOS applications
613
+ ```
614
+
615
+ ### Common witness flags
616
+
617
+ These flags are available on every `witness` leaf:
618
+
619
+ | Option | Default | Description |
620
+ |---|---|---|
621
+ | `--json` | `false` | Output raw JSON |
622
+ | `-o, --output <path>` | | Write output to file |
623
+ | `--pretty` | `true` | Pretty-print JSON output |
624
+ | `--bound-witness` | `false` | Wrap payloads in a BoundWitness |
625
+ | `--binary-dir <path>` | `~/.aries/binaries/` | Directory for binary artifacts |
626
+
627
+ ### Per-command additions
628
+
629
+ #### `aries witness url`
630
+ | Option | Default | Description |
631
+ |---|---|---|
632
+ | `--url <url>` | required | The URL to fetch |
633
+
634
+ #### `aries witness app list`
635
+ | Option | Default | Description |
636
+ |---|---|---|
637
+ | `--scope <all\|global\|system\|user>` | `all` | Filter by install scope |
638
+
639
+ `witness timestamp` and `witness system-info` take only the common flags.
640
+
641
+ ---
642
+
643
+ ## `aries xyo` — XYO protocol utilities
644
+
645
+ ### `aries xyo tx validate [data]`
646
+
647
+ Validate one or more XL1 transactions. Reads from a file path, inline JSON, or stdin.
648
+
649
+ | Positional | | Description |
650
+ |---|---|---|
651
+ | `data` | | Path to a `.json`/`.jsonl` file, or an inline transaction JSON tuple `[bw, payloads[]]`. Omit to read from stdin. |
652
+
653
+ | Option | Default | Description |
654
+ |---|---|---|
655
+ | `-d, --detail` | `false` | Print per-transaction error details (always shown for invalid transactions) |
656
+
657
+ **Input modes** (resolved in priority order):
658
+
659
+ | Mode | Example |
660
+ |---|---|
661
+ | File path | `aries xyo tx validate ./tx.json` |
662
+ | File path (JSONL batch) | `aries xyo tx validate ./txs.jsonl` |
663
+ | Inline JSON | `aries xyo tx validate '[[...], [...]]'` |
664
+ | Piped stdin | `cat txs.jsonl \| aries xyo tx validate` |
665
+
666
+ **Supported file formats:**
667
+ - `.json` — a single transaction tuple `[boundWitness, payloads[]]`, or a JSON array of tuples
668
+ - `.jsonl` / `.ndjson` — one transaction tuple per line
669
+
670
+ **Output:**
671
+
672
+ ```text
673
+ Total: 3
674
+ Valid: 2
675
+ Invalid: 1
676
+
677
+ [2] ./txs.jsonl:3
678
+ - TransactionGasValidator: insufficient gas
679
+ ```
680
+
681
+ **Exit codes:** `0` = all valid, `1` = any invalid or parse error.
682
+
683
+ ---
684
+
685
+ ## Configuration
686
+
687
+ All persistent configuration lives under `~/.aries/` (or `$ARIES_HOME` if set). Wallet data is encrypted at rest using your wallet password.
688
+
689
+ ---
690
+
691
+ ## License
692
+
693
+ LGPL-3.0-only © XY Labs
@@ -0,0 +1,22 @@
1
+ // src/actions/audit/auditPaths.ts
2
+ import { homedir } from "os";
3
+ import path from "path";
4
+ function getAuditRootDir() {
5
+ return path.join(homedir(), ".aries", "audit-logs");
6
+ }
7
+ function getAuditDir(provider) {
8
+ return provider ? path.join(getAuditRootDir(), provider) : getAuditRootDir();
9
+ }
10
+ function getAuditSearchDirs() {
11
+ return [
12
+ getAuditDir("claude"),
13
+ getAuditDir("codex"),
14
+ getAuditRootDir()
15
+ ];
16
+ }
17
+ export {
18
+ getAuditDir,
19
+ getAuditRootDir,
20
+ getAuditSearchDirs
21
+ };
22
+ //# sourceMappingURL=auditPaths.mjs.map