toolcraft 0.0.749 → 0.0.751

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 (374) hide show
  1. package/composition.json +23 -3
  2. package/dist/composition.json +23 -3
  3. package/dist/human-in-loop/approvals-commands.d.ts +1 -1
  4. package/dist/index.d.ts +1 -262
  5. package/dist/index.js +1 -573
  6. package/dist/runtime-platform.d.ts +2 -0
  7. package/dist/runtime-platform.js +2 -0
  8. package/dist/runtime-platform.workerd.d.ts +3 -0
  9. package/dist/runtime-platform.workerd.js +10 -0
  10. package/dist/runtime.d.ts +262 -0
  11. package/dist/runtime.js +576 -0
  12. package/node_modules/@noble/hashes/LICENSE +21 -0
  13. package/node_modules/@noble/hashes/README.md +478 -0
  14. package/node_modules/@noble/hashes/_blake.d.ts +20 -0
  15. package/node_modules/@noble/hashes/_blake.js +59 -0
  16. package/node_modules/@noble/hashes/_md.d.ts +95 -0
  17. package/node_modules/@noble/hashes/_md.js +209 -0
  18. package/node_modules/@noble/hashes/_u64.d.ts +36 -0
  19. package/node_modules/@noble/hashes/_u64.js +77 -0
  20. package/node_modules/@noble/hashes/argon2.d.ts +148 -0
  21. package/node_modules/@noble/hashes/argon2.js +577 -0
  22. package/node_modules/@noble/hashes/blake1.d.ts +162 -0
  23. package/node_modules/@noble/hashes/blake1.js +630 -0
  24. package/node_modules/@noble/hashes/blake2.d.ts +203 -0
  25. package/node_modules/@noble/hashes/blake2.js +573 -0
  26. package/node_modules/@noble/hashes/blake3.d.ts +68 -0
  27. package/node_modules/@noble/hashes/blake3.js +310 -0
  28. package/node_modules/@noble/hashes/eskdf.d.ts +91 -0
  29. package/node_modules/@noble/hashes/eskdf.js +225 -0
  30. package/node_modules/@noble/hashes/hkdf.d.ts +70 -0
  31. package/node_modules/@noble/hashes/hkdf.js +152 -0
  32. package/node_modules/@noble/hashes/hmac.d.ts +50 -0
  33. package/node_modules/@noble/hashes/hmac.js +93 -0
  34. package/node_modules/@noble/hashes/index.d.ts +1 -0
  35. package/node_modules/@noble/hashes/index.js +34 -0
  36. package/node_modules/@noble/hashes/legacy.d.ts +107 -0
  37. package/node_modules/@noble/hashes/legacy.js +348 -0
  38. package/node_modules/@noble/hashes/package.json +91 -0
  39. package/node_modules/@noble/hashes/pbkdf2.d.ts +66 -0
  40. package/node_modules/@noble/hashes/pbkdf2.js +176 -0
  41. package/node_modules/@noble/hashes/scrypt.d.ts +98 -0
  42. package/node_modules/@noble/hashes/scrypt.js +304 -0
  43. package/node_modules/@noble/hashes/sha2.d.ts +176 -0
  44. package/node_modules/@noble/hashes/sha2.js +446 -0
  45. package/node_modules/@noble/hashes/sha3-addons.d.ts +533 -0
  46. package/node_modules/@noble/hashes/sha3-addons.js +973 -0
  47. package/node_modules/@noble/hashes/sha3.d.ts +208 -0
  48. package/node_modules/@noble/hashes/sha3.js +475 -0
  49. package/node_modules/@noble/hashes/src/_blake.ts +67 -0
  50. package/node_modules/@noble/hashes/src/_md.ts +227 -0
  51. package/node_modules/@noble/hashes/src/_u64.ts +111 -0
  52. package/node_modules/@noble/hashes/src/argon2.ts +693 -0
  53. package/node_modules/@noble/hashes/src/blake1.ts +677 -0
  54. package/node_modules/@noble/hashes/src/blake2.ts +648 -0
  55. package/node_modules/@noble/hashes/src/blake3.ts +344 -0
  56. package/node_modules/@noble/hashes/src/eskdf.ts +265 -0
  57. package/node_modules/@noble/hashes/src/hkdf.ts +161 -0
  58. package/node_modules/@noble/hashes/src/hmac.ts +130 -0
  59. package/node_modules/@noble/hashes/src/index.ts +33 -0
  60. package/node_modules/@noble/hashes/src/legacy.ts +361 -0
  61. package/node_modules/@noble/hashes/src/pbkdf2.ts +219 -0
  62. package/node_modules/@noble/hashes/src/scrypt.ts +375 -0
  63. package/node_modules/@noble/hashes/src/sha2.ts +486 -0
  64. package/node_modules/@noble/hashes/src/sha3-addons.ts +1157 -0
  65. package/node_modules/@noble/hashes/src/sha3.ts +525 -0
  66. package/node_modules/@noble/hashes/src/utils.ts +978 -0
  67. package/node_modules/@noble/hashes/src/webcrypto.ts +283 -0
  68. package/node_modules/@noble/hashes/utils.d.ts +560 -0
  69. package/node_modules/@noble/hashes/utils.js +687 -0
  70. package/node_modules/@noble/hashes/webcrypto.d.ts +121 -0
  71. package/node_modules/@noble/hashes/webcrypto.js +228 -0
  72. package/node_modules/@poe-code/agent-mcp-config/dist/apply.js +23 -9
  73. package/node_modules/@poe-code/config-mutations/README.md +2 -0
  74. package/node_modules/@poe-code/config-mutations/dist/execution/apply-mutation.js +4 -5
  75. package/node_modules/@poe-code/config-mutations/dist/execution/path-utils.d.ts +3 -4
  76. package/node_modules/@poe-code/config-mutations/dist/execution/path-utils.js +3 -3
  77. package/node_modules/@poe-code/config-mutations/dist/template/render.js +1 -1
  78. package/node_modules/@poe-code/config-mutations/dist/testing/mock-fs.d.ts +2 -2
  79. package/node_modules/@poe-code/config-mutations/dist/testing/mock-fs.js +3 -6
  80. package/node_modules/@poe-code/config-mutations/dist/types.d.ts +4 -2
  81. package/node_modules/@poe-code/process-runner/README.md +2 -1
  82. package/node_modules/@poe-code/process-runner/dist/transfer-filesystem.d.ts +1 -0
  83. package/node_modules/@poe-code/process-runner/dist/transfer-filesystem.js +1 -0
  84. package/node_modules/@poe-code/process-runner/dist/transfer-filesystem.workerd.d.ts +2 -0
  85. package/node_modules/@poe-code/process-runner/dist/transfer-filesystem.workerd.js +1 -0
  86. package/node_modules/@poe-code/process-runner/dist/types.d.ts +1 -1
  87. package/node_modules/@poe-code/process-runner/dist/workspace-transfer.d.ts +6 -5
  88. package/node_modules/@poe-code/process-runner/dist/workspace-transfer.js +67 -29
  89. package/node_modules/@poe-code/process-runner/package.json +13 -0
  90. package/node_modules/@poe-code/safe-fs/LICENSE +21 -0
  91. package/node_modules/@poe-code/safe-fs/PROVENANCE.json +428 -0
  92. package/node_modules/@poe-code/safe-fs/README.md +411 -0
  93. package/node_modules/@poe-code/safe-fs/dist/bridge/confinement.d.ts +3 -0
  94. package/node_modules/@poe-code/safe-fs/dist/bridge/confinement.js +171 -0
  95. package/node_modules/@poe-code/safe-fs/dist/bridge/filesystem.d.ts +93 -0
  96. package/node_modules/@poe-code/safe-fs/dist/bridge/filesystem.js +453 -0
  97. package/node_modules/@poe-code/safe-fs/dist/bridge/index.d.ts +7 -0
  98. package/node_modules/@poe-code/safe-fs/dist/bridge/index.js +19 -0
  99. package/node_modules/@poe-code/safe-fs/dist/bridge/stats.d.ts +4 -0
  100. package/node_modules/@poe-code/safe-fs/dist/bridge/stats.js +37 -0
  101. package/node_modules/@poe-code/safe-fs/dist/bridge/types.d.ts +81 -0
  102. package/node_modules/@poe-code/safe-fs/dist/bridge/types.js +1 -0
  103. package/node_modules/@poe-code/safe-fs/dist/bridge/values.d.ts +6 -0
  104. package/node_modules/@poe-code/safe-fs/dist/bridge/values.js +65 -0
  105. package/node_modules/@poe-code/safe-fs/dist/config/memory.d.ts +3 -0
  106. package/node_modules/@poe-code/safe-fs/dist/config/memory.js +7 -0
  107. package/node_modules/@poe-code/safe-fs/dist/config/real.d.ts +5 -0
  108. package/node_modules/@poe-code/safe-fs/dist/config/real.js +16 -0
  109. package/node_modules/@poe-code/safe-fs/dist/config/registry.d.ts +2 -0
  110. package/node_modules/@poe-code/safe-fs/dist/config/registry.js +15 -0
  111. package/node_modules/@poe-code/safe-fs/dist/config.d.ts +15 -0
  112. package/node_modules/@poe-code/safe-fs/dist/config.js +46 -0
  113. package/node_modules/@poe-code/safe-fs/dist/config.node.d.ts +2 -0
  114. package/node_modules/@poe-code/safe-fs/dist/config.node.js +11 -0
  115. package/node_modules/@poe-code/safe-fs/dist/config.portable.d.ts +3 -0
  116. package/node_modules/@poe-code/safe-fs/dist/config.portable.js +9 -0
  117. package/node_modules/@poe-code/safe-fs/dist/contracts/abort.d.ts +5 -0
  118. package/node_modules/@poe-code/safe-fs/dist/contracts/abort.js +34 -0
  119. package/node_modules/@poe-code/safe-fs/dist/contracts/cleanup.d.ts +1 -0
  120. package/node_modules/@poe-code/safe-fs/dist/contracts/cleanup.js +9 -0
  121. package/node_modules/@poe-code/safe-fs/dist/contracts/descriptor.d.ts +38 -0
  122. package/node_modules/@poe-code/safe-fs/dist/contracts/descriptor.js +1 -0
  123. package/node_modules/@poe-code/safe-fs/dist/contracts/errors.d.ts +53 -0
  124. package/node_modules/@poe-code/safe-fs/dist/contracts/errors.js +99 -0
  125. package/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.d.ts +379 -0
  126. package/node_modules/@poe-code/safe-fs/dist/contracts/filesystem.js +1 -0
  127. package/node_modules/@poe-code/safe-fs/dist/contracts/index.d.ts +6 -0
  128. package/node_modules/@poe-code/safe-fs/dist/contracts/index.js +6 -0
  129. package/node_modules/@poe-code/safe-fs/dist/contracts/io.d.ts +12 -0
  130. package/node_modules/@poe-code/safe-fs/dist/contracts/io.js +321 -0
  131. package/node_modules/@poe-code/safe-fs/dist/contracts/object.d.ts +134 -0
  132. package/node_modules/@poe-code/safe-fs/dist/contracts/object.js +97 -0
  133. package/node_modules/@poe-code/safe-fs/dist/contracts/path.d.ts +3 -0
  134. package/node_modules/@poe-code/safe-fs/dist/contracts/path.js +2 -0
  135. package/node_modules/@poe-code/safe-fs/dist/contracts/portable-path.d.ts +21 -0
  136. package/node_modules/@poe-code/safe-fs/dist/contracts/portable-path.js +78 -0
  137. package/node_modules/@poe-code/safe-fs/dist/contracts/virtual-path.d.ts +15 -0
  138. package/node_modules/@poe-code/safe-fs/dist/contracts/virtual-path.js +162 -0
  139. package/node_modules/@poe-code/safe-fs/dist/core.d.ts +19 -0
  140. package/node_modules/@poe-code/safe-fs/dist/core.js +17 -0
  141. package/node_modules/@poe-code/safe-fs/dist/fs/capabilities.d.ts +10 -0
  142. package/node_modules/@poe-code/safe-fs/dist/fs/capabilities.js +216 -0
  143. package/node_modules/@poe-code/safe-fs/dist/fs/conditional-chmod.d.ts +7 -0
  144. package/node_modules/@poe-code/safe-fs/dist/fs/conditional-chmod.js +19 -0
  145. package/node_modules/@poe-code/safe-fs/dist/fs/descriptor.d.ts +21 -0
  146. package/node_modules/@poe-code/safe-fs/dist/fs/descriptor.js +279 -0
  147. package/node_modules/@poe-code/safe-fs/dist/fs/devices/index.d.ts +59 -0
  148. package/node_modules/@poe-code/safe-fs/dist/fs/devices/index.js +875 -0
  149. package/node_modules/@poe-code/safe-fs/dist/fs/devices/path.d.ts +7 -0
  150. package/node_modules/@poe-code/safe-fs/dist/fs/devices/path.js +250 -0
  151. package/node_modules/@poe-code/safe-fs/dist/fs/devices/stream.d.ts +6 -0
  152. package/node_modules/@poe-code/safe-fs/dist/fs/devices/stream.js +136 -0
  153. package/node_modules/@poe-code/safe-fs/dist/fs/directory-admission.d.ts +3 -0
  154. package/node_modules/@poe-code/safe-fs/dist/fs/directory-admission.js +14 -0
  155. package/node_modules/@poe-code/safe-fs/dist/fs/memory/atomic-view.d.ts +11 -0
  156. package/node_modules/@poe-code/safe-fs/dist/fs/memory/atomic-view.js +13 -0
  157. package/node_modules/@poe-code/safe-fs/dist/fs/memory/index.d.ts +186 -0
  158. package/node_modules/@poe-code/safe-fs/dist/fs/memory/index.js +3771 -0
  159. package/node_modules/@poe-code/safe-fs/dist/fs/memory/ledger.d.ts +26 -0
  160. package/node_modules/@poe-code/safe-fs/dist/fs/memory/ledger.js +96 -0
  161. package/node_modules/@poe-code/safe-fs/dist/fs/memory/limits.d.ts +13 -0
  162. package/node_modules/@poe-code/safe-fs/dist/fs/memory/limits.js +26 -0
  163. package/node_modules/@poe-code/safe-fs/dist/fs/memory/missing-target.d.ts +15 -0
  164. package/node_modules/@poe-code/safe-fs/dist/fs/memory/missing-target.js +144 -0
  165. package/node_modules/@poe-code/safe-fs/dist/fs/mount/comparison.d.ts +19 -0
  166. package/node_modules/@poe-code/safe-fs/dist/fs/mount/comparison.js +118 -0
  167. package/node_modules/@poe-code/safe-fs/dist/fs/mount/identity.d.ts +6 -0
  168. package/node_modules/@poe-code/safe-fs/dist/fs/mount/identity.js +29 -0
  169. package/node_modules/@poe-code/safe-fs/dist/fs/mount/index.d.ts +74 -0
  170. package/node_modules/@poe-code/safe-fs/dist/fs/mount/index.js +1291 -0
  171. package/node_modules/@poe-code/safe-fs/dist/fs/object-authority.d.ts +27 -0
  172. package/node_modules/@poe-code/safe-fs/dist/fs/object-authority.js +287 -0
  173. package/node_modules/@poe-code/safe-fs/dist/fs/object-publication/index.d.ts +45 -0
  174. package/node_modules/@poe-code/safe-fs/dist/fs/object-publication/index.js +531 -0
  175. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.d.ts +87 -0
  176. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/index.js +1185 -0
  177. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.d.ts +42 -0
  178. package/node_modules/@poe-code/safe-fs/dist/fs/overlay/memory-publication.js +558 -0
  179. package/node_modules/@poe-code/safe-fs/dist/fs/path-namespace.d.ts +4 -0
  180. package/node_modules/@poe-code/safe-fs/dist/fs/path-namespace.js +63 -0
  181. package/node_modules/@poe-code/safe-fs/dist/fs/quota/index.d.ts +12 -0
  182. package/node_modules/@poe-code/safe-fs/dist/fs/quota/index.js +520 -0
  183. package/node_modules/@poe-code/safe-fs/dist/fs/readonly/index.d.ts +37 -0
  184. package/node_modules/@poe-code/safe-fs/dist/fs/readonly/index.js +208 -0
  185. package/node_modules/@poe-code/safe-fs/dist/fs/real/allocation.d.ts +1 -0
  186. package/node_modules/@poe-code/safe-fs/dist/fs/real/allocation.js +8 -0
  187. package/node_modules/@poe-code/safe-fs/dist/fs/real/index.d.ts +105 -0
  188. package/node_modules/@poe-code/safe-fs/dist/fs/real/index.js +1259 -0
  189. package/node_modules/@poe-code/safe-fs/dist/fs/s3/authority.d.ts +7 -0
  190. package/node_modules/@poe-code/safe-fs/dist/fs/s3/authority.js +38 -0
  191. package/node_modules/@poe-code/safe-fs/dist/fs/s3/filesystem.d.ts +130 -0
  192. package/node_modules/@poe-code/safe-fs/dist/fs/s3/filesystem.js +1137 -0
  193. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/bytes.d.ts +1 -0
  194. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/bytes.js +9 -0
  195. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/index.d.ts +2 -0
  196. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/index.js +1 -0
  197. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-fetch.d.ts +15 -0
  198. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-fetch.js +74 -0
  199. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-node.d.ts +4 -0
  200. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request-node.js +111 -0
  201. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request.d.ts +17 -0
  202. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/request.js +89 -0
  203. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/signature.d.ts +20 -0
  204. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/signature.js +76 -0
  205. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/transport.d.ts +3 -0
  206. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/transport.js +478 -0
  207. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/types.d.ts +30 -0
  208. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/types.js +1 -0
  209. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/xml.d.ts +14 -0
  210. package/node_modules/@poe-code/safe-fs/dist/fs/s3/http/xml.js +192 -0
  211. package/node_modules/@poe-code/safe-fs/dist/fs/s3/index.d.ts +8 -0
  212. package/node_modules/@poe-code/safe-fs/dist/fs/s3/index.js +4 -0
  213. package/node_modules/@poe-code/safe-fs/dist/fs/s3/key-order.d.ts +2 -0
  214. package/node_modules/@poe-code/safe-fs/dist/fs/s3/key-order.js +11 -0
  215. package/node_modules/@poe-code/safe-fs/dist/fs/s3/manifest-admission.d.ts +8 -0
  216. package/node_modules/@poe-code/safe-fs/dist/fs/s3/manifest-admission.js +167 -0
  217. package/node_modules/@poe-code/safe-fs/dist/fs/s3/mock.d.ts +48 -0
  218. package/node_modules/@poe-code/safe-fs/dist/fs/s3/mock.js +249 -0
  219. package/node_modules/@poe-code/safe-fs/dist/fs/s3/namespace.d.ts +13 -0
  220. package/node_modules/@poe-code/safe-fs/dist/fs/s3/namespace.js +400 -0
  221. package/node_modules/@poe-code/safe-fs/dist/fs/s3/registry.d.ts +10 -0
  222. package/node_modules/@poe-code/safe-fs/dist/fs/s3/registry.js +73 -0
  223. package/node_modules/@poe-code/safe-fs/dist/fs/s3/transport.d.ts +103 -0
  224. package/node_modules/@poe-code/safe-fs/dist/fs/s3/transport.js +28 -0
  225. package/node_modules/@poe-code/safe-fs/dist/fs/scoped.d.ts +19 -0
  226. package/node_modules/@poe-code/safe-fs/dist/fs/scoped.js +663 -0
  227. package/node_modules/@poe-code/safe-fs/dist/fs/staging-ancestry.d.ts +8 -0
  228. package/node_modules/@poe-code/safe-fs/dist/fs/staging-ancestry.js +115 -0
  229. package/node_modules/@poe-code/safe-fs/dist/fs/staging-cleanup.d.ts +5 -0
  230. package/node_modules/@poe-code/safe-fs/dist/fs/staging-cleanup.js +63 -0
  231. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/index.d.ts +2 -0
  232. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/index.js +1 -0
  233. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/resource-id.d.ts +18 -0
  234. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/resource-id.js +109 -0
  235. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/webdav.d.ts +141 -0
  236. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/webdav.js +1377 -0
  237. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/xml.d.ts +15 -0
  238. package/node_modules/@poe-code/safe-fs/dist/fs/webdav/xml.js +59 -0
  239. package/node_modules/@poe-code/safe-fs/dist/index.d.ts +25 -0
  240. package/node_modules/@poe-code/safe-fs/dist/index.js +21 -0
  241. package/node_modules/@poe-code/safe-fs/dist/native/fs-seek/linux-x64-glibc.node +0 -0
  242. package/node_modules/@poe-code/safe-fs/dist/native/fs-seek/loader.d.ts +5 -0
  243. package/node_modules/@poe-code/safe-fs/dist/native/fs-seek/loader.mjs +120 -0
  244. package/node_modules/@poe-code/safe-fs/dist/native/fs-seek/manifest.json +46 -0
  245. package/node_modules/@poe-code/safe-fs/dist/node/filesystem.d.ts +19 -0
  246. package/node_modules/@poe-code/safe-fs/dist/node/filesystem.js +30 -0
  247. package/node_modules/@poe-code/safe-fs/dist/node/host.d.ts +3 -0
  248. package/node_modules/@poe-code/safe-fs/dist/node/host.js +78 -0
  249. package/node_modules/@poe-code/safe-fs/dist/node/index.d.ts +3 -0
  250. package/node_modules/@poe-code/safe-fs/dist/node/index.js +2 -0
  251. package/node_modules/@poe-code/safe-fs/dist/node/native-seek-unavailable.d.ts +1 -0
  252. package/node_modules/@poe-code/safe-fs/dist/node/native-seek-unavailable.js +5 -0
  253. package/node_modules/@poe-code/safe-fs/dist/node/native-seek.d.ts +3 -0
  254. package/node_modules/@poe-code/safe-fs/dist/node/native-seek.js +54 -0
  255. package/node_modules/@poe-code/safe-fs/dist/node/stats.d.ts +1 -0
  256. package/node_modules/@poe-code/safe-fs/dist/node/stats.js +1 -0
  257. package/node_modules/@poe-code/safe-fs/dist/node/values.d.ts +1 -0
  258. package/node_modules/@poe-code/safe-fs/dist/node/values.js +1 -0
  259. package/node_modules/@poe-code/safe-fs/dist/node-host.d.ts +1 -0
  260. package/node_modules/@poe-code/safe-fs/dist/node-host.js +1 -0
  261. package/node_modules/@poe-code/safe-fs/dist/node-unavailable.d.ts +1 -0
  262. package/node_modules/@poe-code/safe-fs/dist/node-unavailable.js +1 -0
  263. package/node_modules/@poe-code/safe-fs/dist/package.json +29 -0
  264. package/node_modules/@poe-code/safe-fs/dist/platform/browser-path.d.ts +1 -0
  265. package/node_modules/@poe-code/safe-fs/dist/platform/browser-path.js +1 -0
  266. package/node_modules/@poe-code/safe-fs/dist/platform/browser.d.ts +26 -0
  267. package/node_modules/@poe-code/safe-fs/dist/platform/browser.js +58 -0
  268. package/node_modules/@poe-code/safe-fs/dist/platform/node-path.d.ts +1 -0
  269. package/node_modules/@poe-code/safe-fs/dist/platform/node-path.js +1 -0
  270. package/node_modules/@poe-code/safe-fs/dist/platform/node.d.ts +26 -0
  271. package/node_modules/@poe-code/safe-fs/dist/platform/node.js +64 -0
  272. package/node_modules/@poe-code/safe-fs/dist/platform/transport-budget.d.ts +9 -0
  273. package/node_modules/@poe-code/safe-fs/dist/platform/transport-budget.js +17 -0
  274. package/node_modules/@poe-code/safe-fs/dist/python/emscripten.d.ts +15 -0
  275. package/node_modules/@poe-code/safe-fs/dist/python/emscripten.js +357 -0
  276. package/node_modules/@poe-code/safe-fs/dist/python/filesystem.d.ts +51 -0
  277. package/node_modules/@poe-code/safe-fs/dist/python/filesystem.js +243 -0
  278. package/node_modules/@poe-code/safe-fs/dist/python/flags.d.ts +3 -0
  279. package/node_modules/@poe-code/safe-fs/dist/python/flags.js +14 -0
  280. package/node_modules/@poe-code/safe-fs/dist/python/index.d.ts +9 -0
  281. package/node_modules/@poe-code/safe-fs/dist/python/index.js +5 -0
  282. package/node_modules/@poe-code/safe-fs/dist/python/native.d.ts +18 -0
  283. package/node_modules/@poe-code/safe-fs/dist/python/native.js +446 -0
  284. package/node_modules/@poe-code/safe-fs/dist/python/request.d.ts +2 -0
  285. package/node_modules/@poe-code/safe-fs/dist/python/request.js +61 -0
  286. package/node_modules/@poe-code/safe-fs/dist/python/stat.d.ts +8 -0
  287. package/node_modules/@poe-code/safe-fs/dist/python/stat.js +34 -0
  288. package/node_modules/@poe-code/safe-fs/dist/runtime-core.d.ts +27 -0
  289. package/node_modules/@poe-code/safe-fs/dist/runtime-core.js +57 -0
  290. package/node_modules/@poe-code/safe-fs/dist/testing/atomic-filesystem.d.ts +16 -0
  291. package/node_modules/@poe-code/safe-fs/dist/testing/atomic-filesystem.js +496 -0
  292. package/node_modules/@poe-code/safe-fs/dist/testing/object-io-control.d.ts +23 -0
  293. package/node_modules/@poe-code/safe-fs/dist/testing/object-io-control.js +39 -0
  294. package/node_modules/@poe-code/safe-fs/dist/testing/object-io-metrics.d.ts +31 -0
  295. package/node_modules/@poe-code/safe-fs/dist/testing/object-io-metrics.js +143 -0
  296. package/node_modules/@poe-code/safe-fs/dist/testing/object-publication.d.ts +19 -0
  297. package/node_modules/@poe-code/safe-fs/dist/testing/object-publication.js +209 -0
  298. package/node_modules/@poe-code/safe-fs/dist/xml.d.ts +1 -0
  299. package/node_modules/@poe-code/safe-fs/dist/xml.js +1 -0
  300. package/node_modules/@poe-code/safe-fs/package.json +189 -0
  301. package/node_modules/@poe-code/task-list/README.md +2 -0
  302. package/node_modules/@poe-code/task-list/dist/backends/gh-issues-client.d.ts +1 -1
  303. package/node_modules/@poe-code/task-list/dist/backends/gh-issues-client.js +11 -4
  304. package/node_modules/@poe-code/task-list/dist/backends/markdown-dir.js +2 -2
  305. package/node_modules/@poe-code/task-list/dist/backends/utils.js +5 -7
  306. package/node_modules/@poe-code/task-list/dist/backends/yaml-file.js +1 -1
  307. package/node_modules/@poe-code/task-list/dist/default-host.d.ts +2 -0
  308. package/node_modules/@poe-code/task-list/dist/default-host.js +2 -0
  309. package/node_modules/@poe-code/task-list/dist/default-host.workerd.d.ts +4 -0
  310. package/node_modules/@poe-code/task-list/dist/default-host.workerd.js +6 -0
  311. package/node_modules/@poe-code/task-list/dist/filesystem.d.ts +3 -0
  312. package/node_modules/@poe-code/task-list/dist/filesystem.js +32 -0
  313. package/node_modules/@poe-code/task-list/dist/move.js +3 -3
  314. package/node_modules/@poe-code/task-list/dist/open.js +2 -5
  315. package/node_modules/@poe-code/task-list/dist/paths.d.ts +12 -0
  316. package/node_modules/@poe-code/task-list/dist/paths.js +7 -0
  317. package/node_modules/@poe-code/task-list/dist/types.d.ts +6 -5
  318. package/node_modules/@poe-code/task-list/package.json +9 -0
  319. package/node_modules/@poe-code/terminal-text/LICENSE +21 -0
  320. package/node_modules/@poe-code/terminal-text/README.md +12 -0
  321. package/node_modules/@poe-code/terminal-text/dist/index.d.ts +2 -0
  322. package/node_modules/@poe-code/terminal-text/dist/index.js +20 -0
  323. package/node_modules/@poe-code/terminal-text/package.json +22 -0
  324. package/node_modules/@poe-code/xml-ast/LICENSE +21 -0
  325. package/node_modules/@poe-code/xml-ast/README.md +28 -0
  326. package/node_modules/@poe-code/xml-ast/dist/index.d.ts +47 -0
  327. package/node_modules/@poe-code/xml-ast/dist/index.js +635 -0
  328. package/node_modules/@poe-code/xml-ast/package.json +25 -0
  329. package/node_modules/auth-store/README.md +35 -0
  330. package/node_modules/auth-store/dist/index.browser.d.ts +4 -0
  331. package/node_modules/auth-store/dist/index.browser.js +2 -0
  332. package/node_modules/auth-store/dist/provider-store.d.ts +1 -1
  333. package/node_modules/auth-store/dist/safe-fs-secret-store.d.ts +21 -0
  334. package/node_modules/auth-store/dist/safe-fs-secret-store.js +119 -0
  335. package/node_modules/auth-store/dist/secret-store.d.ts +12 -0
  336. package/node_modules/auth-store/dist/secret-store.js +1 -0
  337. package/node_modules/auth-store/dist/transaction-lock.d.ts +2 -4
  338. package/node_modules/auth-store/dist/types.d.ts +2 -9
  339. package/node_modules/auth-store/package.json +16 -2
  340. package/node_modules/tiny-http-mcp-server/dist/composition.json +16 -1
  341. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/README.md +25 -0
  342. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/authorization-state.js +4 -4
  343. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/default-oauth-client-provider.js +6 -40
  344. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/oauth-form.d.ts +10 -0
  345. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/oauth-form.js +20 -0
  346. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/pkce.js +4 -3
  347. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.d.ts +14 -0
  348. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/register-client.js +53 -0
  349. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resumable.d.ts +16 -2
  350. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/resumable.js +29 -9
  351. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/revoke-token.d.ts +12 -0
  352. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/revoke-token.js +23 -0
  353. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/client/token-endpoint.js +6 -19
  354. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/http-fetch.js +1 -1
  355. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.browser.d.ts +6 -2
  356. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.browser.js +5 -1
  357. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.d.ts +5 -2
  358. package/node_modules/tiny-http-mcp-server/node_modules/mcp-oauth/dist/index.js +4 -1
  359. package/node_modules/tiny-http-mcp-server/package.json +4 -4
  360. package/node_modules/tiny-mcp-client/README.md +2 -0
  361. package/node_modules/tiny-mcp-client/dist/index.browser.d.ts +25 -23
  362. package/node_modules/tiny-mcp-client/dist/index.browser.js +116 -1
  363. package/node_modules/tiny-mcp-client/dist/index.d.ts +25 -23
  364. package/node_modules/tiny-mcp-client/dist/index.js +1034 -561
  365. package/node_modules/tiny-mcp-client/package.json +15 -0
  366. package/node_modules/tiny-stdio-mcp-server/dist/composition.json +1 -1
  367. package/node_modules/toolcraft-design/dist/components/table.js +6 -0
  368. package/node_modules/toolcraft-design/dist/escape-terminal-text.d.ts +1 -2
  369. package/node_modules/toolcraft-design/dist/escape-terminal-text.js +1 -20
  370. package/node_modules/toolcraft-design/dist/terminal-markdown/parser/frontmatter.js +2 -1
  371. package/node_modules/toolcraft-design/dist/terminal-markdown/parser.js +2 -1
  372. package/node_modules/toolcraft-schema/dist/json-schema/utils.js +3 -0
  373. package/node_modules/toolcraft-schema/package.json +1 -1
  374. package/package.json +32 -7
@@ -0,0 +1,533 @@
1
+ /**
2
+ * SHA3 (keccak) addons.
3
+ *
4
+ * * cSHAKE, KMAC, TupleHash, ParallelHash + XOF variants from
5
+ * {@link https://csrc.nist.gov/pubs/sp/800/185/final | NIST SP 800-185}
6
+ * * KangarooTwelve 🦘 and TurboSHAKE - reduced-round keccak from
7
+ * {@link https://datatracker.ietf.org/doc/rfc9861/ | RFC 9861}
8
+ * * KeccakPRG: Pseudo-random generator based on Keccak
9
+ * ({@link https://keccak.team/files/CSF-0.1.pdf | pdf})
10
+ * @module
11
+ */
12
+ import { Keccak, type ShakeOpts } from './sha3.ts';
13
+ import { type CHash, type CHashXOF, type Hash, type HashXOF, type KDFInput, type PRG, type TArg, type TRet } from './utils.ts';
14
+ /** Options for cSHAKE and related SP 800-185 functions. */
15
+ export type cShakeOpts = ShakeOpts & {
16
+ /** Optional personalization string mixed into domain separation. */
17
+ personalization?: Uint8Array;
18
+ /**
19
+ * Optional NIST function-name string used for domain separation.
20
+ * SP 800-185 reserves this for standardized function names; applications
21
+ * should generally stick to `personalization`.
22
+ */
23
+ NISTfn?: KDFInput;
24
+ };
25
+ /** TupleHash callable interface. */
26
+ export type ITupleHash = {
27
+ /**
28
+ * Hashes an ordered tuple of byte arrays.
29
+ * @param messages - Ordered byte-array tuple to hash.
30
+ * @param opts - TupleHash output and personalization options. See {@link cShakeOpts}.
31
+ * @returns Digest bytes.
32
+ */
33
+ (messages: TArg<Uint8Array[]>, opts?: cShakeOpts): TRet<Uint8Array>;
34
+ /**
35
+ * Creates an incremental TupleHash state.
36
+ * @param opts - TupleHash output and personalization options. See {@link cShakeOpts}.
37
+ * @returns Stateful TupleHash instance.
38
+ */
39
+ create(opts?: cShakeOpts): _TupleHash;
40
+ /** Default digest size in bytes. */
41
+ outputLen: number;
42
+ /** Input block size in bytes. */
43
+ blockLen: number;
44
+ /** Whether `.create()` returns an XOF-capable instance. */
45
+ canXOF: boolean;
46
+ };
47
+ /**
48
+ * 128-bit NIST cSHAKE XOF.
49
+ * @param msg - message bytes to hash
50
+ * @param opts - Optional output, personalization, and NIST function-name
51
+ * settings. When both `NISTfn` and `personalization` are empty,
52
+ * SP 800-185 defines this as plain SHAKE128. Defaults to 16 output bytes
53
+ * when `dkLen` is omitted. See {@link cShakeOpts}.
54
+ * @returns Digest bytes.
55
+ * @example
56
+ * Hash a message with cSHAKE128.
57
+ * ```ts
58
+ * cshake128(new Uint8Array([1, 2, 3]), { dkLen: 32 });
59
+ * ```
60
+ * @example
61
+ * Hash a message with SP 800-185 domain separation.
62
+ * ```ts
63
+ * cshake128(new Uint8Array([1, 2, 3]), {
64
+ * dkLen: 32,
65
+ * NISTfn: 'Email Signature',
66
+ * personalization: new Uint8Array([1, 2, 3]),
67
+ * });
68
+ * ```
69
+ */
70
+ export declare const cshake128: TRet<CHashXOF<Keccak, cShakeOpts>>;
71
+ /**
72
+ * 256-bit NIST cSHAKE XOF.
73
+ * @param msg - message bytes to hash
74
+ * @param opts - Optional output, personalization, and NIST function-name
75
+ * settings. When both `NISTfn` and `personalization` are empty,
76
+ * SP 800-185 defines this as plain SHAKE256. Defaults to 32 output bytes
77
+ * when `dkLen` is omitted. See {@link cShakeOpts}.
78
+ * @returns Digest bytes.
79
+ * @example
80
+ * Hash a message with cSHAKE256.
81
+ * ```ts
82
+ * cshake256(new Uint8Array([1, 2, 3]), { dkLen: 64 });
83
+ * ```
84
+ */
85
+ export declare const cshake256: TRet<CHashXOF<Keccak, cShakeOpts>>;
86
+ /**
87
+ * Internal KMAC class.
88
+ * SP 800-185 §8.4.1 still recommends keys at least as long as the target
89
+ * security strength.
90
+ */
91
+ export declare class _KMAC extends Keccak implements HashXOF<_KMAC> {
92
+ constructor(blockLen: number, outputLen: number, enableXOF: boolean, key: TArg<Uint8Array>, opts?: cShakeOpts);
93
+ protected finish(): void;
94
+ _cloneInto(to?: _KMAC): _KMAC;
95
+ clone(): _KMAC;
96
+ }
97
+ /** KMAC callable interface. */
98
+ export type IKMAC = {
99
+ /**
100
+ * Computes a keyed KMAC digest for one message.
101
+ * @param key - Secret key bytes.
102
+ * @param message - Message bytes to authenticate.
103
+ * @param opts - KMAC output and personalization options. See {@link cShakeOpts}.
104
+ * @returns Authentication tag bytes.
105
+ */
106
+ (key: TArg<Uint8Array>, message: TArg<Uint8Array>, opts?: cShakeOpts): TRet<Uint8Array>;
107
+ /**
108
+ * Creates an incremental KMAC state.
109
+ * @param key - Secret key bytes.
110
+ * @param opts - KMAC output and personalization options. See {@link cShakeOpts}.
111
+ * @returns Stateful KMAC instance.
112
+ */
113
+ create(key: TArg<Uint8Array>, opts?: cShakeOpts): _KMAC;
114
+ /** Default tag size in bytes. */
115
+ outputLen: number;
116
+ /** Input block size in bytes. */
117
+ blockLen: number;
118
+ /** Whether `.create()` returns an XOF-capable instance. */
119
+ canXOF: boolean;
120
+ };
121
+ /**
122
+ * 128-bit Keccak MAC.
123
+ * @param key - MAC key bytes
124
+ * @param message - message bytes to authenticate
125
+ * @param opts - Optional output and personalization settings. Defaults to
126
+ * 16 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
127
+ * @returns Authentication tag bytes.
128
+ * @example
129
+ * Authenticate a message with KMAC128.
130
+ * ```ts
131
+ * const key = new Uint8Array([1, 2, 3]);
132
+ * const message = new Uint8Array([4, 5, 6]);
133
+ * kmac128(key, message);
134
+ * ```
135
+ * @example
136
+ * Authenticate a message with output options and an incremental state.
137
+ * ```ts
138
+ * const key = new Uint8Array([1, 2, 3]);
139
+ * const message = new Uint8Array([4, 5, 6]);
140
+ * const opts = { dkLen: 32, personalization: new Uint8Array([7, 8, 9]) };
141
+ * const tag = kmac128(key, message, opts);
142
+ * const out = new Uint8Array(32);
143
+ * kmac128.create(key, { dkLen: 32 }).update(message).digestInto(out);
144
+ * ```
145
+ */
146
+ export declare const kmac128: TRet<IKMAC>;
147
+ /**
148
+ * 256-bit Keccak MAC.
149
+ * @param key - MAC key bytes
150
+ * @param message - message bytes to authenticate
151
+ * @param opts - Optional output and personalization settings. Defaults to
152
+ * 32 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
153
+ * @returns Authentication tag bytes.
154
+ * @example
155
+ * Authenticate a message with KMAC256.
156
+ * ```ts
157
+ * kmac256(new Uint8Array([1, 2, 3]), new Uint8Array([4, 5, 6]));
158
+ * ```
159
+ */
160
+ export declare const kmac256: TRet<IKMAC>;
161
+ /**
162
+ * 128-bit Keccak-MAC XOF.
163
+ * @param key - MAC key bytes
164
+ * @param message - message bytes to authenticate
165
+ * @param opts - Optional output and personalization settings. Defaults to
166
+ * 16 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
167
+ * @returns Authentication tag bytes.
168
+ * @example
169
+ * Authenticate a message with KMAC128 XOF output.
170
+ * ```ts
171
+ * kmac128xof(new Uint8Array([1, 2, 3]), new Uint8Array([4, 5, 6]), { dkLen: 32 });
172
+ * ```
173
+ */
174
+ export declare const kmac128xof: TRet<IKMAC>;
175
+ /**
176
+ * 256-bit Keccak-MAC XOF.
177
+ * @param key - MAC key bytes
178
+ * @param message - message bytes to authenticate
179
+ * @param opts - Optional output and personalization settings. Defaults to
180
+ * 32 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
181
+ * @returns Authentication tag bytes.
182
+ * @example
183
+ * Authenticate a message with KMAC256 XOF output.
184
+ * ```ts
185
+ * kmac256xof(new Uint8Array([1, 2, 3]), new Uint8Array([4, 5, 6]), { dkLen: 64 });
186
+ * ```
187
+ */
188
+ export declare const kmac256xof: TRet<IKMAC>;
189
+ /**
190
+ * Internal TupleHash class for byte-array tuple elements.
191
+ * This implementation relies on SP 800-185's byte-oriented encoding form
192
+ * rather than arbitrary bit strings.
193
+ */
194
+ export declare class _TupleHash extends Keccak implements HashXOF<_TupleHash> {
195
+ private tupleMode;
196
+ constructor(blockLen: number, outputLen: number, enableXOF: boolean, opts?: cShakeOpts);
197
+ update(data: TArg<Uint8Array>): this;
198
+ protected finish(): void;
199
+ _cloneInto(to?: _TupleHash): _TupleHash;
200
+ clone(): _TupleHash;
201
+ }
202
+ /**
203
+ * 128-bit TupleHASH. `tuple(['ab', 'cd']) != tuple(['a', 'bcd'])`.
204
+ * @param messages - ordered byte-array tuple
205
+ * @param opts - Optional output and personalization settings. Defaults to
206
+ * 16 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
207
+ * @returns Digest bytes.
208
+ * @example
209
+ * Hash a tuple of byte arrays with TupleHash128.
210
+ * ```ts
211
+ * tuplehash128([new Uint8Array([1]), new Uint8Array([2])]);
212
+ * ```
213
+ */
214
+ export declare const tuplehash128: TRet<ITupleHash>;
215
+ /**
216
+ * 256-bit TupleHASH. `tuple(['ab', 'cd']) != tuple(['a', 'bcd'])`.
217
+ * @param messages - ordered byte-array tuple
218
+ * @param opts - Optional output and personalization settings. Defaults to
219
+ * 32 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
220
+ * @returns Digest bytes.
221
+ * @example
222
+ * Hash a tuple of byte arrays with TupleHash256.
223
+ * ```ts
224
+ * tuplehash256([new Uint8Array([1]), new Uint8Array([2])]);
225
+ * ```
226
+ */
227
+ export declare const tuplehash256: TRet<ITupleHash>;
228
+ /**
229
+ * 128-bit TupleHASH XOF.
230
+ * @param messages - ordered byte-array tuple
231
+ * @param opts - Optional output and personalization settings. Defaults to
232
+ * 16 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
233
+ * @returns Digest bytes.
234
+ * @example
235
+ * Hash a tuple of byte arrays with TupleHash128 XOF output.
236
+ * ```ts
237
+ * tuplehash128xof([new Uint8Array([1]), new Uint8Array([2])], { dkLen: 32 });
238
+ * ```
239
+ */
240
+ export declare const tuplehash128xof: TRet<ITupleHash>;
241
+ /**
242
+ * 256-bit TupleHASH XOF.
243
+ * @param messages - ordered byte-array tuple
244
+ * @param opts - Optional output and personalization settings. Defaults to
245
+ * 32 output bytes when `dkLen` is omitted. See {@link cShakeOpts}.
246
+ * @returns Digest bytes.
247
+ * @example
248
+ * Hash a tuple of byte arrays with TupleHash256 XOF output.
249
+ * ```ts
250
+ * tuplehash256xof([new Uint8Array([1]), new Uint8Array([2])], { dkLen: 64 });
251
+ * ```
252
+ */
253
+ export declare const tuplehash256xof: TRet<ITupleHash>;
254
+ type ParallelOpts = KangarooOpts & {
255
+ blockLen?: number;
256
+ };
257
+ /** Internal Parallel Keccak Hash class. */
258
+ export declare class _ParallelHash extends Keccak implements HashXOF<_ParallelHash> {
259
+ private leafHash?;
260
+ protected leafCons: () => Hash<Keccak>;
261
+ private leafTemplate?;
262
+ private leafCV?;
263
+ private chunkPos;
264
+ private chunksDone;
265
+ private chunkLen;
266
+ private leafMode;
267
+ constructor(blockLen: number, outputLen: number, leafCons: () => Hash<Keccak>, enableXOF: boolean, opts?: ParallelOpts);
268
+ private flushLeaf;
269
+ update(data: TArg<Uint8Array>): this;
270
+ protected finish(): void;
271
+ _cloneInto(to?: _ParallelHash): _ParallelHash;
272
+ destroy(): void;
273
+ clone(): _ParallelHash;
274
+ }
275
+ /**
276
+ * 128-bit ParallelHash. In JS, it is not parallel.
277
+ * @param msg - message bytes to hash
278
+ * @param opts - Optional output, personalization, and chunking settings.
279
+ * Defaults to 16 output bytes when `dkLen` is omitted.
280
+ * See {@link ParallelOpts}.
281
+ * @returns Digest bytes.
282
+ * @example
283
+ * Hash a message with ParallelHash128.
284
+ * ```ts
285
+ * parallelhash128(new Uint8Array([1, 2, 3]));
286
+ * ```
287
+ * @example
288
+ * Hash a message with chunking and personalization settings.
289
+ * ```ts
290
+ * parallelhash128(new Uint8Array([1, 2, 3]), {
291
+ * blockLen: 8,
292
+ * dkLen: 32,
293
+ * personalization: new Uint8Array([4, 5, 6]),
294
+ * });
295
+ * ```
296
+ */
297
+ export declare const parallelhash128: TRet<CHash<Keccak, ParallelOpts>>;
298
+ /**
299
+ * 256-bit ParallelHash. In JS, it is not parallel.
300
+ * @param msg - message bytes to hash
301
+ * @param opts - Optional output, personalization, and chunking settings.
302
+ * Defaults to 32 output bytes when `dkLen` is omitted.
303
+ * See {@link ParallelOpts}.
304
+ * @returns Digest bytes.
305
+ * @example
306
+ * Hash a message with ParallelHash256.
307
+ * ```ts
308
+ * parallelhash256(new Uint8Array([1, 2, 3]));
309
+ * ```
310
+ */
311
+ export declare const parallelhash256: TRet<CHash<Keccak, ParallelOpts>>;
312
+ /**
313
+ * 128-bit ParallelHash XOF. In JS, it is not parallel.
314
+ * @param msg - message bytes to hash
315
+ * @param opts - Optional output, personalization, and chunking settings.
316
+ * Defaults to 16 output bytes when `dkLen` is omitted.
317
+ * See {@link ParallelOpts}.
318
+ * @returns Digest bytes.
319
+ * @example
320
+ * Hash a message with ParallelHash128 XOF output.
321
+ * ```ts
322
+ * parallelhash128xof(new Uint8Array([1, 2, 3]), { dkLen: 32 });
323
+ * ```
324
+ */
325
+ export declare const parallelhash128xof: TRet<CHashXOF<Keccak, ParallelOpts>>;
326
+ /**
327
+ * 256-bit ParallelHash XOF. In JS, it is not parallel.
328
+ * @param msg - message bytes to hash
329
+ * @param opts - Optional output, personalization, and chunking settings.
330
+ * Defaults to 32 output bytes when `dkLen` is omitted.
331
+ * See {@link ParallelOpts}.
332
+ * @returns Digest bytes.
333
+ * @example
334
+ * Hash a message with ParallelHash256 XOF output.
335
+ * ```ts
336
+ * parallelhash256xof(new Uint8Array([1, 2, 3]), { dkLen: 64 });
337
+ * ```
338
+ */
339
+ export declare const parallelhash256xof: TRet<CHashXOF<Keccak, ParallelOpts>>;
340
+ /**
341
+ * TurboSHAKE options.
342
+ * `D` is the domain separation byte; RFC 9861 defines output length `L`
343
+ * as a positive integer.
344
+ */
345
+ export type TurboshakeOpts = ShakeOpts & {
346
+ /** Optional domain separation byte in the `0x01..0x7f` range. */
347
+ D?: number;
348
+ };
349
+ /**
350
+ * TurboSHAKE 128-bit: reduced 12-round keccak.
351
+ * Should've been a simple "shake with 12 rounds", but we got a whole new
352
+ * spec about Turbo SHAKE Pro MAX.
353
+ * @param msg - message bytes to hash
354
+ * @param opts - Optional output-length and domain-separation settings.
355
+ * RFC 9861 §2.1 defaults `D` to `0x1f`. Defaults to 32 output bytes when
356
+ * `dkLen` is omitted. See {@link TurboshakeOpts}.
357
+ * @returns Digest bytes.
358
+ * @example
359
+ * Hash a message with TurboSHAKE128.
360
+ * ```ts
361
+ * turboshake128(new Uint8Array([1, 2, 3]), { dkLen: 32 });
362
+ * ```
363
+ * @example
364
+ * Hash a message with an explicit domain-separation byte.
365
+ * ```ts
366
+ * turboshake128(new Uint8Array([1, 2, 3]), { dkLen: 32, D: 0x1f });
367
+ * ```
368
+ */
369
+ export declare const turboshake128: TRet<CHashXOF<Keccak, TurboshakeOpts>>;
370
+ /**
371
+ * TurboSHAKE 256-bit: reduced 12-round keccak.
372
+ * @param msg - message bytes to hash
373
+ * @param opts - Optional output-length and domain-separation settings.
374
+ * RFC 9861 §2.1 defaults `D` to `0x1f`. Defaults to 64 output bytes when
375
+ * `dkLen` is omitted. See {@link TurboshakeOpts}.
376
+ * @returns Digest bytes.
377
+ * @example
378
+ * Hash a message with TurboSHAKE256.
379
+ * ```ts
380
+ * turboshake256(new Uint8Array([1, 2, 3]), { dkLen: 64 });
381
+ * ```
382
+ */
383
+ export declare const turboshake256: TRet<CHashXOF<Keccak, TurboshakeOpts>>;
384
+ /** K12 options. */
385
+ export type KangarooOpts = {
386
+ /**
387
+ * Desired digest length in bytes.
388
+ * RFC 9861 §3 defines output length `L` as a positive integer.
389
+ */
390
+ dkLen?: number;
391
+ /**
392
+ * Optional personalization string mixed into the sponge state.
393
+ * Stateful K12 instances keep an internal copy so caller buffers can be
394
+ * wiped independently.
395
+ */
396
+ personalization?: Uint8Array;
397
+ };
398
+ /** Internal K12 hash class. */
399
+ export declare class _KangarooTwelve extends Keccak implements HashXOF<_KangarooTwelve> {
400
+ readonly chunkLen = 8192;
401
+ private leafHash?;
402
+ private leafTemplate?;
403
+ private leafCV?;
404
+ protected leafLen: number;
405
+ private personalization;
406
+ private chunkPos;
407
+ private chunksDone;
408
+ constructor(blockLen: number, leafLen: number, outputLen: number, rounds: number, opts: KangarooOpts);
409
+ update(data: TArg<Uint8Array>): this;
410
+ private flushLeaf;
411
+ protected finish(): void;
412
+ destroy(): void;
413
+ _cloneInto(to?: _KangarooTwelve): _KangarooTwelve;
414
+ clone(): _KangarooTwelve;
415
+ }
416
+ /**
417
+ * 128-bit KangarooTwelve (k12): reduced 12-round keccak.
418
+ * @param msg - message bytes to hash
419
+ * @param opts - Optional output and personalization settings. Defaults to
420
+ * 32 output bytes when `dkLen` is omitted. See {@link KangarooOpts}.
421
+ * @returns Digest bytes.
422
+ * @example
423
+ * Hash a message with KangarooTwelve-128.
424
+ * ```ts
425
+ * kt128(new Uint8Array([1, 2, 3]));
426
+ * ```
427
+ * @example
428
+ * Hash a message with KangarooTwelve-128 personalization.
429
+ * ```ts
430
+ * kt128(new Uint8Array([1, 2, 3]), {
431
+ * dkLen: 64,
432
+ * personalization: new Uint8Array([4, 5, 6]),
433
+ * });
434
+ * ```
435
+ */
436
+ export declare const kt128: TRet<CHash<_KangarooTwelve, KangarooOpts>>;
437
+ /**
438
+ * 256-bit KangarooTwelve (k12): reduced 12-round keccak.
439
+ * @param msg - message bytes to hash
440
+ * @param opts - Optional output and personalization settings. Defaults to
441
+ * 64 output bytes when `dkLen` is omitted. See {@link KangarooOpts}.
442
+ * @returns Digest bytes.
443
+ * @example
444
+ * Hash a message with KangarooTwelve-256.
445
+ * ```ts
446
+ * kt256(new Uint8Array([1, 2, 3]));
447
+ * ```
448
+ */
449
+ export declare const kt256: TRet<CHash<_KangarooTwelve, KangarooOpts>>;
450
+ /** KangarooTwelve-based MAC function type. */
451
+ export type HopMAC = (key: TArg<Uint8Array>, message: TArg<Uint8Array>, personalization: TArg<Uint8Array>, dkLen?: number) => TRet<Uint8Array>;
452
+ /**
453
+ * 128-bit KangarooTwelve-based MAC.
454
+ *
455
+ * These untested (there is no test vectors or implementation available). Use at your own risk.
456
+ * HopMAC128(Key, M, C, L) = KT128(Key, KT128(M, C, 32), L)
457
+ * HopMAC256(Key, M, C, L) = KT256(Key, KT256(M, C, 64), L)
458
+ * The inner KangarooTwelve call always uses a fixed 32-byte digest here,
459
+ * regardless of the outer `dkLen`.
460
+ * @param key - MAC key bytes
461
+ * @param message - message bytes to authenticate
462
+ * @param personalization - personalization bytes mixed into the inner hash
463
+ * @param dkLen - optional output length in bytes
464
+ * @returns Authentication tag bytes.
465
+ * @example
466
+ * Authenticate a message with HopMAC128.
467
+ * ```ts
468
+ * HopMAC128(new Uint8Array([1]), new Uint8Array([2]), new Uint8Array([3]), 32);
469
+ * ```
470
+ */
471
+ export declare const HopMAC128: TRet<HopMAC>;
472
+ /**
473
+ * 256-bit KangarooTwelve-based MAC.
474
+ * Like `HopMAC128`, there are no test vectors or known independent
475
+ * implementations available for cross-checking.
476
+ * @param key - MAC key bytes
477
+ * @param message - message bytes to authenticate
478
+ * @param personalization - personalization bytes mixed into the inner hash
479
+ * @param dkLen - optional output length in bytes. The inner KangarooTwelve
480
+ * call still uses a fixed 64-byte digest here, regardless of the outer
481
+ * `dkLen`.
482
+ * @returns Authentication tag bytes.
483
+ * @example
484
+ * Authenticate a message with HopMAC256.
485
+ * ```ts
486
+ * HopMAC256(new Uint8Array([1]), new Uint8Array([2]), new Uint8Array([3]), 64);
487
+ * ```
488
+ */
489
+ export declare const HopMAC256: TRet<HopMAC>;
490
+ /**
491
+ * More at
492
+ * {@link https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG}.
493
+ * Accepted capacities must keep `rho = 1598 - capacity` byte-aligned, and
494
+ * `.clean()` later also requires `rate > 801`.
495
+ */
496
+ export declare class _KeccakPRG extends Keccak implements PRG {
497
+ protected rate: number;
498
+ private entropyAdded;
499
+ constructor(capacity: number);
500
+ protected keccak(): void;
501
+ update(data: TArg<Uint8Array>): this;
502
+ protected finish(): void;
503
+ digestInto(_out: TArg<Uint8Array>): void;
504
+ addEntropy(seed?: TArg<Uint8Array>): void;
505
+ xofInto(out: TArg<Uint8Array>): TRet<Uint8Array>;
506
+ randomBytes(length: number): TRet<Uint8Array>;
507
+ clean(): void;
508
+ _cloneInto(to?: _KeccakPRG): _KeccakPRG;
509
+ clone(): _KeccakPRG;
510
+ }
511
+ /**
512
+ * KeccakPRG: pseudo-random generator based on Keccak.
513
+ * See {@link https://keccak.team/files/CSF-0.1.pdf}.
514
+ * Fresh instances reject output until `.addEntropy()` has been called. With no
515
+ * argument, `addEntropy()` obtains 32 bytes from the platform CSPRNG; callers
516
+ * may instead supply their own non-empty entropy bytes.
517
+ * @param capacity - sponge capacity in bits. Accepted values are those that
518
+ * keep `rho = 1598 - capacity` byte-aligned; the default `254` is chosen
519
+ * because it satisfies that duplex layout while leaving a wide byte-aligned
520
+ * rate.
521
+ * @returns PRG instance backed by a Keccak sponge.
522
+ * @example
523
+ * Create a Keccak-based pseudorandom generator and read bytes from it.
524
+ * ```ts
525
+ * import { keccakprg } from '@noble/hashes/sha3-addons.js';
526
+ *
527
+ * const prg = keccakprg(254);
528
+ * prg.addEntropy();
529
+ * prg.randomBytes(8);
530
+ * ```
531
+ */
532
+ export declare const keccakprg: (capacity?: number) => TRet<_KeccakPRG>;
533
+ export {};