@arokodev/cli 0.0.0-stage → 0.1.0-alpha.5

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 (3135) hide show
  1. package/LICENSE +202 -0
  2. package/dist/args.d.ts +10 -0
  3. package/dist/args.d.ts.map +1 -0
  4. package/dist/args.js +76 -0
  5. package/dist/args.js.map +1 -0
  6. package/dist/cli-brand.d.ts +6 -0
  7. package/dist/cli-brand.d.ts.map +1 -0
  8. package/dist/cli-brand.js +39 -0
  9. package/dist/cli-brand.js.map +1 -0
  10. package/dist/commands/action.d.ts +2 -0
  11. package/dist/commands/action.d.ts.map +1 -0
  12. package/dist/commands/action.js +228 -0
  13. package/dist/commands/action.js.map +1 -0
  14. package/dist/commands/ask.d.ts +5 -0
  15. package/dist/commands/ask.d.ts.map +1 -0
  16. package/dist/commands/ask.js +118 -0
  17. package/dist/commands/ask.js.map +1 -0
  18. package/dist/commands/audit.d.ts +2 -0
  19. package/dist/commands/audit.d.ts.map +1 -0
  20. package/dist/commands/audit.js +25 -0
  21. package/dist/commands/audit.js.map +1 -0
  22. package/dist/commands/claude-setup.d.ts +2 -0
  23. package/dist/commands/claude-setup.d.ts.map +1 -0
  24. package/dist/commands/claude-setup.js +36 -0
  25. package/dist/commands/claude-setup.js.map +1 -0
  26. package/dist/commands/config.d.ts +5 -0
  27. package/dist/commands/config.d.ts.map +1 -0
  28. package/dist/commands/config.js +186 -0
  29. package/dist/commands/config.js.map +1 -0
  30. package/dist/commands/connect.d.ts +6 -0
  31. package/dist/commands/connect.d.ts.map +1 -0
  32. package/dist/commands/connect.js +138 -0
  33. package/dist/commands/connect.js.map +1 -0
  34. package/dist/commands/control.d.ts +2 -0
  35. package/dist/commands/control.d.ts.map +1 -0
  36. package/dist/commands/control.js +123 -0
  37. package/dist/commands/control.js.map +1 -0
  38. package/dist/commands/cursor-setup.d.ts +2 -0
  39. package/dist/commands/cursor-setup.d.ts.map +1 -0
  40. package/dist/commands/cursor-setup.js +104 -0
  41. package/dist/commands/cursor-setup.js.map +1 -0
  42. package/dist/commands/doctor.d.ts +2 -0
  43. package/dist/commands/doctor.d.ts.map +1 -0
  44. package/dist/commands/doctor.js +345 -0
  45. package/dist/commands/doctor.js.map +1 -0
  46. package/dist/commands/init.d.ts +2 -0
  47. package/dist/commands/init.d.ts.map +1 -0
  48. package/dist/commands/init.js +61 -0
  49. package/dist/commands/init.js.map +1 -0
  50. package/dist/commands/logs.d.ts +2 -0
  51. package/dist/commands/logs.d.ts.map +1 -0
  52. package/dist/commands/logs.js +24 -0
  53. package/dist/commands/logs.js.map +1 -0
  54. package/dist/commands/mcp.d.ts +2 -0
  55. package/dist/commands/mcp.d.ts.map +1 -0
  56. package/dist/commands/mcp.js +117 -0
  57. package/dist/commands/mcp.js.map +1 -0
  58. package/dist/commands/open.d.ts +3 -0
  59. package/dist/commands/open.d.ts.map +1 -0
  60. package/dist/commands/open.js +10 -0
  61. package/dist/commands/open.js.map +1 -0
  62. package/dist/commands/permissions.d.ts +2 -0
  63. package/dist/commands/permissions.d.ts.map +1 -0
  64. package/dist/commands/permissions.js +105 -0
  65. package/dist/commands/permissions.js.map +1 -0
  66. package/dist/commands/relay.d.ts +2 -0
  67. package/dist/commands/relay.d.ts.map +1 -0
  68. package/dist/commands/relay.js +44 -0
  69. package/dist/commands/relay.js.map +1 -0
  70. package/dist/commands/requests.d.ts +6 -0
  71. package/dist/commands/requests.d.ts.map +1 -0
  72. package/dist/commands/requests.js +124 -0
  73. package/dist/commands/requests.js.map +1 -0
  74. package/dist/commands/restart.d.ts +2 -0
  75. package/dist/commands/restart.d.ts.map +1 -0
  76. package/dist/commands/restart.js +48 -0
  77. package/dist/commands/restart.js.map +1 -0
  78. package/dist/commands/session.d.ts +9 -0
  79. package/dist/commands/session.d.ts.map +1 -0
  80. package/dist/commands/session.js +395 -0
  81. package/dist/commands/session.js.map +1 -0
  82. package/dist/commands/start.d.ts +2 -0
  83. package/dist/commands/start.d.ts.map +1 -0
  84. package/dist/commands/start.js +84 -0
  85. package/dist/commands/start.js.map +1 -0
  86. package/dist/commands/stop.d.ts +2 -0
  87. package/dist/commands/stop.d.ts.map +1 -0
  88. package/dist/commands/stop.js +18 -0
  89. package/dist/commands/stop.js.map +1 -0
  90. package/dist/commands/task.d.ts +2 -0
  91. package/dist/commands/task.d.ts.map +1 -0
  92. package/dist/commands/task.js +318 -0
  93. package/dist/commands/task.js.map +1 -0
  94. package/dist/commands/update.d.ts +5 -0
  95. package/dist/commands/update.d.ts.map +1 -0
  96. package/dist/commands/update.js +169 -0
  97. package/dist/commands/update.js.map +1 -0
  98. package/dist/commands/version.d.ts +3 -0
  99. package/dist/commands/version.d.ts.map +1 -0
  100. package/dist/commands/version.js +40 -0
  101. package/dist/commands/version.js.map +1 -0
  102. package/dist/commands/watch.d.ts +2 -0
  103. package/dist/commands/watch.d.ts.map +1 -0
  104. package/dist/commands/watch.js +371 -0
  105. package/dist/commands/watch.js.map +1 -0
  106. package/dist/context.d.ts +4 -0
  107. package/dist/context.d.ts.map +1 -0
  108. package/dist/context.js +11 -0
  109. package/dist/context.js.map +1 -0
  110. package/dist/index.d.ts +3 -0
  111. package/dist/index.d.ts.map +1 -0
  112. package/dist/index.js +264 -0
  113. package/dist/index.js.map +1 -0
  114. package/dist/runtime/background-runtime.d.ts +21 -0
  115. package/dist/runtime/background-runtime.d.ts.map +1 -0
  116. package/dist/runtime/background-runtime.js +230 -0
  117. package/dist/runtime/background-runtime.js.map +1 -0
  118. package/dist/runtime/foreground-runtime.d.ts +15 -0
  119. package/dist/runtime/foreground-runtime.d.ts.map +1 -0
  120. package/dist/runtime/foreground-runtime.js +245 -0
  121. package/dist/runtime/foreground-runtime.js.map +1 -0
  122. package/dist/runtime/upgrade-handshake.d.ts +41 -0
  123. package/dist/runtime/upgrade-handshake.d.ts.map +1 -0
  124. package/dist/runtime/upgrade-handshake.js +221 -0
  125. package/dist/runtime/upgrade-handshake.js.map +1 -0
  126. package/dist/runtime/worker.d.ts +3 -0
  127. package/dist/runtime/worker.d.ts.map +1 -0
  128. package/dist/runtime/worker.js +25 -0
  129. package/dist/runtime/worker.js.map +1 -0
  130. package/dist/version.d.ts +8 -0
  131. package/dist/version.d.ts.map +1 -0
  132. package/dist/version.js +66 -0
  133. package/dist/version.js.map +1 -0
  134. package/dist/workspace.d.ts +5 -0
  135. package/dist/workspace.d.ts.map +1 -0
  136. package/dist/workspace.js +17 -0
  137. package/dist/workspace.js.map +1 -0
  138. package/node_modules/@a2a-js/sdk/LICENSE +202 -0
  139. package/node_modules/@a2a-js/sdk/README.md +321 -0
  140. package/node_modules/@a2a-js/sdk/dist/a2a-CJdXl9vi.d.cts +830 -0
  141. package/node_modules/@a2a-js/sdk/dist/a2a-CJdXl9vi.d.ts +830 -0
  142. package/node_modules/@a2a-js/sdk/dist/a2a_request_handler-DYESfch9.d.ts +19 -0
  143. package/node_modules/@a2a-js/sdk/dist/a2a_request_handler-X6sphdno.d.cts +19 -0
  144. package/node_modules/@a2a-js/sdk/dist/agent_card_handler-DdsMrp1N.d.ts +57 -0
  145. package/node_modules/@a2a-js/sdk/dist/agent_card_handler-Hxgnif9P.d.cts +57 -0
  146. package/node_modules/@a2a-js/sdk/dist/base-BQdNEObP.d.cts +113 -0
  147. package/node_modules/@a2a-js/sdk/dist/base-BQdNEObP.d.ts +113 -0
  148. package/node_modules/@a2a-js/sdk/dist/cli/a2a_db.js +23 -0
  149. package/node_modules/@a2a-js/sdk/dist/cli/run.js +724 -0
  150. package/node_modules/@a2a-js/sdk/dist/client/index.cjs +6709 -0
  151. package/node_modules/@a2a-js/sdk/dist/client/index.d.cts +247 -0
  152. package/node_modules/@a2a-js/sdk/dist/client/index.d.ts +247 -0
  153. package/node_modules/@a2a-js/sdk/dist/client/index.js +6659 -0
  154. package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.cjs +9912 -0
  155. package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.d.cts +37 -0
  156. package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.d.ts +37 -0
  157. package/node_modules/@a2a-js/sdk/dist/client/transports/grpc/index.js +9879 -0
  158. package/node_modules/@a2a-js/sdk/dist/common-BBr9yk4y.d.cts +9 -0
  159. package/node_modules/@a2a-js/sdk/dist/common-_tbJ9jX2.d.ts +9 -0
  160. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.cjs +3856 -0
  161. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.d.cts +155 -0
  162. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.d.ts +155 -0
  163. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/index.js +3826 -0
  164. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.cjs +5988 -0
  165. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.d.cts +60 -0
  166. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.d.ts +60 -0
  167. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/client/transports/grpc/index.js +5953 -0
  168. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.cjs +857 -0
  169. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.d.cts +133 -0
  170. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.d.ts +133 -0
  171. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/index.js +808 -0
  172. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.cjs +3891 -0
  173. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.d.cts +83 -0
  174. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.d.ts +83 -0
  175. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/express/index.js +3853 -0
  176. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.cjs +6292 -0
  177. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.d.cts +1065 -0
  178. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.d.ts +1065 -0
  179. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/grpc/index.js +6256 -0
  180. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.cjs +2209 -0
  181. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.d.cts +1252 -0
  182. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.d.ts +1252 -0
  183. package/node_modules/@a2a-js/sdk/dist/compat/v0_3/server/index.js +2167 -0
  184. package/node_modules/@a2a-js/sdk/dist/constants-PdvgZRkF.d.cts +31 -0
  185. package/node_modules/@a2a-js/sdk/dist/constants-PdvgZRkF.d.ts +31 -0
  186. package/node_modules/@a2a-js/sdk/dist/context-BT-gNvOc.d.cts +110 -0
  187. package/node_modules/@a2a-js/sdk/dist/context-CI8-TqEC.d.ts +110 -0
  188. package/node_modules/@a2a-js/sdk/dist/core-2M_ZGi8t.d.cts +15 -0
  189. package/node_modules/@a2a-js/sdk/dist/core-2M_ZGi8t.d.ts +15 -0
  190. package/node_modules/@a2a-js/sdk/dist/default_push_notification_sender-B9XytetV.d.ts +107 -0
  191. package/node_modules/@a2a-js/sdk/dist/default_push_notification_sender-BLXGYWWX.d.cts +107 -0
  192. package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.cjs +585 -0
  193. package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.d.cts +239 -0
  194. package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.d.ts +239 -0
  195. package/node_modules/@a2a-js/sdk/dist/errors/grpc/index.js +540 -0
  196. package/node_modules/@a2a-js/sdk/dist/errors/index.cjs +546 -0
  197. package/node_modules/@a2a-js/sdk/dist/errors/index.d.cts +197 -0
  198. package/node_modules/@a2a-js/sdk/dist/errors/index.d.ts +197 -0
  199. package/node_modules/@a2a-js/sdk/dist/errors/index.js +476 -0
  200. package/node_modules/@a2a-js/sdk/dist/extensions-DglIgEjg.d.ts +145 -0
  201. package/node_modules/@a2a-js/sdk/dist/extensions-JbNg_D8m.d.cts +145 -0
  202. package/node_modules/@a2a-js/sdk/dist/index.cjs +1933 -0
  203. package/node_modules/@a2a-js/sdk/dist/index.d.cts +65 -0
  204. package/node_modules/@a2a-js/sdk/dist/index.d.ts +65 -0
  205. package/node_modules/@a2a-js/sdk/dist/index.js +1826 -0
  206. package/node_modules/@a2a-js/sdk/dist/multitransport-client-Bq8elQ1W.d.ts +257 -0
  207. package/node_modules/@a2a-js/sdk/dist/multitransport-client-Co0-x8pk.d.cts +257 -0
  208. package/node_modules/@a2a-js/sdk/dist/push_notification_store-BS7Bm-Wx.d.cts +73 -0
  209. package/node_modules/@a2a-js/sdk/dist/push_notification_store-BqBwsxZu.d.ts +73 -0
  210. package/node_modules/@a2a-js/sdk/dist/server/database/index.cjs +1074 -0
  211. package/node_modules/@a2a-js/sdk/dist/server/database/index.d.cts +123 -0
  212. package/node_modules/@a2a-js/sdk/dist/server/database/index.d.ts +123 -0
  213. package/node_modules/@a2a-js/sdk/dist/server/database/index.js +1034 -0
  214. package/node_modules/@a2a-js/sdk/dist/server/express/index.cjs +6382 -0
  215. package/node_modules/@a2a-js/sdk/dist/server/express/index.d.cts +73 -0
  216. package/node_modules/@a2a-js/sdk/dist/server/express/index.d.ts +73 -0
  217. package/node_modules/@a2a-js/sdk/dist/server/express/index.js +6342 -0
  218. package/node_modules/@a2a-js/sdk/dist/server/grpc/index.cjs +4670 -0
  219. package/node_modules/@a2a-js/sdk/dist/server/grpc/index.d.cts +245 -0
  220. package/node_modules/@a2a-js/sdk/dist/server/grpc/index.d.ts +245 -0
  221. package/node_modules/@a2a-js/sdk/dist/server/grpc/index.js +4633 -0
  222. package/node_modules/@a2a-js/sdk/dist/server/index.cjs +3941 -0
  223. package/node_modules/@a2a-js/sdk/dist/server/index.d.cts +521 -0
  224. package/node_modules/@a2a-js/sdk/dist/server/index.d.ts +521 -0
  225. package/node_modules/@a2a-js/sdk/dist/server/index.js +3885 -0
  226. package/node_modules/@a2a-js/sdk/dist/signature-0lXTnH2m.d.ts +66 -0
  227. package/node_modules/@a2a-js/sdk/dist/signature-BteR1cTB.d.cts +66 -0
  228. package/node_modules/@a2a-js/sdk/dist/store-ITPVQgJ1.d.ts +51 -0
  229. package/node_modules/@a2a-js/sdk/dist/store-e4nvcBHL.d.cts +51 -0
  230. package/node_modules/@a2a-js/sdk/package.json +234 -0
  231. package/node_modules/@modelcontextprotocol/core/LICENSE +216 -0
  232. package/node_modules/@modelcontextprotocol/core/README.md +40 -0
  233. package/node_modules/@modelcontextprotocol/core/dist/auth-Anm-lwWi.d.mts +8507 -0
  234. package/node_modules/@modelcontextprotocol/core/dist/auth-Anm-lwWi.d.mts.map +1 -0
  235. package/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs +1681 -0
  236. package/node_modules/@modelcontextprotocol/core/dist/auth-BNDyLTqp.mjs.map +1 -0
  237. package/node_modules/@modelcontextprotocol/core/dist/auth-D1CeV_Jr.cjs +2902 -0
  238. package/node_modules/@modelcontextprotocol/core/dist/auth-D1CeV_Jr.cjs.map +1 -0
  239. package/node_modules/@modelcontextprotocol/core/dist/auth-V9XJSCfa.d.cts +8507 -0
  240. package/node_modules/@modelcontextprotocol/core/dist/auth-V9XJSCfa.d.cts.map +1 -0
  241. package/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
  242. package/node_modules/@modelcontextprotocol/core/dist/index.d.cts +2 -0
  243. package/node_modules/@modelcontextprotocol/core/dist/index.d.mts +2 -0
  244. package/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
  245. package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
  246. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts +99 -0
  247. package/node_modules/@modelcontextprotocol/core/dist/internal.d.cts.map +1 -0
  248. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts +99 -0
  249. package/node_modules/@modelcontextprotocol/core/dist/internal.d.mts.map +1 -0
  250. package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
  251. package/node_modules/@modelcontextprotocol/core/package.json +85 -0
  252. package/node_modules/@modelcontextprotocol/server/LICENSE +216 -0
  253. package/node_modules/@modelcontextprotocol/server/README.md +24 -0
  254. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs +7514 -0
  255. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CEoC__sr.mjs.map +1 -0
  256. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts +1071 -0
  257. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-CgI-5L6O.d.mts.map +1 -0
  258. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts +1071 -0
  259. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-FOQRM7up.d.cts.map +1 -0
  260. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs +7531 -0
  261. package/node_modules/@modelcontextprotocol/server/dist/ajvProvider-ZaoO9afR.cjs.map +1 -0
  262. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs +986 -0
  263. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-BwbPzsdI.cjs.map +1 -0
  264. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts +74 -0
  265. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-C03CSigr.d.mts.map +1 -0
  266. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts +74 -0
  267. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-doTkZbTr.d.cts.map +1 -0
  268. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs +981 -0
  269. package/node_modules/@modelcontextprotocol/server/dist/cfWorkerProvider-p3WaZPqB.mjs.map +1 -0
  270. package/node_modules/@modelcontextprotocol/server/dist/chunk-Bnu9O96Y.cjs +60 -0
  271. package/node_modules/@modelcontextprotocol/server/dist/chunk-Br0eD_fh.mjs +42 -0
  272. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts +4168 -0
  273. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-D4NN8WsG.d.mts.map +1 -0
  274. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-DZmmlN8e.d.cts +4170 -0
  275. package/node_modules/@modelcontextprotocol/server/dist/createMcpHandler-DZmmlN8e.d.cts.map +1 -0
  276. package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs +46 -0
  277. package/node_modules/@modelcontextprotocol/server/dist/dialects-D8eXzoGv.cjs.map +1 -0
  278. package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs +34 -0
  279. package/node_modules/@modelcontextprotocol/server/dist/dialects-DoSzNhcb.mjs.map +1 -0
  280. package/node_modules/@modelcontextprotocol/server/dist/index.cjs +1978 -0
  281. package/node_modules/@modelcontextprotocol/server/dist/index.cjs.map +1 -0
  282. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts +810 -0
  283. package/node_modules/@modelcontextprotocol/server/dist/index.d.cts.map +1 -0
  284. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts +810 -0
  285. package/node_modules/@modelcontextprotocol/server/dist/index.d.mts.map +1 -0
  286. package/node_modules/@modelcontextprotocol/server/dist/index.mjs +1790 -0
  287. package/node_modules/@modelcontextprotocol/server/dist/index.mjs.map +1 -0
  288. package/node_modules/@modelcontextprotocol/server/dist/mcp-BumlNux0.cjs +2477 -0
  289. package/node_modules/@modelcontextprotocol/server/dist/mcp-BumlNux0.cjs.map +1 -0
  290. package/node_modules/@modelcontextprotocol/server/dist/mcp-DIH4cS6P.mjs +2326 -0
  291. package/node_modules/@modelcontextprotocol/server/dist/mcp-DIH4cS6P.mjs.map +1 -0
  292. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs +23 -0
  293. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.cjs.map +1 -0
  294. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts +11 -0
  295. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.cts.map +1 -0
  296. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts +11 -0
  297. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.d.mts.map +1 -0
  298. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs +22 -0
  299. package/node_modules/@modelcontextprotocol/server/dist/shimsBrowser.mjs.map +1 -0
  300. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.cjs +12 -0
  301. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.cts +3 -0
  302. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.d.mts +3 -0
  303. package/node_modules/@modelcontextprotocol/server/dist/shimsNode.mjs +4 -0
  304. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs +30 -0
  305. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.cjs.map +1 -0
  306. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts +10 -0
  307. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.cts.map +1 -0
  308. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts +10 -0
  309. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.d.mts.map +1 -0
  310. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs +29 -0
  311. package/node_modules/@modelcontextprotocol/server/dist/shimsWorkerd.mjs.map +1 -0
  312. package/node_modules/@modelcontextprotocol/server/dist/src-BhnGYybN.cjs +8200 -0
  313. package/node_modules/@modelcontextprotocol/server/dist/src-BhnGYybN.cjs.map +1 -0
  314. package/node_modules/@modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs +7702 -0
  315. package/node_modules/@modelcontextprotocol/server/dist/src-Cqbh3MYc.mjs.map +1 -0
  316. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs +591 -0
  317. package/node_modules/@modelcontextprotocol/server/dist/stdio.cjs.map +1 -0
  318. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts +115 -0
  319. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.cts.map +1 -0
  320. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts +115 -0
  321. package/node_modules/@modelcontextprotocol/server/dist/stdio.d.mts.map +1 -0
  322. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs +589 -0
  323. package/node_modules/@modelcontextprotocol/server/dist/stdio.mjs.map +1 -0
  324. package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts +1099 -0
  325. package/node_modules/@modelcontextprotocol/server/dist/types-DUs7mGBv.d.mts.map +1 -0
  326. package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts +1099 -0
  327. package/node_modules/@modelcontextprotocol/server/dist/types-DsbMXNFL.d.cts.map +1 -0
  328. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.cjs +5 -0
  329. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.cts +2 -0
  330. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.d.mts +2 -0
  331. package/node_modules/@modelcontextprotocol/server/dist/validators/ajv.mjs +3 -0
  332. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.cjs +3 -0
  333. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.cts +2 -0
  334. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.d.mts +2 -0
  335. package/node_modules/@modelcontextprotocol/server/dist/validators/cfWorker.mjs +3 -0
  336. package/node_modules/@modelcontextprotocol/server/package.json +160 -0
  337. package/node_modules/@noble/ciphers/LICENSE +22 -0
  338. package/node_modules/@noble/ciphers/README.md +554 -0
  339. package/node_modules/@noble/ciphers/_arx.d.ts +145 -0
  340. package/node_modules/@noble/ciphers/_arx.js +379 -0
  341. package/node_modules/@noble/ciphers/_poly1305.d.ts +72 -0
  342. package/node_modules/@noble/ciphers/_poly1305.js +318 -0
  343. package/node_modules/@noble/ciphers/_polyval.d.ts +120 -0
  344. package/node_modules/@noble/ciphers/_polyval.js +331 -0
  345. package/node_modules/@noble/ciphers/aes.d.ts +472 -0
  346. package/node_modules/@noble/ciphers/aes.js +1823 -0
  347. package/node_modules/@noble/ciphers/chacha.d.ts +259 -0
  348. package/node_modules/@noble/ciphers/chacha.js +460 -0
  349. package/node_modules/@noble/ciphers/ff1.d.ts +44 -0
  350. package/node_modules/@noble/ciphers/ff1.js +279 -0
  351. package/node_modules/@noble/ciphers/index.d.ts +1 -0
  352. package/node_modules/@noble/ciphers/index.js +26 -0
  353. package/node_modules/@noble/ciphers/package.json +79 -0
  354. package/node_modules/@noble/ciphers/salsa.d.ts +133 -0
  355. package/node_modules/@noble/ciphers/salsa.js +300 -0
  356. package/node_modules/@noble/ciphers/src/_arx.ts +507 -0
  357. package/node_modules/@noble/ciphers/src/_poly1305.ts +350 -0
  358. package/node_modules/@noble/ciphers/src/_polyval.ts +383 -0
  359. package/node_modules/@noble/ciphers/src/aes.ts +2074 -0
  360. package/node_modules/@noble/ciphers/src/chacha.ts +483 -0
  361. package/node_modules/@noble/ciphers/src/ff1.ts +299 -0
  362. package/node_modules/@noble/ciphers/src/index.ts +25 -0
  363. package/node_modules/@noble/ciphers/src/salsa.ts +313 -0
  364. package/node_modules/@noble/ciphers/src/utils.ts +1295 -0
  365. package/node_modules/@noble/ciphers/src/webcrypto.ts +288 -0
  366. package/node_modules/@noble/ciphers/utils.d.ts +739 -0
  367. package/node_modules/@noble/ciphers/utils.js +896 -0
  368. package/node_modules/@noble/ciphers/webcrypto.d.ts +91 -0
  369. package/node_modules/@noble/ciphers/webcrypto.js +211 -0
  370. package/node_modules/@noble/curves/LICENSE +21 -0
  371. package/node_modules/@noble/curves/README.md +844 -0
  372. package/node_modules/@noble/curves/abstract/bls.d.ts +429 -0
  373. package/node_modules/@noble/curves/abstract/bls.js +568 -0
  374. package/node_modules/@noble/curves/abstract/curve.d.ts +497 -0
  375. package/node_modules/@noble/curves/abstract/curve.js +752 -0
  376. package/node_modules/@noble/curves/abstract/der.d.ts +97 -0
  377. package/node_modules/@noble/curves/abstract/der.js +168 -0
  378. package/node_modules/@noble/curves/abstract/edwards.d.ts +329 -0
  379. package/node_modules/@noble/curves/abstract/edwards.js +712 -0
  380. package/node_modules/@noble/curves/abstract/fft.d.ts +444 -0
  381. package/node_modules/@noble/curves/abstract/fft.js +644 -0
  382. package/node_modules/@noble/curves/abstract/frost.d.ts +471 -0
  383. package/node_modules/@noble/curves/abstract/frost.js +870 -0
  384. package/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +291 -0
  385. package/node_modules/@noble/curves/abstract/hash-to-curve.js +568 -0
  386. package/node_modules/@noble/curves/abstract/modular.d.ts +581 -0
  387. package/node_modules/@noble/curves/abstract/modular.js +972 -0
  388. package/node_modules/@noble/curves/abstract/montgomery.d.ts +185 -0
  389. package/node_modules/@noble/curves/abstract/montgomery.js +311 -0
  390. package/node_modules/@noble/curves/abstract/oprf.d.ts +354 -0
  391. package/node_modules/@noble/curves/abstract/oprf.js +370 -0
  392. package/node_modules/@noble/curves/abstract/poseidon.d.ts +198 -0
  393. package/node_modules/@noble/curves/abstract/poseidon.js +482 -0
  394. package/node_modules/@noble/curves/abstract/tower.d.ts +211 -0
  395. package/node_modules/@noble/curves/abstract/tower.js +949 -0
  396. package/node_modules/@noble/curves/abstract/weierstrass.d.ts +455 -0
  397. package/node_modules/@noble/curves/abstract/weierstrass.js +1165 -0
  398. package/node_modules/@noble/curves/bls12-381.d.ts +23 -0
  399. package/node_modules/@noble/curves/bls12-381.js +753 -0
  400. package/node_modules/@noble/curves/bn254.d.ts +74 -0
  401. package/node_modules/@noble/curves/bn254.js +275 -0
  402. package/node_modules/@noble/curves/ed25519.d.ts +212 -0
  403. package/node_modules/@noble/curves/ed25519.js +649 -0
  404. package/node_modules/@noble/curves/ed448.d.ts +186 -0
  405. package/node_modules/@noble/curves/ed448.js +623 -0
  406. package/node_modules/@noble/curves/index.d.ts +1 -0
  407. package/node_modules/@noble/curves/index.js +38 -0
  408. package/node_modules/@noble/curves/misc.d.ts +113 -0
  409. package/node_modules/@noble/curves/misc.js +211 -0
  410. package/node_modules/@noble/curves/nist.d.ts +138 -0
  411. package/node_modules/@noble/curves/nist.js +270 -0
  412. package/node_modules/@noble/curves/package.json +98 -0
  413. package/node_modules/@noble/curves/secp256k1.d.ts +156 -0
  414. package/node_modules/@noble/curves/secp256k1.js +474 -0
  415. package/node_modules/@noble/curves/src/abstract/bls.ts +1063 -0
  416. package/node_modules/@noble/curves/src/abstract/curve.ts +1080 -0
  417. package/node_modules/@noble/curves/src/abstract/der.ts +223 -0
  418. package/node_modules/@noble/curves/src/abstract/edwards.ts +1045 -0
  419. package/node_modules/@noble/curves/src/abstract/fft.ts +926 -0
  420. package/node_modules/@noble/curves/src/abstract/frost.ts +1477 -0
  421. package/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +717 -0
  422. package/node_modules/@noble/curves/src/abstract/modular.ts +1208 -0
  423. package/node_modules/@noble/curves/src/abstract/montgomery.ts +420 -0
  424. package/node_modules/@noble/curves/src/abstract/oprf.ts +805 -0
  425. package/node_modules/@noble/curves/src/abstract/poseidon.ts +556 -0
  426. package/node_modules/@noble/curves/src/abstract/tower.ts +1150 -0
  427. package/node_modules/@noble/curves/src/abstract/weierstrass.ts +1666 -0
  428. package/node_modules/@noble/curves/src/bls12-381.ts +862 -0
  429. package/node_modules/@noble/curves/src/bn254.ts +310 -0
  430. package/node_modules/@noble/curves/src/ed25519.ts +736 -0
  431. package/node_modules/@noble/curves/src/ed448.ts +743 -0
  432. package/node_modules/@noble/curves/src/index.ts +37 -0
  433. package/node_modules/@noble/curves/src/misc.ts +260 -0
  434. package/node_modules/@noble/curves/src/nist.ts +329 -0
  435. package/node_modules/@noble/curves/src/secp256k1.ts +591 -0
  436. package/node_modules/@noble/curves/src/utils.ts +930 -0
  437. package/node_modules/@noble/curves/src/webcrypto.ts +649 -0
  438. package/node_modules/@noble/curves/utils.d.ts +610 -0
  439. package/node_modules/@noble/curves/utils.js +710 -0
  440. package/node_modules/@noble/curves/webcrypto.d.ts +240 -0
  441. package/node_modules/@noble/curves/webcrypto.js +431 -0
  442. package/node_modules/@noble/hashes/LICENSE +21 -0
  443. package/node_modules/@noble/hashes/README.md +478 -0
  444. package/node_modules/@noble/hashes/_blake.d.ts +20 -0
  445. package/node_modules/@noble/hashes/_blake.js +59 -0
  446. package/node_modules/@noble/hashes/_md.d.ts +95 -0
  447. package/node_modules/@noble/hashes/_md.js +209 -0
  448. package/node_modules/@noble/hashes/_u64.d.ts +36 -0
  449. package/node_modules/@noble/hashes/_u64.js +77 -0
  450. package/node_modules/@noble/hashes/argon2.d.ts +148 -0
  451. package/node_modules/@noble/hashes/argon2.js +577 -0
  452. package/node_modules/@noble/hashes/blake1.d.ts +162 -0
  453. package/node_modules/@noble/hashes/blake1.js +630 -0
  454. package/node_modules/@noble/hashes/blake2.d.ts +203 -0
  455. package/node_modules/@noble/hashes/blake2.js +573 -0
  456. package/node_modules/@noble/hashes/blake3.d.ts +68 -0
  457. package/node_modules/@noble/hashes/blake3.js +310 -0
  458. package/node_modules/@noble/hashes/eskdf.d.ts +91 -0
  459. package/node_modules/@noble/hashes/eskdf.js +225 -0
  460. package/node_modules/@noble/hashes/hkdf.d.ts +70 -0
  461. package/node_modules/@noble/hashes/hkdf.js +152 -0
  462. package/node_modules/@noble/hashes/hmac.d.ts +50 -0
  463. package/node_modules/@noble/hashes/hmac.js +93 -0
  464. package/node_modules/@noble/hashes/index.d.ts +1 -0
  465. package/node_modules/@noble/hashes/index.js +34 -0
  466. package/node_modules/@noble/hashes/legacy.d.ts +107 -0
  467. package/node_modules/@noble/hashes/legacy.js +348 -0
  468. package/node_modules/@noble/hashes/package.json +91 -0
  469. package/node_modules/@noble/hashes/pbkdf2.d.ts +66 -0
  470. package/node_modules/@noble/hashes/pbkdf2.js +176 -0
  471. package/node_modules/@noble/hashes/scrypt.d.ts +98 -0
  472. package/node_modules/@noble/hashes/scrypt.js +304 -0
  473. package/node_modules/@noble/hashes/sha2.d.ts +176 -0
  474. package/node_modules/@noble/hashes/sha2.js +446 -0
  475. package/node_modules/@noble/hashes/sha3-addons.d.ts +533 -0
  476. package/node_modules/@noble/hashes/sha3-addons.js +973 -0
  477. package/node_modules/@noble/hashes/sha3.d.ts +208 -0
  478. package/node_modules/@noble/hashes/sha3.js +475 -0
  479. package/node_modules/@noble/hashes/src/_blake.ts +67 -0
  480. package/node_modules/@noble/hashes/src/_md.ts +227 -0
  481. package/node_modules/@noble/hashes/src/_u64.ts +111 -0
  482. package/node_modules/@noble/hashes/src/argon2.ts +693 -0
  483. package/node_modules/@noble/hashes/src/blake1.ts +677 -0
  484. package/node_modules/@noble/hashes/src/blake2.ts +648 -0
  485. package/node_modules/@noble/hashes/src/blake3.ts +344 -0
  486. package/node_modules/@noble/hashes/src/eskdf.ts +265 -0
  487. package/node_modules/@noble/hashes/src/hkdf.ts +161 -0
  488. package/node_modules/@noble/hashes/src/hmac.ts +130 -0
  489. package/node_modules/@noble/hashes/src/index.ts +33 -0
  490. package/node_modules/@noble/hashes/src/legacy.ts +361 -0
  491. package/node_modules/@noble/hashes/src/pbkdf2.ts +219 -0
  492. package/node_modules/@noble/hashes/src/scrypt.ts +375 -0
  493. package/node_modules/@noble/hashes/src/sha2.ts +486 -0
  494. package/node_modules/@noble/hashes/src/sha3-addons.ts +1157 -0
  495. package/node_modules/@noble/hashes/src/sha3.ts +525 -0
  496. package/node_modules/@noble/hashes/src/utils.ts +978 -0
  497. package/node_modules/@noble/hashes/src/webcrypto.ts +283 -0
  498. package/node_modules/@noble/hashes/utils.d.ts +560 -0
  499. package/node_modules/@noble/hashes/utils.js +687 -0
  500. package/node_modules/@noble/hashes/webcrypto.d.ts +121 -0
  501. package/node_modules/@noble/hashes/webcrypto.js +228 -0
  502. package/node_modules/@pairmesh/client/control-web/activity-present.js +238 -0
  503. package/node_modules/@pairmesh/client/control-web/app.css +1134 -0
  504. package/node_modules/@pairmesh/client/control-web/app.js +2744 -0
  505. package/node_modules/@pairmesh/client/control-web/history-present.js +510 -0
  506. package/node_modules/@pairmesh/client/control-web/home-present.js +395 -0
  507. package/node_modules/@pairmesh/client/control-web/index.html +170 -0
  508. package/node_modules/@pairmesh/client/control-web/live-present.js +628 -0
  509. package/node_modules/@pairmesh/client/control-web/people-present.js +244 -0
  510. package/node_modules/@pairmesh/client/control-web/settings-present.js +416 -0
  511. package/node_modules/@pairmesh/client/dist/a2a/action-client.d.ts +12 -0
  512. package/node_modules/@pairmesh/client/dist/a2a/action-client.d.ts.map +1 -0
  513. package/node_modules/@pairmesh/client/dist/a2a/action-client.js +48 -0
  514. package/node_modules/@pairmesh/client/dist/a2a/action-client.js.map +1 -0
  515. package/node_modules/@pairmesh/client/dist/a2a/action-messages.d.ts +11 -0
  516. package/node_modules/@pairmesh/client/dist/a2a/action-messages.d.ts.map +1 -0
  517. package/node_modules/@pairmesh/client/dist/a2a/action-messages.js +41 -0
  518. package/node_modules/@pairmesh/client/dist/a2a/action-messages.js.map +1 -0
  519. package/node_modules/@pairmesh/client/dist/a2a/adapter.d.ts +16 -0
  520. package/node_modules/@pairmesh/client/dist/a2a/adapter.d.ts.map +1 -0
  521. package/node_modules/@pairmesh/client/dist/a2a/adapter.js +93 -0
  522. package/node_modules/@pairmesh/client/dist/a2a/adapter.js.map +1 -0
  523. package/node_modules/@pairmesh/client/dist/a2a/client-factory.d.ts +19 -0
  524. package/node_modules/@pairmesh/client/dist/a2a/client-factory.d.ts.map +1 -0
  525. package/node_modules/@pairmesh/client/dist/a2a/client-factory.js +58 -0
  526. package/node_modules/@pairmesh/client/dist/a2a/client-factory.js.map +1 -0
  527. package/node_modules/@pairmesh/client/dist/a2a/inspection-client.d.ts +50 -0
  528. package/node_modules/@pairmesh/client/dist/a2a/inspection-client.d.ts.map +1 -0
  529. package/node_modules/@pairmesh/client/dist/a2a/inspection-client.js +431 -0
  530. package/node_modules/@pairmesh/client/dist/a2a/inspection-client.js.map +1 -0
  531. package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.d.ts +12 -0
  532. package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.d.ts.map +1 -0
  533. package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.js +48 -0
  534. package/node_modules/@pairmesh/client/dist/a2a/inspection-messages.js.map +1 -0
  535. package/node_modules/@pairmesh/client/dist/a2a/pairing-client.d.ts +18 -0
  536. package/node_modules/@pairmesh/client/dist/a2a/pairing-client.d.ts.map +1 -0
  537. package/node_modules/@pairmesh/client/dist/a2a/pairing-client.js +69 -0
  538. package/node_modules/@pairmesh/client/dist/a2a/pairing-client.js.map +1 -0
  539. package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.d.ts +13 -0
  540. package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.d.ts.map +1 -0
  541. package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.js +64 -0
  542. package/node_modules/@pairmesh/client/dist/a2a/pairing-messages.js.map +1 -0
  543. package/node_modules/@pairmesh/client/dist/a2a/task-client.d.ts +12 -0
  544. package/node_modules/@pairmesh/client/dist/a2a/task-client.d.ts.map +1 -0
  545. package/node_modules/@pairmesh/client/dist/a2a/task-client.js +48 -0
  546. package/node_modules/@pairmesh/client/dist/a2a/task-client.js.map +1 -0
  547. package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.d.ts +10 -0
  548. package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.d.ts.map +1 -0
  549. package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.js +124 -0
  550. package/node_modules/@pairmesh/client/dist/a2a/task-lifecycle.js.map +1 -0
  551. package/node_modules/@pairmesh/client/dist/a2a/task-messages.d.ts +11 -0
  552. package/node_modules/@pairmesh/client/dist/a2a/task-messages.d.ts.map +1 -0
  553. package/node_modules/@pairmesh/client/dist/a2a/task-messages.js +41 -0
  554. package/node_modules/@pairmesh/client/dist/a2a/task-messages.js.map +1 -0
  555. package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.d.ts +19 -0
  556. package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.d.ts.map +1 -0
  557. package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.js +232 -0
  558. package/node_modules/@pairmesh/client/dist/action/apply/lifecycle-ops.js.map +1 -0
  559. package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.d.ts +40 -0
  560. package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.d.ts.map +1 -0
  561. package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.js +235 -0
  562. package/node_modules/@pairmesh/client/dist/action/apply/mutation-journal.js.map +1 -0
  563. package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.d.ts +79 -0
  564. package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.d.ts.map +1 -0
  565. package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.js +382 -0
  566. package/node_modules/@pairmesh/client/dist/action/apply/patch-applicator.js.map +1 -0
  567. package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.d.ts +30 -0
  568. package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.d.ts.map +1 -0
  569. package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.js +242 -0
  570. package/node_modules/@pairmesh/client/dist/action/apply/unified-diff-apply.js.map +1 -0
  571. package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.d.ts +2 -0
  572. package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.d.ts.map +1 -0
  573. package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.js +22 -0
  574. package/node_modules/@pairmesh/client/dist/action/apply/workspace-lock.js.map +1 -0
  575. package/node_modules/@pairmesh/client/dist/action/artifacts.d.ts +19 -0
  576. package/node_modules/@pairmesh/client/dist/action/artifacts.d.ts.map +1 -0
  577. package/node_modules/@pairmesh/client/dist/action/artifacts.js +89 -0
  578. package/node_modules/@pairmesh/client/dist/action/artifacts.js.map +1 -0
  579. package/node_modules/@pairmesh/client/dist/action/change-propose-executor.d.ts +35 -0
  580. package/node_modules/@pairmesh/client/dist/action/change-propose-executor.d.ts.map +1 -0
  581. package/node_modules/@pairmesh/client/dist/action/change-propose-executor.js +229 -0
  582. package/node_modules/@pairmesh/client/dist/action/change-propose-executor.js.map +1 -0
  583. package/node_modules/@pairmesh/client/dist/action/digest.d.ts +4 -0
  584. package/node_modules/@pairmesh/client/dist/action/digest.d.ts.map +1 -0
  585. package/node_modules/@pairmesh/client/dist/action/digest.js +25 -0
  586. package/node_modules/@pairmesh/client/dist/action/digest.js.map +1 -0
  587. package/node_modules/@pairmesh/client/dist/action/executor.d.ts +39 -0
  588. package/node_modules/@pairmesh/client/dist/action/executor.d.ts.map +1 -0
  589. package/node_modules/@pairmesh/client/dist/action/executor.js +115 -0
  590. package/node_modules/@pairmesh/client/dist/action/executor.js.map +1 -0
  591. package/node_modules/@pairmesh/client/dist/action/index.d.ts +24 -0
  592. package/node_modules/@pairmesh/client/dist/action/index.d.ts.map +1 -0
  593. package/node_modules/@pairmesh/client/dist/action/index.js +24 -0
  594. package/node_modules/@pairmesh/client/dist/action/index.js.map +1 -0
  595. package/node_modules/@pairmesh/client/dist/action/lifecycle.d.ts +4 -0
  596. package/node_modules/@pairmesh/client/dist/action/lifecycle.d.ts.map +1 -0
  597. package/node_modules/@pairmesh/client/dist/action/lifecycle.js +20 -0
  598. package/node_modules/@pairmesh/client/dist/action/lifecycle.js.map +1 -0
  599. package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.d.ts +39 -0
  600. package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.d.ts.map +1 -0
  601. package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.js +103 -0
  602. package/node_modules/@pairmesh/client/dist/action/owner-activity-summary.js.map +1 -0
  603. package/node_modules/@pairmesh/client/dist/action/process/artifact.d.ts +31 -0
  604. package/node_modules/@pairmesh/client/dist/action/process/artifact.d.ts.map +1 -0
  605. package/node_modules/@pairmesh/client/dist/action/process/artifact.js +55 -0
  606. package/node_modules/@pairmesh/client/dist/action/process/artifact.js.map +1 -0
  607. package/node_modules/@pairmesh/client/dist/action/process/concurrency.d.ts +5 -0
  608. package/node_modules/@pairmesh/client/dist/action/process/concurrency.d.ts.map +1 -0
  609. package/node_modules/@pairmesh/client/dist/action/process/concurrency.js +23 -0
  610. package/node_modules/@pairmesh/client/dist/action/process/concurrency.js.map +1 -0
  611. package/node_modules/@pairmesh/client/dist/action/process/owner-projection.d.ts +16 -0
  612. package/node_modules/@pairmesh/client/dist/action/process/owner-projection.d.ts.map +1 -0
  613. package/node_modules/@pairmesh/client/dist/action/process/owner-projection.js +88 -0
  614. package/node_modules/@pairmesh/client/dist/action/process/owner-projection.js.map +1 -0
  615. package/node_modules/@pairmesh/client/dist/action/process/resolve.d.ts +61 -0
  616. package/node_modules/@pairmesh/client/dist/action/process/resolve.d.ts.map +1 -0
  617. package/node_modules/@pairmesh/client/dist/action/process/resolve.js +338 -0
  618. package/node_modules/@pairmesh/client/dist/action/process/resolve.js.map +1 -0
  619. package/node_modules/@pairmesh/client/dist/action/process/runner.d.ts +31 -0
  620. package/node_modules/@pairmesh/client/dist/action/process/runner.d.ts.map +1 -0
  621. package/node_modules/@pairmesh/client/dist/action/process/runner.js +177 -0
  622. package/node_modules/@pairmesh/client/dist/action/process/runner.js.map +1 -0
  623. package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.d.ts +24 -0
  624. package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.d.ts.map +1 -0
  625. package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.js +243 -0
  626. package/node_modules/@pairmesh/client/dist/action/process/shell-host-policy.js.map +1 -0
  627. package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.d.ts +10 -0
  628. package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.d.ts.map +1 -0
  629. package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.js +39 -0
  630. package/node_modules/@pairmesh/client/dist/action/process/spawn-journal.js.map +1 -0
  631. package/node_modules/@pairmesh/client/dist/action/process-execute-executor.d.ts +27 -0
  632. package/node_modules/@pairmesh/client/dist/action/process-execute-executor.d.ts.map +1 -0
  633. package/node_modules/@pairmesh/client/dist/action/process-execute-executor.js +242 -0
  634. package/node_modules/@pairmesh/client/dist/action/process-execute-executor.js.map +1 -0
  635. package/node_modules/@pairmesh/client/dist/action/progress.d.ts +35 -0
  636. package/node_modules/@pairmesh/client/dist/action/progress.d.ts.map +1 -0
  637. package/node_modules/@pairmesh/client/dist/action/progress.js +163 -0
  638. package/node_modules/@pairmesh/client/dist/action/progress.js.map +1 -0
  639. package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.d.ts +21 -0
  640. package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.d.ts.map +1 -0
  641. package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.js +66 -0
  642. package/node_modules/@pairmesh/client/dist/action/proposal/coding-agent-generator.js.map +1 -0
  643. package/node_modules/@pairmesh/client/dist/action/proposal/generator.d.ts +23 -0
  644. package/node_modules/@pairmesh/client/dist/action/proposal/generator.d.ts.map +1 -0
  645. package/node_modules/@pairmesh/client/dist/action/proposal/generator.js +2 -0
  646. package/node_modules/@pairmesh/client/dist/action/proposal/generator.js.map +1 -0
  647. package/node_modules/@pairmesh/client/dist/action/proposal/index.d.ts +8 -0
  648. package/node_modules/@pairmesh/client/dist/action/proposal/index.d.ts.map +1 -0
  649. package/node_modules/@pairmesh/client/dist/action/proposal/index.js +7 -0
  650. package/node_modules/@pairmesh/client/dist/action/proposal/index.js.map +1 -0
  651. package/node_modules/@pairmesh/client/dist/action/proposal/limits.d.ts +13 -0
  652. package/node_modules/@pairmesh/client/dist/action/proposal/limits.d.ts.map +1 -0
  653. package/node_modules/@pairmesh/client/dist/action/proposal/limits.js +12 -0
  654. package/node_modules/@pairmesh/client/dist/action/proposal/limits.js.map +1 -0
  655. package/node_modules/@pairmesh/client/dist/action/proposal/paths.d.ts +17 -0
  656. package/node_modules/@pairmesh/client/dist/action/proposal/paths.d.ts.map +1 -0
  657. package/node_modules/@pairmesh/client/dist/action/proposal/paths.js +161 -0
  658. package/node_modules/@pairmesh/client/dist/action/proposal/paths.js.map +1 -0
  659. package/node_modules/@pairmesh/client/dist/action/proposal/schema.d.ts +49 -0
  660. package/node_modules/@pairmesh/client/dist/action/proposal/schema.d.ts.map +1 -0
  661. package/node_modules/@pairmesh/client/dist/action/proposal/schema.js +54 -0
  662. package/node_modules/@pairmesh/client/dist/action/proposal/schema.js.map +1 -0
  663. package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.d.ts +29 -0
  664. package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.d.ts.map +1 -0
  665. package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.js +425 -0
  666. package/node_modules/@pairmesh/client/dist/action/proposal/unified-diff.js.map +1 -0
  667. package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.d.ts +10 -0
  668. package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.d.ts.map +1 -0
  669. package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.js +55 -0
  670. package/node_modules/@pairmesh/client/dist/action/proposal/working-tree.js.map +1 -0
  671. package/node_modules/@pairmesh/client/dist/action/provider-activity.d.ts +22 -0
  672. package/node_modules/@pairmesh/client/dist/action/provider-activity.d.ts.map +1 -0
  673. package/node_modules/@pairmesh/client/dist/action/provider-activity.js +118 -0
  674. package/node_modules/@pairmesh/client/dist/action/provider-activity.js.map +1 -0
  675. package/node_modules/@pairmesh/client/dist/action/registry.d.ts +17 -0
  676. package/node_modules/@pairmesh/client/dist/action/registry.d.ts.map +1 -0
  677. package/node_modules/@pairmesh/client/dist/action/registry.js +92 -0
  678. package/node_modules/@pairmesh/client/dist/action/registry.js.map +1 -0
  679. package/node_modules/@pairmesh/client/dist/action/remote-handler.d.ts +14 -0
  680. package/node_modules/@pairmesh/client/dist/action/remote-handler.d.ts.map +1 -0
  681. package/node_modules/@pairmesh/client/dist/action/remote-handler.js +297 -0
  682. package/node_modules/@pairmesh/client/dist/action/remote-handler.js.map +1 -0
  683. package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.d.ts +22 -0
  684. package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.d.ts.map +1 -0
  685. package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.js +400 -0
  686. package/node_modules/@pairmesh/client/dist/action/repository-edit-executor.js.map +1 -0
  687. package/node_modules/@pairmesh/client/dist/action/service.d.ts +160 -0
  688. package/node_modules/@pairmesh/client/dist/action/service.d.ts.map +1 -0
  689. package/node_modules/@pairmesh/client/dist/action/service.js +975 -0
  690. package/node_modules/@pairmesh/client/dist/action/service.js.map +1 -0
  691. package/node_modules/@pairmesh/client/dist/action/session-bridge.d.ts +64 -0
  692. package/node_modules/@pairmesh/client/dist/action/session-bridge.d.ts.map +1 -0
  693. package/node_modules/@pairmesh/client/dist/action/session-bridge.js +177 -0
  694. package/node_modules/@pairmesh/client/dist/action/session-bridge.js.map +1 -0
  695. package/node_modules/@pairmesh/client/dist/action/tests/concurrency.d.ts +6 -0
  696. package/node_modules/@pairmesh/client/dist/action/tests/concurrency.d.ts.map +1 -0
  697. package/node_modules/@pairmesh/client/dist/action/tests/concurrency.js +26 -0
  698. package/node_modules/@pairmesh/client/dist/action/tests/concurrency.js.map +1 -0
  699. package/node_modules/@pairmesh/client/dist/action/tests/process-runner.d.ts +27 -0
  700. package/node_modules/@pairmesh/client/dist/action/tests/process-runner.d.ts.map +1 -0
  701. package/node_modules/@pairmesh/client/dist/action/tests/process-runner.js +159 -0
  702. package/node_modules/@pairmesh/client/dist/action/tests/process-runner.js.map +1 -0
  703. package/node_modules/@pairmesh/client/dist/action/tests/profile.d.ts +70 -0
  704. package/node_modules/@pairmesh/client/dist/action/tests/profile.d.ts.map +1 -0
  705. package/node_modules/@pairmesh/client/dist/action/tests/profile.js +322 -0
  706. package/node_modules/@pairmesh/client/dist/action/tests/profile.js.map +1 -0
  707. package/node_modules/@pairmesh/client/dist/action/tests-run-executor.d.ts +25 -0
  708. package/node_modules/@pairmesh/client/dist/action/tests-run-executor.d.ts.map +1 -0
  709. package/node_modules/@pairmesh/client/dist/action/tests-run-executor.js +193 -0
  710. package/node_modules/@pairmesh/client/dist/action/tests-run-executor.js.map +1 -0
  711. package/node_modules/@pairmesh/client/dist/action/watch-present.d.ts +134 -0
  712. package/node_modules/@pairmesh/client/dist/action/watch-present.d.ts.map +1 -0
  713. package/node_modules/@pairmesh/client/dist/action/watch-present.js +278 -0
  714. package/node_modules/@pairmesh/client/dist/action/watch-present.js.map +1 -0
  715. package/node_modules/@pairmesh/client/dist/audit/index.d.ts +2 -0
  716. package/node_modules/@pairmesh/client/dist/audit/index.d.ts.map +1 -0
  717. package/node_modules/@pairmesh/client/dist/audit/index.js +2 -0
  718. package/node_modules/@pairmesh/client/dist/audit/index.js.map +1 -0
  719. package/node_modules/@pairmesh/client/dist/audit/log.d.ts +73 -0
  720. package/node_modules/@pairmesh/client/dist/audit/log.d.ts.map +1 -0
  721. package/node_modules/@pairmesh/client/dist/audit/log.js +298 -0
  722. package/node_modules/@pairmesh/client/dist/audit/log.js.map +1 -0
  723. package/node_modules/@pairmesh/client/dist/auth/bearer.d.ts +9 -0
  724. package/node_modules/@pairmesh/client/dist/auth/bearer.d.ts.map +1 -0
  725. package/node_modules/@pairmesh/client/dist/auth/bearer.js +25 -0
  726. package/node_modules/@pairmesh/client/dist/auth/bearer.js.map +1 -0
  727. package/node_modules/@pairmesh/client/dist/auth/capabilities.d.ts +87 -0
  728. package/node_modules/@pairmesh/client/dist/auth/capabilities.d.ts.map +1 -0
  729. package/node_modules/@pairmesh/client/dist/auth/capabilities.js +361 -0
  730. package/node_modules/@pairmesh/client/dist/auth/capabilities.js.map +1 -0
  731. package/node_modules/@pairmesh/client/dist/auth/credentials.d.ts +24 -0
  732. package/node_modules/@pairmesh/client/dist/auth/credentials.d.ts.map +1 -0
  733. package/node_modules/@pairmesh/client/dist/auth/credentials.js +54 -0
  734. package/node_modules/@pairmesh/client/dist/auth/credentials.js.map +1 -0
  735. package/node_modules/@pairmesh/client/dist/auth/index.d.ts +7 -0
  736. package/node_modules/@pairmesh/client/dist/auth/index.d.ts.map +1 -0
  737. package/node_modules/@pairmesh/client/dist/auth/index.js +7 -0
  738. package/node_modules/@pairmesh/client/dist/auth/index.js.map +1 -0
  739. package/node_modules/@pairmesh/client/dist/auth/invites.d.ts +38 -0
  740. package/node_modules/@pairmesh/client/dist/auth/invites.d.ts.map +1 -0
  741. package/node_modules/@pairmesh/client/dist/auth/invites.js +119 -0
  742. package/node_modules/@pairmesh/client/dist/auth/invites.js.map +1 -0
  743. package/node_modules/@pairmesh/client/dist/auth/secrets.d.ts +18 -0
  744. package/node_modules/@pairmesh/client/dist/auth/secrets.d.ts.map +1 -0
  745. package/node_modules/@pairmesh/client/dist/auth/secrets.js +39 -0
  746. package/node_modules/@pairmesh/client/dist/auth/secrets.js.map +1 -0
  747. package/node_modules/@pairmesh/client/dist/auth/session-security.d.ts +25 -0
  748. package/node_modules/@pairmesh/client/dist/auth/session-security.d.ts.map +1 -0
  749. package/node_modules/@pairmesh/client/dist/auth/session-security.js +68 -0
  750. package/node_modules/@pairmesh/client/dist/auth/session-security.js.map +1 -0
  751. package/node_modules/@pairmesh/client/dist/bootstrap.d.ts +5 -0
  752. package/node_modules/@pairmesh/client/dist/bootstrap.d.ts.map +1 -0
  753. package/node_modules/@pairmesh/client/dist/bootstrap.js +8 -0
  754. package/node_modules/@pairmesh/client/dist/bootstrap.js.map +1 -0
  755. package/node_modules/@pairmesh/client/dist/build-info.d.ts +21 -0
  756. package/node_modules/@pairmesh/client/dist/build-info.d.ts.map +1 -0
  757. package/node_modules/@pairmesh/client/dist/build-info.generated.d.ts +23 -0
  758. package/node_modules/@pairmesh/client/dist/build-info.generated.d.ts.map +1 -0
  759. package/node_modules/@pairmesh/client/dist/build-info.generated.js +23 -0
  760. package/node_modules/@pairmesh/client/dist/build-info.generated.js.map +1 -0
  761. package/node_modules/@pairmesh/client/dist/build-info.js +2 -0
  762. package/node_modules/@pairmesh/client/dist/build-info.js.map +1 -0
  763. package/node_modules/@pairmesh/client/dist/claude-code-session/index.d.ts +2 -0
  764. package/node_modules/@pairmesh/client/dist/claude-code-session/index.d.ts.map +1 -0
  765. package/node_modules/@pairmesh/client/dist/claude-code-session/index.js +2 -0
  766. package/node_modules/@pairmesh/client/dist/claude-code-session/index.js.map +1 -0
  767. package/node_modules/@pairmesh/client/dist/claude-code-session/setup.d.ts +27 -0
  768. package/node_modules/@pairmesh/client/dist/claude-code-session/setup.d.ts.map +1 -0
  769. package/node_modules/@pairmesh/client/dist/claude-code-session/setup.js +139 -0
  770. package/node_modules/@pairmesh/client/dist/claude-code-session/setup.js.map +1 -0
  771. package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.d.ts +30 -0
  772. package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.d.ts.map +1 -0
  773. package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.js +131 -0
  774. package/node_modules/@pairmesh/client/dist/coding-agent/acp-client.js.map +1 -0
  775. package/node_modules/@pairmesh/client/dist/coding-agent/availability.d.ts +10 -0
  776. package/node_modules/@pairmesh/client/dist/coding-agent/availability.d.ts.map +1 -0
  777. package/node_modules/@pairmesh/client/dist/coding-agent/availability.js +108 -0
  778. package/node_modules/@pairmesh/client/dist/coding-agent/availability.js.map +1 -0
  779. package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.d.ts +64 -0
  780. package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.d.ts.map +1 -0
  781. package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.js +474 -0
  782. package/node_modules/@pairmesh/client/dist/coding-agent/claude-code-adapter.js.map +1 -0
  783. package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.d.ts +81 -0
  784. package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.d.ts.map +1 -0
  785. package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.js +559 -0
  786. package/node_modules/@pairmesh/client/dist/coding-agent/claude-stream-activity.js.map +1 -0
  787. package/node_modules/@pairmesh/client/dist/coding-agent/config.d.ts +18 -0
  788. package/node_modules/@pairmesh/client/dist/coding-agent/config.d.ts.map +1 -0
  789. package/node_modules/@pairmesh/client/dist/coding-agent/config.js +140 -0
  790. package/node_modules/@pairmesh/client/dist/coding-agent/config.js.map +1 -0
  791. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.d.ts +77 -0
  792. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.d.ts.map +1 -0
  793. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.js +437 -0
  794. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-acp-activity.js.map +1 -0
  795. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.d.ts +30 -0
  796. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.d.ts.map +1 -0
  797. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.js +553 -0
  798. package/node_modules/@pairmesh/client/dist/coding-agent/cursor-adapter.js.map +1 -0
  799. package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.d.ts +8 -0
  800. package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.d.ts.map +1 -0
  801. package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.js +66 -0
  802. package/node_modules/@pairmesh/client/dist/coding-agent/descriptors.js.map +1 -0
  803. package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.d.ts +20 -0
  804. package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.d.ts.map +1 -0
  805. package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.js +528 -0
  806. package/node_modules/@pairmesh/client/dist/coding-agent/fake-adapter.js.map +1 -0
  807. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.d.ts +55 -0
  808. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.d.ts.map +1 -0
  809. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.js +337 -0
  810. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-cli-adapter.js.map +1 -0
  811. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.d.ts +69 -0
  812. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.d.ts.map +1 -0
  813. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.js +500 -0
  814. package/node_modules/@pairmesh/client/dist/coding-agent/gemini-stream-activity.js.map +1 -0
  815. package/node_modules/@pairmesh/client/dist/coding-agent/index.d.ts +23 -0
  816. package/node_modules/@pairmesh/client/dist/coding-agent/index.d.ts.map +1 -0
  817. package/node_modules/@pairmesh/client/dist/coding-agent/index.js +26 -0
  818. package/node_modules/@pairmesh/client/dist/coding-agent/index.js.map +1 -0
  819. package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.d.ts +19 -0
  820. package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.d.ts.map +1 -0
  821. package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.js +93 -0
  822. package/node_modules/@pairmesh/client/dist/coding-agent/lazy-adapter.js.map +1 -0
  823. package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.d.ts +24 -0
  824. package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.d.ts.map +1 -0
  825. package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.js +65 -0
  826. package/node_modules/@pairmesh/client/dist/coding-agent/ndjson-line-buffer.js.map +1 -0
  827. package/node_modules/@pairmesh/client/dist/coding-agent/prompt.d.ts +26 -0
  828. package/node_modules/@pairmesh/client/dist/coding-agent/prompt.d.ts.map +1 -0
  829. package/node_modules/@pairmesh/client/dist/coding-agent/prompt.js +189 -0
  830. package/node_modules/@pairmesh/client/dist/coding-agent/prompt.js.map +1 -0
  831. package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.d.ts +24 -0
  832. package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.d.ts.map +1 -0
  833. package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.js +193 -0
  834. package/node_modules/@pairmesh/client/dist/coding-agent/proposal-provider-response.js.map +1 -0
  835. package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.d.ts +61 -0
  836. package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.d.ts.map +1 -0
  837. package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.js +70 -0
  838. package/node_modules/@pairmesh/client/dist/coding-agent/provider-visibility.js.map +1 -0
  839. package/node_modules/@pairmesh/client/dist/coding-agent/registry.d.ts +13 -0
  840. package/node_modules/@pairmesh/client/dist/coding-agent/registry.d.ts.map +1 -0
  841. package/node_modules/@pairmesh/client/dist/coding-agent/registry.js +66 -0
  842. package/node_modules/@pairmesh/client/dist/coding-agent/registry.js.map +1 -0
  843. package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.d.ts +7 -0
  844. package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.d.ts.map +1 -0
  845. package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.js +29 -0
  846. package/node_modules/@pairmesh/client/dist/coding-agent/sanitize.js.map +1 -0
  847. package/node_modules/@pairmesh/client/dist/coding-agent/source-references.d.ts +14 -0
  848. package/node_modules/@pairmesh/client/dist/coding-agent/source-references.d.ts.map +1 -0
  849. package/node_modules/@pairmesh/client/dist/coding-agent/source-references.js +222 -0
  850. package/node_modules/@pairmesh/client/dist/coding-agent/source-references.js.map +1 -0
  851. package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.d.ts +32 -0
  852. package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.d.ts.map +1 -0
  853. package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.js +115 -0
  854. package/node_modules/@pairmesh/client/dist/coding-agent/streaming-process.js.map +1 -0
  855. package/node_modules/@pairmesh/client/dist/coding-agent/types.d.ts +121 -0
  856. package/node_modules/@pairmesh/client/dist/coding-agent/types.d.ts.map +1 -0
  857. package/node_modules/@pairmesh/client/dist/coding-agent/types.js +27 -0
  858. package/node_modules/@pairmesh/client/dist/coding-agent/types.js.map +1 -0
  859. package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.d.ts +64 -0
  860. package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.d.ts.map +1 -0
  861. package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.js +175 -0
  862. package/node_modules/@pairmesh/client/dist/collaboration/ask-intent.js.map +1 -0
  863. package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.d.ts +38 -0
  864. package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.d.ts.map +1 -0
  865. package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.js +461 -0
  866. package/node_modules/@pairmesh/client/dist/collaboration/collaborative-task-service.js.map +1 -0
  867. package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.d.ts +79 -0
  868. package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.d.ts.map +1 -0
  869. package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.js +813 -0
  870. package/node_modules/@pairmesh/client/dist/collaboration/continuation-orchestrator.js.map +1 -0
  871. package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.d.ts +35 -0
  872. package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.d.ts.map +1 -0
  873. package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.js +80 -0
  874. package/node_modules/@pairmesh/client/dist/collaboration/fake-task-worker.js.map +1 -0
  875. package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.d.ts +42 -0
  876. package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.d.ts.map +1 -0
  877. package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.js +320 -0
  878. package/node_modules/@pairmesh/client/dist/collaboration/gemini-goal-mcp-provision.js.map +1 -0
  879. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.d.ts +44 -0
  880. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.d.ts.map +1 -0
  881. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.js +88 -0
  882. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-config.js.map +1 -0
  883. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.d.ts +2 -0
  884. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.d.ts.map +1 -0
  885. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.js +84 -0
  886. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-mcp-stdio.js.map +1 -0
  887. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.d.ts +31 -0
  888. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.d.ts.map +1 -0
  889. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.js +210 -0
  890. package/node_modules/@pairmesh/client/dist/collaboration/goal-host-tools.js.map +1 -0
  891. package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.d.ts +20 -0
  892. package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.d.ts.map +1 -0
  893. package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.js +98 -0
  894. package/node_modules/@pairmesh/client/dist/collaboration/goal-prompt.js.map +1 -0
  895. package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.d.ts +94 -0
  896. package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.d.ts.map +1 -0
  897. package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.js +745 -0
  898. package/node_modules/@pairmesh/client/dist/collaboration/goal-task-worker.js.map +1 -0
  899. package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.d.ts +45 -0
  900. package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.d.ts.map +1 -0
  901. package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.js +447 -0
  902. package/node_modules/@pairmesh/client/dist/collaboration/host-request-service.js.map +1 -0
  903. package/node_modules/@pairmesh/client/dist/collaboration/index.d.ts +17 -0
  904. package/node_modules/@pairmesh/client/dist/collaboration/index.d.ts.map +1 -0
  905. package/node_modules/@pairmesh/client/dist/collaboration/index.js +17 -0
  906. package/node_modules/@pairmesh/client/dist/collaboration/index.js.map +1 -0
  907. package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.d.ts +79 -0
  908. package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.d.ts.map +1 -0
  909. package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.js +586 -0
  910. package/node_modules/@pairmesh/client/dist/collaboration/input-request-service.js.map +1 -0
  911. package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.d.ts +89 -0
  912. package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.d.ts.map +1 -0
  913. package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.js +369 -0
  914. package/node_modules/@pairmesh/client/dist/collaboration/orchestrate.js.map +1 -0
  915. package/node_modules/@pairmesh/client/dist/collaboration/present.d.ts +5 -0
  916. package/node_modules/@pairmesh/client/dist/collaboration/present.d.ts.map +1 -0
  917. package/node_modules/@pairmesh/client/dist/collaboration/present.js +130 -0
  918. package/node_modules/@pairmesh/client/dist/collaboration/present.js.map +1 -0
  919. package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.d.ts +26 -0
  920. package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.d.ts.map +1 -0
  921. package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.js +202 -0
  922. package/node_modules/@pairmesh/client/dist/collaboration/requester-action-mirror.js.map +1 -0
  923. package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.d.ts +8 -0
  924. package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.d.ts.map +1 -0
  925. package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.js +39 -0
  926. package/node_modules/@pairmesh/client/dist/collaboration/requester-actions.js.map +1 -0
  927. package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.d.ts +124 -0
  928. package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.d.ts.map +1 -0
  929. package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.js +587 -0
  930. package/node_modules/@pairmesh/client/dist/collaboration/task-progress-present.js.map +1 -0
  931. package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.d.ts +30 -0
  932. package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.d.ts.map +1 -0
  933. package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.js +351 -0
  934. package/node_modules/@pairmesh/client/dist/collaboration/task-remote-handler.js.map +1 -0
  935. package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.d.ts +23 -0
  936. package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.d.ts.map +1 -0
  937. package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.js +31 -0
  938. package/node_modules/@pairmesh/client/dist/connectivity/e2e/keys.js.map +1 -0
  939. package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.d.ts +18 -0
  940. package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.d.ts.map +1 -0
  941. package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.js +84 -0
  942. package/node_modules/@pairmesh/client/dist/connectivity/e2e/session.js.map +1 -0
  943. package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.d.ts +12 -0
  944. package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.d.ts.map +1 -0
  945. package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.js +33 -0
  946. package/node_modules/@pairmesh/client/dist/connectivity/hosted-relay-default.js.map +1 -0
  947. package/node_modules/@pairmesh/client/dist/connectivity/index.d.ts +24 -0
  948. package/node_modules/@pairmesh/client/dist/connectivity/index.d.ts.map +1 -0
  949. package/node_modules/@pairmesh/client/dist/connectivity/index.js +24 -0
  950. package/node_modules/@pairmesh/client/dist/connectivity/index.js.map +1 -0
  951. package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.d.ts +27 -0
  952. package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.d.ts.map +1 -0
  953. package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.js +32 -0
  954. package/node_modules/@pairmesh/client/dist/connectivity/relay/access-token.js.map +1 -0
  955. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.d.ts +7 -0
  956. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.d.ts.map +1 -0
  957. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.js +9 -0
  958. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-id.js.map +1 -0
  959. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.d.ts +45 -0
  960. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.d.ts.map +1 -0
  961. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.js +84 -0
  962. package/node_modules/@pairmesh/client/dist/connectivity/relay/channel-manager.js.map +1 -0
  963. package/node_modules/@pairmesh/client/dist/connectivity/relay/client.d.ts +125 -0
  964. package/node_modules/@pairmesh/client/dist/connectivity/relay/client.d.ts.map +1 -0
  965. package/node_modules/@pairmesh/client/dist/connectivity/relay/client.js +480 -0
  966. package/node_modules/@pairmesh/client/dist/connectivity/relay/client.js.map +1 -0
  967. package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.d.ts +39 -0
  968. package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.d.ts.map +1 -0
  969. package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.js +58 -0
  970. package/node_modules/@pairmesh/client/dist/connectivity/relay/frames.js.map +1 -0
  971. package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.d.ts +162 -0
  972. package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.d.ts.map +1 -0
  973. package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.js +901 -0
  974. package/node_modules/@pairmesh/client/dist/connectivity/relay/hosted-server.js.map +1 -0
  975. package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.d.ts +137 -0
  976. package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.d.ts.map +1 -0
  977. package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.js +422 -0
  978. package/node_modules/@pairmesh/client/dist/connectivity/relay/http-tunnel.js.map +1 -0
  979. package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.d.ts +59 -0
  980. package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.d.ts.map +1 -0
  981. package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.js +151 -0
  982. package/node_modules/@pairmesh/client/dist/connectivity/relay/liveness.js.map +1 -0
  983. package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.d.ts +16 -0
  984. package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.d.ts.map +1 -0
  985. package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.js +83 -0
  986. package/node_modules/@pairmesh/client/dist/connectivity/relay/log-gate.js.map +1 -0
  987. package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.d.ts +36 -0
  988. package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.d.ts.map +1 -0
  989. package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.js +305 -0
  990. package/node_modules/@pairmesh/client/dist/connectivity/relay/mock-server.js.map +1 -0
  991. package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.d.ts +33 -0
  992. package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.d.ts.map +1 -0
  993. package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.js +97 -0
  994. package/node_modules/@pairmesh/client/dist/connectivity/relay/network-restore.js.map +1 -0
  995. package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.d.ts +35 -0
  996. package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.d.ts.map +1 -0
  997. package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.js +56 -0
  998. package/node_modules/@pairmesh/client/dist/connectivity/relay/reconnect-policy.js.map +1 -0
  999. package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.d.ts +35 -0
  1000. package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.d.ts.map +1 -0
  1001. package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.js +88 -0
  1002. package/node_modules/@pairmesh/client/dist/connectivity/relay/rendezvous-http.js.map +1 -0
  1003. package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.d.ts +65 -0
  1004. package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.d.ts.map +1 -0
  1005. package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.js +120 -0
  1006. package/node_modules/@pairmesh/client/dist/connectivity/relay/route-diagnostics.js.map +1 -0
  1007. package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.d.ts +9 -0
  1008. package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.d.ts.map +1 -0
  1009. package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.js +31 -0
  1010. package/node_modules/@pairmesh/client/dist/connectivity/relay/token-compare.js.map +1 -0
  1011. package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.d.ts +43 -0
  1012. package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.d.ts.map +1 -0
  1013. package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.js +87 -0
  1014. package/node_modules/@pairmesh/client/dist/connectivity/relay/traffic-trace.js.map +1 -0
  1015. package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.d.ts +133 -0
  1016. package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.d.ts.map +1 -0
  1017. package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.js +1148 -0
  1018. package/node_modules/@pairmesh/client/dist/connectivity/relay-bootstrap.js.map +1 -0
  1019. package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.d.ts +137 -0
  1020. package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.d.ts.map +1 -0
  1021. package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.js +688 -0
  1022. package/node_modules/@pairmesh/client/dist/connectivity/relay-bridge.js.map +1 -0
  1023. package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.d.ts +101 -0
  1024. package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.d.ts.map +1 -0
  1025. package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.js +138 -0
  1026. package/node_modules/@pairmesh/client/dist/connectivity/relay-route-store.js.map +1 -0
  1027. package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.d.ts +4 -0
  1028. package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.d.ts.map +1 -0
  1029. package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.js +8 -0
  1030. package/node_modules/@pairmesh/client/dist/connectivity/relay-runtime.js.map +1 -0
  1031. package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.d.ts +16 -0
  1032. package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.d.ts.map +1 -0
  1033. package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.js +13 -0
  1034. package/node_modules/@pairmesh/client/dist/connectivity/rendezvous.js.map +1 -0
  1035. package/node_modules/@pairmesh/client/dist/connectivity/resolver.d.ts +33 -0
  1036. package/node_modules/@pairmesh/client/dist/connectivity/resolver.d.ts.map +1 -0
  1037. package/node_modules/@pairmesh/client/dist/connectivity/resolver.js +24 -0
  1038. package/node_modules/@pairmesh/client/dist/connectivity/resolver.js.map +1 -0
  1039. package/node_modules/@pairmesh/client/dist/control/action-inbox.d.ts +22 -0
  1040. package/node_modules/@pairmesh/client/dist/control/action-inbox.d.ts.map +1 -0
  1041. package/node_modules/@pairmesh/client/dist/control/action-inbox.js +95 -0
  1042. package/node_modules/@pairmesh/client/dist/control/action-inbox.js.map +1 -0
  1043. package/node_modules/@pairmesh/client/dist/control/exchange.d.ts +21 -0
  1044. package/node_modules/@pairmesh/client/dist/control/exchange.d.ts.map +1 -0
  1045. package/node_modules/@pairmesh/client/dist/control/exchange.js +62 -0
  1046. package/node_modules/@pairmesh/client/dist/control/exchange.js.map +1 -0
  1047. package/node_modules/@pairmesh/client/dist/control/http-client.d.ts +108 -0
  1048. package/node_modules/@pairmesh/client/dist/control/http-client.d.ts.map +1 -0
  1049. package/node_modules/@pairmesh/client/dist/control/http-client.js +156 -0
  1050. package/node_modules/@pairmesh/client/dist/control/http-client.js.map +1 -0
  1051. package/node_modules/@pairmesh/client/dist/control/http-server.d.ts +34 -0
  1052. package/node_modules/@pairmesh/client/dist/control/http-server.d.ts.map +1 -0
  1053. package/node_modules/@pairmesh/client/dist/control/http-server.js +480 -0
  1054. package/node_modules/@pairmesh/client/dist/control/http-server.js.map +1 -0
  1055. package/node_modules/@pairmesh/client/dist/control/index.d.ts +10 -0
  1056. package/node_modules/@pairmesh/client/dist/control/index.d.ts.map +1 -0
  1057. package/node_modules/@pairmesh/client/dist/control/index.js +8 -0
  1058. package/node_modules/@pairmesh/client/dist/control/index.js.map +1 -0
  1059. package/node_modules/@pairmesh/client/dist/control/open-inbox.d.ts +22 -0
  1060. package/node_modules/@pairmesh/client/dist/control/open-inbox.d.ts.map +1 -0
  1061. package/node_modules/@pairmesh/client/dist/control/open-inbox.js +74 -0
  1062. package/node_modules/@pairmesh/client/dist/control/open-inbox.js.map +1 -0
  1063. package/node_modules/@pairmesh/client/dist/control/service.d.ts +678 -0
  1064. package/node_modules/@pairmesh/client/dist/control/service.d.ts.map +1 -0
  1065. package/node_modules/@pairmesh/client/dist/control/service.js +639 -0
  1066. package/node_modules/@pairmesh/client/dist/control/service.js.map +1 -0
  1067. package/node_modules/@pairmesh/client/dist/control/token.d.ts +4 -0
  1068. package/node_modules/@pairmesh/client/dist/control/token.d.ts.map +1 -0
  1069. package/node_modules/@pairmesh/client/dist/control/token.js +14 -0
  1070. package/node_modules/@pairmesh/client/dist/control/token.js.map +1 -0
  1071. package/node_modules/@pairmesh/client/dist/control/types.d.ts +127 -0
  1072. package/node_modules/@pairmesh/client/dist/control/types.d.ts.map +1 -0
  1073. package/node_modules/@pairmesh/client/dist/control/types.js +2 -0
  1074. package/node_modules/@pairmesh/client/dist/control/types.js.map +1 -0
  1075. package/node_modules/@pairmesh/client/dist/control/web-static.d.ts +4 -0
  1076. package/node_modules/@pairmesh/client/dist/control/web-static.d.ts.map +1 -0
  1077. package/node_modules/@pairmesh/client/dist/control/web-static.js +61 -0
  1078. package/node_modules/@pairmesh/client/dist/control/web-static.js.map +1 -0
  1079. package/node_modules/@pairmesh/client/dist/control-web/activity-present.js +238 -0
  1080. package/node_modules/@pairmesh/client/dist/control-web/app.css +1134 -0
  1081. package/node_modules/@pairmesh/client/dist/control-web/app.js +2744 -0
  1082. package/node_modules/@pairmesh/client/dist/control-web/history-present.js +510 -0
  1083. package/node_modules/@pairmesh/client/dist/control-web/home-present.js +395 -0
  1084. package/node_modules/@pairmesh/client/dist/control-web/index.html +170 -0
  1085. package/node_modules/@pairmesh/client/dist/control-web/live-present.js +628 -0
  1086. package/node_modules/@pairmesh/client/dist/control-web/people-present.js +244 -0
  1087. package/node_modules/@pairmesh/client/dist/control-web/settings-present.js +416 -0
  1088. package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.d.ts +45 -0
  1089. package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.d.ts.map +1 -0
  1090. package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.js +185 -0
  1091. package/node_modules/@pairmesh/client/dist/cursor-mcp/cursor-config.js.map +1 -0
  1092. package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.d.ts +6 -0
  1093. package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.d.ts.map +1 -0
  1094. package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.js +53 -0
  1095. package/node_modules/@pairmesh/client/dist/cursor-mcp/gitignore.js.map +1 -0
  1096. package/node_modules/@pairmesh/client/dist/cursor-mcp/index.d.ts +4 -0
  1097. package/node_modules/@pairmesh/client/dist/cursor-mcp/index.d.ts.map +1 -0
  1098. package/node_modules/@pairmesh/client/dist/cursor-mcp/index.js +4 -0
  1099. package/node_modules/@pairmesh/client/dist/cursor-mcp/index.js.map +1 -0
  1100. package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.d.ts +35 -0
  1101. package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.d.ts.map +1 -0
  1102. package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.js +211 -0
  1103. package/node_modules/@pairmesh/client/dist/cursor-mcp/mcp-launch.js.map +1 -0
  1104. package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.d.ts +14 -0
  1105. package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.d.ts.map +1 -0
  1106. package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.js +17 -0
  1107. package/node_modules/@pairmesh/client/dist/execution/provider-snapshot.js.map +1 -0
  1108. package/node_modules/@pairmesh/client/dist/health/cache.d.ts +9 -0
  1109. package/node_modules/@pairmesh/client/dist/health/cache.d.ts.map +1 -0
  1110. package/node_modules/@pairmesh/client/dist/health/cache.js +21 -0
  1111. package/node_modules/@pairmesh/client/dist/health/cache.js.map +1 -0
  1112. package/node_modules/@pairmesh/client/dist/health/index.d.ts +5 -0
  1113. package/node_modules/@pairmesh/client/dist/health/index.d.ts.map +1 -0
  1114. package/node_modules/@pairmesh/client/dist/health/index.js +5 -0
  1115. package/node_modules/@pairmesh/client/dist/health/index.js.map +1 -0
  1116. package/node_modules/@pairmesh/client/dist/health/peer-connectivity.d.ts +36 -0
  1117. package/node_modules/@pairmesh/client/dist/health/peer-connectivity.d.ts.map +1 -0
  1118. package/node_modules/@pairmesh/client/dist/health/peer-connectivity.js +72 -0
  1119. package/node_modules/@pairmesh/client/dist/health/peer-connectivity.js.map +1 -0
  1120. package/node_modules/@pairmesh/client/dist/health/peer-health.d.ts +18 -0
  1121. package/node_modules/@pairmesh/client/dist/health/peer-health.d.ts.map +1 -0
  1122. package/node_modules/@pairmesh/client/dist/health/peer-health.js +147 -0
  1123. package/node_modules/@pairmesh/client/dist/health/peer-health.js.map +1 -0
  1124. package/node_modules/@pairmesh/client/dist/health/runtime-health.d.ts +8 -0
  1125. package/node_modules/@pairmesh/client/dist/health/runtime-health.d.ts.map +1 -0
  1126. package/node_modules/@pairmesh/client/dist/health/runtime-health.js +65 -0
  1127. package/node_modules/@pairmesh/client/dist/health/runtime-health.js.map +1 -0
  1128. package/node_modules/@pairmesh/client/dist/identity.d.ts +30 -0
  1129. package/node_modules/@pairmesh/client/dist/identity.d.ts.map +1 -0
  1130. package/node_modules/@pairmesh/client/dist/identity.js +44 -0
  1131. package/node_modules/@pairmesh/client/dist/identity.js.map +1 -0
  1132. package/node_modules/@pairmesh/client/dist/index.d.ts +47 -0
  1133. package/node_modules/@pairmesh/client/dist/index.d.ts.map +1 -0
  1134. package/node_modules/@pairmesh/client/dist/index.js +45 -0
  1135. package/node_modules/@pairmesh/client/dist/index.js.map +1 -0
  1136. package/node_modules/@pairmesh/client/dist/inspect/active-inspections.d.ts +5 -0
  1137. package/node_modules/@pairmesh/client/dist/inspect/active-inspections.d.ts.map +1 -0
  1138. package/node_modules/@pairmesh/client/dist/inspect/active-inspections.js +26 -0
  1139. package/node_modules/@pairmesh/client/dist/inspect/active-inspections.js.map +1 -0
  1140. package/node_modules/@pairmesh/client/dist/inspect/execution-store.d.ts +52 -0
  1141. package/node_modules/@pairmesh/client/dist/inspect/execution-store.d.ts.map +1 -0
  1142. package/node_modules/@pairmesh/client/dist/inspect/execution-store.js +271 -0
  1143. package/node_modules/@pairmesh/client/dist/inspect/execution-store.js.map +1 -0
  1144. package/node_modules/@pairmesh/client/dist/inspect/handler.d.ts +13 -0
  1145. package/node_modules/@pairmesh/client/dist/inspect/handler.d.ts.map +1 -0
  1146. package/node_modules/@pairmesh/client/dist/inspect/handler.js +350 -0
  1147. package/node_modules/@pairmesh/client/dist/inspect/handler.js.map +1 -0
  1148. package/node_modules/@pairmesh/client/dist/inspect/messages.d.ts +20 -0
  1149. package/node_modules/@pairmesh/client/dist/inspect/messages.d.ts.map +1 -0
  1150. package/node_modules/@pairmesh/client/dist/inspect/messages.js +67 -0
  1151. package/node_modules/@pairmesh/client/dist/inspect/messages.js.map +1 -0
  1152. package/node_modules/@pairmesh/client/dist/inspect/remote-sync.d.ts +33 -0
  1153. package/node_modules/@pairmesh/client/dist/inspect/remote-sync.d.ts.map +1 -0
  1154. package/node_modules/@pairmesh/client/dist/inspect/remote-sync.js +387 -0
  1155. package/node_modules/@pairmesh/client/dist/inspect/remote-sync.js.map +1 -0
  1156. package/node_modules/@pairmesh/client/dist/inspect/requester-progress.d.ts +7 -0
  1157. package/node_modules/@pairmesh/client/dist/inspect/requester-progress.d.ts.map +1 -0
  1158. package/node_modules/@pairmesh/client/dist/inspect/requester-progress.js +44 -0
  1159. package/node_modules/@pairmesh/client/dist/inspect/requester-progress.js.map +1 -0
  1160. package/node_modules/@pairmesh/client/dist/inspect/thread-store.d.ts +28 -0
  1161. package/node_modules/@pairmesh/client/dist/inspect/thread-store.d.ts.map +1 -0
  1162. package/node_modules/@pairmesh/client/dist/inspect/thread-store.js +132 -0
  1163. package/node_modules/@pairmesh/client/dist/inspect/thread-store.js.map +1 -0
  1164. package/node_modules/@pairmesh/client/dist/inspect/timing.d.ts +30 -0
  1165. package/node_modules/@pairmesh/client/dist/inspect/timing.d.ts.map +1 -0
  1166. package/node_modules/@pairmesh/client/dist/inspect/timing.js +51 -0
  1167. package/node_modules/@pairmesh/client/dist/inspect/timing.js.map +1 -0
  1168. package/node_modules/@pairmesh/client/dist/local-config/index.d.ts +7 -0
  1169. package/node_modules/@pairmesh/client/dist/local-config/index.d.ts.map +1 -0
  1170. package/node_modules/@pairmesh/client/dist/local-config/index.js +7 -0
  1171. package/node_modules/@pairmesh/client/dist/local-config/index.js.map +1 -0
  1172. package/node_modules/@pairmesh/client/dist/local-config/paths.d.ts +24 -0
  1173. package/node_modules/@pairmesh/client/dist/local-config/paths.d.ts.map +1 -0
  1174. package/node_modules/@pairmesh/client/dist/local-config/paths.js +88 -0
  1175. package/node_modules/@pairmesh/client/dist/local-config/paths.js.map +1 -0
  1176. package/node_modules/@pairmesh/client/dist/local-config/port.d.ts +5 -0
  1177. package/node_modules/@pairmesh/client/dist/local-config/port.d.ts.map +1 -0
  1178. package/node_modules/@pairmesh/client/dist/local-config/port.js +25 -0
  1179. package/node_modules/@pairmesh/client/dist/local-config/port.js.map +1 -0
  1180. package/node_modules/@pairmesh/client/dist/local-config/project-resolve.d.ts +40 -0
  1181. package/node_modules/@pairmesh/client/dist/local-config/project-resolve.d.ts.map +1 -0
  1182. package/node_modules/@pairmesh/client/dist/local-config/project-resolve.js +116 -0
  1183. package/node_modules/@pairmesh/client/dist/local-config/project-resolve.js.map +1 -0
  1184. package/node_modules/@pairmesh/client/dist/local-config/resolver.d.ts +48 -0
  1185. package/node_modules/@pairmesh/client/dist/local-config/resolver.d.ts.map +1 -0
  1186. package/node_modules/@pairmesh/client/dist/local-config/resolver.js +156 -0
  1187. package/node_modules/@pairmesh/client/dist/local-config/resolver.js.map +1 -0
  1188. package/node_modules/@pairmesh/client/dist/local-config/runtime-info.d.ts +6 -0
  1189. package/node_modules/@pairmesh/client/dist/local-config/runtime-info.d.ts.map +1 -0
  1190. package/node_modules/@pairmesh/client/dist/local-config/runtime-info.js +34 -0
  1191. package/node_modules/@pairmesh/client/dist/local-config/runtime-info.js.map +1 -0
  1192. package/node_modules/@pairmesh/client/dist/local-config/schema.d.ts +131 -0
  1193. package/node_modules/@pairmesh/client/dist/local-config/schema.d.ts.map +1 -0
  1194. package/node_modules/@pairmesh/client/dist/local-config/schema.js +84 -0
  1195. package/node_modules/@pairmesh/client/dist/local-config/schema.js.map +1 -0
  1196. package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.d.ts +16 -0
  1197. package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.d.ts.map +1 -0
  1198. package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.js +32 -0
  1199. package/node_modules/@pairmesh/client/dist/local-runtime/build-compatibility.js.map +1 -0
  1200. package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.d.ts +16 -0
  1201. package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.d.ts.map +1 -0
  1202. package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.js +38 -0
  1203. package/node_modules/@pairmesh/client/dist/local-runtime/deferred-restart.js.map +1 -0
  1204. package/node_modules/@pairmesh/client/dist/local-runtime/index.d.ts +8 -0
  1205. package/node_modules/@pairmesh/client/dist/local-runtime/index.d.ts.map +1 -0
  1206. package/node_modules/@pairmesh/client/dist/local-runtime/index.js +8 -0
  1207. package/node_modules/@pairmesh/client/dist/local-runtime/index.js.map +1 -0
  1208. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.d.ts +17 -0
  1209. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.d.ts.map +1 -0
  1210. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.js +26 -0
  1211. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-identity.js.map +1 -0
  1212. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.d.ts +18 -0
  1213. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.d.ts.map +1 -0
  1214. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.js +21 -0
  1215. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-idle.js.map +1 -0
  1216. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.d.ts +17 -0
  1217. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.d.ts.map +1 -0
  1218. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.js +85 -0
  1219. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-logs.js.map +1 -0
  1220. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.d.ts +20 -0
  1221. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.d.ts.map +1 -0
  1222. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.js +96 -0
  1223. package/node_modules/@pairmesh/client/dist/local-runtime/runtime-manager.js.map +1 -0
  1224. package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.d.ts +16 -0
  1225. package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.d.ts.map +1 -0
  1226. package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.js +98 -0
  1227. package/node_modules/@pairmesh/client/dist/local-runtime/upgrade-restart-lock.js.map +1 -0
  1228. package/node_modules/@pairmesh/client/dist/notify/attention.d.ts +34 -0
  1229. package/node_modules/@pairmesh/client/dist/notify/attention.d.ts.map +1 -0
  1230. package/node_modules/@pairmesh/client/dist/notify/attention.js +85 -0
  1231. package/node_modules/@pairmesh/client/dist/notify/attention.js.map +1 -0
  1232. package/node_modules/@pairmesh/client/dist/notify/deliver.d.ts +52 -0
  1233. package/node_modules/@pairmesh/client/dist/notify/deliver.d.ts.map +1 -0
  1234. package/node_modules/@pairmesh/client/dist/notify/deliver.js +181 -0
  1235. package/node_modules/@pairmesh/client/dist/notify/deliver.js.map +1 -0
  1236. package/node_modules/@pairmesh/client/dist/notify/index.d.ts +6 -0
  1237. package/node_modules/@pairmesh/client/dist/notify/index.d.ts.map +1 -0
  1238. package/node_modules/@pairmesh/client/dist/notify/index.js +6 -0
  1239. package/node_modules/@pairmesh/client/dist/notify/index.js.map +1 -0
  1240. package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.d.ts +16 -0
  1241. package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.d.ts.map +1 -0
  1242. package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.js +50 -0
  1243. package/node_modules/@pairmesh/client/dist/notify/onboarding-prefs.js.map +1 -0
  1244. package/node_modules/@pairmesh/client/dist/notify/owner-presence.d.ts +41 -0
  1245. package/node_modules/@pairmesh/client/dist/notify/owner-presence.d.ts.map +1 -0
  1246. package/node_modules/@pairmesh/client/dist/notify/owner-presence.js +124 -0
  1247. package/node_modules/@pairmesh/client/dist/notify/owner-presence.js.map +1 -0
  1248. package/node_modules/@pairmesh/client/dist/notify/permission.d.ts +49 -0
  1249. package/node_modules/@pairmesh/client/dist/notify/permission.d.ts.map +1 -0
  1250. package/node_modules/@pairmesh/client/dist/notify/permission.js +222 -0
  1251. package/node_modules/@pairmesh/client/dist/notify/permission.js.map +1 -0
  1252. package/node_modules/@pairmesh/client/dist/pairing/active-runtime.d.ts +24 -0
  1253. package/node_modules/@pairmesh/client/dist/pairing/active-runtime.d.ts.map +1 -0
  1254. package/node_modules/@pairmesh/client/dist/pairing/active-runtime.js +49 -0
  1255. package/node_modules/@pairmesh/client/dist/pairing/active-runtime.js.map +1 -0
  1256. package/node_modules/@pairmesh/client/dist/pairing/address.d.ts +12 -0
  1257. package/node_modules/@pairmesh/client/dist/pairing/address.d.ts.map +1 -0
  1258. package/node_modules/@pairmesh/client/dist/pairing/address.js +50 -0
  1259. package/node_modules/@pairmesh/client/dist/pairing/address.js.map +1 -0
  1260. package/node_modules/@pairmesh/client/dist/pairing/index.d.ts +5 -0
  1261. package/node_modules/@pairmesh/client/dist/pairing/index.d.ts.map +1 -0
  1262. package/node_modules/@pairmesh/client/dist/pairing/index.js +5 -0
  1263. package/node_modules/@pairmesh/client/dist/pairing/index.js.map +1 -0
  1264. package/node_modules/@pairmesh/client/dist/pairing/join-command.d.ts +15 -0
  1265. package/node_modules/@pairmesh/client/dist/pairing/join-command.d.ts.map +1 -0
  1266. package/node_modules/@pairmesh/client/dist/pairing/join-command.js +16 -0
  1267. package/node_modules/@pairmesh/client/dist/pairing/join-command.js.map +1 -0
  1268. package/node_modules/@pairmesh/client/dist/pairing/join-preflight.d.ts +2 -0
  1269. package/node_modules/@pairmesh/client/dist/pairing/join-preflight.d.ts.map +1 -0
  1270. package/node_modules/@pairmesh/client/dist/pairing/join-preflight.js +42 -0
  1271. package/node_modules/@pairmesh/client/dist/pairing/join-preflight.js.map +1 -0
  1272. package/node_modules/@pairmesh/client/dist/progress/activity-display.d.ts +60 -0
  1273. package/node_modules/@pairmesh/client/dist/progress/activity-display.d.ts.map +1 -0
  1274. package/node_modules/@pairmesh/client/dist/progress/activity-display.js +491 -0
  1275. package/node_modules/@pairmesh/client/dist/progress/activity-display.js.map +1 -0
  1276. package/node_modules/@pairmesh/client/dist/reliability/index.d.ts +5 -0
  1277. package/node_modules/@pairmesh/client/dist/reliability/index.d.ts.map +1 -0
  1278. package/node_modules/@pairmesh/client/dist/reliability/index.js +5 -0
  1279. package/node_modules/@pairmesh/client/dist/reliability/index.js.map +1 -0
  1280. package/node_modules/@pairmesh/client/dist/reliability/store.d.ts +12 -0
  1281. package/node_modules/@pairmesh/client/dist/reliability/store.d.ts.map +1 -0
  1282. package/node_modules/@pairmesh/client/dist/reliability/store.js +93 -0
  1283. package/node_modules/@pairmesh/client/dist/reliability/store.js.map +1 -0
  1284. package/node_modules/@pairmesh/client/dist/reliability/summary.d.ts +25 -0
  1285. package/node_modules/@pairmesh/client/dist/reliability/summary.d.ts.map +1 -0
  1286. package/node_modules/@pairmesh/client/dist/reliability/summary.js +73 -0
  1287. package/node_modules/@pairmesh/client/dist/reliability/summary.js.map +1 -0
  1288. package/node_modules/@pairmesh/client/dist/reliability/tracker.d.ts +61 -0
  1289. package/node_modules/@pairmesh/client/dist/reliability/tracker.d.ts.map +1 -0
  1290. package/node_modules/@pairmesh/client/dist/reliability/tracker.js +174 -0
  1291. package/node_modules/@pairmesh/client/dist/reliability/tracker.js.map +1 -0
  1292. package/node_modules/@pairmesh/client/dist/reliability/types.d.ts +44 -0
  1293. package/node_modules/@pairmesh/client/dist/reliability/types.d.ts.map +1 -0
  1294. package/node_modules/@pairmesh/client/dist/reliability/types.js +60 -0
  1295. package/node_modules/@pairmesh/client/dist/reliability/types.js.map +1 -0
  1296. package/node_modules/@pairmesh/client/dist/session/handshake-server.d.ts +32 -0
  1297. package/node_modules/@pairmesh/client/dist/session/handshake-server.d.ts.map +1 -0
  1298. package/node_modules/@pairmesh/client/dist/session/handshake-server.js +421 -0
  1299. package/node_modules/@pairmesh/client/dist/session/handshake-server.js.map +1 -0
  1300. package/node_modules/@pairmesh/client/dist/session/manager.d.ts +1599 -0
  1301. package/node_modules/@pairmesh/client/dist/session/manager.d.ts.map +1 -0
  1302. package/node_modules/@pairmesh/client/dist/session/manager.js +3127 -0
  1303. package/node_modules/@pairmesh/client/dist/session/manager.js.map +1 -0
  1304. package/node_modules/@pairmesh/client/dist/session/peer-view.d.ts +60 -0
  1305. package/node_modules/@pairmesh/client/dist/session/peer-view.d.ts.map +1 -0
  1306. package/node_modules/@pairmesh/client/dist/session/peer-view.js +180 -0
  1307. package/node_modules/@pairmesh/client/dist/session/peer-view.js.map +1 -0
  1308. package/node_modules/@pairmesh/client/dist/session/receiver-actions.d.ts +5 -0
  1309. package/node_modules/@pairmesh/client/dist/session/receiver-actions.d.ts.map +1 -0
  1310. package/node_modules/@pairmesh/client/dist/session/receiver-actions.js +38 -0
  1311. package/node_modules/@pairmesh/client/dist/session/receiver-actions.js.map +1 -0
  1312. package/node_modules/@pairmesh/client/dist/session/receiver-inspections.d.ts +38 -0
  1313. package/node_modules/@pairmesh/client/dist/session/receiver-inspections.d.ts.map +1 -0
  1314. package/node_modules/@pairmesh/client/dist/session/receiver-inspections.js +104 -0
  1315. package/node_modules/@pairmesh/client/dist/session/receiver-inspections.js.map +1 -0
  1316. package/node_modules/@pairmesh/client/dist/session/relationship.d.ts +19 -0
  1317. package/node_modules/@pairmesh/client/dist/session/relationship.d.ts.map +1 -0
  1318. package/node_modules/@pairmesh/client/dist/session/relationship.js +40 -0
  1319. package/node_modules/@pairmesh/client/dist/session/relationship.js.map +1 -0
  1320. package/node_modules/@pairmesh/client/dist/session/schemas.d.ts +1826 -0
  1321. package/node_modules/@pairmesh/client/dist/session/schemas.d.ts.map +1 -0
  1322. package/node_modules/@pairmesh/client/dist/session/schemas.js +152 -0
  1323. package/node_modules/@pairmesh/client/dist/session/schemas.js.map +1 -0
  1324. package/node_modules/@pairmesh/client/dist/state/state-lock.d.ts +19 -0
  1325. package/node_modules/@pairmesh/client/dist/state/state-lock.d.ts.map +1 -0
  1326. package/node_modules/@pairmesh/client/dist/state/state-lock.js +136 -0
  1327. package/node_modules/@pairmesh/client/dist/state/state-lock.js.map +1 -0
  1328. package/node_modules/@pairmesh/client/dist/state/store.d.ts +72 -0
  1329. package/node_modules/@pairmesh/client/dist/state/store.d.ts.map +1 -0
  1330. package/node_modules/@pairmesh/client/dist/state/store.js +252 -0
  1331. package/node_modules/@pairmesh/client/dist/state/store.js.map +1 -0
  1332. package/node_modules/@pairmesh/client/dist/update/artifact.d.ts +19 -0
  1333. package/node_modules/@pairmesh/client/dist/update/artifact.d.ts.map +1 -0
  1334. package/node_modules/@pairmesh/client/dist/update/artifact.js +150 -0
  1335. package/node_modules/@pairmesh/client/dist/update/artifact.js.map +1 -0
  1336. package/node_modules/@pairmesh/client/dist/update/channel.d.ts +12 -0
  1337. package/node_modules/@pairmesh/client/dist/update/channel.d.ts.map +1 -0
  1338. package/node_modules/@pairmesh/client/dist/update/channel.js +96 -0
  1339. package/node_modules/@pairmesh/client/dist/update/channel.js.map +1 -0
  1340. package/node_modules/@pairmesh/client/dist/update/check.d.ts +11 -0
  1341. package/node_modules/@pairmesh/client/dist/update/check.d.ts.map +1 -0
  1342. package/node_modules/@pairmesh/client/dist/update/check.js +82 -0
  1343. package/node_modules/@pairmesh/client/dist/update/check.js.map +1 -0
  1344. package/node_modules/@pairmesh/client/dist/update/constants.d.ts +9 -0
  1345. package/node_modules/@pairmesh/client/dist/update/constants.d.ts.map +1 -0
  1346. package/node_modules/@pairmesh/client/dist/update/constants.js +20 -0
  1347. package/node_modules/@pairmesh/client/dist/update/constants.js.map +1 -0
  1348. package/node_modules/@pairmesh/client/dist/update/index.d.ts +10 -0
  1349. package/node_modules/@pairmesh/client/dist/update/index.d.ts.map +1 -0
  1350. package/node_modules/@pairmesh/client/dist/update/index.js +10 -0
  1351. package/node_modules/@pairmesh/client/dist/update/index.js.map +1 -0
  1352. package/node_modules/@pairmesh/client/dist/update/install.d.ts +39 -0
  1353. package/node_modules/@pairmesh/client/dist/update/install.d.ts.map +1 -0
  1354. package/node_modules/@pairmesh/client/dist/update/install.js +114 -0
  1355. package/node_modules/@pairmesh/client/dist/update/install.js.map +1 -0
  1356. package/node_modules/@pairmesh/client/dist/update/manifest.d.ts +8 -0
  1357. package/node_modules/@pairmesh/client/dist/update/manifest.d.ts.map +1 -0
  1358. package/node_modules/@pairmesh/client/dist/update/manifest.js +100 -0
  1359. package/node_modules/@pairmesh/client/dist/update/manifest.js.map +1 -0
  1360. package/node_modules/@pairmesh/client/dist/update/peer-boundary.d.ts +4 -0
  1361. package/node_modules/@pairmesh/client/dist/update/peer-boundary.d.ts.map +1 -0
  1362. package/node_modules/@pairmesh/client/dist/update/peer-boundary.js +14 -0
  1363. package/node_modules/@pairmesh/client/dist/update/peer-boundary.js.map +1 -0
  1364. package/node_modules/@pairmesh/client/dist/update/semver.d.ts +18 -0
  1365. package/node_modules/@pairmesh/client/dist/update/semver.d.ts.map +1 -0
  1366. package/node_modules/@pairmesh/client/dist/update/semver.js +82 -0
  1367. package/node_modules/@pairmesh/client/dist/update/semver.js.map +1 -0
  1368. package/node_modules/@pairmesh/client/dist/update/types.d.ts +57 -0
  1369. package/node_modules/@pairmesh/client/dist/update/types.d.ts.map +1 -0
  1370. package/node_modules/@pairmesh/client/dist/update/types.js +2 -0
  1371. package/node_modules/@pairmesh/client/dist/update/types.js.map +1 -0
  1372. package/node_modules/@pairmesh/client/package.json +35 -0
  1373. package/node_modules/@pairmesh/client/vendor/macos/LICENSE +18 -0
  1374. package/node_modules/@pairmesh/client/vendor/macos/README.md +17 -0
  1375. package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/Info.plist +36 -0
  1376. package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/MacOS/terminal-notifier +0 -0
  1377. package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/PkgInfo +1 -0
  1378. package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/Resources/Terminal.icns +0 -0
  1379. package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/Resources/en.lproj/InfoPlist.strings +2 -0
  1380. package/node_modules/@pairmesh/client/vendor/macos/terminal-notifier.app/Contents/_CodeSignature/CodeResources +146 -0
  1381. package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.d.ts +6 -0
  1382. package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.d.ts.map +1 -0
  1383. package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.js +115 -0
  1384. package/node_modules/@pairmesh/coordination/dist/a2a/agent-card.js.map +1 -0
  1385. package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.d.ts +25 -0
  1386. package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.d.ts.map +1 -0
  1387. package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.js +149 -0
  1388. package/node_modules/@pairmesh/coordination/dist/a2a/audit-hooks.js.map +1 -0
  1389. package/node_modules/@pairmesh/coordination/dist/a2a/auth.d.ts +34 -0
  1390. package/node_modules/@pairmesh/coordination/dist/a2a/auth.d.ts.map +1 -0
  1391. package/node_modules/@pairmesh/coordination/dist/a2a/auth.js +87 -0
  1392. package/node_modules/@pairmesh/coordination/dist/a2a/auth.js.map +1 -0
  1393. package/node_modules/@pairmesh/coordination/dist/a2a/client.d.ts +7 -0
  1394. package/node_modules/@pairmesh/coordination/dist/a2a/client.d.ts.map +1 -0
  1395. package/node_modules/@pairmesh/coordination/dist/a2a/client.js +88 -0
  1396. package/node_modules/@pairmesh/coordination/dist/a2a/client.js.map +1 -0
  1397. package/node_modules/@pairmesh/coordination/dist/a2a/executor.d.ts +20 -0
  1398. package/node_modules/@pairmesh/coordination/dist/a2a/executor.d.ts.map +1 -0
  1399. package/node_modules/@pairmesh/coordination/dist/a2a/executor.js +542 -0
  1400. package/node_modules/@pairmesh/coordination/dist/a2a/executor.js.map +1 -0
  1401. package/node_modules/@pairmesh/coordination/dist/a2a/identity.d.ts +3 -0
  1402. package/node_modules/@pairmesh/coordination/dist/a2a/identity.d.ts.map +1 -0
  1403. package/node_modules/@pairmesh/coordination/dist/a2a/identity.js +3 -0
  1404. package/node_modules/@pairmesh/coordination/dist/a2a/identity.js.map +1 -0
  1405. package/node_modules/@pairmesh/coordination/dist/a2a/index.d.ts +8 -0
  1406. package/node_modules/@pairmesh/coordination/dist/a2a/index.d.ts.map +1 -0
  1407. package/node_modules/@pairmesh/coordination/dist/a2a/index.js +8 -0
  1408. package/node_modules/@pairmesh/coordination/dist/a2a/index.js.map +1 -0
  1409. package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.d.ts +31 -0
  1410. package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.d.ts.map +1 -0
  1411. package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.js +96 -0
  1412. package/node_modules/@pairmesh/coordination/dist/a2a/request-handler.js.map +1 -0
  1413. package/node_modules/@pairmesh/coordination/dist/a2a/runtime.d.ts +23 -0
  1414. package/node_modules/@pairmesh/coordination/dist/a2a/runtime.d.ts.map +1 -0
  1415. package/node_modules/@pairmesh/coordination/dist/a2a/runtime.js +120 -0
  1416. package/node_modules/@pairmesh/coordination/dist/a2a/runtime.js.map +1 -0
  1417. package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.d.ts +18 -0
  1418. package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.d.ts.map +1 -0
  1419. package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.js +48 -0
  1420. package/node_modules/@pairmesh/coordination/dist/a2a/test-ports.js.map +1 -0
  1421. package/node_modules/@pairmesh/coordination/dist/a2a/types.d.ts +19 -0
  1422. package/node_modules/@pairmesh/coordination/dist/a2a/types.d.ts.map +1 -0
  1423. package/node_modules/@pairmesh/coordination/dist/a2a/types.js +14 -0
  1424. package/node_modules/@pairmesh/coordination/dist/a2a/types.js.map +1 -0
  1425. package/node_modules/@pairmesh/coordination/dist/cli/agent.d.ts +2 -0
  1426. package/node_modules/@pairmesh/coordination/dist/cli/agent.d.ts.map +1 -0
  1427. package/node_modules/@pairmesh/coordination/dist/cli/agent.js +4 -0
  1428. package/node_modules/@pairmesh/coordination/dist/cli/agent.js.map +1 -0
  1429. package/node_modules/@pairmesh/coordination/dist/cli/send.d.ts +2 -0
  1430. package/node_modules/@pairmesh/coordination/dist/cli/send.d.ts.map +1 -0
  1431. package/node_modules/@pairmesh/coordination/dist/cli/send.js +24 -0
  1432. package/node_modules/@pairmesh/coordination/dist/cli/send.js.map +1 -0
  1433. package/node_modules/@pairmesh/coordination/dist/index.d.ts +7 -0
  1434. package/node_modules/@pairmesh/coordination/dist/index.d.ts.map +1 -0
  1435. package/node_modules/@pairmesh/coordination/dist/index.js +10 -0
  1436. package/node_modules/@pairmesh/coordination/dist/index.js.map +1 -0
  1437. package/node_modules/@pairmesh/coordination/package.json +43 -0
  1438. package/node_modules/@pairmesh/mcp/dist/context.d.ts +9 -0
  1439. package/node_modules/@pairmesh/mcp/dist/context.d.ts.map +1 -0
  1440. package/node_modules/@pairmesh/mcp/dist/context.js +45 -0
  1441. package/node_modules/@pairmesh/mcp/dist/context.js.map +1 -0
  1442. package/node_modules/@pairmesh/mcp/dist/create-server.d.ts +11 -0
  1443. package/node_modules/@pairmesh/mcp/dist/create-server.d.ts.map +1 -0
  1444. package/node_modules/@pairmesh/mcp/dist/create-server.js +507 -0
  1445. package/node_modules/@pairmesh/mcp/dist/create-server.js.map +1 -0
  1446. package/node_modules/@pairmesh/mcp/dist/errors.d.ts +8 -0
  1447. package/node_modules/@pairmesh/mcp/dist/errors.d.ts.map +1 -0
  1448. package/node_modules/@pairmesh/mcp/dist/errors.js +79 -0
  1449. package/node_modules/@pairmesh/mcp/dist/errors.js.map +1 -0
  1450. package/node_modules/@pairmesh/mcp/dist/index.d.ts +3 -0
  1451. package/node_modules/@pairmesh/mcp/dist/index.d.ts.map +1 -0
  1452. package/node_modules/@pairmesh/mcp/dist/index.js +5 -0
  1453. package/node_modules/@pairmesh/mcp/dist/index.js.map +1 -0
  1454. package/node_modules/@pairmesh/mcp/dist/progress.d.ts +7 -0
  1455. package/node_modules/@pairmesh/mcp/dist/progress.d.ts.map +1 -0
  1456. package/node_modules/@pairmesh/mcp/dist/progress.js +17 -0
  1457. package/node_modules/@pairmesh/mcp/dist/progress.js.map +1 -0
  1458. package/node_modules/@pairmesh/mcp/dist/receiver-tools.d.ts +6 -0
  1459. package/node_modules/@pairmesh/mcp/dist/receiver-tools.d.ts.map +1 -0
  1460. package/node_modules/@pairmesh/mcp/dist/receiver-tools.js +217 -0
  1461. package/node_modules/@pairmesh/mcp/dist/receiver-tools.js.map +1 -0
  1462. package/node_modules/@pairmesh/mcp/dist/server.d.ts +5 -0
  1463. package/node_modules/@pairmesh/mcp/dist/server.d.ts.map +1 -0
  1464. package/node_modules/@pairmesh/mcp/dist/server.js +5 -0
  1465. package/node_modules/@pairmesh/mcp/dist/server.js.map +1 -0
  1466. package/node_modules/@pairmesh/mcp/dist/tools/handlers.d.ts +148 -0
  1467. package/node_modules/@pairmesh/mcp/dist/tools/handlers.d.ts.map +1 -0
  1468. package/node_modules/@pairmesh/mcp/dist/tools/handlers.js +437 -0
  1469. package/node_modules/@pairmesh/mcp/dist/tools/handlers.js.map +1 -0
  1470. package/node_modules/@pairmesh/mcp/package.json +41 -0
  1471. package/node_modules/@pairmesh/permissions/dist/index.d.ts +2 -0
  1472. package/node_modules/@pairmesh/permissions/dist/index.d.ts.map +1 -0
  1473. package/node_modules/@pairmesh/permissions/dist/index.js +2 -0
  1474. package/node_modules/@pairmesh/permissions/dist/index.js.map +1 -0
  1475. package/node_modules/@pairmesh/permissions/package.json +22 -0
  1476. package/node_modules/@pairmesh/protocol/dist/a2a-references.d.ts +16 -0
  1477. package/node_modules/@pairmesh/protocol/dist/a2a-references.d.ts.map +1 -0
  1478. package/node_modules/@pairmesh/protocol/dist/a2a-references.js +12 -0
  1479. package/node_modules/@pairmesh/protocol/dist/a2a-references.js.map +1 -0
  1480. package/node_modules/@pairmesh/protocol/dist/action.d.ts +1089 -0
  1481. package/node_modules/@pairmesh/protocol/dist/action.d.ts.map +1 -0
  1482. package/node_modules/@pairmesh/protocol/dist/action.js +249 -0
  1483. package/node_modules/@pairmesh/protocol/dist/action.js.map +1 -0
  1484. package/node_modules/@pairmesh/protocol/dist/agent.d.ts +14 -0
  1485. package/node_modules/@pairmesh/protocol/dist/agent.d.ts.map +1 -0
  1486. package/node_modules/@pairmesh/protocol/dist/agent.js +22 -0
  1487. package/node_modules/@pairmesh/protocol/dist/agent.js.map +1 -0
  1488. package/node_modules/@pairmesh/protocol/dist/audit.d.ts +1080 -0
  1489. package/node_modules/@pairmesh/protocol/dist/audit.d.ts.map +1 -0
  1490. package/node_modules/@pairmesh/protocol/dist/audit.js +186 -0
  1491. package/node_modules/@pairmesh/protocol/dist/audit.js.map +1 -0
  1492. package/node_modules/@pairmesh/protocol/dist/auth.d.ts +113 -0
  1493. package/node_modules/@pairmesh/protocol/dist/auth.d.ts.map +1 -0
  1494. package/node_modules/@pairmesh/protocol/dist/auth.js +83 -0
  1495. package/node_modules/@pairmesh/protocol/dist/auth.js.map +1 -0
  1496. package/node_modules/@pairmesh/protocol/dist/collaborative-task.d.ts +289 -0
  1497. package/node_modules/@pairmesh/protocol/dist/collaborative-task.d.ts.map +1 -0
  1498. package/node_modules/@pairmesh/protocol/dist/collaborative-task.js +187 -0
  1499. package/node_modules/@pairmesh/protocol/dist/collaborative-task.js.map +1 -0
  1500. package/node_modules/@pairmesh/protocol/dist/common.d.ts +4 -0
  1501. package/node_modules/@pairmesh/protocol/dist/common.d.ts.map +1 -0
  1502. package/node_modules/@pairmesh/protocol/dist/common.js +8 -0
  1503. package/node_modules/@pairmesh/protocol/dist/common.js.map +1 -0
  1504. package/node_modules/@pairmesh/protocol/dist/continuation.d.ts +166 -0
  1505. package/node_modules/@pairmesh/protocol/dist/continuation.d.ts.map +1 -0
  1506. package/node_modules/@pairmesh/protocol/dist/continuation.js +155 -0
  1507. package/node_modules/@pairmesh/protocol/dist/continuation.js.map +1 -0
  1508. package/node_modules/@pairmesh/protocol/dist/developer.d.ts +10 -0
  1509. package/node_modules/@pairmesh/protocol/dist/developer.d.ts.map +1 -0
  1510. package/node_modules/@pairmesh/protocol/dist/developer.js +17 -0
  1511. package/node_modules/@pairmesh/protocol/dist/developer.js.map +1 -0
  1512. package/node_modules/@pairmesh/protocol/dist/device.d.ts +9 -0
  1513. package/node_modules/@pairmesh/protocol/dist/device.d.ts.map +1 -0
  1514. package/node_modules/@pairmesh/protocol/dist/device.js +11 -0
  1515. package/node_modules/@pairmesh/protocol/dist/device.js.map +1 -0
  1516. package/node_modules/@pairmesh/protocol/dist/errors/codes.d.ts +107 -0
  1517. package/node_modules/@pairmesh/protocol/dist/errors/codes.d.ts.map +1 -0
  1518. package/node_modules/@pairmesh/protocol/dist/errors/codes.js +106 -0
  1519. package/node_modules/@pairmesh/protocol/dist/errors/codes.js.map +1 -0
  1520. package/node_modules/@pairmesh/protocol/dist/errors/index.d.ts +4 -0
  1521. package/node_modules/@pairmesh/protocol/dist/errors/index.d.ts.map +1 -0
  1522. package/node_modules/@pairmesh/protocol/dist/errors/index.js +4 -0
  1523. package/node_modules/@pairmesh/protocol/dist/errors/index.js.map +1 -0
  1524. package/node_modules/@pairmesh/protocol/dist/errors/schema.d.ts +131 -0
  1525. package/node_modules/@pairmesh/protocol/dist/errors/schema.d.ts.map +1 -0
  1526. package/node_modules/@pairmesh/protocol/dist/errors/schema.js +40 -0
  1527. package/node_modules/@pairmesh/protocol/dist/errors/schema.js.map +1 -0
  1528. package/node_modules/@pairmesh/protocol/dist/errors/validation.d.ts +13 -0
  1529. package/node_modules/@pairmesh/protocol/dist/errors/validation.d.ts.map +1 -0
  1530. package/node_modules/@pairmesh/protocol/dist/errors/validation.js +57 -0
  1531. package/node_modules/@pairmesh/protocol/dist/errors/validation.js.map +1 -0
  1532. package/node_modules/@pairmesh/protocol/dist/health.d.ts +109 -0
  1533. package/node_modules/@pairmesh/protocol/dist/health.d.ts.map +1 -0
  1534. package/node_modules/@pairmesh/protocol/dist/health.js +68 -0
  1535. package/node_modules/@pairmesh/protocol/dist/health.js.map +1 -0
  1536. package/node_modules/@pairmesh/protocol/dist/host-request.d.ts +86 -0
  1537. package/node_modules/@pairmesh/protocol/dist/host-request.d.ts.map +1 -0
  1538. package/node_modules/@pairmesh/protocol/dist/host-request.js +93 -0
  1539. package/node_modules/@pairmesh/protocol/dist/host-request.js.map +1 -0
  1540. package/node_modules/@pairmesh/protocol/dist/ids.d.ts +39 -0
  1541. package/node_modules/@pairmesh/protocol/dist/ids.d.ts.map +1 -0
  1542. package/node_modules/@pairmesh/protocol/dist/ids.js +30 -0
  1543. package/node_modules/@pairmesh/protocol/dist/ids.js.map +1 -0
  1544. package/node_modules/@pairmesh/protocol/dist/index.d.ts +28 -0
  1545. package/node_modules/@pairmesh/protocol/dist/index.d.ts.map +1 -0
  1546. package/node_modules/@pairmesh/protocol/dist/index.js +28 -0
  1547. package/node_modules/@pairmesh/protocol/dist/index.js.map +1 -0
  1548. package/node_modules/@pairmesh/protocol/dist/input-request.d.ts +1024 -0
  1549. package/node_modules/@pairmesh/protocol/dist/input-request.d.ts.map +1 -0
  1550. package/node_modules/@pairmesh/protocol/dist/input-request.js +167 -0
  1551. package/node_modules/@pairmesh/protocol/dist/input-request.js.map +1 -0
  1552. package/node_modules/@pairmesh/protocol/dist/inspection-execution.d.ts +241 -0
  1553. package/node_modules/@pairmesh/protocol/dist/inspection-execution.d.ts.map +1 -0
  1554. package/node_modules/@pairmesh/protocol/dist/inspection-execution.js +94 -0
  1555. package/node_modules/@pairmesh/protocol/dist/inspection-execution.js.map +1 -0
  1556. package/node_modules/@pairmesh/protocol/dist/inspection-thread.d.ts +77 -0
  1557. package/node_modules/@pairmesh/protocol/dist/inspection-thread.d.ts.map +1 -0
  1558. package/node_modules/@pairmesh/protocol/dist/inspection-thread.js +43 -0
  1559. package/node_modules/@pairmesh/protocol/dist/inspection-thread.js.map +1 -0
  1560. package/node_modules/@pairmesh/protocol/dist/inspection.d.ts +773 -0
  1561. package/node_modules/@pairmesh/protocol/dist/inspection.d.ts.map +1 -0
  1562. package/node_modules/@pairmesh/protocol/dist/inspection.js +65 -0
  1563. package/node_modules/@pairmesh/protocol/dist/inspection.js.map +1 -0
  1564. package/node_modules/@pairmesh/protocol/dist/pairing.d.ts +1905 -0
  1565. package/node_modules/@pairmesh/protocol/dist/pairing.d.ts.map +1 -0
  1566. package/node_modules/@pairmesh/protocol/dist/pairing.js +111 -0
  1567. package/node_modules/@pairmesh/protocol/dist/pairing.js.map +1 -0
  1568. package/node_modules/@pairmesh/protocol/dist/permissions.d.ts +158 -0
  1569. package/node_modules/@pairmesh/protocol/dist/permissions.d.ts.map +1 -0
  1570. package/node_modules/@pairmesh/protocol/dist/permissions.js +141 -0
  1571. package/node_modules/@pairmesh/protocol/dist/permissions.js.map +1 -0
  1572. package/node_modules/@pairmesh/protocol/dist/progress-event.d.ts +253 -0
  1573. package/node_modules/@pairmesh/protocol/dist/progress-event.d.ts.map +1 -0
  1574. package/node_modules/@pairmesh/protocol/dist/progress-event.js +619 -0
  1575. package/node_modules/@pairmesh/protocol/dist/progress-event.js.map +1 -0
  1576. package/node_modules/@pairmesh/protocol/dist/project.d.ts +8 -0
  1577. package/node_modules/@pairmesh/protocol/dist/project.d.ts.map +1 -0
  1578. package/node_modules/@pairmesh/protocol/dist/project.js +18 -0
  1579. package/node_modules/@pairmesh/protocol/dist/project.js.map +1 -0
  1580. package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.d.ts +34 -0
  1581. package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.d.ts.map +1 -0
  1582. package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.js +81 -0
  1583. package/node_modules/@pairmesh/protocol/dist/provider-message-aggregator.js.map +1 -0
  1584. package/node_modules/@pairmesh/protocol/dist/session-code.d.ts +5 -0
  1585. package/node_modules/@pairmesh/protocol/dist/session-code.d.ts.map +1 -0
  1586. package/node_modules/@pairmesh/protocol/dist/session-code.js +20 -0
  1587. package/node_modules/@pairmesh/protocol/dist/session-code.js.map +1 -0
  1588. package/node_modules/@pairmesh/protocol/dist/session.d.ts +25 -0
  1589. package/node_modules/@pairmesh/protocol/dist/session.d.ts.map +1 -0
  1590. package/node_modules/@pairmesh/protocol/dist/session.js +22 -0
  1591. package/node_modules/@pairmesh/protocol/dist/session.js.map +1 -0
  1592. package/node_modules/@pairmesh/protocol/dist/source-reference.d.ts +50 -0
  1593. package/node_modules/@pairmesh/protocol/dist/source-reference.d.ts.map +1 -0
  1594. package/node_modules/@pairmesh/protocol/dist/source-reference.js +33 -0
  1595. package/node_modules/@pairmesh/protocol/dist/source-reference.js.map +1 -0
  1596. package/node_modules/@pairmesh/protocol/dist/version.d.ts +15 -0
  1597. package/node_modules/@pairmesh/protocol/dist/version.d.ts.map +1 -0
  1598. package/node_modules/@pairmesh/protocol/dist/version.js +14 -0
  1599. package/node_modules/@pairmesh/protocol/dist/version.js.map +1 -0
  1600. package/node_modules/@pairmesh/protocol/package.json +22 -0
  1601. package/node_modules/@pairmesh/shared/dist/branded-env.d.ts +37 -0
  1602. package/node_modules/@pairmesh/shared/dist/branded-env.d.ts.map +1 -0
  1603. package/node_modules/@pairmesh/shared/dist/branded-env.js +61 -0
  1604. package/node_modules/@pairmesh/shared/dist/branded-env.js.map +1 -0
  1605. package/node_modules/@pairmesh/shared/dist/index.d.ts +6 -0
  1606. package/node_modules/@pairmesh/shared/dist/index.d.ts.map +1 -0
  1607. package/node_modules/@pairmesh/shared/dist/index.js +5 -0
  1608. package/node_modules/@pairmesh/shared/dist/index.js.map +1 -0
  1609. package/node_modules/@pairmesh/shared/package.json +19 -0
  1610. package/node_modules/accepts/HISTORY.md +250 -0
  1611. package/node_modules/accepts/LICENSE +23 -0
  1612. package/node_modules/accepts/README.md +140 -0
  1613. package/node_modules/accepts/index.js +238 -0
  1614. package/node_modules/accepts/package.json +47 -0
  1615. package/node_modules/body-parser/LICENSE +23 -0
  1616. package/node_modules/body-parser/README.md +509 -0
  1617. package/node_modules/body-parser/index.js +55 -0
  1618. package/node_modules/body-parser/lib/read.js +247 -0
  1619. package/node_modules/body-parser/lib/types/json.js +186 -0
  1620. package/node_modules/body-parser/lib/types/raw.js +42 -0
  1621. package/node_modules/body-parser/lib/types/text.js +36 -0
  1622. package/node_modules/body-parser/lib/types/urlencoded.js +138 -0
  1623. package/node_modules/body-parser/lib/utils.js +100 -0
  1624. package/node_modules/body-parser/package.json +65 -0
  1625. package/node_modules/bytes/History.md +97 -0
  1626. package/node_modules/bytes/LICENSE +23 -0
  1627. package/node_modules/bytes/Readme.md +152 -0
  1628. package/node_modules/bytes/index.js +170 -0
  1629. package/node_modules/bytes/package.json +42 -0
  1630. package/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
  1631. package/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
  1632. package/node_modules/call-bind-apply-helpers/.nycrc +9 -0
  1633. package/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
  1634. package/node_modules/call-bind-apply-helpers/LICENSE +21 -0
  1635. package/node_modules/call-bind-apply-helpers/README.md +62 -0
  1636. package/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
  1637. package/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
  1638. package/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
  1639. package/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
  1640. package/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
  1641. package/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
  1642. package/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
  1643. package/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
  1644. package/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
  1645. package/node_modules/call-bind-apply-helpers/index.js +15 -0
  1646. package/node_modules/call-bind-apply-helpers/package.json +85 -0
  1647. package/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
  1648. package/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
  1649. package/node_modules/call-bind-apply-helpers/test/index.js +63 -0
  1650. package/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
  1651. package/node_modules/call-bound/.eslintrc +13 -0
  1652. package/node_modules/call-bound/.github/FUNDING.yml +12 -0
  1653. package/node_modules/call-bound/.nycrc +9 -0
  1654. package/node_modules/call-bound/CHANGELOG.md +42 -0
  1655. package/node_modules/call-bound/LICENSE +21 -0
  1656. package/node_modules/call-bound/README.md +53 -0
  1657. package/node_modules/call-bound/index.d.ts +94 -0
  1658. package/node_modules/call-bound/index.js +19 -0
  1659. package/node_modules/call-bound/package.json +99 -0
  1660. package/node_modules/call-bound/test/index.js +61 -0
  1661. package/node_modules/call-bound/tsconfig.json +10 -0
  1662. package/node_modules/content-disposition/LICENSE +22 -0
  1663. package/node_modules/content-disposition/README.md +211 -0
  1664. package/node_modules/content-disposition/dist/index.d.ts +72 -0
  1665. package/node_modules/content-disposition/dist/index.js +388 -0
  1666. package/node_modules/content-disposition/dist/index.js.map +1 -0
  1667. package/node_modules/content-disposition/package.json +52 -0
  1668. package/node_modules/content-type/LICENSE +22 -0
  1669. package/node_modules/content-type/README.md +71 -0
  1670. package/node_modules/content-type/dist/index.d.ts +46 -0
  1671. package/node_modules/content-type/dist/index.js +176 -0
  1672. package/node_modules/content-type/dist/index.js.map +1 -0
  1673. package/node_modules/content-type/package.json +52 -0
  1674. package/node_modules/cookie/LICENSE +24 -0
  1675. package/node_modules/cookie/README.md +317 -0
  1676. package/node_modules/cookie/SECURITY.md +25 -0
  1677. package/node_modules/cookie/index.js +335 -0
  1678. package/node_modules/cookie/package.json +44 -0
  1679. package/node_modules/cookie-signature/History.md +70 -0
  1680. package/node_modules/cookie-signature/LICENSE +22 -0
  1681. package/node_modules/cookie-signature/Readme.md +23 -0
  1682. package/node_modules/cookie-signature/index.js +47 -0
  1683. package/node_modules/cookie-signature/package.json +24 -0
  1684. package/node_modules/debug/LICENSE +20 -0
  1685. package/node_modules/debug/README.md +481 -0
  1686. package/node_modules/debug/package.json +64 -0
  1687. package/node_modules/debug/src/browser.js +272 -0
  1688. package/node_modules/debug/src/common.js +292 -0
  1689. package/node_modules/debug/src/index.js +10 -0
  1690. package/node_modules/debug/src/node.js +263 -0
  1691. package/node_modules/depd/History.md +103 -0
  1692. package/node_modules/depd/LICENSE +22 -0
  1693. package/node_modules/depd/Readme.md +280 -0
  1694. package/node_modules/depd/index.js +538 -0
  1695. package/node_modules/depd/lib/browser/index.js +77 -0
  1696. package/node_modules/depd/package.json +45 -0
  1697. package/node_modules/dunder-proto/.eslintrc +5 -0
  1698. package/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
  1699. package/node_modules/dunder-proto/.nycrc +13 -0
  1700. package/node_modules/dunder-proto/CHANGELOG.md +24 -0
  1701. package/node_modules/dunder-proto/LICENSE +21 -0
  1702. package/node_modules/dunder-proto/README.md +54 -0
  1703. package/node_modules/dunder-proto/get.d.ts +5 -0
  1704. package/node_modules/dunder-proto/get.js +30 -0
  1705. package/node_modules/dunder-proto/package.json +76 -0
  1706. package/node_modules/dunder-proto/set.d.ts +5 -0
  1707. package/node_modules/dunder-proto/set.js +35 -0
  1708. package/node_modules/dunder-proto/test/get.js +34 -0
  1709. package/node_modules/dunder-proto/test/index.js +4 -0
  1710. package/node_modules/dunder-proto/test/set.js +50 -0
  1711. package/node_modules/dunder-proto/tsconfig.json +9 -0
  1712. package/node_modules/ee-first/LICENSE +22 -0
  1713. package/node_modules/ee-first/README.md +80 -0
  1714. package/node_modules/ee-first/index.js +95 -0
  1715. package/node_modules/ee-first/package.json +29 -0
  1716. package/node_modules/encodeurl/LICENSE +22 -0
  1717. package/node_modules/encodeurl/README.md +109 -0
  1718. package/node_modules/encodeurl/index.js +60 -0
  1719. package/node_modules/encodeurl/package.json +40 -0
  1720. package/node_modules/es-define-property/.eslintrc +13 -0
  1721. package/node_modules/es-define-property/.github/FUNDING.yml +12 -0
  1722. package/node_modules/es-define-property/.nycrc +9 -0
  1723. package/node_modules/es-define-property/CHANGELOG.md +29 -0
  1724. package/node_modules/es-define-property/LICENSE +21 -0
  1725. package/node_modules/es-define-property/README.md +49 -0
  1726. package/node_modules/es-define-property/index.d.ts +3 -0
  1727. package/node_modules/es-define-property/index.js +14 -0
  1728. package/node_modules/es-define-property/package.json +81 -0
  1729. package/node_modules/es-define-property/test/index.js +56 -0
  1730. package/node_modules/es-define-property/tsconfig.json +10 -0
  1731. package/node_modules/es-errors/.eslintrc +5 -0
  1732. package/node_modules/es-errors/.github/FUNDING.yml +12 -0
  1733. package/node_modules/es-errors/CHANGELOG.md +40 -0
  1734. package/node_modules/es-errors/LICENSE +21 -0
  1735. package/node_modules/es-errors/README.md +55 -0
  1736. package/node_modules/es-errors/eval.d.ts +3 -0
  1737. package/node_modules/es-errors/eval.js +4 -0
  1738. package/node_modules/es-errors/index.d.ts +3 -0
  1739. package/node_modules/es-errors/index.js +4 -0
  1740. package/node_modules/es-errors/package.json +80 -0
  1741. package/node_modules/es-errors/range.d.ts +3 -0
  1742. package/node_modules/es-errors/range.js +4 -0
  1743. package/node_modules/es-errors/ref.d.ts +3 -0
  1744. package/node_modules/es-errors/ref.js +4 -0
  1745. package/node_modules/es-errors/syntax.d.ts +3 -0
  1746. package/node_modules/es-errors/syntax.js +4 -0
  1747. package/node_modules/es-errors/test/index.js +19 -0
  1748. package/node_modules/es-errors/tsconfig.json +49 -0
  1749. package/node_modules/es-errors/type.d.ts +3 -0
  1750. package/node_modules/es-errors/type.js +4 -0
  1751. package/node_modules/es-errors/uri.d.ts +3 -0
  1752. package/node_modules/es-errors/uri.js +4 -0
  1753. package/node_modules/es-object-atoms/.eslintrc +16 -0
  1754. package/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
  1755. package/node_modules/es-object-atoms/CHANGELOG.md +44 -0
  1756. package/node_modules/es-object-atoms/LICENSE +21 -0
  1757. package/node_modules/es-object-atoms/README.md +63 -0
  1758. package/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
  1759. package/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
  1760. package/node_modules/es-object-atoms/ToObject.d.ts +7 -0
  1761. package/node_modules/es-object-atoms/ToObject.js +10 -0
  1762. package/node_modules/es-object-atoms/index.d.ts +3 -0
  1763. package/node_modules/es-object-atoms/index.js +4 -0
  1764. package/node_modules/es-object-atoms/isObject.d.ts +3 -0
  1765. package/node_modules/es-object-atoms/isObject.js +6 -0
  1766. package/node_modules/es-object-atoms/package.json +79 -0
  1767. package/node_modules/es-object-atoms/test/index.js +38 -0
  1768. package/node_modules/es-object-atoms/tsconfig.json +7 -0
  1769. package/node_modules/escape-html/LICENSE +24 -0
  1770. package/node_modules/escape-html/Readme.md +43 -0
  1771. package/node_modules/escape-html/index.js +78 -0
  1772. package/node_modules/escape-html/package.json +24 -0
  1773. package/node_modules/etag/HISTORY.md +83 -0
  1774. package/node_modules/etag/LICENSE +22 -0
  1775. package/node_modules/etag/README.md +159 -0
  1776. package/node_modules/etag/index.js +131 -0
  1777. package/node_modules/etag/package.json +47 -0
  1778. package/node_modules/express/LICENSE +24 -0
  1779. package/node_modules/express/Readme.md +282 -0
  1780. package/node_modules/express/index.js +11 -0
  1781. package/node_modules/express/lib/application.js +631 -0
  1782. package/node_modules/express/lib/express.js +81 -0
  1783. package/node_modules/express/lib/request.js +527 -0
  1784. package/node_modules/express/lib/response.js +1050 -0
  1785. package/node_modules/express/lib/utils.js +271 -0
  1786. package/node_modules/express/lib/view.js +205 -0
  1787. package/node_modules/express/package.json +99 -0
  1788. package/node_modules/finalhandler/HISTORY.md +239 -0
  1789. package/node_modules/finalhandler/LICENSE +22 -0
  1790. package/node_modules/finalhandler/README.md +150 -0
  1791. package/node_modules/finalhandler/index.js +293 -0
  1792. package/node_modules/finalhandler/package.json +47 -0
  1793. package/node_modules/forwarded/HISTORY.md +21 -0
  1794. package/node_modules/forwarded/LICENSE +22 -0
  1795. package/node_modules/forwarded/README.md +57 -0
  1796. package/node_modules/forwarded/index.js +90 -0
  1797. package/node_modules/forwarded/package.json +45 -0
  1798. package/node_modules/fresh/HISTORY.md +80 -0
  1799. package/node_modules/fresh/LICENSE +23 -0
  1800. package/node_modules/fresh/README.md +117 -0
  1801. package/node_modules/fresh/index.js +136 -0
  1802. package/node_modules/fresh/package.json +46 -0
  1803. package/node_modules/function-bind/.eslintrc +21 -0
  1804. package/node_modules/function-bind/.github/FUNDING.yml +12 -0
  1805. package/node_modules/function-bind/.github/SECURITY.md +3 -0
  1806. package/node_modules/function-bind/.nycrc +13 -0
  1807. package/node_modules/function-bind/CHANGELOG.md +136 -0
  1808. package/node_modules/function-bind/LICENSE +20 -0
  1809. package/node_modules/function-bind/README.md +46 -0
  1810. package/node_modules/function-bind/implementation.js +84 -0
  1811. package/node_modules/function-bind/index.js +5 -0
  1812. package/node_modules/function-bind/package.json +87 -0
  1813. package/node_modules/function-bind/test/.eslintrc +9 -0
  1814. package/node_modules/function-bind/test/index.js +252 -0
  1815. package/node_modules/get-intrinsic/.eslintrc +42 -0
  1816. package/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
  1817. package/node_modules/get-intrinsic/.nycrc +9 -0
  1818. package/node_modules/get-intrinsic/CHANGELOG.md +186 -0
  1819. package/node_modules/get-intrinsic/LICENSE +21 -0
  1820. package/node_modules/get-intrinsic/README.md +71 -0
  1821. package/node_modules/get-intrinsic/index.js +378 -0
  1822. package/node_modules/get-intrinsic/package.json +97 -0
  1823. package/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
  1824. package/node_modules/get-proto/.eslintrc +10 -0
  1825. package/node_modules/get-proto/.github/FUNDING.yml +12 -0
  1826. package/node_modules/get-proto/.nycrc +9 -0
  1827. package/node_modules/get-proto/CHANGELOG.md +21 -0
  1828. package/node_modules/get-proto/LICENSE +21 -0
  1829. package/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
  1830. package/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
  1831. package/node_modules/get-proto/README.md +50 -0
  1832. package/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
  1833. package/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
  1834. package/node_modules/get-proto/index.d.ts +5 -0
  1835. package/node_modules/get-proto/index.js +27 -0
  1836. package/node_modules/get-proto/package.json +81 -0
  1837. package/node_modules/get-proto/test/index.js +68 -0
  1838. package/node_modules/get-proto/tsconfig.json +9 -0
  1839. package/node_modules/gopd/.eslintrc +16 -0
  1840. package/node_modules/gopd/.github/FUNDING.yml +12 -0
  1841. package/node_modules/gopd/CHANGELOG.md +45 -0
  1842. package/node_modules/gopd/LICENSE +21 -0
  1843. package/node_modules/gopd/README.md +40 -0
  1844. package/node_modules/gopd/gOPD.d.ts +1 -0
  1845. package/node_modules/gopd/gOPD.js +4 -0
  1846. package/node_modules/gopd/index.d.ts +5 -0
  1847. package/node_modules/gopd/index.js +15 -0
  1848. package/node_modules/gopd/package.json +77 -0
  1849. package/node_modules/gopd/test/index.js +36 -0
  1850. package/node_modules/gopd/tsconfig.json +9 -0
  1851. package/node_modules/has-symbols/.eslintrc +11 -0
  1852. package/node_modules/has-symbols/.github/FUNDING.yml +12 -0
  1853. package/node_modules/has-symbols/.nycrc +9 -0
  1854. package/node_modules/has-symbols/CHANGELOG.md +91 -0
  1855. package/node_modules/has-symbols/LICENSE +21 -0
  1856. package/node_modules/has-symbols/README.md +46 -0
  1857. package/node_modules/has-symbols/index.d.ts +3 -0
  1858. package/node_modules/has-symbols/index.js +14 -0
  1859. package/node_modules/has-symbols/package.json +111 -0
  1860. package/node_modules/has-symbols/shams.d.ts +3 -0
  1861. package/node_modules/has-symbols/shams.js +45 -0
  1862. package/node_modules/has-symbols/test/index.js +22 -0
  1863. package/node_modules/has-symbols/test/shams/core-js.js +29 -0
  1864. package/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
  1865. package/node_modules/has-symbols/test/tests.js +58 -0
  1866. package/node_modules/has-symbols/tsconfig.json +10 -0
  1867. package/node_modules/hasown/.github/FUNDING.yml +12 -0
  1868. package/node_modules/hasown/.nycrc +13 -0
  1869. package/node_modules/hasown/CHANGELOG.md +58 -0
  1870. package/node_modules/hasown/LICENSE +21 -0
  1871. package/node_modules/hasown/README.md +40 -0
  1872. package/node_modules/hasown/eslint.config.mjs +6 -0
  1873. package/node_modules/hasown/index.d.ts +3 -0
  1874. package/node_modules/hasown/index.js +8 -0
  1875. package/node_modules/hasown/package.json +91 -0
  1876. package/node_modules/hasown/tsconfig.json +6 -0
  1877. package/node_modules/http-errors/HISTORY.md +186 -0
  1878. package/node_modules/http-errors/LICENSE +23 -0
  1879. package/node_modules/http-errors/README.md +169 -0
  1880. package/node_modules/http-errors/index.js +290 -0
  1881. package/node_modules/http-errors/package.json +54 -0
  1882. package/node_modules/iconv-lite/LICENSE +21 -0
  1883. package/node_modules/iconv-lite/README.md +138 -0
  1884. package/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
  1885. package/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
  1886. package/node_modules/iconv-lite/encodings/index.js +23 -0
  1887. package/node_modules/iconv-lite/encodings/internal.js +218 -0
  1888. package/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
  1889. package/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
  1890. package/node_modules/iconv-lite/encodings/sbcs-data.js +180 -0
  1891. package/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
  1892. package/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
  1893. package/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
  1894. package/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
  1895. package/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
  1896. package/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
  1897. package/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
  1898. package/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
  1899. package/node_modules/iconv-lite/encodings/utf16.js +187 -0
  1900. package/node_modules/iconv-lite/encodings/utf32.js +314 -0
  1901. package/node_modules/iconv-lite/encodings/utf7.js +283 -0
  1902. package/node_modules/iconv-lite/lib/bom-handling.js +48 -0
  1903. package/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
  1904. package/node_modules/iconv-lite/lib/index.d.ts +129 -0
  1905. package/node_modules/iconv-lite/lib/index.js +182 -0
  1906. package/node_modules/iconv-lite/lib/streams.js +105 -0
  1907. package/node_modules/iconv-lite/package.json +70 -0
  1908. package/node_modules/iconv-lite/types/encodings.d.ts +425 -0
  1909. package/node_modules/inherits/LICENSE +16 -0
  1910. package/node_modules/inherits/README.md +42 -0
  1911. package/node_modules/inherits/inherits.js +9 -0
  1912. package/node_modules/inherits/inherits_browser.js +27 -0
  1913. package/node_modules/inherits/package.json +29 -0
  1914. package/node_modules/ipaddr.js/LICENSE +19 -0
  1915. package/node_modules/ipaddr.js/README.md +233 -0
  1916. package/node_modules/ipaddr.js/ipaddr.min.js +1 -0
  1917. package/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
  1918. package/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
  1919. package/node_modules/ipaddr.js/package.json +35 -0
  1920. package/node_modules/is-promise/LICENSE +19 -0
  1921. package/node_modules/is-promise/index.d.ts +2 -0
  1922. package/node_modules/is-promise/index.js +6 -0
  1923. package/node_modules/is-promise/index.mjs +3 -0
  1924. package/node_modules/is-promise/package.json +30 -0
  1925. package/node_modules/is-promise/readme.md +33 -0
  1926. package/node_modules/jose/LICENSE.md +21 -0
  1927. package/node_modules/jose/README.md +150 -0
  1928. package/node_modules/jose/dist/types/index.d.ts +55 -0
  1929. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +24 -0
  1930. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +40 -0
  1931. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +24 -0
  1932. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +46 -0
  1933. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +28 -0
  1934. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +51 -0
  1935. package/node_modules/jose/dist/types/jwk/embedded.d.ts +10 -0
  1936. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +15 -0
  1937. package/node_modules/jose/dist/types/jwks/local.d.ts +17 -0
  1938. package/node_modules/jose/dist/types/jwks/remote.d.ts +94 -0
  1939. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +20 -0
  1940. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +25 -0
  1941. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +22 -0
  1942. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +25 -0
  1943. package/node_modules/jose/dist/types/jws/general/sign.d.ts +38 -0
  1944. package/node_modules/jose/dist/types/jws/general/verify.d.ts +29 -0
  1945. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +34 -0
  1946. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +57 -0
  1947. package/node_modules/jose/dist/types/jwt/sign.d.ts +21 -0
  1948. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +19 -0
  1949. package/node_modules/jose/dist/types/jwt/verify.d.ts +35 -0
  1950. package/node_modules/jose/dist/types/key/export.d.ts +19 -0
  1951. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +33 -0
  1952. package/node_modules/jose/dist/types/key/generate_secret.d.ts +30 -0
  1953. package/node_modules/jose/dist/types/key/import.d.ts +67 -0
  1954. package/node_modules/jose/dist/types/types.d.ts +736 -0
  1955. package/node_modules/jose/dist/types/util/base64url.d.ts +16 -0
  1956. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +8 -0
  1957. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +10 -0
  1958. package/node_modules/jose/dist/types/util/errors.d.ts +182 -0
  1959. package/node_modules/jose/dist/webapi/index.js +70 -0
  1960. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +7 -0
  1961. package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +26 -0
  1962. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +15 -0
  1963. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +35 -0
  1964. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +40 -0
  1965. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +105 -0
  1966. package/node_modules/jose/dist/webapi/jwk/embedded.js +30 -0
  1967. package/node_modules/jose/dist/webapi/jwk/thumbprint.js +55 -0
  1968. package/node_modules/jose/dist/webapi/jwks/local.js +59 -0
  1969. package/node_modules/jose/dist/webapi/jwks/remote.js +101 -0
  1970. package/node_modules/jose/dist/webapi/jws/compact/sign.js +20 -0
  1971. package/node_modules/jose/dist/webapi/jws/compact/verify.js +8 -0
  1972. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +23 -0
  1973. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +12 -0
  1974. package/node_modules/jose/dist/webapi/jws/general/sign.js +58 -0
  1975. package/node_modules/jose/dist/webapi/jws/general/verify.js +48 -0
  1976. package/node_modules/jose/dist/webapi/jwt/decrypt.js +13 -0
  1977. package/node_modules/jose/dist/webapi/jwt/encrypt.js +45 -0
  1978. package/node_modules/jose/dist/webapi/jwt/sign.js +19 -0
  1979. package/node_modules/jose/dist/webapi/jwt/unsecured.js +34 -0
  1980. package/node_modules/jose/dist/webapi/jwt/verify.js +13 -0
  1981. package/node_modules/jose/dist/webapi/key/export.js +35 -0
  1982. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +35 -0
  1983. package/node_modules/jose/dist/webapi/key/generate_secret.js +36 -0
  1984. package/node_modules/jose/dist/webapi/key/import.js +53 -0
  1985. package/node_modules/jose/dist/webapi/lib/asn1.js +138 -0
  1986. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +75 -0
  1987. package/node_modules/jose/dist/webapi/lib/content_encryption.js +90 -0
  1988. package/node_modules/jose/dist/webapi/lib/deflate.js +40 -0
  1989. package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +116 -0
  1990. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +187 -0
  1991. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +75 -0
  1992. package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +74 -0
  1993. package/node_modules/jose/dist/webapi/lib/jws_sign.js +46 -0
  1994. package/node_modules/jose/dist/webapi/lib/jws_verify.js +86 -0
  1995. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +146 -0
  1996. package/node_modules/jose/dist/webapi/lib/key.js +155 -0
  1997. package/node_modules/jose/dist/webapi/lib/key_algorithm.js +15 -0
  1998. package/node_modules/jose/dist/webapi/lib/key_descriptor.js +9 -0
  1999. package/node_modules/jose/dist/webapi/lib/key_management.js +196 -0
  2000. package/node_modules/jose/dist/webapi/lib/validate.js +122 -0
  2001. package/node_modules/jose/dist/webapi/util/base64url.js +16 -0
  2002. package/node_modules/jose/dist/webapi/util/decode_jwt.js +33 -0
  2003. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +19 -0
  2004. package/node_modules/jose/dist/webapi/util/errors.js +109 -0
  2005. package/node_modules/jose/package.json +134 -0
  2006. package/node_modules/math-intrinsics/.eslintrc +16 -0
  2007. package/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
  2008. package/node_modules/math-intrinsics/CHANGELOG.md +24 -0
  2009. package/node_modules/math-intrinsics/LICENSE +21 -0
  2010. package/node_modules/math-intrinsics/README.md +50 -0
  2011. package/node_modules/math-intrinsics/abs.d.ts +1 -0
  2012. package/node_modules/math-intrinsics/abs.js +4 -0
  2013. package/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
  2014. package/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
  2015. package/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
  2016. package/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
  2017. package/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
  2018. package/node_modules/math-intrinsics/constants/maxValue.js +5 -0
  2019. package/node_modules/math-intrinsics/floor.d.ts +1 -0
  2020. package/node_modules/math-intrinsics/floor.js +4 -0
  2021. package/node_modules/math-intrinsics/isFinite.d.ts +3 -0
  2022. package/node_modules/math-intrinsics/isFinite.js +12 -0
  2023. package/node_modules/math-intrinsics/isInteger.d.ts +3 -0
  2024. package/node_modules/math-intrinsics/isInteger.js +16 -0
  2025. package/node_modules/math-intrinsics/isNaN.d.ts +1 -0
  2026. package/node_modules/math-intrinsics/isNaN.js +6 -0
  2027. package/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
  2028. package/node_modules/math-intrinsics/isNegativeZero.js +6 -0
  2029. package/node_modules/math-intrinsics/max.d.ts +1 -0
  2030. package/node_modules/math-intrinsics/max.js +4 -0
  2031. package/node_modules/math-intrinsics/min.d.ts +1 -0
  2032. package/node_modules/math-intrinsics/min.js +4 -0
  2033. package/node_modules/math-intrinsics/mod.d.ts +3 -0
  2034. package/node_modules/math-intrinsics/mod.js +9 -0
  2035. package/node_modules/math-intrinsics/package.json +86 -0
  2036. package/node_modules/math-intrinsics/pow.d.ts +1 -0
  2037. package/node_modules/math-intrinsics/pow.js +4 -0
  2038. package/node_modules/math-intrinsics/round.d.ts +1 -0
  2039. package/node_modules/math-intrinsics/round.js +4 -0
  2040. package/node_modules/math-intrinsics/sign.d.ts +3 -0
  2041. package/node_modules/math-intrinsics/sign.js +11 -0
  2042. package/node_modules/math-intrinsics/test/index.js +192 -0
  2043. package/node_modules/math-intrinsics/tsconfig.json +3 -0
  2044. package/node_modules/media-typer/HISTORY.md +50 -0
  2045. package/node_modules/media-typer/LICENSE +22 -0
  2046. package/node_modules/media-typer/README.md +94 -0
  2047. package/node_modules/media-typer/index.js +135 -0
  2048. package/node_modules/media-typer/package.json +37 -0
  2049. package/node_modules/merge-descriptors/index.d.ts +11 -0
  2050. package/node_modules/merge-descriptors/index.js +26 -0
  2051. package/node_modules/merge-descriptors/license +11 -0
  2052. package/node_modules/merge-descriptors/package.json +50 -0
  2053. package/node_modules/merge-descriptors/readme.md +55 -0
  2054. package/node_modules/mime-db/HISTORY.md +541 -0
  2055. package/node_modules/mime-db/LICENSE +23 -0
  2056. package/node_modules/mime-db/README.md +109 -0
  2057. package/node_modules/mime-db/db.json +9342 -0
  2058. package/node_modules/mime-db/index.js +12 -0
  2059. package/node_modules/mime-db/package.json +56 -0
  2060. package/node_modules/mime-types/HISTORY.md +428 -0
  2061. package/node_modules/mime-types/LICENSE +23 -0
  2062. package/node_modules/mime-types/README.md +126 -0
  2063. package/node_modules/mime-types/index.js +211 -0
  2064. package/node_modules/mime-types/mimeScore.js +57 -0
  2065. package/node_modules/mime-types/package.json +49 -0
  2066. package/node_modules/ms/index.js +162 -0
  2067. package/node_modules/ms/license.md +21 -0
  2068. package/node_modules/ms/package.json +38 -0
  2069. package/node_modules/ms/readme.md +59 -0
  2070. package/node_modules/negotiator/LICENSE +24 -0
  2071. package/node_modules/negotiator/README.md +212 -0
  2072. package/node_modules/negotiator/index.js +83 -0
  2073. package/node_modules/negotiator/lib/accept.js +54 -0
  2074. package/node_modules/negotiator/lib/charset.js +145 -0
  2075. package/node_modules/negotiator/lib/encoding.js +184 -0
  2076. package/node_modules/negotiator/lib/language.js +158 -0
  2077. package/node_modules/negotiator/lib/mediaType.js +176 -0
  2078. package/node_modules/negotiator/package.json +49 -0
  2079. package/node_modules/object-inspect/.eslintrc +53 -0
  2080. package/node_modules/object-inspect/.github/FUNDING.yml +12 -0
  2081. package/node_modules/object-inspect/.nycrc +13 -0
  2082. package/node_modules/object-inspect/CHANGELOG.md +424 -0
  2083. package/node_modules/object-inspect/LICENSE +21 -0
  2084. package/node_modules/object-inspect/example/all.js +23 -0
  2085. package/node_modules/object-inspect/example/circular.js +6 -0
  2086. package/node_modules/object-inspect/example/fn.js +5 -0
  2087. package/node_modules/object-inspect/example/inspect.js +10 -0
  2088. package/node_modules/object-inspect/index.js +544 -0
  2089. package/node_modules/object-inspect/package-support.json +20 -0
  2090. package/node_modules/object-inspect/package.json +105 -0
  2091. package/node_modules/object-inspect/readme.markdown +84 -0
  2092. package/node_modules/object-inspect/test/bigint.js +58 -0
  2093. package/node_modules/object-inspect/test/browser/dom.js +15 -0
  2094. package/node_modules/object-inspect/test/circular.js +16 -0
  2095. package/node_modules/object-inspect/test/deep.js +12 -0
  2096. package/node_modules/object-inspect/test/element.js +53 -0
  2097. package/node_modules/object-inspect/test/err.js +48 -0
  2098. package/node_modules/object-inspect/test/fakes.js +29 -0
  2099. package/node_modules/object-inspect/test/fn.js +76 -0
  2100. package/node_modules/object-inspect/test/global.js +17 -0
  2101. package/node_modules/object-inspect/test/has.js +15 -0
  2102. package/node_modules/object-inspect/test/holes.js +15 -0
  2103. package/node_modules/object-inspect/test/indent-option.js +271 -0
  2104. package/node_modules/object-inspect/test/inspect.js +139 -0
  2105. package/node_modules/object-inspect/test/lowbyte.js +12 -0
  2106. package/node_modules/object-inspect/test/number.js +58 -0
  2107. package/node_modules/object-inspect/test/quoteStyle.js +26 -0
  2108. package/node_modules/object-inspect/test/toStringTag.js +40 -0
  2109. package/node_modules/object-inspect/test/undef.js +12 -0
  2110. package/node_modules/object-inspect/test/values.js +261 -0
  2111. package/node_modules/object-inspect/test-core-js.js +26 -0
  2112. package/node_modules/object-inspect/util.inspect.js +1 -0
  2113. package/node_modules/on-finished/HISTORY.md +98 -0
  2114. package/node_modules/on-finished/LICENSE +23 -0
  2115. package/node_modules/on-finished/README.md +162 -0
  2116. package/node_modules/on-finished/index.js +234 -0
  2117. package/node_modules/on-finished/package.json +39 -0
  2118. package/node_modules/once/LICENSE +15 -0
  2119. package/node_modules/once/README.md +79 -0
  2120. package/node_modules/once/once.js +42 -0
  2121. package/node_modules/once/package.json +33 -0
  2122. package/node_modules/parseurl/HISTORY.md +58 -0
  2123. package/node_modules/parseurl/LICENSE +24 -0
  2124. package/node_modules/parseurl/README.md +133 -0
  2125. package/node_modules/parseurl/index.js +158 -0
  2126. package/node_modules/parseurl/package.json +40 -0
  2127. package/node_modules/path-to-regexp/LICENSE +21 -0
  2128. package/node_modules/path-to-regexp/Readme.md +224 -0
  2129. package/node_modules/path-to-regexp/dist/index.d.ts +147 -0
  2130. package/node_modules/path-to-regexp/dist/index.js +431 -0
  2131. package/node_modules/path-to-regexp/dist/index.js.map +1 -0
  2132. package/node_modules/path-to-regexp/package.json +64 -0
  2133. package/node_modules/proxy-addr/HISTORY.md +167 -0
  2134. package/node_modules/proxy-addr/LICENSE +22 -0
  2135. package/node_modules/proxy-addr/README.md +139 -0
  2136. package/node_modules/proxy-addr/index.js +359 -0
  2137. package/node_modules/proxy-addr/package.json +51 -0
  2138. package/node_modules/qs/.editorconfig +46 -0
  2139. package/node_modules/qs/.github/FUNDING.yml +12 -0
  2140. package/node_modules/qs/.github/SECURITY.md +11 -0
  2141. package/node_modules/qs/.github/THREAT_MODEL.md +78 -0
  2142. package/node_modules/qs/.nycrc +13 -0
  2143. package/node_modules/qs/CHANGELOG.md +848 -0
  2144. package/node_modules/qs/LICENSE.md +29 -0
  2145. package/node_modules/qs/README.md +776 -0
  2146. package/node_modules/qs/dist/qs.js +141 -0
  2147. package/node_modules/qs/eslint.config.mjs +57 -0
  2148. package/node_modules/qs/lib/formats.js +23 -0
  2149. package/node_modules/qs/lib/index.js +11 -0
  2150. package/node_modules/qs/lib/parse.js +413 -0
  2151. package/node_modules/qs/lib/stringify.js +378 -0
  2152. package/node_modules/qs/lib/utils.js +388 -0
  2153. package/node_modules/qs/package.json +95 -0
  2154. package/node_modules/qs/test/empty-keys-cases.js +267 -0
  2155. package/node_modules/qs/test/parse.js +2122 -0
  2156. package/node_modules/qs/test/stringify.js +1765 -0
  2157. package/node_modules/qs/test/utils.js +638 -0
  2158. package/node_modules/range-parser/HISTORY.md +56 -0
  2159. package/node_modules/range-parser/LICENSE +23 -0
  2160. package/node_modules/range-parser/README.md +85 -0
  2161. package/node_modules/range-parser/index.js +181 -0
  2162. package/node_modules/range-parser/package.json +48 -0
  2163. package/node_modules/raw-body/LICENSE +22 -0
  2164. package/node_modules/raw-body/README.md +223 -0
  2165. package/node_modules/raw-body/index.d.ts +85 -0
  2166. package/node_modules/raw-body/index.js +336 -0
  2167. package/node_modules/raw-body/package.json +46 -0
  2168. package/node_modules/router/HISTORY.md +228 -0
  2169. package/node_modules/router/LICENSE +23 -0
  2170. package/node_modules/router/README.md +416 -0
  2171. package/node_modules/router/index.js +748 -0
  2172. package/node_modules/router/lib/layer.js +247 -0
  2173. package/node_modules/router/lib/route.js +242 -0
  2174. package/node_modules/router/package.json +44 -0
  2175. package/node_modules/safer-buffer/LICENSE +21 -0
  2176. package/node_modules/safer-buffer/Porting-Buffer.md +268 -0
  2177. package/node_modules/safer-buffer/Readme.md +156 -0
  2178. package/node_modules/safer-buffer/dangerous.js +58 -0
  2179. package/node_modules/safer-buffer/package.json +34 -0
  2180. package/node_modules/safer-buffer/safer.js +77 -0
  2181. package/node_modules/safer-buffer/tests.js +406 -0
  2182. package/node_modules/send/LICENSE +23 -0
  2183. package/node_modules/send/README.md +317 -0
  2184. package/node_modules/send/index.js +997 -0
  2185. package/node_modules/send/package.json +63 -0
  2186. package/node_modules/serve-static/LICENSE +25 -0
  2187. package/node_modules/serve-static/README.md +253 -0
  2188. package/node_modules/serve-static/index.js +208 -0
  2189. package/node_modules/serve-static/package.json +44 -0
  2190. package/node_modules/setprototypeof/LICENSE +13 -0
  2191. package/node_modules/setprototypeof/README.md +31 -0
  2192. package/node_modules/setprototypeof/index.d.ts +2 -0
  2193. package/node_modules/setprototypeof/index.js +17 -0
  2194. package/node_modules/setprototypeof/package.json +38 -0
  2195. package/node_modules/setprototypeof/test/index.js +24 -0
  2196. package/node_modules/side-channel/.editorconfig +9 -0
  2197. package/node_modules/side-channel/.eslintrc +12 -0
  2198. package/node_modules/side-channel/.github/FUNDING.yml +12 -0
  2199. package/node_modules/side-channel/.nycrc +13 -0
  2200. package/node_modules/side-channel/CHANGELOG.md +120 -0
  2201. package/node_modules/side-channel/LICENSE +21 -0
  2202. package/node_modules/side-channel/README.md +61 -0
  2203. package/node_modules/side-channel/index.d.ts +14 -0
  2204. package/node_modules/side-channel/index.js +46 -0
  2205. package/node_modules/side-channel/package.json +85 -0
  2206. package/node_modules/side-channel/test/index.js +120 -0
  2207. package/node_modules/side-channel/tsconfig.json +9 -0
  2208. package/node_modules/side-channel-list/.editorconfig +9 -0
  2209. package/node_modules/side-channel-list/.eslintrc +11 -0
  2210. package/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
  2211. package/node_modules/side-channel-list/.nycrc +13 -0
  2212. package/node_modules/side-channel-list/CHANGELOG.md +36 -0
  2213. package/node_modules/side-channel-list/LICENSE +21 -0
  2214. package/node_modules/side-channel-list/README.md +62 -0
  2215. package/node_modules/side-channel-list/index.d.ts +13 -0
  2216. package/node_modules/side-channel-list/index.js +111 -0
  2217. package/node_modules/side-channel-list/list.d.ts +14 -0
  2218. package/node_modules/side-channel-list/package.json +77 -0
  2219. package/node_modules/side-channel-list/test/index.js +154 -0
  2220. package/node_modules/side-channel-list/tsconfig.json +9 -0
  2221. package/node_modules/side-channel-map/.editorconfig +9 -0
  2222. package/node_modules/side-channel-map/.eslintrc +11 -0
  2223. package/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
  2224. package/node_modules/side-channel-map/.nycrc +13 -0
  2225. package/node_modules/side-channel-map/CHANGELOG.md +22 -0
  2226. package/node_modules/side-channel-map/LICENSE +21 -0
  2227. package/node_modules/side-channel-map/README.md +62 -0
  2228. package/node_modules/side-channel-map/index.d.ts +15 -0
  2229. package/node_modules/side-channel-map/index.js +68 -0
  2230. package/node_modules/side-channel-map/package.json +80 -0
  2231. package/node_modules/side-channel-map/test/index.js +114 -0
  2232. package/node_modules/side-channel-map/tsconfig.json +9 -0
  2233. package/node_modules/side-channel-weakmap/.editorconfig +9 -0
  2234. package/node_modules/side-channel-weakmap/.eslintrc +12 -0
  2235. package/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
  2236. package/node_modules/side-channel-weakmap/.nycrc +13 -0
  2237. package/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
  2238. package/node_modules/side-channel-weakmap/LICENSE +21 -0
  2239. package/node_modules/side-channel-weakmap/README.md +62 -0
  2240. package/node_modules/side-channel-weakmap/index.d.ts +15 -0
  2241. package/node_modules/side-channel-weakmap/index.js +84 -0
  2242. package/node_modules/side-channel-weakmap/package.json +87 -0
  2243. package/node_modules/side-channel-weakmap/test/index.js +114 -0
  2244. package/node_modules/side-channel-weakmap/tsconfig.json +9 -0
  2245. package/node_modules/statuses/HISTORY.md +87 -0
  2246. package/node_modules/statuses/LICENSE +23 -0
  2247. package/node_modules/statuses/README.md +139 -0
  2248. package/node_modules/statuses/codes.json +65 -0
  2249. package/node_modules/statuses/index.js +146 -0
  2250. package/node_modules/statuses/package.json +49 -0
  2251. package/node_modules/toidentifier/HISTORY.md +9 -0
  2252. package/node_modules/toidentifier/LICENSE +21 -0
  2253. package/node_modules/toidentifier/README.md +61 -0
  2254. package/node_modules/toidentifier/index.js +32 -0
  2255. package/node_modules/toidentifier/package.json +38 -0
  2256. package/node_modules/type-is/HISTORY.md +292 -0
  2257. package/node_modules/type-is/LICENSE +23 -0
  2258. package/node_modules/type-is/README.md +198 -0
  2259. package/node_modules/type-is/index.js +240 -0
  2260. package/node_modules/type-is/package.json +51 -0
  2261. package/node_modules/unpipe/HISTORY.md +4 -0
  2262. package/node_modules/unpipe/LICENSE +22 -0
  2263. package/node_modules/unpipe/README.md +43 -0
  2264. package/node_modules/unpipe/index.js +69 -0
  2265. package/node_modules/unpipe/package.json +27 -0
  2266. package/node_modules/vary/HISTORY.md +39 -0
  2267. package/node_modules/vary/LICENSE +22 -0
  2268. package/node_modules/vary/README.md +101 -0
  2269. package/node_modules/vary/index.js +149 -0
  2270. package/node_modules/vary/package.json +43 -0
  2271. package/node_modules/wrappy/LICENSE +15 -0
  2272. package/node_modules/wrappy/README.md +36 -0
  2273. package/node_modules/wrappy/package.json +29 -0
  2274. package/node_modules/wrappy/wrappy.js +33 -0
  2275. package/node_modules/ws/LICENSE +20 -0
  2276. package/node_modules/ws/README.md +548 -0
  2277. package/node_modules/ws/browser.js +8 -0
  2278. package/node_modules/ws/index.js +22 -0
  2279. package/node_modules/ws/lib/buffer-util.js +131 -0
  2280. package/node_modules/ws/lib/constants.js +19 -0
  2281. package/node_modules/ws/lib/event-target.js +292 -0
  2282. package/node_modules/ws/lib/extension.js +203 -0
  2283. package/node_modules/ws/lib/limiter.js +55 -0
  2284. package/node_modules/ws/lib/permessage-deflate.js +530 -0
  2285. package/node_modules/ws/lib/receiver.js +743 -0
  2286. package/node_modules/ws/lib/sender.js +607 -0
  2287. package/node_modules/ws/lib/stream.js +161 -0
  2288. package/node_modules/ws/lib/subprotocol.js +62 -0
  2289. package/node_modules/ws/lib/validation.js +152 -0
  2290. package/node_modules/ws/lib/websocket-server.js +562 -0
  2291. package/node_modules/ws/lib/websocket.js +1421 -0
  2292. package/node_modules/ws/package.json +74 -0
  2293. package/node_modules/ws/wrapper.mjs +21 -0
  2294. package/node_modules/zod/LICENSE +21 -0
  2295. package/node_modules/zod/README.md +218 -0
  2296. package/node_modules/zod/compile.cjs +96 -0
  2297. package/node_modules/zod/compile.d.cts +1 -0
  2298. package/node_modules/zod/compile.d.ts +1 -0
  2299. package/node_modules/zod/compile.js +52 -0
  2300. package/node_modules/zod/index.cjs +52 -0
  2301. package/node_modules/zod/index.d.cts +3 -0
  2302. package/node_modules/zod/index.d.ts +3 -0
  2303. package/node_modules/zod/index.js +7 -0
  2304. package/node_modules/zod/locales/index.cjs +36 -0
  2305. package/node_modules/zod/locales/index.d.cts +1 -0
  2306. package/node_modules/zod/locales/index.d.ts +1 -0
  2307. package/node_modules/zod/locales/index.js +1 -0
  2308. package/node_modules/zod/locales/package.json +7 -0
  2309. package/node_modules/zod/mini/index.cjs +51 -0
  2310. package/node_modules/zod/mini/index.d.cts +3 -0
  2311. package/node_modules/zod/mini/index.d.ts +3 -0
  2312. package/node_modules/zod/mini/index.js +3 -0
  2313. package/node_modules/zod/mini/package.json +7 -0
  2314. package/node_modules/zod/package.json +147 -0
  2315. package/node_modules/zod/src/compile.ts +56 -0
  2316. package/node_modules/zod/src/index.ts +7 -0
  2317. package/node_modules/zod/src/locales/index.ts +1 -0
  2318. package/node_modules/zod/src/mini/index.ts +3 -0
  2319. package/node_modules/zod/src/v3/ZodError.ts +340 -0
  2320. package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
  2321. package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
  2322. package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
  2323. package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
  2324. package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
  2325. package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
  2326. package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
  2327. package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
  2328. package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
  2329. package/node_modules/zod/src/v3/errors.ts +13 -0
  2330. package/node_modules/zod/src/v3/external.ts +6 -0
  2331. package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
  2332. package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
  2333. package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
  2334. package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
  2335. package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
  2336. package/node_modules/zod/src/v3/helpers/util.ts +224 -0
  2337. package/node_modules/zod/src/v3/index.ts +4 -0
  2338. package/node_modules/zod/src/v3/locales/en.ts +124 -0
  2339. package/node_modules/zod/src/v3/standard-schema.ts +113 -0
  2340. package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
  2341. package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
  2342. package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
  2343. package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
  2344. package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
  2345. package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
  2346. package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
  2347. package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
  2348. package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
  2349. package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
  2350. package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
  2351. package/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
  2352. package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
  2353. package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
  2354. package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
  2355. package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
  2356. package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
  2357. package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
  2358. package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
  2359. package/node_modules/zod/src/v3/tests/error.test.ts +586 -0
  2360. package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
  2361. package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
  2362. package/node_modules/zod/src/v3/tests/function.test.ts +261 -0
  2363. package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
  2364. package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
  2365. package/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
  2366. package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
  2367. package/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
  2368. package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
  2369. package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
  2370. package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
  2371. package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
  2372. package/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
  2373. package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
  2374. package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
  2375. package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
  2376. package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
  2377. package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
  2378. package/node_modules/zod/src/v3/tests/object.test.ts +431 -0
  2379. package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
  2380. package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
  2381. package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
  2382. package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
  2383. package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
  2384. package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
  2385. package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
  2386. package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
  2387. package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
  2388. package/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
  2389. package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
  2390. package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
  2391. package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
  2392. package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
  2393. package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
  2394. package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
  2395. package/node_modules/zod/src/v3/tests/string.test.ts +922 -0
  2396. package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
  2397. package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
  2398. package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
  2399. package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
  2400. package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
  2401. package/node_modules/zod/src/v3/types.ts +5138 -0
  2402. package/node_modules/zod/src/v4/classic/checks.ts +33 -0
  2403. package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
  2404. package/node_modules/zod/src/v4/classic/compat.ts +78 -0
  2405. package/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
  2406. package/node_modules/zod/src/v4/classic/errors.ts +97 -0
  2407. package/node_modules/zod/src/v4/classic/external.ts +57 -0
  2408. package/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
  2409. package/node_modules/zod/src/v4/classic/in-out.ts +45 -0
  2410. package/node_modules/zod/src/v4/classic/index.ts +5 -0
  2411. package/node_modules/zod/src/v4/classic/iso.ts +20 -0
  2412. package/node_modules/zod/src/v4/classic/parse.ts +88 -0
  2413. package/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
  2414. package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
  2415. package/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
  2416. package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
  2417. package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
  2418. package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
  2419. package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
  2420. package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
  2421. package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
  2422. package/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
  2423. package/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
  2424. package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
  2425. package/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
  2426. package/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
  2427. package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
  2428. package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
  2429. package/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
  2430. package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
  2431. package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
  2432. package/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
  2433. package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
  2434. package/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
  2435. package/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
  2436. package/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
  2437. package/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
  2438. package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
  2439. package/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
  2440. package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
  2441. package/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
  2442. package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
  2443. package/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
  2444. package/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
  2445. package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
  2446. package/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
  2447. package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
  2448. package/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
  2449. package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
  2450. package/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
  2451. package/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
  2452. package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
  2453. package/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
  2454. package/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
  2455. package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
  2456. package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
  2457. package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
  2458. package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
  2459. package/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
  2460. package/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
  2461. package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
  2462. package/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
  2463. package/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
  2464. package/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
  2465. package/node_modules/zod/src/v4/classic/tests/map.test.ts +342 -0
  2466. package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
  2467. package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
  2468. package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
  2469. package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
  2470. package/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
  2471. package/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
  2472. package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
  2473. package/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
  2474. package/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
  2475. package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
  2476. package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
  2477. package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
  2478. package/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
  2479. package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
  2480. package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
  2481. package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
  2482. package/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
  2483. package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
  2484. package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
  2485. package/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
  2486. package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
  2487. package/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
  2488. package/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
  2489. package/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
  2490. package/node_modules/zod/src/v4/classic/tests/set.test.ts +190 -0
  2491. package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
  2492. package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
  2493. package/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
  2494. package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
  2495. package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
  2496. package/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
  2497. package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
  2498. package/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
  2499. package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
  2500. package/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
  2501. package/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
  2502. package/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
  2503. package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
  2504. package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
  2505. package/node_modules/zod/src/v4/core/api.ts +1875 -0
  2506. package/node_modules/zod/src/v4/core/checks.ts +1266 -0
  2507. package/node_modules/zod/src/v4/core/compile.ts +2313 -0
  2508. package/node_modules/zod/src/v4/core/core.ts +230 -0
  2509. package/node_modules/zod/src/v4/core/doc.ts +52 -0
  2510. package/node_modules/zod/src/v4/core/errors.ts +543 -0
  2511. package/node_modules/zod/src/v4/core/index.ts +19 -0
  2512. package/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
  2513. package/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
  2514. package/node_modules/zod/src/v4/core/json-schema.ts +148 -0
  2515. package/node_modules/zod/src/v4/core/memoizer.ts +331 -0
  2516. package/node_modules/zod/src/v4/core/parse.ts +309 -0
  2517. package/node_modules/zod/src/v4/core/regexes.ts +217 -0
  2518. package/node_modules/zod/src/v4/core/registries.ts +105 -0
  2519. package/node_modules/zod/src/v4/core/schemas.ts +5192 -0
  2520. package/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
  2521. package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
  2522. package/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
  2523. package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
  2524. package/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
  2525. package/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
  2526. package/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
  2527. package/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
  2528. package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
  2529. package/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
  2530. package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
  2531. package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
  2532. package/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
  2533. package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
  2534. package/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
  2535. package/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
  2536. package/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
  2537. package/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
  2538. package/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
  2539. package/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
  2540. package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
  2541. package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
  2542. package/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
  2543. package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
  2544. package/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
  2545. package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
  2546. package/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
  2547. package/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
  2548. package/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
  2549. package/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
  2550. package/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
  2551. package/node_modules/zod/src/v4/core/util.ts +1280 -0
  2552. package/node_modules/zod/src/v4/core/versions.ts +5 -0
  2553. package/node_modules/zod/src/v4/core/visit.ts +193 -0
  2554. package/node_modules/zod/src/v4/core/zsf.ts +323 -0
  2555. package/node_modules/zod/src/v4/index.ts +4 -0
  2556. package/node_modules/zod/src/v4/locales/ar.ts +120 -0
  2557. package/node_modules/zod/src/v4/locales/az.ts +116 -0
  2558. package/node_modules/zod/src/v4/locales/be.ts +188 -0
  2559. package/node_modules/zod/src/v4/locales/bg.ts +133 -0
  2560. package/node_modules/zod/src/v4/locales/bn.ts +123 -0
  2561. package/node_modules/zod/src/v4/locales/ca.ts +121 -0
  2562. package/node_modules/zod/src/v4/locales/ckb.ts +140 -0
  2563. package/node_modules/zod/src/v4/locales/cs.ts +123 -0
  2564. package/node_modules/zod/src/v4/locales/da.ts +128 -0
  2565. package/node_modules/zod/src/v4/locales/de.ts +121 -0
  2566. package/node_modules/zod/src/v4/locales/el.ts +124 -0
  2567. package/node_modules/zod/src/v4/locales/en.ts +136 -0
  2568. package/node_modules/zod/src/v4/locales/eo.ts +123 -0
  2569. package/node_modules/zod/src/v4/locales/es.ts +145 -0
  2570. package/node_modules/zod/src/v4/locales/fa.ts +131 -0
  2571. package/node_modules/zod/src/v4/locales/fi.ts +126 -0
  2572. package/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
  2573. package/node_modules/zod/src/v4/locales/fr.ts +139 -0
  2574. package/node_modules/zod/src/v4/locales/gu.ts +123 -0
  2575. package/node_modules/zod/src/v4/locales/he.ts +253 -0
  2576. package/node_modules/zod/src/v4/locales/hi.ts +126 -0
  2577. package/node_modules/zod/src/v4/locales/hr.ts +135 -0
  2578. package/node_modules/zod/src/v4/locales/hu.ts +122 -0
  2579. package/node_modules/zod/src/v4/locales/hy.ts +175 -0
  2580. package/node_modules/zod/src/v4/locales/id.ts +120 -0
  2581. package/node_modules/zod/src/v4/locales/index.ts +63 -0
  2582. package/node_modules/zod/src/v4/locales/is.ts +124 -0
  2583. package/node_modules/zod/src/v4/locales/it.ts +121 -0
  2584. package/node_modules/zod/src/v4/locales/ja.ts +119 -0
  2585. package/node_modules/zod/src/v4/locales/ka.ts +128 -0
  2586. package/node_modules/zod/src/v4/locales/kh.ts +7 -0
  2587. package/node_modules/zod/src/v4/locales/km.ts +124 -0
  2588. package/node_modules/zod/src/v4/locales/kn.ts +126 -0
  2589. package/node_modules/zod/src/v4/locales/ko.ts +126 -0
  2590. package/node_modules/zod/src/v4/locales/lt.ts +243 -0
  2591. package/node_modules/zod/src/v4/locales/mk.ts +123 -0
  2592. package/node_modules/zod/src/v4/locales/ms.ts +120 -0
  2593. package/node_modules/zod/src/v4/locales/ne.ts +128 -0
  2594. package/node_modules/zod/src/v4/locales/nl.ts +126 -0
  2595. package/node_modules/zod/src/v4/locales/nn.ts +121 -0
  2596. package/node_modules/zod/src/v4/locales/no.ts +121 -0
  2597. package/node_modules/zod/src/v4/locales/ota.ts +122 -0
  2598. package/node_modules/zod/src/v4/locales/pl.ts +123 -0
  2599. package/node_modules/zod/src/v4/locales/ps.ts +131 -0
  2600. package/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
  2601. package/node_modules/zod/src/v4/locales/pt.ts +159 -0
  2602. package/node_modules/zod/src/v4/locales/ro.ts +132 -0
  2603. package/node_modules/zod/src/v4/locales/ru.ts +188 -0
  2604. package/node_modules/zod/src/v4/locales/sk.ts +123 -0
  2605. package/node_modules/zod/src/v4/locales/sl.ts +123 -0
  2606. package/node_modules/zod/src/v4/locales/sv.ts +124 -0
  2607. package/node_modules/zod/src/v4/locales/ta.ts +123 -0
  2608. package/node_modules/zod/src/v4/locales/tg.ts +135 -0
  2609. package/node_modules/zod/src/v4/locales/th.ts +124 -0
  2610. package/node_modules/zod/src/v4/locales/tk.ts +113 -0
  2611. package/node_modules/zod/src/v4/locales/tr.ts +116 -0
  2612. package/node_modules/zod/src/v4/locales/ua.ts +7 -0
  2613. package/node_modules/zod/src/v4/locales/uk.ts +122 -0
  2614. package/node_modules/zod/src/v4/locales/ur.ts +124 -0
  2615. package/node_modules/zod/src/v4/locales/uz.ts +120 -0
  2616. package/node_modules/zod/src/v4/locales/vi.ts +122 -0
  2617. package/node_modules/zod/src/v4/locales/yo.ts +129 -0
  2618. package/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
  2619. package/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
  2620. package/node_modules/zod/src/v4/mini/checks.ts +33 -0
  2621. package/node_modules/zod/src/v4/mini/coerce.ts +27 -0
  2622. package/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
  2623. package/node_modules/zod/src/v4/mini/external.ts +52 -0
  2624. package/node_modules/zod/src/v4/mini/in-out.ts +45 -0
  2625. package/node_modules/zod/src/v4/mini/index.ts +3 -0
  2626. package/node_modules/zod/src/v4/mini/iso.ts +66 -0
  2627. package/node_modules/zod/src/v4/mini/parse.ts +16 -0
  2628. package/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
  2629. package/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
  2630. package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
  2631. package/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
  2632. package/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
  2633. package/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
  2634. package/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
  2635. package/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
  2636. package/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
  2637. package/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
  2638. package/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
  2639. package/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
  2640. package/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
  2641. package/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
  2642. package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
  2643. package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
  2644. package/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
  2645. package/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
  2646. package/node_modules/zod/src/v4-mini/index.ts +3 -0
  2647. package/node_modules/zod/v3/ZodError.cjs +167 -0
  2648. package/node_modules/zod/v3/ZodError.d.cts +164 -0
  2649. package/node_modules/zod/v3/ZodError.d.ts +164 -0
  2650. package/node_modules/zod/v3/ZodError.js +143 -0
  2651. package/node_modules/zod/v3/errors.cjs +36 -0
  2652. package/node_modules/zod/v3/errors.d.cts +5 -0
  2653. package/node_modules/zod/v3/errors.d.ts +5 -0
  2654. package/node_modules/zod/v3/errors.js +9 -0
  2655. package/node_modules/zod/v3/external.cjs +41 -0
  2656. package/node_modules/zod/v3/external.d.cts +6 -0
  2657. package/node_modules/zod/v3/external.d.ts +6 -0
  2658. package/node_modules/zod/v3/external.js +6 -0
  2659. package/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
  2660. package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
  2661. package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
  2662. package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
  2663. package/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
  2664. package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
  2665. package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
  2666. package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
  2667. package/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
  2668. package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
  2669. package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
  2670. package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
  2671. package/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
  2672. package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
  2673. package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
  2674. package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
  2675. package/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
  2676. package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
  2677. package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
  2678. package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
  2679. package/node_modules/zod/v3/helpers/util.cjs +156 -0
  2680. package/node_modules/zod/v3/helpers/util.d.cts +85 -0
  2681. package/node_modules/zod/v3/helpers/util.d.ts +85 -0
  2682. package/node_modules/zod/v3/helpers/util.js +133 -0
  2683. package/node_modules/zod/v3/index.cjs +52 -0
  2684. package/node_modules/zod/v3/index.d.cts +4 -0
  2685. package/node_modules/zod/v3/index.d.ts +4 -0
  2686. package/node_modules/zod/v3/index.js +4 -0
  2687. package/node_modules/zod/v3/locales/en.cjs +112 -0
  2688. package/node_modules/zod/v3/locales/en.d.cts +3 -0
  2689. package/node_modules/zod/v3/locales/en.d.ts +3 -0
  2690. package/node_modules/zod/v3/locales/en.js +109 -0
  2691. package/node_modules/zod/v3/package.json +7 -0
  2692. package/node_modules/zod/v3/standard-schema.cjs +21 -0
  2693. package/node_modules/zod/v3/standard-schema.d.cts +102 -0
  2694. package/node_modules/zod/v3/standard-schema.d.ts +102 -0
  2695. package/node_modules/zod/v3/standard-schema.js +1 -0
  2696. package/node_modules/zod/v3/types.cjs +3798 -0
  2697. package/node_modules/zod/v3/types.d.cts +1034 -0
  2698. package/node_modules/zod/v3/types.d.ts +1034 -0
  2699. package/node_modules/zod/v3/types.js +3697 -0
  2700. package/node_modules/zod/v4/classic/checks.cjs +53 -0
  2701. package/node_modules/zod/v4/classic/checks.d.cts +1 -0
  2702. package/node_modules/zod/v4/classic/checks.d.ts +1 -0
  2703. package/node_modules/zod/v4/classic/checks.js +1 -0
  2704. package/node_modules/zod/v4/classic/coerce.cjs +66 -0
  2705. package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
  2706. package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
  2707. package/node_modules/zod/v4/classic/coerce.js +17 -0
  2708. package/node_modules/zod/v4/classic/compat.cjs +80 -0
  2709. package/node_modules/zod/v4/classic/compat.d.cts +48 -0
  2710. package/node_modules/zod/v4/classic/compat.d.ts +48 -0
  2711. package/node_modules/zod/v4/classic/compat.js +31 -0
  2712. package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
  2713. package/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
  2714. package/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
  2715. package/node_modules/zod/v4/classic/deep-partial.js +13 -0
  2716. package/node_modules/zod/v4/classic/errors.cjs +102 -0
  2717. package/node_modules/zod/v4/classic/errors.d.cts +29 -0
  2718. package/node_modules/zod/v4/classic/errors.d.ts +29 -0
  2719. package/node_modules/zod/v4/classic/errors.js +57 -0
  2720. package/node_modules/zod/v4/classic/external.cjs +97 -0
  2721. package/node_modules/zod/v4/classic/external.d.cts +19 -0
  2722. package/node_modules/zod/v4/classic/external.d.ts +19 -0
  2723. package/node_modules/zod/v4/classic/external.js +17 -0
  2724. package/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
  2725. package/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
  2726. package/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
  2727. package/node_modules/zod/v4/classic/from-json-schema.js +881 -0
  2728. package/node_modules/zod/v4/classic/in-out.cjs +82 -0
  2729. package/node_modules/zod/v4/classic/in-out.d.cts +8 -0
  2730. package/node_modules/zod/v4/classic/in-out.d.ts +8 -0
  2731. package/node_modules/zod/v4/classic/in-out.js +36 -0
  2732. package/node_modules/zod/v4/classic/index.cjs +52 -0
  2733. package/node_modules/zod/v4/classic/index.d.cts +3 -0
  2734. package/node_modules/zod/v4/classic/index.d.ts +3 -0
  2735. package/node_modules/zod/v4/classic/index.js +4 -0
  2736. package/node_modules/zod/v4/classic/iso.cjs +68 -0
  2737. package/node_modules/zod/v4/classic/iso.d.cts +7 -0
  2738. package/node_modules/zod/v4/classic/iso.d.ts +7 -0
  2739. package/node_modules/zod/v4/classic/iso.js +15 -0
  2740. package/node_modules/zod/v4/classic/package.json +7 -0
  2741. package/node_modules/zod/v4/classic/parse.cjs +63 -0
  2742. package/node_modules/zod/v4/classic/parse.d.cts +44 -0
  2743. package/node_modules/zod/v4/classic/parse.d.ts +44 -0
  2744. package/node_modules/zod/v4/classic/parse.js +16 -0
  2745. package/node_modules/zod/v4/classic/schemas.cjs +1676 -0
  2746. package/node_modules/zod/v4/classic/schemas.d.cts +816 -0
  2747. package/node_modules/zod/v4/classic/schemas.d.ts +816 -0
  2748. package/node_modules/zod/v4/classic/schemas.js +1535 -0
  2749. package/node_modules/zod/v4/core/api.cjs +1269 -0
  2750. package/node_modules/zod/v4/core/api.d.cts +335 -0
  2751. package/node_modules/zod/v4/core/api.d.ts +335 -0
  2752. package/node_modules/zod/v4/core/api.js +1107 -0
  2753. package/node_modules/zod/v4/core/checks.cjs +561 -0
  2754. package/node_modules/zod/v4/core/checks.d.cts +294 -0
  2755. package/node_modules/zod/v4/core/checks.d.ts +294 -0
  2756. package/node_modules/zod/v4/core/checks.js +516 -0
  2757. package/node_modules/zod/v4/core/compile.cjs +1908 -0
  2758. package/node_modules/zod/v4/core/compile.d.cts +65 -0
  2759. package/node_modules/zod/v4/core/compile.d.ts +65 -0
  2760. package/node_modules/zod/v4/core/compile.js +1858 -0
  2761. package/node_modules/zod/v4/core/core.cjs +167 -0
  2762. package/node_modules/zod/v4/core/core.d.cts +82 -0
  2763. package/node_modules/zod/v4/core/core.d.ts +82 -0
  2764. package/node_modules/zod/v4/core/core.js +141 -0
  2765. package/node_modules/zod/v4/core/doc.cjs +61 -0
  2766. package/node_modules/zod/v4/core/doc.d.cts +16 -0
  2767. package/node_modules/zod/v4/core/doc.d.ts +16 -0
  2768. package/node_modules/zod/v4/core/doc.js +38 -0
  2769. package/node_modules/zod/v4/core/errors.cjs +317 -0
  2770. package/node_modules/zod/v4/core/errors.d.cts +225 -0
  2771. package/node_modules/zod/v4/core/errors.d.ts +225 -0
  2772. package/node_modules/zod/v4/core/errors.js +267 -0
  2773. package/node_modules/zod/v4/core/index.cjs +70 -0
  2774. package/node_modules/zod/v4/core/index.d.cts +19 -0
  2775. package/node_modules/zod/v4/core/index.d.ts +19 -0
  2776. package/node_modules/zod/v4/core/index.js +19 -0
  2777. package/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
  2778. package/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
  2779. package/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
  2780. package/node_modules/zod/v4/core/json-schema-generator.js +99 -0
  2781. package/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
  2782. package/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
  2783. package/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
  2784. package/node_modules/zod/v4/core/json-schema-processors.js +843 -0
  2785. package/node_modules/zod/v4/core/json-schema.cjs +21 -0
  2786. package/node_modules/zod/v4/core/json-schema.d.cts +89 -0
  2787. package/node_modules/zod/v4/core/json-schema.d.ts +89 -0
  2788. package/node_modules/zod/v4/core/json-schema.js +1 -0
  2789. package/node_modules/zod/v4/core/memoizer.cjs +360 -0
  2790. package/node_modules/zod/v4/core/memoizer.d.cts +15 -0
  2791. package/node_modules/zod/v4/core/memoizer.d.ts +15 -0
  2792. package/node_modules/zod/v4/core/memoizer.js +311 -0
  2793. package/node_modules/zod/v4/core/package.json +7 -0
  2794. package/node_modules/zod/v4/core/parse.cjs +233 -0
  2795. package/node_modules/zod/v4/core/parse.d.cts +52 -0
  2796. package/node_modules/zod/v4/core/parse.d.ts +52 -0
  2797. package/node_modules/zod/v4/core/parse.js +175 -0
  2798. package/node_modules/zod/v4/core/regexes.cjs +209 -0
  2799. package/node_modules/zod/v4/core/regexes.d.cts +90 -0
  2800. package/node_modules/zod/v4/core/regexes.d.ts +90 -0
  2801. package/node_modules/zod/v4/core/regexes.js +156 -0
  2802. package/node_modules/zod/v4/core/registries.cjs +75 -0
  2803. package/node_modules/zod/v4/core/registries.d.cts +35 -0
  2804. package/node_modules/zod/v4/core/registries.d.ts +35 -0
  2805. package/node_modules/zod/v4/core/registries.js +51 -0
  2806. package/node_modules/zod/v4/core/schemas.cjs +2669 -0
  2807. package/node_modules/zod/v4/core/schemas.d.cts +1273 -0
  2808. package/node_modules/zod/v4/core/schemas.d.ts +1273 -0
  2809. package/node_modules/zod/v4/core/schemas.js +2606 -0
  2810. package/node_modules/zod/v4/core/standard-schema.cjs +21 -0
  2811. package/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
  2812. package/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
  2813. package/node_modules/zod/v4/core/standard-schema.js +1 -0
  2814. package/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
  2815. package/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
  2816. package/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
  2817. package/node_modules/zod/v4/core/to-json-schema.js +651 -0
  2818. package/node_modules/zod/v4/core/util.cjs +949 -0
  2819. package/node_modules/zod/v4/core/util.d.cts +278 -0
  2820. package/node_modules/zod/v4/core/util.d.ts +278 -0
  2821. package/node_modules/zod/v4/core/util.js +859 -0
  2822. package/node_modules/zod/v4/core/versions.cjs +27 -0
  2823. package/node_modules/zod/v4/core/versions.d.cts +5 -0
  2824. package/node_modules/zod/v4/core/versions.d.ts +5 -0
  2825. package/node_modules/zod/v4/core/versions.js +5 -0
  2826. package/node_modules/zod/v4/core/visit.cjs +214 -0
  2827. package/node_modules/zod/v4/core/visit.d.cts +30 -0
  2828. package/node_modules/zod/v4/core/visit.d.ts +30 -0
  2829. package/node_modules/zod/v4/core/visit.js +169 -0
  2830. package/node_modules/zod/v4/index.cjs +51 -0
  2831. package/node_modules/zod/v4/index.d.cts +3 -0
  2832. package/node_modules/zod/v4/index.d.ts +3 -0
  2833. package/node_modules/zod/v4/index.js +4 -0
  2834. package/node_modules/zod/v4/locales/ar.cjs +138 -0
  2835. package/node_modules/zod/v4/locales/ar.d.cts +5 -0
  2836. package/node_modules/zod/v4/locales/ar.d.ts +4 -0
  2837. package/node_modules/zod/v4/locales/ar.js +111 -0
  2838. package/node_modules/zod/v4/locales/az.cjs +137 -0
  2839. package/node_modules/zod/v4/locales/az.d.cts +5 -0
  2840. package/node_modules/zod/v4/locales/az.d.ts +4 -0
  2841. package/node_modules/zod/v4/locales/az.js +110 -0
  2842. package/node_modules/zod/v4/locales/be.cjs +195 -0
  2843. package/node_modules/zod/v4/locales/be.d.cts +5 -0
  2844. package/node_modules/zod/v4/locales/be.d.ts +4 -0
  2845. package/node_modules/zod/v4/locales/be.js +168 -0
  2846. package/node_modules/zod/v4/locales/bg.cjs +152 -0
  2847. package/node_modules/zod/v4/locales/bg.d.cts +5 -0
  2848. package/node_modules/zod/v4/locales/bg.d.ts +4 -0
  2849. package/node_modules/zod/v4/locales/bg.js +125 -0
  2850. package/node_modules/zod/v4/locales/bn.cjs +140 -0
  2851. package/node_modules/zod/v4/locales/bn.d.cts +5 -0
  2852. package/node_modules/zod/v4/locales/bn.d.ts +4 -0
  2853. package/node_modules/zod/v4/locales/bn.js +113 -0
  2854. package/node_modules/zod/v4/locales/ca.cjs +139 -0
  2855. package/node_modules/zod/v4/locales/ca.d.cts +5 -0
  2856. package/node_modules/zod/v4/locales/ca.d.ts +4 -0
  2857. package/node_modules/zod/v4/locales/ca.js +112 -0
  2858. package/node_modules/zod/v4/locales/ckb.cjs +160 -0
  2859. package/node_modules/zod/v4/locales/ckb.d.cts +5 -0
  2860. package/node_modules/zod/v4/locales/ckb.d.ts +4 -0
  2861. package/node_modules/zod/v4/locales/ckb.js +133 -0
  2862. package/node_modules/zod/v4/locales/cs.cjs +143 -0
  2863. package/node_modules/zod/v4/locales/cs.d.cts +5 -0
  2864. package/node_modules/zod/v4/locales/cs.d.ts +4 -0
  2865. package/node_modules/zod/v4/locales/cs.js +116 -0
  2866. package/node_modules/zod/v4/locales/da.cjs +147 -0
  2867. package/node_modules/zod/v4/locales/da.d.cts +5 -0
  2868. package/node_modules/zod/v4/locales/da.d.ts +4 -0
  2869. package/node_modules/zod/v4/locales/da.js +120 -0
  2870. package/node_modules/zod/v4/locales/de.cjs +140 -0
  2871. package/node_modules/zod/v4/locales/de.d.cts +5 -0
  2872. package/node_modules/zod/v4/locales/de.d.ts +4 -0
  2873. package/node_modules/zod/v4/locales/de.js +113 -0
  2874. package/node_modules/zod/v4/locales/el.cjs +139 -0
  2875. package/node_modules/zod/v4/locales/el.d.cts +5 -0
  2876. package/node_modules/zod/v4/locales/el.d.ts +4 -0
  2877. package/node_modules/zod/v4/locales/el.js +112 -0
  2878. package/node_modules/zod/v4/locales/en.cjs +152 -0
  2879. package/node_modules/zod/v4/locales/en.d.cts +5 -0
  2880. package/node_modules/zod/v4/locales/en.d.ts +4 -0
  2881. package/node_modules/zod/v4/locales/en.js +125 -0
  2882. package/node_modules/zod/v4/locales/eo.cjs +141 -0
  2883. package/node_modules/zod/v4/locales/eo.d.cts +5 -0
  2884. package/node_modules/zod/v4/locales/eo.d.ts +4 -0
  2885. package/node_modules/zod/v4/locales/eo.js +114 -0
  2886. package/node_modules/zod/v4/locales/es.cjs +163 -0
  2887. package/node_modules/zod/v4/locales/es.d.cts +5 -0
  2888. package/node_modules/zod/v4/locales/es.d.ts +4 -0
  2889. package/node_modules/zod/v4/locales/es.js +136 -0
  2890. package/node_modules/zod/v4/locales/fa.cjs +146 -0
  2891. package/node_modules/zod/v4/locales/fa.d.cts +5 -0
  2892. package/node_modules/zod/v4/locales/fa.d.ts +4 -0
  2893. package/node_modules/zod/v4/locales/fa.js +119 -0
  2894. package/node_modules/zod/v4/locales/fi.cjs +144 -0
  2895. package/node_modules/zod/v4/locales/fi.d.cts +5 -0
  2896. package/node_modules/zod/v4/locales/fi.d.ts +4 -0
  2897. package/node_modules/zod/v4/locales/fi.js +117 -0
  2898. package/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
  2899. package/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
  2900. package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
  2901. package/node_modules/zod/v4/locales/fr-CA.js +112 -0
  2902. package/node_modules/zod/v4/locales/fr.cjs +156 -0
  2903. package/node_modules/zod/v4/locales/fr.d.cts +5 -0
  2904. package/node_modules/zod/v4/locales/fr.d.ts +4 -0
  2905. package/node_modules/zod/v4/locales/fr.js +129 -0
  2906. package/node_modules/zod/v4/locales/gu.cjs +140 -0
  2907. package/node_modules/zod/v4/locales/gu.d.cts +5 -0
  2908. package/node_modules/zod/v4/locales/gu.d.ts +4 -0
  2909. package/node_modules/zod/v4/locales/gu.js +113 -0
  2910. package/node_modules/zod/v4/locales/he.cjs +248 -0
  2911. package/node_modules/zod/v4/locales/he.d.cts +5 -0
  2912. package/node_modules/zod/v4/locales/he.d.ts +4 -0
  2913. package/node_modules/zod/v4/locales/he.js +221 -0
  2914. package/node_modules/zod/v4/locales/hi.cjs +138 -0
  2915. package/node_modules/zod/v4/locales/hi.d.cts +5 -0
  2916. package/node_modules/zod/v4/locales/hi.d.ts +4 -0
  2917. package/node_modules/zod/v4/locales/hi.js +111 -0
  2918. package/node_modules/zod/v4/locales/hr.cjs +153 -0
  2919. package/node_modules/zod/v4/locales/hr.d.cts +5 -0
  2920. package/node_modules/zod/v4/locales/hr.d.ts +4 -0
  2921. package/node_modules/zod/v4/locales/hr.js +126 -0
  2922. package/node_modules/zod/v4/locales/hu.cjs +140 -0
  2923. package/node_modules/zod/v4/locales/hu.d.cts +5 -0
  2924. package/node_modules/zod/v4/locales/hu.d.ts +4 -0
  2925. package/node_modules/zod/v4/locales/hu.js +113 -0
  2926. package/node_modules/zod/v4/locales/hy.cjs +185 -0
  2927. package/node_modules/zod/v4/locales/hy.d.cts +5 -0
  2928. package/node_modules/zod/v4/locales/hy.d.ts +4 -0
  2929. package/node_modules/zod/v4/locales/hy.js +158 -0
  2930. package/node_modules/zod/v4/locales/id.cjs +138 -0
  2931. package/node_modules/zod/v4/locales/id.d.cts +5 -0
  2932. package/node_modules/zod/v4/locales/id.d.ts +4 -0
  2933. package/node_modules/zod/v4/locales/id.js +111 -0
  2934. package/node_modules/zod/v4/locales/index.cjs +152 -0
  2935. package/node_modules/zod/v4/locales/index.d.cts +63 -0
  2936. package/node_modules/zod/v4/locales/index.d.ts +63 -0
  2937. package/node_modules/zod/v4/locales/index.js +63 -0
  2938. package/node_modules/zod/v4/locales/is.cjs +141 -0
  2939. package/node_modules/zod/v4/locales/is.d.cts +5 -0
  2940. package/node_modules/zod/v4/locales/is.d.ts +4 -0
  2941. package/node_modules/zod/v4/locales/is.js +114 -0
  2942. package/node_modules/zod/v4/locales/it.cjs +140 -0
  2943. package/node_modules/zod/v4/locales/it.d.cts +5 -0
  2944. package/node_modules/zod/v4/locales/it.d.ts +4 -0
  2945. package/node_modules/zod/v4/locales/it.js +113 -0
  2946. package/node_modules/zod/v4/locales/ja.cjs +139 -0
  2947. package/node_modules/zod/v4/locales/ja.d.cts +5 -0
  2948. package/node_modules/zod/v4/locales/ja.d.ts +4 -0
  2949. package/node_modules/zod/v4/locales/ja.js +112 -0
  2950. package/node_modules/zod/v4/locales/ka.cjs +144 -0
  2951. package/node_modules/zod/v4/locales/ka.d.cts +5 -0
  2952. package/node_modules/zod/v4/locales/ka.d.ts +4 -0
  2953. package/node_modules/zod/v4/locales/ka.js +117 -0
  2954. package/node_modules/zod/v4/locales/kh.cjs +12 -0
  2955. package/node_modules/zod/v4/locales/kh.d.cts +5 -0
  2956. package/node_modules/zod/v4/locales/kh.d.ts +5 -0
  2957. package/node_modules/zod/v4/locales/kh.js +5 -0
  2958. package/node_modules/zod/v4/locales/km.cjs +142 -0
  2959. package/node_modules/zod/v4/locales/km.d.cts +5 -0
  2960. package/node_modules/zod/v4/locales/km.d.ts +4 -0
  2961. package/node_modules/zod/v4/locales/km.js +115 -0
  2962. package/node_modules/zod/v4/locales/kn.cjs +143 -0
  2963. package/node_modules/zod/v4/locales/kn.d.cts +5 -0
  2964. package/node_modules/zod/v4/locales/kn.d.ts +4 -0
  2965. package/node_modules/zod/v4/locales/kn.js +116 -0
  2966. package/node_modules/zod/v4/locales/ko.cjs +143 -0
  2967. package/node_modules/zod/v4/locales/ko.d.cts +5 -0
  2968. package/node_modules/zod/v4/locales/ko.d.ts +4 -0
  2969. package/node_modules/zod/v4/locales/ko.js +116 -0
  2970. package/node_modules/zod/v4/locales/lt.cjs +234 -0
  2971. package/node_modules/zod/v4/locales/lt.d.cts +5 -0
  2972. package/node_modules/zod/v4/locales/lt.d.ts +4 -0
  2973. package/node_modules/zod/v4/locales/lt.js +207 -0
  2974. package/node_modules/zod/v4/locales/mk.cjs +141 -0
  2975. package/node_modules/zod/v4/locales/mk.d.cts +5 -0
  2976. package/node_modules/zod/v4/locales/mk.d.ts +4 -0
  2977. package/node_modules/zod/v4/locales/mk.js +114 -0
  2978. package/node_modules/zod/v4/locales/ms.cjs +139 -0
  2979. package/node_modules/zod/v4/locales/ms.d.cts +5 -0
  2980. package/node_modules/zod/v4/locales/ms.d.ts +4 -0
  2981. package/node_modules/zod/v4/locales/ms.js +112 -0
  2982. package/node_modules/zod/v4/locales/ne.cjs +138 -0
  2983. package/node_modules/zod/v4/locales/ne.d.cts +5 -0
  2984. package/node_modules/zod/v4/locales/ne.d.ts +4 -0
  2985. package/node_modules/zod/v4/locales/ne.js +111 -0
  2986. package/node_modules/zod/v4/locales/nl.cjs +142 -0
  2987. package/node_modules/zod/v4/locales/nl.d.cts +5 -0
  2988. package/node_modules/zod/v4/locales/nl.d.ts +4 -0
  2989. package/node_modules/zod/v4/locales/nl.js +115 -0
  2990. package/node_modules/zod/v4/locales/nn.cjs +140 -0
  2991. package/node_modules/zod/v4/locales/nn.d.cts +5 -0
  2992. package/node_modules/zod/v4/locales/nn.d.ts +4 -0
  2993. package/node_modules/zod/v4/locales/nn.js +113 -0
  2994. package/node_modules/zod/v4/locales/no.cjs +140 -0
  2995. package/node_modules/zod/v4/locales/no.d.cts +5 -0
  2996. package/node_modules/zod/v4/locales/no.d.ts +4 -0
  2997. package/node_modules/zod/v4/locales/no.js +113 -0
  2998. package/node_modules/zod/v4/locales/ota.cjs +141 -0
  2999. package/node_modules/zod/v4/locales/ota.d.cts +5 -0
  3000. package/node_modules/zod/v4/locales/ota.d.ts +4 -0
  3001. package/node_modules/zod/v4/locales/ota.js +114 -0
  3002. package/node_modules/zod/v4/locales/package.json +7 -0
  3003. package/node_modules/zod/v4/locales/pl.cjs +141 -0
  3004. package/node_modules/zod/v4/locales/pl.d.cts +5 -0
  3005. package/node_modules/zod/v4/locales/pl.d.ts +4 -0
  3006. package/node_modules/zod/v4/locales/pl.js +114 -0
  3007. package/node_modules/zod/v4/locales/ps.cjs +146 -0
  3008. package/node_modules/zod/v4/locales/ps.d.cts +5 -0
  3009. package/node_modules/zod/v4/locales/ps.d.ts +4 -0
  3010. package/node_modules/zod/v4/locales/ps.js +119 -0
  3011. package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
  3012. package/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
  3013. package/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
  3014. package/node_modules/zod/v4/locales/pt-BR.js +143 -0
  3015. package/node_modules/zod/v4/locales/pt.cjs +169 -0
  3016. package/node_modules/zod/v4/locales/pt.d.cts +5 -0
  3017. package/node_modules/zod/v4/locales/pt.d.ts +4 -0
  3018. package/node_modules/zod/v4/locales/pt.js +142 -0
  3019. package/node_modules/zod/v4/locales/ro.cjs +149 -0
  3020. package/node_modules/zod/v4/locales/ro.d.cts +5 -0
  3021. package/node_modules/zod/v4/locales/ro.d.ts +4 -0
  3022. package/node_modules/zod/v4/locales/ro.js +122 -0
  3023. package/node_modules/zod/v4/locales/ru.cjs +195 -0
  3024. package/node_modules/zod/v4/locales/ru.d.cts +5 -0
  3025. package/node_modules/zod/v4/locales/ru.d.ts +4 -0
  3026. package/node_modules/zod/v4/locales/ru.js +168 -0
  3027. package/node_modules/zod/v4/locales/sk.cjs +143 -0
  3028. package/node_modules/zod/v4/locales/sk.d.cts +5 -0
  3029. package/node_modules/zod/v4/locales/sk.d.ts +4 -0
  3030. package/node_modules/zod/v4/locales/sk.js +116 -0
  3031. package/node_modules/zod/v4/locales/sl.cjs +141 -0
  3032. package/node_modules/zod/v4/locales/sl.d.cts +5 -0
  3033. package/node_modules/zod/v4/locales/sl.d.ts +4 -0
  3034. package/node_modules/zod/v4/locales/sl.js +114 -0
  3035. package/node_modules/zod/v4/locales/sv.cjs +142 -0
  3036. package/node_modules/zod/v4/locales/sv.d.cts +5 -0
  3037. package/node_modules/zod/v4/locales/sv.d.ts +4 -0
  3038. package/node_modules/zod/v4/locales/sv.js +115 -0
  3039. package/node_modules/zod/v4/locales/ta.cjs +142 -0
  3040. package/node_modules/zod/v4/locales/ta.d.cts +5 -0
  3041. package/node_modules/zod/v4/locales/ta.d.ts +4 -0
  3042. package/node_modules/zod/v4/locales/ta.js +115 -0
  3043. package/node_modules/zod/v4/locales/tg.cjs +144 -0
  3044. package/node_modules/zod/v4/locales/tg.d.cts +5 -0
  3045. package/node_modules/zod/v4/locales/tg.d.ts +4 -0
  3046. package/node_modules/zod/v4/locales/tg.js +117 -0
  3047. package/node_modules/zod/v4/locales/th.cjs +142 -0
  3048. package/node_modules/zod/v4/locales/th.d.cts +5 -0
  3049. package/node_modules/zod/v4/locales/th.d.ts +4 -0
  3050. package/node_modules/zod/v4/locales/th.js +115 -0
  3051. package/node_modules/zod/v4/locales/tk.cjs +134 -0
  3052. package/node_modules/zod/v4/locales/tk.d.cts +5 -0
  3053. package/node_modules/zod/v4/locales/tk.d.ts +4 -0
  3054. package/node_modules/zod/v4/locales/tk.js +107 -0
  3055. package/node_modules/zod/v4/locales/tr.cjs +137 -0
  3056. package/node_modules/zod/v4/locales/tr.d.cts +5 -0
  3057. package/node_modules/zod/v4/locales/tr.d.ts +4 -0
  3058. package/node_modules/zod/v4/locales/tr.js +110 -0
  3059. package/node_modules/zod/v4/locales/ua.cjs +12 -0
  3060. package/node_modules/zod/v4/locales/ua.d.cts +5 -0
  3061. package/node_modules/zod/v4/locales/ua.d.ts +5 -0
  3062. package/node_modules/zod/v4/locales/ua.js +5 -0
  3063. package/node_modules/zod/v4/locales/uk.cjs +140 -0
  3064. package/node_modules/zod/v4/locales/uk.d.cts +5 -0
  3065. package/node_modules/zod/v4/locales/uk.d.ts +4 -0
  3066. package/node_modules/zod/v4/locales/uk.js +113 -0
  3067. package/node_modules/zod/v4/locales/ur.cjs +142 -0
  3068. package/node_modules/zod/v4/locales/ur.d.cts +5 -0
  3069. package/node_modules/zod/v4/locales/ur.d.ts +4 -0
  3070. package/node_modules/zod/v4/locales/ur.js +115 -0
  3071. package/node_modules/zod/v4/locales/uz.cjs +140 -0
  3072. package/node_modules/zod/v4/locales/uz.d.cts +5 -0
  3073. package/node_modules/zod/v4/locales/uz.d.ts +4 -0
  3074. package/node_modules/zod/v4/locales/uz.js +113 -0
  3075. package/node_modules/zod/v4/locales/vi.cjs +140 -0
  3076. package/node_modules/zod/v4/locales/vi.d.cts +5 -0
  3077. package/node_modules/zod/v4/locales/vi.d.ts +4 -0
  3078. package/node_modules/zod/v4/locales/vi.js +113 -0
  3079. package/node_modules/zod/v4/locales/yo.cjs +139 -0
  3080. package/node_modules/zod/v4/locales/yo.d.cts +5 -0
  3081. package/node_modules/zod/v4/locales/yo.d.ts +4 -0
  3082. package/node_modules/zod/v4/locales/yo.js +112 -0
  3083. package/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
  3084. package/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
  3085. package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
  3086. package/node_modules/zod/v4/locales/zh-CN.js +114 -0
  3087. package/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
  3088. package/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
  3089. package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
  3090. package/node_modules/zod/v4/locales/zh-TW.js +112 -0
  3091. package/node_modules/zod/v4/mini/checks.cjs +54 -0
  3092. package/node_modules/zod/v4/mini/checks.d.cts +1 -0
  3093. package/node_modules/zod/v4/mini/checks.d.ts +1 -0
  3094. package/node_modules/zod/v4/mini/checks.js +1 -0
  3095. package/node_modules/zod/v4/mini/coerce.cjs +71 -0
  3096. package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
  3097. package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
  3098. package/node_modules/zod/v4/mini/coerce.js +22 -0
  3099. package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
  3100. package/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
  3101. package/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
  3102. package/node_modules/zod/v4/mini/deep-partial.js +13 -0
  3103. package/node_modules/zod/v4/mini/external.cjs +95 -0
  3104. package/node_modules/zod/v4/mini/external.d.cts +16 -0
  3105. package/node_modules/zod/v4/mini/external.d.ts +16 -0
  3106. package/node_modules/zod/v4/mini/external.js +16 -0
  3107. package/node_modules/zod/v4/mini/in-out.cjs +82 -0
  3108. package/node_modules/zod/v4/mini/in-out.d.cts +8 -0
  3109. package/node_modules/zod/v4/mini/in-out.d.ts +8 -0
  3110. package/node_modules/zod/v4/mini/in-out.js +36 -0
  3111. package/node_modules/zod/v4/mini/index.cjs +51 -0
  3112. package/node_modules/zod/v4/mini/index.d.cts +3 -0
  3113. package/node_modules/zod/v4/mini/index.d.ts +3 -0
  3114. package/node_modules/zod/v4/mini/index.js +3 -0
  3115. package/node_modules/zod/v4/mini/iso.cjs +83 -0
  3116. package/node_modules/zod/v4/mini/iso.d.cts +22 -0
  3117. package/node_modules/zod/v4/mini/iso.d.ts +22 -0
  3118. package/node_modules/zod/v4/mini/iso.js +34 -0
  3119. package/node_modules/zod/v4/mini/package.json +7 -0
  3120. package/node_modules/zod/v4/mini/parse.cjs +37 -0
  3121. package/node_modules/zod/v4/mini/parse.d.cts +1 -0
  3122. package/node_modules/zod/v4/mini/parse.d.ts +1 -0
  3123. package/node_modules/zod/v4/mini/parse.js +1 -0
  3124. package/node_modules/zod/v4/mini/schemas.cjs +1147 -0
  3125. package/node_modules/zod/v4/mini/schemas.d.cts +480 -0
  3126. package/node_modules/zod/v4/mini/schemas.d.ts +480 -0
  3127. package/node_modules/zod/v4/mini/schemas.js +1002 -0
  3128. package/node_modules/zod/v4/package.json +7 -0
  3129. package/node_modules/zod/v4-mini/index.cjs +51 -0
  3130. package/node_modules/zod/v4-mini/index.d.cts +3 -0
  3131. package/node_modules/zod/v4-mini/index.d.ts +3 -0
  3132. package/node_modules/zod/v4-mini/index.js +3 -0
  3133. package/node_modules/zod/v4-mini/package.json +7 -0
  3134. package/package.json +41 -4
  3135. package/README.md +0 -3
@@ -0,0 +1,2074 @@
1
+ /**
2
+ * {@link https://en.wikipedia.org/wiki/Advanced_Encryption_Standard | AES}
3
+ * a.k.a. Advanced Encryption Standard
4
+ * is a variant of Rijndael block cipher, standardized by NIST in 2001.
5
+ * We provide the fastest available pure JS implementation.
6
+ *
7
+ * `cipher = encrypt(block, key)`
8
+ *
9
+ * Data is split into 128-bit blocks.
10
+ * Encrypted in 10/12/14 rounds (128/192/256 bits). In every round:
11
+ * 1. **S-box**, table substitution
12
+ * 2. **Shift rows**, cyclic shift left of all rows of data array
13
+ * 3. **Mix columns**, multiplying every column by fixed polynomial
14
+ * 4. **Add round key**, round_key xor i-th column of array
15
+ *
16
+ * Check out
17
+ * {@link https://csrc.nist.gov/files/pubs/fips/197/final/docs/fips-197.pdf | FIPS-197},
18
+ * {@link https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38G.pdf | NIST 800-38G},
19
+ * and {@link https://csrc.nist.gov/csrc/media/projects/cryptographic-standards-and-guidelines/documents/aes-development/rijndael-ammended.pdf | original proposal}.
20
+ * @module
21
+ */
22
+ import { ghash, polyval } from './_polyval.ts';
23
+ // prettier-ignore
24
+ import {
25
+ abytes, aexists, anumber, aoutput32,
26
+ byteSwap,
27
+ clean, complexOverlapBytes, concatBytes,
28
+ copyBytes, createView, equalBytes, getOutput, isAligned32,
29
+ isLE,
30
+ overlapBytes,
31
+ swap32IfBE,
32
+ swap8IfBE,
33
+ u32, u64Lengths, u8, wrapCipher, wrapMacConstructor,
34
+ type Cipher, type CipherWithOutput,
35
+ type CMac, type IHash2,
36
+ type PRG, type TArg, type TRet, type Uint8ArrayBuffer
37
+ } from './utils.ts';
38
+
39
+ const BLOCK_SIZE = 16;
40
+ // AES operates on 16-byte blocks, i.e. 4 32-bit words.
41
+ const BLOCK_SIZE32 = 4;
42
+ // Shared zero block (`0^128`) used by GCM's `H = CIPH_K(0^128)` / J0 scratch
43
+ // and by CMAC / SIV helpers; callers take `.slice()` before mutating it.
44
+ const EMPTY_BLOCK = /* @__PURE__ */ new Uint8Array(BLOCK_SIZE);
45
+ // RFC 5297 §2.1 / §2.4: S2V uses `<one> = 0^127 || 1` for the `n = 0` special case.
46
+ const ONE_BLOCK = /* @__PURE__ */ Uint8Array.from([
47
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
48
+ ]);
49
+ const POLY = 0x11b; // 1 + x + x**3 + x**4 + x**8
50
+ // Validates plain AES key sizes only; AES-SIV's doubled-key contract is checked elsewhere.
51
+ function validateKeyLength(key: TArg<Uint8Array>) {
52
+ if (![16, 24, 32].includes(key.length))
53
+ throw new Error('"aes key" expected Uint8Array of length 16/24/32, got length=' + key.length);
54
+ }
55
+
56
+ // TODO: remove multiplication, binary ops only
57
+ // Doubles one GF(2^8) field element; callers are expected to stay in byte range.
58
+ // FIPS 197 upd1 §4.3 equation (4.5): XTIMES(b) left-shifts by one and, when
59
+ // b7=1, reduces by m(x); using POLY=0x11b here yields the same byte result
60
+ // as XORing with {1b} after the shift.
61
+ function mul2(n: number) {
62
+ return (n << 1) ^ (POLY & -(n >> 7));
63
+ }
64
+
65
+ // Shift-and-add multiplication in GF(2^8); callers are expected to pass byte values.
66
+ // FIPS 197 upd1 §4.3 equation (4.7): general products are XORs of repeated
67
+ // XTIMES() multiples, e.g. {57}•{13} = {57}⊕{ae}⊕{07}.
68
+ function mul(a: number, b: number) {
69
+ let res = 0;
70
+ for (; b > 0; b >>= 1) {
71
+ // Usual shift-and-add step in GF(2^8), not a scalar-multiplication ladder.
72
+ res ^= a & -(b & 1); // if (b&1) res ^=a (but const-time).
73
+ a = mul2(a); // a = 2*a
74
+ }
75
+ return res;
76
+ }
77
+
78
+ /**
79
+ * Increments a counter block with wrap around.
80
+ * AES call sites here currently use the big-endian branch, but the helper supports both layouts.
81
+ * NIST SP 800-38A Appendix B.1 and SP 800-38D §6.2 increment the
82
+ * least-significant/rightmost bits.
83
+ * `isLE=false` matches that standard counter-block layout, while `isLE=true`
84
+ * is a generic extension for non-AES callers.
85
+ * The implementation keeps a 32-bit bitwise carry path, so `carry` is capped at `0xffffff00`;
86
+ * larger values throw instead of silently overflowing before the next-byte propagation step.
87
+ */
88
+ // Keep the helper explicitly typed so `--isolatedDeclarations` can expose it
89
+ // through the test-only `__TESTS` export without inference errors.
90
+ const incBytes: (data: TArg<Uint8Array>, isLE: boolean, carry?: number) => void = (
91
+ data: TArg<Uint8Array>,
92
+ isLE: boolean,
93
+ carry: number = 1
94
+ ): void => {
95
+ // Carry is an increment count, not a signed delta; negatives would wrap through `| 0`.
96
+ // Keep `carry + byte <= 0xffffffff` so the `| 0` / `>>> 8` path below
97
+ // never truncates a real carry bit.
98
+ if (!Number.isSafeInteger(carry) || carry < 0 || carry > 0xffffff00)
99
+ throw new Error('incBytes: wrong carry ' + carry);
100
+ abytes(data);
101
+ for (let i = 0; i < data.length; i++) {
102
+ const pos = !isLE ? data.length - 1 - i : i;
103
+ carry = (carry + (data[pos] & 0xff)) | 0;
104
+ data[pos] = carry & 0xff;
105
+ carry >>>= 8;
106
+ }
107
+ };
108
+
109
+ // AES S-box is generated using finite field inversion,
110
+ // an affine transform, and xor of a constant 0x63.
111
+ const sbox = /* @__PURE__ */ (() => {
112
+ const t = new Uint8Array(256);
113
+ // Repeated multiplication by {03} walks all 255 nonzero field elements
114
+ // once, so t[255 - i] is the multiplicative inverse of t[i] for the
115
+ // affine step.
116
+ for (let i = 0, x = 1; i < 256; i++, x ^= mul2(x)) t[i] = x;
117
+ const box = new Uint8Array(256);
118
+ // FIPS 197 upd1 §5.1.1: SBOX({00}) = {63} because the inverse step leaves
119
+ // {00} at {00}, then the affine transform xors in c = {63}.
120
+ box[0] = 0x63;
121
+ for (let i = 0; i < 255; i++) {
122
+ let x = t[255 - i];
123
+ x |= x << 8;
124
+ box[t[i]] = (x ^ (x >> 4) ^ (x >> 5) ^ (x >> 6) ^ (x >> 7) ^ 0x63) & 0xff;
125
+ }
126
+ clean(t);
127
+ return box;
128
+ })();
129
+
130
+ // FIPS 197 upd1 §5.3.2: INVSBOX() is derived from SBOX() by swapping input
131
+ // and output roles (Table 6).
132
+ // `indexOf` is only used once at module init, so the quadratic setup cost stays off hot paths.
133
+ const invSbox = /* @__PURE__ */ sbox.map((_, j) => sbox.indexOf(j));
134
+
135
+ // FIPS 197 upd1 §5.2: ROTWORD([a0,a1,a2,a3]) = [a1,a2,a3,a0]; with this LE
136
+ // word packing that is a right rotate by 8 bits.
137
+ const rotr32_8 = (n: number) => (n << 24) | (n >>> 8);
138
+ // LE T-table helper: rotates one precomputed word by one byte so T1/T2/T3
139
+ // reuse T0's substitution/mix result in the other byte lanes.
140
+ const rotl32_8 = (n: number) => (n << 8) | (n >>> 24);
141
+ // T-table is optimization suggested in 5.2 of original proposal (missed from FIPS-197). Changes:
142
+ // - LE instead of BE
143
+ // - bigger tables: T0 and T1 are merged into T01 table and T2 & T3 into T23;
144
+ // so index is u16, instead of u8. This speeds up things, unexpectedly
145
+ function genTtable(sbox: TArg<Uint8Array>, fn: (n: number) => number) {
146
+ if (sbox.length !== 256) throw new Error('wrong sbox length');
147
+ const T0 = new Uint32Array(256).map((_, j) => fn(sbox[j]));
148
+ const T1 = T0.map(rotl32_8);
149
+ const T2 = T1.map(rotl32_8);
150
+ const T3 = T2.map(rotl32_8);
151
+ // Pre-xor adjacent lanes so apply0123/applySbox can fetch two substituted
152
+ // byte lanes per lookup in the LE round layout.
153
+ const T01 = new Uint32Array(256 * 256);
154
+ const T23 = new Uint32Array(256 * 256);
155
+ const sbox2 = new Uint16Array(256 * 256);
156
+ for (let i = 0; i < 256; i++) {
157
+ for (let j = 0; j < 256; j++) {
158
+ const idx = i * 256 + j;
159
+ T01[idx] = T0[i] ^ T1[j];
160
+ T23[idx] = T2[i] ^ T3[j];
161
+ sbox2[idx] = (sbox[i] << 8) | sbox[j];
162
+ }
163
+ }
164
+ return { sbox, sbox2, T0, T1, T2, T3, T01, T23 };
165
+ }
166
+
167
+ // Forward round precompute: the packed word stores the MIXCOLUMNS row
168
+ // [{02},{01},{01},{03}] in LE byte-lane order, and the returned `sbox2`
169
+ // is also reused by key expansion and the final round.
170
+ const tableEncoding = /* @__PURE__ */ genTtable(
171
+ sbox,
172
+ (s: number) => (mul(s, 3) << 24) | (s << 16) | (s << 8) | mul(s, 2)
173
+ );
174
+ // Inverse round precompute: the packed word stores the INVMIXCOLUMNS row
175
+ // [{0e},{09},{0d},{0b}] in LE byte-lane order, and the tables are reused
176
+ // by decrypt() and expandKeyDecLE().
177
+ const tableDecoding = /* @__PURE__ */ genTtable(
178
+ invSbox,
179
+ (s) => (mul(s, 11) << 24) | (mul(s, 13) << 16) | (mul(s, 9) << 8) | mul(s, 14)
180
+ );
181
+
182
+ // FIPS 197 upd1 §5.2 Table 5: left-most bytes of Rcon[j] = x^(j-1), generated by repeated XTIMES().
183
+ const xPowers = /* @__PURE__ */ (() => {
184
+ const p = new Uint8Array(16);
185
+ for (let i = 0, x = 1; i < 16; i++, x = mul2(x)) p[i] = x;
186
+ return p;
187
+ })();
188
+
189
+ /** Forward AES key expansion used across ECB/CBC/CTR/GCM/CMAC/KW-style paths. */
190
+ function expandKeyLE(key: TArg<Uint8Array>): TRet<Uint32Array> {
191
+ abytes(key);
192
+ const len = key.length;
193
+ validateKeyLength(key);
194
+ const { sbox2 } = tableEncoding;
195
+ const toClean = [];
196
+ // Copy on BE or misaligned inputs so the LE word normalization below never
197
+ // mutates caller key bytes in place.
198
+ if (!isLE || !isAligned32(key)) toClean.push((key = copyBytes(key)));
199
+ const k32 = swap32IfBE(u32(key));
200
+ const Nk = k32.length;
201
+ // `applySbox` normally reads one byte lane from each argument; repeating
202
+ // `n` across all four lanes turns it into SUBWORD(n).
203
+ const subByte = (n: number) => applySbox(sbox2, n, n, n, n);
204
+ // AES key sizes are 16/24/32 bytes, so len + 28 yields the 44/52/60
205
+ // schedule words from FIPS 197 §5.2 / Table 3.
206
+ const xk = new Uint32Array(len + 28); // expanded key
207
+ xk.set(k32);
208
+ // 4.3.1 Key expansion
209
+ for (let i = Nk; i < xk.length; i++) {
210
+ let t = xk[i - 1];
211
+ if (i % Nk === 0) t = subByte(rotr32_8(t)) ^ xPowers[i / Nk - 1];
212
+ else if (Nk > 6 && i % Nk === 4) t = subByte(t);
213
+ xk[i] = xk[i - Nk] ^ t;
214
+ }
215
+ clean(...toClean);
216
+ return xk as TRet<Uint32Array>;
217
+ }
218
+
219
+ function expandKeyDecLE(key: TArg<Uint8Array>): TRet<Uint32Array> {
220
+ const encKey = expandKeyLE(key);
221
+ const xk = encKey.slice();
222
+ const Nk = encKey.length;
223
+ const { sbox2 } = tableEncoding;
224
+ const { T0, T1, T2, T3 } = tableDecoding;
225
+ // Local decrypt() walks round keys forward from xk[0], so reverse the
226
+ // encryption round-key blocks first before applying the equivalent-inverse
227
+ // middle-round transform.
228
+ for (let i = 0; i < Nk; i += 4) {
229
+ for (let j = 0; j < 4; j++) xk[i + j] = encKey[Nk - i - 4 + j];
230
+ }
231
+ clean(encKey);
232
+ // Apply InvMixColumn to the reversed round keys using the same LE sbox2
233
+ // packing as the forward path.
234
+ // apply InvMixColumn except first & last round
235
+ for (let i = 4; i < Nk - 4; i++) {
236
+ const x = xk[i];
237
+ const w = applySbox(sbox2, x, x, x, x);
238
+ xk[i] = T0[w & 0xff] ^ T1[(w >>> 8) & 0xff] ^ T2[(w >>> 16) & 0xff] ^ T3[w >>> 24];
239
+ }
240
+ return xk as TRet<Uint32Array>;
241
+ }
242
+
243
+ // Apply tables
244
+ function apply0123(
245
+ T01: TArg<Uint32Array>,
246
+ T23: TArg<Uint32Array>,
247
+ s0: number,
248
+ s1: number,
249
+ s2: number,
250
+ s3: number
251
+ ) {
252
+ // `T01` takes the low byte lane from `s0` plus the next lane from `s1`;
253
+ // `T23` does the same for `s2`/`s3`.
254
+ // Equivalent to `T0[s0&0xff] ^ T1[(s1>>>8)&0xff] ^ T2[(s2>>>16)&0xff] ^
255
+ // T3[s3>>>24]`, but with two merged-table fetches.
256
+ return (
257
+ T01[((s0 << 8) & 0xff00) | ((s1 >>> 8) & 0xff)] ^
258
+ T23[((s2 >>> 8) & 0xff00) | ((s3 >>> 24) & 0xff)]
259
+ );
260
+ }
261
+
262
+ function applySbox(sbox2: TArg<Uint16Array>, s0: number, s1: number, s2: number, s3: number) {
263
+ // `sbox2` packs two substituted byte lanes at a time in the same LE
264
+ // layout used by the round code.
265
+ // Equivalent to `SBOX(byte0(s0)) | SBOX(byte1(s1))<<8 |
266
+ // SBOX(byte2(s2))<<16 | SBOX(byte3(s3))<<24`.
267
+ return (
268
+ sbox2[(s0 & 0xff) | (s1 & 0xff00)] |
269
+ (sbox2[((s2 >>> 16) & 0xff) | ((s3 >>> 16) & 0xff00)] << 16)
270
+ );
271
+ }
272
+
273
+ function encrypt(
274
+ xk: TArg<Uint32Array>,
275
+ s0: number,
276
+ s1: number,
277
+ s2: number,
278
+ s3: number
279
+ ): { s0: number; s1: number; s2: number; s3: number } {
280
+ const { sbox2, T01, T23 } = tableEncoding;
281
+ let k = 0;
282
+ ((s0 ^= xk[k++]), (s1 ^= xk[k++]), (s2 ^= xk[k++]), (s3 ^= xk[k++]));
283
+ // `xk` has Nr+1 round-key blocks, so after the initial AddRoundKey and the
284
+ // final S-box-only round there are Nr-1 full table/MixColumns rounds left.
285
+ const rounds = xk.length / 4 - 2;
286
+ for (let i = 0; i < rounds; i++) {
287
+ const t0 = xk[k++] ^ apply0123(T01, T23, s0, s1, s2, s3);
288
+ const t1 = xk[k++] ^ apply0123(T01, T23, s1, s2, s3, s0);
289
+ const t2 = xk[k++] ^ apply0123(T01, T23, s2, s3, s0, s1);
290
+ const t3 = xk[k++] ^ apply0123(T01, T23, s3, s0, s1, s2);
291
+ ((s0 = t0), (s1 = t1), (s2 = t2), (s3 = t3));
292
+ }
293
+ // last round (without mixcolumns, so using SBOX2 table)
294
+ const t0 = xk[k++] ^ applySbox(sbox2, s0, s1, s2, s3);
295
+ const t1 = xk[k++] ^ applySbox(sbox2, s1, s2, s3, s0);
296
+ const t2 = xk[k++] ^ applySbox(sbox2, s2, s3, s0, s1);
297
+ const t3 = xk[k++] ^ applySbox(sbox2, s3, s0, s1, s2);
298
+ return { s0: t0, s1: t1, s2: t2, s3: t3 };
299
+ }
300
+
301
+ // Can't be merged with encrypt: arg positions for apply0123 / applySbox are different
302
+ function decrypt(
303
+ xk: TArg<Uint32Array>,
304
+ s0: number,
305
+ s1: number,
306
+ s2: number,
307
+ s3: number
308
+ ): {
309
+ s0: number;
310
+ s1: number;
311
+ s2: number;
312
+ s3: number;
313
+ } {
314
+ const { sbox2, T01, T23 } = tableDecoding;
315
+ let k = 0;
316
+ ((s0 ^= xk[k++]), (s1 ^= xk[k++]), (s2 ^= xk[k++]), (s3 ^= xk[k++]));
317
+ // With `expandKeyDecLE()` the round keys are already reversed and middle
318
+ // rounds are InvMixColumns-adjusted, so this loop follows the equivalent
319
+ // inverse cipher order directly.
320
+ const rounds = xk.length / 4 - 2;
321
+ for (let i = 0; i < rounds; i++) {
322
+ const t0 = xk[k++] ^ apply0123(T01, T23, s0, s3, s2, s1);
323
+ const t1 = xk[k++] ^ apply0123(T01, T23, s1, s0, s3, s2);
324
+ const t2 = xk[k++] ^ apply0123(T01, T23, s2, s1, s0, s3);
325
+ const t3 = xk[k++] ^ apply0123(T01, T23, s3, s2, s1, s0);
326
+ ((s0 = t0), (s1 = t1), (s2 = t2), (s3 = t3));
327
+ }
328
+ // Final equivalent-inverse round omits InvMixColumns, so use inverse
329
+ // S-box lanes in InvShiftRows order.
330
+ const t0: number = xk[k++] ^ applySbox(sbox2, s0, s3, s2, s1);
331
+ const t1: number = xk[k++] ^ applySbox(sbox2, s1, s0, s3, s2);
332
+ const t2: number = xk[k++] ^ applySbox(sbox2, s2, s1, s0, s3);
333
+ const t3: number = xk[k++] ^ applySbox(sbox2, s3, s2, s1, s0);
334
+ return { s0: t0, s1: t1, s2: t2, s3: t3 };
335
+ }
336
+
337
+ function ctrCounter(
338
+ xk: TArg<Uint32Array>,
339
+ nonce: TArg<Uint8Array>,
340
+ src: TArg<Uint8Array>,
341
+ dst?: TArg<Uint8Array>
342
+ ): TRet<Uint8Array> {
343
+ abytes(nonce, BLOCK_SIZE, 'nonce');
344
+ abytes(src);
345
+ const srcLen = src.length;
346
+ dst = getOutput(srcLen, dst);
347
+ complexOverlapBytes(src, dst);
348
+ // Internal helper: mutate `nonce` in place as the live counter block so
349
+ // each encrypted block uses the next CTR value.
350
+ const ctr = nonce;
351
+ const c32 = u32(ctr);
352
+ const src32 = u32(src);
353
+ const dst32 = u32(dst);
354
+ // process blocks
355
+ for (let i = 0; i + 4 <= src32.length; i += 4) {
356
+ const { s0, s1, s2, s3 } = encrypt(
357
+ xk,
358
+ swap8IfBE(c32[0]),
359
+ swap8IfBE(c32[1]),
360
+ swap8IfBE(c32[2]),
361
+ swap8IfBE(c32[3])
362
+ );
363
+ dst32[i + 0] = src32[i + 0] ^ swap8IfBE(s0);
364
+ dst32[i + 1] = src32[i + 1] ^ swap8IfBE(s1);
365
+ dst32[i + 2] = src32[i + 2] ^ swap8IfBE(s2);
366
+ dst32[i + 3] = src32[i + 3] ^ swap8IfBE(s3);
367
+ // Full 128 bit big-endian counter with wrap around. Same fixed-shape
368
+ // 16-byte carry walk as incBytes(ctr, false, 1), inlined to skip its
369
+ // per-call argument validation on the per-block hot path.
370
+ for (let j = BLOCK_SIZE - 1, carry = 1; j >= 0; j--) {
371
+ carry = (carry + ctr[j]) | 0;
372
+ ctr[j] = carry & 0xff;
373
+ carry >>>= 8;
374
+ }
375
+ }
376
+ // NIST SP 800-38A CTR mode uses the leading `u` bits of the next output
377
+ // block for the final short block.
378
+ // It's possible to handle > u32 fast, but is it worth it?
379
+ const start = BLOCK_SIZE * Math.floor(src32.length / BLOCK_SIZE32);
380
+ if (start < srcLen) {
381
+ const { s0, s1, s2, s3 } = encrypt(
382
+ xk,
383
+ swap8IfBE(c32[0]),
384
+ swap8IfBE(c32[1]),
385
+ swap8IfBE(c32[2]),
386
+ swap8IfBE(c32[3])
387
+ );
388
+ const b32 = new Uint32Array([s0, s1, s2, s3]);
389
+ swap32IfBE(b32);
390
+ const buf = u8(b32);
391
+ for (let i = start, pos = 0; i < srcLen; i++, pos++) dst[i] = src[i] ^ buf[pos];
392
+ clean(b32);
393
+ }
394
+ // Unsafe mutable-counter API only advances whole blocks. Callers that want to
395
+ // resume after consuming part of this block must re-run from the same counter
396
+ // with left-padding and strip the already-consumed prefix themselves.
397
+ return dst as TRet<Uint8Array>;
398
+ }
399
+
400
+ // AES CTR with overflowing 32 bit counter
401
+ // It's possible to do 32le significantly simpler (and probably faster) by using u32.
402
+ // But, we need both, and perf bottleneck is in ghash anyway.
403
+ // Unsafe 32-bit CTR helper: mutates `nonce` in place, expects aligned `src`/`dst`,
404
+ // and uses `isLE` to choose which 32-bit counter word is incremented.
405
+ function ctr32(
406
+ xk: TArg<Uint32Array>,
407
+ isLE: boolean,
408
+ nonce: TArg<Uint8Array>,
409
+ src: TArg<Uint8Array>,
410
+ dst?: TArg<Uint8Array>
411
+ ): TRet<Uint8Array> {
412
+ abytes(nonce, BLOCK_SIZE, 'nonce');
413
+ abytes(src);
414
+ dst = getOutput(src.length, dst);
415
+ const ctr = nonce; // write new value to nonce, so it can be re-used
416
+ const c32 = u32(ctr);
417
+ const view = createView(ctr);
418
+ const src32 = u32(src);
419
+ const dst32 = u32(dst);
420
+ // NIST SP 800-38D GCTR increments the rightmost 32 bits of J0, while
421
+ // RFC 8452 AES-GCM-SIV increments the first 32 bits as a little-endian u32.
422
+ const ctrPos = isLE ? 0 : 12;
423
+ const srcLen = src.length;
424
+ let ctrNum = view.getUint32(ctrPos, isLE); // read current counter value
425
+ // process blocks
426
+ for (let i = 0; i + 4 <= src32.length; i += 4) {
427
+ const { s0, s1, s2, s3 } = encrypt(
428
+ xk,
429
+ swap8IfBE(c32[0]),
430
+ swap8IfBE(c32[1]),
431
+ swap8IfBE(c32[2]),
432
+ swap8IfBE(c32[3])
433
+ );
434
+ dst32[i + 0] = src32[i + 0] ^ swap8IfBE(s0);
435
+ dst32[i + 1] = src32[i + 1] ^ swap8IfBE(s1);
436
+ dst32[i + 2] = src32[i + 2] ^ swap8IfBE(s2);
437
+ dst32[i + 3] = src32[i + 3] ^ swap8IfBE(s3);
438
+ ctrNum = (ctrNum + 1) >>> 0; // u32 wrap
439
+ view.setUint32(ctrPos, ctrNum, isLE);
440
+ }
441
+ // leftovers (less than a block)
442
+ const start = BLOCK_SIZE * Math.floor(src32.length / BLOCK_SIZE32);
443
+ if (start < srcLen) {
444
+ const { s0, s1, s2, s3 } = encrypt(
445
+ xk,
446
+ swap8IfBE(c32[0]),
447
+ swap8IfBE(c32[1]),
448
+ swap8IfBE(c32[2]),
449
+ swap8IfBE(c32[3])
450
+ );
451
+ const b32 = new Uint32Array([s0, s1, s2, s3]);
452
+ swap32IfBE(b32);
453
+ const buf = u8(b32);
454
+ for (let i = start, pos = 0; i < srcLen; i++, pos++) dst[i] = src[i] ^ buf[pos];
455
+ clean(b32);
456
+ }
457
+ // Same unsafe contract as ctrCounter(): only full blocks advance the stored
458
+ // mutable counter state; partial-block continuation is caller-managed.
459
+ return dst as TRet<Uint8Array>;
460
+ }
461
+
462
+ /**
463
+ * **CTR** (Counter Mode): turns a block cipher into a stream cipher using a
464
+ * full 16-byte counter block.
465
+ * Efficient and parallelizable. Requires a unique nonce per encryption. Unauthenticated: needs MAC.
466
+ * @param key - AES key bytes.
467
+ * @param nonce - 16-byte counter block, incremented as a full AES block.
468
+ * @returns Cipher instance with `encrypt()` and `decrypt()`.
469
+ * @example
470
+ * Encrypts a short payload with a fresh AES key and counter block.
471
+ *
472
+ * ```ts
473
+ * import { ctr } from '@noble/ciphers/aes.js';
474
+ * import { randomBytes } from '@noble/ciphers/utils.js';
475
+ * const key = randomBytes(16);
476
+ * const nonce = randomBytes(16);
477
+ * const cipher = ctr(key, nonce);
478
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
479
+ * ```
480
+ */
481
+ export const ctr: TRet<
482
+ ((key: TArg<Uint8Array>, nonce: TArg<Uint8Array>) => CipherWithOutput) & {
483
+ blockSize: number;
484
+ nonceLength: number;
485
+ }
486
+ > = /* @__PURE__ */ wrapCipher(
487
+ { blockSize: 16, nonceLength: 16 },
488
+ function aesctr(key: TArg<Uint8Array>, nonce: TArg<Uint8Array>): TRet<CipherWithOutput> {
489
+ function processCtr(buf: TArg<Uint8Array>, dst?: TArg<Uint8Array>): TRet<Uint8Array> {
490
+ abytes(buf);
491
+ if (dst !== undefined) {
492
+ abytes(dst);
493
+ // Optional output buffers must stay 4-byte aligned because
494
+ // ctrCounter() reinterprets them as Uint32Array words.
495
+ if (!isAligned32(dst)) throw new Error('unaligned destination');
496
+ }
497
+ const xk = expandKeyLE(key);
498
+ // Public CTR keeps caller nonce bytes immutable even though ctrCounter()
499
+ // advances the live 16-byte counter block in place.
500
+ const n = copyBytes(nonce); // align + avoid changing
501
+ const toClean = [xk, n];
502
+ if (!isAligned32(buf)) toClean.push((buf = copyBytes(buf)));
503
+ const out = ctrCounter(xk, n, buf, dst);
504
+ clean(...toClean);
505
+ return out as TRet<Uint8Array>;
506
+ }
507
+ return {
508
+ encrypt: (plaintext: TArg<Uint8Array>, dst?: TArg<Uint8Array>) => processCtr(plaintext, dst),
509
+ decrypt: (ciphertext: TArg<Uint8Array>, dst?: TArg<Uint8Array>) =>
510
+ processCtr(ciphertext, dst),
511
+ } as TRet<CipherWithOutput>;
512
+ }
513
+ );
514
+
515
+ function validateBlockDecrypt(data: TArg<Uint8Array>, dst?: TArg<Uint8Array>) {
516
+ abytes(data);
517
+ // ECB/CBC decryption always consumes whole ciphertext blocks; PKCS#7/CMS
518
+ // padding, when enabled, is removed only after decrypting the final block.
519
+ if (data.length % BLOCK_SIZE !== 0) {
520
+ throw new Error('ciphertext must be multiple of ' + BLOCK_SIZE);
521
+ }
522
+ // Validate caller-provided output before key expansion; allocation happens after it.
523
+ if (dst !== undefined) {
524
+ getOutput(data.length, dst);
525
+ complexOverlapBytes(data, dst);
526
+ }
527
+ }
528
+
529
+ // ECB/CBC core modes operate on whole blocks; `pkcs5` enables the library's
530
+ // PKCS#7/CMS-compatible final-block padding convenience before encryption.
531
+ function validateBlockEncrypt(plaintext: TArg<Uint8Array>, pkcs5: boolean, dst?: TArg<Uint8Array>) {
532
+ abytes(plaintext);
533
+ let outLen = plaintext.length;
534
+ const remaining = outLen % BLOCK_SIZE;
535
+ if (!pkcs5 && remaining !== 0) throw new Error('plaintext must be multiple of ' + BLOCK_SIZE);
536
+ if (pkcs5) {
537
+ let left = BLOCK_SIZE - remaining;
538
+ // RFC 5652 pads even already-aligned inputs, so a full extra block is
539
+ // appended when the plaintext length is already a multiple of 16 bytes.
540
+ if (!left) left = BLOCK_SIZE; // if no bytes left, create empty padding block
541
+ outLen = outLen + left;
542
+ }
543
+ // Validate caller-provided output before key expansion; allocation happens after it.
544
+ if (dst !== undefined) {
545
+ getOutput(outLen, dst);
546
+ complexOverlapBytes(plaintext, dst);
547
+ }
548
+ return outLen;
549
+ }
550
+
551
+ function prepareBlockEncrypt(plaintext: TArg<Uint8Array>, outLen: number, dst?: TArg<Uint8Array>) {
552
+ if (dst === undefined) dst = new Uint8Array(outLen);
553
+ // Copy on BE or misaligned inputs so u32()/swap32IfBE() normalization never
554
+ // mutates caller plaintext bytes in place before ECB/CBC processing.
555
+ if (!isLE || !isAligned32(plaintext)) plaintext = copyBytes(plaintext);
556
+ const o = u32(dst);
557
+ // Keep the full byte owner so callers can wipe a conditional copy without rebuilding a view.
558
+ return { b: plaintext, o, out: dst };
559
+ }
560
+
561
+ // `pkcs5` is the historical option name; for AES's 16-byte block this is the
562
+ // generic PKCS#7/CMS-style block-padding rule on decrypt.
563
+ function validatePKCS(data: TArg<Uint8Array>, pkcs5: boolean): TRet<Uint8Array> {
564
+ if (!pkcs5) return data as TRet<Uint8Array>;
565
+
566
+ const len = data.length;
567
+ // RFC 5652 pads even empty / already-aligned inputs, so a valid padded
568
+ // ECB/CBC ciphertext is never empty when PKCS#7/CMS unpadding is enabled.
569
+ // AES-CBC/ECB ciphertext should be full blocks before unpadding
570
+ if (len === 0) throw new Error('pkcs7: empty ciphertext not allowed');
571
+ const lastByte = data[len - 1];
572
+ let valid = 1;
573
+ valid &= ((lastByte - 1) >>> 31) ^ 1; // pad >= 1
574
+ valid &= ((16 - lastByte) >>> 31) ^ 1; // pad <= 16
575
+ // Check exactly 16 tail bytes in constant-shape loop
576
+ // For i < pad: byte must equal pad
577
+ // For i >= pad: ignore byte
578
+ for (let i = 0; i < 16; i++) {
579
+ // const b = data[len - 1 - i];
580
+ const shouldCheck = (i - lastByte) >>> 31; // 1 if i < pad else 0
581
+ const eq = (data[len - 1 - i] ^ lastByte) === 0 ? 1 : 0; // 1 if equal
582
+ valid &= eq | (shouldCheck ^ 1); // pass if equal OR not checked
583
+ }
584
+
585
+ // if (invalidLen) throw new Error('aes/pkcs7: ciphertext length must be multiple of 16');
586
+ // Padding rejection is observable as a decrypt failure; authenticate CBC/ECB
587
+ // ciphertexts before decrypting or use `disablePadding` in a higher-level protocol.
588
+ if (!valid) throw new Error('aes: bad decrypt');
589
+ return data.subarray(0, len - lastByte) as TRet<Uint8Array>;
590
+ }
591
+
592
+ // ECB/CBC callers only pass the final short block here, so `left.length` is
593
+ // 0..15 and the helper always emits exactly one padded 16-byte block.
594
+ function padPCKS(left: TArg<Uint8Array>): TRet<Uint32Array> {
595
+ const tmp = new Uint8Array(16);
596
+ const tmp32 = u32(tmp);
597
+ tmp.set(left);
598
+ const paddingByte = BLOCK_SIZE - left.length;
599
+ // RFC 5652 §6.3 fills the whole suffix with the padding length byte:
600
+ // e.g. `aa 0f..0f` for a 1-byte tail, or `10..10` for a full extra block.
601
+ for (let i = BLOCK_SIZE - paddingByte; i < BLOCK_SIZE; i++) tmp[i] = paddingByte;
602
+ return tmp32;
603
+ }
604
+
605
+ /** Options for ECB and CBC. */
606
+ export type BlockOpts = {
607
+ /**
608
+ * Disable the library's PKCS#7 padding/unpadding layer and require exact-block inputs.
609
+ * Use this when a higher-level authenticated protocol handles padding itself.
610
+ */
611
+ disablePadding?: boolean;
612
+ };
613
+
614
+ /**
615
+ * **ECB** (Electronic Codebook): Deterministic encryption; identical plaintext blocks yield
616
+ * identical ciphertexts. Not secure due to pattern leakage.
617
+ * See {@link https://words.filippo.io/the-ecb-penguin/ | the AES Penguin}.
618
+ * @param key - AES key bytes.
619
+ * @param opts - Padding options. See {@link BlockOpts}.
620
+ * @returns Cipher instance with `encrypt()` and `decrypt()`.
621
+ * @example
622
+ * Shows the basic ECB encrypt call shape with a fresh key; avoid ECB in new designs.
623
+ *
624
+ * ```ts
625
+ * import { ecb } from '@noble/ciphers/aes.js';
626
+ * import { randomBytes } from '@noble/ciphers/utils.js';
627
+ * const key = randomBytes(16);
628
+ * const cipher = ecb(key);
629
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
630
+ * ```
631
+ */
632
+ export const ecb: TRet<
633
+ ((key: TArg<Uint8Array>, opts?: BlockOpts) => CipherWithOutput) & {
634
+ blockSize: number;
635
+ }
636
+ > = /* @__PURE__ */ wrapCipher(
637
+ { blockSize: 16 },
638
+ function aesecb(key: TArg<Uint8Array>, opts: BlockOpts = {}): TRet<CipherWithOutput> {
639
+ const pkcs5 = !opts.disablePadding;
640
+ return {
641
+ encrypt(plaintext: TArg<Uint8Array>, dst?: TArg<Uint8Array>): TRet<Uint8Array> {
642
+ const outLen = validateBlockEncrypt(plaintext, pkcs5, dst);
643
+ const xk = expandKeyLE(key);
644
+ const { b: input, o, out: _out } = prepareBlockEncrypt(plaintext, outLen, dst);
645
+ const b = u32(input);
646
+ swap32IfBE(b);
647
+ let i = 0;
648
+ for (; i + 4 <= b.length;) {
649
+ const { s0, s1, s2, s3 } = encrypt(xk, b[i + 0], b[i + 1], b[i + 2], b[i + 3]);
650
+ ((o[i++] = s0), (o[i++] = s1), (o[i++] = s2), (o[i++] = s3));
651
+ }
652
+ if (pkcs5) {
653
+ const tmp32 = padPCKS(plaintext.subarray(i * 4));
654
+ swap32IfBE(tmp32);
655
+ const { s0, s1, s2, s3 } = encrypt(xk, tmp32[0], tmp32[1], tmp32[2], tmp32[3]);
656
+ ((o[i++] = s0), (o[i++] = s1), (o[i++] = s2), (o[i++] = s3));
657
+ // The padding scratch contains the final plaintext tail; wipe it as soon as consumed.
658
+ clean(tmp32);
659
+ }
660
+ swap32IfBE(o);
661
+ clean(xk);
662
+ if (input !== plaintext) clean(input);
663
+ return _out as TRet<Uint8Array>;
664
+ },
665
+ decrypt(ciphertext: TArg<Uint8Array>, dst?: TArg<Uint8Array>): TRet<Uint8Array> {
666
+ // Validate inputs before expanding the key, so a validation throw
667
+ // never leaves an unwiped expanded key behind.
668
+ validateBlockDecrypt(ciphertext, dst);
669
+ const xk = expandKeyDecLE(key);
670
+ if (dst === undefined) dst = new Uint8Array(ciphertext.length);
671
+ const toClean: (Uint8Array | Uint32Array)[] = [xk];
672
+ // Copy on BE or misaligned ciphertext so u32()/swap32IfBE()
673
+ // normalization never mutates caller bytes in place before decrypt().
674
+ if (!isLE || !isAligned32(ciphertext)) toClean.push((ciphertext = copyBytes(ciphertext)));
675
+ const b = u32(ciphertext);
676
+ const o = u32(dst);
677
+ swap32IfBE(b);
678
+ for (let i = 0; i + 4 <= b.length;) {
679
+ const { s0, s1, s2, s3 } = decrypt(xk, b[i + 0], b[i + 1], b[i + 2], b[i + 3]);
680
+ ((o[i++] = s0), (o[i++] = s1), (o[i++] = s2), (o[i++] = s3));
681
+ }
682
+ swap32IfBE(o);
683
+ clean(...toClean);
684
+ return validatePKCS(dst, pkcs5) as TRet<Uint8Array>;
685
+ },
686
+ } as TRet<CipherWithOutput>;
687
+ }
688
+ );
689
+
690
+ /**
691
+ * **CBC** (Cipher Block Chaining): Each plaintext block is XORed with the
692
+ * previous block of ciphertext before encryption.
693
+ * Hard to use: requires proper padding and an unpredictable IV. Unauthenticated: needs MAC.
694
+ * Bad padding is reported as decrypt failure, which can be a padding oracle if exposed.
695
+ * @param key - AES key bytes.
696
+ * @param iv - 16-byte unpredictable initialization vector.
697
+ * @param opts - Padding options. See {@link BlockOpts}.
698
+ * @returns Cipher instance with `encrypt()` and `decrypt()`.
699
+ * @example
700
+ * Encrypts a padded message with a fresh key and 16-byte IV.
701
+ *
702
+ * ```ts
703
+ * import { cbc } from '@noble/ciphers/aes.js';
704
+ * import { randomBytes } from '@noble/ciphers/utils.js';
705
+ * const key = randomBytes(16);
706
+ * const iv = randomBytes(16);
707
+ * const cipher = cbc(key, iv);
708
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
709
+ * ```
710
+ */
711
+ export const cbc: TRet<
712
+ ((key: TArg<Uint8Array>, iv: TArg<Uint8Array>, opts?: BlockOpts) => CipherWithOutput) & {
713
+ blockSize: number;
714
+ nonceLength: number;
715
+ }
716
+ > = /* @__PURE__ */ wrapCipher(
717
+ { blockSize: 16, nonceLength: 16 },
718
+ function aescbc(
719
+ key: TArg<Uint8Array>,
720
+ iv: TArg<Uint8Array>,
721
+ opts: BlockOpts = {}
722
+ ): TRet<CipherWithOutput> {
723
+ const pkcs5 = !opts.disablePadding;
724
+ return {
725
+ encrypt(plaintext: TArg<Uint8Array>, dst?: TArg<Uint8Array>): TRet<Uint8Array> {
726
+ // Validate inputs before expanding the key, so a validation throw
727
+ // never leaves an unwiped expanded key behind.
728
+ const outLen = validateBlockEncrypt(plaintext, pkcs5, dst);
729
+ const xk = expandKeyLE(key);
730
+ const { b: input, o, out: _out } = prepareBlockEncrypt(plaintext, outLen, dst);
731
+ const b = u32(input);
732
+ swap32IfBE(b);
733
+ let _iv = iv;
734
+ const toClean: (Uint8Array | Uint32Array)[] = [xk];
735
+ // Copy on BE or misaligned inputs so IV normalization and the mutable
736
+ // local chaining state never write back into caller IV bytes.
737
+ if (!isLE || !isAligned32(_iv)) toClean.push((_iv = copyBytes(_iv)));
738
+ const n32 = u32(_iv);
739
+ swap32IfBE(n32);
740
+ // prettier-ignore
741
+ let s0 = n32[0], s1 = n32[1], s2 = n32[2], s3 = n32[3];
742
+ let i = 0;
743
+ for (; i + 4 <= b.length;) {
744
+ ((s0 ^= b[i + 0]), (s1 ^= b[i + 1]), (s2 ^= b[i + 2]), (s3 ^= b[i + 3]));
745
+ ({ s0, s1, s2, s3 } = encrypt(xk, s0, s1, s2, s3));
746
+ ((o[i++] = s0), (o[i++] = s1), (o[i++] = s2), (o[i++] = s3));
747
+ }
748
+ if (pkcs5) {
749
+ const tmp32 = padPCKS(plaintext.subarray(i * 4));
750
+ swap32IfBE(tmp32);
751
+ ((s0 ^= tmp32[0]), (s1 ^= tmp32[1]), (s2 ^= tmp32[2]), (s3 ^= tmp32[3]));
752
+ ({ s0, s1, s2, s3 } = encrypt(xk, s0, s1, s2, s3));
753
+ ((o[i++] = s0), (o[i++] = s1), (o[i++] = s2), (o[i++] = s3));
754
+ // The padding scratch contains the final plaintext tail; wipe it as soon as consumed.
755
+ clean(tmp32);
756
+ }
757
+ swap32IfBE(o);
758
+ clean(...toClean);
759
+ if (input !== plaintext) clean(input);
760
+ return _out as TRet<Uint8Array>;
761
+ },
762
+ decrypt(ciphertext: TArg<Uint8Array>, dst?: TArg<Uint8Array>): TRet<Uint8Array> {
763
+ // Validate inputs before expanding the key, so a validation throw
764
+ // never leaves an unwiped expanded key behind.
765
+ validateBlockDecrypt(ciphertext, dst);
766
+ const xk = expandKeyDecLE(key);
767
+ if (dst === undefined) dst = new Uint8Array(ciphertext.length);
768
+ let _iv = iv;
769
+ const toClean: (Uint8Array | Uint32Array)[] = [xk];
770
+ // Copy on BE or misaligned inputs so IV normalization and the mutable
771
+ // local chaining state never write back into caller IV bytes.
772
+ if (!isLE || !isAligned32(_iv)) toClean.push((_iv = copyBytes(_iv)));
773
+ const n32 = u32(_iv);
774
+ swap32IfBE(n32);
775
+ // Copy on BE or misaligned ciphertext so u32()/swap32IfBE()
776
+ // normalization never mutates caller bytes in place before decrypt().
777
+ if (!isLE || !isAligned32(ciphertext)) toClean.push((ciphertext = copyBytes(ciphertext)));
778
+ const b = u32(ciphertext);
779
+ const o = u32(dst);
780
+ swap32IfBE(b);
781
+ // prettier-ignore
782
+ let s0 = n32[0], s1 = n32[1], s2 = n32[2], s3 = n32[3];
783
+ for (let i = 0; i + 4 <= b.length;) {
784
+ // prettier-ignore
785
+ const ps0 = s0, ps1 = s1, ps2 = s2, ps3 = s3;
786
+ ((s0 = b[i + 0]), (s1 = b[i + 1]), (s2 = b[i + 2]), (s3 = b[i + 3]));
787
+ const { s0: o0, s1: o1, s2: o2, s3: o3 } = decrypt(xk, s0, s1, s2, s3);
788
+ ((o[i++] = o0 ^ ps0), (o[i++] = o1 ^ ps1), (o[i++] = o2 ^ ps2), (o[i++] = o3 ^ ps3));
789
+ }
790
+ swap32IfBE(o);
791
+ clean(...toClean);
792
+ return validatePKCS(dst, pkcs5) as TRet<Uint8Array>;
793
+ },
794
+ } as TRet<CipherWithOutput>;
795
+ }
796
+ );
797
+
798
+ /**
799
+ * CFB (CFB-128): Cipher Feedback Mode with 128-bit segments. The input for the
800
+ * block cipher is the previous cipher output.
801
+ * Unauthenticated: needs MAC.
802
+ * @param key - AES key bytes.
803
+ * @param iv - 16-byte unpredictable initialization vector.
804
+ * @returns Cipher instance with `encrypt()` and `decrypt()`.
805
+ * @example
806
+ * Encrypts a short message with feedback mode and a fresh key/IV pair.
807
+ *
808
+ * ```ts
809
+ * import { cfb } from '@noble/ciphers/aes.js';
810
+ * import { randomBytes } from '@noble/ciphers/utils.js';
811
+ * const key = randomBytes(16);
812
+ * const iv = randomBytes(16);
813
+ * const cipher = cfb(key, iv);
814
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
815
+ * ```
816
+ */
817
+ export const cfb: TRet<
818
+ ((key: TArg<Uint8Array>, iv: TArg<Uint8Array>) => CipherWithOutput) & {
819
+ blockSize: number;
820
+ nonceLength: number;
821
+ }
822
+ > = /* @__PURE__ */ wrapCipher(
823
+ { blockSize: 16, nonceLength: 16 },
824
+ function aescfb(key: TArg<Uint8Array>, iv: TArg<Uint8Array>): TRet<CipherWithOutput> {
825
+ function processCfb(
826
+ src: TArg<Uint8Array>,
827
+ isEncrypt: boolean,
828
+ dst?: TArg<Uint8Array>
829
+ ): TRet<Uint8Array> {
830
+ abytes(src);
831
+ const srcLen = src.length;
832
+ dst = getOutput(srcLen, dst);
833
+ // CFB feeds back previous ciphertext, so overlapping src/dst could
834
+ // overwrite bytes that are still needed as the next feedback block.
835
+ if (overlapBytes(src, dst)) throw new Error('overlapping src and dst not supported');
836
+ const xk = expandKeyLE(key);
837
+ let _iv = iv;
838
+ const toClean: (Uint8Array | Uint32Array)[] = [xk];
839
+ // Copy on BE or misaligned inputs so u32()/swap32IfBE() normalization
840
+ // never mutates caller IV/src bytes in place before CFB processing.
841
+ if (!isLE || !isAligned32(_iv)) toClean.push((_iv = copyBytes(_iv)));
842
+ if (!isLE || !isAligned32(src)) toClean.push((src = copyBytes(src)));
843
+ const src32 = u32(src);
844
+ const dst32 = u32(dst);
845
+ // NIST SP 800-38A §6.3 feeds back the previous ciphertext segment in
846
+ // both directions: encrypt reuses freshly written dst words, decrypt
847
+ // reuses the source ciphertext words.
848
+ const next32 = isEncrypt ? dst32 : src32;
849
+ const n32 = u32(_iv);
850
+ swap32IfBE(src32);
851
+ swap32IfBE(n32);
852
+ // prettier-ignore
853
+ let s0 = n32[0], s1 = n32[1], s2 = n32[2], s3 = n32[3];
854
+ for (let i = 0; i + 4 <= src32.length;) {
855
+ const { s0: e0, s1: e1, s2: e2, s3: e3 } = encrypt(xk, s0, s1, s2, s3);
856
+ dst32[i + 0] = src32[i + 0] ^ e0;
857
+ dst32[i + 1] = src32[i + 1] ^ e1;
858
+ dst32[i + 2] = src32[i + 2] ^ e2;
859
+ dst32[i + 3] = src32[i + 3] ^ e3;
860
+ ((s0 = next32[i++]), (s1 = next32[i++]), (s2 = next32[i++]), (s3 = next32[i++]));
861
+ }
862
+ // leftovers (less than block)
863
+ const start = BLOCK_SIZE * Math.floor(src32.length / BLOCK_SIZE32);
864
+ if (start < srcLen) {
865
+ // The byte tail loop reads `src` directly; restore any BE-swapped tail words first.
866
+ if (!isLE) swap32IfBE(src32.subarray(start / 4));
867
+ // Byte-oriented API: for a final short tail, reuse the next CFB-128
868
+ // output block and XOR only the needed prefix. RFC 3826 §3.1.3 /
869
+ // §3.1.4 describes the same no-padding rule at bit granularity for a
870
+ // final r<=128 segment.
871
+ ({ s0, s1, s2, s3 } = encrypt(xk, s0, s1, s2, s3));
872
+ const tmp = new Uint32Array([s0, s1, s2, s3]);
873
+ swap32IfBE(tmp);
874
+ const buf = u8(tmp);
875
+ for (let i = start, pos = 0; i < srcLen; i++, pos++) dst[i] = src[i] ^ buf[pos];
876
+ clean(buf);
877
+ }
878
+ if (!isLE) swap32IfBE(dst32.subarray(0, start / 4));
879
+ clean(...toClean);
880
+ return dst as TRet<Uint8Array>;
881
+ }
882
+ return {
883
+ encrypt: (plaintext: TArg<Uint8Array>, dst?: TArg<Uint8Array>) =>
884
+ processCfb(plaintext, true, dst),
885
+ decrypt: (ciphertext: TArg<Uint8Array>, dst?: TArg<Uint8Array>) =>
886
+ processCfb(ciphertext, false, dst),
887
+ } as TRet<CipherWithOutput>;
888
+ }
889
+ );
890
+
891
+ // TODO: merge with chacha, however gcm has bitLen while chacha has byteLen
892
+ // `data` is the payload covered by the polynomial MAC: ciphertext for GCM,
893
+ // plaintext for GCM-SIV. Keep AAD/data/length as separate updates because
894
+ // GHASH/POLYVAL pad each call to block boundaries, so the chunks must match the
895
+ // spec-defined segments instead of arbitrary concatenation boundaries.
896
+ function computeTag(
897
+ fn: typeof ghash,
898
+ isLE: boolean,
899
+ key: TArg<Uint8Array>,
900
+ data: TArg<Uint8Array>,
901
+ AAD?: TArg<Uint8Array>
902
+ ): TRet<Uint8Array> {
903
+ const aadLength = AAD ? AAD.length : 0;
904
+ const h = fn.create(key, data.length + aadLength);
905
+ if (AAD) h.update(AAD);
906
+ // u64Lengths() takes (dataBits, aadBits) but still serializes the final
907
+ // block as len(AAD) || len(data), matching both GCM and GCM-SIV.
908
+ const num = u64Lengths(8 * data.length, 8 * aadLength, isLE);
909
+ h.update(data);
910
+ h.update(num);
911
+ const res = h.digest();
912
+ clean(num);
913
+ return res;
914
+ }
915
+
916
+ /**
917
+ * **GCM** (Galois/Counter Mode): Combines CTR mode with polynomial MAC. Efficient and widely used.
918
+ * Not perfect:
919
+ * a) conservative key wear-out is `2**32` (4B) msgs.
920
+ * b) key wear-out under random nonces is even smaller: `2**23` (8M) messages for `2**-50` chance.
921
+ * c) MAC can be forged: see Poly1305 documentation.
922
+ * @param key - AES key bytes.
923
+ * @param nonce - Nonce bytes (12 recommended, minimum 8; other lengths use GHASH J0 derivation).
924
+ * @param AAD - Additional authenticated data.
925
+ * @returns AEAD cipher instance with a fixed 16-byte tag.
926
+ * @example
927
+ * Encrypts and authenticates plaintext with a fresh key and 12-byte nonce.
928
+ *
929
+ * ```ts
930
+ * import { gcm } from '@noble/ciphers/aes.js';
931
+ * import { randomBytes } from '@noble/ciphers/utils.js';
932
+ * const key = randomBytes(16);
933
+ * const nonce = randomBytes(12);
934
+ * const aad = new TextEncoder().encode('session metadata');
935
+ * const cipher = gcm(key, nonce, aad);
936
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
937
+ * ```
938
+ */
939
+ export const gcm: TRet<
940
+ ((key: TArg<Uint8Array>, nonce: TArg<Uint8Array>, AAD?: TArg<Uint8Array>) => Cipher) & {
941
+ blockSize: number;
942
+ nonceLength: number;
943
+ tagLength: number;
944
+ withAAD: true;
945
+ varSizeNonce: true;
946
+ }
947
+ > = /* @__PURE__ */ wrapCipher(
948
+ { blockSize: 16, nonceLength: 12, tagLength: 16, withAAD: true, varSizeNonce: true },
949
+ function aesgcm(
950
+ key: TArg<Uint8Array>,
951
+ nonce: TArg<Uint8Array>,
952
+ AAD?: TArg<Uint8Array>
953
+ ): TRet<Cipher> {
954
+ // SP 800-38D lets implementations narrow supported IV lengths.
955
+ // This wrapper intentionally requires at least 8 bytes; OpenSSL accepts shorter IVs too.
956
+ // 12-byte nonces take the fast path; other allowed lengths use GHASH to derive J0.
957
+ if (nonce.length < 8) throw new Error('aes/gcm: invalid nonce length');
958
+ const tagLength = 16;
959
+ function _computeTag(
960
+ authKey: TArg<Uint8Array>,
961
+ tagMask: TArg<Uint8Array>,
962
+ data: TArg<Uint8Array>
963
+ ): TRet<Uint8Array> {
964
+ const tag = computeTag(ghash, false, authKey, data, AAD);
965
+ for (let i = 0; i < tagMask.length; i++) tag[i] ^= tagMask[i];
966
+ return tag;
967
+ }
968
+ function deriveKeys() {
969
+ const xk = expandKeyLE(key);
970
+ const authKey = EMPTY_BLOCK.slice();
971
+ const counter = EMPTY_BLOCK.slice();
972
+ ctr32(xk, false, counter, counter, authKey);
973
+ // NIST 800-38d, page 15: different behavior for 96-bit and non-96-bit nonces
974
+ if (nonce.length === 12) {
975
+ counter.set(nonce);
976
+ } else {
977
+ const nonceLen = EMPTY_BLOCK.slice();
978
+ const view = createView(nonceLen);
979
+ view.setBigUint64(8, BigInt(nonce.length * 8), false);
980
+ // GHASH.update() pads each call to 16 bytes, so
981
+ // update(nonce).update(nonceLen) realizes
982
+ // IV || 0^s || 0^64 || [len(IV)]_64 for non-96-bit nonces.
983
+ // ghash(nonce || u64be(0) || u64be(nonceLen*8))
984
+ const g = ghash.create(authKey).update(nonce).update(nonceLen);
985
+ g.digestInto(counter); // digestInto doesn't trigger '.destroy'
986
+ g.destroy();
987
+ }
988
+ // GCTR_K(J0, 0^128) = E_K(J0); reusing ctr32() here extracts that tag
989
+ // mask and leaves `counter` advanced to inc32(J0) for payload GCTR.
990
+ const tagMask = ctr32(xk, false, counter, EMPTY_BLOCK);
991
+ return { xk, authKey, counter, tagMask };
992
+ }
993
+ return {
994
+ encrypt(plaintext: TArg<Uint8Array>): TRet<Uint8Array> {
995
+ const { xk, authKey, counter, tagMask } = deriveKeys();
996
+ const out = new Uint8Array(plaintext.length + tagLength);
997
+ const toClean: (Uint8Array | Uint32Array)[] = [xk, authKey, counter, tagMask];
998
+ if (!isAligned32(plaintext)) toClean.push((plaintext = copyBytes(plaintext)));
999
+ ctr32(xk, false, counter, plaintext, out.subarray(0, plaintext.length));
1000
+ const tag = _computeTag(authKey, tagMask, out.subarray(0, out.length - tagLength));
1001
+ toClean.push(tag);
1002
+ out.set(tag, plaintext.length);
1003
+ clean(...toClean);
1004
+ return out as TRet<Uint8Array>;
1005
+ },
1006
+ decrypt(ciphertext: TArg<Uint8Array>): TRet<Uint8Array> {
1007
+ const { xk, authKey, counter, tagMask } = deriveKeys();
1008
+ const toClean: (Uint8Array | Uint32Array)[] = [xk, authKey, tagMask, counter];
1009
+ if (!isAligned32(ciphertext)) toClean.push((ciphertext = copyBytes(ciphertext)));
1010
+ const data = ciphertext.subarray(0, -tagLength);
1011
+ const passedTag = ciphertext.subarray(-tagLength);
1012
+ const tag = _computeTag(authKey, tagMask, data);
1013
+ toClean.push(tag);
1014
+ // NIST SP 800-38D §7.2 permits equivalent step orderings; verify the
1015
+ // tag before CTR so unauthenticated plaintext is never materialized.
1016
+ if (!equalBytes(tag, passedTag)) {
1017
+ clean(...toClean);
1018
+ throw new Error('aes-gcm: invalid tag');
1019
+ }
1020
+ const out = ctr32(xk, false, counter, data);
1021
+ clean(...toClean);
1022
+ return out as TRet<Uint8Array>;
1023
+ },
1024
+ } as TRet<Cipher>;
1025
+ }
1026
+ );
1027
+
1028
+ const limit = (name: string, min: number, max: number) => (value: number) => {
1029
+ // Current AES-SIV/GCM-SIV callers pass protocol limits from RFC 8452 / RFC 5297,
1030
+ // not arbitrary library-preference bounds.
1031
+ // Callers feed Uint8Array.length values here, so safe-integer rejection
1032
+ // does not exclude any representable input even when an RFC bound is larger.
1033
+ if (!Number.isSafeInteger(value) || min > value || value > max) {
1034
+ const minmax = '[' + min + '..' + max + ']';
1035
+ throw new Error('' + name + ': expected value in range ' + minmax + ', got ' + value);
1036
+ }
1037
+ };
1038
+
1039
+ /**
1040
+ * **SIV** (Synthetic IV): GCM with nonce-misuse resistance.
1041
+ * Repeating nonces reveal only the fact plaintexts are identical.
1042
+ * Also suffers from GCM issues: key wear-out limits & MAC forging.
1043
+ * See {@link https://www.rfc-editor.org/rfc/rfc8452 | RFC 8452}.
1044
+ * RFC 8452 defines 16-byte and 32-byte AES keys for this mode.
1045
+ * This implementation also accepts 24-byte AES-192 keys as a local
1046
+ * extension; see the inline comment next to `validateKeyLength(key)` below
1047
+ * for the exact scope note.
1048
+ * @param key - AES key bytes.
1049
+ * @param nonce - 12-byte nonce.
1050
+ * @param AAD - Additional authenticated data.
1051
+ * @returns AEAD cipher instance.
1052
+ * @example
1053
+ * Encrypts and authenticates plaintext with a fresh key and nonce, while tolerating reuse.
1054
+ *
1055
+ * ```ts
1056
+ * import { gcmsiv } from '@noble/ciphers/aes.js';
1057
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1058
+ * const key = randomBytes(16);
1059
+ * const nonce = randomBytes(12);
1060
+ * const aad = new TextEncoder().encode('session metadata');
1061
+ * const cipher = gcmsiv(key, nonce, aad);
1062
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
1063
+ * ```
1064
+ */
1065
+ export const gcmsiv: TRet<
1066
+ ((key: TArg<Uint8Array>, nonce: TArg<Uint8Array>, AAD?: TArg<Uint8Array>) => Cipher) & {
1067
+ blockSize: number;
1068
+ nonceLength: number;
1069
+ tagLength: number;
1070
+ withAAD: true;
1071
+ varSizeNonce: true;
1072
+ }
1073
+ > = /* @__PURE__ */ wrapCipher(
1074
+ { blockSize: 16, nonceLength: 12, tagLength: 16, withAAD: true, varSizeNonce: true },
1075
+ function aessiv(
1076
+ key: TArg<Uint8Array>,
1077
+ nonce: TArg<Uint8Array>,
1078
+ AAD?: TArg<Uint8Array>
1079
+ ): TRet<Cipher> {
1080
+ const tagLength = 16;
1081
+ // From RFC 8452: Section 6
1082
+ const AAD_LIMIT = limit('AAD', 0, 2 ** 36);
1083
+ const PLAIN_LIMIT = limit('plaintext', 0, 2 ** 36);
1084
+ const NONCE_LIMIT = limit('nonce', 12, 12);
1085
+ const CIPHER_LIMIT = limit('ciphertext', 16, 2 ** 36 + 16);
1086
+ abytes(key);
1087
+ // RFC 8452 only standardizes 16-byte and 32-byte key-generating keys.
1088
+ // The accepted 24-byte path is a local AES-192 extension outside the RFC-defined AEADs.
1089
+ validateKeyLength(key);
1090
+ NONCE_LIMIT(nonce.length);
1091
+ if (AAD !== undefined) AAD_LIMIT(AAD.length);
1092
+ function deriveKeys() {
1093
+ const xk = expandKeyLE(key);
1094
+ const encKey = new Uint8Array(key.length);
1095
+ const authKey = new Uint8Array(16);
1096
+ const toClean: (Uint8Array | Uint32Array)[] = [xk, encKey];
1097
+ let _nonce = nonce;
1098
+ // Copy on BE or misaligned nonce so u32()/swap32IfBE() normalization
1099
+ // never mutates caller nonce bytes before RFC 8452 key derivation.
1100
+ if (!isLE || !isAligned32(_nonce)) toClean.push((_nonce = copyBytes(_nonce)));
1101
+ const n32 = u32(_nonce);
1102
+ swap32IfBE(n32);
1103
+ // prettier-ignore
1104
+ let s0 = 0, s1 = n32[0], s2 = n32[1], s3 = n32[2];
1105
+ let counter = 0;
1106
+ for (const derivedKey of [authKey, encKey].map(u32)) {
1107
+ const d32 = u32(derivedKey);
1108
+ for (let i = 0; i < d32.length; i += 2) {
1109
+ // aes(u32le(0) || nonce)[:8] || aes(u32le(1) || nonce)[:8] ...
1110
+ const { s0: o0, s1: o1 } = encrypt(xk, s0, s1, s2, s3);
1111
+ d32[i + 0] = o0;
1112
+ d32[i + 1] = o1;
1113
+ s0 = ++counter; // increment counter inside state
1114
+ }
1115
+ swap32IfBE(d32);
1116
+ }
1117
+ const res = { authKey, encKey: expandKeyLE(encKey) };
1118
+ // Cleanup
1119
+ clean(...toClean);
1120
+ return res;
1121
+ }
1122
+ function _computeTag(
1123
+ encKey: TArg<Uint32Array>,
1124
+ authKey: TArg<Uint8Array>,
1125
+ data: TArg<Uint8Array>
1126
+ ): TRet<Uint8Array> {
1127
+ const tag = computeTag(polyval, true, authKey, data, AAD);
1128
+ // Compute the expected tag by XORing S_s and the nonce, clearing the
1129
+ // most significant bit of the last byte and encrypting with the
1130
+ // message-encryption key.
1131
+ for (let i = 0; i < 12; i++) tag[i] ^= nonce[i];
1132
+ tag[15] &= 0x7f; // Clear the highest bit
1133
+ // encrypt tag as block
1134
+ const t32 = u32(tag);
1135
+ swap32IfBE(t32);
1136
+ // prettier-ignore
1137
+ let s0 = t32[0], s1 = t32[1], s2 = t32[2], s3 = t32[3];
1138
+ ({ s0, s1, s2, s3 } = encrypt(encKey, s0, s1, s2, s3));
1139
+ ((t32[0] = s0), (t32[1] = s1), (t32[2] = s2), (t32[3] = s3));
1140
+ swap32IfBE(t32);
1141
+ return tag;
1142
+ }
1143
+ // actual decrypt/encrypt of message.
1144
+ function processSiv(
1145
+ encKey: TArg<Uint32Array>,
1146
+ tag: TArg<Uint8Array>,
1147
+ input: TArg<Uint8Array>
1148
+ ): TRet<Uint8Array> {
1149
+ let block = copyBytes(tag);
1150
+ // RFC 8452 §4 / §5 use the tag with the highest bit of the last byte
1151
+ // forced to one as the initial AES-CTR counter block.
1152
+ block[15] |= 0x80; // Force highest bit
1153
+ const res = ctr32(encKey, true, block, input);
1154
+ // Cleanup
1155
+ clean(block);
1156
+ return res;
1157
+ }
1158
+ return {
1159
+ encrypt(plaintext: TArg<Uint8Array>): TRet<Uint8Array> {
1160
+ PLAIN_LIMIT(plaintext.length);
1161
+ const { encKey, authKey } = deriveKeys();
1162
+ const tag = _computeTag(encKey, authKey, plaintext);
1163
+ const toClean: (Uint8Array | Uint32Array)[] = [encKey, authKey, tag];
1164
+ if (!isAligned32(plaintext)) toClean.push((plaintext = copyBytes(plaintext)));
1165
+ const out = new Uint8Array(plaintext.length + tagLength);
1166
+ out.set(tag, plaintext.length);
1167
+ out.set(processSiv(encKey, tag, plaintext));
1168
+ // Cleanup
1169
+ clean(...toClean);
1170
+ return out as TRet<Uint8Array>;
1171
+ },
1172
+ decrypt(ciphertext: TArg<Uint8Array>): TRet<Uint8Array> {
1173
+ CIPHER_LIMIT(ciphertext.length);
1174
+ const tag = ciphertext.subarray(-tagLength);
1175
+ const { encKey, authKey } = deriveKeys();
1176
+ const toClean: (Uint8Array | Uint32Array)[] = [encKey, authKey];
1177
+ if (!isAligned32(ciphertext)) toClean.push((ciphertext = copyBytes(ciphertext)));
1178
+ const plaintext = processSiv(encKey, tag, ciphertext.subarray(0, -tagLength));
1179
+ const expectedTag = _computeTag(encKey, authKey, plaintext);
1180
+ toClean.push(expectedTag);
1181
+ // RFC 8452 §5: plaintext is unauthenticated here and MUST NOT be
1182
+ // returned until the expected-tag check completes successfully.
1183
+ if (!equalBytes(tag, expectedTag)) {
1184
+ clean(plaintext, ...toClean);
1185
+ throw new Error('invalid polyval tag');
1186
+ }
1187
+ // Cleanup
1188
+ clean(...toClean);
1189
+ return plaintext as TRet<Uint8Array>;
1190
+ },
1191
+ } as TRet<Cipher>;
1192
+ }
1193
+ );
1194
+
1195
+ function isBytes32(a: unknown): a is Uint32Array {
1196
+ // Plain `instanceof Uint32Array` is too strict for cross-realm expanded-key views.
1197
+ // This is only a best-effort unsafe-export guard, not a provenance proof for `expandKeyLE`.
1198
+ return (
1199
+ a instanceof Uint32Array || (ArrayBuffer.isView(a) && a.constructor.name === 'Uint32Array')
1200
+ );
1201
+ }
1202
+
1203
+ // Unsafe single-block helpers: mutate `block` in place and require its 16-byte
1204
+ // Uint8Array view to be 4-byte aligned because `u32(block)` reinterprets it.
1205
+ function encryptBlock(xk: TArg<Uint32Array>, block: TArg<Uint8Array>): TRet<Uint8Array> {
1206
+ abytes(block, 16, 'block');
1207
+ if (!isBytes32(xk)) throw new Error('_encryptBlock accepts result of expandKeyLE');
1208
+ const b32 = u32(block);
1209
+ swap32IfBE(b32);
1210
+ let { s0, s1, s2, s3 } = encrypt(xk, b32[0], b32[1], b32[2], b32[3]);
1211
+ ((b32[0] = s0), (b32[1] = s1), (b32[2] = s2), (b32[3] = s3));
1212
+ swap32IfBE(b32);
1213
+ return block as TRet<Uint8Array>;
1214
+ }
1215
+
1216
+ function decryptBlock(xk: TArg<Uint32Array>, block: TArg<Uint8Array>): TRet<Uint8Array> {
1217
+ abytes(block, 16, 'block');
1218
+ if (!isBytes32(xk)) throw new Error('_decryptBlock accepts result of expandKeyLE');
1219
+ const b32 = u32(block);
1220
+ swap32IfBE(b32);
1221
+ let { s0, s1, s2, s3 } = decrypt(xk, b32[0], b32[1], b32[2], b32[3]);
1222
+ ((b32[0] = s0), (b32[1] = s1), (b32[2] = s2), (b32[3] = s3));
1223
+ swap32IfBE(b32);
1224
+ return block as TRet<Uint8Array>;
1225
+ }
1226
+
1227
+ /**
1228
+ * AES-W (base for AESKW/AESKWP).
1229
+ * Specs:
1230
+ * {@link https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38F.pdf | SP800-38F},
1231
+ * {@link https://www.rfc-editor.org/rfc/rfc3394 | RFC 3394},
1232
+ * {@link https://www.rfc-editor.org/rfc/rfc5649 | RFC 5649}.
1233
+ * Shared core mutates `out` in place; callers are responsible for prepending
1234
+ * the right IV/AIV and checking the recovered value after decrypt.
1235
+ */
1236
+ const AESW = {
1237
+ /*
1238
+ High-level pseudocode:
1239
+ ```
1240
+ A: u64 = IV
1241
+ out = []
1242
+ for (let i=0, ctr = 0; i<6; i++) {
1243
+ for (const chunk of chunks(plaintext, 8)) {
1244
+ A ^= swapEndianess(ctr++)
1245
+ [A, res] = chunks(encrypt(A || chunk), 8);
1246
+ out ||= res
1247
+ }
1248
+ }
1249
+ out = A || out
1250
+ ```
1251
+ Decrypt is the same, but reversed.
1252
+ */
1253
+ encrypt(kek: TArg<Uint8Array>, out: TArg<Uint8Array>) {
1254
+ // Current implementation keeps RFC 3394/5649 `t` in a u32-shaped counter,
1255
+ // so the shared core caps plaintext below 4 GiB even though the specs allow more.
1256
+ if (out.length >= 2 ** 32) throw new Error('plaintext should be less than 4gb');
1257
+ const xk = expandKeyLE(kek);
1258
+ // 16-byte `S = A || P[1]` is the RFC 5649 KWP special case for n=1;
1259
+ // KW callers never reach it because KW requires at least two plaintext semiblocks.
1260
+ if (out.length === 16) encryptBlock(xk, out);
1261
+ else {
1262
+ const o32 = u32(out);
1263
+ swap32IfBE(o32);
1264
+ // prettier-ignore
1265
+ let a0 = o32[0], a1 = o32[1]; // A
1266
+ for (let j = 0, ctr = 1; j < 6; j++) {
1267
+ for (let pos = 2; pos < o32.length; pos += 2, ctr++) {
1268
+ const { s0, s1, s2, s3 } = encrypt(xk, a0, a1, o32[pos], o32[pos + 1]);
1269
+ // A = MSB(64, B) ^ t where t = (n*j)+i. Under the 32-bit length cap
1270
+ // above, `t` fits in the low half of `[t]_64`, so xor only the low
1271
+ // 32 bits of A after converting `ctr` to network order.
1272
+ ((a0 = s0), (a1 = s1 ^ byteSwap(ctr)), (o32[pos] = s2), (o32[pos + 1] = s3));
1273
+ }
1274
+ }
1275
+ ((o32[0] = a0), (o32[1] = a1)); // out = A || out
1276
+ swap32IfBE(o32);
1277
+ }
1278
+ xk.fill(0);
1279
+ },
1280
+ decrypt(kek: TArg<Uint8Array>, out: TArg<Uint8Array>) {
1281
+ // Same implementation cap on the recovered plaintext length after
1282
+ // removing the 8-byte A/IV prefix.
1283
+ if (out.length - 8 >= 2 ** 32) throw new Error('ciphertext should be less than 4gb');
1284
+ const xk = expandKeyDecLE(kek);
1285
+ const chunks = out.length / 8 - 1; // first chunk is IV
1286
+ // `n = 2` semiblocks is the RFC 5649 KWP special case; KW ciphertexts
1287
+ // always have at least three semiblocks and therefore use the W^-1 loop.
1288
+ if (chunks === 1) decryptBlock(xk, out);
1289
+ else {
1290
+ const o32 = u32(out);
1291
+ swap32IfBE(o32);
1292
+ // prettier-ignore
1293
+ let a0 = o32[0], a1 = o32[1]; // A
1294
+ for (let j = 0, ctr = chunks * 6; j < 6; j++) {
1295
+ for (let pos = chunks * 2; pos >= 1; pos -= 2, ctr--) {
1296
+ a1 ^= byteSwap(ctr);
1297
+ const { s0, s1, s2, s3 } = decrypt(xk, a0, a1, o32[pos], o32[pos + 1]);
1298
+ ((a0 = s0), (a1 = s1), (o32[pos] = s2), (o32[pos + 1] = s3));
1299
+ }
1300
+ }
1301
+ ((o32[0] = a0), (o32[1] = a1));
1302
+ swap32IfBE(o32);
1303
+ }
1304
+ xk.fill(0);
1305
+ },
1306
+ };
1307
+
1308
+ // RFC 3394 §2.2.3.1 / NIST SP 800-38F Algorithm 3 / Algorithm 4: KW prepends
1309
+ // the default 64-bit ICV1 and unwrap must verify the same value.
1310
+ const AESKW_IV = /* @__PURE__ */ new Uint8Array(8).fill(0xa6); // A6A6A6A6A6A6A6A6
1311
+
1312
+ /**
1313
+ * AES-KW (key-wrap). Injects static IV into plaintext, adds counter, encrypts 6 times.
1314
+ * Reduces block size from 16 to 8 bytes.
1315
+ * Plaintext must be a non-empty multiple of 8 bytes with minimum 16 bytes.
1316
+ * 8-byte inputs use aeskwp.
1317
+ * Wrapped ciphertext must be a multiple of 8 bytes with minimum 24 bytes.
1318
+ * For padded version, use aeskwp.
1319
+ * See {@link https://www.rfc-editor.org/rfc/rfc3394/ | RFC 3394} and
1320
+ * {@link https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38F.pdf | NIST SP 800-38F}.
1321
+ * @param kek - AES key-encryption key.
1322
+ * @returns Key-wrap cipher instance.
1323
+ * As with other `wrapCipher(...)` wrappers, `encrypt()` is single-use per
1324
+ * instance.
1325
+ * @example
1326
+ * Wraps a 128-bit content-encryption key with a fresh key-encryption key.
1327
+ *
1328
+ * ```ts
1329
+ * import { aeskw } from '@noble/ciphers/aes.js';
1330
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1331
+ * const kek = randomBytes(16);
1332
+ * const cek = randomBytes(16);
1333
+ * const wrap = aeskw(kek);
1334
+ * wrap.encrypt(cek);
1335
+ * ```
1336
+ */
1337
+ export const aeskw: TRet<
1338
+ ((kek: TArg<Uint8Array>) => Cipher) & {
1339
+ blockSize: number;
1340
+ }
1341
+ > = /* @__PURE__ */ wrapCipher(
1342
+ { blockSize: 8 },
1343
+ (kek: TArg<Uint8Array>): TRet<Cipher> =>
1344
+ ({
1345
+ encrypt(plaintext: TArg<Uint8Array>): TRet<Uint8Array> {
1346
+ if (!plaintext.length || plaintext.length % 8 !== 0)
1347
+ throw new Error('invalid plaintext length');
1348
+ // RFC 3394 / NIST SP 800-38F define KW only for >=2 plaintext
1349
+ // semiblocks; the 1-semiblock case belongs to RFC 5649 KWP.
1350
+ if (plaintext.length === 8) throw new Error('8-byte keys not allowed, use AESKWP');
1351
+ const out = concatBytes(AESKW_IV, plaintext);
1352
+ AESW.encrypt(kek, out);
1353
+ return out;
1354
+ },
1355
+ decrypt(ciphertext: TArg<Uint8Array>): TRet<Uint8Array> {
1356
+ // ciphertext must be at least 24 bytes and a multiple of 8 bytes
1357
+ // 24 because should have at least two block (1 iv + 2).
1358
+ // Replace with 16 to enable '8-byte keys'
1359
+ if (ciphertext.length % 8 !== 0 || ciphertext.length < 3 * 8)
1360
+ throw new Error('invalid ciphertext length');
1361
+ // AESW.decrypt() mutates its buffer in place, so keep caller ciphertext
1362
+ // immutable across the unwrap, ICV1 check, and IV scrubbing below.
1363
+ const out = copyBytes(ciphertext);
1364
+ AESW.decrypt(kek, out);
1365
+ if (!equalBytes(out.subarray(0, 8), AESKW_IV)) throw new Error('integrity check failed');
1366
+ out.subarray(0, 8).fill(0); // ciphertext.subarray(0, 8) === IV, but we clean it anyway
1367
+ return out.subarray(8) as TRet<Uint8Array>;
1368
+ },
1369
+ }) as TRet<Cipher>
1370
+ );
1371
+
1372
+ /*
1373
+ We don't support 8-byte keys. The rabbit hole:
1374
+
1375
+ - Wycheproof says: "NIST SP 800-38F does not define the wrapping of 8 byte keys.
1376
+ RFC 3394 Section 2 on the other hand specifies that 8 byte keys are wrapped
1377
+ by directly encrypting one block with AES."
1378
+ - {@link https://github.com/C2SP/wycheproof/blob/master/doc/key_wrap.md | Wycheproof key-wrap note}
1379
+ - "RFC 3394 specifies in Section 2, that the input for the key wrap
1380
+ algorithm must be at least two blocks and otherwise the constant
1381
+ field and key are simply encrypted with ECB as a single block"
1382
+ - What RFC 3394 actually says (in Section 2):
1383
+ - "Before being wrapped, the key data is parsed into n blocks of 64 bits.
1384
+ The only restriction the key wrap algorithm places on n is that n be
1385
+ at least two"
1386
+ - "For key data with length less than or equal to 64 bits, the constant
1387
+ field used in this specification and the key data form a single
1388
+ 128-bit codebook input making this key wrap unnecessary."
1389
+ - Which means "assert(n >= 2)" and "use something else for 8 byte keys"
1390
+ - NIST SP800-38F actually prohibits 8-byte in "5.3.1 Mandatory Limits".
1391
+ It states that plaintext for KW should be "2 to 2^54 -1 semiblocks".
1392
+ - So, where does "directly encrypt single block with AES" come from?
1393
+ - Not RFC 3394. Pseudocode of key wrap in 2.2 explicitly uses
1394
+ loop of 6 for any code path
1395
+ - There is a weird W3C spec:
1396
+ {@link https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.html#kw-aes128 | XML Encryption AES key-wrap section}
1397
+ - This spec is outdated, as admitted by Wycheproof authors
1398
+ - There is RFC 5649 for padded key wrap, which is padding construction on
1399
+ top of AESKW. In '4.1.2' it says: "If the padded plaintext contains exactly
1400
+ eight octets, then prepend the AIV as defined in Section 3 above to P[1] and
1401
+ encrypt the resulting 128-bit block using AES in ECB mode [Modes] with key
1402
+ K (the KEK). In this case, the output is two 64-bit blocks C[0] and C[1]:"
1403
+ - Browser subtle crypto is actually crashes on wrapping keys less than 16 bytes:
1404
+ `Error: error:1C8000E6:Provider routines::invalid input length]
1405
+ { opensslErrorStack: [ 'error:030000BD:digital envelope routines::update error' ]`
1406
+
1407
+ In the end, seems like a bug in Wycheproof.
1408
+ The 8-byte check can be easily disabled inside of AES_W.
1409
+ */
1410
+
1411
+ // RFC 5649 §3 / NIST SP 800-38F Algorithm 5 / Algorithm 6: KWP uses ICV2 as
1412
+ // the high 32 bits of the AIV; the low 32 bits carry the MLI in network order.
1413
+ const AESKWP_IV = 0xa65959a6; // single u32le value
1414
+
1415
+ /**
1416
+ * AES-KW, but with padding and allows random keys.
1417
+ * Uses the RFC 5649 alternative initial value; the second u32 stores the
1418
+ * 32-bit MLI in network order.
1419
+ * Wrapped ciphertext must be at least 16 bytes; malformed lengths are
1420
+ * rejected during AIV/padding checks.
1421
+ * See {@link https://www.rfc-editor.org/rfc/rfc5649 | RFC 5649}.
1422
+ * @param kek - AES key-encryption key.
1423
+ * @returns Padded key-wrap cipher instance.
1424
+ * @example
1425
+ * Wraps a short key blob using the padded variant and a fresh key-encryption key.
1426
+ *
1427
+ * ```ts
1428
+ * import { aeskwp } from '@noble/ciphers/aes.js';
1429
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1430
+ * const kek = randomBytes(16);
1431
+ * const wrap = aeskwp(kek);
1432
+ * wrap.encrypt(new Uint8Array([1, 2, 3]));
1433
+ * ```
1434
+ */
1435
+ export const aeskwp: TRet<
1436
+ ((kek: TArg<Uint8Array>) => Cipher) & {
1437
+ blockSize: number;
1438
+ }
1439
+ > = /* @__PURE__ */ wrapCipher(
1440
+ { blockSize: 8 },
1441
+ (kek: TArg<Uint8Array>): TRet<Cipher> =>
1442
+ ({
1443
+ encrypt(plaintext: TArg<Uint8Array>): TRet<Uint8Array> {
1444
+ if (!plaintext.length) throw new Error('invalid plaintext length');
1445
+ const padded = Math.ceil(plaintext.length / 8) * 8;
1446
+ const out = new Uint8Array(8 + padded);
1447
+ out.set(plaintext, 8);
1448
+ const out32 = u32(out);
1449
+ out32[0] = swap8IfBE(AESKWP_IV);
1450
+ // RFC 5649 §3: the low 32 bits of the AIV carry the octet-length MLI in
1451
+ // network order, even though this buffer is addressed through LE u32s.
1452
+ out32[1] = swap8IfBE(byteSwap(plaintext.length));
1453
+ AESW.encrypt(kek, out);
1454
+ return out as TRet<Uint8Array>;
1455
+ },
1456
+ decrypt(ciphertext: TArg<Uint8Array>): TRet<Uint8Array> {
1457
+ // 16 because should have at least one block
1458
+ if (ciphertext.length < 16) throw new Error('invalid ciphertext length');
1459
+ // AESW.decrypt() mutates its buffer in place, so keep caller ciphertext
1460
+ // immutable across the unwrap, AIV checks, and IV scrubbing below.
1461
+ const out = copyBytes(ciphertext);
1462
+ const o32 = u32(out);
1463
+ AESW.decrypt(kek, out);
1464
+ const len = byteSwap(swap8IfBE(o32[1])) >>> 0;
1465
+ const padded = Math.ceil(len / 8) * 8;
1466
+ if (swap8IfBE(o32[0]) !== AESKWP_IV || out.length - 8 !== padded)
1467
+ throw new Error('integrity check failed');
1468
+ // RFC 5649 §3 / NIST SP 800-38F Algorithm 6: recovered padding length
1469
+ // must be in [0,7], and every recovered pad octet must be zero.
1470
+ for (let i = len; i < padded; i++)
1471
+ if (out[8 + i] !== 0) throw new Error('integrity check failed');
1472
+ out.subarray(0, 8).fill(0); // ciphertext.subarray(0, 8) === IV, but we clean it anyway
1473
+ return out.subarray(8, 8 + len) as TRet<Uint8Array>;
1474
+ },
1475
+ }) as TRet<Cipher>
1476
+ );
1477
+
1478
+ class _AesCtrDRBG implements PRG {
1479
+ readonly blockLen: number;
1480
+ private key: TRet<Uint8Array>;
1481
+ private nonce: TRet<Uint8Array>;
1482
+ private state: TRet<Uint8Array>;
1483
+ private reseedCnt: number;
1484
+ private destroyed = false;
1485
+ constructor(keyLen: number, seed: TArg<Uint8Array>, personalization?: TArg<Uint8Array>) {
1486
+ this.blockLen = ctr.blockSize;
1487
+ const keyLenBytes = keyLen / 8;
1488
+ const nonceLen = 16;
1489
+ // Store the full seedlen state as key || V so CTR_DRBG_Update-style steps
1490
+ // can rewrite the entire internal state in place.
1491
+ this.state = new Uint8Array(keyLenBytes + nonceLen) as TRet<Uint8Array>;
1492
+ this.key = this.state.subarray(0, keyLenBytes) as TRet<Uint8Array>;
1493
+ this.nonce = this.state.subarray(keyLenBytes, keyLenBytes + nonceLen) as TRet<Uint8Array>;
1494
+ this.reseedCnt = 1;
1495
+ // Keep the stored counter one step ahead of SP 800-90A's formal V so
1496
+ // ctr(key, nonce) uses the next counter block directly.
1497
+ incBytes(this.nonce, false, 1);
1498
+ this.addEntropy(seed, personalization);
1499
+ }
1500
+ private update(data?: TArg<Uint8Array>) {
1501
+ // cannot re-use state here, because we will wipe current key
1502
+ ctr(this.key, this.nonce).encrypt(new Uint8Array(this.state.length), this.state);
1503
+ if (data) {
1504
+ abytes(data);
1505
+ // CTR_DRBG without a derivation function pads shorter additional_input
1506
+ // with zeros to seedlen, so XOR only the provided prefix here.
1507
+ for (let i = 0; i < data.length; i++) this.state[i] ^= data[i];
1508
+ }
1509
+ // Keep storing V+1 so the next ctr(key, nonce) call starts from the
1510
+ // spec's post-update counter state.
1511
+ incBytes(this.nonce, false, 1);
1512
+ }
1513
+ // Optional `info` is additional input XORed into the reseed block and is
1514
+ // limited to the internal state width.
1515
+ addEntropy(seed: TArg<Uint8Array>, info?: TArg<Uint8Array>): void {
1516
+ if (this.destroyed) throw new Error('cannot use destroyed DRBG');
1517
+ abytes(seed, this.state.length, 'seed');
1518
+ // Copy caller entropy before XORing in personalization/additional input,
1519
+ // then wipe the mixed seed material after CTR_DRBG_Update consumes it.
1520
+ const _seed = seed.slice();
1521
+ if (info) {
1522
+ abytes(info);
1523
+ if (info.length > _seed.length) throw new Error('info length is too big');
1524
+ for (let i = 0; i < info.length; i++) _seed[i] ^= info[i];
1525
+ }
1526
+ this.update(_seed);
1527
+ _seed.fill(0);
1528
+ this.reseedCnt = 1;
1529
+ }
1530
+ // Optional `info` is additional input for the pre/post-update steps; bytes
1531
+ // SP 800-90A Rev. 1 CTR_DRBG without a derivation function limits
1532
+ // additional_input to seedlen, which is exactly this internal state width.
1533
+ randomBytes(len: number, info?: TArg<Uint8Array>): TRet<Uint8Array> {
1534
+ if (this.destroyed) throw new Error('cannot use destroyed DRBG');
1535
+ anumber(len);
1536
+ // SP 800-90A Table 3 caps AES CTR_DRBG requests at 2^16 bits = 65536 bytes.
1537
+ if (len > 2 ** 16) throw new Error('requested output is too big');
1538
+ // The spec allows generate while reseed_counter == reseed_interval and increments afterwards.
1539
+ if (this.reseedCnt > 2 ** 48) throw new Error('entropy exhausted');
1540
+ if (info) {
1541
+ abytes(info);
1542
+ if (info.length > this.state.length) throw new Error('info length is too big');
1543
+ this.update(info);
1544
+ }
1545
+ const res = new Uint8Array(len);
1546
+ ctr(this.key, this.nonce).encrypt(res, res);
1547
+ incBytes(this.nonce, false, Math.ceil(len / this.blockLen));
1548
+ this.update(info);
1549
+ this.reseedCnt++;
1550
+ return res as TRet<Uint8Array>;
1551
+ }
1552
+ // Zeroes the current state and marks the instance destroyed. Fails closed:
1553
+ // any later randomBytes()/addEntropy() throws instead of continuing from the
1554
+ // zeroed state (which would make subsequent output the predictable zero-key stream).
1555
+ clean(): void {
1556
+ // `key` and `nonce` alias this backing buffer, so one fill wipes the full
1557
+ // secret state in place.
1558
+ this.state.fill(0);
1559
+ this.reseedCnt = 0;
1560
+ this.destroyed = true;
1561
+ }
1562
+ }
1563
+
1564
+ /**
1565
+ * Factory for AES-CTR DRBG instances.
1566
+ * @param seed - Initial entropy input.
1567
+ * @param personalization - Optional personalization string mixed into the state.
1568
+ * @returns Seeded AES-CTR DRBG instance.
1569
+ */
1570
+ export type AesCtrDrbg = (
1571
+ seed: TArg<Uint8Array>,
1572
+ personalization?: TArg<Uint8Array>
1573
+ ) => TRet<_AesCtrDRBG>;
1574
+
1575
+ // Internal helper for the exported 128-bit and 256-bit aliases; other key
1576
+ // lengths are not validated here.
1577
+ const createAesDrbg: (keyLen: number) => TRet<AesCtrDrbg> = (keyLen) => {
1578
+ return (seed, personalization = undefined) =>
1579
+ new _AesCtrDRBG(keyLen, seed, personalization) as TRet<_AesCtrDRBG>;
1580
+ };
1581
+
1582
+ /**
1583
+ * AES-CTR DRBG 128-bit - CSPRNG (cryptographically secure pseudorandom number generator).
1584
+ * It's best to limit usage to non-production, non-critical cases: for example, test-only.
1585
+ * @param seed - Initial 32-byte entropy input.
1586
+ * @param personalization - Optional personalization string.
1587
+ * @returns Seeded DRBG instance. The concrete methods also accept optional additional-input bytes.
1588
+ * @example
1589
+ * Seeds the test-only AES-CTR DRBG from fresh entropy and reads bytes from it.
1590
+ *
1591
+ * ```ts
1592
+ * import { rngAesCtrDrbg128 } from '@noble/ciphers/aes.js';
1593
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1594
+ * const seed = randomBytes(32);
1595
+ * const prg = rngAesCtrDrbg128(seed);
1596
+ * prg.randomBytes(8);
1597
+ * ```
1598
+ */
1599
+ export const rngAesCtrDrbg128: TRet<AesCtrDrbg> = /* @__PURE__ */ createAesDrbg(128);
1600
+ /**
1601
+ * AES-CTR DRBG 256-bit - CSPRNG (cryptographically secure pseudorandom number generator).
1602
+ * It's best to limit usage to non-production, non-critical cases: for example, test-only.
1603
+ * @param seed - Initial 48-byte entropy input.
1604
+ * @param personalization - Optional personalization string.
1605
+ * @returns Seeded DRBG instance. The concrete methods also accept optional additional-input bytes.
1606
+ * @example
1607
+ * Seeds the test-only AES-CTR DRBG from fresh entropy and reads bytes from it.
1608
+ *
1609
+ * ```ts
1610
+ * import { rngAesCtrDrbg256 } from '@noble/ciphers/aes.js';
1611
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1612
+ * const seed = randomBytes(48);
1613
+ * const prg = rngAesCtrDrbg256(seed);
1614
+ * prg.randomBytes(8);
1615
+ * ```
1616
+ */
1617
+ export const rngAesCtrDrbg256: TRet<AesCtrDrbg> = /* @__PURE__ */ createAesDrbg(256);
1618
+
1619
+ //#region CMAC
1620
+
1621
+ /**
1622
+ * Left-shift by one bit and conditionally XOR with 0x87:
1623
+ * ```
1624
+ * if MSB(L) is equal to 0
1625
+ * then K1 := L << 1;
1626
+ * else K1 := (L << 1) XOR const_Rb;
1627
+ * ```
1628
+ *
1629
+ * Specs:
1630
+ * {@link https://www.rfc-editor.org/rfc/rfc4493.html#section-2.3 | RFC 4493 Section 2.3},
1631
+ * {@link https://datatracker.ietf.org/doc/html/rfc5297.html#section-2.3 | RFC 5297 Section 2.3}
1632
+ *
1633
+ * @returns modified `block` (for chaining)
1634
+ */
1635
+ function dbl<T extends Uint8Array>(block: T): T {
1636
+ let carry = 0;
1637
+
1638
+ // Left shift by 1 bit
1639
+ for (let i = BLOCK_SIZE - 1; i >= 0; i--) {
1640
+ const newCarry = (block[i] & 0x80) >>> 7;
1641
+ block[i] = (block[i] << 1) | carry;
1642
+ carry = newCarry;
1643
+ }
1644
+
1645
+ // XOR with 0x87 if there was a carry from the most significant bit.
1646
+ // RFC 4493 §2.3 / RFC 5297 §2.1: 0x87 is const_Rb for doubling in the
1647
+ // CMAC/S2V finite field with primitive polynomial x^128 + x^7 + x^2 + x + 1.
1648
+ // Branchless: `carry` derives from secret CMAC subkey material.
1649
+ block[BLOCK_SIZE - 1] ^= 0x87 & -carry;
1650
+
1651
+ return block;
1652
+ }
1653
+
1654
+ /**
1655
+ * `a XOR b`, running in-place on `a`.
1656
+ * @param a left operand and output
1657
+ * @param b right operand
1658
+ * @returns `a` (for chaining)
1659
+ */
1660
+ function xorBlock<T extends TArg<Uint8Array>>(a: T, b: TArg<Uint8Array>): T {
1661
+ if (a.length !== b.length) throw new Error('xorBlock: blocks must have same length');
1662
+ for (let i = 0; i < a.length; i++) {
1663
+ a[i] = a[i] ^ b[i];
1664
+ }
1665
+ return a;
1666
+ }
1667
+
1668
+ /**
1669
+ * xorend as defined in
1670
+ * {@link https://datatracker.ietf.org/doc/html/rfc5297.html#section-2.1 | RFC 5297 Section 2.1}.
1671
+ *
1672
+ * ```
1673
+ * leftmost(A, len(A)-len(B)) || (rightmost(A, len(B)) xor B)
1674
+ * ```
1675
+ *
1676
+ * Mutates `a` in place so the left prefix stays untouched and only the
1677
+ * rightmost `len(B)` bytes are xored with `b`.
1678
+ */
1679
+ function xorend<T extends TArg<Uint8Array>>(a: T, b: TArg<Uint8Array>): T {
1680
+ if (b.length > a.length) {
1681
+ throw new Error('xorend: expected len(B) <= len(A)');
1682
+ }
1683
+ // keep leftmost part of `a` unchanged
1684
+ // and xor only the rightmost part:
1685
+ const offset = a.length - b.length;
1686
+ for (let i = 0; i < b.length; i++) {
1687
+ a[offset + i] = a[offset + i] ^ b[i];
1688
+ }
1689
+ return a;
1690
+ }
1691
+
1692
+ /**
1693
+ * Internal CMAC class.
1694
+ */
1695
+ class _CMAC implements IHash2 {
1696
+ readonly blockLen: number = BLOCK_SIZE;
1697
+ readonly outputLen: number = BLOCK_SIZE;
1698
+ // CMAC can only decide between `K1` and `K2` once the true final block is known,
1699
+ // so updates process older blocks eagerly but keep one pending block buffered.
1700
+ private buffer: Uint8Array;
1701
+ private pos: number;
1702
+ protected finished: boolean;
1703
+ protected destroyed: boolean;
1704
+ private k1: Uint8Array;
1705
+ private k2: Uint8Array;
1706
+ private x: Uint8Array;
1707
+ private x32: Uint32Array;
1708
+ private xk: Uint32Array;
1709
+
1710
+ constructor(key: TArg<Uint8Array>) {
1711
+ abytes(key);
1712
+ validateKeyLength(key);
1713
+ this.xk = expandKeyLE(key);
1714
+ this.buffer = new Uint8Array(BLOCK_SIZE);
1715
+ this.pos = 0;
1716
+ this.finished = false;
1717
+ this.destroyed = false;
1718
+ this.x = new Uint8Array(BLOCK_SIZE);
1719
+ // Cached word view over `x`: process() runs once per 16 input bytes, so
1720
+ // it must not re-create views or re-validate per block like encryptBlock().
1721
+ this.x32 = u32(this.x);
1722
+ // L = AES_encrypt(K, const_Zero)
1723
+ const L = new Uint8Array(BLOCK_SIZE);
1724
+ encryptBlock(this.xk, L);
1725
+ // Generate subkeys K1 and K2 from the main key according to
1726
+ // {@link https://www.rfc-editor.org/rfc/rfc4493.html#section-2.3 | RFC 4493 Section 2.3}
1727
+ // K1
1728
+ this.k1 = dbl(L);
1729
+ this.k2 = dbl(new Uint8Array(this.k1));
1730
+ }
1731
+
1732
+ // Consumes 16 bytes of `data` starting at `pos`; `pos` avoids a per-block
1733
+ // subarray view allocation in update().
1734
+ private process(data: TArg<Uint8Array>, pos: number): void {
1735
+ // RFC 4493 §2.4 step 6 loop body: Y := X XOR M_i; X := AES-128(K, Y).
1736
+ const { x, x32, xk } = this;
1737
+ for (let i = 0; i < BLOCK_SIZE; i++) x[i] ^= data[pos + i];
1738
+ swap32IfBE(x32);
1739
+ const { s0, s1, s2, s3 } = encrypt(xk, x32[0], x32[1], x32[2], x32[3]);
1740
+ ((x32[0] = s0), (x32[1] = s1), (x32[2] = s2), (x32[3] = s3));
1741
+ swap32IfBE(x32);
1742
+ }
1743
+
1744
+ update(data: TArg<Uint8Array>): this {
1745
+ aexists(this);
1746
+ abytes(data);
1747
+ let pos = 0;
1748
+ if (this.pos) {
1749
+ const take = Math.min(BLOCK_SIZE - this.pos, data.length);
1750
+ this.buffer.set(data.subarray(0, take), this.pos);
1751
+ this.pos += take;
1752
+ pos = take;
1753
+ if (this.pos === BLOCK_SIZE && pos < data.length) {
1754
+ this.process(this.buffer, 0);
1755
+ this.pos = 0;
1756
+ }
1757
+ }
1758
+ // Keep one complete block buffered: an exact 16-byte tail may still be
1759
+ // M_n, and digestInto() must decide there whether RFC 4493 uses K1 or K2.
1760
+ while (pos + BLOCK_SIZE < data.length) {
1761
+ this.process(data, pos);
1762
+ pos += BLOCK_SIZE;
1763
+ }
1764
+ if (pos < data.length) {
1765
+ this.buffer.set(data.subarray(pos), 0);
1766
+ this.pos = data.length - pos;
1767
+ }
1768
+ return this;
1769
+ }
1770
+
1771
+ // See {@link https://www.rfc-editor.org/rfc/rfc4493.html#section-2.4 | RFC 4493 Section 2.4}.
1772
+ digestInto(out: TArg<Uint8Array>): void {
1773
+ aexists(this);
1774
+ // `digestInto(out)` is the no-allocation fast path, so AES block re-use below
1775
+ // requires a 32-bit-aligned caller buffer instead of hidden temp copies.
1776
+ aoutput32(out, this);
1777
+ this.finished = true;
1778
+ // `digestInto()` accepts out.length >= outputLen, so only the first block stores the tag.
1779
+ const view = out.subarray(0, this.outputLen);
1780
+ let last = new Uint8Array(BLOCK_SIZE);
1781
+ if (this.pos === BLOCK_SIZE) {
1782
+ // M_last := M_n XOR K1;
1783
+ last.set(this.buffer);
1784
+ xorBlock(last, this.k1);
1785
+ } else {
1786
+ // M_last := padding(M_n) XOR K2;
1787
+ //
1788
+ // [...] padding(x) is the concatenation of x and a single '1',
1789
+ // followed by the minimum number of '0's, so that the total length is
1790
+ // equal to 128 bits.
1791
+ last.set(this.buffer.subarray(0, this.pos));
1792
+ last[this.pos] = 0x80; // single '1' bit
1793
+ xorBlock(last, this.k2);
1794
+ }
1795
+ view.set(this.x); // X := AES_CBC(K, M_1..M_{n-1})
1796
+ xorBlock(view, last); // Y := X XOR M_last
1797
+ encryptBlock(this.xk, view); // T := AES-128(K, Y)
1798
+ clean(last);
1799
+ }
1800
+
1801
+ digest(): Uint8ArrayBuffer {
1802
+ const { buffer, outputLen } = this;
1803
+ this.digestInto(buffer);
1804
+ // Copy out before destroy() wipes the internal digest buffer in place.
1805
+ const res = buffer.slice(0, outputLen);
1806
+ this.destroy();
1807
+ return res;
1808
+ }
1809
+
1810
+ destroy(): void {
1811
+ const { buffer, destroyed, x, xk, k1, k2 } = this;
1812
+ if (destroyed) return;
1813
+ this.destroyed = true;
1814
+ // Wipe the buffered tail, chaining value, expanded AES key, and both CMAC subkeys.
1815
+ clean(buffer, x, xk, k1, k2);
1816
+ }
1817
+ }
1818
+
1819
+ /**
1820
+ * AES-CMAC (Cipher-based Message Authentication Code).
1821
+ * Specs: {@link https://www.rfc-editor.org/rfc/rfc4493.html | RFC 4493}.
1822
+ * @param msg - Message bytes to authenticate.
1823
+ * @param key - AES key bytes.
1824
+ * @returns 16-byte authentication tag. `cmac.create(...)` follows the same incremental MAC shape as
1825
+ * the other keyed helpers in this repo, including `blockLen`,
1826
+ * `outputLen`, `digestInto()` and `destroy()`.
1827
+ * @example
1828
+ * Authenticates a message with AES-CMAC and a fresh key.
1829
+ *
1830
+ * ```ts
1831
+ * import { cmac } from '@noble/ciphers/aes.js';
1832
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1833
+ * const key = randomBytes(16);
1834
+ * cmac(new Uint8Array(), key);
1835
+ * ```
1836
+ */
1837
+ // The 16-byte probe key is only used to read static metadata; runtime CMAC
1838
+ // still accepts AES-128/192/256 keys.
1839
+ export const cmac: TRet<CMac<_CMAC>> = /* @__PURE__ */ wrapMacConstructor(
1840
+ 16,
1841
+ (key: TArg<Uint8Array>) => new _CMAC(key)
1842
+ );
1843
+
1844
+ /**
1845
+ * S2V (Synthetic Initialization Vector) function as described in
1846
+ * {@link https://datatracker.ietf.org/doc/html/rfc5297.html#section-2.4 | RFC 5297 Section 2.4}.
1847
+ *
1848
+ * ```
1849
+ * S2V(K, S1, ..., Sn) {
1850
+ * if n = 0 then
1851
+ * return V = AES-CMAC(K, <one>)
1852
+ * fi
1853
+ * D = AES-CMAC(K, <zero>)
1854
+ * for i = 1 to n-1 do
1855
+ * D = dbl(D) xor AES-CMAC(K, Si)
1856
+ * done
1857
+ * if len(Sn) >= 128 then
1858
+ * T = Sn xorend D
1859
+ * else
1860
+ * T = dbl(D) xor pad(Sn)
1861
+ * fi
1862
+ * return V = AES-CMAC(K, T)
1863
+ * }
1864
+ * ```
1865
+ *
1866
+ * S2V takes a key and a vector of strings S1, S2, ..., Sn and returns a 128-bit string.
1867
+ * The S2V function is used to generate a synthetic IV for AES-SIV.
1868
+ *
1869
+ * @param key - AES key (128, 192, or 256 bits)
1870
+ * @param strings - Array of byte arrays to process
1871
+ * @returns 128-bit synthetic IV
1872
+ */
1873
+ function s2v(key: TArg<Uint8Array>, strings: TArg<Uint8Array[]>): TRet<Uint8Array> {
1874
+ validateKeyLength(key);
1875
+ const len = strings.length;
1876
+ if (len > 127) {
1877
+ // RFC 5297 §7 only proves S2V secure for at most 127 components; SIV
1878
+ // spends one of those on the plaintext, leaving at most 126 AAD inputs.
1879
+ throw new Error('s2v: expected <= 127 inputs');
1880
+ }
1881
+
1882
+ if (len === 0) return cmac(ONE_BLOCK, key);
1883
+
1884
+ // D = AES-CMAC(K, <zero>)
1885
+ let d = cmac(EMPTY_BLOCK, key);
1886
+
1887
+ // for i = 1 to n-1 do
1888
+ // D = dbl(D) xor AES-CMAC(K, Si)
1889
+ for (let i = 0; i < len - 1; i++) {
1890
+ dbl(d);
1891
+ const cmacResult = cmac(strings[i], key);
1892
+ xorBlock(d, cmacResult);
1893
+ clean(cmacResult);
1894
+ }
1895
+
1896
+ const s_n = strings[len - 1];
1897
+ // Earlier components are validated through cmac(...); validate the final one explicitly because
1898
+ // the Uint8Array.from()/set() paths below would otherwise coerce array-like inputs silently.
1899
+ abytes(s_n);
1900
+ let t: Uint8Array;
1901
+
1902
+ // if len(Sn) >= 128 then
1903
+ if (s_n.byteLength >= BLOCK_SIZE) {
1904
+ // T = Sn xorend D
1905
+ t = xorend(Uint8Array.from(s_n), d);
1906
+ } else {
1907
+ // pad(Sn):
1908
+ const paddedSn = new Uint8Array(BLOCK_SIZE);
1909
+ paddedSn.set(s_n);
1910
+ paddedSn[s_n.length] = 0x80; // padding: 0x80 followed by zeros
1911
+
1912
+ // T = dbl(D) xor pad(Sn)
1913
+ t = xorBlock(dbl(d), paddedSn);
1914
+ clean(paddedSn);
1915
+ }
1916
+
1917
+ // V = AES-CMAC(K, T)
1918
+ const result = cmac(t, key);
1919
+ clean(d, t);
1920
+ return result;
1921
+ }
1922
+
1923
+ /**
1924
+ * Use `gcmsiv` or `aessiv`.
1925
+ * @returns Never; always throws with the migration hint.
1926
+ * @throws If called; `siv()` is a removed v1 alias. {@link Error}
1927
+ * @example
1928
+ * `siv()` was removed in v2; use `gcmsiv()` for nonce-based SIV instead.
1929
+ *
1930
+ * ```ts
1931
+ * import { gcmsiv } from '@noble/ciphers/aes.js';
1932
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1933
+ * const key = randomBytes(16);
1934
+ * const nonce = randomBytes(12);
1935
+ * const cipher = gcmsiv(key, nonce);
1936
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
1937
+ * ```
1938
+ */
1939
+ export const siv: () => never = () => {
1940
+ throw new Error('"siv" from v1 is now "gcmsiv"');
1941
+ };
1942
+
1943
+ /**
1944
+ * **SIV**: Synthetic Initialization Vector (SIV) Authenticated Encryption
1945
+ * Nonce is derived from the plaintext and AAD using the S2V function.
1946
+ * Supports at most 126 AAD components. RFC 5297 nonce-based use is expressed by
1947
+ * passing the nonce as the final AAD component before the plaintext.
1948
+ * See {@link https://datatracker.ietf.org/doc/html/rfc5297.html | RFC 5297}.
1949
+ * @param key - 32-byte, 48-byte, or 64-byte key.
1950
+ * @param AAD - Additional authenticated data chunks (up to 126).
1951
+ * @returns AEAD cipher instance.
1952
+ * @example
1953
+ * Authenticates and encrypts plaintext with a fresh key without requiring unique nonces.
1954
+ *
1955
+ * ```ts
1956
+ * import { aessiv } from '@noble/ciphers/aes.js';
1957
+ * import { randomBytes } from '@noble/ciphers/utils.js';
1958
+ * const key = randomBytes(32);
1959
+ * const cipher = aessiv(key);
1960
+ * cipher.encrypt(new Uint8Array([1, 2, 3]));
1961
+ * ```
1962
+ */
1963
+ export const aessiv: TRet<
1964
+ ((key: TArg<Uint8Array>, ...AAD: TArg<Uint8Array[]>) => Cipher) & {
1965
+ blockSize: number;
1966
+ tagLength: number;
1967
+ withAAD: true;
1968
+ }
1969
+ > = /* @__PURE__ */ wrapCipher(
1970
+ { blockSize: 16, tagLength: 16, withAAD: true },
1971
+ function aessiv(key: TArg<Uint8Array>, ...AAD: TArg<Uint8Array[]>): TRet<Cipher> {
1972
+ // From RFC 5297: Section 6.1, 6.2, 6.3:
1973
+ const PLAIN_LIMIT = limit('plaintext', 0, 2 ** 132);
1974
+ const CIPHER_LIMIT = limit('ciphertext', 16, 2 ** 132 + 16);
1975
+ if (AAD.length > 126) {
1976
+ // RFC 5297 §2.6 / §2.7 / §7: SIV passes the plaintext as the last S2V
1977
+ // component, so callers only get 126 associated-data components.
1978
+ throw new Error('"AAD" expected <= 126 items');
1979
+ }
1980
+ AAD.forEach((aad) => abytes(aad));
1981
+ abytes(key);
1982
+ if (![32, 48, 64].includes(key.length))
1983
+ throw new Error('"aes key" expected Uint8Array of length 32/48/64, got length=' + key.length);
1984
+
1985
+ // The key is split into equal halves, K1 = leftmost(K, len(K)/2) and
1986
+ // K2 = rightmost(K, len(K)/2). K1 is used for S2V and K2 is used for CTR.
1987
+ // This borrows caller key/AAD buffers by reference; mutating them after
1988
+ // construction changes future encrypt/decrypt results.
1989
+ const k1 = key.subarray(0, key.length / 2);
1990
+ const k2 = key.subarray(key.length / 2);
1991
+
1992
+ return {
1993
+ // {@link https://datatracker.ietf.org/doc/html/rfc5297.html#section-2.6 | RFC 5297 Section 2.6}
1994
+ encrypt(plaintext: TArg<Uint8Array>): TRet<Uint8Array> {
1995
+ PLAIN_LIMIT(plaintext.length);
1996
+
1997
+ const v = s2v(k1, [...AAD, plaintext]);
1998
+
1999
+ // clear out the 31st and 63rd (rightmost) bit:
2000
+ const q = Uint8Array.from(v);
2001
+ q[8] &= 0x7f;
2002
+ q[12] &= 0x7f;
2003
+
2004
+ // encrypt:
2005
+ const c = ctr(k2, q).encrypt(plaintext);
2006
+
2007
+ return concatBytes(v, c);
2008
+ },
2009
+ // {@link https://datatracker.ietf.org/doc/html/rfc5297.html#section-2.7 | RFC 5297 Section 2.7}
2010
+ decrypt(ciphertext: TArg<Uint8Array>): TRet<Uint8Array> {
2011
+ CIPHER_LIMIT(ciphertext.length);
2012
+ const v = ciphertext.subarray(0, BLOCK_SIZE);
2013
+ const c = ciphertext.subarray(BLOCK_SIZE);
2014
+
2015
+ // clear out the 31st and 63rd (rightmost) bit:
2016
+ const q = Uint8Array.from(v);
2017
+ q[8] &= 0x7f;
2018
+ q[12] &= 0x7f;
2019
+
2020
+ // decrypt:
2021
+ const p = ctr(k2, q).decrypt(c);
2022
+
2023
+ // verify tag:
2024
+ const t = s2v(k1, [...AAD, p]);
2025
+
2026
+ if (equalBytes(t, v)) {
2027
+ return p as TRet<Uint8Array>;
2028
+ } else {
2029
+ clean(p);
2030
+ throw new Error('invalid siv tag');
2031
+ }
2032
+ },
2033
+ } as TRet<Cipher>;
2034
+ }
2035
+ );
2036
+ //#endregion
2037
+
2038
+ /**
2039
+ * Unsafe low-level internal methods. May change at any time.
2040
+ * Callers are expected to use reviewed expanded-key outputs, pass mutable and
2041
+ * aligned 16-byte blocks where required, and treat several helpers as in-place
2042
+ * mutations of their input buffers or counters.
2043
+ */
2044
+ export const unsafe: {
2045
+ expandKeyLE: typeof expandKeyLE;
2046
+ expandKeyDecLE: typeof expandKeyDecLE;
2047
+ encrypt: typeof encrypt;
2048
+ decrypt: typeof decrypt;
2049
+ encryptBlock: typeof encryptBlock;
2050
+ decryptBlock: typeof decryptBlock;
2051
+ ctrCounter: typeof ctrCounter;
2052
+ ctr32: typeof ctr32;
2053
+ dbl: typeof dbl;
2054
+ xorBlock: typeof xorBlock;
2055
+ xorend: typeof xorend;
2056
+ s2v: typeof s2v;
2057
+ } = /* @__PURE__ */ Object.freeze({
2058
+ expandKeyLE,
2059
+ expandKeyDecLE,
2060
+ encrypt,
2061
+ decrypt,
2062
+ encryptBlock,
2063
+ decryptBlock,
2064
+ ctrCounter,
2065
+ ctr32,
2066
+ dbl,
2067
+ xorBlock,
2068
+ xorend,
2069
+ s2v,
2070
+ });
2071
+
2072
+ export const __TESTS: { incBytes: typeof incBytes } = /* @__PURE__ */ Object.freeze({
2073
+ incBytes: incBytes,
2074
+ });